diff --git a/.codex-plugin/marketplace.json b/.codex-plugin/marketplace.json index 99aee3092c..e9c28e03c0 100644 --- a/.codex-plugin/marketplace.json +++ b/.codex-plugin/marketplace.json @@ -10,7 +10,7 @@ "source": "git-subdir", "url": "https://github.com/davidrobertson/agentmemory.git", "path": "./plugin", - "ref": "v0.9.30-codex.1" + "ref": "v0.9.30-codex.2" }, "policy": { "installation": "AVAILABLE", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 59cad81a3b..dd26106dda 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Persistent memory for Cursor: auto-captures sessions, prompts, and tool use via hooks, recalls with hybrid BM25 + vector + graph search, and exposes 54 memory tools over MCP. Keyless by default, runs entirely on your machine.", "author": { "name": "Rohit Ghumare", diff --git a/AGENTS.md b/AGENTS.md index f223e644f3..a07b67533a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -107,7 +107,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). - Test files go in `test/` with `.test.ts` extension - Follow existing patterns in `test/crystallize.test.ts` for function tests -## Current Stats (v0.9.30-codex.1) +## Current Stats (v0.9.30-codex.2) - 54 MCP tools (8 visible by default, `AGENTMEMORY_TOOLS=all` for all) - 138 REST endpoints diff --git a/CHANGELOG.md b/CHANGELOG.md index db1f0ab5fd..b17a43ca98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] +## [0.9.30-codex.2] — 2026-10-10 + +- Keep hook captures and CLI drain records when the engine returns 404 during worker startup or shutdown. Retry them when the worker registers its routes. + ## [0.9.30-codex.1] — 2026-10-10 ## [0.9.30] - 2026-10-06 @@ -262,6 +266,7 @@ Wave release closing several breaking regressions reported against v0.9.26, plus - `/agentmemory:forget` skill still calls `memory_governance_delete` which only touches `KV.memories` and never observations ([#833](https://github.com/rohitg00/agentmemory/issues/833)). Skill rewrite + new `memory_forget` MCP tool tracked separately. - `crypto.randomUUID()` global-only on Node <19 ([#715](https://github.com/rohitg00/agentmemory/issues/715)). Drop-in import fix tracked. +[0.9.30-codex.2]: https://github.com/davidrobertson/agentmemory/compare/v0.9.30-codex.1...v0.9.30-codex.2 [0.9.30-codex.1]: https://github.com/davidrobertson/agentmemory/compare/v0.9.30...v0.9.30-codex.1 [0.9.30]: https://github.com/rohitg00/agentmemory/compare/v0.9.29...v0.9.30 [0.9.29]: https://github.com/rohitg00/agentmemory/compare/v0.9.28...v0.9.29 diff --git a/deploy/coolify/Dockerfile b/deploy/coolify/Dockerfile index 255317f694..17479b440e 100644 --- a/deploy/coolify/Dockerfile +++ b/deploy/coolify/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.30-codex.1 +ARG AGENTMEMORY_VERSION=0.9.30-codex.2 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/coolify/docker-compose.yml b/deploy/coolify/docker-compose.yml index e42d24fc10..13a8d65d63 100644 --- a/deploy/coolify/docker-compose.yml +++ b/deploy/coolify/docker-compose.yml @@ -4,7 +4,7 @@ services: context: . dockerfile: Dockerfile args: - AGENTMEMORY_VERSION: "0.9.30-codex.1" + AGENTMEMORY_VERSION: "0.9.30-codex.2" III_VERSION: "0.22.1" III_SDK_VERSION: "0.22.1" restart: unless-stopped diff --git a/deploy/fly/Dockerfile b/deploy/fly/Dockerfile index 3efeb64fae..341c498980 100644 --- a/deploy/fly/Dockerfile +++ b/deploy/fly/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.30-codex.1 +ARG AGENTMEMORY_VERSION=0.9.30-codex.2 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/railway/Dockerfile b/deploy/railway/Dockerfile index 3efeb64fae..341c498980 100644 --- a/deploy/railway/Dockerfile +++ b/deploy/railway/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.30-codex.1 +ARG AGENTMEMORY_VERSION=0.9.30-codex.2 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/render/Dockerfile b/deploy/render/Dockerfile index 3efeb64fae..341c498980 100644 --- a/deploy/render/Dockerfile +++ b/deploy/render/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.30-codex.1 +ARG AGENTMEMORY_VERSION=0.9.30-codex.2 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/render/render.yaml b/deploy/render/render.yaml index acba600864..d7fc03fa26 100644 --- a/deploy/render/render.yaml +++ b/deploy/render/render.yaml @@ -15,7 +15,7 @@ services: - key: PORT value: "3111" - key: AGENTMEMORY_VERSION - value: "0.9.30-codex.1" + value: "0.9.30-codex.2" - key: III_VERSION value: "0.22.1" - key: III_SDK_VERSION diff --git a/integrations/hermes/plugin.yaml b/integrations/hermes/plugin.yaml index 03fe27ff9d..3d2ebbe2b3 100644 --- a/integrations/hermes/plugin.yaml +++ b/integrations/hermes/plugin.yaml @@ -1,5 +1,5 @@ name: agentmemory -version: 0.9.30-codex.1 +version: 0.9.30-codex.2 description: "Persistent cross-session memory for Hermes Agent via agentmemory. 95.2% retrieval accuracy on LongMemEval." author: "Rohit Ghumare" homepage: "https://github.com/rohitg00/agentmemory" diff --git a/integrations/openclaw/openclaw.plugin.json b/integrations/openclaw/openclaw.plugin.json index 48429af369..0d005cd915 100644 --- a/integrations/openclaw/openclaw.plugin.json +++ b/integrations/openclaw/openclaw.plugin.json @@ -3,7 +3,7 @@ "kind": "memory", "name": "agentmemory", "description": "Persistent cross-session memory for OpenClaw via agentmemory.", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "configSchema": { "type": "object", "additionalProperties": false, diff --git a/integrations/openclaw/package.json b/integrations/openclaw/package.json index 68135f0d10..d678a0c8c2 100644 --- a/integrations/openclaw/package.json +++ b/integrations/openclaw/package.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "type": "module", "openclaw": { "extensions": [ diff --git a/package.json b/package.json index b3c02c7fc4..f234c72469 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives", "type": "module", "main": "dist/index.mjs", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 14caffe7b9..fff6d33213 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/mcp", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Standalone MCP server for agentmemory — thin shim that re-exposes @agentmemory/agentmemory's MCP entrypoint", "type": "module", "bin": { @@ -28,7 +28,7 @@ "homepage": "https://github.com/davidrobertson/agentmemory#readme", "bugs": "https://github.com/davidrobertson/agentmemory/issues", "dependencies": { - "@agentmemory/agentmemory": "0.9.30-codex.1" + "@agentmemory/agentmemory": "0.9.30-codex.2" }, "publishConfig": { "access": "public", diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index c5df8f523c..10212b0ff7 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 54 MCP tools, 17 skills, real-time viewer.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.json index a3968d6901..25a275e07f 100644 --- a/plugin/.codex-plugin/plugin.json +++ b/plugin/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Local persistent memory for coding agents. Recall decisions, resume sessions, learn from corrections, and manage memory through 54 MCP tools and 17 skills. Optional capture through 6 Codex hooks.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/.devin-plugin/plugin.json b/plugin/.devin-plugin/plugin.json index 6f59f79997..ab4bf799ed 100644 --- a/plugin/.devin-plugin/plugin.json +++ b/plugin/.devin-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Persistent memory for AI coding agents. Captures sessions, recalls with hybrid BM25 + vector + graph search, and exposes 54 memory tools over MCP. Keyless by default, runs on your machine.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/dist/standalone.mjs b/plugin/dist/standalone.mjs index e8998550bc..3872117639 100755 --- a/plugin/dist/standalone.mjs +++ b/plugin/dist/standalone.mjs @@ -1383,7 +1383,7 @@ function getStandalonePersistPath() { } //#endregion //#region src/version.ts -const VERSION = "0.9.30-codex.1"; +const VERSION = "0.9.30-codex.2"; createRequire(import.meta.url); //#endregion //#region src/state/schema.ts diff --git a/plugin/opencode/plugin.json b/plugin/opencode/plugin.json index a3c94f8f2d..b5530b2500 100644 --- a/plugin/opencode/plugin.json +++ b/plugin/opencode/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory-capture", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "OpenCode plugin for agentmemory — full Claude Code hook parity: session lifecycle (create/idle/status/compacted/update/diff/delete/error), messages & prompts (chat.message, message.updated user+assistant, message.removed), tool lifecycle (ToolPart states with timing), part tracking (subtask, step-finish, reasoning, file, patch, compaction, agent, retry), file enrichment pipeline, permissions, task tracking (w/ priority), commands, config & model tracking. 22 hooks, 2 slash commands.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/plugin.json b/plugin/plugin.json index 4d988b33ab..cef487aaca 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 54 MCP tools, 17 skills, real-time viewer.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/scripts/_capture.mjs b/plugin/scripts/_capture.mjs index 31e6ab094c..07ac049ebd 100644 --- a/plugin/scripts/_capture.mjs +++ b/plugin/scripts/_capture.mjs @@ -852,7 +852,7 @@ function withEventId(body, host, content, options = {}) { } function classify(status) { if (status >= 200 && status < 300) return status === 200 ? "duplicate" : "delivered"; - if (status === 408 || status === 429 || status >= 500) return "retry"; + if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry"; return "rejected"; } async function post(body, timeoutMs) { diff --git a/plugin/scripts/plugin-bridge.mjs b/plugin/scripts/plugin-bridge.mjs index 38cb0d8a5b..247c84ec36 100644 --- a/plugin/scripts/plugin-bridge.mjs +++ b/plugin/scripts/plugin-bridge.mjs @@ -3,7 +3,7 @@ import { readFileSync, realpathSync } from "node:fs"; import { homedir } from "node:os"; import { join } from "node:path"; //#region src/version.ts -const VERSION = "0.9.30-codex.1"; +const VERSION = "0.9.30-codex.2"; //#endregion //#region src/secret-store.ts const SECRET_KEY = "AGENTMEMORY_SECRET"; diff --git a/scripts/docs-sync.state.json b/scripts/docs-sync.state.json index d7c492dafb..9e6bf41473 100644 --- a/scripts/docs-sync.state.json +++ b/scripts/docs-sync.state.json @@ -1,5 +1,5 @@ { - "version": "0.9.30-codex.1", + "version": "0.9.30-codex.2", "facts": { "mcpTools": [ "54" diff --git a/src/cli/capture.ts b/src/cli/capture.ts index 99ea81e9e8..cf16cc6a48 100644 --- a/src/cli/capture.ts +++ b/src/cli/capture.ts @@ -17,7 +17,8 @@ function headers(secret?: string): Record { function classify(status: number): SendOutcome { if (status === 200) return "duplicate"; if (status >= 200 && status < 300) return "delivered"; - if (status === 408 || status === 429 || status >= 500) return "retry"; + // The engine returns 404 while the worker is starting or shutting down. + if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry"; return "rejected"; } diff --git a/src/functions/export-import.ts b/src/functions/export-import.ts index 4dadc0038a..ef0110a8c5 100644 --- a/src/functions/export-import.ts +++ b/src/functions/export-import.ts @@ -227,7 +227,7 @@ export function registerExportImportFunction(sdk: IIIClient, kv: StateKV): void const strategy = data.strategy || "merge"; const importData = data.exportData; - const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6", "0.8.7", "0.8.8", "0.8.9", "0.8.10", "0.8.11", "0.8.12", "0.8.13", "0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5", "0.9.6", "0.9.7", "0.9.8", "0.9.9", "0.9.10", "0.9.11", "0.9.12", "0.9.13", "0.9.14", "0.9.15", "0.9.16", "0.9.17", "0.9.18", "0.9.19", "0.9.20", "0.9.21", "0.9.22", "0.9.23", "0.9.24", "0.9.25", "0.9.26", "0.9.27", "0.9.28", "0.9.29", "0.9.28-codex.1", "0.9.28-codex.2", "0.9.29-codex.1", "0.9.30", "0.9.30-codex.1"]); + const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6", "0.8.7", "0.8.8", "0.8.9", "0.8.10", "0.8.11", "0.8.12", "0.8.13", "0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5", "0.9.6", "0.9.7", "0.9.8", "0.9.9", "0.9.10", "0.9.11", "0.9.12", "0.9.13", "0.9.14", "0.9.15", "0.9.16", "0.9.17", "0.9.18", "0.9.19", "0.9.20", "0.9.21", "0.9.22", "0.9.23", "0.9.24", "0.9.25", "0.9.26", "0.9.27", "0.9.28", "0.9.29", "0.9.28-codex.1", "0.9.28-codex.2", "0.9.29-codex.1", "0.9.30", "0.9.30-codex.1", "0.9.30-codex.2"]); if (!supportedVersions.has(importData.version)) { return { success: false, diff --git a/src/hooks/_capture.ts b/src/hooks/_capture.ts index a15c7b8aae..f4eb4905d0 100644 --- a/src/hooks/_capture.ts +++ b/src/hooks/_capture.ts @@ -55,7 +55,8 @@ export function withEventId( function classify(status: number): SendOutcome { if (status >= 200 && status < 300) return status === 200 ? "duplicate" : "delivered"; - if (status === 408 || status === 429 || status >= 500) return "retry"; + // The engine returns 404 while the worker is starting or shutting down. + if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry"; return "rejected"; } diff --git a/src/types.ts b/src/types.ts index cdfd60c324..9f2e53e03a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -357,7 +357,7 @@ export interface ExportPagination { } export interface ExportData { - version: "0.3.0" | "0.4.0" | "0.5.0" | "0.6.0" | "0.6.1" | "0.7.0" | "0.7.2" | "0.7.3" | "0.7.4" | "0.7.5" | "0.7.6" | "0.7.7" | "0.7.9" | "0.8.0" | "0.8.1" | "0.8.2" | "0.8.3" | "0.8.4" | "0.8.5" | "0.8.6" | "0.8.7" | "0.8.8" | "0.8.9" | "0.8.10" | "0.8.11" | "0.8.12" | "0.8.13" | "0.9.0" | "0.9.1" | "0.9.2" | "0.9.3" | "0.9.4" | "0.9.5" | "0.9.6" | "0.9.7" | "0.9.8" | "0.9.9" | "0.9.10" | "0.9.11" | "0.9.12" | "0.9.13" | "0.9.14" | "0.9.15" | "0.9.16" | "0.9.17" | "0.9.18" | "0.9.19" | "0.9.20" | "0.9.21" | "0.9.22" | "0.9.23" | "0.9.24" | "0.9.25" | "0.9.26" | "0.9.27" | "0.9.28" | "0.9.29" | "0.9.28-codex.1" | "0.9.28-codex.2" | "0.9.29-codex.1" | "0.9.30" | "0.9.30-codex.1"; + version: "0.3.0" | "0.4.0" | "0.5.0" | "0.6.0" | "0.6.1" | "0.7.0" | "0.7.2" | "0.7.3" | "0.7.4" | "0.7.5" | "0.7.6" | "0.7.7" | "0.7.9" | "0.8.0" | "0.8.1" | "0.8.2" | "0.8.3" | "0.8.4" | "0.8.5" | "0.8.6" | "0.8.7" | "0.8.8" | "0.8.9" | "0.8.10" | "0.8.11" | "0.8.12" | "0.8.13" | "0.9.0" | "0.9.1" | "0.9.2" | "0.9.3" | "0.9.4" | "0.9.5" | "0.9.6" | "0.9.7" | "0.9.8" | "0.9.9" | "0.9.10" | "0.9.11" | "0.9.12" | "0.9.13" | "0.9.14" | "0.9.15" | "0.9.16" | "0.9.17" | "0.9.18" | "0.9.19" | "0.9.20" | "0.9.21" | "0.9.22" | "0.9.23" | "0.9.24" | "0.9.25" | "0.9.26" | "0.9.27" | "0.9.28" | "0.9.29" | "0.9.28-codex.1" | "0.9.28-codex.2" | "0.9.29-codex.1" | "0.9.30" | "0.9.30-codex.1" | "0.9.30-codex.2"; exportedAt: string; sessions: Session[]; observations: Record; diff --git a/src/version.ts b/src/version.ts index 6dcb90e0ef..2ddbdd4ea0 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = "0.9.30-codex.1"; +export const VERSION = "0.9.30-codex.2"; export const III_PINNED_VERSION = "0.22.1"; diff --git a/test/capture-cli-restart.test.ts b/test/capture-cli-restart.test.ts new file mode 100644 index 0000000000..9f5ca89f68 --- /dev/null +++ b/test/capture-cli-restart.test.ts @@ -0,0 +1,27 @@ +import { mkdtempSync, rmSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; +import { afterEach, expect, it, vi } from "vitest"; +import { runCaptureCommand } from "../src/cli/capture.js"; +import { appendSpool, spoolSummary } from "../src/capture/spool.js"; + +afterEach(() => { vi.unstubAllGlobals(); vi.unstubAllEnvs(); }); + +it("keeps a CLI drain record on a missing worker route, then delivers it when ready", async () => { + const dir = mkdtempSync(join(tmpdir(), "am-cli-restart-")); + const base = "http://127.0.0.1:39111"; + vi.stubEnv("AGENTMEMORY_CAPTURE_SPOOL_DIR", dir); + let status = 404; + vi.stubGlobal("fetch", async (url: string) => new Response("{}", { status: url.endsWith("/observe") ? status : 200 })); + try { + expect(appendSpool(base, "evc_cli_restart_404", { sessionId: "restart-cli", data: { tool_output: "keep me" } }, "unreachable").spooled).toBe(true); + const options = { base, args: ["--drain", "--json"], log: () => {} }; + expect(await runCaptureCommand(options)).toBe(0); + expect(spoolSummary(base).records).toBe(1); + status = 201; + expect(await runCaptureCommand(options)).toBe(0); + expect(spoolSummary(base).records).toBe(0); + expect(spoolSummary(base).stats.delivered).toBe(1); + expect(spoolSummary(base).stats.rejected).toBe(0); + } finally { rmSync(dir, { recursive: true, force: true }); } +}); diff --git a/test/capture-hook.test.ts b/test/capture-hook.test.ts index 2e79517c5b..6af28274ba 100644 --- a/test/capture-hook.test.ts +++ b/test/capture-hook.test.ts @@ -143,6 +143,20 @@ describe("hooks capture when the server is unavailable", () => { expect(spoolLines(dir, port)).toHaveLength(0); }); + it("spools while the engine is reachable but the worker route is absent", async () => { + const dir = mkdtempSync(join(tmpdir(), "am-hook-restart-")); + const received: Array> = []; + const port = await startServer(404, received); + const result = await runHook("post-tool-use.mjs", toolPayload("worker-restarting", { tool_use_id: "restart-404" }), { + AGENTMEMORY_URL: `http://127.0.0.1:${port}`, + AGENTMEMORY_CAPTURE_SPOOL_DIR: dir, + }); + expect(result.exitCode).toBe(0); + expect(spoolLines(dir, port)).toEqual([ + expect.objectContaining({ eventId: received[0]!.eventId, body: expect.objectContaining({ sessionId: "ses_hook_capture" }) }), + ]); + }); + it("keeps every record when many hooks spool at once", async () => { const dir = mkdtempSync(join(tmpdir(), "am-hook-spool-")); const port = await closedPort();