perstack 0.0.130 → 0.0.131
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 +49 -4
- package/dist/bin/cli.js.map +1 -1
- package/package.json +4 -4
package/dist/bin/cli.js
CHANGED
|
@@ -1172,6 +1172,51 @@ function printPerstackSchema() {
|
|
|
1172
1172
|
sections.push("- Delegates must be in-scope (same coordinator prefix)");
|
|
1173
1173
|
sections.push("- Delegates cannot delegate to their own coordinator");
|
|
1174
1174
|
sections.push("");
|
|
1175
|
+
sections.push("## Example");
|
|
1176
|
+
sections.push("");
|
|
1177
|
+
sections.push("```toml");
|
|
1178
|
+
sections.push("[experts.\"my-team\"]");
|
|
1179
|
+
sections.push("version = \"1.0.0\"");
|
|
1180
|
+
sections.push("defaultModelTier = \"high\"");
|
|
1181
|
+
sections.push("description = \"Coordinates task execution and delegates to specialists\"");
|
|
1182
|
+
sections.push("instruction = \"\"\"");
|
|
1183
|
+
sections.push("Domain-specific constraints and coordination rules here.");
|
|
1184
|
+
sections.push("\"\"\"");
|
|
1185
|
+
sections.push("delegates = [\"@my-team/build\", \"@my-team/verify\"]");
|
|
1186
|
+
sections.push("");
|
|
1187
|
+
sections.push("[experts.\"my-team\".skills.\"@perstack/base\"]");
|
|
1188
|
+
sections.push("type = \"mcpStdioSkill\"");
|
|
1189
|
+
sections.push("command = \"npx\"");
|
|
1190
|
+
sections.push("packageName = \"@perstack/base\"");
|
|
1191
|
+
sections.push("pick = [\"readTextFile\", \"exec\", \"attemptCompletion\"]");
|
|
1192
|
+
sections.push("");
|
|
1193
|
+
sections.push("[experts.\"@my-team/build\"]");
|
|
1194
|
+
sections.push("version = \"1.0.0\"");
|
|
1195
|
+
sections.push("defaultModelTier = \"middle\"");
|
|
1196
|
+
sections.push("description = \"Implements the core deliverable\"");
|
|
1197
|
+
sections.push("instruction = \"\"\"");
|
|
1198
|
+
sections.push("Domain constraints for this specialist.");
|
|
1199
|
+
sections.push("\"\"\"");
|
|
1200
|
+
sections.push("");
|
|
1201
|
+
sections.push("[experts.\"@my-team/build\".skills.\"@perstack/base\"]");
|
|
1202
|
+
sections.push("type = \"mcpStdioSkill\"");
|
|
1203
|
+
sections.push("command = \"npx\"");
|
|
1204
|
+
sections.push("packageName = \"@perstack/base\"");
|
|
1205
|
+
sections.push("pick = [\"readTextFile\", \"writeTextFile\", \"editTextFile\", \"exec\", \"todo\", \"attemptCompletion\"]");
|
|
1206
|
+
sections.push("```");
|
|
1207
|
+
sections.push("");
|
|
1208
|
+
sections.push("## Best Practices");
|
|
1209
|
+
sections.push("");
|
|
1210
|
+
sections.push("- Always set version, defaultModelTier, and description on every expert");
|
|
1211
|
+
sections.push("- Always set an explicit pick list — omitting it grants ALL tools");
|
|
1212
|
+
sections.push("- Instructions should contain only domain constraints the LLM cannot derive on its own");
|
|
1213
|
+
sections.push("- Do not put implementation procedures, file paths, or data schemas in instructions");
|
|
1214
|
+
sections.push("- Shorter instructions outperform longer ones — every line must earn its place");
|
|
1215
|
+
sections.push("- Delegate names should describe function, not persona (/build, /verify, not /builder)");
|
|
1216
|
+
sections.push("- Coordinators should have minimal pick lists (readTextFile, exec, attemptCompletion)");
|
|
1217
|
+
sections.push("- Leaf experts doing file I/O need: readTextFile, writeTextFile, editTextFile, exec, todo, attemptCompletion");
|
|
1218
|
+
sections.push("- Experts managing delegation need: addDelegateFromConfig, addDelegate, removeDelegate");
|
|
1219
|
+
sections.push("");
|
|
1175
1220
|
return sections.join("\n");
|
|
1176
1221
|
}
|
|
1177
1222
|
//#endregion
|
|
@@ -21225,7 +21270,7 @@ async function expertVersionsHandler(scopeName, options) {
|
|
|
21225
21270
|
}
|
|
21226
21271
|
//#endregion
|
|
21227
21272
|
//#region ../../packages/runtime/package.json
|
|
21228
|
-
var version$1 = "0.0.
|
|
21273
|
+
var version$1 = "0.0.141";
|
|
21229
21274
|
//#endregion
|
|
21230
21275
|
//#region ../../packages/runtime/src/helpers/usage.ts
|
|
21231
21276
|
function createEmptyUsage() {
|
|
@@ -92649,8 +92694,8 @@ function getCoordinatorMetaInstruction() {
|
|
|
92649
92694
|
6. Aggregate results and clean up the workspace.
|
|
92650
92695
|
|
|
92651
92696
|
Delegation guidelines:
|
|
92652
|
-
- Be specific: include context,
|
|
92653
|
-
-
|
|
92697
|
+
- Be specific: include context, constraints, and expected output format. No vague delegations.
|
|
92698
|
+
- A single delegate can handle a broad task if the role is straightforward. Only split into multiple delegates when responsibilities are genuinely distinct — unnecessary subdivision adds overhead without improving quality.
|
|
92654
92699
|
- If no suitable delegate exists, use createExpert to create one, then addDelegate to register it.
|
|
92655
92700
|
|
|
92656
92701
|
Workspace cleanup:
|
|
@@ -124645,7 +124690,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
124645
124690
|
//#endregion
|
|
124646
124691
|
//#region package.json
|
|
124647
124692
|
var name = "perstack";
|
|
124648
|
-
var version = "0.0.
|
|
124693
|
+
var version = "0.0.131";
|
|
124649
124694
|
var description = "PerStack CLI";
|
|
124650
124695
|
//#endregion
|
|
124651
124696
|
//#region bin/cli.ts
|