@helix3/helix-cli 0.1.13-helix3.87 → 0.1.13-helix3.89
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/index.js +2 -17
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +1 -0
- package/dist/init.js +11 -1
- package/dist/init.js.map +1 -1
- package/dist/itemQuote.d.ts +7 -0
- package/dist/itemQuote.js +38 -0
- package/dist/itemQuote.js.map +1 -0
- package/dist/lib.d.ts +9 -6
- package/dist/lib.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
39
39
|
const node_fs_1 = require("node:fs");
|
|
40
40
|
const node_path_1 = require("node:path");
|
|
41
41
|
const lib_1 = require("./lib");
|
|
42
|
+
const itemQuote_1 = require("./itemQuote");
|
|
42
43
|
const audioCommand_1 = require("./audioCommand");
|
|
43
44
|
const voiceCommand_1 = require("./voiceCommand");
|
|
44
45
|
const bundle_1 = require("./bundle");
|
|
@@ -535,22 +536,6 @@ function parseLimit(value, flag) {
|
|
|
535
536
|
return null;
|
|
536
537
|
return parsePositiveInt(value, flag);
|
|
537
538
|
}
|
|
538
|
-
function renderItemQuote(q) {
|
|
539
|
-
const lines = [
|
|
540
|
-
` edition: ${q.editionMode}${q.collectibleSupply !== null ? ` · fixed supply ${q.collectibleSupply} · creator serial #${q.creatorSerial ?? 1}` : ' · unlimited · no serials'}`,
|
|
541
|
-
` publish total: ${q.publishFeeLix} LIX`,
|
|
542
|
-
` review fee: ${q.reviewFeeLix} LIX · normally non-refundable`,
|
|
543
|
-
` compliance bond: ${q.complianceBondLix} LIX · returned after approval + ${q.complianceBondReleaseDays} days in good standing`,
|
|
544
|
-
];
|
|
545
|
-
if (q.editionMode === 'collectible') {
|
|
546
|
-
lines.push(` free Collectible allowance: ${q.includedCollectibleUnits} included · ${q.chargeableCollectibleUnits} additionally authorized`, ` issuance authorization: ${q.issuanceAuthorizationFeeLix} LIX`, ` resale: ${q.creatorRoyaltyPercent}% creator royalty · seller fee ${q.sellerPlatformFeePercentByTier.free}% Free / ${q.sellerPlatformFeePercentByTier.plus}% Plus (future ${q.sellerPlatformFeePercentByTier.gold}% Gold / ${q.sellerPlatformFeePercentByTier.diamond}% Diamond)`, ` buyer surcharge: ${q.buyerSurchargePercent}% · self-purchase prohibited · ${q.resaleCooldownHours}h relisting cooldown`, ` resale eligibility: Basic email; Verified unique mobile + good standing (immediate); Identity Verified reserved for later high-risk capability; Business Verified supported`, ` payout hold: ${q.payoutHoldBaseDays} days base · risk-extension up to ${q.payoutHoldMaxDays} days`);
|
|
547
|
-
}
|
|
548
|
-
if (q.distribution) {
|
|
549
|
-
lines.push(` initial ${q.distribution.channel}: ${q.distribution.priceLix === 0 ? 'Claim (free)' : `Buy at ${q.distribution.priceLix} LIX`} · floor ${q.distribution.priceFloorLix} LIX`);
|
|
550
|
-
}
|
|
551
|
-
lines.push(` total due now: ${q.totalDueLix} LIX`);
|
|
552
|
-
return lines;
|
|
553
|
-
}
|
|
554
539
|
function initialDistributionFromFlags(opts) {
|
|
555
540
|
const any = opts.distributionChannel !== undefined || opts.distributionPriceLix !== undefined ||
|
|
556
541
|
opts.world !== undefined || opts.distributionKey !== undefined || opts.maxPerPlayer !== undefined ||
|
|
@@ -664,7 +649,7 @@ item
|
|
|
664
649
|
console.log(JSON.stringify({ quote }, null, 2));
|
|
665
650
|
else {
|
|
666
651
|
console.log('✔ Publish quote — nothing uploaded or charged.');
|
|
667
|
-
for (const line of renderItemQuote(quote))
|
|
652
|
+
for (const line of (0, itemQuote_1.renderItemQuote)(quote))
|
|
668
653
|
console.log(line);
|
|
669
654
|
}
|
|
670
655
|
}
|