@memnexus-ai/mx-agent-cli 0.1.291 → 0.1.293
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__/config-fidelity-unreadable-fixture.d.ts +32 -0
- package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts.map +1 -0
- package/dist/__tests__/config-fidelity-unreadable-fixture.js +37 -0
- package/dist/__tests__/config-fidelity-unreadable-fixture.js.map +1 -0
- package/dist/__tests__/config-fidelity.test.d.ts +16 -0
- package/dist/__tests__/config-fidelity.test.d.ts.map +1 -0
- package/dist/__tests__/config-fidelity.test.js +2546 -0
- package/dist/__tests__/config-fidelity.test.js.map +1 -0
- package/dist/__tests__/doctor-config-fidelity.test.d.ts +19 -0
- package/dist/__tests__/doctor-config-fidelity.test.d.ts.map +1 -0
- package/dist/__tests__/doctor-config-fidelity.test.js +324 -0
- package/dist/__tests__/doctor-config-fidelity.test.js.map +1 -0
- package/dist/__tests__/doctor-framework-version.test.d.ts +2 -0
- package/dist/__tests__/doctor-framework-version.test.d.ts.map +1 -0
- package/dist/__tests__/doctor-framework-version.test.js +146 -0
- package/dist/__tests__/doctor-framework-version.test.js.map +1 -0
- package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts +2 -0
- package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts.map +1 -0
- package/dist/__tests__/mx-agent-cli-pin-validation.test.js +256 -0
- package/dist/__tests__/mx-agent-cli-pin-validation.test.js.map +1 -0
- package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts +2 -0
- package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts.map +1 -0
- package/dist/__tests__/mx-agent-cli-version-pin.test.js +290 -0
- package/dist/__tests__/mx-agent-cli-version-pin.test.js.map +1 -0
- package/dist/commands/doctor.d.ts +64 -7
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +122 -9
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +15 -1
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +56 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -9
- package/dist/index.js.map +1 -1
- package/dist/lib/config-fidelity.d.ts +500 -0
- package/dist/lib/config-fidelity.d.ts.map +1 -0
- package/dist/lib/config-fidelity.js +1713 -0
- package/dist/lib/config-fidelity.js.map +1 -0
- package/dist/lib/framework-version.d.ts +144 -0
- package/dist/lib/framework-version.d.ts.map +1 -0
- package/dist/lib/framework-version.js +270 -0
- package/dist/lib/framework-version.js.map +1 -0
- package/dist/lib/templates.d.ts +26 -0
- package/dist/lib/templates.d.ts.map +1 -1
- package/dist/lib/templates.js +81 -3
- package/dist/lib/templates.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-fidelity.js","sourceRoot":"","sources":["../../src/lib/config-fidelity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6MG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa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C,gGAAgG,CACrG,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which framework version is this project running? (#5371, A5.)
|
|
3
|
+
*
|
|
4
|
+
* Two numbers, and until now nothing printed either one:
|
|
5
|
+
* RUNNING — the version of the mx-agent CLI executing right now, read from the
|
|
6
|
+
* package.json that ships beside it. This is authoritative for "what code is
|
|
7
|
+
* making decisions in this session".
|
|
8
|
+
* PINNED — the version `.devcontainer/mx-agent-cli-version.pin` says this
|
|
9
|
+
* project's containers should install. This is authoritative for "what the
|
|
10
|
+
* project asked for".
|
|
11
|
+
*
|
|
12
|
+
* A MISMATCH is a real, previously invisible condition: someone ran
|
|
13
|
+
* `npm i -g @memnexus-ai/mx-agent-cli@latest` by hand, or the container has not
|
|
14
|
+
* been restarted since the pin moved. Before the pin existed the answer to
|
|
15
|
+
* "which framework version is this project running" was unobtainable, which is
|
|
16
|
+
* the gap this report closes.
|
|
17
|
+
*
|
|
18
|
+
* REPORT, NOT A GATE — READ THIS BEFORE ADDING AN EXIT CODE HERE.
|
|
19
|
+
* Nothing in this file returns or sets an exit code, and doctor's renderer must
|
|
20
|
+
* not derive one from it. `mx-agent doctor`'s exit code has exactly one owner,
|
|
21
|
+
* the fail-closed config-fidelity verdict (0 match / 1 drift / 2 undetermined) —
|
|
22
|
+
* see the header of commands/doctor.ts. A second contributor would make `$?`
|
|
23
|
+
* ambiguous: a caller seeing 1 could no longer tell "deployed .claude/ has
|
|
24
|
+
* drifted from source" from "this container is a release behind", and the
|
|
25
|
+
* fidelity gate is the one people are told to trust.
|
|
26
|
+
*
|
|
27
|
+
* The PARSER approximates the devcontainer scripts' behaviour and cannot equal
|
|
28
|
+
* it. Both scripts `.`-source the pin file as shell, so anything shell treats as
|
|
29
|
+
* an assignment sets the value; the regex below covers the plain, indented,
|
|
30
|
+
* `export` and `declare` forms and states what it cannot reach. A file with no
|
|
31
|
+
* matching line is NO_PIN, the same case the scripts refuse on, not a silent pass.
|
|
32
|
+
*/
|
|
33
|
+
/** Path of the pin file relative to a project root. Kept in one place so the
|
|
34
|
+
* doctor report, the new-project scaffold and the docs cannot drift apart. */
|
|
35
|
+
export declare const CLI_VERSION_PIN_RELPATH = ".devcontainer/mx-agent-cli-version.pin";
|
|
36
|
+
export type FrameworkVersionStatus =
|
|
37
|
+
/** running === pinned. */
|
|
38
|
+
'MATCH'
|
|
39
|
+
/** Both known, and they differ. The container is not running what the project asked for. */
|
|
40
|
+
| 'MISMATCH'
|
|
41
|
+
/** No pin file, or no parseable assignment in it. */
|
|
42
|
+
| 'NO_PIN'
|
|
43
|
+
/** The running version could not be determined — nothing can be compared. */
|
|
44
|
+
| 'UNKNOWN';
|
|
45
|
+
export interface FrameworkVersionReport {
|
|
46
|
+
running: string | null;
|
|
47
|
+
pinned: string | null;
|
|
48
|
+
/** Where the pin was looked for. Printed so a wrong-project answer is visible. */
|
|
49
|
+
pinPath: string;
|
|
50
|
+
/** Why `pinned` is null, when it is. Null when the pin was read. */
|
|
51
|
+
pinError: string | null;
|
|
52
|
+
status: FrameworkVersionStatus;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The version of the CLI executing right now.
|
|
56
|
+
*
|
|
57
|
+
* Same resolution as `src/index.ts` and `commands/update.ts`: the package.json
|
|
58
|
+
* that ships next to the built code, reached from this module's own URL. NOT the
|
|
59
|
+
* repo's checked-in package.json by path guesswork — a globally installed CLI has
|
|
60
|
+
* no repo, and this must answer in that case above all, since that is how every
|
|
61
|
+
* consumer team runs it.
|
|
62
|
+
*
|
|
63
|
+
* Returns null rather than throwing: a diagnostic must not be able to fail the
|
|
64
|
+
* command it is diagnosing.
|
|
65
|
+
*/
|
|
66
|
+
export declare function runningCliVersion(): string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Every `MX_AGENT_CLI_VERSION=` assignment in a pin file's text, in file order.
|
|
69
|
+
*
|
|
70
|
+
* Exported because the COUNT is the interesting part. Shell `.`-sourcing honours
|
|
71
|
+
* the LAST assignment; this parser used to return the FIRST, so a two-line pin
|
|
72
|
+
* file made doctor report one version while the devcontainer installed another —
|
|
73
|
+
* the report concealing the very value it exists to surface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function pinAssignments(text: string): string[];
|
|
76
|
+
/**
|
|
77
|
+
* Parse a pin file's TEXT. Exported so the parser is testable without a filesystem.
|
|
78
|
+
*
|
|
79
|
+
* TWO assignments is a REFUSAL, not a choice. The shell would take the last one,
|
|
80
|
+
* so that is the value reported in the error text (see readPinnedCliVersion), but
|
|
81
|
+
* a file that says two different things is not a pin and reporting either value as
|
|
82
|
+
* "the pin" would be a claim this parser cannot support. Null here means doctor
|
|
83
|
+
* prints NOT PINNED, which is the loud direction.
|
|
84
|
+
*/
|
|
85
|
+
export declare function parsePinnedVersion(text: string): string | null;
|
|
86
|
+
/** Read the pin for a project root. Never throws. */
|
|
87
|
+
export declare function readPinnedCliVersion(projectRoot: string): {
|
|
88
|
+
version: string | null;
|
|
89
|
+
path: string;
|
|
90
|
+
error: string | null;
|
|
91
|
+
};
|
|
92
|
+
export declare function collectFrameworkVersion(projectRoot: string): FrameworkVersionReport;
|
|
93
|
+
/**
|
|
94
|
+
* Nothing in this repo tells an operator that a pinned version has been
|
|
95
|
+
* superseded or unpublished. dependabot reads npm manifests only, and the pin is
|
|
96
|
+
* a shell file no workflow references; the report above compares RUNNING against
|
|
97
|
+
* PINNED and would call a two-year-old pin a clean MATCH. This check supplies the
|
|
98
|
+
* third number — what the registry has — so "the fleet is pinned" and "the fleet
|
|
99
|
+
* is on a version that still exists" stop being the same claim.
|
|
100
|
+
*
|
|
101
|
+
* ADVISORY, NETWORK-OPTIONAL, AND IT CANNOT FAIL THE COMMAND.
|
|
102
|
+
* One `npm view`, bounded by SIGKILL at REGISTRY_TIMEOUT_MS (measured 0.55 s warm
|
|
103
|
+
* on 2026-08-12; see defaultRegistryReader for why the signal is load-bearing —
|
|
104
|
+
* the default SIGTERM does not bound it). Every failure —
|
|
105
|
+
* offline, proxy, timeout, unparseable output — returns an `error` string that is
|
|
106
|
+
* printed as a dim "not checked" line. Nothing here reaches process.exitCode; the
|
|
107
|
+
* config-fidelity verdict owns it alone (see the header of commands/doctor.ts).
|
|
108
|
+
* Set MX_AGENT_DOCTOR_NO_NETWORK=1 to skip the call entirely.
|
|
109
|
+
*/
|
|
110
|
+
export interface PinRegistryStatus {
|
|
111
|
+
/** Registry `latest` dist-tag, or null when the check did not complete. */
|
|
112
|
+
latest: string | null;
|
|
113
|
+
/** Is the pinned version still published? Null when the check did not complete. */
|
|
114
|
+
pinnedIsPublished: boolean | null;
|
|
115
|
+
/** Why the check did not complete. Null on success. */
|
|
116
|
+
error: string | null;
|
|
117
|
+
}
|
|
118
|
+
/** Injectable so tests never touch the network. Returns npm's stdout. */
|
|
119
|
+
export type RegistryReader = () => string;
|
|
120
|
+
/**
|
|
121
|
+
* Exported for the bound test only — production callers get it as the default
|
|
122
|
+
* argument of checkPinAgainstRegistry.
|
|
123
|
+
*
|
|
124
|
+
* `killSignal: 'SIGKILL'` is what makes REGISTRY_TIMEOUT_MS a bound rather than a
|
|
125
|
+
* hint. `timeout` alone sends SIGTERM and then keeps waiting for the child to
|
|
126
|
+
* exit: measured against an npm that ignores SIGTERM, this call took 66,682 ms
|
|
127
|
+
* against a documented 5-second limit. With SIGKILL the same case is 5,005 ms,
|
|
128
|
+
* including when npm exits immediately but leaves a grandchild holding the stdout
|
|
129
|
+
* pipe (5,003 ms).
|
|
130
|
+
*/
|
|
131
|
+
export declare function defaultRegistryReader(): string;
|
|
132
|
+
export declare function checkPinAgainstRegistry(pinned: string | null, read?: RegistryReader): PinRegistryStatus | null;
|
|
133
|
+
/** Advisory lines appended to the framework-version report. Never a verdict. */
|
|
134
|
+
export declare function describePinRegistryStatus(pinned: string | null, s: PinRegistryStatus | null): string[];
|
|
135
|
+
/**
|
|
136
|
+
* Human lines. First line is the headline; the rest is detail.
|
|
137
|
+
*
|
|
138
|
+
* The MISMATCH text names the remedy, because the remedy is not obvious: the fix
|
|
139
|
+
* is to install the pinned version, NOT to move the pin to whatever happens to be
|
|
140
|
+
* installed. Bumping a pin to silence a mismatch is the same defect the codex pin's
|
|
141
|
+
* header calls out.
|
|
142
|
+
*/
|
|
143
|
+
export declare function describeFrameworkVersion(r: FrameworkVersionReport): string[];
|
|
144
|
+
//# sourceMappingURL=framework-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-version.d.ts","sourceRoot":"","sources":["../../src/lib/framework-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAWH;+EAC+E;AAC/E,eAAO,MAAM,uBAAuB,2CAA2C,CAAC;AA2ChF,MAAM,MAAM,sBAAsB;AAChC,0BAA0B;AACxB,OAAO;AACT,4FAA4F;GAC1F,UAAU;AACZ,qDAAqD;GACnD,QAAQ;AACV,6EAA6E;GAC3E,SAAS,CAAC;AAEd,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,sBAAsB,CAAC;CAChC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAOjD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAErD;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK9D;AAED,qDAAqD;AACrD,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CA2BxH;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,sBAAsB,CAQnF;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mFAAmF;IACnF,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,uDAAuD;IACvD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAKD,yEAAyE;AACzE,MAAM,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC;AAE1C;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAO9C;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,IAAI,GAAE,cAAsC,GAC3C,iBAAiB,GAAG,IAAI,CAkB1B;AAED,gFAAgF;AAChF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,EAAE,CAiBtG;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,sBAAsB,GAAG,MAAM,EAAE,CA0B5E"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which framework version is this project running? (#5371, A5.)
|
|
3
|
+
*
|
|
4
|
+
* Two numbers, and until now nothing printed either one:
|
|
5
|
+
* RUNNING — the version of the mx-agent CLI executing right now, read from the
|
|
6
|
+
* package.json that ships beside it. This is authoritative for "what code is
|
|
7
|
+
* making decisions in this session".
|
|
8
|
+
* PINNED — the version `.devcontainer/mx-agent-cli-version.pin` says this
|
|
9
|
+
* project's containers should install. This is authoritative for "what the
|
|
10
|
+
* project asked for".
|
|
11
|
+
*
|
|
12
|
+
* A MISMATCH is a real, previously invisible condition: someone ran
|
|
13
|
+
* `npm i -g @memnexus-ai/mx-agent-cli@latest` by hand, or the container has not
|
|
14
|
+
* been restarted since the pin moved. Before the pin existed the answer to
|
|
15
|
+
* "which framework version is this project running" was unobtainable, which is
|
|
16
|
+
* the gap this report closes.
|
|
17
|
+
*
|
|
18
|
+
* REPORT, NOT A GATE — READ THIS BEFORE ADDING AN EXIT CODE HERE.
|
|
19
|
+
* Nothing in this file returns or sets an exit code, and doctor's renderer must
|
|
20
|
+
* not derive one from it. `mx-agent doctor`'s exit code has exactly one owner,
|
|
21
|
+
* the fail-closed config-fidelity verdict (0 match / 1 drift / 2 undetermined) —
|
|
22
|
+
* see the header of commands/doctor.ts. A second contributor would make `$?`
|
|
23
|
+
* ambiguous: a caller seeing 1 could no longer tell "deployed .claude/ has
|
|
24
|
+
* drifted from source" from "this container is a release behind", and the
|
|
25
|
+
* fidelity gate is the one people are told to trust.
|
|
26
|
+
*
|
|
27
|
+
* The PARSER approximates the devcontainer scripts' behaviour and cannot equal
|
|
28
|
+
* it. Both scripts `.`-source the pin file as shell, so anything shell treats as
|
|
29
|
+
* an assignment sets the value; the regex below covers the plain, indented,
|
|
30
|
+
* `export` and `declare` forms and states what it cannot reach. A file with no
|
|
31
|
+
* matching line is NO_PIN, the same case the scripts refuse on, not a silent pass.
|
|
32
|
+
*/
|
|
33
|
+
import { createRequire } from 'module';
|
|
34
|
+
import { execFileSync } from 'child_process';
|
|
35
|
+
import { existsSync, readFileSync } from 'fs';
|
|
36
|
+
import { dirname, join } from 'path';
|
|
37
|
+
import { fileURLToPath } from 'url';
|
|
38
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
39
|
+
const require = createRequire(import.meta.url);
|
|
40
|
+
/** Path of the pin file relative to a project root. Kept in one place so the
|
|
41
|
+
* doctor report, the new-project scaffold and the docs cannot drift apart. */
|
|
42
|
+
export const CLI_VERSION_PIN_RELPATH = '.devcontainer/mx-agent-cli-version.pin';
|
|
43
|
+
/**
|
|
44
|
+
* The assignment forms this parser can see. NOT all the forms `.`-sourcing honours.
|
|
45
|
+
*
|
|
46
|
+
* Covered: leading whitespace, `export VAR=`, `declare [-flags] VAR=`.
|
|
47
|
+
* NOT covered, and this is the honest limit rather than an oversight: a compound
|
|
48
|
+
* command that puts an assignment somewhere a line-anchored regex cannot reach —
|
|
49
|
+
* `:; MX_AGENT_CLI_VERSION=9.9.9`, `if true; then MX_AGENT_CLI_VERSION=9.9.9; fi`,
|
|
50
|
+
* a `$(...)` value, an assignment inside a sourced-from-here file. Closing those
|
|
51
|
+
* means implementing a shell parser for a file we are about to hand to a shell,
|
|
52
|
+
* and a parser that is nearly a shell is worse than one with a stated boundary.
|
|
53
|
+
*
|
|
54
|
+
* What the boundary costs: an uncovered form makes the parser see one assignment
|
|
55
|
+
* where the shell sees two, so doctor reports the FIRST value while the container
|
|
56
|
+
* installs the SECOND — and the MISMATCH line then tells the operator to install
|
|
57
|
+
* the version doctor believes is pinned, which post-start reverts on the next
|
|
58
|
+
* container start. The count check below catches every form listed as covered;
|
|
59
|
+
* it cannot catch the ones listed as not.
|
|
60
|
+
*/
|
|
61
|
+
const PIN_ASSIGNMENT = /^[ \t]*(?:export[ \t]+|declare[ \t]+(?:-[a-zA-Z]+[ \t]+)*)?MX_AGENT_CLI_VERSION=(.+)$/gm;
|
|
62
|
+
/**
|
|
63
|
+
* Accepts `1.2.3` and `1.2.3-rc.1`; rejects `latest`, `^1.2.3`, `1.2`, empty.
|
|
64
|
+
*
|
|
65
|
+
* The devcontainer scripts carry a DELIBERATE SHELL TWIN of this pattern
|
|
66
|
+
* (`^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$` in post-create.sh, post-start.sh
|
|
67
|
+
* and the generated bootstrap in templates.ts). It has to be a twin rather than
|
|
68
|
+
* a shared constant because the scripts run before this CLI exists. Change one,
|
|
69
|
+
* change all four: a value this file calls "not a pin" while a script installs
|
|
70
|
+
* it is the exact gap that let `latest`, a range, a tarball URL and a
|
|
71
|
+
* `github:owner/repo` spec through the shell side.
|
|
72
|
+
*
|
|
73
|
+
* The twin is EXACT under the C and C.UTF-8 locales only (this container is
|
|
74
|
+
* C.UTF-8): bash's bracket ranges are locale-collated, so under en_US.UTF-8 a
|
|
75
|
+
* handful of values — fullwidth digits, Arabic-Indic digits, accented prerelease
|
|
76
|
+
* tags — are accepted by the shell and rejected here. None is a valid npm spec
|
|
77
|
+
* (a URL or git spec needs `:` and `/`, outside `[0-9A-Za-z.-]` in every locale),
|
|
78
|
+
* so the shell side ends in an E404, which is loud on both paths.
|
|
79
|
+
*/
|
|
80
|
+
const CONCRETE_VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/;
|
|
81
|
+
/**
|
|
82
|
+
* The version of the CLI executing right now.
|
|
83
|
+
*
|
|
84
|
+
* Same resolution as `src/index.ts` and `commands/update.ts`: the package.json
|
|
85
|
+
* that ships next to the built code, reached from this module's own URL. NOT the
|
|
86
|
+
* repo's checked-in package.json by path guesswork — a globally installed CLI has
|
|
87
|
+
* no repo, and this must answer in that case above all, since that is how every
|
|
88
|
+
* consumer team runs it.
|
|
89
|
+
*
|
|
90
|
+
* Returns null rather than throwing: a diagnostic must not be able to fail the
|
|
91
|
+
* command it is diagnosing.
|
|
92
|
+
*/
|
|
93
|
+
export function runningCliVersion() {
|
|
94
|
+
try {
|
|
95
|
+
const pkg = require(join(__dirname, '../../package.json'));
|
|
96
|
+
return typeof pkg.version === 'string' && pkg.version.length > 0 ? pkg.version : null;
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Every `MX_AGENT_CLI_VERSION=` assignment in a pin file's text, in file order.
|
|
104
|
+
*
|
|
105
|
+
* Exported because the COUNT is the interesting part. Shell `.`-sourcing honours
|
|
106
|
+
* the LAST assignment; this parser used to return the FIRST, so a two-line pin
|
|
107
|
+
* file made doctor report one version while the devcontainer installed another —
|
|
108
|
+
* the report concealing the very value it exists to surface.
|
|
109
|
+
*/
|
|
110
|
+
export function pinAssignments(text) {
|
|
111
|
+
return [...text.matchAll(PIN_ASSIGNMENT)].map((m) => m[1].trim());
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Parse a pin file's TEXT. Exported so the parser is testable without a filesystem.
|
|
115
|
+
*
|
|
116
|
+
* TWO assignments is a REFUSAL, not a choice. The shell would take the last one,
|
|
117
|
+
* so that is the value reported in the error text (see readPinnedCliVersion), but
|
|
118
|
+
* a file that says two different things is not a pin and reporting either value as
|
|
119
|
+
* "the pin" would be a claim this parser cannot support. Null here means doctor
|
|
120
|
+
* prints NOT PINNED, which is the loud direction.
|
|
121
|
+
*/
|
|
122
|
+
export function parsePinnedVersion(text) {
|
|
123
|
+
const values = pinAssignments(text);
|
|
124
|
+
if (values.length !== 1)
|
|
125
|
+
return null;
|
|
126
|
+
const value = values[0];
|
|
127
|
+
return CONCRETE_VERSION.test(value) ? value : null;
|
|
128
|
+
}
|
|
129
|
+
/** Read the pin for a project root. Never throws. */
|
|
130
|
+
export function readPinnedCliVersion(projectRoot) {
|
|
131
|
+
const path = join(projectRoot, CLI_VERSION_PIN_RELPATH);
|
|
132
|
+
if (!existsSync(path)) {
|
|
133
|
+
return { version: null, path, error: 'no pin file — this project does not pin its framework version' };
|
|
134
|
+
}
|
|
135
|
+
let text;
|
|
136
|
+
try {
|
|
137
|
+
text = readFileSync(path, 'utf-8');
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
return { version: null, path, error: `pin file unreadable: ${e.message}` };
|
|
141
|
+
}
|
|
142
|
+
const version = parsePinnedVersion(text);
|
|
143
|
+
if (version)
|
|
144
|
+
return { version, path, error: null };
|
|
145
|
+
// Name the ambiguous case explicitly. "no parseable line" would be false and
|
|
146
|
+
// would send someone looking for a missing line in a file that has two.
|
|
147
|
+
const assignments = pinAssignments(text);
|
|
148
|
+
if (assignments.length > 1) {
|
|
149
|
+
return {
|
|
150
|
+
version: null,
|
|
151
|
+
path,
|
|
152
|
+
error: `pin file has ${assignments.length} MX_AGENT_CLI_VERSION assignments — the devcontainer scripts source it as ` +
|
|
153
|
+
`shell and would install the LAST one (${assignments[assignments.length - 1]}). Refusing to report either as the pin; ` +
|
|
154
|
+
`leave exactly one.`,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
return { version: null, path, error: 'pin file has no parseable MX_AGENT_CLI_VERSION=<x.y.z> line' };
|
|
158
|
+
}
|
|
159
|
+
export function collectFrameworkVersion(projectRoot) {
|
|
160
|
+
const running = runningCliVersion();
|
|
161
|
+
const pin = readPinnedCliVersion(projectRoot);
|
|
162
|
+
let status;
|
|
163
|
+
if (running === null)
|
|
164
|
+
status = 'UNKNOWN';
|
|
165
|
+
else if (pin.version === null)
|
|
166
|
+
status = 'NO_PIN';
|
|
167
|
+
else
|
|
168
|
+
status = pin.version === running ? 'MATCH' : 'MISMATCH';
|
|
169
|
+
return { running, pinned: pin.version, pinPath: pin.path, pinError: pin.error, status };
|
|
170
|
+
}
|
|
171
|
+
const REGISTRY_PACKAGE = '@memnexus-ai/mx-agent-cli';
|
|
172
|
+
const REGISTRY_TIMEOUT_MS = 5000;
|
|
173
|
+
/**
|
|
174
|
+
* Exported for the bound test only — production callers get it as the default
|
|
175
|
+
* argument of checkPinAgainstRegistry.
|
|
176
|
+
*
|
|
177
|
+
* `killSignal: 'SIGKILL'` is what makes REGISTRY_TIMEOUT_MS a bound rather than a
|
|
178
|
+
* hint. `timeout` alone sends SIGTERM and then keeps waiting for the child to
|
|
179
|
+
* exit: measured against an npm that ignores SIGTERM, this call took 66,682 ms
|
|
180
|
+
* against a documented 5-second limit. With SIGKILL the same case is 5,005 ms,
|
|
181
|
+
* including when npm exits immediately but leaves a grandchild holding the stdout
|
|
182
|
+
* pipe (5,003 ms).
|
|
183
|
+
*/
|
|
184
|
+
export function defaultRegistryReader() {
|
|
185
|
+
return execFileSync('npm', ['view', REGISTRY_PACKAGE, 'dist-tags.latest', 'versions', '--json'], {
|
|
186
|
+
encoding: 'utf-8',
|
|
187
|
+
timeout: REGISTRY_TIMEOUT_MS,
|
|
188
|
+
killSignal: 'SIGKILL',
|
|
189
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export function checkPinAgainstRegistry(pinned, read = defaultRegistryReader) {
|
|
193
|
+
if (!pinned)
|
|
194
|
+
return null; // nothing to compare a pin against
|
|
195
|
+
if (process.env.MX_AGENT_DOCTOR_NO_NETWORK === '1') {
|
|
196
|
+
return { latest: null, pinnedIsPublished: null, error: 'skipped (MX_AGENT_DOCTOR_NO_NETWORK=1)' };
|
|
197
|
+
}
|
|
198
|
+
let parsed;
|
|
199
|
+
try {
|
|
200
|
+
parsed = JSON.parse(read());
|
|
201
|
+
}
|
|
202
|
+
catch (e) {
|
|
203
|
+
return { latest: null, pinnedIsPublished: null, error: `registry unreachable or unreadable: ${e.message}` };
|
|
204
|
+
}
|
|
205
|
+
const obj = parsed;
|
|
206
|
+
const latest = typeof obj['dist-tags.latest'] === 'string' ? obj['dist-tags.latest'] : null;
|
|
207
|
+
const versions = Array.isArray(obj.versions) ? obj.versions.filter((v) => typeof v === 'string') : null;
|
|
208
|
+
if (latest === null && versions === null) {
|
|
209
|
+
return { latest: null, pinnedIsPublished: null, error: 'registry returned no version fields' };
|
|
210
|
+
}
|
|
211
|
+
return { latest, pinnedIsPublished: versions ? versions.includes(pinned) : null, error: null };
|
|
212
|
+
}
|
|
213
|
+
/** Advisory lines appended to the framework-version report. Never a verdict. */
|
|
214
|
+
export function describePinRegistryStatus(pinned, s) {
|
|
215
|
+
if (!pinned || !s)
|
|
216
|
+
return [];
|
|
217
|
+
if (s.error)
|
|
218
|
+
return [` registry: not checked — ${s.error} (advisory only; does not affect the exit code)`];
|
|
219
|
+
if (s.pinnedIsPublished === false) {
|
|
220
|
+
return [
|
|
221
|
+
` registry: pin ${pinned} is NOT published — withdrawn, unpublished, or a typo.`,
|
|
222
|
+
` A devcontainer REBUILD will fail with E404 at post-create; a restart keeps the installed version and warns.`,
|
|
223
|
+
];
|
|
224
|
+
}
|
|
225
|
+
if (s.latest && s.latest !== pinned) {
|
|
226
|
+
return [
|
|
227
|
+
` registry: pin ${pinned} is behind latest ${s.latest}.`,
|
|
228
|
+
` A pin does not update itself — moving ${CLI_VERSION_PIN_RELPATH} is how a release reaches the fleet.`,
|
|
229
|
+
];
|
|
230
|
+
}
|
|
231
|
+
if (s.latest)
|
|
232
|
+
return [` registry: pin ${pinned} is the latest published version.`];
|
|
233
|
+
return [];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Human lines. First line is the headline; the rest is detail.
|
|
237
|
+
*
|
|
238
|
+
* The MISMATCH text names the remedy, because the remedy is not obvious: the fix
|
|
239
|
+
* is to install the pinned version, NOT to move the pin to whatever happens to be
|
|
240
|
+
* installed. Bumping a pin to silence a mismatch is the same defect the codex pin's
|
|
241
|
+
* header calls out.
|
|
242
|
+
*/
|
|
243
|
+
export function describeFrameworkVersion(r) {
|
|
244
|
+
const running = r.running ?? 'unknown';
|
|
245
|
+
switch (r.status) {
|
|
246
|
+
case 'MATCH':
|
|
247
|
+
return [`Framework version: ${running} (matches the pin)`, ` pin: ${r.pinPath}`];
|
|
248
|
+
case 'MISMATCH':
|
|
249
|
+
return [
|
|
250
|
+
`Framework version: MISMATCH — running ${running}, pinned ${r.pinned}`,
|
|
251
|
+
` pin: ${r.pinPath}`,
|
|
252
|
+
` This container is not running the version the project pins. To fix the container:`,
|
|
253
|
+
` npm install -g @memnexus-ai/mx-agent-cli@${r.pinned}`,
|
|
254
|
+
` To roll the fleet forward instead, move the pin deliberately — do not edit it to match what is installed.`,
|
|
255
|
+
` Advisory: this does not affect the exit code (the config-fidelity verdict owns it).`,
|
|
256
|
+
];
|
|
257
|
+
case 'NO_PIN':
|
|
258
|
+
return [
|
|
259
|
+
`Framework version: ${running} — NOT PINNED`,
|
|
260
|
+
` ${r.pinError ?? 'no pin'} (${r.pinPath})`,
|
|
261
|
+
` Without a pin, a container restart can install a different framework version (#5371).`,
|
|
262
|
+
];
|
|
263
|
+
default:
|
|
264
|
+
return [
|
|
265
|
+
`Framework version: unknown — could not read the running CLI's package.json`,
|
|
266
|
+
` pin: ${r.pinned ?? 'not read'} (${r.pinPath})`,
|
|
267
|
+
];
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=framework-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-version.js","sourceRoot":"","sources":["../../src/lib/framework-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C;+EAC+E;AAC/E,MAAM,CAAC,MAAM,uBAAuB,GAAG,wCAAwC,CAAC;AAEhF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,cAAc,GAClB,yFAAyF,CAAC;AAE5F;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,gBAAgB,GAAG,qCAAqC,CAAC;AAsB/D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,iBAAiB;IAC/B,IAAI,CAAC;QACH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AC;IACJ,CAAC;IACD,IAAI,CAAC,CAAC,MAAM;QAAE,OAAO,CAAC,mBAAmB,MAAM,mCAAmC,CAAC,CAAC;IACpF,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,CAAyB;IAChE,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,IAAI,SAAS,CAAC;IACvC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,CAAC,sBAAsB,OAAO,oBAAoB,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QACpF,KAAK,UAAU;YACb,OAAO;gBACL,yCAAyC,OAAO,YAAY,CAAC,CAAC,MAAM,EAAE;gBACtE,UAAU,CAAC,CAAC,OAAO,EAAE;gBACrB,qFAAqF;gBACrF,gDAAgD,CAAC,CAAC,MAAM,EAAE;gBAC1D,6GAA6G;gBAC7G,uFAAuF;aACxF,CAAC;QACJ,KAAK,QAAQ;YACX,OAAO;gBACL,sBAAsB,OAAO,eAAe;gBAC5C,KAAK,CAAC,CAAC,QAAQ,IAAI,QAAQ,KAAK,CAAC,CAAC,OAAO,GAAG;gBAC5C,yFAAyF;aAC1F,CAAC;QACJ;YACE,OAAO;gBACL,4EAA4E;gBAC5E,UAAU,CAAC,CAAC,MAAM,IAAI,UAAU,KAAK,CAAC,CAAC,OAAO,GAAG;aAClD,CAAC;IACN,CAAC;AACH,CAAC"}
|
package/dist/lib/templates.d.ts
CHANGED
|
@@ -47,6 +47,32 @@ export declare const BOOTSTRAP_SETTINGS_JSON: string;
|
|
|
47
47
|
export declare const CLAUDE_MD_TEMPLATE = "# Agent Instructions\n\nThis file is deployed automatically into each agent worktree by `mx-agent`.\nReplace the contents below with your project-specific agent instructions.\n\n## Project Overview\n\n<!-- Describe your project here -->\n\n## Workflow\n\n<!-- Describe the expected workflow for agents -->\n\n## Rules\n\n1. Stay within your worktree directory.\n2. Do not push to the base branch directly \u2014 create a PR.\n3. Follow the project's coding conventions.\n";
|
|
48
48
|
export declare function newProjectDockerfileTemplate(): string;
|
|
49
49
|
export declare function newProjectDevcontainerJsonTemplate(projectName: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* The pin file a new project is scaffolded with (#5371).
|
|
52
|
+
*
|
|
53
|
+
* WHICH VERSION, AND WHY. The default is the version of the mx-agent CLI that is
|
|
54
|
+
* scaffolding this project, resolved from its own package.json exactly as
|
|
55
|
+
* `src/index.ts` resolves the string it prints for `--version`. Three candidates
|
|
56
|
+
* were available and this is the only one that is both known-good and known to
|
|
57
|
+
* exist:
|
|
58
|
+
* - `@latest` at container-start time — the defect being removed. It cannot be
|
|
59
|
+
* recorded, so nothing can report it.
|
|
60
|
+
* - whatever the registry says is newest AT SCAFFOLD TIME — needs a network call
|
|
61
|
+
* during `mx-agent new`, and would pin the project to a release nothing in this
|
|
62
|
+
* process has ever run.
|
|
63
|
+
* - the running CLI's own version — no network call, and it is the version that
|
|
64
|
+
* generated this project's config, so the project starts life self-consistent:
|
|
65
|
+
* the config on disk and the CLI that will read it are the same release.
|
|
66
|
+
*
|
|
67
|
+
* The value is a genuine published version because the running CLI was installed
|
|
68
|
+
* from the registry. (In this repo the CHECKED-IN package.json version is
|
|
69
|
+
* deliberately stale — CI resolves the real version from the registry at publish
|
|
70
|
+
* time and never commits back — so a dev running an unbuilt local checkout can
|
|
71
|
+
* scaffold a pin naming a version that predates the one they are running. That is
|
|
72
|
+
* the documented cost of the publish design, not a new one; `mx-agent doctor`
|
|
73
|
+
* reports the resulting mismatch instead of leaving it invisible.)
|
|
74
|
+
*/
|
|
75
|
+
export declare function newProjectMxAgentCliVersionPinTemplate(cliVersion: string): string;
|
|
50
76
|
export declare function newProjectPostCreateShTemplate(projectName: string): string;
|
|
51
77
|
export declare function newProjectPostStartShTemplate(projectName: string): string;
|
|
52
78
|
export declare function newProjectGitignoreTemplate(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/lib/templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAuBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kxBA2BtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,+1yBAwiBlC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,QAoFnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,4dAkB9B,CAAC;AAIF,wBAAgB,4BAA4B,IAAI,MAAM,CAsBrD;AAED,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAiC9E;AAED,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/lib/templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAuBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kxBA2BtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,+1yBAwiBlC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,QAoFnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,4dAkB9B,CAAC;AAIF,wBAAgB,4BAA4B,IAAI,MAAM,CAsBrD;AAED,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAiC9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,sCAAsC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAiBjF;AAED,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA4H1E;AAED,wBAA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