@mnmal-ai/substrate-tui 1.0.0-alpha.18 → 1.0.0-alpha.19

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as isKeyRejection, t as adminCapabilityOf } from "./session-C1D5Ermr.js";
3
3
  import { resolve } from "node:path";
4
- import { AdminBackfillError, AuthError, CURRENT_MARK, NetworkError, STEP_MARKS, adminClaimCapabilities, capabilitiesFor, checkRevocable, checkUpdatable, currentStep, decodeList, describeGrant, diagnose, encodeGrant, flattenGrant, grantEntriesConfer, isActiveAdminKeyRow, isEncryptedKey, makeTokenProvider, parseGrantEntries, planOnboarding, resolveAdminCredential, tokenAudience } from "@mnmal-ai/substrate/client";
4
+ import { AdminBackfillError, AuthError, CURRENT_MARK, NetworkError, STEP_MARKS, adminClaimCapabilities, capabilitiesFor, checkRevocable, checkUpdatable, currentStep, decodeList, describeGrant, diagnose, encodeGrant, flattenGrant, grantEntriesConfer, isActiveAdminKeyRow, isEncryptedKey, makeTokenProvider, parseGrantEntries, planOnboarding, resolveAdminCredential, substrateFetch, tokenAudience } from "@mnmal-ai/substrate/client";
5
5
  import { createApp, defineModule, listPager, sanitise } from "@mnmal-ai/surface-core";
6
6
  import { marathon } from "@mnmal-ai/surface-theme";
7
7
  import { Box, Text } from "ink";
@@ -1985,7 +1985,7 @@ function doctorModule(deps, io = {}) {
1985
1985
  const deadline = new AbortController();
1986
1986
  const timer = setTimeout(() => deadline.abort(), deadlineMs);
1987
1987
  const signal = AbortSignal.any([ctx.signal, deadline.signal]);
1988
- const fetchWith = ((url, init) => fetch(url, {
1988
+ const fetchWith = ((url, init) => substrateFetch(String(url), {
1989
1989
  ...init,
1990
1990
  signal
1991
1991
  }));
@@ -51,8 +51,8 @@ async function main() {
51
51
  }
52
52
  Object.assign(process.env, colorDepthEnv(process.env));
53
53
  const [{ createTui }, { makeDeps }, { prepareTerminal }, { terminalOptions }] = await Promise.all([
54
- import("../app-DacCAxOg.js"),
55
- import("../deps-P8sDloE9.js"),
54
+ import("../app-DJrYKKiD.js"),
55
+ import("../deps-Co_d6ypZ.js"),
56
56
  import("@mnmal-ai/surface-core/pure"),
57
57
  import("../terminal-BAd8sH3d.js")
58
58
  ]);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as adminIdleMs, r as createAdminSession } from "./session-C1D5Ermr.js";
3
- import { SubstrateClient, noRedirectFetch, tokenAudience } from "@mnmal-ai/substrate/client";
3
+ import { SubstrateClient, noRedirectFetch, substrateFetch, tokenAudience } from "@mnmal-ai/substrate/client";
4
4
 
5
5
  //#region src/deps.ts
6
6
  /** An HTTP failure from `getJson`: `status` is what `NetworkError` and `AuthError` also carry. */
@@ -13,7 +13,7 @@ var HttpStatusError = class extends Error {
13
13
  }
14
14
  };
15
15
  const sig = (signal) => signal !== void 0 ? { signal } : {};
16
- function makeDeps(config, fetchImpl = fetch, env = process.env) {
16
+ function makeDeps(config, fetchImpl = substrateFetch, env = process.env) {
17
17
  const token = config.token;
18
18
  if (token !== null || [
19
19
  "SUBSTRATE_ADMIN_TOKEN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnmal-ai/substrate-tui",
3
- "version": "1.0.0-alpha.18",
3
+ "version": "1.0.0-alpha.19",
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.18",
24
- "@mnmal-ai/substrate-nl": "1.0.0-alpha.18",
23
+ "@mnmal-ai/substrate": "1.0.0-alpha.19",
24
+ "@mnmal-ai/substrate-nl": "1.0.0-alpha.19",
25
25
  "@mnmal-ai/surface-core": "0.17.1",
26
26
  "@mnmal-ai/surface-kit": "0.17.1",
27
27
  "@mnmal-ai/surface-theme": "0.17.1",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@biomejs/biome": "2.6.4",
33
- "@mnmal-ai/substrate-config": "1.0.0-alpha.18",
33
+ "@mnmal-ai/substrate-config": "1.0.0-alpha.19",
34
34
  "@types/node": "^26.6.4",
35
35
  "@types/react": "^19.2.0",
36
36
  "ink-testing-library": "^4.0.0",