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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +9 -4
  2. package/WORDS.md +23 -2
  3. package/package.json +2 -2
  4. package/team/actions/agent.js +12 -4
  5. package/team/collections/agent.d.ts +70 -15
  6. package/team/collections/agent.js +29 -7
  7. package/team/shared/definition.d.ts +15 -0
  8. package/team/shared/definition.js +17 -1
  9. package/team/views/web/model-pick.d.ts +10 -1
  10. package/team/views/web/model-pick.js +4 -2
  11. package/team/views/web/model-picker.d.ts +31 -5
  12. package/team/views/web/model-picker.js +74 -30
  13. package/team/views/web/words.d.ts +1 -1
  14. package/team/views/web/words.js +7 -0
  15. package/tiers/actions/choose.d.ts +48 -1
  16. package/tiers/actions/choose.js +143 -57
  17. package/tiers/actions/model.js +14 -9
  18. package/tiers/collections/choice.d.ts +15 -8
  19. package/tiers/collections/choice.js +22 -12
  20. package/tiers/collections/template.d.ts +6 -1
  21. package/tiers/collections/template.js +8 -4
  22. package/tiers/contract.d.ts +2 -2
  23. package/tiers/mod.d.ts +17 -9
  24. package/tiers/mod.js +26 -12
  25. package/tiers/shared/plans.d.ts +31 -33
  26. package/tiers/shared/plans.js +39 -54
  27. package/tiers/shared/shown.d.ts +16 -3
  28. package/tiers/shared/shown.js +43 -15
  29. package/tiers/shared/tiers.d.ts +38 -5
  30. package/tiers/shared/tiers.js +29 -3
  31. package/tiers/views/web/composer.d.ts +2 -1
  32. package/tiers/views/web/composer.js +8 -2
  33. package/tiers/views/web/org.d.ts +46 -11
  34. package/tiers/views/web/org.js +144 -61
  35. package/tiers/views/web/say.d.ts +17 -2
  36. package/tiers/views/web/say.js +17 -2
  37. package/tiers/views/web/space.d.ts +2 -1
  38. package/tiers/views/web/space.js +8 -4
  39. package/tiers/views/web/style.d.ts +1 -1
  40. package/tiers/views/web/style.js +5 -0
  41. package/tiers/web.d.ts +6 -5
  42. package/tiers/web.js +9 -8
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: {