memax-cli 0.1.0-alpha.39 → 0.1.0-alpha.40

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 (80) hide show
  1. package/dist/commands/agent-sessions.d.ts +12 -9
  2. package/dist/commands/agent-sessions.d.ts.map +1 -1
  3. package/dist/commands/agent-sessions.js +44 -4
  4. package/dist/commands/agent-sessions.js.map +1 -1
  5. package/dist/commands/agents.d.ts +3 -0
  6. package/dist/commands/agents.d.ts.map +1 -0
  7. package/dist/commands/agents.js +36 -0
  8. package/dist/commands/agents.js.map +1 -0
  9. package/dist/commands/auth.d.ts +2 -0
  10. package/dist/commands/auth.d.ts.map +1 -1
  11. package/dist/commands/auth.js +19 -0
  12. package/dist/commands/auth.js.map +1 -1
  13. package/dist/commands/capture.d.ts +2 -0
  14. package/dist/commands/capture.d.ts.map +1 -1
  15. package/dist/commands/capture.js +8 -0
  16. package/dist/commands/capture.js.map +1 -1
  17. package/dist/commands/config.d.ts +2 -0
  18. package/dist/commands/config.d.ts.map +1 -1
  19. package/dist/commands/config.js +13 -0
  20. package/dist/commands/config.js.map +1 -1
  21. package/dist/commands/delete.d.ts +2 -0
  22. package/dist/commands/delete.d.ts.map +1 -1
  23. package/dist/commands/delete.js +8 -0
  24. package/dist/commands/delete.js.map +1 -1
  25. package/dist/commands/dreams.d.ts +2 -0
  26. package/dist/commands/dreams.d.ts.map +1 -1
  27. package/dist/commands/dreams.js +25 -0
  28. package/dist/commands/dreams.js.map +1 -1
  29. package/dist/commands/hook.d.ts +2 -0
  30. package/dist/commands/hook.d.ts.map +1 -1
  31. package/dist/commands/hook.js +6 -0
  32. package/dist/commands/hook.js.map +1 -1
  33. package/dist/commands/hub.d.ts +2 -0
  34. package/dist/commands/hub.d.ts.map +1 -1
  35. package/dist/commands/hub.js +52 -3
  36. package/dist/commands/hub.js.map +1 -1
  37. package/dist/commands/hub.test.js +2 -2
  38. package/dist/commands/hub.test.js.map +1 -1
  39. package/dist/commands/list.d.ts +2 -0
  40. package/dist/commands/list.d.ts.map +1 -1
  41. package/dist/commands/list.js +13 -0
  42. package/dist/commands/list.js.map +1 -1
  43. package/dist/commands/login.d.ts +2 -0
  44. package/dist/commands/login.d.ts.map +1 -1
  45. package/dist/commands/login.js +14 -0
  46. package/dist/commands/login.js.map +1 -1
  47. package/dist/commands/mcp.d.ts.map +1 -1
  48. package/dist/commands/mcp.js +10 -0
  49. package/dist/commands/mcp.js.map +1 -1
  50. package/dist/commands/push.d.ts +2 -0
  51. package/dist/commands/push.d.ts.map +1 -1
  52. package/dist/commands/push.js +16 -0
  53. package/dist/commands/push.js.map +1 -1
  54. package/dist/commands/recall.d.ts +2 -0
  55. package/dist/commands/recall.d.ts.map +1 -1
  56. package/dist/commands/recall.js +14 -0
  57. package/dist/commands/recall.js.map +1 -1
  58. package/dist/commands/setup.d.ts +2 -0
  59. package/dist/commands/setup.d.ts.map +1 -1
  60. package/dist/commands/setup.js +20 -0
  61. package/dist/commands/setup.js.map +1 -1
  62. package/dist/commands/show.d.ts +2 -0
  63. package/dist/commands/show.d.ts.map +1 -1
  64. package/dist/commands/show.js +7 -0
  65. package/dist/commands/show.js.map +1 -1
  66. package/dist/commands/sync.d.ts +14 -5
  67. package/dist/commands/sync.d.ts.map +1 -1
  68. package/dist/commands/sync.js +79 -22
  69. package/dist/commands/sync.js.map +1 -1
  70. package/dist/commands/topic.d.ts +2 -0
  71. package/dist/commands/topic.d.ts.map +1 -1
  72. package/dist/commands/topic.js +38 -0
  73. package/dist/commands/topic.js.map +1 -1
  74. package/dist/index.js +33 -355
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/project-context.d.ts +5 -2
  77. package/dist/lib/project-context.d.ts.map +1 -1
  78. package/dist/lib/project-context.js +3 -0
  79. package/dist/lib/project-context.js.map +1 -1
  80. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3,35 +3,23 @@ import { Command } from "commander";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { join, dirname } from "node:path";
6
- import { pushCommand } from "./commands/push.js";
7
- import { recallCommand } from "./commands/recall.js";
8
- import { listCommand } from "./commands/list.js";
9
- import { showCommand } from "./commands/show.js";
10
- import { deleteCommand } from "./commands/delete.js";
11
- import { syncCommand, syncStatusCommand, syncAgentMemoryCommand, listAgentConfigsCommand, listDeletedAgentConfigsCommand, restoreDeletedAgentConfigsCommand, deleteAgentConfigsCommand, doctorAgentConfigsCommand, } from "./commands/sync.js";
12
- import { syncAgentSessionsCommand, listAgentSessionsCommand, listDeletedAgentSessionsCommand, restoreDeletedAgentSessionsCommand, deleteAgentSessionsCommand, cleanupAgentSessionsCommand, doctorAgentSessionsCommand, } from "./commands/agent-sessions.js";
13
- import { hookCommand } from "./commands/hook.js";
14
- import { configGetCommand, configSetCommand } from "./commands/config.js";
15
- import { loginCommand, logoutCommand, whoamiCommand, } from "./commands/login.js";
16
- import { createKeyCommand, listKeysCommand, revokeKeyCommand, } from "./commands/auth.js";
6
+ import { registerPushCommand } from "./commands/push.js";
7
+ import { registerRecallCommand } from "./commands/recall.js";
8
+ import { registerListCommand } from "./commands/list.js";
9
+ import { registerShowCommand } from "./commands/show.js";
10
+ import { registerDeleteCommand } from "./commands/delete.js";
11
+ import { registerSyncCommands } from "./commands/sync.js";
12
+ import { registerAgentsCommands } from "./commands/agents.js";
13
+ import { registerHookCommand } from "./commands/hook.js";
14
+ import { registerConfigCommand } from "./commands/config.js";
15
+ import { registerLoginCommands } from "./commands/login.js";
16
+ import { registerAuthCommand } from "./commands/auth.js";
17
17
  import { registerMcpCommand } from "./commands/mcp.js";
18
- import { setupCommand, teardownCommand } from "./commands/setup.js";
19
- import { hubListCommand, hubCreateCommand, hubSwitchCommand, hubInviteAcceptCommand, hubInviteCreateCommand, hubInviteListCommand, hubInviteRegenerateCommand, hubInviteRevokeCommand, } from "./commands/hub.js";
20
- import { topicListCommand, topicCreateCommand, topicSetCommand, topicClearCommand, topicDeleteCommand, } from "./commands/topic.js";
21
- import { captureSessionCommand } from "./commands/capture.js";
22
- import { dreamsListCommand, dreamsReportCommand, dreamsTriggerCommand, } from "./commands/dreams.js";
23
- async function syncAgentsCommand(options) {
24
- await syncAgentMemoryCommand(options);
25
- await syncAgentSessionsCommand(options);
26
- }
27
- async function listAgentsCommand() {
28
- await listAgentConfigsCommand();
29
- await listAgentSessionsCommand();
30
- }
31
- async function doctorAgentsCommand() {
32
- await doctorAgentConfigsCommand();
33
- await doctorAgentSessionsCommand();
34
- }
18
+ import { registerSetupCommands } from "./commands/setup.js";
19
+ import { registerHubCommands } from "./commands/hub.js";
20
+ import { registerTopicCommands } from "./commands/topic.js";
21
+ import { registerCaptureSessionCommand } from "./commands/capture.js";
22
+ import { registerDreamsCommands } from "./commands/dreams.js";
35
23
  const __dirname = dirname(fileURLToPath(import.meta.url));
36
24
  const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
37
25
  const program = new Command();
@@ -39,333 +27,23 @@ program
39
27
  .name("memax")
40
28
  .description("Universal context & memory hub for AI agents")
41
29
  .version(pkg.version);
42
- // --- Core commands ---
43
- program
44
- .command("push [content]")
45
- .alias("remember")
46
- .description("Save knowledge to your Memax workspace")
47
- .option("-f, --file <path>", "File to push")
48
- .option("-c, --category <category>", "Category (auto-detected if omitted)")
49
- .option("-t, --tags <tags>", "Comma-separated tags")
50
- .option("--title <title>", "Memory title")
51
- .option("-H, --hint <hint>", "Context hint for AI processing (e.g. 'my resume', 'meeting notes')")
52
- .option("--ttl <duration>", "Auto-archive after duration (e.g., 7d, 30d)")
53
- .option("--stdin", "Read content from stdin")
54
- .option("--hub <slug>", "Push to a specific hub explicitly")
55
- .option("--agent <name>", "Source agent identity (e.g., claude-code, cursor)")
56
- .action(pushCommand);
57
- program
58
- .command("recall [query]")
59
- .description("Ask your knowledge a question")
60
- .option("-c, --category <category>", "Filter by category")
61
- .option("-t, --tags <tags>", "Filter by tags")
62
- .option("-l, --limit <n>", "Max results", "5")
63
- .option("--format <format>", "Output format: text, json", "text")
64
- .option("--hook", "Output in agent-injectable format")
65
- .option("--max-tokens <number>", "Maximum tokens to output (approximate)")
66
- .option("--include-archived", "Include archived memories")
67
- .option("--hub <slug>", "Recall from a specific hub only")
68
- .action(recallCommand);
69
- program
70
- .command("list")
71
- .description("List your memories")
72
- .option("-c, --category <category>", "Filter by category")
73
- .option("-s, --sort <sort>", "Sort by: newest, relevant", "newest")
74
- .option("-l, --limit <n>", "Max results per page", "20")
75
- .option("--cursor <cursor>", "Continue from a pagination cursor")
76
- .option("--hub <slug>", "List memories from a specific hub only")
77
- .option("--format <format>", "Output format: text, json", "text")
78
- .option("--all", "Fetch all pages (not just the first)")
79
- .action(listCommand);
80
- program
81
- .command("show <id>")
82
- .alias("get")
83
- .description("Show a specific memory")
84
- .action(showCommand);
85
- program
86
- .command("delete <id>")
87
- .alias("forget")
88
- .description("Delete a memory")
89
- .option("-y, --yes", "Skip confirmation")
90
- .action(deleteCommand);
91
- // --- Sync ---
92
- const syncCmd = program
93
- .command("sync [directory]")
94
- .description("Sync a directory or agent configs to your Memax workspace")
95
- .option("-w, --watch", "Watch for changes (coming soon)")
96
- .option("-b, --boundary <level>", "Visibility level: private, team, org", "private")
97
- .option("-c, --category <category>", "Default category (auto-detected if omitted)")
98
- .option("--ignore <patterns>", "Comma-separated directories to ignore")
99
- .option("-y, --yes", "Skip confirmation for large syncs")
100
- .action(syncCommand);
101
- syncCmd
102
- .command("status")
103
- .description("Show registered memory sync sources and last run status")
104
- .action(syncStatusCommand);
105
- syncCmd
106
- .command("agents")
107
- .description("Sync agent configs and sessions (alias for: memax agents sync)")
108
- .option("--push", "Force push local configs to cloud (overwrite)")
109
- .option("--pull", "Force pull cloud configs to local (overwrite)")
110
- .action(syncAgentsCommand);
111
- // --- Agents management ---
112
- const agentsCmd = program
113
- .command("agents")
114
- .description("Manage synced agent configs and sessions");
115
- agentsCmd
116
- .command("sync")
117
- .description("Sync agent configs and sessions bidirectionally with Memax cloud")
118
- .option("--push", "Force push local configs to cloud (overwrite)")
119
- .option("--pull", "Force pull cloud data to local (overwrite)")
120
- .action(syncAgentsCommand);
121
- agentsCmd
122
- .command("list")
123
- .description("List synced agent configs and sessions in the cloud")
124
- .action(listAgentsCommand);
125
- agentsCmd
126
- .command("doctor")
127
- .description("Explain agent sync identity, discovery, and safe restore behavior on this machine")
128
- .action(doctorAgentsCommand);
129
- const agentConfigsCmd = agentsCmd
130
- .command("configs")
131
- .description("Manage synced agent config files");
132
- agentConfigsCmd
133
- .command("sync")
134
- .description("Sync agent config files bidirectionally with Memax cloud")
135
- .option("--push", "Force push local configs to cloud (overwrite)")
136
- .option("--pull", "Force pull cloud configs to local (overwrite)")
137
- .action(syncAgentMemoryCommand);
138
- agentConfigsCmd
139
- .command("list")
140
- .description("List all synced agent configs in the cloud")
141
- .action(listAgentConfigsCommand);
142
- agentConfigsCmd
143
- .command("deleted")
144
- .description("List recoverable deleted configs retained in cloud")
145
- .action(listDeletedAgentConfigsCommand);
146
- agentConfigsCmd
147
- .command("restore")
148
- .description("Restore deleted configs retained in cloud")
149
- .action(restoreDeletedAgentConfigsCommand);
150
- agentConfigsCmd
151
- .command("delete")
152
- .description("Interactively select and delete synced configs")
153
- .action(deleteAgentConfigsCommand);
154
- agentConfigsCmd
155
- .command("doctor")
156
- .description("Explain config sync identity, discovery, and safe restore behavior on this machine")
157
- .action(doctorAgentConfigsCommand);
158
- // --- Agent sessions management ---
159
- const agentSessionsCmd = agentsCmd
160
- .command("sessions")
161
- .description("Manage synced agent session artifacts");
162
- agentSessionsCmd
163
- .command("sync")
164
- .description("Sync agent session artifacts bidirectionally with Memax cloud")
165
- .option("--push", "Force push local session artifacts to cloud (overwrite)")
166
- .option("--pull", "Force pull cloud session artifacts to local (overwrite)")
167
- .action(syncAgentSessionsCommand);
168
- agentSessionsCmd
169
- .command("list")
170
- .description("List synced agent session artifacts in the cloud")
171
- .action(listAgentSessionsCommand);
172
- agentSessionsCmd
173
- .command("deleted")
174
- .description("List recoverable deleted session artifacts retained in cloud")
175
- .action(listDeletedAgentSessionsCommand);
176
- agentSessionsCmd
177
- .command("restore")
178
- .description("Restore deleted session artifacts retained in cloud")
179
- .action(restoreDeletedAgentSessionsCommand);
180
- agentSessionsCmd
181
- .command("delete")
182
- .description("Interactively select and delete synced session artifacts")
183
- .action(deleteAgentSessionsCommand);
184
- agentSessionsCmd
185
- .command("cleanup")
186
- .description("Remove safe legacy global session duplicates from cloud")
187
- .option("-y, --yes", "Skip confirmation")
188
- .action(cleanupAgentSessionsCommand);
189
- agentSessionsCmd
190
- .command("doctor")
191
- .description("Explain session sync identity, discovery, and safe restore behavior on this machine")
192
- .action(doctorAgentSessionsCommand);
193
- // --- Session capture ---
194
- program
195
- .command("capture-session")
196
- .description("Capture an agent session — extract decisions and learnings")
197
- .option("--summary <text>", "Session summary text (alternative to stdin)")
198
- .option("--agent <name>", "Agent name (claude-code, gemini, etc.)")
199
- .action(captureSessionCommand);
200
- // --- Agent integration setup ---
201
- program
202
- .command("setup")
203
- .description("Set up AI agent integrations (auto-detects installed agents)")
204
- .option("--mcp", "Enable MCP server (agent tools)")
205
- .option("--hooks", "Enable context injection hooks")
206
- .option("--instructions", "Inject memax instructions into agent config files")
207
- .option("--all", "Enable MCP + hooks + instructions")
208
- .option("--local", "Use local stdio MCP instead of remote server")
209
- .option("--print", "Print MCP config JSON to copy/paste (no changes made)")
210
- .option("--only <agents>", "Only configure these agents (comma-separated)")
211
- .option("--skip <agents>", "Skip these agents (comma-separated)")
212
- .option("--hub <id>", "Scope MCP key to a specific hub")
213
- .action(setupCommand);
214
- program
215
- .command("teardown")
216
- .description("Remove Memax integrations from agents")
217
- .option("--only <agents>", "Only remove from these agents (comma-separated)")
218
- .action(teardownCommand);
219
- program
220
- .command("hook <action> <agent>")
221
- .description("Manage agent hooks (install/uninstall claude-code)")
222
- .action(hookCommand);
223
- // --- Auth ---
224
- program
225
- .command("login")
226
- .description("Log in to Memax via GitHub")
227
- .action(loginCommand);
228
- program
229
- .command("logout")
230
- .description("Clear saved credentials")
231
- .action(logoutCommand);
232
- program
233
- .command("whoami")
234
- .description("Show current user")
235
- .action(whoamiCommand);
236
- // --- API Keys ---
237
- const authCmd = program
238
- .command("auth")
239
- .description("Manage authentication and API keys");
240
- authCmd
241
- .command("create-key <name>")
242
- .description("Create an API key for CI/CD or non-interactive use")
243
- .option("--expires <days>", "Expire after N days (default: never)")
244
- .option("--hub <id>", "Scope to a specific hub (default: all hubs)")
245
- .action(createKeyCommand);
246
- authCmd
247
- .command("list-keys")
248
- .description("List your API keys")
249
- .action(listKeysCommand);
250
- authCmd
251
- .command("revoke-key <id>")
252
- .description("Revoke an API key")
253
- .action(revokeKeyCommand);
254
- // --- Hubs ---
255
- const hubCmd = program.command("hub").description("Manage hubs (workspaces)");
256
- hubCmd.command("list").description("List your hubs").action(hubListCommand);
257
- hubCmd
258
- .command("create <name>")
259
- .description("Create a new team hub")
260
- .action(hubCreateCommand);
261
- hubCmd
262
- .command("switch <id-or-slug>")
263
- .description('Switch your active read hub (use "personal" for your personal hub)')
264
- .action(hubSwitchCommand);
265
- const hubInviteCmd = hubCmd.command("invite").description("Manage hub invites");
266
- hubInviteCmd
267
- .command("create")
268
- .description("Create a shareable invite link for the current or selected hub")
269
- .option("--hub <slug>", "Scope to a hub")
270
- .option("--role <role>", "Invite role: admin, member, reader", "member")
271
- .option("--format <format>", "Output format: text, json", "text")
272
- .action(hubInviteCreateCommand);
273
- hubInviteCmd
274
- .command("list")
275
- .description("List outstanding invites for the current or selected hub")
276
- .option("--hub <slug>", "Scope to a hub")
277
- .option("--verbose", "Show full invite IDs")
278
- .option("--format <format>", "Output format: text, json", "text")
279
- .action(hubInviteListCommand);
280
- hubInviteCmd
281
- .command("revoke <invite-id-or-prefix>")
282
- .description("Revoke an outstanding invite")
283
- .option("--hub <slug>", "Scope to a hub")
284
- .option("--format <format>", "Output format: text, json", "text")
285
- .action(hubInviteRevokeCommand);
286
- hubInviteCmd
287
- .command("regenerate <invite-id-or-prefix>")
288
- .description("Revoke and replace an outstanding invite")
289
- .option("--hub <slug>", "Scope to a hub")
290
- .option("--format <format>", "Output format: text, json", "text")
291
- .action(hubInviteRegenerateCommand);
292
- hubInviteCmd
293
- .command("accept <token-or-url>")
294
- .description("Accept a hub invite from a token or full invite URL")
295
- .action(hubInviteAcceptCommand);
296
- // --- Topics ---
297
- const topicCmd = program
298
- .command("topic")
299
- .alias("topics")
300
- .description("Browse and manage knowledge topics");
301
- topicCmd
302
- .command("list")
303
- .description("List your topic tree")
304
- .option("--hub <slug>", "Scope to a hub")
305
- .option("--verbose", "Show full topic IDs")
306
- .option("--format <format>", "Output format: text, json", "text")
307
- .action(topicListCommand);
308
- topicCmd
309
- .command("create <name>")
310
- .description("Create a new topic")
311
- .option("-p, --parent <id-or-prefix>", "Parent topic ID or unique prefix")
312
- .option("-d, --description <text>", "Topic description")
313
- .option("-i, --icon <name>", "Lucide icon name")
314
- .option("--hub <slug>", "Hub to create in")
315
- .action(topicCreateCommand);
316
- topicCmd
317
- .command("set <memory-id>")
318
- .alias("add")
319
- .description("Set the topic for a memory")
320
- .requiredOption("-t, --topic <id>", "Topic ID or unique prefix")
321
- .action(topicSetCommand);
322
- topicCmd
323
- .command("clear <memory-id>")
324
- .alias("remove")
325
- .description("Clear the topic from a memory")
326
- .option("-t, --topic <id>", "Topic ID or unique prefix (optional if the memory already has one)")
327
- .action(topicClearCommand);
328
- const dreamsCmd = program
329
- .command("dreams")
330
- .alias("dream")
331
- .description("Inspect dream runs and consolidation history");
332
- dreamsCmd
333
- .command("list")
334
- .description("List recent dream runs")
335
- .option("-l, --limit <n>", "Max dream runs", "10")
336
- .option("--hub <slug>", "Scope to a hub")
337
- .option("--format <format>", "Output format: text, json", "text")
338
- .action(dreamsListCommand);
339
- dreamsCmd
340
- .command("report")
341
- .description("Show the latest dream report for the current hub")
342
- .option("--hub <slug>", "Scope to a hub")
343
- .option("--format <format>", "Output format: text, json", "text")
344
- .action(dreamsReportCommand);
345
- dreamsCmd
346
- .command("trigger")
347
- .description("Trigger a dream cycle for the current hub")
348
- .option("--hub <slug>", "Scope to a hub")
349
- .option("--format <format>", "Output format: text, json", "text")
350
- .action(dreamsTriggerCommand);
351
- topicCmd
352
- .command("delete <topic-id>")
353
- .description("Delete a topic")
354
- .option("--hub <slug>", "Scope topic prefix resolution to a hub")
355
- .action(topicDeleteCommand);
356
- // --- MCP Server ---
30
+ // --- Command registration (order defines help layout) ---
31
+ registerPushCommand(program);
32
+ registerRecallCommand(program);
33
+ registerListCommand(program);
34
+ registerShowCommand(program);
35
+ registerDeleteCommand(program);
36
+ registerCaptureSessionCommand(program);
37
+ registerTopicCommands(program);
38
+ registerDreamsCommands(program);
39
+ registerHubCommands(program);
40
+ registerAgentsCommands(program);
41
+ registerSyncCommands(program);
42
+ registerSetupCommands(program);
43
+ registerHookCommand(program);
357
44
  registerMcpCommand(program);
358
- // --- Config ---
359
- const configCmd = program
360
- .command("config")
361
- .description("Manage Memax configuration");
362
- configCmd
363
- .command("get [key]")
364
- .description("Get config value (or all values)")
365
- .action(configGetCommand);
366
- configCmd
367
- .command("set <key> <value>")
368
- .description("Set a config value")
369
- .action(configSetCommand);
45
+ registerLoginCommands(program);
46
+ registerAuthCommand(program);
47
+ registerConfigCommand(program);
370
48
  program.parse();
371
49
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM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AAExB,2DAA2D;AAE3D,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,6BAA6B,CAAC,OAAO,CAAC,CAAC;AACvC,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAChC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAChC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC5B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC7B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAE/B,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { Scope } from "memax-sdk";
1
2
  /**
2
3
  * Normalize a git remote URL to a canonical form for use as a project identifier.
3
4
  *
@@ -11,11 +12,13 @@ export interface MemaxYmlConfig {
11
12
  hub?: string;
12
13
  project_id?: string;
13
14
  }
15
+ export type ProjectScope = Scope | "project";
14
16
  export interface ProjectScopeResolution {
15
- scope: string;
17
+ scope: ProjectScope;
16
18
  source: "memax_yml" | "git_remote" | "fallback";
17
19
  warning?: string;
18
20
  }
21
+ export declare function isCanonicalProjectScope(scope: ProjectScope): scope is Scope;
19
22
  export declare function findNearestMemaxYmlPath(dir?: string): string | null;
20
23
  export declare function readMemaxYmlConfig(dir?: string): MemaxYmlConfig | undefined;
21
24
  /**
@@ -25,7 +28,7 @@ export declare function readMemaxYmlConfig(dir?: string): MemaxYmlConfig | undef
25
28
  * "project:<project-id>" — .memax.yml project_id or git remote available
26
29
  * "project" — no canonical cross-device project identity
27
30
  */
28
- export declare function getProjectScope(dir?: string): string;
31
+ export declare function getProjectScope(dir?: string): ProjectScope;
29
32
  export declare function resolveProjectScope(dir?: string): ProjectScopeResolution;
30
33
  export declare function resolveProjectRootPath(dir?: string): string | null;
31
34
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"project-context.d.ts","sourceRoot":"","sources":["../../src/lib/project-context.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAgBpD;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA2BD,wBAAgB,uBAAuB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEnE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CA0B3E;AAiBD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,sBAAsB,CA4BxE;AAED,wBAAgB,sBAAsB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkBlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAS7E;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MA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,sBAAsB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkBlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAS7E;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI3E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BzE;AAED,gEAAgE;AAChE,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAEpD"}
@@ -29,6 +29,9 @@ export function normalizeRepoUrl(url) {
29
29
  s = s.toLowerCase().replace(/\\/g, "/");
30
30
  return s;
31
31
  }
32
+ export function isCanonicalProjectScope(scope) {
33
+ return scope !== "project";
34
+ }
32
35
  function normalizeProjectID(projectID) {
33
36
  let s = projectID.trim();
34
37
  s = s.replace(/^project:/, "");
@@ -1 +1 @@
1
- {"version":3,"file":"project-context.js","sourceRoot":"","sources":["../../src/lib/project-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,gFAAgF;AAChF,4EAA4E;AAC5E,gFAAgF;AAEhF;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACnB,4CAA4C;IAC5C,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,CAAC,CAAC;I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MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,QAAQ,CAAC,2BAA2B,EAAE;YACjD,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,IAAI;YAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IACV,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,QAAQ,CAAC,+BAA+B,EAAE;YACxD,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,OAAO;YAAE,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAG,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IACV,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,QAAQ,CAAC,2BAA2B,EAAE;YACnD,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,MAAM;YAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IACV,OAAO,GAAG,CAAC;AACb,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,eAAe;IAC7B,OAAO,kBAAkB,EAAE,EAAE,GAAG,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memax-cli",
3
- "version": "0.1.0-alpha.39",
3
+ "version": "0.1.0-alpha.40",
4
4
  "description": "CLI for Memax — universal context & memory hub for AI agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "@modelcontextprotocol/sdk": "^1.12.1",
17
17
  "chalk": "^5.4.0",
18
18
  "commander": "^13.0.0",
19
- "memax-sdk": "^0.1.8"
19
+ "memax-sdk": "^0.1.9"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^25.5.0",