theokit 0.55.0 → 0.56.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/dist/{actions-virtual-module-TZFLCIIR.js → actions-virtual-module-3V7VG2YL.js} +3 -3
- package/dist/{actions-virtual-module-PREAJNIS.js → actions-virtual-module-KJBCM7PP.js} +21 -21
- package/dist/adapters/agent-mount.d.ts +1 -1
- package/dist/adapters/agent-mount.js +9 -9
- package/dist/{agent-2AELELAC.js → agent-NLG77PFN.js} +3 -3
- package/dist/{agents-typed-client-INR2E7B3.js → agents-typed-client-PVUZU65B.js} +3 -3
- package/dist/{app-typed-client-KSFGMOQ6.js → app-typed-client-XSXAORG6.js} +21 -21
- package/dist/{app-typed-client-NEKRXPAQ.js → app-typed-client-ZO3VKJ3O.js} +3 -3
- package/dist/boot/index.js +3 -3
- package/dist/{build-ESSQS5F5.js → build-4GQLIFTD.js} +3 -3
- package/dist/{bun-L7PP6ID5.js → bun-POLTY2HK.js} +118 -3
- package/dist/bun-POLTY2HK.js.map +1 -0
- package/dist/{chunk-DADMEW4G.js → chunk-22ZZSUKD.js} +2 -2
- package/dist/{chunk-5YPXXSYY.js → chunk-35QIWOHT.js} +9 -8
- package/dist/chunk-35QIWOHT.js.map +1 -0
- package/dist/{chunk-JDN5SAAD.js → chunk-44E7XIZC.js} +6 -6
- package/dist/{chunk-OQCRCXCP.js → chunk-4ERYQBL6.js} +2 -2
- package/dist/{chunk-52PDWL5S.js → chunk-5KRMDP46.js} +2 -2
- package/dist/{chunk-VRELW5NF.js → chunk-5TPBOAAH.js} +8 -8
- package/dist/{chunk-QZUIF64G.js → chunk-6PFF5HMY.js} +3 -3
- package/dist/{chunk-VQPHPQ5L.js → chunk-7NRFZBAL.js} +3 -3
- package/dist/{chunk-3PBAN2YE.js → chunk-CF2DNN5R.js} +9 -8
- package/dist/{chunk-3PBAN2YE.js.map → chunk-CF2DNN5R.js.map} +1 -1
- package/dist/{chunk-HK4AZBKX.js → chunk-D5KBBTVD.js} +7 -7
- package/dist/{chunk-BU6RJPPJ.js → chunk-GO7UWJ47.js} +2 -2
- package/dist/{chunk-BU6RJPPJ.js.map → chunk-GO7UWJ47.js.map} +1 -1
- package/dist/{chunk-VZTYCAO6.js → chunk-IDEZ7FU2.js} +3 -3
- package/dist/{chunk-ITSNTHWN.js → chunk-JW5UFKQ3.js} +17 -17
- package/dist/{chunk-IRASEXOG.js → chunk-KDP2HURW.js} +6 -6
- package/dist/{chunk-GWE4MUKQ.js → chunk-KQ27YDLG.js} +8 -8
- package/dist/{chunk-WX6NHGKS.js → chunk-M357ILK5.js} +10 -10
- package/dist/{chunk-ZQO37YQJ.js → chunk-PELXWPDF.js} +5 -5
- package/dist/{chunk-2OEN3YTE.js → chunk-PVNMLZ5G.js} +2 -2
- package/dist/{chunk-5K4TDLRG.js → chunk-SOYOYGWY.js} +3 -3
- package/dist/{chunk-2PSKQWGM.js → chunk-TUO2FE3S.js} +3 -3
- package/dist/{chunk-4X6H2BXP.js → chunk-U3SPBLJF.js} +3 -3
- package/dist/{chunk-BX6EUYHU.js → chunk-V6Y2SMRG.js} +3 -3
- package/dist/{chunk-I2UN46ZX.js → chunk-XJOU425Y.js} +17 -17
- package/dist/{chunk-3DRALT3J.js → chunk-XYVZJCZU.js} +4 -4
- package/dist/{chunk-BND4YZTQ.js → chunk-ZDCCILMP.js} +2 -2
- package/dist/{chunk-F6P6S5YS.js → chunk-ZTIB4QSV.js} +63 -63
- package/dist/cli/index.js +6 -6
- package/dist/{controller-swc-transform-T7ZTD55V.js → controller-swc-transform-7EZKG2IS.js} +2 -2
- package/dist/cost-types-BALTuBpG.d.ts +79 -0
- package/dist/{dev-MWGPBGQP.js → dev-ZNTHPBBN.js} +5 -5
- package/dist/{dev-emit-W27J3DLU.js → dev-emit-FIQASO3D.js} +7 -7
- package/dist/index.js +23 -23
- package/dist/{internal-api-XSUP3NDI.js → internal-api-D76JZGSC.js} +3 -3
- package/dist/{internal-api-J3BYA3VU.js → internal-api-JNX3MTIM.js} +26 -26
- package/dist/{mcp-6IPY275L.js → mcp-IMY3NUCL.js} +3 -3
- package/dist/{preview-KPAKWBRW.js → preview-K4NIQLAK.js} +3 -3
- package/dist/{provider-resolver-Dx6QuWrw.d.ts → provider-resolver-VS61zqsw.d.ts} +0 -11
- package/dist/{registry-KBZDCFVQ.js → registry-3LUHO4IB.js} +2 -2
- package/dist/server/agent/index.d.ts +1 -1
- package/dist/server/agent/index.js +3 -3
- package/dist/server/cost/index.d.ts +3 -80
- package/dist/server/cost/sqlite/index.d.ts +21 -0
- package/dist/server/cost/sqlite/index.js +102 -0
- package/dist/server/cost/sqlite/index.js.map +1 -0
- package/dist/server/cron/index.js +4 -4
- package/dist/server/http/index.js +7 -7
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +79 -79
- package/dist/server/jobs/index.d.ts +2 -2
- package/dist/server/jobs/index.js +4 -4
- package/dist/server/observability/index.js +2 -2
- package/dist/server/scan/index.js +6 -6
- package/dist/server/storage/index.d.ts +2 -2
- package/dist/server/webhook/index.js +1 -1
- package/dist/{server-boundary-7ZO4FZIV.js → server-boundary-654WC5SA.js} +23 -23
- package/dist/{server-boundary-PGPFBJBH.js → server-boundary-NW6LNNGK.js} +3 -3
- package/dist/{server-routes-hmr-BWN3WIGR.js → server-routes-hmr-TNI3FNGM.js} +2 -2
- package/dist/{services-typed-client-IXNOPVZA.js → services-typed-client-ACTJHAEP.js} +2 -2
- package/dist/{start-F3T2ZPPI.js → start-ONZXIWEG.js} +4 -4
- package/dist/{storage-manager-C6hmsaer.d.ts → storage-manager-BtG38jYl.d.ts} +1 -1
- package/dist/{storage-types-DsDTCPbp.d.ts → storage-types-CFGPFIdB.d.ts} +1 -1
- package/dist/vite-plugin/index.js +21 -21
- package/dist/{vite-plugin-5O3D472R.js → vite-plugin-UET2BUFW.js} +5 -5
- package/package.json +7 -3
- package/dist/bun-L7PP6ID5.js.map +0 -1
- package/dist/chunk-5YPXXSYY.js.map +0 -1
- /package/dist/{actions-virtual-module-TZFLCIIR.js.map → actions-virtual-module-3V7VG2YL.js.map} +0 -0
- /package/dist/{actions-virtual-module-PREAJNIS.js.map → actions-virtual-module-KJBCM7PP.js.map} +0 -0
- /package/dist/{agent-2AELELAC.js.map → agent-NLG77PFN.js.map} +0 -0
- /package/dist/{agents-typed-client-INR2E7B3.js.map → agents-typed-client-PVUZU65B.js.map} +0 -0
- /package/dist/{app-typed-client-KSFGMOQ6.js.map → app-typed-client-XSXAORG6.js.map} +0 -0
- /package/dist/{app-typed-client-NEKRXPAQ.js.map → app-typed-client-ZO3VKJ3O.js.map} +0 -0
- /package/dist/{build-ESSQS5F5.js.map → build-4GQLIFTD.js.map} +0 -0
- /package/dist/{chunk-DADMEW4G.js.map → chunk-22ZZSUKD.js.map} +0 -0
- /package/dist/{chunk-JDN5SAAD.js.map → chunk-44E7XIZC.js.map} +0 -0
- /package/dist/{chunk-OQCRCXCP.js.map → chunk-4ERYQBL6.js.map} +0 -0
- /package/dist/{chunk-52PDWL5S.js.map → chunk-5KRMDP46.js.map} +0 -0
- /package/dist/{chunk-VRELW5NF.js.map → chunk-5TPBOAAH.js.map} +0 -0
- /package/dist/{chunk-QZUIF64G.js.map → chunk-6PFF5HMY.js.map} +0 -0
- /package/dist/{chunk-VQPHPQ5L.js.map → chunk-7NRFZBAL.js.map} +0 -0
- /package/dist/{chunk-HK4AZBKX.js.map → chunk-D5KBBTVD.js.map} +0 -0
- /package/dist/{chunk-VZTYCAO6.js.map → chunk-IDEZ7FU2.js.map} +0 -0
- /package/dist/{chunk-ITSNTHWN.js.map → chunk-JW5UFKQ3.js.map} +0 -0
- /package/dist/{chunk-IRASEXOG.js.map → chunk-KDP2HURW.js.map} +0 -0
- /package/dist/{chunk-GWE4MUKQ.js.map → chunk-KQ27YDLG.js.map} +0 -0
- /package/dist/{chunk-WX6NHGKS.js.map → chunk-M357ILK5.js.map} +0 -0
- /package/dist/{chunk-ZQO37YQJ.js.map → chunk-PELXWPDF.js.map} +0 -0
- /package/dist/{chunk-2OEN3YTE.js.map → chunk-PVNMLZ5G.js.map} +0 -0
- /package/dist/{chunk-5K4TDLRG.js.map → chunk-SOYOYGWY.js.map} +0 -0
- /package/dist/{chunk-2PSKQWGM.js.map → chunk-TUO2FE3S.js.map} +0 -0
- /package/dist/{chunk-4X6H2BXP.js.map → chunk-U3SPBLJF.js.map} +0 -0
- /package/dist/{chunk-BX6EUYHU.js.map → chunk-V6Y2SMRG.js.map} +0 -0
- /package/dist/{chunk-I2UN46ZX.js.map → chunk-XJOU425Y.js.map} +0 -0
- /package/dist/{chunk-3DRALT3J.js.map → chunk-XYVZJCZU.js.map} +0 -0
- /package/dist/{chunk-BND4YZTQ.js.map → chunk-ZDCCILMP.js.map} +0 -0
- /package/dist/{chunk-F6P6S5YS.js.map → chunk-ZTIB4QSV.js.map} +0 -0
- /package/dist/{controller-swc-transform-T7ZTD55V.js.map → controller-swc-transform-7EZKG2IS.js.map} +0 -0
- /package/dist/{dev-MWGPBGQP.js.map → dev-ZNTHPBBN.js.map} +0 -0
- /package/dist/{dev-emit-W27J3DLU.js.map → dev-emit-FIQASO3D.js.map} +0 -0
- /package/dist/{internal-api-XSUP3NDI.js.map → internal-api-D76JZGSC.js.map} +0 -0
- /package/dist/{internal-api-J3BYA3VU.js.map → internal-api-JNX3MTIM.js.map} +0 -0
- /package/dist/{mcp-6IPY275L.js.map → mcp-IMY3NUCL.js.map} +0 -0
- /package/dist/{preview-KPAKWBRW.js.map → preview-K4NIQLAK.js.map} +0 -0
- /package/dist/{registry-KBZDCFVQ.js.map → registry-3LUHO4IB.js.map} +0 -0
- /package/dist/{server-boundary-7ZO4FZIV.js.map → server-boundary-654WC5SA.js.map} +0 -0
- /package/dist/{server-boundary-PGPFBJBH.js.map → server-boundary-NW6LNNGK.js.map} +0 -0
- /package/dist/{server-routes-hmr-BWN3WIGR.js.map → server-routes-hmr-TNI3FNGM.js.map} +0 -0
- /package/dist/{services-typed-client-IXNOPVZA.js.map → services-typed-client-ACTJHAEP.js.map} +0 -0
- /package/dist/{start-F3T2ZPPI.js.map → start-ONZXIWEG.js.map} +0 -0
- /package/dist/{vite-plugin-5O3D472R.js.map → vite-plugin-UET2BUFW.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
handleMcpJsonRpc
|
|
3
|
-
} from "./chunk-YOIVCCZT.js";
|
|
4
1
|
import {
|
|
5
2
|
defineAgentTool
|
|
6
3
|
} from "./chunk-BZF76LFM.js";
|
|
4
|
+
import {
|
|
5
|
+
handleMcpJsonRpc
|
|
6
|
+
} from "./chunk-YOIVCCZT.js";
|
|
7
7
|
|
|
8
8
|
// src/server/agent/workflow-tool.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -33,7 +33,7 @@ function createWorkflowTool(workflow, config) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// src/server/agent/acp-tool.ts
|
|
36
|
-
import { spawn } from "child_process";
|
|
36
|
+
import { spawn } from "node:child_process";
|
|
37
37
|
import { AcpClient } from "@theokit/agents";
|
|
38
38
|
var NodeAcpTransport = class {
|
|
39
39
|
// stdin=pipe, stdout=pipe, stderr=inherit → the third stream is null.
|
|
@@ -289,4 +289,4 @@ export {
|
|
|
289
289
|
streamAgentTurnInProcess,
|
|
290
290
|
InProcessApprovalRequiredError
|
|
291
291
|
};
|
|
292
|
-
//# sourceMappingURL=chunk-
|
|
292
|
+
//# sourceMappingURL=chunk-PELXWPDF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractW3CTraceContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZDCCILMP.js";
|
|
4
4
|
import {
|
|
5
5
|
newSpanId,
|
|
6
6
|
newTraceId
|
|
@@ -404,4 +404,4 @@ export {
|
|
|
404
404
|
resolveAdapter,
|
|
405
405
|
createObservabilityPlugin
|
|
406
406
|
};
|
|
407
|
-
//# sourceMappingURL=chunk-
|
|
407
|
+
//# sourceMappingURL=chunk-PVNMLZ5G.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-ZWN3AODA.js";
|
|
4
4
|
|
|
5
5
|
// src/server/_internal/scan-walker.ts
|
|
6
|
-
import { readdirSync } from "fs";
|
|
7
|
-
import { extname, join, resolve } from "path";
|
|
6
|
+
import { readdirSync } from "node:fs";
|
|
7
|
+
import { extname, join, resolve } from "node:path";
|
|
8
8
|
function walkSourceFiles(root, opts, onFile) {
|
|
9
9
|
const skipPrefixes = opts.skipPrefixes ?? ["_", "."];
|
|
10
10
|
const readDir = opts.readDir ?? ((dir) => readdirSync(dir, { withFileTypes: true }));
|
|
@@ -31,4 +31,4 @@ function walkSourceFiles(root, opts, onFile) {
|
|
|
31
31
|
export {
|
|
32
32
|
walkSourceFiles
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-SOYOYGWY.js.map
|
|
@@ -3,7 +3,7 @@ import "tsx/esm";
|
|
|
3
3
|
import {
|
|
4
4
|
getApprovalRegistry,
|
|
5
5
|
resolveProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-35QIWOHT.js";
|
|
7
7
|
import {
|
|
8
8
|
scanAgents
|
|
9
9
|
} from "./chunk-5NNFO7R7.js";
|
|
@@ -178,7 +178,7 @@ async function agentCommand(name, message, deps = {}) {
|
|
|
178
178
|
async function createAgentSsrLoader(projectRoot) {
|
|
179
179
|
const { createServer } = await import("vite");
|
|
180
180
|
const react = (await import("@vitejs/plugin-react")).default;
|
|
181
|
-
const { theoPluginAsync } = await import("./vite-plugin-
|
|
181
|
+
const { theoPluginAsync } = await import("./vite-plugin-UET2BUFW.js");
|
|
182
182
|
const { loadConfig } = await import("./load-config-BKUAMGO5.js");
|
|
183
183
|
const config = await loadConfig(projectRoot);
|
|
184
184
|
const theoPlugins = await theoPluginAsync({
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
agentCommand,
|
|
213
213
|
createAgentSsrLoader
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-TUO2FE3S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/config/load-env.ts
|
|
2
|
-
import { closeSync, lstatSync, openSync, readFileSync, realpathSync, statSync } from "fs";
|
|
3
|
-
import { resolve } from "path";
|
|
2
|
+
import { closeSync, lstatSync, openSync, readFileSync, realpathSync, statSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
4
|
import dotenv from "dotenv";
|
|
5
5
|
import { expand } from "dotenv-expand";
|
|
6
6
|
var MAX_ENV_FILE_BYTES = 1048576;
|
|
@@ -105,4 +105,4 @@ export {
|
|
|
105
105
|
_resetEnvCache,
|
|
106
106
|
loadEnv
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=chunk-
|
|
108
|
+
//# sourceMappingURL=chunk-U3SPBLJF.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-ZWN3AODA.js";
|
|
4
4
|
|
|
5
5
|
// src/server/scan/middleware-scan.ts
|
|
6
|
-
import { readdirSync, existsSync, statSync } from "fs";
|
|
7
|
-
import { join, extname } from "path";
|
|
6
|
+
import { readdirSync, existsSync, statSync } from "node:fs";
|
|
7
|
+
import { join, extname } from "node:path";
|
|
8
8
|
var MW_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx"]);
|
|
9
9
|
function scanMiddlewares(serverDir) {
|
|
10
10
|
const mwDir = join(serverDir, "middleware");
|
|
@@ -27,4 +27,4 @@ function scanMiddlewares(serverDir) {
|
|
|
27
27
|
export {
|
|
28
28
|
scanMiddlewares
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-V6Y2SMRG.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HTTP_METHODS
|
|
3
|
-
} from "./chunk-DV34VG3N.js";
|
|
4
1
|
import {
|
|
5
2
|
MissingRoutePolicyError,
|
|
6
3
|
RedundantApiSegmentError,
|
|
7
4
|
RouterConventionError,
|
|
8
5
|
createFileStampCache,
|
|
9
6
|
scanAgents
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KDP2HURW.js";
|
|
8
|
+
import {
|
|
9
|
+
HTTP_METHODS
|
|
10
|
+
} from "./chunk-DV34VG3N.js";
|
|
11
11
|
import {
|
|
12
12
|
walkSourceFiles
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SOYOYGWY.js";
|
|
14
14
|
import {
|
|
15
15
|
compareByCodeUnit
|
|
16
16
|
} from "./chunk-ZWN3AODA.js";
|
|
17
17
|
|
|
18
18
|
// src/server/scan/action-scan.ts
|
|
19
|
-
import { existsSync, readFileSync, statSync } from "fs";
|
|
20
|
-
import { extname, join, relative } from "path";
|
|
19
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
20
|
+
import { extname, join, relative } from "node:path";
|
|
21
21
|
var ACTION_SCHEMAS_DIR = "schemas";
|
|
22
22
|
var ActionScanError = class extends Error {
|
|
23
23
|
code;
|
|
@@ -190,12 +190,12 @@ function matchRoute(url, routes) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
// src/server/scan/scan.ts
|
|
193
|
-
import { existsSync as existsSync2, readFileSync as readFileSync3, statSync as statSync2 } from "fs";
|
|
194
|
-
import { basename, extname as extname2, join as join2, relative as relative2 } from "path";
|
|
193
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
|
|
194
|
+
import { basename, extname as extname2, join as join2, relative as relative2 } from "node:path";
|
|
195
195
|
|
|
196
196
|
// src/server/scan/detect-http-methods.ts
|
|
197
|
-
import { readFileSync as readFileSync2 } from "fs";
|
|
198
|
-
import { createRequire } from "module";
|
|
197
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
198
|
+
import { createRequire } from "node:module";
|
|
199
199
|
var require_ = createRequire(import.meta.url);
|
|
200
200
|
var ts = require_("typescript");
|
|
201
201
|
var HTTP_METHOD_NAMES = new Set(HTTP_METHODS);
|
|
@@ -247,7 +247,7 @@ function detectExportedHttpMethods(filePath, content) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// src/server/scan/detect-route-policy.ts
|
|
250
|
-
import { createRequire as createRequire2 } from "module";
|
|
250
|
+
import { createRequire as createRequire2 } from "node:module";
|
|
251
251
|
var require_2 = createRequire2(import.meta.url);
|
|
252
252
|
var ts2 = require_2("typescript");
|
|
253
253
|
var HTTP_METHOD_NAMES2 = new Set(HTTP_METHODS);
|
|
@@ -521,8 +521,8 @@ function compareRouteSpecificity(a, b) {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
// src/server/scan/ws-scan.ts
|
|
524
|
-
import { existsSync as existsSync3, statSync as statSync3 } from "fs";
|
|
525
|
-
import { extname as extname3, join as join3, relative as relative3 } from "path";
|
|
524
|
+
import { existsSync as existsSync3, statSync as statSync3 } from "node:fs";
|
|
525
|
+
import { extname as extname3, join as join3, relative as relative3 } from "node:path";
|
|
526
526
|
var WS_EXTENSIONS = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx"]);
|
|
527
527
|
function scanWebSocketRoutes(serverDir) {
|
|
528
528
|
const wsDir = join3(serverDir, "ws");
|
|
@@ -545,8 +545,8 @@ function scanWebSocketRoutes(serverDir) {
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
// src/server/scan/manifest.ts
|
|
548
|
-
import { existsSync as existsSync4, readFileSync as readFileSync4, writeFileSync, mkdirSync } from "fs";
|
|
549
|
-
import { join as join4, resolve, relative as relative4, dirname } from "path";
|
|
548
|
+
import { existsSync as existsSync4, readFileSync as readFileSync4, writeFileSync, mkdirSync } from "node:fs";
|
|
549
|
+
import { join as join4, resolve, relative as relative4, dirname } from "node:path";
|
|
550
550
|
function generateManifest(serverDir, projectRoot = dirname(serverDir), agentsDir = "agents") {
|
|
551
551
|
const routes = scanServerRoutes(serverDir);
|
|
552
552
|
const actions = scanServerActions(serverDir);
|
|
@@ -632,4 +632,4 @@ export {
|
|
|
632
632
|
writeManifest,
|
|
633
633
|
loadManifest
|
|
634
634
|
};
|
|
635
|
-
//# sourceMappingURL=chunk-
|
|
635
|
+
//# sourceMappingURL=chunk-XJOU425Y.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
dispatchCsrfWarn,
|
|
3
3
|
incomingMessageToWebRequest,
|
|
4
4
|
sendError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JW5UFKQ3.js";
|
|
6
6
|
import {
|
|
7
7
|
enforceCsrf
|
|
8
8
|
} from "./chunk-P6OS7652.js";
|
|
9
9
|
|
|
10
10
|
// src/server/http/controller-dispatch.ts
|
|
11
|
-
import { readdirSync } from "fs";
|
|
12
|
-
import { join } from "path";
|
|
11
|
+
import { readdirSync } from "node:fs";
|
|
12
|
+
import { join } from "node:path";
|
|
13
13
|
import { createDecoratorHandler, isControllerClass } from "@theokit/http";
|
|
14
14
|
var CSRF_PROTECTED_METHODS = /* @__PURE__ */ new Set(["POST", "PUT", "PATCH", "DELETE"]);
|
|
15
15
|
function findControllerFiles(dir) {
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
scanControllerModules,
|
|
109
109
|
dispatchControllerRequest
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-XYVZJCZU.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-CHTAWXC2.js";
|
|
4
4
|
|
|
5
5
|
// src/server/body-parser.ts
|
|
6
|
-
import { basename } from "path";
|
|
6
|
+
import { basename } from "node:path";
|
|
7
7
|
import Busboy from "busboy";
|
|
8
8
|
var METHODS_WITH_BODY = /* @__PURE__ */ new Set(["POST", "PUT", "PATCH"]);
|
|
9
9
|
var DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024;
|
|
@@ -428,4 +428,4 @@ export {
|
|
|
428
428
|
extractW3CTraceContext,
|
|
429
429
|
extractTraceIdFromRequest
|
|
430
430
|
};
|
|
431
|
-
//# sourceMappingURL=chunk-
|
|
431
|
+
//# sourceMappingURL=chunk-ZDCCILMP.js.map
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveTheoRootDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7NRFZBAL.js";
|
|
4
4
|
import {
|
|
5
5
|
buildServicesProxyConfig,
|
|
6
6
|
servicesConfigSchema
|
|
7
7
|
} from "./chunk-SSYDEKWF.js";
|
|
8
8
|
import {
|
|
9
9
|
dispatchControllerRequest
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
broadcastToDevtools
|
|
13
|
-
} from "./chunk-OIGJOYX6.js";
|
|
10
|
+
} from "./chunk-XYVZJCZU.js";
|
|
14
11
|
import {
|
|
15
12
|
RUN_ID_HEADER,
|
|
16
13
|
SSE_BASE_HEADERS,
|
|
@@ -35,10 +32,20 @@ import {
|
|
|
35
32
|
securitySchema,
|
|
36
33
|
storageSchema,
|
|
37
34
|
uploadSchema
|
|
38
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-M357ILK5.js";
|
|
36
|
+
import {
|
|
37
|
+
broadcastToDevtools
|
|
38
|
+
} from "./chunk-OIGJOYX6.js";
|
|
39
39
|
import {
|
|
40
40
|
loadEnv
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-U3SPBLJF.js";
|
|
42
|
+
import {
|
|
43
|
+
CSP_REPORT_PATH,
|
|
44
|
+
CsrfReadinessStore,
|
|
45
|
+
applySecurityHeaders,
|
|
46
|
+
handleCspReport,
|
|
47
|
+
handleCsrfReadiness
|
|
48
|
+
} from "./chunk-BPYMC7SU.js";
|
|
42
49
|
import {
|
|
43
50
|
resolveTransformer
|
|
44
51
|
} from "./chunk-OGLS76RN.js";
|
|
@@ -53,7 +60,13 @@ import {
|
|
|
53
60
|
incomingMessageToHandlerRequest,
|
|
54
61
|
sendError,
|
|
55
62
|
writeWebResponseToServerResponse
|
|
56
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JW5UFKQ3.js";
|
|
64
|
+
import {
|
|
65
|
+
validateCsrfRequest
|
|
66
|
+
} from "./chunk-P6OS7652.js";
|
|
67
|
+
import {
|
|
68
|
+
subjectFromContext
|
|
69
|
+
} from "./chunk-YN4W7LCX.js";
|
|
57
70
|
import {
|
|
58
71
|
findSuggestion
|
|
59
72
|
} from "./chunk-NTDN54XO.js";
|
|
@@ -61,7 +74,7 @@ import {
|
|
|
61
74
|
TRACE_HEADER,
|
|
62
75
|
extractTraceId,
|
|
63
76
|
logRequest
|
|
64
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-ZDCCILMP.js";
|
|
65
78
|
import {
|
|
66
79
|
createPluginRunnerFromConfig
|
|
67
80
|
} from "./chunk-VSLTKX5L.js";
|
|
@@ -70,26 +83,16 @@ import {
|
|
|
70
83
|
} from "./chunk-TNI4MARH.js";
|
|
71
84
|
import {
|
|
72
85
|
createViteLoader
|
|
73
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-4ERYQBL6.js";
|
|
74
87
|
import {
|
|
75
88
|
matchRoute,
|
|
76
89
|
scanServerActions,
|
|
77
90
|
scanServerRoutes,
|
|
78
91
|
scanWebSocketRoutes
|
|
79
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XJOU425Y.js";
|
|
80
93
|
import {
|
|
81
94
|
scanAgents
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import {
|
|
84
|
-
CSP_REPORT_PATH,
|
|
85
|
-
CsrfReadinessStore,
|
|
86
|
-
applySecurityHeaders,
|
|
87
|
-
handleCspReport,
|
|
88
|
-
handleCsrfReadiness
|
|
89
|
-
} from "./chunk-BPYMC7SU.js";
|
|
90
|
-
import {
|
|
91
|
-
validateCsrfRequest
|
|
92
|
-
} from "./chunk-P6OS7652.js";
|
|
95
|
+
} from "./chunk-KDP2HURW.js";
|
|
93
96
|
import {
|
|
94
97
|
extractAppResources,
|
|
95
98
|
handleMcpJsonRpc,
|
|
@@ -97,25 +100,22 @@ import {
|
|
|
97
100
|
} from "./chunk-YOIVCCZT.js";
|
|
98
101
|
import {
|
|
99
102
|
resolveProvider
|
|
100
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-CF2DNN5R.js";
|
|
101
104
|
import {
|
|
102
105
|
generateNonce
|
|
103
106
|
} from "./chunk-Z4PJMZLM.js";
|
|
104
107
|
import {
|
|
105
108
|
importUserModule
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
subjectFromContext
|
|
109
|
-
} from "./chunk-YN4W7LCX.js";
|
|
109
|
+
} from "./chunk-5KRMDP46.js";
|
|
110
110
|
|
|
111
111
|
// src/vite-plugin/index.ts
|
|
112
|
-
import { existsSync as existsSync8 } from "fs";
|
|
113
|
-
import { resolve as resolve10, dirname as dirname4 } from "path";
|
|
114
|
-
import { fileURLToPath } from "url";
|
|
112
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
113
|
+
import { resolve as resolve10, dirname as dirname4 } from "node:path";
|
|
114
|
+
import { fileURLToPath } from "node:url";
|
|
115
115
|
|
|
116
116
|
// src/vite-plugin/config-hook.ts
|
|
117
|
-
import { existsSync } from "fs";
|
|
118
|
-
import { resolve } from "path";
|
|
117
|
+
import { existsSync } from "node:fs";
|
|
118
|
+
import { resolve } from "node:path";
|
|
119
119
|
function runConfigHook(ctx) {
|
|
120
120
|
const ext = existsSync(resolve(ctx.theoSrcDir, "index.ts")) ? ".ts" : ".js";
|
|
121
121
|
const warmupClientFiles = [];
|
|
@@ -211,8 +211,8 @@ function runConfigHook(ctx) {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
// src/config/load-config.ts
|
|
214
|
-
import { existsSync as existsSync2 } from "fs";
|
|
215
|
-
import { resolve as resolve2 } from "path";
|
|
214
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
215
|
+
import { resolve as resolve2 } from "node:path";
|
|
216
216
|
|
|
217
217
|
// src/config/errors.ts
|
|
218
218
|
var TheoConfigError = class extends Error {
|
|
@@ -571,8 +571,8 @@ async function loadConfig(dir) {
|
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
// src/config/resolve-plugin-specifiers.ts
|
|
574
|
-
import { isAbsolute, resolve as resolve3 } from "path";
|
|
575
|
-
import { pathToFileURL } from "url";
|
|
574
|
+
import { isAbsolute, resolve as resolve3 } from "node:path";
|
|
575
|
+
import { pathToFileURL } from "node:url";
|
|
576
576
|
var UnresolvablePluginSpecifierError = class extends Error {
|
|
577
577
|
constructor(index, specifier, reason) {
|
|
578
578
|
super(`plugins[${index}] (${specifier}) could not be loaded: ${reason}`);
|
|
@@ -611,8 +611,8 @@ function messageOf(err) {
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
// src/vite-plugin/theoui-detect.ts
|
|
614
|
-
import { existsSync as existsSync3, readFileSync } from "fs";
|
|
615
|
-
import { dirname, join } from "path";
|
|
614
|
+
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
615
|
+
import { dirname, join } from "node:path";
|
|
616
616
|
function resolveTheoUiConfig(raw) {
|
|
617
617
|
return {
|
|
618
618
|
theme: raw?.theme ?? "violet-forge",
|
|
@@ -750,7 +750,7 @@ async function resolvePluginConfig(projectRoot) {
|
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
// src/vite-plugin/configure-server-hook.ts
|
|
753
|
-
import { resolve as resolve8, basename } from "path";
|
|
753
|
+
import { resolve as resolve8, basename } from "node:path";
|
|
754
754
|
|
|
755
755
|
// src/devtools/server-side/route-manifest.ts
|
|
756
756
|
function buildPath(parents, segment) {
|
|
@@ -787,8 +787,8 @@ function broadcastRouteManifest(tree) {
|
|
|
787
787
|
}
|
|
788
788
|
|
|
789
789
|
// src/router/scan.ts
|
|
790
|
-
import { readdirSync, statSync, existsSync as existsSync4 } from "fs";
|
|
791
|
-
import { join as join2, resolve as resolve4 } from "path";
|
|
790
|
+
import { readdirSync, statSync, existsSync as existsSync4 } from "node:fs";
|
|
791
|
+
import { join as join2, resolve as resolve4 } from "node:path";
|
|
792
792
|
|
|
793
793
|
// src/router/types.ts
|
|
794
794
|
var ROUTE_FILE_NAMES = ["page", "layout", "error", "loading", "not-found"];
|
|
@@ -905,7 +905,7 @@ function scanRoutes(appDir) {
|
|
|
905
905
|
}
|
|
906
906
|
|
|
907
907
|
// src/vite-plugin/action-middleware.ts
|
|
908
|
-
import { randomUUID } from "crypto";
|
|
908
|
+
import { randomUUID } from "node:crypto";
|
|
909
909
|
var PREFIX = "/api/__actions/";
|
|
910
910
|
function createActionMiddleware(vite, serverDir, options) {
|
|
911
911
|
const loadModule = createViteLoader(vite);
|
|
@@ -988,7 +988,7 @@ function createActionMiddleware(vite, serverDir, options) {
|
|
|
988
988
|
}
|
|
989
989
|
|
|
990
990
|
// src/vite-plugin/agent-middleware.ts
|
|
991
|
-
import { randomUUID as randomUUID2 } from "crypto";
|
|
991
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
992
992
|
|
|
993
993
|
// src/server/agent/agent-card-handler.ts
|
|
994
994
|
import { buildAgentCard, compileAgentModule } from "@theokit/agents";
|
|
@@ -1820,7 +1820,7 @@ async function serveAgentTurn(t) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
|
|
1822
1822
|
// src/vite-plugin/api-middleware.ts
|
|
1823
|
-
import { resolve as resolve6 } from "path";
|
|
1823
|
+
import { resolve as resolve6 } from "node:path";
|
|
1824
1824
|
function shouldBypassApiMiddleware(url, prefixes) {
|
|
1825
1825
|
if (!url.startsWith("/api/")) return true;
|
|
1826
1826
|
if (prefixes.length === 0) return false;
|
|
@@ -2070,8 +2070,8 @@ function createApiMiddleware(vite, serverDir, rateLimitConfigOrOptions) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
// src/vite-plugin/ssr-dev-middleware.ts
|
|
2073
|
-
import { readFileSync as readFileSync2 } from "fs";
|
|
2074
|
-
import { resolve as resolve7 } from "path";
|
|
2073
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2074
|
+
import { resolve as resolve7 } from "node:path";
|
|
2075
2075
|
|
|
2076
2076
|
// src/core/contracts/find-root-div.ts
|
|
2077
2077
|
function maskHtmlComments(html) {
|
|
@@ -2333,7 +2333,7 @@ async function runConfigureServer(server, ctx) {
|
|
|
2333
2333
|
server.watcher.on("unlink", handleRouteChange);
|
|
2334
2334
|
if (ctx.resolvedOpenApi !== void 0) {
|
|
2335
2335
|
const openApiCfg = ctx.resolvedOpenApi;
|
|
2336
|
-
const { reEmitOpenApi } = await import("./dev-emit-
|
|
2336
|
+
const { reEmitOpenApi } = await import("./dev-emit-FIQASO3D.js");
|
|
2337
2337
|
const openApiServerDir = ctx.serverDir;
|
|
2338
2338
|
const openApiDistDir = resolve8(ctx.projectRoot, ctx.resolvedDistDir);
|
|
2339
2339
|
const isRouteFileForOpenApi = (file) => file.startsWith(openApiServerDir) && /\.(ts|tsx|js|mjs)$/.test(file);
|
|
@@ -2383,13 +2383,13 @@ async function integrateStudio(importStudio = () => import(
|
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
2385
|
// src/vite-plugin/integrate-ui.ts
|
|
2386
|
-
import { existsSync as existsSync6, readFileSync as readFileSync4 } from "fs";
|
|
2387
|
-
import { dirname as dirname3, join as join4 } from "path";
|
|
2388
|
-
import { pathToFileURL as pathToFileURL2 } from "url";
|
|
2386
|
+
import { existsSync as existsSync6, readFileSync as readFileSync4 } from "node:fs";
|
|
2387
|
+
import { dirname as dirname3, join as join4 } from "node:path";
|
|
2388
|
+
import { pathToFileURL as pathToFileURL2 } from "node:url";
|
|
2389
2389
|
|
|
2390
2390
|
// src/vite-plugin/auto-detect.ts
|
|
2391
|
-
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "fs";
|
|
2392
|
-
import { dirname as dirname2, join as join3 } from "path";
|
|
2391
|
+
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
2392
|
+
import { dirname as dirname2, join as join3 } from "node:path";
|
|
2393
2393
|
function isDeclared(name, projectRoot) {
|
|
2394
2394
|
try {
|
|
2395
2395
|
const raw = readFileSync3(join3(projectRoot, "package.json"), "utf-8");
|
|
@@ -2641,8 +2641,8 @@ async function integrateUseTheoUI(cwd, opts) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
|
|
2643
2643
|
// src/vite-plugin/transform-html-hook.ts
|
|
2644
|
-
import { existsSync as existsSync7 } from "fs";
|
|
2645
|
-
import { resolve as resolve9 } from "path";
|
|
2644
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
2645
|
+
import { resolve as resolve9 } from "node:path";
|
|
2646
2646
|
|
|
2647
2647
|
// src/vite-plugin/inject-devtools.ts
|
|
2648
2648
|
var DEVTOOLS_VIRTUAL_ID = "/@theo/devtools/entry.js";
|
|
@@ -3476,7 +3476,7 @@ async function theoPluginAsync(rootOrOptions) {
|
|
|
3476
3476
|
const studioPlugins = await integrateStudio();
|
|
3477
3477
|
const servicesPlugins = [];
|
|
3478
3478
|
if (options.services && Object.keys(options.services).length > 0) {
|
|
3479
|
-
const { servicesTypedClientPlugin } = await import("./services-typed-client-
|
|
3479
|
+
const { servicesTypedClientPlugin } = await import("./services-typed-client-ACTJHAEP.js");
|
|
3480
3480
|
servicesPlugins.push(
|
|
3481
3481
|
servicesTypedClientPlugin({
|
|
3482
3482
|
cwd: projectRoot,
|
|
@@ -3484,19 +3484,19 @@ async function theoPluginAsync(rootOrOptions) {
|
|
|
3484
3484
|
})
|
|
3485
3485
|
);
|
|
3486
3486
|
}
|
|
3487
|
-
const { appTypedClientPlugin } = await import("./app-typed-client-
|
|
3487
|
+
const { appTypedClientPlugin } = await import("./app-typed-client-XSXAORG6.js");
|
|
3488
3488
|
const appClientPlugin = appTypedClientPlugin({
|
|
3489
3489
|
cwd: projectRoot,
|
|
3490
3490
|
serverDir: serverDirAbs,
|
|
3491
3491
|
distDir: resolve10(projectRoot, ".theokit")
|
|
3492
3492
|
});
|
|
3493
|
-
const { actionsVirtualModule } = await import("./actions-virtual-module-
|
|
3493
|
+
const { actionsVirtualModule } = await import("./actions-virtual-module-KJBCM7PP.js");
|
|
3494
3494
|
const actionsPlugin = actionsVirtualModule({
|
|
3495
3495
|
serverDir: serverDirAbs,
|
|
3496
3496
|
distDir: resolve10(projectRoot, ".theokit")
|
|
3497
3497
|
});
|
|
3498
|
-
const { agentsTypedClientPlugin } = await import("./agents-typed-client-
|
|
3499
|
-
const { generateManifest } = await import("./internal-api-
|
|
3498
|
+
const { agentsTypedClientPlugin } = await import("./agents-typed-client-PVUZU65B.js");
|
|
3499
|
+
const { generateManifest } = await import("./internal-api-JNX3MTIM.js");
|
|
3500
3500
|
const agentsClientPlugin = agentsTypedClientPlugin({
|
|
3501
3501
|
projectRoot,
|
|
3502
3502
|
agentsDir: agentsDirName,
|
|
@@ -3505,15 +3505,15 @@ async function theoPluginAsync(rootOrOptions) {
|
|
|
3505
3505
|
// parent (projectRoot for the canonical layout) + the agents dir name (#95 follow-up).
|
|
3506
3506
|
scanManifest: () => generateManifest(serverDirAbs, projectRoot, agentsDirName)
|
|
3507
3507
|
});
|
|
3508
|
-
const { serverRoutesHmrPlugin } = await import("./server-routes-hmr-
|
|
3508
|
+
const { serverRoutesHmrPlugin } = await import("./server-routes-hmr-TNI3FNGM.js");
|
|
3509
3509
|
const routesHmrPlugin = serverRoutesHmrPlugin({
|
|
3510
3510
|
serverDir: serverDirAbs
|
|
3511
3511
|
});
|
|
3512
|
-
const { controllerSwcTransformPlugin } = await import("./controller-swc-transform-
|
|
3512
|
+
const { controllerSwcTransformPlugin } = await import("./controller-swc-transform-7EZKG2IS.js");
|
|
3513
3513
|
const controllerTransformPlugin = controllerSwcTransformPlugin({
|
|
3514
3514
|
serverDir: serverDirAbs
|
|
3515
3515
|
});
|
|
3516
|
-
const { serverOnlyImportBoundary } = await import("./server-boundary-
|
|
3516
|
+
const { serverOnlyImportBoundary } = await import("./server-boundary-654WC5SA.js");
|
|
3517
3517
|
const serverBoundaryPlugin = serverOnlyImportBoundary({
|
|
3518
3518
|
projectRoot,
|
|
3519
3519
|
serverDir: serverDirAbs
|
|
@@ -3696,4 +3696,4 @@ export {
|
|
|
3696
3696
|
theoPluginAsync,
|
|
3697
3697
|
theoPlugin
|
|
3698
3698
|
};
|
|
3699
|
-
//# sourceMappingURL=chunk-
|
|
3699
|
+
//# sourceMappingURL=chunk-ZTIB4QSV.js.map
|
package/dist/cli/index.js
CHANGED
|
@@ -15,12 +15,12 @@ function cliVersion() {
|
|
|
15
15
|
// src/cli/index.ts
|
|
16
16
|
var cli = cac("theokit");
|
|
17
17
|
cli.command("dev", "Start development server").option("--port <port>", "Port number").action(async (options) => {
|
|
18
|
-
const { devCommand } = await import("../dev-
|
|
18
|
+
const { devCommand } = await import("../dev-ZNTHPBBN.js");
|
|
19
19
|
await devCommand({ port: options.port ? Number(options.port) : void 0 });
|
|
20
20
|
});
|
|
21
21
|
cli.command("build", "Build for production").option("--target <target>", "Deploy target (node, vercel, cloudflare)").action(async (options) => {
|
|
22
22
|
try {
|
|
23
|
-
const { buildCommand } = await import("../build-
|
|
23
|
+
const { buildCommand } = await import("../build-4GQLIFTD.js");
|
|
24
24
|
await buildCommand({ target: options.target });
|
|
25
25
|
} catch (err) {
|
|
26
26
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -32,7 +32,7 @@ cli.command("build", "Build for production").option("--target <target>", "Deploy
|
|
|
32
32
|
});
|
|
33
33
|
cli.command("start", "Start production server").option("--port <port>", "Port number").action(async (options) => {
|
|
34
34
|
try {
|
|
35
|
-
const { startCommand } = await import("../start-
|
|
35
|
+
const { startCommand } = await import("../start-ONZXIWEG.js");
|
|
36
36
|
await startCommand({ port: options.port ? Number(options.port) : void 0 });
|
|
37
37
|
} catch (err) {
|
|
38
38
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -44,7 +44,7 @@ cli.command("start", "Start production server").option("--port <port>", "Port nu
|
|
|
44
44
|
});
|
|
45
45
|
cli.command("preview", "Build for production, then serve it \u2014 one step (B-030)").option("--port <port>", "Port number").option("--target <target>", "Deploy target (node, vercel, cloudflare)").action(async (options) => {
|
|
46
46
|
try {
|
|
47
|
-
const { previewCommand } = await import("../preview-
|
|
47
|
+
const { previewCommand } = await import("../preview-K4NIQLAK.js");
|
|
48
48
|
await previewCommand({
|
|
49
49
|
port: options.port ? Number(options.port) : void 0,
|
|
50
50
|
target: options.target
|
|
@@ -77,7 +77,7 @@ cli.command(
|
|
|
77
77
|
"Run an agent in the terminal (stream + tool calls + approval)"
|
|
78
78
|
).action(async (name, message) => {
|
|
79
79
|
try {
|
|
80
|
-
const { agentCommand } = await import("../agent-
|
|
80
|
+
const { agentCommand } = await import("../agent-NLG77PFN.js");
|
|
81
81
|
const { sawError } = await agentCommand(name, message);
|
|
82
82
|
if (sawError) process.exit(1);
|
|
83
83
|
} catch (err) {
|
|
@@ -108,7 +108,7 @@ cli.command("agent sessions gc", "Collect old transcripts for this project (dry
|
|
|
108
108
|
});
|
|
109
109
|
cli.command("mcp <agent>", "Serve an agent as an MCP server over stdio (for desktop MCP clients)").action(async (agent) => {
|
|
110
110
|
try {
|
|
111
|
-
const { mcpCommand } = await import("../mcp-
|
|
111
|
+
const { mcpCommand } = await import("../mcp-IMY3NUCL.js");
|
|
112
112
|
await mcpCommand(agent);
|
|
113
113
|
} catch (err) {
|
|
114
114
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-XTHN6JBX.js";
|
|
2
2
|
|
|
3
3
|
// src/vite-plugin/controller-swc-transform.ts
|
|
4
|
-
import { resolve } from "path";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
5
|
import { transformControllerSource } from "@theokit/http";
|
|
6
6
|
function toPosix(p) {
|
|
7
7
|
return p.replace(/\\/g, "/");
|
|
@@ -24,4 +24,4 @@ function controllerSwcTransformPlugin(options) {
|
|
|
24
24
|
export {
|
|
25
25
|
controllerSwcTransformPlugin
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=controller-swc-transform-
|
|
27
|
+
//# sourceMappingURL=controller-swc-transform-7EZKG2IS.js.map
|