@jmanuelcorral/openteam 0.12.0 → 0.13.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/README.es.md CHANGED
@@ -619,7 +619,7 @@ Puedes ajustar host/puerto y la terminal en `.opencode/openteam.json` (bloque
619
619
  }
620
620
  ```
621
621
 
622
- **Vista del grafo de agentes en vivo.** La Console también puede renderizar un **grafo de agentes** en vivo de una ejecución de Graph; está **desactivada por defecto** y se activa con `console.graphView.enabled: true` — consulta [Graph observability web](docs/es/guide/graph-observability-web.md) para la configuración y los requisitos completos.
622
+ **Vista del grafo de agentes en vivo.** La Console también puede renderizar un **grafo de agentes** en vivo de una ejecución de Graph; está **activada por defecto en modo shadow** y se puede ocultar con `console.graphView.enabled: false` — consulta [Graph observability web](docs/es/guide/graph-observability-web.md) para la configuración y los requisitos completos.
623
623
 
624
624
  > **Seguridad**: el servidor escucha **solo en loopback** (`127.0.0.1`/`localhost`, validado por Zod) y **nunca expone prompts** (solo `promptHash`), args de toolcall ni contenido de mensajes: solo contadores, costes y resúmenes redactados. La vista "Sesión"/"Terminal" exige el token efímero. Si el puerto está ocupado y `autoPortFallback` es `true`, prueba el siguiente libre. El acceso remoto mediante `openteam tunnel` se **eliminó del MVP** (2026-08-31) y se redefinirá más adelante; la Console no tiene camino de exposición remota integrado.
625
625
 
@@ -822,7 +822,7 @@ Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `
822
822
 
823
823
  | Superficie | Versión / contrato |
824
824
  | --- | --- |
825
- | openteam | `0.12.0`; versión actual del paquete |
825
+ | openteam | `0.13.0`; versión actual del paquete |
826
826
  | `@opencode-ai/plugin` | `1.18.19` |
827
827
  | `@opencode-ai/sdk` | `1.18.19` |
828
828
  | Hook de routing | `chat.message`; no `chat.params` para cambiar modelo |
package/README.md CHANGED
@@ -538,7 +538,7 @@ block):
538
538
  }
539
539
  ```
540
540
 
541
- **Live agent-graph view.** The Console can also render a live **agent graph** of a Graph run; it is **off by default** and turned on with `console.graphView.enabled: true` — see [Graph observability web](docs/guide/graph-observability-web.md) for setup and the full requirements.
541
+ **Live agent-graph view.** The Console can also render a live **agent graph** of a Graph run; it is **on by default in shadow mode** and can be hidden with `console.graphView.enabled: false` — see [Graph observability web](docs/guide/graph-observability-web.md) for setup and the full requirements.
542
542
 
543
543
  > **Security**: the server listens **on loopback only** (`127.0.0.1`/`localhost`, Zod-validated) and **never exposes prompts** (only `promptHash`), tool-call args or message content — only counters, costs and redacted summaries. The "Session"/"Terminal" view requires the ephemeral token. If the port is busy and `autoPortFallback` is `true`, it tries the next free one. Remote access via `openteam tunnel` was **removed from the MVP** (2026-08-31) and will be redefined later; the Console has no built-in remote-exposure path.
544
544
 
@@ -711,7 +711,7 @@ See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026
711
711
 
712
712
  | Surface | Version / contract |
713
713
  | --- | --- |
714
- | openteam | `0.12.0`; current package version |
714
+ | openteam | `0.13.0`; current package version |
715
715
  | `@opencode-ai/plugin` | `1.18.19` |
716
716
  | `@opencode-ai/sdk` | `1.18.19` |
717
717
  | Routing hook | `chat.message`; not `chat.params` for model changes |
@@ -47,7 +47,7 @@ export type ConsoleServeDeps = {
47
47
  legacyTelemetryPath?: string;
48
48
  }) => Promise<BuildSqliteIndexResult>;
49
49
  /**
50
- * Factory for the graph-view provider. Inyectable en tests; por defecto usa
50
+ * Factory for the graph-view provider. Injectable in tests; defaults to
51
51
  * `createGraphViewProvider`. Called only when `graph.mode !== "off"` and
52
52
  * `console.graphView.enabled === true`.
53
53
  */
package/dist/cli.js CHANGED
@@ -299,7 +299,7 @@ var GraphEngineSchema = z2.enum(["builtin", "langgraph"]);
299
299
  var DEFAULT_GRAPH_JOURNAL_ROOT = ".opencode/openteam-local/graph/runs";
300
300
  var DEFAULT_GRAPH_WORKTREES_DIR = ".opencode/openteam-local/graph/worktrees";
301
301
  var GraphConfigSchema = z2.object({
302
- mode: GraphModeSchema.default("off"),
302
+ mode: GraphModeSchema.default("shadow"),
303
303
  engine: GraphEngineSchema.optional(),
304
304
  killSwitch: z2.boolean().default(false),
305
305
  journalRoot: z2.string().min(1).default(DEFAULT_GRAPH_JOURNAL_ROOT),
@@ -322,8 +322,8 @@ var ConsoleConfigSchema = z2.object({
322
322
  pty: z2.boolean().optional()
323
323
  }).strict().default({ enabled: true }),
324
324
  graphView: z2.object({
325
- enabled: z2.boolean().default(false)
326
- }).strict().optional()
325
+ enabled: z2.boolean().default(true)
326
+ }).strict().default({ enabled: true })
327
327
  }).strict().default({
328
328
  host: "127.0.0.1",
329
329
  port: 4599,
@@ -332,7 +332,8 @@ var ConsoleConfigSchema = z2.object({
332
332
  recentRoutes: 50,
333
333
  openBrowser: false,
334
334
  remoteStorage: false,
335
- terminal: { enabled: true }
335
+ terminal: { enabled: true },
336
+ graphView: { enabled: true }
336
337
  });
337
338
  var DEFAULT_STORAGE_SQLITE_INDEX_PATH = ".opencode/openteam-local/index.sqlite";
338
339
  var StorageConfigSchema = z2.object({
@@ -511,7 +512,13 @@ var OpenTeamConfigObjectSchema = z2.object({
511
512
  console: ConsoleConfigSchema,
512
513
  storage: StorageConfigSchema,
513
514
  memory: MemoryConfigSchema.optional(),
514
- graph: GraphConfigSchema.optional(),
515
+ graph: GraphConfigSchema.default({
516
+ mode: "shadow",
517
+ killSwitch: false,
518
+ journalRoot: DEFAULT_GRAPH_JOURNAL_ROOT,
519
+ operatorApproval: false,
520
+ worktrees: { enabled: false }
521
+ }),
515
522
  orchestrator: OrchestratorConfigSchema.optional()
516
523
  }).strict();
517
524
  var OpenTeamConfigSchema = OpenTeamConfigObjectSchema;
@@ -3594,7 +3601,7 @@ table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;p
3594
3601
  .logs-layout{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start;margin-bottom:16px}.session-list{padding:6px;max-height:70vh;overflow-y:auto}.session-btn{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:7px;border:0;background:transparent;color:var(--muted);text-align:left;font:12px/1.3 var(--font-mono)}.session-btn:hover{background:var(--surface-2);color:var(--fg)}.session-btn.sel,.session-btn[aria-selected="true"]{background:var(--accent-bg);color:var(--accent-fg)}.session-btn .sid{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-btn .n{margin-left:auto;color:var(--faint)}.session-detail{display:flex;flex-direction:column;gap:16px}.session-detail[hidden]{display:none}.empty-state{padding:28px;text-align:center;color:var(--muted)}
3595
3602
  .term .termlog,.pty .ptylog{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px;max-height:340px;overflow:auto;font-family:var(--font-mono);font-size:12px;white-space:pre-wrap}.term .tl{padding:1px 0}.term .tl.input{color:var(--local)}.term .tl.tool{color:var(--frontier)}.term .tl.status{color:var(--muted)}.term .tl.error{color:var(--danger)}.term .tl.permission{color:var(--frontier);font-weight:600}.term form.terminput,.pty form.ptyinput{display:flex;gap:8px;margin-top:10px}.term form.terminput input,.pty form.ptyinput input{flex:1;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font:inherit}.term form.terminput button{background:var(--local);color:#04122b;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600}.pty .ptylog{background:#05070a;color:#c8d1dc}.pty form.ptyinput button,.pty .pty-start{background:var(--frontier);color:#1a1200;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600;margin-top:8px}.pty .pty-start:disabled{opacity:.5;cursor:default}
3596
3603
  .config-panel{grid-column:1/-1}.config-form{display:flex;flex-direction:column;gap:12px}.config-note{margin:0;font-size:12px;color:var(--muted)}.config-note.config-overlay{color:var(--frontier)}.reload-legend h3,.config-summary h4{font-size:12px;margin:0 0 6px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.reload-table{width:100%}.reload-table th{white-space:nowrap;vertical-align:top;width:1%}.reload-table th.reload-hot{color:var(--good)}.reload-table th.reload-restart{color:var(--frontier)}.config-label{font-size:12px;color:var(--muted)}.config-json{width:100%;min-height:280px;resize:vertical;background:var(--bg);color:var(--fg);border:1px solid var(--border-strong);border-radius:8px;padding:10px;font-family:var(--font-mono);font-size:12px;line-height:1.5}.config-actions{display:flex;gap:8px}.config-save{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer}.config-save:disabled{opacity:.5;cursor:default}.config-result:empty{display:none}.config-summary{border:1px solid var(--border);border-radius:8px;padding:12px;margin-top:4px}.config-ok{margin:0 0 8px;color:var(--good);font-weight:600}.config-err{margin:0;color:var(--frontier);font-weight:600}.config-applied h4{color:var(--good)}.config-restart h4{color:var(--frontier)}.config-warn{margin:0 0 6px;color:var(--frontier);font-size:13px}.config-summary ul{margin:0;padding-left:18px}.config-summary li{padding:2px 0;border:0}
3597
- .diag-banner{border-bottom:1px solid color-mix(in srgb,var(--warn) 40%,transparent);background:var(--warn-bg);color:var(--warn);padding:10px 20px;font-size:13px}.graph-panel{min-height:240px}.graph-disabled .hint{margin-top:6px}.scrim{display:none}.menu-btn{display:none}
3604
+ .diag-banner{border-bottom:1px solid color-mix(in srgb,var(--warn) 40%,transparent);background:var(--warn-bg);color:var(--warn);padding:10px 20px;font-size:13px}.graph-panel{min-height:240px}.graph-disabled,.graph-empty{border:1px solid var(--border);border-radius:8px;padding:14px;background:var(--surface-2)}.graph-empty{border-color:color-mix(in srgb,var(--info) 35%,var(--border));background:var(--info-bg)}.graph-disabled .hint{margin-top:6px}.scrim{display:none}.menu-btn{display:none}
3598
3605
  @media (max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:280px;z-index:50;transform:translateX(-100%);transition:transform .22s ease}body.nav-open .sidebar{transform:translateX(0);box-shadow:var(--shadow-pop)}body.nav-open .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40}.menu-btn{display:grid}.logs-layout{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.token-chip .lbl{display:none}}
3599
3606
  @media (max-width:560px){.screen{padding:16px 14px 32px}.screen-grid{grid-template-columns:1fr}.topbar{padding:0 14px}.refresh{display:none}}
3600
3607
  @media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
@@ -3922,6 +3929,7 @@ var CONSOLE_CLIENT_JS = `
3922
3929
  `;
3923
3930
 
3924
3931
  // src/console/render.ts
3932
+ var GRAPH_EMPTY_REMEDIATION = "No graph run yet. The tree fills when openteam-orchestrate dispatches roles; ordinary chat does not create a graph run.";
3925
3933
  var TIERS = [
3926
3934
  "trivial",
3927
3935
  "simple",
@@ -4408,7 +4416,7 @@ function renderGraphView(projection, options = {}) {
4408
4416
  return graphDisabledHint();
4409
4417
  }
4410
4418
  if (projection === null) {
4411
- return '<p class="muted">No active graph run.</p>';
4419
+ return graphEmptyHint();
4412
4420
  }
4413
4421
  if (projection.nodes.length === 0) {
4414
4422
  return '<p class="muted">The run has no nodes.</p>';
@@ -4466,6 +4474,13 @@ function graphDisabledHint() {
4466
4474
  "</div>"
4467
4475
  ].join("");
4468
4476
  }
4477
+ function graphEmptyHint() {
4478
+ return [
4479
+ '<div class="graph-empty" role="status">',
4480
+ `<p class="muted">${escapeHtml(GRAPH_EMPTY_REMEDIATION)}</p>`,
4481
+ "</div>"
4482
+ ].join("");
4483
+ }
4469
4484
  function routingScreenBody(state) {
4470
4485
  return [
4471
4486
  '<div class="screen-grid">',
@@ -7086,7 +7101,7 @@ async function runConsoleServe(deps, options) {
7086
7101
  endpoint,
7087
7102
  ...deps.serverPassword !== undefined ? { password: deps.serverPassword } : {}
7088
7103
  }));
7089
- const graphMode = config.graph?.mode ?? "off";
7104
+ const graphMode = config.graph?.mode ?? "shadow";
7090
7105
  const graphViewEnabled = config.console.graphView?.enabled === true;
7091
7106
  const buildGraphView2 = deps.createGraphViewProvider ?? createGraphViewProvider;
7092
7107
  const graphViewProvider = graphMode !== "off" && graphViewEnabled ? buildGraphView2({
@@ -8489,7 +8504,7 @@ import { z as z16 } from "zod";
8489
8504
 
8490
8505
  // src/config/resolve.ts
8491
8506
  function resolveGraphConfig(config, source) {
8492
- const configuredMode = config.graph?.mode ?? "off";
8507
+ const configuredMode = config.graph?.mode ?? "shadow";
8493
8508
  const killSwitch = config.graph?.killSwitch ?? false;
8494
8509
  const effectiveMode = killSwitch ? "off" : configuredMode;
8495
8510
  return {
@@ -15441,7 +15456,7 @@ async function buildMemoryRuntimeFromConfig(config, deps, options = {}) {
15441
15456
  // package.json
15442
15457
  var package_default = {
15443
15458
  name: "@jmanuelcorral/openteam",
15444
- version: "0.12.0",
15459
+ version: "0.13.0",
15445
15460
  packageManager: "bun@1.3.14",
15446
15461
  description: "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
15447
15462
  license: "MIT",
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,EAOL,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EACL,KAAK,cAAc,IAAI,kBAAkB,EAK1C,MAAM,mBAAmB,CAAC;AAE3B,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAE9D,0DAA0D;AAC1D,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,wQAOjC,CAAC;AAuCX,yEAAyE;AACzE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ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AE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C;;;;OAIG;IACH,0BAA0B,EAAE,CAC1B,KAAK,EAAE,SAAS,MAAM,EAAE,KACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClC,CAAC;AAKF,0EAA0E;AAC1E,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,eAAe,CAAC;AAiKpD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,CA+BR;AA0FD,wBAAsB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CA4SlE"}
@@ -1,37 +1,38 @@
1
1
  import type { GateViolation, GraphGateResult } from "./graphFeatureGate";
2
2
  import type { GraphMode, OpenTeamConfig } from "./schema";
3
3
  /**
4
- * Resolver **efectivo** y compartido de la config de Graph (GE-040).
4
+ * Shared effective resolver for Graph config (GE-040).
5
5
  *
6
- * CLI y plugin resuelven a través de esta única función, así que una misma
7
- * config produce exactamente el mismo resultado en ambos. Reglas:
6
+ * CLI and plugin resolve through this single function, so the same config
7
+ * produces the same result in both paths. Rules:
8
8
  *
9
- * - **Default off**: sin sección `graph`, el modo efectivo es `off`.
10
- * - **Kill switch en vivo**: si `killSwitch` está activo, el modo efectivo es
11
- * `off` sea cual sea el modo configurado.
12
- * - **Shadow sin executor**: solo `active` habilita el executor; `shadow` y
13
- * `off` no reciben executor.
14
- * - **Fuente visible**: el origen de la config se propaga al resultado.
9
+ * - **Default shadow**: without an explicit graph section, the effective mode
10
+ * is `shadow` after schema defaults.
11
+ * - **Live kill switch**: if `killSwitch` is active, the effective mode is
12
+ * `off` regardless of the configured mode.
13
+ * - **Shadow without executor**: only `active` enables the executor; `shadow`
14
+ * and `off` do not receive one.
15
+ * - **Visible source**: the config source is propagated to the result.
15
16
  * - **Cutover gate (GE-057)**: `active` mode additionally requires the cutover
16
17
  * gate to pass. When the gate denies, `effectiveMode` degrades to `off` and
17
18
  * `gateDenied` is `true`. This degradation is **never silent**: the wiring
18
19
  * layer emits warnings for each violation.
19
20
  *
20
- * Puro: sin I/O, reloj ni estado global.
21
+ * Pure: no I/O, clock, or global state.
21
22
  */
22
- /** Origen de la config resuelta (para trazabilidad/observabilidad). */
23
+ /** Resolved config source for traceability/observability. */
23
24
  export type ConfigSource = "file" | "options" | "default";
24
- /** Resolución efectiva de la config de Graph. */
25
+ /** Effective Graph config resolution. */
25
26
  export type ResolvedGraphConfig = {
26
- /** Modo declarado en la config (default `off`). */
27
+ /** Mode declared in config (default `shadow`). */
27
28
  readonly configuredMode: GraphMode;
28
- /** Modo efectivo tras aplicar el kill switch and cutover gate. */
29
+ /** Effective mode after applying the kill switch and cutover gate. */
29
30
  readonly effectiveMode: GraphMode;
30
- /** Solo `active` habilita el executor. */
31
+ /** Only `active` enables the executor. */
31
32
  readonly executorEnabled: boolean;
32
- /** Kill switch en vivo. */
33
+ /** Live kill switch. */
33
34
  readonly killSwitch: boolean;
34
- /** Origen de la config. */
35
+ /** Config source. */
35
36
  readonly source: ConfigSource;
36
37
  /**
37
38
  * `true` when the cutover gate denied `active` mode and degraded to `off`.
@@ -42,7 +43,7 @@ export type ResolvedGraphConfig = {
42
43
  /** Violations found by the cutover gate, if evaluated. */
43
44
  readonly gateViolations?: readonly GateViolation[];
44
45
  };
45
- /** Resuelve la config de Graph efectiva a partir de la config y su origen. */
46
+ /** Resolves the effective Graph config from the parsed config and source. */
46
47
  export declare function resolveGraphConfig(config: OpenTeamConfig, source: ConfigSource): ResolvedGraphConfig;
47
48
  /**
48
49
  * Applies the cutover gate result to a resolved config. When the gate denies
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AAEH,uEAAuE;AACvE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1D,iDAAiD;AACjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,mDAAmD;IACnD,QAAQ,CAAC,cAAc,EAAE,SAAS,CAAC;IACnC,kEAAkE;IAClE,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,2BAA2B;IAC3B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;CACpD,CAAC;AAEF,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,YAAY,GACnB,mBAAmB,CAWrB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,mBAAmB,EAC7B,UAAU,EAAE,eAAe,GAC1B,mBAAmB,CAWrB"}
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/config/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,6DAA6D;AAC7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1D,yCAAyC;AACzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,kDAAkD;IAClD,QAAQ,CAAC,cAAc,EAAE,SAAS,CAAC;IACnC,sEAAsE;IACtE,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,wBAAwB;IACxB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,qBAAqB;IACrB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;CACpD,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,YAAY,GACnB,mBAAmB,CAWrB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,mBAAmB,EAC7B,UAAU,EAAE,eAAe,GAC1B,mBAAmB,CAWrB"}
@@ -19,8 +19,10 @@ export declare const BaselineModeSchema: z.ZodEnum<{
19
19
  pinned: "pinned";
20
20
  }>;
21
21
  /**
22
- * Modo del subsistema Graph (GE-040). `off` mantiene el camino legacy; `shadow`
23
- * observa sin ejecutar efectos; `active` habilita el executor. Default `off`.
22
+ * Graph subsystem mode (GE-040). `off` keeps the legacy path only, `shadow`
23
+ * observes without executing effects, and `active` enables the executor behind
24
+ * the cutover gate. Default `shadow` so fresh/default installs populate the
25
+ * agent tree without opting in to active execution.
24
26
  */
25
27
  export declare const GraphModeSchema: z.ZodEnum<{
26
28
  active: "active";
@@ -85,7 +87,7 @@ export declare const ConsoleConfigSchema: z.ZodDefault<z.ZodObject<{
85
87
  enabled: z.ZodDefault<z.ZodBoolean>;
86
88
  pty: z.ZodOptional<z.ZodBoolean>;
87
89
  }, z.core.$strict>>;
88
- graphView: z.ZodOptional<z.ZodObject<{
90
+ graphView: z.ZodDefault<z.ZodObject<{
89
91
  enabled: z.ZodDefault<z.ZodBoolean>;
90
92
  }, z.core.$strict>>;
91
93
  }, z.core.$strict>>;
@@ -327,7 +329,7 @@ export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
327
329
  enabled: z.ZodDefault<z.ZodBoolean>;
328
330
  pty: z.ZodOptional<z.ZodBoolean>;
329
331
  }, z.core.$strict>>;
330
- graphView: z.ZodOptional<z.ZodObject<{
332
+ graphView: z.ZodDefault<z.ZodObject<{
331
333
  enabled: z.ZodDefault<z.ZodBoolean>;
332
334
  }, z.core.$strict>>;
333
335
  }, z.core.$strict>>;
@@ -379,7 +381,7 @@ export declare const OpenTeamConfigObjectSchema: z.ZodObject<{
379
381
  }, z.core.$strict>>;
380
382
  }, z.core.$strict>>;
381
383
  }, z.core.$strict>>;
382
- graph: z.ZodOptional<z.ZodObject<{
384
+ graph: z.ZodDefault<z.ZodObject<{
383
385
  mode: z.ZodDefault<z.ZodEnum<{
384
386
  active: "active";
385
387
  off: "off";
@@ -480,7 +482,7 @@ export declare const OpenTeamConfigSchema: z.ZodObject<{
480
482
  enabled: z.ZodDefault<z.ZodBoolean>;
481
483
  pty: z.ZodOptional<z.ZodBoolean>;
482
484
  }, z.core.$strict>>;
483
- graphView: z.ZodOptional<z.ZodObject<{
485
+ graphView: z.ZodDefault<z.ZodObject<{
484
486
  enabled: z.ZodDefault<z.ZodBoolean>;
485
487
  }, z.core.$strict>>;
486
488
  }, z.core.$strict>>;
@@ -532,7 +534,7 @@ export declare const OpenTeamConfigSchema: z.ZodObject<{
532
534
  }, z.core.$strict>>;
533
535
  }, z.core.$strict>>;
534
536
  }, z.core.$strict>>;
535
- graph: z.ZodOptional<z.ZodObject<{
537
+ graph: z.ZodDefault<z.ZodObject<{
536
538
  mode: z.ZodDefault<z.ZodEnum<{
537
539
  active: "active";
538
540
  off: "off";
@@ -558,9 +560,16 @@ export type RouterMode = z.infer<typeof RouterModeSchema>;
558
560
  export type PrivacyMode = z.infer<typeof PrivacyModeSchema>;
559
561
  export type GraphMode = z.infer<typeof GraphModeSchema>;
560
562
  export type GraphConfig = z.infer<typeof GraphConfigSchema>;
561
- export type OpenTeamConfig = z.infer<typeof OpenTeamConfigSchema>;
562
563
  export type LocalRuntime = z.infer<typeof LocalRuntimeSchema>;
563
- export type ConsoleConfig = z.infer<typeof ConsoleConfigSchema>;
564
+ type ParsedConsoleConfig = z.infer<typeof ConsoleConfigSchema>;
565
+ export type ConsoleConfig = Omit<ParsedConsoleConfig, "graphView"> & {
566
+ readonly graphView?: ParsedConsoleConfig["graphView"];
567
+ };
568
+ type ParsedOpenTeamConfig = z.infer<typeof OpenTeamConfigSchema>;
569
+ export type OpenTeamConfig = Omit<ParsedOpenTeamConfig, "console" | "graph"> & {
570
+ readonly console: ConsoleConfig;
571
+ readonly graph?: ParsedOpenTeamConfig["graph"];
572
+ };
564
573
  export type StorageConfig = z.infer<typeof StorageConfigSchema>;
565
574
  export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
566
575
  export type MemorySemanticConfig = z.infer<typeof MemorySemanticSchema>;
@@ -569,4 +578,5 @@ export type MemorySemanticConfig = z.infer<typeof MemorySemanticSchema>;
569
578
  * devuelve los defaults (memoria desactivada). Fuente única de defaults.
570
579
  */
571
580
  export declare function resolveMemorySemantic(config: OpenTeamConfig): MemorySemanticConfig;
581
+ export {};
572
582
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sour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,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,KAAK,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;CACvD,CAAC;AACF,KAAK,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG;IAC7E,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAChD,CAAC;AACF,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,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,cAAc,GACrB,oBAAoB,CAEtB"}
@@ -4,7 +4,7 @@
4
4
  * composición de paneles. No contienen datos de usuario; el `render.ts` escapa
5
5
  * todo el contenido dinámico antes de insertarlo.
6
6
  */
7
- export declare const CONSOLE_STYLE = "\n:root{color-scheme:dark;--bg:#0f0f0f;--surface:#17181b;--surface-2:#1e2024;--panel:var(--surface);--fg:#eceef1;--muted:#a2a8b2;--faint:#6b7079;--border:rgba(255,255,255,.08);--border-strong:rgba(255,255,255,.16);--line:var(--border);--accent:#35c07a;--accent-bg:rgba(53,192,122,.12);--accent-fg:#57d492;--good:var(--accent-fg);--local:#6aa6f5;--frontier:#e0a53a;--warn:#e0a53a;--warn-bg:rgba(224,165,58,.12);--danger:#f0687f;--danger-bg:rgba(240,104,127,.12);--info:#6aa6f5;--info-bg:rgba(106,166,245,.12);--font-sans:-apple-system,BlinkMacSystemFont,\"Segoe UI\",system-ui,sans-serif;--font-mono:\"JetBrains Mono\",\"IBM Plex Mono\",ui-monospace,\"SFMono-Regular\",Consolas,monospace;--shadow-pop:0 8px 28px rgba(0,0,0,.5);--sidebar-w:248px}\n*{box-sizing:border-box;margin:0;padding:0}\nhtml,body{height:100%}\nbody{background:var(--bg);color:var(--fg);font:14px/1.55 var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-numeric:tabular-nums}\n.mono,code,.hash{font-family:var(--font-mono);font-variant-numeric:tabular-nums}\nbutton{font:inherit;cursor:pointer}\nbutton:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}\n::selection{background:var(--accent-bg)}\n.app{display:grid;grid-template-columns:var(--sidebar-w) 1fr;grid-template-rows:100vh;min-height:100vh}\n.sidebar{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}\n.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 16px;border-bottom:1px solid var(--border)}\n.logo{width:26px;height:26px;border-radius:6px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}\n.logo svg{width:15px;height:15px}.brand .name{font-weight:600;letter-spacing:-.01em}.brand .tag{font:10px/1 var(--font-mono);letter-spacing:.08em;color:var(--accent-fg);background:var(--accent-bg);padding:3px 6px;border-radius:4px;margin-left:auto;text-transform:uppercase}\n.nav{padding:10px;display:flex;flex-direction:column;gap:2px}.nav-label{font:10px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--faint);padding:14px 8px 6px}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:7px;color:var(--muted);background:transparent;border:0;width:100%;text-align:left;letter-spacing:-.005em;transition:background .12s,color .12s}.nav-item svg{width:17px;height:17px;flex:none}.nav-item .count{margin-left:auto;font:11px/1 var(--font-mono);color:var(--faint)}.nav-item .pill{margin-left:auto}.nav-item:hover{background:var(--surface-2);color:var(--fg)}.nav-item[aria-current=\"page\"]{background:var(--accent-bg);color:var(--accent-fg);font-weight:550}.nav-item[aria-current=\"page\"] .count{color:var(--accent-fg)}\n.sidebar-foot{margin-top:auto;padding:14px 16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:8px}.host-row{display:flex;align-items:center;gap:8px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;background:var(--muted)}.dot.live,.dot.status-running{background:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}.dot.warn,.dot.status-waiting-input{background:var(--warn)}.dot.down{background:var(--danger)}.dot.status-idle{background:var(--muted)}.dot.status-ended{background:#6e7681}\n.main{min-width:0;min-height:0;display:flex;flex-direction:column}.topbar{height:56px;flex:none;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(8px);display:flex;align-items:center;gap:14px;padding:0 20px}.topbar h1{font-size:15px;font-weight:600;letter-spacing:-.01em}.refresh,.token-chip{display:inline-flex;align-items:center;gap:7px;font:11px/1 var(--font-mono);color:var(--muted);padding:5px 9px;border:1px solid var(--border);border-radius:6px;background:var(--surface)}.refresh .beat{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:beat 2s ease-in-out infinite}@keyframes beat{0%,100%{opacity:1}50%{opacity:.25}}.spacer{margin-left:auto}.icon-btn{width:34px;height:34px;border-radius:7px;border:1px solid var(--border);background:var(--surface);color:var(--muted);display:grid;place-items:center;transition:background .12s,color .12s,border-color .12s}.icon-btn:hover{background:var(--surface-2);color:var(--fg);border-color:var(--border-strong)}.icon-btn svg{width:17px;height:17px}.token-chip b{color:var(--fg);font-weight:600}\n.scroll{flex:1;overflow-y:auto;min-height:0}.screen{display:none;padding:22px 24px 40px;max-width:1320px}.screen.active{display:block}.screen[hidden]{display:none!important}.screen-head{margin-bottom:18px}.screen-head h2{font-size:19px;font-weight:600;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}.screen-head p{color:var(--muted);font-size:13px;margin-top:3px;max-width:74ch;text-wrap:pretty}.screen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.screen-grid .wide,.panel.wide{grid-column:1/-1}\n.panel,.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px}.panel h2,.panel h3,.card-head h3{font-size:13px;margin:0 0 12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.card-head{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--border);margin:-16px -16px 14px}.card-head .sub{font:11px/1 var(--font-mono);color:var(--faint);margin-left:auto}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:15px 16px;display:flex;flex-direction:column;gap:2px}.stat .k{font:11px/1 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.stat .v{font-size:20px;font-weight:600;letter-spacing:-.02em;margin-top:6px}.stat .d{font-size:12px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:6px}.good{color:var(--good)}.local{color:var(--local)}.frontier{color:var(--frontier)}.muted{color:var(--muted)}.faint{color:var(--faint)}\ntable{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)}th{font:11px/1 var(--font-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--faint);font-weight:500}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface-2)}td.num{text-align:right;font-family:var(--font-mono)}.hash{color:var(--faint)}\n.pill,.badge{display:inline-flex;align-items:center;gap:5px;font:11px/1 var(--font-mono);letter-spacing:.02em;padding:3px 8px;border-radius:999px;border:1px solid transparent}.pill.local,.badge.status-running{color:var(--accent-fg);background:var(--accent-bg);border-color:var(--accent-bg)}.pill.frontier{color:var(--info);background:var(--info-bg)}.pill.warn,.badge.status-waiting-input{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-bg)}.pill.danger{color:var(--danger);background:var(--danger-bg)}.pill.idle,.badge.status-idle,.badge.status-ended{color:var(--muted);background:var(--surface-2)}\n.progress{height:10px;background:var(--surface-2);border-radius:6px;overflow:hidden;border:1px solid var(--border)}.progress .bar{height:100%;background:var(--accent)}ul.items,ul.timeline{list-style:none;margin:8px 0 0;padding:0;max-height:320px;overflow:auto}ul.items li,ul.timeline li{padding:6px 0;border-bottom:1px solid var(--border)}ul.items li.done{color:var(--muted)}ul.items .box{font-family:var(--font-mono)}.who{color:var(--local)}.tag{color:var(--frontier);font-size:12px}.kind{display:inline-block;min-width:66px;color:var(--muted);font-size:12px}code{background:var(--bg);padding:1px 5px;border-radius:4px}\n.logs-layout{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start;margin-bottom:16px}.session-list{padding:6px;max-height:70vh;overflow-y:auto}.session-btn{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:7px;border:0;background:transparent;color:var(--muted);text-align:left;font:12px/1.3 var(--font-mono)}.session-btn:hover{background:var(--surface-2);color:var(--fg)}.session-btn.sel,.session-btn[aria-selected=\"true\"]{background:var(--accent-bg);color:var(--accent-fg)}.session-btn .sid{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-btn .n{margin-left:auto;color:var(--faint)}.session-detail{display:flex;flex-direction:column;gap:16px}.session-detail[hidden]{display:none}.empty-state{padding:28px;text-align:center;color:var(--muted)}\n.term .termlog,.pty .ptylog{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px;max-height:340px;overflow:auto;font-family:var(--font-mono);font-size:12px;white-space:pre-wrap}.term .tl{padding:1px 0}.term .tl.input{color:var(--local)}.term .tl.tool{color:var(--frontier)}.term .tl.status{color:var(--muted)}.term .tl.error{color:var(--danger)}.term .tl.permission{color:var(--frontier);font-weight:600}.term form.terminput,.pty form.ptyinput{display:flex;gap:8px;margin-top:10px}.term form.terminput input,.pty form.ptyinput input{flex:1;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font:inherit}.term form.terminput button{background:var(--local);color:#04122b;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600}.pty .ptylog{background:#05070a;color:#c8d1dc}.pty form.ptyinput button,.pty .pty-start{background:var(--frontier);color:#1a1200;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600;margin-top:8px}.pty .pty-start:disabled{opacity:.5;cursor:default}\n.config-panel{grid-column:1/-1}.config-form{display:flex;flex-direction:column;gap:12px}.config-note{margin:0;font-size:12px;color:var(--muted)}.config-note.config-overlay{color:var(--frontier)}.reload-legend h3,.config-summary h4{font-size:12px;margin:0 0 6px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.reload-table{width:100%}.reload-table th{white-space:nowrap;vertical-align:top;width:1%}.reload-table th.reload-hot{color:var(--good)}.reload-table th.reload-restart{color:var(--frontier)}.config-label{font-size:12px;color:var(--muted)}.config-json{width:100%;min-height:280px;resize:vertical;background:var(--bg);color:var(--fg);border:1px solid var(--border-strong);border-radius:8px;padding:10px;font-family:var(--font-mono);font-size:12px;line-height:1.5}.config-actions{display:flex;gap:8px}.config-save{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer}.config-save:disabled{opacity:.5;cursor:default}.config-result:empty{display:none}.config-summary{border:1px solid var(--border);border-radius:8px;padding:12px;margin-top:4px}.config-ok{margin:0 0 8px;color:var(--good);font-weight:600}.config-err{margin:0;color:var(--frontier);font-weight:600}.config-applied h4{color:var(--good)}.config-restart h4{color:var(--frontier)}.config-warn{margin:0 0 6px;color:var(--frontier);font-size:13px}.config-summary ul{margin:0;padding-left:18px}.config-summary li{padding:2px 0;border:0}\n.diag-banner{border-bottom:1px solid color-mix(in srgb,var(--warn) 40%,transparent);background:var(--warn-bg);color:var(--warn);padding:10px 20px;font-size:13px}.graph-panel{min-height:240px}.graph-disabled .hint{margin-top:6px}.scrim{display:none}.menu-btn{display:none}\n@media (max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:280px;z-index:50;transform:translateX(-100%);transition:transform .22s ease}body.nav-open .sidebar{transform:translateX(0);box-shadow:var(--shadow-pop)}body.nav-open .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40}.menu-btn{display:grid}.logs-layout{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.token-chip .lbl{display:none}}\n@media (max-width:560px){.screen{padding:16px 14px 32px}.screen-grid{grid-template-columns:1fr}.topbar{padding:0 14px}.refresh{display:none}}\n@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}\n";
7
+ export declare const CONSOLE_STYLE = "\n:root{color-scheme:dark;--bg:#0f0f0f;--surface:#17181b;--surface-2:#1e2024;--panel:var(--surface);--fg:#eceef1;--muted:#a2a8b2;--faint:#6b7079;--border:rgba(255,255,255,.08);--border-strong:rgba(255,255,255,.16);--line:var(--border);--accent:#35c07a;--accent-bg:rgba(53,192,122,.12);--accent-fg:#57d492;--good:var(--accent-fg);--local:#6aa6f5;--frontier:#e0a53a;--warn:#e0a53a;--warn-bg:rgba(224,165,58,.12);--danger:#f0687f;--danger-bg:rgba(240,104,127,.12);--info:#6aa6f5;--info-bg:rgba(106,166,245,.12);--font-sans:-apple-system,BlinkMacSystemFont,\"Segoe UI\",system-ui,sans-serif;--font-mono:\"JetBrains Mono\",\"IBM Plex Mono\",ui-monospace,\"SFMono-Regular\",Consolas,monospace;--shadow-pop:0 8px 28px rgba(0,0,0,.5);--sidebar-w:248px}\n*{box-sizing:border-box;margin:0;padding:0}\nhtml,body{height:100%}\nbody{background:var(--bg);color:var(--fg);font:14px/1.55 var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-numeric:tabular-nums}\n.mono,code,.hash{font-family:var(--font-mono);font-variant-numeric:tabular-nums}\nbutton{font:inherit;cursor:pointer}\nbutton:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}\n::selection{background:var(--accent-bg)}\n.app{display:grid;grid-template-columns:var(--sidebar-w) 1fr;grid-template-rows:100vh;min-height:100vh}\n.sidebar{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}\n.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 16px;border-bottom:1px solid var(--border)}\n.logo{width:26px;height:26px;border-radius:6px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}\n.logo svg{width:15px;height:15px}.brand .name{font-weight:600;letter-spacing:-.01em}.brand .tag{font:10px/1 var(--font-mono);letter-spacing:.08em;color:var(--accent-fg);background:var(--accent-bg);padding:3px 6px;border-radius:4px;margin-left:auto;text-transform:uppercase}\n.nav{padding:10px;display:flex;flex-direction:column;gap:2px}.nav-label{font:10px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--faint);padding:14px 8px 6px}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:7px;color:var(--muted);background:transparent;border:0;width:100%;text-align:left;letter-spacing:-.005em;transition:background .12s,color .12s}.nav-item svg{width:17px;height:17px;flex:none}.nav-item .count{margin-left:auto;font:11px/1 var(--font-mono);color:var(--faint)}.nav-item .pill{margin-left:auto}.nav-item:hover{background:var(--surface-2);color:var(--fg)}.nav-item[aria-current=\"page\"]{background:var(--accent-bg);color:var(--accent-fg);font-weight:550}.nav-item[aria-current=\"page\"] .count{color:var(--accent-fg)}\n.sidebar-foot{margin-top:auto;padding:14px 16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:8px}.host-row{display:flex;align-items:center;gap:8px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;background:var(--muted)}.dot.live,.dot.status-running{background:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}.dot.warn,.dot.status-waiting-input{background:var(--warn)}.dot.down{background:var(--danger)}.dot.status-idle{background:var(--muted)}.dot.status-ended{background:#6e7681}\n.main{min-width:0;min-height:0;display:flex;flex-direction:column}.topbar{height:56px;flex:none;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(8px);display:flex;align-items:center;gap:14px;padding:0 20px}.topbar h1{font-size:15px;font-weight:600;letter-spacing:-.01em}.refresh,.token-chip{display:inline-flex;align-items:center;gap:7px;font:11px/1 var(--font-mono);color:var(--muted);padding:5px 9px;border:1px solid var(--border);border-radius:6px;background:var(--surface)}.refresh .beat{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:beat 2s ease-in-out infinite}@keyframes beat{0%,100%{opacity:1}50%{opacity:.25}}.spacer{margin-left:auto}.icon-btn{width:34px;height:34px;border-radius:7px;border:1px solid var(--border);background:var(--surface);color:var(--muted);display:grid;place-items:center;transition:background .12s,color .12s,border-color .12s}.icon-btn:hover{background:var(--surface-2);color:var(--fg);border-color:var(--border-strong)}.icon-btn svg{width:17px;height:17px}.token-chip b{color:var(--fg);font-weight:600}\n.scroll{flex:1;overflow-y:auto;min-height:0}.screen{display:none;padding:22px 24px 40px;max-width:1320px}.screen.active{display:block}.screen[hidden]{display:none!important}.screen-head{margin-bottom:18px}.screen-head h2{font-size:19px;font-weight:600;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}.screen-head p{color:var(--muted);font-size:13px;margin-top:3px;max-width:74ch;text-wrap:pretty}.screen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.screen-grid .wide,.panel.wide{grid-column:1/-1}\n.panel,.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px}.panel h2,.panel h3,.card-head h3{font-size:13px;margin:0 0 12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.card-head{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--border);margin:-16px -16px 14px}.card-head .sub{font:11px/1 var(--font-mono);color:var(--faint);margin-left:auto}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:15px 16px;display:flex;flex-direction:column;gap:2px}.stat .k{font:11px/1 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.stat .v{font-size:20px;font-weight:600;letter-spacing:-.02em;margin-top:6px}.stat .d{font-size:12px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:6px}.good{color:var(--good)}.local{color:var(--local)}.frontier{color:var(--frontier)}.muted{color:var(--muted)}.faint{color:var(--faint)}\ntable{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)}th{font:11px/1 var(--font-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--faint);font-weight:500}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface-2)}td.num{text-align:right;font-family:var(--font-mono)}.hash{color:var(--faint)}\n.pill,.badge{display:inline-flex;align-items:center;gap:5px;font:11px/1 var(--font-mono);letter-spacing:.02em;padding:3px 8px;border-radius:999px;border:1px solid transparent}.pill.local,.badge.status-running{color:var(--accent-fg);background:var(--accent-bg);border-color:var(--accent-bg)}.pill.frontier{color:var(--info);background:var(--info-bg)}.pill.warn,.badge.status-waiting-input{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-bg)}.pill.danger{color:var(--danger);background:var(--danger-bg)}.pill.idle,.badge.status-idle,.badge.status-ended{color:var(--muted);background:var(--surface-2)}\n.progress{height:10px;background:var(--surface-2);border-radius:6px;overflow:hidden;border:1px solid var(--border)}.progress .bar{height:100%;background:var(--accent)}ul.items,ul.timeline{list-style:none;margin:8px 0 0;padding:0;max-height:320px;overflow:auto}ul.items li,ul.timeline li{padding:6px 0;border-bottom:1px solid var(--border)}ul.items li.done{color:var(--muted)}ul.items .box{font-family:var(--font-mono)}.who{color:var(--local)}.tag{color:var(--frontier);font-size:12px}.kind{display:inline-block;min-width:66px;color:var(--muted);font-size:12px}code{background:var(--bg);padding:1px 5px;border-radius:4px}\n.logs-layout{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start;margin-bottom:16px}.session-list{padding:6px;max-height:70vh;overflow-y:auto}.session-btn{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:7px;border:0;background:transparent;color:var(--muted);text-align:left;font:12px/1.3 var(--font-mono)}.session-btn:hover{background:var(--surface-2);color:var(--fg)}.session-btn.sel,.session-btn[aria-selected=\"true\"]{background:var(--accent-bg);color:var(--accent-fg)}.session-btn .sid{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-btn .n{margin-left:auto;color:var(--faint)}.session-detail{display:flex;flex-direction:column;gap:16px}.session-detail[hidden]{display:none}.empty-state{padding:28px;text-align:center;color:var(--muted)}\n.term .termlog,.pty .ptylog{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px;max-height:340px;overflow:auto;font-family:var(--font-mono);font-size:12px;white-space:pre-wrap}.term .tl{padding:1px 0}.term .tl.input{color:var(--local)}.term .tl.tool{color:var(--frontier)}.term .tl.status{color:var(--muted)}.term .tl.error{color:var(--danger)}.term .tl.permission{color:var(--frontier);font-weight:600}.term form.terminput,.pty form.ptyinput{display:flex;gap:8px;margin-top:10px}.term form.terminput input,.pty form.ptyinput input{flex:1;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font:inherit}.term form.terminput button{background:var(--local);color:#04122b;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600}.pty .ptylog{background:#05070a;color:#c8d1dc}.pty form.ptyinput button,.pty .pty-start{background:var(--frontier);color:#1a1200;border:none;border-radius:8px;padding:8px 16px;font:inherit;font-weight:600;margin-top:8px}.pty .pty-start:disabled{opacity:.5;cursor:default}\n.config-panel{grid-column:1/-1}.config-form{display:flex;flex-direction:column;gap:12px}.config-note{margin:0;font-size:12px;color:var(--muted)}.config-note.config-overlay{color:var(--frontier)}.reload-legend h3,.config-summary h4{font-size:12px;margin:0 0 6px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.reload-table{width:100%}.reload-table th{white-space:nowrap;vertical-align:top;width:1%}.reload-table th.reload-hot{color:var(--good)}.reload-table th.reload-restart{color:var(--frontier)}.config-label{font-size:12px;color:var(--muted)}.config-json{width:100%;min-height:280px;resize:vertical;background:var(--bg);color:var(--fg);border:1px solid var(--border-strong);border-radius:8px;padding:10px;font-family:var(--font-mono);font-size:12px;line-height:1.5}.config-actions{display:flex;gap:8px}.config-save{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer}.config-save:disabled{opacity:.5;cursor:default}.config-result:empty{display:none}.config-summary{border:1px solid var(--border);border-radius:8px;padding:12px;margin-top:4px}.config-ok{margin:0 0 8px;color:var(--good);font-weight:600}.config-err{margin:0;color:var(--frontier);font-weight:600}.config-applied h4{color:var(--good)}.config-restart h4{color:var(--frontier)}.config-warn{margin:0 0 6px;color:var(--frontier);font-size:13px}.config-summary ul{margin:0;padding-left:18px}.config-summary li{padding:2px 0;border:0}\n.diag-banner{border-bottom:1px solid color-mix(in srgb,var(--warn) 40%,transparent);background:var(--warn-bg);color:var(--warn);padding:10px 20px;font-size:13px}.graph-panel{min-height:240px}.graph-disabled,.graph-empty{border:1px solid var(--border);border-radius:8px;padding:14px;background:var(--surface-2)}.graph-empty{border-color:color-mix(in srgb,var(--info) 35%,var(--border));background:var(--info-bg)}.graph-disabled .hint{margin-top:6px}.scrim{display:none}.menu-btn{display:none}\n@media (max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:280px;z-index:50;transform:translateX(-100%);transition:transform .22s ease}body.nav-open .sidebar{transform:translateX(0);box-shadow:var(--shadow-pop)}body.nav-open .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40}.menu-btn{display:grid}.logs-layout{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.token-chip .lbl{display:none}}\n@media (max-width:560px){.screen{padding:16px 14px 32px}.screen-grid{grid-template-columns:1fr}.topbar{padding:0 14px}.refresh{display:none}}\n@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}\n";
8
8
  /**
9
9
  * Estilos del render del grafo de agentes (GE-083). Se inyectan en el `<style>`
10
10
  * **solo** cuando la vista del grafo está habilitada, de modo que con la vista
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/console/assets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,27XA6BzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,klFA4CvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,4vXA2Q7B,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/console/assets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,upYA6BzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,klFA4CvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,4vXA2Q7B,CAAC"}
@@ -1,17 +1,12 @@
1
1
  import type { GraphViewProjectionV1 } from "../telemetry/graphView";
2
2
  import type { ConsoleState } from "./types";
3
+ export declare const GRAPH_EMPTY_REMEDIATION: "No graph run yet. The tree fills when openteam-orchestrate dispatches roles; ordinary chat does not create a graph run.";
3
4
  /** Escapa texto para HTML. Evita fuga de markup y roturas de `</script>`. Pure. */
4
5
  export declare function escapeHtml(value: string): string;
5
6
  /**
6
- * Renderiza el DAG del grafo de agentes como SVG **determinista** a partir de la
7
- * proyección reference-only (GE-083). Colorea cada nodo por estado y pinta los
8
- * badges de intento/error/timeout/cancelación/veredicto/linaje. Escapa todo
9
- * identificador; **nunca** incluye contenido crudo. Puro: mismas entradas ->
10
- * misma salida.
11
- *
12
- * Con `options.disabled` (la vista del grafo está apagada por `graph.mode`), no
13
- * pinta el DAG: devuelve una **guía de remediación** que nombra la clave de
14
- * config a cambiar. Determinista.
7
+ * Renders the agent graph DAG as deterministic SVG from the reference-only
8
+ * projection (GE-083). With `options.disabled`, returns the config remediation.
9
+ * With `projection === null`, returns the enabled-but-empty explanation.
15
10
  */
16
11
  export declare function renderGraphView(projection: GraphViewProjectionV1 | null, options?: {
17
12
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/console/render.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAGV,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAGV,YAAY,EAIb,MAAM,SAAS,CAAC;AASjB,mFAAmF;AACnF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOhD;AAwmBD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,qBAAqB,GAAG,IAAI,EACxC,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GACnC,MAAM,CA2BR;AA+KD,MAAM,MAAM,aAAa,GAAG;IAC1B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oDAAoD;IACpD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,UAAU,EAAE,q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ClD;;;WAGG;QACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;CAC/C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,OAAO,GAAE,aAAkB,GAC1B,MAAM,CA8FR"}
package/dist/index.js CHANGED
@@ -293,7 +293,7 @@ var GraphEngineSchema = z2.enum(["builtin", "langgraph"]);
293
293
  var DEFAULT_GRAPH_JOURNAL_ROOT = ".opencode/openteam-local/graph/runs";
294
294
  var DEFAULT_GRAPH_WORKTREES_DIR = ".opencode/openteam-local/graph/worktrees";
295
295
  var GraphConfigSchema = z2.object({
296
- mode: GraphModeSchema.default("off"),
296
+ mode: GraphModeSchema.default("shadow"),
297
297
  engine: GraphEngineSchema.optional(),
298
298
  killSwitch: z2.boolean().default(false),
299
299
  journalRoot: z2.string().min(1).default(DEFAULT_GRAPH_JOURNAL_ROOT),
@@ -316,8 +316,8 @@ var ConsoleConfigSchema = z2.object({
316
316
  pty: z2.boolean().optional()
317
317
  }).strict().default({ enabled: true }),
318
318
  graphView: z2.object({
319
- enabled: z2.boolean().default(false)
320
- }).strict().optional()
319
+ enabled: z2.boolean().default(true)
320
+ }).strict().default({ enabled: true })
321
321
  }).strict().default({
322
322
  host: "127.0.0.1",
323
323
  port: 4599,
@@ -326,7 +326,8 @@ var ConsoleConfigSchema = z2.object({
326
326
  recentRoutes: 50,
327
327
  openBrowser: false,
328
328
  remoteStorage: false,
329
- terminal: { enabled: true }
329
+ terminal: { enabled: true },
330
+ graphView: { enabled: true }
330
331
  });
331
332
  var DEFAULT_STORAGE_SQLITE_INDEX_PATH = ".opencode/openteam-local/index.sqlite";
332
333
  var StorageConfigSchema = z2.object({
@@ -505,7 +506,13 @@ var OpenTeamConfigObjectSchema = z2.object({
505
506
  console: ConsoleConfigSchema,
506
507
  storage: StorageConfigSchema,
507
508
  memory: MemoryConfigSchema.optional(),
508
- graph: GraphConfigSchema.optional(),
509
+ graph: GraphConfigSchema.default({
510
+ mode: "shadow",
511
+ killSwitch: false,
512
+ journalRoot: DEFAULT_GRAPH_JOURNAL_ROOT,
513
+ operatorApproval: false,
514
+ worktrees: { enabled: false }
515
+ }),
509
516
  orchestrator: OrchestratorConfigSchema.optional()
510
517
  }).strict();
511
518
  var OpenTeamConfigSchema = OpenTeamConfigObjectSchema;
@@ -2855,7 +2862,7 @@ function loadOpenTeamConfig(raw) {
2855
2862
 
2856
2863
  // src/config/resolve.ts
2857
2864
  function resolveGraphConfig(config, source) {
2858
- const configuredMode = config.graph?.mode ?? "off";
2865
+ const configuredMode = config.graph?.mode ?? "shadow";
2859
2866
  const killSwitch = config.graph?.killSwitch ?? false;
2860
2867
  const effectiveMode = killSwitch ? "off" : configuredMode;
2861
2868
  return {
@@ -13029,7 +13036,7 @@ var createOtlpSpanExporter = (connection, config) => {
13029
13036
  // package.json
13030
13037
  var package_default = {
13031
13038
  name: "@jmanuelcorral/openteam",
13032
- version: "0.12.0",
13039
+ version: "0.13.0",
13033
13040
  packageManager: "bun@1.3.14",
13034
13041
  description: "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
13035
13042
  license: "MIT",
@@ -1,36 +1,35 @@
1
1
  import type { IncomingMessage, ServerResponse } from "node:http";
2
2
  import type { GraphViewProjectionV1 } from "../telemetry/graphView";
3
3
  /**
4
- * Endpoint HTTP **additivo** que sirve la proyección reference-only de la vista
5
- * del grafo (GE-082): `GET /api/graph` (JSON) y el marco SSE `event: graph` que
6
- * se empuja en cada cambio de runtime por el canal `/events` existente.
4
+ * Additive HTTP endpoint serving the graph view's reference-only projection
5
+ * (GE-082): `GET /api/graph` (JSON) and the SSE `event: graph` frame pushed on
6
+ * every runtime change through the existing `/events` channel.
7
7
  *
8
- * Seguridad — **paridad de token con `/api/state`**: cuando la Console se expone
9
- * en remoto (con `storageApi`), `remoteToken` exige el mismo token efímero que el
10
- * resto de rutas de lectura; sin él → 401. En loopback puro (`remoteToken`
11
- * indefinido) queda abierto, igual que `/api/state`.
8
+ * Security — **token parity with `/api/state`**: when the Console is exposed
9
+ * remotely (with `storageApi`), `remoteToken` requires the same ephemeral token
10
+ * as the other read routes; without it → 401. On pure loopback
11
+ * (`remoteToken` undefined), it stays open like `/api/state`.
12
12
  *
13
- * Solo lectura y additivo: ninguna página enlaza este endpoint todavía, así que
14
- * la Console por defecto (sin `graphApi` inyectado) es idéntica a hoy.
13
+ * Read-only and additive: if no `graphApi` is wired, the route answers a typed
14
+ * disabled envelope so the shell can explain how to re-enable the tree.
15
15
  */
16
16
  export type GraphRouteDeps = {
17
- /** Proyección actual de la vista, o `null` cuando no hay run activo. */
17
+ /** Current graph-view projection, or `null` when there is no active run. */
18
18
  readView: () => Promise<GraphViewProjectionV1 | null>;
19
19
  /**
20
- * Token de exposición remota, en paridad con `/api/state`. `undefined` en
21
- * loopback puro (ruta abierta).
20
+ * Remote-exposure token, in parity with `/api/state`. `undefined` on pure
21
+ * loopback (open route).
22
22
  */
23
23
  remoteToken?: string;
24
24
  };
25
25
  /**
26
26
  * Payload served by `GET /api/graph` when no graph provider is wired.
27
27
  *
28
- * Lighting up the agent tree requires two independent opt-ins, both off by
29
- * default: `graph.mode` (must not be `"off"`) and `console.graphView.enabled`.
30
- * Before #155 the route simply did not mount in that case, so a default install
31
- * got a bare 404 and the UI could not distinguish "the graph is off" from "this
32
- * console has no such endpoint". Answering a typed envelope lets the agent-tree
33
- * screen render the remediation hint instead of a dead panel.
28
+ * Lighting up the agent tree requires `graph.mode` to be non-`"off"` and
29
+ * `console.graphView.enabled` to be `true`. Those are now defaults, but this
30
+ * envelope remains important when an operator explicitly disables either side:
31
+ * the UI can distinguish "the graph is off" from "this console has no such
32
+ * endpoint" and render the remediation hint instead of a dead panel.
34
33
  */
35
34
  export type GraphDisabledEnvelope = {
36
35
  readonly disabled: true;
@@ -40,9 +39,9 @@ export type GraphDisabledEnvelope = {
40
39
  /** Remediation text naming both flags the operator has to set. */
41
40
  export declare const GRAPH_DISABLED_REMEDIATION: 'Agent tree is off. In .opencode/openteam.json set graph.mode to a value other than "off" and console.graphView.enabled to true, then restart the console.';
42
41
  export declare const GRAPH_DISABLED_ENVELOPE: GraphDisabledEnvelope;
43
- /** Tipo de evento SSE del canal de grafo, multiplexado sobre `/events`. */
42
+ /** SSE event type for the graph channel, multiplexed over `/events`. */
44
43
  export declare const GRAPH_SSE_EVENT: "graph";
45
- /** Marco SSE del canal de grafo para un payload JSON ya serializado. */
44
+ /** Graph-channel SSE frame for an already serialized JSON payload. */
46
45
  export declare function graphSseMessage(json: string): string;
47
46
  /**
48
47
  * Enruta `GET /api/graph`. Devuelve `true` si atendió (y respondió) la petición,
@@ -1 +1 @@
1
- {"version":3,"file":"graphRoute.d.ts","sourceRoot":"","sources":["../../src/web/graphRoute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,wEAAwE;IACxE,QAAQ,EAAE,MAAM,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IACtD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE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sEAAsE;AACtE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAoBD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,EACxB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,OAAO,CAAC,CAsBlB"}
@@ -67,9 +67,9 @@ export type ConsoleServerDeps = {
67
67
  * (`console.graphView.enabled`) but the graph engine is off (`graph.mode` ==
68
68
  * "off"), so no `graphApi` provider is wired. The shell still mounts the
69
69
  * agent-tree tab and renders the `graph.mode` remediation hint instead of a
70
- * bare-missing tab (PRD W7 acceptance #9). `/api/graph` and the SSE `graph`
71
- * frame stay absent because they follow `graphApi`. Absent/`false` → behaviour
72
- * is identical to today.
70
+ * bare-missing tab (PRD W7 acceptance #9). `GET /api/graph` still answers a
71
+ * disabled envelope; the SSE `graph` frame stays absent because it follows
72
+ * `graphApi`. Absent/`false` means the tree is not marked disabled.
73
73
  */
74
74
  graphDisabled?: boolean;
75
75
  };
@@ -52,10 +52,9 @@ export type ConsoleRuntimeDeps = {
52
52
  /** Endpoint remoto de storage (`/storage/*`). Opcional y opt-in. */
53
53
  storageApi?: StorageRouteDeps;
54
54
  /**
55
- * Proveedor reference-only de la vista del grafo (GE-083). Solo se cablea como
56
- * `graphApi` (activando `/api/graph`, el canal SSE `graph` y el render del DAG)
57
- * cuando `config.graphView.enabled` es `true`; en caso contrario la Console es
58
- * idéntica a hoy.
55
+ * Reference-only graph-view provider (GE-083). Wired as `graphApi` (enabling
56
+ * `/api/graph`, the `graph` SSE channel, and DAG rendering) when
57
+ * `config.graphView.enabled` is `true`; explicit `false` keeps it disabled.
59
58
  */
60
59
  graphView?: {
61
60
  readView: () => Promise<GraphViewProjectionV1 | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/web/start.ts"],"names":[],"mappings":"AAAA,OA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IACtE,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,OAAO,CAAC;QACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,aAAa,CAAC;QAClD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;KACnD,CAAC;IACF,oEAAoE;IACpE,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE;QACV,QAAQ,EAAE,MAAM,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;KACvD,CAAC;IACF,8BAA8B;IAC9B,KAAK,CAAC,EAAE,cAAc,UAAU,EAAE,mBAAmB,CAAC;IACtD,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAC3E,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,cAAc,CAAC,CAEzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmanuelcorral/openteam",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Cost-aware, local-first routing plugin for opencode with cheapest-capable frontier fallback and multi-agent orchestration.",
6
6
  "license": "MIT",