omp-fabric 1.27.2 → 1.28.1

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.
Files changed (121) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +1 -1
  3. package/dist/capture/interceptor.d.ts.map +1 -1
  4. package/dist/chunks/{chunk-OJZNMROB.js → chunk-4PPAWZM6.js} +36 -50
  5. package/dist/chunks/chunk-4PPAWZM6.js.map +7 -0
  6. package/dist/chunks/{chunk-KIH3KLZU.js → chunk-C2YMZNT5.js} +5 -5
  7. package/dist/chunks/chunk-C2YMZNT5.js.map +7 -0
  8. package/dist/chunks/chunk-CHXPTZUF.js +277 -0
  9. package/dist/chunks/chunk-CHXPTZUF.js.map +7 -0
  10. package/dist/chunks/chunk-CYNNPPN4.js +93 -0
  11. package/dist/chunks/chunk-CYNNPPN4.js.map +7 -0
  12. package/dist/chunks/{chunk-ANHZ3SWB.js → chunk-DGKGPZET.js} +9 -4
  13. package/dist/chunks/{chunk-ANHZ3SWB.js.map → chunk-DGKGPZET.js.map} +2 -2
  14. package/dist/chunks/{chunk-2BOZMRT5.js → chunk-FVNEGH4J.js} +32 -49
  15. package/dist/chunks/chunk-FVNEGH4J.js.map +7 -0
  16. package/dist/chunks/{chunk-CNCRWY4Q.js → chunk-GS6IWGXQ.js} +9 -1
  17. package/dist/chunks/chunk-GS6IWGXQ.js.map +7 -0
  18. package/dist/chunks/{chunk-7QKSPNXQ.js → chunk-V5FB7D4C.js} +3 -3
  19. package/dist/chunks/chunk-VDYGBL4Z.js +132 -0
  20. package/dist/chunks/chunk-VDYGBL4Z.js.map +7 -0
  21. package/dist/chunks/chunk-XVA63H6I.js +151 -0
  22. package/dist/chunks/chunk-XVA63H6I.js.map +7 -0
  23. package/dist/chunks/{chunk-NOZBB266.js → chunk-XZIQGFF7.js} +9 -13
  24. package/dist/chunks/chunk-XZIQGFF7.js.map +7 -0
  25. package/dist/chunks/{chunk-4XLJPEI4.js → chunk-ZJ7HHWW4.js} +20 -41
  26. package/dist/chunks/chunk-ZJ7HHWW4.js.map +7 -0
  27. package/dist/config.d.ts +2 -0
  28. package/dist/config.d.ts.map +1 -1
  29. package/dist/core/approval-controller.d.ts.map +1 -1
  30. package/dist/fabric-exec-tool.d.ts.map +1 -1
  31. package/dist/fabric-runtime-state.js +5 -3
  32. package/dist/fabric-runtime-state.js.map +1 -1
  33. package/dist/host-compatibility.d.ts +1 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +180 -170
  36. package/dist/index.js.map +3 -3
  37. package/dist/residency/host.js +3 -3
  38. package/dist/residency/omp-entry.js +3 -3
  39. package/dist/topology/participant-directory.d.ts.map +1 -1
  40. package/dist/ui/arc-group.d.ts +1 -1
  41. package/dist/ui/arc-group.d.ts.map +1 -1
  42. package/dist/ui/code-preview-shell.d.ts +2 -2
  43. package/dist/ui/code-preview-shell.d.ts.map +1 -1
  44. package/dist/ui/controller.d.ts.map +1 -1
  45. package/dist/ui/conversation-chrome.d.ts +1 -5
  46. package/dist/ui/conversation-chrome.d.ts.map +1 -1
  47. package/dist/ui/conversation-chrome.js +2 -2
  48. package/dist/ui/conversation-queue.d.ts +3 -2
  49. package/dist/ui/conversation-queue.d.ts.map +1 -1
  50. package/dist/ui/conversation-render.d.ts +19 -23
  51. package/dist/ui/conversation-render.d.ts.map +1 -1
  52. package/dist/ui/conversation.d.ts +7 -17
  53. package/dist/ui/conversation.d.ts.map +1 -1
  54. package/dist/ui/conversation.js +317 -318
  55. package/dist/ui/conversation.js.map +3 -3
  56. package/dist/ui/core-tool-render.d.ts +1 -1
  57. package/dist/ui/core-tool-render.d.ts.map +1 -1
  58. package/dist/ui/dashboard-detail.d.ts +4 -4
  59. package/dist/ui/dashboard-detail.d.ts.map +1 -1
  60. package/dist/ui/dashboard-fabric-graph.d.ts +1 -1
  61. package/dist/ui/dashboard-fabric-graph.d.ts.map +1 -1
  62. package/dist/ui/dashboard-presentation.d.ts +1 -1
  63. package/dist/ui/dashboard-presentation.d.ts.map +1 -1
  64. package/dist/ui/dashboard.d.ts +8 -8
  65. package/dist/ui/dashboard.d.ts.map +1 -1
  66. package/dist/ui/dashboard.js +206 -343
  67. package/dist/ui/dashboard.js.map +3 -3
  68. package/dist/ui/diff-background.d.ts +1 -1
  69. package/dist/ui/diff-background.d.ts.map +1 -1
  70. package/dist/ui/fabric-actor-delivery-selector.d.ts +4 -4
  71. package/dist/ui/fabric-actor-delivery-selector.d.ts.map +1 -1
  72. package/dist/ui/fabric-actor-tool-selector.d.ts +5 -6
  73. package/dist/ui/fabric-actor-tool-selector.d.ts.map +1 -1
  74. package/dist/ui/fabric-host-event-selector.d.ts +4 -4
  75. package/dist/ui/fabric-host-event-selector.d.ts.map +1 -1
  76. package/dist/ui/fabric-model-selector.d.ts +4 -6
  77. package/dist/ui/fabric-model-selector.d.ts.map +1 -1
  78. package/dist/ui/fabric-render.d.ts +6 -6
  79. package/dist/ui/fabric-render.d.ts.map +1 -1
  80. package/dist/ui/fabric-thinking-selector.d.ts +4 -7
  81. package/dist/ui/fabric-thinking-selector.d.ts.map +1 -1
  82. package/dist/ui/highlight.d.ts +2 -13
  83. package/dist/ui/highlight.d.ts.map +1 -1
  84. package/dist/ui/row-balance.d.ts +6 -6
  85. package/dist/ui/row-balance.d.ts.map +1 -1
  86. package/dist/ui/settings.d.ts +6 -3
  87. package/dist/ui/settings.d.ts.map +1 -1
  88. package/dist/ui/settings.js +239 -113
  89. package/dist/ui/settings.js.map +3 -3
  90. package/dist/ui/state-file-preview.d.ts +1 -1
  91. package/dist/ui/state-file-preview.d.ts.map +1 -1
  92. package/dist/ui/tui/host-term.d.ts +16 -0
  93. package/dist/ui/tui/host-term.d.ts.map +1 -0
  94. package/dist/ui/tui/input.d.ts +19 -0
  95. package/dist/ui/tui/input.d.ts.map +1 -0
  96. package/dist/ui/tui/rows.d.ts +24 -0
  97. package/dist/ui/tui/rows.d.ts.map +1 -0
  98. package/dist/ui/tui/select-list.d.ts +28 -0
  99. package/dist/ui/tui/select-list.d.ts.map +1 -0
  100. package/dist/ui/tui/settings-list.d.ts +38 -0
  101. package/dist/ui/tui/settings-list.d.ts.map +1 -0
  102. package/dist/ui/tui/text-field.d.ts +40 -0
  103. package/dist/ui/tui/text-field.d.ts.map +1 -0
  104. package/dist/ui/tui/view.d.ts +26 -0
  105. package/dist/ui/tui/view.d.ts.map +1 -0
  106. package/dist/ui/widget.d.ts +3 -3
  107. package/dist/ui/widget.d.ts.map +1 -1
  108. package/docs/configuration.md +2 -0
  109. package/docs/interface.md +16 -3
  110. package/package.json +13 -12
  111. package/dist/chunks/chunk-2BOZMRT5.js.map +0 -7
  112. package/dist/chunks/chunk-4XLJPEI4.js.map +0 -7
  113. package/dist/chunks/chunk-CNCRWY4Q.js.map +0 -7
  114. package/dist/chunks/chunk-G2IBGGBM.js +0 -42
  115. package/dist/chunks/chunk-G2IBGGBM.js.map +0 -7
  116. package/dist/chunks/chunk-KIH3KLZU.js.map +0 -7
  117. package/dist/chunks/chunk-NOZBB266.js.map +0 -7
  118. package/dist/chunks/chunk-OJZNMROB.js.map +0 -7
  119. package/dist/ui/symbol-theme.d.ts +0 -3
  120. package/dist/ui/symbol-theme.d.ts.map +0 -1
  121. /package/dist/chunks/{chunk-7QKSPNXQ.js.map → chunk-V5FB7D4C.js.map} +0 -0
package/dist/index.js CHANGED
@@ -33,7 +33,12 @@ import {
33
33
  spinnerFrame,
34
34
  updateSpinner,
35
35
  wrapRowLimitFor
36
- } from "./chunks/chunk-4XLJPEI4.js";
36
+ } from "./chunks/chunk-ZJ7HHWW4.js";
37
+ import {
38
+ asRows,
39
+ isRows,
40
+ mountView
41
+ } from "./chunks/chunk-CYNNPPN4.js";
37
42
  import {
38
43
  activeStatuses,
39
44
  isActiveStatus,
@@ -44,7 +49,7 @@ import {
44
49
  formatDuration,
45
50
  formatTokens,
46
51
  safeText
47
- } from "./chunks/chunk-KIH3KLZU.js";
52
+ } from "./chunks/chunk-C2YMZNT5.js";
48
53
  import {
49
54
  ApprovalController,
50
55
  CapturedToolCatalog,
@@ -67,7 +72,7 @@ import {
67
72
  resolveFabricIdentity,
68
73
  settleInPlacePrewalk,
69
74
  streamedToolCallName
70
- } from "./chunks/chunk-2BOZMRT5.js";
75
+ } from "./chunks/chunk-FVNEGH4J.js";
71
76
  import {
72
77
  AgentTranscriptReader,
73
78
  fabricWriteBindings,
@@ -75,6 +80,13 @@ import {
75
80
  } from "./chunks/chunk-IPI4UOTC.js";
76
81
  import "./chunks/chunk-DLXPTBPL.js";
77
82
  import "./chunks/chunk-7VIQNUPS.js";
83
+ import {
84
+ Stack,
85
+ TextBlock
86
+ } from "./chunks/chunk-VDYGBL4Z.js";
87
+ import {
88
+ hostTermDiagnostic
89
+ } from "./chunks/chunk-XVA63H6I.js";
78
90
  import {
79
91
  GUEST_TYPE_DECLARATIONS,
80
92
  OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
@@ -162,13 +174,14 @@ import {
162
174
  import {
163
175
  DEFAULT_FABRIC_CONFIG,
164
176
  boundModelOutput,
177
+ capturedToolHiddenFromModel,
165
178
  effectiveToolCaptureConfig,
166
179
  loadFabricConfig,
167
180
  loadFabricConfigForScope,
168
181
  modelOutputBudget,
169
182
  resolveAgentDir,
170
183
  saveFabricConfig
171
- } from "./chunks/chunk-CNCRWY4Q.js";
184
+ } from "./chunks/chunk-GS6IWGXQ.js";
172
185
  import {
173
186
  countNewlines,
174
187
  defaultCodePreviewSettings,
@@ -244,13 +257,7 @@ import {
244
257
  import "./chunks/chunk-7363CD5A.js";
245
258
 
246
259
  // src/ui/code-preview-shell.ts
247
- import "@oh-my-pi/pi-tui";
248
- import {
249
- Container,
250
- Text,
251
- truncateToWidth,
252
- visibleWidth
253
- } from "@oh-my-pi/pi-tui";
260
+ import { truncate, visibleWidth } from "@oh-my-pi/pi-tui/text/width";
254
261
  var timingState = (context) => context?.state;
255
262
  var isTimingOnlyRender = (state) => state?.codePreviewTimingOnlyRenderToken !== void 0;
256
263
  var unwrapTimingComponent = (component) => component instanceof TimingPreservedComponent ? component.component : component;
@@ -330,7 +337,7 @@ var TimingFooter = class {
330
337
  render(width) {
331
338
  return [
332
339
  ...continueArcGroup([...this.component.render(width)]),
333
- truncateToWidth(this.footer, width, "")
340
+ truncate(this.footer, width, "")
334
341
  ];
335
342
  }
336
343
  invalidate() {
@@ -360,7 +367,6 @@ var shellStateFor = (key) => {
360
367
  shellStates.set(object, created);
361
368
  return created;
362
369
  };
363
- var isRenderComponent = (value) => value !== null && typeof value === "object" && typeof Reflect.get(value, "render") === "function";
364
370
  var buildRenderContext = (args, options, supplied, fallbackState) => {
365
371
  const executionStarted = typeof supplied.executionStarted === "boolean" ? supplied.executionStarted : !options.isPartial;
366
372
  const argsComplete = typeof supplied.argsComplete === "boolean" ? supplied.argsComplete : !options.isPartial;
@@ -369,7 +375,7 @@ var buildRenderContext = (args, options, supplied, fallbackState) => {
369
375
  args,
370
376
  toolCallId: typeof supplied.toolCallId === "string" ? supplied.toolCallId : "fabric_exec",
371
377
  invalidate: typeof supplied.invalidate === "function" ? supplied.invalidate : () => void 0,
372
- lastComponent: isRenderComponent(supplied.lastComponent) ? supplied.lastComponent : void 0,
378
+ lastComponent: isRows(supplied.lastComponent) ? supplied.lastComponent : void 0,
373
379
  state,
374
380
  cwd: typeof supplied.cwd === "string" ? supplied.cwd : process.cwd(),
375
381
  executionStarted,
@@ -448,7 +454,7 @@ var BorderedToolCall = class {
448
454
  ];
449
455
  }
450
456
  frameLine(line, innerWidth, border) {
451
- const text = truncateToWidth(line, innerWidth, "");
457
+ const text = truncate(line, innerWidth, "");
452
458
  const padding = " ".repeat(Math.max(0, innerWidth - visibleWidth(text)));
453
459
  const hasDiffBackground = /^\x1b\[48;2;\d+;\d+;\d+m/.test(text);
454
460
  return hasDiffBackground ? `${border("\u2502")} ${text}${padding} \x1B[49m${border("\u2502")}\x1B[0m` : `${border("\u2502")} ${text}\x1B[0m${padding} ${border("\u2502")}`;
@@ -463,11 +469,14 @@ var withCodePreviewShell = (tool, options = {}) => {
463
469
  const originalRenderResult = tool.renderResult;
464
470
  const renderCall = (args, options2, theme, context) => {
465
471
  const renderOptions = { ...options2, renderContext: context };
466
- return originalRenderCall ? originalRenderCall.call(tool, args, renderOptions, theme) : new Text(theme.fg("toolTitle", theme.bold(tool.label || tool.name)), 0, 0);
472
+ return originalRenderCall ? asRows(originalRenderCall.call(tool, args, renderOptions, theme), theme) : new TextBlock(theme.fg("toolTitle", theme.style("strong", tool.label || tool.name)));
467
473
  };
468
474
  const renderResult = (result, resultOptions, theme, context, args) => {
469
475
  const renderOptions = { ...resultOptions, renderContext: context };
470
- return originalRenderResult ? originalRenderResult.call(tool, result, renderOptions, theme, args) : new Container();
476
+ return asRows(
477
+ originalRenderResult?.call(tool, result, renderOptions, theme, args),
478
+ theme
479
+ );
471
480
  };
472
481
  return {
473
482
  ...tool,
@@ -475,7 +484,7 @@ var withCodePreviewShell = (tool, options = {}) => {
475
484
  renderCall(args, options2, theme) {
476
485
  const renderOptions = options2;
477
486
  if (!renderOptions) {
478
- return originalRenderCall ? originalRenderCall.call(tool, args, { expanded: false, isPartial: false }, theme) : new Text(theme.fg("toolTitle", theme.bold(tool.label || tool.name)), 0, 0);
487
+ return originalRenderCall ? originalRenderCall.call(tool, args, { expanded: false, isPartial: false }, theme) : new TextBlock(theme.fg("toolTitle", theme.style("strong", tool.label || tool.name)));
479
488
  }
480
489
  const supplied = renderOptions.renderContext && typeof renderOptions.renderContext === "object" ? renderOptions.renderContext : renderOptions;
481
490
  const context = buildRenderContext(
@@ -623,6 +632,7 @@ var definitionDelegatesTo = (definition, target) => {
623
632
  var clonePolicy = (config) => ({
624
633
  enabled: config.enabled,
625
634
  hideFromModel: config.hideFromModel,
635
+ keepEssentialVisible: config.keepEssentialVisible,
626
636
  keepVisible: [...config.keepVisible],
627
637
  includeTools: [...config.includeTools],
628
638
  excludeTools: [...config.excludeTools],
@@ -2625,7 +2635,6 @@ Relevant to the current request: ${suggestion.name}. Ignore this if it does not
2625
2635
  </skill_relevance>`;
2626
2636
 
2627
2637
  // src/fabric-exec-tool.ts
2628
- import { Container as Container2, Text as Text2 } from "@oh-my-pi/pi-tui";
2629
2638
  import { Type } from "@oh-my-pi/pi-coding-agent/extensibility/legacy-typebox";
2630
2639
 
2631
2640
  // src/speculation/summary.ts
@@ -2993,7 +3002,7 @@ var typeErrorRecoveryHint = (code, errors) => {
2993
3002
  };
2994
3003
 
2995
3004
  // src/ui/row-balance.ts
2996
- import { truncateToWidth as truncateToWidth2 } from "@oh-my-pi/pi-tui";
3005
+ import { truncate as truncate2 } from "@oh-my-pi/pi-tui/text/width";
2997
3006
  var HiddenRowBorrowingComponent = class {
2998
3007
  constructor(baseLimit, maxLimit, renderLimit, balance) {
2999
3008
  this.baseLimit = baseLimit;
@@ -3025,7 +3034,7 @@ var HiddenRowBorrowingComponent = class {
3025
3034
  }
3026
3035
  this.#cachedWidth = width;
3027
3036
  this.#cachedDeficit = deficit;
3028
- this.#cachedRows = best.map((row) => truncateToWidth2(row, Math.max(1, width)));
3037
+ this.#cachedRows = best.map((row) => truncate2(row, Math.max(1, width)));
3029
3038
  return this.#cachedRows;
3030
3039
  }
3031
3040
  invalidate() {
@@ -3117,7 +3126,6 @@ var rendererStateFor = (key) => {
3117
3126
  rendererStates.set(object, created);
3118
3127
  return created;
3119
3128
  };
3120
- var isRenderComponent2 = (value) => value !== null && typeof value === "object" && typeof Reflect.get(value, "render") === "function";
3121
3129
  var previewContext = (options, state, args, rendererState) => {
3122
3130
  const raw = options;
3123
3131
  const supplied = raw.renderContext ?? options;
@@ -3127,7 +3135,7 @@ var previewContext = (options, state, args, rendererState) => {
3127
3135
  args,
3128
3136
  toolCallId: typeof supplied.toolCallId === "string" ? supplied.toolCallId : "fabric_exec",
3129
3137
  invalidate: typeof supplied.invalidate === "function" ? supplied.invalidate : () => void 0,
3130
- lastComponent: isRenderComponent2(supplied.lastComponent) ? supplied.lastComponent : void 0,
3138
+ lastComponent: isRows(supplied.lastComponent) ? supplied.lastComponent : void 0,
3131
3139
  state: supplied.state && typeof supplied.state === "object" ? supplied.state : rendererState,
3132
3140
  cwd: typeof supplied.cwd === "string" ? supplied.cwd : state.cwd ?? process.cwd(),
3133
3141
  executionStarted,
@@ -3144,7 +3152,8 @@ var createFabricExecTool = (state, codePreviewSettings, pendingHandoffs, decorat
3144
3152
  label: "Fabric",
3145
3153
  readsSkillUris: true,
3146
3154
  mergeCallAndResult: true,
3147
- description: "Execute type-checked TypeScript through Fabric's configured executor for OMP tools, MCP, Fabric providers, discovery, and extensions. QuickJS is isolated by default; the optional Node/Bun process is an unsafe trusted-code escape hatch. In full code mode, and always in Schema enforce mode, this is the exclusive model tool path. The callable `omp` core surface is exactly `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`, and `wait`; `lsp`, `ast_grep`, `ast_edit`, `github`, and `debug` are not reachable from guest code, so use `grep`/`find` plus `bash` for structure-shaped work. MCP servers are reachable as `mcp.<server>.<tool>`; `mcp__<server>_<tool>` names are routed there too.",
3155
+ loadMode: "essential",
3156
+ description: "Execute type-checked TypeScript through Fabric's configured executor for OMP tools, MCP, Fabric providers, discovery, and extensions. QuickJS is isolated by default; the optional Node/Bun process is an unsafe trusted-code escape hatch. In Schema enforce mode this is the exclusive model tool path; in full code mode it is the path for OMP core tools and hidden captured tools. The callable `omp` core surface is exactly `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`, and `wait`; `lsp`, `ast_grep`, `ast_edit`, `github`, and `debug` are not reachable from guest code, so use `grep`/`find` plus `bash` for structure-shaped work. MCP servers are reachable as `mcp.<server>.<tool>`; `mcp__<server>_<tool>` names are routed there too.",
3148
3157
  promptGuidelines: [
3149
3158
  "Batch independent operations in one `fabric_exec` program (`Promise.all` for parallel, sequential `await` for ordered), not one call per tool; keep dependent/conditional steps sequential. Coalesce non-dependent replacements from one file snapshot into one `omp.edit({path, edits:[...]})`; use `all:true` only for intentional repeated exact anchors. Return only the compact final value; intermediate results stay in the sandbox.",
3150
3159
  "Search before reading: use `omp.grep`/`omp.find` to locate relevant lines, then `omp.read({path, offset, limit})` that range. Escape regex metacharacters, or use `literal:true` for exact punctuated text. Keep fan-out search limits small and widen only on misses. An unbounded `omp.read` returns at most 2000 lines or 50KB and, when truncated, ends with a `Use offset=\u2026` continuation notice.",
@@ -3240,15 +3249,15 @@ var createFabricExecTool = (state, codePreviewSettings, pendingHandoffs, decorat
3240
3249
  if (mode === "compact" && !context.expanded) {
3241
3250
  const display = normalizeRunDisplay(params.display);
3242
3251
  const title2 = display?.name?.trim() || fabricExecTitleHintCached(code);
3243
- const header = new Container2();
3244
- header.addChild(renderBoundedLines(
3245
- [theme.fg("toolTitle", theme.bold(safeTerminalText(title2 || "Fabric")))],
3252
+ const header = new Stack();
3253
+ header.add(renderBoundedLines(
3254
+ [theme.fg("toolTitle", theme.style("strong", safeTerminalText(title2 || "Fabric")))],
3246
3255
  theme,
3247
3256
  codePreviewSettings.diffIntensity,
3248
3257
  1
3249
3258
  ));
3250
3259
  if (display?.description) {
3251
- header.addChild(renderBoundedLines(
3260
+ header.add(renderBoundedLines(
3252
3261
  [theme.fg("dim", safeTerminalText(display.description))],
3253
3262
  theme,
3254
3263
  codePreviewSettings.diffIntensity,
@@ -3256,16 +3265,15 @@ var createFabricExecTool = (state, codePreviewSettings, pendingHandoffs, decorat
3256
3265
  ));
3257
3266
  }
3258
3267
  if (!writePreview) return header;
3259
- const composite2 = new Container2();
3260
- composite2.addChild(header);
3261
- composite2.addChild(new Text2("\n", 0, 0));
3262
- composite2.addChild(writePreview);
3268
+ const composite2 = new Stack();
3269
+ composite2.add(header);
3270
+ composite2.add(writePreview);
3263
3271
  return composite2;
3264
3272
  }
3265
3273
  const lines = safeTerminalText(code).split("\n");
3266
3274
  const runDisplay = normalizeRunDisplay(params.display);
3267
3275
  const displayName = runDisplay?.name ? safeTerminalText(runDisplay.name) : "";
3268
- const title = `${theme.fg("toolTitle", theme.bold("fabric"))}${displayName ? ` ${theme.fg("accent", displayName)}` : ""} ${theme.fg("dim", `TypeScript \xB7 ${countLabel(lines.length, "line")}`)}`;
3276
+ const title = `${theme.fg("toolTitle", theme.style("strong", "fabric"))}${displayName ? ` ${theme.fg("accent", displayName)}` : ""} ${theme.fg("dim", `TypeScript \xB7 ${countLabel(lines.length, "line")}`)}`;
3269
3277
  const description = runDisplay?.description ? theme.fg("dim", safeTerminalText(runDisplay.description)) : "";
3270
3278
  const baseLimit = context.expanded ? lines.length : Math.min(lines.length, 8);
3271
3279
  const maxLimit = context.expanded ? lines.length : Math.min(lines.length, baseLimit + MAX_FABRIC_CODE_TRANSFER_LINES);
@@ -3278,13 +3286,11 @@ var createFabricExecTool = (state, codePreviewSettings, pendingHandoffs, decorat
3278
3286
  const hidden = lines.length - shown.length;
3279
3287
  const hiddenHint = hidden > 0 ? `
3280
3288
  ${theme.fg("dim", `\u2026 ${countLabel(hidden, "line")} hidden \xB7 `)}${expandHint(theme)}` : "";
3281
- return [...new Text2(
3289
+ return new TextBlock(
3282
3290
  `${title}${description ? `
3283
3291
  ${description}` : ""}${preview ? `
3284
- ${preview}` : ""}${hiddenHint}`,
3285
- 0,
3286
- 0
3287
- ).render(width)];
3292
+ ${preview}` : ""}${hiddenHint}`
3293
+ ).render(width);
3288
3294
  };
3289
3295
  const codePreview = new HiddenRowBorrowingComponent(
3290
3296
  baseLimit,
@@ -3293,10 +3299,9 @@ ${preview}` : ""}${hiddenHint}`,
3293
3299
  rowBalance
3294
3300
  );
3295
3301
  if (!writePreview) return codePreview;
3296
- const composite = new Container2();
3297
- composite.addChild(codePreview);
3298
- composite.addChild(new Text2("\n", 0, 0));
3299
- composite.addChild(writePreview);
3302
+ const composite = new Stack();
3303
+ composite.add(codePreview);
3304
+ composite.add(writePreview);
3300
3305
  return composite;
3301
3306
  },
3302
3307
  renderResult(result, options, theme, params) {
@@ -3397,7 +3402,7 @@ ${preview}` : ""}${hiddenHint}`,
3397
3402
  if (audits.length === 0) {
3398
3403
  const label = compact ? "Running\u2026" : progress ?? "Running Fabric program\u2026";
3399
3404
  return trackRows(
3400
- new Text2(theme.fg("warning", `\u25C6 ${safeTerminalText(label)}`), 0, 0)
3405
+ new TextBlock(theme.fg("warning", `\u25C6 ${safeTerminalText(label)}`))
3401
3406
  );
3402
3407
  }
3403
3408
  if (audits.length === 1) {
@@ -3506,25 +3511,19 @@ ${preview}` : ""}${hiddenHint}`,
3506
3511
  if (audits.length === 0) {
3507
3512
  if (failed && details.error) {
3508
3513
  return trackRows(
3509
- new Text2(
3510
- theme.fg("error", `\u2717 ${safeTerminalText(details.error)}`),
3511
- 0,
3512
- 0
3513
- )
3514
+ new TextBlock(theme.fg("error", `\u2717 ${safeTerminalText(details.error)}`))
3514
3515
  );
3515
3516
  }
3516
3517
  if (!output) {
3517
- return trackRows(new Text2(
3518
- compact ? theme.fg(failed ? "error" : "success", failed ? "\u2717 Failed" : "\u2713 Evaluated") : theme.fg("dim", "\u2713 Fabric"),
3519
- 0,
3520
- 0
3518
+ return trackRows(new TextBlock(
3519
+ compact ? theme.fg(failed ? "error" : "success", failed ? "\u2717 Failed" : "\u2713 Evaluated") : theme.fg("dim", "\u2713 Fabric")
3521
3520
  ));
3522
3521
  }
3523
3522
  const lines = safeTerminalText(output).split(nl);
3524
3523
  const limit = expanded ? Math.min(lines.length, 200) : 12;
3525
3524
  const shown = lines.slice(0, limit);
3526
3525
  const displayName = normalizeRunDisplay(params?.display)?.name;
3527
- const title = displayName ? theme.fg("toolTitle", theme.bold(safeTerminalText(displayName))) : compact ? theme.fg(failed ? "error" : "success", failed ? "\u2717 Failed" : "\u2713 Evaluated") : "";
3526
+ const title = displayName ? theme.fg("toolTitle", theme.style("strong", safeTerminalText(displayName))) : compact ? theme.fg(failed ? "error" : "success", failed ? "\u2717 Failed" : "\u2713 Evaluated") : "";
3528
3527
  let text2 = styleOutputLines(shown).join(nl);
3529
3528
  if (title) text2 = title + nl + text2;
3530
3529
  if (lines.length > shown.length) {
@@ -3558,7 +3557,7 @@ ${preview}` : ""}${hiddenHint}`,
3558
3557
  if (audit.error) {
3559
3558
  text2 += nl + theme.fg("error", safeTerminalText(audit.error));
3560
3559
  }
3561
- return trackRows(new Text2(text2, 0, 0));
3560
+ return trackRows(new TextBlock(text2));
3562
3561
  }
3563
3562
  if (previewLines[0]) {
3564
3563
  text2 += ` ${previewLines[0]}`;
@@ -4392,7 +4391,7 @@ var classifyToolResult = (input) => {
4392
4391
  // src/host-compatibility.ts
4393
4392
  import { existsSync as existsSync3, readFileSync as readFileSync4, realpathSync as realpathSync2 } from "node:fs";
4394
4393
  import path6 from "node:path";
4395
- var MINIMUM_OMP_HOST_VERSION = "18.4.4";
4394
+ var MINIMUM_OMP_HOST_VERSION = "19.2.1";
4396
4395
  var OMP_HOST_PACKAGE_NAMES = {
4397
4396
  "@oh-my-pi/pi-coding-agent": true
4398
4397
  };
@@ -4796,7 +4795,7 @@ var createDashboardSnapshot = (state, events, context, activityRuns) => {
4796
4795
  };
4797
4796
 
4798
4797
  // src/ui/widget.ts
4799
- import { truncateToWidth as truncateToWidth3, visibleWidth as visibleWidth2 } from "@oh-my-pi/pi-tui";
4798
+ import { truncate as truncate3, visibleWidth as visibleWidth2 } from "@oh-my-pi/pi-tui/text/width";
4800
4799
  var statusGlyph = (status) => {
4801
4800
  if (status === "completed" || status === "done") return "\u2713";
4802
4801
  if (status === "failed" || status === "timed_out") return "\u2717";
@@ -4829,7 +4828,7 @@ var totalTokens = (snapshot, run) => snapshot.agents.filter((agent) => run ? age
4829
4828
  var totalCost = (snapshot, run) => snapshot.agents.filter((agent) => run ? agent.runId === run.id : isActiveStatus(agent.status)).reduce((sum, agent) => sum + (agent.usage?.cost ?? 0), 0);
4830
4829
  var agentLines = (theme, agent, now) => {
4831
4830
  const status = colorStatus(theme, agent.status, statusGlyph(agent.status));
4832
- const activity = agent.currentTool ?? (agent.error ? `error: ${truncateToWidth3(safeText(agent.error), 48)}` : agent.text && !isActiveStatus(agent.status) ? `result: ${truncateToWidth3(safeText(agent.text), 48)}` : agent.status === "running" ? "thinking" : agent.status);
4831
+ const activity = agent.currentTool ?? (agent.error ? `error: ${truncate3(safeText(agent.error), 48)}` : agent.text && !isActiveStatus(agent.status) ? `result: ${truncate3(safeText(agent.text), 48)}` : agent.status === "running" ? "thinking" : agent.status);
4833
4832
  const metrics = [
4834
4833
  agent.toolCalls !== void 0 ? `${agent.toolCalls} calls` : void 0,
4835
4834
  agent.usage ? `${formatTokens(agent.usage.input + agent.usage.output)} tok` : void 0,
@@ -4953,10 +4952,10 @@ var FabricWidget = class {
4953
4952
  if (content.length > bounded.length && bounded.length > 0) {
4954
4953
  const marker = this.theme.fg("dim", `+${content.length - bounded.length}`);
4955
4954
  const available = Math.max(0, width - visibleWidth2(marker) - 1);
4956
- const last = truncateToWidth3(bounded[bounded.length - 1] ?? "", available, "");
4955
+ const last = truncate3(bounded[bounded.length - 1] ?? "", available, "");
4957
4956
  bounded[bounded.length - 1] = `${last} ${marker}`;
4958
4957
  }
4959
- return bounded.map((line) => truncateToWidth3(line, width));
4958
+ return bounded.map((line) => truncate3(line, width));
4960
4959
  }
4961
4960
  };
4962
4961
 
@@ -5006,8 +5005,9 @@ var FabricUiController = class {
5006
5005
  #actorUnsubscribe;
5007
5006
  #agentUnsubscribe;
5008
5007
  #scheduledRefresh;
5009
- #widgetTui;
5010
- #dashboardTui;
5008
+ #widgetUi;
5009
+ #dashboardHost;
5010
+ #dashboardView;
5011
5011
  #widgetMounted = false;
5012
5012
  #widget;
5013
5013
  #lastRefreshErrorAt = 0;
@@ -5016,7 +5016,7 @@ var FabricUiController = class {
5016
5016
  #conversationOpen = false;
5017
5017
  #conversationState;
5018
5018
  #conversationView;
5019
- #conversationTui;
5019
+ #conversationHost;
5020
5020
  #closeConversation;
5021
5021
  #epoch = 0;
5022
5022
  #activityRevision;
@@ -5048,7 +5048,7 @@ var FabricUiController = class {
5048
5048
  this.#closeConversation = void 0;
5049
5049
  this.#conversationView?.dispose();
5050
5050
  this.#conversationView = void 0;
5051
- this.#conversationTui = void 0;
5051
+ this.#conversationHost = void 0;
5052
5052
  this.#conversationOpen = false;
5053
5053
  this.#conversationState?.clear();
5054
5054
  this.#conversationState = void 0;
@@ -5067,8 +5067,10 @@ var FabricUiController = class {
5067
5067
  this.#context.ui.setWidget(WIDGET_ID, void 0);
5068
5068
  }
5069
5069
  this.#context = void 0;
5070
- this.#widgetTui = void 0;
5071
- this.#dashboardTui = void 0;
5070
+ this.#widgetUi = void 0;
5071
+ this.#dashboardHost = void 0;
5072
+ this.#dashboardView?.dispose?.();
5073
+ this.#dashboardView = void 0;
5072
5074
  this.#widgetMounted = false;
5073
5075
  this.#events = [];
5074
5076
  this.#meshOffset = 0;
@@ -5145,67 +5147,67 @@ var FabricUiController = class {
5145
5147
  const { getAgentDir } = await import("@oh-my-pi/pi-utils");
5146
5148
  const appearance = await readConversationAppearance(context.cwd, getAgentDir(), context.isProjectTrusted?.() ?? false);
5147
5149
  this.#schedulePoll(true);
5148
- await context.ui.custom((tui, theme, keybindings, done) => {
5150
+ await context.ui.custom((ui, theme, keybindings, done) => {
5149
5151
  if (epoch !== this.#epoch) {
5150
5152
  done(void 0);
5151
- return { render: () => [], invalidate: () => {
5152
- } };
5153
+ return { render: () => [] };
5153
5154
  }
5154
- this.#conversationTui = tui;
5155
5155
  this.#closeConversation = () => done(void 0);
5156
- const view = new FabricConversationView(tui, theme, {
5157
- targets: () => conversationTargets(this.#snapshot).map((target) => {
5158
- const split = target.model?.indexOf("/") ?? -1;
5159
- if (split < 1 || !target.model) return target;
5160
- const model = context.modelRegistry?.find?.(target.model.slice(0, split), target.model.slice(split + 1));
5161
- return model && typeof model.contextWindow === "number" ? { ...target, contextWindow: model.contextWindow } : target;
5162
- }),
5163
- appearance,
5164
- ...initialTarget ? { initialTargetId: initialTarget.id } : {},
5165
- state: this.#conversationState,
5166
- keybindings,
5167
- rendererOptions: this.conversationRenderers,
5168
- queueEvents: this.state.omp?.events,
5169
- ...this.codePreviewSettings ? { codePreviewSettings: this.codePreviewSettings } : {},
5170
- transcript: (id, followLatest) => readerFor(id).read(source(id), followLatest),
5171
- loadOlder: (id) => {
5172
- const reader = readerFor(id);
5173
- const before = reader.read(source(id), false);
5174
- if (!before.hasMore) return false;
5175
- const next = reader.loadOlder();
5176
- return !!next && (next.revision !== before.revision || !next.hasMore);
5177
- },
5178
- loadNewer: (id) => {
5179
- const reader = readerFor(id);
5180
- const before = reader.read(source(id), false);
5181
- const next = reader.loadNewer();
5182
- return !!next && next.revision !== before.revision;
5183
- },
5184
- loadLatest: (id) => {
5185
- const reader = readerFor(id);
5186
- const before = reader.read(source(id), false);
5187
- const next = reader.loadLatest();
5188
- return !!next && next.revision !== before.revision;
5189
- },
5190
- send: async (id, message, delivery) => {
5191
- requireTarget(id, delivery);
5192
- const result = await this.state.queueUserMessage(id, message, delivery);
5193
- if (epoch === this.#epoch) this.#refresh();
5194
- return result;
5195
- },
5196
- stop: async (id) => {
5197
- requireTarget(id, "stop");
5198
- const result = await this.state.stopParticipant(id);
5199
- if (epoch === this.#epoch) this.#refresh();
5200
- return result;
5201
- },
5202
- close: () => done(void 0)
5203
- });
5156
+ const { node, view } = mountView(() => ui.size(), (host) => {
5157
+ this.#conversationHost = host;
5158
+ return new FabricConversationView(host, theme, {
5159
+ targets: () => conversationTargets(this.#snapshot).map((target) => {
5160
+ const split = target.model?.indexOf("/") ?? -1;
5161
+ if (split < 1 || !target.model) return target;
5162
+ const model = context.modelRegistry?.find?.(target.model.slice(0, split), target.model.slice(split + 1));
5163
+ return model && typeof model.contextWindow === "number" ? { ...target, contextWindow: model.contextWindow } : target;
5164
+ }),
5165
+ appearance,
5166
+ ...initialTarget ? { initialTargetId: initialTarget.id } : {},
5167
+ state: this.#conversationState,
5168
+ keybindings,
5169
+ rendererOptions: this.conversationRenderers,
5170
+ queueEvents: this.state.omp?.events,
5171
+ transcript: (id, followLatest) => readerFor(id).read(source(id), followLatest),
5172
+ loadOlder: (id) => {
5173
+ const reader = readerFor(id);
5174
+ const before = reader.read(source(id), false);
5175
+ if (!before.hasMore) return false;
5176
+ const next = reader.loadOlder();
5177
+ return !!next && (next.revision !== before.revision || !next.hasMore);
5178
+ },
5179
+ loadNewer: (id) => {
5180
+ const reader = readerFor(id);
5181
+ const before = reader.read(source(id), false);
5182
+ const next = reader.loadNewer();
5183
+ return !!next && next.revision !== before.revision;
5184
+ },
5185
+ loadLatest: (id) => {
5186
+ const reader = readerFor(id);
5187
+ const before = reader.read(source(id), false);
5188
+ const next = reader.loadLatest();
5189
+ return !!next && next.revision !== before.revision;
5190
+ },
5191
+ send: async (id, message, delivery) => {
5192
+ requireTarget(id, delivery);
5193
+ const result = await this.state.queueUserMessage(id, message, delivery);
5194
+ if (epoch === this.#epoch) this.#refresh();
5195
+ return result;
5196
+ },
5197
+ stop: async (id) => {
5198
+ requireTarget(id, "stop");
5199
+ const result = await this.state.stopParticipant(id);
5200
+ if (epoch === this.#epoch) this.#refresh();
5201
+ return result;
5202
+ },
5203
+ close: () => done(void 0)
5204
+ });
5205
+ }, this.#viewErrorReporter(context, epoch));
5204
5206
  this.#conversationView = view;
5205
- return view;
5207
+ return node;
5206
5208
  }, {
5207
5209
  overlay: true,
5208
- overlayOptions: { width: "100%", maxHeight: "100%", anchor: "top-left", margin: 0 }
5210
+ fullscreen: true
5209
5211
  });
5210
5212
  } catch (error) {
5211
5213
  if (epoch === this.#epoch) context.ui.notify(safeText(error instanceof Error ? error.message : String(error)), "error");
@@ -5213,13 +5215,19 @@ var FabricUiController = class {
5213
5215
  if (!alreadyOpen && epoch === this.#epoch) {
5214
5216
  this.#conversationView?.dispose();
5215
5217
  this.#conversationView = void 0;
5216
- this.#conversationTui = void 0;
5218
+ this.#conversationHost = void 0;
5217
5219
  this.#closeConversation = void 0;
5218
5220
  this.#conversationOpen = false;
5219
5221
  this.#schedulePoll(true);
5220
5222
  }
5221
5223
  }
5222
5224
  }
5225
+ #viewErrorReporter(context, epoch) {
5226
+ return (error) => {
5227
+ if (epoch !== this.#epoch) return;
5228
+ context.ui.notify(safeText(`Fabric view error: ${error instanceof Error ? error.message : String(error)}`), "error");
5229
+ };
5230
+ }
5223
5231
  async openDashboard(context) {
5224
5232
  if (this.ownsInput) return;
5225
5233
  if (context.mode !== "tui") {
@@ -5347,57 +5355,59 @@ var FabricUiController = class {
5347
5355
  };
5348
5356
  this.#schedulePoll(true);
5349
5357
  let conversationTarget;
5358
+ let dashboard;
5350
5359
  const epoch = this.#epoch;
5351
5360
  try {
5352
5361
  await context.ui.custom(
5353
- (tui, theme, keybindings, done) => {
5354
- this.#dashboardTui = tui;
5355
- return new FabricDashboard(tui, theme, () => this.#snapshot, () => done(void 0), {
5356
- modelSource,
5357
- keybindings,
5358
- ...this.codePreviewSettings ? { codePreviewSettings: this.codePreviewSettings } : {},
5359
- ...claudeModelSource ? { claudeModelSource } : {},
5360
- onTargetMessage,
5361
- onAgentStop,
5362
- onConversation: (id) => {
5363
- conversationTarget = id;
5364
- done(void 0);
5365
- },
5366
- agentTranscript: (agent, followLatest) => this.#transcripts.read(this.#agentTranscriptSource(agent), followLatest),
5367
- actorTranscript: (actor, followLatest) => this.#transcripts.read(this.#actorTranscriptSource(actor), followLatest),
5368
- loadOlderTranscript: (target) => this.#transcripts.loadOlder(this.#transcriptSource(target)),
5369
- loadNewerTranscript: (target) => this.#transcripts.loadNewer(this.#transcriptSource(target)),
5370
- loadLatestTranscript: (target) => this.#transcripts.loadLatest(this.#transcriptSource(target)),
5371
- onActorModel,
5372
- onActorThinking,
5373
- onActorEvents,
5374
- onActorDeliveryPolicy,
5375
- onGlobalDeliveryPolicy,
5376
- onActorTools,
5377
- actorDefaultTools: this.state.config.agents?.defaultTools ?? [],
5378
- onClearMessages,
5379
- onActorInstructions,
5380
- onGlobalInstructions,
5381
- onImportActor,
5382
- onExportActor,
5383
- onRemoveGlobalActor
5384
- });
5362
+ (ui, theme, keybindings, done) => {
5363
+ const mounted = mountView(() => ui.size(), (host) => {
5364
+ this.#dashboardHost = host;
5365
+ return new FabricDashboard(host, theme, () => this.#snapshot, () => done(void 0), {
5366
+ modelSource,
5367
+ keybindings,
5368
+ ...this.codePreviewSettings ? { codePreviewSettings: this.codePreviewSettings } : {},
5369
+ ...claudeModelSource ? { claudeModelSource } : {},
5370
+ onTargetMessage,
5371
+ onAgentStop,
5372
+ onConversation: (id) => {
5373
+ conversationTarget = id;
5374
+ done(void 0);
5375
+ },
5376
+ agentTranscript: (agent, followLatest) => this.#transcripts.read(this.#agentTranscriptSource(agent), followLatest),
5377
+ actorTranscript: (actor, followLatest) => this.#transcripts.read(this.#actorTranscriptSource(actor), followLatest),
5378
+ loadOlderTranscript: (target) => this.#transcripts.loadOlder(this.#transcriptSource(target)),
5379
+ loadNewerTranscript: (target) => this.#transcripts.loadNewer(this.#transcriptSource(target)),
5380
+ loadLatestTranscript: (target) => this.#transcripts.loadLatest(this.#transcriptSource(target)),
5381
+ onActorModel,
5382
+ onActorThinking,
5383
+ onActorEvents,
5384
+ onActorDeliveryPolicy,
5385
+ onGlobalDeliveryPolicy,
5386
+ onActorTools,
5387
+ actorDefaultTools: this.state.config.agents?.defaultTools ?? [],
5388
+ onClearMessages,
5389
+ onActorInstructions,
5390
+ onGlobalInstructions,
5391
+ onImportActor,
5392
+ onExportActor,
5393
+ onRemoveGlobalActor
5394
+ });
5395
+ }, this.#viewErrorReporter(context, epoch));
5396
+ dashboard = mounted.view;
5397
+ this.#dashboardView = mounted.view;
5398
+ return mounted.node;
5385
5399
  },
5386
5400
  {
5387
5401
  overlay: true,
5388
- overlayOptions: {
5389
- width: "94%",
5390
- minWidth: 40,
5391
- maxHeight: "90%",
5392
- anchor: "center",
5393
- margin: 1
5394
- }
5402
+ fullscreen: true
5395
5403
  }
5396
5404
  );
5397
5405
  } finally {
5406
+ dashboard?.dispose?.();
5407
+ if (this.#dashboardView === dashboard) this.#dashboardView = void 0;
5398
5408
  if (epoch === this.#epoch) {
5399
5409
  this.#dashboardOpen = false;
5400
- this.#dashboardTui = void 0;
5410
+ this.#dashboardHost = void 0;
5401
5411
  this.#refresh();
5402
5412
  this.#schedulePoll(true);
5403
5413
  }
@@ -5481,9 +5491,9 @@ var FabricUiController = class {
5481
5491
  this.#activityRuns
5482
5492
  );
5483
5493
  this.#renderWidget(context);
5484
- if (this.#conversationTui) this.#conversationTui.requestRender();
5485
- if (this.#dashboardTui) this.#dashboardTui.requestRender();
5486
- else if (this.#widgetTui && this.#widget?.hasChanged()) this.#widgetTui.requestRender();
5494
+ if (this.#conversationHost) this.#conversationHost.requestRender();
5495
+ if (this.#dashboardHost) this.#dashboardHost.requestRender();
5496
+ else if (this.#widgetUi && this.#widget?.hasChanged()) this.#widgetUi.requestRender();
5487
5497
  } catch (error) {
5488
5498
  const now = Date.now();
5489
5499
  if (now - this.#lastRefreshErrorAt >= 1e4) {
@@ -5510,8 +5520,8 @@ var FabricUiController = class {
5510
5520
  this.#widgetMounted = true;
5511
5521
  context.ui.setWidget(
5512
5522
  WIDGET_ID,
5513
- (tui, theme) => {
5514
- this.#widgetTui = tui;
5523
+ (ui, theme) => {
5524
+ this.#widgetUi = ui;
5515
5525
  this.#widget = new FabricWidget(theme, () => this.#snapshot, config.maxRows, this.conversationShortcut);
5516
5526
  return this.#widget;
5517
5527
  },
@@ -5522,7 +5532,7 @@ var FabricUiController = class {
5522
5532
  if (!this.#widgetMounted) return;
5523
5533
  context.ui.setWidget(WIDGET_ID, void 0);
5524
5534
  this.#widgetMounted = false;
5525
- this.#widgetTui = void 0;
5535
+ this.#widgetUi = void 0;
5526
5536
  this.#widget = void 0;
5527
5537
  }
5528
5538
  };
@@ -5669,9 +5679,8 @@ async function ompFabric(omp) {
5669
5679
  const fabricOwnsModelTools = () => state.config.fullCodeMode || state.config.schema.mode === "enforce";
5670
5680
  const hiddenCapturedToolNames = () => {
5671
5681
  const policy = capturePolicy();
5672
- const keep = /* @__PURE__ */ new Set([...policy.keepVisible, ...policy.includeTools]);
5673
5682
  return new Set(
5674
- capturedTools.list().map((entry) => entry.name).filter((name) => policy.hideFromModel && !keep.has(name) && !policy.excludeTools.includes(name))
5683
+ capturedTools.list().filter((entry) => capturedToolHiddenFromModel(policy, entry.name, entry.definition.loadMode)).map((entry) => entry.name)
5675
5684
  );
5676
5685
  };
5677
5686
  const ownershipPolicy = () => {
@@ -5946,8 +5955,9 @@ async function ompFabric(omp) {
5946
5955
  refreshProxyLedger(context);
5947
5956
  if (!compatibilityWarningShown) {
5948
5957
  compatibilityWarningShown = true;
5949
- const warning = ompHostCompatibilityWarning(await resolveHostVersion());
5950
- if (warning) {
5958
+ const warnings = [ompHostCompatibilityWarning(await resolveHostVersion()), hostTermDiagnostic()];
5959
+ for (const warning of warnings) {
5960
+ if (!warning) continue;
5951
5961
  console.warn(`[omp-fabric] ${warning}`);
5952
5962
  if (context.hasUI) context.ui.notify(warning, "warning");
5953
5963
  }