buildkeel 0.7.0 → 0.7.2

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.
Files changed (158) hide show
  1. package/README.md +33 -4
  2. package/antigravity/agents/bk-break-it-pro.md +25 -0
  3. package/antigravity/agents/bk-designer-pro.md +20 -0
  4. package/antigravity/agents/bk-edge-cases-pro.md +31 -0
  5. package/antigravity/agents/bk-final-quality-reviewer-pro.md +47 -0
  6. package/antigravity/agents/bk-final-spec-reviewer-pro.md +37 -0
  7. package/antigravity/agents/bk-implementer-pro.md +40 -0
  8. package/antigravity/agents/bk-note-checker-pro.md +26 -0
  9. package/antigravity/agents/bk-quality-reviewer-pro.md +47 -0
  10. package/antigravity/agents/bk-readiness-reader-pro.md +28 -0
  11. package/antigravity/agents/bk-spec-reviewer-pro.md +37 -0
  12. package/antigravity/dist/hooks/main.js +208 -143
  13. package/antigravity/dist/server/main.js +653 -595
  14. package/antigravity/package.json +1 -1
  15. package/antigravity/plugin.json +1 -1
  16. package/antigravity/rules/buildkeel.md +1 -1
  17. package/antigravity/skills/bk-build/SKILL.md +3 -3
  18. package/antigravity/skills/bk-done/SKILL.md +1 -1
  19. package/antigravity/skills/bk-init/SKILL.md +4 -0
  20. package/antigravity/skills/bk-models/SKILL.md +16 -0
  21. package/antigravity/skills/bk-review/SKILL.md +1 -1
  22. package/cli.mjs +151 -142
  23. package/cursor/.cursor-plugin/plugin.json +16 -0
  24. package/cursor/LICENSE +49 -0
  25. package/cursor/THIRD-PARTY-NOTICES +231 -0
  26. package/cursor/agents/bk-break-it.md +17 -0
  27. package/cursor/agents/bk-designer.md +12 -0
  28. package/cursor/agents/bk-edge-cases.md +23 -0
  29. package/cursor/agents/bk-final-quality-reviewer.md +39 -0
  30. package/cursor/agents/bk-final-spec-reviewer.md +29 -0
  31. package/cursor/agents/bk-implementer.md +32 -0
  32. package/cursor/agents/bk-note-checker.md +18 -0
  33. package/cursor/agents/bk-quality-reviewer.md +39 -0
  34. package/cursor/agents/bk-readiness-reader.md +20 -0
  35. package/cursor/agents/bk-spec-reviewer.md +29 -0
  36. package/cursor/agents/index.json +99 -0
  37. package/cursor/bin/bk-launch +34 -0
  38. package/cursor/bin/bk-launch.cmd +36 -0
  39. package/cursor/bin/bk-start.cjs +28 -0
  40. package/cursor/dist/hooks/main.js +232 -0
  41. package/cursor/dist/server/main.js +834 -0
  42. package/cursor/hooks/hooks.json +36 -0
  43. package/cursor/mcp.json +24 -0
  44. package/cursor/package.json +8 -0
  45. package/cursor/practices/P-01.md +7 -0
  46. package/cursor/practices/P-02.md +7 -0
  47. package/cursor/practices/P-03.md +7 -0
  48. package/cursor/practices/P-04.md +7 -0
  49. package/cursor/practices/P-05.md +7 -0
  50. package/cursor/practices/P-06.md +7 -0
  51. package/cursor/practices/P-07.md +7 -0
  52. package/cursor/practices/P-08.md +7 -0
  53. package/cursor/practices/P-09.md +7 -0
  54. package/cursor/practices/P-10.md +7 -0
  55. package/cursor/practices/P-11.md +7 -0
  56. package/cursor/practices/P-12.md +7 -0
  57. package/cursor/practices/P-13.md +7 -0
  58. package/cursor/practices/P-14.md +7 -0
  59. package/cursor/practices/P-15.md +7 -0
  60. package/cursor/project/commands/bk-approve.md +50 -0
  61. package/cursor/project/commands/bk-build.md +248 -0
  62. package/cursor/project/commands/bk-capture.md +207 -0
  63. package/cursor/project/commands/bk-done.md +112 -0
  64. package/cursor/project/commands/bk-impact.md +48 -0
  65. package/cursor/project/commands/bk-init.md +92 -0
  66. package/cursor/project/commands/bk-migrate.md +71 -0
  67. package/cursor/project/commands/bk-models.md +9 -0
  68. package/cursor/project/commands/bk-new.md +121 -0
  69. package/cursor/project/commands/bk-onboard.md +134 -0
  70. package/cursor/project/commands/bk-pause.md +49 -0
  71. package/cursor/project/commands/bk-resume.md +28 -0
  72. package/cursor/project/commands/bk-review.md +49 -0
  73. package/cursor/project/commands/bk-settings.md +11 -0
  74. package/cursor/project/commands/bk-stats.md +33 -0
  75. package/cursor/project/commands/bk-status.md +11 -0
  76. package/cursor/project/rules/buildkeel.mdc +80 -0
  77. package/cursor/skills/buildkeel/SKILL.md +80 -0
  78. package/cursor/templates/adhoc.md +15 -0
  79. package/cursor/templates/adr.md +31 -0
  80. package/cursor/templates/defect.md +35 -0
  81. package/cursor/templates/design.md +49 -0
  82. package/cursor/templates/epic.md +31 -0
  83. package/cursor/templates/idea.md +35 -0
  84. package/cursor/templates/spec-driven/capability.md +28 -0
  85. package/cursor/templates/spec-driven/proposal.md +41 -0
  86. package/cursor/templates/spec-driven/spec-change.md +43 -0
  87. package/cursor/templates/spec-driven/tasks.md +25 -0
  88. package/cursor/templates/story.md +31 -0
  89. package/cursor/templates/task.md +43 -0
  90. package/cursor/templates/test-plan.md +29 -0
  91. package/cursor/templates/thread.md +41 -0
  92. package/package.json +17 -3
  93. package/pi/LICENSE +49 -0
  94. package/pi/THIRD-PARTY-NOTICES +231 -0
  95. package/pi/agents/bk-break-it.md +17 -0
  96. package/pi/agents/bk-designer.md +12 -0
  97. package/pi/agents/bk-edge-cases.md +23 -0
  98. package/pi/agents/bk-final-quality-reviewer.md +39 -0
  99. package/pi/agents/bk-final-spec-reviewer.md +29 -0
  100. package/pi/agents/bk-implementer.md +32 -0
  101. package/pi/agents/bk-note-checker.md +18 -0
  102. package/pi/agents/bk-quality-reviewer.md +39 -0
  103. package/pi/agents/bk-readiness-reader.md +20 -0
  104. package/pi/agents/bk-spec-reviewer.md +29 -0
  105. package/pi/agents/index.json +135 -0
  106. package/pi/bin/bk-launch +34 -0
  107. package/pi/bin/bk-launch.cmd +36 -0
  108. package/pi/bin/bk-start.cjs +28 -0
  109. package/pi/dist/hooks/main.js +232 -0
  110. package/pi/dist/server/main.js +834 -0
  111. package/pi/extension.js +241 -0
  112. package/pi/package.json +8 -0
  113. package/pi/practices/P-01.md +7 -0
  114. package/pi/practices/P-02.md +7 -0
  115. package/pi/practices/P-03.md +7 -0
  116. package/pi/practices/P-04.md +7 -0
  117. package/pi/practices/P-05.md +7 -0
  118. package/pi/practices/P-06.md +7 -0
  119. package/pi/practices/P-07.md +7 -0
  120. package/pi/practices/P-08.md +7 -0
  121. package/pi/practices/P-09.md +7 -0
  122. package/pi/practices/P-10.md +7 -0
  123. package/pi/practices/P-11.md +7 -0
  124. package/pi/practices/P-12.md +7 -0
  125. package/pi/practices/P-13.md +7 -0
  126. package/pi/practices/P-14.md +7 -0
  127. package/pi/practices/P-15.md +7 -0
  128. package/pi/prompts/bk-approve.md +53 -0
  129. package/pi/prompts/bk-build.md +251 -0
  130. package/pi/prompts/bk-capture.md +210 -0
  131. package/pi/prompts/bk-done.md +115 -0
  132. package/pi/prompts/bk-impact.md +51 -0
  133. package/pi/prompts/bk-init.md +95 -0
  134. package/pi/prompts/bk-migrate.md +73 -0
  135. package/pi/prompts/bk-models.md +11 -0
  136. package/pi/prompts/bk-new.md +124 -0
  137. package/pi/prompts/bk-onboard.md +137 -0
  138. package/pi/prompts/bk-pause.md +52 -0
  139. package/pi/prompts/bk-resume.md +31 -0
  140. package/pi/prompts/bk-review.md +52 -0
  141. package/pi/prompts/bk-settings.md +13 -0
  142. package/pi/prompts/bk-stats.md +36 -0
  143. package/pi/prompts/bk-status.md +13 -0
  144. package/pi/skills/buildkeel/SKILL.md +68 -0
  145. package/pi/templates/adhoc.md +15 -0
  146. package/pi/templates/adr.md +31 -0
  147. package/pi/templates/defect.md +35 -0
  148. package/pi/templates/design.md +49 -0
  149. package/pi/templates/epic.md +31 -0
  150. package/pi/templates/idea.md +35 -0
  151. package/pi/templates/spec-driven/capability.md +28 -0
  152. package/pi/templates/spec-driven/proposal.md +41 -0
  153. package/pi/templates/spec-driven/spec-change.md +43 -0
  154. package/pi/templates/spec-driven/tasks.md +25 -0
  155. package/pi/templates/story.md +31 -0
  156. package/pi/templates/task.md +43 -0
  157. package/pi/templates/test-plan.md +29 -0
  158. package/pi/templates/thread.md +41 -0
@@ -0,0 +1,135 @@
1
+ {
2
+ "bk-break-it": {
3
+ "tools": [
4
+ "read",
5
+ "grep",
6
+ "find",
7
+ "ls",
8
+ "edit",
9
+ "write",
10
+ "bash",
11
+ "mcp__buildkeel__query",
12
+ "mcp__buildkeel__get_context",
13
+ "mcp__buildkeel__test_results"
14
+ ],
15
+ "file": "bk-break-it.md",
16
+ "access": "worktree"
17
+ },
18
+ "bk-designer": {
19
+ "tools": [
20
+ "read",
21
+ "grep",
22
+ "find",
23
+ "ls",
24
+ "mcp__buildkeel__query",
25
+ "mcp__buildkeel__get_context",
26
+ "mcp__buildkeel__get_template"
27
+ ],
28
+ "file": "bk-designer.md",
29
+ "access": "read"
30
+ },
31
+ "bk-edge-cases": {
32
+ "tools": [
33
+ "read",
34
+ "grep",
35
+ "find",
36
+ "ls",
37
+ "mcp__buildkeel__query",
38
+ "mcp__buildkeel__get_context",
39
+ "mcp__buildkeel__get_template"
40
+ ],
41
+ "file": "bk-edge-cases.md",
42
+ "access": "read"
43
+ },
44
+ "bk-final-quality-reviewer": {
45
+ "tools": [
46
+ "read",
47
+ "grep",
48
+ "find",
49
+ "ls",
50
+ "mcp__buildkeel__query",
51
+ "mcp__buildkeel__get_context"
52
+ ],
53
+ "file": "bk-final-quality-reviewer.md",
54
+ "access": "read"
55
+ },
56
+ "bk-final-spec-reviewer": {
57
+ "tools": [
58
+ "read",
59
+ "grep",
60
+ "find",
61
+ "ls",
62
+ "mcp__buildkeel__query",
63
+ "mcp__buildkeel__get_context"
64
+ ],
65
+ "file": "bk-final-spec-reviewer.md",
66
+ "access": "read"
67
+ },
68
+ "bk-implementer": {
69
+ "tools": [
70
+ "read",
71
+ "grep",
72
+ "find",
73
+ "ls",
74
+ "edit",
75
+ "write",
76
+ "bash",
77
+ "mcp__buildkeel__query",
78
+ "mcp__buildkeel__get_context",
79
+ "mcp__buildkeel__get_template",
80
+ "mcp__buildkeel__test_results",
81
+ "mcp__buildkeel__validate"
82
+ ],
83
+ "file": "bk-implementer.md",
84
+ "access": "edit"
85
+ },
86
+ "bk-note-checker": {
87
+ "tools": [
88
+ "read",
89
+ "grep",
90
+ "find",
91
+ "ls",
92
+ "mcp__buildkeel__query",
93
+ "mcp__buildkeel__get_context"
94
+ ],
95
+ "file": "bk-note-checker.md",
96
+ "access": "read"
97
+ },
98
+ "bk-quality-reviewer": {
99
+ "tools": [
100
+ "read",
101
+ "grep",
102
+ "find",
103
+ "ls",
104
+ "mcp__buildkeel__query",
105
+ "mcp__buildkeel__get_context"
106
+ ],
107
+ "file": "bk-quality-reviewer.md",
108
+ "access": "read"
109
+ },
110
+ "bk-readiness-reader": {
111
+ "tools": [
112
+ "read",
113
+ "grep",
114
+ "find",
115
+ "ls",
116
+ "mcp__buildkeel__query",
117
+ "mcp__buildkeel__get_context",
118
+ "mcp__buildkeel__get_template"
119
+ ],
120
+ "file": "bk-readiness-reader.md",
121
+ "access": "read"
122
+ },
123
+ "bk-spec-reviewer": {
124
+ "tools": [
125
+ "read",
126
+ "grep",
127
+ "find",
128
+ "ls",
129
+ "mcp__buildkeel__query",
130
+ "mcp__buildkeel__get_context"
131
+ ],
132
+ "file": "bk-spec-reviewer.md",
133
+ "access": "read"
134
+ }
135
+ }
@@ -0,0 +1,34 @@
1
+ #!/bin/sh
2
+ # Starts a BuildKeel component after checking for Node.js 20 or later
3
+ # (the version itself is checked by bk-start.cjs).
4
+ # Usage: bk-launch <server|hook> [args...]
5
+ # BK_LAUNCH_DIST overrides the directory holding the built components.
6
+ set -u
7
+
8
+ REQUIRED_MAJOR=20
9
+
10
+ target="${1:-}"
11
+ case "$target" in
12
+ server|hook) shift ;;
13
+ *) echo "usage: bk-launch <server|hook> [args...]" >&2; exit 64 ;;
14
+ esac
15
+
16
+ here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
17
+ dist="${BK_LAUNCH_DIST:-$here/../dist}"
18
+ case "$target" in
19
+ server) entry="$dist/server/main.js" ;;
20
+ hook) entry="$dist/hooks/main.js" ;;
21
+ esac
22
+
23
+ fail() {
24
+ cat >&2 <<MSG
25
+ BuildKeel needs Node.js $REQUIRED_MAJOR or later. $1
26
+ Install it from https://nodejs.org or with your version manager (for example "nvm install $REQUIRED_MAJOR"), then start a new session.
27
+ MSG
28
+ exit 1
29
+ }
30
+
31
+ command -v node >/dev/null 2>&1 || fail "Node.js was not found on your PATH."
32
+
33
+ # bk-start.cjs checks the version and runs the component in one Node process.
34
+ exec node "$here/bk-start.cjs" "$entry" "$@"
@@ -0,0 +1,36 @@
1
+ @echo off
2
+ rem Starts a BuildKeel component after checking for Node.js 20 or later
3
+ rem (the version itself is checked by bk-start.cjs).
4
+ rem Usage: bk-launch <server|hook> [args...]
5
+ rem BK_LAUNCH_DIST overrides the directory holding the built components.
6
+ rem No delayed expansion: it would take ! out of the arguments.
7
+ setlocal DisableDelayedExpansion
8
+
9
+ set "REQUIRED_MAJOR=20"
10
+
11
+ set "TARGET=%~1"
12
+ if /I "%TARGET%"=="server" (set "ENTRY=server\main.js" & goto :target_ok)
13
+ if /I "%TARGET%"=="hook" (set "ENTRY=hooks\main.js" & goto :target_ok)
14
+ echo usage: bk-launch ^<server^|hook^> [args...] 1>&2
15
+ exit /b 64
16
+
17
+ :target_ok
18
+ rem The launcher's own folder, ending in a backslash.
19
+ set "HERE=%~dp0"
20
+ if defined BK_LAUNCH_DIST (set "DIST=%BK_LAUNCH_DIST%") else (set "DIST=%HERE%..\dist")
21
+
22
+ where node >nul 2>nul
23
+ if errorlevel 1 (
24
+ set "REASON=Node.js was not found on your PATH."
25
+ goto :fail
26
+ )
27
+ rem bk-start.cjs checks the version and runs the component in one Node process.
28
+ rem The arguments go through as given; BK_START_SHIFT has it drop the first, server or hook.
29
+ set "BK_START_SHIFT=1"
30
+ node "%HERE%bk-start.cjs" "%DIST%\%ENTRY%" %*
31
+ exit /b %ERRORLEVEL%
32
+
33
+ :fail
34
+ echo BuildKeel needs Node.js %REQUIRED_MAJOR% or later. %REASON% 1>&2
35
+ echo Install it from https://nodejs.org or with your version manager (for example "nvm install %REQUIRED_MAJOR%"), then start a new session. 1>&2
36
+ exit /b 1
@@ -0,0 +1,28 @@
1
+ // Checks for Node.js 20 or later, then runs a BuildKeel component in this same
2
+ // process. Started by bk-launch, so each start costs one Node process, not two.
3
+ // Usage: node bk-start.cjs <component entry> [args...]
4
+ // Kept to old syntax so an old Node can still read it and say what is needed.
5
+ "use strict";
6
+
7
+ var REQUIRED_MAJOR = 20;
8
+
9
+ var version = process.versions.node;
10
+ var major = Number(version.split(".")[0]);
11
+ if (!(major >= REQUIRED_MAJOR)) {
12
+ process.stderr.write(
13
+ "BuildKeel needs Node.js " + REQUIRED_MAJOR + " or later. Found Node.js " + version + ".\n" +
14
+ 'Install it from https://nodejs.org or with your version manager (for example "nvm install ' + REQUIRED_MAJOR + '"), then start a new session.\n',
15
+ );
16
+ process.exit(1);
17
+ }
18
+
19
+ var entry = process.argv[2];
20
+ // bk-launch.cmd passes its arguments as given, with server or hook first, and sets BK_START_SHIFT to have it dropped.
21
+ var shift = process.env.BK_START_SHIFT === "1" ? 1 : 0;
22
+ delete process.env.BK_START_SHIFT;
23
+ // The component reads its own arguments from process.argv.slice(2), as if Node had started it directly.
24
+ process.argv.splice(1, 2 + shift, entry);
25
+ import(require("node:url").pathToFileURL(entry).href).catch(function (error) {
26
+ process.stderr.write("BuildKeel could not start " + entry + ": " + (error && error.message ? error.message : String(error)) + "\n");
27
+ process.exit(1);
28
+ });