@thecorporation/cli 26.3.35 → 26.3.36

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 CHANGED
@@ -4686,7 +4686,7 @@ var init_cap_table = __esm({
4686
4686
  examples: [
4687
4687
  "corp cap-table",
4688
4688
  'corp cap-table issue-equity --grant-type common --shares 1000000 --recipient "Alice Smith"',
4689
- 'corp cap-table issue-safe --investor "Seed Fund" --amount-cents 50000000 --valuation-cap-cents 1000000000',
4689
+ 'corp cap-table issue-safe --investor "Seed Fund" --amount-dollars 500000 --valuation-cap-dollars 10000000',
4690
4690
  "corp cap-table create-valuation --type four_oh_nine_a --date 2026-01-01 --methodology market",
4691
4691
  "corp cap-table transfer --from alice --to bob --shares 1000 --share-class-id COMMON --governing-doc-type bylaws --transferee-rights full_member"
4692
4692
  ]
@@ -5118,30 +5118,30 @@ var init_cap_table = __esm({
5118
5118
  options: [
5119
5119
  { flags: "--investor <name>", description: "Investor name", required: true },
5120
5120
  { flags: "--amount-cents <n>", description: "Principal amount in cents (e.g. 50000000 = $500,000)", type: "int" },
5121
- { flags: "--amount <n>", description: "Amount in dollars (alternative to --amount-cents)", type: "int" },
5121
+ { flags: "--amount-dollars <n>", description: "Principal amount in dollars (e.g. 500000 = $500,000)", type: "int" },
5122
5122
  { flags: "--safe-type <type>", description: "SAFE type", default: "post_money", choices: ["post_money", "pre_money", "mfn"] },
5123
5123
  { flags: "--valuation-cap-cents <n>", description: "Valuation cap in cents (e.g. 100000000 = $1M)", type: "int" },
5124
- { flags: "--valuation-cap <n>", description: "Valuation cap in dollars (alternative to --valuation-cap-cents)", type: "int" },
5124
+ { flags: "--valuation-cap-dollars <n>", description: "Valuation cap in dollars (e.g. 1000000 = $1M)", type: "int" },
5125
5125
  { flags: "--meeting-id <ref>", description: "Board meeting reference required when issuing under a board-governed entity" },
5126
5126
  { flags: "--resolution-id <ref>", description: "Board resolution reference required when issuing under a board-governed entity" }
5127
5127
  ],
5128
5128
  handler: async (ctx) => {
5129
5129
  const eid = await ctx.resolver.resolveEntity(ctx.opts.entityId);
5130
5130
  const investor = ctx.opts.investor;
5131
- if (ctx.opts.amountCents != null && ctx.opts.amount != null) {
5132
- throw new Error("--amount-cents and --amount are mutually exclusive. Use one or the other.");
5131
+ if (ctx.opts.amountCents != null && ctx.opts.amountDollars != null) {
5132
+ throw new Error("--amount-cents and --amount-dollars are mutually exclusive. Use one or the other.");
5133
5133
  }
5134
- const amountCents = ctx.opts.amountCents != null ? ctx.opts.amountCents : ctx.opts.amount != null ? ctx.opts.amount * 100 : void 0;
5134
+ const amountCents = ctx.opts.amountCents != null ? ctx.opts.amountCents : ctx.opts.amountDollars != null ? ctx.opts.amountDollars * 100 : void 0;
5135
5135
  if (amountCents == null) {
5136
- throw new Error("required option '--amount-cents <n>' or '--amount <n>' not specified");
5136
+ throw new Error("required: --amount-cents <n> or --amount-dollars <n>");
5137
5137
  }
5138
5138
  const safeType = ctx.opts.safeType ?? "post_money";
5139
- if (ctx.opts.valuationCapCents != null && ctx.opts.valuationCap != null) {
5140
- throw new Error("--valuation-cap-cents and --valuation-cap are mutually exclusive. Use one or the other.");
5139
+ if (ctx.opts.valuationCapCents != null && ctx.opts.valuationCapDollars != null) {
5140
+ throw new Error("--valuation-cap-cents and --valuation-cap-dollars are mutually exclusive. Use one or the other.");
5141
5141
  }
5142
- const valuationCapCents = ctx.opts.valuationCapCents != null ? ctx.opts.valuationCapCents : ctx.opts.valuationCap != null ? ctx.opts.valuationCap * 100 : void 0;
5142
+ const valuationCapCents = ctx.opts.valuationCapCents != null ? ctx.opts.valuationCapCents : ctx.opts.valuationCapDollars != null ? ctx.opts.valuationCapDollars * 100 : void 0;
5143
5143
  if (valuationCapCents == null) {
5144
- throw new Error("required option '--valuation-cap-cents <n>' or '--valuation-cap <n>' not specified");
5144
+ throw new Error("required: --valuation-cap-cents <n> or --valuation-cap-dollars <n>");
5145
5145
  }
5146
5146
  const email = ctx.opts.email;
5147
5147
  const optMeetingId = ctx.opts.meetingId;
@@ -5190,7 +5190,10 @@ var init_cap_table = __esm({
5190
5190
  },
5191
5191
  produces: { kind: "safe_note" },
5192
5192
  successTemplate: "SAFE created: {investor_name}",
5193
- examples: ["corp cap-table issue-safe --investor 'name' --amount-cents 'n' --valuation-cap-cents 'n'", "corp cap-table issue-safe --json"]
5193
+ examples: [
5194
+ 'corp cap-table issue-safe --investor "Seed Fund" --amount-dollars 500000 --valuation-cap-dollars 10000000',
5195
+ 'corp cap-table issue-safe --investor "Angel" --amount-cents 50000000 --valuation-cap-cents 1000000000'
5196
+ ]
5194
5197
  },
5195
5198
  // --- cap-table transfer ---
5196
5199
  {
@@ -5304,18 +5307,18 @@ var init_cap_table = __esm({
5304
5307
  dryRun: true,
5305
5308
  options: [
5306
5309
  { flags: "--amount-cents <n>", description: "Total distribution amount in cents (e.g. 100000 = $1,000.00)", required: true, type: "int" },
5307
- { flags: "--amount <n>", description: "Amount in dollars (alternative to --amount-cents)", type: "int" },
5310
+ { flags: "--amount-dollars <n>", description: "Total distribution amount in dollars (e.g. 1000 = $1,000.00)", type: "int" },
5308
5311
  { flags: "--type <type>", description: "Distribution type (dividend, return, liquidation)", default: "dividend" },
5309
5312
  { flags: "--description <desc>", description: "Distribution description", required: true }
5310
5313
  ],
5311
5314
  handler: async (ctx) => {
5312
5315
  const eid = await ctx.resolver.resolveEntity(ctx.opts.entityId);
5313
- if (ctx.opts.amountCents != null && ctx.opts.amount != null) {
5314
- throw new Error("--amount-cents and --amount are mutually exclusive. Use one or the other.");
5316
+ if (ctx.opts.amountCents != null && ctx.opts.amountDollars != null) {
5317
+ throw new Error("--amount-cents and --amount-dollars are mutually exclusive. Use one or the other.");
5315
5318
  }
5316
- const amountCents = ctx.opts.amountCents != null ? ctx.opts.amountCents : ctx.opts.amount != null ? ctx.opts.amount * 100 : void 0;
5319
+ const amountCents = ctx.opts.amountCents != null ? ctx.opts.amountCents : ctx.opts.amountDollars != null ? ctx.opts.amountDollars * 100 : void 0;
5317
5320
  if (amountCents == null) {
5318
- throw new Error("required option '--amount-cents <n>' or '--amount <n>' not specified");
5321
+ throw new Error("required: --amount-cents <n> or --amount-dollars <n>");
5319
5322
  }
5320
5323
  const distributionType = ctx.opts.type ?? "dividend";
5321
5324
  const description = ctx.opts.description;
@@ -6477,19 +6480,19 @@ var init_finance = __esm({
6477
6480
  options: [
6478
6481
  { flags: "--customer <name>", description: "Customer name", required: true },
6479
6482
  { flags: "--amount-cents <n>", description: "Amount in cents (e.g. 500000 = $5,000.00)", type: "int" },
6480
- { flags: "--amount <n>", description: "Amount in dollars (converted to cents)", type: "int" },
6483
+ { flags: "--amount-dollars <n>", description: "Amount in dollars (e.g. 5000 = $5,000.00)", type: "int" },
6481
6484
  { flags: "--due-date <date>", description: "Due date (ISO 8601)", required: true },
6482
6485
  { flags: "--description <desc>", description: "Description text", default: "Services rendered" }
6483
6486
  ],
6484
6487
  handler: async (ctx) => {
6485
6488
  const eid = await ctx.resolver.resolveEntity(ctx.opts.entityId);
6486
- if (ctx.opts.amountCents != null && ctx.opts.amount != null) {
6487
- printError("--amount-cents and --amount are mutually exclusive. Use one or the other.");
6489
+ if (ctx.opts.amountCents != null && ctx.opts.amountDollars != null) {
6490
+ printError("--amount-cents and --amount-dollars are mutually exclusive. Use one or the other.");
6488
6491
  process.exit(1);
6489
6492
  }
6490
- const amountCents = ctx.opts.amountCents ?? (ctx.opts.amount != null ? ctx.opts.amount * 100 : void 0);
6493
+ const amountCents = ctx.opts.amountCents ?? (ctx.opts.amountDollars != null ? ctx.opts.amountDollars * 100 : void 0);
6491
6494
  if (amountCents == null) {
6492
- printError("required option '--amount-cents <n>' or '--amount <n>' not specified");
6495
+ printError("required: --amount-cents <n> or --amount-dollars <n>");
6493
6496
  process.exit(1);
6494
6497
  }
6495
6498
  const result = await ctx.client.createInvoice({
@@ -6545,19 +6548,19 @@ var init_finance = __esm({
6545
6548
  entity: true,
6546
6549
  options: [
6547
6550
  { flags: "--amount-cents <n>", description: "Amount in cents (e.g. 500000 = $5,000.00)", type: "int" },
6548
- { flags: "--amount <n>", description: "Amount in dollars (converted to cents)", type: "int" },
6551
+ { flags: "--amount-dollars <n>", description: "Amount in dollars (e.g. 5000 = $5,000.00)", type: "int" },
6549
6552
  { flags: "--recipient <name>", description: "Recipient name", required: true },
6550
6553
  { flags: "--method <method>", description: "Payment method", default: "ach" }
6551
6554
  ],
6552
6555
  handler: async (ctx) => {
6553
6556
  const eid = await ctx.resolver.resolveEntity(ctx.opts.entityId);
6554
- if (ctx.opts.amountCents != null && ctx.opts.amount != null) {
6555
- printError("--amount-cents and --amount are mutually exclusive. Use one or the other.");
6557
+ if (ctx.opts.amountCents != null && ctx.opts.amountDollars != null) {
6558
+ printError("--amount-cents and --amount-dollars are mutually exclusive. Use one or the other.");
6556
6559
  process.exit(1);
6557
6560
  }
6558
- const amountCents = ctx.opts.amountCents ?? (ctx.opts.amount != null ? ctx.opts.amount * 100 : void 0);
6561
+ const amountCents = ctx.opts.amountCents ?? (ctx.opts.amountDollars != null ? ctx.opts.amountDollars * 100 : void 0);
6559
6562
  if (amountCents == null) {
6560
- printError("required option '--amount-cents <n>' or '--amount <n>' not specified");
6563
+ printError("required: --amount-cents <n> or --amount-dollars <n>");
6561
6564
  process.exit(1);
6562
6565
  }
6563
6566
  const method = ctx.opts.method;