@memnexus-ai/mx-agent-cli 0.1.302 → 0.1.304
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/agent-config/.mx-config-generation.json +2 -2
- package/dist/agent-config/AGENTS.md.template +1 -1
- package/dist/agent-config/agents/bar-raiser.md +41 -1
- package/dist/agent-config/agents/git-expert.md +58 -54
- package/dist/agent-config/claude-md/CLAUDE.core.md +1 -1
- package/dist/agent-config/hooks/session-idle-gate.sh +14 -1
- package/dist/agent-config/hooks/subagent-write-guard.sh +198 -12
- package/dist/agent-config/hooks/worktree-guard.sh +8 -6
- package/dist/agent-config/skills/mx-post-merge-sync/SKILL.md +57 -51
- package/dist/commands/codex-agent-gate.d.ts +1 -2
- package/dist/commands/codex-agent-gate.d.ts.map +1 -1
- package/dist/commands/codex-agent-gate.js +1 -2
- package/dist/commands/codex-agent-gate.js.map +1 -1
- package/dist/commands/codex-deploy-config.d.ts +6 -0
- package/dist/commands/codex-deploy-config.d.ts.map +1 -1
- package/dist/commands/codex-deploy-config.js +28 -8
- package/dist/commands/codex-deploy-config.js.map +1 -1
- package/dist/commands/codex-prove-guards.d.ts +2 -0
- package/dist/commands/codex-prove-guards.d.ts.map +1 -1
- package/dist/commands/codex-prove-guards.js +31 -3
- package/dist/commands/codex-prove-guards.js.map +1 -1
- package/dist/commands/codex-trust-keys.d.ts +2 -0
- package/dist/commands/codex-trust-keys.d.ts.map +1 -1
- package/dist/commands/codex-trust-keys.js +27 -7
- package/dist/commands/codex-trust-keys.js.map +1 -1
- package/dist/commands/coordination.d.ts +16 -0
- package/dist/commands/coordination.d.ts.map +1 -1
- package/dist/commands/coordination.js +24 -2
- package/dist/commands/coordination.js.map +1 -1
- package/dist/commands/create.d.ts +164 -7
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +293 -91
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/doctor.d.ts +17 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +33 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/gh.d.ts +3 -2
- package/dist/commands/gh.d.ts.map +1 -1
- package/dist/commands/gh.js +3 -2
- package/dist/commands/gh.js.map +1 -1
- package/dist/commands/new.d.ts +151 -13
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +486 -62
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/start.d.ts +6 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +105 -17
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/status.d.ts +7 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +21 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-session.d.ts +11 -0
- package/dist/lib/agent-session.d.ts.map +1 -1
- package/dist/lib/agent-session.js +26 -7
- package/dist/lib/agent-session.js.map +1 -1
- package/dist/lib/behavioral-injection.d.ts.map +1 -1
- package/dist/lib/behavioral-injection.js +25 -7
- package/dist/lib/behavioral-injection.js.map +1 -1
- package/dist/lib/catalog-commit.d.ts.map +1 -1
- package/dist/lib/catalog-commit.js +17 -14
- package/dist/lib/catalog-commit.js.map +1 -1
- package/dist/lib/catalog.d.ts +93 -2
- package/dist/lib/catalog.d.ts.map +1 -1
- package/dist/lib/catalog.js +116 -9
- package/dist/lib/catalog.js.map +1 -1
- package/dist/lib/claude.d.ts.map +1 -1
- package/dist/lib/claude.js +28 -4
- package/dist/lib/claude.js.map +1 -1
- package/dist/lib/fleet-data.d.ts +98 -9
- package/dist/lib/fleet-data.d.ts.map +1 -1
- package/dist/lib/fleet-data.js +353 -34
- package/dist/lib/fleet-data.js.map +1 -1
- package/dist/lib/fleet-render.d.ts +8 -1
- package/dist/lib/fleet-render.d.ts.map +1 -1
- package/dist/lib/fleet-render.js +10 -3
- package/dist/lib/fleet-render.js.map +1 -1
- package/dist/lib/gh-remote.d.ts +15 -1
- package/dist/lib/gh-remote.d.ts.map +1 -1
- package/dist/lib/gh-remote.js +27 -2
- package/dist/lib/gh-remote.js.map +1 -1
- package/dist/lib/gh-token-run.d.ts +140 -14
- package/dist/lib/gh-token-run.d.ts.map +1 -1
- package/dist/lib/gh-token-run.js +187 -15
- package/dist/lib/gh-token-run.js.map +1 -1
- package/dist/lib/git-identity.d.ts +6 -2
- package/dist/lib/git-identity.d.ts.map +1 -1
- package/dist/lib/git-identity.js +17 -8
- package/dist/lib/git-identity.js.map +1 -1
- package/dist/lib/git-scrub-env.d.ts +35 -0
- package/dist/lib/git-scrub-env.d.ts.map +1 -0
- package/dist/lib/git-scrub-env.js +54 -0
- package/dist/lib/git-scrub-env.js.map +1 -0
- package/dist/lib/guarded-read.d.ts +15 -0
- package/dist/lib/guarded-read.d.ts.map +1 -0
- package/dist/lib/guarded-read.js +73 -0
- package/dist/lib/guarded-read.js.map +1 -0
- package/dist/lib/machine-setup.d.ts +165 -0
- package/dist/lib/machine-setup.d.ts.map +1 -0
- package/dist/lib/machine-setup.js +441 -0
- package/dist/lib/machine-setup.js.map +1 -0
- package/dist/lib/native-realpath.d.ts +70 -0
- package/dist/lib/native-realpath.d.ts.map +1 -0
- package/dist/lib/native-realpath.js +95 -0
- package/dist/lib/native-realpath.js.map +1 -0
- package/dist/lib/project-config.d.ts +2 -6
- package/dist/lib/project-config.d.ts.map +1 -1
- package/dist/lib/project-config.js.map +1 -1
- package/dist/lib/project-name.d.ts +15 -0
- package/dist/lib/project-name.d.ts.map +1 -0
- package/dist/lib/project-name.js +22 -0
- package/dist/lib/project-name.js.map +1 -0
- package/dist/lib/push-to.d.ts +113 -0
- package/dist/lib/push-to.d.ts.map +1 -0
- package/dist/lib/push-to.js +240 -0
- package/dist/lib/push-to.js.map +1 -0
- package/dist/lib/runtime/claude-gateway-routing.d.ts +161 -0
- package/dist/lib/runtime/claude-gateway-routing.d.ts.map +1 -0
- package/dist/lib/runtime/claude-gateway-routing.js +466 -0
- package/dist/lib/runtime/claude-gateway-routing.js.map +1 -0
- package/dist/lib/runtime/codex-adapter.d.ts +91 -5
- package/dist/lib/runtime/codex-adapter.d.ts.map +1 -1
- package/dist/lib/runtime/codex-adapter.js +204 -44
- package/dist/lib/runtime/codex-adapter.js.map +1 -1
- package/dist/lib/runtime/codex-config.d.ts +6 -12
- package/dist/lib/runtime/codex-config.d.ts.map +1 -1
- package/dist/lib/runtime/codex-config.js +17 -24
- package/dist/lib/runtime/codex-config.js.map +1 -1
- package/dist/lib/runtime/codex-guard-proof.d.ts +4 -7
- package/dist/lib/runtime/codex-guard-proof.d.ts.map +1 -1
- package/dist/lib/runtime/codex-guard-proof.js +16 -14
- package/dist/lib/runtime/codex-guard-proof.js.map +1 -1
- package/dist/lib/runtime/codex-hooks-list.d.ts +20 -0
- package/dist/lib/runtime/codex-hooks-list.d.ts.map +1 -1
- package/dist/lib/runtime/codex-hooks-list.js +20 -8
- package/dist/lib/runtime/codex-hooks-list.js.map +1 -1
- package/dist/lib/runtime/types.d.ts +1 -1
- package/dist/lib/runtime/types.d.ts.map +1 -1
- package/dist/lib/standards.d.ts +3 -0
- package/dist/lib/standards.d.ts.map +1 -1
- package/dist/lib/standards.js +1 -0
- package/dist/lib/standards.js.map +1 -1
- package/dist/lib/team-identity.d.ts.map +1 -1
- package/dist/lib/team-identity.js +18 -53
- package/dist/lib/team-identity.js.map +1 -1
- package/dist/lib/team-restore.d.ts +281 -0
- package/dist/lib/team-restore.d.ts.map +1 -0
- package/dist/lib/team-restore.js +533 -0
- package/dist/lib/team-restore.js.map +1 -0
- package/dist/lib/window-view.d.ts +5 -0
- package/dist/lib/window-view.d.ts.map +1 -1
- package/dist/lib/window-view.js +67 -6
- package/dist/lib/window-view.js.map +1 -1
- package/dist/lib/worktree-sync.d.ts +139 -11
- package/dist/lib/worktree-sync.d.ts.map +1 -1
- package/dist/lib/worktree-sync.js +327 -46
- package/dist/lib/worktree-sync.js.map +1 -1
- package/dist/standards/merge-gates.md +26 -0
- package/package.json +2 -2
package/dist/lib/window-view.js
CHANGED
|
@@ -59,6 +59,11 @@ const LIVENESS_TONE = {
|
|
|
59
59
|
none: 'dim',
|
|
60
60
|
unknown: 'warn',
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* The note for a question left empty because leader state could not be read.
|
|
64
|
+
* `on` and `last` share it, so one cause reads one way on a head.
|
|
65
|
+
*/
|
|
66
|
+
const UNREADABLE_NOTE = 'leader state was not readable, so this is unknown rather than empty';
|
|
62
67
|
/** A snapshot older than this is not a current answer. */
|
|
63
68
|
export const STALE_SNAPSHOT_SECONDS = 90;
|
|
64
69
|
function ageText(seconds) {
|
|
@@ -97,6 +102,12 @@ function problemLines(errors) {
|
|
|
97
102
|
}
|
|
98
103
|
export function toTeamHead(team) {
|
|
99
104
|
const { leader, cost } = team;
|
|
105
|
+
// Whether the leader state was read at all. `getLeaderState()` names the
|
|
106
|
+
// memory it read in `source`, and leaves it null, with an `errors.leaderState`
|
|
107
|
+
// entry, only when no read succeeded. A status of `unknown` is not the same
|
|
108
|
+
// thing: `parseLeaderState()` also returns it for a state it read whose
|
|
109
|
+
// `Async status:` line is missing or still the template placeholder.
|
|
110
|
+
const unread = leader.source === null;
|
|
100
111
|
const fields = [];
|
|
101
112
|
// 1. What is this team trying to achieve. The source is the team's catalog
|
|
102
113
|
// definition rather than its leader state, because a goal kept in the
|
|
@@ -113,10 +124,21 @@ export function toTeamHead(team) {
|
|
|
113
124
|
tone: 'dim',
|
|
114
125
|
note: `add a Goal: line to the team definition for ${team.team}`,
|
|
115
126
|
});
|
|
116
|
-
// 2. What is it doing right now.
|
|
127
|
+
// 2. What is it doing right now. An empty answer says why: either the leader
|
|
128
|
+
// state holds no filled-in `Iteration:` line (none, or a placeholder such
|
|
129
|
+
// as `Iteration: [N]`), or it could not be read at all. The
|
|
130
|
+
// second reuses the wording `last` uses for the same cause, so two fields
|
|
131
|
+
// on one head do not explain one cause two ways.
|
|
117
132
|
fields.push(leader.iteration
|
|
118
133
|
? { label: 'on', value: leader.iteration, tone: 'ok' }
|
|
119
|
-
: {
|
|
134
|
+
: {
|
|
135
|
+
label: 'on',
|
|
136
|
+
value: 'nothing recorded',
|
|
137
|
+
tone: 'dim',
|
|
138
|
+
note: unread
|
|
139
|
+
? UNREADABLE_NOTE
|
|
140
|
+
: `no filled-in Iteration: line in the leader state for ${team.team}`,
|
|
141
|
+
});
|
|
120
142
|
// How long, and what the status is. Age travels with the status everywhere,
|
|
121
143
|
// because `ok` read from a quarter-old memory is not the claim `ok` today is.
|
|
122
144
|
const forParts = [];
|
|
@@ -139,7 +161,27 @@ export function toTeamHead(team) {
|
|
|
139
161
|
waits = { label: 'waits', value: 'another team', tone: 'info' };
|
|
140
162
|
}
|
|
141
163
|
else if (leader.status === 'unknown') {
|
|
142
|
-
waits = {
|
|
164
|
+
waits = {
|
|
165
|
+
label: 'waits',
|
|
166
|
+
value: 'not readable',
|
|
167
|
+
tone: 'warn',
|
|
168
|
+
note: !unread
|
|
169
|
+
? `no filled-in Async status: line in the leader state for ${team.team}`
|
|
170
|
+
: team.errors.leaderState
|
|
171
|
+
? `leader state was not readable: ${team.errors.leaderState}`
|
|
172
|
+
: 'leader state was not readable',
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
else if (leader.status === 'blocked' || leader.status === 'needs-human') {
|
|
176
|
+
// The team asks for the operator and states no decision, so `nothing` would
|
|
177
|
+
// be false: Needs you lists it and its waits field would say nothing waits
|
|
178
|
+
// (#1039). Name the line that is missing instead.
|
|
179
|
+
waits = {
|
|
180
|
+
label: 'waits',
|
|
181
|
+
value: 'no decision stated',
|
|
182
|
+
tone: 'warn',
|
|
183
|
+
note: `no Decision needed: line in the leader state for ${team.team}`,
|
|
184
|
+
};
|
|
143
185
|
}
|
|
144
186
|
else {
|
|
145
187
|
waits = { label: 'waits', value: 'nothing', tone: 'dim' };
|
|
@@ -163,27 +205,46 @@ export function toTeamHead(team) {
|
|
|
163
205
|
label: 'last',
|
|
164
206
|
value: 'none stated',
|
|
165
207
|
tone: 'dim',
|
|
166
|
-
note:
|
|
167
|
-
?
|
|
208
|
+
note: unread
|
|
209
|
+
? UNREADABLE_NOTE
|
|
168
210
|
: 'a report states one; leader state carries it as Last finding:',
|
|
169
211
|
});
|
|
170
212
|
}
|
|
213
|
+
// An unreadable cost names the reason the cost source gave, which
|
|
214
|
+
// `getFleetSnapshot()` already stores as `errors.cost` (`no session logs`,
|
|
215
|
+
// `no worktree`). That wording is the cost source's, not this file's. A
|
|
216
|
+
// missing or empty reason still gets a note, so this branch never returns an
|
|
217
|
+
// empty one.
|
|
171
218
|
fields.push({
|
|
172
219
|
label: 'today',
|
|
173
220
|
value: costText(cost.today, cost.unpricedModel),
|
|
174
221
|
tone: cost.today === null ? 'warn' : 'dim',
|
|
175
|
-
note: cost.
|
|
222
|
+
note: cost.today === null
|
|
223
|
+
? `cost not readable: ${team.errors.cost || 'the cost source gave no reason'}`
|
|
224
|
+
: cost.unpricedModel ? 'includes a model with no pricing row' : undefined,
|
|
176
225
|
});
|
|
177
226
|
fields.push({
|
|
178
227
|
label: 'session',
|
|
179
228
|
value: LIVENESS_TEXT[team.liveness],
|
|
180
229
|
tone: LIVENESS_TONE[team.liveness],
|
|
181
230
|
});
|
|
231
|
+
// The two marks that are not a status say which cause applies. No worktree
|
|
232
|
+
// outranks an unknown status, because `○` is the mark drawn then. A `?` says
|
|
233
|
+
// whether the leader state could not be read, or was read and states no
|
|
234
|
+
// status.
|
|
235
|
+
const markNote = !team.hasWorktree
|
|
236
|
+
? `no worktree for ${team.team} on this machine`
|
|
237
|
+
: leader.status !== 'unknown'
|
|
238
|
+
? undefined
|
|
239
|
+
: unread
|
|
240
|
+
? 'leader state was not readable, so the status is unknown'
|
|
241
|
+
: `no filled-in Async status: line in the leader state for ${team.team}, so the status is unknown`;
|
|
182
242
|
return {
|
|
183
243
|
team: team.team,
|
|
184
244
|
displayName: team.displayName,
|
|
185
245
|
mark: team.hasWorktree ? MARK[leader.status] : '○',
|
|
186
246
|
markTone: team.hasWorktree ? STATUS_TONE[leader.status] : 'dim',
|
|
247
|
+
...(markNote === undefined ? {} : { markNote }),
|
|
187
248
|
needsPerson: needsAttention(team),
|
|
188
249
|
fields,
|
|
189
250
|
provenance: leader.source,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window-view.js","sourceRoot":"","sources":["../../src/lib/window-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQlF,+EAA+E;AAC/E,MAAM,IAAI,GAAgC;IACxC,EAAE,EAAE,GAAG;IACP,aAAa,EAAE,GAAG;IAClB,OAAO,EAAE,GAAG;IACZ,gBAAgB,EAAE,GAAG;IACrB,OAAO,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,WAAW,GAA8B;IAC7C,EAAE,EAAE,IAAI;IACR,aAAa,EAAE,KAAK;IACpB,OAAO,EAAE,KAAK;IACd,gBAAgB,EAAE,MAAM;IACxB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,uEAAuE;AACvE,MAAM,aAAa,GAAoC;IACrD,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE,aAAa;IAC5B,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,aAAa,GAAkC;IACnD,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,MAAM;IACpB,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,MAAM;CAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"window-view.js","sourceRoot":"","sources":["../../src/lib/window-view.ts"],"names":[],"mappings":"AAAA;;;;;;;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AS,KAAK,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;SACzF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -82,6 +82,18 @@ export type SyncOutcome = 'ok'
|
|
|
82
82
|
* the tree was returned to the committed state. The checkpoint ref holds
|
|
83
83
|
* everything. */
|
|
84
84
|
| 'restore-conflict' | 'refused-no-leader-lock' | 'refused-no-quiescence-assertion' | 'refused-sync-lock-held' | 'refused-not-quiescent' | 'refused-invalid-checkpoint-ref' | 'refused-no-origin-remote' | 'refused-detached-head' | 'refused-base-ref-missing' | 'refused-fetch-failed' | 'refused-rebase-in-progress' | 'refused-status-unreadable' | 'refused-squash-point-not-ancestor'
|
|
85
|
+
/** `gh` is not on PATH, so no merged pull request can be looked up (#1131).
|
|
86
|
+
* Never a fallback to a plain rebase. */
|
|
87
|
+
| 'refused-gh-unavailable'
|
|
88
|
+
/** The pull-request lookup could not be completed: origin does not name a
|
|
89
|
+
* github.com owner/repo, `gh` is unauthenticated, the API returned an error
|
|
90
|
+
* (a 404 included, which is never read as "no pull request"), or the
|
|
91
|
+
* response did not parse (#1131). */
|
|
92
|
+
| 'refused-pr-lookup-failed'
|
|
93
|
+
/** `origin/<base>..HEAD` is not empty and no merged pull request accounts for
|
|
94
|
+
* it within the walk cap: unpushed work, or commits in no merged pull
|
|
95
|
+
* request. The refusal names the commits (#1131). */
|
|
96
|
+
| 'refused-unaccounted-commits'
|
|
85
97
|
/** A real merge conflict during the rebase. */
|
|
86
98
|
| 'conflict'
|
|
87
99
|
/** The rebase failed for a reason that is NOT a merge conflict: disk full,
|
|
@@ -113,6 +125,9 @@ export interface ExecResult {
|
|
|
113
125
|
status: number;
|
|
114
126
|
stdout: string;
|
|
115
127
|
stderr: string;
|
|
128
|
+
/** The errno code when the process could not be started at all, for example
|
|
129
|
+
* `ENOENT` when the binary is not on PATH. Absent when the process ran. */
|
|
130
|
+
spawnError?: string;
|
|
116
131
|
}
|
|
117
132
|
export interface ExecOptions {
|
|
118
133
|
cwd?: string;
|
|
@@ -378,21 +393,133 @@ export type LeaderGate = {
|
|
|
378
393
|
* legitimate sync (the fail-open contract in leader-lock.ts).
|
|
379
394
|
*/
|
|
380
395
|
export declare function checkLeaderGate(worktreePath: string, deps?: SyncDeps): LeaderGate;
|
|
381
|
-
/**
|
|
382
|
-
* The last commit of this branch's merged pull request, read from
|
|
383
|
-
* `gh pr view --json commits` rather than guessed. Returns null when there is
|
|
384
|
-
* no merged PR for the branch, when gh is missing or unauthenticated, or when
|
|
385
|
-
* the payload does not parse: every one of those routes to the plain rebase
|
|
386
|
-
* arm, which is correct-but-slower rather than wrong.
|
|
387
|
-
*/
|
|
388
396
|
/** A full 40-character hex object name and nothing else. Anything that fails
|
|
389
|
-
* this never reaches a git command line. */
|
|
397
|
+
* this never reaches a git command line or an API path. */
|
|
390
398
|
export declare const OID_RE: RegExp;
|
|
391
|
-
|
|
399
|
+
/** `owner/repo` as GitHub names it. Checked before it is put into an API path. */
|
|
400
|
+
export declare const REPO_SLUG_RE: RegExp;
|
|
401
|
+
/** The only host the lookup talks to. Pinned on every `gh` call. */
|
|
402
|
+
export declare const GITHUB_HOST = "github.com";
|
|
403
|
+
/**
|
|
404
|
+
* How many first-parent commits of `origin/<base>..HEAD` the lookup walks,
|
|
405
|
+
* newest first, before it gives up. One `gh api` call per commit, so this also
|
|
406
|
+
* caps the calls one sync makes (#1131 plan, Fix 2).
|
|
407
|
+
*/
|
|
408
|
+
export declare const SQUASH_WALK_CAP = 20;
|
|
409
|
+
/**
|
|
410
|
+
* The three ways the squash-point lookup fails. Each is a refusal, and none of
|
|
411
|
+
* them falls back to a plain rebase: a plain rebase after a squash merge
|
|
412
|
+
* replays the merged commits onto the squash and conflicts (#552).
|
|
413
|
+
*/
|
|
414
|
+
export type SquashLookupFailure = 'refused-gh-unavailable' | 'refused-pr-lookup-failed' | 'refused-unaccounted-commits';
|
|
415
|
+
export type SquashPointResult = {
|
|
416
|
+
ok: true;
|
|
417
|
+
/** The merged pull request's last commit. `rebase --onto` replays the
|
|
418
|
+
* commits after it. */
|
|
392
419
|
oid: string;
|
|
393
|
-
|
|
420
|
+
pr: number;
|
|
421
|
+
/** Which lookup found it: by commit (the primary), or by branch name. */
|
|
422
|
+
via: 'commit' | 'branch-name';
|
|
423
|
+
} | {
|
|
424
|
+
ok: false;
|
|
425
|
+
outcome: SquashLookupFailure;
|
|
426
|
+
/** Operator-facing reason. Holds no URL, no token and no raw `gh` output:
|
|
427
|
+
* at most an HTTP status or an exit code. */
|
|
428
|
+
detail: string;
|
|
429
|
+
/** The commits no merged pull request accounted for, newest first. Set
|
|
430
|
+
* only for `refused-unaccounted-commits`. */
|
|
431
|
+
unaccounted: string[];
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* `owner/repo` from an `origin` URL, or null when the URL does not name a
|
|
435
|
+
* repository on github.com.
|
|
436
|
+
*
|
|
437
|
+
* Accepted forms: `https://github.com/o/r(.git)`, `ssh://git@github.com/o/r`,
|
|
438
|
+
* and `git@github.com:o/r.git`. A local path or a `file://` URL returns null,
|
|
439
|
+
* so a fixture origin never reaches the network. Userinfo is matched and
|
|
440
|
+
* dropped, and the URL itself is never printed, because an `https` remote can
|
|
441
|
+
* hold a token in its userinfo.
|
|
442
|
+
*
|
|
443
|
+
* The host check is not in the #1131 plan's wording, which names only the
|
|
444
|
+
* slug shape. Every `gh` call below pins the host as well (`gh api --hostname
|
|
445
|
+
* github.com`, `--repo github.com/<owner>/<repo>`), because without that `gh`
|
|
446
|
+
* uses `GH_HOST` when it is set. With both, a remote on another host refuses
|
|
447
|
+
* here, and `GH_HOST` cannot send the lookup to a repository on another host
|
|
448
|
+
* that shares the owner and name (#1134 security review, INFO).
|
|
449
|
+
*/
|
|
450
|
+
export declare function parseGitHubRepo(url: string): string | null;
|
|
451
|
+
export type RangeResult = {
|
|
452
|
+
ok: true;
|
|
453
|
+
commits: string[];
|
|
454
|
+
} | {
|
|
455
|
+
ok: false;
|
|
456
|
+
detail: string;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* HEAD and its FIRST-PARENT ancestors not on `<baseRef>`, newest first, at most
|
|
460
|
+
* `SQUASH_WALK_CAP + 1` of them. The extra one tells the caller the cap was
|
|
461
|
+
* hit. First-parent only: a commit reached through a merge's second parent is
|
|
462
|
+
* work merged INTO this branch, not this branch's own line of commits.
|
|
463
|
+
*/
|
|
464
|
+
export declare function listFirstParentRange(cwd: string, baseRef: string, deps?: SyncDeps): RangeResult;
|
|
465
|
+
type PullsLookup = {
|
|
466
|
+
kind: 'found';
|
|
467
|
+
pr: number;
|
|
468
|
+
mergedAt: string;
|
|
469
|
+
} | {
|
|
470
|
+
kind: 'none';
|
|
471
|
+
} | {
|
|
472
|
+
kind: 'fail';
|
|
473
|
+
outcome: 'refused-gh-unavailable' | 'refused-pr-lookup-failed';
|
|
474
|
+
detail: string;
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* The merged pull request into `baseBranch` that contains `sha`, from
|
|
478
|
+
* `gh api repos/<repo>/commits/<sha>/pulls`. The API path is ONE argv element.
|
|
479
|
+
*
|
|
480
|
+
* Kept: `merged_at` is a non-empty string AND `base.ref` equals `baseBranch`
|
|
481
|
+
* AND `base.repo.full_name` equals `repo`, case-insensitively. The last check
|
|
482
|
+
* stops a pull request based in another repository of the fork network from
|
|
483
|
+
* being read as pull request N of this one (#1134 security review).
|
|
484
|
+
* When more than one is kept, the latest `merged_at` wins. One page holds 30
|
|
485
|
+
* results, and a commit in more than 30 pull requests is not supported.
|
|
486
|
+
*/
|
|
487
|
+
export declare function lookupPullsForCommit(cwd: string, repo: string, sha: string, baseBranch: string, deps?: SyncDeps): PullsLookup;
|
|
488
|
+
export interface FindSquashPointOptions {
|
|
489
|
+
/** `origin/<baseBranch>` is the range base; `base.ref` must equal this. */
|
|
490
|
+
baseBranch: string;
|
|
491
|
+
/** The local branch, for the branch-name fallback only. */
|
|
492
|
+
branch: string;
|
|
493
|
+
/** `listFirstParentRange` output: non-empty, newest first. */
|
|
494
|
+
commits: readonly string[];
|
|
394
495
|
}
|
|
395
|
-
|
|
496
|
+
/**
|
|
497
|
+
* Find the squash point by COMMIT, not by branch name (#1131).
|
|
498
|
+
*
|
|
499
|
+
* The branch-name lookup misses every team that pushes by refspec under a name
|
|
500
|
+
* other than its local branch: bootstrap pushes `bootstrap/v107-...` from
|
|
501
|
+
* `worktree/bootstrap-20260821`, so `gh pr list --head <local branch>` found
|
|
502
|
+
* only pull requests from 2026-08-25 (#1131 comment 6775471598).
|
|
503
|
+
*
|
|
504
|
+
* Walks `commits` newest first, at most `SQUASH_WALK_CAP`, and stops at the
|
|
505
|
+
* first commit that a pull request merged into `baseBranch` contains. The
|
|
506
|
+
* squash point is that pull request's last commit. The commits walked above it
|
|
507
|
+
* are follow-on work, and `rebase --onto` replays them.
|
|
508
|
+
*
|
|
509
|
+
* Outcomes, each stated once here:
|
|
510
|
+
* - `gh` not on PATH: `refused-gh-unavailable`.
|
|
511
|
+
* - origin is not a github.com `owner/repo`, `gh` unauthenticated, any API
|
|
512
|
+
* error including a 404, a response that does not parse, or a pull request
|
|
513
|
+
* that fails the re-check in `lastCommitOfPr`: `refused-pr-lookup-failed`.
|
|
514
|
+
* A 404 is never read as "no pull request".
|
|
515
|
+
* - No merged pull request within the cap, by commit or by branch name:
|
|
516
|
+
* `refused-unaccounted-commits`, naming the commits walked.
|
|
517
|
+
*
|
|
518
|
+
* A "rebase and merge" pull request lands on the base under NEW SHAs, so a
|
|
519
|
+
* lookup that finds nothing for the local SHAs refuses with
|
|
520
|
+
* `refused-unaccounted-commits`. That refusal is the supported behaviour.
|
|
521
|
+
*/
|
|
522
|
+
export declare function findSquashPoint(cwd: string, options: FindSquashPointOptions, deps?: SyncDeps): SquashPointResult;
|
|
396
523
|
/**
|
|
397
524
|
* True when some multi-step git operation is half-finished in this worktree.
|
|
398
525
|
*
|
|
@@ -436,4 +563,5 @@ export interface RunSyncResult {
|
|
|
436
563
|
* shrink the window rather than pretend it is closed. Do not reorder it.
|
|
437
564
|
*/
|
|
438
565
|
export declare function runWorktreeSyncCore(options: RunSyncOptions): RunSyncResult;
|
|
566
|
+
export {};
|
|
439
567
|
//# sourceMappingURL=worktree-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktree-sync.d.ts","sourceRoot":"","sources":["../../src/lib/worktree-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AA+BH;gFACgF;AAChF,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAEzD;gEACgE;AAChE,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,2KAaf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,qEAAqE;AACrE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,WAAW,GACnB,IAAI;AACN;wCACwC;GACtC,aAAa;AACf;;kBAEkB;GAChB,kBAAkB,GAClB,wBAAwB,GACxB,iCAAiC,GACjC,wBAAwB,GACxB,uBAAuB,GACvB,gCAAgC,GAChC,0BAA0B,GAC1B,uBAAuB,GACvB,0BAA0B,GAC1B,sBAAsB,GACtB,4BAA4B,GAC5B,2BAA2B,GAC3B,mCAAmC;AACrC,+CAA+C;GAC7C,UAAU;AACZ;;;oCAGoC;GAClC,eAAe;AACjB;;sDAEsD;GACpD,gBAAgB,GAChB,OAAO,CAAC;AAEZ,MAAM,WAAW,eAAe;IAC9B,oEAA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