agentbnb 9.1.1 → 9.2.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 +22 -0
- package/dist/{card-UF465O7O.js → card-L3ZPPBVI.js} +3 -3
- package/dist/{chunk-LENX5NUW.js → chunk-2KSRFDKF.js} +56 -3
- package/dist/{chunk-TCA63C42.js → chunk-563ZZUOA.js} +61 -27
- package/dist/chunk-5FXLZ5FX.js +16 -0
- package/dist/{chunk-ELFGYC22.js → chunk-7YJOBVWN.js} +3 -0
- package/dist/{chunk-5CC6O6SO.js → chunk-AA25Z6FW.js} +1 -1
- package/dist/{chunk-WARYO57F.js → chunk-COOBXNXU.js} +6 -6
- package/dist/{chunk-I4E5ERDN.js → chunk-CPSV5WR2.js} +1 -1
- package/dist/{process-guard-6324CZDC.js → chunk-DG4FQ4MD.js} +1 -1
- package/dist/{chunk-MPS4RE7T.js → chunk-DT2IEL5U.js} +11 -0
- package/dist/chunk-EMVVFP2L.js +54 -0
- package/dist/{chunk-O44N3KR7.js → chunk-FVLHEI3Y.js} +5 -5
- package/dist/chunk-GIK2AZQH.js +23 -0
- package/dist/{chunk-W6LOCBWQ.js → chunk-IWAK4WHK.js} +1 -1
- package/dist/{chunk-Y7CO3VLF.js → chunk-NISX3N7K.js} +16 -7
- package/dist/{chunk-2HH2F3DM.js → chunk-NLGLGR2K.js} +55 -2
- package/dist/{chunk-AW4VSROG.js → chunk-OFIRWD6B.js} +1 -1
- package/dist/{chunk-AMABG5SI.js → chunk-OI46BKQF.js} +12 -12
- package/dist/{chunk-F2CIPAN2.js → chunk-OTAZIF65.js} +2 -2
- package/dist/{chunk-ZYOMPJGG.js → chunk-OXU4QJSZ.js} +3 -3
- package/dist/{chunk-RVOZHVM7.js → chunk-PFAEZI32.js} +10 -10
- package/dist/{chunk-D7NH6YLM.js → chunk-UJXDBOKV.js} +12 -1
- package/dist/{chunk-G4TF4LB4.js → chunk-VDYHCI5F.js} +22 -1
- package/dist/{chunk-QG2LLVXP.js → chunk-WA23XRTN.js} +1 -1
- package/dist/cli/index.js +797 -107
- package/dist/{client-XOSXFC7Q.js → client-KL67WZVJ.js} +2 -2
- package/dist/{conduct-UT6ZYSJD.js → conduct-65BGO2EU.js} +16 -14
- package/dist/{conduct-MALC6HEK.js → conduct-AALDEKTH.js} +16 -14
- package/dist/{conductor-mode-3WLLERB4.js → conductor-mode-6S6ADNLW.js} +18 -18
- package/dist/{conductor-mode-UJKMO2GW.js → conductor-mode-HJHU4XLT.js} +4 -4
- package/dist/{credits-action-KOUJNR36.js → credits-action-CLLPNRDT.js} +17 -8
- package/dist/{did-action-UHUYMA4Y.js → did-action-ERXWCVEJ.js} +3 -3
- package/dist/{execute-UFMGTXET.js → execute-R5STYWLD.js} +13 -13
- package/dist/{execute-3RADNI74.js → execute-YMPHTJPN.js} +3 -3
- package/dist/{openclaw-setup-HEWZZOY7.js → openclaw-setup-HUOBTGN4.js} +17 -15
- package/dist/{openclaw-skills-5XLQFRWT.js → openclaw-skills-74372B6I.js} +2 -2
- package/dist/process-guard-IUMZ2GSD.js +8 -0
- package/dist/{publish-capability-LM4RSQXX.js → publish-capability-OYXXXYAU.js} +4 -4
- package/dist/remote-registry-5TM7DMCO.js +16 -0
- package/dist/{request-LID2N42Y.js → request-NEA66RCW.js} +66 -24
- package/dist/{serve-skill-CDNSHTEE.js → serve-skill-VKNRBVWE.js} +19 -18
- package/dist/{server-QIAO3YSK.js → server-LNT4YQZ7.js} +24 -20
- package/dist/{service-coordinator-FB44QL7L.js → service-coordinator-RE2KPWO4.js} +312 -54
- package/dist/{session-action-GYITLYOE.js → session-action-UBWJTQVQ.js} +19 -4
- package/dist/signing-AQTKYJDB.js +16 -0
- package/dist/skills/agentbnb/bootstrap.js +430 -43
- package/dist/{store-C4DLIXYM.js → store-GJJFFEQZ.js} +3 -3
- package/dist/{vc-action-BWGNQ77Y.js → vc-action-72TQVMY2.js} +15 -5
- package/package.json +12 -18
- package/skills/agentbnb/install.sh +0 -0
- package/dist/{chunk-YNBZLXYS.js → chunk-65GNX2KC.js} +0 -0
- package/dist/{chunk-7VZ4M4CT.js → chunk-QE42IJC4.js} +6 -6
- package/dist/{daemon-ETXXE4IS.js → daemon-OM2K3U7J.js} +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPendingRequest
|
|
3
3
|
} from "./chunk-5PV5YCSN.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveTargetCapability
|
|
6
|
+
} from "./chunk-FVLHEI3Y.js";
|
|
4
7
|
import {
|
|
5
8
|
getAutonomyTier,
|
|
6
9
|
insertAuditEvent
|
|
7
10
|
} from "./chunk-G5WKW3ED.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveTargetCapability
|
|
10
|
-
} from "./chunk-O44N3KR7.js";
|
|
11
|
-
import {
|
|
12
|
-
fetchRemoteCards
|
|
13
|
-
} from "./chunk-ELFGYC22.js";
|
|
14
11
|
import {
|
|
15
12
|
searchCards
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CPSV5WR2.js";
|
|
17
14
|
import {
|
|
18
15
|
holdEscrow,
|
|
19
16
|
releaseEscrow,
|
|
20
17
|
settleEscrow
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UJXDBOKV.js";
|
|
22
19
|
import {
|
|
23
20
|
RelayClient
|
|
24
21
|
} from "./chunk-UPNREF4L.js";
|
|
25
22
|
import {
|
|
26
23
|
requestCapability,
|
|
27
24
|
requestViaRelay
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IWAK4WHK.js";
|
|
29
26
|
import {
|
|
30
27
|
resolveCanonicalIdentity
|
|
31
28
|
} from "./chunk-J4RFJVXI.js";
|
|
32
|
-
import {
|
|
33
|
-
AgentBnBError
|
|
34
|
-
} from "./chunk-UVCNMRPS.js";
|
|
35
29
|
import {
|
|
36
30
|
findPeer
|
|
37
31
|
} from "./chunk-3YQ73ZM6.js";
|
|
32
|
+
import {
|
|
33
|
+
fetchRemoteCards
|
|
34
|
+
} from "./chunk-7YJOBVWN.js";
|
|
35
|
+
import {
|
|
36
|
+
AgentBnBError
|
|
37
|
+
} from "./chunk-UVCNMRPS.js";
|
|
38
38
|
|
|
39
39
|
// src/gateway/relay-dispatch.ts
|
|
40
40
|
import { randomUUID } from "crypto";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveTargetCapability,
|
|
7
7
|
searchCards,
|
|
8
8
|
settleEscrow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DT2IEL5U.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveCanonicalIdentity
|
|
12
12
|
} from "./chunk-EE3V3DXK.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
requestCapability,
|
|
15
15
|
requestCapabilityBatch,
|
|
16
16
|
requestViaRelay
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IWAK4WHK.js";
|
|
18
18
|
import {
|
|
19
19
|
AgentBnBError
|
|
20
20
|
} from "./chunk-UVCNMRPS.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLedger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KSRFDKF.js";
|
|
4
4
|
import {
|
|
5
5
|
loadOrRepairIdentity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AA25Z6FW.js";
|
|
7
7
|
import {
|
|
8
8
|
getBalance
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UJXDBOKV.js";
|
|
10
10
|
import {
|
|
11
11
|
canonicalizeCreditOwner
|
|
12
12
|
} from "./chunk-YDGXKH2T.js";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
syncCreditsFromRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OXU4QJSZ.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveTargetCapability
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FVLHEI3Y.js";
|
|
7
7
|
import {
|
|
8
8
|
getBalance,
|
|
9
9
|
holdEscrow,
|
|
10
10
|
releaseEscrow,
|
|
11
11
|
settleEscrow
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UJXDBOKV.js";
|
|
13
13
|
import {
|
|
14
14
|
getCard,
|
|
15
15
|
updateReputation
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
AgentBnBError
|
|
19
|
-
} from "./chunk-UVCNMRPS.js";
|
|
20
|
-
import {
|
|
21
|
-
loadConfig
|
|
22
|
-
} from "./chunk-3XPBFF6H.js";
|
|
16
|
+
} from "./chunk-QE42IJC4.js";
|
|
23
17
|
import {
|
|
24
18
|
insertRequestLog
|
|
25
19
|
} from "./chunk-4XTYT4JW.js";
|
|
26
20
|
import {
|
|
27
21
|
emitProviderEvent
|
|
28
22
|
} from "./chunk-GZUTU6IZ.js";
|
|
23
|
+
import {
|
|
24
|
+
loadConfig
|
|
25
|
+
} from "./chunk-3XPBFF6H.js";
|
|
26
|
+
import {
|
|
27
|
+
AgentBnBError
|
|
28
|
+
} from "./chunk-UVCNMRPS.js";
|
|
29
29
|
|
|
30
30
|
// src/gateway/execute.ts
|
|
31
31
|
import { randomUUID } from "crypto";
|
|
@@ -338,6 +338,16 @@ function releaseEscrow(db, escrowId) {
|
|
|
338
338
|
});
|
|
339
339
|
release();
|
|
340
340
|
}
|
|
341
|
+
function getEscrowStatus(db, escrowId) {
|
|
342
|
+
const row = db.prepare(
|
|
343
|
+
"SELECT id, owner, amount, card_id, status, created_at, settled_at FROM credit_escrow WHERE id = ?"
|
|
344
|
+
).get(escrowId);
|
|
345
|
+
if (!row) return null;
|
|
346
|
+
return {
|
|
347
|
+
...row,
|
|
348
|
+
owner: canonicalizeCreditOwner(db, row.owner)
|
|
349
|
+
};
|
|
350
|
+
}
|
|
341
351
|
|
|
342
352
|
export {
|
|
343
353
|
openCreditDb,
|
|
@@ -351,5 +361,6 @@ export {
|
|
|
351
361
|
markEscrowProgressing,
|
|
352
362
|
markEscrowAbandoned,
|
|
353
363
|
settleEscrow,
|
|
354
|
-
releaseEscrow
|
|
364
|
+
releaseEscrow,
|
|
365
|
+
getEscrowStatus
|
|
355
366
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
shouldSkipNetwork
|
|
3
|
+
} from "./chunk-5FXLZ5FX.js";
|
|
1
4
|
import {
|
|
2
5
|
searchCards
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CPSV5WR2.js";
|
|
4
7
|
|
|
5
8
|
// src/registry/pricing.ts
|
|
6
9
|
function getPricingStats(db, query) {
|
|
@@ -43,6 +46,23 @@ function computeMedian(sorted) {
|
|
|
43
46
|
return (sorted[mid - 1] + sorted[mid]) / 2;
|
|
44
47
|
}
|
|
45
48
|
|
|
49
|
+
// src/utils/network-probe.ts
|
|
50
|
+
var PROBE_TIMEOUT_MS = 2e3;
|
|
51
|
+
async function probeRegistry(registryUrl, timeoutMs = PROBE_TIMEOUT_MS) {
|
|
52
|
+
if (shouldSkipNetwork()) return false;
|
|
53
|
+
const controller = new AbortController();
|
|
54
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
55
|
+
try {
|
|
56
|
+
const url = `${registryUrl.replace(/\/$/, "")}/health`;
|
|
57
|
+
const res = await fetch(url, { method: "GET", signal: controller.signal });
|
|
58
|
+
return res.ok;
|
|
59
|
+
} catch {
|
|
60
|
+
return false;
|
|
61
|
+
} finally {
|
|
62
|
+
clearTimeout(timer);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
46
66
|
// src/cli/onboarding.ts
|
|
47
67
|
import { randomUUID } from "crypto";
|
|
48
68
|
import { createConnection } from "net";
|
|
@@ -214,6 +234,7 @@ function buildDraftCard(apiKey, owner) {
|
|
|
214
234
|
|
|
215
235
|
export {
|
|
216
236
|
getPricingStats,
|
|
237
|
+
probeRegistry,
|
|
217
238
|
KNOWN_API_KEYS,
|
|
218
239
|
detectApiKeys,
|
|
219
240
|
detectOpenPorts,
|