@fro.bot/systematic 3.28.0 → 3.28.1

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/HARNESSES.md CHANGED
@@ -52,7 +52,7 @@ OpenCode v2 does not make skills into commands. Systematic registers them itself
52
52
 
53
53
  ## Pi — Tier 1 shipped adapter
54
54
 
55
- Pi's profile records degraded or unavailable native capabilities and explicit fallbacks [PI-P]. The adapter registers `systematic_skill` in `src/pi.ts:217-236` and `systematic_delegate` in `src/pi.ts:238-263` [PI-3]. Delegation is explicitly sequential (`executionMode: 'sequential'`), capped at `MAX_DELEGATE_TURNS = 20`, and guarded against re-entry in `src/lib/pi-delegate-tool.ts:14-18,245-249` [PI-1]. The child is spawned with `noExtensions: true`, bounding `systematic_delegate`'s own recursion; this does not bound end-to-end depth across a combined pi-subagents + Systematic path.
55
+ Pi's profile records degraded or unavailable native capabilities and explicit fallbacks [PI-P]. The adapter registers `systematic_skill` in `src/pi.ts:217-236` and `systematic_delegate` in `src/pi.ts:238-263` [PI-3]. Delegation is explicitly sequential (`executionMode: 'sequential'`), capped at `MAX_DELEGATE_TURNS = 20`, and guarded against re-entry in `src/lib/pi-delegate-tool.ts:14-18,245-249` [PI-1]. The child is spawned with `noExtensions: true`, bounding `systematic_delegate`'s own recursion; this does not bound end-to-end depth across a combined pi-subagents + Systematic path. `systematic_delegate` matches the bare persona name, and also the canonical `systematic:<category>:<name>` form that bundled skills dispatch with, when the category matches the persona's own; results and routing notices report the bare name.
56
56
 
57
57
  Optional mature delegation is available via [pi-subagents](https://github.com/tintinweb/pi-subagents). It is outside Systematic's bounded-delegate guarantees and governed by pi-subagents' own configuration. Tested against pi-subagents 0.22.0 on Pi 1.3.0; versions outside the tested range are unsupported but nonfatal. pi-subagents reaches Systematic's personas by two paths:
58
58
 
@@ -18,7 +18,13 @@ export interface AgentCatalogEntry {
18
18
  }
19
19
  /** Fails closed if the same persona name appears under more than one category. */
20
20
  export declare function buildAgentCatalog(agentsDir: string): AgentCatalogEntry[];
21
- /** Resolves a persona by exact flat name from the catalog. */
21
+ /**
22
+ * Resolves a persona by exact flat name from the catalog. Failing that, accepts
23
+ * the canonical qualified form `systematic:<category>:<name>` that bundled skills
24
+ * dispatch with, translated here at the host boundary: the stripped name must
25
+ * match an entry whose `category` equals the qualified category. No other
26
+ * aliases or case folding.
27
+ */
22
28
  export declare function resolveAgent(catalog: AgentCatalogEntry[], name: string): AgentCatalogEntry | undefined;
23
29
  /**
24
30
  * Deterministic, bounded description of available personas for the delegation
@@ -90,11 +90,11 @@ export type ParsedDocument = {
90
90
  readonly reason: string;
91
91
  };
92
92
  /**
93
- * Parse one file. Wraps `parseFrontmatter` (which stays unedited): strips a
94
- * leading BOM, supplies the newline its regex needs when the closing `---` is
95
- * the last line, and reads only known fields, narrowing each. No frontmatter
96
- * means a body-only document with no warning. Invalid YAML, or a frontmatter
97
- * block that is not a mapping, is not indexable.
93
+ * Parse one file. Wraps `parseFrontmatter`: strips a leading BOM, supplies the
94
+ * newline its regex needs when the closing `---` is the last line, and reads
95
+ * only known fields, narrowing each. No frontmatter means a body-only document
96
+ * with no warning. Invalid YAML, or a frontmatter block that is not a mapping,
97
+ * is not indexable.
98
98
  */
99
99
  export declare function parseCorpusDocument(kind: DocumentKind, relativePath: string, content: string): ParsedDocument;
100
100
  /**
package/dist/pi.js CHANGED
@@ -4202,8 +4202,16 @@ function extractRawToolsSource(data, sourceFile) {
4202
4202
  }
4203
4203
  return trimmed;
4204
4204
  }
4205
+ var QUALIFIED_PERSONA_NAME = /^systematic:([^:]+):([^:]+)$/;
4205
4206
  function resolveAgent(catalog, name) {
4206
- return catalog.find((entry) => entry.name === name);
4207
+ const exact = catalog.find((entry) => entry.name === name);
4208
+ if (exact)
4209
+ return exact;
4210
+ const qualified = QUALIFIED_PERSONA_NAME.exec(name);
4211
+ if (!qualified)
4212
+ return;
4213
+ const [, category, flatName] = qualified;
4214
+ return catalog.find((entry) => entry.name === flatName && entry.category === category);
4207
4215
  }
4208
4216
  var DEFAULT_READONLY_TOOLS = [
4209
4217
  "read",
@@ -12221,11 +12229,12 @@ function resolvePersonaRouting(persona, agentName, ctx, routing) {
12221
12229
  return { model: resolvedModel, thinkingLevel, notice, commitNotice };
12222
12230
  }
12223
12231
  function validateDelegateRequest(catalog, params, ctx, routing) {
12224
- const { agent: agentName, task } = params;
12225
- const persona = resolveAgent(catalog, agentName);
12232
+ const { agent: requestedName, task } = params;
12233
+ const persona = resolveAgent(catalog, requestedName);
12226
12234
  if (!persona) {
12227
- throw new Error(`Unknown persona "${agentName}". Available personas: ${catalog.map((e) => e.name).join(", ")}`);
12235
+ throw new Error(`Unknown persona "${requestedName}". Available personas: ${catalog.map((e) => e.name).join(", ")}`);
12228
12236
  }
12237
+ const agentName = persona.name;
12229
12238
  const { model, thinkingLevel, notice, commitNotice } = resolvePersonaRouting(persona, agentName, ctx, routing);
12230
12239
  let allowedToolNames;
12231
12240
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fro.bot/systematic",
3
- "version": "3.28.0",
3
+ "version": "3.28.1",
4
4
  "description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
5
5
  "type": "module",
6
6
  "homepage": "https://fro.bot/systematic",
@@ -117,8 +117,8 @@
117
117
  "devDependencies": {
118
118
  "@biomejs/biome": "2.6.3",
119
119
  "@earendil-works/pi-coding-agent": "1.4.0",
120
- "@opencode-ai/plugin": "1.19.4",
121
- "@opencode-ai/sdk": "1.19.4",
120
+ "@opencode-ai/plugin": "1.19.5",
121
+ "@opencode-ai/sdk": "1.19.5",
122
122
  "@opencode/client": "2.2.0",
123
123
  "@opencode/plugin": "2.2.0",
124
124
  "@opencode/sdk": "2.2.0",