@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 CHANGED
@@ -15,10 +15,10 @@ Supported platforms: macOS (arm64, x64), Linux (arm64, x64).
15
15
  ## Usage
16
16
 
17
17
  ```sh
18
- substructure serve --worker-url http://localhost:4444
18
+ subs local start --dev --provider openrouter --worker-url http://localhost:4444
19
19
  ```
20
20
 
21
- Run `substructure --help` for the full command list.
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.5",
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
- "substructure": "./bin/substructure.js"
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.5",
40
- "@substructure.ai/cli-darwin-x64": "0.1.5",
41
- "@substructure.ai/cli-linux-arm64": "0.1.5",
42
- "@substructure.ai/cli-linux-x64": "0.1.5"
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.SUBSTRUCTURE_BIN) return process.env.SUBSTRUCTURE_BIN;
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", "substructure");
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, run the server directly with: cargo run -p substructure`
31
+ `If you're developing locally, build the Rust binary with: cargo build -p substructure-core --bin subs`
32
32
  );
33
33
  }
34
34
  }