@jmanuelcorral/openteam 0.17.0 → 0.17.2
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 +7 -2
- 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 +273 -45
- package/dist/commands/doctor.d.ts +12 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +62 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/errors.d.ts.map +1 -1
- package/dist/config/schema.d.ts +3 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +207 -39
- 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 +9 -0
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/runtimeSelection.d.ts +7 -1
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -1
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { effectiveReservedInteractiveSlots, type LocalRuntime } from "../config/schema";
|
|
2
|
+
import type { LocalRuntimeId } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Key identifying the concurrency pool a generation competes in.
|
|
5
|
+
*
|
|
6
|
+
* Concurrency slots are a property of the LOADED MODEL, not of the server: on a
|
|
7
|
+
* real Lemonade 11.7.0 host measured with two resident models, the coder model
|
|
8
|
+
* served `--parallel 3` while the thinking model served `--parallel 1` — one
|
|
9
|
+
* box, two different capacities. Modelling that as a single server-wide cap lets
|
|
10
|
+
* the orchestrator dispatch four concurrent thinking generations, three of which
|
|
11
|
+
* then queue inside the server where openteam can neither see nor prioritise
|
|
12
|
+
* them.
|
|
13
|
+
*
|
|
14
|
+
* The pool is therefore per model — but ONLY for models the runtime explicitly
|
|
15
|
+
* declares a slot count for. A runtime with no `modelConcurrency` keeps exactly
|
|
16
|
+
* one pool keyed by its bare instance id, so no existing config silently gains
|
|
17
|
+
* capacity by happening to run two models at once. That back-compat property is
|
|
18
|
+
* the reason this returns the bare id rather than always composing a key.
|
|
19
|
+
*
|
|
20
|
+
* Pure.
|
|
21
|
+
*/
|
|
22
|
+
export declare function slotPoolKey(runtime: Pick<LocalRuntime, "id" | "modelConcurrency">, modelID: string | undefined): string;
|
|
23
|
+
/**
|
|
24
|
+
* The runtime instance id carried by a slot-pool key, whether the key is a bare
|
|
25
|
+
* runtime id or a composite one. Pure.
|
|
26
|
+
*/
|
|
27
|
+
export declare function slotPoolRuntimeID(key: string): LocalRuntimeId;
|
|
28
|
+
/**
|
|
29
|
+
* The model id carried by a composite slot-pool key, or `undefined` for a bare
|
|
30
|
+
* runtime key (a runtime-wide shared pool). Pure.
|
|
31
|
+
*/
|
|
32
|
+
export declare function slotPoolModelID(key: string): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Capacity of the pool a model competes in: the runtime's declared per-model
|
|
35
|
+
* slot count when it has one, otherwise the runtime-wide
|
|
36
|
+
* {@link effectiveMaxConcurrency}. Pure.
|
|
37
|
+
*/
|
|
38
|
+
export declare function slotPoolCapacity(runtime: Pick<LocalRuntime, "maxConcurrency" | "modelConcurrency">, modelID: string | undefined): number;
|
|
39
|
+
/**
|
|
40
|
+
* Interactive-reserved slots for the pool a model competes in.
|
|
41
|
+
*
|
|
42
|
+
* An explicit `reservedInteractiveSlots` is honoured verbatim for every pool of
|
|
43
|
+
* the runtime. Otherwise the same rule as
|
|
44
|
+
* {@link effectiveReservedInteractiveSlots} is applied to the POOL's capacity
|
|
45
|
+
* rather than the server's: a 3-slot coder pool reserves 1 and leaves 2 for
|
|
46
|
+
* workers, while a 1-slot thinking pool reserves 0 so its only slot is not
|
|
47
|
+
* withheld from every worker forever. Pure.
|
|
48
|
+
*/
|
|
49
|
+
export declare function slotPoolReservedInteractive(runtime: Pick<LocalRuntime, "maxConcurrency" | "modelConcurrency" | "reservedInteractiveSlots">, modelID: string | undefined): number;
|
|
50
|
+
/**
|
|
51
|
+
* Capacity for a pool key when the runtime it names is not configured. Mirrors
|
|
52
|
+
* the pre-existing unknown-runtime fallback so an unresolvable key never gets
|
|
53
|
+
* unbounded capacity. Pure.
|
|
54
|
+
*/
|
|
55
|
+
export declare function unknownPoolCapacity(): number;
|
|
56
|
+
/** Re-exported so callers resolving pools do not also import the schema module. */
|
|
57
|
+
export { effectiveReservedInteractiveSlots };
|
|
58
|
+
//# sourceMappingURL=slotPool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotPool.d.ts","sourceRoot":"","sources":["../../src/local/slotPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iCAAiC,EACjC,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,kBAAkB,CAAC,EACtD,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,CAQR;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAG7D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,EAClE,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,CAIR;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,IAAI,CACX,YAAY,EACZ,gBAAgB,GAAG,kBAAkB,GAAG,0BAA0B,CACnE,EACD,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,MAAM,CAKR;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,mFAAmF;AACnF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
|
package/dist/local/types.d.ts
CHANGED
|
@@ -17,6 +17,25 @@ export type LocalModelInfo = {
|
|
|
17
17
|
modelID: string;
|
|
18
18
|
supportsTools: boolean | "unknown";
|
|
19
19
|
contextWindow?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the runtime currently has this model RESIDENT and serving, as
|
|
22
|
+
* opposed to merely downloaded to disk.
|
|
23
|
+
*
|
|
24
|
+
* `undefined` means the runtime did not report load state (an adapter that
|
|
25
|
+
* cannot tell, or a server too old to expose it) — deliberately distinct from
|
|
26
|
+
* `false`, so a caller never presents "not loaded" when the truth is "not
|
|
27
|
+
* known". Optional, so the adapters that cannot report it are unchanged.
|
|
28
|
+
*/
|
|
29
|
+
loaded?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Concurrent generation slots THIS model serves, when the runtime reports it.
|
|
32
|
+
*
|
|
33
|
+
* Per model rather than per server because that is how the runtimes actually
|
|
34
|
+
* behave: a single Lemonade host was measured serving one model at
|
|
35
|
+
* `--parallel 3` and another at `--parallel 1` simultaneously. `undefined`
|
|
36
|
+
* when the runtime does not report it — never guessed.
|
|
37
|
+
*/
|
|
38
|
+
slots?: number;
|
|
20
39
|
};
|
|
21
40
|
export type LocalRuntimeSnapshot = {
|
|
22
41
|
id: LocalRuntimeId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/local/types.ts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AI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,GAAG;IAC3D,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,gBAAgB,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpE,CAAC"}
|
|
@@ -156,6 +156,15 @@ export type BatchReachability = {
|
|
|
156
156
|
readonly any: boolean | undefined;
|
|
157
157
|
readonly set: ReadonlySet<LocalRuntimeId> | undefined;
|
|
158
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* The task signals the coordinator actually routes with for a role, including
|
|
161
|
+
* any synthesized explicit override. Exported so the override decision has a
|
|
162
|
+
* single production definition that tests can drive directly; `routingInput`
|
|
163
|
+
* is its only production caller.
|
|
164
|
+
*
|
|
165
|
+
* Pure: no I/O, clock, random, or env.
|
|
166
|
+
*/
|
|
167
|
+
export declare function roleAdjustedTaskForRole(input: RoleTaskInput): TaskSignals;
|
|
159
168
|
/**
|
|
160
169
|
* Classifies a raw failure reason into a bounded, non-free-form code for
|
|
161
170
|
* persisted telemetry AND the console failure viewer (P11c, see #195). The raw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,yBAAyB,EAE1B,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,yBAAyB,EAE1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,KAAK,qBAAqB,EAG1B,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AAEvB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AAiKD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,cAAc,CAAC,CAUzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;IACnC,oFAAoF;IACpF,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,aAAa,EAAE,GAC/B,aAAa,EAAE,EAAE,CA2BnB;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,eAAe,CAAC,CAiE1B"}
|
|
@@ -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"}
|
|
@@ -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,CA+PhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
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",
|