@crewx/sdk 0.9.0-rc.96 → 0.9.0-rc.97

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.
@@ -24,7 +24,7 @@ export interface StopTaskOptions {
24
24
  processControl?: StopTaskProcessControl;
25
25
  processControlOptions?: ProcessControlOptions;
26
26
  }
27
- type StopTaskRepository = Pick<TaskRepository, 'requestTaskStop' | 'getTask' | 'finalizeTaskStop'>;
27
+ type StopTaskRepository = Pick<TaskRepository, 'requestTaskStop' | 'stopPendingTask' | 'getTask' | 'finalizeTaskStop'>;
28
28
  export declare function stopTask(taskId: string, options?: StopTaskOptions): Promise<StopTaskResult>;
29
29
  export declare function stopTask(repo: StopTaskRepository, taskId: string, options?: StopTaskOptions): Promise<StopTaskResult>;
30
30
  export {};
@@ -1,5 +1,7 @@
1
1
  export type { McpAppContractErrorCode } from './errors.js';
2
2
  export { McpAppContractError } from './errors.js';
3
+ export { INSTALLED_APP_ENTRY, InstalledAppRefError, buildInstalledAppRef, validateInstalledAppRef, } from './installed-app-ref.js';
4
+ export type { BuildInstalledAppRefInput, InstalledAppPackageFile, InstalledAppRef, InstalledAppRefErrorCode, } from './installed-app-ref.js';
3
5
  export { createMcpAppRegistry, createBuiltinMcpAppRegistry, registerMcpApp, resolveMcpAppResource, requireMcpAppResource, toMcpAppToolRegistration, } from './registry.js';
4
6
  export { buildMcpAppStateDescriptor, buildMcpAppStateProjections, buildTerminalMcpAppStateDescriptor, buildTerminalMcpAppStateProjections, createMcpAppToolResult, serializeMcpAppStateJson, serializeMcpAppStateXml, } from './projection.js';
5
7
  export { MCP_APP_HOST_TOOL_ALLOWLIST, MCP_APP_RESOURCE_MIME_TYPE, MCP_APP_RESOURCE_URI_PREFIX, } from './types.js';
@@ -0,0 +1,25 @@
1
+ import type { UiDefinition, UiDefinitionRef } from '../ui-instance/types.js';
2
+ export declare const INSTALLED_APP_ENTRY: "ui/index.html";
3
+ export type InstalledAppRefErrorCode = 'APP_ID_INVALID' | 'DEFINITION_REF_INVALID' | 'ENTRY_DUPLICATE' | 'ENTRY_PATH_INVALID' | 'ENTRY_MISSING' | 'ENTRY_HASH_INVALID' | 'INSTALLED_APP_REF_INVALID';
4
+ export declare class InstalledAppRefError extends Error {
5
+ readonly code: InstalledAppRefErrorCode;
6
+ readonly name = "InstalledAppRefError";
7
+ constructor(code: InstalledAppRefErrorCode, message?: string);
8
+ }
9
+ export interface InstalledAppRef {
10
+ readonly appId: string;
11
+ readonly definition: UiDefinitionRef;
12
+ readonly entry: typeof INSTALLED_APP_ENTRY;
13
+ readonly entryHash: string;
14
+ }
15
+ export interface InstalledAppPackageFile {
16
+ readonly path: string;
17
+ readonly sha256: string;
18
+ }
19
+ export interface BuildInstalledAppRefInput {
20
+ readonly appId: string;
21
+ readonly definition: UiDefinition;
22
+ readonly packageFiles: readonly InstalledAppPackageFile[];
23
+ }
24
+ export declare function validateInstalledAppRef(value: unknown): InstalledAppRef;
25
+ export declare function buildInstalledAppRef(input: BuildInstalledAppRefInput): InstalledAppRef;