@memnexus-ai/mx-agent-cli 0.1.296-next.0 → 0.1.296-next.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 (43) hide show
  1. package/dist/__tests__/coordination-401-recovery.test.js +15 -1
  2. package/dist/__tests__/coordination-401-recovery.test.js.map +1 -1
  3. package/dist/__tests__/coordination-brief.test.js +18 -0
  4. package/dist/__tests__/coordination-brief.test.js.map +1 -1
  5. package/dist/__tests__/coordination-fallback.test.js +11 -0
  6. package/dist/__tests__/coordination-fallback.test.js.map +1 -1
  7. package/dist/__tests__/coordination-file-guards.test.d.ts +29 -0
  8. package/dist/__tests__/coordination-file-guards.test.d.ts.map +1 -0
  9. package/dist/__tests__/coordination-file-guards.test.js +380 -0
  10. package/dist/__tests__/coordination-file-guards.test.js.map +1 -0
  11. package/dist/__tests__/coordination-memory.test.js +5 -0
  12. package/dist/__tests__/coordination-memory.test.js.map +1 -1
  13. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts +22 -0
  14. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts.map +1 -0
  15. package/dist/__tests__/coordination-plain-shell-commands.test.js +1407 -0
  16. package/dist/__tests__/coordination-plain-shell-commands.test.js.map +1 -0
  17. package/dist/__tests__/coordination-status-plain-shell.test.d.ts +19 -0
  18. package/dist/__tests__/coordination-status-plain-shell.test.d.ts.map +1 -0
  19. package/dist/__tests__/coordination-status-plain-shell.test.js +332 -0
  20. package/dist/__tests__/coordination-status-plain-shell.test.js.map +1 -0
  21. package/dist/__tests__/coordination-token.test.js +6 -2
  22. package/dist/__tests__/coordination-token.test.js.map +1 -1
  23. package/dist/commands/coordination.d.ts +22 -0
  24. package/dist/commands/coordination.d.ts.map +1 -1
  25. package/dist/commands/coordination.js +168 -31
  26. package/dist/commands/coordination.js.map +1 -1
  27. package/dist/lib/coordination-fallback.d.ts +35 -0
  28. package/dist/lib/coordination-fallback.d.ts.map +1 -1
  29. package/dist/lib/coordination-fallback.js +76 -8
  30. package/dist/lib/coordination-fallback.js.map +1 -1
  31. package/dist/lib/coordination-memory.d.ts +4 -0
  32. package/dist/lib/coordination-memory.d.ts.map +1 -1
  33. package/dist/lib/coordination-memory.js +14 -16
  34. package/dist/lib/coordination-memory.js.map +1 -1
  35. package/dist/lib/coordination-token.d.ts +8 -1
  36. package/dist/lib/coordination-token.d.ts.map +1 -1
  37. package/dist/lib/coordination-token.js +61 -15
  38. package/dist/lib/coordination-token.js.map +1 -1
  39. package/dist/lib/coordination-worktree.d.ts +286 -0
  40. package/dist/lib/coordination-worktree.d.ts.map +1 -0
  41. package/dist/lib/coordination-worktree.js +657 -0
  42. package/dist/lib/coordination-worktree.js.map +1 -0
  43. package/package.json +1 -1
@@ -0,0 +1,286 @@
1
+ /**
2
+ * coordination-worktree -- where a team's worktree is, what may be read from it,
3
+ * and what to tell the operator when there is none (#507 follow-up).
4
+ *
5
+ * One rule decides the worktree root for every coordination command. Before this
6
+ * module the token path and `status` used `locateCoordinationWorktree` while
7
+ * `escalate` (`readMarkerTeam`), memory mode (`resolveMemoryTeam`) and the outage
8
+ * fallback file (`worktreeRoot`) each read `CLAUDE_WORKTREE_PATH` on their own,
9
+ * so in a plain shell `status` printed Ready and `escalate` exited 1.
10
+ *
11
+ * It is a module of its own, not part of coordination-token.ts, because
12
+ * coordination-token.ts imports coordination-memory.ts, and coordination-memory.ts
13
+ * needs the locator. coordination-token.ts re-exports the names it used to define.
14
+ */
15
+ /** The per-worktree file naming the team this worktree reports as. */
16
+ export declare const COORDINATION_MARKER_FILE = ".mx-coordination-team";
17
+ /** Every per-worktree credential cache file name starts with this. */
18
+ export declare const COORDINATION_CACHE_PREFIX = ".mx-coordination-token--";
19
+ /**
20
+ * Where the team's worktree is, so the `.mx-coordination-team` marker can be read
21
+ * (#507 follow-up).
22
+ *
23
+ * `CLAUDE_WORKTREE_PATH` is set only inside an `mx-agent start` session. In a
24
+ * plain shell inside a team's worktree it is unset, so before this function the
25
+ * marker was never read there, `status` printed `Team: not set`, and no command
26
+ * asked the service for a token.
27
+ *
28
+ * THE RULE.
29
+ * 1. `CLAUDE_WORKTREE_PATH`, when set, is authoritative and is the only root
30
+ * consulted. Nothing below runs.
31
+ * 2. Otherwise, the git top-level of the current directory, accepted only when
32
+ * ALL of these hold:
33
+ * a. it is a LINKED worktree (its git dir differs from the common dir). The
34
+ * main checkout is never a team's worktree: `coordination setup` writes
35
+ * markers only under `<root>/.worktrees/`, and sessions run in linked
36
+ * worktrees. A marker in a main checkout is shared by every shell in it
37
+ * and names nobody in particular.
38
+ * b. it belongs to the SAME project the project slug is read from: the
39
+ * repository's main checkout (the parent of the common git dir) is the
40
+ * project root `findProjectRoot()` returns, or the top-level is that root
41
+ * itself (MX_PROJECT_ROOT pointed at the worktree). The project slug and
42
+ * the team marker then come from one repository, so a worktree of
43
+ * project A can never pair its marker with project B's slug, for
44
+ * example when MX_PROJECT_ROOT names a different checkout.
45
+ * c. the top-level is owned by the current user and is not group- or
46
+ * world-writable (security review of #525, CWE-283). Without this the
47
+ * only thing stopping another local user's directory was git's own
48
+ * `safe.directory` check, which `safe.directory=*` turns off.
49
+ * 3. None: no root. The caller reports the reason and keeps today's
50
+ * fail-open behaviour.
51
+ *
52
+ * Never throws. Runs `git` with an argument array (no shell) and with the
53
+ * coordination credentials removed from its environment.
54
+ */
55
+ export type WorktreeLocation = {
56
+ ok: true;
57
+ root: string;
58
+ source: 'CLAUDE_WORKTREE_PATH' | 'git-toplevel';
59
+ } | {
60
+ ok: false;
61
+ detail: string;
62
+ reason: WorktreeRefusal;
63
+ top?: string;
64
+ };
65
+ /** Why no root was returned. `top` is set on the refusals that found a git top-level. */
66
+ export type WorktreeRefusal = 'not-a-git-worktree' | 'main-checkout' | 'no-project-root' | 'other-project' | 'not-owned';
67
+ /** The remedy for a directory that is in no project this command can see. */
68
+ export declare const RUN_FROM_WORKTREE_REMEDY = "run this from the team's worktree (the directory holding .mx-coordination-team), or inside an mx-agent start session";
69
+ /** Credential variables a git child process has no use for. */
70
+ export declare const GIT_CHILD_STRIP: readonly string[];
71
+ /** The longest one git topology call may run. */
72
+ export declare const GIT_TOPOLOGY_TIMEOUT_MS = 5000;
73
+ /** The slice of `execFileSync` the topology read uses. Injectable so a test can pin its options. */
74
+ export type GitExec = (file: string, args: string[], options: {
75
+ cwd: string;
76
+ encoding: 'utf-8';
77
+ timeout: number;
78
+ stdio: ['ignore', 'pipe', 'ignore'];
79
+ env: NodeJS.ProcessEnv;
80
+ }) => string;
81
+ /**
82
+ * Variables that change how git reads a pathspec. `GIT_LITERAL_PATHSPECS=1` in
83
+ * the operator's shell turns the `:(icase)` magic and the cache glob into
84
+ * literal names, so a tracked cache file would not be seen (security review at
85
+ * 2b8c8fd, Informational 1). The child gets none of them.
86
+ */
87
+ export declare const GIT_PATHSPEC_ENV: readonly string[];
88
+ /**
89
+ * Config forced on every git call. `git ls-files` reads the index, and git runs
90
+ * the program named by the repository's `core.fsmonitor` when it does, so
91
+ * anyone who can write that repository's config would run code as the operator
92
+ * (security review at 2b8c8fd, Should Fix 1, CWE-829). `rev-parse` does not
93
+ * read the index; the override is on every call so a later one inherits it.
94
+ */
95
+ export declare const GIT_CONFIG_OVERRIDES: readonly string[];
96
+ /**
97
+ * The coordination files git TRACKS at the top of the worktree `root`: the team
98
+ * marker and any credential cache file. An empty list means none is tracked.
99
+ * Undefined means git could not answer, which a caller must not read as "none".
100
+ *
101
+ * `git ls-files` with both names as pathspecs: it exits 0 and prints only the
102
+ * tracked matches, so "not tracked" and "git failed" cannot be confused, and
103
+ * one call answers for both files. It reads the index, so a file that is staged
104
+ * and not yet committed is in the answer.
105
+ *
106
+ * The pathspecs are `:(icase)`: git matches a pathspec case-sensitively even on
107
+ * a case-insensitive filesystem, where a file tracked as `.MX-Coordination-Team`
108
+ * is the file opened by the lower-case name (security review at 2b8c8fd, Should
109
+ * Fix 2, CWE-178). Names come back as git stores them; the caller lower-cases.
110
+ */
111
+ export declare function defaultTrackedCoordinationFiles(root: string, exec?: GitExec): string[] | undefined;
112
+ /**
113
+ * [toplevel, gitDir, commonDir] for `cwd`, all absolute, or undefined when git
114
+ * cannot answer.
115
+ *
116
+ * LAYOUT IS ASKED FOR, NOT ASSUMED, in two steps, the approach
117
+ * `resolveGitWritableRoots` in runtime/codex-config.ts takes:
118
+ *
119
+ * 1. `git rev-parse --path-format=absolute ...` (git >= 2.31). One call.
120
+ * 2. Older git has no `--path-format`: it either fails or prints the flag back
121
+ * as a line of output, so the answer is used only when it is exactly three
122
+ * absolute paths. Otherwise the top-level is asked for on its own (always
123
+ * absolute), then the two git dirs are asked for FROM the top-level, where a
124
+ * relative answer such as `.git` is relative to the top-level in every git
125
+ * version. Asking from a subdirectory is what older git gets wrong:
126
+ * `--git-common-dir` there prints `.git`, relative to the top-level, not to
127
+ * the directory asked from.
128
+ */
129
+ export declare function defaultGitTopology(cwd: string, exec?: GitExec): string[] | undefined;
130
+ export interface LocateWorktreeOptions {
131
+ /** Directory to start from. Default: process.cwd(). */
132
+ cwd?: string;
133
+ /** Test seam: [toplevel, gitDir, commonDir], or undefined when git cannot answer. */
134
+ gitTopology?: (cwd: string) => string[] | undefined;
135
+ /** Test seam: the project root. Default: findProjectRoot(). */
136
+ projectRoot?: () => string;
137
+ /** Test seam: the current uid. Default: process.getuid(), undefined on Windows. */
138
+ uid?: () => number | undefined;
139
+ /** Test seam: owner and mode of the worktree top-level. Default: lstat. */
140
+ statTop?: (path: string) => {
141
+ uid: number;
142
+ mode: number;
143
+ } | undefined;
144
+ /**
145
+ * Test seam: the coordination files git tracks in a worktree, or undefined
146
+ * when git cannot answer. Default: defaultTrackedCoordinationFiles.
147
+ */
148
+ trackedFiles?: (root: string) => string[] | undefined;
149
+ }
150
+ export declare function locateCoordinationWorktree(env: NodeJS.ProcessEnv, opts?: LocateWorktreeOptions): WorktreeLocation;
151
+ export type WorktreeFileRead = {
152
+ kind: 'ok';
153
+ text: string;
154
+ } | {
155
+ kind: 'absent';
156
+ }
157
+ /** The path is occupied by something this command will not read. `why` is non-secret. */
158
+ | {
159
+ kind: 'refused';
160
+ why: string;
161
+ };
162
+ /**
163
+ * Read the marker or the token cache from a located worktree.
164
+ *
165
+ * `CLAUDE_WORKTREE_PATH` source: the read every caller made before this module,
166
+ * unchanged (missing or unreadable reads as absent).
167
+ *
168
+ * `git-toplevel` source: the file is opened with O_NOFOLLOW and O_NONBLOCK and
169
+ * must be a regular file owned by the current user (security review of #525). The check is
170
+ * made on the descriptor that is read, never on a second path lookup. The text
171
+ * is returned to the caller and to nothing else: no value and no length is put
172
+ * in a `why`.
173
+ */
174
+ export declare function readWorktreeFile(located: {
175
+ root: string;
176
+ source: 'CLAUDE_WORKTREE_PATH' | 'git-toplevel';
177
+ }, path: string, opts?: LocateWorktreeOptions): WorktreeFileRead;
178
+ export type TeamMarkerRead =
179
+ /** The marker's first line, untrimmed. */
180
+ {
181
+ kind: 'ok';
182
+ line: string;
183
+ } | {
184
+ kind: 'absent';
185
+ }
186
+ /** The file is there and was not read: a link, another owner, not a regular file. */
187
+ | {
188
+ kind: 'unreadable';
189
+ why: string;
190
+ }
191
+ /**
192
+ * The file was read and is not trusted to name this worktree's team. `why` is
193
+ * a full sentence that names the file, the reason and the remedy.
194
+ */
195
+ | {
196
+ kind: 'refused';
197
+ reason: 'tracked' | 'tracked-unknown' | 'context-mismatch';
198
+ why: string;
199
+ remedy: readonly string[];
200
+ };
201
+ /**
202
+ * What to do about a marker or a credential cache file that git tracks or has
203
+ * staged. One text for both files, printed ONCE per command output: after the
204
+ * reason in a refused worktree, and once under the list from the main checkout.
205
+ *
206
+ * EVERY STEP IS MEANT TO BE FOLLOWED LITERALLY, and a test does so. The text at
207
+ * 2b8c8fd failed that (QA M2, red-team A and C): it did not say the change is
208
+ * per branch, so an operator who committed it on the base branch stayed refused
209
+ * in every existing worktree; and it named only the marker, so the cache file
210
+ * `mx-agent start` stages with `git add -A` produced a second refusal.
211
+ *
212
+ * - `git ls-files` reads the INDEX of the worktree it runs in. Each worktree
213
+ * has its own index and its own branch, so the file has to leave the index
214
+ * of the refused worktree itself. A commit on another branch changes
215
+ * nothing there until that worktree's branch merges or rebases onto it.
216
+ * - A staged file is in the index, so "tracked or staged" is the true wording.
217
+ * - `start` takes the team slug and uses the worktree directory named
218
+ * `<team>` or starting with `<team>-` (`findWorktreePath`, lib/worktree.ts).
219
+ * It writes the marker only when the file is absent and the project config
220
+ * sets coordinationMode to queue (commands/start.ts step 5a), then launches
221
+ * the session.
222
+ *
223
+ * The commands hold constants only. No path and no file name from disk is
224
+ * printed inside one (security review at 082c7d8): the cache file is named by
225
+ * its pattern, quoted so the shell passes it to git unexpanded.
226
+ */
227
+ export declare const TRACKED_REMEDY: readonly string[];
228
+ /**
229
+ * The located worktree's team marker, and whether it may be used.
230
+ *
231
+ * CLAUDE_WORKTREE_PATH source: the read every caller made before this module.
232
+ * `git-toplevel` source: the owner-checked read, then `cwdMarkerRefusal`. Every
233
+ * consumer of the marker goes through here (the token path, `status`,
234
+ * `escalate`, memory mode, the worktree listing), so a refused marker names a
235
+ * team for none of them.
236
+ */
237
+ export declare function readTeamMarker(located: {
238
+ root: string;
239
+ source: 'CLAUDE_WORKTREE_PATH' | 'git-toplevel';
240
+ }, opts?: LocateWorktreeOptions): TeamMarkerRead;
241
+ /**
242
+ * The first line of the located worktree's team marker, untrimmed, or undefined
243
+ * when there is no marker this command will use. Each caller applies its own
244
+ * normalization, as it did before.
245
+ */
246
+ export declare function readMarkerLine(located: {
247
+ root: string;
248
+ source: 'CLAUDE_WORKTREE_PATH' | 'git-toplevel';
249
+ }, opts?: LocateWorktreeOptions): string | undefined;
250
+ /** Team worktrees under `<root>/.worktrees/` that hold a marker naming a valid team slug. */
251
+ export declare function listMarkedWorktrees(root: string, opts?: LocateWorktreeOptions): Array<{
252
+ path: string;
253
+ team: string;
254
+ }>;
255
+ /**
256
+ * The lines that tell the operator what to do when no usable marker was found.
257
+ * The first line is a sentence; a line that starts with two spaces is a list
258
+ * item under the line before it.
259
+ *
260
+ * - A located worktree with no marker: the command that writes one.
261
+ * - The project's main checkout, or any directory whose project root is
262
+ * known: the team worktrees that hold a marker, by path and team. With
263
+ * none, that fact, the worktrees that have no marker yet, and the command
264
+ * that writes one.
265
+ * - No project in sight: run from a team worktree.
266
+ * - A worktree refused under rule 2c (`not-owned`): nothing. The locator's
267
+ * detail already ends with the remedy, and listing team worktrees would
268
+ * offer the directory the operator is in as the place to go. Callers print
269
+ * the detail; `noMarkerLines` does it for them.
270
+ *
271
+ * Never throws.
272
+ */
273
+ export declare function markerNextStep(located: WorktreeLocation, opts?: LocateWorktreeOptions): string[];
274
+ /**
275
+ * What a command prints under its own refusal when no team marker was used: the
276
+ * headline, then the next step.
277
+ *
278
+ * A `not-owned` refusal is NOT "no marker was found". The directory may hold
279
+ * one; it was not read because the directory itself was refused. That case
280
+ * prints the locator's detail, which names the mode or the owner and the
281
+ * remedy, and nothing else (#525 red-team N1, QA M1 and M2).
282
+ */
283
+ export declare function noMarkerLines(located: WorktreeLocation, opts?: LocateWorktreeOptions): string[];
284
+ /** `markerNextStep` as one line, for a detail string printed on a single stderr line. */
285
+ export declare function markerNextStepInline(located: WorktreeLocation, opts?: LocateWorktreeOptions): string;
286
+ //# sourceMappingURL=coordination-worktree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coordination-worktree.d.ts","sourceRoot":"","sources":["../../src/lib/coordination-worktree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,0BAA0B,CAAC;AAEhE,sEAAsE;AACtE,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,sBAAsB,GAAG,cAAc,CAAA;CAAE,GAC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