flyspace-cli 0.1.12 → 0.1.14
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/{chunk-VKTJBYA3.js → chunk-DA7SYYKU.js} +10 -0
- package/dist/cli.js +748 -605
- package/dist/index.js +1 -1
- package/package.json +2 -1
- package/templates/general/01-welcome.md +20 -0
- package/templates/general/02-working-with-the-agent.md +21 -0
- package/templates/general/03-channels-and-folders.md +19 -0
- package/templates/general/04-docs.md +14 -0
- package/templates/general/05-inviting-your-team.md +17 -0
- package/templates/general/06-automations.md +21 -0
|
@@ -2175,6 +2175,14 @@ async function markWorkspaceAgentConnected(workspaceId) {
|
|
|
2175
2175
|
async function markWorkspaceProjectsSetup(workspaceId) {
|
|
2176
2176
|
await stampOnce(workspaceId, "projects_setup_at");
|
|
2177
2177
|
}
|
|
2178
|
+
async function markWorkspaceGreeted(workspaceId) {
|
|
2179
|
+
await stampOnce(workspaceId, "greeted_at");
|
|
2180
|
+
}
|
|
2181
|
+
async function getWorkspaceGreetedAt(workspaceId) {
|
|
2182
|
+
const { data, error } = await getSupabaseClient().from("workspaces").select("greeted_at").eq("id", workspaceId).maybeSingle();
|
|
2183
|
+
if (error) throw new Error(`getWorkspaceGreetedAt(${workspaceId}): ${error.message}`);
|
|
2184
|
+
return data?.greeted_at ?? null;
|
|
2185
|
+
}
|
|
2178
2186
|
async function stampOnce(workspaceId, column) {
|
|
2179
2187
|
const { error } = await getSupabaseClient().from("workspaces").update({ [column]: (/* @__PURE__ */ new Date()).toISOString() }).eq("id", workspaceId).is(column, null);
|
|
2180
2188
|
if (error) throw new Error(`stampOnce(${workspaceId}, ${column}): ${error.message}`);
|
|
@@ -8409,6 +8417,8 @@ export {
|
|
|
8409
8417
|
setWorkspaceStripeSubscription,
|
|
8410
8418
|
markWorkspaceAgentConnected,
|
|
8411
8419
|
markWorkspaceProjectsSetup,
|
|
8420
|
+
markWorkspaceGreeted,
|
|
8421
|
+
getWorkspaceGreetedAt,
|
|
8412
8422
|
getWorkspaceByStripeCustomerId,
|
|
8413
8423
|
getWorkspaceBilling,
|
|
8414
8424
|
updateWorkspacePlanStatus,
|