@brainervirus/workit-cli 7.5.1 → 7.6.0
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/index.js +18 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var package_default;
|
|
|
65
65
|
var init_package = __esm(() => {
|
|
66
66
|
package_default = {
|
|
67
67
|
name: "@brainervirus/workit-cli",
|
|
68
|
-
version: "7.
|
|
68
|
+
version: "7.6.0",
|
|
69
69
|
private: false,
|
|
70
70
|
description: "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
71
71
|
keywords: [
|
|
@@ -103,9 +103,9 @@ var init_package = __esm(() => {
|
|
|
103
103
|
},
|
|
104
104
|
dependencies: {
|
|
105
105
|
"@babel/parser": "7.29.9",
|
|
106
|
-
"@brainervirus/workit-core": "^7.
|
|
107
|
-
"@brainervirus/workit-cursor": "^7.
|
|
108
|
-
"@brainervirus/workit-opencode": "^7.
|
|
106
|
+
"@brainervirus/workit-core": "^7.6.0",
|
|
107
|
+
"@brainervirus/workit-cursor": "^7.6.0",
|
|
108
|
+
"@brainervirus/workit-opencode": "^7.6.0",
|
|
109
109
|
"@inkjs/ui": "2.0.0",
|
|
110
110
|
ink: "7.1.1",
|
|
111
111
|
react: "19.2.8"
|
|
@@ -13458,7 +13458,7 @@ function recordVerdict(context, input) {
|
|
|
13458
13458
|
});
|
|
13459
13459
|
const authoring = [session, input.derivedFrom].find((candidate) => typeof candidate === "string" && authors.has(candidate));
|
|
13460
13460
|
if (!self2 && authoring)
|
|
13461
|
-
return err("blocked", `author_verdict: session ${authoring} authored ${branch}; a verdict must come from a different session`, input.derivedFrom === undefined ?
|
|
13461
|
+
return err("blocked", `author_verdict: session ${authoring} authored ${branch}; a verdict must come from a different session`, input.derivedFrom === undefined ? "have a non-author session record the verdict: spawn a verifier with its own WORKIT_SESSION_ID=<lead>-v<n> (Claude Code: subagents get one from the SubagentStart hook); or, as the author, pass --self (self-reviewed, never accepted)" : "run the verifier as a separate session: the lead spawns it with its own WORKIT_SESSION_ID (Claude Code: subagents get one from the SubagentStart hook)");
|
|
13462
13462
|
const link = checkSupersede(context, "verdict", self2);
|
|
13463
13463
|
if (!link.ok)
|
|
13464
13464
|
return link;
|
|
@@ -63145,7 +63145,8 @@ var init_skill_manifests = __esm(() => {
|
|
|
63145
63145
|
"workit-deslop",
|
|
63146
63146
|
"workit-fanout",
|
|
63147
63147
|
"workit-verify-app",
|
|
63148
|
-
"workit-retro"
|
|
63148
|
+
"workit-retro",
|
|
63149
|
+
"workit-architecture"
|
|
63149
63150
|
];
|
|
63150
63151
|
if (false) {}
|
|
63151
63152
|
});
|
|
@@ -70173,7 +70174,7 @@ var init_knowledge = __esm(() => {
|
|
|
70173
70174
|
HEADING = /^\s{0,3}#{1,6}(\s|$)/;
|
|
70174
70175
|
TABLE_SEPARATOR = /^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?\s*$/;
|
|
70175
70176
|
LIST_ITEM = /^\s*(?:[-*+]|\d+[.)])\s+/;
|
|
70176
|
-
PLACEHOLDER2 = /^(?:(?:tbd|todo|tba|fixme)
|
|
70177
|
+
PLACEHOLDER2 = /^(?:(?:tbd|todo|tba|fixme)(?:\s*[:–—-].*)?|n\/a|none|none yet|coming soon|placeholder|\.\.\.|…|-)?[.:]?$/i;
|
|
70177
70178
|
INDENTED_CODE = /^(?: {4}|\t)/;
|
|
70178
70179
|
LINK = /!?\[[^\]]*\]\(\s*(?:<([^>\n]+)>|((?:[^()\s<>]|\([^()\s]*\))+))(?:\s+["'(][^)]*)?\)/g;
|
|
70179
70180
|
REFERENCE_DEFINITION = /^\s{0,3}\[[^\]]+\]:\s*<?(\S+?)>?(?:\s|$)/;
|
|
@@ -77789,7 +77790,7 @@ async function run16(argv, io) {
|
|
|
77789
77790
|
})), (row) => `recorded ruling ${row.id}`);
|
|
77790
77791
|
if (rest.length !== 1)
|
|
77791
77792
|
return usage4(io, `ledger verdict takes one result: ${VERDICT_RESULTS.join("|")}`);
|
|
77792
|
-
|
|
77793
|
+
const verdict = await recorded(recordVerdict(context, {
|
|
77793
77794
|
result: rest[0],
|
|
77794
77795
|
kind: values.kind,
|
|
77795
77796
|
how: values.how,
|
|
@@ -77797,7 +77798,11 @@ async function run16(argv, io) {
|
|
|
77797
77798
|
self: values.self === true,
|
|
77798
77799
|
evidenceRefs: values.evidence,
|
|
77799
77800
|
..."derivedFrom" in acting ? { derivedFrom: acting.derivedFrom } : {}
|
|
77800
|
-
}))
|
|
77801
|
+
}));
|
|
77802
|
+
if (verdict.ok && verdict.value.selfReason === "flag" && !passedTestOn(io.cwd, verdict.value))
|
|
77803
|
+
io.stderr(`warning: no passing \`workit check test\` observed on ${(verdict.value.head ?? "this head").slice(0, 12)}; run it before a --self verdict
|
|
77804
|
+
`);
|
|
77805
|
+
return fromResult(io, verdict, (row) => `recorded verdict ${row.id}: ${row.result} [${row.kind}] for ${row.branch} @ ${(row.head ?? "").slice(0, 12)} as ${actor.session ?? "no session"}${row.self ? ` (self${row.selfReason === "no_session" ? ": WORKIT_SESSION_ID unset" : ""}; never accepted)` : ""}`);
|
|
77801
77806
|
}
|
|
77802
77807
|
var USAGE9 = "workit ledger decision|ruling|verdict|list|check ... (workit help ledger for the grammar)", OPTIONS, SESSION_SAFE2, ROLE_SAFE, actorFor = (io, values) => {
|
|
77803
77808
|
const actor = actorFromEnv(io.env);
|
|
@@ -77823,7 +77828,10 @@ var USAGE9 = "workit ledger decision|ruling|verdict|list|check ... (workit help
|
|
|
77823
77828
|
return;
|
|
77824
77829
|
const parsed = Number(value);
|
|
77825
77830
|
return Number.isInteger(parsed) && parsed > 0 ? parsed : new Error(`${flag} must be a positive integer`);
|
|
77826
|
-
}, failed2 = (io, result) => emit(io, fail(result.code, result.error, result.unblock ? { unblock: result.unblock } : {})), fromResult = (io, result, human) => result.ok ? emit(io, ok(result.value), human) : failed2(io, result), usage4 = (io, error) => emit(io, fail("invalid_input", error, { unblock: USAGE9 })),
|
|
77831
|
+
}, failed2 = (io, result) => emit(io, fail(result.code, result.error, result.unblock ? { unblock: result.unblock } : {})), fromResult = (io, result, human) => result.ok ? emit(io, ok(result.value), human) : failed2(io, result), usage4 = (io, error) => emit(io, fail("invalid_input", error, { unblock: USAGE9 })), passedTestOn = (cwd, verdict) => {
|
|
77832
|
+
const ledger = readLedger(cwd);
|
|
77833
|
+
return ledger.ok && ledger.value.rows.some((row) => row.type === "check" && row.observer === "workit_cli" && row.name === "test" && row.result === "passed" && row.dirty !== true && row.branch === verdict.branch && row.head === verdict.head);
|
|
77834
|
+
}, verdictLines = (check) => {
|
|
77827
77835
|
const lines = [
|
|
77828
77836
|
`${check.branch} @ ${(check.head ?? "no commit").slice(0, 12)}: current: ${check.current.basis}${typeof check.current.verdict?.result === "string" ? ` (${check.current.verdict.result})` : ""}; ${check.accepted.accepted ? "accepted" : `not accepted (${check.accepted.reasons.join(", ")})`}; review: ${check.review}`
|
|
77829
77837
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
6
6
|
"keywords": [
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/parser": "7.29.9",
|
|
41
|
-
"@brainervirus/workit-core": "^7.
|
|
42
|
-
"@brainervirus/workit-cursor": "^7.
|
|
43
|
-
"@brainervirus/workit-opencode": "^7.
|
|
41
|
+
"@brainervirus/workit-core": "^7.6.0",
|
|
42
|
+
"@brainervirus/workit-cursor": "^7.6.0",
|
|
43
|
+
"@brainervirus/workit-opencode": "^7.6.0",
|
|
44
44
|
"@inkjs/ui": "2.0.0",
|
|
45
45
|
"ink": "7.1.1",
|
|
46
46
|
"react": "19.2.8"
|