@brainervirus/workit-cli 1.1.1 → 1.2.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 +20 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -43278,7 +43278,7 @@ import path11 from "node:path";
|
|
|
43278
43278
|
var SUPPORT_MATRIX = {
|
|
43279
43279
|
bun: "1.4.1",
|
|
43280
43280
|
node: { minimum: "24", current: "24.20.0" },
|
|
43281
|
-
opencode: { minimum: "1.
|
|
43281
|
+
opencode: { minimum: "1.18.30", current: "1.18.30" },
|
|
43282
43282
|
codex: { cli: "0.153.4", desktopPackage: "26.901.20858", bundledCodexCli: "0.153.0-alpha.5" },
|
|
43283
43283
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
43284
43284
|
};
|
|
@@ -60367,6 +60367,12 @@ var externalActionDescriptor = (operation, payload) => canonicalJson({
|
|
|
60367
60367
|
payload,
|
|
60368
60368
|
...payload && typeof payload === "object" && !Array.isArray(payload) && "resolved" in payload && payload.resolved && typeof payload.resolved === "object" && Array.isArray(payload.resolved.steps) ? { steps: payload.resolved.steps } : {}
|
|
60369
60369
|
});
|
|
60370
|
+
var planReservationLength = (operation, descriptorPayload) => {
|
|
60371
|
+
if (operation !== "git.commit")
|
|
60372
|
+
return null;
|
|
60373
|
+
const payload = descriptorPayload ?? {};
|
|
60374
|
+
return Array.isArray(payload.plan_steps) ? payload.plan_steps.length : null;
|
|
60375
|
+
};
|
|
60370
60376
|
var externalActionHelp = "Fixed actions: git.branch_setup {action?,sdd_dir?,target_branch(required unless reapply_stash; the working branch to create or switch to),stash?}; git.commit {message}; git.push {branch?}; hosting.pull_request {title,body?,draft?,target_branch?,babysit?}; hosting.merge {target_branch?,source_branch?}; youtrack.update {issueId,markdown,minutes?}; youtrack.time {issueId,minutes,text?,dateMs?}; youtrack.meeting {issueId,minutes,text}; changelog.apply {entries?,path?,normalize_only?}; context.read {kind,range?,issueId?,issueUrl?,issueRef?,mode?,specPath?,planPath?}. context.read is read-only and needs no approval; all other operations require native approval (CLI uses a TTY; caller-unattested MCP cannot mutate).";
|
|
60371
60377
|
var externalActionRef = (host, actor, descriptor) => ({
|
|
60372
60378
|
kind: "host",
|
|
@@ -66477,6 +66483,16 @@ async function runActionCommand(argv, deps = {}) {
|
|
|
66477
66483
|
nativeAuthority: cliActionAuthority(actor),
|
|
66478
66484
|
workerId: null
|
|
66479
66485
|
});
|
|
66486
|
+
const planCount = planReservationLength(normalized.operation, resolved.data.descriptorPayload);
|
|
66487
|
+
if (planCount !== null) {
|
|
66488
|
+
const bound = standingAutoBinding(core, store, "workit_cli", actor, descriptor);
|
|
66489
|
+
const result = bound ? success(null, null, { plan_commits: planCount }) : failure("storage_error", "standing plan approval could not be recorded");
|
|
66490
|
+
if (json)
|
|
66491
|
+
jsonResult(outOf(deps), result);
|
|
66492
|
+
else
|
|
66493
|
+
printHuman(result, deps);
|
|
66494
|
+
return result.ok ? 0 : 1;
|
|
66495
|
+
}
|
|
66480
66496
|
const runner = nativeExternalActionRunner(root, actor, core);
|
|
66481
66497
|
const result = await runner(descriptor, (step) => executeResolvedExternalAction(resolved.data, root, step, { host: "workit_cli", actor }));
|
|
66482
66498
|
if (json)
|
|
@@ -66531,9 +66547,9 @@ async function runActionCommand(argv, deps = {}) {
|
|
|
66531
66547
|
printHuman(decision, deps);
|
|
66532
66548
|
return 1;
|
|
66533
66549
|
}
|
|
66534
|
-
const
|
|
66535
|
-
if (
|
|
66536
|
-
const result = success(null, null, { plan_commits:
|
|
66550
|
+
const planCount = planReservationLength(normalized.operation, resolved.data.descriptorPayload);
|
|
66551
|
+
if (planCount !== null) {
|
|
66552
|
+
const result = success(null, null, { plan_commits: planCount });
|
|
66537
66553
|
if (json)
|
|
66538
66554
|
jsonResult(outOf(deps), result);
|
|
66539
66555
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
6
6
|
"keywords": [
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@brainervirus/workit-core": "^1.
|
|
41
|
-
"@brainervirus/workit-cursor": "^1.
|
|
42
|
-
"@brainervirus/workit-opencode": "^1.
|
|
40
|
+
"@brainervirus/workit-core": "^1.2.0",
|
|
41
|
+
"@brainervirus/workit-cursor": "^1.2.0",
|
|
42
|
+
"@brainervirus/workit-opencode": "^1.2.0",
|
|
43
43
|
"@inkjs/ui": "2.0.0",
|
|
44
44
|
"ink": "7.1.1",
|
|
45
45
|
"react": "19.2.8"
|