@botmanor/fe-sdk 2026.1205.5 → 2026.1206.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/dist/index.d.ts +22 -1
- package/dist/index.js +108 -28
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -413,6 +413,8 @@ export declare const DEFAULT_VIBECONTROLS_URL = "https://app.vibecontrols.com/";
|
|
|
413
413
|
export declare const OWN_MACHINE_PAGE_SIZE = 100;
|
|
414
414
|
/** Pages read at most (10 000 machines); the list says when it stopped early. */
|
|
415
415
|
export declare const OWN_MACHINE_MAX_PAGES = 100;
|
|
416
|
+
/** The owner's machines looked up one by one when the grant list may miss them. */
|
|
417
|
+
export declare const OWN_MACHINE_GRANT_LOOKUPS = 50;
|
|
416
418
|
/** The grant lengths the owner can pick, in days. */
|
|
417
419
|
export declare const OWN_MACHINE_GRANT_DAYS: readonly [1, 7, 30];
|
|
418
420
|
type OwnMachineGrantDays = (typeof OWN_MACHINE_GRANT_DAYS)[number];
|
|
@@ -455,6 +457,8 @@ interface OwnMachineRow {
|
|
|
455
457
|
* only Revoke, to whoever the service lets revoke it (BOFF-18818).
|
|
456
458
|
*/
|
|
457
459
|
revokeOnly?: true;
|
|
460
|
+
/** The machine list does not hold this machine; only its id is known. */
|
|
461
|
+
unlisted?: true;
|
|
458
462
|
}
|
|
459
463
|
/**
|
|
460
464
|
* The owner's machines for the picker: the owner's agents, chosen one first,
|
|
@@ -462,8 +466,25 @@ interface OwnMachineRow {
|
|
|
462
466
|
* past its expiry (`now`, for tests). A live grant on any other machine
|
|
463
467
|
* follows as a revoke-only row, so the person who may revoke it still can
|
|
464
468
|
* (BOFF-18818); a machine the list does not hold is named by its id.
|
|
469
|
+
* Machines in `unchecked` (their grant could not be looked up) stay listed
|
|
470
|
+
* too, so the viewer can check the grant by hand.
|
|
465
471
|
*/
|
|
466
|
-
export declare function ownMachineRows(agents: readonly OwnMachineCandidate[], grants: readonly OwnMachineGrant[], ownerActorId: string, chosenAgentId: string | null, now?: number): OwnMachineRow[];
|
|
472
|
+
export declare function ownMachineRows(agents: readonly OwnMachineCandidate[], grants: readonly OwnMachineGrant[], ownerActorId: string, chosenAgentId: string | null, now?: number, unchecked?: ReadonlySet<string>): OwnMachineRow[];
|
|
473
|
+
/**
|
|
474
|
+
* The machines whose grant is looked up one by one, because the capped grant
|
|
475
|
+
* list may have left a live grant out. `lookup` holds the steward owner's
|
|
476
|
+
* machines without a live grant in the list, looked up before the picker
|
|
477
|
+
* shows. `later` holds, for a viewer who is not the owner, the viewer's own
|
|
478
|
+
* machines (a machine owner may revoke a grant on their machine, BOFF-18818);
|
|
479
|
+
* they are looked up after the picker shows, so they never hold up the rows
|
|
480
|
+
* already known. At most {@link OWN_MACHINE_GRANT_LOOKUPS} are looked up in
|
|
481
|
+
* all, owner's first; the rest are `unchecked`.
|
|
482
|
+
*/
|
|
483
|
+
export declare function ownMachineGrantLookups(agents: readonly OwnMachineCandidate[], grants: readonly OwnMachineGrant[], ownerActorId: string, viewerActorId?: string | null, now?: number): {
|
|
484
|
+
lookup: string[];
|
|
485
|
+
later: string[];
|
|
486
|
+
unchecked: string[];
|
|
487
|
+
};
|
|
467
488
|
/** The expiry to send for a grant of `days`, never past the service's 30-day limit. */
|
|
468
489
|
export declare function ownMachineGrantExpiry(days: OwnMachineGrantDays, now?: number): string;
|
|
469
490
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1238,8 +1238,10 @@ function isLive(grant, now) {
|
|
|
1238
1238
|
* past its expiry (`now`, for tests). A live grant on any other machine
|
|
1239
1239
|
* follows as a revoke-only row, so the person who may revoke it still can
|
|
1240
1240
|
* (BOFF-18818); a machine the list does not hold is named by its id.
|
|
1241
|
+
* Machines in `unchecked` (their grant could not be looked up) stay listed
|
|
1242
|
+
* too, so the viewer can check the grant by hand.
|
|
1241
1243
|
*/
|
|
1242
|
-
function ownMachineRows(agents, grants, ownerActorId, chosenAgentId, now = Date.now()) {
|
|
1244
|
+
function ownMachineRows(agents, grants, ownerActorId, chosenAgentId, now = Date.now(), unchecked = /* @__PURE__ */ new Set()) {
|
|
1243
1245
|
const granted = new Set(grants.filter((g) => isLive(g, now)).map((g) => g.agentId));
|
|
1244
1246
|
const rank = (row) => row.revokeOnly ? 3 : row.chosen ? 0 : row.granted ? 1 : 2;
|
|
1245
1247
|
const listed = new Set(agents.map((a) => a.id));
|
|
@@ -1252,16 +1254,40 @@ function ownMachineRows(agents, grants, ownerActorId, chosenAgentId, now = Date.
|
|
|
1252
1254
|
ownerUserId: null,
|
|
1253
1255
|
lastHeartbeat: null
|
|
1254
1256
|
}));
|
|
1255
|
-
return [...agents, ...unlisted].filter((a) => a.ownerUserId === ownerActorId || a.id === chosenAgentId || granted.has(a.id)).map((agent) => {
|
|
1257
|
+
return [...agents, ...unlisted].filter((a) => a.ownerUserId === ownerActorId || a.id === chosenAgentId || granted.has(a.id) || unchecked.has(a.id)).map((agent) => {
|
|
1256
1258
|
const row = {
|
|
1257
1259
|
agent,
|
|
1258
1260
|
granted: granted.has(agent.id),
|
|
1259
1261
|
chosen: agent.id === chosenAgentId
|
|
1260
1262
|
};
|
|
1261
1263
|
if (agent.ownerUserId !== ownerActorId && !row.chosen) row.revokeOnly = true;
|
|
1264
|
+
if (!listed.has(agent.id)) row.unlisted = true;
|
|
1262
1265
|
return row;
|
|
1263
1266
|
}).sort((a, b) => rank(a) - rank(b) || a.agent.name.localeCompare(b.agent.name));
|
|
1264
1267
|
}
|
|
1268
|
+
/**
|
|
1269
|
+
* The machines whose grant is looked up one by one, because the capped grant
|
|
1270
|
+
* list may have left a live grant out. `lookup` holds the steward owner's
|
|
1271
|
+
* machines without a live grant in the list, looked up before the picker
|
|
1272
|
+
* shows. `later` holds, for a viewer who is not the owner, the viewer's own
|
|
1273
|
+
* machines (a machine owner may revoke a grant on their machine, BOFF-18818);
|
|
1274
|
+
* they are looked up after the picker shows, so they never hold up the rows
|
|
1275
|
+
* already known. At most {@link OWN_MACHINE_GRANT_LOOKUPS} are looked up in
|
|
1276
|
+
* all, owner's first; the rest are `unchecked`.
|
|
1277
|
+
*/
|
|
1278
|
+
function ownMachineGrantLookups(agents, grants, ownerActorId, viewerActorId = null, now = Date.now()) {
|
|
1279
|
+
const live = new Set(grants.filter((g) => isLive(g, now)).map((g) => g.agentId));
|
|
1280
|
+
const missingOf = (owner) => agents.filter((a) => a.ownerUserId === owner && !live.has(a.id)).map((a) => a.id);
|
|
1281
|
+
const owners = missingOf(ownerActorId);
|
|
1282
|
+
const viewers = viewerActorId && viewerActorId !== ownerActorId ? missingOf(viewerActorId) : [];
|
|
1283
|
+
const lookup = owners.slice(0, 50);
|
|
1284
|
+
const later = viewers.slice(0, 50 - lookup.length);
|
|
1285
|
+
return {
|
|
1286
|
+
lookup,
|
|
1287
|
+
later,
|
|
1288
|
+
unchecked: [...owners.slice(lookup.length), ...viewers.slice(later.length)]
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1265
1291
|
/** The expiry to send for a grant of `days`, never past the service's 30-day limit. */
|
|
1266
1292
|
function ownMachineGrantExpiry(days, now = Date.now()) {
|
|
1267
1293
|
return new Date(now + Math.min(days * DAY_MS, 25917e5)).toISOString();
|
|
@@ -1322,10 +1348,35 @@ const EMPTY_MACHINES = {
|
|
|
1322
1348
|
error: void 0,
|
|
1323
1349
|
loading: false,
|
|
1324
1350
|
truncated: false,
|
|
1325
|
-
unchecked: /* @__PURE__ */ new Set()
|
|
1351
|
+
unchecked: /* @__PURE__ */ new Set(),
|
|
1352
|
+
pending: 0
|
|
1326
1353
|
};
|
|
1327
1354
|
/** Grant lookups sent at once. */
|
|
1328
1355
|
const GRANT_LOOKUP_CONCURRENCY = 8;
|
|
1356
|
+
/** A one-machine grant lookup that takes longer falls back to Check grant. */
|
|
1357
|
+
const OWN_MACHINE_GRANT_LOOKUP_TIMEOUT_MS = 15e3;
|
|
1358
|
+
/**
|
|
1359
|
+
* Runs a one-machine grant lookup with its own signal, given up at the
|
|
1360
|
+
* deadline or when `parent` aborts. The signal stops the request, so a
|
|
1361
|
+
* stalled one never outlives its slot; the race also covers the host's token
|
|
1362
|
+
* getters, which run before the request and do not see the signal.
|
|
1363
|
+
*/
|
|
1364
|
+
async function withLookupDeadline(run, parent) {
|
|
1365
|
+
const own = new AbortController();
|
|
1366
|
+
const stop = () => own.abort();
|
|
1367
|
+
parent?.addEventListener("abort", stop, { once: true });
|
|
1368
|
+
const timer = setTimeout(stop, OWN_MACHINE_GRANT_LOOKUP_TIMEOUT_MS);
|
|
1369
|
+
const deadline = new Promise((_, reject) => {
|
|
1370
|
+
own.signal.addEventListener("abort", () => reject(/* @__PURE__ */ new Error("The grant check took too long. Try Check grant again in a moment.")), { once: true });
|
|
1371
|
+
});
|
|
1372
|
+
deadline.catch(() => void 0);
|
|
1373
|
+
try {
|
|
1374
|
+
return await Promise.race([run(own.signal), deadline]);
|
|
1375
|
+
} finally {
|
|
1376
|
+
clearTimeout(timer);
|
|
1377
|
+
parent?.removeEventListener("abort", stop);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1329
1380
|
/**
|
|
1330
1381
|
* Every VibeControls machine the viewer can see in the workspace, page by
|
|
1331
1382
|
* page, and the steward's live grants. The agents query has no owner filter,
|
|
@@ -1336,7 +1387,7 @@ const GRANT_LOOKUP_CONCURRENCY = 8;
|
|
|
1336
1387
|
* by gateway, workspace, steward and owner, so another scope's machines and
|
|
1337
1388
|
* grants are never shown or acted on; a superseded load is aborted.
|
|
1338
1389
|
*/
|
|
1339
|
-
function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
1390
|
+
function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled, lookupViewerMachines) {
|
|
1340
1391
|
const { client, config: { gatewayUrl, workspaceId } } = useStewardsSdk();
|
|
1341
1392
|
const scope = JSON.stringify([
|
|
1342
1393
|
gatewayUrl,
|
|
@@ -1358,10 +1409,11 @@ function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
|
1358
1409
|
useEffect(() => {
|
|
1359
1410
|
if (!enabled) return void 0;
|
|
1360
1411
|
const controller = new AbortController();
|
|
1361
|
-
const grantsOf = async (agentId) => (await client.request(LIST_OWN_MACHINE_GRANTS, {
|
|
1412
|
+
const grantsOf = async (agentId, signal = controller.signal) => (await client.request(LIST_OWN_MACHINE_GRANTS, {
|
|
1362
1413
|
stewardId,
|
|
1363
1414
|
...agentId ? { agentId } : {}
|
|
1364
|
-
},
|
|
1415
|
+
}, signal)).vibecontrolsStewardGrants;
|
|
1416
|
+
const grantsWithDeadline = (agentId) => withLookupDeadline((signal) => grantsOf(agentId, signal), controller.signal);
|
|
1365
1417
|
const load = async () => {
|
|
1366
1418
|
const agents = [];
|
|
1367
1419
|
let truncated = true;
|
|
@@ -1377,14 +1429,11 @@ function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
|
1377
1429
|
}
|
|
1378
1430
|
}
|
|
1379
1431
|
const grants = [...await grantsOf()];
|
|
1380
|
-
const
|
|
1381
|
-
const
|
|
1382
|
-
const missing = agents.filter((a) => a.ownerUserId === ownerActorId && !live.has(a.id)).map((a) => a.id);
|
|
1383
|
-
const checked = missing.slice(0, 50);
|
|
1384
|
-
const unchecked = new Set(missing.slice(50));
|
|
1432
|
+
const { lookup: checked, later, unchecked: skipped } = ownMachineGrantLookups(agents, grants, ownerActorId, lookupViewerMachines ? viewerActorId ?? null : null);
|
|
1433
|
+
const unchecked = new Set(skipped);
|
|
1385
1434
|
for (let i = 0; i < checked.length; i += GRANT_LOOKUP_CONCURRENCY) {
|
|
1386
1435
|
const ids = checked.slice(i, i + GRANT_LOOKUP_CONCURRENCY);
|
|
1387
|
-
const batch = await Promise.allSettled(ids.map((id) =>
|
|
1436
|
+
const batch = await Promise.allSettled(ids.map((id) => grantsWithDeadline(id)));
|
|
1388
1437
|
if (controller.signal.aborted) break;
|
|
1389
1438
|
batch.forEach((result, n) => {
|
|
1390
1439
|
if (result.status === "fulfilled") grants.push(...result.value);
|
|
@@ -1395,10 +1444,32 @@ function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
|
1395
1444
|
agents,
|
|
1396
1445
|
grants,
|
|
1397
1446
|
truncated,
|
|
1398
|
-
unchecked
|
|
1447
|
+
unchecked,
|
|
1448
|
+
later
|
|
1399
1449
|
};
|
|
1400
1450
|
};
|
|
1401
|
-
|
|
1451
|
+
const applyLater = (found, failed) => setState((prev) => prev && prev.scope === scope ? {
|
|
1452
|
+
...prev,
|
|
1453
|
+
grants: [...prev.grants ?? [], ...found],
|
|
1454
|
+
unchecked: /* @__PURE__ */ new Set([...prev.unchecked, ...failed]),
|
|
1455
|
+
pending: Math.max(prev.pending - 1, 0)
|
|
1456
|
+
} : prev);
|
|
1457
|
+
const lookUpOneLater = async (agentId) => {
|
|
1458
|
+
try {
|
|
1459
|
+
const found = await grantsWithDeadline(agentId);
|
|
1460
|
+
if (!controller.signal.aborted) applyLater(found, []);
|
|
1461
|
+
} catch {
|
|
1462
|
+
if (!controller.signal.aborted) applyLater([], [agentId]);
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
const lookUpLater = async (later) => {
|
|
1466
|
+
const queue = [...later];
|
|
1467
|
+
const worker = async () => {
|
|
1468
|
+
for (let next = queue.shift(); next !== void 0 && !controller.signal.aborted; next = queue.shift()) await lookUpOneLater(next);
|
|
1469
|
+
};
|
|
1470
|
+
await Promise.all(Array.from({ length: Math.min(GRANT_LOOKUP_CONCURRENCY, queue.length) }, worker));
|
|
1471
|
+
};
|
|
1472
|
+
load().then(({ agents, grants, truncated, unchecked, later }) => {
|
|
1402
1473
|
if (controller.signal.aborted) return;
|
|
1403
1474
|
setState({
|
|
1404
1475
|
scope,
|
|
@@ -1407,8 +1478,10 @@ function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
|
1407
1478
|
error: void 0,
|
|
1408
1479
|
loading: false,
|
|
1409
1480
|
truncated,
|
|
1410
|
-
unchecked
|
|
1481
|
+
unchecked,
|
|
1482
|
+
pending: later.length
|
|
1411
1483
|
});
|
|
1484
|
+
lookUpLater(later);
|
|
1412
1485
|
}, (err) => {
|
|
1413
1486
|
if (controller.signal.aborted) return;
|
|
1414
1487
|
setState({
|
|
@@ -1423,14 +1496,16 @@ function useOwnMachineData(stewardId, ownerActorId, viewerActorId, enabled) {
|
|
|
1423
1496
|
scope,
|
|
1424
1497
|
stewardId,
|
|
1425
1498
|
ownerActorId,
|
|
1499
|
+
viewerActorId,
|
|
1426
1500
|
enabled,
|
|
1501
|
+
lookupViewerMachines,
|
|
1427
1502
|
nonce
|
|
1428
1503
|
]);
|
|
1429
1504
|
const checkAgent = useCallback(async (agentId) => {
|
|
1430
|
-
const found = (await client.request(LIST_OWN_MACHINE_GRANTS, {
|
|
1505
|
+
const found = await withLookupDeadline(async (signal) => (await client.request(LIST_OWN_MACHINE_GRANTS, {
|
|
1431
1506
|
stewardId,
|
|
1432
1507
|
agentId
|
|
1433
|
-
})).vibecontrolsStewardGrants;
|
|
1508
|
+
}, signal)).vibecontrolsStewardGrants);
|
|
1434
1509
|
setState((prev) => {
|
|
1435
1510
|
if (!prev || prev.scope !== scope) return prev;
|
|
1436
1511
|
const unchecked = new Set(prev.unchecked);
|
|
@@ -1492,7 +1567,7 @@ function StewardOwnMachineDeskPanel({ stewardId, ownerActorId, vibecontrolsUrl =
|
|
|
1492
1567
|
const abilities = ownMachineAbilities(ownerActorId, access);
|
|
1493
1568
|
const { client, config } = useStewardsSdk();
|
|
1494
1569
|
const desk = useStewardsQuery(GET_STEWARD_OWN_MACHINE_DESK, { stewardId });
|
|
1495
|
-
const machines = useOwnMachineData(stewardId, ownerActorId, access?.viewerActorId, abilities.read);
|
|
1570
|
+
const machines = useOwnMachineData(stewardId, ownerActorId, access?.viewerActorId, abilities.read, access?.canGrantMachines !== false);
|
|
1496
1571
|
const choose = useStewardsMutation(SET_STEWARD_OWN_MACHINE_DESK);
|
|
1497
1572
|
const clear = useStewardsMutation(CLEAR_STEWARD_OWN_MACHINE_DESK);
|
|
1498
1573
|
const grant = useStewardsMutation(GRANT_OWN_MACHINE);
|
|
@@ -1535,7 +1610,7 @@ function StewardOwnMachineDeskPanel({ stewardId, ownerActorId, vibecontrolsUrl =
|
|
|
1535
1610
|
}, [refresh]);
|
|
1536
1611
|
const current = desk.data?.botmanorStewardOwnMachineDesk ?? null;
|
|
1537
1612
|
const grants = machines.grants ?? [];
|
|
1538
|
-
const rows = ownMachineRows(machines.agents ?? [], grants, ownerActorId, current?.agentId ?? null);
|
|
1613
|
+
const rows = ownMachineRows(machines.agents ?? [], grants, ownerActorId, current?.agentId ?? null, void 0, machines.unchecked);
|
|
1539
1614
|
const [expiryTick, setExpiryTick] = useState(0);
|
|
1540
1615
|
const nextExpiry = nextOwnMachineGrantExpiry(grants);
|
|
1541
1616
|
useEffect(() => {
|
|
@@ -1664,6 +1739,8 @@ function StewardOwnMachineDeskPanel({ stewardId, ownerActorId, vibecontrolsUrl =
|
|
|
1664
1739
|
}) : null,
|
|
1665
1740
|
abilities.read ? /* @__PURE__ */ jsx(MachineList, {
|
|
1666
1741
|
loading: !listed && machines.loading,
|
|
1742
|
+
pending: machines.pending > 0,
|
|
1743
|
+
ownerView: !access?.viewerActorId || access.viewerActorId === ownerActorId,
|
|
1667
1744
|
listed,
|
|
1668
1745
|
truncated: machines.truncated,
|
|
1669
1746
|
error: machines.error,
|
|
@@ -1769,11 +1846,12 @@ function CurrentMachine({ loading, loaded, error, current, name, canClear, busy,
|
|
|
1769
1846
|
] });
|
|
1770
1847
|
}
|
|
1771
1848
|
/** The owner's machines, each with its grant and what the viewer may do. */
|
|
1772
|
-
function MachineList({ loading, listed, truncated, error, rows, ...actions }) {
|
|
1849
|
+
function MachineList({ loading, pending, ownerView, listed, truncated, error, rows, ...actions }) {
|
|
1773
1850
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1774
1851
|
loading ? /* @__PURE__ */ jsx(Muted, { children: "Loading your machines…" }) : null,
|
|
1775
1852
|
/* @__PURE__ */ jsx(GuidedErrorNote, { error }),
|
|
1776
|
-
|
|
1853
|
+
pending ? /* @__PURE__ */ jsx(Muted, { children: "Checking your machines for grants to this steward…" }) : null,
|
|
1854
|
+
listed && !pending && rows.length === 0 ? /* @__PURE__ */ jsx(Muted, { children: ownerView ? "You have no VibeControls machines in this workspace." : "No machines to show: none of the steward owner's machines are listed here, and no grant to this steward was found on yours." }) : null,
|
|
1777
1855
|
truncated ? /* @__PURE__ */ jsx(Muted, { children: "Only the first machines in this workspace are listed." }) : null,
|
|
1778
1856
|
rows.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
1779
1857
|
style: listStyle,
|
|
@@ -1785,22 +1863,24 @@ function MachineList({ loading, listed, truncated, error, rows, ...actions }) {
|
|
|
1785
1863
|
}) : null
|
|
1786
1864
|
] });
|
|
1787
1865
|
}
|
|
1788
|
-
function MachineRow({ row: { agent, granted, chosen, revokeOnly }, unchecked, ownerActorId, onCheck, busy, canChoose, canGrant, canCheck, canRevoke, onChoose, onGrant, onRevoke }) {
|
|
1866
|
+
function MachineRow({ row: { agent, granted, chosen, revokeOnly, unlisted }, unchecked, ownerActorId, onCheck, busy, canChoose, canGrant, canCheck, canRevoke, onChoose, onGrant, onRevoke }) {
|
|
1789
1867
|
const unknown = !granted && unchecked.has(agent.id);
|
|
1790
1868
|
return /* @__PURE__ */ jsxs("li", {
|
|
1791
1869
|
style: rowStyle,
|
|
1792
1870
|
children: [
|
|
1793
1871
|
/* @__PURE__ */ jsx("strong", { children: agent.name }),
|
|
1794
1872
|
" ",
|
|
1795
|
-
/* @__PURE__ */
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1873
|
+
unlisted ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1874
|
+
/* @__PURE__ */ jsx(Muted, { children: agent.hostname }),
|
|
1875
|
+
" ",
|
|
1876
|
+
/* @__PURE__ */ jsx(Badge, { children: agent.isActive ? "Active" : "Inactive" }),
|
|
1877
|
+
" "
|
|
1878
|
+
] }),
|
|
1799
1879
|
/* @__PURE__ */ jsx(Badge, { children: granted ? "Granted" : unknown ? "Grant not checked" : "Not granted" }),
|
|
1800
1880
|
" ",
|
|
1801
1881
|
chosen ? /* @__PURE__ */ jsx(Badge, { children: "Chosen" }) : null,
|
|
1802
1882
|
" ",
|
|
1803
|
-
revokeOnly ? /* @__PURE__ */ jsx(Badge, { children: "Not the steward owner's machine" }) : null,
|
|
1883
|
+
revokeOnly && !unlisted ? /* @__PURE__ */ jsx(Badge, { children: "Not the steward owner's machine" }) : null,
|
|
1804
1884
|
" ",
|
|
1805
1885
|
canCheck && unknown ? /* @__PURE__ */ jsx(Button, {
|
|
1806
1886
|
onClick: () => onCheck(agent.id),
|
|
@@ -3061,4 +3141,4 @@ function ApprovalInbox({ stewardId, pollIntervalMs = 15e3 }) {
|
|
|
3061
3141
|
});
|
|
3062
3142
|
}
|
|
3063
3143
|
|
|
3064
|
-
export { AGENT_STATUS_LABELS, AGENT_STATUS_SHORT_LABELS, ApprovalInbox, DEFAULT_BOTMANOR_APP_URL, DEFAULT_STEWARDS_THEME, DEFAULT_VIBECONTROLS_URL, GUIDED_ENTRIES, GUIDED_PERMISSIONS, GuidedErrorNote, OWN_MACHINE_GRANT_DAYS, OWN_MACHINE_MAX_PAGES, OWN_MACHINE_PAGE_SIZE, PERMISSION_LABELS, STOP_REASON_LABELS, StewardBuilder, StewardConsole, StewardOwnMachineDesk, StewardOwnMachineDeskPanel, StewardRunView, StewardsRequestError, StewardsSdkProvider, agentPickerLabel, botmanorPath, buildGuidedError, cloudDeskAvailability, createStewardsEventBus, crossShellUrl, describeGuidedError, describeRunFailure, englishGuidedTranslate, extractGuidedSource, fillGuidedParams, guidedI18nBase, guidedParams, guidedText, guidedTranslateFrom, isDefiniteRefusal, isStaleStateError, nextOwnMachineGrantExpiry, ownMachineAbilities, ownMachineAllowedApps, ownMachineAppCount, ownMachineCanRevoke, ownMachineGrantExpiry, ownMachineRows, permissionLabelKey, pickableAgents, planGuidedActions, reasonCamel, resolveGuidedLocation, stepReasonCode, stopReasonLabel, themeToStyle, useStewardsEvent, useStewardsSdk };
|
|
3144
|
+
export { AGENT_STATUS_LABELS, AGENT_STATUS_SHORT_LABELS, ApprovalInbox, DEFAULT_BOTMANOR_APP_URL, DEFAULT_STEWARDS_THEME, DEFAULT_VIBECONTROLS_URL, GUIDED_ENTRIES, GUIDED_PERMISSIONS, GuidedErrorNote, OWN_MACHINE_GRANT_DAYS, OWN_MACHINE_GRANT_LOOKUPS, OWN_MACHINE_MAX_PAGES, OWN_MACHINE_PAGE_SIZE, PERMISSION_LABELS, STOP_REASON_LABELS, StewardBuilder, StewardConsole, StewardOwnMachineDesk, StewardOwnMachineDeskPanel, StewardRunView, StewardsRequestError, StewardsSdkProvider, agentPickerLabel, botmanorPath, buildGuidedError, cloudDeskAvailability, createStewardsEventBus, crossShellUrl, describeGuidedError, describeRunFailure, englishGuidedTranslate, extractGuidedSource, fillGuidedParams, guidedI18nBase, guidedParams, guidedText, guidedTranslateFrom, isDefiniteRefusal, isStaleStateError, nextOwnMachineGrantExpiry, ownMachineAbilities, ownMachineAllowedApps, ownMachineAppCount, ownMachineCanRevoke, ownMachineGrantExpiry, ownMachineGrantLookups, ownMachineRows, permissionLabelKey, pickableAgents, planGuidedActions, reasonCamel, resolveGuidedLocation, stepReasonCode, stopReasonLabel, themeToStyle, useStewardsEvent, useStewardsSdk };
|