@empirical-gauzza/cli 1.0.21 → 1.0.23

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.
@@ -1,134 +1,140 @@
1
- ---
2
- name: empirical-memory
3
- description: Use Empirical to recall/save durable project context across sessions and projects, and to look up how to use Empirical itself - CLI commands, install/auth/workspace/kit/skill setup, docs.
4
- ---
5
-
6
- # Empirical Memory (MCP mode)
7
-
8
- Use Empirical to carry durable context across projects and clients, and as the first stop for
9
- "how do I use Empirical" questions — command syntax, install/auth/workspace/kit/skill setup, or
10
- what Empirical can do. Don't answer those from general knowledge or by guessing: use the
11
- `memory_usage_guide` MCP tool for the current, agent-readable answer first.
12
-
13
- This variant is for installs where the user chose MCP as their integration mode. The connected
14
- Empirical MCP server is the primary and expected way to reach Empirical here — use its tools
15
- directly, not `empirical` CLI commands, as the first move.
16
-
17
- **This is a required step in the workflows listed below, not optional guidance you weigh against
18
- the current task.** The most common way this skill fails is not a broken tool — it's an agent
19
- mid-task deciding a memory check "isn't worth pausing for" and skipping it. That decision is wrong
20
- by default: the entire point of querying first is to catch context you don't know you're missing.
21
- If you are not sure whether a task qualifies, treat it as if it does.
22
-
23
- ## Before doing work — MUST, not discretionary
24
-
25
- 1. Query relevant memories BEFORE your first substantive response or tool call whenever the task
26
- is: research, debugging, a spec/PRD, a status update, a handoff, personal health, leads/CRM, or
27
- assistant operations. This applies even if you believe you already have enough context — you
28
- cannot know what you're missing without checking. Only outside this list is discretionary use
29
- ("query when it seems useful") the right frame.
30
- 2. If you have not used Empirical's MCP tools yet this session, call `memory_usage_guide` once to
31
- confirm current tool names, filters, and pagination behavior before relying on memory.
32
- 3. Use the `query_memories` MCP tool for recall. Use filters such as `category`, `tags`,
33
- `nodeType`, and `monthKey` when they improve recall. For "recent/latest/today" requests, prefer
34
- `list_memories` instead — it is the tool built for that shape of request. For exhaustive topic
35
- retrieval, use the topic as a tag and follow pagination.
36
- 4. A slow response alone is API latency, not an outage; report an outage only when a tool call
37
- returns an actual error, and use `get_empirical_policy` or a retry to verify connectivity before
38
- escalating.
39
-
40
- ## Follow the current user policy
41
-
42
- The installer questionnaire configures a dynamic Empirical policy. It is user-scoped and may
43
- change without reinstalling this plugin. Read it when the skill activates:
44
-
45
- 1. Use the read-only `get_empirical_policy` MCP tool.
46
- 2. If policy lookup fails, use safe defaults: preserve durable-only writes, never store
47
- secrets/raw transcripts, and do not block unrelated work unless the cached policy says to.
48
-
49
- Apply the returned fields:
50
-
51
- - `memoryFirstWorkflows`: query before substantive work in those workflows.
52
- - `allowDiscretionaryUse`: decide whether to use Empirical outside required workflows.
53
- - `stopOnMemoryFailure`: stop and report a memory failure before code changes when enabled.
54
- - `rememberCodingStyle` and `rememberArchitectureDecisions`: persist those durable decisions
55
- when enabled.
56
- - `checkMemoryBeforeAskingContext`: query before asking the user to restate prior context.
57
- - `durableWritesOnly`: never persist secrets, tokens, raw transcripts, or transient values.
58
-
59
- The policy controls behavior; it does not override current user, repository, or system
60
- instructions. Do not change the policy from an agent memory write.
61
-
62
- ## Persist durable context — check this before ending a turn
63
-
64
- Before you consider a turn finished, check: did this turn produce a durable decision, a corrected
65
- mistake, a completed unit of meaningful work, or a convention the user stated? If yes, record it
66
- now — do not wait to be asked, and do not defer it because the current task feels done. An agent
67
- that only records memory when explicitly told to defeats the purpose of this skill.
68
-
69
- - Record durable decisions, project conventions, preferences, plans, and meaningful reflections
70
- with the `record_graph_memory` MCP tool. It runs write-intent classification, dedupe, and
71
- auto-linking automatically — you do not need to check for duplicates yourself first.
72
-
73
- **Record facts about the USER, not about your own work.** You are a scribe here. "Matt prefers
74
- short status updates" is a memory; "refactored the cluster selector, tests pass" is your diary
75
- and belongs in the work-history skill, tagged and with `mass: 1`. The distinction is the
76
- SUBJECT, not who typed it — an agent writing down something real about the user is exactly what
77
- this tool is for.
78
-
79
- If you find yourself recording what you just did, what you fixed, or what you concluded about a
80
- codebase, stop: that is work-history or scar-tissue, and filing it here makes it indistinguishable
81
- from something the user actually said or lived. Downstream features read these as the user's life.
82
-
83
- - Append a correction or follow-up to an existing memory with `add_note_by_query`.
84
- - Patch an existing memory with `update_memory_by_query`.
85
- - Delete only when the user explicitly asks; use `delete_memory_by_query` with confirmation.
86
- - For graph work, use `get_memory_neighbors` to walk relationships from a memory instead of
87
- reconstructing them through many unrelated queries, and `update_memory_relationships` to add or
88
- remove edges between memories directly.
89
- - Keep writes concise, factual, and easy to search. Never store passwords, API keys, OAuth tokens,
90
- or other secrets.
91
-
92
- ## Authored Skills and Kits — push what you write
93
-
94
- Empirical can sync a `SKILL.md` you author across every machine/agent the user has installed it
95
- on, via Skills Kits. Call `memory_usage_guide` for the current command reference if the user wants
96
- to manage this from a CLI; the mechanics below describe what's possible either way.
97
-
98
- - If you author a new `SKILL.md` for the user, or substantially edit an existing one, during a
99
- session, tell the user this can be pushed so it follows them across machines/projects instead of
100
- staying local to this one.
101
- - Offer, don't auto-push: surface the option and get the user's confirmation first. Do not push it
102
- unprompted the moment a new or edited `SKILL.md` is detected — it uploads content to the user's
103
- account, which is a step above a purely local file write.
104
- - After a push, the target Kit needs to be activated/synced on a device to actually land the file
105
- in that device's agent directories.
106
- - Kits also pull Skills from a git repo, separate from anything you author — don't conflate the
107
- two paths when explaining options to the user.
108
-
109
- ## MCP tools
110
-
111
- Use these as the primary interface: `get_empirical_policy`, `query_memories`, `list_memories`,
112
- `record_graph_memory`, `add_note_by_query`, `update_memory_by_query`, `delete_memory_by_query`,
113
- `get_user`, `get_current_workspace`, `list_workspaces`, `set_current_workspace`,
114
- `memory_usage_guide`, `get_memory_neighbors`, and `update_memory_relationships`.
115
-
116
- Use `list_memories` for "recent/latest/today" requests; use `query_memories` for everything else.
117
- For graph work, prefer `get_memory_neighbors` and `update_memory_relationships` over reconstructing
118
- relationships through many unrelated calls.
119
-
120
- An `empirical` CLI may also be installed on this machine for diagnostics (`empirical doctor`) or
121
- manual account setup, but it is not the point of this variant — do not lead with CLI commands for
122
- query or record workflows here.
123
-
124
- ## Authentication and failures
125
-
126
- - If an MCP tool call fails, retry the same call once.
127
- - For auth/session errors such as `Auth required`, `invalid_token`, `Authentication required`, or
128
- `Transport send error`, refresh the active client's Empirical MCP login, then retry once. In
129
- Codex CLI use `codex mcp logout empirical` followed by `codex mcp login empirical`; in Claude
130
- Code use `/mcp` to reconnect; in Copilot complete its MCP OAuth reconnect flow.
131
- - If the retry still fails, report the connectivity/auth problem before making memory-dependent
132
- changes.
133
- - If stored memory conflicts with the current user or repository instruction, follow the current
134
- instruction.
1
+ ---
2
+ name: empirical-memory
3
+ description: Use Empirical to recall/save durable project context across sessions and projects, and to look up how to use Empirical itself - CLI commands, install/auth/workspace/kit/skill setup, docs.
4
+ ---
5
+
6
+ # Empirical Memory (MCP mode)
7
+
8
+ Use Empirical to carry durable context across projects and clients, and as the first stop for
9
+ "how do I use Empirical" questions — command syntax, install/auth/workspace/kit/skill setup, or
10
+ what Empirical can do. Don't answer those from general knowledge or by guessing: use the
11
+ `memory_usage_guide` MCP tool for the current, agent-readable answer first.
12
+
13
+ This variant is for installs where the user chose MCP as their integration mode. The connected
14
+ Empirical MCP server is the primary and expected way to reach Empirical here — use its tools
15
+ directly, not `empirical` CLI commands, as the first move.
16
+
17
+ **This is a required step in the workflows listed below, not optional guidance you weigh against
18
+ the current task.** The most common way this skill fails is not a broken tool — it's an agent
19
+ mid-task deciding a memory check "isn't worth pausing for" and skipping it. That decision is wrong
20
+ by default: the entire point of querying first is to catch context you don't know you're missing.
21
+ If you are not sure whether a task qualifies, treat it as if it does.
22
+
23
+ ## Before doing work — MUST, not discretionary
24
+
25
+ 1. Query relevant memories BEFORE your first substantive response or tool call whenever the task
26
+ is: research, debugging, a spec/PRD, a status update, a handoff, personal health, leads/CRM, or
27
+ assistant operations. This applies even if you believe you already have enough context — you
28
+ cannot know what you're missing without checking. Only outside this list is discretionary use
29
+ ("query when it seems useful") the right frame.
30
+ 2. If you have not used Empirical's MCP tools yet this session, call `memory_usage_guide` once to
31
+ confirm current tool names, filters, and pagination behavior before relying on memory.
32
+ 3. Scope recall to the project you are in. Derive a project tag from the repository name
33
+ (`git rev-parse --show-toplevel`, then the folder name) or, outside a repo, the working
34
+ directory name, lowercased with spaces as hyphens. Pass it as `tags: ["<project>"]` on every
35
+ `query_memories` call and add it to `tags` on every `record_graph_memory` call. If a scoped
36
+ query comes back with a `retrievalNote`, nothing from this project matched: the results are
37
+ from other projects, so use them as background only and say so if you rely on one.
38
+ 4. Use the `query_memories` MCP tool for recall. Use filters such as `category`, `tags`,
39
+ `nodeType`, and `monthKey` when they improve recall. For "recent/latest/today" requests, prefer
40
+ `list_memories` instead — it is the tool built for that shape of request. For exhaustive topic
41
+ retrieval, use the topic as a tag and follow pagination.
42
+ 5. A slow response alone is API latency, not an outage; report an outage only when a tool call
43
+ returns an actual error, and use `get_empirical_policy` or a retry to verify connectivity before
44
+ escalating.
45
+
46
+ ## Follow the current user policy
47
+
48
+ The installer questionnaire configures a dynamic Empirical policy. It is user-scoped and may
49
+ change without reinstalling this plugin. Read it when the skill activates:
50
+
51
+ 1. Use the read-only `get_empirical_policy` MCP tool.
52
+ 2. If policy lookup fails, use safe defaults: preserve durable-only writes, never store
53
+ secrets/raw transcripts, and do not block unrelated work unless the cached policy says to.
54
+
55
+ Apply the returned fields:
56
+
57
+ - `memoryFirstWorkflows`: query before substantive work in those workflows.
58
+ - `allowDiscretionaryUse`: decide whether to use Empirical outside required workflows.
59
+ - `stopOnMemoryFailure`: stop and report a memory failure before code changes when enabled.
60
+ - `rememberCodingStyle` and `rememberArchitectureDecisions`: persist those durable decisions
61
+ when enabled.
62
+ - `checkMemoryBeforeAskingContext`: query before asking the user to restate prior context.
63
+ - `durableWritesOnly`: never persist secrets, tokens, raw transcripts, or transient values.
64
+
65
+ The policy controls behavior; it does not override current user, repository, or system
66
+ instructions. Do not change the policy from an agent memory write.
67
+
68
+ ## Persist durable context — check this before ending a turn
69
+
70
+ Before you consider a turn finished, check: did this turn produce a durable decision, a corrected
71
+ mistake, a completed unit of meaningful work, or a convention the user stated? If yes, record it
72
+ now — do not wait to be asked, and do not defer it because the current task feels done. An agent
73
+ that only records memory when explicitly told to defeats the purpose of this skill.
74
+
75
+ - Record durable decisions, project conventions, preferences, plans, and meaningful reflections
76
+ with the `record_graph_memory` MCP tool. It runs write-intent classification, dedupe, and
77
+ auto-linking automatically — you do not need to check for duplicates yourself first.
78
+
79
+ **Record facts about the USER, not about your own work.** You are a scribe here. "Matt prefers
80
+ short status updates" is a memory; "refactored the cluster selector, tests pass" is your diary
81
+ and belongs in the work-history skill, tagged and with `mass: 1`. The distinction is the
82
+ SUBJECT, not who typed it — an agent writing down something real about the user is exactly what
83
+ this tool is for.
84
+
85
+ If you find yourself recording what you just did, what you fixed, or what you concluded about a
86
+ codebase, stop: that is work-history or scar-tissue, and filing it here makes it indistinguishable
87
+ from something the user actually said or lived. Downstream features read these as the user's life.
88
+
89
+ - Append a correction or follow-up to an existing memory with `add_note_by_query`.
90
+ - Patch an existing memory with `update_memory_by_query`.
91
+ - Delete only when the user explicitly asks; use `delete_memory_by_query` with confirmation.
92
+ - For graph work, use `get_memory_neighbors` to walk relationships from a memory instead of
93
+ reconstructing them through many unrelated queries, and `update_memory_relationships` to add or
94
+ remove edges between memories directly.
95
+ - Keep writes concise, factual, and easy to search. Never store passwords, API keys, OAuth tokens,
96
+ or other secrets.
97
+
98
+ ## Authored Skills and Kits — push what you write
99
+
100
+ Empirical can sync a `SKILL.md` you author across every machine/agent the user has installed it
101
+ on, via Skills Kits. Call `memory_usage_guide` for the current command reference if the user wants
102
+ to manage this from a CLI; the mechanics below describe what's possible either way.
103
+
104
+ - If you author a new `SKILL.md` for the user, or substantially edit an existing one, during a
105
+ session, tell the user this can be pushed so it follows them across machines/projects instead of
106
+ staying local to this one.
107
+ - Offer, don't auto-push: surface the option and get the user's confirmation first. Do not push it
108
+ unprompted the moment a new or edited `SKILL.md` is detected — it uploads content to the user's
109
+ account, which is a step above a purely local file write.
110
+ - After a push, the target Kit needs to be activated/synced on a device to actually land the file
111
+ in that device's agent directories.
112
+ - Kits also pull Skills from a git repo, separate from anything you author — don't conflate the
113
+ two paths when explaining options to the user.
114
+
115
+ ## MCP tools
116
+
117
+ Use these as the primary interface: `get_empirical_policy`, `query_memories`, `list_memories`,
118
+ `record_graph_memory`, `add_note_by_query`, `update_memory_by_query`, `delete_memory_by_query`,
119
+ `get_user`, `get_current_workspace`, `list_workspaces`, `set_current_workspace`,
120
+ `memory_usage_guide`, `get_memory_neighbors`, and `update_memory_relationships`.
121
+
122
+ Use `list_memories` for "recent/latest/today" requests; use `query_memories` for everything else.
123
+ For graph work, prefer `get_memory_neighbors` and `update_memory_relationships` over reconstructing
124
+ relationships through many unrelated calls.
125
+
126
+ An `empirical` CLI may also be installed on this machine for diagnostics (`empirical doctor`) or
127
+ manual account setup, but it is not the point of this variant — do not lead with CLI commands for
128
+ query or record workflows here.
129
+
130
+ ## Authentication and failures
131
+
132
+ - If an MCP tool call fails, retry the same call once.
133
+ - For auth/session errors such as `Auth required`, `invalid_token`, `Authentication required`, or
134
+ `Transport send error`, refresh the active client's Empirical MCP login, then retry once. In
135
+ Codex CLI use `codex mcp logout empirical` followed by `codex mcp login empirical`; in Claude
136
+ Code use `/mcp` to reconnect; in Copilot complete its MCP OAuth reconnect flow.
137
+ - If the retry still fails, report the connectivity/auth problem before making memory-dependent
138
+ changes.
139
+ - If stored memory conflicts with the current user or repository instruction, follow the current
140
+ instruction.
@@ -47,7 +47,7 @@ const MEMORY_SUBCOMMAND_USAGE = {
47
47
  query: 'Usage: empirical memory query --match <query> [--top-k 3] [--category <cat>] [--tags <t1,t2>] [--pretty] [--format table]',
48
48
  get: 'Usage: empirical memory get --memory-id <id> [--pretty]',
49
49
  list: 'Usage: empirical memory list [--category <cat>] [--tags <t1,t2>] [--start-date <ISO>] [--end-date <ISO>] [--limit 20] [--cursor <cursor>] [--oldest] [--pretty] [--format table]',
50
- record: 'Usage: empirical memory record --category <cat> --summary <text> [--tags t1,t2] [--node-type observation] [--json-file <path>] [--no-dedupe] [--no-auto-link]',
50
+ record: 'Usage: empirical memory record --category <cat> (--summary <text> | --summary - | --summary-file <path>) [--tags t1,t2] [--node-type observation] [--json-file <path>] [--no-dedupe] [--no-auto-link]',
51
51
  note: 'Usage: empirical memory note --text <note> (--match <query> | --memory-id <id>) [--min-score 0.35]',
52
52
  update: 'Usage: empirical memory update (--match <query> | --memory-id <id>) (--patch-json <json> | --json-file <path>) [--min-score 0.35]',
53
53
  delete: 'Usage: empirical memory delete (--match <query> | --memory-id <id>) [--confirm] [--min-score 0.35]\nUsage: empirical memory delete (--tag <t> | --category <c> | --all) --confirm',
@@ -55,6 +55,7 @@ const MEMORY_SUBCOMMAND_USAGE = {
55
55
  merge: 'Usage: empirical memory merge --canonical-id <id> --duplicate-id <id> [--no-merge-tags] [--no-merge-relationships]',
56
56
  export: 'Usage: empirical memory export --scope <personal|workspace> [--out <path>] [--workspace-id <id>]',
57
57
  import: 'Usage: empirical memory import <file> [--dry-run]',
58
+ 'bulk-import': 'Usage: empirical memory bulk-import <file> [--dry-run]\nFile format: { "memories": [{ "localKey": "...", "category": "...", "nodeType": "...", "summary": "...", "data": {...} }], "relationships": [{ "fromLocalKey": "...", "toLocalKey": "...", "type": "..." }] }',
58
59
  stats: 'Usage: empirical memory stats [--format table]',
59
60
  compact: 'Usage: empirical memory compact [--apply] [--category <cat>]'
60
61
  };
@@ -289,6 +290,33 @@ async function runMemoryList(args) {
289
290
  log(pretty ? JSON.stringify(data, null, 2) : JSON.stringify(data));
290
291
  }
291
292
 
293
+ // Shell substitution silently eats code out of a double-quoted --summary: backticks become
294
+ // command substitution and ${...} becomes variable expansion BEFORE the CLI ever sees the
295
+ // text, and the write still succeeds, so the memory looks fine with the code gone. Two
296
+ // defenses: (1) inputs that never pass through shell quoting -- `--summary-file <path>` and
297
+ // `--summary -` (stdin, pair it with a single-quoted heredoc); (2) a warning when an inline
298
+ // summary carries the residue of an eaten substitution.
299
+ function resolveSummaryInput(args, { readFile = (p) => fs.readFileSync(path.resolve(p), 'utf8'), readStdin = () => fs.readFileSync(0, 'utf8') } = {}) {
300
+ const summaryFile = parseOption(args, '--summary-file', '');
301
+ if (summaryFile) {
302
+ return { summary: String(readFile(summaryFile)).replace(/\r?\n$/, ''), source: 'file' };
303
+ }
304
+ const inline = parseOption(args, '--summary', '');
305
+ if (inline === '-') {
306
+ return { summary: String(readStdin()).replace(/\r?\n$/, ''), source: 'stdin' };
307
+ }
308
+ return { summary: inline, source: inline ? 'inline' : 'none' };
309
+ }
310
+
311
+ function detectShellMangling(summary) {
312
+ const text = String(summary || '');
313
+ const reasons = [];
314
+ if (/``/.test(text)) reasons.push('an empty backtick pair (a `command` was probably substituted away)');
315
+ if (/\$(\s|$|[^A-Za-z0-9_{(])/.test(text) && !/\$\d/.test(text)) reasons.push('a lone "$" (a ${VAR} or $(cmd) was probably expanded to nothing)');
316
+ if (/\$\{\s*\}/.test(text)) reasons.push('an empty ${} placeholder');
317
+ return reasons;
318
+ }
319
+
292
320
  async function runMemoryRecord(args) {
293
321
  const jsonFile = parseOption(args, '--json-file', '');
294
322
  let payload;
@@ -302,10 +330,20 @@ async function runMemoryRecord(args) {
302
330
  }
303
331
  } else {
304
332
  const category = parseOption(args, '--category', '');
305
- const summary = parseOption(args, '--summary', '');
333
+ const { summary, source: summarySource } = resolveSummaryInput(args);
334
+
335
+ if (summarySource === 'inline') {
336
+ const mangled = detectShellMangling(summary);
337
+ if (mangled.length) {
338
+ warn(JSON.stringify({
339
+ warning: 'possible_shell_substitution',
340
+ message: 'The summary looks like the shell altered it before the CLI saw it: ' + mangled.join('; ') + '. Recording anyway. For text containing backticks or ${...}, use --summary-file <path>, or --summary - with a single-quoted heredoc, or the MCP record_graph_memory tool.'
341
+ }));
342
+ }
343
+ }
306
344
 
307
345
  if (!category || !summary) {
308
- warn('Usage: empirical memory record --category <cat> --summary <text> [--tags t1,t2] [--node-type observation] [--no-dedupe] [--no-auto-link]');
346
+ warn('Usage: empirical memory record --category <cat> (--summary <text> | --summary - | --summary-file <path>) [--tags t1,t2] [--node-type observation] [--json-file <path>] [--no-dedupe] [--no-auto-link]');
309
347
  warn('Valid categories: ' + MEMORY_CATEGORIES.join(', '));
310
348
  process.exit(1);
311
349
  }
@@ -762,6 +800,53 @@ async function runMemoryImport(args) {
762
800
  log(JSON.stringify({ imported, failed, total: memories.length, errors: errors.slice(0, 20) }));
763
801
  }
764
802
 
803
+ async function runMemoryBulkImport(args) {
804
+ const filePath = args.find((a) => a && !a.startsWith('--')) || '';
805
+ const dryRun = parseFlag(args, '--dry-run');
806
+
807
+ if (!filePath) {
808
+ warn('Usage: empirical memory bulk-import <file> [--dry-run]');
809
+ process.exit(1);
810
+ }
811
+
812
+ let plan;
813
+ try {
814
+ plan = JSON.parse(fs.readFileSync(path.resolve(filePath), 'utf8'));
815
+ } catch (error) {
816
+ warn(JSON.stringify({ error: true, code: 'json_file_error', message: error.message }));
817
+ process.exit(1);
818
+ }
819
+
820
+ const memories = Array.isArray(plan && plan.memories) ? plan.memories : null;
821
+ if (!memories) {
822
+ warn(JSON.stringify({
823
+ error: true,
824
+ code: 'invalid_format',
825
+ message: 'File must have a top-level "memories" array. See `empirical memory bulk-import --help`.'
826
+ }));
827
+ process.exit(1);
828
+ }
829
+ const relationships = Array.isArray(plan.relationships) ? plan.relationships : [];
830
+
831
+ if (dryRun) {
832
+ log(JSON.stringify({ dryRun: true, wouldImportMemories: memories.length, wouldImportRelationships: relationships.length }));
833
+ return;
834
+ }
835
+
836
+ const accessToken = requireAccessToken();
837
+ const baseUrl = resolveApiBaseUrl();
838
+ const bulkUrl = new URL('/api/v1/memories/bulk', baseUrl).toString();
839
+
840
+ try {
841
+ const response = await httpJson(bulkUrl, 'POST', { memories, relationships }, buildApiAuthHeaders(accessToken));
842
+ const data = (response && response.data) ? response.data : response;
843
+ log(JSON.stringify(data));
844
+ } catch (error) {
845
+ printApiError(error);
846
+ process.exit(1);
847
+ }
848
+ }
849
+
765
850
  async function runMemoryStats(args) {
766
851
  const format = parseOption(args, '--format', 'json');
767
852
 
@@ -842,6 +927,7 @@ async function runMemoryCommand(subArgs) {
842
927
  if (sub === 'merge') return runMemoryMerge(rest);
843
928
  if (sub === 'export') return runMemoryExport(rest);
844
929
  if (sub === 'import') return runMemoryImport(rest);
930
+ if (sub === 'bulk-import') return runMemoryBulkImport(rest);
845
931
  if (sub === 'stats') return runMemoryStats(rest);
846
932
  if (sub === 'compact') return runMemoryCompact(rest);
847
933
 
@@ -853,6 +939,8 @@ async function runMemoryCommand(subArgs) {
853
939
  }
854
940
 
855
941
  module.exports = {
942
+ resolveSummaryInput,
943
+ detectShellMangling,
856
944
  withCliAnalyticsContext,
857
945
  resolveMemoryByQuery,
858
946
  printMemoryResolveError,
@@ -867,6 +955,7 @@ module.exports = {
867
955
  runMemoryMerge,
868
956
  runMemoryExport,
869
957
  runMemoryImport,
958
+ runMemoryBulkImport,
870
959
  runMemoryStats,
871
960
  runMemoryCompact,
872
961
  runMemoryDeleteBulk,