@jmanuelcorral/openteam 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.es.md +5 -5
  2. package/README.md +5 -5
  3. package/dist/cli/consoleServe.d.ts +9 -0
  4. package/dist/cli/consoleServe.d.ts.map +1 -1
  5. package/dist/cli/graphViewProvider.d.ts +30 -0
  6. package/dist/cli/graphViewProvider.d.ts.map +1 -0
  7. package/dist/cli.js +1271 -240
  8. package/dist/commands/dispatch.d.ts +1 -0
  9. package/dist/commands/dispatch.d.ts.map +1 -1
  10. package/dist/commands/orchestratorAgent.d.ts.map +1 -1
  11. package/dist/config/graphFeatureGate.d.ts +8 -3
  12. package/dist/config/graphFeatureGate.d.ts.map +1 -1
  13. package/dist/config/schema.d.ts +5 -0
  14. package/dist/config/schema.d.ts.map +1 -1
  15. package/dist/context/redaction.d.ts +8 -0
  16. package/dist/context/redaction.d.ts.map +1 -1
  17. package/dist/graph/certificate.d.ts +12 -2
  18. package/dist/graph/certificate.d.ts.map +1 -1
  19. package/dist/graph/soakLedger.d.ts +25 -2
  20. package/dist/graph/soakLedger.d.ts.map +1 -1
  21. package/dist/index.d.ts +11 -5
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +3028 -1678
  24. package/dist/orchestrator/coordinator.d.ts +37 -2
  25. package/dist/orchestrator/coordinator.d.ts.map +1 -1
  26. package/dist/orchestrator/graphIngress.d.ts +1 -1
  27. package/dist/orchestrator/graphIngress.d.ts.map +1 -1
  28. package/dist/orchestrator/ledger.d.ts +11 -42
  29. package/dist/orchestrator/ledger.d.ts.map +1 -1
  30. package/dist/orchestrator/sddCompiler.d.ts +25 -1
  31. package/dist/orchestrator/sddCompiler.d.ts.map +1 -1
  32. package/dist/plugin/orchestrateTool.d.ts +197 -0
  33. package/dist/plugin/orchestrateTool.d.ts.map +1 -0
  34. package/dist/telemetry/events.d.ts +37 -0
  35. package/dist/telemetry/events.d.ts.map +1 -1
  36. package/dist/version.d.ts +3 -0
  37. package/dist/version.d.ts.map +1 -0
  38. package/package.json +1 -1
  39. package/dist/orchestrator/sdd.d.ts +0 -180
  40. package/dist/orchestrator/sdd.d.ts.map +0 -1
  41. package/dist/storage/graph/migrateLegacyBriefs.d.ts +0 -32
  42. package/dist/storage/graph/migrateLegacyBriefs.d.ts.map +0 -1
@@ -20,6 +20,8 @@ export type RoleTaskInput = {
20
20
  directory?: string;
21
21
  /** Correlación opcional con una tarea del loop SDD/backlog (Fase D). */
22
22
  taskID?: string;
23
+ /** Role IDs this task depends on. Dependents only run after dependencies succeed. */
24
+ dependsOn?: readonly string[];
23
25
  };
24
26
  export type CoordinatorDeps = {
25
27
  client: OpencodeSessionClient;
@@ -42,10 +44,31 @@ export type RoleTaskResult = {
42
44
  subsession: SubsessionResult;
43
45
  record: CorrelatedCostRecord;
44
46
  };
47
+ /**
48
+ * Classifies a raw failure reason into a bounded, non-free-form code for
49
+ * persisted telemetry. The raw `failureReason` from `errorReason()` in
50
+ * `subsessions.ts` can contain SDK error messages that echo request content
51
+ * (provider content-filter rejections, validation errors quoting the payload).
52
+ * Persisting those verbatim violates the project's telemetry policy: "auditable
53
+ * JSONL with a hashed prompt by default; do not store sensitive prompts."
54
+ *
55
+ * The classified code preserves the debugging signal that actually gets
56
+ * aggregated (timeout vs. rejection vs. missing session) while carrying no
57
+ * payload. The raw string remains available in-memory via
58
+ * `CorrelatedCostRecord.failureReason` for the tool response.
59
+ *
60
+ * Pure: no I/O, clock, random, or env.
61
+ */
62
+ export type TelemetryFailureClass = "create-rejected" | "create-no-id" | "prompt-rejected" | "prompt-timeout" | "unknown";
63
+ export declare function classifyFailureForTelemetry(failureReason: string, failureStage: string | undefined): TelemetryFailureClass;
45
64
  /**
46
65
  * Mapea un `CorrelatedCostRecord` a un `route` event preservando la correlación
47
- * (decisionID/agent/success/batchID/failureReason/failureStage) que el sink de
66
+ * (decisionID/agent/success/batchID/failureStage) que el sink de
48
67
  * `CostRecord` legacy descartaba. Puro.
68
+ *
69
+ * `failureReason` is classified into a bounded code via
70
+ * `classifyFailureForTelemetry` rather than copied raw — the raw string may
71
+ * contain SDK error messages that echo request content.
49
72
  */
50
73
  export declare function correlatedCostRecordToRouteEvent(record: CorrelatedCostRecord): RouteEvent;
51
74
  /**
@@ -54,5 +77,17 @@ export declare function correlatedCostRecordToRouteEvent(record: CorrelatedCostR
54
77
  */
55
78
  export declare function buildMeetingEvent(inputs: readonly RoleTaskInput[], batchID: string, decisionIDs: readonly string[], ts: number): MeetingEvent | undefined;
56
79
  export declare function runRoleTask(input: RoleTaskInput, deps: CoordinatorDeps): Promise<RoleTaskResult>;
57
- export declare function runRoleTasks(inputs: readonly RoleTaskInput[], deps: CoordinatorDeps): Promise<RoleTaskResult[]>;
80
+ export type RoleBatchResult = {
81
+ readonly batchID: string;
82
+ readonly results: RoleTaskResult[];
83
+ /** Role IDs that were not executed because a dependency failed or was cancelled. */
84
+ readonly cancelled: readonly string[];
85
+ };
86
+ /**
87
+ * Computes topological waves from inputs: each wave contains roles whose
88
+ * dependencies all appear in earlier waves. Roles with no `dependsOn` are in
89
+ * wave 0. Pure and deterministic: same inputs produce the same waves.
90
+ */
91
+ export declare function topologicalWaves(inputs: readonly RoleTaskInput[]): RoleTaskInput[][];
92
+ export declare function runRoleTasks(inputs: readonly RoleTaskInput[], deps: CoordinatorDeps): Promise<RoleBatchResult>;
58
93
  //# sourceMappingURL=coordinator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EACV,cAAc,EACd,eAA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} from "./graphEffects";
25
25
  import type { RevisionPlan } from "./graphReview";
26
26
  import { type RuntimeStepOutcome } from "./graphRuntime";
27
- import type { SddTask } from "./sdd";
27
+ import { type SddTask } from "./sddCompiler";
28
28
  /** Marca privada del módulo: nada fuera de aquí puede fabricarla. */
29
29
  declare const ACTIVE_INGRESS_BRAND: unique symbol;
30
30
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"graphIngress.d.ts","sourceRoot":"","sources":["../../src/orchestrator/graphIngress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGrC,qEAAqE;AACrE,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAAyC,CAAC;AAE7E;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;IACtC,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,uBAAuB,CAEzB;AAED,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAC3B,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,kBAAkB,CAAC;AAEvB,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GACvB;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Q,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACnE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAChD;AAkBD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,YAAY,CAyIvE"}
@@ -1,23 +1,18 @@
1
- import type { StorageProvider } from "../storage/provider";
2
1
  /**
3
- * Ledger de progreso durable del orquestador.
2
+ * Tipos y reducción del ledger de progreso legacy.
4
3
  *
5
- * Registra, una línea por tarea, el estado de las tareas ya procesadas para que
6
- * un flujo largo (loop SDD, `openteam loop`) pueda **reanudarse** tras una
7
- * compactación de contexto o un reinicio sin repetir trabajo hecho. Vive detrás
8
- * del `StorageProvider` (misma fuente de verdad que roster/decisions/telemetría)
9
- * y es **privacy-safe**: solo `taskID`, estado y un `detail` ya redactado; nunca
10
- * prompts ni datos sensibles.
11
- *
12
- * Formato de línea (Markdown, inspirado en obra/superpowers):
13
- * `- <taskID>: complete (<detail>)`
14
- * `- <taskID>: failed (<detail>)`
4
+ * El ledger legacy (`progress.md`) registra, una línea por tarea, el desenlace
5
+ * terminal de las tareas ya procesadas. Su **autoridad** fue retirada (R7): ya
6
+ * no se lee ni se escribe como fuente de verdad. Lo que sobrevive es el modelo
7
+ * de datos (`LedgerEntry` / `LedgerStatus`) y la reducción pura `latestStatuses`,
8
+ * que la **importación terminal** a la autoridad de Graph
9
+ * (`storage/graph/importLegacy.ts`) usa para colapsar entradas repetidas al
10
+ * último estado por `taskID`. El parseo del texto legacy vive ahora inline en el
11
+ * importador/migración, no aquí.
15
12
  *
16
- * Las funciones de parse/format son puras; el I/O se hace vía un
17
- * `StorageProvider` inyectado.
13
+ * Es **privacy-safe**: solo `taskID`, estado y un `detail` ya redactado; nunca
14
+ * prompts ni datos sensibles.
18
15
  */
19
- /** Ruta por defecto del ledger (estado derivado del equipo). */
20
- export declare const DEFAULT_LEDGER_PATH = ".opencode/openteam/progress.md";
21
16
  export type LedgerStatus = "complete" | "failed";
22
17
  export type LedgerEntry = {
23
18
  taskID: string;
@@ -25,35 +20,9 @@ export type LedgerEntry = {
25
20
  /** Metadatos redactados (modelo, tier, resultado de review). Nunca prompts. */
26
21
  detail?: string;
27
22
  };
28
- /** Serializa una entrada a su línea Markdown canónica. Puro. */
29
- export declare function formatLedgerEntry(entry: LedgerEntry): string;
30
- /** Parsea una línea; `undefined` si no es una entrada de ledger válida. Puro. */
31
- export declare function parseLedgerLine(line: string): LedgerEntry | undefined;
32
- /** Parsea todo el ledger, saltando cabeceras/blancos/líneas inválidas. Puro. */
33
- export declare function parseLedger(text: string): LedgerEntry[];
34
23
  /**
35
24
  * Estado más reciente por `taskID` (las líneas posteriores sobrescriben a las
36
25
  * anteriores: un `failed` seguido de `complete` cuenta como `complete`). Puro.
37
26
  */
38
27
  export declare function latestStatuses(entries: readonly LedgerEntry[]): Map<string, LedgerStatus>;
39
- /** `true` si el último estado registrado para la tarea es `complete`. Puro. */
40
- export declare function isTaskComplete(entries: readonly LedgerEntry[], taskID: string): boolean;
41
- /** Conjunto de `taskID` cuyo estado más reciente es `complete`. Puro. */
42
- export declare function completedTaskIDs(entries: readonly LedgerEntry[]): Set<string>;
43
- /**
44
- * Lee y parsea el ledger; `[]` si el fichero no existe.
45
- *
46
- * @deprecated As authority source — legacy SDD authority (progress.md as the
47
- * task-completion ledger) will be removed in v1.0.0. The pure parsing
48
- * functions (`parseLedger`, `parseLedgerLine`, etc.) remain available for
49
- * terminal import into graph authority. See docs/guide/graph-migration.md.
50
- */
51
- export declare function readLedger(storage: StorageProvider, path?: string): Promise<LedgerEntry[]>;
52
- /**
53
- * Añade una entrada al ledger (crea el fichero si no existe).
54
- *
55
- * @deprecated Legacy SDD authority (progress.md as the task-completion ledger)
56
- * will be removed in v1.0.0. See docs/guide/graph-migration.md.
57
- */
58
- export declare function appendLedgerEntry(storage: StorageProvider, entry: LedgerEntry, path?: string): Promise<void>;
59
28
  //# sourceMappingURL=ledger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../src/orchestrator/ledger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AAEH,gEAAgE;AAChE,eAAO,MAAM,mBAAmB,mCAAmC,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,gEAAgE;AAChE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAM5D;AAED,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAgBrE;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CASvD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAM3B;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,WAAW,EAAE,EAC/B,MAAM,EAAE,MAAM,GACb,OAAO,CAET;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAQ7E;AAED;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,GAAE,MAA4B,GACjC,OAAO,CAAC,WAAW,EAAE,CAAC,CAGxB;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,WAAW,EAClB,IAAI,GAAE,MAA4B,GACjC,OAAO,CAAC,IAAI,CAAC,CAEf"}
1
+ {"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../src/orchestrator/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAM3B"}
@@ -1,5 +1,29 @@
1
1
  import { type GraphSpecV1 } from "../graph/schema";
2
- import { type SddTask } from "./sdd";
2
+ import type { TaskSignals } from "../router/types";
3
+ /** Rol reviewer por defecto de la compilación SDD → grafo. */
4
+ export declare const DEFAULT_REVIEWER_ROLE_ID = "reviewer";
5
+ /**
6
+ * Descriptor de entrada del compilador SDD → grafo.
7
+ *
8
+ * Es el contrato que `compileSddTask` y el ingress activo (`graphIngress.ts`)
9
+ * consumen: identifica la tarea, sus roles y su brief accionable, más las
10
+ * señales de routing. El brief nunca se persiste en crudo; el compilador lo
11
+ * ancla por digest (`assertReferenceOnly` rechaza cualquier campo crudo).
12
+ */
13
+ export type SddTask = {
14
+ /** Id estable y sin `:` (kebab-case) usado para anclas y nodos. */
15
+ id: string;
16
+ /** Rol que implementa (y arregla) la tarea. */
17
+ implementerRoleID: string;
18
+ /** Título humano corto. */
19
+ title: string;
20
+ /** Brief accionable de la tarea (cuerpo del prompt del implementer). */
21
+ brief: string;
22
+ /** Señales de routing para la tarea. */
23
+ task: TaskSignals;
24
+ /** Rol reviewer específico (sobreescribe el reviewer por defecto). */
25
+ reviewerRoleID?: string;
26
+ };
3
27
  /**
4
28
  * Compilador **puro** de una tarea SDD legacy a un `GraphSpecV1` estático
5
29
  * (GE-041).
@@ -1 +1 @@
1
- {"version":3,"file":"sddCompiler.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sddCompiler.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAA4B,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;;;;;;;;;;;;;GAiBG;AAEH,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,oBAAoB,GACpB,cAAc,CAAC;AAEnB,iDAAiD;AACjD,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAKpD;CACF;AAED,+BAA+B;AAC/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+DAA+D;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M,CAAC;IACxB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAwBF;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,EACb,OAAO,GAAE,iBAAsB,GAC9B,WAAW,CA0Db"}
@@ -0,0 +1,197 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin";
2
+ import { z } from "zod";
3
+ import type { GraphMode, OpenTeamConfig } from "../config/schema";
4
+ import type { GraphEventV1, GraphSpecV1 } from "../graph/schema";
5
+ import { type RoleTaskResult } from "../orchestrator/coordinator";
6
+ import type { OpencodeSessionClient } from "../orchestrator/subsessions";
7
+ import type { GraphJournal } from "../storage/graph/provider";
8
+ import type { EventSink } from "../telemetry/eventLog";
9
+ import type { ShadowObserver } from "./shadowPipeline";
10
+ /**
11
+ * Schema for the `openteam-orchestrate` tool boundary.
12
+ *
13
+ * `.strict()` rejects unknown keys, consistent with `ReportRunPayloadSchema`.
14
+ */
15
+ export declare const OrchestratePayloadSchema: z.ZodObject<{
16
+ assignments: z.ZodArray<z.ZodObject<{
17
+ roleID: z.ZodString;
18
+ prompt: z.ZodString;
19
+ title: z.ZodOptional<z.ZodString>;
20
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ }, z.core.$strict>>;
22
+ parentSessionID: z.ZodOptional<z.ZodString>;
23
+ directory: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strict>;
25
+ export type OrchestratePayload = z.infer<typeof OrchestratePayloadSchema>;
26
+ export type DependencyValidationError = {
27
+ code: "dangling-reference";
28
+ detail: string;
29
+ } | {
30
+ code: "cycle";
31
+ detail: string;
32
+ } | {
33
+ code: "duplicate-role";
34
+ detail: string;
35
+ };
36
+ /**
37
+ * Validates the dependency graph encoded in assignments. Returns an error
38
+ * if any `dependsOn` reference is dangling (refers to a non-existent roleID),
39
+ * if the graph contains a cycle, or if roleIDs are duplicated.
40
+ *
41
+ * Pure: no I/O, clock, random, or env vars.
42
+ */
43
+ export declare function validateAssignmentDependencies(assignments: readonly OrchestratePayload["assignments"][number][]): DependencyValidationError | undefined;
44
+ /** Per-role summary returned by the tool (reference-only — no prompt text). */
45
+ export type RoleResultSummary = {
46
+ roleID: string;
47
+ model: {
48
+ providerID: string;
49
+ modelID: string;
50
+ };
51
+ success: boolean;
52
+ sessionID?: string;
53
+ failureStage?: "create" | "prompt";
54
+ failureReason?: string;
55
+ };
56
+ export type OrchestrateResult = {
57
+ kind: "completed";
58
+ roles: readonly RoleResultSummary[];
59
+ cancelled?: readonly string[];
60
+ } | {
61
+ kind: "error";
62
+ reason: string;
63
+ };
64
+ /**
65
+ * Minimal port of the opencode SDK client surface used by this adapter.
66
+ *
67
+ * Structurally compatible with `ReturnType<typeof createOpencodeClient>` — the
68
+ * SDK client can be passed directly. Only the `session.create` and
69
+ * `session.prompt` methods are consumed; everything else is intentionally
70
+ * excluded so the adapter cannot reach surfaces the coordinator must not use.
71
+ */
72
+ export type SdkClientPort = {
73
+ session: {
74
+ create(args: {
75
+ body?: {
76
+ parentID?: string;
77
+ title?: string;
78
+ };
79
+ query?: {
80
+ directory?: string;
81
+ };
82
+ }): Promise<{
83
+ data: {
84
+ id: string;
85
+ } | undefined;
86
+ error: unknown;
87
+ }>;
88
+ prompt(args: {
89
+ path: {
90
+ id: string;
91
+ };
92
+ body: {
93
+ model?: {
94
+ providerID: string;
95
+ modelID: string;
96
+ };
97
+ agent?: string;
98
+ system?: string;
99
+ parts: Array<{
100
+ type: "text";
101
+ text: string;
102
+ }>;
103
+ };
104
+ }): Promise<{
105
+ data: unknown;
106
+ error: unknown;
107
+ }>;
108
+ };
109
+ };
110
+ /**
111
+ * Adapts the opencode SDK client to `OpencodeSessionClient`.
112
+ *
113
+ * The brief asked to use `opencodeSessionAdapter.ts`, but that adapter
114
+ * produces `OpencodeSessionAdapter` (6-method lifecycle interface for the
115
+ * graph runtime), not `OpencodeSessionClient` (2-method create/prompt
116
+ * interface consumed by `runSubsession`/`runRoleTasks`). Using the wrong
117
+ * type would compile but add an unused abstraction layer. This adapter
118
+ * bridges the SDK client directly to the type the coordinator consumes.
119
+ */
120
+ export declare function adaptSdkClient(sdk: SdkClientPort): OpencodeSessionClient;
121
+ /**
122
+ * Projects `RoleTaskResult[]` into a reference-only `OrchestrateResult`.
123
+ *
124
+ * `assertReferenceOnly` is the privacy guard: it rejects any structure
125
+ * carrying a key from `FORBIDDEN_RAW_KEYS` (e.g. "content", "text",
126
+ * "prompt", "message"). The current `RoleResultSummary` shape has no
127
+ * forbidden keys by design, but the guard is defense-in-depth against
128
+ * runtime contamination (e.g. `decision.selected` carrying extra
129
+ * properties from the SDK response). Exported for direct testing.
130
+ */
131
+ export declare function projectResults(results: readonly RoleTaskResult[], cancelled?: readonly string[]): OrchestrateResult;
132
+ export type OrchestrateDeps = {
133
+ readonly client: OpencodeSessionClient;
134
+ readonly sink: EventSink;
135
+ readonly config: OpenTeamConfig;
136
+ readonly now: () => number;
137
+ readonly newDecisionID: () => string;
138
+ /** Graph mode resolved from config. `off` disables shadow journaling. */
139
+ readonly graphMode: GraphMode;
140
+ /** Journal for persisting shadow graph runs. Required when graphMode !== "off". */
141
+ readonly journal?: GraphJournal | undefined;
142
+ /** Shadow pipeline observer. Required when graphMode !== "off". */
143
+ readonly observeLegacyExecution?: ShadowObserver | undefined;
144
+ };
145
+ /**
146
+ * Builds a `GraphSpecV1` from orchestrate payload assignments. Each assignment
147
+ * becomes a node; `dependsOn` on assignments maps to graph edges. All nodes
148
+ * are `implementer` role (the roster role is an orchestration concept, not a
149
+ * graph review relationship). Anchors use the batchID as taskID.
150
+ *
151
+ * Pure: no I/O, clock, random, or env vars.
152
+ */
153
+ export declare function buildGraphSpecFromAssignments(assignments: readonly OrchestratePayload["assignments"][number][], batchID: string): GraphSpecV1;
154
+ /**
155
+ * Synthesizes the journal event sequence from legacy role task results.
156
+ * Follows the same pattern as `mirrorJournal` in `graphShadow.ts`:
157
+ * run.started → (node.dispatched + node.succeeded/failed) per node → terminal.
158
+ *
159
+ * **Privacy**: events carry only nodeID, operationID, attemptID, and synthetic
160
+ * artifacts (`shadow://` scheme). No prompt text reaches the journal.
161
+ */
162
+ export declare function synthesizeJournalEvents(spec: GraphSpecV1, results: readonly RoleTaskResult[], cancelled?: readonly string[]): GraphEventV1[];
163
+ /**
164
+ * Bounded failure codes for shadow producer diagnostics. Never a raw error
165
+ * string — fs errors can carry full paths, SDK errors can echo request content.
166
+ * The same discipline applied at `coordinator.ts:328` for subsession failures.
167
+ */
168
+ export type ShadowProducerFailureClass = "invalid-node-id" | "journal-create-failed" | "journal-append-failed" | "observation-failed" | "unknown";
169
+ /**
170
+ * Classifies a shadow producer error into a bounded code. Pure.
171
+ */
172
+ export declare function classifyShadowFailure(_error: unknown, phase: "create" | "append" | "observe"): ShadowProducerFailureClass;
173
+ /** Result of shadow producer attempt — success or classified failure. */
174
+ export type ShadowProducerResult = {
175
+ readonly ok: true;
176
+ } | {
177
+ readonly ok: false;
178
+ readonly failureClass: ShadowProducerFailureClass;
179
+ };
180
+ /**
181
+ * Creates the `openteam-orchestrate` tool.
182
+ *
183
+ * This is the production entry point for code-driven roster orchestration.
184
+ * When an agent calls this tool with role assignments, openteam distributes
185
+ * the work via `runRoleTasks` — model selection, subsession lifecycle, and
186
+ * telemetry are all handled by our code, not improvised by the LLM.
187
+ *
188
+ * **Failure containment**: follows the `createShadowPipeline` idiom — no
189
+ * error escapes the tool boundary. A failure returns a structured error
190
+ * result rather than crashing the plugin or corrupting the user's session.
191
+ *
192
+ * **Privacy**: the result projection uses `assertReferenceOnly` to ensure
193
+ * no raw prompt text reaches telemetry or the tool response. Only role IDs,
194
+ * model selections, session IDs, and failure metadata are surfaced.
195
+ */
196
+ export declare function createOrchestrateTool(deps: OrchestrateDeps): ToolDefinition;
197
+ //# sourceMappingURL=orchestrateTool.d.ts.map
@@ -0,0 +1 @@
1
+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,GAAE,SAAS,MAAM,EAAO,GAChC,YAAY,EAAE,CAkFhB;AA0CD;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,uBAAuB,GACvB,uBAAuB,GACvB,oBAAoB,GACpB,SAAS,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GACrC,0BAA0B,CAK5B;AAED,yEAAyE;AACzE,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;CAAE,GACrB;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAA;CAAE,CAAC;AAqH9E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,eAAe,GAAG,cAAc,CA8E3E"}
@@ -133,6 +133,29 @@ export declare const SessionEndpointEventSchema: z.ZodObject<{
133
133
  worktree: z.ZodOptional<z.ZodString>;
134
134
  title: z.ZodOptional<z.ZodString>;
135
135
  }, z.core.$strip>;
136
+ /**
137
+ * Diagnostic event for the shadow producer. Emitted when the shadow pipeline
138
+ * was attempted but failed — making the failure observable rather than silent.
139
+ * Without this, a broken journal root or invalid roleID would silently prevent
140
+ * soak observations from accumulating, and the only symptom would be an absence.
141
+ *
142
+ * `failureClass` is a bounded code — never a raw error string, which could
143
+ * contain filesystem paths or SDK error messages that echo request content.
144
+ */
145
+ export declare const ShadowDiagnosticEventSchema: z.ZodObject<{
146
+ v: z.ZodLiteral<1>;
147
+ ts: z.ZodNumber;
148
+ sessionID: z.ZodString;
149
+ type: z.ZodLiteral<"shadow-diagnostic">;
150
+ batchID: z.ZodString;
151
+ failureClass: z.ZodEnum<{
152
+ "invalid-node-id": "invalid-node-id";
153
+ "journal-append-failed": "journal-append-failed";
154
+ "journal-create-failed": "journal-create-failed";
155
+ "observation-failed": "observation-failed";
156
+ unknown: "unknown";
157
+ }>;
158
+ }, z.core.$strip>;
136
159
  export declare const OpenTeamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
137
160
  v: z.ZodLiteral<1>;
138
161
  ts: z.ZodNumber;
@@ -235,6 +258,19 @@ export declare const OpenTeamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
235
258
  directory: z.ZodOptional<z.ZodString>;
236
259
  worktree: z.ZodOptional<z.ZodString>;
237
260
  title: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ v: z.ZodLiteral<1>;
263
+ ts: z.ZodNumber;
264
+ sessionID: z.ZodString;
265
+ type: z.ZodLiteral<"shadow-diagnostic">;
266
+ batchID: z.ZodString;
267
+ failureClass: z.ZodEnum<{
268
+ "invalid-node-id": "invalid-node-id";
269
+ "journal-append-failed": "journal-append-failed";
270
+ "journal-create-failed": "journal-create-failed";
271
+ "observation-failed": "observation-failed";
272
+ unknown: "unknown";
273
+ }>;
238
274
  }, z.core.$strip>], "type">;
239
275
  export type OpenTeamEvent = z.infer<typeof OpenTeamEventSchema>;
240
276
  export type RouteEvent = z.infer<typeof RouteEventSchema>;
@@ -244,5 +280,6 @@ export type MeetingEvent = z.infer<typeof MeetingEventSchema>;
244
280
  export type DecisionEvent = z.infer<typeof DecisionEventSchema>;
245
281
  export type ActivityEvent = z.infer<typeof ActivityEventSchema>;
246
282
  export type SessionEndpointEvent = z.infer<typeof SessionEndpointEventSchema>;
283
+ export type ShadowDiagnosticEvent = z.infer<typeof ShadowDiagnosticEventSchema>;
247
284
  export type OpenTeamEventType = OpenTeamEvent["type"];
248
285
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/telemetry/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;GAUG;AACH,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MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Package version, inlined by the bundler at build time. */
2
+ export declare const PACKAGE_VERSION: string;
3
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,6DAA6D;AAC7D,eAAO,MAAM,eAAe,EAAE,MAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmanuelcorral/openteam",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
6
6
  "license": "MIT",