@crewx/sdk 0.9.0-rc.151 → 0.9.0-rc.152

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.
@@ -69,18 +69,20 @@ export type ApprovalPendingReservationResult = {
69
69
  readonly kind: 'settled';
70
70
  readonly receipt: ActionReceipt;
71
71
  };
72
- interface ApprovalReceiptMarker {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.151",
3
+ "version": "0.9.0-rc.152",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"