From 2a7f4fb753272b92558557fe054e21cac3128ae4 Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 20 Nov 2026 16:16:38 +0800 Subject: [PATCH] chore(codex): publish the Codex plugin 0.7.12 Syncs plugins/everme with the 0.7.12 release (the npm packages are already published): - A one-shot run of a host that fires no Stop (cursor-agent -p --continue) stores the turn of every run at SessionEnd, not only the first. Session state records whether a Stop or a SessionEnd stored the last turn. Co-Authored-By: Claude Opus 5.5 --- plugins/everme/.codex-plugin/plugin.json | 2 +- plugins/everme/bin/hook.mjs | 10 +++++++--- plugins/everme/bin/memory-mcp.mjs | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/plugins/everme/.codex-plugin/plugin.json b/plugins/everme/.codex-plugin/plugin.json index 4426716..a3d9dab 100644 --- a/plugins/everme/.codex-plugin/plugin.json +++ b/plugins/everme/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "everme", - "version": "0.7.11", + "version": "0.7.12", "description": "Persistent memory recall and lifecycle capture for Codex sessions via EverMe.", "author": { "name": "EverMind AI", diff --git a/plugins/everme/bin/hook.mjs b/plugins/everme/bin/hook.mjs index e3f76cd..01ae825 100755 --- a/plugins/everme/bin/hook.mjs +++ b/plugins/everme/bin/hook.mjs @@ -939,7 +939,8 @@ async function readState(file) { lastTurnId: typeof parsed.lastTurnId === "string" ? parsed.lastTurnId : "", uploadedCount: nonNegativeInteger(parsed.uploadedCount), pendingTurn: pendingTurn(parsed.pendingTurn), - lostTurns: nonNegativeInteger(parsed.lostTurns) + lostTurns: nonNegativeInteger(parsed.lostTurns), + ...typeof parsed.stopStored === "boolean" ? { stopStored: parsed.stopStored } : {} }; } catch (error) { if (error?.code !== "ENOENT" && !(error instanceof SyntaxError)) throw error; @@ -2257,6 +2258,9 @@ async function runHostHook(event, rawInput, adapter, deps = {}) { }, telemetry }); + if (adapter?.storeAtSessionEndWithoutStop === true && sessionState && input?.sessionId && result?.count > 0) { + await sessionState.patch(input.sessionId, { stopStored: !storeAtEnd }); + } } else if (canonicalEvent === "PostToolUse") { if (typeof adapter.bufferToolUse === "function") { result = await adapter.bufferToolUse(input, { stateDir: env.EVERME_STATE_DIR }); @@ -2295,7 +2299,7 @@ async function noTurnStored(adapter, deps, env, input) { const sessionState = deps.sessionState || (typeof deps.createSessionState === "function" ? deps.createSessionState({ stateDir: env.EVERME_STATE_DIR }) : void 0); if (!sessionState) return false; const state = await sessionState.read(input.sessionId); - return !state?.count; + return typeof state?.stopStored === "boolean" ? !state.stopStored : !state?.count; } function resolveRuntimeConfig(env) { const agentToken = env.EVERME_AGENT_TOKEN || env.EVERME_API_KEY || ""; @@ -3080,7 +3084,7 @@ function stringValue(value) { } // src/adapter.js -var PKG_VERSION = true ? "0.7.11" : createRequire(import.meta.url)("../package.json").version; +var PKG_VERSION = true ? "0.7.12" : createRequire(import.meta.url)("../package.json").version; var CONTEXT_EVENTS = /* @__PURE__ */ new Set(["SessionStart", "UserPromptSubmit"]); var codexAdapter = { platform: "codex", diff --git a/plugins/everme/bin/memory-mcp.mjs b/plugins/everme/bin/memory-mcp.mjs index e9112da..be27e1a 100755 --- a/plugins/everme/bin/memory-mcp.mjs +++ b/plugins/everme/bin/memory-mcp.mjs @@ -17951,7 +17951,7 @@ function formatQueryStats(stats) { } // ../memory-mcp/src/mcp.js -var PKG_VERSION = true ? "0.7.11" : createRequire(import.meta.url)("../package.json").version; +var PKG_VERSION = true ? "0.7.12" : createRequire(import.meta.url)("../package.json").version; var EVERME_MCP_INSTRUCTIONS = [ "EverMe is the user's long-term memory across sessions.", "",