theokit 0.35.0 → 0.36.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/dist/{actions-virtual-module-BCN7IEQC.js → actions-virtual-module-3KSP3WPJ.js} +3 -3
- package/dist/{actions-virtual-module-AX6UMYF5.js → actions-virtual-module-SYGQE6JQ.js} +2 -2
- package/dist/{agent-4FJK6PRR.js → agent-DX5LHD6X.js} +2 -2
- package/dist/{app-typed-client-U3OCOWYT.js → app-typed-client-ESMMLPYK.js} +2 -2
- package/dist/{app-typed-client-LM2PNOCL.js → app-typed-client-N4TRX5FI.js} +3 -3
- package/dist/{build-YQ3AWJV2.js → build-3C2KQPME.js} +2 -2
- package/dist/{chunk-WR4F4EEZ.js → chunk-3KD2O6DC.js} +54 -2
- package/dist/chunk-3KD2O6DC.js.map +1 -0
- package/dist/{chunk-F46GSPV7.js → chunk-DISADTFZ.js} +2 -2
- package/dist/{chunk-5VRQVXHH.js → chunk-MNQC5XEJ.js} +7 -41
- package/dist/{chunk-5VRQVXHH.js.map → chunk-MNQC5XEJ.js.map} +1 -1
- package/dist/{chunk-KXA37ONC.js → chunk-RPMKF6BC.js} +2 -2
- package/dist/{chunk-S7L6H3KP.js → chunk-RVJAM77M.js} +2 -38
- package/dist/{chunk-S7L6H3KP.js.map → chunk-RVJAM77M.js.map} +1 -1
- package/dist/{chunk-OOS5LB5Y.js → chunk-T4TCLEFB.js} +8 -8
- package/dist/{chunk-4MTCKE5I.js → chunk-UDG6JPVP.js} +2 -2
- package/dist/{chunk-TGTNRUH3.js → chunk-WL4AX5FI.js} +54 -2
- package/dist/chunk-WL4AX5FI.js.map +1 -0
- package/dist/cli/index.js +5 -5
- package/dist/{dev-PESPUGQU.js → dev-CNPT7COE.js} +5 -5
- package/dist/index.js +3 -3
- package/dist/{internal-api-CS3AG7MT.js → internal-api-4IXBITVV.js} +2 -2
- package/dist/{internal-api-CCRY3HN4.js → internal-api-5JKDYRGM.js} +3 -3
- package/dist/{mcp-FMZSFEEQ.js → mcp-INKDONQS.js} +2 -2
- package/dist/server/http/index.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/{start-CHMKI2KH.js → start-LNJZNKF6.js} +4 -4
- package/dist/vite-plugin/index.js +3 -3
- package/dist/{vite-plugin-T3EXDNQQ.js → vite-plugin-NC5ETNMV.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-TGTNRUH3.js.map +0 -1
- package/dist/chunk-WR4F4EEZ.js.map +0 -1
- /package/dist/{actions-virtual-module-BCN7IEQC.js.map → actions-virtual-module-3KSP3WPJ.js.map} +0 -0
- /package/dist/{actions-virtual-module-AX6UMYF5.js.map → actions-virtual-module-SYGQE6JQ.js.map} +0 -0
- /package/dist/{agent-4FJK6PRR.js.map → agent-DX5LHD6X.js.map} +0 -0
- /package/dist/{app-typed-client-U3OCOWYT.js.map → app-typed-client-ESMMLPYK.js.map} +0 -0
- /package/dist/{app-typed-client-LM2PNOCL.js.map → app-typed-client-N4TRX5FI.js.map} +0 -0
- /package/dist/{build-YQ3AWJV2.js.map → build-3C2KQPME.js.map} +0 -0
- /package/dist/{chunk-F46GSPV7.js.map → chunk-DISADTFZ.js.map} +0 -0
- /package/dist/{chunk-KXA37ONC.js.map → chunk-RPMKF6BC.js.map} +0 -0
- /package/dist/{chunk-OOS5LB5Y.js.map → chunk-T4TCLEFB.js.map} +0 -0
- /package/dist/{chunk-4MTCKE5I.js.map → chunk-UDG6JPVP.js.map} +0 -0
- /package/dist/{dev-PESPUGQU.js.map → dev-CNPT7COE.js.map} +0 -0
- /package/dist/{internal-api-CCRY3HN4.js.map → internal-api-4IXBITVV.js.map} +0 -0
- /package/dist/{internal-api-CS3AG7MT.js.map → internal-api-5JKDYRGM.js.map} +0 -0
- /package/dist/{mcp-FMZSFEEQ.js.map → mcp-INKDONQS.js.map} +0 -0
- /package/dist/{start-CHMKI2KH.js.map → start-LNJZNKF6.js.map} +0 -0
- /package/dist/{vite-plugin-T3EXDNQQ.js.map → vite-plugin-NC5ETNMV.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
loadEnv,
|
|
10
10
|
resolveTransformer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UDG6JPVP.js";
|
|
12
12
|
import {
|
|
13
13
|
BATCH_PATH,
|
|
14
14
|
TRACE_HEADER,
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
executeRoute,
|
|
18
18
|
extractTraceId,
|
|
19
19
|
handleBatchRequest,
|
|
20
|
+
incomingMessageToWebRequest,
|
|
20
21
|
sendError
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WL4AX5FI.js";
|
|
22
23
|
import {
|
|
23
24
|
findSuggestion
|
|
24
25
|
} from "./chunk-5QW7IQQU.js";
|
|
@@ -1761,34 +1762,6 @@ function isMcpExposed(mod) {
|
|
|
1761
1762
|
}
|
|
1762
1763
|
|
|
1763
1764
|
// src/server/http/node-web-adapter.ts
|
|
1764
|
-
import { Readable } from "stream";
|
|
1765
|
-
function incomingMessageToWebRequest(req) {
|
|
1766
|
-
const host = pickHeaderString(req.headers.host) ?? "localhost";
|
|
1767
|
-
const url = `http://${host}${req.url ?? "/"}`;
|
|
1768
|
-
const headers = new Headers();
|
|
1769
|
-
for (const [key, value] of Object.entries(req.headers)) {
|
|
1770
|
-
if (value === void 0) continue;
|
|
1771
|
-
if (Array.isArray(value)) {
|
|
1772
|
-
headers.set(key, value.join(", "));
|
|
1773
|
-
} else {
|
|
1774
|
-
headers.set(key, value);
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1777
|
-
const method = (req.method ?? "GET").toUpperCase();
|
|
1778
|
-
const hasBody = method !== "GET" && method !== "HEAD";
|
|
1779
|
-
if (!hasBody) {
|
|
1780
|
-
return new Request(url, { method, headers });
|
|
1781
|
-
}
|
|
1782
|
-
const webStream = Readable.toWeb(req);
|
|
1783
|
-
return new Request(url, {
|
|
1784
|
-
method,
|
|
1785
|
-
headers,
|
|
1786
|
-
body: webStream,
|
|
1787
|
-
// EC-2: Node 18+ requires `duplex: 'half'` when body is a stream.
|
|
1788
|
-
// The `RequestInit` type omits it (Web spec gap); cast accordingly.
|
|
1789
|
-
...{ duplex: "half" }
|
|
1790
|
-
});
|
|
1791
|
-
}
|
|
1792
1765
|
async function writeWebResponseToServerResponse(response, res) {
|
|
1793
1766
|
const setCookies = response.headers.getSetCookie();
|
|
1794
1767
|
if (setCookies.length > 0) {
|
|
@@ -1816,13 +1789,6 @@ async function writeWebResponseToServerResponse(response, res) {
|
|
|
1816
1789
|
reader.releaseLock();
|
|
1817
1790
|
}
|
|
1818
1791
|
}
|
|
1819
|
-
function pickHeaderString(value) {
|
|
1820
|
-
if (typeof value === "string") return value;
|
|
1821
|
-
if (Array.isArray(value)) {
|
|
1822
|
-
for (const v of value) if (typeof v === "string" && v.length > 0) return v;
|
|
1823
|
-
}
|
|
1824
|
-
return void 0;
|
|
1825
|
-
}
|
|
1826
1792
|
|
|
1827
1793
|
// src/vite-plugin/agent-middleware.ts
|
|
1828
1794
|
var PREFIX2 = "/api/agents/";
|
|
@@ -3344,19 +3310,19 @@ async function theoPluginAsync(rootOrOptions) {
|
|
|
3344
3310
|
})
|
|
3345
3311
|
);
|
|
3346
3312
|
}
|
|
3347
|
-
const { appTypedClientPlugin } = await import("./app-typed-client-
|
|
3313
|
+
const { appTypedClientPlugin } = await import("./app-typed-client-ESMMLPYK.js");
|
|
3348
3314
|
const appClientPlugin = appTypedClientPlugin({
|
|
3349
3315
|
cwd: projectRoot,
|
|
3350
3316
|
serverDir: serverDirAbs,
|
|
3351
3317
|
distDir: resolve9(projectRoot, ".theokit")
|
|
3352
3318
|
});
|
|
3353
|
-
const { actionsVirtualModule } = await import("./actions-virtual-module-
|
|
3319
|
+
const { actionsVirtualModule } = await import("./actions-virtual-module-SYGQE6JQ.js");
|
|
3354
3320
|
const actionsPlugin = actionsVirtualModule({
|
|
3355
3321
|
serverDir: serverDirAbs,
|
|
3356
3322
|
distDir: resolve9(projectRoot, ".theokit")
|
|
3357
3323
|
});
|
|
3358
3324
|
const { agentsTypedClientPlugin } = await import("./agents-typed-client-MAAILRI6.js");
|
|
3359
|
-
const { generateManifest } = await import("./internal-api-
|
|
3325
|
+
const { generateManifest } = await import("./internal-api-4IXBITVV.js");
|
|
3360
3326
|
const agentsClientPlugin = agentsTypedClientPlugin({
|
|
3361
3327
|
projectRoot,
|
|
3362
3328
|
agentsDir: agentsDirName,
|
|
@@ -3539,4 +3505,4 @@ export {
|
|
|
3539
3505
|
theoPluginAsync,
|
|
3540
3506
|
theoPlugin
|
|
3541
3507
|
};
|
|
3542
|
-
//# sourceMappingURL=chunk-
|
|
3508
|
+
//# sourceMappingURL=chunk-MNQC5XEJ.js.map
|