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.
- package/CHANGELOG.md +51 -0
- package/README.md +1 -1
- package/dist/capture/interceptor.d.ts.map +1 -1
- package/dist/chunks/{chunk-OJZNMROB.js → chunk-4PPAWZM6.js} +36 -50
- package/dist/chunks/chunk-4PPAWZM6.js.map +7 -0
- package/dist/chunks/{chunk-KIH3KLZU.js → chunk-C2YMZNT5.js} +5 -5
- package/dist/chunks/chunk-C2YMZNT5.js.map +7 -0
- package/dist/chunks/chunk-CHXPTZUF.js +277 -0
- package/dist/chunks/chunk-CHXPTZUF.js.map +7 -0
- package/dist/chunks/chunk-CYNNPPN4.js +93 -0
- package/dist/chunks/chunk-CYNNPPN4.js.map +7 -0
- package/dist/chunks/{chunk-ANHZ3SWB.js → chunk-DGKGPZET.js} +9 -4
- package/dist/chunks/{chunk-ANHZ3SWB.js.map → chunk-DGKGPZET.js.map} +2 -2
- package/dist/chunks/{chunk-2BOZMRT5.js → chunk-FVNEGH4J.js} +32 -49
- package/dist/chunks/chunk-FVNEGH4J.js.map +7 -0
- package/dist/chunks/{chunk-CNCRWY4Q.js → chunk-GS6IWGXQ.js} +9 -1
- package/dist/chunks/chunk-GS6IWGXQ.js.map +7 -0
- package/dist/chunks/{chunk-7QKSPNXQ.js → chunk-V5FB7D4C.js} +3 -3
- package/dist/chunks/chunk-VDYGBL4Z.js +132 -0
- package/dist/chunks/chunk-VDYGBL4Z.js.map +7 -0
- package/dist/chunks/chunk-XVA63H6I.js +151 -0
- package/dist/chunks/chunk-XVA63H6I.js.map +7 -0
- package/dist/chunks/{chunk-NOZBB266.js → chunk-XZIQGFF7.js} +9 -13
- package/dist/chunks/chunk-XZIQGFF7.js.map +7 -0
- package/dist/chunks/{chunk-4XLJPEI4.js → chunk-ZJ7HHWW4.js} +20 -41
- package/dist/chunks/chunk-ZJ7HHWW4.js.map +7 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/approval-controller.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +5 -3
- package/dist/fabric-runtime-state.js.map +1 -1
- package/dist/host-compatibility.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +180 -170
- package/dist/index.js.map +3 -3
- package/dist/residency/host.js +3 -3
- package/dist/residency/omp-entry.js +3 -3
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/dist/ui/arc-group.d.ts +1 -1
- package/dist/ui/arc-group.d.ts.map +1 -1
- package/dist/ui/code-preview-shell.d.ts +2 -2
- package/dist/ui/code-preview-shell.d.ts.map +1 -1
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.d.ts +1 -5
- package/dist/ui/conversation-chrome.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +2 -2
- package/dist/ui/conversation-queue.d.ts +3 -2
- package/dist/ui/conversation-queue.d.ts.map +1 -1
- package/dist/ui/conversation-render.d.ts +19 -23
- package/dist/ui/conversation-render.d.ts.map +1 -1
- package/dist/ui/conversation.d.ts +7 -17
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +317 -318
- package/dist/ui/conversation.js.map +3 -3
- package/dist/ui/core-tool-render.d.ts +1 -1
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard-detail.d.ts +4 -4
- package/dist/ui/dashboard-detail.d.ts.map +1 -1
- package/dist/ui/dashboard-fabric-graph.d.ts +1 -1
- package/dist/ui/dashboard-fabric-graph.d.ts.map +1 -1
- package/dist/ui/dashboard-presentation.d.ts +1 -1
- package/dist/ui/dashboard-presentation.d.ts.map +1 -1
- package/dist/ui/dashboard.d.ts +8 -8
- package/dist/ui/dashboard.d.ts.map +1 -1
- package/dist/ui/dashboard.js +206 -343
- package/dist/ui/dashboard.js.map +3 -3
- package/dist/ui/diff-background.d.ts +1 -1
- package/dist/ui/diff-background.d.ts.map +1 -1
- package/dist/ui/fabric-actor-delivery-selector.d.ts +4 -4
- package/dist/ui/fabric-actor-delivery-selector.d.ts.map +1 -1
- package/dist/ui/fabric-actor-tool-selector.d.ts +5 -6
- package/dist/ui/fabric-actor-tool-selector.d.ts.map +1 -1
- package/dist/ui/fabric-host-event-selector.d.ts +4 -4
- package/dist/ui/fabric-host-event-selector.d.ts.map +1 -1
- package/dist/ui/fabric-model-selector.d.ts +4 -6
- package/dist/ui/fabric-model-selector.d.ts.map +1 -1
- package/dist/ui/fabric-render.d.ts +6 -6
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/dist/ui/fabric-thinking-selector.d.ts +4 -7
- package/dist/ui/fabric-thinking-selector.d.ts.map +1 -1
- package/dist/ui/highlight.d.ts +2 -13
- package/dist/ui/highlight.d.ts.map +1 -1
- package/dist/ui/row-balance.d.ts +6 -6
- package/dist/ui/row-balance.d.ts.map +1 -1
- package/dist/ui/settings.d.ts +6 -3
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +239 -113
- package/dist/ui/settings.js.map +3 -3
- package/dist/ui/state-file-preview.d.ts +1 -1
- package/dist/ui/state-file-preview.d.ts.map +1 -1
- package/dist/ui/tui/host-term.d.ts +16 -0
- package/dist/ui/tui/host-term.d.ts.map +1 -0
- package/dist/ui/tui/input.d.ts +19 -0
- package/dist/ui/tui/input.d.ts.map +1 -0
- package/dist/ui/tui/rows.d.ts +24 -0
- package/dist/ui/tui/rows.d.ts.map +1 -0
- package/dist/ui/tui/select-list.d.ts +28 -0
- package/dist/ui/tui/select-list.d.ts.map +1 -0
- package/dist/ui/tui/settings-list.d.ts +38 -0
- package/dist/ui/tui/settings-list.d.ts.map +1 -0
- package/dist/ui/tui/text-field.d.ts +40 -0
- package/dist/ui/tui/text-field.d.ts.map +1 -0
- package/dist/ui/tui/view.d.ts +26 -0
- package/dist/ui/tui/view.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +3 -3
- package/dist/ui/widget.d.ts.map +1 -1
- package/docs/configuration.md +2 -0
- package/docs/interface.md +16 -3
- package/package.json +13 -12
- package/dist/chunks/chunk-2BOZMRT5.js.map +0 -7
- package/dist/chunks/chunk-4XLJPEI4.js.map +0 -7
- package/dist/chunks/chunk-CNCRWY4Q.js.map +0 -7
- package/dist/chunks/chunk-G2IBGGBM.js +0 -42
- package/dist/chunks/chunk-G2IBGGBM.js.map +0 -7
- package/dist/chunks/chunk-KIH3KLZU.js.map +0 -7
- package/dist/chunks/chunk-NOZBB266.js.map +0 -7
- package/dist/chunks/chunk-OJZNMROB.js.map +0 -7
- package/dist/ui/symbol-theme.d.ts +0 -3
- package/dist/ui/symbol-theme.d.ts.map +0 -1
- /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((
|
|
1320
|
-
const container = new
|
|
1321
|
-
container.
|
|
1322
|
-
container.
|
|
1323
|
-
container.
|
|
1324
|
-
new
|
|
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.
|
|
1327
|
-
container.
|
|
1328
|
-
new
|
|
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.
|
|
1321
|
+
container.add(new TextBlock(theme.fg("muted", action.description), 1, 0));
|
|
1335
1322
|
if (escalationReason) {
|
|
1336
|
-
container.
|
|
1337
|
-
container.
|
|
1338
|
-
new
|
|
1323
|
+
container.add(new BlankRows(1));
|
|
1324
|
+
container.add(
|
|
1325
|
+
new TextBlock(theme.fg("warning", escalationReason), 1, 0)
|
|
1339
1326
|
);
|
|
1340
1327
|
}
|
|
1341
|
-
container.
|
|
1342
|
-
container.
|
|
1343
|
-
new
|
|
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.
|
|
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,
|
|
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.
|
|
1371
|
-
container.
|
|
1372
|
-
container.
|
|
1373
|
-
new
|
|
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.
|
|
1376
|
-
container.
|
|
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
|
-
|
|
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-
|
|
2827
|
+
//# sourceMappingURL=chunk-FVNEGH4J.js.map
|