@slimcloud/gust-server 0.0.0-stage → 0.1.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/README.md CHANGED
@@ -1,3 +1,63 @@
1
- # Temporary Holding Version
1
+ # @slimcloud/gust-server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Privileged **full Gust SDK** for Node / BFF only. Same `GustClient` façade as `@slimcloud/gust-client`; transport is Event-RPC to private `gust-api` after `apiKey` → `sessionToken` resolve.
4
+
5
+ **Do not import this package from browser bundles.**
6
+
7
+ ## Topology
8
+
9
+ ```
10
+ Browser ──tRPC WS / Event-RPC echo──► Tenant (Armada)
11
+ ──@slimcloud/gust-server──► gust-api Event-RPC (private)
12
+ ```
13
+
14
+ - Browser never dials `gust-api`
15
+ - Tenant authenticates the user, then forwards via this package (or a sessionToken bridge)
16
+ - `gust-api` stays Event-RPC; the customer edge is tRPC (with Event-RPC echo for streams)
17
+
18
+ ## Usage
19
+
20
+ ```ts
21
+ import { resolveUser, connectWithApiKey, connect, GustClient } from "@slimcloud/gust-server";
22
+
23
+ // Privileged resolve + connect
24
+ const client = await connectWithApiKey({
25
+ url: process.env.GUST_BACKEND_URL!,
26
+ apiKey: process.env.GUST_API_KEY!,
27
+ user: { externalId, email, name },
28
+ });
29
+
30
+ // Same methods as browser SDK
31
+ const scopes = await client.scopes.listForUser();
32
+ ```
33
+
34
+ For a tenant-bound Orchestrator key, connect without a tenant API key. Gust resolves the tenant and scoped Orchestrator identity from the key:
35
+
36
+ ```ts
37
+ import { connectWithOrchestratorKey } from "@slimcloud/gust-server/server";
38
+
39
+ const client = await connectWithOrchestratorKey({
40
+ url: process.env.GUST_BACKEND_URL!,
41
+ orchestratorKey: process.env.GUST_ORCHESTRATOR_KEY!,
42
+ });
43
+ ```
44
+
45
+ New Orchestrator keys are bound to the tenant active when Armada creates or mints them. Older keys without a tenant binding continue to require the tenant API key during resolution.
46
+
47
+
48
+ ## Must-proxy Event-RPC surface (Armada / Fierce)
49
+
50
+ Catch-all forward covers the long tail. Hottest paths used by Armada:
51
+
52
+ | Domain | Examples |
53
+ |--------|----------|
54
+ | Auth | `session_auth` |
55
+ | Chat | `chat_session:*`, `chatlog:*`, stream/message/loading pushes |
56
+ | Agents | `agent:*`, `agent_activity:*`, `planner:*` |
57
+ | Scopes | `scope:*`, `scope:propagation:*`, `scope:scan:*` |
58
+ | Tools | `client_tool:call` / `client_tool:result` |
59
+ | Files | reverse RPC `file:request` / `file:modify` / `file:delete` |
60
+ | Workspace | `workspace_session:*`, `workspace:*`, `changeset:*` |
61
+ | Workflow / secrets / MCP / orgs / usage | corresponding `*:request` pairs |
62
+
63
+ Echo strategy: **catch-all first** (`gust.request` / `gust.send` / `gust.events`), plus optional named tRPC sugar for list/hot paths.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Browser-safe compatibility façade for gust-server.
3
+ *
4
+ * Privileged Node/BFF functions live in the explicit `@slimcloud/gust-server/server`
5
+ * entry. Keeping this root entry browser-safe prevents a client compilation
6
+ * from following the SqliteKVStore -> node:fs dependency.
7
+ */
8
+ export * from "@slimcloud/gust-client";
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Browser-safe compatibility façade for gust-server.
19
+ *
20
+ * Privileged Node/BFF functions live in the explicit `@slimcloud/gust-server/server`
21
+ * entry. Keeping this root entry browser-safe prevents a client compilation
22
+ * from following the SqliteKVStore -> node:fs dependency.
23
+ */
24
+ __exportStar(require("@slimcloud/gust-client"), exports);
@@ -0,0 +1,16 @@
1
+ import type { GustConnectWithApiKey, GustConnectWithOrchestratorKey, GustConnectOptions, GustResolveOptions, GustResolveResult } from "@slimcloud/gust-types";
2
+ import { GustClient } from "@slimcloud/gust-client";
3
+ /**
4
+ * Resolve (or create) a Gust user from an external identity.
5
+ * Server-side only. Tenant-user resolution requires apiKey; orchestrator resolution can use its key alone.
6
+ */
7
+ export declare function resolveUser(opts: GustResolveOptions): Promise<GustResolveResult>;
8
+ /** Resolve with apiKey then open a sessionToken WebSocket via gust-client. */
9
+ export declare function connectWithApiKey(opts: GustConnectWithApiKey): Promise<GustClient>;
10
+ /** Resolve and connect using only a scoped orchestrator key. */
11
+ export declare function connectWithOrchestratorKey(opts: GustConnectWithOrchestratorKey): Promise<GustClient>;
12
+ /**
13
+ * Unified connect: apiKey (privileged resolve) or sessionToken WebSocket.
14
+ * Returns the same GustClient façade as gust-client.
15
+ */
16
+ export declare function connect(opts: GustConnectOptions): Promise<GustClient>;
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveUser = resolveUser;
4
+ exports.connectWithApiKey = connectWithApiKey;
5
+ exports.connectWithOrchestratorKey = connectWithOrchestratorKey;
6
+ exports.connect = connect;
7
+ const gust_client_1 = require("@slimcloud/gust-client");
8
+ function toHttpUrl(url) {
9
+ return url.replace(/^wss?:\/\//, (match) => match === "wss://" ? "https://" : "http://");
10
+ }
11
+ function isApiKeyConnect(opts) {
12
+ // GustConnectWithToken may also carry apiKey (dual auth). Resolve path needs `user`.
13
+ return ("user" in opts &&
14
+ typeof opts.apiKey === "string" &&
15
+ typeof opts.user === "object" &&
16
+ opts.user != null);
17
+ }
18
+ function isOrchestratorKeyConnect(opts) {
19
+ return "orchestratorKey" in opts && typeof opts.orchestratorKey === "string" && !("sessionToken" in opts);
20
+ }
21
+ /**
22
+ * Resolve (or create) a Gust user from an external identity.
23
+ * Server-side only. Tenant-user resolution requires apiKey; orchestrator resolution can use its key alone.
24
+ */
25
+ async function resolveUser(opts) {
26
+ const baseUrl = toHttpUrl(opts.backendUrl).replace(/\/$/, "");
27
+ const url = `${baseUrl}/auth/resolve`;
28
+ const orchKey = String(opts.orchestratorKey || "").trim();
29
+ const apiKey = String(opts.apiKey || "").trim();
30
+ const user = opts.user;
31
+ if (!apiKey && !orchKey)
32
+ throw new Error("[gust-server] apiKey or orchestratorKey is required");
33
+ if (!orchKey && (!user?.externalId || !user.email))
34
+ throw new Error("[gust-server] user identity is required without an orchestratorKey");
35
+ const body = orchKey
36
+ ? {
37
+ orchestratorKey: orchKey,
38
+ ...(opts.organizationId ? { organizationId: opts.organizationId } : {}),
39
+ }
40
+ : {
41
+ externalId: user.externalId,
42
+ email: user.email,
43
+ name: user.name,
44
+ profileImage: user.profileImage,
45
+ provider: user.provider,
46
+ ...(opts.organizationId ? { organizationId: opts.organizationId } : {}),
47
+ };
48
+ const headers = {
49
+ "Content-Type": "application/json",
50
+ ...(apiKey ? { "x-api-key": apiKey } : {}),
51
+ };
52
+ if (orchKey)
53
+ headers["x-orchestrator-key"] = orchKey;
54
+ let response;
55
+ try {
56
+ response = await fetch(url, {
57
+ method: "POST",
58
+ headers,
59
+ body: JSON.stringify(body),
60
+ });
61
+ }
62
+ catch (err) {
63
+ throw new Error(`[gust-server] Failed to reach /auth/resolve: ${err?.message ?? err}`);
64
+ }
65
+ if (!response.ok) {
66
+ let msg = `HTTP ${response.status}`;
67
+ try {
68
+ const json = (await response.json());
69
+ msg = json?.error ?? msg;
70
+ }
71
+ catch {
72
+ /* ignore */
73
+ }
74
+ throw new Error(`[gust-server] /auth/resolve failed: ${msg}`);
75
+ }
76
+ const data = (await response.json());
77
+ if (!data?.ok || !data?.userId || !data?.sessionToken) {
78
+ throw new Error("[gust-server] /auth/resolve returned unexpected payload");
79
+ }
80
+ return {
81
+ userId: data.userId,
82
+ sessionToken: data.sessionToken,
83
+ expiresAt: data.expiresAt,
84
+ tenantId: data.tenantId ? String(data.tenantId) : undefined,
85
+ organizationId: data.organizationId ? String(data.organizationId) : undefined,
86
+ orchestratorId: data.orchestratorId ? String(data.orchestratorId) : undefined,
87
+ orchestratorName: data.orchestratorName ? String(data.orchestratorName) : undefined,
88
+ orchestratorProfileImage: data.orchestratorProfileImage != null
89
+ ? String(data.orchestratorProfileImage)
90
+ : undefined,
91
+ };
92
+ }
93
+ /** Resolve with apiKey then open a sessionToken WebSocket via gust-client. */
94
+ async function connectWithApiKey(opts) {
95
+ const resolved = await resolveUser({
96
+ backendUrl: opts.url,
97
+ apiKey: opts.apiKey,
98
+ user: opts.user,
99
+ organizationId: opts.organizationId,
100
+ orchestratorKey: opts.orchestratorKey,
101
+ });
102
+ const tokenOpts = {
103
+ url: opts.url,
104
+ sessionToken: resolved.sessionToken,
105
+ userId: resolved.userId,
106
+ apiKey: opts.apiKey,
107
+ connectTimeoutMs: opts.connectTimeoutMs,
108
+ defaultRequestTimeoutMs: opts.defaultRequestTimeoutMs,
109
+ instanceId: opts.instanceId,
110
+ logLevel: opts.logLevel,
111
+ armadaUrl: opts.armadaUrl,
112
+ workspaceSourceResolver: opts.workspaceSourceResolver,
113
+ };
114
+ return gust_client_1.GustClient.connect(tokenOpts);
115
+ }
116
+ /** Resolve and connect using only a scoped orchestrator key. */
117
+ async function connectWithOrchestratorKey(opts) {
118
+ const resolved = await resolveUser({ backendUrl: opts.url, orchestratorKey: opts.orchestratorKey });
119
+ return gust_client_1.GustClient.connect({
120
+ url: opts.url,
121
+ sessionToken: resolved.sessionToken,
122
+ userId: resolved.userId,
123
+ connectTimeoutMs: opts.connectTimeoutMs,
124
+ defaultRequestTimeoutMs: opts.defaultRequestTimeoutMs,
125
+ instanceId: opts.instanceId,
126
+ logLevel: opts.logLevel,
127
+ armadaUrl: opts.armadaUrl,
128
+ workspaceSourceResolver: opts.workspaceSourceResolver,
129
+ });
130
+ }
131
+ /**
132
+ * Unified connect: apiKey (privileged resolve) or sessionToken WebSocket.
133
+ * Returns the same GustClient façade as gust-client.
134
+ */
135
+ async function connect(opts) {
136
+ if (isApiKeyConnect(opts)) {
137
+ return connectWithApiKey(opts);
138
+ }
139
+ if (isOrchestratorKeyConnect(opts))
140
+ return connectWithOrchestratorKey(opts);
141
+ if ("sessionToken" in opts)
142
+ return gust_client_1.GustClient.connect(opts);
143
+ throw new Error("[gust-server] provide API-key, orchestrator-key, or session-token connection options");
144
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Privileged Node / BFF entry for gust-server.
3
+ *
4
+ * Import this explicitly from API routes, server actions, workers, and CLIs:
5
+ * import { resolveUser } from "@slimcloud/gust-server/server";
6
+ *
7
+ * Never import this module from a Client Component.
8
+ */
9
+ export { resolveUser, connectWithApiKey, connectWithOrchestratorKey, connect } from "./resolveUser.js";
10
+ export { SqliteKVStore } from "./storage/SqliteKVStore.js";
11
+ export type { SqliteKVStoreOptions } from "./storage/SqliteKVStore.js";
12
+ export { createStore } from "./storage/createStore.js";
13
+ export { GustClient, GustSocketClient, GustEventError, GustSessionAuthError, TrpcTransport, EventBusTransport, type GustTransport, type GustSocketEnvelope, type GustFromTransportOptions, type GustTrpcConnectOptions, } from "@slimcloud/gust-client";
package/dist/server.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventBusTransport = exports.TrpcTransport = exports.GustSessionAuthError = exports.GustEventError = exports.GustSocketClient = exports.GustClient = exports.createStore = exports.SqliteKVStore = exports.connect = exports.connectWithOrchestratorKey = exports.connectWithApiKey = exports.resolveUser = void 0;
4
+ /**
5
+ * Privileged Node / BFF entry for gust-server.
6
+ *
7
+ * Import this explicitly from API routes, server actions, workers, and CLIs:
8
+ * import { resolveUser } from "@slimcloud/gust-server/server";
9
+ *
10
+ * Never import this module from a Client Component.
11
+ */
12
+ var resolveUser_js_1 = require("./resolveUser.js");
13
+ Object.defineProperty(exports, "resolveUser", { enumerable: true, get: function () { return resolveUser_js_1.resolveUser; } });
14
+ Object.defineProperty(exports, "connectWithApiKey", { enumerable: true, get: function () { return resolveUser_js_1.connectWithApiKey; } });
15
+ Object.defineProperty(exports, "connectWithOrchestratorKey", { enumerable: true, get: function () { return resolveUser_js_1.connectWithOrchestratorKey; } });
16
+ Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return resolveUser_js_1.connect; } });
17
+ var SqliteKVStore_js_1 = require("./storage/SqliteKVStore.js");
18
+ Object.defineProperty(exports, "SqliteKVStore", { enumerable: true, get: function () { return SqliteKVStore_js_1.SqliteKVStore; } });
19
+ var createStore_js_1 = require("./storage/createStore.js");
20
+ Object.defineProperty(exports, "createStore", { enumerable: true, get: function () { return createStore_js_1.createStore; } });
21
+ var gust_client_1 = require("@slimcloud/gust-client");
22
+ Object.defineProperty(exports, "GustClient", { enumerable: true, get: function () { return gust_client_1.GustClient; } });
23
+ Object.defineProperty(exports, "GustSocketClient", { enumerable: true, get: function () { return gust_client_1.GustSocketClient; } });
24
+ Object.defineProperty(exports, "GustEventError", { enumerable: true, get: function () { return gust_client_1.GustEventError; } });
25
+ Object.defineProperty(exports, "GustSessionAuthError", { enumerable: true, get: function () { return gust_client_1.GustSessionAuthError; } });
26
+ Object.defineProperty(exports, "TrpcTransport", { enumerable: true, get: function () { return gust_client_1.TrpcTransport; } });
27
+ Object.defineProperty(exports, "EventBusTransport", { enumerable: true, get: function () { return gust_client_1.EventBusTransport; } });
@@ -0,0 +1,40 @@
1
+ export interface KeyValueStore {
2
+ get(key: string): string | undefined;
3
+ set(key: string, value: string): void;
4
+ delete(key: string): void;
5
+ close(): void;
6
+ }
7
+ export type SqliteKVStoreOptions = {
8
+ /**
9
+ * Absolute path to the sqlite database file.
10
+ * If omitted, defaults to: ~/.gust-agents/gust-agents.sqlite
11
+ */
12
+ dbPath?: string;
13
+ /**
14
+ * Namespace allows multiple apps/tenants to share the same DB file safely.
15
+ * Default: "gust-agents"
16
+ */
17
+ namespace?: string;
18
+ /**
19
+ * Table name. Default: "kv"
20
+ */
21
+ table?: string;
22
+ /**
23
+ * Enable WAL mode for better concurrency in VSCode/Electron.
24
+ * Default: true
25
+ */
26
+ wal?: boolean;
27
+ };
28
+ export declare class SqliteKVStore implements KeyValueStore {
29
+ private readonly db;
30
+ private readonly namespace;
31
+ private readonly table;
32
+ private readonly stmtGet;
33
+ private readonly stmtSet;
34
+ private readonly stmtDel;
35
+ constructor(opts?: SqliteKVStoreOptions);
36
+ get(key: string): string | undefined;
37
+ set(key: string, value: string): void;
38
+ delete(key: string): void;
39
+ close(): void;
40
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // gust-agents/src/storage/SqliteKVStore.ts
3
+ // KV store backed by the npm package "better-sqlite3".
4
+ // Usage:
5
+ // import { SqliteKVStore } from "./storage/SqliteKVStore";
6
+ // const store = new SqliteKVStore(); // ~/.gust-agents/gust-agents.sqlite
7
+ // store.set("gust_device_id", "abc");
8
+ // const v = store.get("gust_device_id");
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.SqliteKVStore = void 0;
14
+ const node_path_1 = __importDefault(require("node:path"));
15
+ const node_os_1 = __importDefault(require("node:os"));
16
+ const node_fs_1 = __importDefault(require("node:fs"));
17
+ const better_sqlite3_1 = __importDefault(require("better-sqlite3"));
18
+ function ensureDirForFile(filePath) {
19
+ const dir = node_path_1.default.dirname(filePath);
20
+ if (!node_fs_1.default.existsSync(dir))
21
+ node_fs_1.default.mkdirSync(dir, { recursive: true });
22
+ }
23
+ class SqliteKVStore {
24
+ constructor(opts = {}) {
25
+ const dbPath = opts.dbPath ?? node_path_1.default.join(node_os_1.default.homedir(), ".gust-agents", "gust-agents.sqlite");
26
+ this.namespace = opts.namespace ?? "gust-agents";
27
+ this.table = opts.table ?? "kv";
28
+ ensureDirForFile(dbPath);
29
+ this.db = new better_sqlite3_1.default(dbPath);
30
+ if (opts.wal ?? true) {
31
+ this.db.pragma("journal_mode = WAL");
32
+ }
33
+ this.db.pragma("foreign_keys = ON");
34
+ // Create table (namespace, key) is the primary key
35
+ this.db
36
+ .prepare(`CREATE TABLE IF NOT EXISTS ${this.table} (
37
+ namespace TEXT NOT NULL,
38
+ key TEXT NOT NULL,
39
+ value TEXT NOT NULL,
40
+ updated_at INTEGER NOT NULL,
41
+ PRIMARY KEY (namespace, key)
42
+ );`)
43
+ .run();
44
+ this.stmtGet = this.db.prepare(`SELECT value FROM ${this.table} WHERE namespace = ? AND key = ? LIMIT 1;`);
45
+ this.stmtSet = this.db.prepare(`INSERT INTO ${this.table} (namespace, key, value, updated_at)
46
+ VALUES (?, ?, ?, ?)
47
+ ON CONFLICT(namespace, key) DO UPDATE SET
48
+ value = excluded.value,
49
+ updated_at = excluded.updated_at;`);
50
+ this.stmtDel = this.db.prepare(`DELETE FROM ${this.table} WHERE namespace = ? AND key = ?;`);
51
+ }
52
+ get(key) {
53
+ const row = this.stmtGet.get(this.namespace, key);
54
+ return row?.value;
55
+ }
56
+ set(key, value) {
57
+ this.stmtSet.run(this.namespace, key, value, Date.now());
58
+ }
59
+ delete(key) {
60
+ this.stmtDel.run(this.namespace, key);
61
+ }
62
+ close() {
63
+ this.db.close();
64
+ }
65
+ }
66
+ exports.SqliteKVStore = SqliteKVStore;
@@ -0,0 +1,6 @@
1
+ export type KeyValueStore = {
2
+ get(key: string): string | undefined;
3
+ set(key: string, value: string): void;
4
+ delete?(key: string): void;
5
+ };
6
+ export declare function createStore(): KeyValueStore;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // Node-oriented store factory for gust-server.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.createStore = createStore;
5
+ function memoryStore() {
6
+ const m = new Map();
7
+ return { get: (k) => m.get(k), set: (k, v) => void m.set(k, v) };
8
+ }
9
+ function createStore() {
10
+ try {
11
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
12
+ const { SqliteKVStore } = require("./SqliteKVStore.js");
13
+ const kv = new SqliteKVStore({ namespace: "gust-agents" });
14
+ return {
15
+ get: (k) => kv.get(k),
16
+ set: (k, v) => kv.set(k, v),
17
+ delete: (k) => kv.set(k, ""),
18
+ };
19
+ }
20
+ catch {
21
+ return memoryStore();
22
+ }
23
+ }
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@slimcloud/gust-server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Privileged full Gust SDK for Node/BFF (resolveUser, apiKey connect, same façade as @slimcloud/gust-client).",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "require": "./dist/index.js",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./server": {
14
+ "types": "./dist/server.d.ts",
15
+ "require": "./dist/server.js",
16
+ "default": "./dist/server.js"
17
+ },
18
+ "./package.json": "./package.json"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "dependencies": {
24
+ "better-sqlite3": "^12.6.2",
25
+ "@slimcloud/gust-client": "0.1.1",
26
+ "@slimcloud/gust-types": "0.1.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/better-sqlite3": "^7.6.13",
30
+ "@types/node": "^22.15.14",
31
+ "typescript": "^5.8.3"
32
+ },
33
+ "engines": {
34
+ "node": ">=22 <23"
35
+ },
36
+ "license": "MIT",
37
+ "publishConfig": {
38
+ "registry": "https://registry.npmjs.org/",
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc",
43
+ "dev": "tsc --watch --preserveWatchOutput"
44
+ }
6
45
  }