theokit 0.40.0 → 0.43.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-RNPMHJOM.js → actions-virtual-module-LD3YKWIX.js} +2 -2
- package/dist/{actions-virtual-module-YGKSEIOJ.js → actions-virtual-module-N7GKUS3D.js} +3 -3
- package/dist/{agent-ST6GB3VX.js → agent-U35G3WNE.js} +2 -2
- package/dist/{app-typed-client-YSLQU5HT.js → app-typed-client-6YZRDAPY.js} +3 -3
- package/dist/{app-typed-client-FQPUOL6A.js → app-typed-client-V77SVU2O.js} +2 -2
- package/dist/{build-VAR5EFOU.js → build-BYLQZJT2.js} +2 -2
- package/dist/{chunk-L4CYLM2V.js → chunk-2ZX4J4SX.js} +11 -7
- package/dist/chunk-2ZX4J4SX.js.map +1 -0
- package/dist/{chunk-KLFCJQXU.js → chunk-AXVFVMLM.js} +17 -3
- package/dist/chunk-AXVFVMLM.js.map +1 -0
- package/dist/{chunk-63BUBV5L.js → chunk-E25FBYJP.js} +1 -1
- package/dist/chunk-E25FBYJP.js.map +1 -0
- package/dist/{chunk-YMS6KMKA.js → chunk-FEDSPOY6.js} +2 -2
- package/dist/{chunk-MYDS52BG.js → chunk-IPC5UREF.js} +13 -9
- package/dist/chunk-IPC5UREF.js.map +1 -0
- package/dist/{chunk-EV33DOG6.js → chunk-JQJN6LFK.js} +2 -2
- package/dist/{chunk-HQQADLLD.js → chunk-SPJNVWOK.js} +2 -2
- package/dist/{chunk-SPFMJAFW.js → chunk-UI6FWWOF.js} +2 -2
- package/dist/{chunk-HEDLJJDF.js → chunk-UNLG36Z5.js} +17 -3
- package/dist/{chunk-HEDLJJDF.js.map → chunk-UNLG36Z5.js.map} +1 -1
- package/dist/{chunk-BEQQ6WCK.js → chunk-UO7WS32S.js} +2 -2
- package/dist/{chunk-32GOXYA7.js → chunk-XZ4QD5IN.js} +7 -3
- package/dist/{chunk-32GOXYA7.js.map → chunk-XZ4QD5IN.js.map} +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/client/core.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/{define-agent-tool-ChaGymol.d.ts → define-agent-tool-cRuSpidb.d.ts} +29 -9
- package/dist/{dev-VAIYPLV6.js → dev-PS2NGT6I.js} +5 -5
- package/dist/{generate-ATHMC4ET.js → generate-5X4LG77M.js} +12 -17
- package/dist/generate-5X4LG77M.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/{internal-api-ORXPQTEI.js → internal-api-FBFV265J.js} +3 -3
- package/dist/{internal-api-MRTUTAM7.js → internal-api-LFW7R65K.js} +2 -2
- package/dist/{mcp-SMDPAW7T.js → mcp-ML4QK5ON.js} +2 -2
- package/dist/server/agent/index.d.ts +1 -1
- package/dist/server/agent/index.js +2 -2
- package/dist/server/define/index.d.ts +2 -2
- package/dist/server/define/index.js +2 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/{start-MK3MNSFB.js → start-YLR2SFHU.js} +91 -10
- package/dist/start-YLR2SFHU.js.map +1 -0
- package/dist/vite-plugin/index.js +2 -2
- package/dist/{vite-plugin-WB57H4AT.js → vite-plugin-6VVU6PPC.js} +5 -5
- package/package.json +5 -4
- package/dist/chunk-63BUBV5L.js.map +0 -1
- package/dist/chunk-KLFCJQXU.js.map +0 -1
- package/dist/chunk-L4CYLM2V.js.map +0 -1
- package/dist/chunk-MYDS52BG.js.map +0 -1
- package/dist/generate-ATHMC4ET.js.map +0 -1
- package/dist/start-MK3MNSFB.js.map +0 -1
- /package/dist/{actions-virtual-module-RNPMHJOM.js.map → actions-virtual-module-LD3YKWIX.js.map} +0 -0
- /package/dist/{actions-virtual-module-YGKSEIOJ.js.map → actions-virtual-module-N7GKUS3D.js.map} +0 -0
- /package/dist/{agent-ST6GB3VX.js.map → agent-U35G3WNE.js.map} +0 -0
- /package/dist/{app-typed-client-YSLQU5HT.js.map → app-typed-client-6YZRDAPY.js.map} +0 -0
- /package/dist/{app-typed-client-FQPUOL6A.js.map → app-typed-client-V77SVU2O.js.map} +0 -0
- /package/dist/{build-VAR5EFOU.js.map → build-BYLQZJT2.js.map} +0 -0
- /package/dist/{chunk-YMS6KMKA.js.map → chunk-FEDSPOY6.js.map} +0 -0
- /package/dist/{chunk-EV33DOG6.js.map → chunk-JQJN6LFK.js.map} +0 -0
- /package/dist/{chunk-HQQADLLD.js.map → chunk-SPJNVWOK.js.map} +0 -0
- /package/dist/{chunk-SPFMJAFW.js.map → chunk-UI6FWWOF.js.map} +0 -0
- /package/dist/{chunk-BEQQ6WCK.js.map → chunk-UO7WS32S.js.map} +0 -0
- /package/dist/{dev-VAIYPLV6.js.map → dev-PS2NGT6I.js.map} +0 -0
- /package/dist/{internal-api-MRTUTAM7.js.map → internal-api-FBFV265J.js.map} +0 -0
- /package/dist/{internal-api-ORXPQTEI.js.map → internal-api-LFW7R65K.js.map} +0 -0
- /package/dist/{mcp-SMDPAW7T.js.map → mcp-ML4QK5ON.js.map} +0 -0
- /package/dist/{vite-plugin-WB57H4AT.js.map → vite-plugin-6VVU6PPC.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-AXVFVMLM.js";
|
|
2
2
|
import "./chunk-QWBXUZAX.js";
|
|
3
3
|
import "./chunk-GY5Q27BJ.js";
|
|
4
4
|
import "./chunk-5QW7IQQU.js";
|
|
@@ -221,4 +221,4 @@ export const actions = manifest
|
|
|
221
221
|
export {
|
|
222
222
|
actionsVirtualModule
|
|
223
223
|
};
|
|
224
|
-
//# sourceMappingURL=actions-virtual-module-
|
|
224
|
+
//# sourceMappingURL=actions-virtual-module-LD3YKWIX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "tsx/esm";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-SPJNVWOK.js";
|
|
4
|
+
import "./chunk-UNLG36Z5.js";
|
|
5
5
|
import "./chunk-M6NMS5LR.js";
|
|
6
6
|
import "./chunk-NQRNDPZJ.js";
|
|
7
7
|
import "./chunk-L4GCEMNW.js";
|
|
@@ -212,4 +212,4 @@ export const actions = manifest
|
|
|
212
212
|
export {
|
|
213
213
|
actionsVirtualModule
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=actions-virtual-module-
|
|
215
|
+
//# sourceMappingURL=actions-virtual-module-N7GKUS3D.js.map
|
|
@@ -3,7 +3,7 @@ import "tsx/esm";
|
|
|
3
3
|
import {
|
|
4
4
|
agentCommand,
|
|
5
5
|
createAgentSsrLoader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FEDSPOY6.js";
|
|
7
7
|
import "./chunk-GDN3PXFH.js";
|
|
8
8
|
import "./chunk-M6NMS5LR.js";
|
|
9
9
|
import "./chunk-L4GCEMNW.js";
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
agentCommand,
|
|
13
13
|
createAgentSsrLoader
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=agent-
|
|
15
|
+
//# sourceMappingURL=agent-U35G3WNE.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "tsx/esm";
|
|
3
3
|
import {
|
|
4
4
|
scanControllerModules
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-SPJNVWOK.js";
|
|
6
|
+
import "./chunk-UNLG36Z5.js";
|
|
7
7
|
import "./chunk-M6NMS5LR.js";
|
|
8
8
|
import {
|
|
9
9
|
generateManifest
|
|
@@ -376,4 +376,4 @@ export {
|
|
|
376
376
|
generateClientDts,
|
|
377
377
|
shouldReemitForFile
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=app-typed-client-
|
|
379
|
+
//# sourceMappingURL=app-typed-client-6YZRDAPY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
scanControllerModules
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AXVFVMLM.js";
|
|
4
4
|
import "./chunk-QWBXUZAX.js";
|
|
5
5
|
import "./chunk-GY5Q27BJ.js";
|
|
6
6
|
import "./chunk-5QW7IQQU.js";
|
|
@@ -385,4 +385,4 @@ export {
|
|
|
385
385
|
generateClientDts,
|
|
386
386
|
shouldReemitForFile
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=app-typed-client-
|
|
388
|
+
//# sourceMappingURL=app-typed-client-V77SVU2O.js.map
|
|
@@ -533,7 +533,7 @@ async function buildCommand(options) {
|
|
|
533
533
|
`);
|
|
534
534
|
}
|
|
535
535
|
async function runAdapterBuild(target, config, cwd) {
|
|
536
|
-
const { theoPluginAsync } = await import("./vite-plugin-
|
|
536
|
+
const { theoPluginAsync } = await import("./vite-plugin-6VVU6PPC.js");
|
|
537
537
|
const { default: react } = await import("@vitejs/plugin-react");
|
|
538
538
|
const ctx = {
|
|
539
539
|
// `react()` may return Plugin or Plugin[] depending on version; spread the
|
|
@@ -619,4 +619,4 @@ function relativize3(absPath, root) {
|
|
|
619
619
|
export {
|
|
620
620
|
buildCommand
|
|
621
621
|
};
|
|
622
|
-
//# sourceMappingURL=build-
|
|
622
|
+
//# sourceMappingURL=build-BYLQZJT2.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
mountAgent,
|
|
20
20
|
parseAgentRequestBody,
|
|
21
21
|
resolveProvider
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AXVFVMLM.js";
|
|
23
23
|
import {
|
|
24
24
|
loadEnv,
|
|
25
25
|
resolveTransformer
|
|
@@ -1653,7 +1653,11 @@ function createAgentMiddleware(vite, projectRoot, csrfMode = "strict", agentsDir
|
|
|
1653
1653
|
const mod = await loadModule(agent.filePath);
|
|
1654
1654
|
const apiKey = resolveProvider().apiKey;
|
|
1655
1655
|
const request = incomingMessageToWebRequest(req);
|
|
1656
|
-
const response = await mountAgent(mod, request, apiKey,
|
|
1656
|
+
const response = await mountAgent(mod, request, apiKey, {
|
|
1657
|
+
source: agent.filePath,
|
|
1658
|
+
csrfMode,
|
|
1659
|
+
projectRoot
|
|
1660
|
+
});
|
|
1657
1661
|
await writeWebResponseToServerResponse(response, res);
|
|
1658
1662
|
} catch (err) {
|
|
1659
1663
|
sendError(
|
|
@@ -1787,7 +1791,7 @@ async function tryControllerFallthrough(ctx) {
|
|
|
1787
1791
|
requestId: ctx.requestId,
|
|
1788
1792
|
// M47 — serve @Expose-bound agent routes via the ONE runtime (mountAgent). CSRF is already enforced
|
|
1789
1793
|
// once at the controller-dispatch boundary (G5), so mountAgent runs with csrfMode 'off' (no double gate).
|
|
1790
|
-
serveAgent: (agent, request) => mountAgent(agent, request, resolveProvider().apiKey, "expose", "off")
|
|
1794
|
+
serveAgent: (agent, request) => mountAgent(agent, request, resolveProvider().apiKey, { source: "expose", csrfMode: "off" })
|
|
1791
1795
|
});
|
|
1792
1796
|
if (!handled) return false;
|
|
1793
1797
|
logRequest(
|
|
@@ -3077,19 +3081,19 @@ async function theoPluginAsync(rootOrOptions) {
|
|
|
3077
3081
|
})
|
|
3078
3082
|
);
|
|
3079
3083
|
}
|
|
3080
|
-
const { appTypedClientPlugin } = await import("./app-typed-client-
|
|
3084
|
+
const { appTypedClientPlugin } = await import("./app-typed-client-V77SVU2O.js");
|
|
3081
3085
|
const appClientPlugin = appTypedClientPlugin({
|
|
3082
3086
|
cwd: projectRoot,
|
|
3083
3087
|
serverDir: serverDirAbs,
|
|
3084
3088
|
distDir: resolve10(projectRoot, ".theokit")
|
|
3085
3089
|
});
|
|
3086
|
-
const { actionsVirtualModule } = await import("./actions-virtual-module-
|
|
3090
|
+
const { actionsVirtualModule } = await import("./actions-virtual-module-LD3YKWIX.js");
|
|
3087
3091
|
const actionsPlugin = actionsVirtualModule({
|
|
3088
3092
|
serverDir: serverDirAbs,
|
|
3089
3093
|
distDir: resolve10(projectRoot, ".theokit")
|
|
3090
3094
|
});
|
|
3091
3095
|
const { agentsTypedClientPlugin } = await import("./agents-typed-client-CHMVW7MK.js");
|
|
3092
|
-
const { generateManifest } = await import("./internal-api-
|
|
3096
|
+
const { generateManifest } = await import("./internal-api-LFW7R65K.js");
|
|
3093
3097
|
const agentsClientPlugin = agentsTypedClientPlugin({
|
|
3094
3098
|
projectRoot,
|
|
3095
3099
|
agentsDir: agentsDirName,
|
|
@@ -3278,4 +3282,4 @@ export {
|
|
|
3278
3282
|
theoPluginAsync,
|
|
3279
3283
|
theoPlugin
|
|
3280
3284
|
};
|
|
3281
|
-
//# sourceMappingURL=chunk-
|
|
3285
|
+
//# sourceMappingURL=chunk-2ZX4J4SX.js.map
|