spets 0.1.17 → 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 }}
package/dist/index.js CHANGED
@@ -20,6 +20,9 @@ import {
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";
@@ -2427,8 +2430,10 @@ async function orchestrateCommand(action, args) {
2427
2430
  }
2428
2431
 
2429
2432
  // src/index.ts
2433
+ var __dirname2 = dirname3(fileURLToPath2(import.meta.url));
2434
+ var pkg = JSON.parse(readFileSync4(join6(__dirname2, "..", "package.json"), "utf-8"));
2430
2435
  var program = new Command();
2431
- 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);
2432
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);
2433
2438
  program.command("status").description("Show current workflow status").option("-t, --task <taskId>", "Show status for specific task").action(statusCommand);
2434
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",