@ai-ecoverse/wasi-fnox 0.0.0 → 1.39.0-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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 jdx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,31 @@
1
1
  # @ai-ecoverse/wasi-fnox
2
2
 
3
- 🐣 This package name has been claimed with [fledgling](https://github.com/dmno-dev/fledgling) for [https://github.com/ai-ecoverse/homescoop/tree/main/packages/wasi-fnox](https://github.com/ai-ecoverse/homescoop/tree/main/packages/wasi-fnox), and a real release will land here soon.
3
+ [fnox](https://fnox.jdx.dev) 1.39 for [slicc](https://github.com/ai-ecoverse/slicc)'s kernel: a WASI preview1 command, `fnox`, built from upstream jdx/fnox v1.39.0 with [homescoop's patch series](https://github.com/ai-ecoverse/homescoop/tree/main/packages/wasi-fnox) (`NNNN-*.patch`, listed in `recipe.yaml`). The patches are carried by homescoop, not upstreamed.
4
4
 
5
- This is a placeholder — there is nothing to install yet.
5
+ ## In seven
6
6
 
7
- ---
7
+ Seven's vault holds the secret values, and fnox keeps only placeholders. The vault is reached through slicc-kernel's `/dev/sealed`.
8
8
 
9
- Want to claim a name of your own? Run `npx fledgling add <name> --new --yes` — it reserves the name on npm and can set up token-less (OIDC trusted) publishing for when you are ready.
9
+ - **Configuration:** bios points fnox at `/etc/fnox` (`FNOX_CONFIG_DIR`). The default provider there is `seven`, of type `sealed`.
10
+ - **`fnox set NAME`:**
11
+ - with the value on a pipe, it seals the value and stores the placeholder;
12
+ - on a terminal, it opens the vault's dialog instead of prompting;
13
+ - it refuses a value given as an argument.
14
+ - **`fnox get`, `export`, `env`, `hook-env`:** print placeholders.
15
+ - **`fnox exec -- cmd`:** asks the kernel to hand the command the values its policy allows (`materialize`), then runs it. fnox never sees a value.
16
+ - **`fnox exec --shell-grants -- cmd`:** the same for the secrets the vault grants to every shell; the agent's bash hook uses it.
17
+ - **`fnox proxy run -- cmd`:** runs the command with placeholders only. The realm proxy fills in values for the rules in `/etc/fnox/config.toml`.
18
+ - **`fnox proxy rules --json`:** prints a project's rules as proposals.
19
+ - **`fnox check`:** asks the vault about each sealed record.
20
+ - **Refused:** `as_file` secrets, `sync`, `reencrypt`, and `fnox edit` (use `fnox set`).
21
+ - **age:** decrypting an age secret isn't supported yet (slicc-vault#2). Encrypting to age recipients works.
22
+ - **Other providers:** only `sealed`, `age` and `plain` are built. Values from `plain` are passed on with a warning.
23
+ - **Not in this build:** leases, the daemon, the TUI and the MCP server.
24
+
25
+ It needs slicc-kernel 1.83.0 or later (`engines`): `/dev/sealed` arrived in slicc-kernel 1.68.0 (KS-2), and the exec tickets that `fnox exec` redeems in slicc-kernel 1.83.0 (KS-8).
26
+
27
+ Without `/dev/sealed`, every sealed operation fails with `not running in seven: /dev/sealed is missing`.
28
+
29
+ ## Licence
30
+
31
+ fnox is MIT (see `LICENSE`). `THIRD-PARTY-NOTICES.md` lists the crates, Rust's standard library and wasi-libc that `bin/fnox.wasm` links.