@jmanuelcorral/openteam 0.17.2 → 0.17.3
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/README.es.md +1 -1
- package/README.md +1 -1
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +21 -3
- package/dist/plugin/orchestrateTool.d.ts +18 -0
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/package.json +1 -1
package/README.es.md
CHANGED
|
@@ -825,7 +825,7 @@ Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `
|
|
|
825
825
|
|
|
826
826
|
| Superficie | Versión / contrato |
|
|
827
827
|
| --- | --- |
|
|
828
|
-
| openteam | `0.17.
|
|
828
|
+
| openteam | `0.17.3`; versión actual del paquete |
|
|
829
829
|
| `@opencode-ai/plugin` | `1.18.19` |
|
|
830
830
|
| `@opencode-ai/sdk` | `1.18.19` |
|
|
831
831
|
| Hook de routing | `chat.message`; no `chat.params` para cambiar modelo |
|
package/README.md
CHANGED
|
@@ -714,7 +714,7 @@ See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026
|
|
|
714
714
|
|
|
715
715
|
| Surface | Version / contract |
|
|
716
716
|
| --- | --- |
|
|
717
|
-
| openteam | `0.17.
|
|
717
|
+
| openteam | `0.17.3`; current package version |
|
|
718
718
|
| `@opencode-ai/plugin` | `1.18.19` |
|
|
719
719
|
| `@opencode-ai/sdk` | `1.18.19` |
|
|
720
720
|
| Routing hook | `chat.message`; not `chat.params` for model changes |
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"idempotent": true
|
|
35
35
|
},
|
|
36
36
|
"performance": {
|
|
37
|
-
"p95Millis": 0.
|
|
37
|
+
"p95Millis": 0.4937800000000152,
|
|
38
38
|
"budgetMillis": 50,
|
|
39
39
|
"samples": 100
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"verdict": "pass",
|
|
43
43
|
"failedGates": [],
|
|
44
|
-
"digest": "
|
|
44
|
+
"digest": "0306cfd170a6a7afe07bb2403b7198e50c786f07c83f128742087e6643e17186"
|
|
45
45
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"rawFindings": 0
|
|
21
21
|
},
|
|
22
22
|
"overhead": {
|
|
23
|
-
"p95Millis": 0.
|
|
23
|
+
"p95Millis": 0.3300820000000044,
|
|
24
24
|
"budgetMillis": 25,
|
|
25
25
|
"samples": 1000
|
|
26
26
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"verdict": "pass",
|
|
37
37
|
"failedGates": [],
|
|
38
|
-
"digest": "
|
|
38
|
+
"digest": "cb6f78ca0552d4dba4735c27a9844fd69ebb8c821dc5a9639f9e9fa432b316e3"
|
|
39
39
|
}
|
package/dist/cli.js
CHANGED
|
@@ -16467,7 +16467,7 @@ async function buildMemoryRuntimeFromConfig(config, deps, options = {}) {
|
|
|
16467
16467
|
// package.json
|
|
16468
16468
|
var package_default = {
|
|
16469
16469
|
name: "@jmanuelcorral/openteam",
|
|
16470
|
-
version: "0.17.
|
|
16470
|
+
version: "0.17.3",
|
|
16471
16471
|
packageManager: "bun@1.3.14",
|
|
16472
16472
|
description: "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
|
|
16473
16473
|
license: "MIT",
|
package/dist/index.js
CHANGED
|
@@ -13324,12 +13324,30 @@ async function runShadowProducer(deps, payload, batch) {
|
|
|
13324
13324
|
}
|
|
13325
13325
|
return { ok: true };
|
|
13326
13326
|
}
|
|
13327
|
+
function assignableRoleIDs(config) {
|
|
13328
|
+
const ids = new Set;
|
|
13329
|
+
for (const roleID of Object.keys(TEAM_ROLES)) {
|
|
13330
|
+
ids.add(roleID);
|
|
13331
|
+
}
|
|
13332
|
+
for (const roleID of Object.keys(config.orchestrator?.roles ?? {})) {
|
|
13333
|
+
ids.add(roleID);
|
|
13334
|
+
}
|
|
13335
|
+
return [...ids].filter((roleID) => !isKnownNonWorkerRole(roleID)).sort();
|
|
13336
|
+
}
|
|
13337
|
+
function orchestrateToolDescription(config) {
|
|
13338
|
+
const roles = assignableRoleIDs(config);
|
|
13339
|
+
return "Distributes work across roster roles via openteam's coordinator. " + "Each assignment spawns a subsession with model selection driven by " + "the role profile and routing config. Use instead of manually spawning " + `tasks when a roster exists.
|
|
13340
|
+
|
|
13341
|
+
` + `Assignable roles: ${roles.join(", ")}.
|
|
13342
|
+
|
|
13343
|
+
` + "Emit one assignment per role that has genuinely distinct work, in a " + "single call — that is what parallelises the team. A call carrying only " + "one assignment has delegated nothing and is almost always a mistake " + "unless the task truly belongs to a single role. Use `dependsOn` to " + "sequence roles that must wait for another role's output; independent " + "roles are dispatched concurrently.";
|
|
13344
|
+
}
|
|
13327
13345
|
function createOrchestrateTool(deps) {
|
|
13328
13346
|
return tool4({
|
|
13329
|
-
description:
|
|
13347
|
+
description: orchestrateToolDescription(deps.config),
|
|
13330
13348
|
args: {
|
|
13331
13349
|
assignments: tool4.schema.array(tool4.schema.object({
|
|
13332
|
-
roleID: tool4.schema.string().describe("Role identifier from the roster"),
|
|
13350
|
+
roleID: tool4.schema.string().describe("Role identifier from the roster (see the assignable roles " + "listed in this tool's description)"),
|
|
13333
13351
|
prompt: tool4.schema.string().describe("Work prompt for this role"),
|
|
13334
13352
|
title: tool4.schema.string().optional().describe("Human-readable title"),
|
|
13335
13353
|
dependsOn: tool4.schema.array(tool4.schema.string()).optional().describe("Role IDs this assignment depends on")
|
|
@@ -13721,7 +13739,7 @@ var createOtlpSpanExporter = (connection, config) => {
|
|
|
13721
13739
|
// package.json
|
|
13722
13740
|
var package_default = {
|
|
13723
13741
|
name: "@jmanuelcorral/openteam",
|
|
13724
|
-
version: "0.17.
|
|
13742
|
+
version: "0.17.3",
|
|
13725
13743
|
packageManager: "bun@1.3.14",
|
|
13726
13744
|
description: "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
|
|
13727
13745
|
license: "MIT",
|
|
@@ -212,6 +212,24 @@ export type ShadowProducerResult = {
|
|
|
212
212
|
readonly ok: false;
|
|
213
213
|
readonly failureClass: ShadowProducerFailureClass;
|
|
214
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* Builds the assignable-role list advertised to the coordinator model.
|
|
217
|
+
*
|
|
218
|
+
* Measured defect (2026-09): the tool asked for a "Role identifier from the
|
|
219
|
+
* roster" but never said which roles exist. A local coordinator model has no
|
|
220
|
+
* other way to learn the roster, so it guessed a single plausible id
|
|
221
|
+
* (`architect`) on every call and the agent tree never fanned out. Listing the
|
|
222
|
+
* ids is what makes delegation reachable at all.
|
|
223
|
+
*
|
|
224
|
+
* Configured roles are merged over the built-ins so a custom roster is
|
|
225
|
+
* advertised too. Known non-worker ids are excluded: they name the coordinator
|
|
226
|
+
* itself, not something it can delegate to.
|
|
227
|
+
*/
|
|
228
|
+
export declare function assignableRoleIDs(config: OpenTeamConfig): string[];
|
|
229
|
+
/**
|
|
230
|
+
* Builds the tool description. Dynamic because the roster is config-driven.
|
|
231
|
+
*/
|
|
232
|
+
export declare function orchestrateToolDescription(config: OpenTeamConfig): string;
|
|
215
233
|
/**
|
|
216
234
|
* Creates the `openteam-orchestrate` tool.
|
|
217
235
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTool.d.ts","sourceRoot":"","sources":["../../src/plugin/orchestrateTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,KAAK,EAAc,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAs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AK,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAA;CAAE,CAAC;AA+H9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,EAAE,CASlE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAezE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,eAAe,GAAG,cAAc,CAkF3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"packageManager": "bun@1.3.14",
|
|
5
5
|
"description": "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
|
|
6
6
|
"license": "MIT",
|