@jmanuelcorral/openteam 0.18.0 → 0.19.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/openteam.example.json +23 -14
- package/AGENTS.md +16 -2
- package/README.es.md +291 -208
- package/README.md +292 -138
- package/dist/capabilities/classify.d.ts.map +1 -1
- package/dist/capabilities/normalize.d.ts.map +1 -1
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli.js +1354 -594
- package/dist/commands/agents.d.ts +16 -4
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/dispatch.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/local.d.ts +4 -5
- package/dist/commands/local.d.ts.map +1 -1
- package/dist/commands/report.d.ts +6 -6
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/rolesInit.d.ts +10 -12
- package/dist/commands/rolesInit.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +5 -13
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/yolo.d.ts +2 -4
- package/dist/commands/yolo.d.ts.map +1 -1
- package/dist/config/errors.d.ts.map +1 -1
- package/dist/config/executionPolicyDomains.d.ts +18 -0
- package/dist/config/executionPolicyDomains.d.ts.map +1 -0
- package/dist/config/migrations.d.ts +9 -2
- package/dist/config/migrations.d.ts.map +1 -1
- package/dist/config/persist.d.ts.map +1 -1
- package/dist/config/runtime.d.ts +2 -0
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/schema.d.ts +97 -12
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/console/configView.d.ts +2 -7
- package/dist/console/configView.d.ts.map +1 -1
- package/dist/console/render.d.ts.map +1 -1
- package/dist/console/types.d.ts +2 -2
- package/dist/console/types.d.ts.map +1 -1
- package/dist/context/schema.d.ts +13 -7
- package/dist/context/schema.d.ts.map +1 -1
- package/dist/graph/certificate.d.ts.map +1 -1
- package/dist/graph/langgraph/adapter.d.ts +7 -8
- package/dist/graph/langgraph/adapter.d.ts.map +1 -1
- package/dist/graph/langgraph/certification.d.ts +5 -0
- package/dist/graph/langgraph/certification.d.ts.map +1 -1
- package/dist/graph/langgraph/checkpointReplay.d.ts.map +1 -1
- package/dist/graph/langgraph/engine.d.ts +2 -2
- package/dist/graph/langgraph/engine.d.ts.map +1 -1
- package/dist/graph/langgraph/types.d.ts +11 -6
- package/dist/graph/langgraph/types.d.ts.map +1 -1
- package/dist/graph/privacyPolicy.d.ts +6 -30
- package/dist/graph/privacyPolicy.d.ts.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3164 -1102
- package/dist/mcp/teamMemory.d.ts +2 -2
- package/dist/mcp/teamMemory.d.ts.map +1 -1
- package/dist/messages/commands.d.ts +22 -35
- package/dist/messages/commands.d.ts.map +1 -1
- package/dist/messages/executionSetup.d.ts +116 -0
- package/dist/messages/executionSetup.d.ts.map +1 -0
- package/dist/messages/index.d.ts +1 -0
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/messages/memoryTool.d.ts +17 -0
- package/dist/messages/memoryTool.d.ts.map +1 -0
- package/dist/messages/orchestration.d.ts +16 -0
- package/dist/messages/orchestration.d.ts.map +1 -0
- package/dist/messages/routing.d.ts +9 -0
- package/dist/messages/routing.d.ts.map +1 -0
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts +3 -5
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -1
- package/dist/orchestrator/coordinator.d.ts +28 -9
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/graphEffects.d.ts +10 -11
- package/dist/orchestrator/graphEffects.d.ts.map +1 -1
- package/dist/orchestrator/outputContract.d.ts +25 -0
- package/dist/orchestrator/outputContract.d.ts.map +1 -1
- package/dist/orchestrator/roles.d.ts +25 -2
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -1
- package/dist/orchestrator/subsessions.d.ts +49 -1
- package/dist/orchestrator/subsessions.d.ts.map +1 -1
- package/dist/plugin/availability.d.ts +15 -2
- package/dist/plugin/availability.d.ts.map +1 -1
- package/dist/plugin/diagnostics.d.ts +1 -0
- package/dist/plugin/diagnostics.d.ts.map +1 -1
- package/dist/plugin/hooks.d.ts +21 -2
- package/dist/plugin/hooks.d.ts.map +1 -1
- package/dist/plugin/memoryTool.d.ts +3 -3
- package/dist/plugin/memoryTool.d.ts.map +1 -1
- package/dist/plugin/modelOwnership.d.ts +15 -0
- package/dist/plugin/modelOwnership.d.ts.map +1 -0
- package/dist/plugin/orchestrateTool.d.ts +68 -3
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/dist/router/cost.d.ts +1 -1
- package/dist/router/cost.d.ts.map +1 -1
- package/dist/router/executionPolicy.d.ts +44 -0
- package/dist/router/executionPolicy.d.ts.map +1 -0
- package/dist/router/frontierBaseline.d.ts.map +1 -1
- package/dist/router/types.d.ts +10 -4
- package/dist/router/types.d.ts.map +1 -1
- package/dist/telemetry/aggregate.d.ts +4 -4
- package/dist/telemetry/aggregate.d.ts.map +1 -1
- package/dist/telemetry/diagnostics.d.ts +1 -1
- package/dist/telemetry/diagnostics.d.ts.map +1 -1
- package/dist/telemetry/events.d.ts +20 -6
- package/dist/telemetry/events.d.ts.map +1 -1
- package/dist/telemetry/otel.d.ts.map +1 -1
- package/dist/telemetry/types.d.ts +3 -3
- package/dist/web/configApi.d.ts +3 -1
- package/dist/web/configApi.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/mcp/teamMemory.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export type CostSummary = {
|
|
|
32
32
|
sessions: number;
|
|
33
33
|
messageCount: number;
|
|
34
34
|
realCostUSD: number;
|
|
35
|
-
estimatedCostUSD: number;
|
|
36
|
-
estimatedSavingsUSD: number;
|
|
35
|
+
estimatedCostUSD: number | null;
|
|
36
|
+
estimatedSavingsUSD: number | null;
|
|
37
37
|
tokensIn: number;
|
|
38
38
|
tokensOut: number;
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMemory.d.ts","sourceRoot":"","sources":["../../src/mcp/teamMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,GAAG,UAAU,CAQ5E;AASD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,8EAA8E;AAC9E,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,aAAkB,GACxB,YAAY,EAAE,CAWhB;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7B,WAAW,EAAE,CAEf;AAED,iDAAiD;AACjD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7B,cAAc,EAAE,CAElB;AAED,MAAM,MAA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M,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,WAAW,CAW3D"}
|
|
@@ -45,32 +45,32 @@ export declare const baselineMessages: {
|
|
|
45
45
|
/** Messages for `openteam local`. */
|
|
46
46
|
export declare const localMessages: {
|
|
47
47
|
readonly help: {
|
|
48
|
-
readonly status: " openteam local status Show the
|
|
49
|
-
readonly off: " openteam local off Use frontier models only
|
|
50
|
-
readonly only: " openteam local only Use local models only
|
|
51
|
-
readonly on: " openteam local on
|
|
48
|
+
readonly status: " openteam local status Show the execution mode (local / frontier / mixed)";
|
|
49
|
+
readonly off: " openteam local off Use frontier models only";
|
|
50
|
+
readonly only: " openteam local only Use local models only";
|
|
51
|
+
readonly on: " openteam local on Enable mixed local/frontier execution";
|
|
52
52
|
};
|
|
53
53
|
readonly noRuntimes: "none";
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
54
|
+
readonly modeFrontier: "frontier";
|
|
55
|
+
readonly modeLocal: "local";
|
|
56
|
+
readonly modeMixed: "mixed";
|
|
57
57
|
readonly summary: (params: {
|
|
58
58
|
mode: string;
|
|
59
|
-
frontierOnly: boolean;
|
|
60
|
-
localOnly: boolean;
|
|
61
|
-
privacy: string;
|
|
62
59
|
runtimes: string;
|
|
63
60
|
}) => string[];
|
|
64
|
-
readonly frontierOnlyNoChange: "No change: already
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly localFirstReEnabled: "Local-first routing re-enabled (frontierOnly=false, localOnly=false). Make sure a local runtime is reachable.";
|
|
61
|
+
readonly frontierOnlyNoChange: "No change: execution mode is already frontier.";
|
|
62
|
+
readonly frontierOnlyEnabled: "Frontier execution enabled.";
|
|
63
|
+
readonly localOnlyNoRuntimes: "Cannot enable local execution: no enabled local runtime is configured. Run 'openteam setup' or enable a local runtime in .opencode/openteam.json first.";
|
|
64
|
+
readonly localOnlyNoChange: "No change: execution mode is already local.";
|
|
65
|
+
readonly localOnlyEnabled: "Local execution enabled.";
|
|
66
|
+
readonly localFirstNoChange: "No change: execution mode is already mixed.";
|
|
67
|
+
readonly localFirstReEnabled: "Mixed local/frontier execution enabled. Make sure each configured provider is reachable.";
|
|
72
68
|
readonly unknownSubcommand: (subcommand: string, help: string) => string;
|
|
73
69
|
};
|
|
70
|
+
/** Messages for `openteam yolo`. */
|
|
71
|
+
export declare const yoloMessages: {
|
|
72
|
+
readonly updated: (path: string, status: string, agentNote: string) => string;
|
|
73
|
+
};
|
|
74
74
|
/** Messages for the frontier catalog rendered during `init`. */
|
|
75
75
|
export declare const frontierCatalogMessages: {
|
|
76
76
|
readonly free: "free";
|
|
@@ -93,14 +93,9 @@ export declare const migrateMessages: {
|
|
|
93
93
|
readonly manualWorktreeEntry: (label: string, from: string, to: string) => string;
|
|
94
94
|
readonly success: " ✓ machine-local runtime output relocated under .opencode/openteam-local/.";
|
|
95
95
|
};
|
|
96
|
-
/**
|
|
97
|
-
* Messages for `openteam roles init` (#206) — assisted composition of per-role
|
|
98
|
-
* routing policy. The wording carries the whole point of the command: a roster
|
|
99
|
-
* role with no profile is frontier-eligible, and the "local only" note a human
|
|
100
|
-
* writes in the roster prose is never read because it sits outside the JSON
|
|
101
|
-
* fence. Keep that consequence stated explicitly; softening it recreates the bug.
|
|
102
|
-
*/
|
|
96
|
+
/** Messages for `openteam roles init` assisted per-role policy composition. */
|
|
103
97
|
export declare const rolesInitMessages: {
|
|
98
|
+
readonly help: " openteam roles init Compose per-role execution, model, and fallback policy";
|
|
104
99
|
readonly header: "openteam roles init:";
|
|
105
100
|
readonly title: "openteam roles init";
|
|
106
101
|
readonly noRoster: (path: string) => string;
|
|
@@ -108,23 +103,15 @@ export declare const rolesInitMessages: {
|
|
|
108
103
|
readonly unparseableRoster: (path: string, error: string) => string;
|
|
109
104
|
readonly unparseableRosterRemedy: " Run `openteam doctor` for the remedy, then re-run this command.";
|
|
110
105
|
readonly allProfiled: (count: number) => string;
|
|
111
|
-
readonly whyTitle: "Why you are being asked";
|
|
112
|
-
readonly why: (count: number) => string;
|
|
113
|
-
readonly policyQuestion: (roleID: string, agentName: string) => string;
|
|
114
|
-
readonly localOnlyLabel: (roleID: string, agentName: string) => string;
|
|
115
|
-
readonly localOnlyHint: "sets requiresLocalRuntime; the role fails closed when no local runtime is reachable";
|
|
116
|
-
readonly frontierOkLabel: "Local first, frontier allowed";
|
|
117
|
-
readonly frontierOkHint: "records today's implicit behaviour: cheapest-capable frontier when the task warrants it";
|
|
118
106
|
readonly skipLabel: "Skip for now";
|
|
119
|
-
readonly skipHint: "leaves the role
|
|
107
|
+
readonly skipHint: "leaves the role on its built-in or fallback policy; doctor keeps reporting the missing explicit override";
|
|
120
108
|
readonly runtimeQuestion: (roleID: string) => string;
|
|
121
109
|
readonly runtimeHint: "machine-local — written to the git-ignored overlay";
|
|
122
110
|
readonly cancelled: (reason: string) => string;
|
|
123
111
|
readonly invalidResult: (reason: string) => string;
|
|
112
|
+
readonly deprecation: (message: string) => string;
|
|
124
113
|
readonly nothingWritten: (skipped: string) => string;
|
|
125
114
|
readonly nothingToWriteOutro: "Nothing to write.";
|
|
126
|
-
readonly pinnedLocal: (roleIDs: string, path: string) => string;
|
|
127
|
-
readonly frontierAllowed: (roleIDs: string, path: string) => string;
|
|
128
115
|
readonly runtimeBinding: (path: string) => string;
|
|
129
116
|
readonly skippedSummary: (roleIDs: string) => string;
|
|
130
117
|
readonly outro: "Role policy updated.";
|
|
@@ -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,IAAI;iBACF,MAAM,EACJ,
|
|
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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,WAAW,EAAE,oDAAoD;aACjE,SAAS,WAAW,MAAM,KAAG,MAAM;aAEnC,aAAa,WAAW,MAAM,KAAG,MAAM;aAEvC,WAAW,YAAY,MAAM,KAAG,MAAM;aACtC,cAAc,YAAY,MAAM,KAAG,MAAM;aAEzC,mBAAmB,EAAE,mBAAmB;aACxC,cAAc,SAAS,MAAM,KAAG,MAAM;aAEtC,cAAc,YAAY,MAAM,KAAG,MAAM;aAEzC,KAAK,EAAE,sBAAsB;CACrB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const executionSetupMessages: {
|
|
2
|
+
readonly setupIntro: "openteam setup — configure local, frontier, or mixed team execution";
|
|
3
|
+
readonly runtimeQuestion: "Which local runtimes do you want to enable? (choose 'None' for frontier-only)";
|
|
4
|
+
readonly runtimeNoneLabel: "None — use frontier models only";
|
|
5
|
+
readonly runtimeNoneHint: "no local runtime (frontier execution)";
|
|
6
|
+
readonly executionModeQuestion: "Team execution mode";
|
|
7
|
+
readonly executionModeChoices: {
|
|
8
|
+
readonly local: {
|
|
9
|
+
readonly label: "local — every agent stays on configured local providers";
|
|
10
|
+
readonly hint: "requires at least one enabled local runtime";
|
|
11
|
+
};
|
|
12
|
+
readonly frontier: {
|
|
13
|
+
readonly label: "frontier — every agent uses frontier providers";
|
|
14
|
+
readonly hint: "does not require a local runtime";
|
|
15
|
+
};
|
|
16
|
+
readonly mixed: {
|
|
17
|
+
readonly label: "mixed — policies may select local or frontier models";
|
|
18
|
+
readonly hint: "the global mode is an upper bound; per-agent policies may narrow it";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly frontierOnlyNote: string;
|
|
22
|
+
readonly frontierOnlyTitle: "Frontier execution";
|
|
23
|
+
readonly localOnlyNote: (model: string) => string;
|
|
24
|
+
readonly localOnlyTitle: "Local execution";
|
|
25
|
+
readonly localRequiredError: "local execution requires an enabled local runtime";
|
|
26
|
+
readonly mixedPrimaryQuestion: "Primary coordinator model";
|
|
27
|
+
readonly mixedPrimaryLocal: (model: string) => string;
|
|
28
|
+
readonly mixedPrimaryFrontier: "Choose a frontier model";
|
|
29
|
+
readonly frontierModelQuestion: "Frontier model (type to search; cheapest capable entries first)";
|
|
30
|
+
readonly primaryPolicySummary: (params: {
|
|
31
|
+
executionMode: string;
|
|
32
|
+
primaryModel: string;
|
|
33
|
+
fallbacks: string;
|
|
34
|
+
}) => string[];
|
|
35
|
+
readonly noFallbacks: "none";
|
|
36
|
+
readonly yoloQuestion: "Enable YOLO mode? (opencode auto-approves all permissions)";
|
|
37
|
+
readonly configuredSummary: (params: {
|
|
38
|
+
executionMode: string;
|
|
39
|
+
primaryModel: string;
|
|
40
|
+
frontierBaseline: string;
|
|
41
|
+
localRuntimes: string;
|
|
42
|
+
yolo: boolean;
|
|
43
|
+
opencodePath: string;
|
|
44
|
+
configPath: string;
|
|
45
|
+
agentPath: string;
|
|
46
|
+
agentDir: string;
|
|
47
|
+
roleAgentCount: number;
|
|
48
|
+
commandDir: string;
|
|
49
|
+
commandCount: number;
|
|
50
|
+
gitignorePath: string;
|
|
51
|
+
}) => string[];
|
|
52
|
+
readonly configuredTitle: "openteam configured";
|
|
53
|
+
readonly complete: (paths: string) => string;
|
|
54
|
+
readonly error: (message: string) => string;
|
|
55
|
+
readonly localRuntimeNextStep: " 2. Make sure every configured local runtime is reachable";
|
|
56
|
+
readonly frontierNextStep: " 2. Open opencode in this repo; openteam will use frontier models";
|
|
57
|
+
readonly mixedNextStep: " 2. Make sure local runtimes are reachable; unavailable candidates can use configured fallbacks";
|
|
58
|
+
readonly done: "Done. Open opencode and select the 'openteam' agent.";
|
|
59
|
+
readonly rolePolicy: {
|
|
60
|
+
readonly whyTitle: "Configure execution and model selection";
|
|
61
|
+
readonly why: (count: number) => string;
|
|
62
|
+
readonly modeQuestion: (roleID: string, agentName: string) => string;
|
|
63
|
+
readonly modeInheritLabel: "Inherit the team execution mode";
|
|
64
|
+
readonly modeLocalLabel: "Local only";
|
|
65
|
+
readonly modeFrontierLabel: "Frontier only";
|
|
66
|
+
readonly modelQuestion: (roleID: string) => string;
|
|
67
|
+
readonly modelAutoLabel: "Auto — choose the cheapest capable eligible model";
|
|
68
|
+
readonly modelExactLabel: "Exact provider/model pin";
|
|
69
|
+
readonly modelExactQuestion: (roleID: string) => string;
|
|
70
|
+
readonly modelExactPlaceholder: "provider/model";
|
|
71
|
+
readonly fallbacksQuestion: (roleID: string) => string;
|
|
72
|
+
readonly fallbacksPlaceholder: "provider/model, provider/model";
|
|
73
|
+
readonly configured: (roleIDs: string, path: string) => string;
|
|
74
|
+
readonly invalidModelRef: (value: string) => string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type ExecutionPolicySummaryInput = {
|
|
78
|
+
readonly owner: string;
|
|
79
|
+
readonly executionMode?: string;
|
|
80
|
+
readonly model: string;
|
|
81
|
+
readonly fallbacks: readonly string[];
|
|
82
|
+
};
|
|
83
|
+
export declare const executionPolicyMessages: {
|
|
84
|
+
readonly doctorHelp: " openteam doctor Diagnose runtimes, execution policies, and config";
|
|
85
|
+
readonly agentsHelp: " openteam agents List agents, model identity, and execution policy";
|
|
86
|
+
readonly section: "Configured execution policies:";
|
|
87
|
+
readonly globalMode: (mode: string) => string;
|
|
88
|
+
readonly line: (policy: ExecutionPolicySummaryInput) => string;
|
|
89
|
+
readonly retryLimits: (maxRetries: number, maxModelsPerNode: number) => string;
|
|
90
|
+
readonly inheritedDefaultUnset: "inherits the opencode.json default (not set); execution follows the configured team and agent policy";
|
|
91
|
+
readonly inheritedDefault: (subscription: string) => string;
|
|
92
|
+
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.";
|
|
93
|
+
readonly unprofiledRoleRemedy: " remedy: run `openteam roles init`, or add executionMode, model, and ordered fallbacks under orchestrator.roles in .opencode/openteam.json.";
|
|
94
|
+
readonly noLocalMixed: " ⚠ No local runtime reachable: mixed execution currently has only frontier candidates.";
|
|
95
|
+
readonly noLocalBlocked: " ✗ No local runtime reachable: local execution is blocked until a configured runtime is available.";
|
|
96
|
+
readonly primaryLocalMismatch: (name: string, providerID: string) => string;
|
|
97
|
+
readonly primaryLocalMismatchCause: " cause: the primary agent artifact and opencode.json no longer agree on the selected provider/model identity.";
|
|
98
|
+
readonly primaryLocalMismatchConsequence: " consequence: opencode cannot start the coordinator, so it cannot read the roster or distribute work.";
|
|
99
|
+
readonly primaryLocalMismatchRemedy: (sourceFile: string) => string;
|
|
100
|
+
};
|
|
101
|
+
export declare const executionPolicyEditorMessages: {
|
|
102
|
+
readonly title: "Execution and model policy";
|
|
103
|
+
readonly globalMode: "Global execution mode";
|
|
104
|
+
readonly primaryModel: "Primary model";
|
|
105
|
+
readonly primaryFallbacks: "Primary fallbacks";
|
|
106
|
+
readonly retryLimits: "Retry limits";
|
|
107
|
+
readonly automatic: "auto";
|
|
108
|
+
readonly inherit: "inherit";
|
|
109
|
+
readonly none: "none";
|
|
110
|
+
readonly retryValue: (maxRetries: number, maxModelsPerNode: number) => string;
|
|
111
|
+
};
|
|
112
|
+
export declare const localModeChangeMessages: {
|
|
113
|
+
readonly localProviderInFrontierDomain: (path: string, domainPath: string, providerID: string, modelID: string) => string;
|
|
114
|
+
readonly frontierProviderInLocalDomain: (path: string, domainPath: string, providerID: string, modelID: string) => string;
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=executionSetup.d.ts.map
|
|
@@ -0,0 +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,E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G;aACvG,oBAAoB,SAAS,MAAM,cAAc,MAAM,KAAG,MAAM;aAEhE,yBAAyB,EACvB,oHAAoH;aACtH,+BAA+B,EAC7B,4GAA4G;aAC9G,0BAA0B,eAAe,MAAM,KAAG,MAAM;CAEhD,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"}
|
|
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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const memoryToolMessages: {
|
|
2
|
+
readonly toolDescription: "Persists durable memory records extracted from a conversation. Reserved for the scribe role: runs extraction on a local runtime only and never falls back to a frontier provider. Records are redacted per config (storeContent=false by default) before they are appended to the log.";
|
|
3
|
+
readonly messagesDescription: "Conversation messages to extract stable knowledge from";
|
|
4
|
+
readonly messageRoleDescription: "Message role: system, user or assistant";
|
|
5
|
+
readonly messageContentDescription: "Message content.";
|
|
6
|
+
readonly roleIDDescription: "Roster role writing the memory; only the scribe is permitted";
|
|
7
|
+
readonly validationError: (details: string) => string;
|
|
8
|
+
readonly scribeOnly: (actualRoleID: string) => string;
|
|
9
|
+
readonly disabled: "openteam memory: semantic memory is disabled; nothing was recorded.";
|
|
10
|
+
readonly frontierDomainRefusal: 'openteam memory: refused — memory extraction requires local model execution, but router.executionMode is "frontier". Set router.executionMode to "local" or "mixed" and configure a reachable local runtime.';
|
|
11
|
+
readonly localRuntimeUnavailable: "openteam memory: memory extraction requires a local runtime that is reachable and will not fall back to a frontier provider. Configure Ollama, LM Studio, Lemonade, or Foundry Local and run `openteam doctor`.";
|
|
12
|
+
readonly localRuntimeBaseURLMissing: "openteam memory: refused — no local runtime with a base URL is configured and enabled; memory extraction is local-only.";
|
|
13
|
+
readonly extractionFailure: (reason: string) => string;
|
|
14
|
+
readonly noRecords: "openteam memory: no records were extracted; nothing was recorded.";
|
|
15
|
+
readonly recordsWritten: (count: number, logPath: string) => string;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=memoryTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoryTool.d.ts","sourceRoot":"","sources":["../../src/messages/memoryTool.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;aAC7B,eAAe,EACb,wRAAwR;aAC1R,mBAAmB,EAAE,wDAAwD;aAC7E,sBAAsB,EAAE,yCAAyC;aACjE,yBAAyB,EAAE,kBAAkB;aAC7C,iBAAiB,EACf,8DAA8D;aAChE,eAAe,YAAY,MAAM,KAAG,MAAM;aAE1C,UAAU,iBAAiB,MAAM,KAAG,MAAM;aAE1C,QAAQ,EACN,qEAAqE;aACvE,qBAAqB,EACnB,8MAA8M;aAChN,uBAAuB,EACrB,iNAAiN;aACnN,0BAA0B,EACxB,yHAAyH;aAC3H,iBAAiB,WAAW,MAAM,KAAG,MAAM;aAE3C,SAAS,EACP,mEAAmE;aACrE,cAAc,UAAU,MAAM,WAAW,MAAM,KAAG,MAAM;CAEhD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const SESSION_CREATE_MISSING_ID = "create response did not include a session id";
|
|
2
|
+
export declare function orchestrationSummaryHeading(roleCount: number, completed: boolean): string;
|
|
3
|
+
export declare function orchestrationReportGuidance(completed: boolean): string;
|
|
4
|
+
export declare function deprecatedPrivacyMode(paths: readonly string[], message?: string): string;
|
|
5
|
+
export declare function promptTimedOut(timeoutMs: number): string;
|
|
6
|
+
export declare function promptStopUnconfirmed(cause: "abort-error" | "abort-timeout" | "abort-rejected" | "status-error" | "status-timeout" | "status-missing" | "status-busy" | "status-retry" | "request-unsettled"): string;
|
|
7
|
+
export declare const REPORT_INCOMPLETE_REASON = "report-incomplete-at-model-bound";
|
|
8
|
+
export declare const REPORT_STALE_REASON = "report-unchanged-for-current-attempt";
|
|
9
|
+
export declare const UNAUTHORIZED_MODEL_SWITCH_REASON = "routing-model-switch-not-authorized";
|
|
10
|
+
export declare function invalidRoleIdentifier(roleID: string): string;
|
|
11
|
+
export declare function missingAgentDefinition(agentName: string, roleID: string): string;
|
|
12
|
+
export declare function dependencyValidationError(code: string, detail: string): string;
|
|
13
|
+
export declare function coordinatorRoutingBlocked(roleID: string, reason?: string): string;
|
|
14
|
+
export declare function primaryRoutingBlocked(reason?: string): string;
|
|
15
|
+
export declare function incapableFixedModel(roleID: string, providerID: string, modelID: string): string;
|
|
16
|
+
//# sourceMappingURL=orchestration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.d.ts","sourceRoot":"","sources":["../../src/messages/orchestration.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,iDACU,CAAC;AAEjD,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,GACjB,MAAM,CAER;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAStE;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,GAAE,MAA8C,GACtD,MAAM,CAGR;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EACD,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,mBAAmB,GACtB,MAAM,CAER;AAED,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAC1E,eAAO,MAAM,gCAAgC,wCACN,CAAC;AAExC,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,MAAM,CAKR;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,MAAM,CAER;AAkCD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,MAAM,SAAgC,GACrC,MAAM,CAKR;AAED,wBAAgB,qBAAqB,CACnC,MAAM,SAAgC,GACrC,MAAM,CAER;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,MAAM,CAMR"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const routingMessages: {
|
|
2
|
+
readonly conflictingLegacyModes: "router.localOnly and router.frontierOnly cannot both be true";
|
|
3
|
+
readonly conflictingRouterModes: (executionMode: string, legacyMode: string) => string;
|
|
4
|
+
readonly agentModeBroadensGlobal: (agentMode: string, routerMode: string) => string;
|
|
5
|
+
readonly requiredLocalModeConflict: "requiresLocalRuntime=true conflicts with a non-local agent executionMode";
|
|
6
|
+
readonly privacyModeDeprecated: 'privacyMode is deprecated and ignored; it no longer protects prompt content from frontier egress. Set router.executionMode to "local" to prohibit frontier routing.';
|
|
7
|
+
readonly unknownCost: "unknown";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/messages/routing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;aAC1B,sBAAsB,EACpB,8DAA8D;aAChE,sBAAsB,kBAAkB,MAAM,cAAc,MAAM,KAAG,MAAM;aAE3E,uBAAuB,cAAc,MAAM,cAAc,MAAM,KAAG,MAAM;aAExE,yBAAyB,EACvB,0EAA0E;aAC5E,qBAAqB,EACnB,qKAAqK;aACvK,WAAW,EAAE,SAAS;CACd,CAAC"}
|
|
@@ -22,11 +22,9 @@ export declare const OPENTEAM_ROSTER_PATH = ".opencode/openteam/roster.md";
|
|
|
22
22
|
* resolved**, real and resolvable `provider/model`. This value is load-bearing —
|
|
23
23
|
* opencode resolves the primary agent against it directly — so the caller is
|
|
24
24
|
* responsible for choosing a reference whose provider it actually configured:
|
|
25
|
-
* the
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* `model:`. The openteam plugin still routes per message, so subagents this one
|
|
29
|
-
* creates can inherit the default and be routed local-first.
|
|
25
|
+
* the selected primary model. Never pass an inert baseline placeholder here;
|
|
26
|
+
* that value is only correct as a baseline, not as an agent `model:`. The
|
|
27
|
+
* openteam plugin still applies each primary/worker execution policy at runtime.
|
|
30
28
|
*/
|
|
31
29
|
export declare function buildOrchestratorAgent(model: ModelRef, options?: {
|
|
32
30
|
yolo?: boolean;
|
|
@@ -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;AAEjD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAInE
|
|
1
|
+
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/opencodeArtifacts/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;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,CA+SR"}
|
|
@@ -4,9 +4,10 @@ import type { ModelCapabilityProfile } from "../capabilities/types";
|
|
|
4
4
|
import type { OpenTeamConfig } from "../config/schema";
|
|
5
5
|
import type { RuntimeConcurrencyLimiter } from "../local/concurrency";
|
|
6
6
|
import type { LocalRuntimeId } from "../local/types";
|
|
7
|
+
import { type AgentExecutionPolicy } from "../router/executionPolicy";
|
|
7
8
|
import type { AvailableModel, RoutingDecision, TaskSignals } from "../router/types";
|
|
8
9
|
import { type EventSink } from "../telemetry/eventLog";
|
|
9
|
-
import { type MeetingEvent, type QueueEvent, type RouteEvent } from "../telemetry/events";
|
|
10
|
+
import { type DiagnosticEvent, type MeetingEvent, type QueueEvent, type RouteEvent } from "../telemetry/events";
|
|
10
11
|
import type { CostRecord } from "../telemetry/types";
|
|
11
12
|
import { type AgentRoleProfile } from "./roles";
|
|
12
13
|
import { type OpencodeSessionClient, type SubsessionResult } from "./subsessions";
|
|
@@ -16,6 +17,7 @@ export type RoleTaskInput = {
|
|
|
16
17
|
prompt: string;
|
|
17
18
|
profiles?: ModelCapabilityProfile[];
|
|
18
19
|
availableModels?: AvailableModel[];
|
|
20
|
+
executionPolicy?: AgentExecutionPolicy;
|
|
19
21
|
budgetState?: BudgetState;
|
|
20
22
|
parentSessionID?: string;
|
|
21
23
|
config: OpenTeamConfig;
|
|
@@ -41,6 +43,9 @@ export type CoordinatorDeps = {
|
|
|
41
43
|
now: () => number;
|
|
42
44
|
newDecisionID: () => string;
|
|
43
45
|
timeoutMs?: number;
|
|
46
|
+
abortGraceMs: number;
|
|
47
|
+
statusPollMs: number;
|
|
48
|
+
delay: (ms: number) => Promise<void>;
|
|
44
49
|
/** Optional warn sink; defaults to `console.warn`. Injectable for tests. */
|
|
45
50
|
warn?: (message?: unknown) => void;
|
|
46
51
|
/**
|
|
@@ -111,8 +116,10 @@ export type CoordinatorDeps = {
|
|
|
111
116
|
* I/O port — reading the report file is filesystem access, so it lives at the
|
|
112
117
|
* composition root, not here. Given a resolved report path it returns the
|
|
113
118
|
* file's text, or `undefined` on any error (missing/unreadable). The
|
|
114
|
-
* coordinator
|
|
115
|
-
* (`parseReportStatus`
|
|
119
|
+
* coordinator reads that text only to validate its status and substantive
|
|
120
|
+
* body (`parseReportStatus` and `reportHasSubstance`). It never copies report
|
|
121
|
+
* content into role results, routing telemetry, diagnostics, or the
|
|
122
|
+
* reference-only projection.
|
|
116
123
|
*
|
|
117
124
|
* REQUIRED, not optional. Iteration is governed by the configured bound
|
|
118
125
|
* (`orchestrator.maxRetries`), NOT by whether this port happens to be wired:
|
|
@@ -121,10 +128,11 @@ export type CoordinatorDeps = {
|
|
|
121
128
|
* the port required means dropping the forwarding from the plugin boundary to
|
|
122
129
|
* the coordinator is a COMPILE error, not a silent regression to never-iterate
|
|
123
130
|
* — mirroring the same guarantee `reportArtifactExists` already has. The port
|
|
124
|
-
* is read
|
|
125
|
-
*
|
|
131
|
+
* is read after every pass, including a single-pass node, because the final
|
|
132
|
+
* pass must prove substantive completion before dependencies may advance.
|
|
126
133
|
*/
|
|
127
134
|
readReportArtifact: (reportPath: string) => Promise<string | undefined>;
|
|
135
|
+
reportArtifactExists: (reportPath: string) => Promise<boolean>;
|
|
128
136
|
};
|
|
129
137
|
export type CorrelatedCostRecord = CostRecord & {
|
|
130
138
|
decisionID: string;
|
|
@@ -196,10 +204,9 @@ export type BatchReachability = {
|
|
|
196
204
|
readonly set: ReadonlySet<LocalRuntimeId> | undefined;
|
|
197
205
|
};
|
|
198
206
|
/**
|
|
199
|
-
* The task signals the coordinator actually routes with for a role
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* is its only production caller.
|
|
207
|
+
* The task signals the coordinator actually routes with for a role. Exported
|
|
208
|
+
* so the role requirement adjustment has a single production definition that
|
|
209
|
+
* tests can drive directly; `routingInput` is its only production caller.
|
|
203
210
|
*
|
|
204
211
|
* Pure: no I/O, clock, random, or env.
|
|
205
212
|
*/
|
|
@@ -286,6 +293,18 @@ export declare function buildQueueEvent(observation: QueueWaitObservation, sessi
|
|
|
286
293
|
agent?: string;
|
|
287
294
|
batchID?: string;
|
|
288
295
|
}): QueueEvent;
|
|
296
|
+
/**
|
|
297
|
+
* Builds the bounded `node-budget-exhausted` diagnostic event. Pure: no I/O,
|
|
298
|
+
* clock, random, or env — the producer supplies `ts` (from the injected
|
|
299
|
+
* coordinator clock) and the resolved `sessionID`.
|
|
300
|
+
*
|
|
301
|
+
* Reference-only by construction: it carries the `roleID` and an integer
|
|
302
|
+
* `passCount` and nothing else. Report text is read separately to validate
|
|
303
|
+
* status and substance, but no body content is copied into this telemetry
|
|
304
|
+
* event. It is the same `diagnostic` event class the plugin already records
|
|
305
|
+
* (e.g. `graph-gate-advisory`), just attributed to the node it concerns.
|
|
306
|
+
*/
|
|
307
|
+
export declare function buildNodeBudgetExhaustedEvent(roleID: string, passCount: number, sessionID: string, ts: number): DiagnosticEvent;
|
|
289
308
|
export declare function runRoleTask(input: RoleTaskInput, deps: CoordinatorDeps): Promise<RoleTaskResult>;
|
|
290
309
|
export type RoleBatchResult = {
|
|
291
310
|
readonly batchID: string;
|
|
@@ -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;
|
|
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;AAC1D,OAAO,KAAK,EAGV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EACV,yBAAyB,EAE1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AASrD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAEf,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,YAAY,EAEjB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAarD,OAAO,EACL,KAAK,gBAAgB,EAMtB,MAAM,SAAS,CAAC;AAMjB,OAAO,EACL,KAAK,qBAAqB,EAG1B,KAAK,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M,EAAE,SAAS,aAAa,EAAE,EAChC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,eAAe,CAAC,CAoE1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextRef, PrivacyClass } from "../context/schema";
|
|
2
|
-
import {
|
|
2
|
+
import type { PrivacyMode, RouteKind } from "../graph/privacyPolicy";
|
|
3
3
|
import type { ErrorClass, GraphNode } from "../graph/schema";
|
|
4
4
|
/**
|
|
5
5
|
* `GraphEffectExecutor` — port for the only effect that the Graph runtime
|
|
@@ -19,6 +19,8 @@ export type EffectRequest = {
|
|
|
19
19
|
readonly node: GraphNode;
|
|
20
20
|
readonly operationID: string;
|
|
21
21
|
readonly attemptID: string;
|
|
22
|
+
/** Route already selected and domain-checked by the unified router. */
|
|
23
|
+
readonly routeKind?: RouteKind;
|
|
22
24
|
};
|
|
23
25
|
/** Effect receipt: success with a referenced artifact, or classified failure. */
|
|
24
26
|
export type EffectReceipt = {
|
|
@@ -33,9 +35,8 @@ export interface GraphEffectExecutor {
|
|
|
33
35
|
execute(request: EffectRequest): Promise<EffectReceipt>;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* decision to the effects seam before and after invoking the executor.
|
|
38
|
+
* @deprecated Legacy dispatch metadata. `privacyClass` and `mode` are retained
|
|
39
|
+
* for compatibility but do not authorize or override `routeKind`.
|
|
39
40
|
*/
|
|
40
41
|
export type EffectDispatchContext = {
|
|
41
42
|
readonly privacyClass: PrivacyClass;
|
|
@@ -43,15 +44,13 @@ export type EffectDispatchContext = {
|
|
|
43
44
|
readonly routeKind: RouteKind;
|
|
44
45
|
};
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* instead of throwing: a `sensitive` node with `forceLocalOnSensitive` produces
|
|
49
|
-
* **zero** frontier dispatches. Pure and deterministic.
|
|
47
|
+
* Preserves the route selected by the unified router. Legacy privacy metadata
|
|
48
|
+
* is accepted for compatibility but has no routing authority.
|
|
50
49
|
*/
|
|
51
|
-
export declare function resolveDispatchRoute(
|
|
50
|
+
export declare function resolveDispatchRoute(_privacyClass: PrivacyClass, _mode: PrivacyMode, preferred: RouteKind): RouteKind;
|
|
52
51
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* @deprecated Compatibility no-op. The unified router owns execution-domain
|
|
53
|
+
* enforcement; Graph must not reinterpret the selected route from content.
|
|
55
54
|
*/
|
|
56
55
|
export declare function assertDispatchAllowed(ctx: EffectDispatchContext): void;
|
|
57
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphEffects.d.ts","sourceRoot":"","sources":["../../src/orchestrator/graphEffects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"graphEffects.d.ts","sourceRoot":"","sources":["../../src/orchestrator/graphEffects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;;;;;;;;;;GAWG;AAEH,oEAAoE;AACpE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;CAChC,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAA;CAAE,GAChE;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAA;CAAE,CAAC;AAEpE,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACzD;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,YAAY,EAC3B,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,SAAS,GACnB,SAAS,CAEX;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAEvE"}
|
|
@@ -62,6 +62,30 @@ export declare const REPORT_STATUS_MARKER = "openteam-status";
|
|
|
62
62
|
* not-done, never as done.
|
|
63
63
|
*/
|
|
64
64
|
export declare function parseReportStatus(text: string | undefined): ReportStatus;
|
|
65
|
+
/**
|
|
66
|
+
* Minimum length, in trimmed characters, of a report's substantive body — the
|
|
67
|
+
* text that survives after its status-marker line(s) are removed — for a `done`
|
|
68
|
+
* declaration to be honoured by `nodeReportedDone`.
|
|
69
|
+
*
|
|
70
|
+
* Deliberately conservative floor: 40 characters is shorter than a single real
|
|
71
|
+
* sentence, so any genuine finding clears it easily, while a degenerate stub —
|
|
72
|
+
* an empty file, a bare `openteam-status: done`, a lone `"Done."`, or a single
|
|
73
|
+
* heading — does not. Its only job is to reject "work not done, presented as
|
|
74
|
+
* done": a marker with no findings behind it. It is intentionally NOT a quality
|
|
75
|
+
* bar; it merely requires that *something* was written.
|
|
76
|
+
*/
|
|
77
|
+
export declare const MIN_REPORT_BODY_CHARS = 40;
|
|
78
|
+
/**
|
|
79
|
+
* Whether a report carries a substantive body, not just the status marker. Pure.
|
|
80
|
+
*
|
|
81
|
+
* The done-signal (`parseReportStatus(text) === "done"`) is necessary but not
|
|
82
|
+
* sufficient: a role that writes ONLY `openteam-status: done` has proven
|
|
83
|
+
* nothing. This predicate uses the same report analysis as the parser, removes
|
|
84
|
+
* every real status-declaration line (including invalid declarations), and
|
|
85
|
+
* reports whether at least `MIN_REPORT_BODY_CHARS` characters of body survive.
|
|
86
|
+
* Quoted and fenced examples remain body text but can never declare completion.
|
|
87
|
+
*/
|
|
88
|
+
export declare function reportHasSubstance(text: string | undefined): boolean;
|
|
65
89
|
/**
|
|
66
90
|
* Deterministic, per-role report artifact path within a batch. Pure.
|
|
67
91
|
*
|
|
@@ -87,5 +111,6 @@ export declare function composeSubsessionPrompt(input: {
|
|
|
87
111
|
readonly prompt: string;
|
|
88
112
|
readonly roleID: string;
|
|
89
113
|
readonly batchID: string;
|
|
114
|
+
readonly handoff?: boolean;
|
|
90
115
|
}): SubsessionPromptComposition;
|
|
91
116
|
//# sourceMappingURL=outputContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputContract.d.ts","sourceRoot":"","sources":["../../src/orchestrator/outputContract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"outputContract.d.ts","sourceRoot":"","sources":["../../src/orchestrator/outputContract.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAkFtD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAGxE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAyCxC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAGpE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,yEAAyE;AACzE,MAAM,MAAM,2BAA2B,GAAG;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC;AA2CF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,2BAA2B,CAgB9B"}
|