@microvac/adapter-codex-local 0.0.0-stage → 0.1.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/format-event.d.ts +2 -0
- package/dist/cli/format-event.d.ts.map +1 -0
- package/dist/cli/format-event.js +218 -0
- package/dist/cli/format-event.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/quota-probe.d.ts +3 -0
- package/dist/cli/quota-probe.d.ts.map +1 -0
- package/dist/cli/quota-probe.js +104 -0
- package/dist/cli/quota-probe.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +268 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +125 -0
- package/dist/index.test.js.map +1 -0
- package/dist/server/acp.cli-version.test.d.ts +2 -0
- package/dist/server/acp.cli-version.test.d.ts.map +1 -0
- package/dist/server/acp.cli-version.test.js +151 -0
- package/dist/server/acp.cli-version.test.js.map +1 -0
- package/dist/server/acp.d.ts +31 -0
- package/dist/server/acp.d.ts.map +1 -0
- package/dist/server/acp.js +608 -0
- package/dist/server/acp.js.map +1 -0
- package/dist/server/acp.quota.test.d.ts +2 -0
- package/dist/server/acp.quota.test.d.ts.map +1 -0
- package/dist/server/acp.quota.test.js +176 -0
- package/dist/server/acp.quota.test.js.map +1 -0
- package/dist/server/acp.test.d.ts +2 -0
- package/dist/server/acp.test.d.ts.map +1 -0
- package/dist/server/acp.test.js +1263 -0
- package/dist/server/acp.test.js.map +1 -0
- package/dist/server/adapter-auth-promotion.d.ts +102 -0
- package/dist/server/adapter-auth-promotion.d.ts.map +1 -0
- package/dist/server/adapter-auth-promotion.js +210 -0
- package/dist/server/adapter-auth-promotion.js.map +1 -0
- package/dist/server/adapter-auth-promotion.test.d.ts +2 -0
- package/dist/server/adapter-auth-promotion.test.d.ts.map +1 -0
- package/dist/server/adapter-auth-promotion.test.js +615 -0
- package/dist/server/adapter-auth-promotion.test.js.map +1 -0
- package/dist/server/auth-check.d.ts +8 -0
- package/dist/server/auth-check.d.ts.map +1 -0
- package/dist/server/auth-check.js +8 -0
- package/dist/server/auth-check.js.map +1 -0
- package/dist/server/auth-precedence.d.ts +16 -0
- package/dist/server/auth-precedence.d.ts.map +1 -0
- package/dist/server/auth-precedence.js +20 -0
- package/dist/server/auth-precedence.js.map +1 -0
- package/dist/server/auth-precedence.test.d.ts +2 -0
- package/dist/server/auth-precedence.test.d.ts.map +1 -0
- package/dist/server/auth-precedence.test.js +100 -0
- package/dist/server/auth-precedence.test.js.map +1 -0
- package/dist/server/cli-version.d.ts +45 -0
- package/dist/server/cli-version.d.ts.map +1 -0
- package/dist/server/cli-version.js +95 -0
- package/dist/server/cli-version.js.map +1 -0
- package/dist/server/codex-args.d.ts +13 -0
- package/dist/server/codex-args.d.ts.map +1 -0
- package/dist/server/codex-args.js +64 -0
- package/dist/server/codex-args.js.map +1 -0
- package/dist/server/codex-args.test.d.ts +2 -0
- package/dist/server/codex-args.test.d.ts.map +1 -0
- package/dist/server/codex-args.test.js +257 -0
- package/dist/server/codex-args.test.js.map +1 -0
- package/dist/server/codex-auth-cache.d.ts +179 -0
- package/dist/server/codex-auth-cache.d.ts.map +1 -0
- package/dist/server/codex-auth-cache.js +520 -0
- package/dist/server/codex-auth-cache.js.map +1 -0
- package/dist/server/codex-auth-cache.test.d.ts +2 -0
- package/dist/server/codex-auth-cache.test.d.ts.map +1 -0
- package/dist/server/codex-auth-cache.test.js +530 -0
- package/dist/server/codex-auth-cache.test.js.map +1 -0
- package/dist/server/codex-auth-copyback.d.ts +53 -0
- package/dist/server/codex-auth-copyback.d.ts.map +1 -0
- package/dist/server/codex-auth-copyback.js +123 -0
- package/dist/server/codex-auth-copyback.js.map +1 -0
- package/dist/server/codex-auth-copyback.test.d.ts +2 -0
- package/dist/server/codex-auth-copyback.test.d.ts.map +1 -0
- package/dist/server/codex-auth-copyback.test.js +507 -0
- package/dist/server/codex-auth-copyback.test.js.map +1 -0
- package/dist/server/codex-auth-merge-decision.cjs +170 -0
- package/dist/server/codex-auth-merge-decision.d.ts +22 -0
- package/dist/server/codex-auth-merge-decision.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-decision.js +58 -0
- package/dist/server/codex-auth-merge-decision.js.map +1 -0
- package/dist/server/codex-auth-merge-decision.test.d.ts +2 -0
- package/dist/server/codex-auth-merge-decision.test.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-decision.test.js +215 -0
- package/dist/server/codex-auth-merge-decision.test.js.map +1 -0
- package/dist/server/codex-auth-merge-extract.sh +73 -0
- package/dist/server/codex-auth-merge-scripts.d.ts +21 -0
- package/dist/server/codex-auth-merge-scripts.d.ts.map +1 -0
- package/dist/server/codex-auth-merge-scripts.js +40 -0
- package/dist/server/codex-auth-merge-scripts.js.map +1 -0
- package/dist/server/codex-auth-merge.test.d.ts +2 -0
- package/dist/server/codex-auth-merge.test.d.ts.map +1 -0
- package/dist/server/codex-auth-merge.test.js +714 -0
- package/dist/server/codex-auth-merge.test.js.map +1 -0
- package/dist/server/codex-auth-seed-write.d.ts +30 -0
- package/dist/server/codex-auth-seed-write.d.ts.map +1 -0
- package/dist/server/codex-auth-seed-write.js +41 -0
- package/dist/server/codex-auth-seed-write.js.map +1 -0
- package/dist/server/codex-home.d.ts +169 -0
- package/dist/server/codex-home.d.ts.map +1 -0
- package/dist/server/codex-home.js +822 -0
- package/dist/server/codex-home.js.map +1 -0
- package/dist/server/codex-home.test.d.ts +2 -0
- package/dist/server/codex-home.test.d.ts.map +1 -0
- package/dist/server/codex-home.test.js +1287 -0
- package/dist/server/codex-home.test.js.map +1 -0
- package/dist/server/config-schema.d.ts +3 -0
- package/dist/server/config-schema.d.ts.map +1 -0
- package/dist/server/config-schema.js +67 -0
- package/dist/server/config-schema.js.map +1 -0
- package/dist/server/device-login-export.d.ts +56 -0
- package/dist/server/device-login-export.d.ts.map +1 -0
- package/dist/server/device-login-export.js +230 -0
- package/dist/server/device-login-export.js.map +1 -0
- package/dist/server/device-login-export.test.d.ts +2 -0
- package/dist/server/device-login-export.test.d.ts.map +1 -0
- package/dist/server/device-login-export.test.js +245 -0
- package/dist/server/device-login-export.test.js.map +1 -0
- package/dist/server/device-login-parse.d.ts +20 -0
- package/dist/server/device-login-parse.d.ts.map +1 -0
- package/dist/server/device-login-parse.js +155 -0
- package/dist/server/device-login-parse.js.map +1 -0
- package/dist/server/device-login-parse.test.d.ts +2 -0
- package/dist/server/device-login-parse.test.d.ts.map +1 -0
- package/dist/server/device-login-parse.test.js +269 -0
- package/dist/server/device-login-parse.test.js.map +1 -0
- package/dist/server/device-login-runner.d.ts +69 -0
- package/dist/server/device-login-runner.d.ts.map +1 -0
- package/dist/server/device-login-runner.js +110 -0
- package/dist/server/device-login-runner.js.map +1 -0
- package/dist/server/device-login-runner.test.d.ts +2 -0
- package/dist/server/device-login-runner.test.d.ts.map +1 -0
- package/dist/server/device-login-runner.test.js +201 -0
- package/dist/server/device-login-runner.test.js.map +1 -0
- package/dist/server/engine-availability.test.d.ts +2 -0
- package/dist/server/engine-availability.test.d.ts.map +1 -0
- package/dist/server/engine-availability.test.js +41 -0
- package/dist/server/engine-availability.test.js.map +1 -0
- package/dist/server/execute.acp-fallback.test.d.ts +2 -0
- package/dist/server/execute.acp-fallback.test.d.ts.map +1 -0
- package/dist/server/execute.acp-fallback.test.js +123 -0
- package/dist/server/execute.acp-fallback.test.js.map +1 -0
- package/dist/server/execute.auth-precedence.test.d.ts +2 -0
- package/dist/server/execute.auth-precedence.test.d.ts.map +1 -0
- package/dist/server/execute.auth-precedence.test.js +137 -0
- package/dist/server/execute.auth-precedence.test.js.map +1 -0
- package/dist/server/execute.auth.test.d.ts +2 -0
- package/dist/server/execute.auth.test.d.ts.map +1 -0
- package/dist/server/execute.auth.test.js +197 -0
- package/dist/server/execute.auth.test.js.map +1 -0
- package/dist/server/execute.d.ts +40 -0
- package/dist/server/execute.d.ts.map +1 -0
- package/dist/server/execute.js +1485 -0
- package/dist/server/execute.js.map +1 -0
- package/dist/server/execute.remote.test.d.ts +2 -0
- package/dist/server/execute.remote.test.d.ts.map +1 -0
- package/dist/server/execute.remote.test.js +851 -0
- package/dist/server/execute.remote.test.js.map +1 -0
- package/dist/server/execute.ssh-host-auth.test.d.ts +2 -0
- package/dist/server/execute.ssh-host-auth.test.d.ts.map +1 -0
- package/dist/server/execute.ssh-host-auth.test.js +214 -0
- package/dist/server/execute.ssh-host-auth.test.js.map +1 -0
- package/dist/server/execute.stderr-error.test.d.ts +2 -0
- package/dist/server/execute.stderr-error.test.d.ts.map +1 -0
- package/dist/server/execute.stderr-error.test.js +142 -0
- package/dist/server/execute.stderr-error.test.js.map +1 -0
- package/dist/server/execute.test.d.ts +2 -0
- package/dist/server/execute.test.d.ts.map +1 -0
- package/dist/server/execute.test.js +300 -0
- package/dist/server/execute.test.js.map +1 -0
- package/dist/server/index.d.ts +18 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +84 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/output-inactivity-monitor.d.ts +62 -0
- package/dist/server/output-inactivity-monitor.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.integration.test.d.ts +2 -0
- package/dist/server/output-inactivity-monitor.integration.test.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.integration.test.js +136 -0
- package/dist/server/output-inactivity-monitor.integration.test.js.map +1 -0
- package/dist/server/output-inactivity-monitor.js +112 -0
- package/dist/server/output-inactivity-monitor.js.map +1 -0
- package/dist/server/output-inactivity-monitor.test.d.ts +2 -0
- package/dist/server/output-inactivity-monitor.test.d.ts.map +1 -0
- package/dist/server/output-inactivity-monitor.test.js +284 -0
- package/dist/server/output-inactivity-monitor.test.js.map +1 -0
- package/dist/server/parse.d.ts +69 -0
- package/dist/server/parse.d.ts.map +1 -0
- package/dist/server/parse.js +278 -0
- package/dist/server/parse.js.map +1 -0
- package/dist/server/parse.test.d.ts +2 -0
- package/dist/server/parse.test.d.ts.map +1 -0
- package/dist/server/parse.test.js +203 -0
- package/dist/server/parse.test.js.map +1 -0
- package/dist/server/process-activity-monitor.d.ts +21 -0
- package/dist/server/process-activity-monitor.d.ts.map +1 -0
- package/dist/server/process-activity-monitor.js +103 -0
- package/dist/server/process-activity-monitor.js.map +1 -0
- package/dist/server/process-activity-monitor.test.d.ts +2 -0
- package/dist/server/process-activity-monitor.test.d.ts.map +1 -0
- package/dist/server/process-activity-monitor.test.js +82 -0
- package/dist/server/process-activity-monitor.test.js.map +1 -0
- package/dist/server/quota-spawn-error.test.d.ts +2 -0
- package/dist/server/quota-spawn-error.test.d.ts.map +1 -0
- package/dist/server/quota-spawn-error.test.js +343 -0
- package/dist/server/quota-spawn-error.test.js.map +1 -0
- package/dist/server/quota.d.ts +66 -0
- package/dist/server/quota.d.ts.map +1 -0
- package/dist/server/quota.js +577 -0
- package/dist/server/quota.js.map +1 -0
- package/dist/server/runtime-config.d.ts +11 -0
- package/dist/server/runtime-config.d.ts.map +1 -0
- package/dist/server/runtime-config.js +389 -0
- package/dist/server/runtime-config.js.map +1 -0
- package/dist/server/runtime-config.test.d.ts +2 -0
- package/dist/server/runtime-config.test.d.ts.map +1 -0
- package/dist/server/runtime-config.test.js +389 -0
- package/dist/server/runtime-config.test.js.map +1 -0
- package/dist/server/skills.d.ts +8 -0
- package/dist/server/skills.d.ts.map +1 -0
- package/dist/server/skills.js +26 -0
- package/dist/server/skills.js.map +1 -0
- package/dist/server/ssh-host-runtime.d.ts +24 -0
- package/dist/server/ssh-host-runtime.d.ts.map +1 -0
- package/dist/server/ssh-host-runtime.js +84 -0
- package/dist/server/ssh-host-runtime.js.map +1 -0
- package/dist/server/ssh-session-state.d.ts +18 -0
- package/dist/server/ssh-session-state.d.ts.map +1 -0
- package/dist/server/ssh-session-state.js +11 -0
- package/dist/server/ssh-session-state.js.map +1 -0
- package/dist/server/test.d.ts +3 -0
- package/dist/server/test.d.ts.map +1 -0
- package/dist/server/test.js +531 -0
- package/dist/server/test.js.map +1 -0
- package/dist/server/test.remote.test.d.ts +2 -0
- package/dist/server/test.remote.test.d.ts.map +1 -0
- package/dist/server/test.remote.test.js +596 -0
- package/dist/server/test.remote.test.js.map +1 -0
- package/dist/ui/build-config.d.ts +10 -0
- package/dist/ui/build-config.d.ts.map +1 -0
- package/dist/ui/build-config.js +284 -0
- package/dist/ui/build-config.js.map +1 -0
- package/dist/ui/build-config.test.d.ts +2 -0
- package/dist/ui/build-config.test.d.ts.map +1 -0
- package/dist/ui/build-config.test.js +367 -0
- package/dist/ui/build-config.test.js.map +1 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +8 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/parse-stdout.d.ts +3 -0
- package/dist/ui/parse-stdout.d.ts.map +1 -0
- package/dist/ui/parse-stdout.js +265 -0
- package/dist/ui/parse-stdout.js.map +1 -0
- package/dist/ui/parse-stdout.test.d.ts +2 -0
- package/dist/ui/parse-stdout.test.d.ts.map +1 -0
- package/dist/ui/parse-stdout.test.js +77 -0
- package/dist/ui/parse-stdout.test.js.map +1 -0
- package/package.json +55 -4
- package/skills/agentmail/SKILL.md +70 -0
- package/skills/complain/LICENSE +27 -0
- package/skills/complain/SKILL.md +68 -0
- package/skills/paperclip/SKILL.md +864 -0
- package/skills/paperclip/references/api-reference.md +1814 -0
- package/skills/paperclip/references/artifacts.md +163 -0
- package/skills/paperclip/references/cases.md +570 -0
- package/skills/paperclip/references/company-skills.md +266 -0
- package/skills/paperclip/references/issue-documents.md +58 -0
- package/skills/paperclip/references/issue-workspaces.md +94 -0
- package/skills/paperclip/references/routines.md +249 -0
- package/skills/paperclip/references/run-diagnostics.md +28 -0
- package/skills/paperclip/references/workflows.md +141 -0
- package/skills/paperclip/scripts/paperclip-issue-update.sh +166 -0
- package/skills/paperclip/scripts/paperclip-upload-artifact.sh +603 -0
- package/skills/paperclip/scripts/submit-agent-commentary.mjs +52 -0
- package/skills/paperclip-board/SKILL.md +633 -0
- package/skills/paperclip-converting-plans-to-tasks/SKILL.md +28 -0
- package/skills/paperclip-create-agent/SKILL.md +213 -0
- package/skills/paperclip-create-agent/references/agent-instruction-templates.md +24 -0
- package/skills/paperclip-create-agent/references/agents/coder.md +18 -0
- package/skills/paperclip-create-agent/references/agents/qa.md +18 -0
- package/skills/paperclip-create-agent/references/agents/securityengineer.md +26 -0
- package/skills/paperclip-create-agent/references/agents/uxdesigner.md +18 -0
- package/skills/paperclip-create-agent/references/api-reference.md +110 -0
- package/skills/paperclip-create-agent/references/baseline-role-guide.md +22 -0
- package/skills/paperclip-create-agent/references/draft-review-checklist.md +29 -0
- package/skills/para-memory-files/SKILL.md +100 -0
- package/skills/para-memory-files/references/schemas.md +35 -0
- package/skills/slack/SKILL.md +92 -0
- package/skills/suggestion-box/LICENSE +27 -0
- package/skills/suggestion-box/SKILL.md +77 -0
- package/README.md +0 -3
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { lstat, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
|
+
import os from "node:os";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
5
|
+
// Captured Codex `home` asset descriptor + the sandbox `auth.json` fixture the
|
|
6
|
+
// mocked runtime hands back during teardown. Mutated per-test so a single
|
|
7
|
+
// harness drives every round-trip case through the REAL `execute()` wiring.
|
|
8
|
+
const captured = { assets: [] };
|
|
9
|
+
const sandboxAuthFixture = { bytes: Buffer.from("{}") };
|
|
10
|
+
const REMOTE_RUNTIME_ROOT = "/remote/workspace/.paperclip-runtime/codex";
|
|
11
|
+
const { runChildProcess, ensureCommandResolvable, resolveCommandForLogs, prepareAdapterExecutionTargetRuntime, startAdapterExecutionTargetPaperclipBridge, } = vi.hoisted(() => ({
|
|
12
|
+
runChildProcess: vi.fn(async () => ({
|
|
13
|
+
exitCode: 0,
|
|
14
|
+
signal: null,
|
|
15
|
+
timedOut: false,
|
|
16
|
+
stdout: "",
|
|
17
|
+
stderr: "",
|
|
18
|
+
pid: 321,
|
|
19
|
+
startedAt: new Date().toISOString(),
|
|
20
|
+
})),
|
|
21
|
+
ensureCommandResolvable: vi.fn(async () => undefined),
|
|
22
|
+
resolveCommandForLogs: vi.fn(async () => "/usr/bin/codex"),
|
|
23
|
+
prepareAdapterExecutionTargetRuntime: vi.fn(),
|
|
24
|
+
startAdapterExecutionTargetPaperclipBridge: vi.fn(async () => null),
|
|
25
|
+
}));
|
|
26
|
+
vi.mock("@paperclipai/adapter-utils/server-utils", async () => {
|
|
27
|
+
const actual = await vi.importActual("@paperclipai/adapter-utils/server-utils");
|
|
28
|
+
return {
|
|
29
|
+
...actual,
|
|
30
|
+
ensureCommandResolvable,
|
|
31
|
+
resolveCommandForLogs,
|
|
32
|
+
runChildProcess,
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
vi.mock("@paperclipai/adapter-utils/execution-target", async () => {
|
|
36
|
+
const actual = await vi.importActual("@paperclipai/adapter-utils/execution-target");
|
|
37
|
+
return {
|
|
38
|
+
...actual,
|
|
39
|
+
prepareAdapterExecutionTargetRuntime,
|
|
40
|
+
startAdapterExecutionTargetPaperclipBridge,
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
import { execute } from "./execute.js";
|
|
44
|
+
// Mirror the sandbox core's restore closure: capture the assets `execute()`
|
|
45
|
+
// declares, then during teardown invoke each asset's `restore` with an injected
|
|
46
|
+
// `readFile` (returns the sandbox fixture) and the remote asset dir. This drives
|
|
47
|
+
// the exact `restore` contribution the Codex adapter wires in production without
|
|
48
|
+
// needing a live sandbox.
|
|
49
|
+
prepareAdapterExecutionTargetRuntime.mockImplementation(async (input) => {
|
|
50
|
+
captured.assets = input.assets ?? [];
|
|
51
|
+
return {
|
|
52
|
+
target: { kind: "remote", transport: "ssh" },
|
|
53
|
+
workspaceRemoteDir: "/remote/workspace",
|
|
54
|
+
runtimeRootDir: REMOTE_RUNTIME_ROOT,
|
|
55
|
+
assetDirs: { home: `${REMOTE_RUNTIME_ROOT}/home` },
|
|
56
|
+
restoreWorkspace: async () => {
|
|
57
|
+
for (const asset of captured.assets) {
|
|
58
|
+
if (!asset.restore)
|
|
59
|
+
continue;
|
|
60
|
+
await asset.restore({
|
|
61
|
+
assetDir: `${REMOTE_RUNTIME_ROOT}/home`,
|
|
62
|
+
readFile: async () => sandboxAuthFixture.bytes,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
describe("codex execute — outbound auth copy-back restore contribution", () => {
|
|
69
|
+
const cleanupDirs = [];
|
|
70
|
+
let savedCodexHomeEnv;
|
|
71
|
+
afterEach(async () => {
|
|
72
|
+
vi.clearAllMocks();
|
|
73
|
+
vi.unstubAllEnvs();
|
|
74
|
+
if (savedCodexHomeEnv === undefined) {
|
|
75
|
+
delete process.env.CODEX_HOME;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
process.env.CODEX_HOME = savedCodexHomeEnv;
|
|
79
|
+
}
|
|
80
|
+
while (cleanupDirs.length > 0) {
|
|
81
|
+
const dir = cleanupDirs.pop();
|
|
82
|
+
if (!dir)
|
|
83
|
+
continue;
|
|
84
|
+
await rm(dir, { recursive: true, force: true }).catch(() => undefined);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
function subscriptionAuth(input) {
|
|
88
|
+
return JSON.stringify({
|
|
89
|
+
tokens: {
|
|
90
|
+
id_token: `id-token-${input.marker}`,
|
|
91
|
+
access_token: `access-token-${input.marker}`,
|
|
92
|
+
refresh_token: `refresh-token-${input.marker}`,
|
|
93
|
+
account_id: input.accountId,
|
|
94
|
+
},
|
|
95
|
+
...(input.lastRefresh ? { last_refresh: input.lastRefresh } : {}),
|
|
96
|
+
}, null, 2);
|
|
97
|
+
}
|
|
98
|
+
async function runTeardown(input) {
|
|
99
|
+
const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-codex-copyback-e2e-"));
|
|
100
|
+
cleanupDirs.push(rootDir);
|
|
101
|
+
const workspaceDir = path.join(rootDir, "workspace");
|
|
102
|
+
// The shared host home is what `resolveSharedCodexHomeDir` returns
|
|
103
|
+
// (process.env.CODEX_HOME) — the copy-back target. Point it at a tmp dir so
|
|
104
|
+
// the round-trip never touches the real host credential.
|
|
105
|
+
const sharedHostHome = path.join(rootDir, "shared-codex-home");
|
|
106
|
+
await mkdir(workspaceDir, { recursive: true });
|
|
107
|
+
await mkdir(sharedHostHome, { recursive: true });
|
|
108
|
+
const hostAuthPath = path.join(sharedHostHome, "auth.json");
|
|
109
|
+
await writeFile(hostAuthPath, input.hostAuth, { mode: 0o600 });
|
|
110
|
+
savedCodexHomeEnv = process.env.CODEX_HOME;
|
|
111
|
+
process.env.CODEX_HOME = sharedHostHome;
|
|
112
|
+
sandboxAuthFixture.bytes = Buffer.from(input.sandboxAuth, "utf8");
|
|
113
|
+
const commandArgs = [];
|
|
114
|
+
const executionResult = await execute({
|
|
115
|
+
runId: "run-copyback-e2e",
|
|
116
|
+
...(input.withIdentity ? {
|
|
117
|
+
authToken: "assigned-run-token",
|
|
118
|
+
agentIdentity: { keyId: "sha256:test", publicKeyPem: "public", privateKeyPem: "private" },
|
|
119
|
+
} : {}),
|
|
120
|
+
onMeta: async (meta) => { commandArgs.push(...(meta.commandArgs ?? [])); },
|
|
121
|
+
onProviderStopped: input.onProviderStopped,
|
|
122
|
+
agent: {
|
|
123
|
+
id: "agent-1",
|
|
124
|
+
companyId: "company-1",
|
|
125
|
+
name: "CodexCoder",
|
|
126
|
+
adapterType: "codex_local",
|
|
127
|
+
adapterConfig: {},
|
|
128
|
+
},
|
|
129
|
+
runtime: { sessionId: null, sessionParams: null, sessionDisplayId: null, taskKey: null },
|
|
130
|
+
config: {
|
|
131
|
+
command: "codex",
|
|
132
|
+
engine: "cli",
|
|
133
|
+
// External CODEX_HOME (outside the managed company tree) so no managed
|
|
134
|
+
// seeding rewrites auth.json before teardown; equals the shared host home.
|
|
135
|
+
env: { CODEX_HOME: sharedHostHome, ...input.env },
|
|
136
|
+
},
|
|
137
|
+
context: {
|
|
138
|
+
paperclipWorkspace: {
|
|
139
|
+
cwd: workspaceDir,
|
|
140
|
+
source: "project_primary",
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
executionTransport: {
|
|
144
|
+
remoteExecution: {
|
|
145
|
+
host: "127.0.0.1",
|
|
146
|
+
port: 2222,
|
|
147
|
+
username: "fixture",
|
|
148
|
+
remoteWorkspacePath: "/remote/workspace",
|
|
149
|
+
remoteCwd: "/remote/workspace",
|
|
150
|
+
privateKey: "PRIVATE KEY",
|
|
151
|
+
knownHosts: "[127.0.0.1]:2222 ssh-ed25519 AAAA",
|
|
152
|
+
strictHostKeyChecking: true,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
onLog: async () => { },
|
|
156
|
+
});
|
|
157
|
+
return {
|
|
158
|
+
commandArgs,
|
|
159
|
+
finalHostAuth: await readFile(hostAuthPath, "utf8"),
|
|
160
|
+
finalHostMode: (await lstat(hostAuthPath)).mode & 0o777,
|
|
161
|
+
executionResult,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
it.each([true, false])("delivers configured service tokens to CLI shells while isolating host and provider credentials (identity: %s)", async (withIdentity) => {
|
|
165
|
+
vi.stubEnv("DATABASE_URL", "postgres://operator:host-password@host/private");
|
|
166
|
+
vi.stubEnv("HOST_DATABASE_PASSWORD", "host-password");
|
|
167
|
+
const { commandArgs } = await runTeardown({ sandboxAuth: "{}", hostAuth: "{}", withIdentity,
|
|
168
|
+
env: { SLACK_BOT_TOKEN: "assigned-tool-token", OPENAI_API_KEY: "provider-key-canary" },
|
|
169
|
+
});
|
|
170
|
+
const policy = commandArgs.find(arg => arg.startsWith("shell_environment_policy.include_only="));
|
|
171
|
+
const keys = policy ? JSON.parse(policy.slice(policy.indexOf("=") + 1)) : [];
|
|
172
|
+
expect(keys).toEqual(expect.arrayContaining(["SLACK_BOT_TOKEN", "SSL_CERT_FILE", "SSL_CERT_DIR", "GIT_SSL_CAINFO", "NODE_EXTRA_CA_CERTS", "DENO_CERT", "REQUESTS_CA_BUNDLE", "CURL_CA_BUNDLE"]));
|
|
173
|
+
if (withIdentity)
|
|
174
|
+
expect(keys).toEqual(expect.arrayContaining([
|
|
175
|
+
"PAPERCLIP_API_KEY", "PAPERCLIP_AGENT_PRIVATE_KEY",
|
|
176
|
+
]));
|
|
177
|
+
expect(keys).not.toContain("OPENAI_API_KEY");
|
|
178
|
+
expect(keys).not.toContain("DATABASE_URL");
|
|
179
|
+
expect(keys).not.toContain("HOST_DATABASE_PASSWORD");
|
|
180
|
+
expect(commandArgs.join(" ")).not.toContain("assigned-run-token");
|
|
181
|
+
expect(commandArgs.join(" ")).not.toContain("assigned-tool-token");
|
|
182
|
+
});
|
|
183
|
+
it("collects stopped-provider instruction edits before a throwing remote restore", async () => {
|
|
184
|
+
const order = [];
|
|
185
|
+
prepareAdapterExecutionTargetRuntime.mockImplementationOnce(async () => ({
|
|
186
|
+
target: { kind: "remote", transport: "ssh" }, workspaceRemoteDir: "/remote/workspace",
|
|
187
|
+
runtimeRootDir: REMOTE_RUNTIME_ROOT, assetDirs: { home: `${REMOTE_RUNTIME_ROOT}/home` },
|
|
188
|
+
restoreWorkspace: async () => { order.push("restore"); throw new Error("restore failed"); },
|
|
189
|
+
}));
|
|
190
|
+
await expect(runTeardown({ sandboxAuth: "{}", hostAuth: "{}", onProviderStopped: async () => { order.push("collect"); } })).rejects.toThrow("restore failed");
|
|
191
|
+
expect(order).toEqual(["collect", "restore"]);
|
|
192
|
+
});
|
|
193
|
+
it("collects after a failed provider exit before restoring its workspace", async () => {
|
|
194
|
+
runChildProcess.mockResolvedValueOnce({ exitCode: 1, signal: null, timedOut: false, stdout: "", stderr: "provider failed", pid: 321, startedAt: new Date().toISOString() });
|
|
195
|
+
const collected = vi.fn(async () => { });
|
|
196
|
+
await runTeardown({ sandboxAuth: "{}", hostAuth: "{}", onProviderStopped: collected });
|
|
197
|
+
expect(collected).toHaveBeenCalledOnce();
|
|
198
|
+
});
|
|
199
|
+
it("stops the bridge and restores the workspace when instruction collection rejects", async () => {
|
|
200
|
+
const order = [];
|
|
201
|
+
startAdapterExecutionTargetPaperclipBridge.mockResolvedValueOnce({
|
|
202
|
+
env: {}, stop: async () => { order.push("bridge-stop"); },
|
|
203
|
+
});
|
|
204
|
+
prepareAdapterExecutionTargetRuntime.mockImplementationOnce(async () => ({
|
|
205
|
+
target: { kind: "remote", transport: "ssh" }, workspaceRemoteDir: "/remote/workspace",
|
|
206
|
+
runtimeRootDir: REMOTE_RUNTIME_ROOT, assetDirs: { home: `${REMOTE_RUNTIME_ROOT}/home` },
|
|
207
|
+
restoreWorkspace: async () => { order.push("restore"); },
|
|
208
|
+
}));
|
|
209
|
+
await expect(runTeardown({ sandboxAuth: "{}", hostAuth: "{}", onProviderStopped: async () => {
|
|
210
|
+
order.push("collect");
|
|
211
|
+
throw new Error("instruction collection failed");
|
|
212
|
+
} })).rejects.toThrow("instruction collection failed");
|
|
213
|
+
expect(order).toEqual(["collect", "bridge-stop", "restore"]);
|
|
214
|
+
});
|
|
215
|
+
it("declares a Codex `home` asset carrying both inbound provision and outbound restore contributions", async () => {
|
|
216
|
+
await runTeardown({
|
|
217
|
+
sandboxAuth: subscriptionAuth({ accountId: "acct", lastRefresh: "2026-07-09T01:00:00Z", marker: "s" }),
|
|
218
|
+
hostAuth: subscriptionAuth({ accountId: "acct", lastRefresh: "2026-07-09T02:00:00Z", marker: "h" }),
|
|
219
|
+
});
|
|
220
|
+
const homeAsset = captured.assets.find((asset) => asset.key === "home");
|
|
221
|
+
expect(homeAsset).toBeDefined();
|
|
222
|
+
expect(homeAsset?.provision).toBeTruthy();
|
|
223
|
+
expect(typeof homeAsset?.restore).toBe("function");
|
|
224
|
+
});
|
|
225
|
+
it("round-trips a strictly-newer same-identity sandbox auth.json to the shared host at 0600 on teardown", async () => {
|
|
226
|
+
const sandboxAuth = subscriptionAuth({
|
|
227
|
+
accountId: "acct-same",
|
|
228
|
+
lastRefresh: "2026-07-09T02:00:00Z",
|
|
229
|
+
marker: "sandbox-newer",
|
|
230
|
+
});
|
|
231
|
+
const hostAuth = subscriptionAuth({
|
|
232
|
+
accountId: "acct-same",
|
|
233
|
+
lastRefresh: "2026-07-09T01:00:00Z",
|
|
234
|
+
marker: "host-older",
|
|
235
|
+
});
|
|
236
|
+
const result = await runTeardown({ sandboxAuth, hostAuth });
|
|
237
|
+
expect(result.finalHostAuth).toBe(sandboxAuth);
|
|
238
|
+
expect(result.finalHostMode).toBe(0o600);
|
|
239
|
+
});
|
|
240
|
+
it("keeps the host auth.json when the sandbox copy is a tie or older on teardown", async () => {
|
|
241
|
+
const cases = [
|
|
242
|
+
{
|
|
243
|
+
name: "tie",
|
|
244
|
+
sandboxAuth: subscriptionAuth({ accountId: "acct-same", lastRefresh: "2026-07-09T02:00:00Z", marker: "s-tie" }),
|
|
245
|
+
hostAuth: subscriptionAuth({ accountId: "acct-same", lastRefresh: "2026-07-09T02:00:00Z", marker: "h-tie" }),
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "older",
|
|
249
|
+
sandboxAuth: subscriptionAuth({ accountId: "acct-same", lastRefresh: "2026-07-09T01:00:00Z", marker: "s-old" }),
|
|
250
|
+
hostAuth: subscriptionAuth({ accountId: "acct-same", lastRefresh: "2026-07-09T02:00:00Z", marker: "h-new" }),
|
|
251
|
+
},
|
|
252
|
+
];
|
|
253
|
+
for (const entry of cases) {
|
|
254
|
+
const result = await runTeardown({ sandboxAuth: entry.sandboxAuth, hostAuth: entry.hostAuth });
|
|
255
|
+
expect(result.finalHostAuth, entry.name).toBe(entry.hostAuth);
|
|
256
|
+
expect(result.finalHostMode, entry.name).toBe(0o600);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
it("surfaces workspace restore failure after successful provider execution", async () => {
|
|
260
|
+
prepareAdapterExecutionTargetRuntime.mockResolvedValueOnce({
|
|
261
|
+
target: { kind: "remote", transport: "ssh" },
|
|
262
|
+
workspaceRemoteDir: "/remote/workspace",
|
|
263
|
+
runtimeRootDir: REMOTE_RUNTIME_ROOT,
|
|
264
|
+
assetDirs: { home: `${REMOTE_RUNTIME_ROOT}/home` },
|
|
265
|
+
restoreWorkspace: async () => {
|
|
266
|
+
throw new Error("workspace copy-back failed");
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
await expect(runTeardown({
|
|
270
|
+
sandboxAuth: subscriptionAuth({ accountId: "acct", marker: "sandbox" }),
|
|
271
|
+
hostAuth: subscriptionAuth({ accountId: "acct", marker: "host" }),
|
|
272
|
+
})).rejects.toThrow("workspace copy-back failed");
|
|
273
|
+
});
|
|
274
|
+
it("preserves a provider failure when workspace restore also fails", async () => {
|
|
275
|
+
runChildProcess.mockResolvedValueOnce({
|
|
276
|
+
exitCode: 1,
|
|
277
|
+
signal: null,
|
|
278
|
+
timedOut: false,
|
|
279
|
+
stdout: "",
|
|
280
|
+
stderr: "provider failed first",
|
|
281
|
+
pid: 321,
|
|
282
|
+
startedAt: new Date().toISOString(),
|
|
283
|
+
});
|
|
284
|
+
prepareAdapterExecutionTargetRuntime.mockResolvedValueOnce({
|
|
285
|
+
target: { kind: "remote", transport: "ssh" },
|
|
286
|
+
workspaceRemoteDir: "/remote/workspace",
|
|
287
|
+
runtimeRootDir: REMOTE_RUNTIME_ROOT,
|
|
288
|
+
assetDirs: { home: `${REMOTE_RUNTIME_ROOT}/home` },
|
|
289
|
+
restoreWorkspace: async () => {
|
|
290
|
+
throw new Error("workspace copy-back failed second");
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
const result = await runTeardown({
|
|
294
|
+
sandboxAuth: subscriptionAuth({ accountId: "acct", marker: "sandbox" }),
|
|
295
|
+
hostAuth: subscriptionAuth({ accountId: "acct", marker: "host" }),
|
|
296
|
+
});
|
|
297
|
+
expect(result.executionResult.errorMessage).toBe("provider failed first");
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
//# sourceMappingURL=execute.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.test.js","sourceRoot":"","sources":["../../src/server/execute.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAI7D,+EAA+E;AAC/E,0EAA0E;AAC1E,4EAA4E;AAC5E,MAAM,QAAQ,GAA6C,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAC1E,MAAM,kBAAkB,GAAsB,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC3E,MAAM,mBAAmB,GAAG,4CAA4C,CAAC;AAEzE,MAAM,EACJ,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,oCAAoC,EACpC,0CAA0C,GAC3C,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACpB,eAAe,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAClC,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE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M,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { execute, ensureCodexSkillsInjected } from "./execute.js";
|
|
2
|
+
export { resolveCodexAuthPrecedence, CODEX_SANDBOX_AUTH_PRECEDENCE_WARNING, CODEX_SANDBOX_AUTH_PRECEDENCE_WARNING_LOG_LINE, CODEX_SANDBOX_AUTH_EXISTS_COMMAND, type CodexAuthPrecedenceInput, type CodexAuthPrecedenceResolution, type CodexAuthPrecedenceWinner, } from "./auth-precedence.js";
|
|
3
|
+
export * from "./acp.js";
|
|
4
|
+
export { getConfigSchema } from "./config-schema.js";
|
|
5
|
+
export { reconcileManagedCodexHome, isManagedCodexHomePath, resolveManagedCodexHomeDir, evaluateCodexCredentialReadiness, type ReconcileManagedCodexHomeInput, type ReconcileManagedCodexHomeResult, type ReconcileManagedCodexHomeStatus, type CodexCredentialReadiness, type CodexCredentialReadinessInput, type CodexCredentialAuthMode, } from "./codex-home.js";
|
|
6
|
+
export { listCodexSkills, syncCodexSkills } from "./skills.js";
|
|
7
|
+
export { testEnvironment } from "./test.js";
|
|
8
|
+
export { runDeviceLogin, CODEX_DEVICE_LOGIN_COMMAND, type SandboxLoginDriver, type DeviceLoginPromptSink, type DeviceLoginOutcome, type DeviceLoginResult, type RunDeviceLoginOptions, } from "./device-login-runner.js";
|
|
9
|
+
export { DEVICE_LOGIN_URL, parseDeviceLoginPrompt, type DeviceLoginPrompt } from "./device-login-parse.js";
|
|
10
|
+
export { promoteDeviceLoginCredential, checkStagedCredentialReadiness, DeviceLoginReadinessError, type CredentialReadinessResult, type PromoteDeviceLoginCredentialInput, type PromoteDeviceLoginCredentialOutcome, type PromoteDeviceLoginCredentialResult, } from "./adapter-auth-promotion.js";
|
|
11
|
+
export { withCodexAccountHomePromotionLock, withAccountHomeSecretMutationLock, assertAccountHomeCacheDirStillValid, resolveCodexAuthCacheDir, isCodexAuthCachePath, readSubscriptionAccountId, } from "./codex-auth-cache.js";
|
|
12
|
+
export { parseCodexJsonl, isCodexHarnessCrash, isCodexProviderQuotaError, isCodexTransientUpstreamError, isCodexUnknownSessionError } from "./parse.js";
|
|
13
|
+
export { getQuotaWindows, readCodexAuthInfo, readCodexToken, fetchCodexQuota, fetchCodexRpcQuota, mapCodexRpcQuota, secondsToWindowLabel, fetchWithTimeout, codexHomeDir, } from "./quota.js";
|
|
14
|
+
import type { AdapterSessionCodec } from "@paperclipai/adapter-utils";
|
|
15
|
+
export declare const sessionCodec: AdapterSessionCodec;
|
|
16
|
+
export { decideCodexAuthMerge } from "./codex-auth-merge-decision.js";
|
|
17
|
+
export { copyBackCodexAuth } from "./codex-auth-copyback.js";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,EACjC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,gCAAgC,EAChC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAA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_AUTH_PRECEDENCE_WARNING_LOG_LINE, CODEX_SANDBOX_AUTH_EXISTS_COMMAND, } from "./auth-precedence.js";
|
|
3
|
+
export * from "./acp.js";
|
|
4
|
+
export { getConfigSchema } from "./config-schema.js";
|
|
5
|
+
export { reconcileManagedCodexHome, isManagedCodexHomePath, resolveManagedCodexHomeDir, evaluateCodexCredentialReadiness, } from "./codex-home.js";
|
|
6
|
+
export { listCodexSkills, syncCodexSkills } from "./skills.js";
|
|
7
|
+
export { testEnvironment } from "./test.js";
|
|
8
|
+
export { runDeviceLogin, CODEX_DEVICE_LOGIN_COMMAND, } from "./device-login-runner.js";
|
|
9
|
+
export { DEVICE_LOGIN_URL, parseDeviceLoginPrompt } from "./device-login-parse.js";
|
|
10
|
+
export { promoteDeviceLoginCredential, checkStagedCredentialReadiness, DeviceLoginReadinessError, } from "./adapter-auth-promotion.js";
|
|
11
|
+
export { withCodexAccountHomePromotionLock, withAccountHomeSecretMutationLock, assertAccountHomeCacheDirStillValid, resolveCodexAuthCacheDir, isCodexAuthCachePath, readSubscriptionAccountId, } from "./codex-auth-cache.js";
|
|
12
|
+
export { parseCodexJsonl, isCodexHarnessCrash, isCodexProviderQuotaError, isCodexTransientUpstreamError, isCodexUnknownSessionError } from "./parse.js";
|
|
13
|
+
export { getQuotaWindows, readCodexAuthInfo, readCodexToken, fetchCodexQuota, fetchCodexRpcQuota, mapCodexRpcQuota, secondsToWindowLabel, fetchWithTimeout, codexHomeDir, } from "./quota.js";
|
|
14
|
+
import { sessionCodec as acpxSessionCodec } from "@paperclipai/adapter-utils/acpx-engine/session-codec";
|
|
15
|
+
import { normalizeAdapterExecutionTargetSessionIdentity } from "@paperclipai/adapter-utils/execution-target";
|
|
16
|
+
function readNonEmptyString(value) {
|
|
17
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
|
|
18
|
+
}
|
|
19
|
+
function remoteSessionMetadata(record) {
|
|
20
|
+
const remoteExecution = normalizeAdapterExecutionTargetSessionIdentity(record.remoteExecution);
|
|
21
|
+
const conversationId = readNonEmptyString(record.sshCodexConversationId);
|
|
22
|
+
const scope = readNonEmptyString(record.sshCodexAccountScope);
|
|
23
|
+
return {
|
|
24
|
+
...(remoteExecution ? { remoteExecution } : {}),
|
|
25
|
+
...(conversationId && scope && /^[a-f0-9]{64}$/.test(conversationId) && /^[a-f0-9]{64}$/.test(scope)
|
|
26
|
+
? { sshCodexConversationId: conversationId, sshCodexAccountScope: scope } : {}),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export const sessionCodec = {
|
|
30
|
+
deserialize(raw) {
|
|
31
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw))
|
|
32
|
+
return null;
|
|
33
|
+
const record = raw;
|
|
34
|
+
const sessionId = readNonEmptyString(record.sessionId) ?? readNonEmptyString(record.session_id);
|
|
35
|
+
if (!sessionId)
|
|
36
|
+
return acpxSessionCodec.deserialize(raw);
|
|
37
|
+
const cwd = readNonEmptyString(record.cwd) ??
|
|
38
|
+
readNonEmptyString(record.workdir) ??
|
|
39
|
+
readNonEmptyString(record.folder);
|
|
40
|
+
const workspaceId = readNonEmptyString(record.workspaceId) ?? readNonEmptyString(record.workspace_id);
|
|
41
|
+
const repoUrl = readNonEmptyString(record.repoUrl) ?? readNonEmptyString(record.repo_url);
|
|
42
|
+
const repoRef = readNonEmptyString(record.repoRef) ?? readNonEmptyString(record.repo_ref);
|
|
43
|
+
return {
|
|
44
|
+
sessionId,
|
|
45
|
+
...remoteSessionMetadata(record),
|
|
46
|
+
...(cwd ? { cwd } : {}),
|
|
47
|
+
...(workspaceId ? { workspaceId } : {}),
|
|
48
|
+
...(repoUrl ? { repoUrl } : {}),
|
|
49
|
+
...(repoRef ? { repoRef } : {}),
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
serialize(params) {
|
|
53
|
+
if (!params)
|
|
54
|
+
return null;
|
|
55
|
+
const sessionId = readNonEmptyString(params.sessionId) ?? readNonEmptyString(params.session_id);
|
|
56
|
+
if (!sessionId)
|
|
57
|
+
return acpxSessionCodec.serialize(params);
|
|
58
|
+
const cwd = readNonEmptyString(params.cwd) ??
|
|
59
|
+
readNonEmptyString(params.workdir) ??
|
|
60
|
+
readNonEmptyString(params.folder);
|
|
61
|
+
const workspaceId = readNonEmptyString(params.workspaceId) ?? readNonEmptyString(params.workspace_id);
|
|
62
|
+
const repoUrl = readNonEmptyString(params.repoUrl) ?? readNonEmptyString(params.repo_url);
|
|
63
|
+
const repoRef = readNonEmptyString(params.repoRef) ?? readNonEmptyString(params.repo_ref);
|
|
64
|
+
return {
|
|
65
|
+
sessionId,
|
|
66
|
+
...remoteSessionMetadata(params),
|
|
67
|
+
...(cwd ? { cwd } : {}),
|
|
68
|
+
...(workspaceId ? { workspaceId } : {}),
|
|
69
|
+
...(repoUrl ? { repoUrl } : {}),
|
|
70
|
+
...(repoRef ? { repoRef } : {}),
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
getDisplayId(params) {
|
|
74
|
+
if (!params)
|
|
75
|
+
return null;
|
|
76
|
+
return (readNonEmptyString(params.sessionId) ??
|
|
77
|
+
readNonEmptyString(params.session_id) ??
|
|
78
|
+
acpxSessionCodec.getDisplayId?.(params) ??
|
|
79
|
+
null);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
export { decideCodexAuthMerge } from "./codex-auth-merge-decision.js";
|
|
83
|
+
export { copyBackCodexAuth } from "./codex-auth-copyback.js";
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EACL,0BAA0B,EAC1B,qCAAqC,EACrC,8CAA8C,EAC9C,iCAAiC,GAIlC,MAAM,sBAAsB,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,OAAO,EAA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putInactivityMonitorResolution = {
|
|
4
|
+
mode: "default";
|
|
5
|
+
timeoutMs: number;
|
|
6
|
+
} | {
|
|
7
|
+
mode: "configured";
|
|
8
|
+
timeoutMs: number;
|
|
9
|
+
} | {
|
|
10
|
+
mode: "disabled";
|
|
11
|
+
reason: "explicit_null";
|
|
12
|
+
} | {
|
|
13
|
+
mode: "default";
|
|
14
|
+
timeoutMs: number;
|
|
15
|
+
reason: "non_positive";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Resolve the inactivity monitor timeout from raw adapter config.
|
|
19
|
+
*
|
|
20
|
+
* - `null` → disabled (explicit escape hatch).
|
|
21
|
+
* - missing/`undefined` → default 30m.
|
|
22
|
+
* - number > 0 → configured value.
|
|
23
|
+
* - number ≤ 0 → default 30m (and a `non_positive` note for logging).
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveCodexInactivityTimeout(rawValue: unknown): CodexOutputInactivityMonitorResolution;
|
|
26
|
+
export interface CodexOutputInactivityMonitorState {
|
|
27
|
+
fired: boolean;
|
|
28
|
+
spawnedAt: number;
|
|
29
|
+
lastEventAt: number;
|
|
30
|
+
firedAt: number | null;
|
|
31
|
+
outputChunkCount: number;
|
|
32
|
+
outputBytes: number;
|
|
33
|
+
parsedEventCount: number;
|
|
34
|
+
processActivityCount: number;
|
|
35
|
+
}
|
|
36
|
+
export interface CodexOutputInactivityMonitorOptions {
|
|
37
|
+
timeoutMs: number;
|
|
38
|
+
onFire: (state: CodexOutputInactivityMonitorState) => void;
|
|
39
|
+
now?: () => number;
|
|
40
|
+
setTimer?: (cb: () => void, ms: number) => unknown;
|
|
41
|
+
clearTimer?: (handle: unknown) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Per-line predicate. When omitted, any line that successfully parses as
|
|
44
|
+
* JSON via the codex JSONL parser counts as a heartbeat event.
|
|
45
|
+
*/
|
|
46
|
+
isHeartbeatLine?: (line: string) => boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface CodexOutputInactivityMonitorHandle {
|
|
49
|
+
noteOutputChunk(stream: "stdout" | "stderr", chunk: string): void;
|
|
50
|
+
noteProcessActivity(): void;
|
|
51
|
+
/** Returns the current state without stopping the timer. */
|
|
52
|
+
state(): CodexOutputInactivityMonitorState;
|
|
53
|
+
/** Cancels any pending timer and returns the final state. */
|
|
54
|
+
stop(): CodexOutputInactivityMonitorState;
|
|
55
|
+
}
|
|
56
|
+
export declare function createCodexOutputInactivityMonitor(options: CodexOutputInactivityMonitorOptions): CodexOutputInactivityMonitorHandle;
|
|
57
|
+
/**
|
|
58
|
+
* Format the inactivity monitor error message in the canonical
|
|
59
|
+
* `monitor: no codex activity (output or process) for {N}m {S}s` shape consumed by NEE-81.
|
|
60
|
+
*/
|
|
61
|
+
export declare function formatOutputInactivityMonitorErrorMessage(elapsedMs: number): string;
|
|
62
|
+
//# sourceMappingURL=output-inactivity-monitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-inactivity-monitor.d.ts","sourceRoot":"","sources":["../../src/server/output-inactivity-monitor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0CAA0C,QAAiB,CAAC;AACzE,eAAO,MAAM,gDAAgD,OAAQ,CAAC;AAEtE,MAAM,MAAM,sCAAsC,GAC9C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnE;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,OAAO,GAAG,sCAAsC,CAOvG;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,IAAI,CAAC;IAC3D,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACnD,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAC7C;AAED,MAAM,WAAW,kCAAkC;IACjD,eAAe,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClE,mBAAmB,IAAI,IAAI,CAAC;IAC5B,4DAA4D;IAC5D,KAAK,IAAI,iCAAiC,CAAC;IAC3C,6DAA6D;IAC7D,IAAI,IAAI,iCAAiC,CAAC;CAC3C;AAQD,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,mCAAmC,GAC3C,kCAAkC,CA0EpC;AAED;;;GAGG;AACH,wBAAgB,yCAAyC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKnF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-inactivity-monitor.integration.test.d.ts","sourceRoot":"","sources":["../../src/server/output-inactivity-monitor.integration.test.ts"],"names":[],"mappings":""}
|