@kana-ai/edgar-runtime 0.1.2 → 0.1.3
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 +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ node --disable-proto=throw --permission \
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
- `<entry>` is the file that `bin` names in the runtime's `package.json`: `src/main.ts` in this repository, and `dist/src/main.js` in a packed install. `<extension module>` is the file that `exports["."]` names in the extension's `package.json`. When the field is missing, the engine uses `src/main.ts` and `src/index.ts`.
|
|
17
|
-
- The environment holds only `PATH`, `HOME` (an empty folder for each extension, `runtimes/<extension>/` in the state folder) and an empty `NODE_OPTIONS`. The process runs in its own process group, and the worker kills the group when it stops.
|
|
17
|
+
- The environment holds only `PATH`, `HOME` (an empty folder for each extension, `runtimes/<extension>/` in the state folder) and an empty `NODE_OPTIONS`. An extension whose manifest grants `network:127.0.0.1`, to read EDGAR's own API, also gets the API token in `EDGAR_API_TOKEN`; its runtime may start no child, so no command sees the token. The process runs in its own process group, and the worker kills the group when it stops.
|
|
18
18
|
- Node 24 refuses `--experimental-permission`. The flag is `--permission`.
|
|
19
19
|
- The process reads its own package, the SDK and its `undici` copy, and the extension. In a pnpm workspace the SDK and `undici` are outside `apps/runtime`, so read access to its own package path alone is not enough: Node stops at the first import. Give read access to each of the four paths above. The runtime needs no write access, no child process, no worker and no addon.
|
|
20
20
|
- On Node 25 or later, the worker adds `--allow-net` only for an extension whose approved manifest grants a `network:<host>` capability, or whose project names hosts in `[extensions.<name>] hosts`, so an extension with no host has no network at all. `--allow-net` opens every host, because Node has no form for one host, so the runtime's own `fetch` policy limits the hosts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kana-ai/edgar-runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The process that runs one extension's code for the EDGAR engine, over JSON-RPC on stdio.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"#*": "./dist/src/*.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@kana-ai/edgar-contracts": "0.1.
|
|
23
|
-
"@kana-ai/edgar-sdk": "0.1.
|
|
22
|
+
"@kana-ai/edgar-contracts": "0.1.3",
|
|
23
|
+
"@kana-ai/edgar-sdk": "0.1.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "24.19.2",
|