Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c35253ddd4 | |||
| 5f358b2a26 | |||
| 5c28e6c191 |
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
||||||
"version": "0.1.22",
|
"version": "0.1.24",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
||||||
"version": "0.1.22",
|
"version": "0.1.24",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kubernetes/client-node": "^1.0.0",
|
"@kubernetes/client-node": "^1.0.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
"name": "@farhoodliquor/paperclip-adapter-claude-k8s",
|
||||||
"version": "0.1.23",
|
"version": "0.1.24",
|
||||||
"description": "Paperclip adapter plugin that runs Claude Code agents as Kubernetes Jobs",
|
"description": "Paperclip adapter plugin that runs Claude Code agents as Kubernetes Jobs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ describe("buildJobManifest", () => {
|
|||||||
it("write-prompt writes PROMPT_CONTENT to /tmp/prompt/prompt.txt", () => {
|
it("write-prompt writes PROMPT_CONTENT to /tmp/prompt/prompt.txt", () => {
|
||||||
const { job } = buildJobManifest({ ctx, selfPod });
|
const { job } = buildJobManifest({ ctx, selfPod });
|
||||||
const init = job.spec?.template?.spec?.initContainers?.[0];
|
const init = job.spec?.template?.spec?.initContainers?.[0];
|
||||||
expect(init?.command).toEqual(["sh", "-c", "echo \"$PROMPT_CONTENT\" > /tmp/prompt/prompt.txt"]);
|
expect(init?.command).toEqual(["sh", "-c", "printf '%s' \"$PROMPT_CONTENT\" > /tmp/prompt/prompt.txt"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("write-prompt mounts prompt volume", () => {
|
it("write-prompt mounts prompt volume", () => {
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export function buildJobManifest(input: JobBuildInput): JobBuildResult {
|
|||||||
name: "write-prompt",
|
name: "write-prompt",
|
||||||
image: "busybox:1.36",
|
image: "busybox:1.36",
|
||||||
imagePullPolicy: "IfNotPresent",
|
imagePullPolicy: "IfNotPresent",
|
||||||
command: ["sh", "-c", "echo \"$PROMPT_CONTENT\" > /tmp/prompt/prompt.txt"],
|
command: ["sh", "-c", "printf '%s' \"$PROMPT_CONTENT\" > /tmp/prompt/prompt.txt"],
|
||||||
env: [{ name: "PROMPT_CONTENT", value: prompt }],
|
env: [{ name: "PROMPT_CONTENT", value: prompt }],
|
||||||
volumeMounts: [{ name: "prompt", mountPath: "/tmp/prompt" }],
|
volumeMounts: [{ name: "prompt", mountPath: "/tmp/prompt" }],
|
||||||
securityContext,
|
securityContext,
|
||||||
|
|||||||
Reference in New Issue
Block a user