@jmanuelcorral/openteam 0.2.2 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/command/openteam.md +2 -1
- package/.opencode/openteam.example.json +27 -8
- package/AGENTS.md +5 -2
- package/README.es.md +155 -59
- package/README.md +418 -62
- package/dist/capabilities/types.d.ts +3 -3
- package/dist/capabilities/types.d.ts.map +1 -1
- package/dist/classifier/localClassifier.d.ts +0 -2
- package/dist/classifier/localClassifier.d.ts.map +1 -1
- package/dist/cli/consoleServe.d.ts +21 -1
- package/dist/cli/consoleServe.d.ts.map +1 -1
- package/dist/cli/graphOperator.d.ts +22 -0
- package/dist/cli/graphOperator.d.ts.map +1 -0
- package/dist/cli/graphStatusSnapshot.d.ts +16 -0
- package/dist/cli/graphStatusSnapshot.d.ts.map +1 -0
- package/dist/cli/migrateAdapter.d.ts +12 -0
- package/dist/cli/migrateAdapter.d.ts.map +1 -0
- package/dist/cli/purgeAdapter.d.ts +10 -0
- package/dist/cli/purgeAdapter.d.ts.map +1 -0
- package/dist/cli/setupAdapters.d.ts.map +1 -1
- package/dist/cli.js +13534 -6124
- package/dist/commands/agents.d.ts +102 -2
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/baseline.d.ts.map +1 -1
- package/dist/commands/clearCache.d.ts +23 -0
- package/dist/commands/clearCache.d.ts.map +1 -0
- package/dist/commands/dispatch.d.ts +202 -4
- package/dist/commands/dispatch.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +53 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/frontierCatalog.d.ts +8 -14
- package/dist/commands/frontierCatalog.d.ts.map +1 -1
- package/dist/commands/graph.d.ts +0 -27
- package/dist/commands/graph.d.ts.map +1 -1
- package/dist/commands/local.d.ts.map +1 -1
- package/dist/commands/migrate.d.ts +11 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/purge.d.ts +132 -0
- package/dist/commands/purge.d.ts.map +1 -0
- package/dist/commands/report.d.ts +1 -0
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +62 -5
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/errors.d.ts +10 -0
- package/dist/config/errors.d.ts.map +1 -0
- package/dist/config/legacyMigration.d.ts +82 -0
- package/dist/config/legacyMigration.d.ts.map +1 -0
- package/dist/config/legacyPaths.d.ts +105 -0
- package/dist/config/legacyPaths.d.ts.map +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/opencode.d.ts +63 -0
- package/dist/config/opencode.d.ts.map +1 -0
- package/dist/config/persist.d.ts +8 -0
- package/dist/config/persist.d.ts.map +1 -1
- package/dist/config/resolve.d.ts +1 -1
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/runtime.d.ts +62 -0
- package/dist/config/runtime.d.ts.map +1 -0
- package/dist/config/schema.d.ts +142 -79
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/console/assets.d.ts +2 -2
- package/dist/console/assets.d.ts.map +1 -1
- package/dist/console/configView.d.ts +74 -0
- package/dist/console/configView.d.ts.map +1 -0
- package/dist/console/opencodeClient.d.ts +8 -6
- package/dist/console/opencodeClient.d.ts.map +1 -1
- package/dist/console/protocol.d.ts +30 -6
- package/dist/console/protocol.d.ts.map +1 -1
- package/dist/console/render.d.ts +30 -1
- package/dist/console/render.d.ts.map +1 -1
- package/dist/console/types.d.ts +1 -1
- package/dist/console/types.d.ts.map +1 -1
- package/dist/context/redaction.d.ts +19 -19
- package/dist/context/redaction.d.ts.map +1 -1
- package/dist/context/schema.d.ts +26 -26
- package/dist/context/schema.d.ts.map +1 -1
- package/dist/context/types.d.ts +3 -3
- package/dist/contract/opencode.d.ts +39 -23
- package/dist/contract/opencode.d.ts.map +1 -1
- package/dist/graph/certificate.d.ts +37 -16
- package/dist/graph/certificate.d.ts.map +1 -1
- package/dist/graph/langgraph/adapter.d.ts +56 -0
- package/dist/graph/langgraph/adapter.d.ts.map +1 -0
- package/dist/graph/langgraph/certification.d.ts +64 -0
- package/dist/graph/langgraph/certification.d.ts.map +1 -0
- package/dist/graph/langgraph/checkpointReplay.d.ts +49 -0
- package/dist/graph/langgraph/checkpointReplay.d.ts.map +1 -0
- package/dist/graph/langgraph/checkpointer.d.ts +49 -0
- package/dist/graph/langgraph/checkpointer.d.ts.map +1 -0
- package/dist/graph/langgraph/engine.d.ts +34 -0
- package/dist/graph/langgraph/engine.d.ts.map +1 -0
- package/dist/graph/langgraph/graphModel.d.ts +37 -0
- package/dist/graph/langgraph/graphModel.d.ts.map +1 -0
- package/dist/graph/langgraph/reducer.d.ts +18 -0
- package/dist/graph/langgraph/reducer.d.ts.map +1 -0
- package/dist/graph/langgraph/retirement.d.ts +59 -0
- package/dist/graph/langgraph/retirement.d.ts.map +1 -0
- package/dist/graph/langgraph/types.d.ts +65 -0
- package/dist/graph/langgraph/types.d.ts.map +1 -0
- package/dist/graph/privacyPolicy.d.ts +7 -0
- package/dist/graph/privacyPolicy.d.ts.map +1 -1
- package/dist/graph/soakLedger.d.ts.map +1 -1
- package/dist/graph/types.d.ts +0 -2
- package/dist/graph/types.d.ts.map +1 -1
- package/dist/index.d.ts +52 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11334 -5016
- package/dist/local/cacheAdapter.d.ts +7 -0
- package/dist/local/cacheAdapter.d.ts.map +1 -0
- package/dist/local/concurrency.d.ts +52 -0
- package/dist/local/concurrency.d.ts.map +1 -0
- package/dist/local/embeddings.d.ts +10 -10
- package/dist/local/embeddings.d.ts.map +1 -1
- package/dist/local/extractClient.d.ts +13 -10
- package/dist/local/extractClient.d.ts.map +1 -1
- package/dist/local/lemonade.d.ts +4 -0
- package/dist/local/lemonade.d.ts.map +1 -0
- package/dist/local/registry.d.ts +16 -0
- package/dist/local/registry.d.ts.map +1 -1
- package/dist/local/types.d.ts +1 -1
- package/dist/local/types.d.ts.map +1 -1
- package/dist/mcp/semanticRecall.d.ts +18 -1
- package/dist/mcp/semanticRecall.d.ts.map +1 -1
- package/dist/mcp/server.d.ts +41 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/memory/embedText.d.ts +4 -0
- package/dist/memory/embedText.d.ts.map +1 -0
- package/dist/memory/extract.d.ts +33 -18
- package/dist/memory/extract.d.ts.map +1 -1
- package/dist/memory/fold.d.ts +3 -2
- package/dist/memory/fold.d.ts.map +1 -1
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/inject.d.ts.map +1 -1
- package/dist/memory/log.d.ts +15 -4
- package/dist/memory/log.d.ts.map +1 -1
- package/dist/memory/merge.d.ts +18 -1
- package/dist/memory/merge.d.ts.map +1 -1
- package/dist/memory/traverse.d.ts +80 -0
- package/dist/memory/traverse.d.ts.map +1 -0
- package/dist/memory/types.d.ts +53 -7
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/messages/commands.d.ts +84 -0
- package/dist/messages/commands.d.ts.map +1 -0
- package/dist/messages/index.d.ts +46 -0
- package/dist/messages/index.d.ts.map +1 -0
- package/dist/opencodeArtifacts/index.d.ts +33 -0
- package/dist/opencodeArtifacts/index.d.ts.map +1 -0
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts +29 -0
- package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -0
- package/dist/opencodeArtifacts/slashCommand.d.ts +31 -0
- package/dist/opencodeArtifacts/slashCommand.d.ts.map +1 -0
- package/dist/orchestrator/coordinator.d.ts +155 -1
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/graphCancellation.d.ts +40 -37
- package/dist/orchestrator/graphCancellation.d.ts.map +1 -1
- package/dist/orchestrator/graphEffects.d.ts +24 -24
- package/dist/orchestrator/graphEffects.d.ts.map +1 -1
- package/dist/orchestrator/graphFacade.d.ts +16 -16
- package/dist/orchestrator/graphFacade.d.ts.map +1 -1
- package/dist/orchestrator/graphIngress.d.ts +49 -45
- package/dist/orchestrator/graphIngress.d.ts.map +1 -1
- package/dist/orchestrator/graphReview.d.ts +24 -23
- package/dist/orchestrator/graphReview.d.ts.map +1 -1
- package/dist/orchestrator/graphRuntime.d.ts +27 -26
- package/dist/orchestrator/graphRuntime.d.ts.map +1 -1
- package/dist/orchestrator/graphShadow.d.ts +70 -69
- package/dist/orchestrator/graphShadow.d.ts.map +1 -1
- package/dist/orchestrator/opencodeSessionAdapter.d.ts +25 -25
- package/dist/orchestrator/opencodeSessionAdapter.d.ts.map +1 -1
- package/dist/orchestrator/permissions.d.ts.map +1 -1
- package/dist/orchestrator/ralphLoop.d.ts +57 -0
- package/dist/orchestrator/ralphLoop.d.ts.map +1 -0
- package/dist/orchestrator/roles.d.ts +69 -8
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/roster.d.ts +103 -0
- package/dist/orchestrator/roster.d.ts.map +1 -0
- package/dist/orchestrator/rosterPersistence.d.ts +22 -0
- package/dist/orchestrator/rosterPersistence.d.ts.map +1 -0
- package/dist/orchestrator/runtimeSelection.d.ts +46 -0
- package/dist/orchestrator/runtimeSelection.d.ts.map +1 -0
- package/dist/orchestrator/sddCompiler.d.ts +34 -34
- package/dist/orchestrator/sddCompiler.d.ts.map +1 -1
- package/dist/orchestrator/sessionReconciler.d.ts +31 -29
- package/dist/orchestrator/sessionReconciler.d.ts.map +1 -1
- package/dist/orchestrator/shadowComparator.d.ts +23 -23
- package/dist/orchestrator/shadowComparator.d.ts.map +1 -1
- package/dist/orchestrator/subsessions.d.ts.map +1 -1
- package/dist/orchestrator/worktreeAdapter.d.ts +12 -12
- package/dist/orchestrator/worktreeAdapter.d.ts.map +1 -1
- package/dist/orchestrator/worktreeDispatch.d.ts +34 -34
- package/dist/orchestrator/worktreeDispatch.d.ts.map +1 -1
- package/dist/orchestrator/worktreeReconciler.d.ts +37 -36
- package/dist/orchestrator/worktreeReconciler.d.ts.map +1 -1
- package/dist/plugin/availability.d.ts.map +1 -1
- package/dist/plugin/capture.d.ts +12 -12
- package/dist/plugin/capture.d.ts.map +1 -1
- package/dist/plugin/commandTool.d.ts +1 -1
- package/dist/plugin/commandTool.d.ts.map +1 -1
- package/dist/plugin/diagnostics.d.ts +30 -0
- package/dist/plugin/diagnostics.d.ts.map +1 -0
- package/dist/plugin/graphShadowIngress.d.ts +50 -48
- package/dist/plugin/graphShadowIngress.d.ts.map +1 -1
- package/dist/plugin/graphTool.d.ts +25 -23
- package/dist/plugin/graphTool.d.ts.map +1 -1
- package/dist/plugin/hooks.d.ts +10 -10
- package/dist/plugin/hooks.d.ts.map +1 -1
- package/dist/plugin/legacyRunProducer.d.ts +22 -22
- package/dist/plugin/legacyRunProducer.d.ts.map +1 -1
- package/dist/plugin/memoryInject.d.ts +6 -6
- package/dist/plugin/memoryInject.d.ts.map +1 -1
- package/dist/plugin/memoryTool.d.ts +36 -0
- package/dist/plugin/memoryTool.d.ts.map +1 -0
- package/dist/plugin/orchestrateTool.d.ts +38 -3
- package/dist/plugin/orchestrateTool.d.ts.map +1 -1
- package/dist/plugin/reportRunSchema.d.ts +8 -8
- package/dist/plugin/reportRunSchema.d.ts.map +1 -1
- package/dist/plugin/sessionTracker.d.ts +15 -15
- package/dist/plugin/sessionTracker.d.ts.map +1 -1
- package/dist/plugin/shadowPipeline.d.ts +2 -1
- package/dist/plugin/shadowPipeline.d.ts.map +1 -1
- package/dist/plugin/soakObserver.d.ts +18 -11
- package/dist/plugin/soakObserver.d.ts.map +1 -1
- package/dist/plugin/toolcalls.d.ts +3 -3
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/dist/router/frontierBaseline.d.ts +3 -3
- package/dist/router/modelSelection.d.ts +12 -4
- package/dist/router/modelSelection.d.ts.map +1 -1
- package/dist/router/types.d.ts +6 -1
- package/dist/router/types.d.ts.map +1 -1
- package/dist/storage/graph/snapshot.d.ts.map +1 -1
- package/dist/storage/graph/soakRecorder.d.ts +14 -1
- package/dist/storage/graph/soakRecorder.d.ts.map +1 -1
- package/dist/storage/graph/workspaceLease.d.ts +1 -1
- package/dist/storage/graph/workspaceLease.d.ts.map +1 -1
- package/dist/storage/graph/worktreeRegistry.d.ts +1 -1
- package/dist/storage/graph/worktreeRegistry.d.ts.map +1 -1
- package/dist/storage/httpStorageProvider.d.ts +2 -2
- package/dist/storage/index/bunSqlite.d.ts +1 -0
- package/dist/storage/index/bunSqlite.d.ts.map +1 -1
- package/dist/storage/index/memoryConsolidate.d.ts +2 -0
- package/dist/storage/index/memoryConsolidate.d.ts.map +1 -1
- package/dist/storage/index/memoryEmbeddings.d.ts +51 -0
- package/dist/storage/index/memoryEmbeddings.d.ts.map +1 -0
- package/dist/storage/index/memoryIndex.d.ts +37 -5
- package/dist/storage/index/memoryIndex.d.ts.map +1 -1
- package/dist/storage/index/memoryRecall.d.ts +1 -1
- package/dist/storage/index/memoryRecall.d.ts.map +1 -1
- package/dist/storage/index/memoryRuntime.d.ts +2 -0
- package/dist/storage/index/memoryRuntime.d.ts.map +1 -1
- package/dist/storage/index/sqliteIndex.d.ts +18 -1
- package/dist/storage/index/sqliteIndex.d.ts.map +1 -1
- package/dist/storage/path.d.ts.map +1 -1
- package/dist/telemetry/aggregate.d.ts +12 -12
- package/dist/telemetry/aggregate.d.ts.map +1 -1
- package/dist/telemetry/cost.d.ts.map +1 -1
- package/dist/telemetry/decisions.d.ts +11 -11
- package/dist/telemetry/decisions.d.ts.map +1 -1
- package/dist/telemetry/diagnostics.d.ts +10 -0
- package/dist/telemetry/diagnostics.d.ts.map +1 -0
- package/dist/telemetry/eventLog.d.ts +44 -26
- package/dist/telemetry/eventLog.d.ts.map +1 -1
- package/dist/telemetry/events.d.ts +121 -36
- package/dist/telemetry/events.d.ts.map +1 -1
- package/dist/telemetry/fanout.d.ts +18 -0
- package/dist/telemetry/fanout.d.ts.map +1 -0
- package/dist/telemetry/graphProjection.d.ts +12 -12
- package/dist/telemetry/graphProjection.d.ts.map +1 -1
- package/dist/telemetry/graphRuntimeHealth.d.ts +26 -26
- package/dist/telemetry/graphRuntimeHealth.d.ts.map +1 -1
- package/dist/telemetry/graphView.d.ts +20 -20
- package/dist/telemetry/graphView.d.ts.map +1 -1
- package/dist/telemetry/otel.d.ts +86 -0
- package/dist/telemetry/otel.d.ts.map +1 -0
- package/dist/telemetry/otelConfig.d.ts +128 -0
- package/dist/telemetry/otelConfig.d.ts.map +1 -0
- package/dist/telemetry/otelExporter.d.ts +7 -0
- package/dist/telemetry/otelExporter.d.ts.map +1 -0
- package/dist/telemetry/read.d.ts +18 -4
- package/dist/telemetry/read.d.ts.map +1 -1
- package/dist/telemetry/types.d.ts +3 -2
- package/dist/telemetry/types.d.ts.map +1 -1
- package/dist/web/configApi.d.ts +154 -0
- package/dist/web/configApi.d.ts.map +1 -0
- package/dist/web/configRoute.d.ts +57 -0
- package/dist/web/configRoute.d.ts.map +1 -0
- package/dist/web/console.d.ts +8 -0
- package/dist/web/console.d.ts.map +1 -1
- package/dist/web/paths.d.ts +4 -3
- package/dist/web/paths.d.ts.map +1 -1
- package/dist/web/server.d.ts +30 -1
- package/dist/web/server.d.ts.map +1 -1
- package/dist/web/start.d.ts +15 -0
- package/dist/web/start.d.ts.map +1 -1
- package/dist/web/storageRoute.d.ts +2 -2
- package/package.json +13 -7
- package/dist/cli/tunnel.d.ts +0 -89
- package/dist/cli/tunnel.d.ts.map +0 -1
- package/dist/commands/orchestratorAgent.d.ts +0 -30
- package/dist/commands/orchestratorAgent.d.ts.map +0 -1
- package/dist/commands/slashCommand.d.ts +0 -39
- package/dist/commands/slashCommand.d.ts.map +0 -1
- package/dist/orchestrator/ledger.d.ts +0 -28
- package/dist/orchestrator/ledger.d.ts.map +0 -1
- package/dist/storage/graph/importLegacy.d.ts +0 -62
- package/dist/storage/graph/importLegacy.d.ts.map +0 -1
- package/dist/storage/graph/migration.d.ts +0 -91
- package/dist/storage/graph/migration.d.ts.map +0 -1
- package/dist/storage/graph/projections.d.ts +0 -31
- package/dist/storage/graph/projections.d.ts.map +0 -1
package/dist/web/start.d.ts
CHANGED
|
@@ -9,6 +9,21 @@ import type { GraphViewProjectionV1 } from "../telemetry/graphView";
|
|
|
9
9
|
import type { StorageRouteDeps } from "./storageRoute";
|
|
10
10
|
export type ConsoleRuntimeDeps = {
|
|
11
11
|
config: ConsoleConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Live console-config getter (P14 hybrid). Passed through to the server so the
|
|
14
|
+
* renderer serves hot-reloadable keys fresh. Optional.
|
|
15
|
+
*/
|
|
16
|
+
getConsoleConfig?: () => ConsoleConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Config editor surface (`/api/config`). Optional and opt-in.
|
|
19
|
+
*/
|
|
20
|
+
configApi?: import("./configRoute").ConfigRouteDeps;
|
|
21
|
+
/**
|
|
22
|
+
* Path of the tracked config file. When provided it is added to the watched
|
|
23
|
+
* set so an external edit triggers a debounced console refresh (P14 hybrid,
|
|
24
|
+
* cross-process fallback). Optional.
|
|
25
|
+
*/
|
|
26
|
+
configPath?: string;
|
|
12
27
|
/** Directorio de logs de sesión (`sessions/*.jsonl`). */
|
|
13
28
|
sessionsDir: string;
|
|
14
29
|
agentDir: string;
|
package/dist/web/start.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/web/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO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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"}
|
|
@@ -2,8 +2,8 @@ import type { IncomingMessage, ServerResponse } from "node:http";
|
|
|
2
2
|
import type { StorageProvider } from "../storage/provider";
|
|
3
3
|
/**
|
|
4
4
|
* Endpoint HTTP que expone un `StorageProvider` sobre la red (§ Fase 4). Permite
|
|
5
|
-
* que una Console/sesión remota lea el estado del equipo
|
|
6
|
-
*
|
|
5
|
+
* que una Console/sesión remota lea el estado del equipo por HTTP,
|
|
6
|
+
* reutilizando el token efímero de la Console.
|
|
7
7
|
*
|
|
8
8
|
* Seguridad:
|
|
9
9
|
* - Exige el token (bearer `Authorization` o `?token=`), como el resto de la
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmanuelcorral/openteam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
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",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"prebuild": "bun run clean",
|
|
62
62
|
"build": "bun run build:js && bun run build:cli && bun run build:types",
|
|
63
|
-
"build:js": "bun build ./src/index.ts --target=node --format=esm --outfile=dist/index.js --external @opencode-ai/plugin --external @opencode-ai/sdk --external zod",
|
|
64
|
-
"build:cli": "bun build ./src/cli.ts --target=node --format=esm --outfile=dist/cli.js --banner \"#!/usr/bin/env node\" --external @opencode-ai/plugin --external @opencode-ai/sdk --external zod --external @clack/prompts",
|
|
63
|
+
"build:js": "bun build ./src/index.ts --target=node --format=esm --outfile=dist/index.js --external @opencode-ai/plugin --external @opencode-ai/sdk --external zod --external @opentelemetry/api --external @opentelemetry/sdk-trace-base --external @opentelemetry/exporter-trace-otlp-http --external @opentelemetry/resources --external @langchain/langgraph",
|
|
64
|
+
"build:cli": "bun build ./src/cli.ts --target=node --format=esm --outfile=dist/cli.js --banner \"#!/usr/bin/env node\" --external @opencode-ai/plugin --external @opencode-ai/sdk --external zod --external @clack/prompts --external @opentelemetry/api --external @opentelemetry/sdk-trace-base --external @opentelemetry/exporter-trace-otlp-http --external @opentelemetry/resources --external @langchain/langgraph",
|
|
65
65
|
"build:types": "tsc -p tsconfig.build.json",
|
|
66
66
|
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
67
67
|
"test": "bun test",
|
|
68
68
|
"test:cov": "bun test --coverage",
|
|
69
|
-
"certify:shadow": "bun
|
|
70
|
-
"certify:release": "bun
|
|
69
|
+
"certify:shadow": "bun run scripts/certify-artifact.ts shadow",
|
|
70
|
+
"certify:release": "bun run scripts/certify-artifact.ts release",
|
|
71
71
|
"coverage:check": "node scripts/check-coverage.mjs",
|
|
72
72
|
"typecheck": "tsc --noEmit",
|
|
73
73
|
"lint": "biome check .",
|
|
@@ -82,8 +82,14 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@clack/prompts": "1.7.0",
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
85
|
+
"@langchain/core": "1.2.9",
|
|
86
|
+
"@langchain/langgraph": "1.4.12",
|
|
87
|
+
"@opencode-ai/plugin": "1.18.19",
|
|
88
|
+
"@opencode-ai/sdk": "1.18.19",
|
|
89
|
+
"@opentelemetry/api": "1.9.1",
|
|
90
|
+
"@opentelemetry/exporter-trace-otlp-http": "0.221.0",
|
|
91
|
+
"@opentelemetry/resources": "2.10.0",
|
|
92
|
+
"@opentelemetry/sdk-trace-base": "2.10.0",
|
|
87
93
|
"zod": "4.4.3"
|
|
88
94
|
},
|
|
89
95
|
"devDependencies": {
|
package/dist/cli/tunnel.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { EventEmitter } from "node:events";
|
|
2
|
-
/**
|
|
3
|
-
* Comando `openteam tunnel`: expone la Console (y, opcionalmente, el servidor
|
|
4
|
-
* opencode para terminal remota) vía Microsoft Dev Tunnels. El **núcleo es puro**
|
|
5
|
-
* (parseo de flags, parseo de stdout de devtunnel, plan de seguridad §7); el
|
|
6
|
-
* runner solo orquesta el proceso y espera la señal de parada. Sin secretos en
|
|
7
|
-
* logs: passwords y tokens nunca se imprimen.
|
|
8
|
-
*/
|
|
9
|
-
export type TunnelOptions = {
|
|
10
|
-
/** Expone también el puerto de opencode (terminal remota). Requiere password. */
|
|
11
|
-
terminal: boolean;
|
|
12
|
-
/** Túnel anónimo (sin auth). Requiere `--yes` (doble confirmación). */
|
|
13
|
-
allowAnonymous: boolean;
|
|
14
|
-
/** Confirmación explícita para operaciones peligrosas (túnel anónimo). */
|
|
15
|
-
yes: boolean;
|
|
16
|
-
/** Override del puerto de la Console. */
|
|
17
|
-
consolePort?: number;
|
|
18
|
-
/** Override del puerto de opencode. */
|
|
19
|
-
opencodePort?: number;
|
|
20
|
-
};
|
|
21
|
-
/** Parsea los flags de `openteam tunnel`. Determinista. Pure. */
|
|
22
|
-
export declare function parseTunnelArgs(rest: readonly string[]): TunnelOptions;
|
|
23
|
-
export type TunnelUrl = {
|
|
24
|
-
port: number;
|
|
25
|
-
url: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Extrae las URLs públicas del stdout de `devtunnel host` (no tiene `--json`).
|
|
29
|
-
* Reconoce la línea `Hosting port <p> at <url>`. Determinista. Pure.
|
|
30
|
-
*/
|
|
31
|
-
export declare function parseDevtunnelUrls(stdout: string): TunnelUrl[];
|
|
32
|
-
export type TunnelPlan = {
|
|
33
|
-
/** Puertos a hospedar (siempre incluye la Console). */
|
|
34
|
-
ports: number[];
|
|
35
|
-
/** `true` si el puerto de opencode se expone (terminal remota disponible). */
|
|
36
|
-
exposeTerminal: boolean;
|
|
37
|
-
/** `true` si el túnel es anónimo (sin auth). */
|
|
38
|
-
allowAnonymous: boolean;
|
|
39
|
-
/** Avisos no bloqueantes a mostrar al usuario. */
|
|
40
|
-
warnings: string[];
|
|
41
|
-
/** Errores bloqueantes; si hay alguno, `ok` es `false`. */
|
|
42
|
-
errors: string[];
|
|
43
|
-
ok: boolean;
|
|
44
|
-
};
|
|
45
|
-
export type TunnelPlanInput = {
|
|
46
|
-
options: TunnelOptions;
|
|
47
|
-
consolePort: number;
|
|
48
|
-
opencodePort: number;
|
|
49
|
-
hasServerPassword: boolean;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Decide el plan del túnel aplicando el gating de seguridad §7 del PRD:
|
|
53
|
-
* loopback→túnel autenticado por defecto, password obligatoria para terminal
|
|
54
|
-
* remota, doble confirmación para túnel anónimo. Determinista. Pure.
|
|
55
|
-
*/
|
|
56
|
-
export declare function planTunnel(input: TunnelPlanInput): TunnelPlan;
|
|
57
|
-
/** Construye los argumentos de `devtunnel host` para el plan dado. Pure. */
|
|
58
|
-
export declare function buildDevtunnelArgs(plan: TunnelPlan): string[];
|
|
59
|
-
/** Proceso hijo mínimo que necesita el runner (subconjunto de `ChildProcess`). */
|
|
60
|
-
export type TunnelChild = {
|
|
61
|
-
stdout: EventEmitter | null;
|
|
62
|
-
stderr: EventEmitter | null;
|
|
63
|
-
on: (event: "exit", cb: (code: number | null) => void) => void;
|
|
64
|
-
kill: () => void;
|
|
65
|
-
};
|
|
66
|
-
export type TunnelRunDeps = {
|
|
67
|
-
/** `true` si el CLI `devtunnel` está instalado. */
|
|
68
|
-
isInstalled: () => Promise<boolean>;
|
|
69
|
-
/** `true` si hay sesión iniciada en Dev Tunnels. */
|
|
70
|
-
isLoggedIn: () => Promise<boolean>;
|
|
71
|
-
/** Lanza `devtunnel` con los args dados. */
|
|
72
|
-
spawn: (command: string, args: string[]) => TunnelChild;
|
|
73
|
-
consolePort: number;
|
|
74
|
-
opencodePort: number;
|
|
75
|
-
hasServerPassword: boolean;
|
|
76
|
-
/** Espera hasta que el usuario para el proceso (Ctrl+C). */
|
|
77
|
-
waitForSignal: () => Promise<void>;
|
|
78
|
-
log: (message: string) => void;
|
|
79
|
-
};
|
|
80
|
-
export type TunnelRunResult = {
|
|
81
|
-
exitCode: number;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* `openteam tunnel`: comprueba `devtunnel` (instalado + login), aplica el plan de
|
|
85
|
-
* seguridad, hospeda los puertos y muestra las URLs públicas hasta Ctrl+C. Solo
|
|
86
|
-
* imprime URLs y avisos redactados; nunca password ni tokens.
|
|
87
|
-
*/
|
|
88
|
-
export declare function runTunnel(deps: TunnelRunDeps, options: TunnelOptions): Promise<TunnelRunResult>;
|
|
89
|
-
//# sourceMappingURL=tunnel.d.ts.map
|
package/dist/cli/tunnel.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../src/cli/tunnel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,iFAAiF;IACjF,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,cAAc,EAAE,OAAO,CAAC;IACxB,0EAA0E;IAC1E,GAAG,EAAE,OAAO,CAAC;IACb,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,YAAY,C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EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,mDAAmD;IACnD,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,oDAAoD;IACpD,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,4CAA4C;IAC5C,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,WAAW,CAAC;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,4DAA4D;IAC5D,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,eAAe,CAAC,CAkD1B"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { FrontierChoice } from "./setup";
|
|
2
|
-
/**
|
|
3
|
-
* Ruta relativa (al cwd) del agente primario que `openteam setup` genera. El
|
|
4
|
-
* nombre del fichero (`openteam`) es el nombre del agente en opencode.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ORCHESTRATOR_AGENT_PATH = ".opencode/agent/openteam.md";
|
|
7
|
-
/**
|
|
8
|
-
* Ruta del registro de casting (universo + tabla nombre→rol→modelo). Vive
|
|
9
|
-
* **fuera** de `.opencode/agent/` a propósito: opencode carga como agente cada
|
|
10
|
-
* `.md` de esa carpeta, así que un `roster.md` dentro aparecería como un agente
|
|
11
|
-
* fantasma en el Tab-switcher. Lo guardamos junto al log de decisiones del
|
|
12
|
-
* `scribe`, como fichero de datos del proyecto.
|
|
13
|
-
*/
|
|
14
|
-
export declare const OPENTEAM_ROSTER_PATH = ".opencode/openteam-roster.md";
|
|
15
|
-
/**
|
|
16
|
-
* Construye el Markdown del agente primario `openteam` (orquestador multiagente):
|
|
17
|
-
* un
|
|
18
|
-
* orquestador que aparece en el Tab-switcher, elige un universo temático y
|
|
19
|
-
* castea al equipo, y crea los subagentes a demanda (incluidos los roles
|
|
20
|
-
* estándar scribe, ralph y guardian). Pure: no I/O.
|
|
21
|
-
*
|
|
22
|
-
* `frontier` fija el `model` del orquestador (baseline cheapest-capable), un
|
|
23
|
-
* `provider/model` real y resoluble; el plugin de openteam sigue enrutando por
|
|
24
|
-
* mensaje, así que los subagentes que cree pueden heredar el default y ser
|
|
25
|
-
* enrutados local-first.
|
|
26
|
-
*/
|
|
27
|
-
export declare function buildOrchestratorAgent(frontier: FrontierChoice, options?: {
|
|
28
|
-
yolo?: boolean;
|
|
29
|
-
}): string;
|
|
30
|
-
//# sourceMappingURL=orchestratorAgent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestratorAgent.d.ts","sourceRoot":"","sources":["../../src/commands/orchestratorAgent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAEnE;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,MAAM,CAiOR"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Directorio (relativo al cwd) donde opencode descubre los slash commands del
|
|
3
|
-
* proyecto. opencode escanea `{command,commands}/**\/*.md` (singular y plural) en
|
|
4
|
-
* cada `.opencode/` del árbol y en `~/.config/opencode/`; el nombre del fichero
|
|
5
|
-
* es el nombre del comando (verificado en el source de opencode v1.17.8:
|
|
6
|
-
* `packages/opencode/src/config/command.ts`).
|
|
7
|
-
*/
|
|
8
|
-
export declare const OPENTEAM_COMMAND_DIR = ".opencode/command";
|
|
9
|
-
/**
|
|
10
|
-
* Ruta del slash command principal `/openteam` (catch-all). Se mantiene como
|
|
11
|
-
* constante estable para compatibilidad; el resto de comandos derivan de
|
|
12
|
-
* {@link OPENTEAM_COMMAND_DIR}.
|
|
13
|
-
*/
|
|
14
|
-
export declare const OPENTEAM_COMMAND_PATH = ".opencode/command/openteam.md";
|
|
15
|
-
/** Un slash command listo para escribir en disco. */
|
|
16
|
-
export type SlashCommandFile = {
|
|
17
|
-
/** Nombre del comando (fichero `<name>.md`), invocable como `/<name>`. */
|
|
18
|
-
name: string;
|
|
19
|
-
/** Ruta relativa al cwd del fichero markdown. */
|
|
20
|
-
path: string;
|
|
21
|
-
/** Contenido markdown (frontmatter + template). */
|
|
22
|
-
contents: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Construye el Markdown del slash command `/openteam` (catch-all). Enseña al
|
|
26
|
-
* agente a mapear los argumentos del usuario a una única llamada de la
|
|
27
|
-
* herramienta `openteam`. Debe mantenerse alineado con las acciones de
|
|
28
|
-
* `commandArgv` en `src/plugin/commandTool.ts`. Pure/determinista: sin I/O.
|
|
29
|
-
*/
|
|
30
|
-
export declare function buildOpenteamCommand(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Todos los slash commands que `openteam setup` escribe en
|
|
33
|
-
* `.opencode/command/`. Además del catch-all `/openteam`, genera un comando
|
|
34
|
-
* plano por acción (`/openteam-doctor`, `/openteam-agents`, …) para que todos
|
|
35
|
-
* aparezcan y se autocompleten en la paleta de opencode al teclear `/openteam`.
|
|
36
|
-
* Pure/determinista: sin I/O.
|
|
37
|
-
*/
|
|
38
|
-
export declare function buildOpenteamCommands(): SlashCommandFile[];
|
|
39
|
-
//# sourceMappingURL=slashCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slashCommand.d.ts","sourceRoot":"","sources":["../../src/commands/slashCommand.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,kCAAwC,CAAC;AAE3E,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAkBF;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAmB7C;AAqBD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,gBAAgB,EAAE,CAuC1D"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tipos y reducción del ledger de progreso legacy.
|
|
3
|
-
*
|
|
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í.
|
|
12
|
-
*
|
|
13
|
-
* Es **privacy-safe**: solo `taskID`, estado y un `detail` ya redactado; nunca
|
|
14
|
-
* prompts ni datos sensibles.
|
|
15
|
-
*/
|
|
16
|
-
export type LedgerStatus = "complete" | "failed";
|
|
17
|
-
export type LedgerEntry = {
|
|
18
|
-
taskID: string;
|
|
19
|
-
status: LedgerStatus;
|
|
20
|
-
/** Metadatos redactados (modelo, tier, resultado de review). Nunca prompts. */
|
|
21
|
-
detail?: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Estado más reciente por `taskID` (las líneas posteriores sobrescriben a las
|
|
25
|
-
* anteriores: un `failed` seguido de `complete` cuenta como `complete`). Puro.
|
|
26
|
-
*/
|
|
27
|
-
export declare function latestStatuses(entries: readonly LedgerEntry[]): Map<string, LedgerStatus>;
|
|
28
|
-
//# sourceMappingURL=ledger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,62 +0,0 @@
|
|
|
1
|
-
import { type LedgerEntry } from "../../orchestrator/ledger";
|
|
2
|
-
/**
|
|
3
|
-
* Importación **idempotente** y terminal del ledger legacy a la autoridad de
|
|
4
|
-
* Graph (GE-024).
|
|
5
|
-
*
|
|
6
|
-
* El ledger legacy solo registra desenlaces **terminales** por tarea. Esta capa
|
|
7
|
-
* mapea cada tarea terminal a un estado de run terminal (`completed`/`failed`)
|
|
8
|
-
* **una sola vez**, anclado por un `sourceDigest` (la línea de ledger canónica)
|
|
9
|
-
* y un `specDigest` (un descriptor sintético mínimo del run). Nunca inventa
|
|
10
|
-
* historia in-flight (no hay `running`/`dispatched`), salta los runs ya
|
|
11
|
-
* importados —de modo que un re-run es un no-op— y no transporta contenido
|
|
12
|
-
* crudo (solo identificadores y digests). Puro y determinista: sin I/O, reloj
|
|
13
|
-
* ni random; el único cómputo es el digest SHA-256.
|
|
14
|
-
*/
|
|
15
|
-
export declare const LEGACY_IMPORT_VERSION: 1;
|
|
16
|
-
/** Estado terminal de un run importado (nunca in-flight). */
|
|
17
|
-
export type LegacyRunStatus = "completed" | "failed";
|
|
18
|
-
/**
|
|
19
|
-
* Registro de autoridad de un run legacy importado. Terminal y reference-only:
|
|
20
|
-
* identificadores más digests de origen y de spec; nunca contenido.
|
|
21
|
-
*/
|
|
22
|
-
export type LegacyImportRecordV1 = {
|
|
23
|
-
readonly version: typeof LEGACY_IMPORT_VERSION;
|
|
24
|
-
readonly runID: string;
|
|
25
|
-
readonly taskID: string;
|
|
26
|
-
readonly status: LegacyRunStatus;
|
|
27
|
-
/** Digest de la línea de ledger canónica que originó el import. */
|
|
28
|
-
readonly sourceDigest: string;
|
|
29
|
-
/** Digest del descriptor sintético mínimo del run importado. */
|
|
30
|
-
readonly specDigest: string;
|
|
31
|
-
};
|
|
32
|
-
/** `runID` determinista de un task legacy importado. */
|
|
33
|
-
export declare function legacyRunID(taskID: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Plan de importación (dry-run): solo los registros nuevos, los runs saltados y
|
|
36
|
-
* contadores. No lleva contenido de las tareas; sirve como informe de dry-run.
|
|
37
|
-
*/
|
|
38
|
-
export type LegacyImportPlan = {
|
|
39
|
-
/** Registros terminales nuevos a importar (excluye los ya presentes). */
|
|
40
|
-
readonly records: readonly LegacyImportRecordV1[];
|
|
41
|
-
/** `runID` de tareas terminales cuyo run ya estaba importado. */
|
|
42
|
-
readonly skipped: readonly string[];
|
|
43
|
-
/** Total de tareas terminales distintas en el ledger. */
|
|
44
|
-
readonly total: number;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Planifica la importación terminal del ledger. Deduplica por `taskID` (el
|
|
48
|
-
* último estado gana, igual que el ledger) y excluye los runs ya presentes en
|
|
49
|
-
* `existingRunIDs`, de modo que un re-run con la misma autoridad produce un
|
|
50
|
-
* plan vacío (no-op).
|
|
51
|
-
*/
|
|
52
|
-
export declare function planLegacyImport(input: {
|
|
53
|
-
entries: readonly LedgerEntry[];
|
|
54
|
-
existingRunIDs?: Iterable<string>;
|
|
55
|
-
}): LegacyImportPlan;
|
|
56
|
-
/**
|
|
57
|
-
* Aplica el plan mezclando sus registros con la autoridad existente, deduplicado
|
|
58
|
-
* por `runID` (el existente gana) y con orden estable por `runID`. Idempotente:
|
|
59
|
-
* aplicar un plan ya presente deja la autoridad igual.
|
|
60
|
-
*/
|
|
61
|
-
export declare function applyLegacyImport(existing: readonly LegacyImportRecordV1[], plan: LegacyImportPlan): readonly LegacyImportRecordV1[];
|
|
62
|
-
//# sourceMappingURL=importLegacy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"importLegacy.d.ts","sourceRoot":"","sources":["../../../src/storage/graph/importLegacy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,qBAAqB,EAAG,CAAU,CAAC;AAEhD,6DAA6D;AAC7D,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,QAAQ,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElD;AA4BD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAClD,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACtC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACnC,GAAG,gBAAgB,CAiBnB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,oBAAoB,EAAE,EACzC,IAAI,EAAE,gBAAgB,GACrB,SAAS,oBAAoB,EAAE,CAajC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type LegacyImportPlan, type LegacyImportRecordV1 } from "./importLegacy";
|
|
3
|
-
/**
|
|
4
|
-
* Herramienta de migración completa: dry-run, backup, apply idempotente y
|
|
5
|
-
* rollback drill (GE-053).
|
|
6
|
-
*
|
|
7
|
-
* Amplía el import terminal de GE-024 con:
|
|
8
|
-
* - **Backup versionado**: captura la autoridad pre-migración como artefacto
|
|
9
|
-
* reference-only. Solo contiene campos allow-listed (identifiers + digests),
|
|
10
|
-
* nunca briefs ni contenido crudo. Validado con Zod en el boundary de carga.
|
|
11
|
-
* - **Rollback idempotente**: restaura la autoridad desde un backup sin
|
|
12
|
-
* resucitar nada que no estuviera en él. Aplicar dos veces deja el mismo
|
|
13
|
-
* estado.
|
|
14
|
-
* - **Guard de efectos activos**: si hay runs con efectos in-flight, la
|
|
15
|
-
* migración se bloquea con motivo estable; la autoridad activa nunca
|
|
16
|
-
* retrocede al path legacy.
|
|
17
|
-
* - **Manejo de interrupción**: un apply interrumpido deja la autoridad en un
|
|
18
|
-
* estado parcial que un rerun puede completar (gracias a la idempotencia de
|
|
19
|
-
* `planLegacyImport`); nunca se genera autoridad tornada.
|
|
20
|
-
*
|
|
21
|
-
* Puro y determinista: sin I/O, reloj ni random. El caller (wiring layer)
|
|
22
|
-
* ejecuta la persistencia.
|
|
23
|
-
*/
|
|
24
|
-
export declare const MIGRATION_BACKUP_VERSION: 1;
|
|
25
|
-
/** Schema Zod del backup: validado en el boundary de carga. */
|
|
26
|
-
export declare const MigrationBackupSchema: z.ZodObject<{
|
|
27
|
-
version: z.ZodLiteral<1>;
|
|
28
|
-
createdAt: z.ZodString;
|
|
29
|
-
authorityDigest: z.ZodString;
|
|
30
|
-
records: z.ZodArray<z.ZodObject<{
|
|
31
|
-
version: z.ZodLiteral<1>;
|
|
32
|
-
runID: z.ZodString;
|
|
33
|
-
taskID: z.ZodString;
|
|
34
|
-
status: z.ZodEnum<{
|
|
35
|
-
completed: "completed";
|
|
36
|
-
failed: "failed";
|
|
37
|
-
}>;
|
|
38
|
-
sourceDigest: z.ZodString;
|
|
39
|
-
specDigest: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export type MigrationBackup = z.infer<typeof MigrationBackupSchema>;
|
|
43
|
-
/** Código de fallo clasificado de la migración. */
|
|
44
|
-
export type MigrationToolErrorCode = "corrupt-ledger" | "unknown-version" | "active-effects-in-flight" | "backup-validation-failed" | "backup-digest-mismatch";
|
|
45
|
-
/** Error tipado, fail-closed, de la herramienta de migración. */
|
|
46
|
-
export declare class MigrationToolError extends Error {
|
|
47
|
-
readonly code: MigrationToolErrorCode;
|
|
48
|
-
constructor(code: MigrationToolErrorCode, detail?: string);
|
|
49
|
-
}
|
|
50
|
-
/** Plan extendido de migración con bloqueo y no-op tracking. */
|
|
51
|
-
export type MigrationPlan = {
|
|
52
|
-
/** Plan de import subyacente (vacío en no-op o bloqueado). */
|
|
53
|
-
readonly importPlan: LegacyImportPlan;
|
|
54
|
-
/** `true` cuando no hay nada que importar. */
|
|
55
|
-
readonly isNoOp: boolean;
|
|
56
|
-
/** Motivo de bloqueo, si lo hay. */
|
|
57
|
-
readonly blocked: string | undefined;
|
|
58
|
-
};
|
|
59
|
-
/** Opciones para planificar una migración. */
|
|
60
|
-
export type PlanMigrationInput = {
|
|
61
|
-
/** Contenido crudo del ledger (texto completo). */
|
|
62
|
-
readonly ledgerText: string | undefined;
|
|
63
|
-
/** IDs de runs ya importados en la autoridad actual. */
|
|
64
|
-
readonly existingRunIDs: Iterable<string>;
|
|
65
|
-
/** `true` si hay efectos activos (no terminales) en vuelo. */
|
|
66
|
-
readonly hasActiveEffects: boolean;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Planifica la migración. Fail-closed: un ledger ilegible o efectos activos
|
|
70
|
-
* bloquean la migración con un error clasificado.
|
|
71
|
-
*/
|
|
72
|
-
export declare function planMigration(input: PlanMigrationInput): MigrationPlan;
|
|
73
|
-
/**
|
|
74
|
-
* Crea un backup reference-only de la autoridad actual. Lanza `RedactionError`
|
|
75
|
-
* si algún registro transporta contenido crudo (nunca debería pasar; es un
|
|
76
|
-
* guard defensivo).
|
|
77
|
-
*/
|
|
78
|
-
export declare function createMigrationBackup(authority: readonly LegacyImportRecordV1[], timestamp: string): MigrationBackup;
|
|
79
|
-
/**
|
|
80
|
-
* Valida un backup cargado del disco. Fail-closed: un backup de versión
|
|
81
|
-
* desconocida o malformado lanza `MigrationToolError`.
|
|
82
|
-
*/
|
|
83
|
-
export declare function validateBackup(raw: unknown): MigrationBackup;
|
|
84
|
-
/**
|
|
85
|
-
* Restaura la autoridad desde un backup validado. Idempotente: aplicar dos
|
|
86
|
-
* veces deja el mismo estado. No resucita nada que no estuviera en el backup.
|
|
87
|
-
*/
|
|
88
|
-
export declare function rollbackFromBackup(backup: MigrationBackup): readonly LegacyImportRecordV1[];
|
|
89
|
-
/** Digest estable de la autoridad completa (para integridad del backup). */
|
|
90
|
-
export declare function computeAuthorityDigest(records: readonly LegacyImportRecordV1[]): string;
|
|
91
|
-
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../../src/storage/graph/migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAE1B,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AAEnD,+DAA+D;AAC/D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAchC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,mDAAmD;AACnD,MAAM,MAAM,sBAAsB,GAC9B,gBAAgB,GAChB,iBAAiB,GACjB,0BAA0B,GAC1B,0BAA0B,GAC1B,wBAAwB,CAAC;AAE7B,iEAAiE;AACjE,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;IAEtC,YAAY,IAAI,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,MAAM,EAQxD;CACF;AAMD,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG;IAC1B,8DAA8D;IAC9D,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,8CAA8C;AAC9C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mDAAmD;IACnD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,wDAAwD;IACxD,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAG1C,8DAA8D;IAC9D,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa,CAgCtE;AAMD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,oBAAoB,EAAE,EAC1C,SAAS,EAAE,MAAM,GAChB,eAAe,CAUjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,CA+B5D;AAMD;;;GAGG;AAEH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,eAAe,GACtB,SAAS,oBAAoB,EAAE,CAYjC;AAMD,4EAA4E;AAC5E,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,MAAM,CAaR"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { LegacyImportRecordV1, LegacyRunStatus } from "./importLegacy";
|
|
2
|
-
/**
|
|
3
|
-
* Proyecciones **reconstruibles** de progreso y resumen sobre la autoridad de
|
|
4
|
-
* runs importados (GE-024).
|
|
5
|
-
*
|
|
6
|
-
* La autoridad (registros terminales de import) es la única fuente de verdad;
|
|
7
|
-
* estas proyecciones son estado derivado y desechable: se recalculan por
|
|
8
|
-
* completo desde la autoridad, sin persistencia propia. Puras y deterministas:
|
|
9
|
-
* mismo input, mismo output, con orden estable por `runID`.
|
|
10
|
-
*/
|
|
11
|
-
/** Proyección de progreso: contadores por estado terminal. */
|
|
12
|
-
export type ProgressProjection = {
|
|
13
|
-
readonly total: number;
|
|
14
|
-
readonly completed: number;
|
|
15
|
-
readonly failed: number;
|
|
16
|
-
};
|
|
17
|
-
/** Entrada de resumen: estado terminal por run. */
|
|
18
|
-
export type SummaryEntry = {
|
|
19
|
-
readonly runID: string;
|
|
20
|
-
readonly taskID: string;
|
|
21
|
-
readonly status: LegacyRunStatus;
|
|
22
|
-
};
|
|
23
|
-
/** Proyección de resumen: estado por run en orden estable por `runID`. */
|
|
24
|
-
export type SummaryProjection = {
|
|
25
|
-
readonly runs: readonly SummaryEntry[];
|
|
26
|
-
};
|
|
27
|
-
/** Reconstruye los contadores de progreso desde la autoridad. */
|
|
28
|
-
export declare function projectProgress(records: readonly LegacyImportRecordV1[]): ProgressProjection;
|
|
29
|
-
/** Reconstruye el resumen por run desde la autoridad, ordenado por `runID`. */
|
|
30
|
-
export declare function projectSummary(records: readonly LegacyImportRecordV1[]): SummaryProjection;
|
|
31
|
-
//# sourceMappingURL=projections.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../src/storage/graph/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE5E;;;;;;;;GAQG;AAEH,8DAA8D;AAC9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,mDAAmD;AACnD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,YAAY,EAAE,CAAC;CACxC,CAAC;AAEF,iEAAiE;AACjE,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,kBAAkB,CAWpB;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAC5B,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,iBAAiB,CASnB"}
|