@tickernelz/wardmote-adapter-utils 2026.1113.0 → 2026.1114.0
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/acpx-engine/composed-run-characterization.test.js +2 -2
- package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -1
- package/dist/acpx-engine/execute.js +4 -4
- package/dist/acpx-engine/execute.js.map +1 -1
- package/dist/acpx-engine/execute.test.js +17 -17
- package/dist/acpx-engine/execute.test.js.map +1 -1
- package/dist/acpx-engine/run-fault-matrix.test.js +2 -2
- package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -1
- package/dist/acpx-engine/run-site-host.test.js +6 -6
- package/dist/acpx-engine/run-site-host.test.js.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.d.ts +1 -1
- package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.js +8 -8
- package/dist/acpx-engine/run-site-sandbox.js.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.test.js +11 -11
- package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -1
- package/dist/acpx-engine/startup-characterization.test.js +4 -4
- package/dist/acpx-engine/startup-characterization.test.js.map +1 -1
- package/dist/acpx-engine/startup-timing.test.js +4 -4
- package/dist/acpx-engine/startup-timing.test.js.map +1 -1
- package/dist/execution-target-sandbox.test.js +2 -2
- package/dist/execution-target-sandbox.test.js.map +1 -1
- package/dist/execution-target.js +6 -6
- package/dist/execution-target.js.map +1 -1
- package/dist/execution-target.test.js +29 -29
- package/dist/execution-target.test.js.map +1 -1
- package/dist/git-workspace-sync.js +3 -3
- package/dist/git-workspace-sync.js.map +1 -1
- package/dist/github-launcher-environment.test.js +2 -2
- package/dist/github-launcher-environment.test.js.map +1 -1
- package/dist/runner-connectivity.test.js +1 -1
- package/dist/runner-connectivity.test.js.map +1 -1
- package/dist/sandbox-callback-bridge.test.js +16 -16
- package/dist/sandbox-callback-bridge.test.js.map +1 -1
- package/dist/sandbox-managed-runtime.js +2 -2
- package/dist/sandbox-managed-runtime.js.map +1 -1
- package/dist/server-utils.test.js +15 -15
- package/dist/server-utils.test.js.map +1 -1
- package/dist/ssh-fixture.test.js +2 -2
- package/dist/ssh-fixture.test.js.map +1 -1
- package/dist/wardmote-mcp.test.js +1 -1
- package/dist/wardmote-mcp.test.js.map +1 -1
- package/dist/wardmote-runner-permissions.d.ts +2 -2
- package/dist/wardmote-runner-permissions.d.ts.map +1 -1
- package/dist/wardmote-runner-permissions.js +1 -1
- package/dist/wardmote-runner-permissions.js.map +1 -1
- package/dist/wardmote-runner-permissions.test.js +1 -1
- package/dist/wardmote-runner-permissions.test.js.map +1 -1
- package/dist/workspace-manifest.d.ts.map +1 -1
- package/dist/workspace-manifest.js +1 -1
- package/dist/workspace-manifest.js.map +1 -1
- package/dist/workspace-manifest.test.js +1 -1
- package/dist/workspace-manifest.test.js.map +1 -1
- package/dist/workspace-restore-merge.js +2 -2
- package/dist/workspace-restore-merge.js.map +1 -1
- package/package.json +2 -2
|
@@ -1511,7 +1511,7 @@ describe("shared ACPX engine runtime behavior", () => {
|
|
|
1511
1511
|
const skillRoot = path.join(root, "skills");
|
|
1512
1512
|
const codexHome = path.join(root, "codex-home");
|
|
1513
1513
|
const operational = {
|
|
1514
|
-
...await createSkill(skillRoot, "
|
|
1514
|
+
...await createSkill(skillRoot, "wardmote"),
|
|
1515
1515
|
key: "tickernelz/wardmote/wardmote",
|
|
1516
1516
|
};
|
|
1517
1517
|
await runExecutor({
|
|
@@ -1526,7 +1526,7 @@ describe("shared ACPX engine runtime behavior", () => {
|
|
|
1526
1526
|
it.each(["codex", "gemini"])("refreshes the %s skill root when a connection home changes between turns", async (agent) => {
|
|
1527
1527
|
const root = await makeTempRoot();
|
|
1528
1528
|
const operational = {
|
|
1529
|
-
...await createSkill(path.join(root, "skills"), "
|
|
1529
|
+
...await createSkill(path.join(root, "skills"), "wardmote"),
|
|
1530
1530
|
key: "tickernelz/wardmote/wardmote",
|
|
1531
1531
|
};
|
|
1532
1532
|
const homes = [path.join(root, "first-home"), path.join(root, "next-home")];
|
|
@@ -2227,7 +2227,7 @@ describe("shared ACPX engine runtime behavior", () => {
|
|
|
2227
2227
|
expect(runtimeOptions[0].spawnCwd).toBe(localCwd);
|
|
2228
2228
|
const proxyCommand = runtimeOptions[0].agentRegistry.resolve("custom");
|
|
2229
2229
|
expect(proxyCommand.startsWith(`${JSON.stringify(process.execPath.replaceAll("\\", "/"))} `)).toBe(true);
|
|
2230
|
-
expect(proxyCommand).toContain("
|
|
2230
|
+
expect(proxyCommand).toContain("wardmote-process-session-proxy.mjs");
|
|
2231
2231
|
expect(runtimeOptions[0].spawnCwd).not.toBe(sessionInputs[0].cwd);
|
|
2232
2232
|
const payloadEnv = (sessionPayload?.env ?? {});
|
|
2233
2233
|
expect(payloadEnv).toMatchObject({
|
|
@@ -3084,7 +3084,7 @@ describe("ACPX engine remote sandbox staging seam (PR 1: workspace + cwd)", () =
|
|
|
3084
3084
|
await expect(fs.readFile(path.join(instanceRoot, "acp-engine", "agents", "agent-1", "codex-home", "auth.json"), "utf8")).rejects.toMatchObject({ code: "ENOENT" });
|
|
3085
3085
|
expect(await fs.readFile(sourceAuth, "utf8")).toBe(JSON.stringify({ tokens: "host-login" }));
|
|
3086
3086
|
});
|
|
3087
|
-
it("hands the merged
|
|
3087
|
+
it("hands the merged wardmote env to the process-session launch when the setups overlap", async () => {
|
|
3088
3088
|
const { stateDir, localCwd, remoteCwd, executionTarget } = await setupRemoteSandbox();
|
|
3089
3089
|
// Decode the process-session LAUNCH payload (the base64 command blob) — the
|
|
3090
3090
|
// in-sandbox process env is carried there, NOT in the exec's own `env`.
|
|
@@ -3168,11 +3168,11 @@ describe("ACPX engine remote sandbox staging seam (PR 1: workspace + cwd)", () =
|
|
|
3168
3168
|
expect(String(referencedHint.cwd)).toContain("project-a");
|
|
3169
3169
|
expect(referencedHint.cwd).not.toBe(referencedProjectDir);
|
|
3170
3170
|
});
|
|
3171
|
-
it("stops the process-session bridge when the
|
|
3171
|
+
it("stops the process-session bridge when the wardmote bridge fails under concurrency", async () => {
|
|
3172
3172
|
const { stateDir, localCwd, executionTarget } = await setupRemoteSandbox();
|
|
3173
3173
|
const stop = vi.fn(async () => { });
|
|
3174
3174
|
vi.mocked(startAdapterExecutionTargetWardmoteBridge).mockImplementationOnce(async () => {
|
|
3175
|
-
throw new Error("
|
|
3175
|
+
throw new Error("wardmote bridge boom");
|
|
3176
3176
|
});
|
|
3177
3177
|
vi.mocked(startAdapterExecutionTargetProcessSessionBridge).mockImplementationOnce(async () => ({ agentCommand: null, stop }));
|
|
3178
3178
|
const execute = createAcpxEngineExecutor({
|
|
@@ -3189,7 +3189,7 @@ describe("ACPX engine remote sandbox staging seam (PR 1: workspace + cwd)", () =
|
|
|
3189
3189
|
onLog: async () => { },
|
|
3190
3190
|
onMeta: async () => { },
|
|
3191
3191
|
onEvent: async () => { },
|
|
3192
|
-
})).rejects.toThrow("
|
|
3192
|
+
})).rejects.toThrow("wardmote bridge boom");
|
|
3193
3193
|
// The concurrently-started process-session bridge was stopped exactly once.
|
|
3194
3194
|
expect(stop).toHaveBeenCalledTimes(1);
|
|
3195
3195
|
});
|
|
@@ -4240,9 +4240,9 @@ describe("ACPX engine remote session-lifecycle re-staging (PR 3: stage once / re
|
|
|
4240
4240
|
// Run B resumes the same session and borrows the cached staged runtime, but a
|
|
4241
4241
|
// bridge fails during bring-up.
|
|
4242
4242
|
vi.mocked(startAdapterExecutionTargetWardmoteBridge).mockImplementationOnce(async () => {
|
|
4243
|
-
throw new Error("
|
|
4243
|
+
throw new Error("wardmote bridge boom");
|
|
4244
4244
|
});
|
|
4245
|
-
await expect(execute({ runId: "run-b", runtime: { sessionParams: first.sessionParams }, ...base })).rejects.toThrow("
|
|
4245
|
+
await expect(execute({ runId: "run-b", runtime: { sessionParams: first.sessionParams }, ...base })).rejects.toThrow("wardmote bridge boom");
|
|
4246
4246
|
// The rollback removed the borrowed cache entry through the identity guard, so a
|
|
4247
4247
|
// later resume can never reuse an entry whose host staged-temp was disposed...
|
|
4248
4248
|
expect(stagedRuntimes.size).toBe(0);
|
|
@@ -4467,8 +4467,8 @@ describe("ACPX engine sandbox-start spans (opt-in root + child parenting)", () =
|
|
|
4467
4467
|
.sort();
|
|
4468
4468
|
expect(childNames).toEqual([
|
|
4469
4469
|
"acp.handshake",
|
|
4470
|
-
"bridge.paperclip",
|
|
4471
4470
|
"bridge.process-session",
|
|
4471
|
+
"bridge.wardmote",
|
|
4472
4472
|
"codex-home.seed",
|
|
4473
4473
|
"pack",
|
|
4474
4474
|
"skills.reconcile",
|
|
@@ -4876,15 +4876,15 @@ describe("ACPX engine sandbox-start spans (opt-in root + child parenting)", () =
|
|
|
4876
4876
|
await runExecutor({ agent: "custom", agentCommand: "node ./fake-acp.js", stateDir, cwd: localCwd }, { authToken: "real-run-jwt", executionTarget, startupTraceContext: traceContext });
|
|
4877
4877
|
const rootSpan = spans.find((span) => span.name === "sandbox.startup");
|
|
4878
4878
|
expect(rootSpan).toBeTruthy();
|
|
4879
|
-
const
|
|
4879
|
+
const wardmote = spans.find((span) => span.name === "bridge.wardmote");
|
|
4880
4880
|
const processSession = spans.find((span) => span.name === "bridge.process-session");
|
|
4881
|
-
expect(
|
|
4881
|
+
expect(wardmote?.parent).toBe(rootSpan);
|
|
4882
4882
|
expect(processSession?.parent).toBe(rootSpan);
|
|
4883
4883
|
// Both bridge spans carry the same batch tag, so the trace marks them as one
|
|
4884
4884
|
// parallel batch.
|
|
4885
|
-
expect(
|
|
4885
|
+
expect(wardmote?.attributes[A.batch]).toBe("bridge");
|
|
4886
4886
|
expect(processSession?.attributes[A.batch]).toBe("bridge");
|
|
4887
|
-
expect(
|
|
4887
|
+
expect(wardmote?.attributes[A.batch]).toBe(processSession?.attributes[A.batch]);
|
|
4888
4888
|
});
|
|
4889
4889
|
it("records the handshake create-runtime and ensure-session sub-times on the acp.handshake span", async () => {
|
|
4890
4890
|
const root = await makeTempRoot();
|
|
@@ -5333,7 +5333,7 @@ describe("ACPX engine per-step startup timing (run.startup.step events)", () =>
|
|
|
5333
5333
|
"codex-home.seed",
|
|
5334
5334
|
"skills.reconcile",
|
|
5335
5335
|
"stage.sync",
|
|
5336
|
-
"bridge.
|
|
5336
|
+
"bridge.wardmote",
|
|
5337
5337
|
"bridge.process-session",
|
|
5338
5338
|
"acp.handshake",
|
|
5339
5339
|
]) {
|
|
@@ -5369,7 +5369,7 @@ describe("ACPX engine per-step startup timing (run.startup.step events)", () =>
|
|
|
5369
5369
|
for (const step of [
|
|
5370
5370
|
"workspace.resolve",
|
|
5371
5371
|
"stage.sync",
|
|
5372
|
-
"bridge.
|
|
5372
|
+
"bridge.wardmote",
|
|
5373
5373
|
"bridge.process-session",
|
|
5374
5374
|
"acp.handshake",
|
|
5375
5375
|
]) {
|
|
@@ -5467,7 +5467,7 @@ describe("ACPX engine per-step startup timing (run.startup.step events)", () =>
|
|
|
5467
5467
|
expect(emitted.has("workspace.resolve")).toBe(true);
|
|
5468
5468
|
expect(emitted.has("acp.handshake")).toBe(true);
|
|
5469
5469
|
expect(emitted.has("stage.sync")).toBe(false);
|
|
5470
|
-
expect(emitted.has("bridge.
|
|
5470
|
+
expect(emitted.has("bridge.wardmote")).toBe(false);
|
|
5471
5471
|
expect(emitted.has("bridge.process-session")).toBe(false);
|
|
5472
5472
|
});
|
|
5473
5473
|
});
|