@jmanuelcorral/openteam 0.9.3 → 0.10.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/README.es.md +1 -1
- package/README.md +1 -1
- package/dist/cli.js +362 -34
- 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/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 +193 -31
- package/dist/messages/commands.d.ts +36 -0
- package/dist/messages/commands.d.ts.map +1 -1
- package/dist/opencodeArtifacts/orchestratorAgent.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/roster.d.ts +10 -2
- package/dist/orchestrator/roster.d.ts.map +1 -1
- package/dist/orchestrator/rosterPersistence.d.ts +14 -13
- package/dist/orchestrator/rosterPersistence.d.ts.map +1 -1
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -1
- package/dist/plugin/registerCastTool.d.ts +52 -0
- package/dist/plugin/registerCastTool.d.ts.map +1 -0
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -81,4 +81,40 @@ export declare const migrateMessages: {
|
|
|
81
81
|
readonly manualWorktreeEntry: (label: string, from: string, to: string) => string;
|
|
82
82
|
readonly success: " ✓ machine-local runtime output relocated under .opencode/openteam-local/.";
|
|
83
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* Messages for `openteam roles init` (#206) — assisted composition of per-role
|
|
86
|
+
* routing policy. The wording carries the whole point of the command: a roster
|
|
87
|
+
* role with no profile is frontier-eligible, and the "local only" note a human
|
|
88
|
+
* writes in the roster prose is never read because it sits outside the JSON
|
|
89
|
+
* fence. Keep that consequence stated explicitly; softening it recreates the bug.
|
|
90
|
+
*/
|
|
91
|
+
export declare const rolesInitMessages: {
|
|
92
|
+
readonly header: "openteam roles init:";
|
|
93
|
+
readonly title: "openteam roles init";
|
|
94
|
+
readonly noRoster: (path: string) => string;
|
|
95
|
+
readonly noRosterRemedy: " Cast the team first: run `openteam setup`, then ask the orchestrator to register the cast.";
|
|
96
|
+
readonly unparseableRoster: (path: string, error: string) => string;
|
|
97
|
+
readonly unparseableRosterRemedy: " Run `openteam doctor` for the remedy, then re-run this command.";
|
|
98
|
+
readonly allProfiled: (count: number) => string;
|
|
99
|
+
readonly whyTitle: "Why you are being asked";
|
|
100
|
+
readonly why: (count: number) => string;
|
|
101
|
+
readonly policyQuestion: (roleID: string, agentName: string) => string;
|
|
102
|
+
readonly localOnlyLabel: (roleID: string, agentName: string) => string;
|
|
103
|
+
readonly localOnlyHint: "sets requiresLocalRuntime; the role fails closed when no local runtime is reachable";
|
|
104
|
+
readonly frontierOkLabel: "Local first, frontier allowed";
|
|
105
|
+
readonly frontierOkHint: "records today's implicit behaviour: cheapest-capable frontier when the task warrants it";
|
|
106
|
+
readonly skipLabel: "Skip for now";
|
|
107
|
+
readonly skipHint: "leaves the role unprofiled, so it stays frontier-eligible and doctor keeps reporting it";
|
|
108
|
+
readonly runtimeQuestion: (roleID: string) => string;
|
|
109
|
+
readonly runtimeHint: "machine-local — written to the git-ignored overlay";
|
|
110
|
+
readonly cancelled: (reason: string) => string;
|
|
111
|
+
readonly invalidResult: (reason: string) => string;
|
|
112
|
+
readonly nothingWritten: (skipped: string) => string;
|
|
113
|
+
readonly nothingToWriteOutro: "Nothing to write.";
|
|
114
|
+
readonly pinnedLocal: (roleIDs: string, path: string) => string;
|
|
115
|
+
readonly frontierAllowed: (roleIDs: string, path: string) => string;
|
|
116
|
+
readonly runtimeBinding: (path: string) => string;
|
|
117
|
+
readonly skippedSummary: (roleIDs: string) => string;
|
|
118
|
+
readonly outro: "Role policy updated.";
|
|
119
|
+
};
|
|
84
120
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/messages/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,2CAA2C;AAC3C,eAAO,MAAM,kBAAkB;aAC7B,MAAM,EAAE,qDAAqD;aAC7D,OAAO;iBACL,OAAO,EAAE,UAAU;iBACnB,MAAM,EAAE,aAAa;iBACrB,SAAS,EAAE,WAAW;iBACtB,KAAK,EAAE,OAAO;;aAEhB,iBAAiB,EAAE,0BAA0B;aAC7C,YAAY,EAAE,UAAU;aACxB,WAAW,YAAY,MAAM,KAAG,MAAM;aACtC,kBAAkB,YAAY,MAAM,gBAAgB,MAAM,KAAG,MAAM;aAEnE,SAAS,UAAU,MAAM,KAAG,MAAM;aAClC,KAAK,UAAU,MAAM,KAAG,MAAM;CAEtB,CAAC;AAEX,wCAAwC;AACxC,eAAO,MAAM,gBAAgB;aAC3B,aAAa,EAAE,yBAAyB;aACxC,YAAY,QAAQ,MAAM,KAAG,MAAM;aACnC,OAAO,WAAW;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAG,MAAM,EAAE;aAOZ,YAAY,UAAU,MAAM,KAAG,MAAM;aAErC,QAAQ,QAAQ,MAAM,KAAG,MAAM;aAC/B,QAAQ,EAAE,+CAA+C;CACjD,CAAC;AAEX,qCAAqC;AACrC,eAAO,MAAM,aAAa;aACxB,UAAU,EAAE,MAAM;aAClB,gBAAgB,EAAE,8BAA8B;aAChD,cAAc,EAAE,aAAa;aAC7B,OAAO,WAAW;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,OAAO,C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,KAAG,MAAM;aAEpD,eAAe,YAAY,MAAM,QAAQ,MAAM,KAAG,MAAM;aAExD,cAAc,SAAS,MAAM,KAAG,MAAM;aAEtC,cAAc,YAAY,MAAM,KAAG,MAAM;aAEzC,KAAK,EAAE,sBAAsB;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,
|
|
1
|
+
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,CAwRR"}
|
|
@@ -37,6 +37,20 @@ export type AgentRoleProfile = {
|
|
|
37
37
|
* on that runtime.
|
|
38
38
|
*/
|
|
39
39
|
localRuntimes?: LocalRuntimeId[];
|
|
40
|
+
/**
|
|
41
|
+
* Per-runtime model override for this role (#210).
|
|
42
|
+
*
|
|
43
|
+
* Without this, every role dispatched to a runtime shares that runtime's
|
|
44
|
+
* `defaultModel`, so a reviewer role cannot run a larger local model than a
|
|
45
|
+
* bookkeeping role on the same box — the local counterpart of
|
|
46
|
+
* `preferredFrontierModels`, which has always been able to pin a concrete
|
|
47
|
+
* frontier model.
|
|
48
|
+
*
|
|
49
|
+
* Keyed BY RUNTIME rather than a single model id so failover stays safe: a
|
|
50
|
+
* model that only exists on lemonade can never be sent to ollama. When the
|
|
51
|
+
* chosen runtime has no entry, the runtime's `defaultModel` stands.
|
|
52
|
+
*/
|
|
53
|
+
localModels?: Partial<Record<LocalRuntimeId, string>>;
|
|
40
54
|
};
|
|
41
55
|
export declare const AgentRoleProfileSchema: z.ZodObject<{
|
|
42
56
|
roleID: z.ZodString;
|
|
@@ -62,6 +76,12 @@ export declare const AgentRoleProfileSchema: z.ZodObject<{
|
|
|
62
76
|
lmstudio: "lmstudio";
|
|
63
77
|
ollama: "ollama";
|
|
64
78
|
}>>>;
|
|
79
|
+
localModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
80
|
+
"foundry-local": "foundry-local";
|
|
81
|
+
lemonade: "lemonade";
|
|
82
|
+
lmstudio: "lmstudio";
|
|
83
|
+
ollama: "ollama";
|
|
84
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
65
85
|
}, z.core.$strict>;
|
|
66
86
|
export declare const TEAM_ROLES: Record<string, AgentRoleProfile>;
|
|
67
87
|
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,E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C;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;CACvD,CAAC;AAiBF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBxB,CAAC;AAGZ,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA8FvD,CAAC;AAcF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAI5D;AA6BD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,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"}
|
|
@@ -29,6 +29,12 @@ export declare const RosterSchema: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strict>;
|
|
30
30
|
export type RosterEntry = z.infer<typeof RosterEntrySchema>;
|
|
31
31
|
export type Roster = z.infer<typeof RosterSchema>;
|
|
32
|
+
/**
|
|
33
|
+
* The fenced `json` block is the machine-owned region of the roster document.
|
|
34
|
+
* Exported so persistence repairs exactly the region this parser reads: a second
|
|
35
|
+
* copy of this pattern would silently drift from the parser it must match.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ROSTER_JSON_FENCE: RegExp;
|
|
32
38
|
export type RosterParseErrorCode = "missing-json-block" | "malformed-json" | "invalid-roster-schema";
|
|
33
39
|
export declare class RosterParseError extends Error {
|
|
34
40
|
readonly code: RosterParseErrorCode;
|
|
@@ -139,8 +145,10 @@ export type RosterDraft = {
|
|
|
139
145
|
};
|
|
140
146
|
/**
|
|
141
147
|
* Injected generation port (#172). Turns an initial prompt into a draft roster.
|
|
142
|
-
*
|
|
143
|
-
*
|
|
148
|
+
* Every current production call site passes a deterministic fallback source, and
|
|
149
|
+
* casts reach disk through the validated `openteam-register-cast` tool (#205) —
|
|
150
|
+
* not through a model writing the file. This port exists so a generated source
|
|
151
|
+
* can be injected without the decision core ever contacting a live LLM itself.
|
|
144
152
|
*/
|
|
145
153
|
export type RosterSource = (prompt: string) => RosterDraft | Promise<RosterDraft>;
|
|
146
154
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;GAaG;AAEH,mFAAmF;AACnF,eAAO,MAAM,iBAAiB;;;kBAKnB,CAAC;AAEZ,+DAA+D;AAC/D,eAAO,MAAM,YAAY;;;;;;kBAKd,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/orchestrator/roster.ts"],"names":[],"mappings":"AAAA,OAAO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QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,CACzB,MAAM,EAAE,MAAM,KACX,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAExC;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,CAIjB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,WAAW,GACjB,MAAM,CAOR;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMjE;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,CAIf;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAClE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACzB,OAAO,CAAC,CAAC,CAAC,CAGZ"}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import type { StorageProvider } from "../storage/provider";
|
|
2
2
|
import { type Roster, type RosterParseError } from "./roster";
|
|
3
3
|
export { parseRoster, parseRosterResult, RosterParseError } from "./roster";
|
|
4
|
+
/** Serialises a roster to the Markdown-with-JSON roster document. Pure. */
|
|
5
|
+
export declare function serializeRoster(roster: Roster): string;
|
|
4
6
|
/**
|
|
5
|
-
*
|
|
7
|
+
* Rewrites only the machine-owned JSON fence, preserving every other byte of an
|
|
8
|
+
* existing roster document. Pure.
|
|
6
9
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* lives OUTSIDE `.opencode/agent/` on purpose: opencode loads every `.md` there as
|
|
11
|
-
* an agent, so a roster inside it would appear as a phantom agent.
|
|
12
|
-
*
|
|
13
|
-
* Serialisation embeds the structured roster as a JSON block inside a Markdown
|
|
14
|
-
* document, so the write/parse round-trip is exact and Zod-validated while the file
|
|
15
|
-
* stays human-readable. All disk access goes through the injected
|
|
16
|
-
* {@link StorageProvider} boundary, so this module has no direct I/O.
|
|
10
|
+
* Curated prose — the character table and `## Convenciones` a team writes around
|
|
11
|
+
* the fence — is theirs, not ours: re-serialising the whole document on every cast
|
|
12
|
+
* registration would silently delete it (#205).
|
|
17
13
|
*/
|
|
18
|
-
|
|
19
|
-
export declare function serializeRoster(roster: Roster): string;
|
|
14
|
+
export declare function replaceRosterFence(existing: string | undefined, roster: Roster): string;
|
|
20
15
|
/** Writes the roster to the portable path; returns the path written. */
|
|
21
16
|
export declare function persistRoster(storage: StorageProvider, roster: Roster, path?: string): Promise<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Persists a roster while preserving any curated prose already on disk.
|
|
19
|
+
* Prefer this over {@link persistRoster} for writes that may hit a document a
|
|
20
|
+
* human has edited.
|
|
21
|
+
*/
|
|
22
|
+
export declare function persistRosterPreservingProse(storage: StorageProvider, roster: Roster, path?: string): Promise<string>;
|
|
22
23
|
export type RosterFileLoadResult = {
|
|
23
24
|
readonly status: "absent";
|
|
24
25
|
readonly path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rosterPersistence.d.ts","sourceRoot":"","sources":["../../src/orchestrator/rosterPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,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
+
{"version":3,"file":"runtimeSelection.d.ts","sourceRoot":"","sources":["../../src/orchestrator/runtimeSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,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,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;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;AASF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GACrB,cAAc,GAAG,SAAS,CAI5B;AAoBD;;;;;;;;;;;;;;;;;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,CAsC1B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { type AgentRoleProfile } from "../orchestrator/roles";
|
|
4
|
+
import { type Roster } from "../orchestrator/roster";
|
|
5
|
+
import type { StorageProvider } from "../storage/provider";
|
|
6
|
+
export declare const RegisterCastPayloadSchema: z.ZodObject<{
|
|
7
|
+
universe: z.ZodString;
|
|
8
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
9
|
+
roleID: z.ZodString;
|
|
10
|
+
agentName: z.ZodString;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type RegisterCastPayload = z.infer<typeof RegisterCastPayloadSchema>;
|
|
14
|
+
export type RegisterCastResult = {
|
|
15
|
+
readonly ok: true;
|
|
16
|
+
readonly path: string;
|
|
17
|
+
readonly roster: Roster;
|
|
18
|
+
} | {
|
|
19
|
+
readonly ok: false;
|
|
20
|
+
readonly error: string;
|
|
21
|
+
readonly fields: readonly string[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Validates a cast draft and persists it, preserving curated prose.
|
|
25
|
+
* On rejection no write is attempted at all.
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerCast(storage: StorageProvider, draft: unknown, path?: string): Promise<RegisterCastResult>;
|
|
28
|
+
export type RegisterCastDeps = {
|
|
29
|
+
readonly storage: StorageProvider;
|
|
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;
|
|
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[];
|
|
50
|
+
/** Builds the `openteam-register-cast` tool definition. */
|
|
51
|
+
export declare function createRegisterCastTool(deps: RegisterCastDeps): ToolDefinition;
|
|
52
|
+
//# sourceMappingURL=registerCastTool.d.ts.map
|
|
@@ -0,0 +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,EACL,KAAK,gBAAgB,EAGtB,MAAM,uBAAuB,CAAC;AAC/B,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,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,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.10.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",
|