spets 0.1.60 → 0.1.62

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -140,7 +140,7 @@ function installCodexPlugin() {
140
140
  console.log("No additional Codex processes are spawned.");
141
141
  }
142
142
  function installOpenCodePlugin() {
143
- const spetsDir = join2(process.cwd(), ".opencode", "skills", "spets");
143
+ const spetsDir = join2(process.cwd(), ".opencode", "skill", "spets");
144
144
  mkdirSync(spetsDir, { recursive: true });
145
145
  const skillPath = join2(spetsDir, "SKILL.md");
146
146
  writeFileSync(skillPath, getOpenCodeSkillContent());
@@ -201,8 +201,8 @@ async function uninstallPlugin(name) {
201
201
  return;
202
202
  }
203
203
  if (name === "opencode") {
204
- const projectSkillPath = join2(process.cwd(), ".opencode", "skills", "spets", "SKILL.md");
205
- const globalSkillPath = join2(homedir(), ".config", "opencode", "skills", "spets", "SKILL.md");
204
+ const projectSkillPath = join2(process.cwd(), ".opencode", "skill", "spets", "SKILL.md");
205
+ const globalSkillPath = join2(homedir(), ".config", "opencode", "skill", "spets", "SKILL.md");
206
206
  let uninstalled = false;
207
207
  for (const skillPath of [projectSkillPath, globalSkillPath]) {
208
208
  if (existsSync2(skillPath)) {
@@ -244,8 +244,8 @@ async function listPlugins() {
244
244
  const codexGlobalPath = join2(homedir(), ".codex", "skills", "spets", "SKILL.md");
245
245
  const codexInstalled = existsSync2(codexProjectPath) || existsSync2(codexGlobalPath);
246
246
  const codexLocation = existsSync2(codexProjectPath) ? "project" : existsSync2(codexGlobalPath) ? "global" : null;
247
- const opencodeProjectPath = join2(process.cwd(), ".opencode", "skills", "spets", "SKILL.md");
248
- const opencodeGlobalPath = join2(homedir(), ".config", "opencode", "skills", "spets", "SKILL.md");
247
+ const opencodeProjectPath = join2(process.cwd(), ".opencode", "skill", "spets", "SKILL.md");
248
+ const opencodeGlobalPath = join2(homedir(), ".config", "opencode", "skill", "spets", "SKILL.md");
249
249
  const opencodeInstalled = existsSync2(opencodeProjectPath) || existsSync2(opencodeGlobalPath);
250
250
  const opencodeLocation = existsSync2(opencodeProjectPath) ? "project" : existsSync2(opencodeGlobalPath) ? "global" : null;
251
251
  console.log("Installed:");
@@ -327,25 +327,33 @@ Repeat until \`type\` is \`"complete"\` or \`"error"\`:
327
327
 
328
328
  1. Parse JSON response
329
329
  2. Do the action for \`type\`
330
- 3. Run \`onComplete\` command with JSON result (use single quotes): \`npx spets orchestrate explore-done task-123 '<json>'\`
330
+ 3. Run \`onComplete\` command with JSON (single line, single quotes)
331
331
  4. Go to step 1
332
332
 
333
+ ## Shell Command Format
334
+
335
+ All commands must be a single line. Minify JSON (no newlines):
336
+
337
+ \`\`\`bash
338
+ npx spets orchestrate explore-done task-123 '{"summary":"...","relevantFiles":[]}'
339
+ \`\`\`
340
+
333
341
  ## Actions
334
342
 
335
343
  ### type: "phase"
336
344
 
337
345
  | phase | Action |
338
346
  |-------|--------|
339
- | explore | Follow \`prompt\` \u2192 \`onComplete '<explore_json>'\` |
340
- | clarify | Follow \`prompt\` \u2192 \`onComplete '<questions_json>'\` |
347
+ | explore | Follow \`prompt\` \u2192 \`onComplete '<minified_json>'\` |
348
+ | clarify | Follow \`prompt\` \u2192 \`onComplete '<minified_json>'\` |
341
349
  | execute | Follow \`prompt\`, write to \`context.output\` \u2192 run \`onComplete\` |
342
- | verify | Follow \`prompt\` \u2192 \`onComplete '<verify_json>'\` |
350
+ | verify | Follow \`prompt\` \u2192 \`onComplete '<minified_json>'\` |
343
351
 
344
352
  ### type: "checkpoint"
345
353
 
346
354
  | checkpoint | Action |
347
355
  |------------|--------|
348
- | clarify | Ask user each \`questions[]\` \u2192 \`onComplete '<answers_json>'\` |
356
+ | clarify | Ask user each \`questions[]\` \u2192 \`onComplete '<minified_json>'\` |
349
357
  | approve | Read \`specPath\`, summarize, ask user \u2192 run \`onComplete[choice]\` |
350
358
 
351
359
  ### type: "complete" / "error"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",