rovloom 0.6.0 → 0.6.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/README.md +2 -2
- package/dist/src/admin/index.js +1 -1
- package/dist/src/{chunk-g27b2gmx.js → chunk-0e9gg4sg.js} +2 -2
- package/dist/src/chunk-1xer1ent.js +102 -0
- package/dist/src/{chunk-863tk45b.js → chunk-41fny9qm.js} +5 -5
- package/dist/src/{chunk-zjzrcc59.js → chunk-59h200cr.js} +139 -7
- package/dist/src/chunk-5w5srj3b.js +93 -0
- package/dist/src/{chunk-d4ejrtjq.js → chunk-6n6b1xpy.js} +1 -1
- package/dist/src/{chunk-ez7d5dac.js → chunk-6w4g9fw8.js} +4 -1
- package/dist/src/{chunk-0dqx2mmz.js → chunk-73aq2qkz.js} +1 -1
- package/dist/src/{chunk-n6wtjyfb.js → chunk-8c9yc0ge.js} +5 -5
- package/dist/src/{chunk-57ayxqnb.js → chunk-8fy8w7ds.js} +2 -23
- package/dist/src/{chunk-2tn0r64b.js → chunk-9h9x79bx.js} +5 -5
- package/dist/src/{chunk-qjh9x872.js → chunk-av31bx1e.js} +1 -1
- package/dist/src/{chunk-0xgpxdgc.js → chunk-bbdtsg4b.js} +7 -5
- package/dist/src/{chunk-q5pgbwb3.js → chunk-e7jgpxkf.js} +2 -2
- package/dist/src/{chunk-zj48jvfe.js → chunk-efty77sb.js} +3 -40
- package/dist/src/{chunk-gyvqqnjb.js → chunk-enj7s8cv.js} +49 -29
- package/dist/src/{chunk-jka7v3wb.js → chunk-ftpy8xx3.js} +311 -23
- package/dist/src/{chunk-zdxww7ms.js → chunk-h3xyq7zk.js} +1 -1
- package/dist/src/{chunk-ttsrctxg.js → chunk-hxmq28pg.js} +9 -7
- package/dist/src/{chunk-s3ydr65k.js → chunk-j59ac0xs.js} +2 -2
- package/dist/src/{chunk-5s2emvww.js → chunk-j6svdqr8.js} +10 -302
- package/dist/src/{chunk-9zkq0kc8.js → chunk-jkzfck98.js} +3 -3
- package/dist/src/{chunk-ssp57p43.js → chunk-m76cmkfy.js} +7 -5
- package/dist/src/{chunk-d2kz25f2.js → chunk-m96mbzcw.js} +674 -308
- package/dist/src/{chunk-yv9px0f5.js → chunk-n3z3jaxy.js} +20 -14
- package/dist/src/{chunk-jf4r0r44.js → chunk-ndj0ay2p.js} +19 -18
- package/dist/src/{chunk-5b8g62kw.js → chunk-pgs9jp6t.js} +61 -179
- package/dist/src/chunk-pksaqt9a.js +25 -0
- package/dist/src/{chunk-wxqhscsw.js → chunk-pnep7yhj.js} +7 -99
- package/dist/src/chunk-qn5xae7g.js +66 -0
- package/dist/src/{chunk-0pewfj89.js → chunk-qp8tgms2.js} +1 -1
- package/dist/src/{chunk-mg0fd6ph.js → chunk-rmgw8h27.js} +10 -8
- package/dist/src/{chunk-gbsbwssz.js → chunk-sf4ztxba.js} +3 -3
- package/dist/src/{chunk-x0td5wn4.js → chunk-shez7hkc.js} +1 -1
- package/dist/src/chunk-sqz614bh.js +30 -0
- package/dist/src/{chunk-09f9q26d.js → chunk-vdwzb63d.js} +2 -2
- package/dist/src/chunk-xtvgm6kf.js +48 -0
- package/dist/src/chunk-y8zm75jt.js +157 -0
- package/dist/src/chunk-yasqw2vj.js +756 -0
- package/dist/src/{chunk-srfbjwtk.js → chunk-z0qmfqvd.js} +3 -3
- package/dist/src/chunk-zm705snh.js +53 -0
- package/dist/src/cli/index.js +29 -28
- package/dist/src/cli/main.js +5 -5
- package/dist/src/connector/herdr/installation.js +4 -4
- package/dist/src/connector/herdr/provider.js +9 -9
- package/dist/src/connector/herdr/runtime.js +7 -7
- package/dist/src/connector/luvus/index.js +7 -6
- package/dist/src/mcp/index.js +16 -15
- package/dist/src/runtime/index.js +16 -15
- package/dist/src/service/index.js +2 -2
- package/dist/src/store.js +4 -4
- package/dist/src/transport/index.js +9 -9
- package/dist/src/webui/index.js +141 -939
- package/package.json +1 -1
- package/dist/src/chunk-0qgk7mhz.js +0 -52
- package/dist/src/chunk-3dvn33c4.js +0 -1299
- package/dist/src/chunk-5j0gj6w2.js +0 -7
- package/dist/src/chunk-vwcntax3.js +0 -228
- package/dist/src/chunk-ytpfmcp1.js +0 -25
- package/dist/src/chunk-zjkjjm81.js +0 -1114
|
@@ -6,12 +6,7 @@ import {
|
|
|
6
6
|
object2,
|
|
7
7
|
fields2,
|
|
8
8
|
id2,
|
|
9
|
-
sha2,
|
|
10
9
|
boundedJson2,
|
|
11
|
-
hash2,
|
|
12
|
-
validateTarget2,
|
|
13
|
-
validateProvider2,
|
|
14
|
-
validateContractSource2,
|
|
15
10
|
contractRef2,
|
|
16
11
|
assertBinding2
|
|
17
12
|
} from "./chunk-qt9m2kg2.js";
|
|
@@ -19,9 +14,6 @@ import {
|
|
|
19
14
|
compileBundle2,
|
|
20
15
|
createNativeValidator2
|
|
21
16
|
} from "./chunk-mqyq5jh6.js";
|
|
22
|
-
import {
|
|
23
|
-
LuvusAdapterError2
|
|
24
|
-
} from "./chunk-57ayxqnb.js";
|
|
25
17
|
import {
|
|
26
18
|
macosProcessState,
|
|
27
19
|
macosProcessUid,
|
|
@@ -30,7 +22,7 @@ import {
|
|
|
30
22
|
windowsInspectPath,
|
|
31
23
|
windowsProcessFacts,
|
|
32
24
|
windowsProcessState
|
|
33
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-vdwzb63d.js";
|
|
34
26
|
import {
|
|
35
27
|
WINDOWS_PIPE,
|
|
36
28
|
LUVUS_ENDPOINT_TRANSPORT,
|
|
@@ -50,27 +42,23 @@ import {
|
|
|
50
42
|
readWindowsLuvusPeer2,
|
|
51
43
|
readMacosLuvusPeer2,
|
|
52
44
|
readLuvusPeer2
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
LUVUS_OPERATION_METHODS2,
|
|
56
|
-
luvusOperationDescriptor2,
|
|
57
|
-
luvusOperationValidation2,
|
|
58
|
-
validateLuvusOperationParams2,
|
|
59
|
-
createLuvusRequestPreflight
|
|
60
|
-
} from "./chunk-zj48jvfe.js";
|
|
45
|
+
} from "./chunk-bbdtsg4b.js";
|
|
61
46
|
import {
|
|
62
47
|
LUVUS_CLAIMS_LOCK_FORMAT
|
|
63
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-sf4ztxba.js";
|
|
49
|
+
import {
|
|
50
|
+
LuvusAdapterError2
|
|
51
|
+
} from "./chunk-pksaqt9a.js";
|
|
64
52
|
import {
|
|
65
53
|
lockOwnerFields,
|
|
66
54
|
recordedProcess,
|
|
67
55
|
ownedFile,
|
|
68
56
|
recoverStaleLock
|
|
69
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-h3xyq7zk.js";
|
|
70
58
|
import {
|
|
71
59
|
listening,
|
|
72
60
|
ownerIsDead
|
|
73
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-qp8tgms2.js";
|
|
74
62
|
import {
|
|
75
63
|
syncParentDirectory
|
|
76
64
|
} from "./chunk-0y5542k8.js";
|
|
@@ -1345,286 +1333,6 @@ async function startManagedLuvus2(root) {
|
|
|
1345
1333
|
}
|
|
1346
1334
|
}
|
|
1347
1335
|
|
|
1348
|
-
|
|
1349
|
-
import { isDeepStrictEqual as isDeepStrictEqual4 } from "util";
|
|
1350
|
-
function assertLuvusOperationsContract(contract) {
|
|
1351
|
-
const source = contract.wire.source;
|
|
1352
|
-
const capabilities = object2(object2(contract.capabilities).result);
|
|
1353
|
-
if (contract.wire.support_status !== "validated" || source.provider_kind !== "luvus" || source.protocol_family !== "uhp" || source.schema_origin !== "installed_cli" || source.schema_command !== "luvus uhp schema" || !/^1\.\d+$/u.test(source.native_protocol_version ?? "") || source.support_basis !== "live_catalog" || source.adapter_revision !== MANAGED_LUVUS_REVISION2 || source.classification_revision !== MANAGED_LUVUS_CLASSIFICATION2 || typeof source.runtime_generation !== "string" || !source.runtime_generation.length || source.runtime_generation !== capabilities.server_generation || contract.compiled.identity.binary_sha256 !== source.binary_sha256 || contract.compiled.identity.schema_sha256 !== source.schema_sha256 || contract.compiled.identity.revision !== source.adapter_revision || !Array.isArray(capabilities.method_contracts)) {
|
|
1354
|
-
throw new LuvusAdapterError2("luvus_operations_source_mismatch");
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
function createLuvusOperationsAuthority(contract, current, rawAllowed) {
|
|
1358
|
-
assertLuvusOperationsContract(contract);
|
|
1359
|
-
const methods = object2(object2(contract.capabilities).result).method_contracts;
|
|
1360
|
-
return (attempt, native) => {
|
|
1361
|
-
const proven = current(attempt.binding);
|
|
1362
|
-
const descriptor = luvusOperationDescriptor2(attempt.method);
|
|
1363
|
-
if (proven.authenticated !== true || proven.source_verified !== true || !descriptor || attempt.native_request.method !== attempt.method || attempt.mode !== luvusOperationValidation2(attempt.method) || !isDeepStrictEqual4(proven.binding, native)) {
|
|
1364
|
-
throw new LuvusAdapterError2("luvus_operation_unreviewed");
|
|
1365
|
-
}
|
|
1366
|
-
const live = methods.filter((row) => row.method === attempt.method);
|
|
1367
|
-
if (live.length !== 1 || !isDeepStrictEqual4({
|
|
1368
|
-
method: live[0].method,
|
|
1369
|
-
access: live[0].access,
|
|
1370
|
-
scope: live[0].scope,
|
|
1371
|
-
idempotent: live[0].idempotent
|
|
1372
|
-
}, descriptor.native)) {
|
|
1373
|
-
throw new LuvusAdapterError2("luvus_operations_contract_mismatch");
|
|
1374
|
-
}
|
|
1375
|
-
validateLuvusOperationParams2(attempt.method, attempt.native_request.params);
|
|
1376
|
-
const raw = attempt.mode === "raw-contract";
|
|
1377
|
-
const allowed = raw && rawAllowed(attempt) === true;
|
|
1378
|
-
return {
|
|
1379
|
-
owner: allowed,
|
|
1380
|
-
raw_requested: raw,
|
|
1381
|
-
...allowed ? {
|
|
1382
|
-
raw_grant: {
|
|
1383
|
-
id: attempt.binding.call_id,
|
|
1384
|
-
source_verified: true,
|
|
1385
|
-
principal_id: attempt.principal_id,
|
|
1386
|
-
binding: native,
|
|
1387
|
-
methods: [attempt.method],
|
|
1388
|
-
expires_at: attempt.binding.registration.deadline
|
|
1389
|
-
}
|
|
1390
|
-
} : {}
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
// src/runtime/remote-luvus.ts
|
|
1396
|
-
function checkedRemoteLuvusConfig(reference, input) {
|
|
1397
|
-
const config = object2(JSON.parse(boundedJson2(input)));
|
|
1398
|
-
fields2(config, ["kind", "authentication", "binding", "target", "contract", "peer_policy_revision"], ["raw_grant"]);
|
|
1399
|
-
validateProvider2(config.binding);
|
|
1400
|
-
validateTarget2(config.target);
|
|
1401
|
-
id2(config.peer_policy_revision);
|
|
1402
|
-
const pin = object2(config.contract);
|
|
1403
|
-
fields2(pin, [
|
|
1404
|
-
"binary_version",
|
|
1405
|
-
"binary_sha256",
|
|
1406
|
-
"schema_sha256",
|
|
1407
|
-
"adapter_revision",
|
|
1408
|
-
"classification_revision",
|
|
1409
|
-
"schema_bundle"
|
|
1410
|
-
]);
|
|
1411
|
-
sha2(pin.binary_sha256);
|
|
1412
|
-
sha2(pin.schema_sha256);
|
|
1413
|
-
if (config.kind !== "luvus" || config.authentication !== "remote_connector" || config.binding.kind !== "luvus" || config.target.profile !== "session" || config.binding.machine_id !== config.target.machine_id || config.binding.provider_id !== config.target.provider_id || config.binding.config_ref !== reference || typeof pin.binary_version !== "string" || !pin.binary_version.length || pin.binary_version.length > 128 || pin.adapter_revision !== MANAGED_LUVUS_REVISION2 || pin.classification_revision !== MANAGED_LUVUS_CLASSIFICATION2 || typeof pin.schema_bundle !== "string" || hash2(pin.schema_bundle) !== pin.schema_sha256) {
|
|
1414
|
-
throw new LuvusAdapterError2("remote_luvus_pin_invalid");
|
|
1415
|
-
}
|
|
1416
|
-
if (config.raw_grant !== undefined) {
|
|
1417
|
-
const grant = object2(config.raw_grant);
|
|
1418
|
-
fields2(grant, ["principal_id", "methods"]);
|
|
1419
|
-
id2(grant.principal_id);
|
|
1420
|
-
if (!Array.isArray(grant.methods) || grant.methods.length > LUVUS_OPERATION_METHODS2.length || new Set(grant.methods).size !== grant.methods.length || grant.methods.some((method) => !LUVUS_OPERATION_METHODS2.includes(method))) {
|
|
1421
|
-
throw new LuvusAdapterError2("remote_luvus_raw_grant_invalid");
|
|
1422
|
-
}
|
|
1423
|
-
Object.freeze(grant.methods);
|
|
1424
|
-
Object.freeze(grant);
|
|
1425
|
-
}
|
|
1426
|
-
Object.freeze(config.binding);
|
|
1427
|
-
Object.freeze(config.target);
|
|
1428
|
-
Object.freeze(pin);
|
|
1429
|
-
return Object.freeze(config);
|
|
1430
|
-
}
|
|
1431
|
-
async function createPinnedRemoteLuvus(config) {
|
|
1432
|
-
const pin = config.contract;
|
|
1433
|
-
const compiled = await compileBundle2(Buffer.from(pin.schema_bundle), {
|
|
1434
|
-
identity: { binary_sha256: pin.binary_sha256, schema_sha256: pin.schema_sha256, revision: pin.adapter_revision }
|
|
1435
|
-
});
|
|
1436
|
-
if (!compiled.ok) {
|
|
1437
|
-
throw new LuvusAdapterError2(compiled.error.code);
|
|
1438
|
-
}
|
|
1439
|
-
const contractHandle = compiled.value;
|
|
1440
|
-
const target = config.target;
|
|
1441
|
-
if (target.profile !== "session") {
|
|
1442
|
-
throw new LuvusAdapterError2("remote_luvus_pin_invalid");
|
|
1443
|
-
}
|
|
1444
|
-
const validator = createNativeValidator2(contractHandle);
|
|
1445
|
-
let closed = false;
|
|
1446
|
-
let active;
|
|
1447
|
-
function assertEpoch(epoch) {
|
|
1448
|
-
if (closed || epoch.closed || active !== epoch) {
|
|
1449
|
-
throw new LuvusAdapterError2("remote_luvus_epoch_unavailable");
|
|
1450
|
-
}
|
|
1451
|
-
const checked = epoch.assertCurrent();
|
|
1452
|
-
if (checked !== undefined) {
|
|
1453
|
-
Promise.resolve(checked).catch(() => {});
|
|
1454
|
-
throw new LuvusAdapterError2("synchronous_remote_source_required");
|
|
1455
|
-
}
|
|
1456
|
-
if (closed || epoch.closed || active !== epoch) {
|
|
1457
|
-
throw new LuvusAdapterError2("remote_luvus_epoch_unavailable");
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
function closeEpoch(epoch) {
|
|
1461
|
-
epoch.closed = true;
|
|
1462
|
-
epoch.record = undefined;
|
|
1463
|
-
epoch.provider = undefined;
|
|
1464
|
-
if (active === epoch) {
|
|
1465
|
-
active = undefined;
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
function nativeBinding(epoch, policies) {
|
|
1469
|
-
assertEpoch(epoch);
|
|
1470
|
-
const record = epoch.record;
|
|
1471
|
-
if (!record) {
|
|
1472
|
-
throw new LuvusAdapterError2("remote_luvus_snapshot_required");
|
|
1473
|
-
}
|
|
1474
|
-
id2(policies.caller_policy_revision);
|
|
1475
|
-
id2(policies.local_policy_revision);
|
|
1476
|
-
const target = config.target;
|
|
1477
|
-
if (target.profile !== "session") {
|
|
1478
|
-
throw new LuvusAdapterError2("remote_luvus_pin_invalid");
|
|
1479
|
-
}
|
|
1480
|
-
const binding = Object.freeze({
|
|
1481
|
-
kind: "luvus",
|
|
1482
|
-
provider_id: target.provider_id,
|
|
1483
|
-
binding_revision: config.binding.binding_revision,
|
|
1484
|
-
contract_source_ref: contractRef2(record.wire.source),
|
|
1485
|
-
target: Object.freeze({ machine_id: target.machine_id, profile: "session", session: target.session }),
|
|
1486
|
-
server_generation: record.wire.source.runtime_generation,
|
|
1487
|
-
connection_epoch: epoch.connection.connection_epoch,
|
|
1488
|
-
recovery_generation: epoch.connection.recovery_generation,
|
|
1489
|
-
capability_revision: record.capability_revision,
|
|
1490
|
-
caller_policy_revision: policies.caller_policy_revision,
|
|
1491
|
-
local_policy_revision: policies.local_policy_revision,
|
|
1492
|
-
classification_revision: pin.classification_revision,
|
|
1493
|
-
contract: contractHandle.identity
|
|
1494
|
-
});
|
|
1495
|
-
assertEpoch(epoch);
|
|
1496
|
-
return Object.freeze({ binding, authenticated: true, source_verified: true });
|
|
1497
|
-
}
|
|
1498
|
-
function ready() {
|
|
1499
|
-
try {
|
|
1500
|
-
if (!active?.record) {
|
|
1501
|
-
return false;
|
|
1502
|
-
}
|
|
1503
|
-
assertEpoch(active);
|
|
1504
|
-
return true;
|
|
1505
|
-
} catch {
|
|
1506
|
-
return false;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
const provider = Object.freeze({
|
|
1510
|
-
remote_luvus: true,
|
|
1511
|
-
binding: config.binding,
|
|
1512
|
-
target: config.target,
|
|
1513
|
-
peer_policy_revision: config.peer_policy_revision,
|
|
1514
|
-
preflightRequest: createLuvusRequestPreflight(contractHandle),
|
|
1515
|
-
ready,
|
|
1516
|
-
open(connection, assertCurrent) {
|
|
1517
|
-
if (closed || active || !connection.authenticated || !connection.active || connection.machine_id !== config.target.machine_id || !connection.negotiated.capabilities.includes("provider_snapshot")) {
|
|
1518
|
-
throw new LuvusAdapterError2("remote_luvus_epoch_unavailable");
|
|
1519
|
-
}
|
|
1520
|
-
const epoch = { connection: structuredClone(connection), assertCurrent, closed: false };
|
|
1521
|
-
active = epoch;
|
|
1522
|
-
try {
|
|
1523
|
-
assertEpoch(epoch);
|
|
1524
|
-
} catch (error) {
|
|
1525
|
-
closeEpoch(epoch);
|
|
1526
|
-
throw error;
|
|
1527
|
-
}
|
|
1528
|
-
return Object.freeze({
|
|
1529
|
-
accept(input) {
|
|
1530
|
-
assertEpoch(epoch);
|
|
1531
|
-
const copied = parseNativeJson2(boundedJson2(input));
|
|
1532
|
-
if (!copied.ok) {
|
|
1533
|
-
throw new LuvusAdapterError2(copied.error.code);
|
|
1534
|
-
}
|
|
1535
|
-
const snapshot = copied.value;
|
|
1536
|
-
fields2(object2(snapshot), ["binding", "target", "source", "capabilities", "capability_revision"]);
|
|
1537
|
-
validateProvider2(snapshot.binding);
|
|
1538
|
-
validateTarget2(snapshot.target);
|
|
1539
|
-
validateContractSource2(snapshot.source);
|
|
1540
|
-
sha2(snapshot.capability_revision);
|
|
1541
|
-
if (boundedJson2(snapshot.binding) !== boundedJson2(config.binding) || boundedJson2(snapshot.target) !== boundedJson2(config.target)) {
|
|
1542
|
-
throw new LuvusAdapterError2("remote_luvus_binding_mismatch");
|
|
1543
|
-
}
|
|
1544
|
-
const source = snapshot.source;
|
|
1545
|
-
if (source.binary_sha256 !== pin.binary_sha256 || source.schema_sha256 !== pin.schema_sha256 || source.adapter_revision !== pin.adapter_revision || source.classification_revision !== pin.classification_revision || typeof source.runtime_generation !== "string" || !source.runtime_generation.length) {
|
|
1546
|
-
throw new LuvusAdapterError2("remote_luvus_contract_mismatch");
|
|
1547
|
-
}
|
|
1548
|
-
const capabilities = object2(snapshot.capabilities);
|
|
1549
|
-
const value = object2(capabilities.result);
|
|
1550
|
-
if (hash2(boundedJson2(value)) !== snapshot.capability_revision) {
|
|
1551
|
-
throw new LuvusAdapterError2("remote_luvus_capability_mismatch");
|
|
1552
|
-
}
|
|
1553
|
-
const shape = validator.checkCapabilitiesShape(capabilities, {
|
|
1554
|
-
target: { machine_id: target.machine_id, profile: "session", session: target.session },
|
|
1555
|
-
server_generation: source.runtime_generation
|
|
1556
|
-
});
|
|
1557
|
-
if (!shape.ok) {
|
|
1558
|
-
throw new LuvusAdapterError2(shape.error.code);
|
|
1559
|
-
}
|
|
1560
|
-
const record = Object.freeze({
|
|
1561
|
-
wire: Object.freeze({ source: Object.freeze(source), support_status: "validated" }),
|
|
1562
|
-
compiled: contractHandle,
|
|
1563
|
-
capabilities,
|
|
1564
|
-
capability_revision: snapshot.capability_revision
|
|
1565
|
-
});
|
|
1566
|
-
assertLuvusOperationsContract(record);
|
|
1567
|
-
const fingerprint = hash2(boundedJson2(snapshot));
|
|
1568
|
-
if (epoch.fingerprint !== undefined) {
|
|
1569
|
-
if (epoch.fingerprint !== fingerprint) {
|
|
1570
|
-
throw new LuvusAdapterError2("remote_luvus_snapshot_changed");
|
|
1571
|
-
}
|
|
1572
|
-
assertEpoch(epoch);
|
|
1573
|
-
return epoch.provider;
|
|
1574
|
-
}
|
|
1575
|
-
function sourceFor(binding) {
|
|
1576
|
-
assertEpoch(epoch);
|
|
1577
|
-
assertBinding2(binding, binding);
|
|
1578
|
-
if (binding.machine_id !== epoch.connection.machine_id || binding.recovery_generation !== epoch.connection.recovery_generation || binding.connection_epoch !== epoch.connection.connection_epoch || binding.provider_kind !== "luvus" || binding.binding_revision !== config.binding.binding_revision || boundedJson2(binding.target) !== boundedJson2(config.target) || binding.contract_ref !== contractRef2(record.wire.source)) {
|
|
1579
|
-
throw new LuvusAdapterError2("remote_luvus_binding_mismatch");
|
|
1580
|
-
}
|
|
1581
|
-
return nativeBinding(epoch, binding.registration);
|
|
1582
|
-
}
|
|
1583
|
-
const live = Object.freeze({
|
|
1584
|
-
binding: config.binding,
|
|
1585
|
-
target: config.target,
|
|
1586
|
-
peer_policy_revision: config.peer_policy_revision,
|
|
1587
|
-
contract: record,
|
|
1588
|
-
source: sourceFor,
|
|
1589
|
-
catalogSource(current, policies) {
|
|
1590
|
-
if (boundedJson2(current) !== boundedJson2(epoch.connection)) {
|
|
1591
|
-
throw new LuvusAdapterError2("remote_luvus_epoch_unavailable");
|
|
1592
|
-
}
|
|
1593
|
-
return nativeBinding(epoch, policies);
|
|
1594
|
-
},
|
|
1595
|
-
authority: createLuvusOperationsAuthority(record, sourceFor, (attempt) => config.raw_grant?.principal_id === attempt.principal_id && config.raw_grant.methods.includes(attempt.method)),
|
|
1596
|
-
ready() {
|
|
1597
|
-
try {
|
|
1598
|
-
assertEpoch(epoch);
|
|
1599
|
-
return !!epoch.record;
|
|
1600
|
-
} catch {
|
|
1601
|
-
return false;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
assertEpoch(epoch);
|
|
1606
|
-
epoch.record = record;
|
|
1607
|
-
epoch.fingerprint = fingerprint;
|
|
1608
|
-
epoch.provider = live;
|
|
1609
|
-
return live;
|
|
1610
|
-
},
|
|
1611
|
-
close() {
|
|
1612
|
-
closeEpoch(epoch);
|
|
1613
|
-
}
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
});
|
|
1617
|
-
return Object.freeze({
|
|
1618
|
-
provider,
|
|
1619
|
-
close() {
|
|
1620
|
-
closed = true;
|
|
1621
|
-
if (active) {
|
|
1622
|
-
closeEpoch(active);
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
});
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
export { OwnedProcessShutdownError, observeLuvusProcess, nativeRecordStamp, readNativeRecord, createNativeRecord, removeNativeRecord, recoverLuvusClaimsLock, recoverLuvusOwnerLock, assertManagedControlDirectory, initializeManagedLuvusRoot2, openManagedLuvusRoot2, assertManagedRoot, NativeInstanceContext, discoverLuvusInstallation, MANAGED_LUVUS_REVISION2, MANAGED_LUVUS_CLASSIFICATION2, registerLocalOwnerLuvus, assertLocalOwnerLuvus, observedLuvusContract, startManagedLuvus2, assertLuvusOperationsContract, createLuvusOperationsAuthority, checkedRemoteLuvusConfig, createPinnedRemoteLuvus };
|
|
1336
|
+
export { OwnedProcessShutdownError, observeLuvusProcess, nativeRecordStamp, readNativeRecord, createNativeRecord, removeNativeRecord, recoverLuvusClaimsLock, recoverLuvusOwnerLock, assertManagedControlDirectory, initializeManagedLuvusRoot2, openManagedLuvusRoot2, assertManagedRoot, NativeInstanceContext, discoverLuvusInstallation, MANAGED_LUVUS_REVISION2, MANAGED_LUVUS_CLASSIFICATION2, registerLocalOwnerLuvus, assertLocalOwnerLuvus, observedLuvusContract, startManagedLuvus2 };
|
|
1629
1337
|
|
|
1630
|
-
//# debugId=
|
|
1338
|
+
//# debugId=23AB0591A85323DB64756E2164756E21
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-d71r315c.js";
|
|
6
6
|
import {
|
|
7
7
|
cliMessages2
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-pgs9jp6t.js";
|
|
9
9
|
import {
|
|
10
10
|
MAX_MCP_BYTES2,
|
|
11
11
|
TOOLS_PAGE_SIZE,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
SERVICE_ERROR_CODES,
|
|
17
17
|
FacadeServiceError2,
|
|
18
18
|
NativeRequestNotDispatchedError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-73aq2qkz.js";
|
|
20
20
|
import {
|
|
21
21
|
parseNativeJson2
|
|
22
22
|
} from "./chunk-7crhmqn2.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_VERSION2
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-j59ac0xs.js";
|
|
26
26
|
import {
|
|
27
27
|
canonicalLoopbackHost
|
|
28
28
|
} from "./chunk-6n9s7nfe.js";
|
|
@@ -9,10 +9,8 @@ import"./chunk-g7pnjzkk.js";
|
|
|
9
9
|
import {
|
|
10
10
|
cliMessages2,
|
|
11
11
|
formatMessage2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-pgs9jp6t.js";
|
|
13
13
|
import {
|
|
14
|
-
setupFileStamp,
|
|
15
|
-
writeSetupFile,
|
|
16
14
|
REGISTRY_MAX_BYTES,
|
|
17
15
|
parseRegistry,
|
|
18
16
|
createCaller,
|
|
@@ -22,7 +20,11 @@ import {
|
|
|
22
20
|
revokeCaller,
|
|
23
21
|
summarize,
|
|
24
22
|
isAdminPlaceholder
|
|
25
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-pnep7yhj.js";
|
|
24
|
+
import {
|
|
25
|
+
setupFileStamp,
|
|
26
|
+
writeSetupFile
|
|
27
|
+
} from "./chunk-1xer1ent.js";
|
|
26
28
|
import {
|
|
27
29
|
resolveRoleConfigPath2
|
|
28
30
|
} from "./chunk-1bf0wmgk.js";
|
|
@@ -197,4 +199,4 @@ export {
|
|
|
197
199
|
handleTokenCommand
|
|
198
200
|
};
|
|
199
201
|
|
|
200
|
-
//# debugId=
|
|
202
|
+
//# debugId=4D3B6508C39A168F64756E2164756E21
|