@yodaos-pkg/aix 0.1.0 → 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.
Files changed (3) hide show
  1. package/README.md +50 -0
  2. package/jsr.json +1 -1
  3. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @yodaos-jsar/aix
2
+
3
+ `@yodaos-jsar/aix` is a library for reading and managing **.aix** (AI eXecutable) packages in the web environment using WASM. The `.aix` format is an extension of the [Open Agent Format (OAF)](https://openagentformat.com/spec.html), designed to package AI agents with rich UI/UX capabilities powered by Ink Mini Programs.
4
+
5
+ ## Library Usage (JS/TS)
6
+
7
+ You can use this library in your JavaScript or TypeScript project to read `.aix` files.
8
+
9
+ ```typescript
10
+ import { AIX } from '@yodaos-jsar/aix';
11
+
12
+ // Load the .aix file as a Uint8Array
13
+ const response = await fetch('path/to/your.aix');
14
+ const buffer = await response.arrayBuffer();
15
+ const data = new Uint8Array(buffer);
16
+
17
+ // Create an AIX instance
18
+ const aix = await AIX.from(data);
19
+
20
+ // List files
21
+ const files = aix.list();
22
+ console.log('Files in package:', files);
23
+
24
+ // Get version metadata
25
+ const version = aix.getVersion();
26
+ console.log('Package version:', version);
27
+
28
+ // Read a specific file
29
+ const appJson = aix.readFile('app.json');
30
+ const content = new TextDecoder().decode(appJson);
31
+ console.log('app.json content:', JSON.parse(content));
32
+ ```
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ npm install @yodaos-jsar/aix
38
+ ```
39
+
40
+ ## Build
41
+
42
+ To build the WASM and TS code:
43
+
44
+ ```bash
45
+ npm run build
46
+ ```
47
+
48
+ ## Core Library
49
+
50
+ The core Rust logic is provided by the [aix](../aix) package.
package/jsr.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@yodaos-pkg/aix",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "exports": "./index.js"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yodaos-pkg/aix",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Ink AIX Package Reader",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",