flyspace-cli 0.1.13 → 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.
@@ -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,