@toon-protocol/client-mcp 0.20.1 → 0.20.2
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-PYRQIHDN.js → chunk-IAOKAQLA.js} +2 -2
- package/dist/{chunk-PYRQIHDN.js.map → chunk-IAOKAQLA.js.map} +1 -1
- package/dist/{chunk-HZYKDGIH.js → chunk-UPIAVE44.js} +27 -16
- package/dist/chunk-UPIAVE44.js.map +1 -0
- package/dist/{chunk-XUORDSBA.js → chunk-WS3GVRQJ.js} +11 -14
- package/dist/chunk-WS3GVRQJ.js.map +1 -0
- package/dist/{chunk-HS5WVL2V.js → chunk-ZKSFO7M3.js} +2 -2
- package/dist/daemon.js +3 -3
- package/dist/index.js +4 -4
- package/dist/{lib-SPP3AMQ7.js → lib-GNW7AEA7.js} +633 -191
- package/dist/lib-GNW7AEA7.js.map +1 -0
- package/dist/mcp.js +3 -3
- package/dist/{node-WPA2UDEH-QIY3PFYB.js → node-WPA2UDEH-RCLJ66AU.js} +3 -3
- package/dist/{node-WPA2UDEH-QIY3PFYB.js.map → node-WPA2UDEH-RCLJ66AU.js.map} +1 -1
- package/package.json +5 -5
- package/dist/chunk-HZYKDGIH.js.map +0 -1
- package/dist/chunk-XUORDSBA.js.map +0 -1
- package/dist/lib-SPP3AMQ7.js.map +0 -1
- /package/dist/{chunk-HS5WVL2V.js.map → chunk-ZKSFO7M3.js.map} +0 -0
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
parseIlpPeerInfo,
|
|
24
24
|
readConfigFile,
|
|
25
25
|
streamSwap
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UPIAVE44.js";
|
|
27
27
|
|
|
28
28
|
// src/daemon/first-run.ts
|
|
29
29
|
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -364,8 +364,10 @@ import { readFile, stat } from "fs/promises";
|
|
|
364
364
|
import { join as join3, resolve, sep } from "path";
|
|
365
365
|
import { generateSecretKey } from "nostr-tools/pure";
|
|
366
366
|
|
|
367
|
-
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.
|
|
367
|
+
// ../../node_modules/.pnpm/@toon-protocol+core@3.1.1_typescript@5.9.3/node_modules/@toon-protocol/core/dist/nip34/index.js
|
|
368
368
|
var REPOSITORY_ANNOUNCEMENT_KIND = 30617;
|
|
369
|
+
var PATCH_KIND = 1617;
|
|
370
|
+
var ISSUE_KIND = 1621;
|
|
369
371
|
var STATUS_OPEN_KIND = 1630;
|
|
370
372
|
var STATUS_APPLIED_KIND = 1631;
|
|
371
373
|
var STATUS_CLOSED_KIND = 1632;
|
|
@@ -380,11 +382,6 @@ function flooredUploadFee(bytes, ratePerByte, minFee) {
|
|
|
380
382
|
return fee > min ? fee : min;
|
|
381
383
|
}
|
|
382
384
|
|
|
383
|
-
// ../../node_modules/.pnpm/@toon-protocol+core@2.1.0_typescript@5.9.3/node_modules/@toon-protocol/core/dist/nip34/index.js
|
|
384
|
-
var REPOSITORY_ANNOUNCEMENT_KIND2 = 30617;
|
|
385
|
-
var PATCH_KIND = 1617;
|
|
386
|
-
var ISSUE_KIND = 1621;
|
|
387
|
-
|
|
388
385
|
// ../rig/dist/chunk-3HRFDH7H.js
|
|
389
386
|
import { decode as decodeToon } from "@toon-format/toon";
|
|
390
387
|
var REPOSITORY_STATE_KIND = 30618;
|
|
@@ -425,7 +422,7 @@ function buildRepoAnnouncement(repoId, name, description, maintainers = []) {
|
|
|
425
422
|
tags.push([MAINTAINERS_TAG, ...declared]);
|
|
426
423
|
}
|
|
427
424
|
return {
|
|
428
|
-
kind:
|
|
425
|
+
kind: REPOSITORY_ANNOUNCEMENT_KIND,
|
|
429
426
|
content: "",
|
|
430
427
|
tags,
|
|
431
428
|
created_at: Math.floor(Date.now() / 1e3)
|
|
@@ -452,7 +449,7 @@ function buildRepoRefs(repoId, refs, arweaveMap = {}) {
|
|
|
452
449
|
}
|
|
453
450
|
function buildIssue(repoOwnerPubkey, repoId, title, body, labels = []) {
|
|
454
451
|
const tags = [
|
|
455
|
-
["a", `${
|
|
452
|
+
["a", `${REPOSITORY_ANNOUNCEMENT_KIND}:${repoOwnerPubkey}:${repoId}`],
|
|
456
453
|
["p", repoOwnerPubkey],
|
|
457
454
|
["subject", title],
|
|
458
455
|
...labels.map((label) => ["t", label])
|
|
@@ -469,7 +466,7 @@ function buildComment(repoOwnerPubkey, repoId, issueOrPrEventId, authorPubkey, b
|
|
|
469
466
|
kind: COMMENT_KIND,
|
|
470
467
|
content: body,
|
|
471
468
|
tags: [
|
|
472
|
-
["a", `${
|
|
469
|
+
["a", `${REPOSITORY_ANNOUNCEMENT_KIND}:${repoOwnerPubkey}:${repoId}`],
|
|
473
470
|
["e", issueOrPrEventId, "", marker],
|
|
474
471
|
["p", authorPubkey]
|
|
475
472
|
],
|
|
@@ -478,7 +475,7 @@ function buildComment(repoOwnerPubkey, repoId, issueOrPrEventId, authorPubkey, b
|
|
|
478
475
|
}
|
|
479
476
|
function buildPatch(repoOwnerPubkey, repoId, title, commits, branchTag, content = "", description) {
|
|
480
477
|
const tags = [
|
|
481
|
-
["a", `${
|
|
478
|
+
["a", `${REPOSITORY_ANNOUNCEMENT_KIND}:${repoOwnerPubkey}:${repoId}`],
|
|
482
479
|
["p", repoOwnerPubkey],
|
|
483
480
|
["subject", title]
|
|
484
481
|
];
|
|
@@ -748,7 +745,7 @@ async function fetchRemoteState(options) {
|
|
|
748
745
|
throw new Error("fetchRemoteState: repoId is required");
|
|
749
746
|
}
|
|
750
747
|
const filter = {
|
|
751
|
-
kinds: [
|
|
748
|
+
kinds: [REPOSITORY_ANNOUNCEMENT_KIND, REPOSITORY_STATE_KIND],
|
|
752
749
|
authors: [ownerPubkey],
|
|
753
750
|
"#d": [repoId]
|
|
754
751
|
};
|
|
@@ -780,7 +777,7 @@ async function fetchRemoteState(options) {
|
|
|
780
777
|
events.filter((e) => e.kind === REPOSITORY_STATE_KIND)
|
|
781
778
|
);
|
|
782
779
|
const announceEvent = latestReplaceable(
|
|
783
|
-
events.filter((e) => e.kind ===
|
|
780
|
+
events.filter((e) => e.kind === REPOSITORY_ANNOUNCEMENT_KIND)
|
|
784
781
|
);
|
|
785
782
|
const { refs, headSymref, shaToTxId } = refsEvent ? parseRefsEvent(refsEvent) : {
|
|
786
783
|
refs: /* @__PURE__ */ new Map(),
|
|
@@ -4070,4 +4067,4 @@ export {
|
|
|
4070
4067
|
PublishRejectedError,
|
|
4071
4068
|
registerRoutes
|
|
4072
4069
|
};
|
|
4073
|
-
//# sourceMappingURL=chunk-
|
|
4070
|
+
//# sourceMappingURL=chunk-WS3GVRQJ.js.map
|