halfcycle 0.7.1 → 0.8.1
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 +1628 -637
- package/dist/bin.d.ts +5 -0
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +0 -0
- package/dist/cli-contract.d.ts +1 -1
- package/dist/cli-contract.d.ts.map +1 -1
- package/dist/cli.js +769 -378
- package/dist/cli.js.map +3 -3
- package/dist/close-phase.d.ts +5 -0
- package/dist/close-phase.d.ts.map +1 -1
- package/dist/doctor.d.ts +9 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +2 -2
- package/dist/install.d.ts.map +1 -1
- package/dist/pace.d.ts +4 -2
- package/dist/pace.d.ts.map +1 -1
- package/dist/request-shapes-verb.d.ts +36 -0
- package/dist/request-shapes-verb.d.ts.map +1 -0
- package/dist/request-shapes.d.ts +25 -0
- package/dist/request-shapes.d.ts.map +1 -0
- package/dist/route.d.ts +19 -18
- package/dist/route.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/close-phase.d.ts
CHANGED
|
@@ -184,6 +184,11 @@ export declare function readTimeLine(stdout: string): TimeRunResult;
|
|
|
184
184
|
* runner's `time` verb (feature `time-and-usage-record` AC4, the unthrottled sender),
|
|
185
185
|
* spawned the way `observe` is and with the same credential. Whatever the child
|
|
186
186
|
* answers, the open goes ahead; nothing is printed about it.
|
|
187
|
+
*
|
|
188
|
+
* It is the CLOSING send, so it passes `--final` (`time-and-usage-record` AC5): only
|
|
189
|
+
* this send settles a builder's held tokens on a task by the closing rules, and what it
|
|
190
|
+
* settles stays settled even if the close is then refused. `pace` and the turn-end send
|
|
191
|
+
* never pass it.
|
|
187
192
|
*/
|
|
188
193
|
export declare function runTimeChild(binary: string | Error, credential: RepoCredential, repoRoot: string): Promise<TimeRunResult>;
|
|
189
194
|
/**
|
|
@@ -1 +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AAI,CAI1G;AAID;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5F;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAU/F;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,IAAI,CAAC,EAAE,MAAM,GACZ,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAWnE;AAOD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,GAAG,IAAI,EACtB,QAAQ,EAAE,aAAa,GAAG,IAAI,EAC9B,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GACxE,MAAM,EAAE,CAeV"}
|
package/dist/doctor.d.ts
CHANGED
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
* the five: it never counts toward the closing count or the exit status, and no
|
|
22
22
|
* Claude Code line changes because of it (`codexLine`, below).
|
|
23
23
|
*
|
|
24
|
+
* AND A LINE ABOUT REPORTS, PRINTED AFTER THOSE (`checks-status-agrees` AC4), when the
|
|
25
|
+
* connection verb's answer says this machine has not reported. It comes from the one
|
|
26
|
+
* request the verb already makes, and like the Codex line it is not one of the five, so
|
|
27
|
+
* it never counts and the exit status stays as they leave it. It does change the closing
|
|
28
|
+
* line when nothing failed: "Checks running: yes" says the wrapper starts, not that the
|
|
29
|
+
* checks have spoken, so all-is-well is never said beside it (INV-021). `doctor` cannot
|
|
30
|
+
* tell a Claude Code folder never trusted from one with no edit yet, which is why the
|
|
31
|
+
* line carries its advice as a condition.
|
|
32
|
+
*
|
|
24
33
|
* INV-001: Node builtins, `@halfcycle/core`, `@halfcycle/events` and this package's own
|
|
25
34
|
* modules only.
|
|
26
35
|
*/
|
package/dist/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AA6BH,2GAA2G;AAC3G,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;CACpC;AAED,iGAAiG;AACjG,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;CAC1B;AAuCD,8CAA8C;AAC9C,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,CAiD5E"}
|
package/dist/index.js
CHANGED
|
@@ -512,6 +512,9 @@ var WORKER_REPORT_LINES = Object.freeze({
|
|
|
512
512
|
clear: () => "The report is complete and names the commit it is about."
|
|
513
513
|
});
|
|
514
514
|
|
|
515
|
+
// ../core/dist/request-shape.js
|
|
516
|
+
var REQUEST_SHAPE_MAX_LINE_BYTES = 16 * 1024;
|
|
517
|
+
|
|
515
518
|
// ../events/dist/result.js
|
|
516
519
|
import { z as z3 } from "zod";
|
|
517
520
|
var firedGuardSchema = z3.object({
|
|
@@ -6042,7 +6045,8 @@ ${GENERATED_USER_PROMPT_SCOPE_HEADER} the Halfcycle installer, now also for the
|
|
|
6042
6045
|
# <phase>/<part>", "question <phase>/<part>: <words>", "carry <phase>/<part>:
|
|
6043
6046
|
# <words>", "drop <phase>/<part>: <words>", "reject <phase>/<task>: <words>",
|
|
6044
6047
|
# "autonomy on" or "autonomy off". Also lets the person who is typing let one
|
|
6045
|
-
# step Halfcycle paused run once, by typing "allow"
|
|
6048
|
+
# step Halfcycle paused run once, by typing "allow", or "allow" and the step's
|
|
6049
|
+
# number ("allow 2"), as the whole prompt, and change
|
|
6046
6050
|
# how a build is paced, by typing "faster", "run 5 agents", "keep 30% free" or
|
|
6047
6051
|
# "use up to 70%" as the whole prompt, and answer a phase's usage limit by
|
|
6048
6052
|
# typing "keep going", "stop", "limit it to 1.5 times" or "limit it to 300
|
|
@@ -6052,7 +6056,8 @@ ${GENERATED_USER_PROMPT_SCOPE_HEADER} the Halfcycle installer, now also for the
|
|
|
6052
6056
|
# looks only at the start of the prompt's value. Unless the prompt begins, after
|
|
6053
6057
|
# any whitespace (typed, or escaped in the input), with "approve ", "send back ",
|
|
6054
6058
|
# "accept ", "question ", "carry ", "drop ", "reject " or "autonomy ", in any case,
|
|
6055
|
-
# or is "allow",
|
|
6059
|
+
# or is "allow" (alone, or with spaces and a number of up to four digits), one
|
|
6060
|
+
# of the five pacing phrases or one of the usage-limit phrases
|
|
6056
6061
|
# and nothing else but whitespace,
|
|
6057
6062
|
# it exits 0 with no output, and Node never starts. A quote inside any other field arrives
|
|
6058
6063
|
# escaped, so no other field (the folder the session is in, for one) can read as
|
|
@@ -6080,7 +6085,7 @@ IFS= read -r -d '' HC_INPUT || true
|
|
|
6080
6085
|
# \\u escape, or as the UTF-8 bytes of a Unicode space. Compared byte for byte.
|
|
6081
6086
|
HC_LEAD='[[:space:]]|\\\\[nrtf]|\\\\u(000[9a-d]|0020|00a0|1680|200[0-9a]|202[89f]|205f|3000|feff)'
|
|
6082
6087
|
HC_LEAD="$HC_LEAD|"$'\\xc2\\xa0|\\xe1\\x9a\\x80|\\xe2\\x80[\\x80-\\x8a\\xa8\\xa9\\xaf]|\\xe2\\x81\\x9f|\\xe3\\x80\\x80|\\xef\\xbb\\xbf'
|
|
6083
|
-
if ! printf '%s' "$HC_INPUT" | LC_ALL=C grep -Eiq "\\"prompt\\"[[:space:]]*:[[:space:]]*\\"($HC_LEAD)*((approve|send back|accept|question|carry|drop|reject|autonomy|decline) |allow($HC_LEAD)*\\"|(faster|go faster|run [0-9]{1,3} agents?|keep [0-9]{1,3}% free|use up to [0-9]{1,3}%|keep going|stop|stop here|limit it to [0-9]{1,9}(\\.[0-9]{1,2})? (times|million|billion|million tokens|billion tokens))($HC_LEAD)*\\")"; then
|
|
6088
|
+
if ! printf '%s' "$HC_INPUT" | LC_ALL=C grep -Eiq "\\"prompt\\"[[:space:]]*:[[:space:]]*\\"($HC_LEAD)*((approve|send back|accept|question|carry|drop|reject|autonomy|decline) |allow( +[0-9]{1,4})?($HC_LEAD)*\\"|(faster|go faster|run [0-9]{1,3} agents?|keep [0-9]{1,3}% free|use up to [0-9]{1,3}%|keep going|stop|stop here|limit it to [0-9]{1,9}(\\.[0-9]{1,2})? (times|million|billion|million tokens|billion tokens))($HC_LEAD)*\\")"; then
|
|
6084
6089
|
exit 0
|
|
6085
6090
|
fi
|
|
6086
6091
|
|