@fairmint/captable-ai 0.1.18 → 0.1.20
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 +22 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16994,6 +16994,16 @@ var warrantsSnapshotSchema = external_exports.object({
|
|
|
16994
16994
|
totalUnderlyingShares: external_exports.number().nonnegative(),
|
|
16995
16995
|
items: external_exports.array(warrantResolutionItemSchema).optional()
|
|
16996
16996
|
});
|
|
16997
|
+
var pendingSpvSchema = external_exports.object({
|
|
16998
|
+
vehicleId: external_exports.string().uuid(),
|
|
16999
|
+
vehicleName: external_exports.string(),
|
|
17000
|
+
legalName: external_exports.string(),
|
|
17001
|
+
status: external_exports.enum(["live", "paused"]),
|
|
17002
|
+
committedUsd: external_exports.string(),
|
|
17003
|
+
fundedUsd: external_exports.string(),
|
|
17004
|
+
investorCount: external_exports.number().int().nonnegative(),
|
|
17005
|
+
targetRaiseUsd: external_exports.string().nullable()
|
|
17006
|
+
});
|
|
16997
17007
|
var snapshotSchema = external_exports.object({
|
|
16998
17008
|
status: snapshotStatusSchema,
|
|
16999
17009
|
locale: snapshotLocaleSchema,
|
|
@@ -17005,7 +17015,11 @@ var snapshotSchema = external_exports.object({
|
|
|
17005
17015
|
}).nullable(),
|
|
17006
17016
|
convertibles: convertiblesPayloadSchema.nullable(),
|
|
17007
17017
|
warrants: warrantsSnapshotSchema,
|
|
17008
|
-
metrics: snapshotMetricsSchema
|
|
17018
|
+
metrics: snapshotMetricsSchema,
|
|
17019
|
+
// ENG-2088: pending SPV raises render as one virtual row on the founder cap
|
|
17020
|
+
// table until close projects the real founder SAFE (ENG-1478 rev-2). Absent —
|
|
17021
|
+
// not empty — when the portal sponsors no vehicle-backed raise.
|
|
17022
|
+
pendingSpv: external_exports.array(pendingSpvSchema).optional()
|
|
17009
17023
|
});
|
|
17010
17024
|
|
|
17011
17025
|
// ../captable-ai-core/dist/summary.js
|
|
@@ -21215,9 +21229,13 @@ async function runOnboardingSetup(args) {
|
|
|
21215
21229
|
EXIT.SERVER_ERROR
|
|
21216
21230
|
);
|
|
21217
21231
|
}
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
const
|
|
21232
|
+
const { action } = result.data.session;
|
|
21233
|
+
if (action === ONBOARDING_SESSION_ACTIONS.REFRESH || action === ONBOARDING_SESSION_ACTIONS.NONE) {
|
|
21234
|
+
const current = action === ONBOARDING_SESSION_ACTIONS.REFRESH ? await refreshSession() : await readCredentials();
|
|
21235
|
+
if (!current) {
|
|
21236
|
+
exitWithError("Not logged in. Run: captable-ai login", "AUTH_REQUIRED", void 0, EXIT.AUTH);
|
|
21237
|
+
}
|
|
21238
|
+
const withPortals = await refreshPortalsIfStale(current, true);
|
|
21221
21239
|
const portal = withPortals.portals.find(({ id }) => id === result.data.portalId);
|
|
21222
21240
|
if (!portal) {
|
|
21223
21241
|
exitWithError(
|
package/package.json
CHANGED