@jmanuelcorral/openteam 0.9.4 → 0.11.0
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/AGENTS.md +1 -1
- package/README.es.md +8 -5
- package/README.md +16 -5
- package/dist/cli.js +475 -102
- package/dist/commands/dispatch.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/local.d.ts +13 -0
- package/dist/commands/local.d.ts.map +1 -1
- package/dist/commands/rolesInit.d.ts +55 -0
- package/dist/commands/rolesInit.d.ts.map +1 -0
- package/dist/commands/setup.d.ts +17 -0
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/errors.d.ts.map +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +222 -92
- package/dist/messages/commands.d.ts +50 -2
- package/dist/messages/commands.d.ts.map +1 -1
- package/dist/orchestrator/roles.d.ts +20 -0
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -1
- package/dist/plugin/registerCastTool.d.ts +19 -0
- package/dist/plugin/registerCastTool.d.ts.map +1 -1
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { type AgentRoleProfile } from "../orchestrator/roles";
|
|
3
4
|
import { type Roster } from "../orchestrator/roster";
|
|
4
5
|
import type { StorageProvider } from "../storage/provider";
|
|
5
6
|
export declare const RegisterCastPayloadSchema: z.ZodObject<{
|
|
@@ -27,7 +28,25 @@ export declare function registerCast(storage: StorageProvider, draft: unknown, p
|
|
|
27
28
|
export type RegisterCastDeps = {
|
|
28
29
|
readonly storage: StorageProvider;
|
|
29
30
|
readonly rosterPath?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Role profiles configured under `orchestrator.roles`. Passed in so the
|
|
33
|
+
* unprofiled-role warning matches what the router will actually resolve;
|
|
34
|
+
* checking built-in roles alone would warn about roles the user already
|
|
35
|
+
* configured, and a warning that fires on correct setups gets ignored.
|
|
36
|
+
*/
|
|
37
|
+
readonly configuredRoles?: Readonly<Record<string, AgentRoleProfile>> | undefined;
|
|
30
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Roster roles that resolve no routing profile (#206).
|
|
41
|
+
*
|
|
42
|
+
* The roster is written from inside opencode, where there is no TTY, so the
|
|
43
|
+
* honest hook at creation time is to state the routing consequence and name the
|
|
44
|
+
* remedy rather than to prompt. Without this the orchestrator reports a clean
|
|
45
|
+
* "registered N roles" for a cast whose custom roles are silently
|
|
46
|
+
* frontier-eligible — exactly the case a human describes as "local only" in the
|
|
47
|
+
* roster prose, which lives outside the JSON fence and is never read.
|
|
48
|
+
*/
|
|
49
|
+
export declare function unprofiledRoleIDs(roster: Roster, configuredRoles?: Readonly<Record<string, AgentRoleProfile>>): string[];
|
|
31
50
|
/** Builds the `openteam-register-cast` tool definition. */
|
|
32
51
|
export declare function createRegisterCastTool(deps: RegisterCastDeps): ToolDefinition;
|
|
33
52
|
//# sourceMappingURL=registerCastTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerCastTool.d.ts","sourceRoot":"","sources":["../../src/plugin/registerCastTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAA0B,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA0B3D,eAAO,MAAM,yBAAyB;;;;;;kBAK3B,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,C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CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrE;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC;AAoBN;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,OAAO,EACd,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,kBAAkB,CAAC,CAiB7B;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EACrB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAC1C,SAAS,CAAC;CACf,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAC3D,MAAM,EAAE,CAQV;AAED,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,cAAc,CAgD7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chooseModel.d.ts","sourceRoot":"","sources":["../../src/router/chooseModel.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAIV,eAAe,EACf,YAAY,EACb,MAAM,SAAS,CAAC;AA+NjB,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"chooseModel.d.ts","sourceRoot":"","sources":["../../src/router/chooseModel.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAIV,eAAe,EACf,YAAY,EACb,MAAM,SAAS,CAAC;AA+NjB,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,eAAe,CAoOhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
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",
|