@toon-protocol/client-mcp 0.20.1 → 0.20.3

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.
@@ -23,7 +23,7 @@ import {
23
23
  parseIlpPeerInfo,
24
24
  readConfigFile,
25
25
  streamSwap
26
- } from "./chunk-HZYKDGIH.js";
26
+ } from "./chunk-LRHUY3PO.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.0_typescript@5.9.3/node_modules/@toon-protocol/core/dist/nip34/index.js
367
+ // ../../node_modules/.pnpm/@toon-protocol+core@3.1.2_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: REPOSITORY_ANNOUNCEMENT_KIND2,
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", `${REPOSITORY_ANNOUNCEMENT_KIND2}:${repoOwnerPubkey}:${repoId}`],
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", `${REPOSITORY_ANNOUNCEMENT_KIND2}:${repoOwnerPubkey}:${repoId}`],
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", `${REPOSITORY_ANNOUNCEMENT_KIND2}:${repoOwnerPubkey}:${repoId}`],
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: [REPOSITORY_ANNOUNCEMENT_KIND2, REPOSITORY_STATE_KIND],
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 === REPOSITORY_ANNOUNCEMENT_KIND2)
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-XUORDSBA.js.map
4070
+ //# sourceMappingURL=chunk-R3KZIPBQ.js.map