@thecorporation/cli 26.3.36 → 26.3.37

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
@@ -3552,6 +3552,10 @@ async function formCommand(opts) {
3552
3552
  right_of_first_refusal: rofr
3553
3553
  };
3554
3554
  if (companyAddress) payload.company_address = companyAddress;
3555
+ if (entityType === "llc") {
3556
+ const principalName = opts.principalName ?? founders[0]?.name;
3557
+ if (principalName) payload.principal_name = principalName;
3558
+ }
3555
3559
  if (opts.dryRun) {
3556
3560
  printDryRun("formation.create_with_cap_table", payload);
3557
3561
  return;
@@ -3976,7 +3980,9 @@ async function formCreateHandler(ctx) {
3976
3980
  await ctx.resolver.stabilizeRecord("entity", result);
3977
3981
  ctx.resolver.rememberFromRecord("entity", result);
3978
3982
  if (result.entity_id) {
3979
- setActiveEntityId(cfg, String(result.entity_id));
3983
+ const newEntityId = String(result.entity_id);
3984
+ setActiveEntityId(cfg, newEntityId);
3985
+ ctx.resolver.remember("entity", newEntityId);
3980
3986
  saveConfig(cfg);
3981
3987
  }
3982
3988
  if (ctx.quiet) {
@@ -4210,7 +4216,8 @@ var init_formation = __esm({
4210
4216
  { flags: "--fiscal-year-end <date>", description: "Fiscal year end (MM-DD)", default: "12-31" },
4211
4217
  { flags: "--s-corp", description: "Elect S-Corp status" },
4212
4218
  { flags: "--transfer-restrictions", description: "Enable transfer restrictions" },
4213
- { flags: "--rofr", description: "Enable right of first refusal" }
4219
+ { flags: "--rofr", description: "Enable right of first refusal" },
4220
+ { flags: "--principal-name <name>", description: "Managing member name for LLCs (auto-set from first member if omitted)" }
4214
4221
  ],
4215
4222
  handler: formHandler,
4216
4223
  produces: { kind: "entity", trackEntity: true },
@@ -4250,7 +4257,7 @@ var init_formation = __esm({
4250
4257
  successTemplate: "Pending entity created: {legal_name}",
4251
4258
  examples: [
4252
4259
  'corp form create --type c_corp --name "Acme Inc" --jurisdiction US-DE --address "123 Main,City,ST,12345"',
4253
- 'corp form create --type llc --name "My LLC" --jurisdiction US-WY'
4260
+ 'corp form create --type llc --name "My LLC" --jurisdiction US-WY --principal-name "Carlos"'
4254
4261
  ]
4255
4262
  },
4256
4263
  {