@thecorporation/cli 26.3.4 → 26.3.5
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 +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1960,8 +1960,7 @@ async function governanceAddSeatCommand(bodyId, opts) {
|
|
|
1960
1960
|
const cfg = requireConfig("api_url", "api_key", "workspace_id");
|
|
1961
1961
|
const client = new CorpAPIClient(cfg.api_url, cfg.api_key, cfg.workspace_id);
|
|
1962
1962
|
try {
|
|
1963
|
-
const data = { holder_id: opts.holder };
|
|
1964
|
-
if (opts.title) data.title = opts.title;
|
|
1963
|
+
const data = { holder_id: opts.holder, role: opts.role ?? "member" };
|
|
1965
1964
|
const result = await client.createGovernanceSeat(bodyId, data);
|
|
1966
1965
|
printSuccess(`Seat added: ${result.seat_id ?? "OK"}`);
|
|
1967
1966
|
printJson(result);
|
|
@@ -3180,7 +3179,7 @@ contactsCmd.command("show <contact-id>").option("--json", "Output as JSON").desc
|
|
|
3180
3179
|
const { contactsShowCommand: contactsShowCommand2 } = await Promise.resolve().then(() => (init_contacts(), contacts_exports));
|
|
3181
3180
|
await contactsShowCommand2(contactId, { ...opts, entityId: parent.entityId });
|
|
3182
3181
|
});
|
|
3183
|
-
contactsCmd.command("add").requiredOption("--name <name>", "Contact name").requiredOption("--email <email>", "Contact email").option("--type <type>", "Contact type (individual, organization)", "individual").option("--category <category>", "Category (employee, contractor, board_member, investor, law_firm, valuation_firm, accounting_firm, officer,
|
|
3182
|
+
contactsCmd.command("add").requiredOption("--name <name>", "Contact name").requiredOption("--email <email>", "Contact email").option("--type <type>", "Contact type (individual, organization)", "individual").option("--category <category>", "Category (employee, contractor, board_member, investor, law_firm, valuation_firm, accounting_firm, officer, founder, member, other)").option("--phone <phone>", "Phone number").option("--notes <notes>", "Notes").description("Add a new contact").action(async (opts, cmd) => {
|
|
3184
3183
|
const parent = cmd.parent.opts();
|
|
3185
3184
|
const { contactsAddCommand: contactsAddCommand2 } = await Promise.resolve().then(() => (init_contacts(), contacts_exports));
|
|
3186
3185
|
await contactsAddCommand2({ ...opts, entityId: parent.entityId });
|
|
@@ -3214,7 +3213,7 @@ capTableCmd.command("409a").description("Current 409A valuation").action(async (
|
|
|
3214
3213
|
const { fourOhNineACommand: fourOhNineACommand2 } = await Promise.resolve().then(() => (init_cap_table(), cap_table_exports));
|
|
3215
3214
|
await fourOhNineACommand2(parent);
|
|
3216
3215
|
});
|
|
3217
|
-
capTableCmd.command("issue-equity").requiredOption("--grant-type <type>", "Grant type (
|
|
3216
|
+
capTableCmd.command("issue-equity").requiredOption("--grant-type <type>", "Grant type (common, preferred, membership_unit, stock_option, iso, nso, rsa)").requiredOption("--shares <n>", "Number of shares", parseInt).requiredOption("--recipient <name>", "Recipient name").option("--email <email>", "Recipient email (auto-creates contact if needed)").option("--instrument-id <id>", "Instrument ID (auto-detected from cap table if omitted)").description("Issue an equity grant (creates a round, adds security, and issues it)").action(async (opts, cmd) => {
|
|
3218
3217
|
const parent = cmd.parent.opts();
|
|
3219
3218
|
const { issueEquityCommand: issueEquityCommand2 } = await Promise.resolve().then(() => (init_cap_table(), cap_table_exports));
|
|
3220
3219
|
await issueEquityCommand2({ ...opts, entityId: parent.entityId });
|
|
@@ -3304,7 +3303,7 @@ governanceCmd.command("create-body").requiredOption("--name <name>", "Body name
|
|
|
3304
3303
|
const { governanceCreateBodyCommand: governanceCreateBodyCommand2 } = await Promise.resolve().then(() => (init_governance(), governance_exports));
|
|
3305
3304
|
await governanceCreateBodyCommand2({ ...opts, entityId: parent.entityId });
|
|
3306
3305
|
});
|
|
3307
|
-
governanceCmd.command("add-seat <body-id>").requiredOption("--holder <contact-id>", "Contact ID for the seat holder").option("--
|
|
3306
|
+
governanceCmd.command("add-seat <body-id>").requiredOption("--holder <contact-id>", "Contact ID for the seat holder").option("--role <role>", "Seat role (chair, member, officer, observer)", "member").description("Add a seat to a governance body").action(async (bodyId, opts) => {
|
|
3308
3307
|
const { governanceAddSeatCommand: governanceAddSeatCommand2 } = await Promise.resolve().then(() => (init_governance(), governance_exports));
|
|
3309
3308
|
await governanceAddSeatCommand2(bodyId, opts);
|
|
3310
3309
|
});
|