@mnmal-ai/substrate-tui 1.0.0-alpha.1 → 1.0.0-alpha.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.
@@ -2,11 +2,12 @@
2
2
  import { t as colorDepthEnv } from "../terminal-XfKFiD7r.js";
3
3
  import { basename } from "node:path";
4
4
  import { DEFAULT_CAPABILITIES, makeTokenProvider } from "@mnmal-ai/substrate/client";
5
+ import { trimTrailingSlashes } from "@mnmal-ai/substrate/sdk";
5
6
 
6
7
  //#region src/config.ts
7
8
  const message = (err) => err instanceof Error ? err.message : String(err);
8
9
  function readConfig(env, cwd) {
9
- const endpoint = (env.SUBSTRATE_URL ?? "").replace(/\/+$/, "");
10
+ const endpoint = trimTrailingSlashes(env.SUBSTRATE_URL ?? "");
10
11
  if (endpoint === "") return { error: "SUBSTRATE_URL is required (e.g. https://substrate.example.com:3100)" };
11
12
  const namespace = env.SUBSTRATE_NAMESPACE ?? "";
12
13
  if (namespace === "") return { error: "SUBSTRATE_NAMESPACE is required (the namespace to watch)" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnmal-ai/substrate-tui",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "Terminal UI for Substrate: ask in natural language, browse the schema, see the service status.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,8 +20,8 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@mnmal-ai/substrate": "1.0.0-alpha.1",
24
- "@mnmal-ai/substrate-nl": "1.0.0-alpha.1",
23
+ "@mnmal-ai/substrate": "1.0.0-alpha.2",
24
+ "@mnmal-ai/substrate-nl": "1.0.0-alpha.2",
25
25
  "@mnmal-ai/surface-core": "0.14.5",
26
26
  "@mnmal-ai/surface-kit": "0.14.5",
27
27
  "@mnmal-ai/surface-theme": "0.14.5",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@biomejs/biome": "^2.5.15",
33
- "@mnmal-ai/substrate-config": "1.0.0-alpha.1",
33
+ "@mnmal-ai/substrate-config": "1.0.0-alpha.2",
34
34
  "@types/node": "^26.6.4",
35
35
  "@types/react": "^19.2.0",
36
36
  "ink-testing-library": "^4.0.0",