@pairz/team 1.0.0-rc.81 → 1.0.0-rc.82

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.
@@ -37,14 +37,18 @@ export const tiers = {
37
37
  undo: "Undo",
38
38
  onlyRunners: "Only {org}'s owners and admins change these. You can switch a chat's tier as you write.",
39
39
  onlyRunnersHere: "Only the org's owners and admins change these. You can switch a chat's tier as you write.",
40
+ onlyRunnersFixed: "Only the org's owners and admins change these, and every chat runs on the default.",
40
41
  tiersLabel: "Tiers",
41
42
  newTier: "New tier",
42
43
  newTierAbout: "Mix models your way: one for deciding, another for checking.",
43
44
  takenAway: "Taken away:",
44
45
  addBackTier: "Add back {tier}",
45
- capLabel: "Members can choose up to",
46
- capAny: "Any tier",
46
+ capLabel: "Members can use",
47
+ capAll: "All tiers",
48
+ capUpTo: "Up to {tier}",
49
+ capDefault: "Only the default",
47
50
  capNote: "Owners and admins can always use any of them.",
51
+ capDefaultNote: "Every chat runs on the default: nobody switches a chat's or a space's tier.",
48
52
  noCredits: "{plan} gives this org no credits.",
49
53
  noCreditsMore: "Choose a plan or add credits for your agents to start working.",
50
54
  billing: "Billing",
@@ -59,6 +63,8 @@ export const tiers = {
59
63
  tierMore: "{tier}: more",
60
64
  customize: "Customize…",
61
65
  duplicate: "Duplicate…",
66
+ moveBefore: "Move before {tier}",
67
+ moveAfter: "Move after {tier}",
62
68
  copyOf: "{tier} copy",
63
69
  backToOriginal: "Back to the original",
64
70
  deleteTier: "Delete",
@@ -91,6 +97,7 @@ export const tiers = {
91
97
  add: "Add",
92
98
  addKind: "Add a kind of work",
93
99
  fallbacks: "If it fails, then",
100
+ tryFirst: "Try it first",
94
101
  moveUp: "Move up",
95
102
  moveDown: "Move down",
96
103
  remove: "Remove",
@@ -4,7 +4,8 @@
4
4
  * - Above its agents (kind `tiers.space`, item `{ _id }`, the space): the
5
5
  * tier new chats here start on, and for its managers a choice of every
6
6
  * tier, each with what a typical message comes to, or the org's default
7
- * again. Anyone still switches a chat's own as they write.
7
+ * again. Anyone still switches a chat's own as they write; where the org
8
+ * uses only its default, nobody does, and there's nothing to choose.
8
9
  * - On each agent (kind `tiers.agent`, item `{ _id }`, the agent): its model
9
10
  * here, its kind of work and the tier ("Claude Haiku 5.5 · Checks · on
10
11
  * Everyday"). Models are the tiers', by kind of work: none is picked here.
@@ -5,7 +5,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * - Above its agents (kind `tiers.space`, item `{ _id }`, the space): the
6
6
  * tier new chats here start on, and for its managers a choice of every
7
7
  * tier, each with what a typical message comes to, or the org's default
8
- * again. Anyone still switches a chat's own as they write.
8
+ * again. Anyone still switches a chat's own as they write; where the org
9
+ * uses only its default, nobody does, and there's nothing to choose.
9
10
  * - On each agent (kind `tiers.agent`, item `{ _id }`, the agent): its model
10
11
  * here, its kind of work and the tier ("Claude Haiku 5.5 · Checks · on
11
12
  * Everyday"). Models are the tiers', by kind of work: none is picked here.
@@ -32,8 +33,9 @@ export function SpaceTier({ shown, space, manage, call }) {
32
33
  const [error, setError] = useState();
33
34
  const title = (name) => shown.tiers.find((t) => t.name === name)?.title;
34
35
  const above = shown.org.tier ?? shown.plan ?? shown.tiers[0]?.name;
35
- const here = shown.space?.tier ?? above;
36
- const said = shown.space?.tier
36
+ const fixed = shown.org.fixed;
37
+ const here = fixed ? above : shown.space?.tier ?? above;
38
+ const said = shown.space?.tier && !fixed
37
39
  ? say("spaceChosen", { tier: title(above) ?? "" })
38
40
  : say("spaceAsOrg");
39
41
  const choose = async (tier) => {
@@ -49,7 +51,9 @@ export function SpaceTier({ shown, space, manage, call }) {
49
51
  setBusy(false);
50
52
  }
51
53
  };
52
- return (_jsxs("div", { className: "tiers-space", "aria-busy": busy || undefined, children: [_jsx("span", { className: "tiers-space-mark", "aria-hidden": "true", children: _jsx(Icon, { name: "sparkles", size: 16 }) }), _jsxs("div", { className: "tiers-space-text", children: [_jsx("b", { children: say("spaceStartsOn", { tier: title(here) ?? "" }) }), _jsxs("span", { children: [said, " ", say("spaceSwitch"), " ", manage ? "" : say("spaceManagers")] })] }), manage
54
+ return (_jsxs("div", { className: "tiers-space", "aria-busy": busy || undefined, children: [_jsx("span", { className: "tiers-space-mark", "aria-hidden": "true", children: _jsx(Icon, { name: "sparkles", size: 16 }) }), _jsxs("div", { className: "tiers-space-text", children: [_jsx("b", { children: say("spaceStartsOn", { tier: title(here) ?? "" }) }), _jsx("span", { children: fixed
55
+ ? _jsxs(_Fragment, { children: [said, " ", say("capDefaultNote")] })
56
+ : _jsxs(_Fragment, { children: [said, " ", say("spaceSwitch"), " ", manage ? "" : say("spaceManagers")] }) })] }), manage && !fixed
53
57
  ? (_jsxs(Select, { size: "sm", "aria-label": say("spaceSelect"), value: shown.space?.tier ?? "", disabled: busy, onChange: (event) => void choose(event.target.value), children: [_jsx("option", { value: "", children: say("asOrg", { tier: title(above) ?? "" }) }), shown.tiers.map((tier) => {
54
58
  const price = perReply(tier.price);
55
59
  return (_jsxs("option", { value: tier.name, children: [tier.title, price ? ` · ${price} ${unitSaid(shown.per)}` : ""] }, tier.name));
@@ -4,4 +4,4 @@
4
4
  * agent's model in rows, the line a space's agents get, and the space's own
5
5
  * choice above them. Only layout: the pieces are the toolkit's.
6
6
  */
7
- export declare const STYLE = "\n.tiers { container: tiers / inline-size; display: grid; gap: 16px; min-width: 0; }\n.tiers-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }\n.tiers-now p { margin: 0; color: var(--secondary-foreground); font-size: 14.5px; line-height: 1.5; }\n.tiers-now b { color: var(--foreground); font-weight: 650; }\n.tiers-now .pairz-button { flex: none; }\n\n/* The tiers, as cards */\n.tiers-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; margin: 0; padding: 0;\n list-style: none; }\n.tier-card { display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 10px; min-width: 0; padding: 16px 16px 14px;\n transition: border-color .15s, outline-color .15s; }\n.tier-card[data-current] { border-color: var(--ring); outline: 1px solid var(--ring); outline-offset: -2px; }\n.tier-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 22px; }\n.tier-card h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 660; letter-spacing: -.012em; }\n.tier-card-top .pairz-badge { gap: 4px; }\n.tier-card-for { margin: -4px 0 0; color: var(--secondary-foreground); font-size: 13.5px; line-height: 1.45; }\n.tier-card-price { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n.tier-card-price b { color: var(--foreground); font-family: var(--font-display); font-size: 21px; font-weight: 660;\n letter-spacing: -.015em; font-variant-numeric: tabular-nums; }\n.tier-card-goes { margin: -6px 0 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.4; }\n.tier-card-goes:empty { margin-top: -10px; }\n.tier-card-agents { display: grid; align-content: start; gap: 7px; margin: 0; padding: 10px 0 2px; border-top: 1px solid var(--border);\n list-style: none; }\n.tier-card-agents li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 13px;\n line-height: 1.35; }\n.tier-who { display: flex; align-items: baseline; gap: 5px; min-width: 0; overflow: hidden; color: var(--muted-foreground);\n white-space: nowrap; text-overflow: ellipsis; }\n.tier-model { display: grid; min-width: 0; color: var(--foreground); font-weight: 560; overflow-wrap: anywhere; }\n.tier-model small { color: var(--muted-foreground); font-size: 12px; font-weight: 450; }\n.tier-card-end { display: grid; margin-top: 2px; }\n.tier-card-using { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin: 0;\n border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-text); font-size: 13.5px; font-weight: 600; }\n\n.tier-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }\n.tier-card-badges .pairz-badge { gap: 4px; }\n.tier-model small { display: block; }\n.tier-new { display: grid; min-height: 160px; }\n.tier-new-button { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 18px; border: 1.5px dashed var(--border);\n border-radius: var(--radius-xl); background: transparent; color: var(--muted-foreground); font: inherit; text-align: center;\n cursor: pointer; transition: border-color .12s, color .12s; }\n.tier-new-button:hover, .tier-new-button:focus-visible { border-color: var(--ring); color: var(--foreground); }\n.tier-new-button b { color: var(--foreground); font-size: 15px; font-weight: 650; }\n.tier-new-button span { max-width: 22ch; font-size: 12.5px; line-height: 1.45; }\n.tiers-removed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0; color: var(--muted-foreground);\n font-size: 13px; }\n.tiers-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--secondary-foreground); font-size: 13.5px; }\n.tiers-cap > .pairz-select { width: auto; min-width: 160px; }\n.tiers-cap span { color: var(--muted-foreground); font-size: 12.5px; }\n\n/* Customizing a tier */\n.tiers-editor { display: grid; gap: 16px; min-width: 0; }\n.tiers-editor-names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }\n.tiers-editor-error { margin-inline-end: auto; align-self: center; color: var(--destructive-text, var(--destructive)); font-size: 13px; }\n.tiers-kinds { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }\n.tiers-kind { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); }\n.tiers-kind-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }\n.tiers-kind-head b { font-size: 14.5px; font-weight: 650; }\n.tiers-kind-head span { color: var(--muted-foreground); font-size: 12.5px; }\n.tiers-chain { display: grid; gap: 6px; min-width: 0; }\n.tiers-kind-new { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 12px 14px;\n border: 1px dashed var(--border); border-radius: var(--radius-lg); }\n.tiers-kind-new-end { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }\n@container tiers (max-width: 520px) {\n .tiers-editor-names, .tiers-kind-new { grid-template-columns: minmax(0, 1fr); }\n}\n\n/* Beside the send button */\n.tiers-pick { display: inline-flex; flex: 0 1 auto; min-width: 0; max-width: 100%; }\n.tiers-pick .pairz-button { min-width: 0; max-width: 100%; color: var(--muted-foreground); font-weight: 550; }\n.tiers-pick .pairz-button > svg, .tiers-pick .pairz-button > .pairz-icon { flex: none; }\n/* Never wider than the row leaves it: the name shortens with an ellipsis, the send button stays. */\n.tiers-pick-text { display: flex; min-width: 0; overflow: hidden; }\n.tiers-pick-name, .tiers-pick-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tiers-pick-name { flex: 0 1 auto; min-width: 2ch; }\n.tiers-pick-price { flex: 0 100 auto; min-width: 0; }\n/* A narrow composer (a phone, a side panel), by its own width (chat's `chat-box` container): the name only. */\n@container chat-box (max-width: 520px) {\n .tiers-pick-price { display: none; }\n}\n.tiers-remove-said { margin: 0; color: var(--secondary-foreground); font-size: 14px; line-height: 1.5; }\n.tiers-row-kind { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: var(--radius-full);\n background: var(--muted); color: var(--secondary-foreground); font-size: 11.5px; font-weight: 600; }\n\n/* Each agent's model */\n.tiers-agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 18px 8px; }\n.tiers-agents-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }\n.tiers-agents-head h3 { margin: 0; font-size: 15px; font-weight: 650; }\n.tiers-agents-head p { margin: 3px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }\n.tiers-agents-actions { display: flex; flex-wrap: wrap; gap: 6px; }\n.tiers-rows { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }\n.tiers-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 0; }\n.tiers-row + .tiers-row { border-top: 1px solid var(--border); }\n.tiers-row-text { display: grid; gap: 2px; min-width: 0; }\n.tiers-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-size: 14px; font-weight: 620; }\n.tiers-row-handle { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 12px; font-weight: 450; }\n.tiers-row-about { margin: 0; overflow: hidden; color: var(--muted-foreground); font-size: 13px; line-height: 1.45;\n text-overflow: ellipsis; white-space: nowrap; }\n.tiers-row-end { display: flex; align-items: center; gap: 6px; }\n.tiers-off { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }\n.tiers-off h4 { margin: 0; color: var(--muted-foreground); font-size: 12px; font-weight: 650; letter-spacing: .05em;\n text-transform: uppercase; }\n.tiers-off-row { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--secondary-foreground); font-size: 13.5px; }\n.tiers-off-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tiers-row-model { margin: 0; color: var(--secondary-foreground); font-size: 13px; line-height: 1.45; }\n.tiers-row-model b { color: var(--foreground); font-weight: 600; }\n.tiers-row-from[data-picked] { color: var(--primary-text); }\n.tiers-row-price { color: var(--muted-foreground); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }\n.tiers-row[data-editing] { grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; }\n.tiers-row[data-editing] > .pairz-avatar { margin-top: 2px; }\n.tiers-row-pick { display: grid; gap: 6px; min-width: 0; }\n.tiers-row-under { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted-foreground); font-size: 12.5px; }\n.tiers-back { height: auto; padding: 0; font-size: 12.5px; }\n.tiers-row-then { margin: 1px 0 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-fallbacks { display: grid; gap: 4px; margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--border);\n border-radius: var(--radius-md); }\n.tiers-fallbacks-head { margin: 0; color: var(--secondary-foreground); font-size: 12.5px; font-weight: 600; }\n.tiers-fallbacks-head span { color: var(--muted-foreground); font-weight: 450; }\n.tiers-fallbacks-list { display: grid; gap: 2px; margin: 0; padding: 0 0 0 18px; font-size: 13px; }\n.tiers-fallbacks-list li { padding-left: 2px; }\n.tiers-fallback-name { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; margin-right: 4px; }\n.tiers-fallback-name b { font-weight: 600; }\n.tiers-fallback-name small { color: var(--muted-foreground); font-size: 12px; }\n.tiers-fallbacks-none { margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n\n.tiers-foot { display: flex; align-items: flex-start; gap: 7px; margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; }\n.tiers-foot .pairz-icon { flex: none; margin-top: 2px; }\n.tiers-foot a { color: var(--primary-text); text-underline-offset: 3px; }\n\n/* Choosing a tier when the org is new: one choice, a row each */\n.tiers-setup { container: tiers-setup / inline-size; display: grid; gap: 12px; min-width: 0; }\n.tiers-options { display: grid; gap: 8px; }\n.tiers-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%;\n padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);\n color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background-color .12s; }\n.tiers-option:hover { border-color: var(--ring); }\n.tiers-option:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }\n.tiers-option[data-checked] { border-color: var(--ring); outline: 1px solid var(--ring); outline-offset: -2px;\n background: color-mix(in oklab, var(--primary-soft) 40%, var(--card)); }\n.tiers-option[aria-disabled] { cursor: default; }\n.tiers-option-mark { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--input);\n border-radius: var(--radius-full); color: var(--primary-foreground); }\n.tiers-option[data-checked] .tiers-option-mark { border-color: var(--primary); background: var(--primary); }\n.tiers-option[aria-busy] .tiers-option-mark { border-color: transparent; color: var(--primary-text); }\n.tiers-option-text { display: grid; gap: 3px; min-width: 0; }\n.tiers-option-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--font-display);\n font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }\n.tiers-option-for { color: var(--secondary-foreground); font-size: 13.5px; line-height: 1.45; }\n.tiers-option-goes { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-option-price { display: grid; justify-items: end; gap: 1px; min-width: 76px; color: var(--muted-foreground); font-size: 12px;\n white-space: nowrap; }\n.tiers-option-price b { color: var(--foreground); font-family: var(--font-display); font-size: 19px; font-weight: 660;\n letter-spacing: -.015em; font-variant-numeric: tabular-nums; }\n.tiers-option-meter { display: block; width: 64px; height: 4px; margin-top: 6px; border-radius: var(--radius-full);\n background: var(--muted); overflow: hidden; }\n.tiers-option-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }\n@container tiers-setup (max-width: 420px) {\n .tiers-option { grid-template-columns: 22px minmax(0, 1fr); }\n .tiers-option-price { grid-column: 2; justify-items: start; }\n}\n\n/* A space's agents: its choice, and each one's line */\n.tiers-space { container: tiers-space / inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;\n padding: 12px 12px 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }\n.tiers-space-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--primary-soft); color: var(--primary-text); }\n.tiers-space-text { flex: 1 1 200px; display: grid; gap: 1px; min-width: 0; }\n.tiers-space-text b { font-size: 14px; font-weight: 620; }\n.tiers-space-text span { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-space > .pairz-select { flex: 1 1 210px; max-width: 280px; }\n.tiers-space-error { flex-basis: 100%; margin: 0; color: var(--destructive-text, var(--destructive)); font-size: 12.5px; }\n.tiers-line { min-width: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-line b { color: var(--secondary-foreground); font-weight: 600; }\n.tiers-line[data-picked] .tiers-line-from { color: var(--primary-text); }\n\n@container tiers-space (max-width: 480px) {\n .tiers-space > .pairz-select { flex-basis: 100%; max-width: none; }\n}\n@container tiers (max-width: 520px) {\n .tiers-agents { padding: 14px 14px 6px; }\n .tiers-row { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }\n .tiers-row > .pairz-avatar { margin-top: 2px; }\n .tiers-row-price { grid-column: 2; }\n}\n";
7
+ export declare const STYLE = "\n.tiers { container: tiers / inline-size; display: grid; gap: 16px; min-width: 0; }\n.tiers-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }\n.tiers-now p { margin: 0; color: var(--secondary-foreground); font-size: 14.5px; line-height: 1.5; }\n.tiers-now b { color: var(--foreground); font-weight: 650; }\n.tiers-now .pairz-button { flex: none; }\n\n/* The tiers, as cards */\n.tiers-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; margin: 0; padding: 0;\n list-style: none; }\n.tier-card { display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 10px; min-width: 0; padding: 16px 16px 14px;\n transition: border-color .15s, outline-color .15s; }\n.tier-card[data-current] { border-color: var(--ring); outline: 1px solid var(--ring); outline-offset: -2px; }\n.tier-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 22px; }\n.tier-card h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 660; letter-spacing: -.012em; }\n.tier-card-top .pairz-badge { gap: 4px; }\n.tier-card-for { margin: -4px 0 0; color: var(--secondary-foreground); font-size: 13.5px; line-height: 1.45; }\n.tier-card-price { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n.tier-card-price b { color: var(--foreground); font-family: var(--font-display); font-size: 21px; font-weight: 660;\n letter-spacing: -.015em; font-variant-numeric: tabular-nums; }\n.tier-card-goes { margin: -6px 0 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.4; }\n.tier-card-goes:empty { margin-top: -10px; }\n.tier-card-agents { display: grid; align-content: start; gap: 7px; margin: 0; padding: 10px 0 2px; border-top: 1px solid var(--border);\n list-style: none; }\n.tier-card-agents li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 13px;\n line-height: 1.35; }\n.tier-who { display: flex; align-items: baseline; gap: 5px; min-width: 0; overflow: hidden; color: var(--muted-foreground);\n white-space: nowrap; text-overflow: ellipsis; }\n.tier-model { display: grid; min-width: 0; color: var(--foreground); font-weight: 560; overflow-wrap: anywhere; }\n.tier-model small { color: var(--muted-foreground); font-size: 12px; font-weight: 450; }\n.tier-card-end { display: grid; margin-top: 2px; }\n.tier-card-using { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin: 0;\n border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-text); font-size: 13.5px; font-weight: 600; }\n\n.tier-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }\n.tier-card-badges .pairz-badge { gap: 4px; }\n.tier-model small { display: block; }\n.tier-new { display: grid; min-height: 160px; }\n.tier-new-button { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 18px; border: 1.5px dashed var(--border);\n border-radius: var(--radius-xl); background: transparent; color: var(--muted-foreground); font: inherit; text-align: center;\n cursor: pointer; transition: border-color .12s, color .12s; }\n.tier-new-button:hover, .tier-new-button:focus-visible { border-color: var(--ring); color: var(--foreground); }\n.tier-new-button b { color: var(--foreground); font-size: 15px; font-weight: 650; }\n.tier-new-button span { max-width: 22ch; font-size: 12.5px; line-height: 1.45; }\n.tiers-removed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0; color: var(--muted-foreground);\n font-size: 13px; }\n.tiers-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--secondary-foreground); font-size: 13.5px; }\n.tiers-cap > .pairz-select { width: auto; min-width: 160px; }\n.tiers-cap span { color: var(--muted-foreground); font-size: 12.5px; }\n\n/* Customizing a tier */\n.tiers-editor { display: grid; gap: 16px; min-width: 0; }\n.tiers-editor-names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }\n.tiers-editor-error { margin-inline-end: auto; align-self: center; color: var(--destructive-text, var(--destructive)); font-size: 13px; }\n.tiers-kinds { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }\n.tiers-kind { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); }\n.tiers-kind-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }\n.tiers-kind-head b { font-size: 14.5px; font-weight: 650; }\n.tiers-kind-head span { color: var(--muted-foreground); font-size: 12.5px; }\n.tiers-chain { display: grid; gap: 6px; min-width: 0; }\n.tiers-kind-new { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 12px 14px;\n border: 1px dashed var(--border); border-radius: var(--radius-lg); }\n.tiers-kind-new-end { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }\n@container tiers (max-width: 520px) {\n .tiers-editor-names, .tiers-kind-new { grid-template-columns: minmax(0, 1fr); }\n}\n\n/* Beside the send button */\n.tiers-pick { display: inline-flex; flex: 0 1 auto; min-width: 0; max-width: 100%; }\n.tiers-pick .pairz-button { min-width: 0; max-width: 100%; color: var(--muted-foreground); font-weight: 550; }\n.tiers-pick .pairz-button > svg, .tiers-pick .pairz-button > .pairz-icon { flex: none; }\n/* Never wider than the row leaves it: the name shortens with an ellipsis, the send button stays. */\n.tiers-pick-text { display: flex; min-width: 0; overflow: hidden; }\n.tiers-pick-name, .tiers-pick-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tiers-pick-name { flex: 0 1 auto; min-width: 2ch; }\n.tiers-pick-price { flex: 0 100 auto; min-width: 0; }\n/* Only the default: said, not a button. */\n.tiers-pick[data-fixed] { align-items: center; padding: 0 8px; color: var(--muted-foreground); font-size: 13px; font-weight: 550; }\n/* A narrow composer (a phone, a side panel), by its own width (chat's `chat-box` container): the name only. */\n@container chat-box (max-width: 520px) {\n .tiers-pick-price { display: none; }\n}\n.tiers-remove-said { margin: 0; color: var(--secondary-foreground); font-size: 14px; line-height: 1.5; }\n.tiers-row-kind { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: var(--radius-full);\n background: var(--muted); color: var(--secondary-foreground); font-size: 11.5px; font-weight: 600; }\n\n/* Each agent's model */\n.tiers-agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 18px 8px; }\n.tiers-agents-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }\n.tiers-agents-head h3 { margin: 0; font-size: 15px; font-weight: 650; }\n.tiers-agents-head p { margin: 3px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }\n.tiers-agents-actions { display: flex; flex-wrap: wrap; gap: 6px; }\n.tiers-rows { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }\n.tiers-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 0; }\n.tiers-row + .tiers-row { border-top: 1px solid var(--border); }\n.tiers-row-text { display: grid; gap: 2px; min-width: 0; }\n.tiers-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-size: 14px; font-weight: 620; }\n.tiers-row-handle { color: var(--muted-foreground); font-family: var(--font-mono); font-size: 12px; font-weight: 450; }\n.tiers-row-about { margin: 0; overflow: hidden; color: var(--muted-foreground); font-size: 13px; line-height: 1.45;\n text-overflow: ellipsis; white-space: nowrap; }\n.tiers-row-end { display: flex; align-items: center; gap: 6px; }\n.tiers-off { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }\n.tiers-off h4 { margin: 0; color: var(--muted-foreground); font-size: 12px; font-weight: 650; letter-spacing: .05em;\n text-transform: uppercase; }\n.tiers-off-row { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--secondary-foreground); font-size: 13.5px; }\n.tiers-off-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tiers-row-model { margin: 0; color: var(--secondary-foreground); font-size: 13px; line-height: 1.45; }\n.tiers-row-model b { color: var(--foreground); font-weight: 600; }\n.tiers-row-from[data-picked] { color: var(--primary-text); }\n.tiers-row-price { color: var(--muted-foreground); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }\n.tiers-row[data-editing] { grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; }\n.tiers-row[data-editing] > .pairz-avatar { margin-top: 2px; }\n.tiers-row-pick { display: grid; gap: 6px; min-width: 0; }\n.tiers-row-under { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted-foreground); font-size: 12.5px; }\n.tiers-back { height: auto; padding: 0; font-size: 12.5px; }\n.tiers-row-then { margin: 1px 0 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-fallbacks { display: grid; gap: 4px; margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--border);\n border-radius: var(--radius-md); }\n.tiers-fallbacks-head { margin: 0; color: var(--secondary-foreground); font-size: 12.5px; font-weight: 600; }\n.tiers-fallbacks-head span { color: var(--muted-foreground); font-weight: 450; }\n.tiers-fallbacks-list { display: grid; gap: 2px; margin: 0; padding: 0 0 0 18px; font-size: 13px; }\n.tiers-fallbacks-list li { padding-left: 2px; }\n.tiers-fallback-name { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; margin-right: 4px; }\n.tiers-fallback-name b { font-weight: 600; }\n.tiers-fallback-name small { color: var(--muted-foreground); font-size: 12px; }\n.tiers-fallbacks-none { margin: 0; color: var(--muted-foreground); font-size: 12.5px; }\n\n.tiers-foot { display: flex; align-items: flex-start; gap: 7px; margin: 0 2px; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; }\n.tiers-foot .pairz-icon { flex: none; margin-top: 2px; }\n.tiers-foot a { color: var(--primary-text); text-underline-offset: 3px; }\n\n/* Choosing a tier when the org is new: one choice, a row each */\n.tiers-setup { container: tiers-setup / inline-size; display: grid; gap: 12px; min-width: 0; }\n.tiers-options { display: grid; gap: 8px; }\n.tiers-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%;\n padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);\n color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background-color .12s; }\n.tiers-option:hover { border-color: var(--ring); }\n.tiers-option:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }\n.tiers-option[data-checked] { border-color: var(--ring); outline: 1px solid var(--ring); outline-offset: -2px;\n background: color-mix(in oklab, var(--primary-soft) 40%, var(--card)); }\n.tiers-option[aria-disabled] { cursor: default; }\n.tiers-option-mark { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--input);\n border-radius: var(--radius-full); color: var(--primary-foreground); }\n.tiers-option[data-checked] .tiers-option-mark { border-color: var(--primary); background: var(--primary); }\n.tiers-option[aria-busy] .tiers-option-mark { border-color: transparent; color: var(--primary-text); }\n.tiers-option-text { display: grid; gap: 3px; min-width: 0; }\n.tiers-option-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--font-display);\n font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }\n.tiers-option-for { color: var(--secondary-foreground); font-size: 13.5px; line-height: 1.45; }\n.tiers-option-goes { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-option-price { display: grid; justify-items: end; gap: 1px; min-width: 76px; color: var(--muted-foreground); font-size: 12px;\n white-space: nowrap; }\n.tiers-option-price b { color: var(--foreground); font-family: var(--font-display); font-size: 19px; font-weight: 660;\n letter-spacing: -.015em; font-variant-numeric: tabular-nums; }\n.tiers-option-meter { display: block; width: 64px; height: 4px; margin-top: 6px; border-radius: var(--radius-full);\n background: var(--muted); overflow: hidden; }\n.tiers-option-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }\n@container tiers-setup (max-width: 420px) {\n .tiers-option { grid-template-columns: 22px minmax(0, 1fr); }\n .tiers-option-price { grid-column: 2; justify-items: start; }\n}\n\n/* A space's agents: its choice, and each one's line */\n.tiers-space { container: tiers-space / inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;\n padding: 12px 12px 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }\n.tiers-space-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md);\n background: var(--primary-soft); color: var(--primary-text); }\n.tiers-space-text { flex: 1 1 200px; display: grid; gap: 1px; min-width: 0; }\n.tiers-space-text b { font-size: 14px; font-weight: 620; }\n.tiers-space-text span { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-space > .pairz-select { flex: 1 1 210px; max-width: 280px; }\n.tiers-space-error { flex-basis: 100%; margin: 0; color: var(--destructive-text, var(--destructive)); font-size: 12.5px; }\n.tiers-line { min-width: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.tiers-line b { color: var(--secondary-foreground); font-weight: 600; }\n.tiers-line[data-picked] .tiers-line-from { color: var(--primary-text); }\n\n@container tiers-space (max-width: 480px) {\n .tiers-space > .pairz-select { flex-basis: 100%; max-width: none; }\n}\n@container tiers (max-width: 520px) {\n .tiers-agents { padding: 14px 14px 6px; }\n .tiers-row { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }\n .tiers-row > .pairz-avatar { margin-top: 2px; }\n .tiers-row-price { grid-column: 2; }\n}\n";
@@ -80,6 +80,8 @@ export const STYLE = `
80
80
  .tiers-pick-name, .tiers-pick-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
81
81
  .tiers-pick-name { flex: 0 1 auto; min-width: 2ch; }
82
82
  .tiers-pick-price { flex: 0 100 auto; min-width: 0; }
83
+ /* Only the default: said, not a button. */
84
+ .tiers-pick[data-fixed] { align-items: center; padding: 0 8px; color: var(--muted-foreground); font-size: 13px; font-weight: 550; }
83
85
  /* A narrow composer (a phone, a side panel), by its own width (chat's \`chat-box\` container): the name only. */
84
86
  @container chat-box (max-width: 520px) {
85
87
  .tiers-pick-price { display: none; }
package/tiers/web.d.ts CHANGED
@@ -4,8 +4,9 @@
4
4
  * - **The org page's Agents section** (the web shell's `orgSettings`, at
5
5
  * `/org?tab=models`): the tiers as cards, each with what a typical message
6
6
  * comes to and each kind of work's model; making one the default,
7
- * customizing one (each kind's model and fallbacks), making new ones,
8
- * taking them away, the members' cap; and the org's team under them.
7
+ * customizing one (each kind's models, in the order they're tried, any of
8
+ * them first), making new ones, putting them in order, taking them away,
9
+ * what members can use; and the org's team under them.
9
10
  * - **Beside the send button** (chat's `composerControls`): the tier a chat
10
11
  * runs on, to switch it there, or on home the person's default.
11
12
  * - **On a space's Members tab** (spaces' `spaceAgents`): the tier new chats
@@ -16,10 +17,10 @@
16
17
  * - **For team's front end** (`agentKinds`): where to read the kinds of work,
17
18
  * so making an agent asks for its kind instead of a model.
18
19
  * - **For computers' front end** (`planList`): the plans Your AI shows, from
19
- * `modelChoice.harnesses` in the person's order, and saving their order
20
- * with `tiers.harnesses`.
20
+ * `modelChoice.harnesses`, in the plans' order.
21
21
  *
22
- * Models are chosen with team's picker (`model.pick`). Add it beside them:
22
+ * Models are chosen with team's picker (`model.pick`, with `plans`: each
23
+ * model saying how it's paid for). Add it beside them:
23
24
  *
24
25
  * ```ts
25
26
  * await web({ plugins: [webShell, chatWeb, spacesWeb, teamWeb, tiersWeb], root });
package/tiers/web.js CHANGED
@@ -4,8 +4,9 @@
4
4
  * - **The org page's Agents section** (the web shell's `orgSettings`, at
5
5
  * `/org?tab=models`): the tiers as cards, each with what a typical message
6
6
  * comes to and each kind of work's model; making one the default,
7
- * customizing one (each kind's model and fallbacks), making new ones,
8
- * taking them away, the members' cap; and the org's team under them.
7
+ * customizing one (each kind's models, in the order they're tried, any of
8
+ * them first), making new ones, putting them in order, taking them away,
9
+ * what members can use; and the org's team under them.
9
10
  * - **Beside the send button** (chat's `composerControls`): the tier a chat
10
11
  * runs on, to switch it there, or on home the person's default.
11
12
  * - **On a space's Members tab** (spaces' `spaceAgents`): the tier new chats
@@ -16,10 +17,10 @@
16
17
  * - **For team's front end** (`agentKinds`): where to read the kinds of work,
17
18
  * so making an agent asks for its kind instead of a model.
18
19
  * - **For computers' front end** (`planList`): the plans Your AI shows, from
19
- * `modelChoice.harnesses` in the person's order, and saving their order
20
- * with `tiers.harnesses`.
20
+ * `modelChoice.harnesses`, in the plans' order.
21
21
  *
22
- * Models are chosen with team's picker (`model.pick`). Add it beside them:
22
+ * Models are chosen with team's picker (`model.pick`, with `plans`: each
23
+ * model saying how it's paid for). Add it beside them:
23
24
  *
24
25
  * ```ts
25
26
  * await web({ plugins: [webShell, chatWeb, spacesWeb, teamWeb, tiersWeb], root });
@@ -47,14 +48,14 @@ export const tiersWeb = definePlugin({
47
48
  view: "tiers.org",
48
49
  icon: "sparkles",
49
50
  order: 22,
50
- roles: ["owner", "admin", "member"],
51
+ roles: ["owner", "admin", "finance", "member"],
51
52
  },
52
53
  },
53
54
  spaceAgents: { tiers: { view: "tiers.space", row: "tiers.agent", order: 10 } },
54
55
  composerControls: { tiers: { view: "tiers.composer", order: 10 } },
55
56
  agentKinds: { query: "modelChoice.offered" },
56
- // Your AI's plans: the app's, in the person's order, and saving their order (computers' front end).
57
- planList: { query: "modelChoice.harnesses", order: "tiers.harnesses" },
57
+ // Your AI's plans: those the app's tiers run on, and the person's (computers' front end).
58
+ planList: { query: "modelChoice.harnesses" },
58
59
  // Chat's welcome, for who runs the org: choosing its tier as they start.
59
60
  welcome: {
60
61
  tiers: {