@hanzo/rooms 0.1.98 → 0.1.99

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.
Files changed (2) hide show
  1. package/dist/Palette.js +7 -1
  2. package/package.json +1 -1
package/dist/Palette.js CHANGED
@@ -164,6 +164,12 @@ const obj = (v) => (v && typeof v === 'object' ? v : {});
164
164
  const str = (v) => (typeof v === 'string' ? v : '');
165
165
  const list = (v) => (Array.isArray(v) ? v : []);
166
166
  /** `/v1/projects`: a project by its slug, found by its name, slug and repository. */
167
+ /**
168
+ * The builder as a frame without it holds it (hanzo.team's Shell): nobody signed
169
+ * in to it, so `useSessions` reads no runs. The hook reads `api`, `token`, `org`
170
+ * and `person` off whatever it is handed, and handed nothing it throws.
171
+ */
172
+ const NOBODY = { api: '', token: () => null, org: null, person: null };
167
173
  const projects = (body) => (Array.isArray(body) ? body : list(obj(body).data))
168
174
  .map(obj)
169
175
  .filter((p) => str(p.slug))
@@ -187,7 +193,7 @@ export function Palette({ onClose, go, actions: frame = [], mode = 'chat', host,
187
193
  const known = useRead('/v1/tool/skills?activated=true', skills);
188
194
  const plugged = useRead('/v1/tool/mcp/servers', connectors);
189
195
  const signOut = useSignOut();
190
- const runs = useSessions(host ?? null);
196
+ const runs = useSessions(host ?? NOBODY);
191
197
  const { open: opened } = useBetas();
192
198
  const groups = useMemo(() => {
193
199
  const { top, deep } = places(host, go);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/rooms",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "description": "The workspace rooms — Home, Chat, Inbox, Contacts, Meet, Cal, Drive, Board, Work, Bots — and the frame that holds them, once, for every Hanzo surface.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",