@ai-ecoverse/slicc 1.49.33 → 1.49.35
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 -3
- package/bin/slicc.js +9 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -239,7 +239,7 @@ slicc works with slicc-jerk (`jerk`), which runs on this machine and gets tokens
|
|
|
239
239
|
|
|
240
240
|
fnox (secrets on a real OS) is upstream jdx/fnox: install it from https://fnox.jdx.dev. slicc doesn't install it.
|
|
241
241
|
|
|
242
|
-
**With npm.** `@ai-ecoverse/slicc` and `sliccy` list `@ai-ecoverse/slicc-jerk` as an `optionalDependency` (`^` the latest release), but only when it is on the registry when the release is staged (`npm-stage.mjs --companions`); otherwise it is left out with a notice. The publish check that waits for the platform packages doesn't wait for it. When the package is installed, the launcher puts its `node_modules/.bin` first on `PATH` for the binary, so `jerk` resolves for slicc and its children.
|
|
242
|
+
**With npm.** `@ai-ecoverse/slicc` and `sliccy` list `@ai-ecoverse/slicc-jerk` as an `optionalDependency` (`^` the latest release), but only when it is on the registry when the release is staged (`npm-stage.mjs --companions`); otherwise it is left out with a notice. The publish check that waits for the platform packages doesn't wait for it. When the package is installed, the launcher puts its `node_modules/.bin` first on `PATH` for the binary, so `jerk` resolves for slicc and its children. On Windows it puts the `bin` folder of `@ai-ecoverse/slicc-jerk-win32-<arch>`, which holds `jerk.exe`, there instead, and adds nothing when that package is missing.
|
|
243
243
|
|
|
244
244
|
**`slicc install jerk`** installs jerk into the data folder's `bin` (any other name, or none, exits 2 with `slicc install: name jerk` and the usage):
|
|
245
245
|
- `jerk` from the latest release of `ai-ecoverse/slicc-jerk` (0.6.0 or later, the first with the `--via-link` calls the link needs; an older latest release is refused with `slicc install: ai-ecoverse/slicc-jerk <version> is older than 0.6.0, the first release slicc works with`);
|
|
@@ -736,7 +736,7 @@ Any value of `credentialed` other than `false` or `null` counts as true, so a ma
|
|
|
736
736
|
|
|
737
737
|
Link spec §5.14 (J1). slicc-jerk (`jerk`, [Companion tools](#companion-tools)) gets tokens on this machine. Over the link seven can ask it for status, start sign-ins a human completes, and seal a lease into its vault. No token crosses the link except in `seal`'s `lease` event, which only seven's link layer reads and hands to the vault.
|
|
738
738
|
|
|
739
|
-
**Offered** when host jerk is found: of the first `jerk` on `PATH` and `jerk` in the data folder's `bin`, in that order, the first whose `jerk --version` names 0.6.0 or later. 0.6.0 is the first slicc-jerk with the `--via-link` calls below. An older jerk counts as absent: slicc says `jerk: host jerk <version> is older than 0.6.0; run slicc install jerk`, and HELLO has neither cap.
|
|
739
|
+
**Offered** when host jerk is found: of the first `jerk` on `PATH` and `jerk` in the data folder's `bin`, in that order, the first whose `jerk --version` names 0.6.0 or later. 0.6.0 is the first slicc-jerk with the `--via-link` calls below. On Windows slicc only runs a `.exe`: any other candidate, such as npm's `jerk.cmd`, stands for the `@ai-ecoverse/slicc-jerk-win32-<arch>` `bin\jerk.exe` of the same npm install, and is skipped when there is none. An older jerk counts as absent: slicc says `jerk: host jerk <version> is older than 0.6.0; run slicc install jerk`, and HELLO has neither cap.
|
|
740
740
|
- `slicc` and `slicc attach`: caps `jerk` and `jerk-seal`, unless `--no-jerk`.
|
|
741
741
|
- `follow`: only with `--jerk` (cap `jerk`) or `--jerk-seal` (both).
|
|
742
742
|
- `prompt`, `watch`, `wait` and `abort`: never.
|
|
@@ -761,7 +761,7 @@ Link spec §5.14 (J1). slicc-jerk (`jerk`, [Companion tools](#companion-tools))
|
|
|
761
761
|
- jerk's exits 0 to 5 are results. slicc never logs a lease or a result's contents, only `jerk: <op> <provider>: exit <n>`.
|
|
762
762
|
|
|
763
763
|
**RESETs:**
|
|
764
|
-
- `EPROTO`: an unknown op, a missing or malformed `provider` (`^[a-z0-9][a-z0-9-]{0,63}$`) or `lease_id`, a `duration` out of range, a `scope` that isn't printable words, or a `param` whose key isn't `^[a-z][a-z0-9_]{0,31}$` or whose value isn't printable (at most 16, 256 bytes each). Host jerk checks the keys against the provider's own `params` and exits 2 for unknown ones.
|
|
764
|
+
- `EPROTO`: an unknown op, a missing or malformed `provider` (`^[a-z0-9][a-z0-9-]{0,63}$`) or `lease_id`, a `duration` out of range, a `scope` that isn't printable words, or a `param` whose key isn't `^[a-z][a-z0-9_]{0,31}$` or whose value isn't printable (at most 16, 256 bytes each). On Windows, also any value for jerk (`scope`, `param`, `lease_id`) that contains `%`, `&`, `|`, `^`, `<`, `>`, `!`, `"`, `(`, `)` or anything outside ASCII. Host jerk checks the keys against the provider's own `params` and exits 2 for unknown ones.
|
|
765
765
|
- `EACCES`: `drop` (there's no such op; `unseal` drops what jerk minted), and `seal` or `unseal` without `jerk-seal`.
|
|
766
766
|
- `EBUSY`: a second `create` on a link while one runs.
|
|
767
767
|
- `ETIMEDOUT`: a `create` still running after 2 min 30 s, which is then killed. Other ops get 60 s and then answer exit 1, `jerk timed out`.
|
package/bin/slicc.js
CHANGED
|
@@ -46,14 +46,20 @@ function binaryPath() {
|
|
|
46
46
|
|
|
47
47
|
const companions = { '@ai-ecoverse/slicc-jerk': 'jerk' };
|
|
48
48
|
|
|
49
|
+
function companionPaths(modules, pkg, bin) {
|
|
50
|
+
const bins = path.join(modules, '.bin');
|
|
51
|
+
if (process.platform !== 'win32') return [path.join(bins, bin)];
|
|
52
|
+
const exe = path.join(`${pkg}-win32-${process.arch}`, 'bin', `${bin}.exe`);
|
|
53
|
+
return [path.join(modules, pkg, 'node_modules', exe), path.join(modules, exe), path.join(bins, `${bin}.exe`)];
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
function companionDirs() {
|
|
50
|
-
const names = (bin) => (process.platform === 'win32' ? [`${bin}.cmd`, `${bin}.exe`, bin] : [bin]);
|
|
51
57
|
const dirs = [];
|
|
52
58
|
for (const [pkg, bin] of Object.entries(companions)) {
|
|
53
59
|
for (const modules of require.resolve.paths(pkg) || []) {
|
|
54
60
|
if (!fs.existsSync(path.join(modules, pkg, 'package.json'))) continue;
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
61
|
+
const found = companionPaths(modules, pkg, bin).find((file) => fs.existsSync(file));
|
|
62
|
+
if (found && !dirs.includes(path.dirname(found))) dirs.push(path.dirname(found));
|
|
57
63
|
break;
|
|
58
64
|
}
|
|
59
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc",
|
|
3
|
-
"version": "1.49.
|
|
3
|
+
"version": "1.49.35",
|
|
4
4
|
"description": "SLICC's command line for seven: links a machine's network, compute and browsers to seven over WebRTC",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@ai-ecoverse/slicc-darwin-arm64": "1.49.
|
|
22
|
-
"@ai-ecoverse/slicc-darwin-amd64": "1.49.
|
|
23
|
-
"@ai-ecoverse/slicc-linux-arm64": "1.49.
|
|
24
|
-
"@ai-ecoverse/slicc-linux-amd64": "1.49.
|
|
25
|
-
"@ai-ecoverse/slicc-windows-arm64": "1.49.
|
|
26
|
-
"@ai-ecoverse/slicc-windows-amd64": "1.49.
|
|
27
|
-
"@ai-ecoverse/slicc-jerk": "^1.3.
|
|
21
|
+
"@ai-ecoverse/slicc-darwin-arm64": "1.49.35",
|
|
22
|
+
"@ai-ecoverse/slicc-darwin-amd64": "1.49.35",
|
|
23
|
+
"@ai-ecoverse/slicc-linux-arm64": "1.49.35",
|
|
24
|
+
"@ai-ecoverse/slicc-linux-amd64": "1.49.35",
|
|
25
|
+
"@ai-ecoverse/slicc-windows-arm64": "1.49.35",
|
|
26
|
+
"@ai-ecoverse/slicc-windows-amd64": "1.49.35",
|
|
27
|
+
"@ai-ecoverse/slicc-jerk": "^1.3.3"
|
|
28
28
|
}
|
|
29
29
|
}
|