@cbartens/bkit 5.4.0 → 5.5.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 +19 -7
- package/.bkit/core/.agents/rules.md +24 -9
- package/.bkit/core/.bkit/README.md +18 -6
- package/.bkit/core/.bkit/cloud.md +46 -15
- package/.bkit/core/.bkit/comparison.md +2 -2
- package/.bkit/core/.bkit/install.md +19 -18
- package/.bkit/core/.bkit/pipeline.md +3 -1
- package/.bkit/core/.bkit/prompts.md +38 -20
- package/.bkit/core/.bkit/providers.md +6 -6
- package/.bkit/core/.bkit/templates.md +44 -13
- package/.bkit/core/.bkit/trackers.md +99 -35
- package/.bkit/core/.bkit/workflows.md +50 -45
- package/.bkit/core/AGENTS.md +2 -2
- package/.bkit/core/docs/templates/bkit-audit-app-performance.md +1 -1
- package/.bkit/core/docs/templates/bkit-audit-issues.md +22 -6
- package/.bkit/core/engine/checks/after/auth.ts +88 -45
- package/.bkit/core/engine/checks/after/ci-yml.ts +0 -1
- package/.bkit/core/engine/checks/after/github.ts +42 -78
- package/.bkit/core/engine/checks/after/index.ts +1 -6
- package/.bkit/core/engine/checks/after/tools.ts +1 -1
- package/.bkit/core/engine/checks/before/env.ts +28 -18
- package/.bkit/core/engine/checks/before/mcp.ts +4 -2
- package/.bkit/core/engine/checks/tips/catalogue.ts +15 -2
- package/.bkit/core/engine/checks/tips/index.ts +5 -2
- package/.bkit/core/engine/cli.ts +7 -5
- package/.bkit/core/engine/commands/ci/ci.ts +107 -0
- package/.bkit/core/engine/commands/install/uninstall.ts +46 -0
- package/.bkit/core/engine/commands/workflow/fids.ts +23 -15
- package/.bkit/core/engine/commands/workflow/issues.ts +61 -63
- package/.bkit/core/engine/commands/workflow/ledgers.ts +28 -11
- package/.bkit/core/engine/commands/workflow/prs.ts +3 -1
- package/.bkit/core/engine/commands/workflow/repo.ts +8 -0
- package/.bkit/core/engine/commands/workflow/roadmap.ts +5 -1
- package/.bkit/core/engine/commands/workflow/steps.ts +2 -2
- package/.bkit/core/engine/commands/workflow/workflows.ts +9 -4
- package/.bkit/core/engine/commands/workflow/worktrees.ts +91 -14
- package/.bkit/core/engine/install/manifest.ts +31 -10
- package/.bkit/core/engine/install/modules/cloud.ts +3 -1
- package/.bkit/core/engine/install/modules/core.ts +153 -4
- package/.bkit/core/engine/install/modules/opencode.ts +5 -0
- package/.bkit/core/engine/install/write.ts +37 -1
- package/.bkit/core/engine/render/trackers.ts +35 -23
- package/.bkit/core/engine/shared/egress.ts +6 -0
- package/.bkit/core/engine/shared/settings.ts +130 -11
- package/.bkit/core/hooks/guardrails-tiers.js +1 -1
- package/.bkit/core/prompts/bkit-audit-generate.md +42 -12
- package/.bkit/core/prompts/bkit-build-challenge-remediate.md +1 -1
- package/.bkit/core/prompts/bkit-build-challenge-tests.md +1 -1
- package/.bkit/core/prompts/bkit-build-plan-execute.md +1 -1
- package/.bkit/core/prompts/bkit-build-plan-gaps-remediate.md +1 -1
- package/.bkit/core/prompts/bkit-debug-abort-handover.md +2 -0
- package/.bkit/core/prompts/bkit-debug-failure-remediate.md +1 -1
- package/.bkit/core/prompts/bkit-debug-failure-reproduce.md +1 -1
- package/.bkit/core/prompts/bkit-debug-failure-soak.md +1 -1
- package/.bkit/core/prompts/bkit-design-generate.md +4 -1
- package/.bkit/core/prompts/bkit-plan-generate.md +5 -3
- package/.bkit/core/prompts/bkit-ship-conflict-resolve.md +1 -1
- package/.bkit/core/prompts/bkit-ship-update-docs.md +1 -1
- package/.bkit/core/prompts/bkit-utility-update-decisions.md +3 -1
- package/.bkit/core/prompts/bkit-utility-update-deferrals.md +3 -1
- package/.bkit/core/prompts/bkit-utility-update-documentation.md +12 -2
- package/.bkit/core/prompts/bkit-utility-update-failures.md +3 -1
- package/.bkit/core/prompts/bkit-utility-update-knowledge.md +3 -1
- package/.bkit/core/prompts/bkit-utility-update-roadmap.md +9 -2
- package/.bkit/core/prompts/bkit-utility-update-tracker.md +159 -0
- package/.bkit/core/workflows/bkit-auto.md +19 -6
- package/.bkit/core/workflows/bkit-build.md +59 -17
- package/.bkit/core/workflows/bkit-debug.md +64 -20
- package/.bkit/core/workflows/bkit-design.md +83 -28
- package/.bkit/core/workflows/bkit-plan.md +61 -20
- package/.bkit/core/workflows/bkit-ship.md +48 -18
- package/.bkit/shared/.bkit/.env.example +8 -0
- package/.bkit/shared/.claude/settings.json +3 -1
- package/.bkit/shared/.cursor/bkit-cloud.md +2 -2
- package/.bkit/shared/.cursor/mcp.json +11 -4
- package/.bkit/shared/.mcp.json +11 -4
- package/.bkit/shared/.opencode/opencode.json +2 -0
- package/.bkit/shared/docs/deployments.md +6 -7
- package/.bkit/shared/docs/security.md +1 -1
- package/.bkit/shared/docs/testing.md +13 -5
- package/.bkit/templates/.github/renovate.json5 +1 -1
- package/.bkit/templates/.github/workflows/bkit-ci.yml +21 -115
- package/.bkit/templates/.github/workflows/bkit-cloud.yml +40 -12
- package/.bkit/templates/.husky/pre-commit +4 -4
- package/.bkit/templates/.husky/pre-push +107 -18
- package/.bkit/templates/scripts/ci/bkit-local-stack-lock.sh +194 -0
- package/.bkit/templates/scripts/ci/check-capstone.mjs +2 -4
- package/.bkit/templates/scripts/ci/check-capstone.test.mjs +4 -23
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.mjs +104 -23
- package/.bkit/templates/scripts/ci/lanes/resolve-push-base.test.mjs +103 -6
- package/.bkit/templates/scripts/graphify/bkit-graph-pre-push.sh +3 -1
- package/.bkit/templates/scripts/graphify/bkit-graphify.sh +1 -1
- package/.bkit/templates/scripts/prettier/bkit-insert-ignore.mjs +49 -29
- package/CHANGELOG.md +67 -1
- package/README.md +16 -6
- package/dist/checks/after/auth.js +81 -45
- package/dist/checks/after/ci-yml.js +0 -1
- package/dist/checks/after/github.js +41 -76
- package/dist/checks/after/index.js +2 -7
- package/dist/checks/after/tools.js +1 -1
- package/dist/checks/before/env.js +24 -17
- package/dist/checks/before/mcp.js +4 -2
- package/dist/checks/tips/catalogue.js +14 -2
- package/dist/checks/tips/index.js +4 -2
- package/dist/cli.js +7 -5
- package/dist/commands/ci/ci.js +100 -0
- package/dist/commands/install/uninstall.js +42 -0
- package/dist/commands/workflow/fids.js +22 -15
- package/dist/commands/workflow/issues.js +53 -61
- package/dist/commands/workflow/ledgers.js +26 -11
- package/dist/commands/workflow/prs.js +3 -1
- package/dist/commands/workflow/repo.js +6 -0
- package/dist/commands/workflow/roadmap.js +3 -1
- package/dist/commands/workflow/steps.js +2 -2
- package/dist/commands/workflow/workflows.js +9 -4
- package/dist/commands/workflow/worktrees.js +74 -13
- package/dist/install/manifest.js +30 -10
- package/dist/install/modules/cloud.js +3 -1
- package/dist/install/modules/core.js +157 -5
- package/dist/install/modules/opencode.js +6 -0
- package/dist/install/write.js +26 -2
- package/dist/render/trackers.js +34 -20
- package/dist/shared/egress.js +6 -0
- package/dist/shared/settings.js +59 -7
- package/package.json +14 -3
package/dist/render/trackers.js
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
// `.bkit/workflows/bkit-*.md` to host commands and `.bkit/prompts/bkit-*.md` to
|
|
4
4
|
// host agents.
|
|
5
5
|
//
|
|
6
|
-
// Inline model (no trackers.md substitution): every tracker call site carries
|
|
7
|
-
//
|
|
8
|
-
// the block matching the chosen tracker and
|
|
6
|
+
// Inline model (no trackers.md substitution): every tracker call site carries one
|
|
7
|
+
// variant per tracker inline as a consecutive group, in the fixed order `github`,
|
|
8
|
+
// `linear`, `jira`. The installer keeps the block matching the chosen tracker and
|
|
9
|
+
// drops the others. Two boolean
|
|
9
10
|
// conditional dialects gate tracker-agnostic content:
|
|
10
11
|
//
|
|
11
12
|
// <!-- bkit:tracker true start/end --> kept when a tracker IS connected; removed under none
|
|
12
13
|
// <!-- bkit:tracker false start/end --> kept ONLY under none; removed when wired
|
|
13
14
|
//
|
|
14
|
-
// Under `none` a
|
|
15
|
+
// Under `none` a group collapses to its trailing `false` block if present (the
|
|
15
16
|
// substantive no-tracker behaviour — e.g. `issue-id-extraction`, `fid-format`,
|
|
16
17
|
// `pr-body-marker`), otherwise to one generic skip message. There is no separate
|
|
17
18
|
// `none` marker — no-tracker content is always `false`.
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
// ---------------------------------------------------------------------------
|
|
21
22
|
// Markers
|
|
22
23
|
// ---------------------------------------------------------------------------
|
|
23
|
-
/** Generic message rendered in place of a
|
|
24
|
+
/** Generic message rendered in place of a tracker group when no tracker is wired. */
|
|
24
25
|
const NONE_STUB = "_No tracker connected, skip step._";
|
|
25
26
|
/**
|
|
26
27
|
* Marker regex source. An optional `# ` prefix belongs to the marker: inside YAML
|
|
@@ -36,12 +37,14 @@ function block(name) {
|
|
|
36
37
|
return `${marker(name, "start")}([\\s\\S]*?)${marker(name, "end")}`;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
|
-
* Per-tracker group:
|
|
40
|
+
* Per-tracker group: consecutive `github` → `linear` → `jira` blocks, each
|
|
40
41
|
* `<!-- bkit:tracker {name} start -->` … `<!-- bkit:tracker {name} end -->`,
|
|
41
|
-
* with an OPTIONAL trailing `false` block. The
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* with an OPTIONAL trailing `false` block. The `jira` block is optional to the
|
|
43
|
+
* match: a group without one resolves for github, linear and none, and is left
|
|
44
|
+
* whole under jira so its markers surface as orphans. The whitespace BEFORE each
|
|
45
|
+
* optional block lives INSIDE its optional group (`(?:\s*<false>)?`), so when no
|
|
46
|
+
* block follows, the trailing newline + indent are left untouched — otherwise
|
|
47
|
+
* content immediately after the group would jam onto the kept body. A
|
|
45
48
|
* list-number prefix (`3. `) precedes the first marker and is left untouched, so
|
|
46
49
|
* the kept body / none stub attaches to it cleanly.
|
|
47
50
|
*
|
|
@@ -50,7 +53,14 @@ function block(name) {
|
|
|
50
53
|
* `pr-body-marker`), use its body; otherwise emit the generic skip message.
|
|
51
54
|
* (Standalone `false` blocks not attached to a pair are handled in pass 2.)
|
|
52
55
|
*/
|
|
53
|
-
const
|
|
56
|
+
const GROUP_RE = new RegExp(block("github") +
|
|
57
|
+
"\\s*" +
|
|
58
|
+
block("linear") +
|
|
59
|
+
"(?:\\s*" +
|
|
60
|
+
block("jira") +
|
|
61
|
+
")?(?:\\s*" +
|
|
62
|
+
block("false") +
|
|
63
|
+
")?", "g");
|
|
54
64
|
/** Conditional-keep block, KEEP form (markers stripped, content trimmed in place). */
|
|
55
65
|
function condKeepRe(name) {
|
|
56
66
|
return new RegExp(block(name), "g");
|
|
@@ -59,9 +69,9 @@ function condKeepRe(name) {
|
|
|
59
69
|
function condDropRe(name) {
|
|
60
70
|
return new RegExp(`\\n?[ \\t]*${block(name)}`, "g");
|
|
61
71
|
}
|
|
62
|
-
// Any tracker marker surviving resolution is an orphan (
|
|
72
|
+
// Any tracker marker surviving resolution is an orphan (an incomplete group, or
|
|
63
73
|
// unbalanced true/false).
|
|
64
|
-
const ORPHAN_RE = new RegExp(marker("(github|linear|true|false)", "(?:start|end)"), "g");
|
|
74
|
+
const ORPHAN_RE = new RegExp(marker("(github|linear|jira|true|false)", "(?:start|end)"), "g");
|
|
65
75
|
/**
|
|
66
76
|
* When keeping in-place content, drop the newline (and its indentation)
|
|
67
77
|
* immediately after `start -->` and immediately before the `end` marker, so the
|
|
@@ -78,10 +88,10 @@ function trimKeptContent(s) {
|
|
|
78
88
|
/**
|
|
79
89
|
* Resolve tracker blocks in a workflow source file for the chosen tracker.
|
|
80
90
|
*
|
|
81
|
-
* Pass 1 collapses each
|
|
91
|
+
* Pass 1 collapses each tracker group to the chosen tracker's body, or — for
|
|
82
92
|
* `none` — to the generic skip message. Pass 2 resolves the `true`/`false`
|
|
83
93
|
* conditional blocks (kept when their condition matches the chosen tracker,
|
|
84
|
-
* removed otherwise) — run AFTER pass 1 so
|
|
94
|
+
* removed otherwise) — run AFTER pass 1 so groups nested inside a kept conditional
|
|
85
95
|
* are resolved first. Mirror output is clean — no markers remain.
|
|
86
96
|
*
|
|
87
97
|
* Always operates on workflow SOURCE (which has markers). Mirror output is
|
|
@@ -89,19 +99,23 @@ function trimKeptContent(s) {
|
|
|
89
99
|
*/
|
|
90
100
|
export function substituteWorkflow(workflowContent, tracker) {
|
|
91
101
|
const wired = tracker !== "none";
|
|
92
|
-
// Pass 1:
|
|
93
|
-
//
|
|
102
|
+
// Pass 1: tracker groups → chosen tracker's body; none → the group's trailing
|
|
103
|
+
// `false` block if present, else the generic skip message.
|
|
94
104
|
let pairs = 0;
|
|
95
|
-
let output = workflowContent.replace(
|
|
105
|
+
let output = workflowContent.replace(GROUP_RE, (match, gh, ln, jira, falseBody) => {
|
|
106
|
+
if (tracker === "jira" && jira === undefined)
|
|
107
|
+
return match;
|
|
96
108
|
pairs++;
|
|
97
109
|
if (tracker === "github")
|
|
98
110
|
return trimKeptContent(gh);
|
|
99
111
|
if (tracker === "linear")
|
|
100
112
|
return trimKeptContent(ln);
|
|
113
|
+
if (tracker === "jira")
|
|
114
|
+
return trimKeptContent(jira);
|
|
101
115
|
return falseBody !== undefined ? trimKeptContent(falseBody) : NONE_STUB;
|
|
102
116
|
});
|
|
103
117
|
// Pass 2: standalone conditional `true`/`false` blocks (any `false` attached to
|
|
104
|
-
// a
|
|
118
|
+
// a group was already consumed in pass 1).
|
|
105
119
|
let conditionals = 0;
|
|
106
120
|
for (const name of ["true", "false"]) {
|
|
107
121
|
const active = name === "true" ? wired : !wired;
|
|
@@ -122,7 +136,7 @@ export function substituteWorkflow(workflowContent, tracker) {
|
|
|
122
136
|
}
|
|
123
137
|
/**
|
|
124
138
|
* Find tracker markers that didn't participate in a successful resolution — a
|
|
125
|
-
*
|
|
139
|
+
* block outside a complete group, a group lacking the chosen tracker, or an unbalanced
|
|
126
140
|
* true/false pair.
|
|
127
141
|
*/
|
|
128
142
|
function findOrphanMarkers(content) {
|
package/dist/shared/egress.js
CHANGED
|
@@ -109,6 +109,12 @@ export const BKIT_EGRESS_SOURCES = [
|
|
|
109
109
|
hosts: ["mcp.linear.app", "api.linear.app"],
|
|
110
110
|
bases: ["linear.app"],
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
id: "mcp-jira",
|
|
114
|
+
kind: "tracker-mcp",
|
|
115
|
+
hosts: ["mcp.atlassian.com"],
|
|
116
|
+
bases: ["atlassian.com"],
|
|
117
|
+
},
|
|
112
118
|
{
|
|
113
119
|
id: "agent-claude",
|
|
114
120
|
kind: "agent-host",
|
package/dist/shared/settings.js
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
import { DEFAULT_CLOUD_AGENTS, DEFAULT_ISSUE_TRACKER, parseCloudAgents, parseIssueTracker, } from "../install/manifest.js";
|
|
6
6
|
import { isOpencodeProvider } from "../render/models.js";
|
|
7
7
|
import { readPackageJson } from "./package-json.js";
|
|
8
|
+
const BOARD_URL = /^https:\/\/github\.com\/(orgs|users)\/([^/?#\s]+)\/projects\/([1-9][0-9]*)(?:[/?#].*)?$/;
|
|
9
|
+
/** The board a `https://github.com/{orgs|users}/<login>/projects/<n>[/views/…]` URL names; null otherwise. */
|
|
10
|
+
export function parseGithubBoardUrl(url) {
|
|
11
|
+
const m = BOARD_URL.exec(url.trim());
|
|
12
|
+
if (!m)
|
|
13
|
+
return null;
|
|
14
|
+
return { ownerType: m[1] === "orgs" ? "org" : "user", owner: m[2], number: Number(m[3]) };
|
|
15
|
+
}
|
|
8
16
|
export const CONFIG_DEFAULTS = {
|
|
9
17
|
ciWorkflow: "bkit-ci.yml",
|
|
10
18
|
capstoneJob: "bkit-tests-check",
|
|
@@ -12,8 +20,15 @@ export const CONFIG_DEFAULTS = {
|
|
|
12
20
|
worktreeInstall: true,
|
|
13
21
|
diskMinFreeGb: 40,
|
|
14
22
|
issueTracker: DEFAULT_ISSUE_TRACKER,
|
|
15
|
-
|
|
23
|
+
// The Status options of GitHub's Kanban and Team planning board templates.
|
|
24
|
+
github: { project: null, projectUrl: null, progress: "In progress", review: "In review" },
|
|
25
|
+
// `started` is a state type every Linear team has; In Review is a name a default team lacks.
|
|
26
|
+
linear: { team: null, project: null, progress: "started", review: "In Review" },
|
|
27
|
+
jira: { site: null, project: null, progress: "In Progress", review: "In Review" },
|
|
16
28
|
shipGateRequiredLanes: [],
|
|
29
|
+
// What bkit's workflows write: plan / design / build logs and the ledgers. Never
|
|
30
|
+
// `docs/**`: a project doc can be a test's input, so a docs edit can red a test.
|
|
31
|
+
minPushPaths: ["docs/plans/**", "docs/*.jsonl", ".bkit/*.jsonl"],
|
|
17
32
|
opencodeProvider: null,
|
|
18
33
|
opencodeProviders: [],
|
|
19
34
|
cloudAgents: DEFAULT_CLOUD_AGENTS,
|
|
@@ -22,6 +37,15 @@ export const CONFIG_DEFAULTS = {
|
|
|
22
37
|
cloudAgentsExplicit: false,
|
|
23
38
|
};
|
|
24
39
|
const nonEmptyString = (v) => typeof v === "string" && v.trim() !== "";
|
|
40
|
+
const record = (v) => v !== null && typeof v === "object" && !Array.isArray(v) ? v : {};
|
|
41
|
+
const optionalString = (v) => (nonEmptyString(v) ? v.trim() : null);
|
|
42
|
+
/** Each moment's state from `raw`, else the default for that moment. */
|
|
43
|
+
function trackerStates(raw, defaults) {
|
|
44
|
+
return {
|
|
45
|
+
progress: nonEmptyString(raw.progress) ? raw.progress.trim() : defaults.progress,
|
|
46
|
+
review: nonEmptyString(raw.review) ? raw.review.trim() : defaults.review,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
25
49
|
/**
|
|
26
50
|
* Read `package.json` `bkit` from `root` (the main checkout). A missing file,
|
|
27
51
|
* missing key, or wrongly typed value falls back to the default for that key.
|
|
@@ -33,10 +57,14 @@ export function readBkitConfig(root) {
|
|
|
33
57
|
const worktree = (bkit.worktree ?? {});
|
|
34
58
|
const copy = worktree.copy;
|
|
35
59
|
const minFreeGb = (bkit.disk ?? {}).minFreeGb;
|
|
36
|
-
const project = bkit.githubProject;
|
|
37
60
|
const lanes = bkit.shipGateRequiredLanes;
|
|
61
|
+
const book = bkit.minPushPaths;
|
|
38
62
|
const provider = bkit.opencodeProvider;
|
|
39
63
|
const providers = bkit.opencodeProviders;
|
|
64
|
+
const github = record(bkit.github);
|
|
65
|
+
const linear = record(bkit.linear);
|
|
66
|
+
const jira = record(bkit.jira);
|
|
67
|
+
const projectUrl = optionalString(github.project);
|
|
40
68
|
return {
|
|
41
69
|
ciWorkflow: nonEmptyString(bkit.ciWorkflow) ? bkit.ciWorkflow : CONFIG_DEFAULTS.ciWorkflow,
|
|
42
70
|
capstoneJob: nonEmptyString(bkit.capstoneJob) ? bkit.capstoneJob : CONFIG_DEFAULTS.capstoneJob,
|
|
@@ -48,12 +76,26 @@ export function readBkitConfig(root) {
|
|
|
48
76
|
? minFreeGb
|
|
49
77
|
: CONFIG_DEFAULTS.diskMinFreeGb,
|
|
50
78
|
issueTracker: parseIssueTracker(bkit.issueTracker) ?? CONFIG_DEFAULTS.issueTracker,
|
|
51
|
-
|
|
52
|
-
? false
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
79
|
+
github: {
|
|
80
|
+
project: github.project === false ? false : projectUrl ? parseGithubBoardUrl(projectUrl) : null,
|
|
81
|
+
projectUrl,
|
|
82
|
+
...trackerStates(github, CONFIG_DEFAULTS.github),
|
|
83
|
+
},
|
|
84
|
+
linear: {
|
|
85
|
+
team: optionalString(linear.team),
|
|
86
|
+
project: optionalString(linear.project),
|
|
87
|
+
...trackerStates(linear, CONFIG_DEFAULTS.linear),
|
|
88
|
+
},
|
|
89
|
+
jira: {
|
|
90
|
+
site: nonEmptyString(jira.site) ? jira.site.trim().replace(/\/+$/, "") : null,
|
|
91
|
+
project: optionalString(jira.project),
|
|
92
|
+
...trackerStates(jira, CONFIG_DEFAULTS.jira),
|
|
93
|
+
},
|
|
56
94
|
shipGateRequiredLanes: Array.isArray(lanes) ? lanes.filter(nonEmptyString) : [],
|
|
95
|
+
// An explicit [] is kept: it switches the min push off.
|
|
96
|
+
minPushPaths: Array.isArray(book)
|
|
97
|
+
? book.filter(nonEmptyString)
|
|
98
|
+
: [...CONFIG_DEFAULTS.minPushPaths],
|
|
57
99
|
opencodeProvider: typeof provider === "string" && isOpencodeProvider(provider) ? provider : null,
|
|
58
100
|
opencodeProviders: Array.isArray(providers)
|
|
59
101
|
? providers.filter((v) => typeof v === "string" && isOpencodeProvider(v))
|
|
@@ -64,3 +106,13 @@ export function readBkitConfig(root) {
|
|
|
64
106
|
cloudAgentsExplicit: bkit.cloudAgents !== undefined,
|
|
65
107
|
};
|
|
66
108
|
}
|
|
109
|
+
export function trackerScope(cfg) {
|
|
110
|
+
const none = { trackerTeam: null, trackerProject: null, trackerSite: null, trackerBoard: null };
|
|
111
|
+
if (cfg.issueTracker === "github")
|
|
112
|
+
return { ...none, trackerBoard: cfg.github.project || null };
|
|
113
|
+
if (cfg.issueTracker === "linear")
|
|
114
|
+
return { ...none, trackerTeam: cfg.linear.team, trackerProject: cfg.linear.project };
|
|
115
|
+
if (cfg.issueTracker === "jira")
|
|
116
|
+
return { ...none, trackerProject: cfg.jira.project, trackerSite: cfg.jira.site };
|
|
117
|
+
return none;
|
|
118
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cbartens/bkit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "From vibe coding to production code. A senior engineering team's process, ready-made: AI agents design, plan, build, review, fix and ship your features on Claude Code, Cursor, Codex, Google Antigravity and opencode.",
|
|
6
6
|
"keywords": [
|
|
@@ -54,8 +54,10 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"scripts": {
|
|
56
56
|
"bkit:gate:format": "pnpm lint-staged",
|
|
57
|
+
"bkit:gate:min": "pnpm format:check && pnpm format:tables:check && pnpm lint:prose && pnpm slop:delta && vitest run .bkit/core/engine/audits/repo/ledger-integrity.test.ts",
|
|
57
58
|
"bkit:gate:static": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm format:tables:check && pnpm lint:prose && pnpm slop:delta",
|
|
58
|
-
"bkit:gate:static-unit": "pnpm bkit:gate:static && pnpm test
|
|
59
|
+
"bkit:gate:static-unit": "pnpm bkit:gate:static && pnpm test:coverage:unit && pnpm bkit:test:bats",
|
|
60
|
+
"bkit:gate:static-unit-integration": "pnpm bkit:gate:static-unit && pnpm test:integration",
|
|
59
61
|
"bkit:gate:install-static-unit-build": "pnpm install --frozen-lockfile && pnpm bkit:gate:static-unit && pnpm build",
|
|
60
62
|
"bkit:deps:outdated": "pnpm outdated",
|
|
61
63
|
"bkit:deps:audit": "pnpm audit",
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"slop:delta": "bkit ci slop",
|
|
74
76
|
"bkit:lint:workflows": "bash -c 'if command -v actionlint >/dev/null 2>&1; then actionlint; else echo \"[bkit] actionlint missing — skipping workflow lint (install actionlint to enable)\"; fi'",
|
|
75
77
|
"test": "vitest run",
|
|
78
|
+
"test:integration": "vitest run integration.test",
|
|
76
79
|
"test:coverage:unit": "vitest run -c vitest.unit.config.ts --coverage --coverage.reportsDirectory=coverage/unit --exclude '**/*.integration.test.ts' --coverage.include='.bkit/core/engine/{cli,commands/analysis,install/cloud-env,commands/comply,commands/harvest,commands/install/install,commands/launch,install/manifest,install/managed-block,shared/package-roots,shared/protected-paths,checks/after/index,checks/after/auth,checks/after/ci-yml,checks/after/github,checks/after/managed,checks/after/tools,checks/after/suppression,checks/before/index,checks/before/context-fetch,checks/before/env,checks/before/files,checks/before/mcp,checks/before/repo,checks/before/version,ledgers/status,ledgers/telemetry,install/write,install/placeholders,install/template-copies,render/trackers,render/hosts,render/models,commands/install/uninstall,commands/install/upgrade,install/version-file,tools/wording}.ts' --coverage.include='.bkit/core/engine/commands/**/*.ts' --coverage.include='.bkit/core/engine/shared/{settings,package-json,package-manager,timeouts}.ts'",
|
|
77
80
|
"bkit:test:bats": "pnpm exec bats tests/*.bats",
|
|
78
81
|
"build": "tsc && chmod +x dist/cli.js",
|
|
@@ -116,12 +119,20 @@
|
|
|
116
119
|
"bkit": {
|
|
117
120
|
"issueTracker": "github",
|
|
118
121
|
"cloudAgents": "claude",
|
|
119
|
-
"
|
|
122
|
+
"github": {
|
|
123
|
+
"project": "https://github.com/users/cbartens/projects/1"
|
|
124
|
+
},
|
|
120
125
|
"opencodeProvider": "openrouter",
|
|
121
126
|
"opencodeProviders": [
|
|
122
127
|
"opencode-go",
|
|
123
128
|
"openrouter"
|
|
124
129
|
],
|
|
130
|
+
"minPushPaths": [
|
|
131
|
+
"docs/**",
|
|
132
|
+
".bkit/*.jsonl",
|
|
133
|
+
"CHANGELOG.md",
|
|
134
|
+
"README.md"
|
|
135
|
+
],
|
|
125
136
|
"capstoneJob": "bkit-tests-check",
|
|
126
137
|
"ciWorkflow": "bkit-ci.yml",
|
|
127
138
|
"roadmapNext": 25
|