@jmanuelcorral/openteam 0.1.41 → 0.2.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/.opencode/openteam.example.json +6 -1
- package/README.es.md +1 -1
- package/README.md +1 -1
- package/dist/capabilities/types.d.ts +4 -4
- package/dist/classifier/types.d.ts +3 -3
- package/dist/cli.js +430 -36
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/graph.d.ts +36 -2
- package/dist/commands/graph.d.ts.map +1 -1
- package/dist/config/graphFeatureGate.d.ts +96 -0
- package/dist/config/graphFeatureGate.d.ts.map +1 -0
- package/dist/config/migrations.d.ts.map +1 -1
- package/dist/config/resolve.d.ts +20 -1
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/schema.d.ts +40 -19
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/console/assets.d.ts +9 -1
- package/dist/console/assets.d.ts.map +1 -1
- package/dist/console/opencodeClient.d.ts +6 -0
- package/dist/console/opencodeClient.d.ts.map +1 -1
- package/dist/console/protocol.d.ts +8 -0
- package/dist/console/protocol.d.ts.map +1 -1
- package/dist/console/render.d.ts +25 -0
- package/dist/console/render.d.ts.map +1 -1
- package/dist/context/redaction.d.ts +23 -0
- package/dist/context/redaction.d.ts.map +1 -1
- package/dist/context/schema.d.ts +3 -3
- package/dist/contract/opencode.d.ts +2 -2
- package/dist/contract/opencode.d.ts.map +1 -1
- package/dist/graph/certificate.d.ts +505 -0
- package/dist/graph/certificate.d.ts.map +1 -0
- package/dist/graph/ids.d.ts +9 -0
- package/dist/graph/ids.d.ts.map +1 -1
- package/dist/graph/privacyPolicy.d.ts.map +1 -1
- package/dist/graph/reducer.d.ts.map +1 -1
- package/dist/graph/replay.d.ts.map +1 -1
- package/dist/graph/reviewerPolicy.d.ts.map +1 -1
- package/dist/graph/schema.d.ts +33 -33
- package/dist/graph/schema.d.ts.map +1 -1
- package/dist/graph/soakLedger.d.ts +144 -0
- package/dist/graph/soakLedger.d.ts.map +1 -0
- package/dist/graph/types.d.ts +2 -0
- package/dist/graph/types.d.ts.map +1 -1
- package/dist/graph/validate.d.ts.map +1 -1
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2351 -180
- package/dist/local/registry.d.ts.map +1 -1
- package/dist/memory/types.d.ts +2 -2
- package/dist/orchestrator/graphFacade.d.ts +39 -0
- package/dist/orchestrator/graphFacade.d.ts.map +1 -0
- package/dist/orchestrator/graphIngress.d.ts +136 -0
- package/dist/orchestrator/graphIngress.d.ts.map +1 -0
- package/dist/orchestrator/graphShadow.d.ts +121 -0
- package/dist/orchestrator/graphShadow.d.ts.map +1 -0
- package/dist/orchestrator/ledger.d.ts +14 -2
- package/dist/orchestrator/ledger.d.ts.map +1 -1
- package/dist/orchestrator/opencodeSessionAdapter.d.ts.map +1 -1
- package/dist/orchestrator/roles.d.ts +3 -3
- package/dist/orchestrator/sdd.d.ts +55 -1
- package/dist/orchestrator/sdd.d.ts.map +1 -1
- package/dist/orchestrator/sddCompiler.d.ts +6 -2
- package/dist/orchestrator/sddCompiler.d.ts.map +1 -1
- package/dist/orchestrator/worktreeAdapter.d.ts +39 -0
- package/dist/orchestrator/worktreeAdapter.d.ts.map +1 -0
- package/dist/orchestrator/worktreeDispatch.d.ts +84 -0
- package/dist/orchestrator/worktreeDispatch.d.ts.map +1 -0
- package/dist/orchestrator/worktreeReconciler.d.ts +74 -0
- package/dist/orchestrator/worktreeReconciler.d.ts.map +1 -0
- package/dist/plugin/graphShadowIngress.d.ts +165 -0
- package/dist/plugin/graphShadowIngress.d.ts.map +1 -0
- package/dist/plugin/graphTool.d.ts +63 -0
- package/dist/plugin/graphTool.d.ts.map +1 -0
- package/dist/plugin/hooks.d.ts +6 -0
- package/dist/plugin/hooks.d.ts.map +1 -1
- package/dist/plugin/legacyRunProducer.d.ts +60 -0
- package/dist/plugin/legacyRunProducer.d.ts.map +1 -0
- package/dist/plugin/reportRunSchema.d.ts +60 -0
- package/dist/plugin/reportRunSchema.d.ts.map +1 -0
- package/dist/plugin/sessionTracker.d.ts +42 -0
- package/dist/plugin/sessionTracker.d.ts.map +1 -0
- package/dist/plugin/shadowPipeline.d.ts +49 -0
- package/dist/plugin/shadowPipeline.d.ts.map +1 -0
- package/dist/plugin/soakObserver.d.ts +73 -0
- package/dist/plugin/soakObserver.d.ts.map +1 -0
- package/dist/storage/graph/codec.d.ts.map +1 -1
- package/dist/storage/graph/migrateLegacyBriefs.d.ts.map +1 -1
- package/dist/storage/graph/migration.d.ts +91 -0
- package/dist/storage/graph/migration.d.ts.map +1 -0
- package/dist/storage/graph/provider.d.ts +1 -0
- package/dist/storage/graph/provider.d.ts.map +1 -1
- package/dist/storage/graph/recovery.d.ts.map +1 -1
- package/dist/storage/graph/runRegistry.d.ts.map +1 -1
- package/dist/storage/graph/soakRecorder.d.ts +59 -0
- package/dist/storage/graph/soakRecorder.d.ts.map +1 -0
- package/dist/storage/graph/workspaceLease.d.ts.map +1 -1
- package/dist/storage/graph/worktreeRegistry.d.ts +29 -0
- package/dist/storage/graph/worktreeRegistry.d.ts.map +1 -0
- package/dist/storage/graph/writer.d.ts +15 -0
- package/dist/storage/graph/writer.d.ts.map +1 -1
- package/dist/storage/path.d.ts.map +1 -1
- package/dist/telemetry/events.d.ts +12 -12
- package/dist/telemetry/graphRuntimeHealth.d.ts +53 -0
- package/dist/telemetry/graphRuntimeHealth.d.ts.map +1 -0
- package/dist/telemetry/graphView.d.ts +76 -0
- package/dist/telemetry/graphView.d.ts.map +1 -0
- package/dist/telemetry/types.d.ts +4 -4
- package/dist/web/console.d.ts +6 -0
- package/dist/web/console.d.ts.map +1 -1
- package/dist/web/graphRoute.d.ts +36 -0
- package/dist/web/graphRoute.d.ts.map +1 -0
- package/dist/web/server.d.ts +21 -2
- 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/package.json +7 -5
|
@@ -5,14 +5,14 @@ export declare const CostRecordSchema: z.ZodObject<{
|
|
|
5
5
|
promptHash: z.ZodString;
|
|
6
6
|
promptChars: z.ZodNumber;
|
|
7
7
|
tier: z.ZodEnum<{
|
|
8
|
-
trivial: "trivial";
|
|
9
|
-
simple: "simple";
|
|
10
|
-
moderate: "moderate";
|
|
11
8
|
hard: "hard";
|
|
9
|
+
moderate: "moderate";
|
|
10
|
+
simple: "simple";
|
|
11
|
+
trivial: "trivial";
|
|
12
12
|
}>;
|
|
13
13
|
routeKind: z.ZodEnum<{
|
|
14
|
-
local: "local";
|
|
15
14
|
frontier: "frontier";
|
|
15
|
+
local: "local";
|
|
16
16
|
}>;
|
|
17
17
|
selected: z.ZodObject<{
|
|
18
18
|
providerID: z.ZodString;
|
package/dist/web/console.d.ts
CHANGED
|
@@ -10,6 +10,12 @@ import type { PtyClient } from "../console/pty";
|
|
|
10
10
|
export type ConsoleRouteDeps = {
|
|
11
11
|
token: string;
|
|
12
12
|
terminalEnabled: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Habilita el drill-down **de solo lectura** del grafo (GE-084): las acciones
|
|
15
|
+
* de lectura (`stream`, `messages`) quedan accesibles tras la misma bandera del
|
|
16
|
+
* grafo aunque la terminal (escritura) esté apagada. Opt-in.
|
|
17
|
+
*/
|
|
18
|
+
drilldownEnabled?: boolean;
|
|
13
19
|
/** Habilita la vista "Terminal" (PTY real, Fase 5). Opt-in. */
|
|
14
20
|
ptyEnabled?: boolean;
|
|
15
21
|
/** Resuelve el origen del servidor opencode de una sesión (o `undefined`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/web/console.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAM/D,OAAO,KAAK,E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;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,EACxB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,OAAO,CAAC,CAqDlB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
import type { GraphViewProjectionV1 } from "../telemetry/graphView";
|
|
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.
|
|
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`.
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
export type GraphRouteDeps = {
|
|
17
|
+
/** Proyección actual de la vista, o `null` cuando no hay run activo. */
|
|
18
|
+
readView: () => Promise<GraphViewProjectionV1 | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Token de exposición remota, en paridad con `/api/state`. `undefined` en
|
|
21
|
+
* loopback puro (ruta abierta).
|
|
22
|
+
*/
|
|
23
|
+
remoteToken?: string;
|
|
24
|
+
};
|
|
25
|
+
/** Tipo de evento SSE del canal de grafo, multiplexado sobre `/events`. */
|
|
26
|
+
export declare const GRAPH_SSE_EVENT: "graph";
|
|
27
|
+
/** Marco SSE del canal de grafo para un payload JSON ya serializado. */
|
|
28
|
+
export declare function graphSseMessage(json: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Enruta `GET /api/graph`. Devuelve `true` si atendió (y respondió) la petición,
|
|
31
|
+
* `false` para que el servidor siga con sus rutas. Método ≠ GET → 405; sin token
|
|
32
|
+
* válido cuando hay `remoteToken` → 401; en otro caso 200 con la proyección
|
|
33
|
+
* (o `null` si no hay run activo).
|
|
34
|
+
*/
|
|
35
|
+
export declare function handleGraphRoute(request: IncomingMessage, response: ServerResponse, url: URL, deps: GraphRouteDeps): Promise<boolean>;
|
|
36
|
+
//# sourceMappingURL=graphRoute.d.ts.map
|
|
@@ -0,0 +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;AAIF,2EAA2E;AAC3E,eAAO,MAAM,eAAe,EAAG,OAAgB,CAAC;AAEhD,wEAAwE;AACxE,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"}
|
package/dist/web/server.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ConsoleConfig } from "../config/schema";
|
|
|
3
3
|
import type { ConsoleClient } from "../console/opencodeClient";
|
|
4
4
|
import type { PtyClient } from "../console/pty";
|
|
5
5
|
import type { ConsoleInputs } from "../console/state";
|
|
6
|
+
import type { GraphViewProjectionV1 } from "../telemetry/graphView";
|
|
6
7
|
import { type StorageRouteDeps } from "./storageRoute";
|
|
7
8
|
export type ConsoleServerDeps = {
|
|
8
9
|
/** Relee las fuentes y produce los inputs crudos del console. */
|
|
@@ -16,6 +17,13 @@ export type ConsoleServerDeps = {
|
|
|
16
17
|
console?: {
|
|
17
18
|
token: string;
|
|
18
19
|
terminalEnabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Habilita el drill-down de solo lectura del grafo (GE-084): expone las
|
|
22
|
+
* acciones de lectura (`stream`, `messages`) y el render del panel de
|
|
23
|
+
* conversación tras la misma bandera del grafo, sin activar la terminal de
|
|
24
|
+
* escritura. Opt-in.
|
|
25
|
+
*/
|
|
26
|
+
drilldownEnabled?: boolean;
|
|
19
27
|
/** Habilita la vista "Terminal" (PTY real, Fase 5). Opt-in. */
|
|
20
28
|
ptyEnabled?: boolean;
|
|
21
29
|
createClient: (endpoint: string) => ConsoleClient;
|
|
@@ -26,6 +34,15 @@ export type ConsoleServerDeps = {
|
|
|
26
34
|
* estado del equipo autenticado con token para una Console remota vía tunnel.
|
|
27
35
|
*/
|
|
28
36
|
storageApi?: StorageRouteDeps;
|
|
37
|
+
/**
|
|
38
|
+
* Proveedor opt-in de la vista del grafo (`/api/graph` + canal SSE `graph`).
|
|
39
|
+
* Additivo: sin él inyectado, la Console por defecto es idéntica a hoy. La
|
|
40
|
+
* proyección es reference-only (GE-081) y el endpoint hereda el token de
|
|
41
|
+
* `/api/state` (paridad remota); en loopback puro queda abierto.
|
|
42
|
+
*/
|
|
43
|
+
graphApi?: {
|
|
44
|
+
readView: () => Promise<GraphViewProjectionV1 | null>;
|
|
45
|
+
};
|
|
29
46
|
};
|
|
30
47
|
export type ConsoleServer = {
|
|
31
48
|
url: string;
|
|
@@ -37,8 +54,10 @@ export type ConsoleServer = {
|
|
|
37
54
|
/**
|
|
38
55
|
* Arranca el servidor del console con `node:http` (portable a Node y Bun) en
|
|
39
56
|
* loopback. Sirve `/` (HTML), `/api/state` (JSON), `/events` (SSE) y `/healthz`.
|
|
40
|
-
*
|
|
41
|
-
* `
|
|
57
|
+
* Con `graphApi` opt-in añade `/api/graph` (JSON) y multiplexa el marco SSE
|
|
58
|
+
* `event: graph` sobre `/events`. Solo lectura: cualquier método ≠ GET → 405;
|
|
59
|
+
* ruta desconocida → 404. Con `autoPortFallback` prueba puertos sucesivos si el
|
|
60
|
+
* preferido está ocupado.
|
|
42
61
|
*
|
|
43
62
|
* Cuando se inyecta `storageApi` (exposición remota opt-in), las rutas de lectura
|
|
44
63
|
* (`/`, `/api/state`, `/events`) además exigen token (bearer o `?token=`); sin él
|
package/dist/web/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/web/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAIjC,MAAM,WAAW,CAAC;AACnB,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;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/web/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,gBAAgB,EAIjC,MAAM,WAAW,CAAC;AACnB,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;AAEhD,OAAO,KAAK,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EAAE,iBAAiB,GACtB,OAAO,CAAC,aAAa,CAAC,CA2LxB"}
|
package/dist/web/start.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { ConsoleClient } from "../console/opencodeClient";
|
|
|
5
5
|
import type { PtyClient } from "../console/pty";
|
|
6
6
|
import type { CommitView } from "../console/types";
|
|
7
7
|
import type { StorageProvider } from "../storage/provider";
|
|
8
|
+
import type { GraphViewProjectionV1 } from "../telemetry/graphView";
|
|
8
9
|
import type { StorageRouteDeps } from "./storageRoute";
|
|
9
10
|
export type ConsoleRuntimeDeps = {
|
|
10
11
|
config: ConsoleConfig;
|
|
@@ -28,12 +29,22 @@ export type ConsoleRuntimeDeps = {
|
|
|
28
29
|
console?: {
|
|
29
30
|
token: string;
|
|
30
31
|
terminalEnabled: boolean;
|
|
32
|
+
drilldownEnabled?: boolean;
|
|
31
33
|
ptyEnabled?: boolean;
|
|
32
34
|
createClient: (endpoint: string) => ConsoleClient;
|
|
33
35
|
createPtyClient?: (endpoint: string) => PtyClient;
|
|
34
36
|
};
|
|
35
37
|
/** Endpoint remoto de storage (`/storage/*`). Opcional y opt-in. */
|
|
36
38
|
storageApi?: StorageRouteDeps;
|
|
39
|
+
/**
|
|
40
|
+
* Proveedor reference-only de la vista del grafo (GE-083). Solo se cablea como
|
|
41
|
+
* `graphApi` (activando `/api/graph`, el canal SSE `graph` y el render del DAG)
|
|
42
|
+
* cuando `config.graphView.enabled` es `true`; en caso contrario la Console es
|
|
43
|
+
* idéntica a hoy.
|
|
44
|
+
*/
|
|
45
|
+
graphView?: {
|
|
46
|
+
readView: () => Promise<GraphViewProjectionV1 | null>;
|
|
47
|
+
};
|
|
37
48
|
/** Inyectables para tests. */
|
|
38
49
|
serve?: typeof import("./server").createConsoleServer;
|
|
39
50
|
watch?: (path: string, listener: () => void) => ReturnType<typeof fsWatch>;
|
package/dist/web/start.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":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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.
|
|
3
|
+
"version": "0.2.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",
|
|
@@ -66,6 +66,8 @@
|
|
|
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 test tests/certification/graph-shadow.test.ts",
|
|
70
|
+
"certify:release": "bun test tests/certification/graph-release.test.ts",
|
|
69
71
|
"coverage:check": "node scripts/check-coverage.mjs",
|
|
70
72
|
"typecheck": "tsc --noEmit",
|
|
71
73
|
"lint": "biome check .",
|
|
@@ -80,13 +82,13 @@
|
|
|
80
82
|
},
|
|
81
83
|
"dependencies": {
|
|
82
84
|
"@clack/prompts": "1.7.0",
|
|
83
|
-
"@opencode-ai/plugin": "1.
|
|
84
|
-
"@opencode-ai/sdk": "1.
|
|
85
|
+
"@opencode-ai/plugin": "1.18.18",
|
|
86
|
+
"@opencode-ai/sdk": "1.18.18",
|
|
85
87
|
"zod": "4.4.3"
|
|
86
88
|
},
|
|
87
89
|
"devDependencies": {
|
|
88
|
-
"@biomejs/biome": "2.5.
|
|
90
|
+
"@biomejs/biome": "2.5.9",
|
|
89
91
|
"@types/bun": "1.3.14",
|
|
90
|
-
"typescript": "
|
|
92
|
+
"typescript": "7.0.2"
|
|
91
93
|
}
|
|
92
94
|
}
|