@spekn/cli 1.0.2 → 1.0.5
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/main.js +118 -52
- package/dist/resources/prompts/repo-sync-analysis.prompt.md +1 -1
- package/dist/tui/index.mjs +4745 -537
- package/dist/tui/prompts/spec-creation-system.prompt.md +2 -2
- package/dist/tui/prompts/spec-refinement-system.prompt.md +9 -0
- package/package.json +3 -3
- package/dist/tui/chunk-4WEASLXY.mjs +0 -3444
- package/dist/tui/chunk-755CADEG.mjs +0 -3401
- package/dist/tui/chunk-BUJQVTY5.mjs +0 -3409
- package/dist/tui/chunk-BZKKMGFB.mjs +0 -1959
- package/dist/tui/chunk-DJYOBCNM.mjs +0 -3159
- package/dist/tui/chunk-GTFTFDY4.mjs +0 -3417
- package/dist/tui/chunk-IMEBD2KA.mjs +0 -3444
- package/dist/tui/chunk-IX6DR5SW.mjs +0 -3433
- package/dist/tui/chunk-JKFOY4IF.mjs +0 -2003
- package/dist/tui/chunk-OXXZ3O5L.mjs +0 -3378
- package/dist/tui/chunk-SHJNIAAJ.mjs +0 -1697
- package/dist/tui/chunk-V4SNDRUS.mjs +0 -1666
- package/dist/tui/chunk-VXVHNZST.mjs +0 -1666
- package/dist/tui/chunk-WCTSFKTA.mjs +0 -3459
- package/dist/tui/chunk-X2XP5ACW.mjs +0 -3443
- package/dist/tui/chunk-YUYJ7VBG.mjs +0 -2029
- package/dist/tui/chunk-ZM3EI5IA.mjs +0 -3384
- package/dist/tui/chunk-ZYOX64HP.mjs +0 -1653
- package/dist/tui/use-session-store-63YUGUFA.mjs +0 -8
- package/dist/tui/use-session-store-ACO2SMJC.mjs +0 -8
- package/dist/tui/use-session-store-BVFDAWOB.mjs +0 -8
- package/dist/tui/use-session-store-DJIZ3FQZ.mjs +0 -9
- package/dist/tui/use-session-store-EAIQA4UG.mjs +0 -9
- package/dist/tui/use-session-store-EFBAXC3G.mjs +0 -8
- package/dist/tui/use-session-store-FJOR4KTG.mjs +0 -8
- package/dist/tui/use-session-store-IJE5KVOC.mjs +0 -8
- package/dist/tui/use-session-store-KGAFXCKI.mjs +0 -8
- package/dist/tui/use-session-store-KS4DPNDY.mjs +0 -8
- package/dist/tui/use-session-store-MMHJENNL.mjs +0 -8
- package/dist/tui/use-session-store-OZ6HC4I2.mjs +0 -9
- package/dist/tui/use-session-store-PTMWISNJ.mjs +0 -8
- package/dist/tui/use-session-store-VCDECQMW.mjs +0 -8
- package/dist/tui/use-session-store-VOK5ML5J.mjs +0 -9
|
@@ -28,8 +28,8 @@ Call these MCP prompts for detailed guidance:
|
|
|
28
28
|
1. Analyze the user's request (1-2 sentences)
|
|
29
29
|
2. Confirm spec type (capability, architectural, workflow, operational, decision, intent)
|
|
30
30
|
3. Confirm spec depth (memo, standard, full)
|
|
31
|
-
4. Gather requirements — batch related questions (2-4 per interaction). Allow multiple selections where appropriate.
|
|
32
|
-
5. Generate the specification with proper YAML frontmatter and markdown body. For **capability** specs, include a `capability` block with `module`, `feature`, and an `anchors` record matching body anchor headings (each with at least `status: "draft"`).
|
|
31
|
+
4. Gather requirements — batch related questions (2-4 per interaction). Allow multiple selections where appropriate. For standard/full depth, ask about related specs (dependsOn, compatibleWith).
|
|
32
|
+
5. Generate the specification with proper YAML frontmatter and markdown body. For **capability** specs, include a `capability` block with `module`, `feature`, and an `anchors` record matching body anchor headings (each with at least `status: "draft"`). **Populate relationship fields** (`dependsOn`, `compatibleWith`, `extends`, `conflictsWith`) based on user answers or inferred from context.
|
|
33
33
|
6. Present the full specification content as your final response
|
|
34
34
|
|
|
35
35
|
Execute ALL workflow steps in a SINGLE turn when possible. After each interaction response, immediately proceed to the next step. The user should not need to type "continue".
|
|
@@ -32,6 +32,15 @@ If the spec's frontmatter is missing `hints` (constraints, requirements, technic
|
|
|
32
32
|
- `hints.technical` from technical context sections
|
|
33
33
|
- `aiContext.priorityAnchors` from the most critical anchor paths (max 5)
|
|
34
34
|
|
|
35
|
+
## Relationship Enrichment
|
|
36
|
+
|
|
37
|
+
If the spec's frontmatter is missing relationships (`dependsOn`, `extends`, `compatibleWith`, `conflictsWith`):
|
|
38
|
+
- Use `spekn_spec_list` or `spekn_spec_search` to find related specs in the same project
|
|
39
|
+
- Propose `dependsOn` for specs this one requires or references
|
|
40
|
+
- Propose `compatibleWith` for specs in the same domain/module (matching first anchor segment)
|
|
41
|
+
- Propose `conflictsWith` if overlapping or contradictory requirements exist
|
|
42
|
+
- Relationships are worth +4 points in the frontmatter scoring category
|
|
43
|
+
|
|
35
44
|
## Capability Block Enrichment
|
|
36
45
|
|
|
37
46
|
For **capability** specs, check whether the `capability` frontmatter block is present and complete:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spekn/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Spekn CLI — Spec-Driven Development toolchain. Installs the `spekn` command.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"context-engineering"
|
|
45
45
|
],
|
|
46
46
|
"scripts": {
|
|
47
|
-
"build": "npm -w @spekn/check run build && npm -w @spekn/bridge run build && npm -w @spekn/tui run build && tsc --build && tsup && mkdir -p dist/tui &&
|
|
47
|
+
"build": "npm -w @spekn/check run build && npm -w @spekn/bridge run build && npm -w @spekn/tui run build && tsc --build && tsup && mkdir -p dist/tui && rm -f dist/tui/*.mjs && cp ../tui/dist/*.mjs dist/tui/ && mkdir -p dist/tui/prompts && cp ../tui/dist/prompts/*.prompt.md dist/tui/prompts/ && mkdir -p dist/resources/prompts && cp -R src/resources/prompts/. dist/resources/prompts/ && mkdir -p dist/prompts && cp -R ../check/dist/prompts/. dist/prompts/",
|
|
48
48
|
"dev": "tsc --build --watch",
|
|
49
49
|
"clean": "rm -rf dist",
|
|
50
50
|
"prepublishOnly": "npm run build",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@openpanel/sdk": "^1.0.0",
|
|
55
|
-
"@spekn/analytics": "*",
|
|
56
55
|
"commander": "^14.0.3",
|
|
57
56
|
"js-yaml": "^4.1.0",
|
|
58
57
|
"open": "^10.2.0",
|
|
@@ -64,6 +63,7 @@
|
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@inkjs/ui": "^2.0.0",
|
|
66
|
+
"@spekn/analytics": "*",
|
|
67
67
|
"@spekn/agents": "*",
|
|
68
68
|
"@spekn/bridge": "*",
|
|
69
69
|
"@spekn/check": "*",
|