@brainervirus/workit-cli 1.0.6 → 1.0.8
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 +8 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -43220,7 +43220,7 @@ function mergeCursorMcp(mcp, serverName, server) {
|
|
|
43220
43220
|
return { config: base, changed };
|
|
43221
43221
|
}
|
|
43222
43222
|
var CURSOR_RUNTIME_PACKAGE = "@brainervirus/workit-cursor@latest";
|
|
43223
|
-
var CURSOR_HOOK_RUN_COMMAND = `npx -y --prefer-online --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-hook`;
|
|
43223
|
+
var CURSOR_HOOK_RUN_COMMAND = `npx -y --prefer-online --min-release-age=0 --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-hook`;
|
|
43224
43224
|
var CURSOR_PRETOOLUSE_MATCHER = "Write|Edit|Delete|Shell|Remove|ApplyPatch|Apply_Patch|Patch|Rename|Mkdir|Mv|Cp|Touch";
|
|
43225
43225
|
var canonicalHookEntry = (event) => event === "preToolUse" ? { command: CURSOR_HOOK_RUN_COMMAND, matcher: CURSOR_PRETOOLUSE_MATCHER, failClosed: true } : { command: CURSOR_HOOK_RUN_COMMAND, failClosed: true };
|
|
43226
43226
|
function cursorHookDrift(installed) {
|
|
@@ -43245,6 +43245,7 @@ function cursorMcpServerEntry(_packageDir) {
|
|
|
43245
43245
|
args: [
|
|
43246
43246
|
"-y",
|
|
43247
43247
|
"--prefer-online",
|
|
43248
|
+
"--min-release-age=0",
|
|
43248
43249
|
`--package=${CURSOR_RUNTIME_PACKAGE}`,
|
|
43249
43250
|
"workit-cursor-mcp",
|
|
43250
43251
|
"${workspaceFolder}"
|
|
@@ -43253,7 +43254,7 @@ function cursorMcpServerEntry(_packageDir) {
|
|
|
43253
43254
|
}
|
|
43254
43255
|
function cursorHooksEntry(_packageDir) {
|
|
43255
43256
|
return {
|
|
43256
|
-
command: `npx -y --prefer-online --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
|
|
43257
|
+
command: `npx -y --prefer-online --min-release-age=0 --package=${CURSOR_RUNTIME_PACKAGE} workit-cursor-session-start`,
|
|
43257
43258
|
args: []
|
|
43258
43259
|
};
|
|
43259
43260
|
}
|
|
@@ -59278,7 +59279,7 @@ async function runAuthorizedExternalAction(input, effect) {
|
|
|
59278
59279
|
const preflight = typeof contract.details === "object" && contract.details !== null && contract.details.outcome === "not_started";
|
|
59279
59280
|
const outcome = input.failureOutcome ?? (preflight ? "not_started" : "unknown");
|
|
59280
59281
|
const settled = settleWithRefresh(outcome, settle(outcome));
|
|
59281
|
-
if (!settled.ok
|
|
59282
|
+
if (!settled.ok)
|
|
59282
59283
|
return settled;
|
|
59283
59284
|
return contract;
|
|
59284
59285
|
}
|
|
@@ -64325,7 +64326,7 @@ var resolveExternalActionRequest = (root, request, preservedDateMs) => {
|
|
|
64325
64326
|
if (preview.error)
|
|
64326
64327
|
return failure("invalid_input", preview.error);
|
|
64327
64328
|
const target = String(preview.path);
|
|
64328
|
-
const relative = path28.relative(
|
|
64329
|
+
const relative = path28.relative(fs14.realpathSync(root), target).replaceAll(path28.sep, "/") || "CHANGELOG.md";
|
|
64329
64330
|
const normalized = {
|
|
64330
64331
|
operation: request.operation,
|
|
64331
64332
|
payload: {
|
|
@@ -64433,6 +64434,7 @@ var resolveExternalActionRequest = (root, request, preservedDateMs) => {
|
|
|
64433
64434
|
return failure("storage_error", "external action target could not be resolved");
|
|
64434
64435
|
}
|
|
64435
64436
|
};
|
|
64437
|
+
var prBabysitNext = (output) => `Babysit ${output} to merge-ready (drive mode default). Follow skill workit-babysit: declare mode in this turn, work conflicts, review threads, then CI, and record a frontier brief in task progress per pass. Opt out with babysit:false.`;
|
|
64436
64438
|
var executeConcreteExternalAction = async (request, root, marker, dateMs, step, workText, caller, approvedBeforeDigest, approvedBeforeExists) => {
|
|
64437
64439
|
if (localAction(request.operation)) {
|
|
64438
64440
|
if (!caller)
|
|
@@ -64476,7 +64478,8 @@ var executeConcreteExternalAction = async (request, root, marker, dateMs, step,
|
|
|
64476
64478
|
return result.error || result.ok === false ? unknown2(request.operation) : success(null, null, {
|
|
64477
64479
|
...result,
|
|
64478
64480
|
babysit: request.payload.babysit ?? true,
|
|
64479
|
-
babysitSkill: "workit-babysit"
|
|
64481
|
+
babysitSkill: "workit-babysit",
|
|
64482
|
+
...request.payload.babysit ?? true ? { next: prBabysitNext(String(result.output ?? "")) } : {}
|
|
64480
64483
|
});
|
|
64481
64484
|
}
|
|
64482
64485
|
case "changelog.apply": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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.0.
|
|
41
|
-
"@brainervirus/workit-cursor": "^1.0.
|
|
42
|
-
"@brainervirus/workit-opencode": "^1.0.
|
|
40
|
+
"@brainervirus/workit-core": "^1.0.8",
|
|
41
|
+
"@brainervirus/workit-cursor": "^1.0.8",
|
|
42
|
+
"@brainervirus/workit-opencode": "^1.0.8",
|
|
43
43
|
"@inkjs/ui": "2.0.0",
|
|
44
44
|
"ink": "7.1.1",
|
|
45
45
|
"react": "19.2.8"
|