theokit 0.17.0 → 0.18.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/{agent-7DBAK65H.js → agent-TZ5JZUJ7.js} +2 -2
- package/dist/{build-MTI4RAI3.js → build-5PSDDMFB.js} +2 -2
- package/dist/{chunk-4FOPDXKT.js → chunk-CC5WOQUV.js} +68 -240
- package/dist/chunk-CC5WOQUV.js.map +1 -0
- package/dist/{chunk-X6COGWHN.js → chunk-DEO2VAJE.js} +96 -57
- package/dist/chunk-DEO2VAJE.js.map +1 -0
- package/dist/{chunk-4JDYVNSY.js → chunk-XVFMSNDE.js} +229 -3
- package/dist/chunk-XVFMSNDE.js.map +1 -0
- package/dist/{chunk-3FNZG6Q3.js → chunk-XWS4RZCE.js} +12 -1
- package/dist/chunk-XWS4RZCE.js.map +1 -0
- package/dist/cli/index.js +4 -4
- package/dist/{dev-SVHKR2VR.js → dev-A7NESJ7S.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/server/index.d.ts +9 -1
- package/dist/server/index.js +3 -1
- package/dist/server/index.js.map +1 -1
- package/dist/{start-SDZTFJNQ.js → start-WGOKQEUW.js} +30 -6
- package/dist/start-WGOKQEUW.js.map +1 -0
- package/dist/vite-plugin/index.js +2 -2
- package/dist/{vite-plugin-ZZYTMWZY.js → vite-plugin-DBS2USI4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3FNZG6Q3.js.map +0 -1
- package/dist/chunk-4FOPDXKT.js.map +0 -1
- package/dist/chunk-4JDYVNSY.js.map +0 -1
- package/dist/chunk-X6COGWHN.js.map +0 -1
- package/dist/start-SDZTFJNQ.js.map +0 -1
- /package/dist/{agent-7DBAK65H.js.map → agent-TZ5JZUJ7.js.map} +0 -0
- /package/dist/{build-MTI4RAI3.js.map → build-5PSDDMFB.js.map} +0 -0
- /package/dist/{dev-SVHKR2VR.js.map → dev-A7NESJ7S.js.map} +0 -0
- /package/dist/{vite-plugin-ZZYTMWZY.js.map → vite-plugin-DBS2USI4.js.map} +0 -0
package/dist/server/index.d.ts
CHANGED
|
@@ -920,6 +920,14 @@ declare function defineAppResource(input: AppResourceInput): AppResource;
|
|
|
920
920
|
declare function buildResourceDescriptors(resources: readonly AppResource[]): McpResourceDescriptor[];
|
|
921
921
|
/** Serve the HTML for `uri` as an MCP `resources/read` result, or `null` when unknown. */
|
|
922
922
|
declare function readAppResource(resources: readonly AppResource[], uri: string): McpResourceContents | null;
|
|
923
|
+
/**
|
|
924
|
+
* M30 wiring — extract the App resources an agent module declares via a named `appResources` export
|
|
925
|
+
* (`export const appResources = [defineAppResource(...)]`). Returns only the well-formed entries; a
|
|
926
|
+
* module without the export (or with a malformed one) yields `[]`. This is how per-agent `ui://`
|
|
927
|
+
* resources reach the MCP server's `resources/list` + `resources/read` without a runtime dependency
|
|
928
|
+
* from `@theokit/agents` on this theo-side type (the module exports them; the serving path reads them).
|
|
929
|
+
*/
|
|
930
|
+
declare function extractAppResources(mod: unknown): AppResource[];
|
|
923
931
|
|
|
924
932
|
interface UploadedFile {
|
|
925
933
|
fieldname: string;
|
|
@@ -1117,4 +1125,4 @@ interface LoadEnvResult {
|
|
|
1117
1125
|
declare function _resetEnvCache(): void;
|
|
1118
1126
|
declare function loadEnv(options?: LoadEnvOptions): LoadEnvResult;
|
|
1119
1127
|
|
|
1120
|
-
export { type AcpToolConfig, ActionError, type ActionErrorCode, ActionInputError, type ActionManifestEntry, type ActionResult, type AppResource, type AppResourceInput, type BodyParserOptions, DEFAULT_MAX_AGE as CACHE_DEFAULT_MAX_AGE, DEFAULT_MAX_ENTRY_SIZE as CACHE_DEFAULT_MAX_ENTRY_SIZE, DEFAULT_SWR_MULTIPLIER as CACHE_DEFAULT_SWR_MULTIPLIER, CACHE_TAG_MAX_ITEMS, CACHE_TAG_MAX_LENGTH, type CacheControlInput, type CacheEngine, type CacheEngineOptions, type CacheEntry, type CacheStatus, type CacheStorageAdapter, type CacheStore, type CacheStoreAdmin, type ValidationResult as CacheValidationResult, type CachedFunction, type CachedRouteConfig, type ChannelMessage, type ChannelWebhookConfig, type CodeModeApi, type CodeModeConfig, type CodeModePermission, CodeModePermissionDeniedError, type CompiledRouteRule, CustomTool, DEFAULT_EXCLUDED_QUERY_PARAMS, type DefineCachedFunctionOptions, FileTooLargeError, type GetOrComputeOptions, InMemoryCacheAdapter, type InMemoryCacheAdapterOptions, type KeyDerivationOptions, type LoadEnvOptions, type LoadEnvResult, type McpResourceContents, type McpResourceDescriptor, NodeAcpTransport, type NormalizedCacheConfig, type OpenApiDocsOptions, type ParsedBody, type RevalidateResult, type RouteCacheOptions, RouteConfig, type RouteRule, type RouteRules, type Sandbox, type SerializedActionResult, type SerializedResponse, THEO_T_PREFIX, type UniversalZodIssue, type UploadedFile, type VendorAgentClient, type VendorAgentToolConfig, VerifyFn, type WorkflowLike, type WorkflowToolConfig, _resetCacheEngine, _resetEnvCache, buildResourceDescriptors, compileRouteRules, createACPTool, createCacheEngine, createCodeMode, createOpenApiHandler, createVendorAgentTool, createWorkflowTool, defineAppResource, defineCachedFunction, defineCachedRoute, deriveKey as deriveCacheKey, deserializeResponse, executeWebRequest, extractUniversalIssues, getCacheControlHeader, getCacheEngine, handleChannelWebhook, initCacheEngine, isActionError, isChannelPath, isInputError, loadEnv, parseChannelPath, parseRequestBody, readAppResource, resolveRouteRule, revalidatePath, revalidateTag, serializeResponse, updateTag, validateExpire as validateCacheExpire, validateMaxAge as validateCacheMaxAge, validateTags as validateCacheTags };
|
|
1128
|
+
export { type AcpToolConfig, ActionError, type ActionErrorCode, ActionInputError, type ActionManifestEntry, type ActionResult, type AppResource, type AppResourceInput, type BodyParserOptions, DEFAULT_MAX_AGE as CACHE_DEFAULT_MAX_AGE, DEFAULT_MAX_ENTRY_SIZE as CACHE_DEFAULT_MAX_ENTRY_SIZE, DEFAULT_SWR_MULTIPLIER as CACHE_DEFAULT_SWR_MULTIPLIER, CACHE_TAG_MAX_ITEMS, CACHE_TAG_MAX_LENGTH, type CacheControlInput, type CacheEngine, type CacheEngineOptions, type CacheEntry, type CacheStatus, type CacheStorageAdapter, type CacheStore, type CacheStoreAdmin, type ValidationResult as CacheValidationResult, type CachedFunction, type CachedRouteConfig, type ChannelMessage, type ChannelWebhookConfig, type CodeModeApi, type CodeModeConfig, type CodeModePermission, CodeModePermissionDeniedError, type CompiledRouteRule, CustomTool, DEFAULT_EXCLUDED_QUERY_PARAMS, type DefineCachedFunctionOptions, FileTooLargeError, type GetOrComputeOptions, InMemoryCacheAdapter, type InMemoryCacheAdapterOptions, type KeyDerivationOptions, type LoadEnvOptions, type LoadEnvResult, type McpResourceContents, type McpResourceDescriptor, NodeAcpTransport, type NormalizedCacheConfig, type OpenApiDocsOptions, type ParsedBody, type RevalidateResult, type RouteCacheOptions, RouteConfig, type RouteRule, type RouteRules, type Sandbox, type SerializedActionResult, type SerializedResponse, THEO_T_PREFIX, type UniversalZodIssue, type UploadedFile, type VendorAgentClient, type VendorAgentToolConfig, VerifyFn, type WorkflowLike, type WorkflowToolConfig, _resetCacheEngine, _resetEnvCache, buildResourceDescriptors, compileRouteRules, createACPTool, createCacheEngine, createCodeMode, createOpenApiHandler, createVendorAgentTool, createWorkflowTool, defineAppResource, defineCachedFunction, defineCachedRoute, deriveKey as deriveCacheKey, deserializeResponse, executeWebRequest, extractAppResources, extractUniversalIssues, getCacheControlHeader, getCacheEngine, handleChannelWebhook, initCacheEngine, isActionError, isChannelPath, isInputError, loadEnv, parseChannelPath, parseRequestBody, readAppResource, resolveRouteRule, revalidatePath, revalidateTag, serializeResponse, updateTag, validateExpire as validateCacheExpire, validateMaxAge as validateCacheMaxAge, validateTags as validateCacheTags };
|
package/dist/server/index.js
CHANGED
|
@@ -53,12 +53,13 @@ import {
|
|
|
53
53
|
buildResourceDescriptors,
|
|
54
54
|
defineAppResource,
|
|
55
55
|
executeWebRequest,
|
|
56
|
+
extractAppResources,
|
|
56
57
|
jsonTransformer,
|
|
57
58
|
loadEnv,
|
|
58
59
|
readAppResource,
|
|
59
60
|
resolveTransformer,
|
|
60
61
|
superjsonTransformer
|
|
61
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-XWS4RZCE.js";
|
|
62
63
|
import {
|
|
63
64
|
findSuggestion,
|
|
64
65
|
levenshtein
|
|
@@ -1473,6 +1474,7 @@ export {
|
|
|
1473
1474
|
executeAction,
|
|
1474
1475
|
executeRoute,
|
|
1475
1476
|
executeWebRequest,
|
|
1477
|
+
extractAppResources,
|
|
1476
1478
|
extractTraceId,
|
|
1477
1479
|
extractTraceIdFromRequest,
|
|
1478
1480
|
extractUniversalIssues,
|