@memnexus-ai/mx-agent-cli 0.1.220 → 0.1.221
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/dist/__tests__/claude-sync.test.js +138 -16
- package/dist/__tests__/claude-sync.test.js.map +1 -1
- package/dist/__tests__/gh-remote.test.js +7 -7
- package/dist/__tests__/gh-remote.test.js.map +1 -1
- package/dist/__tests__/memory-autocreate.test.d.ts +10 -0
- package/dist/__tests__/memory-autocreate.test.d.ts.map +1 -0
- package/dist/__tests__/memory-autocreate.test.js +143 -0
- package/dist/__tests__/memory-autocreate.test.js.map +1 -0
- package/dist/__tests__/team-memory-commands.test.d.ts +11 -0
- package/dist/__tests__/team-memory-commands.test.d.ts.map +1 -0
- package/dist/__tests__/team-memory-commands.test.js +117 -0
- package/dist/__tests__/team-memory-commands.test.js.map +1 -0
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +14 -5
- package/dist/commands/create.js.map +1 -1
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +113 -28
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/gh-remote.d.ts.map +1 -1
- package/dist/lib/gh-remote.js +4 -2
- package/dist/lib/gh-remote.js.map +1 -1
- package/dist/lib/memory.d.ts +40 -0
- package/dist/lib/memory.d.ts.map +1 -1
- package/dist/lib/memory.js +118 -24
- package/dist/lib/memory.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/memory.d.ts
CHANGED
|
@@ -7,10 +7,16 @@ export interface CreateNamedMemoryOptions {
|
|
|
7
7
|
content: string;
|
|
8
8
|
conversationId?: string;
|
|
9
9
|
topics?: string[];
|
|
10
|
+
/** codeContext scoping. Passed as `--code-context '<json>'`. Omitted when absent. */
|
|
11
|
+
codeContext?: Record<string, string | undefined>;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Create a named memory via the mx CLI.
|
|
13
15
|
* Returns the raw stdout string (may contain the memory ID or error).
|
|
16
|
+
*
|
|
17
|
+
* codeContext is passed as `--code-context '<json>'` when provided. Older mx CLIs
|
|
18
|
+
* reject that flag; on an unknown-option error we retry ONCE without it and warn,
|
|
19
|
+
* so we fail toward creating the memory (unscoped) rather than not at all.
|
|
14
20
|
*/
|
|
15
21
|
export declare function createNamedMemory(opts: CreateNamedMemoryOptions): {
|
|
16
22
|
ok: boolean;
|
|
@@ -30,6 +36,32 @@ export interface TeamMemoryBootstrapResult {
|
|
|
30
36
|
output: string;
|
|
31
37
|
};
|
|
32
38
|
}
|
|
39
|
+
/** A single team-bootstrap memory: its named key, initial content, codeContext. */
|
|
40
|
+
export interface TeamMemorySpec {
|
|
41
|
+
key: 'leaderState' | 'iterationLog' | 'knownIssues';
|
|
42
|
+
name: string;
|
|
43
|
+
content: string;
|
|
44
|
+
/**
|
|
45
|
+
* codeContext scoping for this memory. Ordered product → team → role so
|
|
46
|
+
* JSON.stringify emits stable, human-readable JSON. leader-state carries the
|
|
47
|
+
* `team-lead` role; the log/issues memories omit role (they are not role-scoped).
|
|
48
|
+
* The SAME object feeds both auto-create (createNamedMemory) and the printed
|
|
49
|
+
* manual command, so the two literally cannot drift.
|
|
50
|
+
*/
|
|
51
|
+
codeContext: {
|
|
52
|
+
product: string;
|
|
53
|
+
team: string;
|
|
54
|
+
role?: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The three standard team-bootstrap memories (name + initial content) — the
|
|
59
|
+
* single source of truth shared by `bootstrapTeamMemories` (which creates them)
|
|
60
|
+
* and `logManualMemoryCommands` (which prints ready-to-paste create commands when
|
|
61
|
+
* automatic creation is skipped or fails). Keeping one definition guarantees the
|
|
62
|
+
* printed fallback commands write exactly what the successful path would have.
|
|
63
|
+
*/
|
|
64
|
+
export declare function teamMemorySpecs(teamSlug: string, teamDisplayName: string, roleguide: string, projectSlug?: string): TeamMemorySpec[];
|
|
33
65
|
/**
|
|
34
66
|
* Initialise the three standard named memories for a new team.
|
|
35
67
|
*
|
|
@@ -39,6 +71,14 @@ export interface TeamMemoryBootstrapResult {
|
|
|
39
71
|
* Defaults to '' (no prefix — backwards compatible).
|
|
40
72
|
*/
|
|
41
73
|
export declare function bootstrapTeamMemories(teamSlug: string, teamDisplayName: string, roleguide: string, projectSlug?: string): TeamMemoryBootstrapResult;
|
|
74
|
+
/**
|
|
75
|
+
* Print ready-to-paste `mx memories create` commands for the three team
|
|
76
|
+
* memories. Used when automatic initialisation is skipped (mx CLI missing) or
|
|
77
|
+
* fails (mx not authenticated) — the operator can copy each line verbatim after
|
|
78
|
+
* fixing auth. Each command carries the exact content the successful path would
|
|
79
|
+
* have written plus the team's codeContext. Printed output only; creates nothing.
|
|
80
|
+
*/
|
|
81
|
+
export declare function logManualMemoryCommands(specs: TeamMemorySpec[]): void;
|
|
42
82
|
/**
|
|
43
83
|
* Log the result of a memory creation step.
|
|
44
84
|
*/
|
package/dist/lib/memory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/lib/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAID,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/lib/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAID,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qFAAqF;IACrF,WAAW,CAA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H,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAY5F;AAID;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAY5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAgBrF"}
|
package/dist/lib/memory.js
CHANGED
|
@@ -8,13 +8,59 @@ export function isMxAvailable() {
|
|
|
8
8
|
const result = spawnSync('mx', ['--version'], { stdio: 'pipe' });
|
|
9
9
|
return result.status === 0 && !result.error;
|
|
10
10
|
}
|
|
11
|
+
/** One `mx memories create` invocation; returns spawnSync's normalized result. */
|
|
12
|
+
function runCreate(args) {
|
|
13
|
+
const result = spawnSync('mx', args, { stdio: 'pipe', encoding: 'utf-8' });
|
|
14
|
+
const stdout = result.stdout || '';
|
|
15
|
+
const stderr = result.stderr || '';
|
|
16
|
+
return { status: result.status, output: (stdout + stderr), stderr, error: Boolean(result.error) };
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Wrap a string in POSIX single quotes for safe copy-paste into a shell — the
|
|
20
|
+
* only metacharacter live inside single quotes is `'` itself, escaped as `'\''`.
|
|
21
|
+
* Prevents `$(...)`, backticks, and other expansions in printed manual commands
|
|
22
|
+
* (CWE-78) even when the value embeds an unvalidated path.
|
|
23
|
+
*/
|
|
24
|
+
function shellSingleQuote(s) {
|
|
25
|
+
return `'${s.replace(/'/g, "'\\''")}'`;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Serialize a codeContext to JSON, dropping empty-string and undefined values so
|
|
29
|
+
* unset fields are omitted rather than emitted as noise: role for non-lead
|
|
30
|
+
* memories, and `product` for an unscoped bare `mx-agent create` (empty
|
|
31
|
+
* projectSlug). Shared by auto-create and the printed manual command so the two
|
|
32
|
+
* cannot diverge.
|
|
33
|
+
*/
|
|
34
|
+
function codeContextJson(ctx) {
|
|
35
|
+
return JSON.stringify(Object.fromEntries(Object.entries(ctx).filter(([, v]) => v !== undefined && v !== '')));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Whether an mx failure was caused by an unrecognized `--code-context` flag —
|
|
39
|
+
* i.e. an older mx CLI that predates codeContext support. Matches the common
|
|
40
|
+
* arg-parser phrasings AND requires the flag name, so a genuine content error
|
|
41
|
+
* that merely mentions "code-context" does not trip the downgrade.
|
|
42
|
+
*
|
|
43
|
+
* CWE-20: match STDERR only. An arg-parser writes an unknown-option error to
|
|
44
|
+
* stderr; matching combined stdout+stderr would let attacker-controlled content
|
|
45
|
+
* echoed back on stdout trigger the scope-stripping retry.
|
|
46
|
+
*/
|
|
47
|
+
function isUnknownCodeContextError(stderr) {
|
|
48
|
+
const o = stderr.toLowerCase();
|
|
49
|
+
const mentionsFlag = o.includes('code-context');
|
|
50
|
+
const unknownOption = /unknown option|unknown argument|unknown flag|unrecognized|invalid option|no such option|unexpected (option|argument)/.test(o);
|
|
51
|
+
return mentionsFlag && unknownOption;
|
|
52
|
+
}
|
|
11
53
|
/**
|
|
12
54
|
* Create a named memory via the mx CLI.
|
|
13
55
|
* Returns the raw stdout string (may contain the memory ID or error).
|
|
56
|
+
*
|
|
57
|
+
* codeContext is passed as `--code-context '<json>'` when provided. Older mx CLIs
|
|
58
|
+
* reject that flag; on an unknown-option error we retry ONCE without it and warn,
|
|
59
|
+
* so we fail toward creating the memory (unscoped) rather than not at all.
|
|
14
60
|
*/
|
|
15
61
|
export function createNamedMemory(opts) {
|
|
16
|
-
const { name, content, conversationId = 'NEW', topics } = opts;
|
|
17
|
-
const
|
|
62
|
+
const { name, content, conversationId = 'NEW', topics, codeContext } = opts;
|
|
63
|
+
const baseArgs = [
|
|
18
64
|
'memories',
|
|
19
65
|
'create',
|
|
20
66
|
'--name', name,
|
|
@@ -22,16 +68,25 @@ export function createNamedMemory(opts) {
|
|
|
22
68
|
'--content', content,
|
|
23
69
|
];
|
|
24
70
|
if (topics && topics.length > 0) {
|
|
25
|
-
|
|
71
|
+
baseArgs.push('--topics', topics.join(','));
|
|
72
|
+
}
|
|
73
|
+
// Serialize codeContext, dropping empty/undefined values. When nothing remains
|
|
74
|
+
// (e.g. all fields empty), omit the flag entirely.
|
|
75
|
+
const ctxJson = codeContext ? codeContextJson(codeContext) : undefined;
|
|
76
|
+
const hasCtx = Boolean(ctxJson && ctxJson !== '{}');
|
|
77
|
+
const args = hasCtx ? [...baseArgs, '--code-context', ctxJson] : baseArgs;
|
|
78
|
+
let r = runCreate(args);
|
|
79
|
+
let output = r.output;
|
|
80
|
+
let ok = r.status === 0 && !r.error;
|
|
81
|
+
// Older-mx downgrade: retry once WITHOUT --code-context on an unknown-option
|
|
82
|
+
// error. Match stderr only (CWE-20) so echoed stdout content cannot trigger it.
|
|
83
|
+
if (!ok && hasCtx && isUnknownCodeContextError(r.stderr)) {
|
|
84
|
+
console.log(chalk.yellow(` ⚠ mx CLI does not support --code-context — creating ${name} without codeContext ` +
|
|
85
|
+
`(upgrade mx to scope this memory)`));
|
|
86
|
+
r = runCreate(baseArgs);
|
|
87
|
+
output = r.output;
|
|
88
|
+
ok = r.status === 0 && !r.error;
|
|
26
89
|
}
|
|
27
|
-
const result = spawnSync('mx', args, {
|
|
28
|
-
stdio: 'pipe',
|
|
29
|
-
encoding: 'utf-8',
|
|
30
|
-
});
|
|
31
|
-
const stdout = result.stdout || '';
|
|
32
|
-
const stderr = result.stderr || '';
|
|
33
|
-
const output = stdout + stderr;
|
|
34
|
-
let ok = result.status === 0 && !result.error;
|
|
35
90
|
// mx memories create --name exits non-zero even on success in some versions.
|
|
36
91
|
// Fall back to verifying the memory exists if the command appeared to fail.
|
|
37
92
|
if (!ok) {
|
|
@@ -45,6 +100,36 @@ export function createNamedMemory(opts) {
|
|
|
45
100
|
}
|
|
46
101
|
return { ok, output: output.trim() };
|
|
47
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* The three standard team-bootstrap memories (name + initial content) — the
|
|
105
|
+
* single source of truth shared by `bootstrapTeamMemories` (which creates them)
|
|
106
|
+
* and `logManualMemoryCommands` (which prints ready-to-paste create commands when
|
|
107
|
+
* automatic creation is skipped or fails). Keeping one definition guarantees the
|
|
108
|
+
* printed fallback commands write exactly what the successful path would have.
|
|
109
|
+
*/
|
|
110
|
+
export function teamMemorySpecs(teamSlug, teamDisplayName, roleguide, projectSlug = '') {
|
|
111
|
+
const prefix = projectSlug ? `${projectSlug}-` : '';
|
|
112
|
+
return [
|
|
113
|
+
{
|
|
114
|
+
key: 'leaderState',
|
|
115
|
+
name: `${prefix}${teamSlug}-leader-state`,
|
|
116
|
+
content: `${teamDisplayName} team leader state — initialized. Roleguide: ${roleguide}. First session: read roleguide, check memories, begin iteration 1.`,
|
|
117
|
+
codeContext: { product: projectSlug, team: teamSlug, role: 'team-lead' },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
key: 'iterationLog',
|
|
121
|
+
name: `${prefix}${teamSlug}-iteration-log`,
|
|
122
|
+
content: `${teamDisplayName} iteration log — initialized. No iterations completed yet.`,
|
|
123
|
+
codeContext: { product: projectSlug, team: teamSlug },
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: 'knownIssues',
|
|
127
|
+
name: `${prefix}${teamSlug}-known-issues`,
|
|
128
|
+
content: `${teamDisplayName} known issues — initialized. No known issues.`,
|
|
129
|
+
codeContext: { product: projectSlug, team: teamSlug },
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
}
|
|
48
133
|
/**
|
|
49
134
|
* Initialise the three standard named memories for a new team.
|
|
50
135
|
*
|
|
@@ -54,21 +139,30 @@ export function createNamedMemory(opts) {
|
|
|
54
139
|
* Defaults to '' (no prefix — backwards compatible).
|
|
55
140
|
*/
|
|
56
141
|
export function bootstrapTeamMemories(teamSlug, teamDisplayName, roleguide, projectSlug = '') {
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
const iterationLog = createNamedMemory({
|
|
63
|
-
name: `${prefix}${teamSlug}-iteration-log`,
|
|
64
|
-
content: `${teamDisplayName} iteration log — initialized. No iterations completed yet.`,
|
|
65
|
-
});
|
|
66
|
-
const knownIssues = createNamedMemory({
|
|
67
|
-
name: `${prefix}${teamSlug}-known-issues`,
|
|
68
|
-
content: `${teamDisplayName} known issues — initialized. No known issues.`,
|
|
69
|
-
});
|
|
142
|
+
const specs = teamMemorySpecs(teamSlug, teamDisplayName, roleguide, projectSlug);
|
|
143
|
+
const byKey = (key) => specs.find((s) => s.key === key);
|
|
144
|
+
const leaderState = createNamedMemory({ name: byKey('leaderState').name, content: byKey('leaderState').content, codeContext: byKey('leaderState').codeContext });
|
|
145
|
+
const iterationLog = createNamedMemory({ name: byKey('iterationLog').name, content: byKey('iterationLog').content, codeContext: byKey('iterationLog').codeContext });
|
|
146
|
+
const knownIssues = createNamedMemory({ name: byKey('knownIssues').name, content: byKey('knownIssues').content, codeContext: byKey('knownIssues').codeContext });
|
|
70
147
|
return { leaderState, iterationLog, knownIssues };
|
|
71
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Print ready-to-paste `mx memories create` commands for the three team
|
|
151
|
+
* memories. Used when automatic initialisation is skipped (mx CLI missing) or
|
|
152
|
+
* fails (mx not authenticated) — the operator can copy each line verbatim after
|
|
153
|
+
* fixing auth. Each command carries the exact content the successful path would
|
|
154
|
+
* have written plus the team's codeContext. Printed output only; creates nothing.
|
|
155
|
+
*/
|
|
156
|
+
export function logManualMemoryCommands(specs) {
|
|
157
|
+
for (const spec of specs) {
|
|
158
|
+
// Same serializer auto-create uses — printer and auto-create cannot drift.
|
|
159
|
+
const codeContext = codeContextJson(spec.codeContext);
|
|
160
|
+
// Single-quote content + codeContext so an embedded $(...)/backtick in the
|
|
161
|
+
// (unvalidated) roleguide path is inert when the command is pasted (CWE-78).
|
|
162
|
+
console.log(chalk.dim(` mx memories create --name ${spec.name} --conversation-id NEW ` +
|
|
163
|
+
`--content ${shellSingleQuote(spec.content)} --code-context ${shellSingleQuote(codeContext)}`));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
72
166
|
/**
|
|
73
167
|
* Log the result of a memory creation step.
|
|
74
168
|
*/
|
package/dist/lib/memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/lib/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,yEAAyE;AAEzE,MAAM,UAAU,aAAa;IAC3B,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;AAC9C,CAAC;
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/lib/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,yEAAyE;AAEzE,MAAM,UAAU,aAAa;IAC3B,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;AAC9C,CAAC;AAaD,kFAAkF;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