@trycua/cua-driver 0.11.0 → 0.12.2
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/README.md +37 -17
- package/dist/index.d.ts +0 -6
- package/dist/index.js +6 -0
- package/dist/native/cua_driver_contract-ffi.js +1 -1
- package/dist/native/cua_driver_sdk-ffi.d.ts +27 -17
- package/dist/native/cua_driver_sdk-ffi.js +83 -33
- package/dist/native/cua_driver_sdk.d.ts +265 -41
- package/dist/native/cua_driver_sdk.js +689 -222
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/package.json +11 -11
|
@@ -118,6 +118,37 @@ const FfiConverterTypeDriverMetadata = (() => {
|
|
|
118
118
|
;
|
|
119
119
|
return new FFIConverter();
|
|
120
120
|
})();
|
|
121
|
+
/**
|
|
122
|
+
* Generated factory for {@link DriverOptions} record objects.
|
|
123
|
+
*/
|
|
124
|
+
export const DriverOptions = (() => {
|
|
125
|
+
const defaults = () => ({});
|
|
126
|
+
const create = (() => {
|
|
127
|
+
return uniffiCreateRecord(defaults);
|
|
128
|
+
})();
|
|
129
|
+
return Object.freeze({
|
|
130
|
+
create,
|
|
131
|
+
new: create,
|
|
132
|
+
defaults: () => Object.freeze(defaults()),
|
|
133
|
+
});
|
|
134
|
+
})();
|
|
135
|
+
const FfiConverterTypeDriverOptions = (() => {
|
|
136
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
137
|
+
read(from) {
|
|
138
|
+
return {
|
|
139
|
+
claudeCodeCompatibility: FfiConverterBool.read(from)
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
write(value, into) {
|
|
143
|
+
FfiConverterBool.write(value.claudeCodeCompatibility, into);
|
|
144
|
+
}
|
|
145
|
+
allocationSize(value) {
|
|
146
|
+
return FfiConverterBool.allocationSize(value.claudeCodeCompatibility);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
;
|
|
150
|
+
return new FFIConverter();
|
|
151
|
+
})();
|
|
121
152
|
/**
|
|
122
153
|
* Generated factory for {@link EmbeddedEnvironmentVariable} record objects.
|
|
123
154
|
*/
|
|
@@ -494,6 +525,7 @@ export var DriverError_Tags;
|
|
|
494
525
|
DriverError_Tags["Transport"] = "Transport";
|
|
495
526
|
DriverError_Tags["Protocol"] = "Protocol";
|
|
496
527
|
DriverError_Tags["Tool"] = "Tool";
|
|
528
|
+
DriverError_Tags["Shutdown"] = "Shutdown";
|
|
497
529
|
})(DriverError_Tags || (DriverError_Tags = {}));
|
|
498
530
|
export const DriverError = (() => {
|
|
499
531
|
class Configuration_ extends UniffiError {
|
|
@@ -621,6 +653,26 @@ export const DriverError = (() => {
|
|
|
621
653
|
return obj.inner;
|
|
622
654
|
}
|
|
623
655
|
}
|
|
656
|
+
class Shutdown_ extends UniffiError {
|
|
657
|
+
/**
|
|
658
|
+
* @private
|
|
659
|
+
* This field is private and should not be used, use `tag` instead.
|
|
660
|
+
*/
|
|
661
|
+
[uniffiTypeNameSymbol] = "DriverError";
|
|
662
|
+
tag = DriverError_Tags.Shutdown;
|
|
663
|
+
constructor() {
|
|
664
|
+
super("DriverError", "Shutdown");
|
|
665
|
+
}
|
|
666
|
+
static new() {
|
|
667
|
+
return new Shutdown_();
|
|
668
|
+
}
|
|
669
|
+
static instanceOf(obj) {
|
|
670
|
+
return obj.tag === DriverError_Tags.Shutdown;
|
|
671
|
+
}
|
|
672
|
+
static hasInner(obj) {
|
|
673
|
+
return false;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
624
676
|
function instanceOf(obj) {
|
|
625
677
|
return obj[uniffiTypeNameSymbol] === "DriverError";
|
|
626
678
|
}
|
|
@@ -630,7 +682,8 @@ export const DriverError = (() => {
|
|
|
630
682
|
InvalidArguments: InvalidArguments_,
|
|
631
683
|
Transport: Transport_,
|
|
632
684
|
Protocol: Protocol_,
|
|
633
|
-
Tool: Tool_
|
|
685
|
+
Tool: Tool_,
|
|
686
|
+
Shutdown: Shutdown_
|
|
634
687
|
});
|
|
635
688
|
})();
|
|
636
689
|
// FfiConverter for enum DriverError
|
|
@@ -644,6 +697,7 @@ const FfiConverterTypeDriverError = (() => {
|
|
|
644
697
|
case 3: return new DriverError.Transport({ socketPath: FfiConverterString.read(from), reason: FfiConverterString.read(from) });
|
|
645
698
|
case 4: return new DriverError.Protocol({ reason: FfiConverterString.read(from) });
|
|
646
699
|
case 5: return new DriverError.Tool({ tool: FfiConverterString.read(from), message: FfiConverterString.read(from), errorCode: FfiConverterString.read(from) });
|
|
700
|
+
case 6: return new DriverError.Shutdown();
|
|
647
701
|
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
648
702
|
}
|
|
649
703
|
}
|
|
@@ -683,6 +737,10 @@ const FfiConverterTypeDriverError = (() => {
|
|
|
683
737
|
FfiConverterString.write(inner.errorCode, into);
|
|
684
738
|
return;
|
|
685
739
|
}
|
|
740
|
+
case DriverError_Tags.Shutdown: {
|
|
741
|
+
ordinalConverter.write(6, into);
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
686
744
|
default:
|
|
687
745
|
// Throwing from here means that DriverError_Tags hasn't matched an ordinal.
|
|
688
746
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
@@ -724,9 +782,42 @@ const FfiConverterTypeDriverError = (() => {
|
|
|
724
782
|
size += FfiConverterString.allocationSize(inner.errorCode);
|
|
725
783
|
return size;
|
|
726
784
|
}
|
|
785
|
+
case DriverError_Tags.Shutdown: {
|
|
786
|
+
return ordinalConverter.allocationSize(6);
|
|
787
|
+
}
|
|
788
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return new FFIConverter();
|
|
793
|
+
})();
|
|
794
|
+
/**
|
|
795
|
+
* Process topology used by this SDK object.
|
|
796
|
+
*/
|
|
797
|
+
export var DriverExecutionMode;
|
|
798
|
+
(function (DriverExecutionMode) {
|
|
799
|
+
DriverExecutionMode[DriverExecutionMode["Embedded"] = 0] = "Embedded";
|
|
800
|
+
DriverExecutionMode[DriverExecutionMode["Daemon"] = 1] = "Daemon";
|
|
801
|
+
})(DriverExecutionMode || (DriverExecutionMode = {}));
|
|
802
|
+
const FfiConverterTypeDriverExecutionMode = (() => {
|
|
803
|
+
const ordinalConverter = FfiConverterInt32;
|
|
804
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
805
|
+
read(from) {
|
|
806
|
+
switch (ordinalConverter.read(from)) {
|
|
807
|
+
case 1: return DriverExecutionMode.Embedded;
|
|
808
|
+
case 2: return DriverExecutionMode.Daemon;
|
|
727
809
|
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
728
810
|
}
|
|
729
811
|
}
|
|
812
|
+
write(value, into) {
|
|
813
|
+
switch (value) {
|
|
814
|
+
case DriverExecutionMode.Embedded: return ordinalConverter.write(1, into);
|
|
815
|
+
case DriverExecutionMode.Daemon: return ordinalConverter.write(2, into);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
allocationSize(value) {
|
|
819
|
+
return ordinalConverter.allocationSize(0);
|
|
820
|
+
}
|
|
730
821
|
}
|
|
731
822
|
return new FFIConverter();
|
|
732
823
|
})();
|
|
@@ -1113,6 +1204,38 @@ const FfiConverterTypeEmbeddedDriverHostState = (() => {
|
|
|
1113
1204
|
}
|
|
1114
1205
|
return new FFIConverter();
|
|
1115
1206
|
})();
|
|
1207
|
+
/**
|
|
1208
|
+
* Runtime that imported the shared UniFFI SDK library. The language package
|
|
1209
|
+
* selects this automatically at its root entry point; callers do not need to
|
|
1210
|
+
* supply telemetry metadata.
|
|
1211
|
+
*/
|
|
1212
|
+
export var SdkClientKind;
|
|
1213
|
+
(function (SdkClientKind) {
|
|
1214
|
+
SdkClientKind[SdkClientKind["Python"] = 0] = "Python";
|
|
1215
|
+
SdkClientKind[SdkClientKind["Typescript"] = 1] = "Typescript";
|
|
1216
|
+
})(SdkClientKind || (SdkClientKind = {}));
|
|
1217
|
+
const FfiConverterTypeSdkClientKind = (() => {
|
|
1218
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1219
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1220
|
+
read(from) {
|
|
1221
|
+
switch (ordinalConverter.read(from)) {
|
|
1222
|
+
case 1: return SdkClientKind.Python;
|
|
1223
|
+
case 2: return SdkClientKind.Typescript;
|
|
1224
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
write(value, into) {
|
|
1228
|
+
switch (value) {
|
|
1229
|
+
case SdkClientKind.Python: return ordinalConverter.write(1, into);
|
|
1230
|
+
case SdkClientKind.Typescript: return ordinalConverter.write(2, into);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
allocationSize(value) {
|
|
1234
|
+
return ordinalConverter.allocationSize(0);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
return new FFIConverter();
|
|
1238
|
+
})();
|
|
1116
1239
|
export class CuaDriver extends UniffiAbstractObject {
|
|
1117
1240
|
[uniffiTypeNameSymbol] = "CuaDriver";
|
|
1118
1241
|
[destructorGuardSymbol];
|
|
@@ -1125,7 +1248,7 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
1125
1248
|
}
|
|
1126
1249
|
/**
|
|
1127
1250
|
* Connect to the default installed daemon or an explicitly selected socket.
|
|
1128
|
-
*
|
|
1251
|
+
* This is the temporary compatibility path for released socket clients.
|
|
1129
1252
|
*/
|
|
1130
1253
|
static connect(socketPath) {
|
|
1131
1254
|
return FfiConverterTypeCuaDriver.lift(uniffiCaller.rustCallWithError(
|
|
@@ -1136,158 +1259,349 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
1136
1259
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1137
1260
|
}
|
|
1138
1261
|
/**
|
|
1139
|
-
*
|
|
1140
|
-
*
|
|
1262
|
+
* Language-package entry point that preserves the public `connect` API
|
|
1263
|
+
* while attaching a closed runtime category to daemon requests.
|
|
1141
1264
|
*/
|
|
1142
|
-
|
|
1143
|
-
return ((
|
|
1144
|
-
try {
|
|
1145
|
-
return FfiConverterTypeToolResult.lift(__rb);
|
|
1146
|
-
}
|
|
1147
|
-
finally {
|
|
1148
|
-
nativeModule().rustbuffer_free(__rb);
|
|
1149
|
-
}
|
|
1150
|
-
})(uniffiCaller.rustCallWithError(
|
|
1265
|
+
static connectWithClientKind(socketPath, clientKind) {
|
|
1266
|
+
return FfiConverterTypeCuaDriver.lift(uniffiCaller.rustCallWithError(
|
|
1151
1267
|
/*liftError:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError),
|
|
1152
1268
|
/*caller:*/ (callStatus) => {
|
|
1153
|
-
return nativeModule().
|
|
1269
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_constructor_cuadriver_connect_with_client_kind(FfiConverterOptionalString.lower(socketPath, nativeModule().rustbuffer_alloc), FfiConverterTypeSdkClientKind.lower(clientKind, nativeModule().rustbuffer_alloc), callStatus);
|
|
1154
1270
|
},
|
|
1155
1271
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1156
1272
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
nativeModule().rustbuffer_free(__rb);
|
|
1164
|
-
}
|
|
1165
|
-
})(uniffiCaller.rustCallWithError(
|
|
1273
|
+
/**
|
|
1274
|
+
* Create a same-process driver runtime. This constructor never launches
|
|
1275
|
+
* `cua-driver` and never opens daemon IPC.
|
|
1276
|
+
*/
|
|
1277
|
+
static create(options) {
|
|
1278
|
+
return FfiConverterTypeCuaDriver.lift(uniffiCaller.rustCallWithError(
|
|
1166
1279
|
/*liftError:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError),
|
|
1167
1280
|
/*caller:*/ (callStatus) => {
|
|
1168
|
-
return nativeModule().
|
|
1281
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_constructor_cuadriver_create(FfiConverterOptionalTypeDriverOptions.lower(options, nativeModule().rustbuffer_alloc), callStatus);
|
|
1169
1282
|
},
|
|
1170
1283
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1171
1284
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
nativeModule().rustbuffer_free(__rb);
|
|
1179
|
-
}
|
|
1180
|
-
})(uniffiCaller.rustCallWithError(
|
|
1285
|
+
/**
|
|
1286
|
+
* Language-package entry point for the same-process runtime. The wrapper
|
|
1287
|
+
* at each package root selects the client kind automatically.
|
|
1288
|
+
*/
|
|
1289
|
+
static createWithClientKind(options, clientKind) {
|
|
1290
|
+
return FfiConverterTypeCuaDriver.lift(uniffiCaller.rustCallWithError(
|
|
1181
1291
|
/*liftError:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError),
|
|
1182
1292
|
/*caller:*/ (callStatus) => {
|
|
1183
|
-
return nativeModule().
|
|
1293
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_constructor_cuadriver_create_with_client_kind(FfiConverterOptionalTypeDriverOptions.lower(options, nativeModule().rustbuffer_alloc), FfiConverterTypeSdkClientKind.lower(clientKind, nativeModule().rustbuffer_alloc), callStatus);
|
|
1184
1294
|
},
|
|
1185
1295
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1186
1296
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1297
|
+
/**
|
|
1298
|
+
* Generic protocol-adapter surface. Ordinary applications should prefer
|
|
1299
|
+
* typed methods; MCP and other open-ended adapters use this method so they
|
|
1300
|
+
* remain downstream of the same public SDK runtime.
|
|
1301
|
+
*/
|
|
1302
|
+
async callTool(name, argumentsJson, asyncOpts_) {
|
|
1303
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1304
|
+
try {
|
|
1305
|
+
return await uniffiRustCallAsync(
|
|
1306
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1307
|
+
/*rustFutureFunc:*/ () => {
|
|
1308
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_call_tool(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterString.lower(name, nativeModule().rustbuffer_alloc), FfiConverterString.lower(argumentsJson, nativeModule().rustbuffer_alloc));
|
|
1309
|
+
},
|
|
1310
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1311
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1312
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1313
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1314
|
+
// Async returns always go through the JS-side converter: the
|
|
1315
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1316
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1317
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1318
|
+
// here using the per-callable return-type converter.
|
|
1319
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1320
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1321
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1322
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1323
|
+
}
|
|
1324
|
+
catch (__error) {
|
|
1325
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1326
|
+
__error.stack = __stack;
|
|
1194
1327
|
}
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
/*caller:*/ (callStatus) => {
|
|
1198
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_end_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeEndSessionInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1199
|
-
},
|
|
1200
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1328
|
+
throw __error;
|
|
1329
|
+
}
|
|
1201
1330
|
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1331
|
+
async click(input, asyncOpts_) {
|
|
1332
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1333
|
+
try {
|
|
1334
|
+
return await uniffiRustCallAsync(
|
|
1335
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1336
|
+
/*rustFutureFunc:*/ () => {
|
|
1337
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_click(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeClickInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1338
|
+
},
|
|
1339
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1340
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1341
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1342
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1343
|
+
// Async returns always go through the JS-side converter: the
|
|
1344
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1345
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1346
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1347
|
+
// here using the per-callable return-type converter.
|
|
1348
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1349
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1350
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1351
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1352
|
+
}
|
|
1353
|
+
catch (__error) {
|
|
1354
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1355
|
+
__error.stack = __stack;
|
|
1206
1356
|
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1357
|
+
throw __error;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
async drag(input, asyncOpts_) {
|
|
1361
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1362
|
+
try {
|
|
1363
|
+
return await uniffiRustCallAsync(
|
|
1364
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1365
|
+
/*rustFutureFunc:*/ () => {
|
|
1366
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_drag(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeDragInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1367
|
+
},
|
|
1368
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1369
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1370
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1371
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1372
|
+
// Async returns always go through the JS-side converter: the
|
|
1373
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1374
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1375
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1376
|
+
// here using the per-callable return-type converter.
|
|
1377
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1378
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1379
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1380
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1381
|
+
}
|
|
1382
|
+
catch (__error) {
|
|
1383
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1384
|
+
__error.stack = __stack;
|
|
1209
1385
|
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
/*caller:*/ (callStatus) => {
|
|
1213
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_escalate_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeEscalateSessionInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1214
|
-
},
|
|
1215
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1386
|
+
throw __error;
|
|
1387
|
+
}
|
|
1216
1388
|
}
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1389
|
+
async endSession(input, asyncOpts_) {
|
|
1390
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1391
|
+
try {
|
|
1392
|
+
return await uniffiRustCallAsync(
|
|
1393
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1394
|
+
/*rustFutureFunc:*/ () => {
|
|
1395
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_end_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeEndSessionInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1396
|
+
},
|
|
1397
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1398
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1399
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1400
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1401
|
+
// Async returns always go through the JS-side converter: the
|
|
1402
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1403
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1404
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1405
|
+
// here using the per-callable return-type converter.
|
|
1406
|
+
/*liftFunc:*/ FfiConverterTypeEndSessionOutput.lift.bind(FfiConverterTypeEndSessionOutput),
|
|
1407
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1408
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1409
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1410
|
+
}
|
|
1411
|
+
catch (__error) {
|
|
1412
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1413
|
+
__error.stack = __stack;
|
|
1221
1414
|
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1415
|
+
throw __error;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
async escalateSession(input, asyncOpts_) {
|
|
1419
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1420
|
+
try {
|
|
1421
|
+
return await uniffiRustCallAsync(
|
|
1422
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1423
|
+
/*rustFutureFunc:*/ () => {
|
|
1424
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_escalate_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeEscalateSessionInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1425
|
+
},
|
|
1426
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1427
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1428
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1429
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1430
|
+
// Async returns always go through the JS-side converter: the
|
|
1431
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1432
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1433
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1434
|
+
// here using the per-callable return-type converter.
|
|
1435
|
+
/*liftFunc:*/ FfiConverterTypeSessionStateOutput.lift.bind(FfiConverterTypeSessionStateOutput),
|
|
1436
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1437
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1438
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1439
|
+
}
|
|
1440
|
+
catch (__error) {
|
|
1441
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1442
|
+
__error.stack = __stack;
|
|
1224
1443
|
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
/*caller:*/ (callStatus) => {
|
|
1228
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_cursor_position(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetCursorPositionInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1229
|
-
},
|
|
1230
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1444
|
+
throw __error;
|
|
1445
|
+
}
|
|
1231
1446
|
}
|
|
1232
|
-
|
|
1447
|
+
executionMode() {
|
|
1233
1448
|
return ((__rb) => {
|
|
1234
1449
|
try {
|
|
1235
|
-
return
|
|
1450
|
+
return FfiConverterTypeDriverExecutionMode.lift(__rb);
|
|
1236
1451
|
}
|
|
1237
1452
|
finally {
|
|
1238
1453
|
nativeModule().rustbuffer_free(__rb);
|
|
1239
1454
|
}
|
|
1240
|
-
})(uniffiCaller.
|
|
1241
|
-
/*liftError:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError),
|
|
1455
|
+
})(uniffiCaller.rustCall(
|
|
1242
1456
|
/*caller:*/ (callStatus) => {
|
|
1243
|
-
return nativeModule().
|
|
1457
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_execution_mode(uniffiTypeCuaDriverObjectFactory.clonePointer(this), callStatus);
|
|
1244
1458
|
},
|
|
1245
1459
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1246
1460
|
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
nativeModule().
|
|
1461
|
+
async getCursorPosition(input, asyncOpts_) {
|
|
1462
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1463
|
+
try {
|
|
1464
|
+
return await uniffiRustCallAsync(
|
|
1465
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1466
|
+
/*rustFutureFunc:*/ () => {
|
|
1467
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_cursor_position(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetCursorPositionInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1468
|
+
},
|
|
1469
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1470
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1471
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1472
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1473
|
+
// Async returns always go through the JS-side converter: the
|
|
1474
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1475
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1476
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1477
|
+
// here using the per-callable return-type converter.
|
|
1478
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1479
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1480
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1481
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1482
|
+
}
|
|
1483
|
+
catch (__error) {
|
|
1484
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1485
|
+
__error.stack = __stack;
|
|
1254
1486
|
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
/*caller:*/ (callStatus) => {
|
|
1258
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetScreenSizeInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1259
|
-
},
|
|
1260
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1487
|
+
throw __error;
|
|
1488
|
+
}
|
|
1261
1489
|
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1490
|
+
async getDesktopState(input, asyncOpts_) {
|
|
1491
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1492
|
+
try {
|
|
1493
|
+
return await uniffiRustCallAsync(
|
|
1494
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1495
|
+
/*rustFutureFunc:*/ () => {
|
|
1496
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_desktop_state(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetDesktopStateInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1497
|
+
},
|
|
1498
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1499
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1500
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1501
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1502
|
+
// Async returns always go through the JS-side converter: the
|
|
1503
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1504
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1505
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1506
|
+
// here using the per-callable return-type converter.
|
|
1507
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1508
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1509
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1510
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1511
|
+
}
|
|
1512
|
+
catch (__error) {
|
|
1513
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1514
|
+
__error.stack = __stack;
|
|
1266
1515
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1516
|
+
throw __error;
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
async getScreenSize(input, asyncOpts_) {
|
|
1520
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1521
|
+
try {
|
|
1522
|
+
return await uniffiRustCallAsync(
|
|
1523
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1524
|
+
/*rustFutureFunc:*/ () => {
|
|
1525
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_screen_size(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetScreenSizeInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1526
|
+
},
|
|
1527
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1528
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1529
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1530
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1531
|
+
// Async returns always go through the JS-side converter: the
|
|
1532
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1533
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1534
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1535
|
+
// here using the per-callable return-type converter.
|
|
1536
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1537
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1538
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1539
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1540
|
+
}
|
|
1541
|
+
catch (__error) {
|
|
1542
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1543
|
+
__error.stack = __stack;
|
|
1269
1544
|
}
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
/*caller:*/ (callStatus) => {
|
|
1273
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetSessionStateInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1274
|
-
},
|
|
1275
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1545
|
+
throw __error;
|
|
1546
|
+
}
|
|
1276
1547
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1548
|
+
async getSessionState(input, asyncOpts_) {
|
|
1549
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1550
|
+
try {
|
|
1551
|
+
return await uniffiRustCallAsync(
|
|
1552
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1553
|
+
/*rustFutureFunc:*/ () => {
|
|
1554
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_get_session_state(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeGetSessionStateInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1555
|
+
},
|
|
1556
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1557
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1558
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1559
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1560
|
+
// Async returns always go through the JS-side converter: the
|
|
1561
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1562
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1563
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1564
|
+
// here using the per-callable return-type converter.
|
|
1565
|
+
/*liftFunc:*/ FfiConverterTypeSessionStateOutput.lift.bind(FfiConverterTypeSessionStateOutput),
|
|
1566
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1567
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1568
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1569
|
+
}
|
|
1570
|
+
catch (__error) {
|
|
1571
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1572
|
+
__error.stack = __stack;
|
|
1281
1573
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1574
|
+
throw __error;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
async hotkey(input, asyncOpts_) {
|
|
1578
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1579
|
+
try {
|
|
1580
|
+
return await uniffiRustCallAsync(
|
|
1581
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1582
|
+
/*rustFutureFunc:*/ () => {
|
|
1583
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeHotkeyInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1584
|
+
},
|
|
1585
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1586
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1587
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1588
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1589
|
+
// Async returns always go through the JS-side converter: the
|
|
1590
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1591
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1592
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1593
|
+
// here using the per-callable return-type converter.
|
|
1594
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1595
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1596
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1597
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1598
|
+
}
|
|
1599
|
+
catch (__error) {
|
|
1600
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1601
|
+
__error.stack = __stack;
|
|
1284
1602
|
}
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
/*caller:*/ (callStatus) => {
|
|
1288
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_hotkey(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeHotkeyInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1289
|
-
},
|
|
1290
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1603
|
+
throw __error;
|
|
1604
|
+
}
|
|
1291
1605
|
}
|
|
1292
1606
|
isAvailable() {
|
|
1293
1607
|
return FfiConverterBool.lift(uniffiCaller.rustCall(
|
|
@@ -1296,81 +1610,186 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
1296
1610
|
},
|
|
1297
1611
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1298
1612
|
}
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1613
|
+
/**
|
|
1614
|
+
* Canonical tool inventory for MCP and other protocol adapters.
|
|
1615
|
+
*/
|
|
1616
|
+
async listToolsJson(asyncOpts_) {
|
|
1617
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1618
|
+
try {
|
|
1619
|
+
return await uniffiRustCallAsync(
|
|
1620
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1621
|
+
/*rustFutureFunc:*/ () => {
|
|
1622
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiTypeCuaDriverObjectFactory.clonePointer(this));
|
|
1623
|
+
},
|
|
1624
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1625
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1626
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1627
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1628
|
+
// Async returns always go through the JS-side converter: the
|
|
1629
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1630
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1631
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1632
|
+
// here using the per-callable return-type converter.
|
|
1633
|
+
/*liftFunc:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1634
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1635
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1636
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1637
|
+
}
|
|
1638
|
+
catch (__error) {
|
|
1639
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1640
|
+
__error.stack = __stack;
|
|
1306
1641
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
/*caller:*/ (callStatus) => {
|
|
1310
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_list_tools_json(uniffiTypeCuaDriverObjectFactory.clonePointer(this), callStatus);
|
|
1311
|
-
},
|
|
1312
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1642
|
+
throw __error;
|
|
1643
|
+
}
|
|
1313
1644
|
}
|
|
1314
|
-
metadata() {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
nativeModule().
|
|
1645
|
+
async metadata(asyncOpts_) {
|
|
1646
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1647
|
+
try {
|
|
1648
|
+
return await uniffiRustCallAsync(
|
|
1649
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1650
|
+
/*rustFutureFunc:*/ () => {
|
|
1651
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiTypeCuaDriverObjectFactory.clonePointer(this));
|
|
1652
|
+
},
|
|
1653
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1654
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1655
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1656
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1657
|
+
// Async returns always go through the JS-side converter: the
|
|
1658
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1659
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1660
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1661
|
+
// here using the per-callable return-type converter.
|
|
1662
|
+
/*liftFunc:*/ FfiConverterTypeDriverMetadata.lift.bind(FfiConverterTypeDriverMetadata),
|
|
1663
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1664
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1665
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1666
|
+
}
|
|
1667
|
+
catch (__error) {
|
|
1668
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1669
|
+
__error.stack = __stack;
|
|
1321
1670
|
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
/*caller:*/ (callStatus) => {
|
|
1325
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_metadata(uniffiTypeCuaDriverObjectFactory.clonePointer(this), callStatus);
|
|
1326
|
-
},
|
|
1327
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1671
|
+
throw __error;
|
|
1672
|
+
}
|
|
1328
1673
|
}
|
|
1329
|
-
moveCursor(input) {
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
nativeModule().
|
|
1674
|
+
async moveCursor(input, asyncOpts_) {
|
|
1675
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1676
|
+
try {
|
|
1677
|
+
return await uniffiRustCallAsync(
|
|
1678
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1679
|
+
/*rustFutureFunc:*/ () => {
|
|
1680
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeMoveCursorInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1681
|
+
},
|
|
1682
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1683
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1684
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1685
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1686
|
+
// Async returns always go through the JS-side converter: the
|
|
1687
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1688
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1689
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1690
|
+
// here using the per-callable return-type converter.
|
|
1691
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1692
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1693
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1694
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1695
|
+
}
|
|
1696
|
+
catch (__error) {
|
|
1697
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1698
|
+
__error.stack = __stack;
|
|
1336
1699
|
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
/*caller:*/ (callStatus) => {
|
|
1340
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_move_cursor(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeMoveCursorInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1341
|
-
},
|
|
1342
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1700
|
+
throw __error;
|
|
1701
|
+
}
|
|
1343
1702
|
}
|
|
1344
|
-
pressKey(input) {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
nativeModule().
|
|
1703
|
+
async pressKey(input, asyncOpts_) {
|
|
1704
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1705
|
+
try {
|
|
1706
|
+
return await uniffiRustCallAsync(
|
|
1707
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1708
|
+
/*rustFutureFunc:*/ () => {
|
|
1709
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypePressKeyInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1710
|
+
},
|
|
1711
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1712
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1713
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1714
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1715
|
+
// Async returns always go through the JS-side converter: the
|
|
1716
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1717
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1718
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1719
|
+
// here using the per-callable return-type converter.
|
|
1720
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1721
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1722
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1723
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1724
|
+
}
|
|
1725
|
+
catch (__error) {
|
|
1726
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1727
|
+
__error.stack = __stack;
|
|
1351
1728
|
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
/*caller:*/ (callStatus) => {
|
|
1355
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_press_key(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypePressKeyInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1356
|
-
},
|
|
1357
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1729
|
+
throw __error;
|
|
1730
|
+
}
|
|
1358
1731
|
}
|
|
1359
|
-
scroll(input) {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1732
|
+
async scroll(input, asyncOpts_) {
|
|
1733
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1734
|
+
try {
|
|
1735
|
+
return await uniffiRustCallAsync(
|
|
1736
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1737
|
+
/*rustFutureFunc:*/ () => {
|
|
1738
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_scroll(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeScrollInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1739
|
+
},
|
|
1740
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1741
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1742
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1743
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1744
|
+
// Async returns always go through the JS-side converter: the
|
|
1745
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1746
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1747
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1748
|
+
// here using the per-callable return-type converter.
|
|
1749
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1750
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1751
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1752
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1753
|
+
}
|
|
1754
|
+
catch (__error) {
|
|
1755
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1756
|
+
__error.stack = __stack;
|
|
1363
1757
|
}
|
|
1364
|
-
|
|
1365
|
-
|
|
1758
|
+
throw __error;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Stop accepting new embedded operations. Repeated calls are harmless;
|
|
1763
|
+
* daemon compatibility clients do not own the daemon and therefore no-op.
|
|
1764
|
+
*/
|
|
1765
|
+
async shutdown(asyncOpts_) {
|
|
1766
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1767
|
+
try {
|
|
1768
|
+
return await uniffiRustCallAsync(
|
|
1769
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1770
|
+
/*rustFutureFunc:*/ () => {
|
|
1771
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_shutdown(uniffiTypeCuaDriverObjectFactory.clonePointer(this));
|
|
1772
|
+
},
|
|
1773
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_void,
|
|
1774
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_void,
|
|
1775
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_void,
|
|
1776
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_void,
|
|
1777
|
+
/*liftFunc:*/ (_v) => { },
|
|
1778
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1779
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1780
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1781
|
+
}
|
|
1782
|
+
catch (__error) {
|
|
1783
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1784
|
+
__error.stack = __stack;
|
|
1366
1785
|
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
/*caller:*/ (callStatus) => {
|
|
1370
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_scroll(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeScrollInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1371
|
-
},
|
|
1372
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1786
|
+
throw __error;
|
|
1787
|
+
}
|
|
1373
1788
|
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Compatibility accessor. Embedded runtimes have no socket and return an
|
|
1791
|
+
* empty string; new code should branch on [`Self::execution_mode`].
|
|
1792
|
+
*/
|
|
1374
1793
|
socketPath() {
|
|
1375
1794
|
return ((__rb) => {
|
|
1376
1795
|
try {
|
|
@@ -1385,35 +1804,63 @@ export class CuaDriver extends UniffiAbstractObject {
|
|
|
1385
1804
|
},
|
|
1386
1805
|
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1387
1806
|
}
|
|
1388
|
-
startSession(input) {
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
nativeModule().
|
|
1807
|
+
async startSession(input, asyncOpts_) {
|
|
1808
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1809
|
+
try {
|
|
1810
|
+
return await uniffiRustCallAsync(
|
|
1811
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1812
|
+
/*rustFutureFunc:*/ () => {
|
|
1813
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_start_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeStartSessionInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1814
|
+
},
|
|
1815
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1816
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1817
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1818
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1819
|
+
// Async returns always go through the JS-side converter: the
|
|
1820
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1821
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1822
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1823
|
+
// here using the per-callable return-type converter.
|
|
1824
|
+
/*liftFunc:*/ FfiConverterTypeStartSessionOutput.lift.bind(FfiConverterTypeStartSessionOutput),
|
|
1825
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1826
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1827
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1828
|
+
}
|
|
1829
|
+
catch (__error) {
|
|
1830
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1831
|
+
__error.stack = __stack;
|
|
1395
1832
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
/*caller:*/ (callStatus) => {
|
|
1399
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_start_session(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeStartSessionInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1400
|
-
},
|
|
1401
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1833
|
+
throw __error;
|
|
1834
|
+
}
|
|
1402
1835
|
}
|
|
1403
|
-
typeText(input) {
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
nativeModule().
|
|
1836
|
+
async typeText(input, asyncOpts_) {
|
|
1837
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1838
|
+
try {
|
|
1839
|
+
return await uniffiRustCallAsync(
|
|
1840
|
+
/*rustCaller:*/ uniffiCaller,
|
|
1841
|
+
/*rustFutureFunc:*/ () => {
|
|
1842
|
+
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_type_text(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeTypeTextInput.lower(input, nativeModule().rustbuffer_alloc));
|
|
1843
|
+
},
|
|
1844
|
+
/*pollFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_poll_rust_buffer,
|
|
1845
|
+
/*cancelFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_cancel_rust_buffer,
|
|
1846
|
+
/*completeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_complete_rust_buffer,
|
|
1847
|
+
/*freeFunc:*/ nativeModule().ffi_cua_driver_sdk_rust_future_free_rust_buffer,
|
|
1848
|
+
// Async returns always go through the JS-side converter: the
|
|
1849
|
+
// FFI symbol returns the future handle (u64), and the user-level
|
|
1850
|
+
// RustBuffer comes back via the shared `rust_future_complete_*`
|
|
1851
|
+
// export. The bytes the runtime hands back must be deserialized
|
|
1852
|
+
// here using the per-callable return-type converter.
|
|
1853
|
+
/*liftFunc:*/ FfiConverterTypeToolResult.lift.bind(FfiConverterTypeToolResult),
|
|
1854
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
|
|
1855
|
+
/*asyncOpts:*/ asyncOpts_,
|
|
1856
|
+
/*errorHandler:*/ FfiConverterTypeDriverError.lift.bind(FfiConverterTypeDriverError));
|
|
1857
|
+
}
|
|
1858
|
+
catch (__error) {
|
|
1859
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1860
|
+
__error.stack = __stack;
|
|
1410
1861
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
/*caller:*/ (callStatus) => {
|
|
1414
|
-
return nativeModule().uniffi_cua_driver_sdk_fn_method_cuadriver_type_text(uniffiTypeCuaDriverObjectFactory.clonePointer(this), FfiConverterTypeTypeTextInput.lower(input, nativeModule().rustbuffer_alloc), callStatus);
|
|
1415
|
-
},
|
|
1416
|
-
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1862
|
+
throw __error;
|
|
1863
|
+
}
|
|
1417
1864
|
}
|
|
1418
1865
|
uniffiDestroy() {
|
|
1419
1866
|
const ptr = this[destructorGuardSymbol];
|
|
@@ -1723,6 +2170,8 @@ const FfiConverterSequenceTypeImageContent = new FfiConverterArray(FfiConverterT
|
|
|
1723
2170
|
const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1724
2171
|
// FfiConverter for EmbeddedDriverConnection | undefined
|
|
1725
2172
|
const FfiConverterOptionalTypeEmbeddedDriverConnection = new FfiConverterOptional(FfiConverterTypeEmbeddedDriverConnection);
|
|
2173
|
+
// FfiConverter for DriverOptions | undefined
|
|
2174
|
+
const FfiConverterOptionalTypeDriverOptions = new FfiConverterOptional(FfiConverterTypeDriverOptions);
|
|
1726
2175
|
/**
|
|
1727
2176
|
* This should be called before anything else.
|
|
1728
2177
|
*
|
|
@@ -1750,64 +2199,79 @@ function uniffiEnsureInitialized() {
|
|
|
1750
2199
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions() !== 61823) {
|
|
1751
2200
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_func_request_mac_os_permissions");
|
|
1752
2201
|
}
|
|
1753
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect() !==
|
|
2202
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect() !== 60859) {
|
|
1754
2203
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect");
|
|
1755
2204
|
}
|
|
1756
|
-
if (nativeModule().
|
|
2205
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind() !== 43287) {
|
|
2206
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_constructor_cuadriver_connect_with_client_kind");
|
|
2207
|
+
}
|
|
2208
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create() !== 15191) {
|
|
2209
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create");
|
|
2210
|
+
}
|
|
2211
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create_with_client_kind() !== 3630) {
|
|
2212
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_constructor_cuadriver_create_with_client_kind");
|
|
2213
|
+
}
|
|
2214
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool() !== 24493) {
|
|
1757
2215
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_call_tool");
|
|
1758
2216
|
}
|
|
1759
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_click() !==
|
|
2217
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_click() !== 56077) {
|
|
1760
2218
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_click");
|
|
1761
2219
|
}
|
|
1762
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_drag() !==
|
|
2220
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_drag() !== 25742) {
|
|
1763
2221
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_drag");
|
|
1764
2222
|
}
|
|
1765
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_end_session() !==
|
|
2223
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_end_session() !== 18486) {
|
|
1766
2224
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_end_session");
|
|
1767
2225
|
}
|
|
1768
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_escalate_session() !==
|
|
2226
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_escalate_session() !== 6924) {
|
|
1769
2227
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_escalate_session");
|
|
1770
2228
|
}
|
|
1771
|
-
if (nativeModule().
|
|
2229
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_execution_mode() !== 2639) {
|
|
2230
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_execution_mode");
|
|
2231
|
+
}
|
|
2232
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_cursor_position() !== 34285) {
|
|
1772
2233
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_cursor_position");
|
|
1773
2234
|
}
|
|
1774
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_desktop_state() !==
|
|
2235
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_desktop_state() !== 65084) {
|
|
1775
2236
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_desktop_state");
|
|
1776
2237
|
}
|
|
1777
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size() !==
|
|
2238
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size() !== 55616) {
|
|
1778
2239
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_screen_size");
|
|
1779
2240
|
}
|
|
1780
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state() !==
|
|
2241
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state() !== 49966) {
|
|
1781
2242
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_get_session_state");
|
|
1782
2243
|
}
|
|
1783
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey() !==
|
|
2244
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey() !== 53333) {
|
|
1784
2245
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_hotkey");
|
|
1785
2246
|
}
|
|
1786
2247
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available() !== 42961) {
|
|
1787
2248
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_is_available");
|
|
1788
2249
|
}
|
|
1789
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json() !==
|
|
2250
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json() !== 33039) {
|
|
1790
2251
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_list_tools_json");
|
|
1791
2252
|
}
|
|
1792
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata() !==
|
|
2253
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata() !== 55026) {
|
|
1793
2254
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_metadata");
|
|
1794
2255
|
}
|
|
1795
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor() !==
|
|
2256
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor() !== 18320) {
|
|
1796
2257
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_move_cursor");
|
|
1797
2258
|
}
|
|
1798
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key() !==
|
|
2259
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key() !== 63712) {
|
|
1799
2260
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_press_key");
|
|
1800
2261
|
}
|
|
1801
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_scroll() !==
|
|
2262
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_scroll() !== 52290) {
|
|
1802
2263
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_scroll");
|
|
1803
2264
|
}
|
|
1804
|
-
if (nativeModule().
|
|
2265
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown() !== 36331) {
|
|
2266
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_shutdown");
|
|
2267
|
+
}
|
|
2268
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_socket_path() !== 48126) {
|
|
1805
2269
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_socket_path");
|
|
1806
2270
|
}
|
|
1807
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_start_session() !==
|
|
2271
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_start_session() !== 45055) {
|
|
1808
2272
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_start_session");
|
|
1809
2273
|
}
|
|
1810
|
-
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_type_text() !==
|
|
2274
|
+
if (nativeModule().uniffi_cua_driver_sdk_checksum_method_cuadriver_type_text() !== 25156) {
|
|
1811
2275
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_driver_sdk_checksum_method_cuadriver_type_text");
|
|
1812
2276
|
}
|
|
1813
2277
|
if (nativeModule().uniffi_cua_driver_sdk_checksum_constructor_embeddedcuadriverhost_new() !== 10108) {
|
|
@@ -1840,7 +2304,9 @@ export default Object.freeze({
|
|
|
1840
2304
|
converters: {
|
|
1841
2305
|
FfiConverterTypeCuaDriver,
|
|
1842
2306
|
FfiConverterTypeDriverError,
|
|
2307
|
+
FfiConverterTypeDriverExecutionMode,
|
|
1843
2308
|
FfiConverterTypeDriverMetadata,
|
|
2309
|
+
FfiConverterTypeDriverOptions,
|
|
1844
2310
|
FfiConverterTypeEmbeddedCuaDriverHost,
|
|
1845
2311
|
FfiConverterTypeEmbeddedDriverConnection,
|
|
1846
2312
|
FfiConverterTypeEmbeddedDriverError,
|
|
@@ -1852,6 +2318,7 @@ export default Object.freeze({
|
|
|
1852
2318
|
FfiConverterTypeEmbeddedPermissionMode,
|
|
1853
2319
|
FfiConverterTypeImageContent,
|
|
1854
2320
|
FfiConverterTypeMacOsPermissionStatus,
|
|
2321
|
+
FfiConverterTypeSdkClientKind,
|
|
1855
2322
|
FfiConverterTypeToolResult,
|
|
1856
2323
|
}
|
|
1857
2324
|
});
|