@mnmal-ai/substrate-tui 1.0.0-beta.18 → 1.0.0-beta.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.
@@ -2790,15 +2790,21 @@ function readInviteKid(text) {
2790
2790
  }
2791
2791
  const NS_NAME = /^(\*|[A-Za-z0-9_.-]+)$/;
2792
2792
  const refusal = (text) => ({ error: text });
2793
- /** As the shared toned lines: a refusal in the error tone, anything else untoned. */
2794
- const toned = (lines) => lines.map((l) => typeof l === "string" ? { text: l } : {
2793
+ /** As the shared toned lines: a refusal in the error tone, a heading bold, anything else untoned. */
2794
+ const toned = (lines) => lines.map((l) => typeof l === "string" ? { text: l } : "error" in l ? {
2795
2795
  text: l.error,
2796
2796
  tone: "error"
2797
+ } : {
2798
+ text: l.bold,
2799
+ parts: [{
2800
+ text: l.bold,
2801
+ bold: true
2802
+ }]
2797
2803
  });
2798
2804
  function promptView(s, glyph) {
2799
2805
  return [
2800
2806
  `${glyph.title} keys › ${sanitise(s.label)}`,
2801
- ...s.kid !== void 0 ? [` ${sanitise(s.kid)}`] : [],
2807
+ ...s.kid !== void 0 ? [{ bold: ` ${sanitise(s.kid)}` }] : [],
2802
2808
  ...s.algorithm !== void 0 && s.fingerprint !== void 0 ? [` ${s.algorithm} · ${s.fingerprint}`] : [],
2803
2809
  ...s.error !== null ? [refusal(` ${sanitise(s.error)}`)] : [],
2804
2810
  " enter accept · esc back"
@@ -2925,7 +2931,7 @@ function reviewView(s, glyph, armed, size) {
2925
2931
  ] : [" esc close"];
2926
2932
  }
2927
2933
  const head = fit(`${glyph.title} keys › ${target} · review`);
2928
- const fitLine = (l) => typeof l === "string" ? fit(l) : refusal(fit(l.error));
2934
+ const fitLine = (l) => typeof l === "string" ? fit(l) : "error" in l ? refusal(fit(l.error)) : { bold: fit(l.bold) };
2929
2935
  return [
2930
2936
  head,
2931
2937
  ...body.map(fit),
@@ -3000,7 +3006,7 @@ function editView(s, glyph, size) {
3000
3006
  const label = (ns) => ns === "*" ? "* every namespace" : ns;
3001
3007
  const nsW = Math.min(24, Math.max(9, ...m.rows.map((ns) => label(ns).length)) + 2);
3002
3008
  const granted = result(m);
3003
- const visible = Math.max(1, size.rows - 6);
3009
+ const visible = Math.max(1, size.rows - 7);
3004
3010
  const start = Math.max(0, Math.min(m.row - visible + 1, m.rows.length - visible));
3005
3011
  const grid = m.rows.slice(start, start + visible).map((ns, k) => {
3006
3012
  const at = start + k === m.row;
@@ -3017,7 +3023,8 @@ function editView(s, glyph, size) {
3017
3023
  const foot = s.note !== null ? [s.note === EMPTY_NOTE ? refusal(fit(` ${s.note}`)) : fit(` ${s.note}`)] : s.discardArmed ? [" discard changes? esc again"] : [];
3018
3024
  return [
3019
3025
  fit(`${glyph.title} keys › ${subject} · editing`),
3020
- fit(` ${"namespace".padEnd(nsW)} r m a`),
3026
+ " ",
3027
+ { bold: fit(` ${"namespace".padEnd(nsW)} r m a`) },
3021
3028
  ...grid,
3022
3029
  fit(` before ${before}`),
3023
3030
  fit(` after ${grantLine(granted)}`),
@@ -3025,11 +3032,11 @@ function editView(s, glyph, size) {
3025
3032
  fit(" ↑↓←→ move · space toggle · + add namespace · enter review · esc discard")
3026
3033
  ];
3027
3034
  }
3028
- /** Every keys panel: a one-column inset on a raised ground, set apart from the input band. */
3035
+ /** Every keys panel: two columns and one row of inset on a raised ground, set apart from the input band. */
3029
3036
  const KEYS_CHROME = {
3030
3037
  inset: {
3031
- x: 1,
3032
- y: 0
3038
+ x: 2,
3039
+ y: 1
3033
3040
  },
3034
3041
  ground: marathon.color.raised
3035
3042
  };
@@ -51,7 +51,7 @@ 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-BlEOQYC2.js"),
54
+ import("../app-79WsRXNr.js"),
55
55
  import("../deps-CMPHUv70.js"),
56
56
  import("@mnmal-ai/surface-core/pure"),
57
57
  import("../terminal-BAd8sH3d.js")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnmal-ai/substrate-tui",
3
- "version": "1.0.0-beta.18",
3
+ "version": "1.0.0-beta.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-beta.18",
24
- "@mnmal-ai/substrate-nl": "1.0.0-beta.18",
23
+ "@mnmal-ai/substrate": "1.0.0-beta.19",
24
+ "@mnmal-ai/substrate-nl": "1.0.0-beta.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-beta.18",
33
+ "@mnmal-ai/substrate-config": "1.0.0-beta.19",
34
34
  "@types/node": "^26.6.4",
35
35
  "@types/react": "^19.2.0",
36
36
  "ink-testing-library": "^4.0.0",