omo-memory 0.1.6 → 0.1.7

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.
@@ -84,9 +84,11 @@ try {
84
84
  export const GROK_HOOK_SCRIPT = SESSION_BOOTSTRAP_SCRIPT.replace('?? "codex"', '?? "grok"').replace('?? "lazycodex"', '?? "lfg"');
85
85
  export const GROK_PLUGIN_JSON = `{
86
86
  "name": "omo-memory",
87
- "version": "0.1.6",
87
+ "version": "0.1.7",
88
88
  "description": "Project-local OMO Memory bootstrap hook and MCP server for Grok.",
89
- "author": "islee23520",
89
+ "author": {
90
+ "name": "islee23520"
91
+ },
90
92
  "repository": "https://github.com/islee23520/omo-memory",
91
93
  "homepage": "https://github.com/islee23520/omo-memory",
92
94
  "license": "MIT",
@@ -107,7 +109,7 @@ export const GROK_MCP_JSON = `{
107
109
  `;
108
110
  export const CODEX_PLUGIN_JSON = `{
109
111
  "name": "omo-memory",
110
- "version": "0.1.6",
112
+ "version": "0.1.7",
111
113
  "description": "Session-start OMO Memory bootstrap hook for Codex.",
112
114
  "author": "islee23520",
113
115
  "homepage": "https://github.com/islee23520/omo-memory",
package/dist/hooks.js CHANGED
@@ -75,10 +75,11 @@ function installGrok(home) {
75
75
  writeText(pluginHookScriptPath, GROK_HOOK_SCRIPT);
76
76
  chmodSync(pluginHookScriptPath, 0o755);
77
77
  writeText(pluginMcpPath, GROK_MCP_JSON);
78
+ const pluginInstallNote = maybeInstallGrokPlugin(home, pluginRoot);
78
79
  return {
79
80
  host: "grok",
80
81
  files: [skillPath, agentsPath, hookScriptPath, hookJsonPath, pluginJsonPath, pluginSkillPath, pluginHookJsonPath, pluginHookScriptPath, pluginMcpPath],
81
- notes: ["Grok plugin bundle installed at ~/.grok/plugins/omo-memory; run `grok plugin list` or `grok inspect` to verify discovery."],
82
+ notes: ["Grok plugin bundle installed at ~/.grok/plugins/omo-memory.", pluginInstallNote],
82
83
  };
83
84
  }
84
85
  function writeText(path, text) {
@@ -147,6 +148,19 @@ function maybeInstallCodexPlugin(home) {
147
148
  const detail = result.error instanceof Error ? result.error.message : result.stderr.trim();
148
149
  return `Could not run \`codex plugin add omo-memory@islee23520 --json\`: ${detail || "unknown error"}. Run it manually if Codex still reports the plugin as not installed.`;
149
150
  }
151
+ function maybeInstallGrokPlugin(home, pluginRoot) {
152
+ if (home !== homedir())
153
+ return "Skipped `grok plugin install` because OMO_MEMORY_INSTALL_HOME points at a test/alternate home.";
154
+ const result = spawnSync("grok", ["plugin", "install", pluginRoot, "--trust"], {
155
+ encoding: "utf8",
156
+ stdio: ["ignore", "pipe", "pipe"],
157
+ timeout: 15000,
158
+ });
159
+ if (result.status === 0)
160
+ return "`grok plugin install ~/.grok/plugins/omo-memory --trust` completed successfully.";
161
+ const detail = result.error instanceof Error ? result.error.message : result.stderr.trim();
162
+ return `Could not run \`grok plugin install ~/.grok/plugins/omo-memory --trust\`: ${detail || "unknown error"}. Run it manually if Grok still reports the plugin as not installed.`;
163
+ }
150
164
  function ensureTomlKey(text, table, keyValue) {
151
165
  if (text.includes(keyValue))
152
166
  return text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omo-memory",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Host-neutral local SQLite memory and session ledger for OMO adapters, exposed through CLI and MCP.",
5
5
  "type": "module",
6
6
  "files": [