spets 0.1.82 → 0.1.84

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.
@@ -2,19 +2,22 @@ name: Spets Task
2
2
  description: Start a Spets workflow
3
3
  labels: ["spets"]
4
4
  body:
5
- - type: input
6
- id: task
7
- attributes:
8
- label: Task Description
9
- description: What do you want to accomplish?
10
- placeholder: "Add user authentication"
11
- validations:
12
- required: true
13
5
  - type: input
14
6
  id: branch
15
7
  attributes:
16
8
  label: Branch Name
17
- description: Leave empty to auto-generate (spets/<issue-number>)
9
+ description: Name for the feature branch
18
10
  placeholder: "feature/my-feature"
19
11
  validations:
20
- required: false
12
+ required: true
13
+ - type: textarea
14
+ id: requirements
15
+ attributes:
16
+ label: Requirements
17
+ description: What do you want to accomplish? (supports multi-line)
18
+ placeholder: |
19
+ Add user authentication
20
+ - Support email/password login
21
+ - Add JWT tokens
22
+ validations:
23
+ required: true
package/dist/index.js CHANGED
@@ -3277,13 +3277,11 @@ var GitHubIOAdapter = class {
3277
3277
  lines.push(`> ${d.why}`);
3278
3278
  lines.push("");
3279
3279
  lines.push("**Options:**");
3280
- let optionNumber = 1;
3281
3280
  for (const opt of d.options) {
3282
3281
  if (opt.id === "ai") {
3283
- lines.push(`- **Recommended**: ${opt.label} \u2192 recommends \`${opt.recommendation}\` (${opt.reason})`);
3282
+ lines.push(`- **Recommended**${opt.reason ? ` (${opt.reason})` : ""}`);
3284
3283
  } else {
3285
- lines.push(`- **Option ${optionNumber}**: ${opt.label}${opt.tradeoffs ? ` - ${opt.tradeoffs}` : ""}`);
3286
- optionNumber++;
3284
+ lines.push(`- ${opt.label}${opt.tradeoffs ? ` - ${opt.tradeoffs}` : ""}`);
3287
3285
  }
3288
3286
  }
3289
3287
  lines.push("");
@@ -3296,9 +3294,14 @@ var GitHubIOAdapter = class {
3296
3294
  lines.push("/decide");
3297
3295
  for (let i = 0; i < decisions.length; i++) {
3298
3296
  const d = decisions[i];
3299
- const aiOpt = d.options.find((o) => o.id === "ai");
3300
- const defaultOpt = aiOpt?.recommendation || d.options[0]?.id || "opt1";
3301
- lines.push(`D${i + 1}: ${defaultOpt} # or choose: ${d.options.map((o) => o.id).join(", ")}`);
3297
+ lines.push(`D${i + 1}: ${d.decision}`);
3298
+ for (const opt of d.options) {
3299
+ if (opt.id === "ai") {
3300
+ lines.push(` - AI Recommended`);
3301
+ } else {
3302
+ lines.push(` - ${opt.label}`);
3303
+ }
3304
+ }
3302
3305
  }
3303
3306
  lines.push("```");
3304
3307
  return lines.join("\n");
@@ -5028,7 +5031,7 @@ async function callClaude(prompt) {
5028
5031
  });
5029
5032
  }
5030
5033
  async function createOrUpdateIssue(config, taskId, userQuery, stepName) {
5031
- const { owner, repo, issueNumber } = config;
5034
+ const { owner, repo, issueNumber, branch } = config;
5032
5035
  const body = `## Spets Workflow Update
5033
5036
 
5034
5037
  - Task ID: \`${taskId}\`
@@ -5053,7 +5056,7 @@ ${userQuery}`;
5053
5056
  "--repo",
5054
5057
  `${owner}/${repo}`,
5055
5058
  "--title",
5056
- userQuery.slice(0, 50),
5059
+ branch || userQuery.slice(0, 50),
5057
5060
  "--body",
5058
5061
  body,
5059
5062
  "--label",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.82",
3
+ "version": "0.1.84",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",