theokit 0.54.1 → 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.
Files changed (130) hide show
  1. package/dist/{actions-virtual-module-M4MTKOAX.js → actions-virtual-module-3V7VG2YL.js} +3 -3
  2. package/dist/{actions-virtual-module-FGJR3I7V.js → actions-virtual-module-KJBCM7PP.js} +21 -21
  3. package/dist/adapters/agent-mount.d.ts +1 -1
  4. package/dist/adapters/agent-mount.js +9 -9
  5. package/dist/{agent-TKCC4WZ6.js → agent-NLG77PFN.js} +3 -3
  6. package/dist/{agents-typed-client-INR2E7B3.js → agents-typed-client-PVUZU65B.js} +3 -3
  7. package/dist/{app-typed-client-6MNNVMJU.js → app-typed-client-XSXAORG6.js} +21 -21
  8. package/dist/{app-typed-client-22BZ3KDX.js → app-typed-client-ZO3VKJ3O.js} +3 -3
  9. package/dist/boot/index.js +3 -3
  10. package/dist/{build-JH53TZJI.js → build-4GQLIFTD.js} +5 -4
  11. package/dist/build-4GQLIFTD.js.map +1 -0
  12. package/dist/{bun-L7PP6ID5.js → bun-POLTY2HK.js} +118 -3
  13. package/dist/bun-POLTY2HK.js.map +1 -0
  14. package/dist/{chunk-IHAQUUT2.js → chunk-22ZZSUKD.js} +2 -2
  15. package/dist/chunk-22ZZSUKD.js.map +1 -0
  16. package/dist/{chunk-5YPXXSYY.js → chunk-35QIWOHT.js} +9 -8
  17. package/dist/chunk-35QIWOHT.js.map +1 -0
  18. package/dist/{chunk-JDN5SAAD.js → chunk-44E7XIZC.js} +6 -6
  19. package/dist/{chunk-OQCRCXCP.js → chunk-4ERYQBL6.js} +2 -2
  20. package/dist/{chunk-52PDWL5S.js → chunk-5KRMDP46.js} +2 -2
  21. package/dist/{chunk-HLDXHDCB.js → chunk-5TPBOAAH.js} +8 -8
  22. package/dist/{chunk-6VYF5PMG.js → chunk-6PFF5HMY.js} +3 -3
  23. package/dist/{chunk-VQPHPQ5L.js → chunk-7NRFZBAL.js} +3 -3
  24. package/dist/{chunk-3PBAN2YE.js → chunk-CF2DNN5R.js} +9 -8
  25. package/dist/{chunk-3PBAN2YE.js.map → chunk-CF2DNN5R.js.map} +1 -1
  26. package/dist/{chunk-HK4AZBKX.js → chunk-D5KBBTVD.js} +7 -7
  27. package/dist/{chunk-BU6RJPPJ.js → chunk-GO7UWJ47.js} +2 -2
  28. package/dist/{chunk-BU6RJPPJ.js.map → chunk-GO7UWJ47.js.map} +1 -1
  29. package/dist/{chunk-VZTYCAO6.js → chunk-IDEZ7FU2.js} +3 -3
  30. package/dist/{chunk-FVFYACYK.js → chunk-JW5UFKQ3.js} +17 -17
  31. package/dist/chunk-JW5UFKQ3.js.map +1 -0
  32. package/dist/{chunk-IRASEXOG.js → chunk-KDP2HURW.js} +6 -6
  33. package/dist/{chunk-AI7GBBRB.js → chunk-KQ27YDLG.js} +8 -8
  34. package/dist/{chunk-WX6NHGKS.js → chunk-M357ILK5.js} +10 -10
  35. package/dist/{chunk-ZQO37YQJ.js → chunk-PELXWPDF.js} +5 -5
  36. package/dist/{chunk-2OEN3YTE.js → chunk-PVNMLZ5G.js} +2 -2
  37. package/dist/{chunk-5K4TDLRG.js → chunk-SOYOYGWY.js} +3 -3
  38. package/dist/{chunk-SIGUGCBS.js → chunk-TUO2FE3S.js} +3 -3
  39. package/dist/{chunk-4X6H2BXP.js → chunk-U3SPBLJF.js} +3 -3
  40. package/dist/{chunk-BX6EUYHU.js → chunk-V6Y2SMRG.js} +3 -3
  41. package/dist/{chunk-I2UN46ZX.js → chunk-XJOU425Y.js} +17 -17
  42. package/dist/{chunk-DAE7BJ7H.js → chunk-XYVZJCZU.js} +4 -4
  43. package/dist/{chunk-BND4YZTQ.js → chunk-ZDCCILMP.js} +2 -2
  44. package/dist/{chunk-S6RWUH3J.js → chunk-ZTIB4QSV.js} +63 -63
  45. package/dist/cli/index.js +6 -6
  46. package/dist/{config-support-WQHQIJTA.js → config-support-O4REYSK5.js} +32 -1
  47. package/dist/{config-support-WQHQIJTA.js.map → config-support-O4REYSK5.js.map} +1 -1
  48. package/dist/{controller-swc-transform-T7ZTD55V.js → controller-swc-transform-7EZKG2IS.js} +2 -2
  49. package/dist/cost-types-BALTuBpG.d.ts +79 -0
  50. package/dist/{dev-6KDYNF5E.js → dev-ZNTHPBBN.js} +5 -5
  51. package/dist/{dev-emit-W27J3DLU.js → dev-emit-FIQASO3D.js} +7 -7
  52. package/dist/index.js +23 -23
  53. package/dist/{internal-api-TA37BXH7.js → internal-api-D76JZGSC.js} +3 -3
  54. package/dist/{internal-api-VUDJUWYE.js → internal-api-JNX3MTIM.js} +26 -26
  55. package/dist/{mcp-2RQCKWQR.js → mcp-IMY3NUCL.js} +3 -3
  56. package/dist/{preview-J57QZNTO.js → preview-K4NIQLAK.js} +3 -3
  57. package/dist/{provider-resolver-Dx6QuWrw.d.ts → provider-resolver-VS61zqsw.d.ts} +0 -11
  58. package/dist/{registry-KBZDCFVQ.js → registry-3LUHO4IB.js} +2 -2
  59. package/dist/server/agent/index.d.ts +1 -1
  60. package/dist/server/agent/index.js +3 -3
  61. package/dist/server/cost/index.d.ts +3 -80
  62. package/dist/server/cost/sqlite/index.d.ts +21 -0
  63. package/dist/server/cost/sqlite/index.js +102 -0
  64. package/dist/server/cost/sqlite/index.js.map +1 -0
  65. package/dist/server/cron/index.js +4 -4
  66. package/dist/server/http/index.js +7 -7
  67. package/dist/server/index.d.ts +5 -4
  68. package/dist/server/index.js +79 -79
  69. package/dist/server/jobs/index.d.ts +2 -2
  70. package/dist/server/jobs/index.js +4 -4
  71. package/dist/server/observability/index.js +2 -2
  72. package/dist/server/scan/index.js +6 -6
  73. package/dist/server/storage/index.d.ts +2 -2
  74. package/dist/server/webhook/index.js +1 -1
  75. package/dist/{server-boundary-4UIGB3G5.js → server-boundary-654WC5SA.js} +23 -23
  76. package/dist/{server-boundary-A2PUD4JV.js → server-boundary-NW6LNNGK.js} +3 -3
  77. package/dist/{server-routes-hmr-BWN3WIGR.js → server-routes-hmr-TNI3FNGM.js} +2 -2
  78. package/dist/{services-typed-client-IXNOPVZA.js → services-typed-client-ACTJHAEP.js} +2 -2
  79. package/dist/{start-3F4LVHWS.js → start-ONZXIWEG.js} +4 -4
  80. package/dist/{storage-manager-C6hmsaer.d.ts → storage-manager-BtG38jYl.d.ts} +1 -1
  81. package/dist/{storage-types-DsDTCPbp.d.ts → storage-types-CFGPFIdB.d.ts} +1 -1
  82. package/dist/vite-plugin/index.js +21 -21
  83. package/dist/{vite-plugin-VYNUCEI2.js → vite-plugin-UET2BUFW.js} +5 -5
  84. package/package.json +7 -3
  85. package/dist/build-JH53TZJI.js.map +0 -1
  86. package/dist/bun-L7PP6ID5.js.map +0 -1
  87. package/dist/chunk-5YPXXSYY.js.map +0 -1
  88. package/dist/chunk-FVFYACYK.js.map +0 -1
  89. package/dist/chunk-IHAQUUT2.js.map +0 -1
  90. /package/dist/{actions-virtual-module-M4MTKOAX.js.map → actions-virtual-module-3V7VG2YL.js.map} +0 -0
  91. /package/dist/{actions-virtual-module-FGJR3I7V.js.map → actions-virtual-module-KJBCM7PP.js.map} +0 -0
  92. /package/dist/{agent-TKCC4WZ6.js.map → agent-NLG77PFN.js.map} +0 -0
  93. /package/dist/{agents-typed-client-INR2E7B3.js.map → agents-typed-client-PVUZU65B.js.map} +0 -0
  94. /package/dist/{app-typed-client-6MNNVMJU.js.map → app-typed-client-XSXAORG6.js.map} +0 -0
  95. /package/dist/{app-typed-client-22BZ3KDX.js.map → app-typed-client-ZO3VKJ3O.js.map} +0 -0
  96. /package/dist/{chunk-JDN5SAAD.js.map → chunk-44E7XIZC.js.map} +0 -0
  97. /package/dist/{chunk-OQCRCXCP.js.map → chunk-4ERYQBL6.js.map} +0 -0
  98. /package/dist/{chunk-52PDWL5S.js.map → chunk-5KRMDP46.js.map} +0 -0
  99. /package/dist/{chunk-HLDXHDCB.js.map → chunk-5TPBOAAH.js.map} +0 -0
  100. /package/dist/{chunk-6VYF5PMG.js.map → chunk-6PFF5HMY.js.map} +0 -0
  101. /package/dist/{chunk-VQPHPQ5L.js.map → chunk-7NRFZBAL.js.map} +0 -0
  102. /package/dist/{chunk-HK4AZBKX.js.map → chunk-D5KBBTVD.js.map} +0 -0
  103. /package/dist/{chunk-VZTYCAO6.js.map → chunk-IDEZ7FU2.js.map} +0 -0
  104. /package/dist/{chunk-IRASEXOG.js.map → chunk-KDP2HURW.js.map} +0 -0
  105. /package/dist/{chunk-AI7GBBRB.js.map → chunk-KQ27YDLG.js.map} +0 -0
  106. /package/dist/{chunk-WX6NHGKS.js.map → chunk-M357ILK5.js.map} +0 -0
  107. /package/dist/{chunk-ZQO37YQJ.js.map → chunk-PELXWPDF.js.map} +0 -0
  108. /package/dist/{chunk-2OEN3YTE.js.map → chunk-PVNMLZ5G.js.map} +0 -0
  109. /package/dist/{chunk-5K4TDLRG.js.map → chunk-SOYOYGWY.js.map} +0 -0
  110. /package/dist/{chunk-SIGUGCBS.js.map → chunk-TUO2FE3S.js.map} +0 -0
  111. /package/dist/{chunk-4X6H2BXP.js.map → chunk-U3SPBLJF.js.map} +0 -0
  112. /package/dist/{chunk-BX6EUYHU.js.map → chunk-V6Y2SMRG.js.map} +0 -0
  113. /package/dist/{chunk-I2UN46ZX.js.map → chunk-XJOU425Y.js.map} +0 -0
  114. /package/dist/{chunk-DAE7BJ7H.js.map → chunk-XYVZJCZU.js.map} +0 -0
  115. /package/dist/{chunk-BND4YZTQ.js.map → chunk-ZDCCILMP.js.map} +0 -0
  116. /package/dist/{chunk-S6RWUH3J.js.map → chunk-ZTIB4QSV.js.map} +0 -0
  117. /package/dist/{controller-swc-transform-T7ZTD55V.js.map → controller-swc-transform-7EZKG2IS.js.map} +0 -0
  118. /package/dist/{dev-6KDYNF5E.js.map → dev-ZNTHPBBN.js.map} +0 -0
  119. /package/dist/{dev-emit-W27J3DLU.js.map → dev-emit-FIQASO3D.js.map} +0 -0
  120. /package/dist/{internal-api-TA37BXH7.js.map → internal-api-D76JZGSC.js.map} +0 -0
  121. /package/dist/{internal-api-VUDJUWYE.js.map → internal-api-JNX3MTIM.js.map} +0 -0
  122. /package/dist/{mcp-2RQCKWQR.js.map → mcp-IMY3NUCL.js.map} +0 -0
  123. /package/dist/{preview-J57QZNTO.js.map → preview-K4NIQLAK.js.map} +0 -0
  124. /package/dist/{registry-KBZDCFVQ.js.map → registry-3LUHO4IB.js.map} +0 -0
  125. /package/dist/{server-boundary-4UIGB3G5.js.map → server-boundary-654WC5SA.js.map} +0 -0
  126. /package/dist/{server-boundary-A2PUD4JV.js.map → server-boundary-NW6LNNGK.js.map} +0 -0
  127. /package/dist/{server-routes-hmr-BWN3WIGR.js.map → server-routes-hmr-TNI3FNGM.js.map} +0 -0
  128. /package/dist/{services-typed-client-IXNOPVZA.js.map → services-typed-client-ACTJHAEP.js.map} +0 -0
  129. /package/dist/{start-3F4LVHWS.js.map → start-ONZXIWEG.js.map} +0 -0
  130. /package/dist/{vite-plugin-VYNUCEI2.js.map → vite-plugin-UET2BUFW.js.map} +0 -0
package/dist/index.js CHANGED
@@ -8,44 +8,44 @@ import {
8
8
  scanRoutes,
9
9
  theoConfigSchema,
10
10
  theoPlugin
11
- } from "./chunk-S6RWUH3J.js";
12
- import "./chunk-VQPHPQ5L.js";
11
+ } from "./chunk-ZTIB4QSV.js";
12
+ import "./chunk-7NRFZBAL.js";
13
13
  import "./chunk-SSYDEKWF.js";
14
- import "./chunk-DAE7BJ7H.js";
14
+ import "./chunk-XYVZJCZU.js";
15
+ import "./chunk-M357ILK5.js";
15
16
  import "./chunk-OIGJOYX6.js";
16
- import "./chunk-WX6NHGKS.js";
17
- import "./chunk-4X6H2BXP.js";
17
+ import "./chunk-U3SPBLJF.js";
18
+ import "./chunk-BPYMC7SU.js";
19
+ import "./chunk-IRQGAC4L.js";
18
20
  import "./chunk-OGLS76RN.js";
19
- import "./chunk-FVFYACYK.js";
21
+ import "./chunk-JW5UFKQ3.js";
22
+ import "./chunk-P6OS7652.js";
20
23
  import "./chunk-ZDUO4IYN.js";
24
+ import "./chunk-D4VP2QPR.js";
25
+ import "./chunk-YN4W7LCX.js";
21
26
  import "./chunk-47FFT43U.js";
22
27
  import "./chunk-NTDN54XO.js";
23
- import "./chunk-2OEN3YTE.js";
24
- import "./chunk-BND4YZTQ.js";
28
+ import "./chunk-PVNMLZ5G.js";
29
+ import "./chunk-ZDCCILMP.js";
25
30
  import "./chunk-CHTAWXC2.js";
31
+ import "./chunk-AVQU5CQF.js";
26
32
  import "./chunk-VSLTKX5L.js";
27
33
  import "./chunk-TNI4MARH.js";
28
- import "./chunk-OQCRCXCP.js";
29
- import "./chunk-I2UN46ZX.js";
34
+ import "./chunk-4ERYQBL6.js";
35
+ import "./chunk-XJOU425Y.js";
36
+ import "./chunk-KDP2HURW.js";
30
37
  import "./chunk-DV34VG3N.js";
31
- import "./chunk-IRASEXOG.js";
32
- import "./chunk-BX6EUYHU.js";
33
- import "./chunk-BPYMC7SU.js";
34
- import "./chunk-IRQGAC4L.js";
35
- import "./chunk-P6OS7652.js";
36
- import "./chunk-AVQU5CQF.js";
38
+ import "./chunk-V6Y2SMRG.js";
37
39
  import "./chunk-ACKBVBUI.js";
38
40
  import "./chunk-IZ3TIL6K.js";
39
41
  import "./chunk-YOIVCCZT.js";
40
- import "./chunk-3PBAN2YE.js";
42
+ import "./chunk-CF2DNN5R.js";
41
43
  import "./chunk-YSJOZEI6.js";
42
44
  import "./chunk-Z4PJMZLM.js";
43
45
  import "./chunk-UMNXCU3K.js";
44
- import "./chunk-52PDWL5S.js";
45
- import "./chunk-5K4TDLRG.js";
46
+ import "./chunk-5KRMDP46.js";
47
+ import "./chunk-SOYOYGWY.js";
46
48
  import "./chunk-ZWN3AODA.js";
47
- import "./chunk-D4VP2QPR.js";
48
- import "./chunk-YN4W7LCX.js";
49
49
  import "./chunk-XTHN6JBX.js";
50
50
 
51
51
  // src/config/define-config.ts
@@ -74,8 +74,8 @@ function config() {
74
74
  }
75
75
 
76
76
  // src/config/validate-structure.ts
77
- import { existsSync } from "fs";
78
- import { join } from "path";
77
+ import { existsSync } from "node:fs";
78
+ import { join } from "node:path";
79
79
 
80
80
  // src/core/errors.ts
81
81
  var TheoProjectError = class extends Error {
@@ -16,10 +16,10 @@ import {
16
16
  handleCspReport,
17
17
  handleCsrfReadiness,
18
18
  mountAgent
19
- } from "./chunk-IHAQUUT2.js";
19
+ } from "./chunk-22ZZSUKD.js";
20
20
  import {
21
21
  resolveProvider
22
- } from "./chunk-5YPXXSYY.js";
22
+ } from "./chunk-35QIWOHT.js";
23
23
  import {
24
24
  dispatchControllerRequest,
25
25
  incomingMessageToHandlerRequest,
@@ -87,4 +87,4 @@ export {
87
87
  scanWebSocketRoutes,
88
88
  sendError
89
89
  };
90
- //# sourceMappingURL=internal-api-TA37BXH7.js.map
90
+ //# sourceMappingURL=internal-api-D76JZGSC.js.map
@@ -1,9 +1,17 @@
1
1
  import {
2
2
  dispatchControllerRequest
3
- } from "./chunk-DAE7BJ7H.js";
3
+ } from "./chunk-XYVZJCZU.js";
4
4
  import {
5
5
  mountAgent
6
- } from "./chunk-WX6NHGKS.js";
6
+ } from "./chunk-M357ILK5.js";
7
+ import {
8
+ CSP_REPORT_PATH,
9
+ CsrfReadinessStore,
10
+ applySecurityHeaders,
11
+ handleCspReport,
12
+ handleCsrfReadiness
13
+ } from "./chunk-BPYMC7SU.js";
14
+ import "./chunk-IRQGAC4L.js";
7
15
  import {
8
16
  BATCH_PATH,
9
17
  createCorsHandler,
@@ -12,19 +20,23 @@ import {
12
20
  handleBatchRequest,
13
21
  incomingMessageToHandlerRequest,
14
22
  sendError
15
- } from "./chunk-FVFYACYK.js";
23
+ } from "./chunk-JW5UFKQ3.js";
24
+ import "./chunk-P6OS7652.js";
16
25
  import "./chunk-ZDUO4IYN.js";
26
+ import "./chunk-D4VP2QPR.js";
27
+ import "./chunk-YN4W7LCX.js";
17
28
  import "./chunk-47FFT43U.js";
18
29
  import {
19
30
  findSuggestion
20
31
  } from "./chunk-NTDN54XO.js";
21
- import "./chunk-2OEN3YTE.js";
32
+ import "./chunk-PVNMLZ5G.js";
22
33
  import {
23
34
  TRACE_HEADER,
24
35
  extractTraceId,
25
36
  logRequest
26
- } from "./chunk-BND4YZTQ.js";
37
+ } from "./chunk-ZDCCILMP.js";
27
38
  import "./chunk-CHTAWXC2.js";
39
+ import "./chunk-AVQU5CQF.js";
28
40
  import {
29
41
  createPluginRunnerFromConfig
30
42
  } from "./chunk-VSLTKX5L.js";
@@ -33,7 +45,7 @@ import {
33
45
  } from "./chunk-TNI4MARH.js";
34
46
  import {
35
47
  createViteLoader
36
- } from "./chunk-OQCRCXCP.js";
48
+ } from "./chunk-4ERYQBL6.js";
37
49
  import {
38
50
  ACTION_SCHEMAS_DIR,
39
51
  generateManifest,
@@ -42,37 +54,25 @@ import {
42
54
  scanServerActionsEnriched,
43
55
  scanServerRoutes,
44
56
  scanWebSocketRoutes
45
- } from "./chunk-I2UN46ZX.js";
46
- import "./chunk-DV34VG3N.js";
57
+ } from "./chunk-XJOU425Y.js";
47
58
  import {
48
59
  scanAgents
49
- } from "./chunk-IRASEXOG.js";
50
- import "./chunk-BX6EUYHU.js";
51
- import {
52
- CSP_REPORT_PATH,
53
- CsrfReadinessStore,
54
- applySecurityHeaders,
55
- handleCspReport,
56
- handleCsrfReadiness
57
- } from "./chunk-BPYMC7SU.js";
58
- import "./chunk-IRQGAC4L.js";
59
- import "./chunk-P6OS7652.js";
60
- import "./chunk-AVQU5CQF.js";
60
+ } from "./chunk-KDP2HURW.js";
61
+ import "./chunk-DV34VG3N.js";
62
+ import "./chunk-V6Y2SMRG.js";
61
63
  import "./chunk-ACKBVBUI.js";
62
64
  import "./chunk-IZ3TIL6K.js";
63
65
  import {
64
66
  resolveProvider
65
- } from "./chunk-3PBAN2YE.js";
67
+ } from "./chunk-CF2DNN5R.js";
66
68
  import "./chunk-YSJOZEI6.js";
67
69
  import {
68
70
  generateNonce
69
71
  } from "./chunk-Z4PJMZLM.js";
70
72
  import "./chunk-UMNXCU3K.js";
71
- import "./chunk-52PDWL5S.js";
72
- import "./chunk-5K4TDLRG.js";
73
+ import "./chunk-5KRMDP46.js";
74
+ import "./chunk-SOYOYGWY.js";
73
75
  import "./chunk-ZWN3AODA.js";
74
- import "./chunk-D4VP2QPR.js";
75
- import "./chunk-YN4W7LCX.js";
76
76
  import "./chunk-XTHN6JBX.js";
77
77
  export {
78
78
  ACTION_SCHEMAS_DIR,
@@ -107,4 +107,4 @@ export {
107
107
  scanWebSocketRoutes,
108
108
  sendError
109
109
  };
110
- //# sourceMappingURL=internal-api-VUDJUWYE.js.map
110
+ //# sourceMappingURL=internal-api-JNX3MTIM.js.map
@@ -2,12 +2,12 @@
2
2
  import "tsx/esm";
3
3
  import {
4
4
  createAgentSsrLoader
5
- } from "./chunk-SIGUGCBS.js";
5
+ } from "./chunk-TUO2FE3S.js";
6
6
  import {
7
7
  extractAppResources,
8
8
  handleMcpJsonRpc
9
9
  } from "./chunk-2CVV6CNN.js";
10
- import "./chunk-5YPXXSYY.js";
10
+ import "./chunk-35QIWOHT.js";
11
11
  import {
12
12
  scanAgents
13
13
  } from "./chunk-5NNFO7R7.js";
@@ -75,4 +75,4 @@ async function mcpCommand(name, deps = {}) {
75
75
  export {
76
76
  mcpCommand
77
77
  };
78
- //# sourceMappingURL=mcp-2RQCKWQR.js.map
78
+ //# sourceMappingURL=mcp-IMY3NUCL.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-JH53TZJI.js"),
8
- import("./start-3F4LVHWS.js")
7
+ import("./build-4GQLIFTD.js"),
8
+ import("./start-ONZXIWEG.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-J57QZNTO.js.map
23
+ //# sourceMappingURL=preview-K4NIQLAK.js.map
@@ -105,17 +105,6 @@ declare function resetProviderRegistry(): void;
105
105
  * @public
106
106
  */
107
107
  declare function listProviders(): readonly ProviderDescriptor[];
108
- /**
109
- * Resolve the provider for a model.
110
- *
111
- * When `modelId` declares a registered provider (`anthropic/…`), THAT provider's key is
112
- * required — no substitution. Otherwise the registry is walked by priority, first match wins.
113
- *
114
- * @returns ResolvedProvider with apiKey + baseUrl + name
115
- * @throws Error if NO provider env var is set (actionable message)
116
- *
117
- * @public
118
- */
119
108
  declare function resolveProvider(modelId?: string, options?: ResolveOptions): ResolvedProvider;
120
109
  /**
121
110
  * Try to resolve — does NOT throw. Returns null if no provider available.
@@ -7,7 +7,7 @@ var adapterRegistry = {
7
7
  vercel: async () => (await import("./vercel-BMCQKCWE.js")).vercelAdapter,
8
8
  cloudflare: async () => (await import("./cloudflare-SIG42OIW.js")).cloudflareAdapter,
9
9
  static: async () => (await import("./static-SVDWIOXJ.js")).staticAdapter,
10
- bun: async () => (await import("./bun-L7PP6ID5.js")).bunAdapter,
10
+ bun: async () => (await import("./bun-POLTY2HK.js")).bunAdapter,
11
11
  "deno-deploy": async () => (await import("./deno-deploy-LQAYOOPW.js")).denoDeployAdapter,
12
12
  netlify: async () => (await import("./netlify-C2IRCZKI.js")).netlifyAdapter,
13
13
  "aws-lambda": async () => (await import("./aws-lambda-VKMYUMP2.js")).awsLambdaAdapter,
@@ -20,4 +20,4 @@ async function resolveAdapter(target) {
20
20
  export {
21
21
  resolveAdapter
22
22
  };
23
- //# sourceMappingURL=registry-KBZDCFVQ.js.map
23
+ //# sourceMappingURL=registry-3LUHO4IB.js.map
@@ -4,7 +4,7 @@ import { AcpTransport } from '@theokit/agents';
4
4
  export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
5
5
  import { CustomTool as CustomTool$1 } from '@theokit/sdk';
6
6
  import { V as VerifyFn } from '../../webhook-types-DGIjjcaI.js';
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-Dx6QuWrw.js';
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-VS61zqsw.js';
8
8
 
9
9
  /**
10
10
  * M26 (ADR-0041) — `createWorkflowTool`: wrap an SDK `Workflow` as a `CustomTool`.
@@ -12,7 +12,8 @@ import {
12
12
  parseChannelPath,
13
13
  serveMcpStdio,
14
14
  streamAgentTurnInProcess
15
- } from "../../chunk-ZQO37YQJ.js";
15
+ } from "../../chunk-PELXWPDF.js";
16
+ import "../../chunk-BZF76LFM.js";
16
17
  import {
17
18
  buildResourceDescriptors,
18
19
  defineAppResource,
@@ -25,8 +26,7 @@ import {
25
26
  resetProviderRegistry,
26
27
  resolveProvider,
27
28
  tryResolveProvider
28
- } from "../../chunk-3PBAN2YE.js";
29
- import "../../chunk-BZF76LFM.js";
29
+ } from "../../chunk-CF2DNN5R.js";
30
30
  import "../../chunk-XTHN6JBX.js";
31
31
  export {
32
32
  CodeModePermissionDeniedError,
@@ -1,84 +1,7 @@
1
- import { d as StorageAdapter } from '../../storage-types-DsDTCPbp.js';
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-CFGPFIdB.js';
2
3
  export { InMemoryUsageStorage as NeutralUsageStorage } from '@theokit/agents/usage';
3
4
 
4
- /**
5
- * Cost tracking types (R0.5.11).
6
- *
7
- * Phase 5 — Production-Readiness #4: adds `ToolUsageRecord` for per-tool
8
- * latency / error tracking via SDK's onToolStart/onToolEnd/onToolError hooks.
9
- * Same UsageStorageAdapter handles both via discriminated union.
10
- *
11
- * EC-9 (SHOULD TEST): backward compat — record() input without `kind` is
12
- * normalized to 'llm' by the framework so external adapters from older
13
- * versions keep working.
14
- */
15
- /**
16
- * Per-LLM-call cost record (existing — gains optional `kind` discriminator).
17
- */
18
- interface UsageRecord {
19
- /** Discriminator. Optional for backward-compat; defaults to 'llm'. */
20
- kind?: 'llm';
21
- /** User identifier (e.g., session userId, tenantId, apiKey hash). */
22
- userId: string;
23
- /** Model id (e.g., 'claude-sonnet-4-5-20250929'). */
24
- model: string;
25
- /** Token counts per direction. */
26
- tokens: {
27
- input: number;
28
- output: number;
29
- };
30
- /** USD cost in fractional dollars. */
31
- costUsd: number;
32
- /** When the run happened. */
33
- timestamp: Date;
34
- }
35
- /**
36
- * Per-tool-invocation record (Phase 5 — Production-Readiness #4).
37
- *
38
- * Emitted by `trackAgentTools` on every `onToolEnd` / `onToolError`. The same
39
- * `UsageStorageAdapter.record` accepts both record kinds via union.
40
- */
41
- interface ToolUsageRecord {
42
- kind: 'tool';
43
- userId: string;
44
- conversationId: string;
45
- toolName: string;
46
- /**
47
- * Unique per invocation; correlates onToolStart with onToolEnd / onToolError.
48
- * EC-16 (DOCUMENT): callId uniqueness is SDK contract — if SDK ever reuses
49
- * a callId, `trackAgentTools`'s Map uses last-write-wins (defensive).
50
- */
51
- callId: string;
52
- /** True when the tool handler returned; false when it threw. */
53
- success: boolean;
54
- /** Milliseconds from onToolStart to onToolEnd / onToolError. */
55
- durationMs: number;
56
- /** Populated only when success === false. */
57
- errorMessage?: string;
58
- timestamp: Date;
59
- }
60
- interface UsageQuery {
61
- userId: string;
62
- period: {
63
- from: Date;
64
- to: Date;
65
- };
66
- }
67
- interface UsageResult {
68
- totalTokens: number;
69
- totalCostUsd: number;
70
- runs: number;
71
- }
72
- interface UsageStorageAdapter {
73
- readonly name: string;
74
- /**
75
- * Record a usage event. Accepts both kinds; framework normalizes input
76
- * without `kind` to 'llm' before calling adapter (EC-9 backward compat).
77
- */
78
- record(input: UsageRecord | ToolUsageRecord): Promise<void>;
79
- getUsage(query: UsageQuery): Promise<UsageResult>;
80
- }
81
-
82
5
  interface TrackAgentRunInput {
83
6
  userId: string;
84
7
  model: string;
@@ -172,4 +95,4 @@ interface TrackAgentToolsHooks {
172
95
  */
173
96
  declare function trackAgentTools(opts: TrackAgentToolsOptions): TrackAgentToolsHooks;
174
97
 
175
- export { InMemoryUsageStorage, type ToolHookEvent, type ToolUsageRecord, type TrackAgentRunInput, type TrackAgentRunOptions, type TrackAgentToolsHooks, type TrackAgentToolsOptions, type UsageQuery, type UsageRecord, type UsageResult, type UsageStorageAdapter, trackAgentRun, trackAgentTools };
98
+ export { InMemoryUsageStorage, type ToolHookEvent, ToolUsageRecord, type TrackAgentRunInput, type TrackAgentRunOptions, type TrackAgentToolsHooks, type TrackAgentToolsOptions, UsageQuery, UsageRecord, UsageResult, UsageStorageAdapter, trackAgentRun, trackAgentTools };
@@ -0,0 +1,21 @@
1
+ import { S as StorageAdapter } from '../../../storage-types-CFGPFIdB.js';
2
+ import { U as UsageStorageAdapter, a as UsageRecord, T as ToolUsageRecord, b as UsageQuery, c as UsageResult } from '../../../cost-types-BALTuBpG.js';
3
+
4
+ declare class SqliteUsageStorage implements UsageStorageAdapter, StorageAdapter {
5
+ #private;
6
+ readonly name = "sqlite";
7
+ /**
8
+ * @param filename path to the database file. `':memory:'` is accepted and is a legitimate choice
9
+ * for a test, but note that it defeats the entire purpose of this class in a deployment.
10
+ */
11
+ constructor(filename: string);
12
+ record(input: UsageRecord | ToolUsageRecord): Promise<void>;
13
+ getUsage(query: UsageQuery): Promise<UsageResult>;
14
+ /**
15
+ * `StorageAdapter` lifecycle (ADR-0007 D6). Unlike the in-memory adapter's noop, this one has a
16
+ * file handle to release — a graceful shutdown that left it open would leave the WAL unmerged.
17
+ */
18
+ dispose(): Promise<void>;
19
+ }
20
+
21
+ export { SqliteUsageStorage };
@@ -0,0 +1,102 @@
1
+ import "../../../chunk-XTHN6JBX.js";
2
+
3
+ // src/server/cost/usage-storage-sqlite.ts
4
+ import { createRequire } from "node:module";
5
+ function loadSqlite() {
6
+ try {
7
+ const require_ = createRequire(import.meta.url);
8
+ const mod = require_("node:sqlite");
9
+ return mod.DatabaseSync;
10
+ } catch {
11
+ throw new Error(
12
+ `SqliteUsageStorage needs \`node:sqlite\`, which this Node does not provide (running ${process.version}). It is not available at this package's engine floor of 22.12 \u2014 upgrade Node, or use a different UsageStorageAdapter: the interface is two methods and \`InMemoryUsageStorage\` shows the shape.`
13
+ );
14
+ }
15
+ }
16
+ var SqliteUsageStorage = class {
17
+ name = "sqlite";
18
+ #db;
19
+ /**
20
+ * @param filename path to the database file. `':memory:'` is accepted and is a legitimate choice
21
+ * for a test, but note that it defeats the entire purpose of this class in a deployment.
22
+ */
23
+ constructor(filename) {
24
+ const DatabaseSync = loadSqlite();
25
+ this.#db = new DatabaseSync(filename);
26
+ this.#db.exec("PRAGMA journal_mode = WAL");
27
+ this.#db.exec(`
28
+ CREATE TABLE IF NOT EXISTS usage (
29
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
30
+ kind TEXT NOT NULL,
31
+ user_id TEXT NOT NULL,
32
+ at_ms INTEGER NOT NULL,
33
+ model TEXT,
34
+ input_tok INTEGER,
35
+ output_tok INTEGER,
36
+ cost_usd REAL,
37
+ tool_name TEXT,
38
+ call_id TEXT,
39
+ success INTEGER,
40
+ duration_ms INTEGER,
41
+ error TEXT
42
+ )
43
+ `);
44
+ this.#db.exec("CREATE INDEX IF NOT EXISTS usage_lookup ON usage (user_id, kind, at_ms)");
45
+ }
46
+ record(input) {
47
+ if ("kind" in input && input.kind === "tool") {
48
+ this.#db.prepare(
49
+ `INSERT INTO usage (kind, user_id, at_ms, tool_name, call_id, success, duration_ms, error)
50
+ VALUES ('tool', ?, ?, ?, ?, ?, ?, ?)`
51
+ ).run(
52
+ input.userId,
53
+ input.timestamp.getTime(),
54
+ input.toolName,
55
+ input.callId,
56
+ input.success ? 1 : 0,
57
+ input.durationMs,
58
+ input.errorMessage ?? null
59
+ );
60
+ return Promise.resolve();
61
+ }
62
+ const llm = input;
63
+ this.#db.prepare(
64
+ `INSERT INTO usage (kind, user_id, at_ms, model, input_tok, output_tok, cost_usd)
65
+ VALUES ('llm', ?, ?, ?, ?, ?, ?)`
66
+ ).run(
67
+ llm.userId,
68
+ llm.timestamp.getTime(),
69
+ llm.model,
70
+ llm.tokens.input,
71
+ llm.tokens.output,
72
+ llm.costUsd
73
+ );
74
+ return Promise.resolve();
75
+ }
76
+ getUsage(query) {
77
+ const row = this.#db.prepare(
78
+ `SELECT COALESCE(SUM(input_tok + output_tok), 0) AS tokens,
79
+ COALESCE(SUM(cost_usd), 0) AS cost,
80
+ COUNT(*) AS runs
81
+ FROM usage
82
+ WHERE kind = 'llm' AND user_id = ? AND at_ms >= ? AND at_ms <= ?`
83
+ ).get(query.userId, query.period.from.getTime(), query.period.to.getTime());
84
+ return Promise.resolve({
85
+ totalTokens: row?.tokens ?? 0,
86
+ totalCostUsd: row?.cost ?? 0,
87
+ runs: row?.runs ?? 0
88
+ });
89
+ }
90
+ /**
91
+ * `StorageAdapter` lifecycle (ADR-0007 D6). Unlike the in-memory adapter's noop, this one has a
92
+ * file handle to release — a graceful shutdown that left it open would leave the WAL unmerged.
93
+ */
94
+ dispose() {
95
+ this.#db.close();
96
+ return Promise.resolve();
97
+ }
98
+ };
99
+ export {
100
+ SqliteUsageStorage
101
+ };
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/server/cost/usage-storage-sqlite.ts"],"mappings":";;;AAAA,SAAS,qBAAqB;AAoE9B,SAAS,aAAuD;AAC9D,MAAI;AACF,UAAM,WAAW,cAAc,YAAY,GAAG;AAC9C,UAAM,MAAM,SAAS,aAAa;AAClC,WAAO,IAAI;AAAA,EACb,QAAQ;AACN,UAAM,IAAI;AAAA,MACR,uFACc,QAAQ,OAAO;AAAA,IAG/B;AAAA,EACF;AACF;AAEO,IAAM,qBAAN,MAAwE;AAAA,EACpE,OAAO;AAAA,EACP;AAAA;AAAA;AAAA;AAAA;AAAA,EAMT,YAAY,UAAkB;AAC5B,UAAM,eAAe,WAAW;AAChC,SAAK,MAAM,IAAI,aAAa,QAAQ;AAGpC,SAAK,IAAI,KAAK,2BAA2B;AACzC,SAAK,IAAI,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAgBb;AAED,SAAK,IAAI,KAAK,yEAAyE;AAAA,EACzF;AAAA,EAEA,OAAO,OAAqD;AAG1D,QAAI,UAAU,SAAS,MAAM,SAAS,QAAQ;AAC5C,WAAK,IACF;AAAA,QACC;AAAA;AAAA,MAEF,EACC;AAAA,QACC,MAAM;AAAA,QACN,MAAM,UAAU,QAAQ;AAAA,QACxB,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM,UAAU,IAAI;AAAA,QACpB,MAAM;AAAA,QACN,MAAM,gBAAgB;AAAA,MACxB;AACF,aAAO,QAAQ,QAAQ;AAAA,IACzB;AAEA,UAAM,MAAM;AACZ,SAAK,IACF;AAAA,MACC;AAAA;AAAA,IAEF,EACC;AAAA,MACC,IAAI;AAAA,MACJ,IAAI,UAAU,QAAQ;AAAA,MACtB,IAAI;AAAA,MACJ,IAAI,OAAO;AAAA,MACX,IAAI,OAAO;AAAA,MACX,IAAI;AAAA,IACN;AACF,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,SAAS,OAAyC;AAChD,UAAM,MAAM,KAAK,IACd;AAAA,MACC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKF,EACC,IAAI,MAAM,QAAQ,MAAM,OAAO,KAAK,QAAQ,GAAG,MAAM,OAAO,GAAG,QAAQ,CAAC;AAQ3E,WAAO,QAAQ,QAAQ;AAAA,MACrB,aAAa,KAAK,UAAU;AAAA,MAC5B,cAAc,KAAK,QAAQ;AAAA,MAC3B,MAAM,KAAK,QAAQ;AAAA,IACrB,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,UAAyB;AACvB,SAAK,IAAI,MAAM;AACf,WAAO,QAAQ,QAAQ;AAAA,EACzB;AACF;","names":[]}
@@ -14,11 +14,11 @@ import {
14
14
  translateCronToVercel,
15
15
  validateCronSchedule,
16
16
  writeCronManifest
17
- } from "../../chunk-HK4AZBKX.js";
18
- import "../../chunk-VZTYCAO6.js";
17
+ } from "../../chunk-D5KBBTVD.js";
18
+ import "../../chunk-IDEZ7FU2.js";
19
19
  import "../../chunk-UMNXCU3K.js";
20
- import "../../chunk-52PDWL5S.js";
21
- import "../../chunk-5K4TDLRG.js";
20
+ import "../../chunk-5KRMDP46.js";
21
+ import "../../chunk-SOYOYGWY.js";
22
22
  import "../../chunk-ZWN3AODA.js";
23
23
  import "../../chunk-XTHN6JBX.js";
24
24
  export {
@@ -6,7 +6,7 @@ import {
6
6
  createOpenApiHandler,
7
7
  loadCustomErrorPages,
8
8
  serveStaticFile
9
- } from "../../chunk-AI7GBBRB.js";
9
+ } from "../../chunk-KQ27YDLG.js";
10
10
  import {
11
11
  jsonTransformer,
12
12
  resolveTransformer,
@@ -31,7 +31,8 @@ import {
31
31
  sendError,
32
32
  sendJson,
33
33
  validateRouteInput
34
- } from "../../chunk-FVFYACYK.js";
34
+ } from "../../chunk-JW5UFKQ3.js";
35
+ import "../../chunk-P6OS7652.js";
35
36
  import {
36
37
  ActionError,
37
38
  ActionInputError,
@@ -39,6 +40,8 @@ import {
39
40
  isActionError,
40
41
  isInputError
41
42
  } from "../../chunk-ZDUO4IYN.js";
43
+ import "../../chunk-D4VP2QPR.js";
44
+ import "../../chunk-YN4W7LCX.js";
42
45
  import "../../chunk-47FFT43U.js";
43
46
  import {
44
47
  FileTooLargeError,
@@ -50,11 +53,10 @@ import {
50
53
  parseRequestBody,
51
54
  parseTraceparent,
52
55
  parseTraceparentContext
53
- } from "../../chunk-BND4YZTQ.js";
56
+ } from "../../chunk-ZDCCILMP.js";
54
57
  import "../../chunk-CHTAWXC2.js";
55
- import "../../chunk-BX6EUYHU.js";
56
- import "../../chunk-P6OS7652.js";
57
58
  import "../../chunk-AVQU5CQF.js";
59
+ import "../../chunk-V6Y2SMRG.js";
58
60
  import {
59
61
  envelopeCodeToStatus
60
62
  } from "../../chunk-ACKBVBUI.js";
@@ -75,8 +77,6 @@ import {
75
77
  setCookie
76
78
  } from "../../chunk-4FWBKX6G.js";
77
79
  import "../../chunk-ZWN3AODA.js";
78
- import "../../chunk-D4VP2QPR.js";
79
- import "../../chunk-YN4W7LCX.js";
80
80
  import "../../chunk-XTHN6JBX.js";
81
81
  export {
82
82
  ActionError,
@@ -10,10 +10,11 @@ export { ACTION_SCHEMAS_DIR, ActionNode, ActionScanError, LoadedManifest, Manife
10
10
  export { L as LoadModule, S as ServerRouteNode, c as compilePattern, a as createProductionLoader, b as createViteLoader, m as matchRoute } from '../match-Dw4CNXJH.js';
11
11
  export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, Sandbox, StdioStreams, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio } from './agent/index.js';
12
12
  export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
13
- 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-Dx6QuWrw.js';
13
+ 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-VS61zqsw.js';
14
14
  export { AuthRequiredError, BackupCode, BackupCodeOptions, OidcMetadata, PkceChallenge, SessionConfig, SessionManager, SessionManagerWeb, SessionMeta, ThrottleOptions, ThrottleState, TotpAlgorithm, TotpOptions, TotpUriOptions, VerifyTotpOptions, _resetKeyCacheForTests, assertProductionSecret, checkThrottle, clearOidcCache, createSessionManager, createSessionManagerWeb, decrypt, discoverOidcProvider, encrypt, generateBackupCodes, generateOAuthState, generatePkceChallenge, generateTotp, generateTotpSecret, pkceChallengeFromVerifier, recordAttempt, requireAuth, rotateIfNeeded, rotateIfNeededWeb, totpUri, verifyBackupCode, verifyOAuthState, verifyTotp } from './auth/index.js';
15
15
  export { g as generateNonce } from '../nonce-BXt7Qu_C.js';
16
- export { InMemoryUsageStorage, ToolHookEvent, ToolUsageRecord, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, UsageQuery, UsageRecord, UsageResult, UsageStorageAdapter, trackAgentRun, trackAgentTools } from './cost/index.js';
16
+ export { InMemoryUsageStorage, ToolHookEvent, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, trackAgentRun, trackAgentTools } from './cost/index.js';
17
+ export { T as ToolUsageRecord, b as UsageQuery, a as UsageRecord, c as UsageResult, U as UsageStorageAdapter } from '../cost-types-BALTuBpG.js';
17
18
  export { InMemoryUsageStorage as NeutralUsageStorage } from '@theokit/agents/usage';
18
19
  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';
19
20
  export { DuplicateContextKeyError, DuplicateJobNameError, EnqueueOptions, InMemoryJobBackend, InMemoryJobBackendOptions, JOB_MANIFEST_SCHEMA_VERSION, JobContext, JobDefinition, JobManifest, JobManifestEntry, JobNode, JobOptions, JobRegistry, JobRunner, Outbox, OutboxFlushOptions, PostgresJobBackend, PostgresJobBackendOptions, QueueClient, buildJobManifest, createJobRunner, createOutbox, createOutboxDispatcher, createQueueClient, defineJob, scanJobs, writeJobManifest } from './jobs/index.js';
@@ -29,9 +30,9 @@ export { ChannelManager } from './realtime/index.js';
29
30
  export { CSP_REPORT_PATH, CSRF_READINESS_PATH, CSRF_READINESS_RESET_PATH, CspReportHandlerOptions, CspViolation, CsrfDecision, CsrfMultiHeaderOptions, applySecurityHeaders, evaluateCsrfMultiHeaderRequest, handleCspReport, handleCspReportRequest, handleCsrfReadiness, handleCsrfReadinessRequest, isCsrfOriginAllowed, matchWildcardDomain, normalizeLegacy, normalizeNew } from './security/index.js';
30
31
  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';
31
32
  export { a as CsrfReadinessRouteSummary, C as CsrfReadinessStore, b as CsrfReadinessSummary, c as CsrfWarnRecord } from '../csrf-readiness-store-CjIoub3U.js';
32
- export { P as PostgresFactory, R as RedisFactory, S as StorageManager, g as getStorageManager } from '../storage-manager-C6hmsaer.js';
33
+ export { P as PostgresFactory, R as RedisFactory, S as StorageManager, g as getStorageManager } from '../storage-manager-BtG38jYl.js';
33
34
  export { Db0Database, UnstorageInstance, useDatabase, useUnstorage } from './storage/index.js';
34
- export { G as GenericFactory, a as PoolLike, P as PostgresDatabaseConfig, c as RedisLike, R as RedisServerConfig, S as ServerConfig, d as StorageAdapter, b as StorageConfig, T as TlsConfig } from '../storage-types-DsDTCPbp.js';
35
+ export { G as GenericFactory, b as PoolLike, P as PostgresDatabaseConfig, d as RedisLike, R as RedisServerConfig, a as ServerConfig, S as StorageAdapter, c as StorageConfig, T as TlsConfig } from '../storage-types-CFGPFIdB.js';
35
36
  export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, DiscordWebhookOptions, GitHubWebhookOptions, RawBodyResult, ReadRawBodyOptions, SlackWebhookOptions, StripeWebhookOptions, TelegramWebhookOptions, defineWebhook, discord, dispatchWebhook, github, readRawBody, slack, stripe, telegram, timingSafeEqual } from './webhook/index.js';
36
37
  export { D as DefineWebhookOptions, V as VerifyFn, a as VerifyResult, W as WebhookContext, b as WebhookDefinition } from '../webhook-types-DGIjjcaI.js';
37
38
  import { z } from 'zod';