spets 0.1.15 → 0.1.17
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/{chunk-L3K6T5GO.js → chunk-DFP5B4PL.js} +7 -0
- package/dist/index.js +8 -4
- package/dist/{state-3SI6H5IW.js → state-6GP2F6NT.js} +1 -1
- package/package.json +3 -2
- /package/{templates → assets}/github/ISSUE_TEMPLATE/spets-task.yml +0 -0
- /package/{templates → assets}/github/workflows/spets.yml +0 -0
|
@@ -23,6 +23,13 @@ function getStepsDir(cwd = process.cwd()) {
|
|
|
23
23
|
return join(getSpetsDir(cwd), STEPS_DIR);
|
|
24
24
|
}
|
|
25
25
|
function getOutputsDir(cwd = process.cwd()) {
|
|
26
|
+
try {
|
|
27
|
+
const config = loadConfig(cwd);
|
|
28
|
+
if (config.output?.path) {
|
|
29
|
+
return config.output.path.startsWith("/") ? config.output.path : join(cwd, config.output.path);
|
|
30
|
+
}
|
|
31
|
+
} catch {
|
|
32
|
+
}
|
|
26
33
|
return join(getSpetsDir(cwd), "outputs");
|
|
27
34
|
}
|
|
28
35
|
function spetsExists(cwd = process.cwd()) {
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
saveTaskMetadata,
|
|
17
17
|
spetsExists,
|
|
18
18
|
updateDocumentStatus
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DFP5B4PL.js";
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
import { Command } from "commander";
|
|
@@ -100,6 +100,10 @@ github:
|
|
|
100
100
|
steps:
|
|
101
101
|
- 01-plan
|
|
102
102
|
- 02-implement
|
|
103
|
+
|
|
104
|
+
# Output configuration
|
|
105
|
+
output:
|
|
106
|
+
path: .spets/outputs
|
|
103
107
|
${githubSection}
|
|
104
108
|
# Optional hooks (shell scripts)
|
|
105
109
|
# hooks:
|
|
@@ -269,8 +273,8 @@ function createGitHubWorkflow(cwd) {
|
|
|
269
273
|
const templateDir = join(cwd, ".github", "ISSUE_TEMPLATE");
|
|
270
274
|
mkdirSync(workflowDir, { recursive: true });
|
|
271
275
|
mkdirSync(templateDir, { recursive: true });
|
|
272
|
-
const workflowTemplate = readFileSync(join(__dirname, "..", "
|
|
273
|
-
const issueTemplate = readFileSync(join(__dirname, "..", "
|
|
276
|
+
const workflowTemplate = readFileSync(join(__dirname, "..", "assets", "github", "workflows", "spets.yml"), "utf-8");
|
|
277
|
+
const issueTemplate = readFileSync(join(__dirname, "..", "assets", "github", "ISSUE_TEMPLATE", "spets-task.yml"), "utf-8");
|
|
274
278
|
writeFileSync(join(workflowDir, "spets.yml"), workflowTemplate);
|
|
275
279
|
writeFileSync(join(templateDir, "spets-task.yml"), issueTemplate);
|
|
276
280
|
}
|
|
@@ -1634,7 +1638,7 @@ async function githubCommand(options) {
|
|
|
1634
1638
|
}
|
|
1635
1639
|
if (!taskId) {
|
|
1636
1640
|
const config2 = loadConfig(cwd);
|
|
1637
|
-
const { listTasks: listTasks2 } = await import("./state-
|
|
1641
|
+
const { listTasks: listTasks2 } = await import("./state-6GP2F6NT.js");
|
|
1638
1642
|
const tasks = listTasks2(cwd);
|
|
1639
1643
|
for (const tid of tasks) {
|
|
1640
1644
|
const state2 = getWorkflowState(tid, config2, cwd);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Spec Driven Development Execution Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"templates"
|
|
12
|
+
"templates",
|
|
13
|
+
"assets"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"dev": "tsx src/index.ts",
|
|
File without changes
|
|
File without changes
|