@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.
- package/README.md +9 -4
- package/WORDS.md +23 -2
- 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/model-pick.d.ts +10 -1
- package/team/views/web/model-pick.js +4 -2
- package/team/views/web/model-picker.d.ts +31 -5
- package/team/views/web/model-picker.js +74 -30
- package/team/views/web/words.d.ts +1 -1
- package/team/views/web/words.js +7 -0
- package/tiers/actions/choose.d.ts +48 -1
- package/tiers/actions/choose.js +143 -57
- package/tiers/actions/model.js +14 -9
- package/tiers/collections/choice.d.ts +15 -8
- package/tiers/collections/choice.js +22 -12
- package/tiers/collections/template.d.ts +6 -1
- package/tiers/collections/template.js +8 -4
- package/tiers/contract.d.ts +2 -2
- package/tiers/mod.d.ts +17 -9
- package/tiers/mod.js +26 -12
- package/tiers/shared/plans.d.ts +31 -33
- package/tiers/shared/plans.js +39 -54
- package/tiers/shared/shown.d.ts +16 -3
- package/tiers/shared/shown.js +43 -15
- package/tiers/shared/tiers.d.ts +38 -5
- package/tiers/shared/tiers.js +29 -3
- package/tiers/views/web/composer.d.ts +2 -1
- package/tiers/views/web/composer.js +8 -2
- package/tiers/views/web/org.d.ts +46 -11
- package/tiers/views/web/org.js +144 -61
- package/tiers/views/web/say.d.ts +17 -2
- package/tiers/views/web/say.js +17 -2
- package/tiers/views/web/space.d.ts +2 -1
- package/tiers/views/web/space.js +8 -4
- package/tiers/views/web/style.d.ts +1 -1
- package/tiers/views/web/style.js +5 -0
- package/tiers/web.d.ts +6 -5
- 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
|
|
8
|
-
*
|
|
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
|
|
20
|
-
* with `tiers.harnesses`.
|
|
20
|
+
* `modelChoice.harnesses`, in the plans' order.
|
|
21
21
|
*
|
|
22
|
-
* Models are chosen with team's picker (`model.pick
|
|
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,
|
|
57
|
-
planList: { query: "modelChoice.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: {
|