@memnexus-ai/mx-agent-cli 0.1.297 → 0.1.298

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 (62) hide show
  1. package/dist/agent-config/hooks/gh-pr-edit-guard.sh +21 -9
  2. package/dist/agent-config/settings.json +7 -1
  3. package/dist/commands/check.d.ts +20 -0
  4. package/dist/commands/check.d.ts.map +1 -0
  5. package/dist/commands/check.js +30 -0
  6. package/dist/commands/check.js.map +1 -0
  7. package/dist/commands/gh.d.ts +38 -0
  8. package/dist/commands/gh.d.ts.map +1 -0
  9. package/dist/commands/gh.js +162 -0
  10. package/dist/commands/gh.js.map +1 -0
  11. package/dist/commands/git-credential.d.ts +22 -0
  12. package/dist/commands/git-credential.d.ts.map +1 -0
  13. package/dist/commands/git-credential.js +53 -0
  14. package/dist/commands/git-credential.js.map +1 -0
  15. package/dist/commands/new.d.ts +24 -0
  16. package/dist/commands/new.d.ts.map +1 -1
  17. package/dist/commands/new.js +56 -5
  18. package/dist/commands/new.js.map +1 -1
  19. package/dist/commands/pr-set-body.d.ts +120 -35
  20. package/dist/commands/pr-set-body.d.ts.map +1 -1
  21. package/dist/commands/pr-set-body.js +343 -108
  22. package/dist/commands/pr-set-body.js.map +1 -1
  23. package/dist/commands/pr-sync.d.ts +2 -1
  24. package/dist/commands/pr-sync.d.ts.map +1 -1
  25. package/dist/commands/pr-sync.js +129 -32
  26. package/dist/commands/pr-sync.js.map +1 -1
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +82 -2
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/check-run.d.ts +131 -0
  32. package/dist/lib/check-run.d.ts.map +1 -0
  33. package/dist/lib/check-run.js +291 -0
  34. package/dist/lib/check-run.js.map +1 -0
  35. package/dist/lib/coordination-token.d.ts +33 -1
  36. package/dist/lib/coordination-token.d.ts.map +1 -1
  37. package/dist/lib/coordination-token.js +138 -9
  38. package/dist/lib/coordination-token.js.map +1 -1
  39. package/dist/lib/gh-remote.d.ts +20 -0
  40. package/dist/lib/gh-remote.d.ts.map +1 -1
  41. package/dist/lib/gh-remote.js +26 -0
  42. package/dist/lib/gh-remote.js.map +1 -1
  43. package/dist/lib/gh-token-run.d.ts +551 -0
  44. package/dist/lib/gh-token-run.d.ts.map +1 -0
  45. package/dist/lib/gh-token-run.js +1246 -0
  46. package/dist/lib/gh-token-run.js.map +1 -0
  47. package/dist/lib/git-credential.d.ts +120 -0
  48. package/dist/lib/git-credential.d.ts.map +1 -0
  49. package/dist/lib/git-credential.js +204 -0
  50. package/dist/lib/git-credential.js.map +1 -0
  51. package/dist/lib/github-app-token.d.ts +288 -0
  52. package/dist/lib/github-app-token.d.ts.map +1 -0
  53. package/dist/lib/github-app-token.js +519 -0
  54. package/dist/lib/github-app-token.js.map +1 -0
  55. package/dist/lib/memory.d.ts.map +1 -1
  56. package/dist/lib/memory.js +35 -2
  57. package/dist/lib/memory.js.map +1 -1
  58. package/dist/lib/repo-guard-state-dirs.d.ts +39 -0
  59. package/dist/lib/repo-guard-state-dirs.d.ts.map +1 -0
  60. package/dist/lib/repo-guard-state-dirs.js +170 -0
  61. package/dist/lib/repo-guard-state-dirs.js.map +1 -0
  62. package/package.json +1 -1
@@ -0,0 +1,288 @@
1
+ /**
2
+ * github-app-token -- mint an mx-bott installation token in-process (#440, v51).
3
+ *
4
+ * WHAT THIS DOES. Reads mx-bott's private key from the dev Key Vault, signs a
5
+ * GitHub App JWT (RS256) with node:crypto, looks up the installation on this
6
+ * repository, and exchanges the JWT for an installation token scoped to ONE
7
+ * repository and a fixed permission set. The token is returned to the caller
8
+ * as a value in process memory and goes nowhere else.
9
+ *
10
+ * FIXED, NO OVERRIDES IN THIS MODULE. The vault, the secret name, the API base,
11
+ * the app id and the repository are constants below. This module reads no flag,
12
+ * environment variable, config value or parameter that names a different
13
+ * vault, secret, host or repository (v51 plan revision 1, Must Fix 1; the same
14
+ * rule `vault.ts` states for its probe). The permission sets are a closed map
15
+ * keyed by purpose, so a caller can pick one of four named sets and cannot
16
+ * widen any of them.
17
+ *
18
+ * WHAT THAT DOES NOT COVER. Environment variables read by Node and by `az`
19
+ * still affect transport and the vault read, and this module does not clear
20
+ * them: NODE_TLS_REJECT_UNAUTHORIZED and NODE_EXTRA_CA_CERTS change TLS trust,
21
+ * NODE_OPTIONS can load code into this process, HTTPS_PROXY and similar can
22
+ * route `az`'s traffic, and AZURE_CONFIG_DIR and AZURE_CORE_* change which `az`
23
+ * login and settings are used. Anyone who can set those for this process can
24
+ * already read the key from the vault with the same `az` login.
25
+ *
26
+ * RESIDUAL RISK, NOT REMOVED. The PEM, the JWT and the token are JavaScript
27
+ * strings. Node cannot zero a string, so each stays in the heap until garbage
28
+ * collection reuses the memory. A core dump, a heap snapshot or swapped-out
29
+ * pages from this process can hold them. The exposure is one short-lived CLI
30
+ * invocation per check post. The product owner accepted the key's org-wide
31
+ * reach on 2026-10-17 (#440 comment 6268940374).
32
+ *
33
+ * THE ONE CHILD PROCESS. `az keyvault secret show ... --query value -o tsv`,
34
+ * argv in vaultReadArgv(), run with execFileSync: no shell, stdin ignored,
35
+ * stdout piped into this process, stderr ignored, a timeout and a maxBuffer,
36
+ * the environment not overridden, never `--debug` or `--verbose`. This is the
37
+ * shape of `defaultFetchSecret` in coordination-token.ts.
38
+ *
39
+ * WHY `show` IS ALLOWED HERE AND NOT IN vault.ts. The 2026-08-22 security
40
+ * ruling in vault.ts forbids `show` in the probe module because that module
41
+ * must never hold a value. This module must hold the key to sign the JWT, so
42
+ * the ruling does not cover it. The security-reviewer rules on holding the PEM
43
+ * in memory here as a v51 merge condition. The PEM is passed straight from
44
+ * fetchPrivateKey() into buildAppJwt() inside mintInstallationToken() and is
45
+ * not stored in any variable that outlives that call.
46
+ *
47
+ * NO ECHO. No error, log line or return value includes the key, the JWT, the
48
+ * token, or any HTTP response body (a 4xx body can echo request material).
49
+ * Errors name the step and, for HTTP, the status code only. Nothing is printed
50
+ * and nothing is written to a file.
51
+ *
52
+ * TRANSPORT. Node's global fetch, in this process. Never `gh`, `curl`, a child
53
+ * process, or a GH_TOKEN / GITHUB_TOKEN environment variable.
54
+ *
55
+ * REVOKE (#440 v59, #707 item 3). revokeInstallationToken() sends one
56
+ * `DELETE /installation/token` with the token as its bearer, through the same
57
+ * githubRequest() transport as the mint: the fixed GITHUB_API_BASE, the same
58
+ * headers, `redirect: 'error'`, Node's global fetch. Its own bound is
59
+ * REVOKE_TIMEOUT_MS. It is the first request in which this process sends an
60
+ * installation token, rather than the app JWT, over the network.
61
+ *
62
+ * BODY BOUND (#440 v61, #707). Every JSON body this module and check-run.ts
63
+ * read goes through readJsonBounded(): BODY_TIMEOUT_MS from the start of the
64
+ * read, then the body is cancelled through the reader that holds it and the
65
+ * caller's own error is thrown. The requests themselves are unchanged.
66
+ *
67
+ * FAIL CLOSED. Every failure throws a GitHubAppTokenError with a named code.
68
+ * There is no fallback key source and no degraded mode.
69
+ */
70
+ /** The vault holding mx-bott's key. Imported, never configurable. */
71
+ export declare const APP_KEY_VAULT = "mx-dev-eastus2-kv-001";
72
+ /** The secret name the product owner places the key under (#440 comment 6268949499). */
73
+ export declare const APP_KEY_SECRET_NAME = "mx-bott-private-key";
74
+ /** GitHub REST base. Fixed: a token request must never go to another host. */
75
+ export declare const GITHUB_API_BASE = "https://api.github.com";
76
+ /** mx-bott's app id, the JWT `iss` claim (#440 comment 6241758031). */
77
+ export declare const APP_ID = 2258107;
78
+ /** The one repository tokens are minted for. */
79
+ export declare const REPO_OWNER = "memnexus-ai";
80
+ export declare const REPO_NAME = "mx-agent-framework";
81
+ /** Bounds on the `az` read, so a hung or chatty `az` cannot stall or fill memory. */
82
+ export declare const VAULT_READ_TIMEOUT_MS = 30000;
83
+ /** An RSA-4096 PEM is about 3.3 KB; 64 KB leaves room and still bounds the read. */
84
+ export declare const VAULT_READ_MAX_BUFFER: number;
85
+ /**
86
+ * Per-request bound on the GitHub calls (AbortSignal.timeout). It ends a wait
87
+ * for the headers. It does not reliably end a body read: v61 Step 1 measured
88
+ * it failing to once garbage collection ran, so BODY_TIMEOUT_MS bounds bodies.
89
+ */
90
+ export declare const HTTP_TIMEOUT_MS = 15000;
91
+ /**
92
+ * Bound on reading one JSON response body (#440 v61, #707; plan comment
93
+ * 6284328596, revision 1 comment 6284349941). The timer starts when the body
94
+ * read starts, after the headers, so a request whose body is read is bounded
95
+ * at HTTP_TIMEOUT_MS + BODY_TIMEOUT_MS, 30 s. These bodies are small JSON
96
+ * documents; the bound is per read, not a total (#564 is the opposite risk).
97
+ */
98
+ export declare const BODY_TIMEOUT_MS = 15000;
99
+ /**
100
+ * Cap on one JSON response body, 1 MiB (#440 v61 revision 3, #707 comment
101
+ * 6297162580). The token, installation, comment and check-run bodies read
102
+ * here are small JSON documents, far under the cap. Without
103
+ * a cap the read kept running after the bound fired: the red-team measured a
104
+ * 1.1 GB body delaying the revoke to 20.4 s and a larger one crashing V8
105
+ * before any revoke (relayed by the lead in that comment). Over the cap the
106
+ * reader is cancelled and the read gives the not-received outcome, the same
107
+ * as a stall.
108
+ */
109
+ export declare const MAX_BODY_BYTES: number;
110
+ /**
111
+ * Bound on the token revoke (v59 plan revision 1, S2). Every `mx-agent gh` call
112
+ * waits for the revoke, so a short bound limits the delay a slow network adds.
113
+ * A revoke that times out leaves the token's 1-hour lifetime, as before v59.
114
+ */
115
+ export declare const REVOKE_TIMEOUT_MS = 5000;
116
+ /**
117
+ * JWT window. GitHub refuses an `exp` more than 10 minutes in the future and
118
+ * recommends backdating `iat` 60 s for clock drift. exp - iat is 600 s exactly.
119
+ */
120
+ export declare const JWT_IAT_BACKDATE_S = 60;
121
+ export declare const JWT_EXP_AHEAD_S = 540;
122
+ /** The GitHub REST API version header value this module was written against. */
123
+ export declare const GITHUB_API_VERSION = "2022-11-28";
124
+ /**
125
+ * The four permission sets a token can be minted with. Closed map: no caller
126
+ * supplies permissions.
127
+ *
128
+ * - `check-write` posts a check run. The v51 plan's set, unchanged.
129
+ * - `verdict-read` reads the security-review verdict comment for
130
+ * `check post --name security-review`. This repository is private, so a
131
+ * token holding only `checks: write` and `metadata: read` cannot read a pull
132
+ * request comment. GitHub's `pull_requests` permission covers "pull requests
133
+ * and related comments" (REST description, components.schemas.app-permissions).
134
+ * Kept as a separate token so the check-posting token stays exactly the
135
+ * plan's set. Deviation from the plan, stated in the v51 PR body.
136
+ * - `push` lets `git push` authenticate as mx-bott through the git credential
137
+ * helper in lib/git-credential.ts (#440, v54). It holds no `workflows`
138
+ * permission, so GitHub refuses a push that changes `.github/workflows/`.
139
+ * That refusal is intended. Fetch and clone through the helper receive this
140
+ * same write-scoped token.
141
+ * - `gh` is the token `mx-agent gh` puts in one gh child's environment
142
+ * (lib/gh-token-run.ts, #440 v56). It holds no `contents: write`: the
143
+ * product owner merges and approves as himself (#440 comment 6273920817).
144
+ * `checks` and `issues` work only once the installation grants them.
145
+ * `contents: 'read'` was added in v68 by product owner decision (#757
146
+ * comment 6396745069, memory cd571fc0): gh's `pr create`, `pr checks`,
147
+ * plain `pr view` and branch lookups request fields that need it
148
+ * (measurement result, #757 comment 6397047004).
149
+ */
150
+ export declare const TOKEN_PERMISSIONS: {
151
+ readonly 'check-write': {
152
+ readonly checks: "write";
153
+ readonly metadata: "read";
154
+ };
155
+ readonly 'verdict-read': {
156
+ readonly pull_requests: "read";
157
+ readonly metadata: "read";
158
+ };
159
+ readonly push: {
160
+ readonly contents: "write";
161
+ readonly metadata: "read";
162
+ };
163
+ readonly gh: {
164
+ readonly pull_requests: "write";
165
+ readonly issues: "write";
166
+ readonly checks: "read";
167
+ readonly actions: "read";
168
+ readonly metadata: "read";
169
+ readonly contents: "read";
170
+ };
171
+ };
172
+ export type TokenPurpose = keyof typeof TOKEN_PERMISSIONS;
173
+ export type GitHubAppTokenErrorCode = 'vault-secret-missing' | 'vault-unreadable' | 'key-empty' | 'key-not-pem' | 'key-unusable' | 'installation-not-found' | 'installation-lookup-failed' | 'permission-not-accepted' | 'token-request-failed' | 'token-response-invalid' | 'revoke-failed' | 'network';
174
+ /** Every failure in this module. `message` never holds a key, JWT, token or response body. */
175
+ export declare class GitHubAppTokenError extends Error {
176
+ readonly code: GitHubAppTokenErrorCode;
177
+ constructor(code: GitHubAppTokenErrorCode, message: string);
178
+ }
179
+ /** The ONE argv this module runs. One reviewable expression, asserted by test K4. */
180
+ export declare function vaultReadArgv(): string[];
181
+ /** The options for that one call. No `env` key: `az` reads the environment unchanged. */
182
+ export declare function vaultReadOptions(): {
183
+ encoding: 'utf-8';
184
+ stdio: ['ignore', 'pipe', 'ignore'];
185
+ timeout: number;
186
+ maxBuffer: number;
187
+ };
188
+ /**
189
+ * Read mx-bott's private key from Key Vault. Returns the PEM. Throws a named
190
+ * error on every failure; no error quotes the value or its length.
191
+ */
192
+ export declare function fetchPrivateKey(): string;
193
+ /**
194
+ * Sign the GitHub App JWT. RS256, iat backdated JWT_IAT_BACKDATE_S, exp
195
+ * JWT_EXP_AHEAD_S ahead, iss = APP_ID. `nowMs` exists for tests of the window.
196
+ */
197
+ export declare function buildAppJwt(pem: string, nowMs?: number): string;
198
+ /** Release an unread body without reading it into this process. */
199
+ export declare function discardBody(res: Response): void;
200
+ /** The two errors a body read can end in. Each site supplies its own, so its code is kept. */
201
+ export interface BodyReadErrors {
202
+ /**
203
+ * The body did not arrive: the bound fired first, or the stream failed
204
+ * before its end (the request's own signal, a reset connection). The
205
+ * message must hold no response content.
206
+ */
207
+ notReceived: () => Error;
208
+ /** The whole body arrived and is not JSON, or there is no body. The message must hold no response content. */
209
+ invalid: () => Error;
210
+ }
211
+ /**
212
+ * Read one JSON body, bounded by `timeoutMs` from the moment this is called,
213
+ * which is after the headers (#440 v61). Settles exactly once (the settled
214
+ * guard of boundedRevoke):
215
+ *
216
+ * - the read finishes first: resolves with the parsed value and cancels the
217
+ * timer. Nothing is cancelled on this path (memory eaeab1ec: an abort after
218
+ * a successful read invalidated a body elsewhere);
219
+ * - the stream fails first: rejects with `errors.notReceived()` and cancels
220
+ * the timer. On Node 20.x in CI the request's own AbortSignal.timeout
221
+ * errors the stream at 15 s from the request start, just before this timer
222
+ * fires, so a stall can end this way; it is the same outcome as the bound;
223
+ * - the whole body arrives and is not JSON: rejects with `errors.invalid()`
224
+ * and cancels the timer;
225
+ * - the timer fires first: cancels THIS body through the reader this function
226
+ * holds, then rejects with `errors.notReceived()`. The abandoned read keeps
227
+ * its rejection handler, so a late failure after the bound is swallowed, not
228
+ * an unhandled rejection.
229
+ *
230
+ * WHY A READER CANCEL (v61 Step 1, Node 22.16.0, measured in the PR body).
231
+ * - Aborting the request's signal, whether AbortSignal.timeout or an
232
+ * AbortController this module holds, did not end the read once garbage
233
+ * collection ran after the headers, on requests made with
234
+ * `redirect: 'error'`, as every request here is. The red-team measured that
235
+ * the hang needs both: 8 of 8 hung with `redirect: 'error'` and garbage
236
+ * collection, 0 of 3 without `redirect: 'error'` (relayed in #707 comment
237
+ * 6297162580). The read then waited for undici's own body timeout, measured
238
+ * at 318 s with no signal. That matches the 301 s stall of security review
239
+ * I1 on PR #719 (comment 6284092193).
240
+ * - res.body.cancel() while res.json() reads rejects with "ReadableStream is
241
+ * locked" and ends nothing.
242
+ * - reader.cancel() on a reader this function owns ended the read within
243
+ * 40 ms of the timer, with or without garbage collection, and the server saw
244
+ * the socket close. So the body is read here, chunk by chunk, not with
245
+ * res.json().
246
+ *
247
+ * SIZE CAP. More than MAX_BODY_BYTES cancels the reader and gives
248
+ * `errors.notReceived()`. Once the read has settled by any route, the
249
+ * abandoned read stops at its next chunk and skips concat, decode and parse,
250
+ * so a body that keeps arriving after the bound costs no main-thread work.
251
+ *
252
+ * Neither error quotes the body or the underlying error.
253
+ */
254
+ export declare function readJsonBounded(res: Response, timeoutMs: number, setTimer: SetTimer, errors: BodyReadErrors): Promise<unknown>;
255
+ /**
256
+ * Mint an installation token for REPO_OWNER/REPO_NAME with the named
257
+ * permission set. Returns the token value in memory; the caller puts it in one
258
+ * Authorization header and lets it go out of scope.
259
+ */
260
+ export declare function mintInstallationToken(purpose: TokenPurpose): Promise<string>;
261
+ /**
262
+ * Revoke an installation token (#440 v59, #707 item 3). Sends exactly one
263
+ * `DELETE ${GITHUB_API_BASE}/installation/token` with the token as its bearer
264
+ * and no body, bounded by REVOKE_TIMEOUT_MS. GitHub answers 204 when it
265
+ * revokes the token. Every other status is a failure, 200, 401 and 404
266
+ * included: 401 or 404 means the token was already unusable, and the caller
267
+ * reports that the same way (v59 plan revision 1, S5).
268
+ *
269
+ * Throws GitHubAppTokenError `revoke-failed` naming the status code only, or
270
+ * `network` with no cause text. The body is never read. Never logs.
271
+ */
272
+ export declare function revokeInstallationToken(token: string): Promise<void>;
273
+ /** The result of boundedRevoke. Each caller writes its own stderr line for `failed`. */
274
+ export type RevokeOutcome = 'revoked' | 'failed';
275
+ /** Calls `fn` after `ms` milliseconds; returns a function that cancels it. */
276
+ export type SetTimer = (ms: number, fn: () => void) => () => void;
277
+ /** The real timer: setTimeout, cancelled with clearTimeout. */
278
+ export declare const realSetTimer: SetTimer;
279
+ /**
280
+ * Attempt `revoke(token)`, bounded by REVOKE_TIMEOUT_MS on this side as well
281
+ * as in the request (moved from gh-token-run.ts in v60, plan revision 1 S1,
282
+ * #707 comment 6283638859). Never rejects. Resolves `revoked` when the revoke
283
+ * resolves first, and `failed` when it rejects, throws, or the bound fires
284
+ * first. The settled guard makes the first of those the only result. The
285
+ * outcome holds no error text and no token.
286
+ */
287
+ export declare function boundedRevoke(revoke: (token: string) => Promise<void>, token: string, setTimer: SetTimer): Promise<RevokeOutcome>;
288
+ //# sourceMappingURL=github-app-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-app-token.d.ts","sourceRoot":"","sources":["../../src/lib/github-app-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAMH,qEAAqE;AACrE,eAAO,MAAM,aAAa,0BAA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