halfcycle 0.4.13 → 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 +4105 -369
- package/bin/pre-tool-use-filter.sh +93 -1
- package/dist/bin.d.ts +1 -0
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +0 -0
- 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 +5192 -2132
- package/dist/cli.js.map +3 -3
- package/dist/close-phase.d.ts +53 -1
- package/dist/close-phase.d.ts.map +1 -1
- package/dist/index.js +1529 -911
- package/dist/index.js.map +3 -3
- package/dist/install-manifest.d.ts +11 -1
- package/dist/install-manifest.d.ts.map +1 -1
- package/dist/install.d.ts +58 -1
- package/dist/install.d.ts.map +1 -1
- package/dist/merge-settings.d.ts +21 -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 +1 -1
- package/dist/system-report.d.ts.map +1 -1
- package/dist/uninstall.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/close-phase.d.ts
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
* SHIPS TO CLIENT DISK inside the CLI: every string here is a sentence a person reads,
|
|
50
50
|
* and no comment sits beside an object member.
|
|
51
51
|
*/
|
|
52
|
-
import { unfinishedStepLine, type AcceptanceOutcome, type ObserveRunResult, type OpenReviewAnswer, type TimeRunResult, type TimeSummary } from '@halfcycle/events';
|
|
52
|
+
import { unfinishedStepLine, type AcceptanceOutcome, type OwnerWaitDeclaration, type ObserveRunResult, type OpenReviewAnswer, type TimeRunResult, type TimeSummary } from '@halfcycle/events';
|
|
53
53
|
import type { RepoCredential } from './open-phase.js';
|
|
54
54
|
/**
|
|
55
55
|
* Whether the commit this phase closed at could be read, and if so the full hash
|
|
@@ -160,6 +160,15 @@ export declare function observeChildEnv(credential: RepoCredential): NodeJS.Proc
|
|
|
160
160
|
* `unreachable` when stdout holds no such line.
|
|
161
161
|
*/
|
|
162
162
|
export declare function readObserveLine(stdout: string): ObserveRunResult;
|
|
163
|
+
/**
|
|
164
|
+
* Run one verb of the runner binary this package ships, as a child process, in the
|
|
165
|
+
* named repository: `node <binary> <args…>`, with `observeChildEnv`. `change done`
|
|
166
|
+
* spawns `observe --change <id>` through it too. Never throws,
|
|
167
|
+
* never prints: a binary that cannot be found (`binary` is the error that said so), a
|
|
168
|
+
* child that cannot start, runs past `OBSERVE_CHILD_DEADLINE_MS` or prints no result
|
|
169
|
+
* line all read `fallback`.
|
|
170
|
+
*/
|
|
171
|
+
export declare function runRunnerChild<T>(binary: string | Error, args: readonly string[], credential: RepoCredential, repoRoot: string, readLine: (stdout: string) => T, fallback: T): Promise<T>;
|
|
163
172
|
/**
|
|
164
173
|
* Send a fresh count through the runner's `observe` verb (`runRunnerChild`). Anything
|
|
165
174
|
* but a result line reads `unreachable`, and the open goes ahead.
|
|
@@ -177,6 +186,21 @@ export declare function readTimeLine(stdout: string): TimeRunResult;
|
|
|
177
186
|
* answers, the open goes ahead; nothing is printed about it.
|
|
178
187
|
*/
|
|
179
188
|
export declare function runTimeChild(binary: string | Error, credential: RepoCredential, repoRoot: string): Promise<TimeRunResult>;
|
|
189
|
+
/**
|
|
190
|
+
* Send whatever this computer still has queued from earlier `prove` runs,
|
|
191
|
+
* through the runner's own `prove --send-queued` — spawned the way `observe`
|
|
192
|
+
* and `time` are, with the same credential. That sub-verb prints nothing and
|
|
193
|
+
* always exits 0, so there is no line to read here: this call is for its SIDE
|
|
194
|
+
* EFFECT alone, and its result is discarded on purpose.
|
|
195
|
+
*
|
|
196
|
+
* Run before the close's own count and open go out, so a check a worker proved
|
|
197
|
+
* just before closing the phase is not left stranded behind the close. Whatever
|
|
198
|
+
* happens — no vendored binary, the child killed at its own deadline, the
|
|
199
|
+
* service unreachable — the close goes ahead unchanged: a run still unsent
|
|
200
|
+
* stays queued for the next `prove` or close on this computer, exactly as
|
|
201
|
+
* `prove` itself leaves it.
|
|
202
|
+
*/
|
|
203
|
+
export declare function runProveQueueChild(binary: string | Error, credential: RepoCredential, repoRoot: string): Promise<void>;
|
|
180
204
|
/**
|
|
181
205
|
* A close step refused on this machine, before anything was sent: the request failed
|
|
182
206
|
* the shared request schema. The CLI prints the message and exits as a usage error.
|
|
@@ -320,4 +344,32 @@ export declare function readCloseTimeSummary(credential: RepoCredential, phase:
|
|
|
320
344
|
* alone rather than a missing word.
|
|
321
345
|
*/
|
|
322
346
|
export declare function timeTotalsLines(summary: TimeSummary | null): string[];
|
|
347
|
+
/**
|
|
348
|
+
* The address of a phase's declarations, this cycle only: `close-phase`'s own read
|
|
349
|
+
* (`fixed-list-and-one-sitting`, Component design, *Control*), the engagement
|
|
350
|
+
* credential's.
|
|
351
|
+
*/
|
|
352
|
+
export declare function closeOwnerWaitDeclarationsUrl(credential: RepoCredential, phase: string): string;
|
|
353
|
+
/**
|
|
354
|
+
* Read the declarations made in this phase's current cycle. Never throws: anything
|
|
355
|
+
* that is not a 200 with a body `ownerWaitDeclarationsSchema` accepts — unreachable, a
|
|
356
|
+
* bad status, a body this CLI cannot read — is `null`, which `ownerWaitCloseLines`
|
|
357
|
+
* reads as a failed read (its own sentence), never as "none were made".
|
|
358
|
+
*/
|
|
359
|
+
export declare function readCloseOwnerWaitDeclarations(credential: RepoCredential, phase: string): Promise<readonly OwnerWaitDeclaration[] | null>;
|
|
360
|
+
/**
|
|
361
|
+
* One line per declaration made in the phase, oldest first, after the time totals
|
|
362
|
+
* (`fixed-list-and-one-sitting` AC3's *At close*): `Waited for you: {item} — the agent
|
|
363
|
+
* asked: "{question}"`. A read that failed prints the one sentence that says so and
|
|
364
|
+
* stops there; with no declarations, and nothing failed, this prints nothing — a close
|
|
365
|
+
* with none of them carries on silently, exactly as the spec says.
|
|
366
|
+
*/
|
|
367
|
+
export declare function ownerWaitCloseLines(declarations: readonly OwnerWaitDeclaration[] | null): string[];
|
|
368
|
+
/**
|
|
369
|
+
* C6, printed once the review has opened, only when it lists one or more calls — the
|
|
370
|
+
* phase's work read (`phase-work.ts`'s `readPhaseWork`) is the one count, never
|
|
371
|
+
* recomputed here. A failed read of it prints nothing: `bin.ts`'s caller never prints
|
|
372
|
+
* this line at all rather than guess at a count it could not read.
|
|
373
|
+
*/
|
|
374
|
+
export declare function callsListedLine(n: number): string;
|
|
323
375
|
//# sourceMappingURL=close-phase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close-phase.d.ts","sourceRoot":"","sources":["../src/close-phase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAGH,OAAO,
|
|
1
|
+
{"version":3,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