@aphrody/winclean 0.0.0-stage → 0.1.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 +23 -3
- package/package.json +36 -4
- package/src/catalog.ts +3670 -0
- package/src/generated.ts +3726 -0
- package/src/index.ts +80 -0
- package/src/result.ts +73 -0
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
|
2
|
+
# @aphrody/winclean (anciennement @aphrody-code/winclean)
|
|
3
|
+
|
|
4
|
+
Bun client for the Aphrody OS kernel: 166 typed Windows computer-use and OS-control
|
|
5
|
+
tools routed through the same local endpoint as MCP, A2A, CLI and GUI.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { Winclean } from "@aphrody/winclean";
|
|
9
|
+
|
|
10
|
+
using wc = Winclean.open();
|
|
11
|
+
const obs = (await wc.computerObserve({ windowHandle: 0 })).ok();
|
|
12
|
+
await Bun.write("window.png", obs.images[0]!.bytes);
|
|
13
|
+
await wc.computerClick({ windowHandle: 0, x: 120, y: 48 });
|
|
14
|
+
const os = (await wc.call("get_os_info")).json();
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- Calls use the local kernel endpoint selected by `@aphrody/os`. This package is a
|
|
18
|
+
private compatibility facade; new code must import `KernelClient` from `@aphrody/os`.
|
|
19
|
+
- `callSync` and direct DLL loading are intentionally removed.
|
|
20
|
+
- `src/generated.ts` mirrors the canonical Rust catalog; do not edit it by hand.
|
|
21
|
+
- Tests: `bun test`.
|
|
22
|
+
|
|
23
|
+
See [`docs/winclean-native-import.md`](../../docs/winclean-native-import.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aphrody/winclean",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Kernel-backed Bun client for the unified Aphrody OS WinClean catalog (166 tools).",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "aphrody",
|
|
7
|
+
"files": [
|
|
8
|
+
"src",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"os": [
|
|
12
|
+
"win32"
|
|
13
|
+
],
|
|
14
|
+
"cpu": [
|
|
15
|
+
"x64"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "src/index.ts",
|
|
19
|
+
"types": "src/index.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./src/index.ts"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "bun build src/index.ts --target bun --packages external --outdir dist",
|
|
28
|
+
"lint": "oxlint src test",
|
|
29
|
+
"typecheck": "tsc --noEmit -p .",
|
|
30
|
+
"test": "bun test"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@aphrody/os": "0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"bun": ">=1.4.2"
|
|
37
|
+
}
|
|
38
|
+
}
|