@toon-protocol/client-mcp 0.14.1 → 0.16.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.
|
@@ -367,8 +367,9 @@ 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-
|
|
370
|
+
// ../rig/dist/chunk-B5ISARMU.js
|
|
371
371
|
var MAX_OBJECT_SIZE = 95 * 1024;
|
|
372
|
+
var EMPTY_BLOB_SHA = "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";
|
|
372
373
|
|
|
373
374
|
// ../../node_modules/.pnpm/@toon-protocol+core@2.0.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/nip34/index.js
|
|
374
375
|
var REPOSITORY_ANNOUNCEMENT_KIND2 = 30617;
|
|
@@ -831,7 +832,7 @@ async function fetchRemoteState(options) {
|
|
|
831
832
|
};
|
|
832
833
|
}
|
|
833
834
|
|
|
834
|
-
// ../rig/dist/chunk-
|
|
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
|