deepspace 0.28.2 → 0.29.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/CHANGELOG.md +24 -0
- package/dist/{chunk-DMUR67NG.js → chunk-DWSZYN73.js} +2 -2
- package/dist/{chunk-DMUR67NG.js.map → chunk-DWSZYN73.js.map} +1 -1
- package/dist/cli.js +110 -56
- package/dist/cli.js.map +1 -1
- package/dist/documentation-client-core.js +1 -1
- package/dist/documentation-default-renderer.cjs +1 -1
- package/dist/documentation-react.js +1 -1
- package/dist/documentation-runtime.js +1 -1
- package/dist/documentation-server-core.js +1 -1
- package/dist/documentation.js +1 -1
- package/dist/documentation.js.map +1 -1
- package/dist/index.d.ts +56 -67
- package/dist/index.js +97 -129
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.js +113 -30
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +72 -90
- package/dist/worker.js +157 -135
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/worker.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Y from 'yjs';
|
|
2
2
|
import { LanguageModel, ToolSet, StreamTextResult, streamText, ModelMessage } from 'ai';
|
|
3
|
-
import { Hono } from 'hono';
|
|
3
|
+
import { Hono, Context, ErrorHandler } from 'hono';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
import * as better_auth_plugins from 'better-auth/plugins';
|
|
@@ -1308,7 +1308,6 @@ declare class RecordRoom<E = Record<string, unknown>> extends BaseRoom<E> {
|
|
|
1308
1308
|
protected onMessage(): void;
|
|
1309
1309
|
webSocketMessage(ws: WebSocket, message: ArrayBuffer | string): Promise<void>;
|
|
1310
1310
|
webSocketClose(ws: WebSocket, code: number, reason: string): Promise<void>;
|
|
1311
|
-
webSocketError(_ws: WebSocket, error: unknown): Promise<void>;
|
|
1312
1311
|
private handleRecordMessage;
|
|
1313
1312
|
private handleListSchemas;
|
|
1314
1313
|
private createHandlerContext;
|
|
@@ -5170,77 +5169,6 @@ type DeepSpaceAuth = ReturnType<typeof createDeepSpaceAuth>;
|
|
|
5170
5169
|
/** Collections that bypass schema checks (permissive access) */
|
|
5171
5170
|
declare const SYSTEM_COLLECTIONS: Set<string>;
|
|
5172
5171
|
|
|
5173
|
-
/**
|
|
5174
|
-
* Client-error ingestion route (opt-in) — the Worker half of client-side
|
|
5175
|
-
* error reporting.
|
|
5176
|
-
*
|
|
5177
|
-
* Mount it in your app Worker with a single line:
|
|
5178
|
-
*
|
|
5179
|
-
* import { registerClientErrorRoute } from 'deepspace/worker'
|
|
5180
|
-
* registerClientErrorRoute(app) // BEFORE the app.all('/_deepspace/*') proxy
|
|
5181
|
-
*
|
|
5182
|
-
* Then, in the browser, `installClientErrorReporter()` (from 'deepspace')
|
|
5183
|
-
* forwards uncaught errors here. The handler runs in the app's OWN Worker, so
|
|
5184
|
-
* the `console.error` it emits is tagged by Cloudflare with this app's id —
|
|
5185
|
-
* meaning a browser can only ever write to its own app's log stream, never
|
|
5186
|
-
* another tenant's or the platform's. Reports then surface in `deepspace logs`
|
|
5187
|
-
* (and the dashboard) tagged `CLIENT`.
|
|
5188
|
-
*
|
|
5189
|
-
* Anonymous by design (logged-out visitors hit client errors too), so the
|
|
5190
|
-
* defenses are size caps (normalizeClientErrorReport) + a best-effort
|
|
5191
|
-
* per-isolate throttle. It never blocks the page: it returns 204 and swallows
|
|
5192
|
-
* work quickly.
|
|
5193
|
-
*/
|
|
5194
|
-
|
|
5195
|
-
/**
|
|
5196
|
-
* Handle one client-error report. Framework-agnostic — pass a raw `Request`.
|
|
5197
|
-
* Returns 204 on success, 400 on a malformed/empty body, 429 when throttled.
|
|
5198
|
-
*/
|
|
5199
|
-
declare function handleClientErrorReport(request: Request): Promise<Response>;
|
|
5200
|
-
/**
|
|
5201
|
-
* Register `POST /_deepspace/client-errors` on your Hono app. Mount it BEFORE
|
|
5202
|
-
* the `app.all('/_deepspace/*')` proxy so the specific route wins the match.
|
|
5203
|
-
*/
|
|
5204
|
-
declare function registerClientErrorRoute(app: Hono<any, any, any>): void;
|
|
5205
|
-
|
|
5206
|
-
/**
|
|
5207
|
-
* Client-side error reporting — shared contract.
|
|
5208
|
-
*
|
|
5209
|
-
* Browser JS errors never invoke the app's Worker, so they never reach
|
|
5210
|
-
* Workers Logs and are invisible to `deepspace logs`. The opt-in reporter
|
|
5211
|
-
* (`installClientErrorReporter`, client entry) forwards them to the app's own
|
|
5212
|
-
* Worker via `registerClientErrorRoute` (worker entry), which `console.error`s
|
|
5213
|
-
* a marker-prefixed envelope. The platform log reader recognises the marker
|
|
5214
|
-
* and tags the event `source: 'client'`.
|
|
5215
|
-
*
|
|
5216
|
-
* This module is isomorphic — no DOM, no Hono — so both halves import the
|
|
5217
|
-
* exact same marker, caps, and normaliser and can never drift.
|
|
5218
|
-
*/
|
|
5219
|
-
/**
|
|
5220
|
-
* Prefix the Worker route prepends before JSON-stringifying a report into a
|
|
5221
|
-
* single `console.error` line. The platform mapper
|
|
5222
|
-
* (platform/deploy-worker/src/lib/workers-logs.ts) detects this prefix to set
|
|
5223
|
-
* `source: 'client'`. Deliberately distinctive so an ordinary app log is
|
|
5224
|
-
* vanishingly unlikely to collide. The marker is added SERVER-SIDE by the app
|
|
5225
|
-
* Worker — a browser cannot forge it onto a genuine server log.
|
|
5226
|
-
*
|
|
5227
|
-
* The platform copy is kept in sync by a drift test; if you change this
|
|
5228
|
-
* string, that test fails until the platform const matches.
|
|
5229
|
-
*/
|
|
5230
|
-
declare const CLIENT_LOG_MARKER = "[deepspace:client-error]";
|
|
5231
|
-
type ClientErrorKind = 'error' | 'unhandledrejection' | 'react';
|
|
5232
|
-
/** A sanitized, capped browser-error report — the wire + log-line payload. */
|
|
5233
|
-
interface ClientErrorReport {
|
|
5234
|
-
kind: ClientErrorKind;
|
|
5235
|
-
message: string;
|
|
5236
|
-
name?: string;
|
|
5237
|
-
stack?: string;
|
|
5238
|
-
/** Page URL where it fired (href or the script filename). */
|
|
5239
|
-
url?: string;
|
|
5240
|
-
line?: number;
|
|
5241
|
-
col?: number;
|
|
5242
|
-
}
|
|
5243
|
-
|
|
5244
5172
|
/** Wire-size limits shared by the app Worker and the stateless CLI bridge. */
|
|
5245
5173
|
/** Maximum JSON body accepted by one tool invocation. */
|
|
5246
5174
|
declare const AGENT_TOOL_REQUEST_BODY_CAP: number;
|
|
@@ -5321,7 +5249,8 @@ declare const SESSION_COOKIE = "__Secure-better-auth.session_token";
|
|
|
5321
5249
|
|
|
5322
5250
|
/**
|
|
5323
5251
|
* `deepspace logs` wire DTO — the single source of truth for the whitelisted
|
|
5324
|
-
* shape the platform telemetry reader emits and every consumer reads
|
|
5252
|
+
* shape the platform telemetry reader emits and every consumer reads, plus
|
|
5253
|
+
* the one plain-text rendering of it (`logEventText`).
|
|
5325
5254
|
*
|
|
5326
5255
|
* The producer is `platform/deploy-worker/src/lib/workers-logs.ts` (which
|
|
5327
5256
|
* rebuilds each event field-by-field from a raw Cloudflare row — see the
|
|
@@ -5329,8 +5258,9 @@ declare const SESSION_COOKIE = "__Secure-better-auth.session_token";
|
|
|
5329
5258
|
* (`cli/commands/logs.ts`), the dashboard Logs panel
|
|
5330
5259
|
* (`apps/dashboard/src/lib/apps.ts`), and the e2e whitelist assertion
|
|
5331
5260
|
* (`tests/e2e/tests/logs.spec.ts`). This module used to be hand-mirrored in
|
|
5332
|
-
* all four places
|
|
5333
|
-
*
|
|
5261
|
+
* all four places, and the copies drifted for real: a field addition (the
|
|
5262
|
+
* since-removed `source`) landed in three of them and missed the e2e
|
|
5263
|
+
* whitelist. It now lives here once and they import it.
|
|
5334
5264
|
*
|
|
5335
5265
|
* Isomorphic — no DOM, no Hono, no platform types — so it re-exports cleanly
|
|
5336
5266
|
* from both `deepspace` (client) and `deepspace/worker` and is safe to import
|
|
@@ -5347,13 +5277,6 @@ interface AppLogEvent {
|
|
|
5347
5277
|
level: LogLevel;
|
|
5348
5278
|
eventType: 'log' | 'request' | 'exception' | 'other';
|
|
5349
5279
|
message: string;
|
|
5350
|
-
/**
|
|
5351
|
-
* Present (= `'client'`) only for a browser-forwarded error the app's own
|
|
5352
|
-
* Worker re-logged via `registerClientErrorRoute`. Absent means the log was
|
|
5353
|
-
* emitted server-side — there is no explicit `'server'` value, so consumers
|
|
5354
|
-
* branch on `source === 'client'`, never on a truthy/other check.
|
|
5355
|
-
*/
|
|
5356
|
-
source?: 'client';
|
|
5357
5280
|
/**
|
|
5358
5281
|
* The runtime's verdict on the invocation (`ok`, `exception`, `exceededCpu`,
|
|
5359
5282
|
* `canceled`, …) — present on `request` and other invocation-summary events
|
|
@@ -5370,11 +5293,11 @@ interface AppLogEvent {
|
|
|
5370
5293
|
status?: number;
|
|
5371
5294
|
};
|
|
5372
5295
|
/**
|
|
5373
|
-
* The exception that ESCAPED the Worker (`eventType: 'exception'`)
|
|
5374
|
-
*
|
|
5375
|
-
*
|
|
5376
|
-
*
|
|
5377
|
-
* message
|
|
5296
|
+
* The exception that ESCAPED the Worker (`eventType: 'exception'`). An
|
|
5297
|
+
* error the app catches and `console.error`s is a plain `log` line — and
|
|
5298
|
+
* the Workers runtime renders a logged Error OBJECT as its stack frames
|
|
5299
|
+
* without the message, so render it through `loggableError(err)` (below):
|
|
5300
|
+
* message first, bounded cause chain, capped at the reader's budget.
|
|
5378
5301
|
*/
|
|
5379
5302
|
exception?: {
|
|
5380
5303
|
name: string;
|
|
@@ -5404,7 +5327,66 @@ interface AppLogsResponse {
|
|
|
5404
5327
|
* (deploy-worker/CLI/dashboard, which import it), while the e2e mirror remains a
|
|
5405
5328
|
* knowingly-accepted duplicate.
|
|
5406
5329
|
*/
|
|
5407
|
-
declare const APP_LOG_EVENT_KEYS: readonly ["id", "timestamp", "level", "eventType", "message", "
|
|
5330
|
+
declare const APP_LOG_EVENT_KEYS: readonly ["id", "timestamp", "level", "eventType", "message", "outcome", "request", "exception"];
|
|
5408
5331
|
type AppLogEventKey = (typeof APP_LOG_EVENT_KEYS)[number];
|
|
5332
|
+
/**
|
|
5333
|
+
* One event → its plain-text body: what the event *says*, with no colors,
|
|
5334
|
+
* tags, timestamps, or stack frames — those belong to each renderer. Shared
|
|
5335
|
+
* by the CLI line formatter and the dashboard rows (which also use it as the
|
|
5336
|
+
* search corpus), so "does this event mention X" means the same thing in
|
|
5337
|
+
* both.
|
|
5338
|
+
*/
|
|
5339
|
+
declare function logEventText(e: AppLogEvent): string;
|
|
5340
|
+
/**
|
|
5341
|
+
* An error as a string that survives Workers Logs ingestion. The telemetry
|
|
5342
|
+
* pipeline serializes a logged Error OBJECT down to its stack FRAMES — the
|
|
5343
|
+
* `Error: <message>` first line is dropped (observed 2026-08; Hono's default
|
|
5344
|
+
* handler does exactly `console.error(err)`, which is why an uncaught route
|
|
5345
|
+
* error showed up in `deepspace logs` as bare frames). A STRING passes
|
|
5346
|
+
* through verbatim. V8 stacks already open with `Error: <message>` (prefix
|
|
5347
|
+
* test, not substring); frames-only stacks get the header prepended; a
|
|
5348
|
+
* missing stack degrades to the header alone. `cause` chains and
|
|
5349
|
+
* `AggregateError.errors` are walked (bounded, cycle-safe) because the only
|
|
5350
|
+
* actionable text of the most common Workers error — `TypeError: fetch
|
|
5351
|
+
* failed` — lives there. Rendering is budgeted at every step: pieces are
|
|
5352
|
+
* sliced and the walk stops once MAX_LOG_TEXT_LENGTH is reached (error text
|
|
5353
|
+
* is often request-derived, and unbounded intermediates measured >100 MB on
|
|
5354
|
+
* hostile chains), and the final string never exceeds the budget the reader
|
|
5355
|
+
* truncates at (a call-site prefix can still push a full-budget line past
|
|
5356
|
+
* it — the reader re-cuts with the same `truncateLogText`). Never throws: a
|
|
5357
|
+
* hostile NODE (throwing getters, revoked Proxies, null-prototype
|
|
5358
|
+
* throwables) degrades to a tag IN PLACE so the rest of the render — the
|
|
5359
|
+
* part with the actionable message — survives. So:
|
|
5360
|
+
* `console.error(loggableError(err))`, never `console.error(err)`.
|
|
5361
|
+
*/
|
|
5362
|
+
declare function loggableError(err: unknown): string;
|
|
5363
|
+
/**
|
|
5364
|
+
* Cut a string to `MAX_LOG_TEXT_LENGTH` INCLUDING the truncation marker —
|
|
5365
|
+
* the one truncation for log text, shared by the write side (`loggableError`)
|
|
5366
|
+
* and the read side (the deploy-worker reader's per-field cap), so the two
|
|
5367
|
+
* cannot drift. Steps back off a high surrogate so the cut never leaves a
|
|
5368
|
+
* lone half of a surrogate pair in the log line.
|
|
5369
|
+
*/
|
|
5370
|
+
declare function truncateLogText(s: string): string;
|
|
5371
|
+
/** The one write-side budget for rendered error text, matching the reader's
|
|
5372
|
+
* per-field cap (the deploy-worker's log reader imports this so the two
|
|
5373
|
+
* sides cannot drift). The rendered string INCLUDING any truncation marker
|
|
5374
|
+
* stays within it. */
|
|
5375
|
+
declare const MAX_LOG_TEXT_LENGTH: number;
|
|
5376
|
+
|
|
5377
|
+
/**
|
|
5378
|
+
* The one `app.onError` for every Hono worker (the scaffolded app template
|
|
5379
|
+
* and the platform workers alike). It exists because Hono's default handler
|
|
5380
|
+
* is `console.error(err)` — and Workers Logs keeps only a logged Error
|
|
5381
|
+
* OBJECT's stack frames, dropping the message (see `loggableError`) — so an
|
|
5382
|
+
* uncaught route error surfaced in `deepspace logs` as bare frames.
|
|
5383
|
+
*
|
|
5384
|
+
* A response-bearing error (`HTTPException` — auth 401s, upload 413s) keeps
|
|
5385
|
+
* its own answer, exactly as Hono's default would; everything else is logged
|
|
5386
|
+
* as ONE string — `[prefix] METHOD /path: message, frames, bounded cause
|
|
5387
|
+
* chain` — and answered by `respond` (a plain-text 500 unless the worker's
|
|
5388
|
+
* API contract needs another shape).
|
|
5389
|
+
*/
|
|
5390
|
+
declare function workerErrorHandler(prefix: string, respond?: (c: Context) => Response): ErrorHandler;
|
|
5409
5391
|
|
|
5410
|
-
export { ACCOUNT_STORAGE_LIMIT_BYTES, ACTION_ROUTES_BEARER_GUARD_MIGRATION_ID, ACTION_TOOLS_DELETE_WHERE_MIGRATION_ID, AGENT_TOKEN_SCOPE, AGENT_TOOL_REQUEST_BODY_CAP, AGENT_TOOL_RESPONSE_BODY_CAP, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, ANONYMOUS_USER_ID_PREFIX, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, ASSET_NOT_FOUND_HANDLING_VALUES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type AgentTargetPolicy, type AgentToolAccessResult, type AgentToolRouteEnv, type AgentToolRouteOptions, type ApiWorkerEnv, type AppLogEvent, type AppLogEventKey, type AppLogsResponse, type AppMembership, type AppMigrationIdsValidation, type AppNameResolution, type AppNameValidation, type AssetNotFoundHandling, type AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BROWSER_PROXY_ROUTES, BUILD_INJECTED_APP_ID_MIGRATION_ID, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, type BindingJsonValue, CHANNELS_SCHEMA, CHANNEL_MEMBERS_SCHEMA,
|
|
5392
|
+
export { ACCOUNT_STORAGE_LIMIT_BYTES, ACTION_ROUTES_BEARER_GUARD_MIGRATION_ID, ACTION_TOOLS_DELETE_WHERE_MIGRATION_ID, AGENT_TOKEN_SCOPE, AGENT_TOOL_REQUEST_BODY_CAP, AGENT_TOOL_RESPONSE_BODY_CAP, AI_CHATS_SCHEMA, AI_MESSAGES_SCHEMA, ALLOWED_BINDING_TYPES, ANONYMOUS_USER_ID_PREFIX, APP_ID_RE, APP_LOG_EVENT_KEYS, APP_NAME_RULES, ASSET_NOT_FOUND_HANDLING_VALUES, AUTO_PROVISIONABLE_TYPES, AUTO_PROVISION_SENTINEL, type ActionContext, type ActionHandler, type ActionResult, type ActionTools, type AgentTargetPolicy, type AgentToolAccessResult, type AgentToolRouteEnv, type AgentToolRouteOptions, type ApiWorkerEnv, type AppLogEvent, type AppLogEventKey, type AppLogsResponse, type AppMembership, type AppMigrationIdsValidation, type AppNameResolution, type AppNameValidation, type AssetNotFoundHandling, type AuthWorkerEnv, Awareness, type AwarenessState, type AwarenessStates, BASE_USERS_SCHEMA, BROWSER_PROXY_ROUTES, BUILD_INJECTED_APP_ID_MIGRATION_ID, BUILT_IN_TOOLS, type BaseMessage, BaseRoom, type BindingJsonValue, CHANNELS_SCHEMA, CHANNEL_MEMBERS_SCHEMA, COST_RATES, CanvasRoom, type CanvasShape, type ChatContextConfig, type ChatMessageRow, type ChatRow, type ChatTurn, type ClientMessage, type CollectionSchema, type ColumnDefinition, type ColumnInterpretation, type ComposioToolsOptions, type ConnectionAttachment, type CronContext, type CronExecution, CronRoom, type CronRoomConfig, type CronTask, type CustomBinding, type CustomBindingManifest, DEEPSPACE_AGENT_PROFILES, DEEPSPACE_AI_DEFAULTS, DEEPSPACE_AI_MODELS, DEEPSPACE_MODEL_CATALOG_PROVENANCE, DEFAULT_CONTEXT_CONFIG, DEFAULT_DELETE_WHERE_LIMIT, DEFAULT_DO_MANIFEST, DEFAULT_QUERY_LIMIT, DEPLOYED_APPS_DEFAULTS, type DOBindings, type DOManifest, type DOManifestEntry, type DeepSpaceAIEnv, type DeepSpaceAIModel, type DeepSpaceAIModelId, type DeepSpaceAIOptions, type DeepSpaceAIProvider, type DeepSpaceAgentDiagnosticContext, DeepSpaceAgentModelError, type DeepSpaceAgentProfile, DeepSpaceAgentProfileError, type DeepSpaceAgentProfileId, type DeepSpaceAgentStream, type DeepSpaceAgentStreamOptions, type DeepSpaceAgentSupport, type DeepSpaceAuth, type DeepSpaceAuthConfig, type DeepSpaceDocumentationRouteEnv, type DeepSpaceDocumentationRouteOptions, type DoMigrationDirective, type DoMigrationPlan, type ExistingDOBinding, type GetActionData, type HandlerContext, type Job, type JobContext, JobRoom, type JobRoomConfig, type JobStatus, type JwtClaims, type JwtVerifierConfig, type KnowledgeAddOptions, type KnowledgeAddResult, type KnowledgeClient, type KnowledgeEnv, KnowledgeError, type KnowledgeItem, type KnowledgeListOptions, type KnowledgeListResult, type KnowledgeSearchChunk, type KnowledgeSearchOptions, type KnowledgeSearchResult, type KnowledgeStatus, LOG_LEVELS, type LogLevel, MAX_APP_FILE_BYTES, MAX_DELETE_WHERE_LIMIT, MAX_DEPLOY_ASSET_FILE_BYTES, MAX_ENV_VAR_BYTES, MAX_LOG_TEXT_LENGTH, MAX_UPLOAD_PARTS, MAX_UPLOAD_REQUEST_BYTES, MESSAGES_SCHEMA, MSG, MSG_AWARENESS, MSG_SYNC, MSG_SYNC_STEP1, MSG_SYNC_STEP2, MSG_SYNC_UPDATE, MSG_YJS_AWARENESS, MSG_YJS_SYNC, type MessageHandlers, type MsgType, type MutateActionData, PRODUCTION_OFFICIAL_AGENT_ORIGINS, type PermissionContext, type PermissionLevel, type PlatformWorkerEnv, type PrefixResult, type PresencePeer, PresenceRoom, type ProtocolMessage, type ProxyRoute, type QueryActionData, REACTIONS_SCHEMA, READ_RECEIPTS_SCHEMA, RECORD_NOT_FOUND, REGISTRY_INSTANCE, RELEASE_STAMP_PATH, REPO_STORE_LIMIT_BYTES, REQUIRED_COMPATIBILITY_FLAGS, RESERVED_BINDING_NAMES, RESERVED_RUN_WORKER_FIRST, RESOURCE_ID_RE, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_DEFAULT, RecordRoom, type RecordRoomConfig, RegistryClientError, type ResolvedColumn, type ResolvedDeepSpaceAgentModel, type RolePermissions, type RunMigrationsResult, SDK_RUN_WORKER_FIRST, SECURE_ROOM_BOUNDARIES_MIGRATION_ID, SESSION_COOKIE, STRICT_APP_ID_RE, SYSTEM_ASSIGNED_COLUMNS, SYSTEM_COLLECTIONS, SYSTEM_MAINTAINED_COLUMNS, SYSTEM_MANAGED_COLUMNS, SchemaRegistry, type ScopeContext, type ScopedKnowledgeClient, type ScopedR2Auth, type ScopedR2Config, type ScopedR2Handler, type ScreenshotEnv, type ScreenshotResult, type ServerMessage, type StorageAdmission, type StoredRecord, type Summarizer, type SyncResult, TEST_ACCOUNT_EMAIL_SUFFIX, type TokenDebugInfo, type ToolResult, type ToolSchema, UNDECLARED_ASSET_NOT_FOUND_HANDLING, UPLOAD_PART_BYTES, USERS_COLUMNS, type User, type UserAttachment, type UserToolExecutorEnv, type ValidationError, type VerifiedAuth, type VerifyOutcome, type VerifyResult, type Viewport, WORKER_OWNED_NOT_FOUND_MIGRATION_ID, YjsRoom, agentTokenIssuer, apiWorkerFetch, appendMessage, applyAiToolDefaults, applySlidingWindow, armCronRoom, authWorkerFetch, authenticatedRoomRequest, bindingManifestFromOutputConfig, buildCronContext, buildTableSelect, buildUiParts, callRegistry, canCreate, canDelete, canRead, canUpdate, capToolResultSize, captureScreenshot, checkFieldPermissions, checkUnclaimedOwnerTransition, clientBuild, coerceValue, collectionTableName, columnId, composioTools, computeDoMigration, computeHmacHex, createChat, createDecoder, createDeepSpaceAI, createDeepSpaceAuth, createEncoder, createScopedR2Handler, createUserToolExecutor, dataToColumnValues, decodeJwtPayload, deepSpaceAgentErrorSummary, deleteChatCascade, dispatch, encode, encodeAwarenessMessage, encodeSyncStep1, encodeSyncStep2, encodeUpdate, enqueueJob, epochSeconds, folderFilter, formatBytes, getChat, getDeepSpaceAIModel, getMessageType, getRolePermissions, handleAwarenessMessage, handleSyncMessage, hasContent, isAnonymousUserId, isAssetNotFoundHandling, isAutoProvision, isFilesVerbPath, isOwner, isPlatformReservedPath, isTestAccountClaims, isTestAccountEmail, isTestAccountTier, knowledge, lintSchema, lintSchemaSet, lintSchemas, listDeepSpaceAgentModels, loadMessages, logEventText, loggableError, makeDefaultSummarizer, matchOrigin, meterAi, meterUsage, meterVectorize, mintAppId, mintUlid, noopPermissionContext, normalizeAgentTargetOrigin, normalizeKnowledgeFolder, parseQuotaLimit, platformCorsPatterns, platformWorkerFetch, prepareMessagesWithCompaction, priceBindingUsageEvent, readVarUint, readVarUint8Array, registerAgentToolRoutes, registerDeepSpaceDocumentation, registryErrorJson, registryStub, resolveAppMembership, resolveAppName, resolveAppRole, resolveColumn, resolveCompatibilityFlags, resolveDeepSpaceAgentModel, rowToData, runMigrations, serverBuild, storageLimitForTier, storageQuotaMessage, streamDeepSpaceAgent, timingSafeEqualHex, timingSafeEqualStrings, toUint8Array, totalChars, truncateLogText, truncateOldToolResults, turnsToCoreMessages, unwrapToolOutput, updateChat, validateAppMigrationIds, validateAppName, validateBindingManifest, validateDoManifest, verifyAgentToken, verifyJwt, workerErrorHandler, writeVarUint, writeVarUint8Array };
|