@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ModelRef, OpenTeamConfig } from "../config/schema";
|
|
2
|
+
import { type ExecutionPolicySummaryInput } from "../messages";
|
|
2
3
|
/**
|
|
3
4
|
* Listado de agentes con el LLM que usa cada uno. Puro: sin I/O. El driver (leer
|
|
4
5
|
* `.opencode/agent/*.md` y `opencode.json`) se inyecta desde la CLI.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* local
|
|
9
|
-
* Studio/Foundry, sin coste de tokens) o **frontier** (consume tu suscripción).
|
|
7
|
+
* An agent can pin `model` in its frontmatter or inherit the default model from
|
|
8
|
+
* `opencode.json`. The configured team and per-agent execution policies govern
|
|
9
|
+
* which local/frontier candidates runtime orchestration may use.
|
|
10
10
|
*/
|
|
11
11
|
/** Un agente `.md` de `.opencode/agent/` ya leído (nombre = fichero sin `.md`). */
|
|
12
12
|
export type AgentFile = {
|
|
@@ -30,6 +30,7 @@ export type AgentClassification = {
|
|
|
30
30
|
/** Etiqueta legible de la suscripción/proveedor efectivo. */
|
|
31
31
|
subscription: string;
|
|
32
32
|
};
|
|
33
|
+
export type AgentExecutionPolicySummary = ExecutionPolicySummaryInput;
|
|
33
34
|
/**
|
|
34
35
|
* Extrae el frontmatter YAML simple (`key: value` entre `---`) de un agente. Solo
|
|
35
36
|
* nos interesan `mode`, `description` y `model`. Pure.
|
|
@@ -65,11 +66,22 @@ export declare function classifyAgents(files: readonly AgentFile[], context: {
|
|
|
65
66
|
defaultModel?: ModelRef;
|
|
66
67
|
disabledLocalProviders?: Set<string>;
|
|
67
68
|
}): AgentClassification[];
|
|
69
|
+
/**
|
|
70
|
+
* Extracts the operator-facing execution/model policy summary from the loaded
|
|
71
|
+
* config. Structural on purpose: legacy configs may omit the new v2 fields
|
|
72
|
+
* while the loader derives their effective defaults.
|
|
73
|
+
*/
|
|
74
|
+
export declare function executionPolicySummaries(config: OpenTeamConfig): AgentExecutionPolicySummary[];
|
|
68
75
|
/** Render legible del listado de agentes con su LLM. Pure. */
|
|
69
76
|
export declare function renderAgentList(classifications: readonly AgentClassification[], context: {
|
|
70
77
|
defaultModel?: ModelRef;
|
|
71
78
|
localProviders: Set<string>;
|
|
72
79
|
opencodeConfigError?: string;
|
|
80
|
+
executionPolicies?: readonly AgentExecutionPolicySummary[];
|
|
81
|
+
retryLimits?: {
|
|
82
|
+
readonly maxRetries: number;
|
|
83
|
+
readonly maxModelsPerNode: number;
|
|
84
|
+
};
|
|
73
85
|
}): string;
|
|
74
86
|
/** Whether the effective model was declared in frontmatter or inherited. */
|
|
75
87
|
export type AgentModelOrigin = "declared" | "inherited" | "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,aAAa,CAAC;AAErB;;;;;;;GAOG;AAEH,mFAAmF;AACnF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,0CAA0C;AAC1C,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,UAAU,GACV,WAAW,GACX,cAAc,CAAC;AAEnB,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,2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|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/commands/dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAY,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/commands/dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAY,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAW3D,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEZ,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EACL,KAAK,SAAS,EAUf,MAAM,UAAU,CAAC;AAOlB,OAAO,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,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyrBF,wBAAsB,MAAM,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,SAAS,CAAC,CA4TpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAM3D,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,cAA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,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,QAAQ,CAAC,EAAE,oBAAoB,GAC9B,MAAM,EAAE,CAoCV;AAyBD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAwZF,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAuMvD"}
|
package/dist/commands/local.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type OpenTeamConfig } from "../config/schema";
|
|
2
2
|
import type { CommandOutcome } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* `openteam local <status|off|only|on>` commands: toggle global routing modes.
|
|
5
5
|
*
|
|
6
|
-
* - `off`
|
|
7
|
-
*
|
|
8
|
-
* - `
|
|
9
|
-
* - `on` disables both flags: normal local-first routing.
|
|
6
|
+
* - `off` selects the global `frontier` execution domain.
|
|
7
|
+
* - `only` selects the global `local` execution domain.
|
|
8
|
+
* - `on` selects the global `mixed` execution domain.
|
|
10
9
|
*
|
|
11
10
|
* Pure and deterministic: they take the config and return a new config (when it
|
|
12
11
|
* changes) plus a message. Persistence is the caller's responsibility.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../src/commands/local.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../src/commands/local.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,kBAAkB,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;;;GASG;AAEH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAEtE;AA4ED,wBAAgB,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAchE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAatE;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAiBnE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAYpE"}
|
|
@@ -2,18 +2,18 @@ import type { ComplexityTier } from "../capabilities/types";
|
|
|
2
2
|
import type { CostRecord } from "../telemetry/types";
|
|
3
3
|
export type TierSummary = {
|
|
4
4
|
count: number;
|
|
5
|
-
estimatedUSD: number;
|
|
6
|
-
savingsUSD: number;
|
|
5
|
+
estimatedUSD: number | null;
|
|
6
|
+
savingsUSD: number | null;
|
|
7
7
|
};
|
|
8
8
|
export type CostReport = {
|
|
9
9
|
count: number;
|
|
10
10
|
localCount: number;
|
|
11
11
|
frontierCount: number;
|
|
12
12
|
blockedCount: number;
|
|
13
|
-
totalEstimatedUSD: number;
|
|
14
|
-
totalBaselineUSD: number;
|
|
15
|
-
totalSavingsUSD: number;
|
|
16
|
-
savingsPct: number;
|
|
13
|
+
totalEstimatedUSD: number | null;
|
|
14
|
+
totalBaselineUSD: number | null;
|
|
15
|
+
totalSavingsUSD: number | null;
|
|
16
|
+
savingsPct: number | null;
|
|
17
17
|
tokensIn: number;
|
|
18
18
|
tokensOut: number;
|
|
19
19
|
byTier: Record<ComplexityTier, TierSummary>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AASrD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;CAC7C,CAAC;AAkBF,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,UAAU,EAAE,GAC7B,UAAU,CAqDZ;AAUD,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAuBvD"}
|
|
@@ -6,19 +6,14 @@ import type { Prompter } from "./setup";
|
|
|
6
6
|
* Background (#206). The roster is the portable answer to *who*: `roleID` ->
|
|
7
7
|
* themed `agentName`. Routing policy is the answer to *how*, and lives under
|
|
8
8
|
* `orchestrator.roles` in the config. Nothing connected the two, so a roster
|
|
9
|
-
* role that is not a `TEAM_ROLES` key
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* The failure mode this closes is a privacy one: humans naturally write "local
|
|
13
|
-
* only" as prose in the roster, but prose lives OUTSIDE the JSON fence and is
|
|
14
|
-
* never read, so the stated intent was silently dropped.
|
|
9
|
+
* role that is not a `TEAM_ROLES` key resolves the fallback profile. This
|
|
10
|
+
* command lets the operator make execution mode, exact/automatic model
|
|
11
|
+
* selection, and ordered fallbacks explicit.
|
|
15
12
|
*
|
|
16
13
|
* Destination split — deliberate, and the reason this command writes two files:
|
|
17
14
|
*
|
|
18
|
-
* - **Intent** (`
|
|
19
|
-
* which is tracked and portable
|
|
20
|
-
* roster to every clone and to CI. Putting it in an ignored file instead
|
|
21
|
-
* would recreate the exact bug on every fresh clone.
|
|
15
|
+
* - **Intent** (`executionMode`, `model`, `fallbacks`) ->
|
|
16
|
+
* `.opencode/openteam.json`, which is tracked and portable.
|
|
22
17
|
* - **Binding** (`localRuntimes`) -> `.opencode/openteam-local/config.local.json`,
|
|
23
18
|
* which is git-ignored, because which runtimes exist is a property of one
|
|
24
19
|
* machine. This is the same P15b boundary the rest of the config already uses.
|
|
@@ -27,9 +22,12 @@ import type { Prompter } from "./setup";
|
|
|
27
22
|
* `doctor`: `doctor` is a pure renderer and also runs as `/openteam doctor`
|
|
28
23
|
* inside opencode, where there is no TTY to answer a prompt.
|
|
29
24
|
*/
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
25
|
+
export declare const ROLES_INIT_AUTO = "auto";
|
|
26
|
+
export declare const ROLES_INIT_PIN = "pin";
|
|
32
27
|
export declare const ROLES_INIT_SKIP = "skip";
|
|
28
|
+
export declare const ROLES_INIT_INHERIT = "inherit";
|
|
29
|
+
export declare const ROLES_INIT_LOCAL_ONLY = "local";
|
|
30
|
+
export declare const ROLES_INIT_FRONTIER_ONLY = "frontier";
|
|
33
31
|
/** A local runtime the host machine can actually reach. */
|
|
34
32
|
export type RolesInitRuntime = {
|
|
35
33
|
readonly id: LocalRuntimeId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolesInit.d.ts","sourceRoot":"","sources":["../../src/commands/rolesInit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rolesInit.d.ts","sourceRoot":"","sources":["../../src/commands/rolesInit.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUrD,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAYnD,2DAA2D;AAC3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,QAAQ,CAAC;IACjB,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxD,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AA8IF,wBAAsB,YAAY,CAChC,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,eAAe,CAAC,CAyM1B"}
|
package/dist/commands/setup.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ModelCapabilityProfile } from "../capabilities/types";
|
|
2
|
-
import { type ModelRef, type OpenTeamConfig
|
|
2
|
+
import { type ModelRef, type OpenTeamConfig } from "../config/schema";
|
|
3
3
|
import type { LocalModelInfo, LocalRuntimeId, LocalRuntimeKind } from "../local/types";
|
|
4
|
+
import type { ExecutionMode } from "../router/executionPolicy";
|
|
4
5
|
import type { CliResult } from "./dispatch";
|
|
5
6
|
import { type FrontierChoice as FrontierChoiceType } from "./frontierCatalog";
|
|
6
7
|
/** Nombre del paquete npm del plugin, declarado en el opencode.json generado. */
|
|
@@ -38,7 +39,7 @@ export type RoleAgentFile = {
|
|
|
38
39
|
* agent contract. Deduplicated by `opencodeAgent` and sorted for a stable write
|
|
39
40
|
* order.
|
|
40
41
|
*/
|
|
41
|
-
export declare function buildRoleAgentFiles(): RoleAgentFile[];
|
|
42
|
+
export declare function buildRoleAgentFiles(_config?: OpenTeamConfig): RoleAgentFile[];
|
|
42
43
|
export declare const OPENCODE_GITIGNORE_GENERATED_STATE_RULES: readonly string[];
|
|
43
44
|
/**
|
|
44
45
|
* Pre-P15b generated ignore rule. Before the portable/local split, all openteam
|
|
@@ -161,18 +162,9 @@ export type FrontierChoice = FrontierChoiceType;
|
|
|
161
162
|
export type SetupAnswers = {
|
|
162
163
|
runtimes: RuntimeChoice[];
|
|
163
164
|
frontier: FrontierChoice;
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
executionMode: ExecutionMode;
|
|
166
|
+
primaryModel: ModelRef;
|
|
166
167
|
yolo: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Run without frontier models at all (#209).
|
|
169
|
-
*
|
|
170
|
-
* `frontier` stays populated even when this is true: the schema requires a
|
|
171
|
-
* `baseline.hardDefault`, and keeping it recorded means flipping
|
|
172
|
-
* `router.localOnly` back to false in the file restores a working frontier
|
|
173
|
-
* baseline without re-running setup.
|
|
174
|
-
*/
|
|
175
|
-
localOnly?: boolean;
|
|
176
168
|
};
|
|
177
169
|
export type OpencodeProviderConfig = {
|
|
178
170
|
npm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/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AuB,eAAe,CAAC;AAyHpD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,SAAS,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,GAC/C;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAgCpC;AAWD,oEAAoE;AACpE,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,SAAS,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,GAC/C,MAAM,GAAG,SAAS,CAKpB;AAwCD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,CA+BR;AA6KD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,EAChD,YAAY,EAAE,SAAS,MAAM,EAAE,GAC9B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYpC;AAiDD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAC3C;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAW9C;AAwFD,wBAAsB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAySlE"}
|
package/dist/commands/yolo.d.ts
CHANGED
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
* persistente al flag nativo `opencode --auto`, que auto-aprueba todo salvo las
|
|
5
5
|
* reglas `deny` explícitas.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `privacyMode: "forceLocalOnSensitive"`, los prompts sensibles siguen sin
|
|
10
|
-
* salir a frontier aunque YOLO esté activo.
|
|
7
|
+
* YOLO only affects opencode permission approvals. It does not widen or narrow
|
|
8
|
+
* the execution/model policies configured for the team.
|
|
11
9
|
*
|
|
12
10
|
* Todas las funciones son puras: operan sobre un objeto de config genérico
|
|
13
11
|
* (`Record<string, unknown>`) para **preservar** cualquier clave que el usuario
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yolo.d.ts","sourceRoot":"","sources":["../../src/commands/yolo.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"yolo.d.ts","sourceRoot":"","sources":["../../src/commands/yolo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAcH,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAGtE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,OAAO,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoBzB;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAIzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/config/errors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,WAAW,CAAC;AAIlC,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/config/errors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,WAAW,CAAC;AAIlC,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAmHzE,CAAC;AAgIL,KAAK,6BAA6B,GAAG;IACnC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;IAClE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACxC,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,6BAAkC,GAC1C,MAAM,CA0BR;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKxD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ExecutionMode } from "../router/executionPolicy";
|
|
2
|
+
import type { ModelSelection } from "../router/types";
|
|
3
|
+
import type { OpenTeamConfig } from "./schema";
|
|
4
|
+
type HardExecutionMode = Exclude<ExecutionMode, "mixed">;
|
|
5
|
+
export type EffectiveConfigModelDomainViolation = {
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly domainPath: string;
|
|
8
|
+
readonly model: ModelSelection;
|
|
9
|
+
readonly executionMode: HardExecutionMode;
|
|
10
|
+
};
|
|
11
|
+
export declare function effectiveConfigModelDomainViolations(config: OpenTeamConfig): EffectiveConfigModelDomainViolation[];
|
|
12
|
+
export declare class EffectiveConfigModelDomainError extends Error {
|
|
13
|
+
readonly violations: readonly EffectiveConfigModelDomainViolation[];
|
|
14
|
+
constructor(violations: readonly EffectiveConfigModelDomainViolation[]);
|
|
15
|
+
}
|
|
16
|
+
export declare function assertEffectiveConfigModelDomains(config: OpenTeamConfig): void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=executionPolicyDomains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executionPolicyDomains.d.ts","sourceRoot":"","sources":["../../src/config/executionPolicyDomains.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,iBAAiB,GAAG,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAEzD,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;CAC3C,CAAC;AAuDF,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,cAAc,GACrB,mCAAmC,EAAE,CA2CvC;AAED,qBAAa,+BAAgC,SAAQ,KAAK;IACxD,QAAQ,CAAC,UAAU,EAAE,SAAS,mCAAmC,EAAE,CAAC;IAEpE,YAAY,UAAU,EAAE,SAAS,mCAAmC,EAAE,EAsBrE;CACF;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,cAAc,GACrB,IAAI,CAKN"}
|
|
@@ -9,15 +9,22 @@
|
|
|
9
9
|
* que CLI y plugin comparten exactamente la misma resolución.
|
|
10
10
|
*/
|
|
11
11
|
/** Versión de config soportada por esta build. */
|
|
12
|
-
export declare const CURRENT_CONFIG_VERSION:
|
|
12
|
+
export declare const CURRENT_CONFIG_VERSION: 2;
|
|
13
13
|
/** Código de fallo de migración de config. */
|
|
14
|
-
export type ConfigMigrationErrorCode = "unknown-version" | "unsupported-version";
|
|
14
|
+
export type ConfigMigrationErrorCode = "unknown-version" | "unsupported-version" | "conflicting-execution-mode";
|
|
15
|
+
export type ConfigDeprecationCode = "privacy-mode-ignored";
|
|
16
|
+
export type ConfigDeprecation = {
|
|
17
|
+
readonly code: ConfigDeprecationCode;
|
|
18
|
+
readonly path: "privacyMode";
|
|
19
|
+
readonly message: string;
|
|
20
|
+
};
|
|
15
21
|
/** Error tipado de una migración de config rechazada. */
|
|
16
22
|
export declare class ConfigMigrationError extends Error {
|
|
17
23
|
readonly code: ConfigMigrationErrorCode;
|
|
18
24
|
readonly detail: string;
|
|
19
25
|
constructor(code: ConfigMigrationErrorCode, detail: string);
|
|
20
26
|
}
|
|
27
|
+
export declare function detectConfigDeprecations(raw: unknown): ConfigDeprecation[];
|
|
21
28
|
/**
|
|
22
29
|
* Normaliza la config cruda a la versión actual. Devuelve la entrada intacta si
|
|
23
30
|
* no es un objeto (el parseo de esquema la rechazará); en caso contrario valida
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../src/config/migrations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../src/config/migrations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,8CAA8C;AAC9C,MAAM,MAAM,wBAAwB,GAChC,iBAAiB,GACjB,qBAAqB,GACrB,4BAA4B,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,yDAAyD;AACzD,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,EAKzD;CACF;AAMD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,iBAAiB,EAAE,CAW1E;AA2CD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAiCnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../src/config/persist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../src/config/persist.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAC;AAErE,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,+CACO,CAAC;AAiD/C;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAyCtE;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,cAAc,EACtB,IAAI,SAAsB,EAC1B,OAAO,GAAE,eAAwD,GAChE,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
package/dist/config/runtime.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { StorageProvider } from "../storage/provider";
|
|
3
|
+
import { type ConfigDeprecation } from "./migrations";
|
|
3
4
|
import type { ConfigSource } from "./resolve";
|
|
4
5
|
import type { OpenTeamConfig } from "./schema";
|
|
5
6
|
type JsonObject = Record<string, unknown>;
|
|
@@ -15,6 +16,7 @@ export type RuntimeConfigResolution = {
|
|
|
15
16
|
* surface whether an overlay is active.
|
|
16
17
|
*/
|
|
17
18
|
readonly overlayFound: boolean;
|
|
19
|
+
readonly deprecations: readonly ConfigDeprecation[];
|
|
18
20
|
readonly searchedPaths: readonly string[];
|
|
19
21
|
};
|
|
20
22
|
export declare const CONFIG_KEYS: readonly ["baseline", "router", "local", "budgets", "privacyMode", "console", "storage", "memory", "graph", "orchestrator", "configVersion"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/config/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/config/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,OAAO,EAAE,KAAK,iBAAiB,EAA4B,MAAM,cAAc,CAAC;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACpD,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,WAAW,YACtB,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACT,aAAa,EACb,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,cAAc,EACd,eAAe,CACP,CAAC;AAGX,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAMvD,eAAO,MAAM,kCAAkC;;;;kBAMpC,CAAC;AAEZ,eAAO,MA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
export declare const ExecutionModeSchema: z.ZodEnum<{
|
|
14
|
+
frontier: "frontier";
|
|
15
|
+
local: "local";
|
|
16
|
+
mixed: "mixed";
|
|
17
|
+
}>;
|
|
13
18
|
export declare const PrivacyModeSchema: z.ZodEnum<{
|
|
14
19
|
consentBeforeFrontier: "consentBeforeFrontier";
|
|
15
20
|
forceLocalOnSensitive: "forceLocalOnSensitive";
|
|
@@ -107,6 +112,41 @@ export declare const StorageConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
107
112
|
path: z.ZodDefault<z.ZodString>;
|
|
108
113
|
}, z.core.$strict>>;
|
|
109
114
|
}, z.core.$strict>>;
|
|
115
|
+
export declare const AgentExecutionPolicySchema: z.ZodObject<{
|
|
116
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
frontier: "frontier";
|
|
118
|
+
local: "local";
|
|
119
|
+
mixed: "mixed";
|
|
120
|
+
}>>;
|
|
121
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
122
|
+
providerID: z.ZodString;
|
|
123
|
+
modelID: z.ZodString;
|
|
124
|
+
}, z.core.$strict>, z.ZodLiteral<"auto">]>>;
|
|
125
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
providerID: z.ZodString;
|
|
127
|
+
modelID: z.ZodString;
|
|
128
|
+
}, z.core.$strict>>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
declare const OrchestratorConfigSchema: z.ZodObject<{
|
|
131
|
+
roles: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodTransform<Record<string, AgentRoleProfile>, Record<string, unknown>>>;
|
|
132
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
frontier: "frontier";
|
|
135
|
+
local: "local";
|
|
136
|
+
mixed: "mixed";
|
|
137
|
+
}>>;
|
|
138
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
139
|
+
providerID: z.ZodString;
|
|
140
|
+
modelID: z.ZodString;
|
|
141
|
+
}, z.core.$strict>, z.ZodLiteral<"auto">]>>;
|
|
142
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
providerID: z.ZodString;
|
|
144
|
+
modelID: z.ZodString;
|
|
145
|
+
}, z.core.$strict>>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
maxModelsPerNode: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strict>;
|
|
110
150
|
/**
|
|
111
151
|
* Default per-runtime concurrency cap when a runtime does not declare
|
|
112
152
|
* `maxConcurrency` (#144). Applied at read time — the field is optional in the
|
|
@@ -177,10 +217,10 @@ export declare function effectiveMaxConcurrency(runtime: Pick<LocalRuntime, "max
|
|
|
177
217
|
*/
|
|
178
218
|
export declare function effectiveReservedInteractiveSlots(runtime: Pick<LocalRuntime, "maxConcurrency" | "reservedInteractiveSlots">): number;
|
|
179
219
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
220
|
+
* Long-term semantic memory is opt-in and disabled by default (ADR-1..6).
|
|
221
|
+
* `storeContent=false` keeps redacted structure and `sourceHash`, never the raw
|
|
222
|
+
* prompt. Extraction is local-first; frontier fallback is explicitly configured,
|
|
223
|
+
* not authorized or blocked by inferred content sensitivity.
|
|
184
224
|
*/
|
|
185
225
|
export declare const MemoryScopeSchema: z.ZodEnum<{
|
|
186
226
|
project: "project";
|
|
@@ -289,7 +329,7 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
289
329
|
}, z.core.$strict>>;
|
|
290
330
|
}, z.core.$strict>;
|
|
291
331
|
export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
|
|
292
|
-
configVersion: z.ZodOptional<z.ZodLiteral<
|
|
332
|
+
configVersion: z.ZodOptional<z.ZodLiteral<2>>;
|
|
293
333
|
baseline: z.ZodDefault<z.ZodObject<{
|
|
294
334
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
295
335
|
auto: "auto";
|
|
@@ -310,14 +350,19 @@ export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
|
|
|
310
350
|
economy: "economy";
|
|
311
351
|
quality: "quality";
|
|
312
352
|
}>>;
|
|
353
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
frontier: "frontier";
|
|
355
|
+
local: "local";
|
|
356
|
+
mixed: "mixed";
|
|
357
|
+
}>>;
|
|
313
358
|
localDefault: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
314
359
|
providerID: z.ZodString;
|
|
315
360
|
modelID: z.ZodString;
|
|
316
361
|
}, z.core.$strict>>>;
|
|
317
362
|
trivialPromptMaxChars: z.ZodDefault<z.ZodNumber>;
|
|
318
363
|
frontierPromptMinChars: z.ZodDefault<z.ZodNumber>;
|
|
319
|
-
frontierOnly: z.
|
|
320
|
-
localOnly: z.
|
|
364
|
+
frontierOnly: z.ZodOptional<z.ZodBoolean>;
|
|
365
|
+
localOnly: z.ZodOptional<z.ZodBoolean>;
|
|
321
366
|
}, z.core.$strict>>;
|
|
322
367
|
local: z.ZodDefault<z.ZodObject<{
|
|
323
368
|
runtimes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -352,7 +397,7 @@ export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
|
|
|
352
397
|
frontierTokensPerSession: z.ZodOptional<z.ZodNumber>;
|
|
353
398
|
hardStopOnBudgetExhaustion: z.ZodDefault<z.ZodBoolean>;
|
|
354
399
|
}, z.core.$strict>>;
|
|
355
|
-
privacyMode: z.
|
|
400
|
+
privacyMode: z.ZodOptional<z.ZodEnum<{
|
|
356
401
|
consentBeforeFrontier: "consentBeforeFrontier";
|
|
357
402
|
forceLocalOnSensitive: "forceLocalOnSensitive";
|
|
358
403
|
off: "off";
|
|
@@ -443,12 +488,28 @@ export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
|
|
|
443
488
|
}, z.core.$strict>>;
|
|
444
489
|
orchestrator: z.ZodOptional<z.ZodObject<{
|
|
445
490
|
roles: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodTransform<Record<string, AgentRoleProfile>, Record<string, unknown>>>;
|
|
491
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
493
|
+
frontier: "frontier";
|
|
494
|
+
local: "local";
|
|
495
|
+
mixed: "mixed";
|
|
496
|
+
}>>;
|
|
497
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
498
|
+
providerID: z.ZodString;
|
|
499
|
+
modelID: z.ZodString;
|
|
500
|
+
}, z.core.$strict>, z.ZodLiteral<"auto">]>>;
|
|
501
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
502
|
+
providerID: z.ZodString;
|
|
503
|
+
modelID: z.ZodString;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
505
|
+
}, z.core.$strict>>;
|
|
446
506
|
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
maxModelsPerNode: z.ZodOptional<z.ZodNumber>;
|
|
447
508
|
}, z.core.$strict>>;
|
|
448
509
|
}, z.core.$strict>;
|
|
449
510
|
/** Esquema público de la config de openteam. */
|
|
450
511
|
export declare const OpenTeamConfigSchema: z.ZodObject<{
|
|
451
|
-
configVersion: z.ZodOptional<z.ZodLiteral<
|
|
512
|
+
configVersion: z.ZodOptional<z.ZodLiteral<2>>;
|
|
452
513
|
baseline: z.ZodDefault<z.ZodObject<{
|
|
453
514
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
454
515
|
auto: "auto";
|
|
@@ -469,14 +530,19 @@ export declare const OpenTeamConfigSchema: z.ZodObject<{
|
|
|
469
530
|
economy: "economy";
|
|
470
531
|
quality: "quality";
|
|
471
532
|
}>>;
|
|
533
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
frontier: "frontier";
|
|
535
|
+
local: "local";
|
|
536
|
+
mixed: "mixed";
|
|
537
|
+
}>>;
|
|
472
538
|
localDefault: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
473
539
|
providerID: z.ZodString;
|
|
474
540
|
modelID: z.ZodString;
|
|
475
541
|
}, z.core.$strict>>>;
|
|
476
542
|
trivialPromptMaxChars: z.ZodDefault<z.ZodNumber>;
|
|
477
543
|
frontierPromptMinChars: z.ZodDefault<z.ZodNumber>;
|
|
478
|
-
frontierOnly: z.
|
|
479
|
-
localOnly: z.
|
|
544
|
+
frontierOnly: z.ZodOptional<z.ZodBoolean>;
|
|
545
|
+
localOnly: z.ZodOptional<z.ZodBoolean>;
|
|
480
546
|
}, z.core.$strict>>;
|
|
481
547
|
local: z.ZodDefault<z.ZodObject<{
|
|
482
548
|
runtimes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -511,7 +577,7 @@ export declare const OpenTeamConfigSchema: z.ZodObject<{
|
|
|
511
577
|
frontierTokensPerSession: z.ZodOptional<z.ZodNumber>;
|
|
512
578
|
hardStopOnBudgetExhaustion: z.ZodDefault<z.ZodBoolean>;
|
|
513
579
|
}, z.core.$strict>>;
|
|
514
|
-
privacyMode: z.
|
|
580
|
+
privacyMode: z.ZodOptional<z.ZodEnum<{
|
|
515
581
|
consentBeforeFrontier: "consentBeforeFrontier";
|
|
516
582
|
forceLocalOnSensitive: "forceLocalOnSensitive";
|
|
517
583
|
off: "off";
|
|
@@ -602,11 +668,28 @@ export declare const OpenTeamConfigSchema: z.ZodObject<{
|
|
|
602
668
|
}, z.core.$strict>>;
|
|
603
669
|
orchestrator: z.ZodOptional<z.ZodObject<{
|
|
604
670
|
roles: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodTransform<Record<string, AgentRoleProfile>, Record<string, unknown>>>;
|
|
671
|
+
primary: z.ZodOptional<z.ZodObject<{
|
|
672
|
+
executionMode: z.ZodOptional<z.ZodEnum<{
|
|
673
|
+
frontier: "frontier";
|
|
674
|
+
local: "local";
|
|
675
|
+
mixed: "mixed";
|
|
676
|
+
}>>;
|
|
677
|
+
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
678
|
+
providerID: z.ZodString;
|
|
679
|
+
modelID: z.ZodString;
|
|
680
|
+
}, z.core.$strict>, z.ZodLiteral<"auto">]>>;
|
|
681
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
682
|
+
providerID: z.ZodString;
|
|
683
|
+
modelID: z.ZodString;
|
|
684
|
+
}, z.core.$strict>>>;
|
|
685
|
+
}, z.core.$strict>>;
|
|
605
686
|
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
maxModelsPerNode: z.ZodOptional<z.ZodNumber>;
|
|
606
688
|
}, z.core.$strict>>;
|
|
607
689
|
}, z.core.$strict>;
|
|
608
690
|
export type ModelRef = z.infer<typeof ModelRefSchema>;
|
|
609
691
|
export type RouterMode = z.infer<typeof RouterModeSchema>;
|
|
692
|
+
export type ExecutionMode = z.infer<typeof ExecutionModeSchema>;
|
|
610
693
|
export type PrivacyMode = z.infer<typeof PrivacyModeSchema>;
|
|
611
694
|
export type GraphMode = z.infer<typeof GraphModeSchema>;
|
|
612
695
|
export type GraphConfig = z.infer<typeof GraphConfigSchema>;
|
|
@@ -623,6 +706,8 @@ export type OpenTeamConfig = Omit<ParsedOpenTeamConfig, "console" | "graph"> & {
|
|
|
623
706
|
export type StorageConfig = z.infer<typeof StorageConfigSchema>;
|
|
624
707
|
export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
625
708
|
export type MemorySemanticConfig = z.infer<typeof MemorySemanticSchema>;
|
|
709
|
+
export type OrchestratorConfig = z.infer<typeof OrchestratorConfigSchema>;
|
|
710
|
+
export type ConfiguredAgentExecutionPolicy = z.infer<typeof AgentExecutionPolicySchema>;
|
|
626
711
|
/**
|
|
627
712
|
* Resuelve la config de memoria semántica efectiva. Si `memory` está ausente,
|
|
628
713
|
* devuelve los defaults (memoria desactivada). Fuente única de defaults.
|