@crewx/sdk 0.9.0-rc.181 → 0.9.0-rc.183
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/app/app.d.ts +1 -0
- package/dist/app/index.js +8 -8
- package/dist/esm/app/index.js +7 -7
- package/dist/esm/index.js +294 -280
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/skills/index.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +296 -282
- package/dist/mcp-app/agent-access.d.ts +8 -1
- package/dist/mcp-app/index.d.ts +1 -0
- package/dist/mcp-app/view-call.d.ts +7 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +2 -1
- package/dist/publish/index.js +2 -2
- package/dist/skills/index.js +2 -2
- package/dist/ui-instance/index.d.ts +2 -2
- package/dist/ui-instance/store.d.ts +2 -1
- package/dist/ui-instance/types.d.ts +40 -0
- package/package.json +1 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import type { UiActionConfirmation } from '../ui-instance/types.js';
|
|
1
|
+
import type { UiActionConfirmation, UiDefinitionUsage, UiProjectionPolicy } from '../ui-instance/types.js';
|
|
2
2
|
import type { UiDefinition } from '../ui-instance/types.js';
|
|
3
3
|
import type { ProductAppBundleProvenance } from './discovery.js';
|
|
4
4
|
export type McpAppAgentAccess = 'allowed' | 'approval_required' | 'denied';
|
|
5
5
|
export interface McpAppAgentAccessAction {
|
|
6
6
|
readonly actionId: string;
|
|
7
7
|
readonly confirmation: UiActionConfirmation | undefined;
|
|
8
|
+
readonly usage?: UiDefinitionUsage;
|
|
9
|
+
readonly mutation?: boolean;
|
|
10
|
+
readonly resultProjection?: UiProjectionPolicy;
|
|
11
|
+
readonly env?: readonly string[];
|
|
12
|
+
readonly job?: unknown;
|
|
13
|
+
readonly jobAccess?: unknown;
|
|
14
|
+
readonly schedule?: unknown;
|
|
8
15
|
readonly content?: unknown;
|
|
9
16
|
readonly backend?: {
|
|
10
17
|
readonly type: 'core';
|
package/dist/mcp-app/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { MCP_APP_MODEL_CONTEXT_MAX_ARRAY_LENGTH, MCP_APP_MODEL_CONTEXT_MAX_BYTES
|
|
|
23
23
|
export type { McpAppModelContext, McpAppModelContextInput } from './model-context.js';
|
|
24
24
|
export { resolveAgentAccess, listMcpAppAgentActions } from './agent-access.js';
|
|
25
25
|
export type { McpAppAgentAccess, McpAppAgentAccessAction, McpAppVerifiedBundleAccessContext } from './agent-access.js';
|
|
26
|
+
export { UI_VIEW_CALL_IMAGE_MAX_BYTES, UI_VIEW_CALL_IMAGE_MAX_DIMENSION, UI_VIEW_CALL_IMAGE_MAX_PIXELS, assertNoUiViewCallImageData, validateUiActionImageDescriptor, validateUiActionImagePng, } from './view-call.js';
|
|
26
27
|
export { MCP_APP_CARD_HANDLERS, isMcpAppCardHandler, isMcpAppCardAction } from './card-handler.js';
|
|
27
28
|
export type { McpAppCardHandler } from './card-handler.js';
|
|
28
29
|
export { buildStateSetHandler, createStateSetHandler, } from './state-set.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type UiActionImageDescriptor, type JsonObject } from '../ui-instance/types.js';
|
|
2
|
+
export declare const UI_VIEW_CALL_IMAGE_MAX_BYTES: number;
|
|
3
|
+
export declare const UI_VIEW_CALL_IMAGE_MAX_DIMENSION = 8192;
|
|
4
|
+
export declare const UI_VIEW_CALL_IMAGE_MAX_PIXELS = 16000000;
|
|
5
|
+
export declare function validateUiActionImageDescriptor(value: unknown): UiActionImageDescriptor;
|
|
6
|
+
export declare function validateUiActionImagePng(bytes: Uint8Array, descriptorValue: unknown): Promise<UiActionImageDescriptor>;
|
|
7
|
+
export declare function assertNoUiViewCallImageData(value: unknown): asserts value is JsonObject;
|
|
@@ -2,7 +2,7 @@ import { type AppDiscoveryFileSystem, type WorkspaceAppDiscoveryIncompleteReason
|
|
|
2
2
|
import { type SkillBackendExecutionPort } from './skill-backend.js';
|
|
3
3
|
import { type WorkspaceAppAssetCatalog } from './workspace-app-assets.js';
|
|
4
4
|
import type { AppIconDiagnostic, AppIconFile } from '../ui-plugin/app-icon.js';
|
|
5
|
-
import type { JsonObject, UiActionHandlerRegistration, UiDefinition, UiDefinitionRef } from '../ui-instance/types.js';
|
|
5
|
+
import type { JsonObject, UiActionHandlerRegistration, UiDefinition, UiDefinitionRef, UiViewCallHandler } from '../ui-instance/types.js';
|
|
6
6
|
import type { UiPluginFilesRequest, UiPluginManifestV2, UiPluginShareRequest } from '../ui-plugin/types.js';
|
|
7
7
|
import type { McpAppHostToolOptions, McpAppLauncher, McpAppLocalResource, McpAppRegistry, McpAppWorkspaceRegistry } from './types.js';
|
|
8
8
|
export interface WorkspaceAppSnapshotResource extends McpAppLocalResource {
|
|
@@ -35,6 +35,7 @@ export interface WorkspaceAppSnapshotBuildOptions {
|
|
|
35
35
|
readonly registry?: McpAppRegistry;
|
|
36
36
|
readonly registeredProductBundle?: ProductAppBundleSnapshotMetadata;
|
|
37
37
|
readonly skillBackend?: SkillBackendExecutionPort;
|
|
38
|
+
readonly viewCallHandler?: UiViewCallHandler;
|
|
38
39
|
readonly hostTools?: McpAppHostToolOptions;
|
|
39
40
|
}
|
|
40
41
|
export type WorkspaceAppSnapshotOptions = WorkspaceAppDiscoveryOptions & WorkspaceAppSnapshotBuildOptions;
|