@pairz/team 1.0.0-rc.82 → 1.0.0-rc.84
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/README.md +7 -3
- package/WORDS.md +8 -0
- package/package.json +2 -2
- package/team/actions/agent.js +12 -4
- package/team/collections/agent.d.ts +70 -15
- package/team/collections/agent.js +29 -7
- package/team/shared/definition.d.ts +15 -0
- package/team/shared/definition.js +17 -1
- package/team/views/web/words.d.ts +1 -1
- package/tiers/actions/choose.d.ts +47 -0
- package/tiers/actions/choose.js +74 -9
- package/tiers/actions/model.js +9 -5
- package/tiers/collections/choice.d.ts +10 -0
- package/tiers/collections/choice.js +10 -2
- package/tiers/collections/template.d.ts +5 -0
- package/tiers/collections/template.js +5 -2
- package/tiers/contract.d.ts +2 -2
- package/tiers/mod.d.ts +12 -7
- package/tiers/mod.js +20 -9
- package/tiers/shared/plans.d.ts +7 -5
- package/tiers/shared/plans.js +8 -6
- package/tiers/shared/shown.d.ts +14 -3
- package/tiers/shared/shown.js +36 -12
- package/tiers/shared/tiers.d.ts +27 -1
- package/tiers/shared/tiers.js +18 -1
- package/tiers/views/web/org.d.ts +29 -2
- package/tiers/views/web/org.js +85 -47
- package/tiers/views/web/say.d.ts +9 -1
- package/tiers/views/web/say.js +8 -0
- package/tiers/views/web/style.d.ts +1 -1
- package/tiers/views/web/style.js +3 -0
package/tiers/views/web/org.js
CHANGED
|
@@ -13,15 +13,18 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
13
13
|
* the org can run, each saying how it's paid for), duplicate one into a
|
|
14
14
|
* new tier, make one from nothing, move one before or after another, take
|
|
15
15
|
* one away or put it back as it was, and say what members can use (all
|
|
16
|
-
* tiers, up to one, or only the default).
|
|
17
|
-
*
|
|
16
|
+
* tiers, up to one, or only the default). Where the app has plans, they
|
|
17
|
+
* say whether members' subscriptions are used whenever possible (off: the
|
|
18
|
+
* tier's order, model by model), and each tier's fallbacks on members'
|
|
19
|
+
* subscriptions. On a plan of credits given once, a heavier default says
|
|
20
|
+
* how much faster it spends them.
|
|
18
21
|
* - **The team** (team.tsx): the agents every space starts with.
|
|
19
22
|
*
|
|
20
23
|
* Anyone else reads it, and is told who changes it. Everything shown is a
|
|
21
24
|
* watched read (`modelChoice.offered`), so a change shows at once.
|
|
22
25
|
*/
|
|
23
26
|
import { useEffect, useState } from "react";
|
|
24
|
-
import { Badge, Button, Card, Dialog, EmptyState, Field, Icon, Input, LazyView, Menu, message, Notice, Select, Skeleton, } from "pairz/web";
|
|
27
|
+
import { Badge, Button, Card, Checkbox, Dialog, EmptyState, Field, Icon, Input, LazyView, Menu, message, Notice, Select, Skeleton, } from "pairz/web";
|
|
25
28
|
import { runs } from "pairz/plugins/interfaces/contract";
|
|
26
29
|
import { say } from "./say.js";
|
|
27
30
|
import { STYLE } from "./style.js";
|
|
@@ -95,7 +98,9 @@ export function OrgAgents({ shown, team, may, org, personal, call }) {
|
|
|
95
98
|
? (_jsx("li", { className: "tier-new", children: _jsxs("button", { type: "button", className: "tier-new-button", onClick: () => setEditing({ from: current, title: "" }), children: [_jsx(Icon, { name: "plus", size: 18 }), _jsx("b", { children: say("newTier") }), _jsx("span", { children: say("newTierAbout") })] }) }))
|
|
96
99
|
: null] }), may && shown.removed.length
|
|
97
100
|
? (_jsxs("p", { className: "tiers-removed", children: [_jsx("span", { children: say("takenAway") }), shown.removed.map((r) => (_jsx(Button, { size: "sm", variant: "ghost", icon: "plus", loading: busy === r.name, onClick: () => void act(r.name, () => call("tiers.restore", { tier: r.name })), children: say("addBackTier", { tier: r.title }) }, r.name)))] }))
|
|
98
|
-
: null, may ? _jsx(MembersUse, { shown: shown, busy: busy, act: act, call: call }) : null,
|
|
101
|
+
: null, may ? _jsx(MembersUse, { shown: shown, busy: busy, act: act, call: call }) : null, may && shown.org.plansFirst !== undefined
|
|
102
|
+
? _jsx(PlansFirst, { on: shown.org.plansFirst, busy: busy, act: act, call: call })
|
|
103
|
+
: null, _jsx(SpendNote, { shown: shown, tier: current }), _jsx(Team, { shown: shown, team: team, may: may, org: org, tier: current, call: call }), _jsxs("p", { className: "tiers-foot", children: [_jsx(Icon, { name: "info", size: 14 }), _jsxs("span", { children: [shown.per === "message" ? say("footMessage") : say("footReply"), " ", say.nodes("footPrices", { budget: _jsx("a", { href: "/org?tab=billing", children: say("budget") }) })] })] }), editing
|
|
99
104
|
? (_jsx(TierEditor, { shown: shown, team: team, editing: editing, members: !personal, call: call, onClose: () => setEditing(undefined) }))
|
|
100
105
|
: null] }));
|
|
101
106
|
}
|
|
@@ -119,6 +124,16 @@ function MembersUse({ shown, busy, act, call }) {
|
|
|
119
124
|
: { tier: next.startsWith("up:") ? next.slice(3) : null }));
|
|
120
125
|
return (_jsxs("div", { className: "tiers-cap", children: [_jsx("label", { htmlFor: "tiers-cap", children: say("capLabel") }), _jsxs(Select, { id: "tiers-cap", size: "sm", value: value, disabled: busy === "cap", onChange: (e) => void set(e.target.value), children: [_jsx("option", { value: "all", children: say("capAll") }), shown.tiers.slice(0, -1).map((t) => (_jsx("option", { value: `up:${t.name}`, children: say("capUpTo", { tier: t.title }) }, t.name))), _jsx("option", { value: "default", children: say("capDefault") })] }), _jsx("span", { children: shown.org.fixed ? say("capDefaultNote") : say("capNote") })] }));
|
|
121
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Whether members' subscriptions are used whenever possible
|
|
129
|
+
* (`tiers.plansFirst`): off, the tier's models in order, each on a member's
|
|
130
|
+
* subscription that runs it, else on credits; on, any model their
|
|
131
|
+
* subscriptions run before credits, then the tier's fallbacks, with what
|
|
132
|
+
* that may cost the team.
|
|
133
|
+
*/
|
|
134
|
+
function PlansFirst({ on, busy, act, call }) {
|
|
135
|
+
return (_jsxs("div", { className: "tiers-plans", children: [_jsx(Checkbox, { label: say("plansFirstLabel"), checked: on, disabled: busy === "plansFirst", onChange: (e) => void act("plansFirst", () => call("tiers.plansFirst", { on: e.currentTarget.checked })) }), _jsx("span", { children: on ? say("plansFirstOn") : say("plansFirstOff") }), on ? _jsx(Notice, { tone: "warning", icon: "info", children: say("plansFirstWarning") }) : null] }));
|
|
136
|
+
}
|
|
122
137
|
/**
|
|
123
138
|
* What the tier in use means for the plan's credits, when it's worth saying: a
|
|
124
139
|
* plan of credits given once (a trial's) spent faster than the cheapest tier
|
|
@@ -204,16 +219,18 @@ const chainOf = (model) => model ? [model.id, ...(model.fallbacks ?? []).map((f)
|
|
|
204
219
|
* falls back to (team's picker, `model.pick`, offering every model the org
|
|
205
220
|
* can run, each saying how it's paid for: `members`, for an org of others,
|
|
206
221
|
* that those without a model's plan fall back to the next), and adding a
|
|
207
|
-
* kind of work of the org's own
|
|
208
|
-
*
|
|
222
|
+
* kind of work of the org's own; where the app has plans, the tier's
|
|
223
|
+
* fallbacks on members' subscriptions. Saved at once (`tiers.save`): only
|
|
224
|
+
* what changed.
|
|
209
225
|
*/
|
|
210
|
-
function TierEditor({ shown, team, editing, members, call, onClose }) {
|
|
226
|
+
export function TierEditor({ shown, team, editing, members, call, onClose }) {
|
|
211
227
|
const tier = editing.name ? shown.tiers.find((t) => t.name === editing.name) : undefined;
|
|
212
228
|
const base = tier ?? shown.tiers.find((t) => t.name === editing.from) ?? shown.tiers[0];
|
|
213
229
|
const making = !tier;
|
|
214
230
|
const [title, setTitle] = useState(tier?.title ?? editing.title ?? "");
|
|
215
231
|
const [description, setDescription] = useState(tier?.description ?? "");
|
|
216
232
|
const [chains, setChains] = useState({});
|
|
233
|
+
const [fallbacks, setFallbacks] = useState();
|
|
217
234
|
const [busy, setBusy] = useState(false);
|
|
218
235
|
const [error, setError] = useState();
|
|
219
236
|
const [adding, setAdding] = useState();
|
|
@@ -226,6 +243,8 @@ function TierEditor({ shown, team, editing, members, call, onClose }) {
|
|
|
226
243
|
for (const f of k.model.fallbacks ?? [])
|
|
227
244
|
known.set(f.id, f.name);
|
|
228
245
|
}
|
|
246
|
+
for (const f of t.fallbacks ?? [])
|
|
247
|
+
known.set(f.id, f.name);
|
|
229
248
|
}
|
|
230
249
|
const nameOf = (id) => known.get(id) ?? names[id] ?? id.slice(id.indexOf("/") + 1);
|
|
231
250
|
const chainFor = (kind) => chains[kind] ?? chainOf(base?.kinds.find((k) => k.kind === kind)?.model);
|
|
@@ -245,6 +264,7 @@ function TierEditor({ shown, team, editing, members, call, onClose }) {
|
|
|
245
264
|
? { description: description.trim() }
|
|
246
265
|
: {}),
|
|
247
266
|
...(Object.keys(chains).length ? { kinds: chains } : {}),
|
|
267
|
+
...(fallbacks ? { fallbacks } : {}),
|
|
248
268
|
});
|
|
249
269
|
onClose();
|
|
250
270
|
}
|
|
@@ -278,51 +298,69 @@ function TierEditor({ shown, team, editing, members, call, onClose }) {
|
|
|
278
298
|
return (_jsxs("li", { className: "tiers-kind", children: [_jsxs("div", { className: "tiers-kind-head", children: [_jsx("b", { children: kind.title }), _jsx("span", { children: who.length ? who.join(", ") : say("nobodyYet") }), chains[kind.kind]
|
|
279
299
|
? _jsx(Badge, { variant: "outline", children: say("badgeChanged") })
|
|
280
300
|
: null] }), _jsx(ChainEditor, { chain: chain, members: members, nameOf: nameOf, onName: (id, name) => setNames((had) => ({ ...had, [id]: name })), onChange: (next) => set(kind.kind, next) })] }, kind.kind));
|
|
281
|
-
}) }),
|
|
301
|
+
}) }), shown.org.plansFirst !== undefined
|
|
302
|
+
? (_jsxs("div", { className: "tiers-kind", children: [_jsxs("div", { className: "tiers-kind-head", children: [_jsx("b", { children: say("planFallbacks") }), fallbacks ? _jsx(Badge, { variant: "outline", children: say("badgeChanged") }) : null] }), _jsx("p", { className: "tiers-kind-about", children: say("planFallbacksAbout") }), _jsx(ModelList, { list: fallbacks ?? base?.fallbacks?.map((f) => f.id) ?? [], from: 0, none: say("noPlanFallback"), add: say("addPlanFallback"), members: members, nameOf: nameOf, onName: (id, name) => setNames((had) => ({ ...had, [id]: name })), onChange: setFallbacks })] }))
|
|
303
|
+
: null, adding
|
|
282
304
|
? (_jsxs("div", { className: "tiers-kind-new", children: [_jsx(Field, { label: say("newKind"), children: (control) => (_jsx(Input, { ...control, value: adding.title, maxLength: 40, placeholder: say("newKindPlaceholder"), autoFocus: true, onChange: (e) => setAdding({ ...adding, title: e.target.value }) })) }), _jsx(Field, { label: say("startsFrom"), children: (control) => (_jsx(Select, { ...control, value: adding.base, onChange: (e) => setAdding({ ...adding, base: e.target.value }), children: appKinds.map((k) => _jsx("option", { value: k.kind, children: k.title }, k.kind)) })) }), _jsxs("div", { className: "tiers-kind-new-end", children: [_jsx(Button, { size: "sm", variant: "ghost", onClick: () => setAdding(undefined), children: say("cancel") }), _jsx(Button, { size: "sm", variant: "secondary", disabled: !adding.title.trim() || busy, onClick: () => void addKind(), children: say("add") })] })] }))
|
|
283
305
|
: (_jsx(Button, { size: "sm", variant: "ghost", icon: "plus", onClick: () => setAdding({ title: "", base: appKinds[0]?.kind ?? "" }), children: say("addKind") }))] }) }));
|
|
284
306
|
}
|
|
285
|
-
/**
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
307
|
+
/** A picker's hints that hand the model chosen to `onPick`, named until the page shows it. */
|
|
308
|
+
const picking = (members, onName, onPick) => ({
|
|
309
|
+
plans: members ? "members" : "mine",
|
|
310
|
+
onPick: (model) => {
|
|
311
|
+
onName(model, model.slice(model.indexOf("/") + 1));
|
|
312
|
+
onPick(model);
|
|
313
|
+
return Promise.resolve();
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
/** The most models a list holds: a chain's, or a tier's fallbacks. */
|
|
317
|
+
const MOST = 8;
|
|
318
|
+
/** A model chain, in the order it's tried: the model (team's picker), then its fallbacks. */
|
|
290
319
|
function ChainEditor({ chain, members, nameOf, onName, onChange }) {
|
|
291
320
|
const [first, ...rest] = chain;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
321
|
+
return (_jsxs("div", { className: "tiers-chain", children: [_jsx(LazyView, { kind: "model.pick", item: { value: first ?? "" }, hints: picking(members, onName, (model) => onChange([model, ...rest.filter((id) => id !== model)])), fallback: _jsx(Skeleton, { height: 54 }) }), _jsx(ModelList, { list: chain, from: 1, head: say("fallbacks"), none: say("noFallback"), add: say("addFallback"), members: members, nameOf: nameOf, onName: onName, onChange: onChange })] }));
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* A list's models from `from` on, in the order they're tried, each with Move
|
|
325
|
+
* up (a chain's first fallback up to the model's place: "Try it first"), Move
|
|
326
|
+
* down and Remove, and one more to add (team's picker).
|
|
327
|
+
*/
|
|
328
|
+
function ModelList({ list, from, head, none, add, members, nameOf, onName, onChange }) {
|
|
329
|
+
const shown = list.slice(from);
|
|
330
|
+
return (_jsxs("div", { className: "tiers-fallbacks", children: [head ? _jsx("p", { className: "tiers-fallbacks-head", children: head }) : null, shown.length
|
|
331
|
+
? (_jsx("ol", { className: "tiers-fallbacks-list", children: shown.map((id, i) => {
|
|
332
|
+
const at = from + i;
|
|
333
|
+
return (_jsxs("li", { children: [_jsxs("span", { className: "tiers-fallback-name", children: [_jsx("b", { children: nameOf(id) }), _jsx("small", { children: providerSaid(id) })] }), _jsx(Menu, { label: say("tierMore", { tier: nameOf(id) }), align: "end", items: [
|
|
334
|
+
...(at > 0
|
|
335
|
+
? [{
|
|
336
|
+
label: at === from ? say("tryFirst") : say("moveUp"),
|
|
337
|
+
onSelect: () => onChange(moved(list, at, at - 1)),
|
|
338
|
+
}]
|
|
339
|
+
: []),
|
|
340
|
+
...(at < list.length - 1
|
|
341
|
+
? [{
|
|
342
|
+
label: say("moveDown"),
|
|
343
|
+
onSelect: () => onChange(moved(list, at, at + 1)),
|
|
344
|
+
}]
|
|
345
|
+
: []),
|
|
346
|
+
{
|
|
347
|
+
label: say("remove"),
|
|
348
|
+
icon: "trash",
|
|
349
|
+
tone: "destructive",
|
|
350
|
+
onSelect: () => onChange(list.filter((_, j) => j !== at)),
|
|
351
|
+
},
|
|
352
|
+
] })] }, `${id}:${at}`));
|
|
353
|
+
}) }))
|
|
354
|
+
: _jsx("p", { className: "tiers-fallbacks-none", children: none }), _jsx(LazyView, { kind: "model.pick", item: { value: "" }, hints: {
|
|
355
|
+
...picking(members, onName, (model) => onChange([
|
|
356
|
+
...list.slice(0, from),
|
|
357
|
+
...shown.filter((id) => id !== model),
|
|
358
|
+
model,
|
|
359
|
+
])),
|
|
360
|
+
look: "link",
|
|
361
|
+
label: add,
|
|
362
|
+
disabled: list.length >= MOST,
|
|
363
|
+
}, fallback: null })] }));
|
|
326
364
|
}
|
|
327
365
|
/** What a model falls back to, each name once: "GPT-6 Luna, Claude Haiku 5.5". */
|
|
328
366
|
export function thenSaid(model) {
|
package/tiers/views/web/say.d.ts
CHANGED
|
@@ -51,6 +51,10 @@ export declare const tiers: {
|
|
|
51
51
|
capDefault: string;
|
|
52
52
|
capNote: string;
|
|
53
53
|
capDefaultNote: string;
|
|
54
|
+
plansFirstLabel: string;
|
|
55
|
+
plansFirstOff: string;
|
|
56
|
+
plansFirstOn: string;
|
|
57
|
+
plansFirstWarning: string;
|
|
54
58
|
noCredits: string;
|
|
55
59
|
noCreditsMore: string;
|
|
56
60
|
billing: string;
|
|
@@ -103,6 +107,10 @@ export declare const tiers: {
|
|
|
103
107
|
remove: string;
|
|
104
108
|
noFallback: string;
|
|
105
109
|
addFallback: string;
|
|
110
|
+
planFallbacks: string;
|
|
111
|
+
planFallbacksAbout: string;
|
|
112
|
+
noPlanFallback: string;
|
|
113
|
+
addPlanFallback: string;
|
|
106
114
|
teamTitle: string;
|
|
107
115
|
teamAbout: string;
|
|
108
116
|
teamAboutMine: string;
|
|
@@ -141,6 +149,6 @@ export declare const tiers: {
|
|
|
141
149
|
newChatsOn: string;
|
|
142
150
|
newChatsDefault: string;
|
|
143
151
|
};
|
|
144
|
-
export declare const say: import("pairz/web/words").Say<"
|
|
152
|
+
export declare const say: import("pairz/web/words").Say<"add" | "remove" | "name" | "then" | "cancel" | "edit" | "namePlaceholder" | "undo" | "save" | "billing" | "fallbacks" | "planFallbacks" | "budget" | "perMessage" | "perReply" | "messages" | "replies" | "creditsOnce" | "creditsSeat" | "creditsMonth" | "underTenth" | "effortNone" | "effortMinimal" | "effortLow" | "effortMedium" | "effortHigh" | "effortXhigh" | "effortMax" | "effortOther" | "providerChatgpt" | "byThread" | "byPerson" | "bySpace" | "byOrg" | "byPlan" | "emptyTitle" | "emptyBody" | "nowOrg" | "nowPlan" | "nowMore" | "backToPlan" | "doneSaid" | "onlyRunners" | "onlyRunnersHere" | "onlyRunnersFixed" | "tiersLabel" | "newTier" | "newTierAbout" | "takenAway" | "addBackTier" | "capLabel" | "capAll" | "capUpTo" | "capDefault" | "capNote" | "capDefaultNote" | "plansFirstLabel" | "plansFirstOff" | "plansFirstOn" | "plansFirstWarning" | "noCredits" | "noCreditsMore" | "faster" | "fasterGoes" | "changeAnyTime" | "footMessage" | "footReply" | "footPrices" | "tierMore" | "customize" | "duplicate" | "moveBefore" | "moveAfter" | "copyOf" | "backToOriginal" | "deleteTier" | "takeAway" | "badgeDefault" | "badgePlan" | "badgeYours" | "badgeChanged" | "pricedEach" | "tierModels" | "defaultForNew" | "makeDefault" | "newTierTitle" | "customizeTitle" | "newTierStarts" | "customizeAbout" | "createTier" | "forLabel" | "forPlaceholder" | "nobodyYet" | "newKind" | "newKindPlaceholder" | "startsFrom" | "addKind" | "tryFirst" | "moveUp" | "moveDown" | "noFallback" | "addFallback" | "planFallbacksAbout" | "noPlanFallback" | "addPlanFallback" | "teamTitle" | "teamAbout" | "teamAboutMine" | "addAgent" | "removeFromTeam" | "badgeOrgs" | "onTier" | "notOnTeam" | "addBack" | "addAgentTitle" | "addAgentAbout" | "addAgentAboutMine" | "removeTitle" | "removeSaid" | "removeSaidMine" | "removeDeletes" | "removeBack" | "recommended" | "ownersChoose" | "spaceStartsOn" | "spaceChosen" | "spaceAsOrg" | "spaceSwitch" | "spaceManagers" | "spaceSelect" | "asOrg" | "agentLine" | "onPlans" | "pickLabel" | "pickCap" | "backToDefault" | "backToOrgDefault" | "chatRunsOn" | "chatRunsDefault" | "newChatsOn" | "newChatsDefault">;
|
|
145
153
|
/** Every word of tiers' front end, by area (team's WORDS.md lists them). */
|
|
146
154
|
export declare const PHRASES: Record<string, Record<string, Phrase>>;
|
package/tiers/views/web/say.js
CHANGED
|
@@ -49,6 +49,10 @@ export const tiers = {
|
|
|
49
49
|
capDefault: "Only the default",
|
|
50
50
|
capNote: "Owners and admins can always use any of them.",
|
|
51
51
|
capDefaultNote: "Every chat runs on the default: nobody switches a chat's or a space's tier.",
|
|
52
|
+
plansFirstLabel: "Use members' subscriptions whenever possible",
|
|
53
|
+
plansFirstOff: "Off: each agent tries its models in the tier's order, on a member's subscription where one runs it, else on credits.",
|
|
54
|
+
plansFirstOn: "On: any of an agent's models a member's subscription runs comes before credits, then the tier's fallbacks on their subscriptions.",
|
|
55
|
+
plansFirstWarning: "Agents may end up on the same model and lose what makes them complementary: one that checks the others' work, for example, does it best on another maker's model.",
|
|
52
56
|
noCredits: "{plan} gives this org no credits.",
|
|
53
57
|
noCreditsMore: "Choose a plan or add credits for your agents to start working.",
|
|
54
58
|
billing: "Billing",
|
|
@@ -103,6 +107,10 @@ export const tiers = {
|
|
|
103
107
|
remove: "Remove",
|
|
104
108
|
noFallback: "Nothing: if it fails, the reply fails.",
|
|
105
109
|
addFallback: "Add a fallback",
|
|
110
|
+
planFallbacks: "When a member's subscriptions run none of these",
|
|
111
|
+
planFallbacksAbout: "Tried after any agent's models, on members' subscriptions only, never on credits, while subscriptions are used whenever possible. One model per maker covers every subscription.",
|
|
112
|
+
noPlanFallback: "None: the agent's own models on credits.",
|
|
113
|
+
addPlanFallback: "Add a model",
|
|
106
114
|
// The team
|
|
107
115
|
teamTitle: "Your team",
|
|
108
116
|
teamAbout: "Every space in {org} starts with these agents. Each does a kind of work, and the tier gives it its model.",
|
|
@@ -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/* 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";
|
|
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.tiers-plans { display: grid; justify-items: start; gap: 6px; color: var(--secondary-foreground); font-size: 13.5px; }\n.tiers-plans > 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-kind-about { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\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";
|
package/tiers/views/web/style.js
CHANGED
|
@@ -53,6 +53,8 @@ export const STYLE = `
|
|
|
53
53
|
.tiers-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--secondary-foreground); font-size: 13.5px; }
|
|
54
54
|
.tiers-cap > .pairz-select { width: auto; min-width: 160px; }
|
|
55
55
|
.tiers-cap span { color: var(--muted-foreground); font-size: 12.5px; }
|
|
56
|
+
.tiers-plans { display: grid; justify-items: start; gap: 6px; color: var(--secondary-foreground); font-size: 13.5px; }
|
|
57
|
+
.tiers-plans > span { color: var(--muted-foreground); font-size: 12.5px; }
|
|
56
58
|
|
|
57
59
|
/* Customizing a tier */
|
|
58
60
|
.tiers-editor { display: grid; gap: 16px; min-width: 0; }
|
|
@@ -63,6 +65,7 @@ export const STYLE = `
|
|
|
63
65
|
.tiers-kind-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
|
|
64
66
|
.tiers-kind-head b { font-size: 14.5px; font-weight: 650; }
|
|
65
67
|
.tiers-kind-head span { color: var(--muted-foreground); font-size: 12.5px; }
|
|
68
|
+
.tiers-kind-about { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }
|
|
66
69
|
.tiers-chain { display: grid; gap: 6px; min-width: 0; }
|
|
67
70
|
.tiers-kind-new { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 12px 14px;
|
|
68
71
|
border: 1px dashed var(--border); border-radius: var(--radius-lg); }
|