@synsema/wasm 0.6.4 → 0.6.6
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 +3 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/synsema.wasm +0 -0
package/README.md
CHANGED
|
@@ -14,7 +14,9 @@ await syn.ready();
|
|
|
14
14
|
const r = syn.run(`print(keccak256("hola"))`);
|
|
15
15
|
r.output; // ["…"] — the program's print lines
|
|
16
16
|
r.errors; // [] — parse/runtime errors are data, never exceptions
|
|
17
|
-
r.audit; // every capability check
|
|
17
|
+
r.audit; // every capability check: {capability, granted, source, reason, origin}
|
|
18
|
+
// origin: "program" (asked/called by the program) | "runtime" (ambient host grant)
|
|
19
|
+
// sign/spend/wallet/reveal need an audit sink: offer `kv` (namespace "audit") or they refuse
|
|
18
20
|
```
|
|
19
21
|
|
|
20
22
|
## Lending capabilities (the host)
|
package/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export interface AuditEntry {
|
|
|
64
64
|
granted: boolean;
|
|
65
65
|
source: string;
|
|
66
66
|
reason: string;
|
|
67
|
+
/** "program" (the program asked or called) or "runtime" (an ambient host grant, e.g. time/llm under a ceiling). */
|
|
68
|
+
origin: "program" | "runtime";
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
export interface RunResult {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synsema/wasm",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Synsema — the programming language for AI agents — embedded as WebAssembly: run .syn programs inside browsers, Node/Bun/Deno and edge runtimes, lending them http/kv/llm from your app",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/synsema.wasm
CHANGED
|
Binary file
|