@toon-protocol/client-mcp 0.14.0 → 0.15.0
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/{chunk-SL7UGVOC.js → chunk-N7MWQMBC.js} +2 -2
- package/dist/{chunk-UXCFHAUC.js → chunk-P7YF72JB.js} +190 -1
- package/dist/chunk-P7YF72JB.js.map +1 -0
- package/dist/{chunk-JCQENRQK.js → chunk-XFUZJ4XF.js} +27 -11
- package/dist/chunk-XFUZJ4XF.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/index.d.ts +12 -1
- package/dist/index.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-JCQENRQK.js.map +0 -1
- package/dist/chunk-UXCFHAUC.js.map +0 -1
- /package/dist/{chunk-SL7UGVOC.js.map → chunk-N7MWQMBC.js.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isEventExpired,
|
|
17
17
|
parseIlpPeerInfo,
|
|
18
18
|
readConfigFile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P7YF72JB.js";
|
|
20
20
|
import {
|
|
21
21
|
__require
|
|
22
22
|
} from "./chunk-F22GNSF6.js";
|
|
@@ -367,6 +367,10 @@ var STATUS_APPLIED_KIND = 1631;
|
|
|
367
367
|
var STATUS_CLOSED_KIND = 1632;
|
|
368
368
|
var STATUS_DRAFT_KIND = 1633;
|
|
369
369
|
|
|
370
|
+
// ../rig/dist/chunk-B5ISARMU.js
|
|
371
|
+
var MAX_OBJECT_SIZE = 95 * 1024;
|
|
372
|
+
var EMPTY_BLOB_SHA = "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";
|
|
373
|
+
|
|
370
374
|
// ../../node_modules/.pnpm/@toon-protocol+core@2.0.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/nip34/index.js
|
|
371
375
|
var REPOSITORY_ANNOUNCEMENT_KIND2 = 30617;
|
|
372
376
|
var PATCH_KIND = 1617;
|
|
@@ -828,10 +832,7 @@ async function fetchRemoteState(options) {
|
|
|
828
832
|
};
|
|
829
833
|
}
|
|
830
834
|
|
|
831
|
-
// ../rig/dist/chunk-
|
|
832
|
-
var MAX_OBJECT_SIZE = 95 * 1024;
|
|
833
|
-
|
|
834
|
-
// ../rig/dist/chunk-W2SDL2PE.js
|
|
835
|
+
// ../rig/dist/chunk-NIRC5LFS.js
|
|
835
836
|
import { execFile, spawn } from "child_process";
|
|
836
837
|
import { promisify } from "util";
|
|
837
838
|
import { execFile as execFile2, spawn as spawn2 } from "child_process";
|
|
@@ -1332,10 +1333,18 @@ async function planPush(options) {
|
|
|
1332
1333
|
}
|
|
1333
1334
|
if (oversize.length > 0) throw new OversizeObjectsError(oversize);
|
|
1334
1335
|
const tipShas = new Set(updates.map((u) => u.localSha));
|
|
1335
|
-
const planned =
|
|
1336
|
+
const planned = [];
|
|
1337
|
+
const skippedEmptyObjects = [];
|
|
1338
|
+
for (const stat2 of stats) {
|
|
1336
1339
|
const path = pathBySha.get(stat2.sha);
|
|
1337
|
-
|
|
1338
|
-
|
|
1340
|
+
const object = {
|
|
1341
|
+
...stat2,
|
|
1342
|
+
...path ? { path } : {},
|
|
1343
|
+
isRefTip: tipShas.has(stat2.sha)
|
|
1344
|
+
};
|
|
1345
|
+
if (stat2.sha === EMPTY_BLOB_SHA) skippedEmptyObjects.push(object);
|
|
1346
|
+
else planned.push(object);
|
|
1347
|
+
}
|
|
1339
1348
|
const objects = [
|
|
1340
1349
|
...planned.filter((o) => !o.isRefTip),
|
|
1341
1350
|
...planned.filter((o) => o.isRefTip)
|
|
@@ -1360,6 +1369,7 @@ async function planPush(options) {
|
|
|
1360
1369
|
newRefs,
|
|
1361
1370
|
headSymref,
|
|
1362
1371
|
objects,
|
|
1372
|
+
skippedEmptyObjects,
|
|
1363
1373
|
knownShaToTxId,
|
|
1364
1374
|
announceNeeded,
|
|
1365
1375
|
announcement: {
|
|
@@ -1372,7 +1382,8 @@ async function planPush(options) {
|
|
|
1372
1382
|
uploadFee,
|
|
1373
1383
|
eventCount,
|
|
1374
1384
|
eventFees,
|
|
1375
|
-
totalFee: uploadFee + eventFees
|
|
1385
|
+
totalFee: uploadFee + eventFees,
|
|
1386
|
+
skippedEmptyCount: skippedEmptyObjects.length
|
|
1376
1387
|
}
|
|
1377
1388
|
};
|
|
1378
1389
|
}
|
|
@@ -3049,7 +3060,12 @@ var ClientRunner = class {
|
|
|
3049
3060
|
subscriptions: relay?.activeSubscriptions() ?? []
|
|
3050
3061
|
},
|
|
3051
3062
|
...network ? { network } : {},
|
|
3052
|
-
...apex?.lastError ? { lastError: apex.lastError } : {}
|
|
3063
|
+
...apex?.lastError ? { lastError: apex.lastError } : {},
|
|
3064
|
+
// Advertise the optional-route surface this daemon build serves so a
|
|
3065
|
+
// version-skewed rig CLI can capability-gate the `/git/*` write path
|
|
3066
|
+
// BEFORE delegating (an old daemon lacking these routes 404s otherwise —
|
|
3067
|
+
// #306). Static: these routes are always registered by this build.
|
|
3068
|
+
capabilities: ["git"]
|
|
3053
3069
|
};
|
|
3054
3070
|
}
|
|
3055
3071
|
/**
|
|
@@ -4360,4 +4376,4 @@ export {
|
|
|
4360
4376
|
PublishRejectedError,
|
|
4361
4377
|
registerRoutes
|
|
4362
4378
|
};
|
|
4363
|
-
//# sourceMappingURL=chunk-
|
|
4379
|
+
//# sourceMappingURL=chunk-XFUZJ4XF.js.map
|