@substructure.ai/cli 0.1.5 → 0.1.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 +2 -2
- package/bin/{substructure.js → subs.js} +0 -0
- package/package.json +6 -6
- package/src/index.js +3 -3
package/README.md
CHANGED
|
@@ -15,10 +15,10 @@ Supported platforms: macOS (arm64, x64), Linux (arm64, x64).
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
|
|
18
|
+
subs local start --dev --provider openrouter --worker-url http://localhost:4444
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Run `
|
|
21
|
+
Run `subs --help` for the full command list. Cloud management commands live under `subs cloud …`.
|
|
22
22
|
|
|
23
23
|
## Links
|
|
24
24
|
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substructure.ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "CLI for Substructure",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
29
|
-
"
|
|
29
|
+
"subs": "./bin/subs.js"
|
|
30
30
|
},
|
|
31
31
|
"main": "./src/index.js",
|
|
32
32
|
"files": [
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@substructure.ai/cli-darwin-arm64": "0.1.
|
|
40
|
-
"@substructure.ai/cli-darwin-x64": "0.1.
|
|
41
|
-
"@substructure.ai/cli-linux-arm64": "0.1.
|
|
42
|
-
"@substructure.ai/cli-linux-x64": "0.1.
|
|
39
|
+
"@substructure.ai/cli-darwin-arm64": "0.1.6",
|
|
40
|
+
"@substructure.ai/cli-darwin-x64": "0.1.6",
|
|
41
|
+
"@substructure.ai/cli-linux-arm64": "0.1.6",
|
|
42
|
+
"@substructure.ai/cli-linux-x64": "0.1.6"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/src/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const PLATFORMS = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export function resolve() {
|
|
13
|
-
if (process.env.
|
|
13
|
+
if (process.env.SUBS_BIN) return process.env.SUBS_BIN;
|
|
14
14
|
|
|
15
15
|
const key = `${platform()}-${arch()}`;
|
|
16
16
|
const pkg = PLATFORMS[key];
|
|
@@ -24,11 +24,11 @@ export function resolve() {
|
|
|
24
24
|
|
|
25
25
|
try {
|
|
26
26
|
const pkgJson = require.resolve(`${pkg}/package.json`);
|
|
27
|
-
return join(pkgJson, "..", "bin", "
|
|
27
|
+
return join(pkgJson, "..", "bin", "subs");
|
|
28
28
|
} catch {
|
|
29
29
|
throw new Error(
|
|
30
30
|
`Could not find package ${pkg}. Make sure it's installed.\n` +
|
|
31
|
-
`If you're developing locally,
|
|
31
|
+
`If you're developing locally, build the Rust binary with: cargo build -p substructure-core --bin subs`
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
}
|