perstack 0.0.120 → 0.0.121

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 CHANGED
@@ -93256,8 +93256,6 @@ async function generatingToolCallLogic({ setting, checkpoint, step, skillManager
93256
93256
  //#region ../../packages/runtime/src/messages/instruction-message.ts
93257
93257
  function getDelegateMetaInstruction(startedAt) {
93258
93258
  return import_dist.dedent`
93259
- Call tools iteratively to complete the user's task.
93260
-
93261
93259
  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.
93262
93260
 
93263
93261
  When the task is complete, call attemptCompletion with a result parameter containing your final response.
@@ -93270,14 +93268,36 @@ function getDelegateMetaInstruction(startedAt) {
93270
93268
  }
93271
93269
  function getCoordinatorMetaInstruction(startedAt) {
93272
93270
  return import_dist.dedent`
93273
- You are a Coordinator. Your role is to plan, split tasks, and delegate. Never execute concrete tasks yourself.
93271
+ Your role:
93272
+ - Act as the coordinator for the given task: define the task, set goals, and delegate.
93273
+ - Decompose tasks and delegate subtasks to delegate experts.
93274
+ - Review and aggregate deliverables from delegates.
93275
+ - Determine whether the task meets the completion criteria.
93276
+
93277
+ Rules:
93278
+ - Never produce deliverables yourself. You are a thin coordinator — route all production work to delegates.
93279
+ - Always verify delegate outputs yourself. You are the gatekeeper: run code to confirm it works, read documents to confirm content quality, call APIs to confirm data was persisted, and cross-check research claims with independent sources. Never trust delegate results at face value.
93280
+ - 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).
93281
+
93282
+ Workflow:
93283
+ 1. Investigate the workspace and understand the current state.
93284
+ 2. Decompose the task into fine-grained subtasks and create todos.
93285
+ 3. Delegate subtasks to experts in parallel. Maximize parallelism — delegate to multiple types of experts and run multiple experts of the same type concurrently.
93286
+ 4. Review delegate outputs: verify deliverables exist, check consistency across outputs, and validate against the original request.
93287
+ 5. If a delegate fails, assess the error and decide: retry the same delegate, delegate to a different expert, or report the failure.
93288
+ 6. Aggregate results and ensure the workspace contains only clean deliverables.
93274
93289
 
93275
93290
  Delegation best practices:
93276
- - Parallelism: When there are N independent tasks, delegate them simultaneously in a single response.
93277
- - Task splitting: Distribute N tasks across M Experts. Do not send all tasks to a single Expert.
93278
- - Specificity: Include context, constraints, and expected output format in every delegation. No vague delegations.
93279
- - Planning as delegation: If planning is needed, delegate to a planner Expert. If none exists, create one with createExpert, then addDelegate, then delegate.
93280
- - Creating Experts: If no suitable delegate exists, use createExpert to create a specialized Expert, then addDelegate, then delegate to it.
93291
+ - Delegate experts are purpose-specialized, so they handle individual tasks better than you.
93292
+ - To avoid context explosion, do not assign one large subtask to a single delegate. Instead, decompose it into fine-grained subtasks and assign them to multiple delegates.
93293
+ - Higher parallelism leads to faster task completion and improved accuracy.
93294
+ - Specificity: Include context, file paths, constraints, and expected output format in every delegation. No vague delegations.
93295
+ - 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.
93296
+
93297
+ Task completion criteria:
93298
+ - The user's request has been fully fulfilled.
93299
+ - The task deliverables are confirmed to be high quality: high-quality deliverables are defined as those that are verifiable by the user, available, and professional.
93300
+ - Cleanup is complete and only pure deliverables remain in the workspace: specifically, no duplicate files, notes, or loosely related files created by delegates should remain.
93281
93301
 
93282
93302
  When the task is complete, call attemptCompletion with a result parameter containing your final response.
93283
93303
  When you cannot help, call attemptCompletion without a result.
@@ -122888,7 +122908,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
122888
122908
  //#endregion
122889
122909
  //#region package.json
122890
122910
  var name = "perstack";
122891
- var version = "0.0.120";
122911
+ var version = "0.0.121";
122892
122912
  var description = "PerStack CLI";
122893
122913
 
122894
122914
  //#endregion