@remembrance-ai/opencode-plugin 0.1.50 → 0.1.51

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/opencode.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "command": [
7
7
  "npx",
8
8
  "-y",
9
- "@remembrance-ai/mcp-server@0.1.50"
9
+ "@remembrance-ai/mcp-server@0.1.51"
10
10
  ],
11
11
  "enabled": true,
12
12
  "environment": {
@@ -15,6 +15,6 @@
15
15
  }
16
16
  },
17
17
  "plugin": [
18
- "@remembrance-ai/opencode-plugin@0.1.50"
18
+ "@remembrance-ai/opencode-plugin@0.1.51"
19
19
  ]
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remembrance-ai/opencode-plugin",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "license": "Apache-2.0",
5
5
  "description": "opencode plugin for Remembrance session hooks, tool observation, and contribution nudges.",
6
6
  "type": "module",
@@ -4688,11 +4688,21 @@ function pluginLifecycleCheck(pluginHealth, issues) {
4688
4688
  );
4689
4689
  }
4690
4690
  if (pluginHealth.status === "partial") {
4691
+ const codex = stringValue(pluginHealth.surface) === "codex";
4691
4692
  return warning(
4692
4693
  "plugin_lifecycle",
4693
4694
  "The core native lifecycle is active; tool or completion events have not occurred yet.",
4694
4695
  "exercise_plugin_lifecycle",
4695
- "Use one Remembrance tool, complete one turn, and rerun the doctor.",
4696
+ codex ? "Use one Remembrance tool, complete one turn, and rerun the doctor. If this warning remains, open /hooks; confirm the Remembrance PostToolUse and Stop hooks are Active, trust any marked Needs review, restart Codex, and retry." : "Use one Remembrance tool, complete one turn, and rerun the doctor.",
4697
+ issues
4698
+ );
4699
+ }
4700
+ if (stringValue(pluginHealth.surface) === "codex") {
4701
+ return warning(
4702
+ "plugin_lifecycle",
4703
+ "The Codex plugin lifecycle is not active.",
4704
+ "review_codex_hook_trust",
4705
+ "In Codex, open /hooks. Confirm the Remembrance SessionStart, UserPromptSubmit, PostToolUse, and Stop hooks are Active; trust any marked Needs review. Codex skips new or changed hook definitions until they are trusted again. If the hooks are absent, update or reinstall Remembrance. Then fully quit and reopen Codex, submit one prompt, and rerun the doctor.",
4696
4706
  issues
4697
4707
  );
4698
4708
  }
@@ -5930,7 +5940,7 @@ var seedSkills = [
5930
5940
  summary: "Operational setup and troubleshooting workflow for Remembrance across Claude Code, Codex, OpenClaw, Cursor, Gemini, MCP, REST, skill-only installs, enterprise keys, and local agent identity.",
5931
5941
  status: "active",
5932
5942
  visibility: "public",
5933
- version: "0.1.10",
5943
+ version: "0.1.11",
5934
5944
  domains: ["agent-skills", "mcp", "resource-discovery"],
5935
5945
  tags: [
5936
5946
  "remembrance",
@@ -5981,7 +5991,7 @@ var seedSkills = [
5981
5991
  "gemini",
5982
5992
  "rest"
5983
5993
  ],
5984
- version: "0.1.10",
5994
+ version: "0.1.11",
5985
5995
  status: "active",
5986
5996
  visibility: "public",
5987
5997
  providers: ["codex", "claude", "cursor", "openclaw", "generic"],
@@ -6173,6 +6183,13 @@ This command handles both first install and update. If zsh says
6173
6183
  "codex: command not found", it discovers the current ChatGPT desktop bundle or
6174
6184
  the legacy Codex app bundle without requiring a shell alias.
6175
6185
 
6186
+ Codex will not execute plugin hooks until their exact definitions are trusted.
6187
+ After installing or updating, fully open Codex, enter \`/hooks\`, and confirm the
6188
+ Remembrance \`SessionStart\`, \`UserPromptSubmit\`, \`PostToolUse\`, and \`Stop\` hooks
6189
+ all show **Active**. Trust any marked **Needs review**. Changed hook definitions
6190
+ require review again; never use
6191
+ the automation-only trust bypass for normal installation.
6192
+
6176
6193
  OpenClaw:
6177
6194
 
6178
6195
  ~~~bash
@@ -6229,8 +6246,9 @@ Integrations & MCP**, and verify query, invocation, feedback, and contribution
6229
6246
  receipts in both local and cloud runs.
6230
6247
 
6231
6248
  After installing any native plugin, restart the agent app/session and approve
6232
- the one-time trust prompt if the runtime asks for it. A currently running Codex
6233
- or Claude thread usually cannot hot-load newly installed plugin tools.
6249
+ the runtime's trust request. For Codex, use the exact \`/hooks\` check above;
6250
+ changed hook definitions require review again. A currently running Codex or
6251
+ Claude thread usually cannot hot-load newly installed plugin tools.
6234
6252
 
6235
6253
  ## Enterprise/org key setup
6236
6254
 
@@ -6817,8 +6835,9 @@ be copied to ".agents/skills/remembrancer/SKILL.md" for compatible providers.
6817
6835
  ## Troubleshooting matrix
6818
6836
 
6819
6837
  - "Plugin installed, but no tools": restart the agent app/session; confirm the
6820
- plugin is enabled; confirm the runtime accepted the trust prompt; confirm the
6821
- installed package contains the runtime-specific manifest.
6838
+ plugin is enabled and contains the runtime-specific manifest. In Codex, open
6839
+ \`/hooks\`, confirm all four Remembrance hooks show **Active**, and trust any
6840
+ marked **Needs review**; updates that change hooks require review again.
6822
6841
  - "Agent has tools but does not use them": first verify a concrete query receipt,
6823
6842
  then test a short contextual follow-up such as "fix these issues". Native
6824
6843
  prompt hooks should inject a full-conversation query reminder, and completion
@@ -9731,7 +9750,10 @@ function localPluginLifecycleHealth(options) {
9731
9750
  issues: [
9732
9751
  {
9733
9752
  code: "invalid_lifecycle_marker",
9734
- action: "Update or reinstall the Remembrance plugin, fully restart the host, and call get_connection_status again."
9753
+ action: nativeLifecycleRepairAction(
9754
+ surface,
9755
+ "get_connection_status"
9756
+ )
9735
9757
  }
9736
9758
  ]
9737
9759
  };
@@ -9757,26 +9779,26 @@ function localPluginLifecycleHealth(options) {
9757
9779
  if (!components.session_start.observed) {
9758
9780
  issues.push({
9759
9781
  code: "session_start_not_observed",
9760
- action: "Update or reinstall the Remembrance plugin, fully restart the host, and verify its native hooks are enabled."
9782
+ action: nativeLifecycleRepairAction(surface, "get_connection_status")
9761
9783
  });
9762
9784
  }
9763
9785
  if (!components.prompt_hook.observed) {
9764
9786
  issues.push({
9765
9787
  code: "prompt_hook_not_observed",
9766
- action: "The native prompt hook did not run before this health check. Update or reinstall the plugin, fully restart the host, and verify prompt hooks are enabled."
9788
+ action: surface === "codex" ? nativeLifecycleRepairAction(surface, "get_connection_status") : "The native prompt hook did not run before this health check. Update or reinstall the plugin, fully restart the host, and verify prompt hooks are enabled."
9767
9789
  });
9768
9790
  }
9769
9791
  const coreLifecycleObserved = components.session_start.observed && components.prompt_hook.observed;
9770
9792
  if (coreLifecycleObserved && !components.tool_observer.observed) {
9771
9793
  issues.push({
9772
9794
  code: "tool_observer_not_observed",
9773
- action: "No native tool observer has run in this session yet. Use a Remembrance MCP tool, then call get_connection_status again."
9795
+ action: surface === "codex" ? "Use a Remembrance MCP tool, then call get_connection_status again. If this remains missing, open /hooks; confirm the Remembrance PostToolUse hook is Active, trust it if marked Needs review, restart Codex, and retry." : "No native tool observer has run in this session yet. Use a Remembrance MCP tool, then call get_connection_status again."
9774
9796
  });
9775
9797
  }
9776
9798
  if (coreLifecycleObserved && !components.completion_hook.observed) {
9777
9799
  issues.push({
9778
9800
  code: "completion_hook_not_observed",
9779
- action: "No native completion hook has run in this session yet. Complete one turn, then call get_connection_status again."
9801
+ action: surface === "codex" ? "Complete one turn, then call get_connection_status again. If this remains missing, open /hooks; confirm the Remembrance Stop hook is Active, trust it if marked Needs review, restart Codex, and retry." : "No native completion hook has run in this session yet. Complete one turn, then call get_connection_status again."
9780
9802
  });
9781
9803
  }
9782
9804
  const lastSeenMs = validLifecycleTimestamp(marker.last_seen_at, nowMs);
@@ -9854,11 +9876,17 @@ function missingPluginLifecycleHealth(surface) {
9854
9876
  issues: [
9855
9877
  {
9856
9878
  code: "native_hooks_not_observed",
9857
- action: "Update or reinstall the Remembrance plugin, fully restart the host, and confirm native hooks are enabled. MCP-only access remains available."
9879
+ action: nativeLifecycleRepairAction(surface, "get_connection_status")
9858
9880
  }
9859
9881
  ]
9860
9882
  };
9861
9883
  }
9884
+ function nativeLifecycleRepairAction(surface, followupTool) {
9885
+ if (surface === "codex") {
9886
+ return `In Codex, open /hooks. Confirm the Remembrance SessionStart, UserPromptSubmit, PostToolUse, and Stop hooks are Active; trust any marked Needs review. Codex skips new or changed hook definitions until they are trusted again. If the hooks are absent, update or reinstall Remembrance. Then fully quit and reopen Codex, submit one prompt, and call ${followupTool} again.`;
9887
+ }
9888
+ return `Update or reinstall the Remembrance plugin, fully restart the host, and confirm native hooks are enabled. Then call ${followupTool} again. MCP-only access remains available.`;
9889
+ }
9862
9890
  function emptyPluginComponents() {
9863
9891
  return Object.fromEntries(
9864
9892
  PLUGIN_HEALTH_COMPONENTS.map((component) => [
@@ -9983,7 +10011,7 @@ var apiConfiguration = resolveApiConfiguration();
9983
10011
  var apiBase = apiConfiguration.baseUrl;
9984
10012
  var MAX_REMOTE_RESPONSE_BYTES = 4 * 1024 * 1024;
9985
10013
  var DOCTOR_PROBE_TIMEOUT_MS = 7500;
9986
- var SERVER_VERSION = true ? "0.1.50" : "0.0.0-dev";
10014
+ var SERVER_VERSION = true ? "0.1.51" : "0.0.0-dev";
9987
10015
  var tools = toolDefinitions;
9988
10016
  var doctorCliRequested = process.argv[2] === "doctor";
9989
10017
  var inputBuffer = Buffer.alloc(0);
@@ -121,6 +121,13 @@ This command handles both first install and update. If zsh says
121
121
  "codex: command not found", it discovers the current ChatGPT desktop bundle or
122
122
  the legacy Codex app bundle without requiring a shell alias.
123
123
 
124
+ Codex will not execute plugin hooks until their exact definitions are trusted.
125
+ After installing or updating, fully open Codex, enter `/hooks`, and confirm the
126
+ Remembrance `SessionStart`, `UserPromptSubmit`, `PostToolUse`, and `Stop` hooks
127
+ all show **Active**. Trust any marked **Needs review**. Changed hook definitions
128
+ require review again; never use
129
+ the automation-only trust bypass for normal installation.
130
+
124
131
  OpenClaw:
125
132
 
126
133
  ~~~bash
@@ -177,8 +184,9 @@ Integrations & MCP**, and verify query, invocation, feedback, and contribution
177
184
  receipts in both local and cloud runs.
178
185
 
179
186
  After installing any native plugin, restart the agent app/session and approve
180
- the one-time trust prompt if the runtime asks for it. A currently running Codex
181
- or Claude thread usually cannot hot-load newly installed plugin tools.
187
+ the runtime's trust request. For Codex, use the exact `/hooks` check above;
188
+ changed hook definitions require review again. A currently running Codex or
189
+ Claude thread usually cannot hot-load newly installed plugin tools.
182
190
 
183
191
  ## Enterprise/org key setup
184
192
 
@@ -830,8 +838,9 @@ be copied to ".agents/skills/remembrancer/SKILL.md" for compatible providers.
830
838
  ## Troubleshooting matrix
831
839
 
832
840
  - "Plugin installed, but no tools": restart the agent app/session; confirm the
833
- plugin is enabled; confirm the runtime accepted the trust prompt; confirm the
834
- installed package contains the runtime-specific manifest.
841
+ plugin is enabled and contains the runtime-specific manifest. In Codex, open
842
+ `/hooks`, confirm all four Remembrance hooks show **Active**, and trust any
843
+ marked **Needs review**; updates that change hooks require review again.
835
844
  - "Agent has tools but does not use them": first verify a concrete query receipt,
836
845
  then test a short contextual follow-up such as "fix these issues". Native
837
846
  prompt hooks should inject a full-conversation query reminder, and completion