@structured-vibe-coding/core 0.10.1 → 0.11.0
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/README.md +6 -19
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# `@structured-vibe-coding/core`
|
|
2
2
|
|
|
3
|
-
Core engine for **Structured Vibe Coding** — local
|
|
3
|
+
Core engine for **Structured Vibe Coding** — local Spec-Driven Development.
|
|
4
4
|
|
|
5
|
-
Used by `@structured-vibe-coding/cli` (`sdd`
|
|
5
|
+
Used by `@structured-vibe-coding/cli` (`sdd`).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -10,24 +10,11 @@ Used by `@structured-vibe-coding/cli` (`sdd` command).
|
|
|
10
10
|
npm install @structured-vibe-coding/core
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
import { initProject, createChange, advanceStage, loadConfig } from "@structured-vibe-coding/core";
|
|
17
|
-
|
|
18
|
-
const root = process.cwd();
|
|
19
|
-
await initProject({ projectRoot: root });
|
|
20
|
-
const config = await loadConfig(root);
|
|
21
|
-
const change = await createChange({
|
|
22
|
-
projectRoot: root,
|
|
23
|
-
config,
|
|
24
|
-
title: "Add feature X",
|
|
25
|
-
workflowName: "feature",
|
|
26
|
-
});
|
|
27
|
-
await advanceStage(root, config, change.id);
|
|
28
|
-
```
|
|
13
|
+
## Docs
|
|
29
14
|
|
|
30
|
-
|
|
15
|
+
- [First change tutorial](https://github.com/harsha09/spec-driven-development/blob/main/docs/tutorials/first-change.md)
|
|
16
|
+
- [Docs site](https://harsha09.github.io/spec-driven-development/)
|
|
17
|
+
- [Repository](https://github.com/harsha09/spec-driven-development)
|
|
31
18
|
|
|
32
19
|
## License
|
|
33
20
|
|
package/dist/index.js
CHANGED
|
@@ -106,7 +106,17 @@ function incompleteArtifactReason(path, content) {
|
|
|
106
106
|
return `Missing required artifact: ${path}`;
|
|
107
107
|
}
|
|
108
108
|
if (!isSubstantiveArtifactContent(content)) {
|
|
109
|
-
return
|
|
109
|
+
return [
|
|
110
|
+
`Required artifact still incomplete (looks like empty template/stub): ${path}`,
|
|
111
|
+
``,
|
|
112
|
+
`Open that file and replace the template with a few real sentences, for example:`,
|
|
113
|
+
` - What is broken or missing?`,
|
|
114
|
+
` - What will you change?`,
|
|
115
|
+
` - How will you know it worked?`,
|
|
116
|
+
``,
|
|
117
|
+
`Then run: sdd next`,
|
|
118
|
+
`Optional stages only: sdd skip <stage> -r "not needed"`
|
|
119
|
+
].join("\n");
|
|
110
120
|
}
|
|
111
121
|
return null;
|
|
112
122
|
}
|