spets 0.1.99 → 0.2.0

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 +109 -45
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -274,29 +274,51 @@ function getClaudeSkillContent() {
274
274
 
275
275
  You execute spets orchestrator commands. Parse JSON, follow instructions, repeat.
276
276
 
277
- ## Execution
277
+ ## Startup
278
278
 
279
- 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
280
- 2. PARSE JSON response
281
- 3. SWITCH on \`type\`:
279
+ IF \`$ARGUMENTS\` starts with "resume":
280
+ 1. RUN \`npx spets orchestrate resume\`
281
+ ELSE:
282
+ 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
282
283
 
283
- type="phase":
284
+ Then GOTO **Loop**.
285
+
286
+ ## Loop
287
+
288
+ 1. PARSE JSON response
289
+ 2. SWITCH on \`type\`:
290
+
291
+ ### type="phase"
284
292
  - EXECUTE what \`prompt\` says
285
293
  - RUN \`onComplete\` with your output as JSON argument
286
- - GOTO step 2
294
+ - GOTO Loop
287
295
 
288
- type="checkpoint", checkpoint="clarify":
289
- - ASK user each question in \`questions[]\` using AskUserQuestion
290
- - RUN \`onComplete\` with \`[{questionId, answer}, ...]\`
291
- - GOTO step 2
296
+ ### type="checkpoint", checkpoint="clarify"
297
+ - ASK user each decision in \`decisions[]\` using AskUserQuestion
298
+ - Format each decision as a question with its options
299
+ - RUN \`onComplete\` with \`[{decisionId, selectedOptionId}, ...]\`
300
+ - GOTO Loop
292
301
 
293
- type="checkpoint", checkpoint="approve":
302
+ ### type="checkpoint", checkpoint="approve"
294
303
  - READ \`specPath\`, summarize key points to user
295
304
  - ASK user using AskUserQuestion with options: Approve / Revise / Reject / Stop
296
305
  - RUN matching \`onComplete\` based on user's choice
297
- - GOTO step 2
306
+ - GOTO Loop
307
+
308
+ ### type="checkpoint", checkpoint="knowledge"
309
+ - Show \`suggestedKnowledge[]\` to user
310
+ - ASK user if they want to save, modify, or skip
311
+ - If save: RUN \`onComplete\` with entries JSON
312
+ - If skip: RUN \`onSkip\`
313
+ - GOTO Loop
298
314
 
299
- type="complete" or "error":
315
+ ### type="list"
316
+ - Show \`tasks[]\` to user with taskId, description, status, currentStep
317
+ - ASK user which task to resume
318
+ - RUN \`npx spets orchestrate resume <selectedTaskId>\`
319
+ - GOTO Loop
320
+
321
+ ### type="complete" or "error"
300
322
  - PRINT message
301
323
  - STOP
302
324
 
@@ -305,7 +327,7 @@ type="complete" or "error":
305
327
  EnterPlanMode, TaskCreate, TaskUpdate
306
328
 
307
329
  $ARGUMENTS
308
- description: Task description for the workflow
330
+ description: Task description for the workflow (or "resume" to continue a previous workflow)
309
331
  `;
310
332
  }
311
333
  function getCodexSkillContent() {
@@ -318,33 +340,54 @@ description: SDD workflow executor - orchestrator-controlled spec-driven develop
318
340
 
319
341
  You execute spets orchestrator commands. Parse JSON, follow instructions, repeat.
320
342
 
321
- ## Execution
343
+ ## Startup
344
+
345
+ IF \`$ARGUMENTS\` starts with "resume":
346
+ 1. RUN \`npx spets orchestrate resume\`
347
+ ELSE:
348
+ 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
349
+
350
+ Then GOTO **Loop**.
322
351
 
323
- 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
324
- 2. PARSE JSON response
325
- 3. SWITCH on \`type\`:
352
+ ## Loop
326
353
 
327
- type="phase":
354
+ 1. PARSE JSON response
355
+ 2. SWITCH on \`type\`:
356
+
357
+ ### type="phase"
328
358
  - EXECUTE what \`prompt\` says
329
359
  - RUN \`onComplete\` with your output as minified JSON argument
330
- - GOTO step 2
360
+ - GOTO Loop
331
361
 
332
- type="checkpoint", checkpoint="clarify":
333
- - FORMAT questions as table for user:
334
- | # | Question | Context | Options |
362
+ ### type="checkpoint", checkpoint="clarify"
363
+ - FORMAT decisions as table for user:
364
+ | # | Decision | Context | Options |
335
365
  |---|----------|---------|---------|
336
- | q1 | ... | ... | 1. ... 2. ... |
337
- - ASK user to answer each question
338
- - RUN \`onComplete\` with \`[{questionId, answer}, ...]\`
339
- - GOTO step 2
366
+ | d1 | ... | ... | 1. ... 2. ... |
367
+ - ASK user to pick an option for each decision
368
+ - RUN \`onComplete\` with \`[{decisionId, selectedOptionId}, ...]\`
369
+ - GOTO Loop
340
370
 
341
- type="checkpoint", checkpoint="approve":
371
+ ### type="checkpoint", checkpoint="approve"
342
372
  - READ \`specPath\`, summarize key points to user
343
- - ASK user using AskUserQuestion with options: Approve / Revise / Reject / Stop
373
+ - ASK user with options: Approve / Revise / Reject / Stop
344
374
  - RUN matching \`onComplete\` based on user's choice
345
- - GOTO step 2
375
+ - GOTO Loop
376
+
377
+ ### type="checkpoint", checkpoint="knowledge"
378
+ - Show \`suggestedKnowledge[]\` to user
379
+ - ASK user if they want to save, modify, or skip
380
+ - If save: RUN \`onComplete\` with entries JSON
381
+ - If skip: RUN \`onSkip\`
382
+ - GOTO Loop
346
383
 
347
- type="complete" or "error":
384
+ ### type="list"
385
+ - Show \`tasks[]\` to user with taskId, description, status, currentStep
386
+ - ASK user which task to resume
387
+ - RUN \`npx spets orchestrate resume <selectedTaskId>\`
388
+ - GOTO Loop
389
+
390
+ ### type="complete" or "error"
348
391
  - PRINT message
349
392
  - STOP
350
393
 
@@ -353,7 +396,7 @@ type="complete" or "error":
353
396
  Planning mode, task tracking tools
354
397
 
355
398
  $ARGUMENTS
356
- description: Task description for the workflow
399
+ description: Task description for the workflow (or "resume" to continue a previous workflow)
357
400
  `;
358
401
  }
359
402
  function getGeminiSkillContent() {
@@ -366,29 +409,50 @@ description: SDD workflow executor - orchestrator-controlled spec-driven develop
366
409
 
367
410
  You execute spets orchestrator commands. Parse JSON, follow instructions, repeat.
368
411
 
369
- ## Execution
412
+ ## Startup
413
+
414
+ IF \`$ARGUMENTS\` starts with "resume":
415
+ 1. RUN \`npx spets orchestrate resume\`
416
+ ELSE:
417
+ 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
370
418
 
371
- 1. RUN \`npx spets orchestrate init "$ARGUMENTS"\`
372
- 2. PARSE JSON response
373
- 3. SWITCH on \`type\`:
419
+ Then GOTO **Loop**.
374
420
 
375
- type="phase":
421
+ ## Loop
422
+
423
+ 1. PARSE JSON response
424
+ 2. SWITCH on \`type\`:
425
+
426
+ ### type="phase"
376
427
  - EXECUTE what \`prompt\` says
377
428
  - RUN \`onComplete\` with your output as JSON argument
378
- - GOTO step 2
429
+ - GOTO Loop
379
430
 
380
- type="checkpoint", checkpoint="clarify":
381
- - ASK user each question in \`decisions[]\`
431
+ ### type="checkpoint", checkpoint="clarify"
432
+ - ASK user each decision in \`decisions[]\`
382
433
  - RUN \`onComplete\` with \`[{decisionId, selectedOptionId}, ...]\`
383
- - GOTO step 2
434
+ - GOTO Loop
384
435
 
385
- type="checkpoint", checkpoint="approve":
436
+ ### type="checkpoint", checkpoint="approve"
386
437
  - READ \`specPath\`, summarize key points to user
387
438
  - ASK user with options: Approve / Revise / Reject / Stop
388
439
  - RUN matching \`onComplete\` based on user's choice
389
- - GOTO step 2
440
+ - GOTO Loop
441
+
442
+ ### type="checkpoint", checkpoint="knowledge"
443
+ - Show \`suggestedKnowledge[]\` to user
444
+ - ASK user if they want to save, modify, or skip
445
+ - If save: RUN \`onComplete\` with entries JSON
446
+ - If skip: RUN \`onSkip\`
447
+ - GOTO Loop
448
+
449
+ ### type="list"
450
+ - Show \`tasks[]\` to user with taskId, description, status, currentStep
451
+ - ASK user which task to resume
452
+ - RUN \`npx spets orchestrate resume <selectedTaskId>\`
453
+ - GOTO Loop
390
454
 
391
- type="complete" or "error":
455
+ ### type="complete" or "error"
392
456
  - PRINT message
393
457
  - STOP
394
458
 
@@ -397,7 +461,7 @@ type="complete" or "error":
397
461
  Planning mode, task tracking tools
398
462
 
399
463
  $ARGUMENTS
400
- description: Task description for the workflow
464
+ description: Task description for the workflow (or "resume" to continue a previous workflow)
401
465
  `;
402
466
  }
403
467
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.99",
3
+ "version": "0.2.0",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",