@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
package/README.es.md CHANGED
@@ -46,7 +46,7 @@ El router mantiene una garantía de privacidad: con `privacyMode: "forceLocalOnS
46
46
 
47
47
  ## Requisitos
48
48
 
49
- - opencode compatible con `@opencode-ai/plugin` `1.17.13`.
49
+ - opencode compatible con `@opencode-ai/plugin` `1.18.18`.
50
50
  - Bun `1.3.14` para instalaciones, desarrollo y tests reproducibles.
51
51
  - Node.js `^22.22.2 || ^24.15.0 || >=26.0.0` para la CLI y el plugin publicados.
52
52
  - Runtimes locales opcionales:
@@ -723,13 +723,13 @@ Gates no negociables:
723
723
 
724
724
  ## Compatibilidad
725
725
 
726
- Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `2026-08-19`:
726
+ Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `2026-08-23`:
727
727
 
728
728
  | Superficie | Versión / contrato |
729
729
  | --- | --- |
730
- | openteam | `0.2.0`; versión actual del paquete |
731
- | `@opencode-ai/plugin` | `1.17.13` |
732
- | `@opencode-ai/sdk` | `1.17.13` |
730
+ | openteam | `0.2.2`; versión actual del paquete |
731
+ | `@opencode-ai/plugin` | `1.18.18` |
732
+ | `@opencode-ai/sdk` | `1.18.18` |
733
733
  | Hook de routing | `chat.message`; no `chat.params` para cambiar modelo |
734
734
  | Subsesiones | `client.session.create` + `client.session.prompt({ body: { model } })` |
735
735
 
package/README.md CHANGED
@@ -51,7 +51,7 @@ The router keeps a privacy guarantee: with `privacyMode: "forceLocalOnSensitive"
51
51
 
52
52
  ## Requirements
53
53
 
54
- - opencode compatible with `@opencode-ai/plugin` `1.17.13`.
54
+ - opencode compatible with `@opencode-ai/plugin` `1.18.18`.
55
55
  - [Bun](https://bun.sh) `1.3.14` for reproducible installs, development, and tests.
56
56
  - Node.js `^22.22.2 || ^24.15.0 || >=26.0.0` for the published CLI/plugin.
57
57
  - Optional local runtimes:
@@ -340,13 +340,13 @@ Non-negotiable gates (see [docs/testing-and-quality.md](docs/testing-and-quality
340
340
 
341
341
  ## Compatibility
342
342
 
343
- See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026-08-19`:
343
+ See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026-08-23`:
344
344
 
345
345
  | Surface | Version / contract |
346
346
  | --- | --- |
347
- | openteam | `0.2.0`; current package version |
348
- | `@opencode-ai/plugin` | `1.17.13` |
349
- | `@opencode-ai/sdk` | `1.17.13` |
347
+ | openteam | `0.2.2`; current package version |
348
+ | `@opencode-ai/plugin` | `1.18.18` |
349
+ | `@opencode-ai/sdk` | `1.18.18` |
350
350
  | Routing hook | `chat.message`; not `chat.params` for model changes |
351
351
  | Child sessions | `client.session.create` + `client.session.prompt({ body: { model } })` |
352
352
 
@@ -6,6 +6,7 @@ import type { CommitView } from "../console/types";
6
6
  import { type BuildSqliteIndexResult } from "../storage/index/bunSqlite";
7
7
  import type { StorageProvider } from "../storage/provider";
8
8
  import type { ConsoleRuntime, ConsoleRuntimeDeps } from "../web/start";
9
+ import { type GraphViewProviderDeps } from "./graphViewProvider";
9
10
  /** Dependencias inyectables del launcher `openteam console`. */
10
11
  export type ConsoleServeDeps = {
11
12
  loadConfig: (path: string) => Promise<OpenTeamConfig>;
@@ -45,6 +46,14 @@ export type ConsoleServeDeps = {
45
46
  storage: StorageProvider;
46
47
  legacyTelemetryPath?: string;
47
48
  }) => Promise<BuildSqliteIndexResult>;
49
+ /**
50
+ * Factory for the graph-view provider. Inyectable en tests; por defecto usa
51
+ * `createGraphViewProvider`. Called only when `graph.mode !== "off"` and
52
+ * `console.graphView.enabled === true`.
53
+ */
54
+ createGraphViewProvider?: (deps: GraphViewProviderDeps) => {
55
+ readView: () => Promise<import("../telemetry/graphView").GraphViewProjectionV1 | null>;
56
+ };
48
57
  };
49
58
  export type ConsoleServeOptions = {
50
59
  open: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"consoleServe.d.ts","sourceRoot":"","sources":["../../src/cli/consoleServe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvE,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACtD,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,O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wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG;IAC9D,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACf,CAMA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC,CAwI7B"}
@@ -0,0 +1,30 @@
1
+ import { type GraphViewProjectionV1 } from "../telemetry/graphView";
2
+ /**
3
+ * Selects the most recent run directory under `journalRoot` by comparing
4
+ * `spec.json` mtime. When two mtimes are identical, the lexicographically
5
+ * greatest `runID` wins. Returns `undefined` when the directory is empty or
6
+ * missing.
7
+ */
8
+ export declare function selectMostRecentRun(journalRoot: string): string | undefined;
9
+ /** Dependencies injectable for testing the graph view provider. */
10
+ export type GraphViewProviderDeps = {
11
+ journalRoot: string;
12
+ killSwitch: boolean;
13
+ log: (message: string) => void;
14
+ /** Selects the run to display. Defaults to `selectMostRecentRun`. */
15
+ selectRun?: (journalRoot: string) => string | undefined;
16
+ };
17
+ /**
18
+ * Builds the `readView` provider that `startConsole` expects. Reads the most
19
+ * recent persisted journal from `journalRoot`, projects it through
20
+ * `buildGraphView`, and returns a `GraphViewProjectionV1`. Returns `null` when
21
+ * there are no runs, the journal is corrupt, or the root is missing.
22
+ *
23
+ * This is the production wire that closes the gap: `runConsoleServe` never
24
+ * supplied a `graphView` to `startConsole`, so the DAG render was permanently
25
+ * dead even with `console.graphView.enabled: true`.
26
+ */
27
+ export declare function createGraphViewProvider(deps: GraphViewProviderDeps): {
28
+ readView: () => Promise<GraphViewProjectionV1 | null>;
29
+ };
30
+ //# sourceMappingURL=graphViewProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphViewProvider.d.ts","sourceRoot":"","sources":["../../src/cli/graphViewProvider.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiC3E;AAED,mEAAmE;AACnE,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,qEAAqE;IACrE,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG;IACpE,QAAQ,EAAE,MAAM,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;CACvD,CA0CA"}