@thecorporation/cli 26.3.34 → 26.3.35

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
@@ -1694,8 +1694,8 @@ function printSafesTable(safes) {
1694
1694
  table.push([
1695
1695
  formatReferenceCell("safe_note", s_),
1696
1696
  s2(s_.investor_name ?? s_.investor),
1697
- money2(s_.principal_amount_cents ?? s_.investment_amount ?? s_.amount, false),
1698
- money2(s_.valuation_cap_cents ?? s_.valuation_cap ?? s_.cap, false),
1697
+ money2(s_.principal_amount_cents ?? s_.investment_amount ?? s_.amount),
1698
+ money2(s_.valuation_cap_cents ?? s_.valuation_cap ?? s_.cap),
1699
1699
  s2(s_.discount_rate ?? s_.discount),
1700
1700
  s2(s_.issued_at ?? s_.date ?? s_.created_at)
1701
1701
  ]);
@@ -5076,7 +5076,11 @@ var init_cap_table = __esm({
5076
5076
  resolutionId
5077
5077
  });
5078
5078
  if (!result.success) {
5079
- ctx.writer.error(result.error);
5079
+ let errMsg = result.error;
5080
+ if (errMsg.includes("already bound") && !errMsg.includes("quick-approve")) {
5081
+ errMsg += '\n Each issuance needs its own board approval.\n Run: corp governance quick-approve --text "RESOLVED: authorize equity issuance"';
5082
+ }
5083
+ ctx.writer.error(errMsg);
5080
5084
  return;
5081
5085
  }
5082
5086
  const round = result.data?.round;
@@ -5168,7 +5172,11 @@ var init_cap_table = __esm({
5168
5172
  resolutionId
5169
5173
  });
5170
5174
  if (!result.success) {
5171
- ctx.writer.error(result.error);
5175
+ let errMsg = result.error;
5176
+ if (errMsg.includes("already bound") && !errMsg.includes("quick-approve")) {
5177
+ errMsg += '\n Each issuance needs its own board approval.\n Run: corp governance quick-approve --text "RESOLVED: authorize SAFE issuance"';
5178
+ }
5179
+ ctx.writer.error(errMsg);
5172
5180
  return;
5173
5181
  }
5174
5182
  await ctx.resolver.stabilizeRecord("safe_note", result.data, eid);