@bcts/frost-hubert 1.0.0-alpha.21 → 1.0.0-alpha.23
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/bin/frost.cjs +3 -5
- package/dist/bin/frost.cjs.map +1 -1
- package/dist/bin/frost.mjs +3 -5
- package/dist/bin/frost.mjs.map +1 -1
- package/dist/{chunk-uaV2rQ02.cjs → chunk-CZWwpsFl.cjs} +22 -32
- package/dist/{chunk-ClPoSABd.mjs → chunk-CjcI7cDX.mjs} +6 -12
- package/dist/cmd/index.cjs +40 -43
- package/dist/cmd/index.d.cts +1 -3
- package/dist/cmd/index.d.mts +1 -3
- package/dist/cmd/index.mjs +3 -6
- package/dist/{sign-D8C3HJ4B.mjs → cmd-5yLeC_QL.mjs} +16 -44
- package/dist/cmd-5yLeC_QL.mjs.map +1 -0
- package/dist/{sign-2bOp18Fs.cjs → cmd-BfZjC3Uh.cjs} +182 -210
- package/dist/cmd-BfZjC3Uh.cjs.map +1 -0
- package/dist/dkg/index.cjs +341 -7
- package/dist/dkg/index.cjs.map +1 -0
- package/dist/dkg/index.d.cts +1 -1
- package/dist/dkg/index.d.mts +1 -1
- package/dist/dkg/index.mjs +335 -2
- package/dist/dkg/index.mjs.map +1 -0
- package/dist/frost/index.cjs +8 -9
- package/dist/frost/index.cjs.map +1 -1
- package/dist/frost/index.mjs +2 -3
- package/dist/frost/index.mjs.map +1 -1
- package/dist/{index-CcvTi5EA.d.cts → index-BJlwbPYu.d.cts} +3 -3
- package/dist/{index-CcvTi5EA.d.cts.map → index-BJlwbPYu.d.cts.map} +1 -1
- package/dist/{registry-impl-CE76sTXQ.d.cts → index-BMbPgH0W.d.cts} +1 -1
- package/dist/index-BMbPgH0W.d.cts.map +1 -0
- package/dist/{group-invite-Dz1Jmiky.d.cts → index-BkqLimZT.d.mts} +2 -2
- package/dist/index-BkqLimZT.d.mts.map +1 -0
- package/dist/{group-invite-Wk9CIbHL.d.mts → index-DmxfT59Y.d.cts} +2 -2
- package/dist/index-DmxfT59Y.d.cts.map +1 -0
- package/dist/{registry-impl-BETn_lEO.d.mts → index-DoV5HFvV.d.mts} +1 -1
- package/dist/index-DoV5HFvV.d.mts.map +1 -0
- package/dist/{index-DNCPeLNM.d.mts → index-Dzm1v4_4.d.mts} +3 -3
- package/dist/{index-DNCPeLNM.d.mts.map → index-Dzm1v4_4.d.mts.map} +1 -1
- package/dist/index.cjs +64 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/dist/registry/index.cjs +806 -13
- package/dist/registry/index.cjs.map +1 -0
- package/dist/registry/index.d.cts +1 -1
- package/dist/registry/index.d.mts +1 -1
- package/dist/registry/index.mjs +792 -2
- package/dist/registry/index.mjs.map +1 -0
- package/dist/{registry-BDnNV1Rk.mjs → registry-CgrCZ4En.mjs} +7 -10
- package/dist/{registry-BDnNV1Rk.mjs.map → registry-CgrCZ4En.mjs.map} +1 -1
- package/dist/{registry-FMU-ec5K.cjs → registry-loI1_Mh1.cjs} +28 -31
- package/dist/registry-loI1_Mh1.cjs.map +1 -0
- package/package.json +17 -17
- package/src/cmd/dkg/participant/finalize.ts +1 -1
- package/src/dkg/proposed-participant.ts +1 -2
- package/src/frost/index.ts +1 -1
- package/src/registry/owner-record.ts +1 -2
- package/src/registry/participant-record.ts +1 -2
- package/dist/group-invite-CrbOabFL.cjs +0 -368
- package/dist/group-invite-CrbOabFL.cjs.map +0 -1
- package/dist/group-invite-Dz1Jmiky.d.cts.map +0 -1
- package/dist/group-invite-RPElq-fm.mjs +0 -338
- package/dist/group-invite-RPElq-fm.mjs.map +0 -1
- package/dist/group-invite-Wk9CIbHL.d.mts.map +0 -1
- package/dist/registry-FMU-ec5K.cjs.map +0 -1
- package/dist/registry-impl-BETn_lEO.d.mts.map +0 -1
- package/dist/registry-impl-C7w4awTv.cjs +0 -865
- package/dist/registry-impl-C7w4awTv.cjs.map +0 -1
- package/dist/registry-impl-CE76sTXQ.d.cts.map +0 -1
- package/dist/registry-impl-eYXVSPwM.mjs +0 -797
- package/dist/registry-impl-eYXVSPwM.mjs.map +0 -1
- package/dist/sign-2bOp18Fs.cjs.map +0 -1
- package/dist/sign-D8C3HJ4B.mjs.map +0 -1
package/dist/bin/frost.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
require(
|
|
4
|
-
const require_registry = require('../registry-FMU-ec5K.cjs');
|
|
2
|
+
require("../chunk-CZWwpsFl.cjs");
|
|
3
|
+
const require_registry = require("../registry-loI1_Mh1.cjs");
|
|
5
4
|
let commander = require("commander");
|
|
6
|
-
|
|
7
5
|
//#region src/bin/frost.ts
|
|
8
6
|
/**
|
|
9
7
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
@@ -109,6 +107,6 @@ main().catch((error) => {
|
|
|
109
107
|
console.error(error.message);
|
|
110
108
|
process.exit(1);
|
|
111
109
|
});
|
|
112
|
-
|
|
113
110
|
//#endregion
|
|
111
|
+
|
|
114
112
|
//# sourceMappingURL=frost.cjs.map
|
package/dist/bin/frost.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frost.cjs","names":["program"],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n */\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"frost.cjs","names":["program"],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n */\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AA0BA,eAAe,eAA8B;AAC3C,KAA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;GACnE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,kBAAkB,CAC9B,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,uBAAuB,CACnC,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,WAAW,CACnB,YAAY,yBAAyB,CACrC,aAAa;AACZ,UAAQ,IAAI,wDAAwD;GACpE;AAEJ,WAAA,QAAQ,OAAO;;AAGjB,MAAM,CAAC,OAAO,UAAmB;AAC/B,SAAQ,MAAO,MAAgB,QAAQ;AACvC,SAAQ,KAAK,EAAE;EACf"}
|
package/dist/bin/frost.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../registry-
|
|
3
|
-
import { n as participantAdd, r as ownerSet } from "../registry-BDnNV1Rk.mjs";
|
|
2
|
+
import { n as participantAdd, r as ownerSet } from "../registry-CgrCZ4En.mjs";
|
|
4
3
|
import { program } from "commander";
|
|
5
|
-
|
|
6
4
|
//#region src/bin/frost.ts
|
|
7
5
|
/**
|
|
8
6
|
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
@@ -108,7 +106,7 @@ main().catch((error) => {
|
|
|
108
106
|
console.error(error.message);
|
|
109
107
|
process.exit(1);
|
|
110
108
|
});
|
|
111
|
-
|
|
112
109
|
//#endregion
|
|
113
|
-
export {
|
|
110
|
+
export {};
|
|
111
|
+
|
|
114
112
|
//# sourceMappingURL=frost.mjs.map
|
package/dist/bin/frost.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frost.mjs","names":[],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n */\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"frost.mjs","names":[],"sources":["../../src/bin/frost.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Copyright © 2023-2026 Blockchain Commons, LLC\n * Copyright © 2025-2026 Parity Technologies\n *\n */\n\n/**\n * FROST CLI binary entry point.\n *\n * Port of main.rs and lib.rs CLI from frost-hubert-rust.\n *\n * @module\n */\n\nimport { program } from \"commander\";\n\nimport { ownerSet } from \"../cmd/registry/owner/set.js\";\nimport { participantAdd } from \"../cmd/registry/participant/add.js\";\n\n// Type for modules that may have registerTags\ninterface TagModule {\n registerTags?: () => void;\n}\n\n// Register CBOR tags using dynamic import\nasync function registerTags(): Promise<void> {\n try {\n const components = (await import(\"@bcts/components\")) as TagModule;\n const envelope = (await import(\"@bcts/envelope\")) as TagModule;\n const provenanceMark = (await import(\"@bcts/provenance-mark\")) as TagModule;\n\n if (typeof components.registerTags === \"function\") {\n components.registerTags();\n }\n if (typeof envelope.registerTags === \"function\") {\n envelope.registerTags();\n }\n if (typeof provenanceMark.registerTags === \"function\") {\n provenanceMark.registerTags();\n }\n } catch {\n // Tags may not need registration in this context\n }\n}\n\n// Main CLI function\nasync function main(): Promise<void> {\n // Initialize tags before CLI runs\n await registerTags();\n\n program.name(\"frost\").description(\"FROST threshold signing CLI\").version(\"1.0.0\");\n\n // Registry commands\n const registryCmd = program.command(\"registry\").description(\"Manage the registry\");\n\n // Registry owner commands\n const ownerCmd = registryCmd.command(\"owner\").description(\"Manage the registry owner\");\n\n ownerCmd\n .command(\"set <xid-document> [pet-name]\")\n .description(\"Set the registry owner using an ur:xid document that includes private keys\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n ownerSet(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // Registry participant commands\n const participantCmd = registryCmd\n .command(\"participant\")\n .description(\"Manage registry participants\");\n\n participantCmd\n .command(\"add <xid-document> [pet-name]\")\n .description(\"Add a participant using an ur:xid document\")\n .option(\"-r, --registry <path>\", \"Registry path or filename override\")\n .action((xidDocument: string, petName: string | undefined, options: { registry?: string }) => {\n try {\n participantAdd(\n {\n xidDocument,\n petName,\n registryPath: options.registry,\n },\n process.cwd(),\n );\n } catch (error) {\n console.error((error as Error).message);\n process.exit(1);\n }\n });\n\n // DKG commands (placeholder)\n const dkgCmd = program.command(\"dkg\").description(\"Distributed Key Generation commands\");\n\n const dkgCoordinatorCmd = dkgCmd.command(\"coordinator\").description(\"DKG coordinator commands\");\n dkgCoordinatorCmd\n .command(\"invite\")\n .description(\"Send DKG invite to participants\")\n .action(() => {\n console.log(\"DKG coordinator invite command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"DKG coordinator round1 command not yet implemented\");\n });\n\n dkgCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses\")\n .action(() => {\n console.log(\"DKG coordinator round2 command not yet implemented\");\n });\n\n const dkgParticipantCmd = dkgCmd.command(\"participant\").description(\"DKG participant commands\");\n dkgParticipantCmd\n .command(\"receive\")\n .description(\"Receive DKG invite\")\n .action(() => {\n console.log(\"DKG participant receive command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round1\")\n .description(\"Send round 1 response\")\n .action(() => {\n console.log(\"DKG participant round1 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"round2\")\n .description(\"Send round 2 response\")\n .action(() => {\n console.log(\"DKG participant round2 command not yet implemented\");\n });\n\n dkgParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize package\")\n .action(() => {\n console.log(\"DKG participant finalize command not yet implemented\");\n });\n\n // Sign commands (placeholder)\n const signCmd = program.command(\"sign\").description(\"Threshold signing commands\");\n\n const signCoordinatorCmd = signCmd\n .command(\"coordinator\")\n .description(\"Sign coordinator commands\");\n signCoordinatorCmd\n .command(\"invite\")\n .description(\"Send sign invite to participants\")\n .action(() => {\n console.log(\"Sign coordinator invite command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round1\")\n .description(\"Collect round 1 responses\")\n .action(() => {\n console.log(\"Sign coordinator round1 command not yet implemented\");\n });\n\n signCoordinatorCmd\n .command(\"round2\")\n .description(\"Collect round 2 responses and finalize signature\")\n .action(() => {\n console.log(\"Sign coordinator round2 command not yet implemented\");\n });\n\n const signParticipantCmd = signCmd\n .command(\"participant\")\n .description(\"Sign participant commands\");\n signParticipantCmd\n .command(\"receive\")\n .description(\"Receive sign invite\")\n .action(() => {\n console.log(\"Sign participant receive command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round1\")\n .description(\"Send commitment\")\n .action(() => {\n console.log(\"Sign participant round1 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"round2\")\n .description(\"Send signature share\")\n .action(() => {\n console.log(\"Sign participant round2 command not yet implemented\");\n });\n\n signParticipantCmd\n .command(\"finalize\")\n .description(\"Receive finalize event\")\n .action(() => {\n console.log(\"Sign participant finalize command not yet implemented\");\n });\n\n program.parse();\n}\n\nmain().catch((error: unknown) => {\n console.error((error as Error).message);\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;AA0BA,eAAe,eAA8B;AAC3C,KAAI;EACF,MAAM,aAAc,MAAM,OAAO;EACjC,MAAM,WAAY,MAAM,OAAO;EAC/B,MAAM,iBAAkB,MAAM,OAAO;AAErC,MAAI,OAAO,WAAW,iBAAiB,WACrC,YAAW,cAAc;AAE3B,MAAI,OAAO,SAAS,iBAAiB,WACnC,UAAS,cAAc;AAEzB,MAAI,OAAO,eAAe,iBAAiB,WACzC,gBAAe,cAAc;SAEzB;;AAMV,eAAe,OAAsB;AAEnC,OAAM,cAAc;AAEpB,SAAQ,KAAK,QAAQ,CAAC,YAAY,8BAA8B,CAAC,QAAQ,QAAQ;CAGjF,MAAM,cAAc,QAAQ,QAAQ,WAAW,CAAC,YAAY,sBAAsB;AAGjE,aAAY,QAAQ,QAAQ,CAAC,YAAY,4BAElD,CACL,QAAQ,gCAAgC,CACxC,YAAY,6EAA6E,CACzF,OAAO,yBAAyB,qCAAqC,CACrE,QAAQ,aAAqB,SAA6B,YAAmC;AAC5F,MAAI;AACF,YACE;IACE;IACA;IACA,cAAc,QAAQ;IACvB,EACD,QAAQ,KAAK,CACd;WACM,OAAO;AACd,WAAQ,MAAO,MAAgB,QAAQ;AACvC,WAAQ,KAAK,EAAE;;GAEjB;AAGmB,aACpB,QAAQ,cAAc,CACtB,YAAY,+BAED,CACX,QAAQ,gCAAgC,CACxC,YAAY,6CAA6C,CACzD,OAAO,yBAAyB,qCAAqC,CACrE,QAAQ,aAAqB,SAA6B,YAAmC;AAC5F,MAAI;AACF,kBACE;IACE;IACA;IACA,cAAc,QAAQ;IACvB,EACD,QAAQ,KAAK,CACd;WACM,OAAO;AACd,WAAQ,MAAO,MAAgB,QAAQ;AACvC,WAAQ,KAAK,EAAE;;GAEjB;CAGJ,MAAM,SAAS,QAAQ,QA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QAAQ,cAAc,CACtB,YAAY,4BAA4B;AAC3C,oBACG,QAAQ,UAAU,CAClB,YAAY,sBAAsB,CAClC,aAAa;AACZ,UAAQ,IAAI,uDAAuD;GACnE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,kBAAkB,CAC9B,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,SAAS,CACjB,YAAY,uBAAuB,CACnC,aAAa;AACZ,UAAQ,IAAI,sDAAsD;GAClE;AAEJ,oBACG,QAAQ,WAAW,CACnB,YAAY,yBAAyB,CACrC,aAAa;AACZ,UAAQ,IAAI,wDAAwD;GACpE;AAEJ,SAAQ,OAAO;;AAGjB,MAAM,CAAC,OAAO,UAAmB;AAC/B,SAAQ,MAAO,MAAgB,QAAQ;AACvC,SAAQ,KAAK,EAAE;EACf"}
|
|
@@ -7,28 +7,20 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __exportAll = (all, no_symbols) => {
|
|
9
9
|
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (!no_symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
19
15
|
return target;
|
|
20
16
|
};
|
|
21
17
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
|
+
key = keys[i];
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
21
|
+
get: ((k) => from[k]).bind(null, key),
|
|
22
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23
|
+
});
|
|
32
24
|
}
|
|
33
25
|
return to;
|
|
34
26
|
};
|
|
@@ -36,18 +28,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
28
|
value: mod,
|
|
37
29
|
enumerable: true
|
|
38
30
|
}) : target, mod));
|
|
39
|
-
|
|
40
31
|
//#endregion
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return __exportAll;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "__toESM", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return __toESM;
|
|
42
|
+
}
|
|
47
43
|
});
|
|
48
|
-
Object.defineProperty(exports, '__toESM', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return __toESM;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __exportAll = (all, no_symbols) => {
|
|
6
5
|
let target = {};
|
|
7
|
-
for (var name in all) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
if (!no_symbols) {
|
|
14
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
-
}
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
11
|
return target;
|
|
17
12
|
};
|
|
18
13
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
19
|
-
|
|
20
14
|
//#endregion
|
|
21
|
-
export { __require as n, __exportAll as t };
|
|
15
|
+
export { __require as n, __exportAll as t };
|
package/dist/cmd/index.cjs
CHANGED
|
@@ -1,45 +1,42 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
require(
|
|
3
|
-
require(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get: function () {
|
|
17
|
-
return require_sign.dkg_exports;
|
|
18
|
-
}
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_cmd = require("../cmd-BfZjC3Uh.cjs");
|
|
3
|
+
const require_registry = require("../registry-loI1_Mh1.cjs");
|
|
4
|
+
exports.CollectionResult = require_cmd.CollectionResult;
|
|
5
|
+
exports.DEFAULT_TIMEOUT_SECONDS = require_cmd.DEFAULT_TIMEOUT_SECONDS;
|
|
6
|
+
exports.Direction = require_cmd.Direction;
|
|
7
|
+
exports.buildFetchRequests = require_cmd.buildFetchRequests;
|
|
8
|
+
exports.checkAridExists = require_cmd.checkAridExists;
|
|
9
|
+
exports.createStorageClient = require_cmd.createStorageClient;
|
|
10
|
+
exports.directionEmoji = require_cmd.directionEmoji;
|
|
11
|
+
Object.defineProperty(exports, "dkg", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return require_cmd.dkg_exports;
|
|
15
|
+
}
|
|
19
16
|
});
|
|
20
|
-
exports.emptyCollectionResult =
|
|
21
|
-
exports.fetchStatusError =
|
|
22
|
-
exports.fetchStatusPending =
|
|
23
|
-
exports.fetchStatusRejected =
|
|
24
|
-
exports.fetchStatusSuccess =
|
|
25
|
-
exports.fetchStatusTimeout =
|
|
26
|
-
exports.getWithIndicator =
|
|
27
|
-
exports.groupStateDir =
|
|
28
|
-
exports.isVerbose =
|
|
29
|
-
exports.parallelFetch =
|
|
30
|
-
exports.parallelFetchConfigWithTimeout =
|
|
31
|
-
exports.parallelSend =
|
|
32
|
-
exports.putWithIndicator =
|
|
33
|
-
Object.defineProperty(exports,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
exports.emptyCollectionResult = require_cmd.emptyCollectionResult;
|
|
18
|
+
exports.fetchStatusError = require_cmd.fetchStatusError;
|
|
19
|
+
exports.fetchStatusPending = require_cmd.fetchStatusPending;
|
|
20
|
+
exports.fetchStatusRejected = require_cmd.fetchStatusRejected;
|
|
21
|
+
exports.fetchStatusSuccess = require_cmd.fetchStatusSuccess;
|
|
22
|
+
exports.fetchStatusTimeout = require_cmd.fetchStatusTimeout;
|
|
23
|
+
exports.getWithIndicator = require_cmd.getWithIndicator;
|
|
24
|
+
exports.groupStateDir = require_cmd.groupStateDir;
|
|
25
|
+
exports.isVerbose = require_cmd.isVerbose;
|
|
26
|
+
exports.parallelFetch = require_cmd.parallelFetch;
|
|
27
|
+
exports.parallelFetchConfigWithTimeout = require_cmd.parallelFetchConfigWithTimeout;
|
|
28
|
+
exports.parallelSend = require_cmd.parallelSend;
|
|
29
|
+
exports.putWithIndicator = require_cmd.putWithIndicator;
|
|
30
|
+
Object.defineProperty(exports, "registry", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return require_registry.registry_exports;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
exports.setVerbose = require_cmd.setVerbose;
|
|
37
|
+
Object.defineProperty(exports, "sign", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function() {
|
|
40
|
+
return require_cmd.sign_exports;
|
|
41
|
+
}
|
|
38
42
|
});
|
|
39
|
-
exports.setVerbose = require_sign.setVerbose;
|
|
40
|
-
Object.defineProperty(exports, 'sign', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return require_sign.sign_exports;
|
|
44
|
-
}
|
|
45
|
-
});
|
package/dist/cmd/index.d.cts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-
|
|
2
|
-
import "../registry-impl-CE76sTXQ.cjs";
|
|
3
|
-
import "../group-invite-Dz1Jmiky.cjs";
|
|
1
|
+
import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-BJlwbPYu.cjs";
|
|
4
2
|
export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, FetchStatus, ParallelFetchConfig, StorageClient, StorageSelection, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign };
|
package/dist/cmd/index.d.mts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-
|
|
2
|
-
import "../registry-impl-BETn_lEO.mjs";
|
|
3
|
-
import "../group-invite-Wk9CIbHL.mjs";
|
|
1
|
+
import { C as StorageClient, D as isVerbose, E as groupStateDir, O as setVerbose, S as putWithIndicator, T as createStorageClient, _ as fetchStatusTimeout, a as CollectionResult, b as parallelSend, c as FetchStatus, d as directionEmoji, f as emptyCollectionResult, g as fetchStatusSuccess, h as fetchStatusRejected, i as checkAridExists, l as ParallelFetchConfig, m as fetchStatusPending, n as index_d_exports$2, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusError, r as index_d_exports, s as Direction, t as index_d_exports$1, u as buildFetchRequests, v as parallelFetch, w as StorageSelection, x as getWithIndicator, y as parallelFetchConfigWithTimeout } from "../index-Dzm1v4_4.mjs";
|
|
4
2
|
export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, FetchStatus, ParallelFetchConfig, StorageClient, StorageSelection, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, index_d_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, index_d_exports$1 as registry, setVerbose, index_d_exports$2 as sign };
|
package/dist/cmd/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../registry-
|
|
3
|
-
|
|
4
|
-
import { t as registry_exports } from "../registry-BDnNV1Rk.mjs";
|
|
5
|
-
|
|
6
|
-
export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, dkg_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registry_exports as registry, setVerbose, sign_exports as sign };
|
|
1
|
+
import { C as setVerbose, S as isVerbose, _ as parallelFetchConfigWithTimeout, a as CollectionResult, b as putWithIndicator, c as buildFetchRequests, d as fetchStatusError, f as fetchStatusPending, g as parallelFetch, h as fetchStatusTimeout, i as createStorageClient, l as directionEmoji, m as fetchStatusSuccess, n as dkg_exports, o as DEFAULT_TIMEOUT_SECONDS, p as fetchStatusRejected, r as checkAridExists, s as Direction, t as sign_exports, u as emptyCollectionResult, v as parallelSend, x as groupStateDir, y as getWithIndicator } from "../cmd-5yLeC_QL.mjs";
|
|
2
|
+
import { t as registry_exports } from "../registry-CgrCZ4En.mjs";
|
|
3
|
+
export { CollectionResult, DEFAULT_TIMEOUT_SECONDS, Direction, buildFetchRequests, checkAridExists, createStorageClient, directionEmoji, dkg_exports as dkg, emptyCollectionResult, fetchStatusError, fetchStatusPending, fetchStatusRejected, fetchStatusSuccess, fetchStatusTimeout, getWithIndicator, groupStateDir, isVerbose, parallelFetch, parallelFetchConfigWithTimeout, parallelSend, putWithIndicator, registry_exports as registry, setVerbose, sign_exports as sign };
|