perstack 0.0.127 → 0.0.129
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/bin/cli.js +22 -25
- package/dist/bin/cli.js.map +1 -1
- package/package.json +5 -5
package/dist/bin/cli.js
CHANGED
|
@@ -21092,7 +21092,7 @@ async function expertVersionsHandler(scopeName, options) {
|
|
|
21092
21092
|
}
|
|
21093
21093
|
//#endregion
|
|
21094
21094
|
//#region ../../packages/runtime/package.json
|
|
21095
|
-
var version$1 = "0.0.
|
|
21095
|
+
var version$1 = "0.0.140";
|
|
21096
21096
|
//#endregion
|
|
21097
21097
|
//#region ../../packages/runtime/src/helpers/usage.ts
|
|
21098
21098
|
function createEmptyUsage() {
|
|
@@ -92490,6 +92490,9 @@ function getDelegateMetaInstruction() {
|
|
|
92490
92490
|
return import_dist.dedent`
|
|
92491
92491
|
Before starting work, investigate the workspace and understand the current state. Then use the todo tool to create a plan of action. Work through the todos step by step, marking each completed as you go.
|
|
92492
92492
|
|
|
92493
|
+
NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one.
|
|
92494
|
+
NEVER proactively create documentation files. Only create documentation files if explicitly requested.
|
|
92495
|
+
|
|
92493
92496
|
When the task is complete, call attemptCompletion with a result parameter containing your final response.
|
|
92494
92497
|
When you cannot help, call attemptCompletion without a result.
|
|
92495
92498
|
|
|
@@ -92498,36 +92501,30 @@ function getDelegateMetaInstruction() {
|
|
|
92498
92501
|
}
|
|
92499
92502
|
function getCoordinatorMetaInstruction() {
|
|
92500
92503
|
return import_dist.dedent`
|
|
92501
|
-
|
|
92502
|
-
- Act as the coordinator for the given task: define the task, set goals, and delegate.
|
|
92503
|
-
- Decompose tasks and delegate subtasks to delegate experts.
|
|
92504
|
-
- Review and aggregate deliverables from delegates.
|
|
92505
|
-
- Determine whether the task meets the completion criteria.
|
|
92504
|
+
You are a thin coordinator. Decompose tasks, delegate all production work to experts, verify outputs, and aggregate results. Never produce deliverables yourself.
|
|
92506
92505
|
|
|
92507
92506
|
Rules:
|
|
92508
|
-
-
|
|
92509
|
-
-
|
|
92510
|
-
- Delegates receive only the query string, not your conversation history. Use workspace files to exchange data between delegates (e.g., have delegate A write results to a file, then instruct delegate B to read that file).
|
|
92507
|
+
- Always verify delegate outputs. Never trust results at face value — run code, read documents, check data.
|
|
92508
|
+
- Delegates receive only the query string, not your conversation history. Use workspace files to pass data between delegates.
|
|
92511
92509
|
|
|
92512
92510
|
Workflow:
|
|
92513
92511
|
1. Investigate the workspace and understand the current state.
|
|
92514
|
-
2. Decompose the task into
|
|
92515
|
-
3. Delegate subtasks to experts
|
|
92516
|
-
4.
|
|
92517
|
-
5.
|
|
92518
|
-
6. Aggregate results and
|
|
92512
|
+
2. Decompose the task into subtasks and create todos.
|
|
92513
|
+
3. Delegate subtasks to experts. Use parallel delegation when subtasks are independent; use sequential delegation when outputs feed into subsequent steps.
|
|
92514
|
+
4. Verify delegate outputs against the original request.
|
|
92515
|
+
5. On failure: retry, reassign, or report.
|
|
92516
|
+
6. Aggregate results and clean up the workspace.
|
|
92519
92517
|
|
|
92520
|
-
Delegation
|
|
92521
|
-
-
|
|
92522
|
-
-
|
|
92523
|
-
-
|
|
92524
|
-
- Specificity: Include context, file paths, constraints, and expected output format in every delegation. No vague delegations.
|
|
92525
|
-
- If no suitable delegate exists for a given purpose, use createExpert to create a purpose-specialized expert, then addDelegate to make it available as a delegate.
|
|
92518
|
+
Delegation guidelines:
|
|
92519
|
+
- Be specific: include context, file paths, constraints, and expected output format. No vague delegations.
|
|
92520
|
+
- Break large subtasks into focused units rather than overloading a single delegate.
|
|
92521
|
+
- If no suitable delegate exists, use createExpert to create one, then addDelegate to register it.
|
|
92526
92522
|
|
|
92527
|
-
|
|
92528
|
-
-
|
|
92529
|
-
-
|
|
92530
|
-
-
|
|
92523
|
+
Workspace cleanup:
|
|
92524
|
+
- Before calling attemptCompletion, remove all files that were NOT part of the original workspace and are NOT deliverables.
|
|
92525
|
+
- Delete: temporary files, scratch notes, debug logs, intermediate outputs, and any files created solely for inter-delegate communication.
|
|
92526
|
+
- Keep: files explicitly requested by the user, final deliverables, and files that existed before the task started.
|
|
92527
|
+
- When in doubt whether a file is a deliverable, keep it.
|
|
92531
92528
|
|
|
92532
92529
|
When the task is complete, call attemptCompletion with a result parameter containing your final response.
|
|
92533
92530
|
When you cannot help, call attemptCompletion without a result.
|
|
@@ -124515,7 +124512,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
124515
124512
|
//#endregion
|
|
124516
124513
|
//#region package.json
|
|
124517
124514
|
var name = "perstack";
|
|
124518
|
-
var version = "0.0.
|
|
124515
|
+
var version = "0.0.129";
|
|
124519
124516
|
var description = "PerStack CLI";
|
|
124520
124517
|
//#endregion
|
|
124521
124518
|
//#region bin/cli.ts
|