theokit 0.75.1 → 0.76.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 +88 -1
- package/dist/{actions-virtual-module-MIQPBAZW.js → actions-virtual-module-52O6HJZT.js} +11 -9
- package/dist/actions-virtual-module-52O6HJZT.js.map +1 -0
- package/dist/{actions-virtual-module-QEI6QPK4.js → actions-virtual-module-HS4W7HQU.js} +6 -5
- package/dist/{actions-virtual-module-QEI6QPK4.js.map → actions-virtual-module-HS4W7HQU.js.map} +1 -1
- package/dist/adapters/agent-mount.js +9 -7
- package/dist/{agent-N4OV5MDY.js → agent-HCK5RHH7.js} +4 -3
- package/dist/{app-typed-client-CHSITA46.js → app-typed-client-BWITJLJA.js} +6 -5
- package/dist/{app-typed-client-CHSITA46.js.map → app-typed-client-BWITJLJA.js.map} +1 -1
- package/dist/{app-typed-client-XQJXF646.js → app-typed-client-CJCOALMM.js} +11 -9
- package/dist/app-typed-client-CJCOALMM.js.map +1 -0
- package/dist/{aws-lambda-K5Y6XS5V.js → aws-lambda-XT7ZDJ6B.js} +3 -3
- package/dist/{build-GNKTCEES.js → build-Y3CWTWP6.js} +24 -92
- package/dist/build-Y3CWTWP6.js.map +1 -0
- package/dist/{bun-VPXMWFBA.js → bun-PJLDELDT.js} +5 -5
- package/dist/{chunk-J2KYVTPD.js → chunk-2SGNODVJ.js} +30 -16
- package/dist/chunk-2SGNODVJ.js.map +1 -0
- package/dist/chunk-2SQ7YAU3.js +85 -0
- package/dist/chunk-2SQ7YAU3.js.map +1 -0
- package/dist/{chunk-SYIQV4UH.js → chunk-36ZACTF3.js} +5 -5
- package/dist/{chunk-RY6D4EXL.js → chunk-3GM4GACM.js} +25 -4
- package/dist/{chunk-RY6D4EXL.js.map → chunk-3GM4GACM.js.map} +1 -1
- package/dist/{chunk-EW5IG7GA.js → chunk-42TYMRBG.js} +1 -1
- package/dist/{chunk-EW5IG7GA.js.map → chunk-42TYMRBG.js.map} +1 -1
- package/dist/{chunk-BINRCILF.js → chunk-4JRXZTVQ.js} +4 -13
- package/dist/chunk-4JRXZTVQ.js.map +1 -0
- package/dist/{chunk-R4AMIBZL.js → chunk-4XZOUS5G.js} +8 -8
- package/dist/chunk-4XZOUS5G.js.map +1 -0
- package/dist/{chunk-ICXXHV4V.js → chunk-54BIQFP4.js} +4 -13
- package/dist/chunk-54BIQFP4.js.map +1 -0
- package/dist/{chunk-VPK7ABMB.js → chunk-7MCEJVGV.js} +3 -3
- package/dist/{chunk-D7STTNQN.js → chunk-BXQCJJPT.js} +3 -3
- package/dist/{chunk-NX3P5MLH.js → chunk-C2BRSL4W.js} +50 -6
- package/dist/chunk-C2BRSL4W.js.map +1 -0
- package/dist/{chunk-E5QTCOKC.js → chunk-FEK25JUL.js} +88 -24
- package/dist/chunk-FEK25JUL.js.map +1 -0
- package/dist/{chunk-NLHAYGQQ.js → chunk-G3DDIEYE.js} +4 -2
- package/dist/chunk-G3DDIEYE.js.map +1 -0
- package/dist/chunk-IXXZBZF7.js +70 -0
- package/dist/chunk-IXXZBZF7.js.map +1 -0
- package/dist/{chunk-PVNMLZ5G.js → chunk-JO462JZM.js} +2 -2
- package/dist/chunk-LXV5IEBB.js +76 -0
- package/dist/chunk-LXV5IEBB.js.map +1 -0
- package/dist/{chunk-D2R5SJEL.js → chunk-MAJZ2L3A.js} +2 -2
- package/dist/{chunk-D2R5SJEL.js.map → chunk-MAJZ2L3A.js.map} +1 -1
- package/dist/chunk-NF7LXSXZ.js +19 -0
- package/dist/chunk-NF7LXSXZ.js.map +1 -0
- package/dist/chunk-OED37LE5.js +469 -0
- package/dist/chunk-OED37LE5.js.map +1 -0
- package/dist/{chunk-CLSYYO5F.js → chunk-OIYSUQM7.js} +2 -2
- package/dist/{chunk-2Z7TANA4.js → chunk-PVCXREGE.js} +6 -6
- package/dist/{chunk-EVKNHQWG.js → chunk-QBK6YYZA.js} +48 -5
- package/dist/chunk-QBK6YYZA.js.map +1 -0
- package/dist/{chunk-4X43VTST.js → chunk-TODO6J42.js} +1 -1
- package/dist/chunk-TODO6J42.js.map +1 -0
- package/dist/{chunk-ZDCCILMP.js → chunk-TQTEKNOL.js} +2 -69
- package/dist/chunk-TQTEKNOL.js.map +1 -0
- package/dist/{chunk-3MKRDJQ2.js → chunk-UQQQ3V43.js} +278 -75
- package/dist/chunk-UQQQ3V43.js.map +1 -0
- package/dist/{chunk-MX63AWEK.js → chunk-VXDTQO3S.js} +22 -6
- package/dist/{chunk-MX63AWEK.js.map → chunk-VXDTQO3S.js.map} +1 -1
- package/dist/{chunk-OZB2TKGJ.js → chunk-W2I6L4IJ.js} +2 -2
- package/dist/{chunk-UWV3B3RY.js → chunk-XDLFOATW.js} +5 -5
- package/dist/{chunk-RQKMY3JW.js → chunk-XI4FALFZ.js} +3 -3
- package/dist/chunk-XI4FALFZ.js.map +1 -0
- package/dist/{chunk-2FHNJ7LI.js → chunk-Z76QQR7I.js} +2 -2
- package/dist/chunk-ZICY2CD7.js +16 -0
- package/dist/chunk-ZICY2CD7.js.map +1 -0
- package/dist/chunk-ZN5H7CUR.js +24 -0
- package/dist/chunk-ZN5H7CUR.js.map +1 -0
- package/dist/{chunk-I5PDEWZZ.js → chunk-ZQJORKBM.js} +9 -3
- package/dist/chunk-ZQJORKBM.js.map +1 -0
- package/dist/cli/index.js +21 -15
- package/dist/cli/index.js.map +1 -1
- package/dist/{cloudflare-7EZQE4UV.js → cloudflare-F7KLBOU4.js} +6 -6
- package/dist/{config-support-HUZ4DXR7.js → config-support-2TER2BYD.js} +28 -21
- package/dist/config-support-2TER2BYD.js.map +1 -0
- package/dist/cron-lock-CfAvLApv.d.ts +36 -0
- package/dist/db-ZWDKD57T.js +86 -0
- package/dist/db-ZWDKD57T.js.map +1 -0
- package/dist/{deno-deploy-M5V3PYWU.js → deno-deploy-LJ5JQQVR.js} +5 -5
- package/dist/{dev-7PMNIIOF.js → dev-R2ZYHZV4.js} +60 -11
- package/dist/dev-R2ZYHZV4.js.map +1 -0
- package/dist/{engine-singleton-X4R7AZBJ.js → engine-singleton-BQ5QOMTC.js} +15 -9
- package/dist/{engine-singleton-X4R7AZBJ.js.map → engine-singleton-BQ5QOMTC.js.map} +1 -1
- package/dist/{generate-RW3NO3NR.js → generate-VXBSMUMW.js} +291 -85
- package/dist/generate-VXBSMUMW.js.map +1 -0
- package/dist/{index-CmkWlIDO.d.ts → index-DfsJ3Qhk.d.ts} +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/{info-6NAUW5XY.js → info-IPMW56PI.js} +4 -4
- package/dist/{internal-api-R7TTYMCY.js → internal-api-6RAOYIET.js} +6 -5
- package/dist/{internal-api-A5HA7TYF.js → internal-api-YGFPLQ4E.js} +14 -11
- package/dist/job-backend-WvUs5rO1.d.ts +119 -0
- package/dist/{load-config-CLFWJOXN.js → load-config-USRR4GXP.js} +4 -4
- package/dist/{mcp-3NRZAQKY.js → mcp-FBXEX45H.js} +5 -4
- package/dist/{mcp-3NRZAQKY.js.map → mcp-FBXEX45H.js.map} +1 -1
- package/dist/{netlify-NI4HYDKN.js → netlify-ZPQNREFH.js} +2 -2
- package/dist/{node-LORYECWI.js → node-3EV3CVWB.js} +2 -2
- package/dist/{observability-bootstrap-DOWRMADT.js → observability-bootstrap-DMJ7R6WA.js} +3 -3
- package/dist/{openapi-ZHKJB3XL.js → openapi-CA3E3LZH.js} +4 -4
- package/dist/{preview-SNS7VJWH.js → preview-DLIVPM7A.js} +3 -3
- package/dist/registry-3D2KR7UE.js +34 -0
- package/dist/{routes-SMNSI2ZX.js → routes-BJ7GGRCV.js} +4 -4
- package/dist/{schema-DJH3IOVR.js → schema-FBM2UH72.js} +3 -3
- package/dist/{schemas-2R2J64ZH.js → schemas-BUR6PWSA.js} +2 -2
- package/dist/server/agent/index.d.ts +1 -1
- package/dist/server/agent/index.js +2 -1
- package/dist/server/cost/index.d.ts +2 -2
- package/dist/server/cost/index.js +1 -1
- package/dist/server/cost/sqlite/index.d.ts +2 -2
- package/dist/server/cost/sqlite/index.js +1 -1
- package/dist/server/cron/index.d.ts +20 -7
- package/dist/server/cron/index.js +8 -2
- package/dist/server/http/index.d.ts +2 -2
- package/dist/server/http/index.js +9 -7
- package/dist/server/index.d.ts +19 -10
- package/dist/server/index.js +103 -41
- package/dist/server/index.js.map +1 -1
- package/dist/server/jobs/index.d.ts +85 -44
- package/dist/server/jobs/index.js +9 -2
- package/dist/server/observability/index.js +9 -8
- package/dist/server/storage/index.d.ts +6 -2
- package/dist/server/storage/index.js +5 -1
- package/dist/server/webhook/index.d.ts +4 -5
- package/dist/server/webhook/index.js +1 -1
- package/dist/{server-boundary-ZT6HN7ON.js → server-boundary-EKIGYL7B.js} +6 -5
- package/dist/{server-boundary-ZT6HN7ON.js.map → server-boundary-EKIGYL7B.js.map} +1 -1
- package/dist/{server-boundary-HYLYGFZY.js → server-boundary-IDWIB24L.js} +11 -9
- package/dist/server-boundary-IDWIB24L.js.map +1 -0
- package/dist/{start-L5TGWGLU.js → start-LNT5UVSY.js} +118 -185
- package/dist/start-LNT5UVSY.js.map +1 -0
- package/dist/{static-O2RZ5NLR.js → static-VNN4HYRN.js} +2 -2
- package/dist/{storage-manager-3O5PDO6O.js → storage-manager-3IUIEG2P.js} +49 -5
- package/dist/storage-manager-3IUIEG2P.js.map +1 -0
- package/dist/{storage-manager-BtG38jYl.d.ts → storage-manager-Clu2RBpH.d.ts} +15 -3
- package/dist/{storage-types-CFGPFIdB.d.ts → storage-types-ndO0ZZqH.d.ts} +2 -2
- package/dist/{theo-cloud-B4R7GCWK.js → theo-cloud-243SPOIA.js} +2 -2
- package/dist/{vercel-INHLOCSZ.js → vercel-EXKSZ2OQ.js} +5 -5
- package/dist/vite-plugin/index.js +12 -10
- package/dist/{vite-plugin-UXEXT7GX.js → vite-plugin-LE42ZIGV.js} +10 -9
- package/dist/{whatsapp-D_Fnl1LX.d.ts → whatsapp-4W2eK2ij.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/actions-virtual-module-MIQPBAZW.js.map +0 -1
- package/dist/app-typed-client-XQJXF646.js.map +0 -1
- package/dist/build-GNKTCEES.js.map +0 -1
- package/dist/chunk-3MKRDJQ2.js.map +0 -1
- package/dist/chunk-4X43VTST.js.map +0 -1
- package/dist/chunk-BINRCILF.js.map +0 -1
- package/dist/chunk-E5QTCOKC.js.map +0 -1
- package/dist/chunk-EVKNHQWG.js.map +0 -1
- package/dist/chunk-I5PDEWZZ.js.map +0 -1
- package/dist/chunk-ICXXHV4V.js.map +0 -1
- package/dist/chunk-IDEZ7FU2.js +0 -18
- package/dist/chunk-IDEZ7FU2.js.map +0 -1
- package/dist/chunk-J2KYVTPD.js.map +0 -1
- package/dist/chunk-NLHAYGQQ.js.map +0 -1
- package/dist/chunk-NX3P5MLH.js.map +0 -1
- package/dist/chunk-R4AMIBZL.js.map +0 -1
- package/dist/chunk-RQKMY3JW.js.map +0 -1
- package/dist/chunk-YCF3N4JS.js +0 -26
- package/dist/chunk-YCF3N4JS.js.map +0 -1
- package/dist/chunk-ZDCCILMP.js.map +0 -1
- package/dist/config-support-HUZ4DXR7.js.map +0 -1
- package/dist/db-IVVCQE5Z.js +0 -76
- package/dist/db-IVVCQE5Z.js.map +0 -1
- package/dist/dev-7PMNIIOF.js.map +0 -1
- package/dist/generate-RW3NO3NR.js.map +0 -1
- package/dist/job-backend-CgC8Xf33.d.ts +0 -68
- package/dist/registry-3SVWZVIJ.js +0 -34
- package/dist/server-boundary-HYLYGFZY.js.map +0 -1
- package/dist/start-L5TGWGLU.js.map +0 -1
- package/dist/storage-manager-3O5PDO6O.js.map +0 -1
- /package/dist/{agent-N4OV5MDY.js.map → agent-HCK5RHH7.js.map} +0 -0
- /package/dist/{aws-lambda-K5Y6XS5V.js.map → aws-lambda-XT7ZDJ6B.js.map} +0 -0
- /package/dist/{bun-VPXMWFBA.js.map → bun-PJLDELDT.js.map} +0 -0
- /package/dist/{chunk-SYIQV4UH.js.map → chunk-36ZACTF3.js.map} +0 -0
- /package/dist/{chunk-VPK7ABMB.js.map → chunk-7MCEJVGV.js.map} +0 -0
- /package/dist/{chunk-D7STTNQN.js.map → chunk-BXQCJJPT.js.map} +0 -0
- /package/dist/{chunk-PVNMLZ5G.js.map → chunk-JO462JZM.js.map} +0 -0
- /package/dist/{chunk-CLSYYO5F.js.map → chunk-OIYSUQM7.js.map} +0 -0
- /package/dist/{chunk-2Z7TANA4.js.map → chunk-PVCXREGE.js.map} +0 -0
- /package/dist/{chunk-OZB2TKGJ.js.map → chunk-W2I6L4IJ.js.map} +0 -0
- /package/dist/{chunk-UWV3B3RY.js.map → chunk-XDLFOATW.js.map} +0 -0
- /package/dist/{chunk-2FHNJ7LI.js.map → chunk-Z76QQR7I.js.map} +0 -0
- /package/dist/{cloudflare-7EZQE4UV.js.map → cloudflare-F7KLBOU4.js.map} +0 -0
- /package/dist/{deno-deploy-M5V3PYWU.js.map → deno-deploy-LJ5JQQVR.js.map} +0 -0
- /package/dist/{info-6NAUW5XY.js.map → info-IPMW56PI.js.map} +0 -0
- /package/dist/{internal-api-R7TTYMCY.js.map → internal-api-6RAOYIET.js.map} +0 -0
- /package/dist/{internal-api-A5HA7TYF.js.map → internal-api-YGFPLQ4E.js.map} +0 -0
- /package/dist/{load-config-CLFWJOXN.js.map → load-config-USRR4GXP.js.map} +0 -0
- /package/dist/{netlify-NI4HYDKN.js.map → netlify-ZPQNREFH.js.map} +0 -0
- /package/dist/{node-LORYECWI.js.map → node-3EV3CVWB.js.map} +0 -0
- /package/dist/{observability-bootstrap-DOWRMADT.js.map → observability-bootstrap-DMJ7R6WA.js.map} +0 -0
- /package/dist/{openapi-ZHKJB3XL.js.map → openapi-CA3E3LZH.js.map} +0 -0
- /package/dist/{preview-SNS7VJWH.js.map → preview-DLIVPM7A.js.map} +0 -0
- /package/dist/{registry-3SVWZVIJ.js.map → registry-3D2KR7UE.js.map} +0 -0
- /package/dist/{routes-SMNSI2ZX.js.map → routes-BJ7GGRCV.js.map} +0 -0
- /package/dist/{schema-DJH3IOVR.js.map → schema-FBM2UH72.js.map} +0 -0
- /package/dist/{schemas-2R2J64ZH.js.map → schemas-BUR6PWSA.js.map} +0 -0
- /package/dist/{static-O2RZ5NLR.js.map → static-VNN4HYRN.js.map} +0 -0
- /package/dist/{theo-cloud-B4R7GCWK.js.map → theo-cloud-243SPOIA.js.map} +0 -0
- /package/dist/{vercel-INHLOCSZ.js.map → vercel-EXKSZ2OQ.js.map} +0 -0
- /package/dist/{vite-plugin-UXEXT7GX.js.map → vite-plugin-LE42ZIGV.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-EQJF2EH5.js";
|
|
23
23
|
import {
|
|
24
24
|
nodeAdapter
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-G3DDIEYE.js";
|
|
26
26
|
import {
|
|
27
27
|
buildSecurityHeaders
|
|
28
28
|
} from "./chunk-WSMLSIS5.js";
|
|
@@ -398,4 +398,4 @@ export {
|
|
|
398
398
|
netlifyAdapter,
|
|
399
399
|
renderNetlifyFunction
|
|
400
400
|
};
|
|
401
|
-
//# sourceMappingURL=netlify-
|
|
401
|
+
//# sourceMappingURL=netlify-ZPQNREFH.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
_resetObservabilityAdapter,
|
|
5
5
|
createObservabilityPluginFromConfig,
|
|
6
6
|
getObservabilityAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VXDTQO3S.js";
|
|
8
8
|
import "./chunk-C27VRUVN.js";
|
|
9
9
|
import "./chunk-7UZZHCRN.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MAJZ2L3A.js";
|
|
11
11
|
export {
|
|
12
12
|
_resetObservabilityAdapter,
|
|
13
13
|
createObservabilityPluginFromConfig,
|
|
14
14
|
getObservabilityAdapter
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=observability-bootstrap-
|
|
16
|
+
//# sourceMappingURL=observability-bootstrap-DMJ7R6WA.js.map
|
|
@@ -12,12 +12,12 @@ import "./chunk-4WP7A7RX.js";
|
|
|
12
12
|
import "./chunk-Z7CJHDLS.js";
|
|
13
13
|
import {
|
|
14
14
|
loadConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W2I6L4IJ.js";
|
|
16
16
|
import "./chunk-3QPVEJ7D.js";
|
|
17
17
|
import "./chunk-O5JZ6ROY.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-C2BRSL4W.js";
|
|
19
19
|
import "./chunk-L4V5V2TI.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-MAJZ2L3A.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/openapi.ts
|
|
23
23
|
import { mkdtempSync, rmSync } from "fs";
|
|
@@ -84,4 +84,4 @@ function emitOpenApiInMemory(manifest, config) {
|
|
|
84
84
|
export {
|
|
85
85
|
openapiCommand
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=openapi-
|
|
87
|
+
//# sourceMappingURL=openapi-CA3E3LZH.js.map
|
|
@@ -4,8 +4,8 @@ import "tsx/esm";
|
|
|
4
4
|
// src/cli/commands/preview.ts
|
|
5
5
|
async function defaultSteps() {
|
|
6
6
|
const [{ buildCommand }, { startCommand }] = await Promise.all([
|
|
7
|
-
import("./build-
|
|
8
|
-
import("./start-
|
|
7
|
+
import("./build-Y3CWTWP6.js"),
|
|
8
|
+
import("./start-LNT5UVSY.js")
|
|
9
9
|
]);
|
|
10
10
|
return {
|
|
11
11
|
build: (opts) => buildCommand(opts),
|
|
@@ -20,4 +20,4 @@ async function previewCommand(options = {}, steps) {
|
|
|
20
20
|
export {
|
|
21
21
|
previewCommand
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=preview-
|
|
23
|
+
//# sourceMappingURL=preview-DLIVPM7A.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import "tsx/esm";
|
|
3
|
+
import {
|
|
4
|
+
VALID_TARGETS
|
|
5
|
+
} from "./chunk-TODO6J42.js";
|
|
6
|
+
|
|
7
|
+
// src/adapters/registry.ts
|
|
8
|
+
var adapterRegistry = {
|
|
9
|
+
node: async () => (await import("./node-3EV3CVWB.js")).nodeAdapter,
|
|
10
|
+
vercel: async () => (await import("./vercel-EXKSZ2OQ.js")).vercelAdapter,
|
|
11
|
+
cloudflare: async () => (await import("./cloudflare-F7KLBOU4.js")).cloudflareAdapter,
|
|
12
|
+
static: async () => (await import("./static-VNN4HYRN.js")).staticAdapter,
|
|
13
|
+
bun: async () => (await import("./bun-PJLDELDT.js")).bunAdapter,
|
|
14
|
+
"deno-deploy": async () => (await import("./deno-deploy-LJ5JQQVR.js")).denoDeployAdapter,
|
|
15
|
+
netlify: async () => (await import("./netlify-ZPQNREFH.js")).netlifyAdapter,
|
|
16
|
+
"aws-lambda": async () => (await import("./aws-lambda-XT7ZDJ6B.js")).awsLambdaAdapter,
|
|
17
|
+
"theo-cloud": async () => (await import("./theo-cloud-243SPOIA.js")).theoCloudAdapter
|
|
18
|
+
};
|
|
19
|
+
async function resolveAdapter(target) {
|
|
20
|
+
const factory = adapterRegistry[target];
|
|
21
|
+
return factory();
|
|
22
|
+
}
|
|
23
|
+
async function streamingTargets() {
|
|
24
|
+
const out = [];
|
|
25
|
+
for (const target of VALID_TARGETS) {
|
|
26
|
+
if ((await resolveAdapter(target)).streamsResponses === true) out.push(target);
|
|
27
|
+
}
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
resolveAdapter,
|
|
32
|
+
streamingTargets
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=registry-3D2KR7UE.js.map
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
import "./chunk-Z7CJHDLS.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W2I6L4IJ.js";
|
|
15
15
|
import "./chunk-3QPVEJ7D.js";
|
|
16
16
|
import "./chunk-O5JZ6ROY.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-C2BRSL4W.js";
|
|
18
18
|
import "./chunk-L4V5V2TI.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MAJZ2L3A.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/commands/routes.ts
|
|
22
22
|
import { resolve, relative } from "path";
|
|
@@ -64,4 +64,4 @@ async function routesCommand() {
|
|
|
64
64
|
export {
|
|
65
65
|
routesCommand
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=routes-
|
|
67
|
+
//# sourceMappingURL=routes-BJ7GGRCV.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import "tsx/esm";
|
|
3
3
|
import {
|
|
4
4
|
theoConfigSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C2BRSL4W.js";
|
|
6
6
|
import "./chunk-L4V5V2TI.js";
|
|
7
7
|
import {
|
|
8
8
|
cacheSchema,
|
|
9
9
|
corsSchema,
|
|
10
10
|
securityHeadersSchema,
|
|
11
11
|
storageSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MAJZ2L3A.js";
|
|
13
13
|
export {
|
|
14
14
|
cacheSchema,
|
|
15
15
|
corsSchema,
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
storageSchema,
|
|
18
18
|
theoConfigSchema
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=schema-
|
|
20
|
+
//# sourceMappingURL=schema-FBM2UH72.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
securitySchema,
|
|
11
11
|
storageSchema,
|
|
12
12
|
uploadSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MAJZ2L3A.js";
|
|
14
14
|
export {
|
|
15
15
|
cacheSchema,
|
|
16
16
|
corsSchema,
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
storageSchema,
|
|
23
23
|
uploadSchema
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=schemas-
|
|
25
|
+
//# sourceMappingURL=schemas-BUR6PWSA.js.map
|
|
@@ -3,7 +3,7 @@ import { C as CustomTool } from '../../define-agent-tool-aYYLpMeo.js';
|
|
|
3
3
|
import { CustomTool as CustomTool$1 } from '@theokit/sdk';
|
|
4
4
|
import { AcpTransport } from '@theokit/agents';
|
|
5
5
|
export { AgentModule, InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
|
|
6
|
-
import { V as VerifyFn, S as SubscribeFn } from '../../whatsapp-
|
|
6
|
+
import { V as VerifyFn, S as SubscribeFn } from '../../whatsapp-4W2eK2ij.js';
|
|
7
7
|
export { P as ProviderDescriptor, R as ResolvedProvider, l as listProviders, a as registerProvider, b as resetProviderRegistry, r as resolveProvider, t as tryResolveProvider } from '../../provider-resolver-Cc9C3-Rb.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -30,7 +30,8 @@ import {
|
|
|
30
30
|
resetProviderRegistry,
|
|
31
31
|
resolveProvider,
|
|
32
32
|
tryResolveProvider
|
|
33
|
-
} from "../../chunk-
|
|
33
|
+
} from "../../chunk-54BIQFP4.js";
|
|
34
|
+
import "../../chunk-ZICY2CD7.js";
|
|
34
35
|
import "../../chunk-XTHN6JBX.js";
|
|
35
36
|
export {
|
|
36
37
|
AcpRequestTimeoutError,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { U as UsageStorageAdapter, a as UsageRecord, T as ToolUsageRecord, b as UsageQuery, c as UsageResult } from '../../cost-types-BALTuBpG.js';
|
|
2
|
-
import { S as StorageAdapter } from '../../storage-types-
|
|
2
|
+
import { S as StorageAdapter } from '../../storage-types-ndO0ZZqH.js';
|
|
3
3
|
export { InMemoryUsageStorage as NeutralUsageStorage } from '@theokit/agents/usage';
|
|
4
4
|
|
|
5
5
|
interface TrackAgentRunInput {
|
|
@@ -70,7 +70,7 @@ declare class InMemoryUsageStorage implements UsageStorageAdapter, StorageAdapte
|
|
|
70
70
|
#private;
|
|
71
71
|
readonly name = "memory";
|
|
72
72
|
/**
|
|
73
|
-
* T2.3 — `StorageAdapter` lifecycle hook
|
|
73
|
+
* T2.3 — `StorageAdapter` lifecycle hook. In-memory storage
|
|
74
74
|
* has no real cleanup to perform — this is intentionally a noop so the
|
|
75
75
|
* adapter can be registered with `StorageManager.register()` and
|
|
76
76
|
* participate in graceful shutdown without changing behavior.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StorageAdapter } from '../../../storage-types-
|
|
1
|
+
import { S as StorageAdapter } from '../../../storage-types-ndO0ZZqH.js';
|
|
2
2
|
import { U as UsageStorageAdapter, a as UsageRecord, T as ToolUsageRecord, b as UsageQuery, c as UsageResult } from '../../../cost-types-BALTuBpG.js';
|
|
3
3
|
|
|
4
4
|
declare class SqliteUsageStorage implements UsageStorageAdapter, StorageAdapter {
|
|
@@ -12,7 +12,7 @@ declare class SqliteUsageStorage implements UsageStorageAdapter, StorageAdapter
|
|
|
12
12
|
record(input: UsageRecord | ToolUsageRecord): Promise<void>;
|
|
13
13
|
getUsage(query: UsageQuery): Promise<UsageResult>;
|
|
14
14
|
/**
|
|
15
|
-
* `StorageAdapter` lifecycle
|
|
15
|
+
* `StorageAdapter` lifecycle. Unlike the in-memory adapter's noop, this one has a
|
|
16
16
|
* file handle to release — a graceful shutdown that left it open would leave the WAL unmerged.
|
|
17
17
|
*/
|
|
18
18
|
dispose(): Promise<void>;
|
|
@@ -88,7 +88,7 @@ var SqliteUsageStorage = class {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* `StorageAdapter` lifecycle
|
|
91
|
+
* `StorageAdapter` lifecycle. Unlike the in-memory adapter's noop, this one has a
|
|
92
92
|
* file handle to release — a graceful shutdown that left it open would leave the WAL unmerged.
|
|
93
93
|
*/
|
|
94
94
|
dispose() {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { C as CronLock } from '../../cron-lock-CfAvLApv.js';
|
|
2
|
+
export { P as PostgresCronLockOptions, c as createPostgresCronLock } from '../../cron-lock-CfAvLApv.js';
|
|
3
|
+
import '../../storage-types-ndO0ZZqH.js';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* Cron primitive types (R0.5.4).
|
|
3
7
|
*/
|
|
@@ -11,7 +15,7 @@ interface CronContext {
|
|
|
11
15
|
readonly signal: AbortSignal;
|
|
12
16
|
}
|
|
13
17
|
interface CronOptions {
|
|
14
|
-
/** 5-field
|
|
18
|
+
/** 5-field cron expression, evaluated in UTC. */
|
|
15
19
|
schedule: string;
|
|
16
20
|
/** Handler invoked on each fire. May return Promise. */
|
|
17
21
|
handler: (ctx: CronContext) => unknown;
|
|
@@ -49,7 +53,7 @@ interface CronDefinition {
|
|
|
49
53
|
declare function defineCron(name: string, options: CronOptions): CronDefinition;
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
|
-
* Validate a cron schedule string
|
|
56
|
+
* Validate a cron schedule string: 5 fields, evaluated in UTC, nothing else accepted.
|
|
53
57
|
*
|
|
54
58
|
* Accepts:
|
|
55
59
|
* - Standard 5-field expressions: `minute hour dayOfMonth month dayOfWeek`
|
|
@@ -187,7 +191,7 @@ declare function translateCronToAws(serverlessYmlPath: string, crons: readonly C
|
|
|
187
191
|
declare function translateCronToDeno(entryPath: string, crons: readonly CronManifestEntry[]): void;
|
|
188
192
|
|
|
189
193
|
/**
|
|
190
|
-
* In-
|
|
194
|
+
* In-process cron scheduler, run by `theokit start` (and by `theokit dev --crons`).
|
|
191
195
|
*
|
|
192
196
|
* Algorithm:
|
|
193
197
|
* - For each cron, compute `nextFireAt = cron-parser.next()`.
|
|
@@ -202,13 +206,22 @@ declare function translateCronToDeno(entryPath: string, crons: readonly CronMani
|
|
|
202
206
|
* subsequent ticks skip + warn while the in-flight flag is set.
|
|
203
207
|
* - `concurrency: 'allow'` runs handlers concurrently — caller's responsibility.
|
|
204
208
|
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
209
|
+
* Several processes (replicas) each run this scheduler under `theokit start`. Without a `lock`,
|
|
210
|
+
* each one fires every tick. With one, each tick asks the lock first and only the process that
|
|
211
|
+
* gets `true` runs the handler (usetheokit/theokit#1016). A lock that fails skips the tick and logs
|
|
212
|
+
* the error: running unguarded would repeat the side effect on every replica, which is the defect
|
|
213
|
+
* the lock exists for.
|
|
214
|
+
*
|
|
215
|
+
* Serverless targets use platform-native triggers (T1.5 adapter translators), which fire once.
|
|
207
216
|
*/
|
|
217
|
+
interface CronSchedulerOptions {
|
|
218
|
+
/** Shared lock deciding which process runs each tick. Absent: this process runs every tick. */
|
|
219
|
+
lock?: CronLock;
|
|
220
|
+
}
|
|
208
221
|
interface CronScheduler {
|
|
209
222
|
start(): void;
|
|
210
223
|
stop(): void;
|
|
211
224
|
}
|
|
212
|
-
declare function createCronScheduler(definitions: readonly CronDefinition[]): CronScheduler;
|
|
225
|
+
declare function createCronScheduler(definitions: readonly CronDefinition[], options?: CronSchedulerOptions): CronScheduler;
|
|
213
226
|
|
|
214
|
-
export { CRON_MANIFEST_SCHEMA_VERSION, type CronConcurrencyPolicy, type CronContext, type CronDefinition, type CronManifest, type CronManifestEntry, type CronNode, type CronOptions, type CronScheduler, DuplicateCronNameError, ExistingConfigUnparseableError, buildCronManifest, convertToAwsCron, createCronScheduler, defineCron, scanCronDirs, scanCrons, translateCronToAws, translateCronToCloudflare, translateCronToDeno, translateCronToVercel, validateCronSchedule, writeCronManifest };
|
|
227
|
+
export { CRON_MANIFEST_SCHEMA_VERSION, type CronConcurrencyPolicy, type CronContext, type CronDefinition, CronLock, type CronManifest, type CronManifestEntry, type CronNode, type CronOptions, type CronScheduler, type CronSchedulerOptions, DuplicateCronNameError, ExistingConfigUnparseableError, buildCronManifest, convertToAwsCron, createCronScheduler, defineCron, scanCronDirs, scanCrons, translateCronToAws, translateCronToCloudflare, translateCronToDeno, translateCronToVercel, validateCronSchedule, writeCronManifest };
|
|
@@ -14,9 +14,14 @@ import {
|
|
|
14
14
|
translateCronToVercel,
|
|
15
15
|
validateCronSchedule,
|
|
16
16
|
writeCronManifest
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import
|
|
17
|
+
} from "../../chunk-3GM4GACM.js";
|
|
18
|
+
import {
|
|
19
|
+
createPostgresCronLock
|
|
20
|
+
} from "../../chunk-LXV5IEBB.js";
|
|
21
|
+
import "../../chunk-ZN5H7CUR.js";
|
|
19
22
|
import "../../chunk-UMNXCU3K.js";
|
|
23
|
+
import "../../chunk-TQTEKNOL.js";
|
|
24
|
+
import "../../chunk-CHTAWXC2.js";
|
|
20
25
|
import "../../chunk-AHYOVVJ7.js";
|
|
21
26
|
import "../../chunk-SOYOYGWY.js";
|
|
22
27
|
import "../../chunk-ZWN3AODA.js";
|
|
@@ -28,6 +33,7 @@ export {
|
|
|
28
33
|
buildCronManifest,
|
|
29
34
|
convertToAwsCron,
|
|
30
35
|
createCronScheduler,
|
|
36
|
+
createPostgresCronLock,
|
|
31
37
|
defineCron,
|
|
32
38
|
scanCronDirs,
|
|
33
39
|
scanCrons,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareNextUnavailableError, o as MiddlewareResult, N as NotFoundError, q as ProcedureInputError, r as ProcedureOutputError, S as STRIPPED_HEADERS, v as SendErrorInput, w as SendErrorOptions, T as TRACE_HEADER, x as TRACE_PARENT_HEADER, y as TheoError, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, A as _resetUninvocableWarningsForTests, D as appendCookieToHeaders, G as appendDeleteCookieToHeaders, I as callProcedure, J as createCorsHandler, K as createCorsWebHandler, L as createOpenApiHandler, Q as createServerContext, V as deleteCookie, X as envelopeCodeToStatus, Y as executeAction, Z as executeRoute, $ as executeWebRequest, a0 as extractTraceId, a1 as extractTraceIdFromRequest, a2 as extractW3CTraceContext, a3 as fromUnknown, a4 as getCookie, a5 as getCookieFromRequest, a6 as handleBatchRequest, a7 as handleRequestError, a8 as handleWebRequestError, a9 as injectModulePreloads, aa as jsonTransformer, ab as loadCustomErrorPages, ac as matchesOrigin, ad as parseCookieHeader, ae as parseRequestBody, af as parseTraceparent, ag as parseTraceparentContext, ah as resolveTransformer, ai as resolveUserModule, aj as runMiddlewareAndContext, ak as sendError, al as sendJson, am as serializeCookie, an as serveStaticFile, ao as serverErrorToEnvelope, ap as setCookie, aq as superjsonTransformer, ar as validateRouteInput } from '../../index-
|
|
1
|
+
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareNextUnavailableError, o as MiddlewareResult, N as NotFoundError, q as ProcedureInputError, r as ProcedureOutputError, S as STRIPPED_HEADERS, v as SendErrorInput, w as SendErrorOptions, T as TRACE_HEADER, x as TRACE_PARENT_HEADER, y as TheoError, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, A as _resetUninvocableWarningsForTests, D as appendCookieToHeaders, G as appendDeleteCookieToHeaders, I as callProcedure, J as createCorsHandler, K as createCorsWebHandler, L as createOpenApiHandler, Q as createServerContext, V as deleteCookie, X as envelopeCodeToStatus, Y as executeAction, Z as executeRoute, $ as executeWebRequest, a0 as extractTraceId, a1 as extractTraceIdFromRequest, a2 as extractW3CTraceContext, a3 as fromUnknown, a4 as getCookie, a5 as getCookieFromRequest, a6 as handleBatchRequest, a7 as handleRequestError, a8 as handleWebRequestError, a9 as injectModulePreloads, aa as jsonTransformer, ab as loadCustomErrorPages, ac as matchesOrigin, ad as parseCookieHeader, ae as parseRequestBody, af as parseTraceparent, ag as parseTraceparentContext, ah as resolveTransformer, ai as resolveUserModule, aj as runMiddlewareAndContext, ak as sendError, al as sendJson, am as serializeCookie, an as serveStaticFile, ao as serverErrorToEnvelope, ap as setCookie, aq as superjsonTransformer, ar as validateRouteInput } from '../../index-DfsJ3Qhk.js';
|
|
2
2
|
export { A as ActionError, b as ActionInputError, f as extractUniversalIssues, i as isActionError, d as isInputError } from '../../action-protocol-tGm3NKRg.js';
|
|
3
3
|
import '../../error-envelope-DG47lt8E.js';
|
|
4
4
|
import 'node:http';
|
|
5
5
|
import '../../plugin-types-BUVfUQ0V.js';
|
|
6
6
|
import '../../plugin-runner-BVMOSxvb.js';
|
|
7
|
-
import '../../job-backend-
|
|
7
|
+
import '../../job-backend-WvUs5rO1.js';
|
|
8
8
|
import '../../match-DaKsL73w.js';
|
|
9
9
|
import '../../module-loader-DCip7NoL.js';
|
|
10
10
|
import 'vite';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
injectModulePreloads,
|
|
8
8
|
loadCustomErrorPages,
|
|
9
9
|
serveStaticFile
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-OIYSUQM7.js";
|
|
11
11
|
import "../../chunk-O2KGDLA7.js";
|
|
12
12
|
import {
|
|
13
13
|
jsonTransformer,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
handleRequestError,
|
|
27
27
|
handleWebRequestError,
|
|
28
28
|
matchesOrigin
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-PVCXREGE.js";
|
|
30
30
|
import {
|
|
31
31
|
MiddlewareNextUnavailableError,
|
|
32
32
|
_resetMiddlewareCacheForTests,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
sendError,
|
|
39
39
|
sendJson,
|
|
40
40
|
validateRouteInput
|
|
41
|
-
} from "../../chunk-
|
|
41
|
+
} from "../../chunk-36ZACTF3.js";
|
|
42
42
|
import "../../chunk-P6OS7652.js";
|
|
43
43
|
import {
|
|
44
44
|
ActionError,
|
|
@@ -50,17 +50,14 @@ import {
|
|
|
50
50
|
import "../../chunk-IDWN2OSG.js";
|
|
51
51
|
import "../../chunk-47FFT43U.js";
|
|
52
52
|
import {
|
|
53
|
-
FileTooLargeError,
|
|
54
53
|
TRACE_HEADER,
|
|
55
54
|
TRACE_PARENT_HEADER,
|
|
56
55
|
extractTraceId,
|
|
57
56
|
extractTraceIdFromRequest,
|
|
58
57
|
extractW3CTraceContext,
|
|
59
|
-
parseRequestBody,
|
|
60
58
|
parseTraceparent,
|
|
61
59
|
parseTraceparentContext
|
|
62
|
-
} from "../../chunk-
|
|
63
|
-
import "../../chunk-CHTAWXC2.js";
|
|
60
|
+
} from "../../chunk-IXXZBZF7.js";
|
|
64
61
|
import "../../chunk-AVQU5CQF.js";
|
|
65
62
|
import "../../chunk-V6Y2SMRG.js";
|
|
66
63
|
import {
|
|
@@ -82,6 +79,11 @@ import {
|
|
|
82
79
|
serializeCookie,
|
|
83
80
|
setCookie
|
|
84
81
|
} from "../../chunk-4FWBKX6G.js";
|
|
82
|
+
import {
|
|
83
|
+
FileTooLargeError,
|
|
84
|
+
parseRequestBody
|
|
85
|
+
} from "../../chunk-TQTEKNOL.js";
|
|
86
|
+
import "../../chunk-CHTAWXC2.js";
|
|
85
87
|
import "../../chunk-ZWN3AODA.js";
|
|
86
88
|
import "../../chunk-XTHN6JBX.js";
|
|
87
89
|
export {
|
package/dist/server/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { C as CustomTool, D as DefineAgentToolSpec, T as ToolContextMessage, a a
|
|
|
6
6
|
export { A as AccessDecision, R as RoutePolicy, b as RoutePolicyInput, a as RouteSubject, e as evaluateRoutePolicy, r as requireOwner, s as subjectFromContext } from '../route-policy-BHXQDzBF.js';
|
|
7
7
|
export { b as HookName, H as HookResult, O as OnErrorHook, c as OnRequestHook, d as OnResponseHook, P as PluginContext, e as PluginErrorContext, f as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-BUVfUQ0V.js';
|
|
8
8
|
export { H as HEALTH_PATH, a as HealthRouteConfig, b as READY_PATH, c as ReadyRouteConfig, d as ReservedResponse, R as ReservedRoutes, e as defineHealthRoute, f as defineReadyRoute, s as serveReservedRoute } from '../health-route-CYI7z5g3.js';
|
|
9
|
-
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, g as BodyParserOptions, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareNextUnavailableError, o as MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, p as ProcedureInput, q as ProcedureInputError, r as ProcedureOutputError, R as RawRouteInput, s as RouteInputChannel, t as RouteInputSchemas, u as RouteInputValidation, S as STRIPPED_HEADERS, v as SendErrorInput, w as SendErrorOptions, T as TRACE_HEADER, x as TRACE_PARENT_HEADER, y as TheoError, z as TheoTransformer, U as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, A as _resetUninvocableWarningsForTests, D as appendCookieToHeaders, G as appendDeleteCookieToHeaders, I as callProcedure, J as createCorsHandler, K as createCorsWebHandler, L as createOpenApiHandler, Q as createServerContext, V as deleteCookie, X as envelopeCodeToStatus, Y as executeAction, Z as executeRoute, $ as executeWebRequest, a0 as extractTraceId, a1 as extractTraceIdFromRequest, a2 as extractW3CTraceContext, a3 as fromUnknown, a4 as getCookie, a5 as getCookieFromRequest, a6 as handleBatchRequest, a7 as handleRequestError, a8 as handleWebRequestError, a9 as injectModulePreloads, aa as jsonTransformer, ab as loadCustomErrorPages, ac as matchesOrigin, ad as parseCookieHeader, ae as parseRequestBody, af as parseTraceparent, ag as parseTraceparentContext, ah as resolveTransformer, ai as resolveUserModule, aj as runMiddlewareAndContext, ak as sendError, al as sendJson, am as serializeCookie, an as serveStaticFile, ao as serverErrorToEnvelope, ap as setCookie, aq as superjsonTransformer, ar as validateRouteInput } from '../index-
|
|
9
|
+
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, g as BodyParserOptions, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareNextUnavailableError, o as MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, p as ProcedureInput, q as ProcedureInputError, r as ProcedureOutputError, R as RawRouteInput, s as RouteInputChannel, t as RouteInputSchemas, u as RouteInputValidation, S as STRIPPED_HEADERS, v as SendErrorInput, w as SendErrorOptions, T as TRACE_HEADER, x as TRACE_PARENT_HEADER, y as TheoError, z as TheoTransformer, U as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, A as _resetUninvocableWarningsForTests, D as appendCookieToHeaders, G as appendDeleteCookieToHeaders, I as callProcedure, J as createCorsHandler, K as createCorsWebHandler, L as createOpenApiHandler, Q as createServerContext, V as deleteCookie, X as envelopeCodeToStatus, Y as executeAction, Z as executeRoute, $ as executeWebRequest, a0 as extractTraceId, a1 as extractTraceIdFromRequest, a2 as extractW3CTraceContext, a3 as fromUnknown, a4 as getCookie, a5 as getCookieFromRequest, a6 as handleBatchRequest, a7 as handleRequestError, a8 as handleWebRequestError, a9 as injectModulePreloads, aa as jsonTransformer, ab as loadCustomErrorPages, ac as matchesOrigin, ad as parseCookieHeader, ae as parseRequestBody, af as parseTraceparent, ag as parseTraceparentContext, ah as resolveTransformer, ai as resolveUserModule, aj as runMiddlewareAndContext, ak as sendError, al as sendJson, am as serializeCookie, an as serveStaticFile, ao as serverErrorToEnvelope, ap as setCookie, aq as superjsonTransformer, ar as validateRouteInput } from '../index-DfsJ3Qhk.js';
|
|
10
10
|
export { A as ActionError, a as ActionErrorCode, b as ActionInputError, e as ActionManifestEntry, c as ActionResult, S as SerializedActionResult, U as UniversalZodIssue, f as extractUniversalIssues, i as isActionError, d as isInputError } from '../action-protocol-tGm3NKRg.js';
|
|
11
11
|
export { ACTION_SCHEMAS_DIR, ActionNode, ActionScanError, LoadedManifest, ManifestAction, ManifestAgent, ManifestRoute, ManifestWebSocket, TheoManifest, WebSocketRouteNode, _resetRouteScanCacheForTests, compareRouteSpecificity, generateManifest, loadManifest, scanMiddlewares, scanServerActions, scanServerActionsEnriched, scanServerRoutes, scanWebSocketRoutes, writeManifest } from './scan/index.js';
|
|
12
12
|
export { S as ServerRouteNode, c as compilePattern, m as matchRoute } from '../match-DaKsL73w.js';
|
|
@@ -19,9 +19,10 @@ export { g as generateNonce } from '../nonce-BXt7Qu_C.js';
|
|
|
19
19
|
export { InMemoryUsageStorage, ToolHookEvent, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, trackAgentRun, trackAgentTools } from './cost/index.js';
|
|
20
20
|
export { T as ToolUsageRecord, b as UsageQuery, a as UsageRecord, c as UsageResult, U as UsageStorageAdapter } from '../cost-types-BALTuBpG.js';
|
|
21
21
|
export { InMemoryUsageStorage as NeutralUsageStorage } from '@theokit/agents/usage';
|
|
22
|
-
export { CRON_MANIFEST_SCHEMA_VERSION, CronConcurrencyPolicy, CronContext, CronDefinition, CronManifest, CronManifestEntry, CronNode, CronOptions, CronScheduler, DuplicateCronNameError, ExistingConfigUnparseableError, buildCronManifest, convertToAwsCron, createCronScheduler, defineCron, scanCronDirs, scanCrons, translateCronToAws, translateCronToCloudflare, translateCronToDeno, translateCronToVercel, validateCronSchedule, writeCronManifest } from './cron/index.js';
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
22
|
+
export { CRON_MANIFEST_SCHEMA_VERSION, CronConcurrencyPolicy, CronContext, CronDefinition, CronManifest, CronManifestEntry, CronNode, CronOptions, CronScheduler, CronSchedulerOptions, DuplicateCronNameError, ExistingConfigUnparseableError, buildCronManifest, convertToAwsCron, createCronScheduler, defineCron, scanCronDirs, scanCrons, translateCronToAws, translateCronToCloudflare, translateCronToDeno, translateCronToVercel, validateCronSchedule, writeCronManifest } from './cron/index.js';
|
|
23
|
+
export { C as CronLock, P as PostgresCronLockOptions, c as createPostgresCronLock } from '../cron-lock-CfAvLApv.js';
|
|
24
|
+
export { DuplicateContextKeyError, DuplicateJobNameError, EnqueueOptions, InMemoryJobBackend, InMemoryJobBackendOptions, JOB_MANIFEST_SCHEMA_VERSION, JobContext, JobDefinition, JobManifest, JobManifestEntry, JobNode, JobOptions, JobRegistry, JobRunner, JobWorker, JobWorkerOptions, Outbox, OutboxFlushOptions, PostgresJobBackend, PostgresJobBackendOptions, QueueClient, buildJobManifest, createJobRunner, createJobWorker, createOutbox, createOutboxDispatcher, createQueueClient, defineJob, scanJobs, writeJobManifest } from './jobs/index.js';
|
|
25
|
+
export { J as JobBackend, a as JobEnqueueInput, b as JobLease, c as JobLeaseFence, d as JobLeaseLostError, e as JobNackOptions, N as NonRetryableError } from '../job-backend-WvUs5rO1.js';
|
|
25
26
|
export { ConsoleObservabilityAdapter, LogLevel, LoggerFn, NoopObservabilityAdapter, NoopSpan, ObservabilityAdapter, RequestLog, SpanAttributes, SpanHandle, SpanImpl, StructuredLog, TheoCloudObservabilityAdapter, TheoLogger, _resetWarnOnceForTests, createLogger, createObservabilityPlugin, defineObservabilityAdapter, findSuggestion, levenshtein, logRequest, resolveAdapter, serializeSpansToOtlp, warnOnce } from './observability/index.js';
|
|
26
27
|
export { a as AuditEvent, A as AuditLogger, J as JsonStdoutSink, c as createNoOpLogger, s as safeAudit } from '../audit-log-BQWM5YLG.js';
|
|
27
28
|
export { D as DuplicateDecorationError, a as DuplicatePluginError, P as PluginRunner } from '../plugin-runner-BVMOSxvb.js';
|
|
@@ -33,11 +34,11 @@ export { ChannelManager } from './realtime/index.js';
|
|
|
33
34
|
export { CSP_REPORT_PATH, CSRF_READINESS_PATH, CSRF_READINESS_RESET_PATH, CspReportHandlerOptions, CspViolation, CsrfDecision, CsrfMultiHeaderOptions, applySecurityHeaders, escapeHtml, escapeHtmlAttribute, evaluateCsrfMultiHeaderRequest, handleCspReport, handleCspReportRequest, handleCsrfReadiness, handleCsrfReadinessRequest, isCsrfOriginAllowed, matchWildcardDomain, normalizeLegacy, normalizeNew } from './security/index.js';
|
|
34
35
|
export { a as CSRF_WARN_CODE, b as CSRF_WARN_DOCS_URL, c as CsrfLogger, C as CsrfMode, d as CsrfWarnPayload, D as DisallowedConfig, e as enforceCsrf, m as matchDisallowed, v as validateCsrf, f as validateCsrfRequest } from '../csrf-Dgot9qSM.js';
|
|
35
36
|
export { a as CsrfReadinessRouteSummary, C as CsrfReadinessStore, b as CsrfReadinessSummary, c as CsrfWarnRecord } from '../csrf-readiness-store-CjIoub3U.js';
|
|
36
|
-
export { P as PostgresFactory, R as RedisFactory, S as StorageManager, g as getStorageManager } from '../storage-manager-
|
|
37
|
+
export { P as PostgresFactory, R as RedisFactory, S as StorageManager, g as getStorageManager } from '../storage-manager-Clu2RBpH.js';
|
|
37
38
|
export { Db0Database, UnstorageInstance, useDatabase, useUnstorage } from './storage/index.js';
|
|
38
|
-
export { G as GenericFactory,
|
|
39
|
+
export { G as GenericFactory, P as PoolLike, b as PostgresDatabaseConfig, d as RedisLike, R as RedisServerConfig, a as ServerConfig, S as StorageAdapter, c as StorageConfig, T as TlsConfig } from '../storage-types-ndO0ZZqH.js';
|
|
39
40
|
export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, DiscordWebhookOptions, GitHubWebhookOptions, LineWebhookOptions, RawBodyResult, ReadRawBodyOptions, SlackWebhookOptions, StripeWebhookOptions, TelegramWebhookOptions, defineWebhook, discord, dispatchWebhook, github, line, readRawBody, slack, stripe, telegram, timingSafeEqual } from './webhook/index.js';
|
|
40
|
-
export { D as DefineWebhookOptions, S as SubscribeFn, a as SubscribeResult, V as VerifyFn, b as VerifyResult, W as WebhookContext, c as WebhookDefinition, d as WhatsAppSubscribeOptions, e as WhatsAppWebhookOptions, w as whatsapp, f as whatsappSubscribe } from '../whatsapp-
|
|
41
|
+
export { D as DefineWebhookOptions, S as SubscribeFn, a as SubscribeResult, V as VerifyFn, b as VerifyResult, W as WebhookContext, c as WebhookDefinition, d as WhatsAppSubscribeOptions, e as WhatsAppWebhookOptions, w as whatsapp, f as whatsappSubscribe } from '../whatsapp-4W2eK2ij.js';
|
|
41
42
|
import { z } from 'zod';
|
|
42
43
|
export { ComposeInstructionsOptions, ComposedInstructions, ConfigLayer, ContextPressure, ContextPressureThresholdError, ContextPressureThresholds, CustomCommand, CustomCommandsResult, DEFAULT_CONTEXT_PRESSURE_THRESHOLDS, InstructionBlock, InstructionSource, InstructionTree, InstructionTreeBudget, LayerOutOfOrderError, LayeredConfig, LayeredConfigInput, LayeredConfigResult, LoadCustomCommandsInput, LoadInstructionTreeInput, ParsedFrontmatter, PrecedenceReport, ProvenancePerKey, TrustRecord, TrustStore, TrustStorePermissionsError, composeInstructions, contextPressure, effectiveContextWindow, frontmatterValue, loadCustomCommands, loadInstructionTree, splitFrontmatter } from '@theokit/agents/config';
|
|
43
44
|
export { a as ServiceDefinition, S as ServicesConfig, b as ServicesConfigInput, c as ServicesConfigOutput } from '../schema-BdakLtuC.js';
|
|
@@ -301,9 +302,17 @@ interface CachedRouteConfig<TQuery extends z.ZodType = z.ZodUndefined, TBody ext
|
|
|
301
302
|
* 5. Cacheable → write entry + return Response with X-Theo-Cache: MISS
|
|
302
303
|
* 6. Not cacheable → return original Response unchanged
|
|
303
304
|
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
305
|
+
* Requests are single-flight per cache key (B-667), per process and per
|
|
306
|
+
* `defineCachedRoute` call: concurrent misses of one key share one handler run. The leader's `Response` is never shared (single-use body):
|
|
307
|
+
* each follower builds its own `Response` from the cached value, with
|
|
308
|
+
* X-Theo-Cache: MISS. When the leader's response is not cacheable (Set-Cookie,
|
|
309
|
+
* stream, error status, `cacheable` refusing it), it stays the leader's own and
|
|
310
|
+
* each follower runs the handler itself. A thrown leader rejects its followers
|
|
311
|
+
* with the same error, unless the leader's own request signal was aborted; a
|
|
312
|
+
* Node IncomingMessage arrives here without a signal, so that exception does not
|
|
313
|
+
* apply to it. A stale key starts one background revalidation at a time; a failed
|
|
314
|
+
* one keeps the stale entry and is reported once per route with `console.warn`,
|
|
315
|
+
* naming the method and path (never the key, which carries request data).
|
|
307
316
|
*/
|
|
308
317
|
declare function defineCachedRoute<TQuery extends z.ZodType = z.ZodUndefined, TBody extends z.ZodType = z.ZodUndefined, TParams extends z.ZodType = z.ZodUndefined, TCtx = unknown>(engine: CacheEngine, config: CachedRouteConfig<TQuery, TBody, TParams, TCtx>): RouteConfig<TQuery, TBody, TParams, TCtx, Response>;
|
|
309
318
|
|