@cbartens/bkit 5.1.0 → 5.2.1
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/.bkit/README.md +11 -7
- package/.bkit/core/.agents/plugins/bkit/hooks/bkit-gateguard.cjs +39 -50
- package/.bkit/core/.agents/plugins/bkit/hooks/bkit-guardrails.cjs +74 -56
- package/.bkit/core/.agents/plugins/bkit/hooks/bkit-readguard.cjs +72 -0
- package/.bkit/core/.agents/rules.md +8 -4
- package/.bkit/core/.agents/shortcuts.md +1 -1
- package/.bkit/core/.bkit/LICENSE.md +18 -140
- package/.bkit/core/.bkit/README.md +10 -6
- package/.bkit/core/.bkit/cloud.md +12 -15
- package/.bkit/core/.bkit/comparison.md +66 -14
- package/.bkit/core/.bkit/install.md +31 -8
- package/.bkit/core/.bkit/jsonl.md +0 -1
- package/.bkit/core/.bkit/prompts.md +14 -13
- package/.bkit/core/.bkit/providers.md +92 -26
- package/.bkit/core/.bkit/templates.md +38 -11
- package/.bkit/core/.bkit/workflows.md +63 -41
- package/.bkit/core/.claude/hooks/bkit-gateguard.cjs +4 -3
- package/.bkit/core/.claude/hooks/bkit-readguard.cjs +60 -0
- package/.bkit/core/.codex/hooks/bkit-gateguard.cjs +8 -6
- package/.bkit/core/.codex/hooks/bkit-readguard.cjs +58 -0
- package/.bkit/core/.cursor/hooks/bkit-guardrails.cjs +12 -19
- package/.bkit/core/.cursor/hooks/bkit-readguard.cjs +59 -0
- package/.bkit/core/.opencode/plugin/bkit-gateguard.js +73 -22
- package/.bkit/core/.opencode/plugin/bkit-readguard.js +126 -0
- package/.bkit/core/docs/templates/bkit-audit-adoption.md +2 -2
- package/.bkit/core/docs/templates/bkit-plan.md +6 -3
- package/.bkit/core/engine/checks/after/auth.ts +32 -0
- package/.bkit/core/engine/checks/after/github.ts +4 -4
- package/.bkit/core/engine/checks/after/index.ts +36 -50
- package/.bkit/core/engine/checks/after/managed.ts +40 -0
- package/.bkit/core/engine/checks/before/index.ts +5 -4
- package/.bkit/core/engine/checks/before/mcp.ts +60 -54
- package/.bkit/core/engine/checks/status-holes.ts +1 -1
- package/.bkit/core/engine/checks/tips/catalogue.ts +356 -0
- package/.bkit/core/engine/checks/tips/detect.ts +144 -0
- package/.bkit/core/engine/checks/tips/index.ts +174 -0
- package/.bkit/core/engine/cli.ts +57 -9
- package/.bkit/core/engine/commands/install/doctor.ts +5 -1
- package/.bkit/core/engine/commands/install/install.ts +39 -9
- package/.bkit/core/engine/commands/install/uninstall.ts +32 -18
- package/.bkit/core/engine/commands/install/upgrade.ts +15 -28
- package/.bkit/core/engine/commands/launch.ts +33 -11
- package/.bkit/core/engine/commands/tips.ts +16 -0
- package/.bkit/core/engine/commands/workflow/runs.ts +57 -16
- package/.bkit/core/engine/commands/workflow/runtime.ts +10 -0
- package/.bkit/core/engine/commands/workflow/steps.ts +1 -0
- package/.bkit/core/engine/commands/workflow/tests.ts +647 -4
- package/.bkit/core/engine/commands/workflow/workstreams.ts +4 -4
- package/.bkit/core/engine/install/cloud-env.ts +7 -21
- package/.bkit/core/engine/install/hosts.ts +21 -0
- package/.bkit/core/engine/install/managed-block.ts +36 -0
- package/.bkit/core/engine/install/manifest.ts +46 -4
- package/.bkit/core/engine/install/modules/antigravity.ts +8 -7
- package/.bkit/core/engine/install/modules/claude.ts +6 -6
- package/.bkit/core/engine/install/modules/cloud.ts +2 -2
- package/.bkit/core/engine/install/modules/codex.ts +5 -5
- package/.bkit/core/engine/install/modules/core.ts +23 -9
- package/.bkit/core/engine/install/modules/cursor.ts +6 -6
- package/.bkit/core/engine/install/modules/opencode.ts +4 -4
- package/.bkit/core/engine/install/payload-links.ts +6 -10
- package/.bkit/core/engine/install/placeholders.ts +1 -1
- package/.bkit/core/engine/install/version-file.ts +17 -9
- package/.bkit/core/engine/install/write.ts +68 -1
- package/.bkit/core/engine/ledgers/telemetry.ts +0 -2
- package/.bkit/core/engine/shared/package-roots.ts +8 -10
- package/.bkit/core/hooks/antigravity-hook.js +67 -0
- package/.bkit/core/hooks/gateguard-edit-payload.js +4 -4
- package/.bkit/core/hooks/gateguard-engine.js +16 -6
- package/.bkit/core/hooks/guardrails-read.js +23 -0
- package/.bkit/core/hooks/readguard-engine.js +259 -0
- package/.bkit/core/hooks/readguard-payload.js +67 -0
- package/.bkit/core/prompts/bkit-audit-generate.md +1 -0
- package/.bkit/core/prompts/bkit-build-challenge-1.md +1 -0
- package/.bkit/core/prompts/bkit-build-challenge-2.md +1 -0
- package/.bkit/core/prompts/bkit-build-challenge-reconcile.md +1 -0
- package/.bkit/core/prompts/bkit-build-challenge-remediate.md +1 -0
- package/.bkit/core/prompts/bkit-build-challenge-tests.md +1 -0
- package/.bkit/core/prompts/bkit-build-install-skills.md +1 -0
- package/.bkit/core/prompts/bkit-build-plan-current.md +1 -0
- package/.bkit/core/prompts/bkit-build-plan-execute.md +5 -1
- package/.bkit/core/prompts/bkit-build-plan-gaps-remediate.md +1 -0
- package/.bkit/core/prompts/bkit-build-plan-verify.md +11 -3
- package/.bkit/core/prompts/bkit-build-summary.md +1 -0
- package/.bkit/core/prompts/bkit-debug-abort-handover.md +1 -0
- package/.bkit/core/prompts/bkit-debug-failure-diagnose.md +1 -0
- package/.bkit/core/prompts/bkit-debug-failure-remediate.md +1 -0
- package/.bkit/core/prompts/bkit-debug-failure-soak.md +1 -0
- package/.bkit/core/prompts/bkit-debug-summary.md +1 -0
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-1.md +1 -0
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-2.md +1 -0
- package/.bkit/core/prompts/bkit-design-brainstorm-ideate-3.md +1 -0
- package/.bkit/core/prompts/bkit-design-generate.md +9 -4
- package/.bkit/core/prompts/bkit-design-organise.md +1 -0
- package/.bkit/core/prompts/bkit-design-review-1.md +1 -0
- package/.bkit/core/prompts/bkit-design-review-2.md +1 -0
- package/.bkit/core/prompts/bkit-design-spike.md +1 -0
- package/.bkit/core/prompts/bkit-design-summary.md +1 -0
- package/.bkit/core/prompts/bkit-design-update.md +1 -0
- package/.bkit/core/prompts/bkit-plan-complexity-check.md +1 -0
- package/.bkit/core/prompts/bkit-plan-complexity-split.md +3 -2
- package/.bkit/core/prompts/bkit-plan-generate.md +1 -0
- package/.bkit/core/prompts/bkit-plan-review-1.md +1 -0
- package/.bkit/core/prompts/bkit-plan-review-2.md +1 -0
- package/.bkit/core/prompts/bkit-plan-review-3.md +1 -0
- package/.bkit/core/prompts/bkit-plan-scope-check-1.md +2 -1
- package/.bkit/core/prompts/bkit-plan-scope-check-2.md +2 -1
- package/.bkit/core/prompts/bkit-plan-summary.md +1 -0
- package/.bkit/core/prompts/bkit-plan-update.md +2 -1
- package/.bkit/core/prompts/bkit-ship-conflict-resolve.md +1 -0
- package/.bkit/core/prompts/bkit-ship-deferred-sweep.md +1 -0
- package/.bkit/core/prompts/bkit-ship-summary.md +1 -0
- package/.bkit/core/prompts/bkit-ship-update-docs.md +1 -0
- package/.bkit/core/prompts/bkit-utility-compress-markdown.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-decisions.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-deferrals.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-documentation.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-failures.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-knowledge.md +1 -0
- package/.bkit/core/prompts/bkit-utility-update-roadmap.md +1 -0
- package/.bkit/core/workflows/bkit-build.md +33 -21
- package/.bkit/core/workflows/bkit-debug.md +29 -22
- package/.bkit/core/workflows/bkit-design.md +81 -38
- package/.bkit/core/workflows/bkit-plan.md +8 -2
- package/.bkit/core/workflows/bkit-ship.md +8 -2
- package/.bkit/shared/.agents/plugins/bkit/hooks.json +13 -3
- package/.bkit/shared/.claude/settings.json +19 -0
- package/.bkit/shared/.codex/hooks.json +21 -0
- package/.bkit/shared/.cursor/hooks.json +6 -1
- package/.bkit/shared/.opencode/opencode.json +1 -1
- package/.bkit/shared/docs/deployments.md +1 -1
- package/.bkit/shared/docs/testing.md +12 -1
- package/.bkit/templates/.github/dependabot.yml +6 -0
- package/.bkit/templates/.github/renovate.json5 +3 -3
- package/.bkit/templates/.github/workflows/bkit-ci.yml +0 -13
- package/.bkit/templates/.prettierignore +1 -1
- package/.bkit/templates/context/bkit-expo.md +22 -13
- package/.bkit/templates/context/bkit-github.md +20 -6
- package/.bkit/templates/context/bkit-inngest.md +10 -4
- package/.bkit/templates/context/bkit-maestro.md +5 -5
- package/.bkit/templates/context/bkit-playwright.md +3 -3
- package/.bkit/templates/context/bkit-sentry.md +6 -5
- package/.bkit/templates/context/bkit-stripe.md +31 -8
- package/.bkit/templates/scripts/ci/check-accepted-divergences.mjs +65 -19
- package/.bkit/templates/scripts/ci/check-accepted-divergences.test.mjs +34 -0
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.mjs +33 -12
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.test.mjs +54 -0
- package/.bkit/templates/scripts/launchd/bkit-launchd-env.sh +76 -6
- package/.bkit/templates/slop-scan.config.json +7 -2
- package/CHANGELOG.md +50 -0
- package/LICENSE.md +21 -161
- package/README.md +61 -28
- package/dist/checks/after/auth.js +28 -0
- package/dist/checks/after/github.js +4 -4
- package/dist/checks/after/index.js +29 -45
- package/dist/checks/after/managed.js +40 -1
- package/dist/checks/before/index.js +5 -4
- package/dist/checks/before/mcp.js +53 -53
- package/dist/checks/status-holes.js +1 -1
- package/dist/checks/tips/catalogue.js +297 -0
- package/dist/checks/tips/detect.js +130 -0
- package/dist/checks/tips/index.js +146 -0
- package/dist/cli.js +47 -9
- package/dist/commands/install/doctor.js +5 -1
- package/dist/commands/install/install.js +27 -7
- package/dist/commands/install/uninstall.js +31 -16
- package/dist/commands/install/upgrade.js +15 -32
- package/dist/commands/launch.js +27 -11
- package/dist/commands/tips.js +10 -0
- package/dist/commands/workflow/runs.js +52 -16
- package/dist/commands/workflow/runtime.js +8 -0
- package/dist/commands/workflow/steps.js +1 -0
- package/dist/commands/workflow/tests.js +541 -4
- package/dist/commands/workflow/workstreams.js +4 -4
- package/dist/install/cloud-env.js +3 -14
- package/dist/install/hosts.js +22 -0
- package/dist/install/managed-block.js +36 -0
- package/dist/install/manifest.js +45 -4
- package/dist/install/modules/antigravity.js +8 -7
- package/dist/install/modules/claude.js +6 -6
- package/dist/install/modules/cloud.js +2 -2
- package/dist/install/modules/codex.js +5 -5
- package/dist/install/modules/core.js +14 -5
- package/dist/install/modules/cursor.js +6 -6
- package/dist/install/modules/opencode.js +4 -4
- package/dist/install/payload-links.js +5 -5
- package/dist/install/placeholders.js +1 -1
- package/dist/install/version-file.js +12 -3
- package/dist/install/write.js +61 -2
- package/dist/shared/package-roots.js +8 -11
- package/package.json +4 -6
- package/.bkit/core/LICENSE.md +0 -149
- package/.bkit/shared/LICENSE.md +0 -22
- package/.bkit/templates/LICENSE.md +0 -22
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* - a row names a decision absent from the table, or carries no reason.
|
|
14
14
|
*
|
|
15
15
|
* A new comparison inside an already-registered step is a new site: the site key is
|
|
16
|
-
* `file#job#step#field`.
|
|
16
|
+
* `file#job#step#field`. The workflow-level `concurrency:` block keys as
|
|
17
|
+
* `file#(workflow)#concurrency#field`. Only `.github/workflows/*.yml` is scanned; scripts,
|
|
18
|
+
* hooks and tests are not.
|
|
17
19
|
*
|
|
18
20
|
* Usage: node scripts/ci/check-accepted-divergences.mjs [--workflows=<dir>] [--registry=<file>]
|
|
19
21
|
* Exit: 0 = every site registered and every row live, 1 = drift.
|
|
@@ -32,9 +34,44 @@ function normalizedField(match) {
|
|
|
32
34
|
return match.replace(/\s+/g, " ").trim();
|
|
33
35
|
}
|
|
34
36
|
|
|
37
|
+
/** The `job` of a site read outside `jobs:` (workflow-level keys such as `concurrency:`); its `step` is the top-level key. */
|
|
38
|
+
export const WORKFLOW_LEVEL = "(workflow)";
|
|
39
|
+
|
|
40
|
+
/** Leading-space count of a line. */
|
|
41
|
+
function indentOf(line) {
|
|
42
|
+
return line.length - line.trimStart().length;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Name of the step whose `- key: value` item starts at `start`: its `name:`, else `uses:`,
|
|
47
|
+
* else `id:`, else `step-<n>` (n = 1-based position in the job). Only keys at the item's own
|
|
48
|
+
* key column count, so a `name:` nested in a `with:` or `run:` block is never mistaken for it.
|
|
49
|
+
*/
|
|
50
|
+
function stepName(lines, start, dashIndent, ordinal) {
|
|
51
|
+
const keyIndent = dashIndent + 2;
|
|
52
|
+
const found = {};
|
|
53
|
+
for (let j = start; j < lines.length; j++) {
|
|
54
|
+
const text = lines[j];
|
|
55
|
+
if (j > start && text.trim() !== "" && indentOf(text) <= dashIndent) break;
|
|
56
|
+
const m =
|
|
57
|
+
j === start
|
|
58
|
+
? /^\s*- ([A-Za-z_-]+):\s*(.*?)\s*$/.exec(text)
|
|
59
|
+
: indentOf(text) === keyIndent
|
|
60
|
+
? /^\s*([A-Za-z_-]+):\s*(.*?)\s*$/.exec(text)
|
|
61
|
+
: null;
|
|
62
|
+
if (m && ["name", "uses", "id"].includes(m[1]) && !(m[1] in found)) {
|
|
63
|
+
found[m[1]] = m[2].replace(/\s+#.*$/, "").replace(/^["']|["']$/g, "");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return found.name || found.uses || found.id || `step-${ordinal}`;
|
|
67
|
+
}
|
|
68
|
+
|
|
35
69
|
/**
|
|
36
70
|
* Collect every event-keyed site in the workflow files under `workflowsDir`.
|
|
37
71
|
* A line-based scan — deliberately no YAML dependency, so the guard is portable.
|
|
72
|
+
* Sites outside `jobs:` (the workflow-level `concurrency:` block) key as job `(workflow)`,
|
|
73
|
+
* step = the top-level key. A step is any `- key:` item under a job's `steps:`, whatever its
|
|
74
|
+
* first key (`name`, `uses`, `id`, `run`, `if`, ...).
|
|
38
75
|
* @returns {Array<{file: string, job: string, step: string, field: string, line: number}>}
|
|
39
76
|
*/
|
|
40
77
|
export function collectSites(workflowsDir, fileFilter = /\.(ya?ml)$/) {
|
|
@@ -44,30 +81,39 @@ export function collectSites(workflowsDir, fileFilter = /\.(ya?ml)$/) {
|
|
|
44
81
|
if (!fileFilter.test(name)) continue;
|
|
45
82
|
const file = path.join(".github", "workflows", name).split(path.sep).join("/");
|
|
46
83
|
const lines = fs.readFileSync(path.join(workflowsDir, name), "utf-8").split("\n");
|
|
47
|
-
let job =
|
|
84
|
+
let job = WORKFLOW_LEVEL;
|
|
48
85
|
let step = "";
|
|
49
86
|
let inJobs = false;
|
|
87
|
+
let stepsIndent = -1;
|
|
88
|
+
let stepOrdinal = 0;
|
|
50
89
|
const seen = new Set();
|
|
51
90
|
lines.forEach((line, i) => {
|
|
52
91
|
const code = line.replace(/\s+#.*$/, "");
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
inJobs = false;
|
|
60
|
-
}
|
|
61
|
-
if (!inJobs) return;
|
|
62
|
-
const jobMatch = /^ {2}([A-Za-z0-9_.-]+):\s*$/.exec(code);
|
|
63
|
-
if (jobMatch) {
|
|
64
|
-
job = jobMatch[1];
|
|
65
|
-
step = "";
|
|
66
|
-
return;
|
|
92
|
+
const topKey = /^([A-Za-z_-]+):/.exec(code);
|
|
93
|
+
if (topKey) {
|
|
94
|
+
inJobs = topKey[1] === "jobs";
|
|
95
|
+
job = WORKFLOW_LEVEL;
|
|
96
|
+
step = inJobs ? "" : topKey[1];
|
|
97
|
+
stepsIndent = -1;
|
|
67
98
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
99
|
+
if (inJobs && !topKey) {
|
|
100
|
+
const jobMatch = /^ {2}([A-Za-z0-9_.-]+):\s*$/.exec(code);
|
|
101
|
+
if (jobMatch) {
|
|
102
|
+
job = jobMatch[1];
|
|
103
|
+
step = "";
|
|
104
|
+
stepsIndent = -1;
|
|
105
|
+
stepOrdinal = 0;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const stepsMatch = /^(\s+)steps:\s*$/.exec(code);
|
|
109
|
+
if (stepsMatch) {
|
|
110
|
+
stepsIndent = stepsMatch[1].length + 2;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (stepsIndent >= 0 && indentOf(line) === stepsIndent && /^\s*- [A-Za-z_-]+:/.test(code)) {
|
|
114
|
+
stepOrdinal++;
|
|
115
|
+
step = stepName(lines, i, stepsIndent, stepOrdinal);
|
|
116
|
+
}
|
|
71
117
|
}
|
|
72
118
|
for (const m of code.matchAll(FIELD_RE)) {
|
|
73
119
|
const field = normalizedField(m[0]);
|
|
@@ -75,6 +75,40 @@ test("collects every event-keyed site with its job and step", () => {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
+
test("collects the workflow-level concurrency block and steps whose first key is not name/uses", () => {
|
|
79
|
+
const yml = [
|
|
80
|
+
"name: CI",
|
|
81
|
+
"concurrency:",
|
|
82
|
+
" group: ci-${{ github.event_name }}",
|
|
83
|
+
" cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}",
|
|
84
|
+
"jobs:",
|
|
85
|
+
" j:",
|
|
86
|
+
" steps:",
|
|
87
|
+
" - id: first",
|
|
88
|
+
" name: Named After Id",
|
|
89
|
+
" if: github.ref_name == 'dev'",
|
|
90
|
+
" - run: echo ${{ github.base_ref }}",
|
|
91
|
+
" - if: github.head_ref",
|
|
92
|
+
" uses: actions/checkout@v4",
|
|
93
|
+
" with:",
|
|
94
|
+
" name: not-a-step-name",
|
|
95
|
+
"",
|
|
96
|
+
].join("\n");
|
|
97
|
+
withWorkflows(yml, (dir) => {
|
|
98
|
+
const keys = collectSites(dir).map((s) => `${s.job}#${s.step}#${s.field}`);
|
|
99
|
+
for (const want of [
|
|
100
|
+
"(workflow)#concurrency#github.event_name",
|
|
101
|
+
"(workflow)#concurrency#github.ref",
|
|
102
|
+
"j#Named After Id#github.ref_name",
|
|
103
|
+
"j#step-2#github.base_ref",
|
|
104
|
+
"j#actions/checkout@v4#github.head_ref",
|
|
105
|
+
]) {
|
|
106
|
+
assert(keys.includes(want), `missing ${want} in ${keys.join(", ")}`);
|
|
107
|
+
}
|
|
108
|
+
assert(keys.length === 5, `expected 5 sites, got ${keys.length}`);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
78
112
|
test("an unregistered site is reported missing", () => {
|
|
79
113
|
const sites = [
|
|
80
114
|
{ file: ".github/workflows/bkit-ci.yml", job: "j", step: "s", field: "github.event_name" },
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
* is not an ancestor of HEAD (a force-push rewrote the branch), the base falls back to
|
|
13
13
|
* `event.before`.
|
|
14
14
|
*
|
|
15
|
-
* Usage: node scripts/ci/lanes/resolve-push-base.mjs
|
|
16
|
-
*
|
|
15
|
+
* Usage: node scripts/ci/lanes/resolve-push-base.mjs
|
|
16
|
+
* (env: GH_TOKEN, REPO, BRANCH, BEFORE_SHA, WORKFLOW_FILE; optional SOURCE_FILE)
|
|
17
|
+
* Output: the base SHA on stdout; the chosen source (`last-green-run`, `event-before`, ...) on
|
|
18
|
+
* stderr, and in SOURCE_FILE when that env var names a file. Exit 0 always — every
|
|
19
|
+
* failure (gh, git, unparseable output) falls back to `event.before`, itself a valid base.
|
|
17
20
|
*/
|
|
18
21
|
|
|
19
22
|
import { spawnSync } from "node:child_process";
|
|
23
|
+
import fs from "node:fs";
|
|
20
24
|
import { pathToFileURL } from "node:url";
|
|
21
25
|
|
|
22
26
|
/** The workflow whose runs establish the base. Set WORKFLOW_FILE if your CI file has another name. */
|
|
@@ -69,30 +73,47 @@ function lastGreenPushSha(repo, branch, now = new Date()) {
|
|
|
69
73
|
);
|
|
70
74
|
return "";
|
|
71
75
|
}
|
|
76
|
+
// Unparseable output throws; main() catches it and falls back to event.before.
|
|
72
77
|
return newestRunSha(JSON.parse(stdout || "[]"));
|
|
73
78
|
}
|
|
74
79
|
|
|
80
|
+
/** True only when `sha` is an ancestor of HEAD; any git failure is "not an ancestor" (logged). */
|
|
75
81
|
function isAncestorOfHead(sha) {
|
|
76
82
|
const { status, error } = spawnSync("git", ["merge-base", "--is-ancestor", sha, "HEAD"], {
|
|
77
83
|
stdio: "ignore",
|
|
78
84
|
});
|
|
79
|
-
if (error) throw error;
|
|
80
85
|
// 0 = ancestor. 1 = not an ancestor. 128 = the SHA is not in this clone (a force-push dropped
|
|
81
86
|
// it from the branch), which is also "not an ancestor". Anything else is a real git failure.
|
|
82
|
-
if (status === 0) return true;
|
|
83
|
-
if (status === 1 || status === 128) return false;
|
|
84
|
-
|
|
87
|
+
if (!error && status === 0) return true;
|
|
88
|
+
if (!error && (status === 1 || status === 128)) return false;
|
|
89
|
+
const reason = error ? error.message : `git exited ${status}`;
|
|
90
|
+
console.error(
|
|
91
|
+
`[resolve-push-base] cannot test ancestry of ${sha} (${reason}) — using event.before`,
|
|
92
|
+
);
|
|
93
|
+
return false;
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
export function main(env) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
let result;
|
|
98
|
+
try {
|
|
99
|
+
result = choosePushBase({
|
|
100
|
+
lastGreenSha: lastGreenPushSha(env.REPO, env.BRANCH),
|
|
101
|
+
beforeSha: env.BEFORE_SHA,
|
|
102
|
+
isAncestor: isAncestorOfHead,
|
|
103
|
+
});
|
|
104
|
+
} catch (err) {
|
|
105
|
+
console.error(`[resolve-push-base] unexpected failure (${err.message}) — using event.before`);
|
|
106
|
+
result = { base: env.BEFORE_SHA ?? "", source: "event-before (resolver failed)" };
|
|
107
|
+
}
|
|
108
|
+
const { base, source } = result;
|
|
94
109
|
console.error(`[resolve-push-base] base=${base || "(none)"} source=${source}`);
|
|
95
110
|
process.stdout.write(`${base}\n`);
|
|
111
|
+
if (env.SOURCE_FILE) {
|
|
112
|
+
// Callback form: a failed write is logged and never changes the exit code.
|
|
113
|
+
fs.writeFile(env.SOURCE_FILE, `${source}\n`, (err) => {
|
|
114
|
+
if (err) console.error(`[resolve-push-base] could not write SOURCE_FILE (${err.message})`);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
96
117
|
}
|
|
97
118
|
|
|
98
119
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) main(process.env);
|
|
@@ -8,8 +8,40 @@
|
|
|
8
8
|
* Exit: 0 = all tests passed, 1 = at least one test failed.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import { spawnSync } from "node:child_process";
|
|
12
|
+
import fs from "node:fs";
|
|
13
|
+
import os from "node:os";
|
|
14
|
+
import path from "node:path";
|
|
15
|
+
import { fileURLToPath } from "node:url";
|
|
11
16
|
import { choosePushBase, newestRunSha } from "./resolve-push-base.mjs";
|
|
12
17
|
|
|
18
|
+
const SCRIPT = fileURLToPath(new URL("./resolve-push-base.mjs", import.meta.url));
|
|
19
|
+
|
|
20
|
+
/** Run the script with fake `gh` / `git` binaries first on PATH. */
|
|
21
|
+
function runWithFakes({ gh, git }) {
|
|
22
|
+
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "push-base-"));
|
|
23
|
+
try {
|
|
24
|
+
fs.writeFileSync(path.join(dir, "gh"), `#!/bin/sh\n${gh}\n`, { mode: 0o755 });
|
|
25
|
+
fs.writeFileSync(path.join(dir, "git"), `#!/bin/sh\n${git}\n`, { mode: 0o755 });
|
|
26
|
+
const sourceFile = path.join(dir, "source");
|
|
27
|
+
const r = spawnSync(process.execPath, [SCRIPT], {
|
|
28
|
+
encoding: "utf8",
|
|
29
|
+
env: {
|
|
30
|
+
...process.env,
|
|
31
|
+
PATH: `${dir}${path.delimiter}${process.env.PATH}`,
|
|
32
|
+
REPO: "o/r",
|
|
33
|
+
BRANCH: "dev",
|
|
34
|
+
BEFORE_SHA: "b".repeat(40),
|
|
35
|
+
SOURCE_FILE: sourceFile,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const source = fs.existsSync(sourceFile) ? fs.readFileSync(sourceFile, "utf8").trim() : "";
|
|
39
|
+
return { status: r.status, stdout: r.stdout.trim(), source };
|
|
40
|
+
} finally {
|
|
41
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
13
45
|
let passed = 0;
|
|
14
46
|
let failed = 0;
|
|
15
47
|
|
|
@@ -82,5 +114,27 @@ test("no usable run → empty sha (the caller falls back to event.before)", () =
|
|
|
82
114
|
assert(newestRunSha([{ run_number: "x", head_sha: "a" }, { head_sha: 3 }]) === "", "malformed");
|
|
83
115
|
});
|
|
84
116
|
|
|
117
|
+
const RUNS = `echo '[{"run_number":1,"head_sha":"${"a".repeat(40)}"}]'`;
|
|
118
|
+
|
|
119
|
+
test("a git failure while testing ancestry exits 0 with event.before", () => {
|
|
120
|
+
const r = runWithFakes({ gh: RUNS, git: "exit 3" });
|
|
121
|
+
assert(r.status === 0, `exit ${r.status}`);
|
|
122
|
+
assert(r.stdout === "b".repeat(40), r.stdout);
|
|
123
|
+
assert(r.source.startsWith("event-before"), r.source);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
test("unparseable gh output exits 0 with event.before", () => {
|
|
127
|
+
const r = runWithFakes({ gh: "echo 'not json'", git: "exit 0" });
|
|
128
|
+
assert(r.status === 0, `exit ${r.status}`);
|
|
129
|
+
assert(r.stdout === "b".repeat(40), r.stdout);
|
|
130
|
+
assert(r.source.startsWith("event-before"), r.source);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
test("a green ancestor run reports last-green-run as the source", () => {
|
|
134
|
+
const r = runWithFakes({ gh: RUNS, git: "exit 0" });
|
|
135
|
+
assert(r.status === 0 && r.stdout === "a".repeat(40), JSON.stringify(r));
|
|
136
|
+
assert(r.source === "last-green-run", r.source);
|
|
137
|
+
});
|
|
138
|
+
|
|
85
139
|
console.log(`\n${passed} passed, ${failed} failed`);
|
|
86
140
|
process.exit(failed > 0 ? 1 : 0);
|
|
@@ -3,27 +3,56 @@
|
|
|
3
3
|
# bkit install does not write this file and does not overwrite a copy.
|
|
4
4
|
# Adapt the env file path to your machine setup.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Syncs the BKIT_* keys of an env file into launchd with `launchctl setenv`, so GUI
|
|
7
7
|
# apps launched from the Dock or Spotlight — which never run the login shell or
|
|
8
8
|
# direnv — see the BKIT_* tokens. Logs key names only, never values.
|
|
9
|
-
|
|
9
|
+
#
|
|
10
|
+
# - Only BKIT_* keys are loaded; other keys are skipped.
|
|
11
|
+
# - An empty value (KEY="") unsets the key.
|
|
12
|
+
# - Loaded key names are recorded in a state file next to the env file
|
|
13
|
+
# (.launchd-loaded-keys, mode 600). A recorded key that is gone from the env file
|
|
14
|
+
# is unset on the next run, so removing a key revokes it.
|
|
15
|
+
# - A failing key is logged and does not stop the others; the exit status is 1 if any failed.
|
|
16
|
+
#
|
|
17
|
+
# `launchctl setenv` exposes every loaded value to every app started in this login
|
|
18
|
+
# session, not only the apps that need it.
|
|
19
|
+
set -u
|
|
10
20
|
|
|
11
21
|
LOG_FILE="${BKIT_LAUNCHD_LOG:-$HOME/Library/Logs/bkit-launchd.log}"
|
|
12
22
|
mkdir -p "$(dirname "$LOG_FILE")" 2>/dev/null || true
|
|
13
23
|
exec >> "$LOG_FILE" 2>&1
|
|
14
24
|
|
|
15
25
|
ENV_FILE="${1:-${BKIT_LAUNCHD_ENV:-$HOME/.config/bkit/launchd.env}}"
|
|
26
|
+
STATE_FILE="${BKIT_LAUNCHD_STATE:-$(dirname "$ENV_FILE")/.launchd-loaded-keys}"
|
|
27
|
+
|
|
28
|
+
log() {
|
|
29
|
+
echo "$(date '+%Y-%m-%d %H:%M:%S') [bkit-launchd] $*"
|
|
30
|
+
}
|
|
16
31
|
|
|
17
32
|
if [ ! -f "$ENV_FILE" ]; then
|
|
18
|
-
|
|
33
|
+
log "env file not found at $ENV_FILE — skipping"
|
|
19
34
|
exit 0
|
|
20
35
|
fi
|
|
21
36
|
|
|
22
37
|
if ! command -v launchctl >/dev/null 2>&1; then
|
|
23
|
-
|
|
38
|
+
log "launchctl not found — skipping"
|
|
24
39
|
exit 0
|
|
25
40
|
fi
|
|
26
41
|
|
|
42
|
+
failed=0
|
|
43
|
+
wanted=" " # keys set from the env file this run, space-delimited
|
|
44
|
+
retry="" # keys whose unsetenv failed, kept in the state file for the next run
|
|
45
|
+
|
|
46
|
+
unset_key() {
|
|
47
|
+
if launchctl unsetenv "$1"; then
|
|
48
|
+
log "unsetenv $1 ($2)"
|
|
49
|
+
else
|
|
50
|
+
log "unsetenv $1 FAILED"
|
|
51
|
+
retry="$retry $1"
|
|
52
|
+
failed=1
|
|
53
|
+
fi
|
|
54
|
+
}
|
|
55
|
+
|
|
27
56
|
while IFS= read -r line || [ -n "$line" ]; do
|
|
28
57
|
case "$line" in
|
|
29
58
|
"" | "#"*) continue ;;
|
|
@@ -37,6 +66,11 @@ while IFS= read -r line || [ -n "$line" ]; do
|
|
|
37
66
|
val="${line#*=}"
|
|
38
67
|
case "$key" in
|
|
39
68
|
"" | *[!A-Za-z0-9_]*) continue ;;
|
|
69
|
+
BKIT_*) ;;
|
|
70
|
+
*)
|
|
71
|
+
log "skip $key (not a BKIT_ key)"
|
|
72
|
+
continue
|
|
73
|
+
;;
|
|
40
74
|
esac
|
|
41
75
|
case "$val" in
|
|
42
76
|
\"*\")
|
|
@@ -48,6 +82,42 @@ while IFS= read -r line || [ -n "$line" ]; do
|
|
|
48
82
|
val="${val%\'}"
|
|
49
83
|
;;
|
|
50
84
|
esac
|
|
51
|
-
|
|
52
|
-
|
|
85
|
+
if [ -z "$val" ]; then
|
|
86
|
+
unset_key "$key" "empty value"
|
|
87
|
+
continue
|
|
88
|
+
fi
|
|
89
|
+
if launchctl setenv "$key" "$val"; then
|
|
90
|
+
log "setenv $key"
|
|
91
|
+
else
|
|
92
|
+
log "setenv $key FAILED"
|
|
93
|
+
failed=1
|
|
94
|
+
fi
|
|
95
|
+
wanted="$wanted$key "
|
|
53
96
|
done < "$ENV_FILE"
|
|
97
|
+
|
|
98
|
+
if [ -f "$STATE_FILE" ]; then
|
|
99
|
+
while IFS= read -r prior || [ -n "$prior" ]; do
|
|
100
|
+
case "$prior" in
|
|
101
|
+
"" | *[!A-Za-z0-9_]*) continue ;;
|
|
102
|
+
BKIT_*) ;;
|
|
103
|
+
*) continue ;;
|
|
104
|
+
esac
|
|
105
|
+
case "$wanted" in
|
|
106
|
+
*" $prior "*) ;;
|
|
107
|
+
*) unset_key "$prior" "removed from env file" ;;
|
|
108
|
+
esac
|
|
109
|
+
done < "$STATE_FILE"
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
(
|
|
113
|
+
umask 077
|
|
114
|
+
for k in $wanted $retry; do
|
|
115
|
+
printf '%s\n' "$k"
|
|
116
|
+
done > "$STATE_FILE"
|
|
117
|
+
) || {
|
|
118
|
+
log "could not write $STATE_FILE"
|
|
119
|
+
failed=1
|
|
120
|
+
}
|
|
121
|
+
chmod 600 "$STATE_FILE" 2>/dev/null || true
|
|
122
|
+
|
|
123
|
+
[ "$failed" -eq 0 ] || exit 1
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
"files": [".opencode/plugin/bkit-gateguard.js"],
|
|
84
|
+
"files": [".opencode/plugin/bkit-gateguard.js", ".opencode/plugin/bkit-readguard.js"],
|
|
85
85
|
"rules": {
|
|
86
86
|
"defensive.empty-catch": {
|
|
87
87
|
"enabled": false
|
|
@@ -94,7 +94,12 @@
|
|
|
94
94
|
"**/.cursor/hooks/bkit-gateguard.cjs",
|
|
95
95
|
"**/.codex/hooks/bkit-gateguard.cjs",
|
|
96
96
|
"**/.agents/plugins/bkit/hooks/bkit-gateguard.cjs",
|
|
97
|
-
"**/.opencode/plugin/bkit-gateguard.js"
|
|
97
|
+
"**/.opencode/plugin/bkit-gateguard.js",
|
|
98
|
+
"**/.claude/hooks/bkit-readguard.cjs",
|
|
99
|
+
"**/.cursor/hooks/bkit-readguard.cjs",
|
|
100
|
+
"**/.codex/hooks/bkit-readguard.cjs",
|
|
101
|
+
"**/.agents/plugins/bkit/hooks/bkit-readguard.cjs",
|
|
102
|
+
"**/.opencode/plugin/bkit-readguard.js"
|
|
98
103
|
],
|
|
99
104
|
"rules": {
|
|
100
105
|
"structure.duplicate-function-signatures": {
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,56 @@ Format: `## [version] — YYYY-MM-DD`
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## [5.2.1] — 2026-10-15
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **`/bkit-design` Grill interviews in every runtime except a GitHub Actions run.** `runtimeHeadless` is true only for `GITHUB_ACTION`; `CLOUD_CURSOR` and `UNKNOWN` now count as attended, so Grill asks and waits. `grill=false` still skips; `BKIT_RUNTIME` still overrides.
|
|
16
|
+
- **`bkit-cloud.yml` offers `design` again** in `workflow_dispatch`. A dispatched design runs headless: Grill records its recommended answers as `Assumed, not confirmed` instead of waiting.
|
|
17
|
+
- **Docs: why bkit ships no compression proxy** (#545). `.bkit/providers.md` and the README FAQ: caveman and Headroom saved ~1–3% of token cost on 456 real Claude Code transcripts, and Headroom's text model rewrote code; bkit narrows reads instead.
|
|
18
|
+
|
|
19
|
+
## [5.2.0] — 2026-10-15
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- **Test-first build** (#554). Every plan task carries a `**Test first:**` line naming its tests (file + test name, `;`-separated) or `n/a` with a reason; plan scope-check flags a missing, malformed or unjustified line. `bkit tests red` runs one test file through the consumer's `bkit:test:file` script and records a red only when the named test ran and failed (refusals: `no-report`, `not-run`, `passed`, `skipped`, `exit-mismatch`). `bkit tests green` runs before plan-verify: each planned test has a red, is unchanged since, and passes now. `bkit:test:file` is consumer-declared (one test file, JUnit to `$BKIT_TEST_REPORT`); until it exists the `test-file-script-missing` advisory fires and `/bkit-build` reports test-first as not enforced.
|
|
24
|
+
- **`/bkit-design` grills the human first** (#548). New Step 3 (Grill) asks decision questions in numbered rounds, each with a recommended answer, until nothing is left, the human says stop, or 10 rounds; unanswered questions are recorded as "assumed, not confirmed". Answers go to `design-grill-{RUN}.md` and `design-input-{RUN}.md`; design-generate follows settled answers and records any departure as a Decisions row plus an open question. `grill=false` skips it; waiting on the human does not count toward the one-hour limit; `design` is removed from the manual `bkit-cloud.yml` choices. Steps 3-11 are renumbered 4-12.
|
|
25
|
+
- **`bkit tips`** (#543). Lists what the repo has not set up yet (tracker, tokens, templates, cost settings), most useful first, each with an instruction to paste to the agent. Every workflow appends its most relevant tip under `## Setup Tips`; `bkit install` / `check` / `doctor` list all firing tips in `.bkit/advisories.md`. Tips reuse advisory checks, so one `bkit.ignoreAdvisories` entry silences both. Local only; always exits 0.
|
|
26
|
+
- **ReadGuard hook** (#550), advisory, all five hosts: re-reading lines already read in the same conversation from an unchanged file → told to use the earlier output. Covers read-tool calls and plain `cat` / `sed -n` / `head` / `tail`; resets after a conversation summary on Claude Code, Cursor, Codex and opencode 1.x.
|
|
27
|
+
- **Reading rules** (#550). `.agents/rules.md` gains Language server first, Narrow text search first, Code reads and Command output; every prompt header carries a one-line Code reads reminder.
|
|
28
|
+
- **`bkit-managed-duplicate` advisory** (#553). `bkit check` names any managed file holding a copy of its block outside `bkit:start` / `bkit:end`.
|
|
29
|
+
- **GitHub Release per tag.** The release workflow creates one with the version's `CHANGELOG.md` block as notes plus an npmjs version link. A tag with no `CHANGELOG.md` block fails before `npm publish`.
|
|
30
|
+
- **Antigravity gates secret reads.** `bkit-guardrails.cjs` also runs on `view_file` (`hooks.json` matcher `view_file|run_command`): `*.pem` / `*.p12` / `id_rsa` → deny, `.env` / `.env.*` → ask (`.env.example` allowed) — same rules as Cursor via shared hook part `guardrails-read.js`. 5.1.0 installs get the matcher on `bkit upgrade`.
|
|
31
|
+
- **`/bkit-design` Grill runs headless.** `bkit runtime detect` / `assert` report `runtimeHeadless` (true for `GITHUB_ACTION`, `CLOUD_CURSOR`, `UNKNOWN`; `BKIT_RUNTIME` overrides). Headless → Grill asks nothing and records each recommended answer as `Assumed, not confirmed`, so a design dispatch from an older copied `bkit-cloud.yml` no longer stalls.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- **Licence: MIT, for everything.** bkit is free for any use, commercial included, under the MIT licence; it replaces the PolyForm Noncommercial / Small Business pair and the MIT-0 shared and template folders. The per-folder `LICENSE.md` files in `.bkit/core/`, `.bkit/shared/` and `.bkit/templates/` are gone; the root `LICENSE.md` covers the package, and install writes the same MIT text to `.bkit/LICENSE.md`. The managed marker no longer names a licence (``bkit:managed vX.Y.Z — do not edit; run `bkit upgrade` to refresh``), and `bkit upgrade` restamps every one and removes the stale `.bkit/templates/LICENSE.md` copy. Contributions no longer need a CLA: a pull request is licensed under MIT.
|
|
36
|
+
- **Cloud setup sets no compaction threshold** (#549). `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` is no longer added; `.bkit/cloud.md` points to `autoCompactWindow` in `.claude/settings.json`, and `.bkit/providers.md` § Context compaction lists the setting per host and the floor below which a subagent gets killed. New rule: logs, errors and database reads prefer an enabled context-fetch block or the provider's CLI over MCP.
|
|
37
|
+
- **Dependency updater templates wait 7 days.** Renovate `minimumReleaseAge` is `7 days` (was `1 day`); Dependabot gets a 7-day `cooldown`.
|
|
38
|
+
- **Context-fetch templates bound their output** (#550): log tails, caps, time windows and type filters at the source.
|
|
39
|
+
- **Templates and scripts** (#551). `resolve-push-base.mjs` falls back to `event.before` on any `gh` / `git` failure and reports its source; `check-accepted-divergences` scans the workflow-level `concurrency` block and names steps starting with `id:` or `run:`; the launchd loader unsets removed keys, treats an empty value as unset, and keeps loading after one failure.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **Antigravity hooks never ran** (#550). Hook commands now resolve the script from the plugin folder too, a shared `antigravity-hook.js` converts Antigravity's hook format, and advisories are delivered by blocking the call once and allowing the retry. Upgrade migration: unedited 5.1.0 Antigravity hook drivers are replaced (`docs/migrations.md`).
|
|
44
|
+
- **`bkit upgrade` creates files a newer release adds** to an installed Codex, opencode or Antigravity host (#550).
|
|
45
|
+
- **Install no longer appends a second bkit copy** below an older unmarked one (#553); it warns and skips. Remove the old copy above `bkit:start` by hand.
|
|
46
|
+
- **GateGuard** remembers warnings per session and agent, so a Claude Code subagent gets its own checklist (#550); OpenCode `patch` / `apply_patch` edits are checked per named file, and deny mode blocks (#551); gate-config detection drops `pyproject.toml`, `setup.cfg` and `tox.ini` and adds mypy, pylint, pytest, rustfmt, clippy and jest JSON variants (#551).
|
|
47
|
+
- **`bkit check`** no longer counts missing `.bkit/core` / `.bkit/shared` view links as drift, so a fresh clone or worktree can push (#551).
|
|
48
|
+
- **Install / uninstall** (#551): the second preflight run after install writes fails on its blockers; a targeted uninstall dry run lists the mirror files and the `.bkit/version` update.
|
|
49
|
+
- **`bkit-debug`** re-checks for an open PR (any base) right before close (#551).
|
|
50
|
+
- **`bkit runs revalidate --repo` / `runs gate --snapshot`** run every `gh` call and the dev ancestry check against the named repo (#551).
|
|
51
|
+
- **`bkit opencode`** warns when OpenCode 2.0's shared background server is already running (#551).
|
|
52
|
+
- **GitHub tracker token wording** (#543): advisory and cloud setup text no longer say the GitHub tracker needs no token; the shipped GitHub MCP server sends `BKIT_GH_TOKEN`.
|
|
53
|
+
- **MCP advisories match what install writes.** `mcp-missing-server-*` requires only the tracker's own server (`none` → none), so a fresh `--tracker=linear` / `--tracker=none` install no longer advises adding `github`. `mcp-extra-server-linear` also checks `.opencode/opencode.json` `mcp`; `github` is never flagged as extra (the phase workflows' `gh` fallback uses it).
|
|
54
|
+
- **CLI help and the bare `bkit install` error** name every host and `--auto` variant (`--antigravity`, `--auto=opencode`).
|
|
55
|
+
- **`bkit uninstall`** reports already-missing files as `absent:` and counts them as `already absent: N`, separate from `preserved`.
|
|
56
|
+
- **Docs:** design step numbers in `.bkit/prompts.md` / `.bkit/workflows.md` follow the Grill renumbering; `.bkit/cloud.md` drops `design` from manual dispatch; `.bkit/comparison.md` lists Grill; `.bkit/install.md` lists antigravity among drift-gated hosts; `.bkit/jsonl.md` drops the never-written `sweepVerdict` field.
|
|
57
|
+
- **Packaging:** `npm pack` and `pnpm pack` ship the same test-free tarball (exclusions in `.bkit/core/engine/.npmignore`).
|
|
58
|
+
|
|
9
59
|
## [5.1.0] — 2026-10-13
|
|
10
60
|
|
|
11
61
|
### Added
|