@jmanuelcorral/openteam 0.16.3 → 0.17.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/.opencode/openteam.example.json +10 -3
- package/README.es.md +4 -3
- package/README.md +4 -3
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli/setupAdapters.d.ts.map +1 -1
- package/dist/cli.js +349 -54
- package/dist/commands/doctor.d.ts +12 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +72 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/errors.d.ts.map +1 -1
- package/dist/config/graphFeatureGate.d.ts +10 -0
- package/dist/config/graphFeatureGate.d.ts.map +1 -1
- package/dist/config/resolve.d.ts +3 -3
- package/dist/config/schema.d.ts +10 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +259 -53
- package/dist/local/lemonade.d.ts +5 -1
- package/dist/local/lemonade.d.ts.map +1 -1
- package/dist/local/slotPool.d.ts +58 -0
- package/dist/local/slotPool.d.ts.map +1 -0
- package/dist/local/types.d.ts +19 -0
- package/dist/local/types.d.ts.map +1 -1
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/roles.d.ts +28 -0
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/runtimeSelection.d.ts +7 -1
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -51,7 +51,31 @@ export type AgentRoleProfile = {
|
|
|
51
51
|
* chosen runtime has no entry, the runtime's `defaultModel` stands.
|
|
52
52
|
*/
|
|
53
53
|
localModels?: Partial<Record<LocalRuntimeId, string>>;
|
|
54
|
+
/**
|
|
55
|
+
* Which class of local model this role should draw off a runtime that
|
|
56
|
+
* declares one (#210 follow-up).
|
|
57
|
+
*
|
|
58
|
+
* Declared explicitly rather than inferred from `minReasoningTier` versus
|
|
59
|
+
* `minCodeQualityTier`, because that comparison cannot express the roles that
|
|
60
|
+
* matter most: `architect` is 5/5, so the tiers tie and the single most
|
|
61
|
+
* reasoning-heavy role would be classified as "no preference". An explicit
|
|
62
|
+
* field is also inspectable and overridable from config, the same way
|
|
63
|
+
* `preferredFrontierModels` already declares frontier intent per role.
|
|
64
|
+
*
|
|
65
|
+
* Optional. Without it — and for every role on a runtime that declares no
|
|
66
|
+
* class model — the runtime's `defaultModel` stands, so existing rosters keep
|
|
67
|
+
* today's behaviour exactly.
|
|
68
|
+
*/
|
|
69
|
+
localModelClass?: LocalModelClass;
|
|
54
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Class of local model a role draws off a runtime (#210 follow-up).
|
|
73
|
+
*
|
|
74
|
+
* `thinking` is for design, analysis and policy judgement; `coder` is for
|
|
75
|
+
* writing and reviewing code. A role that wants neither simply omits the field
|
|
76
|
+
* and takes the runtime's `defaultModel`.
|
|
77
|
+
*/
|
|
78
|
+
export type LocalModelClass = "thinking" | "coder";
|
|
55
79
|
export declare const AgentRoleProfileSchema: z.ZodObject<{
|
|
56
80
|
roleID: z.ZodString;
|
|
57
81
|
opencodeAgent: z.ZodOptional<z.ZodString>;
|
|
@@ -72,6 +96,10 @@ export declare const AgentRoleProfileSchema: z.ZodObject<{
|
|
|
72
96
|
requiresLocalRuntime: z.ZodOptional<z.ZodBoolean>;
|
|
73
97
|
localRuntimes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
98
|
localModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
|
+
localModelClass: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
coder: "coder";
|
|
101
|
+
thinking: "thinking";
|
|
102
|
+
}>>;
|
|
75
103
|
}, z.core.$strict>;
|
|
76
104
|
export declare const TEAM_ROLES: Record<string, AgentRoleProfile>;
|
|
77
105
|
export declare function isKnownNonWorkerRole(roleID: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,cAAc,CAAC;IAC5B,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,kBAAkB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACtC,yBAAyB,EAAE,OAAO,CAAC;IACnC,uBAAuB,EAAE,KAAK,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC;IACxD,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC;IACjC;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,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AC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAC3D,gBAAgB,GAAG,SAAS,CAO9B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAW1E;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,WAAW,EACjB,IAAI,CAAC,EAAE,cAAc,GACpB,qBAAqB,CAevB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OpenTeamConfig } from "../config/schema";
|
|
1
|
+
import type { LocalRuntime, OpenTeamConfig } from "../config/schema";
|
|
2
2
|
import type { LocalRuntimeId } from "../local/types";
|
|
3
3
|
import type { ModelSelection, RoutingDecision } from "../router/types";
|
|
4
4
|
import type { AgentRoleProfile } from "./roles";
|
|
@@ -17,6 +17,12 @@ export type RuntimeDispatchSelection = {
|
|
|
17
17
|
readonly runtimeId: LocalRuntimeId | undefined;
|
|
18
18
|
readonly decision: RoutingDecision;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* The configured runtime entry with a given instance id, or `undefined` when the
|
|
22
|
+
* id names no configured runtime. Exported so dispatch can resolve the runtime's
|
|
23
|
+
* slot-pool declarations without re-implementing the lookup. Pure.
|
|
24
|
+
*/
|
|
25
|
+
export declare function configuredRuntime(runtimeId: LocalRuntimeId, config: OpenTeamConfig): LocalRuntime | undefined;
|
|
20
26
|
/**
|
|
21
27
|
* Maps a selected local model back to the configured runtime that serves it, by
|
|
22
28
|
* matching the model against each runtime's `defaultModel`. Returns `undefined`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeSelection.d.ts","sourceRoot":"","sources":["../../src/orchestrator/runtimeSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"runtimeSelection.d.ts","sourceRoot":"","sources":["../../src/orchestrator/runtimeSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,EACzB,MAAM,EAAE,cAAc,GACrB,YAAY,GAAG,SAAS,CAE1B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GACrB,cAAc,GAAG,SAAS,CAI5B;AAsDD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,GAAG,SAAS,EAClD,MAAM,EAAE,cAAc,GACrB,wBAAwB,CAgD1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
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",
|