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
@@ -5,6 +5,12 @@ import {
5
5
  import {
6
6
  DynamicBorder
7
7
  } from "./chunk-7VIQNUPS.js";
8
+ import {
9
+ BlankRows,
10
+ SelectList,
11
+ Stack,
12
+ TextBlock
13
+ } from "./chunk-VDYGBL4Z.js";
8
14
  import {
9
15
  THINKING_DIGEST_CUSTOM_TYPE,
10
16
  buildThinkingDigest,
@@ -1037,14 +1043,6 @@ var expandSkillDirMarkersForRead = (content, args, cwd) => {
1037
1043
  return expandSkillDirMarkers(content, path.dirname(requestedPath));
1038
1044
  };
1039
1045
 
1040
- // src/core/approval-controller.ts
1041
- import {
1042
- Container,
1043
- SelectList,
1044
- Spacer,
1045
- Text
1046
- } from "@oh-my-pi/pi-tui";
1047
-
1048
1046
  // src/core/auto-approval-classifier.ts
1049
1047
  import { Type } from "@oh-my-pi/pi-coding-agent/extensibility/legacy-typebox";
1050
1048
  var MAX_TRANSCRIPT_CHARS = 24e3;
@@ -1187,17 +1185,6 @@ var FabricAutoApprovalClassifier = class {
1187
1185
  };
1188
1186
 
1189
1187
  // src/core/approval-controller.ts
1190
- var selectListThemeFor = (theme) => {
1191
- const apply = (name, text) => theme.fg(name, text);
1192
- return {
1193
- symbols: theme.symbols,
1194
- selectedPrefix: (text) => apply("accent", text),
1195
- selectedText: (text) => apply("accent", text),
1196
- description: (text) => apply("muted", text),
1197
- scrollInfo: (text) => apply("muted", text),
1198
- noMatch: (text) => apply("muted", text)
1199
- };
1200
- };
1201
1188
  var inheritedRisks = () => {
1202
1189
  const allowed = /* @__PURE__ */ new Set(["read", "write", "execute", "network", "agent"]);
1203
1190
  return (process.env.OMP_FABRIC_GRANTED_RISKS ?? "").split(",").filter((risk) => allowed.has(risk));
@@ -1316,37 +1303,37 @@ var ApprovalController = class {
1316
1303
  return "deny";
1317
1304
  }
1318
1305
  async #requestTuiApproval(action, escalationReason) {
1319
- const choice = await this.context.ui.custom((tui, theme, _keybindings, done) => {
1320
- const container = new Container();
1321
- container.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
1322
- container.addChild(new Spacer(1));
1323
- container.addChild(
1324
- new Text(theme.fg("warning", theme.bold("\u{1F6E1} OMP Fabric permission request")), 1, 0)
1306
+ const choice = await this.context.ui.custom((_ui, theme, _keybindings, done) => {
1307
+ const container = new Stack();
1308
+ container.add(new DynamicBorder((text) => theme.fg("warning", text)));
1309
+ container.add(new BlankRows(1));
1310
+ container.add(
1311
+ new TextBlock(theme.fg("warning", theme.style("strong", "\u{1F6E1} OMP Fabric permission request")), 1, 0)
1325
1312
  );
1326
- container.addChild(new Spacer(1));
1327
- container.addChild(
1328
- new Text(
1313
+ container.add(new BlankRows(1));
1314
+ container.add(
1315
+ new TextBlock(
1329
1316
  theme.fg("text", `${action.ref} requests ${action.risk} access.`),
1330
1317
  1,
1331
1318
  0
1332
1319
  )
1333
1320
  );
1334
- container.addChild(new Text(theme.fg("muted", action.description), 1, 0));
1321
+ container.add(new TextBlock(theme.fg("muted", action.description), 1, 0));
1335
1322
  if (escalationReason) {
1336
- container.addChild(new Spacer(1));
1337
- container.addChild(
1338
- new Text(theme.fg("warning", escalationReason), 1, 0)
1323
+ container.add(new BlankRows(1));
1324
+ container.add(
1325
+ new TextBlock(theme.fg("warning", escalationReason), 1, 0)
1339
1326
  );
1340
1327
  }
1341
- container.addChild(new Spacer(1));
1342
- container.addChild(
1343
- new Text(
1328
+ container.add(new BlankRows(1));
1329
+ container.add(
1330
+ new TextBlock(
1344
1331
  theme.fg("dim", "Choose whether to allow only this call or this risk class for the session."),
1345
1332
  1,
1346
1333
  0
1347
1334
  )
1348
1335
  );
1349
- container.addChild(new Spacer(1));
1336
+ container.add(new BlankRows(1));
1350
1337
  const items = [
1351
1338
  {
1352
1339
  value: "allow-once",
@@ -1364,23 +1351,19 @@ var ApprovalController = class {
1364
1351
  description: "Block the requested action"
1365
1352
  }
1366
1353
  ];
1367
- const list = new SelectList(items, items.length, selectListThemeFor(theme));
1354
+ const list = new SelectList(items, items.length, theme);
1368
1355
  list.onSelect = (item) => done(item.value);
1369
1356
  list.onCancel = () => done("deny");
1370
- container.addChild(list);
1371
- container.addChild(new Spacer(1));
1372
- container.addChild(
1373
- new Text(theme.fg("dim", "\u2191\u2193 navigate \xB7 enter select \xB7 esc deny"), 1, 0)
1357
+ container.add(list);
1358
+ container.add(new BlankRows(1));
1359
+ container.add(
1360
+ new TextBlock(theme.fg("dim", "\u2191\u2193 navigate \xB7 enter select \xB7 esc deny"), 1, 0)
1374
1361
  );
1375
- container.addChild(new Spacer(1));
1376
- container.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
1362
+ container.add(new BlankRows(1));
1363
+ container.add(new DynamicBorder((text) => theme.fg("warning", text)));
1377
1364
  return {
1378
1365
  render: (width) => container.render(width),
1379
- invalidate: () => container.invalidate(),
1380
- handleInput: (data) => {
1381
- list.handleInput(data);
1382
- tui.requestRender();
1383
- }
1366
+ handleInput: (data) => list.handleInput(data)
1384
1367
  };
1385
1368
  });
1386
1369
  return choice ?? "deny";
@@ -2841,4 +2824,4 @@ export {
2841
2824
  resolveFabricIdentity,
2842
2825
  MainAgentController
2843
2826
  };
2844
- //# sourceMappingURL=chunk-2BOZMRT5.js.map
2827
+ //# sourceMappingURL=chunk-FVNEGH4J.js.map