@jmanuelcorral/openteam 0.22.0 → 0.23.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/.opencode/command/openteam.md +5 -3
- package/README.es.md +45 -8
- package/README.md +41 -7
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli/consoleRuntimeState.d.ts +50 -0
- package/dist/cli/consoleRuntimeState.d.ts.map +1 -0
- package/dist/cli/consoleServe.d.ts +4 -0
- package/dist/cli/consoleServe.d.ts.map +1 -1
- package/dist/cli/purgeAdapter.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +973 -481
- package/dist/commands/console.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +10 -12
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/git/processLocale.d.ts +6 -0
- package/dist/git/processLocale.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1420 -290
- package/dist/messages/consoleRuntime.d.ts +42 -0
- package/dist/messages/consoleRuntime.d.ts.map +1 -0
- package/dist/messages/executionSetup.d.ts +11 -6
- package/dist/messages/executionSetup.d.ts.map +1 -1
- package/dist/messages/index.d.ts +1 -0
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/messages/rosterSummary.d.ts +6 -0
- package/dist/messages/rosterSummary.d.ts.map +1 -0
- package/dist/messages/teamPreparation.d.ts +8 -0
- package/dist/messages/teamPreparation.d.ts.map +1 -0
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -1
- package/dist/opencodeArtifacts/rosterSummary.d.ts +2 -0
- package/dist/opencodeArtifacts/rosterSummary.d.ts.map +1 -0
- package/dist/opencodeArtifacts/slashCommand.d.ts +1 -0
- package/dist/opencodeArtifacts/slashCommand.d.ts.map +1 -1
- package/dist/opencodeArtifacts/teamPreparation.d.ts +2 -0
- package/dist/opencodeArtifacts/teamPreparation.d.ts.map +1 -0
- package/dist/orchestrator/rosterPersistence.d.ts +0 -6
- package/dist/orchestrator/rosterPersistence.d.ts.map +1 -1
- package/dist/orchestrator/rosterReconciliation.d.ts +14 -0
- package/dist/orchestrator/rosterReconciliation.d.ts.map +1 -0
- package/dist/orchestrator/worktreeAdapter.d.ts.map +1 -1
- package/dist/plugin/consoleTool.d.ts +18 -0
- package/dist/plugin/consoleTool.d.ts.map +1 -0
- package/dist/plugin/hooks.d.ts +3 -4
- package/dist/plugin/hooks.d.ts.map +1 -1
- package/dist/plugin/registerCastTool.d.ts +8 -16
- package/dist/plugin/registerCastTool.d.ts.map +1 -1
- package/dist/plugin/teamPreparation.d.ts +26 -0
- package/dist/plugin/teamPreparation.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const consoleCommandMessages: {
|
|
2
|
+
readonly statusSummary: (params: {
|
|
3
|
+
url: string;
|
|
4
|
+
refreshMs: number;
|
|
5
|
+
recentRoutes: number;
|
|
6
|
+
autoPortFallback: boolean;
|
|
7
|
+
}) => string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const consoleServeMessages: {
|
|
10
|
+
readonly help: string;
|
|
11
|
+
readonly couldNotStart: (message: string) => string;
|
|
12
|
+
readonly listening: "Listening on loopback. Press Ctrl+C to stop.";
|
|
13
|
+
readonly remoteStorageExposed: "Remote storage exposed at /storage/* (read-only, requires token).";
|
|
14
|
+
readonly signedUrlIntro: "The console and state require a token; open it with the signed URL:";
|
|
15
|
+
readonly signedUrl: (url: string, token: string) => string;
|
|
16
|
+
readonly sqliteIndexBuilt: (events: number, path: string) => string;
|
|
17
|
+
readonly sqliteIndexDisabled: (message: string) => string;
|
|
18
|
+
readonly browserOpenFailed: "Could not open the browser automatically.";
|
|
19
|
+
readonly stopped: "Console stopped.";
|
|
20
|
+
};
|
|
21
|
+
export declare const consoleToolMessages: {
|
|
22
|
+
readonly toolDescription: "Manage the openteam web Console for the current workspace: report status, start it in a detached child process, or stop it gracefully. Returns the Console URL, PID, log path, and state.";
|
|
23
|
+
readonly unavailableWorkspace: "The workspace directory is unavailable for this tool call.";
|
|
24
|
+
readonly corruptRuntimeCleared: (detail: string) => string;
|
|
25
|
+
readonly runtimeWorkspaceMismatch: "Runtime metadata belonged to another workspace and was cleared.";
|
|
26
|
+
readonly runtimePidGone: "Recorded Console PID is no longer alive.";
|
|
27
|
+
readonly runtimeHealthPending: "Recorded Console PID is alive but /healthz is not ready.";
|
|
28
|
+
readonly startTimeout: "The Console process did not publish a healthy runtime before the startup timeout.";
|
|
29
|
+
readonly stopTimeout: "The Console process did not stop before the graceful-stop timeout after SIGTERM.";
|
|
30
|
+
readonly launchInProgress: "Another Console start is already in progress for this workspace.";
|
|
31
|
+
readonly logUnavailable: "n/a";
|
|
32
|
+
readonly urlUnavailable: "n/a";
|
|
33
|
+
readonly pidUnavailable: "n/a";
|
|
34
|
+
readonly summary: (params: {
|
|
35
|
+
state: "started" | "already running" | "not running" | "stopped";
|
|
36
|
+
url?: string;
|
|
37
|
+
pid?: number;
|
|
38
|
+
logPath: string;
|
|
39
|
+
note?: string;
|
|
40
|
+
}) => string;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=consoleRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consoleRuntime.d.ts","sourceRoot":"","sources":["../../src/messages/consoleRuntime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;aACjC,aAAa,WAAW;QACtB,GAAG,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,KAAG,MAAM,EAAE;CAgBJ,CAAC;AAEX,eAAO,MAAM,oBAAoB;aAC/B,IAAI;aAiBJ,aAAa,YAAY,MAAM,KAAG,MAAM;aAExC,SAAS,EAAE,8CAA8C;aACzD,oBAAoB,EAClB,mEAAmE;aACrE,cAAc,EACZ,qEAAqE;aACvE,SAAS,QAAQ,MAAM,SAAS,MAAM,KAAG,MAAM;aAC/C,gBAAgB,WAAW,MAAM,QAAQ,MAAM,KAAG,MAAM;aAExD,mBAAmB,YAAY,MAAM,KAAG,MAAM;aAE9C,iBAAiB,EAAE,2CAA2C;aAC9D,OAAO,EAAE,kBAAkB;CACnB,CAAC;AAEX,eAAO,MAAM,mBAAmB;aAC9B,eAAe,EACb,2LAA2L;aAC7L,oBAAoB,EAClB,4DAA4D;aAC9D,qBAAqB,WAAW,MAAM,KAAG,MAAM;aAE/C,wBAAwB,EACtB,iEAAiE;aACnE,cAAc,EAAE,0CAA0C;aAC1D,oBAAoB,EAClB,0DAA0D;aAC5D,YAAY,EACV,mFAAmF;aACrF,WAAW,EACT,kFAAkF;aACpF,gBAAgB,EACd,kEAAkE;aACpE,cAAc,EAAE,KAAK;aACrB,cAAc,EAAE,KAAK;aACrB,cAAc,EAAE,KAAK;aACrB,OAAO,WAAW;QAChB,KAAK,EAAE,SAAS,GAAG,iBAAiB,GAAG,aAAa,GAAG,SAAS,CAAC;QACjE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,KAAG,MAAM;CASF,CAAC"}
|
|
@@ -77,7 +77,7 @@ export declare const executionSetupMessages: {
|
|
|
77
77
|
readonly unknownLocalPluginIdentity: (spec: string) => string;
|
|
78
78
|
readonly providerModelObjectRequired: (providerID: string, modelID: string) => string;
|
|
79
79
|
readonly providerModelLimitObjectRequired: (providerID: string, modelID: string) => string;
|
|
80
|
-
readonly
|
|
80
|
+
readonly providerModelLimitInteger: (providerID: string, modelID: string, field: "context" | "input" | "output") => string;
|
|
81
81
|
};
|
|
82
82
|
readonly rolePolicy: {
|
|
83
83
|
readonly whyTitle: "Configure execution and model selection";
|
|
@@ -113,7 +113,7 @@ export declare const executionPolicyMessages: {
|
|
|
113
113
|
readonly inheritedDefaultUnset: "inherits the opencode.json default (not set); execution follows the configured team and agent policy";
|
|
114
114
|
readonly inheritedDefault: (subscription: string) => string;
|
|
115
115
|
readonly unprofiledRoleRouting: " routing: no explicit override — the role inherits its built-in or fallback policy within the global execution-mode upper bound. Roster prose is not executable configuration.";
|
|
116
|
-
readonly unprofiledRoleRemedy: " remedy:
|
|
116
|
+
readonly unprofiledRoleRemedy: " remedy: use `/create_roster` in opencode to complete missing worker profiles without rehiring under orchestrator.roles in .opencode/openteam.json. `openteam roles init` remains optional for manual executionMode, model, and ordered fallbacks.";
|
|
117
117
|
readonly noLocalMixed: " ⚠ No local runtime reachable: mixed execution currently has only frontier candidates.";
|
|
118
118
|
readonly noLocalBlocked: " ✗ No local runtime reachable: local execution is blocked until a configured runtime is available.";
|
|
119
119
|
readonly primaryLocalMismatch: (name: string, providerID: string) => string;
|
|
@@ -128,16 +128,21 @@ export declare const doctorMessages: {
|
|
|
128
128
|
readonly warningSummary: (count: number) => string;
|
|
129
129
|
readonly modelWarning: (providerID: string, modelID: string, problems: string) => string;
|
|
130
130
|
readonly invalidLimitBlock: "invalid limit block (expected an object)";
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
131
|
+
readonly unconfiguredOutput: "no limit.output (no explicit local output budget; opencode uses its model defaults)";
|
|
132
|
+
readonly unconfiguredContext: "no limit.context (no explicit usable context budget is configured)";
|
|
133
|
+
readonly missingOutput: "no limit.output (opencode rejects the provider model because output is required whenever limit is present)";
|
|
134
|
+
readonly missingContext: "no limit.context (opencode rejects the provider model because context is required whenever limit is present)";
|
|
135
|
+
readonly unknownContext: "limit.context is 0, so context is unknown and automatic compaction is disabled";
|
|
133
136
|
readonly invalidOutput: "invalid limit.output (expected a positive integer token count)";
|
|
134
|
-
readonly invalidContext: "invalid limit.context (expected a
|
|
137
|
+
readonly invalidContext: "invalid limit.context (expected a non-negative integer token count; 0 means unknown)";
|
|
135
138
|
readonly invalidInput: "invalid limit.input (expected a positive integer token count)";
|
|
136
139
|
readonly outputExceedsContext: "limit.output is greater than or equal to limit.context, so the configured context leaves no usable input window";
|
|
137
140
|
readonly outputExceedsInput: "limit.input is less than or equal to the reserved output budget, so compaction would have no usable input threshold";
|
|
138
141
|
readonly outputRemedy: " remedy: re-run `openteam setup` to write openteam's 8 192-token local output default, then re-run `openteam doctor`.";
|
|
142
|
+
readonly unconfiguredLimitRemedy: " remedy: the optional limit block may remain absent; to configure explicit limits, manually add a complete limit object in opencode.json with positive output and non-negative context (0 means unknown), because setup fills an absent limit block only for models the runtime currently discovers. Then re-run `openteam doctor`.";
|
|
139
143
|
readonly detectedContextRemedy: " remedy: re-run `openteam setup` while the runtime is reachable to copy the detected usable context budget, then re-run `openteam doctor`.";
|
|
140
|
-
readonly unknownContextRemedy: " remedy:
|
|
144
|
+
readonly unknownContextRemedy: " remedy: re-run `openteam setup` to write the required context:0 sentinel; automatic compaction remains disabled until a positive context is configured.";
|
|
145
|
+
readonly zeroContextRemedy: " remedy: edit or remove limit.context and re-run `openteam setup` while the runtime advertises a positive context window to enable automatic compaction.";
|
|
141
146
|
readonly invalidLimitRemedy: " remedy: fix the invalid local limit values in opencode.json before relying on this provider configuration.";
|
|
142
147
|
};
|
|
143
148
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executionSetup.d.ts","sourceRoot":"","sources":["../../src/messages/executionSetup.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;aACjC,UAAU,EACR,qEAAqE;aACvE,eAAe,EACb,+EAA+E;aACjF,gBAAgB,EAAE,iCAAiC;aACnD,eAAe,EAAE,uCAAuC;aACxD,qBAAqB,EAAE,qBAAqB;aAC5C,oBAAoB;iBAClB,KAAK;qBACH,KAAK,EAAE,yDAAyD;qBAChE,IAAI,EAAE,6CAA6C;;iBAErD,QAAQ;qBACN,KAAK,EAAE,gDAAgD;qBACvD,IAAI,EAAE,kCA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AM;aAMT,oBAAoB,EAAE,+BAA+B;aACrD,sBAAsB,oBACH,MAAM,iBACR,MAAM,KACpB,MAAM;aAET,4BAA4B,oBAAoB,MAAM,KAAG,MAAM;aAE/D,KAAK;iBACH,oBAAoB,SAAS,MAAM,UAAU,MAAM,KAAG,MAAM;iBAE5D,iBAAiB,EACf,4DAA4D;iBAC9D,sBAAsB,EAAE,yCAAyC;iBACjE,iBAAiB;qBACf,QAAQ,EAAE,gBAAgB;qBAC1B,cAAc,EAAE,iBAAiB;qBACjC,yBAAyB,EAAE,oCAAoC;;iBAEjE,6BAA6B,SAAS,MAAM,SAAS,MAAM,KAAG,MAAM;iBAEpE,8BAA8B,EAAE,kCAAkC;iBAClE,gCAAgC,SAAS,MAAM,KAAG,MAAM;iBAExD,4BAA4B,eAAe,MAAM,KAAG,MAAM;iBAE1D,qBAAqB,SAAS,SAAS,MAAM,EAAE,KAAG,MAAM;iBAExD,0BAA0B,SAAS,MAAM,KAAG,MAAM;iBAElD,2BAA2B,eACb,MAAM,WACT,MAAM,KACd,MAAM;iBAET,gCAAgC,eAClB,MAAM,WACT,MAAM,KACd,MAAM;iBAET,
|
|
1
|
+
{"version":3,"file":"executionSetup.d.ts","sourceRoot":"","sources":["../../src/messages/executionSetup.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;aACjC,UAAU,EACR,qEAAqE;aACvE,eAAe,EACb,+EAA+E;aACjF,gBAAgB,EAAE,iCAAiC;aACnD,eAAe,EAAE,uCAAuC;aACxD,qBAAqB,EAAE,qBAAqB;aAC5C,oBAAoB;iBAClB,KAAK;qBACH,KAAK,EAAE,yDAAyD;qBAChE,IAAI,EAAE,6CAA6C;;iBAErD,QAAQ;qBACN,KAAK,EAAE,gDAAgD;qBACvD,IAAI,EAAE,kCAAkC;;iBAE1C,KAAK;qBACH,KAAK,EAAE,sDAAsD;qBAC7D,IAAI,EAAE,qEAAqE;;;aAG/E,gBAAgB;aAKhB,iBAAiB,EAAE,oBAAoB;a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AA+D;iBACjE,oBAAoB,EAClB,iHAAiH;iBACnH,kBAAkB,EAChB,qHAAqH;iBACvH,YAAY,EACV,0HAA0H;iBAC5H,uBAAuB,EACrB,wUAAwU;iBAC1U,qBAAqB,EACnB,+IAA+I;iBACjJ,oBAAoB,EAClB,6JAA6J;iBAC/J,iBAAiB,EACf,6JAA6J;iBAC/J,kBAAkB,EAChB,gHAAgH;;CAE5G,CAAC;AAEX,eAAO,MAAM,6BAA6B;aACxC,KAAK,EAAE,4BAA4B;aACnC,UAAU,EAAE,uBAAuB;aACnC,YAAY,EAAE,eAAe;aAC7B,gBAAgB,EAAE,mBAAmB;aACrC,WAAW,EAAE,cAAc;aAC3B,SAAS,EAAE,MAAM;aACjB,OAAO,EAAE,SAAS;aAClB,IAAI,EAAE,MAAM;aACZ,UAAU,eAAe,MAAM,oBAAoB,MAAM,KAAG,MAAM;CAE1D,CAAC;AAEX,eAAO,MAAM,uBAAuB;aAClC,6BAA6B,SACrB,MAAM,cACA,MAAM,cACN,MAAM,WACT,MAAM,KACd,MAAM;aAET,6BAA6B,SACrB,MAAM,cACA,MAAM,cACN,MAAM,WACT,MAAM,KACd,MAAM;CAED,CAAC"}
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ROSTER_SUMMARY_HEADING = "Registered team model policies";
|
|
2
|
+
export declare const ROSTER_SUMMARY_COLUMNS: readonly ["Agent", "Role", "Model"];
|
|
3
|
+
export declare const ROSTER_AUTO_MODEL = "auto (resolved at task dispatch)";
|
|
4
|
+
export declare const ROSTER_MODEL_POLICY_NOTE = "Model values are configured policies, not running models. The concrete model is resolved at task dispatch within the execution domain, capability requirements, availability, fallback and budget limits. Registration alone does not verify that agent files are ready.";
|
|
5
|
+
export declare function rosterOrderedFallbacks(models: readonly string[]): string;
|
|
6
|
+
//# sourceMappingURL=rosterSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rosterSummary.d.ts","sourceRoot":"","sources":["../../src/messages/rosterSummary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,mCAAmC,CAAC;AACvE,eAAO,MAAM,sBAAsB,YAAI,OAAO,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AAC1E,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AACpE,eAAO,MAAM,wBAAwB,6QACuO,CAAC;AAE7Q,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const TEAM_PREPARATION_CONFIG = "conversational team configuration";
|
|
2
|
+
export declare const TEAM_PREPARATION_DOMAIN_CHANGED = "The global execution domain changed outside this plugin instance. Reload opencode to apply that operator change before preparing the team; no profiles or roster were changed.";
|
|
3
|
+
export declare function castConflict(field: string): string;
|
|
4
|
+
export declare function initializedAutoProfiles(roleIDs: readonly string[]): string;
|
|
5
|
+
export declare function teamFileChanged(path: string): string;
|
|
6
|
+
export declare function teamPersistenceFailed(reason: string): string;
|
|
7
|
+
export declare function teamRollbackIncomplete(reason: string, failures: readonly string[]): string;
|
|
8
|
+
//# sourceMappingURL=teamPreparation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamPreparation.d.ts","sourceRoot":"","sources":["../../src/messages/teamPreparation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAC3E,eAAO,MAAM,+BAA+B,mLACsI,CAAC;AAEnL,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAE1E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,MAAM,CAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,CAoUR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rosterSummary.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/rosterSummary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,QAW5B,CAAC"}
|
|
@@ -25,6 +25,7 @@ export declare function buildOpenteamCommand(): string;
|
|
|
25
25
|
* `.opencode/command/`. In addition to the catch-all `/openteam`, generates a flat
|
|
26
26
|
* command per action (`/openteam-doctor`, `/openteam-agents`, …) so that all
|
|
27
27
|
* appear and autocomplete in opencode's command palette when typing `/openteam`.
|
|
28
|
+
* `/create_roster` is a separate conversation workflow bound to the primary.
|
|
28
29
|
* Pure/deterministic: no I/O.
|
|
29
30
|
*/
|
|
30
31
|
export declare function buildOpenteamCommands(): SlashCommandFile[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slashCommand.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/slashCommand.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"slashCommand.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/slashCommand.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAwJF;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAsB7C;AAqBD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,gBAAgB,EAAE,CA+C1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamPreparation.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/teamPreparation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,QAmB9B,CAAC"}
|
|
@@ -14,12 +14,6 @@ export declare function serializeRoster(roster: Roster): string;
|
|
|
14
14
|
export declare function replaceRosterFence(existing: string | undefined, roster: Roster): string;
|
|
15
15
|
/** Writes the roster to the portable path; returns the path written. */
|
|
16
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>;
|
|
23
17
|
export type RosterFileLoadResult = {
|
|
24
18
|
readonly status: "absent";
|
|
25
19
|
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,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAIL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAuB5E,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GACb,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EAAwE;AACxE,wBAAsB,cAAc,CAClC,OAAO,EAAE,eAAe,EACxB,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAc/B;AAED,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACjD,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,CAAC;CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,EACxC,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,gBAAgB,CAAC,CAoB3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Roster } from "./roster";
|
|
2
|
+
type Conflict = {
|
|
3
|
+
readonly ok: false;
|
|
4
|
+
readonly error: string;
|
|
5
|
+
readonly fields: readonly string[];
|
|
6
|
+
};
|
|
7
|
+
type ReconciledRoster = {
|
|
8
|
+
readonly ok: true;
|
|
9
|
+
readonly roster: Roster;
|
|
10
|
+
} | Conflict;
|
|
11
|
+
/** Adds missing members without recasting existing roles or reusing their aliases. */
|
|
12
|
+
export declare function reconcileRoster(existing: Roster | undefined, draft: Roster): ReconciledRoster;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=rosterReconciliation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rosterReconciliation.d.ts","sourceRoot":"","sources":["../../src/orchestrator/rosterReconciliation.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAE/D,KAAK,QAAQ,GAAG;IACd,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAC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OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,sCAAsC;AACtC,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,iDAAiD;IACjD,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAChC,+CAA+C;IAC/C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,2DAA2D;IAC3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAuFD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,qBAAqB,GAC5B,eAAe,CAiJjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { spawn as nodeSpawn } from "node:child_process";
|
|
2
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
3
|
+
export type ConsoleToolAction = "status" | "start" | "stop";
|
|
4
|
+
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
5
|
+
export type ConsoleToolDeps = {
|
|
6
|
+
spawn?: typeof nodeSpawn;
|
|
7
|
+
fetch?: FetchLike;
|
|
8
|
+
now?: () => number;
|
|
9
|
+
randomUUID?: () => string;
|
|
10
|
+
sleep?: (ms: number) => Promise<void>;
|
|
11
|
+
processExists?: (pid: number) => boolean;
|
|
12
|
+
sendSignal?: (pid: number, signal: NodeJS.Signals) => void;
|
|
13
|
+
resolveCliEntrypoint?: () => string;
|
|
14
|
+
};
|
|
15
|
+
export declare function resolveInstalledCliEntrypoint(): string;
|
|
16
|
+
export declare function createConsoleTool(deps?: ConsoleToolDeps): ToolDefinition;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=consoleTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consoleTool.d.ts","sourceRoot":"","sources":["../../src/plugin/consoleTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKxD,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAuBhE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,KAAK,SAAS,GAAG,CACf,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,KACf,OAAO,CAAC,QAAQ,CAAC,CAAC;AAOvB,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,KAAK,IAAI,CAAC;IAC3D,oBAAoB,CAAC,EAAE,MAAM,MAAM,CAAC;CACrC,CAAC;AA4DF,wBAAgB,6BAA6B,IAAI,MAAM,CAkBtD;AAqRD,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,eAAoB,GAAG,cAAc,CAqN5E"}
|
package/dist/plugin/hooks.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Hooks } from "@opencode-ai/plugin";
|
|
2
2
|
import type { ModelCapabilityProfile } from "../capabilities/types";
|
|
3
3
|
import type { OpenTeamConfig } from "../config/schema";
|
|
4
|
-
import { type AgentRoleProfile } from "../orchestrator/roles";
|
|
5
4
|
import type { TaskSignals } from "../router/types";
|
|
6
5
|
import { type EventSink } from "../telemetry/eventLog";
|
|
7
6
|
import type { AvailabilityProvider } from "./availability";
|
|
@@ -31,10 +30,10 @@ export type ChatMessageHookOptions = {
|
|
|
31
30
|
*/
|
|
32
31
|
orchestratedModelOwnership?: OrchestratedModelOwnership;
|
|
33
32
|
/**
|
|
34
|
-
* Resolves a
|
|
35
|
-
*
|
|
33
|
+
* Resolves a registered roster alias to its functional role ID, even when
|
|
34
|
+
* that role has no profile yet. Only an unregistered alias returns undefined.
|
|
36
35
|
*/
|
|
37
|
-
resolveAgentRole?: (agentName: string) =>
|
|
36
|
+
resolveAgentRole?: (agentName: string) => string | undefined | Promise<string | undefined>;
|
|
38
37
|
/** Waits for the initial authoritative provider/runtime inventory. */
|
|
39
38
|
beforeRoute?: () => Promise<void>;
|
|
40
39
|
/** Supplies capability and pricing profiles from the same inventory. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/plugin/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/plugin/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAA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;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EACtC,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,oBAAoB,EAClC,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAkHjB;AAED,wBAAgB,WAAW,CACzB,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,oBAAoB,EAClC,OAAO,GAAE,sBAA2B,GACnC,KAAK,CAIP"}
|
|
@@ -2,7 +2,9 @@ import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { type AgentRoleProfile } from "../orchestrator/roles";
|
|
4
4
|
import { type Roster } from "../orchestrator/roster";
|
|
5
|
+
import type { AgentExecutionPolicy } from "../router/executionPolicy";
|
|
5
6
|
import type { StorageProvider } from "../storage/provider";
|
|
7
|
+
import { type PreparedProfiles, type TeamPreparation } from "./teamPreparation";
|
|
6
8
|
export declare const RegisterCastPayloadSchema: z.ZodObject<{
|
|
7
9
|
universe: z.ZodString;
|
|
8
10
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -15,6 +17,7 @@ export type RegisterCastResult = {
|
|
|
15
17
|
readonly ok: true;
|
|
16
18
|
readonly path: string;
|
|
17
19
|
readonly roster: Roster;
|
|
20
|
+
readonly profiles?: PreparedProfiles;
|
|
18
21
|
} | {
|
|
19
22
|
readonly ok: false;
|
|
20
23
|
readonly error: string;
|
|
@@ -24,29 +27,18 @@ export type RegisterCastResult = {
|
|
|
24
27
|
* Validates a cast draft and persists it, preserving curated prose.
|
|
25
28
|
* On rejection no write is attempted at all.
|
|
26
29
|
*/
|
|
27
|
-
export declare function registerCast(storage: StorageProvider, draft: unknown, path?: string): Promise<RegisterCastResult>;
|
|
30
|
+
export declare function registerCast(storage: StorageProvider, draft: unknown, path?: string, preparation?: TeamPreparation): Promise<RegisterCastResult>;
|
|
28
31
|
export type RegisterCastDeps = {
|
|
29
32
|
readonly storage: StorageProvider;
|
|
30
33
|
readonly rosterPath?: string;
|
|
34
|
+
readonly preparation?: TeamPreparation;
|
|
35
|
+
readonly primaryPolicy?: AgentExecutionPolicy | undefined;
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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.
|
|
37
|
+
* Compatibility policy inputs for standalone tool callers. The live plugin
|
|
38
|
+
* injects `preparation` with its shared configuration instead of snapshots.
|
|
36
39
|
*/
|
|
37
40
|
readonly configuredRoles?: Readonly<Record<string, AgentRoleProfile>> | undefined;
|
|
38
41
|
};
|
|
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
42
|
/** Builds the `openteam-register-cast` tool definition. */
|
|
51
43
|
export declare function createRegisterCastTool(deps: RegisterCastDeps): ToolDefinition;
|
|
52
44
|
//# 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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,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC;IACvC,QAAQ,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1D;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EACrB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAC1C,SAAS,CAAC;CACf,CAAC;AAmDF,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,cAAc,CAkF7E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type OpenTeamConfig } from "../config/schema";
|
|
2
|
+
import type { Roster } from "../orchestrator/roster";
|
|
3
|
+
import type { StorageProvider } from "../storage/provider";
|
|
4
|
+
export type PreparedTeamFile = {
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly before: string | undefined;
|
|
7
|
+
readonly after: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type PreparedProfiles = {
|
|
10
|
+
readonly files: readonly PreparedTeamFile[];
|
|
11
|
+
readonly initializedRoleIDs: readonly string[];
|
|
12
|
+
readonly config: OpenTeamConfig;
|
|
13
|
+
activate(): void;
|
|
14
|
+
};
|
|
15
|
+
export type TeamPreparation = {
|
|
16
|
+
prepare(roster: Roster): Promise<PreparedProfiles>;
|
|
17
|
+
};
|
|
18
|
+
/** Plans only missing worker policies, never serializing the merged machine configuration. */
|
|
19
|
+
export declare function createTeamPreparation(deps: {
|
|
20
|
+
readonly storage: StorageProvider;
|
|
21
|
+
readonly options?: unknown;
|
|
22
|
+
readonly config?: OpenTeamConfig;
|
|
23
|
+
}): TeamPreparation;
|
|
24
|
+
/** Best-effort owned-write rollback, not a cross-process filesystem transaction. */
|
|
25
|
+
export declare function persistPreparedTeam(storage: StorageProvider, files: readonly PreparedTeamFile[]): Promise<void>;
|
|
26
|
+
//# sourceMappingURL=teamPreparation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamPreparation.d.ts","sourceRoot":"","sources":["../../src/plugin/teamPreparation.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,kBAAkB,CAAC;AAS7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,IAAI,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACpD,CAAC;AAEF,8FAA8F;AAC9F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;CAClC,GAAG,eAAe,CAgIlB;AAED,oFAAoF;AACpF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,SAAS,gBAAgB,EAAE,GACjC,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.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",
|