@trycua/cua 0.2.0
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 +121 -0
- package/bin/cua.js +37 -0
- package/browser/cua_sdk-ffi.d.ts +6 -0
- package/browser/cua_sdk-ffi.js +3 -0
- package/browser/cua_sdk-ffi.ts +14 -0
- package/browser/cua_sdk.d.ts +2237 -0
- package/browser/cua_sdk.js +2607 -0
- package/browser/cua_sdk.ts +3644 -0
- package/browser/cyclops_sdk_schema-ffi.d.ts +6 -0
- package/browser/cyclops_sdk_schema-ffi.js +3 -0
- package/browser/cyclops_sdk_schema-ffi.ts +14 -0
- package/browser/cyclops_sdk_schema.d.ts +996 -0
- package/browser/cyclops_sdk_schema.js +2194 -0
- package/browser/cyclops_sdk_schema.ts +2934 -0
- package/browser/fleet_sdk-ffi.d.ts +28 -0
- package/browser/fleet_sdk-ffi.js +3 -0
- package/browser/fleet_sdk-ffi.ts +35 -0
- package/browser/fleet_sdk.d.ts +3056 -0
- package/browser/fleet_sdk.js +5088 -0
- package/browser/fleet_sdk.ts +6830 -0
- package/browser/index.d.ts +2 -0
- package/browser/index.js +18 -0
- package/browser/index.web.ts +34 -0
- package/browser/tsconfig.json +20 -0
- package/browser/wasm-bindgen/index.d.ts +2346 -0
- package/browser/wasm-bindgen/index.js +6642 -0
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +1154 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +207 -0
- package/dist/mcp.d.ts +33 -0
- package/dist/mcp.js +41 -0
- package/dist/native/cua_sdk-ffi.d.ts +1038 -0
- package/dist/native/cua_sdk-ffi.js +5095 -0
- package/dist/native/cua_sdk.d.ts +15906 -0
- package/dist/native/cua_sdk.js +27061 -0
- package/dist/native/index.d.ts +7 -0
- package/dist/native/index.js +12 -0
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/dist/spaces/cursorArt.d.ts +27 -0
- package/dist/spaces/cursorArt.js +59 -0
- package/dist/spaces/errors.d.ts +81 -0
- package/dist/spaces/errors.js +102 -0
- package/dist/spaces/events.d.ts +154 -0
- package/dist/spaces/events.js +182 -0
- package/dist/spaces/groups.d.ts +130 -0
- package/dist/spaces/groups.js +275 -0
- package/dist/spaces/host.d.ts +71 -0
- package/dist/spaces/host.js +154 -0
- package/dist/spaces/index.d.ts +48 -0
- package/dist/spaces/index.js +44 -0
- package/dist/spaces/pip.d.ts +128 -0
- package/dist/spaces/pip.js +250 -0
- package/dist/spaces/presence.d.ts +187 -0
- package/dist/spaces/presence.js +449 -0
- package/dist/spaces/presenceTypes.check.d.ts +12 -0
- package/dist/spaces/presenceTypes.check.js +1 -0
- package/dist/spaces/presenceTypes.d.ts +47 -0
- package/dist/spaces/presenceTypes.js +7 -0
- package/dist/spaces/routines.d.ts +158 -0
- package/dist/spaces/routines.js +339 -0
- package/dist/spaces/thread.d.ts +147 -0
- package/dist/spaces/thread.js +285 -0
- package/dist/spaces/transport/http.d.ts +51 -0
- package/dist/spaces/transport/http.js +113 -0
- package/dist/spaces/transport/index.d.ts +19 -0
- package/dist/spaces/transport/index.js +19 -0
- package/dist/spaces/transport/session.d.ts +120 -0
- package/dist/spaces/transport/session.js +188 -0
- package/dist/spaces/transport/tauri.d.ts +50 -0
- package/dist/spaces/transport/tauri.js +90 -0
- package/dist/spaces/transport/types.d.ts +123 -0
- package/dist/spaces/transport/types.js +59 -0
- package/dist/teleport/controller.d.ts +34 -0
- package/dist/teleport/controller.js +107 -0
- package/dist/teleport/drop.d.ts +62 -0
- package/dist/teleport/drop.js +138 -0
- package/dist/teleport/dropZone.d.ts +59 -0
- package/dist/teleport/dropZone.js +166 -0
- package/dist/teleport/element.d.ts +28 -0
- package/dist/teleport/element.js +340 -0
- package/dist/teleport/index.d.ts +32 -0
- package/dist/teleport/index.js +32 -0
- package/dist/teleport/install.d.ts +31 -0
- package/dist/teleport/install.js +65 -0
- package/dist/teleport/model.d.ts +245 -0
- package/dist/teleport/model.js +334 -0
- package/dist/teleport/windowDrag.d.ts +86 -0
- package/dist/teleport/windowDrag.js +71 -0
- package/package.json +93 -0
package/browser/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated by libs/cua/scripts/build-wasm.mjs.
|
|
2
|
+
export * from "./cua_sdk.js"
|
|
3
|
+
import init from "./wasm-bindgen/index.js"
|
|
4
|
+
import * as cua_sdk from "./cua_sdk.js"
|
|
5
|
+
import * as cyclops_sdk_schema from "./cyclops_sdk_schema.js"
|
|
6
|
+
import * as fleet_sdk from "./fleet_sdk.js"
|
|
7
|
+
|
|
8
|
+
let ready
|
|
9
|
+
/** Loads the wasm module (URL, bytes or a compiled module); call once before use. */
|
|
10
|
+
export function initialize(wasm) {
|
|
11
|
+
ready ??= (async () => {
|
|
12
|
+
await init({ module_or_path: wasm ?? new URL("./wasm-bindgen/index_bg.wasm", import.meta.url) })
|
|
13
|
+
cua_sdk.default.initialize()
|
|
14
|
+
cyclops_sdk_schema.default.initialize()
|
|
15
|
+
fleet_sdk.default.initialize()
|
|
16
|
+
})()
|
|
17
|
+
return ready
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by uniffi-bindgen-react-native
|
|
2
|
+
// Export the generated bindings to the app.
|
|
3
|
+
export * from './cua_sdk.js';
|
|
4
|
+
export * from './cyclops_sdk_schema.js';
|
|
5
|
+
export * from './fleet_sdk.js';
|
|
6
|
+
|
|
7
|
+
// Now import the bindings so we can:
|
|
8
|
+
// - intialize them
|
|
9
|
+
// - export them as namespaced objects as the default export.
|
|
10
|
+
import * as cua_sdk from './cua_sdk.js';
|
|
11
|
+
import * as cyclops_sdk_schema from './cyclops_sdk_schema.js';
|
|
12
|
+
import * as fleet_sdk from './fleet_sdk.js';
|
|
13
|
+
|
|
14
|
+
import initAsync from './wasm-bindgen/index.js';
|
|
15
|
+
import wasmPath from './wasm-bindgen/index_bg.wasm';
|
|
16
|
+
|
|
17
|
+
export async function uniffiInitAsync() {
|
|
18
|
+
await initAsync({ module_or_path: wasmPath })
|
|
19
|
+
|
|
20
|
+
// Initialize the generated bindings: mostly checksums, but also callbacks.
|
|
21
|
+
// - the boolean flag ensures this loads exactly once, even if the JS code
|
|
22
|
+
// is reloaded (e.g. during development with metro).
|
|
23
|
+
cua_sdk.default.initialize();
|
|
24
|
+
cyclops_sdk_schema.default.initialize();
|
|
25
|
+
fleet_sdk.default.initialize();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Export the crates as individually namespaced objects.
|
|
29
|
+
export default {
|
|
30
|
+
cua_sdk,
|
|
31
|
+
cyclops_sdk_schema,
|
|
32
|
+
fleet_sdk,
|
|
33
|
+
};
|
|
34
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"strict": false,
|
|
9
|
+
"noImplicitAny": false,
|
|
10
|
+
"outDir": ".",
|
|
11
|
+
"rootDir": "."
|
|
12
|
+
},
|
|
13
|
+
"include": [
|
|
14
|
+
"*.ts"
|
|
15
|
+
],
|
|
16
|
+
"exclude": [
|
|
17
|
+
"*.d.ts",
|
|
18
|
+
"index.web.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|