@jmanuelcorral/openteam 0.19.0 → 0.20.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 +10 -2
- package/README.md +9 -2
- package/dist/certificates/graph-release-certificate.json +2 -2
- package/dist/certificates/graph-shadow-certificate.json +2 -2
- package/dist/cli/consoleServe.d.ts +16 -0
- package/dist/cli/consoleServe.d.ts.map +1 -1
- package/dist/cli/graphOperator.d.ts +10 -1
- package/dist/cli/graphOperator.d.ts.map +1 -1
- package/dist/cli/lifecycleHistoryProvider.d.ts +21 -0
- package/dist/cli/lifecycleHistoryProvider.d.ts.map +1 -0
- package/dist/cli.d.ts +3 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6163 -1632
- package/dist/config/errors.d.ts.map +1 -1
- package/dist/config/schema.d.ts +31 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/console/assets.d.ts +22 -1
- package/dist/console/assets.d.ts.map +1 -1
- package/dist/console/render.d.ts +12 -0
- package/dist/console/render.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2849 -261
- package/dist/lifecycle/contracts.d.ts +618 -0
- package/dist/lifecycle/contracts.d.ts.map +1 -0
- package/dist/lifecycle/historyReader.d.ts +11 -0
- package/dist/lifecycle/historyReader.d.ts.map +1 -0
- package/dist/lifecycle/historySourceError.d.ts +7 -0
- package/dist/lifecycle/historySourceError.d.ts.map +1 -0
- package/dist/lifecycle/project.d.ts +3 -0
- package/dist/lifecycle/project.d.ts.map +1 -0
- package/dist/lifecycle/root.d.ts +3 -0
- package/dist/lifecycle/root.d.ts.map +1 -0
- package/dist/lifecycle/runtimeRecorder.d.ts +6 -0
- package/dist/lifecycle/runtimeRecorder.d.ts.map +1 -0
- package/dist/lifecycle/schema.d.ts +487 -0
- package/dist/lifecycle/schema.d.ts.map +1 -0
- package/dist/messages/index.d.ts +1 -0
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/messages/lifecycle.d.ts +95 -0
- package/dist/messages/lifecycle.d.ts.map +1 -0
- package/dist/messages/lifecycleRuntime.d.ts +4 -0
- package/dist/messages/lifecycleRuntime.d.ts.map +1 -0
- package/dist/messages/lifecycleStorage.d.ts +4 -0
- package/dist/messages/lifecycleStorage.d.ts.map +1 -0
- package/dist/orchestrator/coordinator.d.ts +11 -1
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/graphIngress.d.ts +5 -0
- package/dist/orchestrator/graphIngress.d.ts.map +1 -1
- package/dist/orchestrator/graphRuntime.d.ts +13 -1
- package/dist/orchestrator/graphRuntime.d.ts.map +1 -1
- package/dist/orchestrator/subsessions.d.ts +3 -0
- package/dist/orchestrator/subsessions.d.ts.map +1 -1
- package/dist/plugin/orchestrateTool.d.ts +3 -0
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/dist/storage/lifecycle/codec.d.ts +19 -0
- package/dist/storage/lifecycle/codec.d.ts.map +1 -0
- package/dist/storage/lifecycle/fsLifecycleJournal.d.ts +3 -0
- package/dist/storage/lifecycle/fsLifecycleJournal.d.ts.map +1 -0
- package/dist/storage/lifecycle/fsLifecycleSupport.d.ts +17 -0
- package/dist/storage/lifecycle/fsLifecycleSupport.d.ts.map +1 -0
- package/dist/storage/lifecycle/fsLifecycleWriterLivenessProbe.d.ts +3 -0
- package/dist/storage/lifecycle/fsLifecycleWriterLivenessProbe.d.ts.map +1 -0
- package/dist/web/graphRoute.d.ts +39 -1
- package/dist/web/graphRoute.d.ts.map +1 -1
- package/dist/web/server.d.ts +19 -0
- package/dist/web/server.d.ts.map +1 -1
- package/dist/web/start.d.ts +11 -0
- package/dist/web/start.d.ts.map +1 -1
- package/dist/web/watch.d.ts +17 -2
- package/dist/web/watch.d.ts.map +1 -1
- package/package.json +1 -1
package/README.es.md
CHANGED
|
@@ -49,6 +49,9 @@ estrecha un agente a `local` bajo el modo global `mixed`.
|
|
|
49
49
|
- Pines exactos o `"auto"` por agente, fallbacks ordenados opcionales y relevo acotado de modelo para nodos incompletos.
|
|
50
50
|
- Orquestación multiagente con subsesiones SDK y modelo explícito en `client.session.prompt({ body: { model } })`.
|
|
51
51
|
- Refresh de disponibilidad local al arrancar y en eventos `session.created` / `session.idle`.
|
|
52
|
+
- Una [línea de tiempo de agentes](docs/es/guide/agent-timeline.md) solo de
|
|
53
|
+
metadatos, con historial duradero del coordinador y los intentos, cursor
|
|
54
|
+
histórico y avisos de actualización en vivo.
|
|
52
55
|
|
|
53
56
|
## Requisitos
|
|
54
57
|
|
|
@@ -687,7 +690,12 @@ Puedes ajustar host/puerto y la terminal en `.opencode/openteam.json` (bloque
|
|
|
687
690
|
}
|
|
688
691
|
```
|
|
689
692
|
|
|
690
|
-
|
|
693
|
+
**Árbol de agentes y línea de tiempo.**
|
|
694
|
+
`console.graphView.enabled` vale `true` por defecto. El historial nativo del
|
|
695
|
+
ciclo de vida se compone con independencia de la autoridad de ejecución de
|
|
696
|
+
Graph; el DAG separado de Graph sigue el `graph.mode` efectivo. Consulta
|
|
697
|
+
[Línea de tiempo de agentes](docs/es/guide/agent-timeline.md) y
|
|
698
|
+
[Web de observabilidad del grafo](docs/es/guide/graph-observability-web.md).
|
|
691
699
|
|
|
692
700
|
> **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.
|
|
693
701
|
|
|
@@ -906,7 +914,7 @@ Consulta [docs/compatibility.md](docs/compatibility.md). Resumen verificado el `
|
|
|
906
914
|
|
|
907
915
|
| Superficie | Versión / contrato |
|
|
908
916
|
| --- | --- |
|
|
909
|
-
| openteam | `0.
|
|
917
|
+
| openteam | `0.20.0`; versión actual del paquete |
|
|
910
918
|
| `@opencode-ai/plugin` | `1.18.19` |
|
|
911
919
|
| `@opencode-ai/sdk` | `1.18.19` |
|
|
912
920
|
| Hook de routing | `chat.message`; no `chat.params` para cambiar modelo |
|
package/README.md
CHANGED
|
@@ -55,6 +55,9 @@ or narrow an agent to `local` under global `mixed`, when frontier is prohibited.
|
|
|
55
55
|
- Per-agent exact pins or `"auto"`, optional ordered fallbacks, and bounded cross-model handoff for an incomplete node.
|
|
56
56
|
- Multi-agent orchestration with SDK child sessions and an explicit model in `client.session.prompt({ body: { model } })`.
|
|
57
57
|
- Local availability refresh at startup and on `session.created` / `session.idle` events.
|
|
58
|
+
- A metadata-only [agent timeline](docs/guide/agent-timeline.md) with durable
|
|
59
|
+
coordinator/attempt history, historical cursor inspection, and live
|
|
60
|
+
invalidation hints.
|
|
58
61
|
- A local web **Console** aggregating every opencode session (cost, tokens, tool calls, routing, decisions) — redacted, loopback-only.
|
|
59
62
|
- A read-only **MCP server** exposing aggregated team memory, plus opt-in semantic recall.
|
|
60
63
|
|
|
@@ -680,7 +683,11 @@ block):
|
|
|
680
683
|
}
|
|
681
684
|
```
|
|
682
685
|
|
|
683
|
-
**
|
|
686
|
+
**Agent tree and timeline.** `console.graphView.enabled` defaults to `true`.
|
|
687
|
+
Native lifecycle history is composed independently of Graph execution
|
|
688
|
+
authority; the separate Graph DAG follows the effective `graph.mode`. See
|
|
689
|
+
[Agent timeline](docs/guide/agent-timeline.md) and
|
|
690
|
+
[Graph observability web](docs/guide/graph-observability-web.md).
|
|
684
691
|
|
|
685
692
|
> **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.
|
|
686
693
|
|
|
@@ -867,7 +874,7 @@ See [docs/compatibility.md](docs/compatibility.md). Verified summary as of `2026
|
|
|
867
874
|
|
|
868
875
|
| Surface | Version / contract |
|
|
869
876
|
| --- | --- |
|
|
870
|
-
| openteam | `0.
|
|
877
|
+
| openteam | `0.20.0`; current package version |
|
|
871
878
|
| `@opencode-ai/plugin` | `1.18.19` |
|
|
872
879
|
| `@opencode-ai/sdk` | `1.18.19` |
|
|
873
880
|
| Routing hook | `chat.message`; not `chat.params` for model changes |
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"idempotent": true
|
|
35
35
|
},
|
|
36
36
|
"performance": {
|
|
37
|
-
"p95Millis": 0.
|
|
37
|
+
"p95Millis": 0.5245730000000322,
|
|
38
38
|
"budgetMillis": 50,
|
|
39
39
|
"samples": 100
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"verdict": "pass",
|
|
43
43
|
"failedGates": [],
|
|
44
|
-
"digest": "
|
|
44
|
+
"digest": "4ee8df230f77d9a7b3120562b41efeab67b1ec886bb3b4c76103b2c53c2b1e03"
|
|
45
45
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"rawFindings": 0
|
|
21
21
|
},
|
|
22
22
|
"overhead": {
|
|
23
|
-
"p95Millis": 0.
|
|
23
|
+
"p95Millis": 0.39131399999999417,
|
|
24
24
|
"budgetMillis": 25,
|
|
25
25
|
"samples": 1000
|
|
26
26
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"verdict": "pass",
|
|
37
37
|
"failedGates": [],
|
|
38
|
-
"digest": "
|
|
38
|
+
"digest": "5fa40be515345b476e0c636068a7c76dd6adf36ab41c7506b915546f7ed7394f"
|
|
39
39
|
}
|
|
@@ -3,6 +3,7 @@ import type { OpenTeamConfig } from "../config/schema";
|
|
|
3
3
|
import { type ConsoleClient } from "../console/opencodeClient";
|
|
4
4
|
import { type PtyClient } from "../console/pty";
|
|
5
5
|
import type { CommitView } from "../console/types";
|
|
6
|
+
import type { LifecycleHistoryReader } from "../lifecycle/contracts";
|
|
6
7
|
import { type BuildSqliteIndexResult } from "../storage/index/bunSqlite";
|
|
7
8
|
import type { StorageProvider } from "../storage/provider";
|
|
8
9
|
import type { ConsoleRuntime, ConsoleRuntimeDeps } from "../web/start";
|
|
@@ -54,6 +55,21 @@ export type ConsoleServeDeps = {
|
|
|
54
55
|
createGraphViewProvider?: (deps: GraphViewProviderDeps) => {
|
|
55
56
|
readView: () => Promise<import("../telemetry/graphView").GraphViewProjectionV1 | null>;
|
|
56
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Lifecycle history reader for `GET /api/graph?run=&cursor=` and SSE
|
|
60
|
+
* `graph-append` events. Injectable for tests; when provided it supersedes
|
|
61
|
+
* the legacy graph-view route. When undefined (default), the legacy
|
|
62
|
+
* graph-view route is used. In production, this is created by
|
|
63
|
+
* `createLifecycleHistoryProvider` once Yen's storage layer lands.
|
|
64
|
+
*/
|
|
65
|
+
lifecycleHistoryReader?: LifecycleHistoryReader;
|
|
66
|
+
/**
|
|
67
|
+
* Filesystem root for lifecycle run directories. Required for the
|
|
68
|
+
* filesystem watcher that emits SSE `graph-append` on head advances.
|
|
69
|
+
* Defaults to the lifecycle root from config when `lifecycleHistoryReader`
|
|
70
|
+
* is provided.
|
|
71
|
+
*/
|
|
72
|
+
lifecycleRoot?: string;
|
|
57
73
|
};
|
|
58
74
|
export type ConsoleServeOptions = {
|
|
59
75
|
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;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAmB,K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CACnC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC,CAkL7B"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { CutoverGateEvaluation, GraphOperatorDeps } from "../commands/dispatch";
|
|
2
2
|
import { type OpenTeamConfig } from "../config/schema";
|
|
3
3
|
import type { NodeExecutor } from "../graph/langgraph/types";
|
|
4
|
+
import type { LifecycleRunSource, RuntimeLifecycleRecorder } from "../lifecycle/contracts";
|
|
4
5
|
import type { ExecLike } from "../local/foundry-local";
|
|
5
6
|
import type { StorageProvider } from "../storage/provider";
|
|
6
|
-
type
|
|
7
|
+
type GraphOperatorBaseOptions = {
|
|
7
8
|
readonly storage: StorageProvider;
|
|
8
9
|
readonly holder: string;
|
|
10
|
+
readonly lifecycleSource: LifecycleRunSource;
|
|
9
11
|
readonly exec?: ExecLike;
|
|
10
12
|
readonly repoRoot?: string;
|
|
11
13
|
readonly worktreesDir?: string;
|
|
@@ -17,6 +19,13 @@ type GraphOperatorFactoryOptions = {
|
|
|
17
19
|
*/
|
|
18
20
|
readonly nodeExecutor?: NodeExecutor;
|
|
19
21
|
};
|
|
22
|
+
export type GraphOperatorFactoryOptions = GraphOperatorBaseOptions & ({
|
|
23
|
+
readonly lifecycleRecorder: RuntimeLifecycleRecorder;
|
|
24
|
+
readonly createLifecycleRecorder?: never;
|
|
25
|
+
} | {
|
|
26
|
+
readonly lifecycleRecorder?: never;
|
|
27
|
+
readonly createLifecycleRecorder: (config: OpenTeamConfig) => RuntimeLifecycleRecorder;
|
|
28
|
+
});
|
|
20
29
|
export declare function createGraphOperator(options: GraphOperatorFactoryOptions): GraphOperatorDeps;
|
|
21
30
|
export {};
|
|
22
31
|
//# sourceMappingURL=graphOperator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphOperator.d.ts","sourceRoot":"","sources":["../../src/cli/graphOperator.ts"],"names":[],"mappings":"AAEA,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AAY,CAAC,EAAE,YAAY,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,GAChE,CACI;IACE,QAAQ,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IACrD,QAAQ,CAAC,uBAAuB,CAAC,EAAE,KAAK,CAAC;CAC1C,GACD;IACE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IACnC,QAAQ,CAAC,uBAAuB,EAAE,CAChC,MAAM,EAAE,cAAc,KACnB,wBAAwB,CAAC;CAC/B,CACJ,CAAC;AAwIJ,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,2BAA2B,GACnC,iBAAiB,CA4FnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Production filesystem composition for the lifecycle history reader.
|
|
3
|
+
*
|
|
4
|
+
* Wires together:
|
|
5
|
+
* - `createFsLifecycleJournal` for durable NDJSON read access
|
|
6
|
+
* - `createFsLifecycleWriterLivenessProbe` for ownership observation
|
|
7
|
+
* - `projectLifecyclePrefix` for pure prefix projection
|
|
8
|
+
* - Legacy graph journal adapter for pre-lifecycle artifacts
|
|
9
|
+
*
|
|
10
|
+
* Ownership: Livingston (per ADR runtime-lifecycle-history.md)
|
|
11
|
+
*/
|
|
12
|
+
import { type Dirent, type Stats } from "node:fs";
|
|
13
|
+
import type { LifecycleHistoryProviderFactoryOptions, LifecycleHistoryReader } from "../lifecycle/contracts";
|
|
14
|
+
type LegacyGraphReadFs = {
|
|
15
|
+
readdir: (path: string) => readonly Pick<Dirent, "name" | "isDirectory">[];
|
|
16
|
+
stat: (path: string) => Pick<Stats, "mtimeMs">;
|
|
17
|
+
read: (path: string) => string;
|
|
18
|
+
};
|
|
19
|
+
export declare const createLifecycleHistoryProvider: (options: LifecycleHistoryProviderFactoryOptions, legacyFs?: LegacyGraphReadFs) => LifecycleHistoryReader;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=lifecycleHistoryProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycleHistoryProvider.d.ts","sourceRoot":"","sources":["../../src/cli/lifecycleHistoryProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,MAAM,EAGX,KAAK,KAAK,EAEX,MAAM,SAAS,CAAC;AAKjB,OAAO,KAAK,EAGV,sCAAsC,EACtC,sBAAsB,EAIvB,MAAM,wBAAwB,CAAC;AAiBhC,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,EAAE,CAAC;IAC3E,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC/C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAChC,CAAC;AAiLF,eAAO,MAAM,8BAA8B,YAChC,sCAAsC,aACrC,iBAAiB,KAC1B,sBAyBwC,CAAC"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type OpenTeamConfig } from "./config/schema";
|
|
2
|
+
import type { RuntimeLifecycleRecorder } from "./lifecycle/contracts";
|
|
3
|
+
export declare function createCliLifecycleRecorder(config: OpenTeamConfig): RuntimeLifecycleRecorder;
|
|
2
4
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AA4DA,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AA6DtE,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,cAAc,GACrB,wBAAwB,CA8B1B"}
|