@crewx/sdk 0.9.0-rc.151 → 0.9.0-rc.153
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/frame.d.ts +0 -1
- package/dist/app/index.js +10 -10
- package/dist/app/protocol.d.ts +2 -2
- package/dist/esm/app/index.js +10 -10
- package/dist/esm/index.js +180 -180
- package/dist/esm/publish/index.js +1 -1
- package/dist/esm/skills/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +178 -178
- package/dist/mcp-app/model-context.d.ts +1 -1
- package/dist/publish/index.js +1 -1
- package/dist/skills/index.js +1 -1
- package/dist/ui-instance/runtime.d.ts +1 -0
- package/dist/ui-instance/store.d.ts +4 -2
- package/dist/ui-instance/types.d.ts +2 -0
- package/dist/ui-plugin/limits.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UiRuntimeFacade, UiRuntimeOptions, UiServerRuntimeFacade, UiServerRuntimeOptions } from './types.js';
|
|
2
2
|
import { UiInstanceStore } from './store.js';
|
|
3
|
+
export declare const UI_ACTION_INPUT_MAX_BYTES = 1048576;
|
|
3
4
|
export interface UiRuntimeTestHooks {
|
|
4
5
|
beforeReservation?: () => Promise<void> | void;
|
|
5
6
|
injectDatabaseError?: () => unknown | undefined;
|
|
@@ -69,18 +69,20 @@ export type ApprovalPendingReservationResult = {
|
|
|
69
69
|
readonly kind: 'settled';
|
|
70
70
|
readonly receipt: ActionReceipt;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
type ApprovalScopeFields = Pick<UiApprovalDecisionProvenance, 'scope' | 'taskMode'>;
|
|
73
|
+
interface ApprovalReceiptMarker extends ApprovalScopeFields {
|
|
73
74
|
state: 'pending' | 'executing' | 'settled';
|
|
74
75
|
approvalId: string;
|
|
75
76
|
expiresAt: number;
|
|
76
77
|
decidedBy?: string;
|
|
77
78
|
}
|
|
78
|
-
interface ApprovalReceiptRecord {
|
|
79
|
+
interface ApprovalReceiptRecord extends ApprovalScopeFields {
|
|
79
80
|
readonly receipt: ActionReceipt;
|
|
80
81
|
readonly definition: UiDefinitionRef | null;
|
|
81
82
|
readonly approvalId: string;
|
|
82
83
|
readonly expiresAt: number;
|
|
83
84
|
readonly state: ApprovalReceiptMarker['state'];
|
|
85
|
+
readonly decidedBy?: string;
|
|
84
86
|
}
|
|
85
87
|
export interface StateHandlerExecution {
|
|
86
88
|
handle: (context: UiActionHandlerContext) => {
|
|
@@ -163,6 +163,8 @@ export interface UiTaskExecutionContext {
|
|
|
163
163
|
export interface UiApprovalDecisionProvenance {
|
|
164
164
|
approvalId: string;
|
|
165
165
|
decidedBy: string;
|
|
166
|
+
scope?: 'thread';
|
|
167
|
+
taskMode?: 'query' | 'execute';
|
|
166
168
|
}
|
|
167
169
|
export interface UiApprovalPendingReceipt {
|
|
168
170
|
receipt: ActionReceipt;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const UI_PLUGIN_MAX_STRING_LENGTH = 4096;
|
|
2
2
|
export declare const UI_PLUGIN_MAX_ARRAY_LENGTH = 128;
|
|
3
|
-
export declare const UI_PLUGIN_MAX_SUBTREE_BYTES
|
|
4
|
-
export declare const UI_PLUGIN_MAX_INITIAL_STATE_BYTES
|
|
3
|
+
export declare const UI_PLUGIN_MAX_SUBTREE_BYTES = 1048576;
|
|
4
|
+
export declare const UI_PLUGIN_MAX_INITIAL_STATE_BYTES = 1048576;
|
|
5
5
|
export declare const UI_PLUGIN_MAX_JSON_DEPTH = 8;
|
|
6
6
|
export declare const UI_PLUGIN_MAX_SCHEMA_DEPTH = 8;
|
|
7
7
|
export declare const UI_PLUGIN_MAX_SCHEMA_PROPERTIES = 64;
|