@memrosetta/cli 0.4.8 → 0.5.1

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.
Files changed (42) hide show
  1. package/dist/chunk-4LNXT25H.js +891 -0
  2. package/dist/chunk-5PH2RDAS.js +750 -0
  3. package/dist/chunk-IKIJVRHU.js +16 -0
  4. package/dist/chunk-PMQKXYS6.js +752 -0
  5. package/dist/chunk-SYPVELIW.js +64 -0
  6. package/dist/chunk-TSA67QME.js +56 -0
  7. package/dist/chunk-UKGD7QXV.js +81 -0
  8. package/dist/chunk-UOT33X3Q.js +750 -0
  9. package/dist/chunk-VR3TRSC7.js +148 -0
  10. package/dist/clear-HNVVALWL.js +39 -0
  11. package/dist/compress-VZJHSVJK.js +33 -0
  12. package/dist/count-WRCFIWWS.js +24 -0
  13. package/dist/enforce-PHO4L7C2.js +381 -0
  14. package/dist/feedback-O6NKG46O.js +51 -0
  15. package/dist/hooks/enforce-claude-code.js +119 -0
  16. package/dist/hooks/enforce-codex.js +88 -0
  17. package/dist/hooks/on-prompt.js +9 -5
  18. package/dist/hooks/on-stop.js +8 -4
  19. package/dist/index.js +22 -16
  20. package/dist/ingest-JWLBIFEI.js +97 -0
  21. package/dist/init-ARU2CIOH.js +205 -0
  22. package/dist/init-C2MCDVWL.js +205 -0
  23. package/dist/init-ISP73KEC.js +210 -0
  24. package/dist/init-LIWL7Y3H.js +205 -0
  25. package/dist/init-VUJX3RRW.js +205 -0
  26. package/dist/invalidate-VUHHNZUX.js +40 -0
  27. package/dist/maintain-UUZ76QET.js +37 -0
  28. package/dist/relate-TEZ3GIIY.js +57 -0
  29. package/dist/reset-HQFOMYVP.js +129 -0
  30. package/dist/reset-OVU4A575.js +129 -0
  31. package/dist/reset-P62B444X.js +132 -0
  32. package/dist/reset-T6DPQCWI.js +129 -0
  33. package/dist/reset-WMDSMCAR.js +129 -0
  34. package/dist/search-IXV43G2C.js +48 -0
  35. package/dist/status-BLHKHB34.js +184 -0
  36. package/dist/status-CNGR7YDV.js +184 -0
  37. package/dist/status-FWHUUZ4R.js +184 -0
  38. package/dist/status-IHYARQXU.js +184 -0
  39. package/dist/store-DTN3PTFQ.js +101 -0
  40. package/dist/sync-EHYMBZHE.js +542 -0
  41. package/dist/working-memory-CH524PJA.js +53 -0
  42. package/package.json +8 -6
@@ -0,0 +1,205 @@
1
+ import {
2
+ getAgentsMdPath,
3
+ getCodexConfigFilePath,
4
+ getCursorMcpConfigPath,
5
+ getCursorRulesPath,
6
+ getGeminiMdPath,
7
+ getGeminiSettingsFilePath,
8
+ getGenericMCPPath,
9
+ isClaudeCodeInstalled,
10
+ registerClaudeCodeHooks,
11
+ registerCodexMCP,
12
+ registerCursorMCP,
13
+ registerGeminiMCP,
14
+ registerGenericMCP,
15
+ updateClaudeMd
16
+ } from "./chunk-UOT33X3Q.js";
17
+ import {
18
+ hasFlag,
19
+ optionalOption
20
+ } from "./chunk-SYPVELIW.js";
21
+ import {
22
+ getDefaultDbPath,
23
+ getEngine
24
+ } from "./chunk-VAVUPQZA.js";
25
+ import {
26
+ output
27
+ } from "./chunk-ET6TNQOJ.js";
28
+ import {
29
+ getConfig,
30
+ writeConfig
31
+ } from "./chunk-SEPYQK3J.js";
32
+
33
+ // src/commands/init.ts
34
+ import { existsSync } from "fs";
35
+ var LANG_FLAG_TO_PRESET = {
36
+ en: "en",
37
+ multi: "multilingual",
38
+ ko: "ko"
39
+ };
40
+ async function run(options) {
41
+ const { args, format, db, noEmbeddings } = options;
42
+ const wantClaudeCode = hasFlag(args, "--claude-code");
43
+ const wantCursor = hasFlag(args, "--cursor");
44
+ const wantCodex = hasFlag(args, "--codex");
45
+ const wantGemini = hasFlag(args, "--gemini");
46
+ const langFlag = optionalOption(args, "--lang");
47
+ const embeddingPreset = langFlag ? LANG_FLAG_TO_PRESET[langFlag] : void 0;
48
+ if (langFlag && !LANG_FLAG_TO_PRESET[langFlag]) {
49
+ process.stderr.write(
50
+ `Unknown --lang value: "${langFlag}". Supported: en, multi, ko
51
+ `
52
+ );
53
+ process.exitCode = 1;
54
+ return;
55
+ }
56
+ {
57
+ const config2 = getConfig();
58
+ const updates = {};
59
+ if (db) {
60
+ updates.dbPath = db;
61
+ }
62
+ if (noEmbeddings) {
63
+ updates.enableEmbeddings = false;
64
+ }
65
+ if (embeddingPreset) {
66
+ updates.embeddingPreset = embeddingPreset;
67
+ }
68
+ if (Object.keys(updates).length > 0) {
69
+ writeConfig({ ...config2, ...updates });
70
+ }
71
+ }
72
+ const config = getConfig();
73
+ const dbPath = db ?? config.dbPath ?? getDefaultDbPath();
74
+ const existed = existsSync(dbPath);
75
+ const engine = await getEngine({ db: dbPath, noEmbeddings });
76
+ await engine.close();
77
+ const result = {
78
+ database: {
79
+ path: dbPath,
80
+ created: !existed
81
+ },
82
+ integrations: {}
83
+ };
84
+ registerGenericMCP();
85
+ result.integrations.mcp = {
86
+ registered: true,
87
+ path: getGenericMCPPath()
88
+ };
89
+ if (wantClaudeCode) {
90
+ const hooksOk = registerClaudeCodeHooks();
91
+ const claudeMdOk = updateClaudeMd();
92
+ result.integrations.claudeCode = {
93
+ hooks: hooksOk,
94
+ mcp: true,
95
+ claudeMd: claudeMdOk
96
+ };
97
+ }
98
+ if (wantCursor) {
99
+ const cursorRulesUpdated = registerCursorMCP();
100
+ result.integrations.cursor = {
101
+ mcp: true,
102
+ path: getCursorMcpConfigPath(),
103
+ cursorRules: cursorRulesUpdated,
104
+ cursorRulesPath: getCursorRulesPath()
105
+ };
106
+ }
107
+ if (wantCodex) {
108
+ const agentsMdUpdated = registerCodexMCP();
109
+ result.integrations.codex = {
110
+ mcp: true,
111
+ path: getCodexConfigFilePath(),
112
+ agentsMd: agentsMdUpdated,
113
+ agentsMdPath: getAgentsMdPath()
114
+ };
115
+ }
116
+ if (wantGemini) {
117
+ const geminiMdUpdated = registerGeminiMCP();
118
+ result.integrations.gemini = {
119
+ mcp: true,
120
+ path: getGeminiSettingsFilePath(),
121
+ geminiMd: geminiMdUpdated,
122
+ geminiMdPath: getGeminiMdPath()
123
+ };
124
+ }
125
+ if (format === "text") {
126
+ printTextOutput(result, wantClaudeCode, wantCursor, wantCodex, wantGemini);
127
+ return;
128
+ }
129
+ output(result, format);
130
+ }
131
+ function printTextOutput(result, claudeCode, cursor, codex = false, gemini = false) {
132
+ const w = (s) => process.stdout.write(s);
133
+ w("\nMemRosetta initialized successfully.\n\n");
134
+ w(" What was set up:\n");
135
+ w(" ----------------------------------------\n");
136
+ w(` Database: ${result.database.path}`);
137
+ w(result.database.created ? " (created)\n" : " (already exists)\n");
138
+ w(` MCP Server: ${result.integrations.mcp.path} (always included)
139
+ `);
140
+ const currentConfig = getConfig();
141
+ if (currentConfig.embeddingPreset && currentConfig.embeddingPreset !== "en") {
142
+ const presetLabels = {
143
+ multilingual: "multilingual (multilingual-e5-small)",
144
+ ko: "Korean (ko-sroberta-multitask)"
145
+ };
146
+ w(` Embeddings: ${presetLabels[currentConfig.embeddingPreset] ?? currentConfig.embeddingPreset}
147
+ `);
148
+ }
149
+ if (claudeCode) {
150
+ const cc = result.integrations.claudeCode;
151
+ if (cc.hooks) {
152
+ w(" Stop Hook: ~/.claude/settings.json (auto-save on session end)\n");
153
+ } else if (!isClaudeCodeInstalled()) {
154
+ w(" Stop Hook: SKIPPED (Claude Code not found at ~/.claude)\n");
155
+ w(' Install Claude Code first, then run "memrosetta init --claude-code" again.\n');
156
+ }
157
+ if (cc.claudeMd) {
158
+ w(" CLAUDE.md: ~/.claude/CLAUDE.md (memory instructions added)\n");
159
+ } else {
160
+ w(" CLAUDE.md: already configured\n");
161
+ }
162
+ }
163
+ if (cursor) {
164
+ w(` Cursor MCP: ${result.integrations.cursor.path}
165
+ `);
166
+ if (result.integrations.cursor.cursorRules) {
167
+ w(` .cursorrules: ${result.integrations.cursor.cursorRulesPath} (memory instructions added)
168
+ `);
169
+ } else {
170
+ w(" .cursorrules: already configured\n");
171
+ }
172
+ }
173
+ if (codex) {
174
+ w(` Codex MCP: ${result.integrations.codex.path}
175
+ `);
176
+ if (result.integrations.codex.agentsMd) {
177
+ w(` AGENTS.md: ${result.integrations.codex.agentsMdPath} (memory instructions added)
178
+ `);
179
+ } else {
180
+ w(" AGENTS.md: already configured\n");
181
+ }
182
+ }
183
+ if (gemini) {
184
+ w(` Gemini MCP: ${result.integrations.gemini.path}
185
+ `);
186
+ if (result.integrations.gemini.geminiMd) {
187
+ w(` GEMINI.md: ${result.integrations.gemini.geminiMdPath} (memory instructions added)
188
+ `);
189
+ } else {
190
+ w(" GEMINI.md: already configured\n");
191
+ }
192
+ }
193
+ w("\n");
194
+ if (!claudeCode && !cursor && !codex && !gemini) {
195
+ w(" MCP is ready. Add --claude-code, --cursor, --codex, or --gemini for tool-specific setup.\n");
196
+ w(" Example: memrosetta init --claude-code\n");
197
+ w("\n");
198
+ }
199
+ if (claudeCode) {
200
+ w(" Restart Claude Code to activate.\n\n");
201
+ }
202
+ }
203
+ export {
204
+ run
205
+ };
@@ -0,0 +1,210 @@
1
+ import {
2
+ getAgentsMdPath,
3
+ getCodexConfigFilePath,
4
+ getCodexHooksPath,
5
+ getCursorMcpConfigPath,
6
+ getCursorRulesPath,
7
+ getGeminiMdPath,
8
+ getGeminiSettingsFilePath,
9
+ getGenericMCPPath,
10
+ isClaudeCodeInstalled,
11
+ registerClaudeCodeHooks,
12
+ registerCodexHooks,
13
+ registerCodexMCP,
14
+ registerCursorMCP,
15
+ registerGeminiMCP,
16
+ registerGenericMCP,
17
+ updateClaudeMd
18
+ } from "./chunk-4LNXT25H.js";
19
+ import {
20
+ hasFlag,
21
+ optionalOption
22
+ } from "./chunk-SYPVELIW.js";
23
+ import {
24
+ getDefaultDbPath,
25
+ getEngine
26
+ } from "./chunk-VAVUPQZA.js";
27
+ import {
28
+ output
29
+ } from "./chunk-ET6TNQOJ.js";
30
+ import {
31
+ getConfig,
32
+ writeConfig
33
+ } from "./chunk-SEPYQK3J.js";
34
+
35
+ // src/commands/init.ts
36
+ import { existsSync } from "fs";
37
+ var LANG_FLAG_TO_PRESET = {
38
+ en: "en",
39
+ multi: "multilingual",
40
+ ko: "ko"
41
+ };
42
+ async function run(options) {
43
+ const { args, format, db, noEmbeddings } = options;
44
+ const wantClaudeCode = hasFlag(args, "--claude-code");
45
+ const wantCursor = hasFlag(args, "--cursor");
46
+ const wantCodex = hasFlag(args, "--codex");
47
+ const wantGemini = hasFlag(args, "--gemini");
48
+ const langFlag = optionalOption(args, "--lang");
49
+ const embeddingPreset = langFlag ? LANG_FLAG_TO_PRESET[langFlag] : void 0;
50
+ if (langFlag && !LANG_FLAG_TO_PRESET[langFlag]) {
51
+ process.stderr.write(
52
+ `Unknown --lang value: "${langFlag}". Supported: en, multi, ko
53
+ `
54
+ );
55
+ process.exitCode = 1;
56
+ return;
57
+ }
58
+ {
59
+ const config2 = getConfig();
60
+ const updates = {};
61
+ if (db) {
62
+ updates.dbPath = db;
63
+ }
64
+ if (noEmbeddings) {
65
+ updates.enableEmbeddings = false;
66
+ }
67
+ if (embeddingPreset) {
68
+ updates.embeddingPreset = embeddingPreset;
69
+ }
70
+ if (Object.keys(updates).length > 0) {
71
+ writeConfig({ ...config2, ...updates });
72
+ }
73
+ }
74
+ const config = getConfig();
75
+ const dbPath = db ?? config.dbPath ?? getDefaultDbPath();
76
+ const existed = existsSync(dbPath);
77
+ const engine = await getEngine({ db: dbPath, noEmbeddings });
78
+ await engine.close();
79
+ const result = {
80
+ database: {
81
+ path: dbPath,
82
+ created: !existed
83
+ },
84
+ integrations: {}
85
+ };
86
+ registerGenericMCP();
87
+ result.integrations.mcp = {
88
+ registered: true,
89
+ path: getGenericMCPPath()
90
+ };
91
+ if (wantClaudeCode) {
92
+ const hooksOk = registerClaudeCodeHooks();
93
+ const claudeMdOk = updateClaudeMd();
94
+ result.integrations.claudeCode = {
95
+ hooks: hooksOk,
96
+ mcp: true,
97
+ claudeMd: claudeMdOk
98
+ };
99
+ }
100
+ if (wantCursor) {
101
+ const cursorRulesUpdated = registerCursorMCP();
102
+ result.integrations.cursor = {
103
+ mcp: true,
104
+ path: getCursorMcpConfigPath(),
105
+ cursorRules: cursorRulesUpdated,
106
+ cursorRulesPath: getCursorRulesPath()
107
+ };
108
+ }
109
+ if (wantCodex) {
110
+ const agentsMdUpdated = registerCodexMCP();
111
+ const hooksRegistered = registerCodexHooks();
112
+ result.integrations.codex = {
113
+ mcp: true,
114
+ path: getCodexConfigFilePath(),
115
+ agentsMd: agentsMdUpdated,
116
+ agentsMdPath: getAgentsMdPath(),
117
+ stopHook: hooksRegistered,
118
+ stopHookPath: getCodexHooksPath()
119
+ };
120
+ }
121
+ if (wantGemini) {
122
+ const geminiMdUpdated = registerGeminiMCP();
123
+ result.integrations.gemini = {
124
+ mcp: true,
125
+ path: getGeminiSettingsFilePath(),
126
+ geminiMd: geminiMdUpdated,
127
+ geminiMdPath: getGeminiMdPath()
128
+ };
129
+ }
130
+ if (format === "text") {
131
+ printTextOutput(result, wantClaudeCode, wantCursor, wantCodex, wantGemini);
132
+ return;
133
+ }
134
+ output(result, format);
135
+ }
136
+ function printTextOutput(result, claudeCode, cursor, codex = false, gemini = false) {
137
+ const w = (s) => process.stdout.write(s);
138
+ w("\nMemRosetta initialized successfully.\n\n");
139
+ w(" What was set up:\n");
140
+ w(" ----------------------------------------\n");
141
+ w(` Database: ${result.database.path}`);
142
+ w(result.database.created ? " (created)\n" : " (already exists)\n");
143
+ w(` MCP Server: ${result.integrations.mcp.path} (always included)
144
+ `);
145
+ const currentConfig = getConfig();
146
+ if (currentConfig.embeddingPreset && currentConfig.embeddingPreset !== "en") {
147
+ const presetLabels = {
148
+ multilingual: "multilingual (multilingual-e5-small)",
149
+ ko: "Korean (ko-sroberta-multitask)"
150
+ };
151
+ w(` Embeddings: ${presetLabels[currentConfig.embeddingPreset] ?? currentConfig.embeddingPreset}
152
+ `);
153
+ }
154
+ if (claudeCode) {
155
+ const cc = result.integrations.claudeCode;
156
+ if (cc.hooks) {
157
+ w(" Stop Hook: ~/.claude/settings.json (auto-save on session end)\n");
158
+ } else if (!isClaudeCodeInstalled()) {
159
+ w(" Stop Hook: SKIPPED (Claude Code not found at ~/.claude)\n");
160
+ w(' Install Claude Code first, then run "memrosetta init --claude-code" again.\n');
161
+ }
162
+ if (cc.claudeMd) {
163
+ w(" CLAUDE.md: ~/.claude/CLAUDE.md (memory instructions added)\n");
164
+ } else {
165
+ w(" CLAUDE.md: already configured\n");
166
+ }
167
+ }
168
+ if (cursor) {
169
+ w(` Cursor MCP: ${result.integrations.cursor.path}
170
+ `);
171
+ if (result.integrations.cursor.cursorRules) {
172
+ w(` .cursorrules: ${result.integrations.cursor.cursorRulesPath} (memory instructions added)
173
+ `);
174
+ } else {
175
+ w(" .cursorrules: already configured\n");
176
+ }
177
+ }
178
+ if (codex) {
179
+ w(` Codex MCP: ${result.integrations.codex.path}
180
+ `);
181
+ if (result.integrations.codex.agentsMd) {
182
+ w(` AGENTS.md: ${result.integrations.codex.agentsMdPath} (memory instructions added)
183
+ `);
184
+ } else {
185
+ w(" AGENTS.md: already configured\n");
186
+ }
187
+ }
188
+ if (gemini) {
189
+ w(` Gemini MCP: ${result.integrations.gemini.path}
190
+ `);
191
+ if (result.integrations.gemini.geminiMd) {
192
+ w(` GEMINI.md: ${result.integrations.gemini.geminiMdPath} (memory instructions added)
193
+ `);
194
+ } else {
195
+ w(" GEMINI.md: already configured\n");
196
+ }
197
+ }
198
+ w("\n");
199
+ if (!claudeCode && !cursor && !codex && !gemini) {
200
+ w(" MCP is ready. Add --claude-code, --cursor, --codex, or --gemini for tool-specific setup.\n");
201
+ w(" Example: memrosetta init --claude-code\n");
202
+ w("\n");
203
+ }
204
+ if (claudeCode) {
205
+ w(" Restart Claude Code to activate.\n\n");
206
+ }
207
+ }
208
+ export {
209
+ run
210
+ };
@@ -0,0 +1,205 @@
1
+ import {
2
+ getAgentsMdPath,
3
+ getCodexConfigFilePath,
4
+ getCursorMcpConfigPath,
5
+ getCursorRulesPath,
6
+ getGeminiMdPath,
7
+ getGeminiSettingsFilePath,
8
+ getGenericMCPPath,
9
+ isClaudeCodeInstalled,
10
+ registerClaudeCodeHooks,
11
+ registerCodexMCP,
12
+ registerCursorMCP,
13
+ registerGeminiMCP,
14
+ registerGenericMCP,
15
+ updateClaudeMd
16
+ } from "./chunk-5PH2RDAS.js";
17
+ import {
18
+ hasFlag,
19
+ optionalOption
20
+ } from "./chunk-SYPVELIW.js";
21
+ import {
22
+ getDefaultDbPath,
23
+ getEngine
24
+ } from "./chunk-VAVUPQZA.js";
25
+ import {
26
+ output
27
+ } from "./chunk-ET6TNQOJ.js";
28
+ import {
29
+ getConfig,
30
+ writeConfig
31
+ } from "./chunk-SEPYQK3J.js";
32
+
33
+ // src/commands/init.ts
34
+ import { existsSync } from "fs";
35
+ var LANG_FLAG_TO_PRESET = {
36
+ en: "en",
37
+ multi: "multilingual",
38
+ ko: "ko"
39
+ };
40
+ async function run(options) {
41
+ const { args, format, db, noEmbeddings } = options;
42
+ const wantClaudeCode = hasFlag(args, "--claude-code");
43
+ const wantCursor = hasFlag(args, "--cursor");
44
+ const wantCodex = hasFlag(args, "--codex");
45
+ const wantGemini = hasFlag(args, "--gemini");
46
+ const langFlag = optionalOption(args, "--lang");
47
+ const embeddingPreset = langFlag ? LANG_FLAG_TO_PRESET[langFlag] : void 0;
48
+ if (langFlag && !LANG_FLAG_TO_PRESET[langFlag]) {
49
+ process.stderr.write(
50
+ `Unknown --lang value: "${langFlag}". Supported: en, multi, ko
51
+ `
52
+ );
53
+ process.exitCode = 1;
54
+ return;
55
+ }
56
+ {
57
+ const config2 = getConfig();
58
+ const updates = {};
59
+ if (db) {
60
+ updates.dbPath = db;
61
+ }
62
+ if (noEmbeddings) {
63
+ updates.enableEmbeddings = false;
64
+ }
65
+ if (embeddingPreset) {
66
+ updates.embeddingPreset = embeddingPreset;
67
+ }
68
+ if (Object.keys(updates).length > 0) {
69
+ writeConfig({ ...config2, ...updates });
70
+ }
71
+ }
72
+ const config = getConfig();
73
+ const dbPath = db ?? config.dbPath ?? getDefaultDbPath();
74
+ const existed = existsSync(dbPath);
75
+ const engine = await getEngine({ db: dbPath, noEmbeddings });
76
+ await engine.close();
77
+ const result = {
78
+ database: {
79
+ path: dbPath,
80
+ created: !existed
81
+ },
82
+ integrations: {}
83
+ };
84
+ registerGenericMCP();
85
+ result.integrations.mcp = {
86
+ registered: true,
87
+ path: getGenericMCPPath()
88
+ };
89
+ if (wantClaudeCode) {
90
+ const hooksOk = registerClaudeCodeHooks();
91
+ const claudeMdOk = updateClaudeMd();
92
+ result.integrations.claudeCode = {
93
+ hooks: hooksOk,
94
+ mcp: true,
95
+ claudeMd: claudeMdOk
96
+ };
97
+ }
98
+ if (wantCursor) {
99
+ const cursorRulesUpdated = registerCursorMCP();
100
+ result.integrations.cursor = {
101
+ mcp: true,
102
+ path: getCursorMcpConfigPath(),
103
+ cursorRules: cursorRulesUpdated,
104
+ cursorRulesPath: getCursorRulesPath()
105
+ };
106
+ }
107
+ if (wantCodex) {
108
+ const agentsMdUpdated = registerCodexMCP();
109
+ result.integrations.codex = {
110
+ mcp: true,
111
+ path: getCodexConfigFilePath(),
112
+ agentsMd: agentsMdUpdated,
113
+ agentsMdPath: getAgentsMdPath()
114
+ };
115
+ }
116
+ if (wantGemini) {
117
+ const geminiMdUpdated = registerGeminiMCP();
118
+ result.integrations.gemini = {
119
+ mcp: true,
120
+ path: getGeminiSettingsFilePath(),
121
+ geminiMd: geminiMdUpdated,
122
+ geminiMdPath: getGeminiMdPath()
123
+ };
124
+ }
125
+ if (format === "text") {
126
+ printTextOutput(result, wantClaudeCode, wantCursor, wantCodex, wantGemini);
127
+ return;
128
+ }
129
+ output(result, format);
130
+ }
131
+ function printTextOutput(result, claudeCode, cursor, codex = false, gemini = false) {
132
+ const w = (s) => process.stdout.write(s);
133
+ w("\nMemRosetta initialized successfully.\n\n");
134
+ w(" What was set up:\n");
135
+ w(" ----------------------------------------\n");
136
+ w(` Database: ${result.database.path}`);
137
+ w(result.database.created ? " (created)\n" : " (already exists)\n");
138
+ w(` MCP Server: ${result.integrations.mcp.path} (always included)
139
+ `);
140
+ const currentConfig = getConfig();
141
+ if (currentConfig.embeddingPreset && currentConfig.embeddingPreset !== "en") {
142
+ const presetLabels = {
143
+ multilingual: "multilingual (multilingual-e5-small)",
144
+ ko: "Korean (ko-sroberta-multitask)"
145
+ };
146
+ w(` Embeddings: ${presetLabels[currentConfig.embeddingPreset] ?? currentConfig.embeddingPreset}
147
+ `);
148
+ }
149
+ if (claudeCode) {
150
+ const cc = result.integrations.claudeCode;
151
+ if (cc.hooks) {
152
+ w(" Stop Hook: ~/.claude/settings.json (auto-save on session end)\n");
153
+ } else if (!isClaudeCodeInstalled()) {
154
+ w(" Stop Hook: SKIPPED (Claude Code not found at ~/.claude)\n");
155
+ w(' Install Claude Code first, then run "memrosetta init --claude-code" again.\n');
156
+ }
157
+ if (cc.claudeMd) {
158
+ w(" CLAUDE.md: ~/.claude/CLAUDE.md (memory instructions added)\n");
159
+ } else {
160
+ w(" CLAUDE.md: already configured\n");
161
+ }
162
+ }
163
+ if (cursor) {
164
+ w(` Cursor MCP: ${result.integrations.cursor.path}
165
+ `);
166
+ if (result.integrations.cursor.cursorRules) {
167
+ w(` .cursorrules: ${result.integrations.cursor.cursorRulesPath} (memory instructions added)
168
+ `);
169
+ } else {
170
+ w(" .cursorrules: already configured\n");
171
+ }
172
+ }
173
+ if (codex) {
174
+ w(` Codex MCP: ${result.integrations.codex.path}
175
+ `);
176
+ if (result.integrations.codex.agentsMd) {
177
+ w(` AGENTS.md: ${result.integrations.codex.agentsMdPath} (memory instructions added)
178
+ `);
179
+ } else {
180
+ w(" AGENTS.md: already configured\n");
181
+ }
182
+ }
183
+ if (gemini) {
184
+ w(` Gemini MCP: ${result.integrations.gemini.path}
185
+ `);
186
+ if (result.integrations.gemini.geminiMd) {
187
+ w(` GEMINI.md: ${result.integrations.gemini.geminiMdPath} (memory instructions added)
188
+ `);
189
+ } else {
190
+ w(" GEMINI.md: already configured\n");
191
+ }
192
+ }
193
+ w("\n");
194
+ if (!claudeCode && !cursor && !codex && !gemini) {
195
+ w(" MCP is ready. Add --claude-code, --cursor, --codex, or --gemini for tool-specific setup.\n");
196
+ w(" Example: memrosetta init --claude-code\n");
197
+ w("\n");
198
+ }
199
+ if (claudeCode) {
200
+ w(" Restart Claude Code to activate.\n\n");
201
+ }
202
+ }
203
+ export {
204
+ run
205
+ };