theokit 0.58.1 → 0.59.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/{chunk-BZF76LFM.js → chunk-DVUJLMTF.js} +1 -1
- package/dist/{chunk-BZF76LFM.js.map → chunk-DVUJLMTF.js.map} +1 -1
- package/dist/{chunk-KHBSMLYU.js → chunk-EQCSUC65.js} +2 -2
- package/dist/{chunk-PELXWPDF.js → chunk-IJER2SYS.js} +2 -2
- package/dist/{define-agent-tool-CizaYZwU.d.ts → define-agent-tool-aYYLpMeo.d.ts} +8 -3
- 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/package.json +4 -4
- /package/dist/{chunk-KHBSMLYU.js.map → chunk-EQCSUC65.js.map} +0 -0
- /package/dist/{chunk-PELXWPDF.js.map → chunk-IJER2SYS.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/server/define/define-agent-tool.ts"],"mappings":";AAAA,SAAS,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/server/define/define-agent-tool.ts"],"mappings":";AAAA,SAAS,SAAS;AAsIlB,SAAS,cAAc,UAAkB,QAAyB;AAChE,MAAI,OAAO,WAAW,SAAU,QAAO;AAOvC,MAAI,WAAW,UAAa,OAAO,WAAW,cAAc,OAAO,WAAW,UAAU;AACtF,UAAM,IAAI;AAAA,MACR,mBAAmB,KAAK,UAAU,QAAQ,CAAC,qGAAgG,OAAO,MAAM;AAAA,IAC1J;AAAA,EACF;AAEA,MAAI;AACF,WAAO,KAAK,UAAU,MAAM;AAAA,EAC9B,SAAS,OAAO;AAEd,UAAM,IAAI;AAAA,MACR,mBAAmB,KAAK,UAAU,QAAQ,CAAC,gEAAgE,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK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;AAAA,IACxC;AAAA;AAAA,IAEA,GAAI,KAAK,cAAc,SAAY,EAAE,WAAW,KAAK,UAA2B,IAAI,CAAC;AAAA,EACvF;AACF;AAMO,SAAS,eACd,MACA,QACA,QACS;AACT,QAAM,KAAK,KAAK,YAAY,MAAM;AAClC,SAAO,KAAK,GAAG,MAAM,IAAI;AAC3B;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-D4VP2QPR.js";
|
|
4
4
|
import {
|
|
5
5
|
defineAgentTool
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DVUJLMTF.js";
|
|
7
7
|
|
|
8
8
|
// src/server/define/define-route.ts
|
|
9
9
|
function defineRoute(config) {
|
|
@@ -232,4 +232,4 @@ export {
|
|
|
232
232
|
defineChannel,
|
|
233
233
|
defineWebChannel
|
|
234
234
|
};
|
|
235
|
-
//# sourceMappingURL=chunk-
|
|
235
|
+
//# sourceMappingURL=chunk-EQCSUC65.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineAgentTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DVUJLMTF.js";
|
|
4
4
|
import {
|
|
5
5
|
handleMcpJsonRpc
|
|
6
6
|
} from "./chunk-YOIVCCZT.js";
|
|
@@ -289,4 +289,4 @@ export {
|
|
|
289
289
|
streamAgentTurnInProcess,
|
|
290
290
|
InProcessApprovalRequiredError
|
|
291
291
|
};
|
|
292
|
-
//# sourceMappingURL=chunk-
|
|
292
|
+
//# sourceMappingURL=chunk-IJER2SYS.js.map
|
|
@@ -68,9 +68,14 @@ interface ToolTransform<R = unknown> {
|
|
|
68
68
|
transcript?: (result: R) => unknown;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* Spec accepted by
|
|
72
|
-
*
|
|
73
|
-
*
|
|
71
|
+
* Spec accepted by the `tool()` builder. `inputSchema` is a Zod schema rooted in `z.object(...)`;
|
|
72
|
+
* the `handler` argument type is inferred via `z.infer<T>`.
|
|
73
|
+
*
|
|
74
|
+
* This said "a Zod 3 schema", which was wrong in a `@public` doc that ships in the published
|
|
75
|
+
* `.d.ts`: this package declares `peerDependencies: { zod: ^4.0.0 }`, and `isZodObject` below reads
|
|
76
|
+
* BOTH majors' internals on purpose (`def.type === 'object'` and `_def.typeName === 'ZodObject'`).
|
|
77
|
+
* Naming a major here dated the sentence and contradicted the manifest; the schema shape is what
|
|
78
|
+
* matters and it is the same in both.
|
|
74
79
|
*
|
|
75
80
|
* @public
|
|
76
81
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CustomTool } from '../../define-agent-tool-
|
|
2
|
+
import { C as CustomTool } from '../../define-agent-tool-aYYLpMeo.js';
|
|
3
3
|
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';
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
parseChannelPath,
|
|
13
13
|
serveMcpStdio,
|
|
14
14
|
streamAgentTurnInProcess
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-IJER2SYS.js";
|
|
16
|
+
import "../../chunk-DVUJLMTF.js";
|
|
17
17
|
import {
|
|
18
18
|
buildResourceDescriptors,
|
|
19
19
|
defineAppResource,
|
|
@@ -2,8 +2,8 @@ import { R as RouteConfig } from '../../route-config-Cm_ZMA1C.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { W as WebSocketHandler, b as WebSocketLike } from '../../define-websocket-DzPn1sR6.js';
|
|
4
4
|
export { a as WebSocketHandlerWeb } from '../../define-websocket-DzPn1sR6.js';
|
|
5
|
-
import { b as ToolTransform, C as CustomTool } from '../../define-agent-tool-
|
|
6
|
-
export { D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, c as applyTransform } from '../../define-agent-tool-
|
|
5
|
+
import { b as ToolTransform, C as CustomTool } from '../../define-agent-tool-aYYLpMeo.js';
|
|
6
|
+
export { D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, c as applyTransform } from '../../define-agent-tool-aYYLpMeo.js';
|
|
7
7
|
import { R as RoutePolicy } from '../../route-policy-BxOycCDq.js';
|
|
8
8
|
export { A as AccessDecision, b as RoutePolicyInput, a as RouteSubject, e as evaluateRoutePolicy, r as requireOwner, s as subjectFromContext } from '../../route-policy-BxOycCDq.js';
|
|
9
9
|
import { c as OnRequestHook, f as PreHandlerHook, d as OnResponseHook, O as OnErrorHook, T as TheoPlugin } from '../../plugin-types-BUVfUQ0V.js';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tool,
|
|
9
9
|
uiMessageStreamResponse,
|
|
10
10
|
websocket
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-EQCSUC65.js";
|
|
12
12
|
import "../../chunk-D4VP2QPR.js";
|
|
13
13
|
import {
|
|
14
14
|
evaluateRoutePolicy,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "../../chunk-GAPBPRPP.js";
|
|
25
25
|
import {
|
|
26
26
|
applyTransform
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-DVUJLMTF.js";
|
|
28
28
|
import "../../chunk-XTHN6JBX.js";
|
|
29
29
|
export {
|
|
30
30
|
HEALTH_PATH,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RouteConfig } from '../route-config-Cm_ZMA1C.js';
|
|
2
2
|
export { ActionAccept, ActionBuilder, ActionConfig, ChannelHandler, MiddlewareBuilder, MiddlewareHandler, PluginBuilder, RouteBuilder, ToolBuilder, WebChannelHandler, WebSocketBuilder, action, defineChannel, defineWebChannel, middleware, plugin, route, tool, uiMessageStreamResponse, websocket } from './define/index.js';
|
|
3
3
|
export { W as WebSocketHandler, a as WebSocketHandlerWeb, b as WebSocketLike } from '../define-websocket-DzPn1sR6.js';
|
|
4
|
-
export { C as CustomTool, D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, b as ToolTransform, c as applyTransform } from '../define-agent-tool-
|
|
4
|
+
export { C as CustomTool, D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, b as ToolTransform, c as applyTransform } from '../define-agent-tool-aYYLpMeo.js';
|
|
5
5
|
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-BxOycCDq.js';
|
|
6
6
|
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-C0hk64_U.js';
|
|
7
7
|
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 MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, o as ProcedureInput, p as ProcedureInputError, q as ProcedureOutputError, R as RawRouteInput, r as RouteInputChannel, s as RouteInputSchemas, t as RouteInputValidation, S as STRIPPED_HEADERS, u as SendErrorInput, v as SendErrorOptions, T as TRACE_HEADER, w as TRACE_PARENT_HEADER, x as TheoError, y as TheoTransformer, U as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, z as appendCookieToHeaders, A as appendDeleteCookieToHeaders, D as callProcedure, G as createCorsHandler, I as createCorsWebHandler, J as createOpenApiHandler, K as createServerContext, L as deleteCookie, Q as envelopeCodeToStatus, V as executeAction, X as executeRoute, Y as executeWebRequest, Z as extractTraceId, $ as extractTraceIdFromRequest, a0 as extractW3CTraceContext, a1 as fromUnknown, a2 as getCookie, a3 as getCookieFromRequest, a4 as handleBatchRequest, a5 as handleRequestError, a6 as handleWebRequestError, a7 as jsonTransformer, a8 as loadCustomErrorPages, a9 as matchesOrigin, aa as parseCookieHeader, ab as parseRequestBody, ac as parseTraceparent, ad as parseTraceparentContext, ae as resolveTransformer, af as runMiddlewareAndContext, ag as sendError, ah as sendJson, ai as serializeCookie, aj as serveStaticFile, ak as serverErrorToEnvelope, al as setCookie, am as superjsonTransformer, an as validateRouteInput } from '../index-ADEV6pen.js';
|
package/dist/server/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
tool,
|
|
33
33
|
uiMessageStreamResponse,
|
|
34
34
|
websocket
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-EQCSUC65.js";
|
|
36
36
|
import {
|
|
37
37
|
MAX_ERROR_HTML_BYTES,
|
|
38
38
|
ProcedureInputError,
|
|
@@ -244,10 +244,10 @@ import {
|
|
|
244
244
|
parseChannelPath,
|
|
245
245
|
serveMcpStdio,
|
|
246
246
|
streamAgentTurnInProcess
|
|
247
|
-
} from "../chunk-
|
|
247
|
+
} from "../chunk-IJER2SYS.js";
|
|
248
248
|
import {
|
|
249
249
|
applyTransform
|
|
250
|
-
} from "../chunk-
|
|
250
|
+
} from "../chunk-DVUJLMTF.js";
|
|
251
251
|
import {
|
|
252
252
|
buildResourceDescriptors,
|
|
253
253
|
defineAppResource,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "theokit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "The TheoKit web framework — file-based routing, typed server surfaces, the Vite plugin, the CLI and the deploy adapters, around agents served from agents/*.ts.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
"typescript": "^5.9.3",
|
|
151
151
|
"vite": "^7.0.0",
|
|
152
152
|
"@theokit/agents": "^12.1.0",
|
|
153
|
-
"@theokit/
|
|
154
|
-
"@theokit/
|
|
153
|
+
"@theokit/presenter": "^0.8.0",
|
|
154
|
+
"@theokit/http": "^1.1.2"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
157
|
"@theokit/sdk": "^4.52.1",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"db0": "^0.3.0",
|
|
161
161
|
"react": "^19.0.0",
|
|
162
162
|
"react-dom": "^19.0.0",
|
|
163
|
-
"react-router": "^7.0.0",
|
|
163
|
+
"react-router": "^7.0.0 || ^8.0.0",
|
|
164
164
|
"unstorage": "^1.10.0",
|
|
165
165
|
"ws": "^8.20.1",
|
|
166
166
|
"zod": "^4.0.0"
|
|
File without changes
|
|
File without changes
|