@hanzo/rooms 0.1.8 → 0.1.10

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.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The versions of the Terms of Service and the Acceptable Use Policy, written
3
+ * once for every host.
4
+ *
5
+ * The documents are hanzo.ai's (/terms, /aup). Its legal pages print these
6
+ * strings, and every sign-up card — hanzo.ai's and hanzo.team's — records them
7
+ * on the IAM account a new address creates (`@hanzo/ui/auth` `SignIn`'s
8
+ * `policy`). Change a document's words, change its string here, and the page
9
+ * and every card move together. Client-safe: no filesystem.
10
+ */
11
+ export declare const TERMS_VERSION = "terms-2026-09-30";
12
+ export declare const AUP_VERSION = "aup-2026-09-30";
13
+ /** What a sign-up card asks a new account to accept: `SignIn`'s `policy`. */
14
+ export declare const POLICY: {
15
+ readonly terms: "terms-2026-09-30";
16
+ readonly aup: "aup-2026-09-30";
17
+ };
18
+ /** The date a version string names: `terms-2026-09-30` is `2026-09-30`. */
19
+ export declare const versionDate: (version: string) => string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The versions of the Terms of Service and the Acceptable Use Policy, written
3
+ * once for every host.
4
+ *
5
+ * The documents are hanzo.ai's (/terms, /aup). Its legal pages print these
6
+ * strings, and every sign-up card — hanzo.ai's and hanzo.team's — records them
7
+ * on the IAM account a new address creates (`@hanzo/ui/auth` `SignIn`'s
8
+ * `policy`). Change a document's words, change its string here, and the page
9
+ * and every card move together. Client-safe: no filesystem.
10
+ */
11
+ export const TERMS_VERSION = 'terms-2026-09-30';
12
+ export const AUP_VERSION = 'aup-2026-09-30';
13
+ /** What a sign-up card asks a new account to accept: `SignIn`'s `policy`. */
14
+ export const POLICY = { terms: TERMS_VERSION, aup: AUP_VERSION };
15
+ /** The date a version string names: `terms-2026-09-30` is `2026-09-30`. */
16
+ export const versionDate = (version) => version.slice(version.indexOf('-') + 1);
package/dist/look.js CHANGED
@@ -14,8 +14,9 @@ import { Appearance } from "@hanzo/appearance";
14
14
  import { useIam } from "@hanzo/iam/react";
15
15
  import { iam } from "./lib/api.js";
16
16
  import { useOrg } from "./host.js";
17
+ import { brand } from "./where.js";
17
18
  export function Look() {
18
19
  const { accessToken } = useIam();
19
20
  const org = useOrg();
20
- return (_jsxs(YStack, { gap: "$3", maxW: 420, children: [_jsx(Text, { fontSize: "$3", color: "$soft", children: "Kept with your account, so it follows you to every Hanzo surface." }), _jsx(Appearance, { org: org.id, orgName: org.name || "Hanzo", account: { base: iam(), token: accessToken ?? undefined } })] }));
21
+ return (_jsxs(YStack, { gap: "$3", maxW: 420, children: [_jsx(Text, { fontSize: "$3", color: "$soft", children: "Kept with your account, so it follows you to every Hanzo surface." }), _jsx(Appearance, { org: org.id, orgName: org.name || brand(), account: { base: iam(), token: accessToken ?? undefined } })] }));
21
22
  }
package/dist/tours.js CHANGED
@@ -1,4 +1,10 @@
1
1
  'use client';
2
+ // The tours, one per room, and the finders they point with.
3
+ //
4
+ // A stop RESOLVES A LIVE ELEMENT by what it already carries — its label, its
5
+ // role, its text — never a marker sprinkled for the tour. A stop whose anchor is
6
+ // absent is skipped, so each tour describes the room as it is that day.
7
+ import { brand } from './where.js';
2
8
  export const seen = (el) => {
3
9
  if (!el)
4
10
  return null;
@@ -66,7 +72,9 @@ const rail = (label) => {
66
72
  const CHAT = [
67
73
  {
68
74
  id: 'composer',
69
- title: 'What are you interested in? How can Hanzo help you?',
75
+ get title() {
76
+ return `What are you interested in? How can ${brand()} help you?`;
77
+ },
70
78
  body: 'Type what you want in plain words. Paste an error, describe a feature, or drop in a file.',
71
79
  side: 'top',
72
80
  find: composer,
package/dist/where.d.ts CHANGED
@@ -9,7 +9,6 @@
9
9
  */
10
10
  import type { ComponentType } from 'react';
11
11
  import type { BillingPlan } from './lib/plans.js';
12
- import type { Integration } from './lib/integrations.js';
13
12
  /** The addresses a host serves from, which plain modules read. */
14
13
  export interface Addresses {
15
14
  /** The gateway's origin. Absent, the rooms derive it from the page's host. */
@@ -25,18 +24,17 @@ export interface Addresses {
25
24
  home: string;
26
25
  /** Where a new account starts: `/signup`, or hanzo.team's `/start`. */
27
26
  signUp: string;
28
- /** The product's name where the rooms print it: Home's title, the setup's wordmark. Default `Hanzo`. */
27
+ /**
28
+ * The product's name, wherever the rooms print it: the sidebar's wordmark,
29
+ * Home's and Chat's titles, the composer's placeholder, the setup. The host's
30
+ * brand by hostname (`@hanzogui/shell/registry`'s `brandName`): `Hanzo Team`
31
+ * on hanzo.team. Default `Hanzo AI`, hanzo.ai's.
32
+ */
29
33
  brand?: string;
30
34
  /** The publishable key anonymous calls carry. */
31
35
  key?: string;
32
36
  /** The plan catalogue as the host's build last read it: the first paint. */
33
37
  plans?: BillingPlan[];
34
- /**
35
- * The SDKs and frameworks Directory lists, which the host publishes. A loader,
36
- * so the catalogue — every guide's code, and the model counts it quotes — is
37
- * fetched when Directory's Apps tab opens, not on every page the rooms frame.
38
- */
39
- integrations?: () => Promise<Integration[]>;
40
38
  /**
41
39
  * The host's front door, for a workspace rooted at `/` (hanzo.team): what a
42
40
  * stranger at Home is shown instead of the sign-in, and the business sign-up
@@ -67,5 +65,7 @@ export interface Addresses {
67
65
  export declare function configure(given: Partial<Addresses>): void;
68
66
  /** The host's addresses, for code that runs outside a component. */
69
67
  export declare const where: () => Addresses;
68
+ /** The product's name, as the host states it. Read at call time, like every address. */
69
+ export declare const brand: () => string;
70
70
  /** A page of the app's own, from wherever the rooms are mounted. */
71
71
  export declare const site: (path: string) => string;
package/dist/where.js CHANGED
@@ -9,5 +9,7 @@ export function configure(given) {
9
9
  }
10
10
  /** The host's addresses, for code that runs outside a component. */
11
11
  export const where = () => addresses;
12
+ /** The product's name, as the host states it. Read at call time, like every address. */
13
+ export const brand = () => addresses.brand ?? 'Hanzo AI';
12
14
  /** A page of the app's own, from wherever the rooms are mounted. */
13
15
  export const site = (path) => `${addresses.site}${path}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/rooms",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
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",
@@ -26,10 +26,12 @@
26
26
  "types": "./dist/bots/*.d.ts",
27
27
  "import": "./dist/bots/*.js",
28
28
  "default": "./dist/bots/*.js"
29
- }
29
+ },
30
+ "./assets/*": "./assets/*"
30
31
  },
31
32
  "files": [
32
33
  "dist",
34
+ "assets",
33
35
  "LICENSE-APACHE",
34
36
  "LICENSE-MIT"
35
37
  ],