deepspace 0.28.1 → 0.28.2

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/server.js CHANGED
@@ -5144,7 +5144,12 @@ async function executeTool(ctx, toolName, params, userId, userRole, skipUserRbac
5144
5144
  case "user.current": {
5145
5145
  if (!userId) return { success: false, error: "No userId provided" };
5146
5146
  const user = getUser(ctx.sql, userId, ctx.schemaRegistry);
5147
- if (!user) return { success: false, error: "User not found" };
5147
+ if (!user) {
5148
+ return {
5149
+ success: false,
5150
+ error: "No users row for this identity yet \u2014 it is created by signing in to the app in a browser. Tool access does not require one, so other tools keep working."
5151
+ };
5152
+ }
5148
5153
  return { success: true, data: { user } };
5149
5154
  }
5150
5155
  // The same roster the socket's `user.list` returns, for the same caller.