@outerlayer/cli 0.34.0-next.20261026145838 → 0.34.0-next.20261026182624
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/README.md +6 -0
- package/dist/{agent-setup-FNDKCPUP.js → agent-setup-WOEZELVB.js} +6 -6
- package/dist/{bridge-YJBB4YA3.js → bridge-F5FBQSPZ.js} +2 -2
- package/dist/{build-ZJK6CPNH.js → build-UDOBVX5J.js} +7 -7
- package/dist/{build-disk-7HS4UF7O.js → build-disk-C3WIAHCL.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-MHZKDI4H.js → builder-YNXWVH2V.js} +5 -5
- package/dist/{check-4W4QUBMP.js → check-G2K76NEM.js} +39 -38
- package/dist/{chunk-2ILU7UAU.js → chunk-3VZTNXK5.js} +1 -1
- package/dist/{chunk-4YFMNF5Y.js → chunk-4J2FF5HZ.js} +3 -3
- package/dist/{chunk-CAQCDYKF.js → chunk-5JGPTYLT.js} +2 -2
- package/dist/chunk-6D7H5DMZ.js +152 -0
- package/dist/{chunk-OGPEHSNW.js → chunk-6KFJIU73.js} +1 -1
- package/dist/{chunk-3EJBI5JW.js → chunk-7FQYTM7M.js} +1 -1
- package/dist/{chunk-3N77LUQI.js → chunk-7QAJQDHS.js} +1 -1
- package/dist/{chunk-SI6WDF3U.js → chunk-CFFVCI2I.js} +1 -1
- package/dist/{chunk-7P3H4RY2.js → chunk-CNZRUVZ5.js} +102 -36
- package/dist/{chunk-WMNPKBX5.js → chunk-ELO5XEES.js} +4 -4
- package/dist/{chunk-PP6OX4OT.js → chunk-EPFFYDNX.js} +5 -5
- package/dist/{chunk-CY5TCVBS.js → chunk-ERTIEYDG.js} +6 -6
- package/dist/{chunk-35JMYSUD.js → chunk-EUQZAH2W.js} +2 -2
- package/dist/{chunk-WHDS6MEG.js → chunk-GHFI5GBF.js} +3 -3
- package/dist/{chunk-PXGU3GKY.js → chunk-GJ4KBHBD.js} +1 -1
- package/dist/chunk-GYVMMU3U.js +321 -0
- package/dist/{chunk-VVOSUGEF.js → chunk-H47VGSCW.js} +4 -4
- package/dist/{chunk-TFPNPS4Q.js → chunk-HOUFCUMH.js} +1 -1
- package/dist/{chunk-7JE2WFNK.js → chunk-HVPW272H.js} +3 -3
- package/dist/{chunk-M3ME6TLQ.js → chunk-HVQMIZ22.js} +4 -4
- package/dist/{chunk-7DXVL7TN.js → chunk-IO2BBKG4.js} +3 -3
- package/dist/{chunk-UONH72CJ.js → chunk-IWVGALDC.js} +2 -2
- package/dist/{chunk-ZP7GKJSM.js → chunk-JC6AQ6PC.js} +39 -6
- package/dist/{chunk-6JZXIWX7.js → chunk-JKNOJKVD.js} +34 -9
- package/dist/{chunk-GEQT3RPN.js → chunk-JSZRBQY3.js} +3 -3
- package/dist/{chunk-MOI2KDLH.js → chunk-L5VHGRQE.js} +1 -1
- package/dist/{chunk-SKVA4KWD.js → chunk-LD3BHLK7.js} +3 -3
- package/dist/{chunk-YNMVVQOQ.js → chunk-LQHCNXPK.js} +1 -1
- package/dist/{chunk-PWSUNS6Y.js → chunk-LTN2YFLR.js} +99 -31
- package/dist/{chunk-YHKU2NOZ.js → chunk-LTYBHCL4.js} +1 -1
- package/dist/{chunk-PAK5P2ND.js → chunk-MH6QLXUO.js} +1 -1
- package/dist/{chunk-OS7DJOQJ.js → chunk-MN3PP45X.js} +1 -1
- package/dist/{chunk-25GRRBTH.js → chunk-NHEU5CON.js} +1 -1
- package/dist/{chunk-IM6IL3F4.js → chunk-OQT7RT5I.js} +3 -3
- package/dist/{chunk-KRTD2F3I.js → chunk-P3CHDKXD.js} +3 -3
- package/dist/{chunk-63IVRRIO.js → chunk-P3NPTFLF.js} +3 -3
- package/dist/{chunk-GC5PVMIJ.js → chunk-RR3VDM7M.js} +3 -3
- package/dist/{chunk-G4W4B33M.js → chunk-SDAEXUIX.js} +25 -10
- package/dist/{chunk-SYVRBBLW.js → chunk-SDELQEG4.js} +1 -1
- package/dist/{chunk-AE3OTPUU.js → chunk-SZU4YCBH.js} +964 -1056
- package/dist/{chunk-FDJPDZSR.js → chunk-TS3EFB7S.js} +1 -1
- package/dist/{chunk-EMH2LNIE.js → chunk-V2VJYK46.js} +4 -4
- package/dist/{chunk-KAVZAB3E.js → chunk-VEJWLQ4G.js} +10 -10
- package/dist/{chunk-XTYYF6P7.js → chunk-VUQKGBIQ.js} +14 -7
- package/dist/{chunk-3RLKILPT.js → chunk-WE4C3ODP.js} +2 -2
- package/dist/{chunk-QEIA5Q35.js → chunk-XL2MPORM.js} +4 -4
- package/dist/{chunk-VGRCZE6U.js → chunk-XSFR76J7.js} +3 -3
- package/dist/{chunk-UMYYYF7B.js → chunk-YL3RWW7X.js} +1 -1
- package/dist/{chunk-GSSVJNP2.js → chunk-Z7WMU3RA.js} +3 -2
- package/dist/{chunk-3EHDZTRT.js → chunk-ZIKZZ4LK.js} +3 -3
- package/dist/{claude-launcher-OQZNW7XJ.js → claude-launcher-6KGANL7E.js} +1 -1
- package/dist/{cli-PFWJD5QM.js → cli-5KY3TE3S.js} +114 -112
- package/dist/{command-CM22HPN5.js → command-VQPQDPCZ.js} +24 -24
- package/dist/{config-W2XWNR4C.js → config-WSZIWPP4.js} +7 -7
- package/dist/{connect-cmd-TOWE4P45.js → connect-cmd-LI34HS5Q.js} +6 -6
- package/dist/{container-start-D2OEPMUO.js → container-start-XRR4VC5Z.js} +31 -30
- package/dist/{context-show-cmd-5UJUWBJL.js → context-show-cmd-X27GMOT6.js} +7 -7
- package/dist/{control-plane-launch-XBGHM7DB.js → control-plane-launch-74EIIB5Z.js} +5 -5
- package/dist/dist-HVXLUMRV.js +7 -0
- package/dist/{docker-GA63DVME.js → docker-KZ3OQTPW.js} +5 -5
- package/dist/{doctor-GVWQBHBC.js → doctor-KPKLFIJH.js} +24 -24
- package/dist/{emit-artifact-cmd-TUOLSGHB.js → emit-artifact-cmd-BJICHW2E.js} +11 -11
- package/dist/{emit-criteria-cmd-VEUMA7MZ.js → emit-criteria-cmd-MUWPT25P.js} +8 -8
- package/dist/{emit-demo-cmd-YLEZB6FG.js → emit-demo-cmd-YQN7VKQH.js} +12 -12
- package/dist/{emit-finding-cmd-BX3FWGSX.js → emit-finding-cmd-NPBWVY44.js} +8 -8
- package/dist/{emit-result-cmd-AYXGCIPR.js → emit-result-cmd-7CJZZQGK.js} +10 -10
- package/dist/{emit-step-cmd-CU6GQ3WW.js → emit-step-cmd-ZPLHZAMA.js} +8 -8
- package/dist/{exec-client-QB4OZRGM.js → exec-client-LXHTMVIB.js} +3 -3
- package/dist/find-unit-UKH6JH4S.js +18 -0
- package/dist/{findings-cmd-G4V4M3PO.js → findings-cmd-DZ4ESTHX.js} +8 -8
- package/dist/{fleet-readiness-NJYTQYTA.js → fleet-readiness-YSI4NOHT.js} +5 -5
- package/dist/{governing-source-JQV3ZKD7.js → governing-source-JPRMOB3O.js} +10 -10
- package/dist/{guest-init-IF5LXGUL.js → guest-init-WWL2WL7R.js} +4 -4
- package/dist/{hook-fast-GPUL7T77.js → hook-fast-6EW2MGA2.js} +1 -1
- package/dist/host-checks-NDXNYOMA.js +75 -0
- package/dist/{pending-ERXWVLLG.js → host-key-TSOKVSZX.js} +3 -3
- package/dist/{image-tag-SEMBVB5D.js → image-tag-BTXKIH73.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-FY3HP73H.js → init-MN3MNG7V.js} +21 -21
- package/dist/{init-3NT4YX2X.js → init-V6Y2VNKW.js} +21 -21
- package/dist/{init-cmd-RXHHEAOT.js → init-cmd-QCWLJDIF.js} +11 -11
- package/dist/{init-update-RHS6HWLI.js → init-update-GTFLPDEL.js} +9 -9
- package/dist/{install-cmd-5H6M2KJ7.js → install-cmd-RGO7NWKP.js} +5 -5
- package/dist/{logs-6CMB3DO6.js → logs-LEVH6VAI.js} +2 -2
- package/dist/{loop-V3GED2WX.js → loop-NGFNQF3Y.js} +38 -37
- package/dist/{machine-HLZLH327.js → machine-XG54XYYZ.js} +21 -21
- package/dist/{mcp-serve-cmd-MWGIN6YL.js → mcp-serve-cmd-4O5INM77.js} +4 -4
- package/dist/{paths-T2DEBI62.js → paths-AQ47ZRHK.js} +2 -2
- package/dist/{host-key-5RU322O3.js → pending-UWFDVFOA.js} +3 -3
- package/dist/{pidfile-EAD2OEM7.js → pidfile-PCG2H5T4.js} +3 -3
- package/dist/{record-IMXQNHPB.js → record-SVCNFCGQ.js} +3 -3
- package/dist/{runner-env-V52JUOD5.js → runner-env-YPXWTNP3.js} +9 -9
- package/dist/{runner-identity-J4NCBSBU.js → runner-identity-XPZO3TG4.js} +5 -5
- package/dist/{runner-key-ZUHMQCHZ.js → runner-key-B5EJH25Z.js} +21 -21
- package/dist/{session-sender-XDKMK4SF.js → session-sender-XED7CKHP.js} +11 -11
- package/dist/{spec-cmd-XQV7EIJW.js → spec-cmd-TRXAGQYM.js} +9 -9
- package/dist/{status-ZJJEJ52D.js → status-WQ53MWC3.js} +29 -28
- package/dist/{sync-cmd-BG2M536W.js → sync-cmd-UQVENF25.js} +10 -10
- package/dist/{update-steps-I5JLERXS.js → update-steps-IQVAL64Y.js} +30 -29
- package/dist/{watch-7A63565I.js → watch-EZGDDRTQ.js} +10 -10
- package/dist/{work-claim-cmd-OVPMBIRR.js → work-claim-cmd-YSAJ7DAK.js} +14 -14
- package/dist/{work-cmd-KVFRK24I.js → work-cmd-V5FHLWJM.js} +8 -8
- package/dist/{work-comment-cmd-GC3WAFM7.js → work-comment-cmd-KLEMDYI4.js} +9 -9
- package/dist/{work-demo-cmd-IOB5UDGQ.js → work-demo-cmd-XYRKFP4G.js} +8 -8
- package/dist/{work-logs-cmd-7II6D2JJ.js → work-logs-cmd-DOGPK7Q6.js} +8 -8
- package/dist/{work-open-pr-cmd-FYKRKCDL.js → work-open-pr-cmd-UAUEEP3V.js} +9 -9
- package/dist/{work-pr-cmd-KP3RI7TV.js → work-pr-cmd-LYWL7ZLF.js} +8 -8
- package/dist/{work-proofs-cmd-TVU6QFZN.js → work-proofs-cmd-YMMDAA6W.js} +11 -9
- package/dist/{work-proofs-record-XANZE3K4.js → work-proofs-record-NUCWR7ZJ.js} +17 -15
- package/dist/{work-stop-cmd-5V3DV3HJ.js → work-stop-cmd-MRLJEQRP.js} +8 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +2 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +3 -1
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +9 -3
- package/dist/chunk-YZ375YBI.js +0 -151
- package/dist/dist-IOPJIQWK.js +0 -7
- package/dist/find-unit-GGBRYOSO.js +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.34.0-next.
|
|
3
|
+
"version": "0.34.0-next.20261026182624",
|
|
4
4
|
"description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, findings, work, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|
|
@@ -129,7 +129,8 @@ repository. Commit and push in each checkout you change, to its own branch only.
|
|
|
129
129
|
thread back to a person.
|
|
130
130
|
9. **Check nothing is left waiting.** Reread threads. A thread still waiting
|
|
131
131
|
on an agent has a reply that did not land or was flagged `unchanged`. Fix
|
|
132
|
-
or report it.
|
|
132
|
+
or report it. Run `outerlayer sync` and `outerlayer work proofs`. Fix each
|
|
133
|
+
`uncited` or `failed` row it lists.
|
|
133
134
|
10. **Report.** Write one line per thread: the criterion (or the general
|
|
134
135
|
thread), and fixed (with the replacement) or handed off (with the reason).
|
|
135
136
|
Add a line for a merge conflict (merged with the base sha, or handed off
|
|
@@ -360,7 +360,9 @@ Run this last, after the pull request is open and the evidence is emitted, and
|
|
|
360
360
|
run no other tool call after it. Before it, run `outerlayer sync` and then
|
|
361
361
|
`outerlayer work proofs --item "$OUTERLAYER_WORK"`. End the run only when it
|
|
362
362
|
exits 0, or when `build-reports/evidence.md` names each proof it still lists
|
|
363
|
-
and the reason.
|
|
363
|
+
and the reason. A row marked `uncited` or `failed` has no such excuse: make a
|
|
364
|
+
test cite the criterion, or change a test that cites it, and run the command
|
|
365
|
+
again. Exit 2 means it could not decide: fix the reason it prints and
|
|
364
366
|
run it again:
|
|
365
367
|
|
|
366
368
|
outerlayer work release --item "$OUTERLAYER_WORK"
|
|
@@ -30,7 +30,12 @@ session can run it again.
|
|
|
30
30
|
After the evidence agent returns, run `outerlayer sync`, then
|
|
31
31
|
`outerlayer work proofs --item "$OUTERLAYER_WORK"`. It lists each declared proof
|
|
32
32
|
as current, out of date or missing at the checkout's head. The command leaves
|
|
33
|
-
out criteria that declare a test proof.
|
|
33
|
+
out criteria that declare a test proof. It also lists each criterion that the
|
|
34
|
+
host's criteria judge fails without reading a test. A row marked `uncited` has
|
|
35
|
+
no proof and no test at HEAD that cites it: put the id in a test's title or in a
|
|
36
|
+
comment above it, as in `// proves AC-7-02`, and commit. A row marked `failed`
|
|
37
|
+
names a criterion that the judge failed, whose citing tests have not changed:
|
|
38
|
+
change a test that cites it, and commit.
|
|
34
39
|
|
|
35
40
|
A commit makes every proof out of date, and each `--record` run starts the app
|
|
36
41
|
again. So record only at the run's last head. First make every commit the run
|
|
@@ -41,8 +46,9 @@ record once more after it. The final report names that head and the proofs
|
|
|
41
46
|
recorded there.
|
|
42
47
|
|
|
43
48
|
Run the list command once more before the run ends. A criterion still listed
|
|
44
|
-
goes in `build-reports/evidence.md` with the reason.
|
|
45
|
-
|
|
49
|
+
as out of date or missing goes in `build-reports/evidence.md` with the reason.
|
|
50
|
+
A written reason never excuses an `uncited` or `failed` row. Fix it first. Never
|
|
51
|
+
drive the browser yourself.
|
|
46
52
|
|
|
47
53
|
Re-read the pull request's evidence comment. Resolve or escalate every row that
|
|
48
54
|
needs attention. A row is resolved when a re-read shows it, not when the fixing
|
package/dist/chunk-YZ375YBI.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-6JZXIWX7.js';
|
|
4
|
-
import { C } from './chunk-ANPNT6PM.js';
|
|
5
|
-
import { sanitizeTerminal } from './chunk-MECW77XP.js';
|
|
6
|
-
import { defaultFetch } from './chunk-3N77LUQI.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-GSSVJNP2.js';
|
|
8
|
-
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
9
|
-
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-EOTMDIYC.js';
|
|
11
|
-
import { createHash } from 'crypto';
|
|
12
|
-
|
|
13
|
-
createRequire(import.meta.url);
|
|
14
|
-
function kindProblem(declared, file) {
|
|
15
|
-
if (declared === "test") return "a test proof is recorded by CI, not by --record";
|
|
16
|
-
const kind = inferArtifactKind(mediaTypeForArtifactPath(file));
|
|
17
|
-
return kind === declared ? void 0 : `the kinds differ: the file is a ${kind}, but the criterion declares a ${declared} proof`;
|
|
18
|
-
}
|
|
19
|
-
function proofsCommentBody(head, lines) {
|
|
20
|
-
const header = `These proofs are not current at ${head.slice(0, 7)}:`;
|
|
21
|
-
const rows = lines.map((line) => `- ${line.id} (${line.proof}): ${line.reason}`);
|
|
22
|
-
const fits = (count2) => {
|
|
23
|
-
const left = rows.length - count2;
|
|
24
|
-
return [header, ...rows.slice(0, count2), ...left > 0 ? [`and ${left} more.`] : []].join("\n");
|
|
25
|
-
};
|
|
26
|
-
let count = rows.length;
|
|
27
|
-
while (count > 0 && fits(count).length > WORK_ITEM_COMMENT_MAX_BODY_LENGTH) count -= 1;
|
|
28
|
-
return fits(count);
|
|
29
|
-
}
|
|
30
|
-
function proofsCommentId(item, head, lines) {
|
|
31
|
-
const list = [...lines].sort((a, b) => a.id < b.id ? -1 : a.id > b.id ? 1 : 0).map((line) => [line.id, line.proof, line.reason]);
|
|
32
|
-
const digest = createHash("sha256").update(JSON.stringify([item, head.toLowerCase(), list])).digest("hex");
|
|
33
|
-
return `proofs-${digest.slice(0, 32)}`;
|
|
34
|
-
}
|
|
35
|
-
function repositoryName(repository) {
|
|
36
|
-
return repository.replace(/\.git$/, "").split("/").filter((part) => part !== "").slice(-2).join("/").toLowerCase();
|
|
37
|
-
}
|
|
38
|
-
function ownPullRequest(pullRequests, requested, checkoutRepository) {
|
|
39
|
-
if (requested !== void 0) return { pr: requested };
|
|
40
|
-
const here = checkoutRepository === void 0 ? void 0 : repositoryName(checkoutRepository);
|
|
41
|
-
const open = pullRequests.filter(
|
|
42
|
-
(pr) => pr.state === "open" && typeof pr.prNumber === "number" && (here === void 0 || repositoryName(pr.repository ?? "") === here)
|
|
43
|
-
);
|
|
44
|
-
if (open.length > 1) return { ambiguous: open.map((pr) => pr.prNumber) };
|
|
45
|
-
return { pr: open[0]?.prNumber };
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// src/work-proofs-cmd.ts
|
|
49
|
-
function liveHead(pr) {
|
|
50
|
-
if (pr.state !== "open" && pr.state !== "merged" || typeof pr.headSha !== "string" || pr.headSha === "") return void 0;
|
|
51
|
-
return pr.headSha.toLowerCase();
|
|
52
|
-
}
|
|
53
|
-
function otherPullRequestHeads(pullRequests, ownPr, checkoutRepository) {
|
|
54
|
-
const here = checkoutRepository === void 0 ? void 0 : repositoryName(checkoutRepository);
|
|
55
|
-
const heads = /* @__PURE__ */ new Set();
|
|
56
|
-
for (const pr of pullRequests) {
|
|
57
|
-
const head = liveHead(pr);
|
|
58
|
-
if (head === void 0) continue;
|
|
59
|
-
const isOwn = ownPr !== void 0 && pr.prNumber === ownPr && (here === void 0 || repositoryName(pr.repository ?? "") === here);
|
|
60
|
-
if (!isOwn) heads.add(head);
|
|
61
|
-
}
|
|
62
|
-
return heads;
|
|
63
|
-
}
|
|
64
|
-
function classifyProofs(data, checkoutHead) {
|
|
65
|
-
const heads = /* @__PURE__ */ new Set();
|
|
66
|
-
if (checkoutHead !== void 0 && checkoutHead !== "") heads.add(checkoutHead.toLowerCase());
|
|
67
|
-
data.pullRequests?.forEach((pr) => {
|
|
68
|
-
const head = liveHead(pr);
|
|
69
|
-
if (head !== void 0) heads.add(head);
|
|
70
|
-
});
|
|
71
|
-
return classifyProofsAt(data, heads);
|
|
72
|
-
}
|
|
73
|
-
function classifyProofsAt(data, heads) {
|
|
74
|
-
const entries = [];
|
|
75
|
-
for (const criterion of data.criteria?.items ?? []) {
|
|
76
|
-
if (criterion.proof === null || criterion.proof === "test") continue;
|
|
77
|
-
const newest = criterion.newestProof;
|
|
78
|
-
if (newest === null || newest === void 0) {
|
|
79
|
-
entries.push({ id: criterion.id, proof: criterion.proof, state: "missing", commit: null });
|
|
80
|
-
} else if (newest.commitSha !== null && heads.has(newest.commitSha.toLowerCase())) {
|
|
81
|
-
entries.push({ id: criterion.id, proof: criterion.proof, state: "current", commit: newest.commitSha });
|
|
82
|
-
} else {
|
|
83
|
-
entries.push({ id: criterion.id, proof: criterion.proof, state: "out-of-date", commit: newest.commitSha });
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return entries;
|
|
87
|
-
}
|
|
88
|
-
var STATE_LABEL = { current: "current", "out-of-date": "out of date", missing: "missing" };
|
|
89
|
-
function render(entries, json) {
|
|
90
|
-
if (json) return JSON.stringify(entries);
|
|
91
|
-
if (entries.length === 0) return "No criterion declares a proof other than test.";
|
|
92
|
-
return entries.map((e) => `${sanitizeTerminal(e.id)} ${sanitizeTerminal(e.proof)} ${STATE_LABEL[e.state]} ${sanitizeTerminal(e.commit ?? "no commit")}`).join("\n");
|
|
93
|
-
}
|
|
94
|
-
function resolveProofsItem(opts) {
|
|
95
|
-
const env = opts.env ?? process.env;
|
|
96
|
-
let item;
|
|
97
|
-
if (opts.item !== void 0) {
|
|
98
|
-
item = parseTrackerNumber(opts.item);
|
|
99
|
-
if (item === void 0) throw new WorkCommandError(trackerNumberError("--item", opts.item));
|
|
100
|
-
} else if (env.OUTERLAYER_WORK !== void 0) {
|
|
101
|
-
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
102
|
-
if (!("number" in parsed)) throw new WorkCommandError(parsed.reason);
|
|
103
|
-
item = parsed.number;
|
|
104
|
-
}
|
|
105
|
-
if (item === void 0) {
|
|
106
|
-
throw new WorkCommandError("no work item. Pass --item <number>, or set OUTERLAYER_WORK to the item's number.");
|
|
107
|
-
}
|
|
108
|
-
return item;
|
|
109
|
-
}
|
|
110
|
-
async function runWorkProofs(opts) {
|
|
111
|
-
const item = resolveProofsItem(opts);
|
|
112
|
-
const creds = resolveCredentials(opts);
|
|
113
|
-
const { data } = await getJson(creds.url, `/v1/work-items/${item}`, creds.apiKey, creds.appId, opts.fetchImpl ?? defaultFetch);
|
|
114
|
-
const body = data;
|
|
115
|
-
const items = body.criteria?.items ?? [];
|
|
116
|
-
if (items.some((c) => c.proof !== null && c.proof !== "test" && !("newestProof" in c))) {
|
|
117
|
-
throw new WorkCommandError(
|
|
118
|
-
"the gateway does not report each criterion's newest proof. Update the gateway, then run this again."
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
const checkoutHead = opts.checkoutHead ?? resolveRepoIdentity(opts.cwd ?? process.cwd()).commitSha;
|
|
122
|
-
if (!checkoutHead) {
|
|
123
|
-
throw new WorkCommandError("cannot read the checkout's HEAD. Run this inside the git checkout, or pass the head explicitly.");
|
|
124
|
-
}
|
|
125
|
-
const entries = classifyProofs(body, checkoutHead);
|
|
126
|
-
const output = render(entries, opts.json === true);
|
|
127
|
-
if (!opts.quiet) process.stdout.write(output + "\n");
|
|
128
|
-
return { entries, output, exitCode: entries.every((e) => e.state === "current") ? 0 : 1 };
|
|
129
|
-
}
|
|
130
|
-
async function runWorkProofsCommand(opts) {
|
|
131
|
-
try {
|
|
132
|
-
if (opts.record) {
|
|
133
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-XANZE3K4.js');
|
|
134
|
-
const result2 = await runWorkProofsRecord(opts);
|
|
135
|
-
process.exitCode = result2.exitCode;
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const result = await runWorkProofs(opts);
|
|
139
|
-
process.exitCode = result.exitCode;
|
|
140
|
-
} catch (err) {
|
|
141
|
-
if (err instanceof WorkCommandError) {
|
|
142
|
-
process.stderr.write(`${C.red}\u2717${C.reset} ${err.message}
|
|
143
|
-
`);
|
|
144
|
-
process.exitCode = 2;
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
throw err;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export { classifyProofs, classifyProofsAt, kindProblem, otherPullRequestHeads, ownPullRequest, proofsCommentBody, proofsCommentId, resolveProofsItem, runWorkProofs, runWorkProofsCommand };
|
package/dist/dist-IOPJIQWK.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { CaptureDaemon, PRICE_TABLE_SOURCE, SECRET_PATTERNS, SOURCE_ADAPTERS, SUPPORTED_VERSIONS, StatuslineAggregator, WARNING_CODES, claudeCodeAdapter, codexAdapter, codexSessionIdFromPath, compareVersions, completePrefix, computeStatuslineState, costOfUsage, cursorAdapter, cursorChatIdFromPath, defaultCodexSessionsDir, defaultCursorChatsDir, defaultCursorProjectsDir, defaultProjectsDir, defaultRawDir, enrichSessionRepo, findCodexRollouts, findCursorChats, findTranscripts, isNewerThanSupported, isPriceKnown, normalizeErrorSignature, normalizeRemote, parseCodexRollout, parseCursorChat, parseTranscript, readStatuslineState, readSyncWatermarkMs, remoteLookupFailed, resolvePrice, resolveRepoIdentity, rootChildIds, scanAll, scrubDeep, scrubText, sessionIdFromPath, setCustomScrubbers, setLocalIdentity, setRepoRoot, statuslineStatePath, tailTranscript, workspacesByHash, writeStatuslineState } from './chunk-GSSVJNP2.js';
|
|
4
|
-
import './chunk-EOTMDIYC.js';
|
|
5
|
-
import './chunk-Z5GEFMRW.js';
|
|
6
|
-
|
|
7
|
-
createRequire(import.meta.url);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { findServiceUnit, inspectRunnerService } from './chunk-3RLKILPT.js';
|
|
4
|
-
import './chunk-EMH2LNIE.js';
|
|
5
|
-
import './chunk-3EHDZTRT.js';
|
|
6
|
-
import './chunk-UONH72CJ.js';
|
|
7
|
-
import './chunk-M3ME6TLQ.js';
|
|
8
|
-
import './chunk-4UPET3R7.js';
|
|
9
|
-
import './chunk-MOI2KDLH.js';
|
|
10
|
-
import './chunk-GSSVJNP2.js';
|
|
11
|
-
import './chunk-EOTMDIYC.js';
|
|
12
|
-
import './chunk-VNVZDWO3.js';
|
|
13
|
-
import './chunk-PXGU3GKY.js';
|
|
14
|
-
import './chunk-G4W4B33M.js';
|
|
15
|
-
import './chunk-MESOOLF4.js';
|
|
16
|
-
import './chunk-Z5GEFMRW.js';
|
|
17
|
-
|
|
18
|
-
createRequire(import.meta.url);
|