spets 0.2.3 → 0.2.5
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.
- package/dist/index.js +18 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -284,7 +284,8 @@ You execute spets workflow commands. Follow orchestrator instructions exactly.
|
|
|
284
284
|
## Startup
|
|
285
285
|
|
|
286
286
|
IF \`$ARGUMENTS\` starts with "resume":
|
|
287
|
-
|
|
287
|
+
Extract optional task ID from arguments (e.g. "resume abc-123" or "resume --task abc-123")
|
|
288
|
+
RUN \`npx spets orchestrate resume <taskId>\` (omit taskId if none provided)
|
|
288
289
|
ELSE IF \`$ARGUMENTS\` starts with "list":
|
|
289
290
|
RUN \`npx spets orchestrate list\`
|
|
290
291
|
ELSE:
|
|
@@ -325,7 +326,8 @@ You execute spets workflow commands. Follow orchestrator instructions exactly.
|
|
|
325
326
|
## Startup
|
|
326
327
|
|
|
327
328
|
IF \`$ARGUMENTS\` starts with "resume":
|
|
328
|
-
|
|
329
|
+
Extract optional task ID from arguments (e.g. "resume abc-123" or "resume --task abc-123")
|
|
330
|
+
RUN \`npx spets orchestrate resume <taskId>\` (omit taskId if none provided)
|
|
329
331
|
ELSE IF \`$ARGUMENTS\` starts with "list":
|
|
330
332
|
RUN \`npx spets orchestrate list\`
|
|
331
333
|
ELSE:
|
|
@@ -366,7 +368,8 @@ You execute spets workflow commands. Follow orchestrator instructions exactly.
|
|
|
366
368
|
## Startup
|
|
367
369
|
|
|
368
370
|
IF \`$ARGUMENTS\` starts with "resume":
|
|
369
|
-
|
|
371
|
+
Extract optional task ID from arguments (e.g. "resume abc-123" or "resume --task abc-123")
|
|
372
|
+
RUN \`npx spets orchestrate resume <taskId>\` (omit taskId if none provided)
|
|
370
373
|
ELSE IF \`$ARGUMENTS\` starts with "list":
|
|
371
374
|
RUN \`npx spets orchestrate list\`
|
|
372
375
|
ELSE:
|
|
@@ -984,10 +987,17 @@ function buildExplorePrompt(params) {
|
|
|
984
987
|
}
|
|
985
988
|
parts.push("## Your Task");
|
|
986
989
|
parts.push("");
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
990
|
+
if (isFirstStep) {
|
|
991
|
+
parts.push("1. **Study** the template above to understand what output is expected");
|
|
992
|
+
parts.push("2. **Study** the codebase \u2014 read file contents, not just paths");
|
|
993
|
+
parts.push("3. **Identify** patterns, conventions, and constraints");
|
|
994
|
+
parts.push("4. **Confirm** assumptions by searching \u2014 do not guess");
|
|
995
|
+
} else {
|
|
996
|
+
parts.push("1. **Study** the template above to understand what output is expected");
|
|
997
|
+
parts.push("2. **Study** the previous step output \u2014 it already contains codebase analysis, decisions, and context");
|
|
998
|
+
parts.push("3. **Supplement** with targeted codebase reads only where the previous output lacks detail for this step");
|
|
999
|
+
parts.push("4. **Confirm** assumptions by searching \u2014 do not guess");
|
|
1000
|
+
}
|
|
991
1001
|
parts.push("");
|
|
992
1002
|
const config = loadConfig(cwd);
|
|
993
1003
|
if (config.knowledge?.inject !== false) {
|
|
@@ -1425,6 +1435,7 @@ function buildExecutePrompt(params) {
|
|
|
1425
1435
|
parts.push("- **Verify your work.** If the output makes claims, make sure they are true.");
|
|
1426
1436
|
parts.push("- **Follow the patterns** found during exploration.");
|
|
1427
1437
|
parts.push("- **Use your full capabilities.** Whatever this output requires \u2014 do it.");
|
|
1438
|
+
parts.push("- **Be context-efficient.** Use the explored context above as your primary reference. Use Grep to locate code before reading. Never re-read a file you have already read in this session.");
|
|
1428
1439
|
parts.push("");
|
|
1429
1440
|
parts.push("## Output");
|
|
1430
1441
|
parts.push("");
|