spets 0.1.16 → 0.1.18

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.
@@ -78,9 +78,12 @@ jobs:
78
78
  - name: Install dependencies
79
79
  run: npm ci
80
80
 
81
+ - name: Install Spets
82
+ run: npm install -g spets
83
+
81
84
  - name: Start Spets workflow
82
85
  run: |
83
- npx spets start "$TASK" --github --issue ${{ github.event.issue.number }}
86
+ spets start "$TASK" --github --issue ${{ github.event.issue.number }}
84
87
  env:
85
88
  TASK: ${{ steps.parse.outputs.task }}
86
89
  CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
@@ -195,9 +198,12 @@ jobs:
195
198
  - name: Install dependencies
196
199
  run: npm ci
197
200
 
201
+ - name: Install Spets
202
+ run: npm install -g spets
203
+
198
204
  - name: Run Spets command
199
205
  run: |
200
- npx spets github --issue ${{ github.event.issue.number }} --comment "$COMMENT"
206
+ spets github --issue ${{ github.event.issue.number }} --comment "$COMMENT"
201
207
  env:
202
208
  COMMENT: ${{ github.event.comment.body }}
203
209
  CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
@@ -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,10 +16,13 @@ import {
16
16
  saveTaskMetadata,
17
17
  spetsExists,
18
18
  updateDocumentStatus
19
- } from "./chunk-L3K6T5GO.js";
19
+ } from "./chunk-DFP5B4PL.js";
20
20
 
21
21
  // src/index.ts
22
22
  import { Command } from "commander";
23
+ import { readFileSync as readFileSync4 } from "fs";
24
+ import { dirname as dirname3, join as join6 } from "path";
25
+ import { fileURLToPath as fileURLToPath2 } from "url";
23
26
 
24
27
  // src/commands/init.ts
25
28
  import { mkdirSync, writeFileSync, readFileSync } from "fs";
@@ -100,6 +103,10 @@ github:
100
103
  steps:
101
104
  - 01-plan
102
105
  - 02-implement
106
+
107
+ # Output configuration
108
+ output:
109
+ path: .spets/outputs
103
110
  ${githubSection}
104
111
  # Optional hooks (shell scripts)
105
112
  # hooks:
@@ -1634,7 +1641,7 @@ async function githubCommand(options) {
1634
1641
  }
1635
1642
  if (!taskId) {
1636
1643
  const config2 = loadConfig(cwd);
1637
- const { listTasks: listTasks2 } = await import("./state-3SI6H5IW.js");
1644
+ const { listTasks: listTasks2 } = await import("./state-6GP2F6NT.js");
1638
1645
  const tasks = listTasks2(cwd);
1639
1646
  for (const tid of tasks) {
1640
1647
  const state2 = getWorkflowState(tid, config2, cwd);
@@ -2423,8 +2430,10 @@ async function orchestrateCommand(action, args) {
2423
2430
  }
2424
2431
 
2425
2432
  // src/index.ts
2433
+ var __dirname2 = dirname3(fileURLToPath2(import.meta.url));
2434
+ var pkg = JSON.parse(readFileSync4(join6(__dirname2, "..", "package.json"), "utf-8"));
2426
2435
  var program = new Command();
2427
- program.name("spets").description("Spec Driven Development Execution Framework").version("0.1.3");
2436
+ program.name("spets").description("Spec Driven Development Execution Framework").version(pkg.version);
2428
2437
  program.command("init").description("Initialize spets in current directory").option("-f, --force", "Overwrite existing config").option("--github", "Add GitHub Actions workflow for PR/Issue integration").action(initCommand);
2429
2438
  program.command("status").description("Show current workflow status").option("-t, --task <taskId>", "Show status for specific task").action(statusCommand);
2430
2439
  program.command("start").description("Start a new workflow").argument("<query>", "User query describing the task").option("--github", "Use GitHub platform (reads owner/repo from config or git remote)").option("--issue [number]", "Use or create GitHub Issue (optional: specify existing issue number)").option("--pr [number]", "Use or create GitHub PR (optional: specify existing PR number)").action(startCommand);
@@ -12,7 +12,7 @@ import {
12
12
  saveDocument,
13
13
  saveTaskMetadata,
14
14
  updateDocumentStatus
15
- } from "./chunk-L3K6T5GO.js";
15
+ } from "./chunk-DFP5B4PL.js";
16
16
  export {
17
17
  createDocument,
18
18
  ensureTaskDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",