halfcycle 0.4.12 → 0.4.14
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/.claude-plugin/plugin.json +1 -1
- package/bin/bin.bundle.mjs +9366 -567
- package/bin/pre-tool-use-filter.sh +470 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.d.ts.map +1 -1
- package/dist/build-record/pair-io.d.ts +49 -0
- package/dist/build-record/pair-io.d.ts.map +1 -0
- package/dist/build-record/render-change.d.ts +25 -0
- package/dist/build-record/render-change.d.ts.map +1 -0
- package/dist/build-record/render-v2.d.ts +10 -5
- package/dist/build-record/render-v2.d.ts.map +1 -1
- package/dist/build-record/write-change.d.ts +63 -0
- package/dist/build-record/write-change.d.ts.map +1 -0
- package/dist/build-record/write.d.ts +5 -15
- package/dist/build-record/write.d.ts.map +1 -1
- package/dist/change.d.ts +136 -0
- package/dist/change.d.ts.map +1 -0
- package/dist/check-tasks.d.ts +71 -0
- package/dist/check-tasks.d.ts.map +1 -0
- package/dist/claude-plan.d.ts +114 -0
- package/dist/claude-plan.d.ts.map +1 -0
- package/dist/cli-contract.d.ts +12 -1
- package/dist/cli-contract.d.ts.map +1 -1
- package/dist/cli.js +9017 -5228
- package/dist/cli.js.map +3 -3
- package/dist/close-phase.d.ts +113 -10
- package/dist/close-phase.d.ts.map +1 -1
- package/dist/halfcycle-monorepo.d.ts +26 -0
- package/dist/halfcycle-monorepo.d.ts.map +1 -0
- package/dist/index.js +1617 -845
- package/dist/index.js.map +3 -3
- package/dist/install-manifest.d.ts +18 -1
- package/dist/install-manifest.d.ts.map +1 -1
- package/dist/install.d.ts +225 -3
- package/dist/install.d.ts.map +1 -1
- package/dist/merge-settings.d.ts +25 -2
- package/dist/merge-settings.d.ts.map +1 -1
- package/dist/open-phase.d.ts +1 -1
- package/dist/open-phase.d.ts.map +1 -1
- package/dist/pace.d.ts +138 -0
- package/dist/pace.d.ts.map +1 -0
- package/dist/phase-work.d.ts +37 -0
- package/dist/phase-work.d.ts.map +1 -0
- package/dist/plan.d.ts +5 -2
- package/dist/plan.d.ts.map +1 -1
- package/dist/prove.d.ts +77 -0
- package/dist/prove.d.ts.map +1 -0
- package/dist/review.d.ts +19 -1
- package/dist/review.d.ts.map +1 -1
- package/dist/system-report.d.ts +4 -4
- package/dist/system-report.d.ts.map +1 -1
- package/dist/uninstall.d.ts +4 -1
- package/dist/uninstall.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading one phase's work record from the client (`two-stage-review` AC6;
|
|
3
|
+
* `calls-made-without-asking` AC4; `harness-proven-tests` AC7; safe-lean-fast E23,
|
|
4
|
+
* T-40).
|
|
5
|
+
*
|
|
6
|
+
* ONE READ, TWO CALLERS. `close-phase` reads it once more, after its own open, to say
|
|
7
|
+
* how many calls the review now lists (C6, `close-phase.ts`); `review --show` reads it
|
|
8
|
+
* to print the calls and the checks nobody ran (C1–C5, P12–P13, `review.ts`). This
|
|
9
|
+
* module only fetches and parses `GET …/phases/:phase/work` (the engagement
|
|
10
|
+
* credential; the route's shape is `phaseWorkSchema`'s); the sentences
|
|
11
|
+
* belong to each caller (`work-record.ts`'s own docblock: "each surface owns its own
|
|
12
|
+
* lines"), never to this one.
|
|
13
|
+
*
|
|
14
|
+
* INV-001: this file imports the global `fetch`, Node builtins and `@halfcycle/events`
|
|
15
|
+
* only. SHIPS TO CLIENT DISK inside the CLI.
|
|
16
|
+
*/
|
|
17
|
+
import { type PhaseWork } from '@halfcycle/events';
|
|
18
|
+
import type { RepoCredential } from './open-phase.js';
|
|
19
|
+
/** What reading one phase's work came to. */
|
|
20
|
+
export type PhaseWorkRead = {
|
|
21
|
+
kind: 'work';
|
|
22
|
+
work: PhaseWork;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'not-signed-in';
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'unreachable';
|
|
27
|
+
};
|
|
28
|
+
/** The address of one phase's work: the engagement credential's own read. */
|
|
29
|
+
export declare function phaseWorkUrl(credential: RepoCredential, phase: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Read one phase's work. Never throws. A body that parses under `phaseWorkSchema` on a
|
|
32
|
+
* 200 is the work; a 401 is not signed in; anything else (no answer, another status, a
|
|
33
|
+
* body this version of the CLI cannot read) is `unreachable`, the same best-effort
|
|
34
|
+
* shape `review.ts`'s `readReview` already gives its own read.
|
|
35
|
+
*/
|
|
36
|
+
export declare function readPhaseWork(credential: RepoCredential, phase: string): Promise<PhaseWorkRead>;
|
|
37
|
+
//# sourceMappingURL=phase-work.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phase-work.d.ts","sourceRoot":"","sources":["../src/phase-work.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AAI5B,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAK9E;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAsBrG"}
|
package/dist/plan.d.ts
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
* reads, so none names an internal register, route or setting; no comment sits beside
|
|
62
62
|
* an object member.
|
|
63
63
|
*/
|
|
64
|
-
import { type CarriedFromEntry, type PhasePlan, type PhasePlanChange, type PhasePlanProblem, type PlannedScopeState, type RemovalOwedPart, type SystemDescription } from '@halfcycle/events';
|
|
64
|
+
import { type CarriedFromEntry, type PhasePlan, type PhasePlanChange, type PhasePlanProblem, type PlannedScopeState, type PlanMovedUp, type RemovalOwedPart, type SystemDescription } from '@halfcycle/events';
|
|
65
65
|
import { type ShownPlanEntry } from '@halfcycle/core';
|
|
66
66
|
import type { RepoCredential } from './open-phase.js';
|
|
67
67
|
import { type DescriptionVerb, type SystemDeps, type SystemRun } from './system-report.js';
|
|
@@ -131,6 +131,7 @@ export type PlanOutcome = {
|
|
|
131
131
|
changedParts: readonly string[];
|
|
132
132
|
typedApprovalOffered: boolean;
|
|
133
133
|
carriedFrom?: readonly CarriedFromEntry[];
|
|
134
|
+
movedUp?: PlanMovedUp;
|
|
134
135
|
} | {
|
|
135
136
|
kind: 'refused';
|
|
136
137
|
problems: PhasePlanProblem[];
|
|
@@ -190,7 +191,7 @@ export declare function planRefusedLines(verb: DescriptionVerb, phase: string, p
|
|
|
190
191
|
* The line for a phase name `isValidPhaseIdentity` refuses, prefixed by the verb that
|
|
191
192
|
* is running. Nothing has been sent when it is printed.
|
|
192
193
|
*/
|
|
193
|
-
export declare function notAPhaseNameLine(verb: DescriptionVerb | 'review', phase: string): string;
|
|
194
|
+
export declare function notAPhaseNameLine(verb: DescriptionVerb | 'review' | 'pace', phase: string): string;
|
|
194
195
|
/**
|
|
195
196
|
* CL11 — one line per part `docs/system.json` must lose before a new plan is taken
|
|
196
197
|
* (`close-review-and-carry-drop` AC7), prefixed by the verb that is running. Names the
|
|
@@ -214,6 +215,8 @@ export interface PlanDeps extends SystemDeps {
|
|
|
214
215
|
readonly recordShown: (engagementId: string, entry: ShownPlanEntry) => ShownWrite;
|
|
215
216
|
readonly now: () => Date;
|
|
216
217
|
}
|
|
218
|
+
/** A plan's move up to a full phase: its sentence, then what to say next. */
|
|
219
|
+
export declare function movedUpLines(movedUp: PlanMovedUp): string;
|
|
217
220
|
/** The sentence for the phase's state after the plan was recorded. */
|
|
218
221
|
export declare function planStateSentence(state: PlannedScopeState): string;
|
|
219
222
|
/**
|
package/dist/plan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../src/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAIH,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAoC,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../src/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAIH,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAoC,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAE5B,kFAAkF;AAClF,eAAO,MAAM,UAAU,+DAA+D,CAAC;AAEvF,yEAAyE;AACzE,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,WA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ACf,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,WAAW,GAAE,SAAS,gBAAgB,EAAO,GAC5C,MAAM,CAgBR;AAED;;;;;GAKG;AACH,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,SAAS,CAAC,CAwFpB"}
|
package/dist/prove.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `npx halfcycle@latest prove <phase> <task> --label "<label>" --before -- <test command>`
|
|
3
|
+
* (feature `harness-proven-tests` AC1, the BUNDLE half).
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE DOES NOT CHECK A SINGLE WORD OF THE INVOCATION. Every rule about the
|
|
6
|
+
* words after `prove` — the phase/task or `--change <id>`, `--label`,
|
|
7
|
+
* `--before`/`--after`, `--reason`, the test command itself, the before-action
|
|
8
|
+
* check on that command, the git reads, the counting, the local queue and the
|
|
9
|
+
* send to the control service — belongs to the runner's own `prove` verb
|
|
10
|
+
* (`packages/runner/src/prove.ts`), which this package ships but never imports
|
|
11
|
+
* (INV-001: a bundled binary, reached only as a child process). This module's
|
|
12
|
+
* whole job is the three things only the CLI that is actually ON the person's
|
|
13
|
+
* machine can do:
|
|
14
|
+
*
|
|
15
|
+
* 1. find the vendored runner binary this package shipped
|
|
16
|
+
* (`resolveVendoredBinary`, the way `close-phase` finds it for `observe`
|
|
17
|
+
* and `time`);
|
|
18
|
+
* 2. give the child this project's credential under the names the runner's
|
|
19
|
+
* configuration reader takes it from (`observeChildEnv`, close-phase.ts),
|
|
20
|
+
* so it counts and sends for the same project `close-phase` opens and
|
|
21
|
+
* closes against;
|
|
22
|
+
* 3. pass the child's output — the test command's own stdout and stderr, and
|
|
23
|
+
* the runner's one line about what it did — straight through AS IT COMES,
|
|
24
|
+
* never captured and reprinted, so a long test suite's progress is seen
|
|
25
|
+
* while it runs.
|
|
26
|
+
*
|
|
27
|
+
* `--repo <root>` is this CLI's own convention (every other verb takes it the
|
|
28
|
+
* same way), read and removed from the words BEFORE the `--` that starts the
|
|
29
|
+
* test command — a word spelled `--repo` after that point belongs to the
|
|
30
|
+
* command being proven, not to this CLI, and must never be touched.
|
|
31
|
+
*
|
|
32
|
+
* SHIPS TO CLIENT DISK (INV-001: Node builtins and this package's own modules
|
|
33
|
+
* only — no `@halfcycle/events`, no `fetch`, nothing of the runner's imported).
|
|
34
|
+
* No comment here sits beside an object member.
|
|
35
|
+
*/
|
|
36
|
+
import { Buffer } from 'node:buffer';
|
|
37
|
+
import type { RepoCredential } from './open-phase.js';
|
|
38
|
+
/** The usage lines, printed for a word the runner itself could not read. */
|
|
39
|
+
export declare const PROVE_USAGE: string;
|
|
40
|
+
/**
|
|
41
|
+
* This CLI's own `--repo <root>`, pulled out of the words before the `--` that
|
|
42
|
+
* starts the test command, and the remainder — unchanged, in the order given —
|
|
43
|
+
* to hand the runner's own `prove` verb.
|
|
44
|
+
*
|
|
45
|
+
* Only the part BEFORE the first bare `--` is searched: the words after it are
|
|
46
|
+
* the test command, as the person wrote it, and a command that happens to
|
|
47
|
+
* contain the word `--repo` (as one of its own arguments) must reach the
|
|
48
|
+
* runner exactly as typed.
|
|
49
|
+
*/
|
|
50
|
+
export declare function splitProveInvocation(words: readonly string[]): {
|
|
51
|
+
readonly repoRoot: string | undefined;
|
|
52
|
+
readonly forwarded: readonly string[];
|
|
53
|
+
};
|
|
54
|
+
/** Something a child's output stream can be written to, as `process.stdout` is. */
|
|
55
|
+
export interface ProveChildOutput {
|
|
56
|
+
write(chunk: string | Buffer): unknown;
|
|
57
|
+
}
|
|
58
|
+
/** The seams a test replaces. Production passes neither, and gets the real streams. */
|
|
59
|
+
export interface ProveChildDeps {
|
|
60
|
+
readonly stdout?: ProveChildOutput;
|
|
61
|
+
readonly stderr?: ProveChildOutput;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Spawn the runner binary this package shipped, as `node <binary> prove <words…>`,
|
|
65
|
+
* in `repoRoot`, with the credential under the runner's own environment names
|
|
66
|
+
* (`observeChildEnv`). Every chunk the child writes to its own stdout or stderr
|
|
67
|
+
* is written to `deps.stdout`/`deps.stderr` the moment it arrives — nothing is
|
|
68
|
+
* buffered here — so output streams through live exactly as the real `prove`
|
|
69
|
+
* binary would show it directly.
|
|
70
|
+
*
|
|
71
|
+
* Resolves to the child's own exit code: 0 when the command the runner ran did
|
|
72
|
+
* (whatever it did), 2 when the runner's before-action check refused the
|
|
73
|
+
* command before anything ran, 1 when the child could not be started or ended
|
|
74
|
+
* with no code (killed by a signal).
|
|
75
|
+
*/
|
|
76
|
+
export declare function runProveChild(binary: string, credential: RepoCredential, repoRoot: string, words: readonly string[], deps?: ProveChildDeps): Promise<number>;
|
|
77
|
+
//# sourceMappingURL=prove.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prove.d.ts","sourceRoot":"","sources":["../src/prove.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,4EAA4E;AAC5E,eAAO,MAAM,WAAW,QAGmF,CAAC;AAE5G;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAelF;AAED,mFAAmF;AACnF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACxC;AAED,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;CACpC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,IAAI,GAAE,cAAmB,GACxB,OAAO,CAAC,MAAM,CAAC,CA2BjB"}
|
package/dist/review.d.ts
CHANGED
|
@@ -50,8 +50,9 @@
|
|
|
50
50
|
* an object member.
|
|
51
51
|
*/
|
|
52
52
|
import { type ShownReviewEntry } from '@halfcycle/core';
|
|
53
|
-
import { type PhaseReviewView, type ReviewViewPart } from '@halfcycle/events';
|
|
53
|
+
import { type PhaseReviewView, type ReviewViewPart, type PhaseWork } from '@halfcycle/events';
|
|
54
54
|
import type { RepoCredential } from './open-phase.js';
|
|
55
|
+
import type { PhaseWorkRead } from './phase-work.js';
|
|
55
56
|
import type { SystemRun } from './system-report.js';
|
|
56
57
|
/** The usage line, printed for no phase, an extra argument, an unknown flag, or neither mode. */
|
|
57
58
|
export declare const REVIEW_USAGE = "npx halfcycle@latest review <phase> (--show | --answer <part> \"<answer>\") [--repo <root>]";
|
|
@@ -99,6 +100,22 @@ export declare function partStatus(part: ReviewViewPart, round: number): string;
|
|
|
99
100
|
* count, RV1b one line each, then per part RV2–RV6 with RV4a and RV4b, then RV7.
|
|
100
101
|
*/
|
|
101
102
|
export declare function reviewListingLines(view: ReviewedView): string[];
|
|
103
|
+
/** C1, the heading. */
|
|
104
|
+
export declare const CALLS_HEADING = "Calls made without asking you";
|
|
105
|
+
/** C2, straight under C1. Never left out where a call is listed (C3). */
|
|
106
|
+
export declare const CALLS_SUBHEADING: string;
|
|
107
|
+
/** C5, printed in place of a list with nothing in it. */
|
|
108
|
+
export declare const NO_CALLS_LINE = "No agent recorded a call made without asking in this phase.";
|
|
109
|
+
/** P12, the heading. */
|
|
110
|
+
export declare const CHECKS_HEADING = "Checks nobody ran";
|
|
111
|
+
/** P13, straight under P12. */
|
|
112
|
+
export declare const CHECKS_SUBHEADING = "An agent says these pass and Halfcycle never ran them. Accept or reject each one before this phase can close.";
|
|
113
|
+
/**
|
|
114
|
+
* The work section `review --show` prints after the parts: C1–C5, then P12, P13 and
|
|
115
|
+
* each unchecked claim (T-40). `null` when the phase's work could not be read — a
|
|
116
|
+
* best-effort section, never a reason to fail the rest of the listing.
|
|
117
|
+
*/
|
|
118
|
+
export declare function workSectionLines(work: PhaseWork | null, engagementId: string): string[];
|
|
102
119
|
/** RV8: the refusal for a view with no open review, by its state. */
|
|
103
120
|
export declare function rv8Line(view: NoReviewView | Extract<PhaseReviewView, {
|
|
104
121
|
state: 'closed';
|
|
@@ -182,6 +199,7 @@ export declare function sendReviewAnswer(credential: RepoCredential, phase: stri
|
|
|
182
199
|
export interface ReviewDeps {
|
|
183
200
|
readonly readCredential: (repoRoot: string) => RepoCredential;
|
|
184
201
|
readonly readReview: (credential: RepoCredential, phase: string) => Promise<ReviewRead>;
|
|
202
|
+
readonly readWork: (credential: RepoCredential, phase: string) => Promise<PhaseWorkRead>;
|
|
185
203
|
readonly sendAnswer: (credential: RepoCredential, phase: string, body: {
|
|
186
204
|
part: string;
|
|
187
205
|
answer: string;
|
package/dist/review.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;IAAC,KAAK,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/B;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAKrE;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;CAAE,CAAC,CAsBlE"}
|
package/dist/system-report.d.ts
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
* reads, so none names an internal register, route or setting; no comment sits
|
|
31
31
|
* beside an object member.
|
|
32
32
|
*/
|
|
33
|
-
import { type SystemDescription, type SystemDescriptionProblem } from '@halfcycle/events';
|
|
33
|
+
import { SYSTEM_DESCRIPTION_REL, type SystemDescription, type SystemDescriptionProblem } from '@halfcycle/events';
|
|
34
34
|
import type { RepoCredential } from './open-phase.js';
|
|
35
|
-
/** Where the description lives, relative to the repository root. */
|
|
36
|
-
export
|
|
35
|
+
/** Where the description lives, relative to the repository root (its one home is `@halfcycle/events`). */
|
|
36
|
+
export { SYSTEM_DESCRIPTION_REL };
|
|
37
37
|
/**
|
|
38
38
|
* What reading `docs/system.json` came to. `missing`: there is no such file.
|
|
39
39
|
* `unreadable`: something is there and could not be read as a file. `not-json`: it
|
|
@@ -157,7 +157,7 @@ export type DescriptionStage = {
|
|
|
157
157
|
unchanged?: boolean;
|
|
158
158
|
};
|
|
159
159
|
/** The verbs that report the description first. Names the prefix of every line. */
|
|
160
|
-
export type DescriptionVerb = 'system' | 'draw' | 'plan';
|
|
160
|
+
export type DescriptionVerb = 'system' | 'draw' | 'plan' | 'change';
|
|
161
161
|
/**
|
|
162
162
|
* A verb's own local refusal, asked with the description that just passed the check:
|
|
163
163
|
* the line to print, or `null` to go on. `plan` checks its plan file against that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-report.d.ts","sourceRoot":"","sources":["../src/system-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAKH,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"system-report.d.ts","sourceRoot":"","sources":["../src/system-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAKH,OAAO,EAIL,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,0GAA0G;AAC1G,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GACtB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAErC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAarE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAoB/D;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO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ACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC,EACxC,IAAI,EAAE,eAAe,GACpB,cAAc,CAWhB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,UAAU,GAAE,UAAuB,GAClC,OAAO,CAAC,gBAAgB,CAAC,CAgE3B;AAED;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAqBtF"}
|
package/dist/uninstall.d.ts
CHANGED
|
@@ -107,7 +107,10 @@ export declare function parseUninstallArgs(args: readonly string[]): {
|
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Run the uninstall. Never throws for a condition the spec names: a refusal comes
|
|
110
|
-
* back as `outcome: 'refused'` with nothing changed.
|
|
110
|
+
* back as `outcome: 'refused'` with nothing changed. In the Halfcycle monorepo itself
|
|
111
|
+
* (`isHalfcycleMonorepo`), this narrows to `uninstallSelfBuild` — the write set is
|
|
112
|
+
* `SELF_BUILD_WRITE_SET`, never the ordinary closed write set (`self-build-install`
|
|
113
|
+
* AC8, Component design).
|
|
111
114
|
*/
|
|
112
115
|
export declare function uninstall(options: UninstallOptions): UninstallResult;
|
|
113
116
|
/** The report, as the CLI prints it: stdout for a finished run, stderr for a refusal. */
|
package/dist/uninstall.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../src/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../src/u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