@fairmint/captable-ai 0.1.27 → 0.1.28
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 +14 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16721,7 +16721,7 @@ var hasControlCharacter = (value) => Array.from(value).some((character) => {
|
|
|
16721
16721
|
var legalNameSchema = shortTextSchema(255).refine((value) => !hasControlCharacter(value), "Legal name cannot contain control characters").describe("Confirmed legal name of the company.");
|
|
16722
16722
|
var countryCodeSchema = external_exports.string().trim().transform((value) => value.toUpperCase()).pipe(external_exports.string().regex(/^[A-Z]{2}$/, "Must be an ISO 3166-1 alpha-2 country code")).describe("ISO 3166-1 alpha-2 country of incorporation. Required for foreign entities.");
|
|
16723
16723
|
var onboardingWorkspaceSetupInputSchema = external_exports.object({
|
|
16724
|
-
termsAccepted: external_exports.literal(true).describe("
|
|
16724
|
+
termsAccepted: external_exports.literal(true).optional().describe("Deprecated and ignored by current clients. Terms are accepted at sign-in."),
|
|
16725
16725
|
legalName: legalNameSchema.optional(),
|
|
16726
16726
|
companyType: external_exports.enum([
|
|
16727
16727
|
ONBOARDING_COMPANY_TYPES.US_C_CORPORATION,
|
|
@@ -18187,14 +18187,14 @@ var COMMAND_REGISTRY = [
|
|
|
18187
18187
|
{
|
|
18188
18188
|
name: "onboarding setup",
|
|
18189
18189
|
group: "onboarding",
|
|
18190
|
-
description: "Idempotently create the authenticated user's first production workspace.
|
|
18191
|
-
usage: "captable-ai onboarding setup
|
|
18190
|
+
description: "Idempotently create the authenticated user's first production workspace. No answers are required; the company profile is read from uploaded documents. Terms are accepted at sign-in.",
|
|
18191
|
+
usage: "captable-ai onboarding setup [--legal-name <name>] [--company-type <type>] [--country <code>] [--role <role>] [--other-role <role>] [--cap-table-source <source>] [--other-cap-table-source <source>] [--stakeholder-count <bucket>] [--json]",
|
|
18192
18192
|
requiresAuth: true,
|
|
18193
18193
|
requiresPortal: false,
|
|
18194
18194
|
flags: [
|
|
18195
18195
|
{
|
|
18196
18196
|
name: "accept-terms",
|
|
18197
|
-
description: "
|
|
18197
|
+
description: "Deprecated and ignored. Terms are accepted when you sign in.",
|
|
18198
18198
|
type: "boolean"
|
|
18199
18199
|
},
|
|
18200
18200
|
{
|
|
@@ -18981,14 +18981,14 @@ var HELP_ONBOARDING = `onboarding \u2014 Create a first workspace and inspect ne
|
|
|
18981
18981
|
|
|
18982
18982
|
Usage:
|
|
18983
18983
|
captable-ai onboarding status [--session <import-session-id>] [--json]
|
|
18984
|
-
captable-ai onboarding setup
|
|
18984
|
+
captable-ai onboarding setup [--legal-name <name>] [options] [--json]
|
|
18985
18985
|
|
|
18986
|
-
|
|
18987
|
-
country are read from the documents you upload, so you can
|
|
18988
|
-
start importing right away.
|
|
18986
|
+
Nothing is required: you accepted the Terms when you signed in. The legal name,
|
|
18987
|
+
entity type, and country are read from the documents you upload, so you can
|
|
18988
|
+
skip them here and start importing right away.
|
|
18989
18989
|
|
|
18990
18990
|
Setup values:
|
|
18991
|
-
--accept-terms
|
|
18991
|
+
--accept-terms Deprecated, ignored. Terms are accepted when you sign in.
|
|
18992
18992
|
--legal-name Company name. Left unset until you or document
|
|
18993
18993
|
extraction supplies one; commit stays blocked until then.
|
|
18994
18994
|
--company-type us_c_corporation | us_llc | foreign_entity | not_incorporated
|
|
@@ -22789,10 +22789,10 @@ async function runOnboardingStatus(args) {
|
|
|
22789
22789
|
nextAction(
|
|
22790
22790
|
"setup_workspace",
|
|
22791
22791
|
"Create your first workspace",
|
|
22792
|
-
"captable-ai onboarding setup
|
|
22792
|
+
"captable-ai onboarding setup"
|
|
22793
22793
|
)
|
|
22794
22794
|
],
|
|
22795
|
-
question: "
|
|
22795
|
+
question: "Create your workspace now. You accepted Fairmint's Terms of Service when you signed in."
|
|
22796
22796
|
} : !active ? {
|
|
22797
22797
|
state: ONBOARDING_STATES.NEEDS_COMPANY_SELECTION,
|
|
22798
22798
|
companies: credentials.portals,
|
|
@@ -22844,9 +22844,7 @@ function setupInput(args) {
|
|
|
22844
22844
|
otherCapTableSource: "other-cap-table-source",
|
|
22845
22845
|
stakeholderCount: "stakeholder-count"
|
|
22846
22846
|
};
|
|
22847
|
-
const input = {
|
|
22848
|
-
termsAccepted: hasFlag(args, "accept-terms")
|
|
22849
|
-
};
|
|
22847
|
+
const input = {};
|
|
22850
22848
|
for (const [field, flag] of Object.entries(flagMap)) {
|
|
22851
22849
|
const value = args.flags[flag];
|
|
22852
22850
|
if (typeof value === "string") input[field] = value;
|
|
@@ -22865,6 +22863,7 @@ async function runOnboardingSetup(args) {
|
|
|
22865
22863
|
"other-cap-table-source",
|
|
22866
22864
|
"stakeholder-count"
|
|
22867
22865
|
],
|
|
22866
|
+
// Deprecated no-op, still declared so existing scripts passing it do not fail.
|
|
22868
22867
|
booleans: ["accept-terms"]
|
|
22869
22868
|
});
|
|
22870
22869
|
const parsed = onboardingWorkspaceSetupInputSchema.safeParse(
|
|
@@ -22876,7 +22875,7 @@ async function runOnboardingSetup(args) {
|
|
|
22876
22875
|
message: issue2.message
|
|
22877
22876
|
}));
|
|
22878
22877
|
exitWithError(
|
|
22879
|
-
"Company setup answers are invalid.
|
|
22878
|
+
"Company setup answers are invalid. No answer is required on its own, but some answers require a partner flag: `--company-type foreign_entity` needs `--country`, `--role other` needs `--other-role`, and `--cap-table-source other` needs `--other-cap-table-source`. Run `captable-ai onboarding setup --help` for accepted values.",
|
|
22880
22879
|
"VALIDATION_FAILED",
|
|
22881
22880
|
details,
|
|
22882
22881
|
EXIT.VALIDATION
|
package/package.json
CHANGED