@brainervirus/workit-claude-code 8.40.5 → 8.40.6
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/dist/workit.js +25 -3
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workit",
|
|
3
3
|
"displayName": "Workit",
|
|
4
|
-
"version": "8.40.
|
|
4
|
+
"version": "8.40.6",
|
|
5
5
|
"description": "Workflow rails for agentic coding: task context on every session, branch policy on shell commands, and the workit method skills",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "BrainerVirus"
|
package/dist/workit.js
CHANGED
|
@@ -9352,7 +9352,7 @@ var package_default;
|
|
|
9352
9352
|
var init_package = __esm(() => {
|
|
9353
9353
|
package_default = {
|
|
9354
9354
|
name: "@brainervirus/workit-cli",
|
|
9355
|
-
version: "8.40.
|
|
9355
|
+
version: "8.40.6",
|
|
9356
9356
|
private: false,
|
|
9357
9357
|
description: "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
9358
9358
|
keywords: [
|
|
@@ -9390,13 +9390,13 @@ var init_package = __esm(() => {
|
|
|
9390
9390
|
},
|
|
9391
9391
|
dependencies: {
|
|
9392
9392
|
"@babel/parser": "7.29.9",
|
|
9393
|
-
"@brainervirus/workit-cursor": "^8.40.
|
|
9393
|
+
"@brainervirus/workit-cursor": "^8.40.6",
|
|
9394
9394
|
"@inkjs/ui": "2.0.0",
|
|
9395
9395
|
ink: "7.1.1",
|
|
9396
9396
|
react: "19.2.8"
|
|
9397
9397
|
},
|
|
9398
9398
|
devDependencies: {
|
|
9399
|
-
"@brainervirus/workit-core": "^8.40.
|
|
9399
|
+
"@brainervirus/workit-core": "^8.40.6"
|
|
9400
9400
|
},
|
|
9401
9401
|
engines: {
|
|
9402
9402
|
node: ">=24"
|
|
@@ -85679,6 +85679,20 @@ function forgeBreaker(resolved) {
|
|
|
85679
85679
|
forge.prStatus = guard(inner.prStatus.bind(inner));
|
|
85680
85680
|
return { forge: { ...resolved, forge }, down: () => tripped };
|
|
85681
85681
|
}
|
|
85682
|
+
function trunkRefresher(cwd, trunk) {
|
|
85683
|
+
const match = /^refs\/remotes\/([^/]+)\/(.+)$/u.exec(trunk);
|
|
85684
|
+
if (!match)
|
|
85685
|
+
return;
|
|
85686
|
+
const [, remote, name] = match;
|
|
85687
|
+
let result;
|
|
85688
|
+
return () => {
|
|
85689
|
+
if (result !== undefined)
|
|
85690
|
+
return result;
|
|
85691
|
+
const fetched = fetchRefs(cwd, remote, [`+refs/heads/${name}:${trunk}`]);
|
|
85692
|
+
result = fetched.ok ? null : `${remote}/${name} could not be refreshed, so a revert check may be stale: run git fetch ${remote} ${name}`;
|
|
85693
|
+
return result;
|
|
85694
|
+
};
|
|
85695
|
+
}
|
|
85682
85696
|
function branchCreatedAt(cwd, branch) {
|
|
85683
85697
|
if (!branch || branch.startsWith("-"))
|
|
85684
85698
|
return null;
|
|
@@ -85796,6 +85810,14 @@ function detectLanding(ctx, slice, input) {
|
|
|
85796
85810
|
const landed = (how, landedHead) => {
|
|
85797
85811
|
if (!hasCommit(ctx.cwd, landedHead) || !reverted(ctx.cwd, ctx.trunk, landedHead, input.createdFrom))
|
|
85798
85812
|
return { ...out, landed: true, how, landedHead };
|
|
85813
|
+
if (how === "pr_merged" && ctx.forge) {
|
|
85814
|
+
ctx.refreshTrunk ??= trunkRefresher(ctx.cwd, ctx.trunk) ?? (() => null);
|
|
85815
|
+
const failed = ctx.refreshTrunk();
|
|
85816
|
+
if (failed)
|
|
85817
|
+
return { ...out, landed: true, how, landedHead, note: failed };
|
|
85818
|
+
if (!reverted(ctx.cwd, ctx.trunk, landedHead, input.createdFrom))
|
|
85819
|
+
return { ...out, landed: true, how, landedHead };
|
|
85820
|
+
}
|
|
85799
85821
|
return {
|
|
85800
85822
|
...out,
|
|
85801
85823
|
note: `landed (${how}${out.pr ? ` #${out.pr.number}` : ""}), then reverted on the trunk: its paths read as before it`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-claude-code",
|
|
3
|
-
"version": "8.40.
|
|
3
|
+
"version": "8.40.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Claude Code plugin — session and per-turn task context, branch policy on git shell commands, workit method skills, and verifier/reviewer/implementer agents",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"build": "bun scripts/build.ts"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@brainervirus/workit-cli": "^8.40.
|
|
43
|
-
"@brainervirus/workit-core": "^8.40.
|
|
42
|
+
"@brainervirus/workit-cli": "^8.40.6",
|
|
43
|
+
"@brainervirus/workit-core": "^8.40.6"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=24"
|