@pairz/team 0.0.1 → 1.0.0-rc.81
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/LICENSE +21 -0
- package/README.md +50 -1
- package/WORDS.md +357 -0
- package/contract.d.ts +8 -0
- package/contract.js +8 -0
- package/mod.d.ts +25 -0
- package/mod.js +25 -0
- package/package.json +61 -3
- package/team/actions/agent.d.ts +14 -0
- package/team/actions/agent.js +401 -0
- package/team/actions/define.d.ts +1 -0
- package/team/actions/define.js +45 -0
- package/team/collections/agent.d.ts +170 -0
- package/team/collections/agent.js +126 -0
- package/team/contract.d.ts +11 -0
- package/team/contract.js +1 -0
- package/team/mod.d.ts +28 -0
- package/team/mod.js +64 -0
- package/team/resources/propose.d.ts +1 -0
- package/team/resources/propose.js +102 -0
- package/team/shared/definition.d.ts +3 -0
- package/team/shared/definition.js +11 -0
- package/team/shared/everywhere.d.ts +11 -0
- package/team/shared/everywhere.js +29 -0
- package/team/shared/limits.d.ts +17 -0
- package/team/shared/limits.js +17 -0
- package/team/views/web/agent-add.d.ts +14 -0
- package/team/views/web/agent-add.js +58 -0
- package/team/views/web/agent-describe.d.ts +38 -0
- package/team/views/web/agent-describe.js +44 -0
- package/team/views/web/agent-fields.d.ts +35 -0
- package/team/views/web/agent-fields.js +88 -0
- package/team/views/web/agent-known.d.ts +22 -0
- package/team/views/web/agent-known.js +62 -0
- package/team/views/web/agent-new.d.ts +27 -0
- package/team/views/web/agent-new.js +150 -0
- package/team/views/web/agent-org.d.ts +12 -0
- package/team/views/web/agent-org.js +89 -0
- package/team/views/web/agent-palette.d.ts +19 -0
- package/team/views/web/agent-palette.js +203 -0
- package/team/views/web/agent-steps.d.ts +23 -0
- package/team/views/web/agent-steps.js +56 -0
- package/team/views/web/agent.d.ts +20 -0
- package/team/views/web/agent.js +310 -0
- package/team/views/web/agents.d.ts +48 -0
- package/team/views/web/agents.js +59 -0
- package/team/views/web/model-pick.d.ts +27 -0
- package/team/views/web/model-pick.js +42 -0
- package/team/views/web/model-picker.d.ts +57 -0
- package/team/views/web/model-picker.js +218 -0
- package/team/views/web/places.d.ts +24 -0
- package/team/views/web/places.js +10 -0
- package/team/views/web/style.d.ts +9 -0
- package/team/views/web/style.js +251 -0
- package/team/views/web/words.d.ts +5 -0
- package/team/views/web/words.js +239 -0
- package/team/web.d.ts +22 -0
- package/team/web.js +43 -0
- package/tiers/actions/choose.d.ts +7 -0
- package/tiers/actions/choose.js +315 -0
- package/tiers/actions/model.d.ts +1 -0
- package/tiers/actions/model.js +60 -0
- package/tiers/collections/choice.d.ts +57 -0
- package/tiers/collections/choice.js +79 -0
- package/tiers/collections/template.d.ts +76 -0
- package/tiers/collections/template.js +41 -0
- package/tiers/contract.d.ts +23 -0
- package/tiers/contract.js +1 -0
- package/tiers/mod.d.ts +72 -0
- package/tiers/mod.js +111 -0
- package/tiers/shared/plans.d.ts +65 -0
- package/tiers/shared/plans.js +91 -0
- package/tiers/shared/shown.d.ts +187 -0
- package/tiers/shared/shown.js +280 -0
- package/tiers/shared/tiers.d.ts +150 -0
- package/tiers/shared/tiers.js +170 -0
- package/tiers/views/web/composer.d.ts +14 -0
- package/tiers/views/web/composer.js +81 -0
- package/tiers/views/web/org.d.ts +61 -0
- package/tiers/views/web/org.js +289 -0
- package/tiers/views/web/say.d.ts +139 -0
- package/tiers/views/web/say.js +143 -0
- package/tiers/views/web/setup.d.ts +23 -0
- package/tiers/views/web/setup.js +80 -0
- package/tiers/views/web/space.d.ts +31 -0
- package/tiers/views/web/space.js +74 -0
- package/tiers/views/web/style.d.ts +7 -0
- package/tiers/views/web/style.js +191 -0
- package/tiers/views/web/team.d.ts +38 -0
- package/tiers/views/web/team.js +118 -0
- package/tiers/views/web/words.d.ts +48 -0
- package/tiers/views/web/words.js +122 -0
- package/tiers/web.d.ts +30 -0
- package/tiers/web.js +71 -0
- package/web.d.ts +14 -0
- package/web.js +14 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Pairz Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
|
1
1
|
# @pairz/team
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Agents people make, and the models an org's agents think with, for
|
|
4
|
+
[Pairz](https://github.com/pairzhq/pairz): two plugins beside its `chat`, whose agents are the app's
|
|
5
|
+
own, in its code.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @pairz/team pairz # Node 24+, Bun
|
|
9
|
+
deno add jsr:@pairz/team jsr:@pairz/pairz
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
It goes with Pairz at the same version (they're released together): `@pairz/team@x.y.z` with
|
|
13
|
+
`pairz@x.y.z`.
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { team, tiers } from "@pairz/team";
|
|
17
|
+
|
|
18
|
+
const runtime = await createRuntime({
|
|
19
|
+
store,
|
|
20
|
+
plugins: [models, chat, ...access, team, tiers, app],
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
// In the browser, beside the web shell's and spaces' front ends:
|
|
26
|
+
import { teamWeb, tiersWeb } from "@pairz/team/web";
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
| Import | What it has |
|
|
30
|
+
| ---------------------- | ----------------------------------------------------------------------------- |
|
|
31
|
+
| `@pairz/team` | `team`, `tiers` |
|
|
32
|
+
| `@pairz/team/web` | `teamWeb` (an agent's page, making one, adding one to a space), `tiersWeb` |
|
|
33
|
+
| `@pairz/team/contract` | their shapes (`AgentDoc`, `ModelPick`, `Tier`, `Shown`…), for plugins on them |
|
|
34
|
+
|
|
35
|
+
- **`team`**: agents people make where they belong (a space), with their instructions, tools and
|
|
36
|
+
model, added to other spaces by those who've met them, changed only by who manage the space they
|
|
37
|
+
belong to; removed, one leaves every space it worked in. Its collection is `agent`; chat asks it
|
|
38
|
+
what an agent not in the app's code is (the `agentSources` resource).
|
|
39
|
+
- **`tiers`**: which model each of the app's agents thinks with, by tier ("Everyday", "Expert"): the
|
|
40
|
+
first that applies of a space's pick, the space's tier, the org's pick, the org's tier and its
|
|
41
|
+
plan's (the `planTier` resource, which `@pairz/billing`'s credits fill). Its collection is
|
|
42
|
+
`modelChoice`; chat asks it through the `agentModel` resource. Where the app has people's plans
|
|
43
|
+
(Claude Code, ChatGPT…), each turn's chain runs on its person's plans first, in their order
|
|
44
|
+
(`tiers.harnesses`).
|
|
45
|
+
|
|
46
|
+
Its front end's words are `team.<key>`: see
|
|
47
|
+
[WORDS.md](https://github.com/pairzhq/pairz/blob/main/packages/team/WORDS.md).
|
|
48
|
+
|
|
49
|
+
Through 1.0.0-rc.32 these were `team` and `tiers` in `pairz/plugins/agents`, and `teamWeb` and
|
|
50
|
+
`tiersWeb` in `pairz/plugins/agents/web`. Their names (collections, Actions, events, Views,
|
|
51
|
+
resources) are the same, so an app's data stays as it is: only its imports change. See
|
|
52
|
+
[design/plugins.md](https://github.com/pairzhq/pairz/blob/main/design/plugins.md).
|
package/WORDS.md
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
# @pairz/team's words
|
|
2
|
+
|
|
3
|
+
Every word team's and tiers' web front ends show, by key, with its English. An app changes any
|
|
4
|
+
of them with a `words` resource (see Pairz's README, "Words"). `{name}` is a blank; a phrase
|
|
5
|
+
in braces `{one, other}` has plural forms, chosen by the `{count}` blank.
|
|
6
|
+
|
|
7
|
+
Generated: `deno run -A packages/team/tests/words.ts`.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## team
|
|
11
|
+
|
|
12
|
+
| Key | English |
|
|
13
|
+
|---|---|
|
|
14
|
+
| `team.add` | Add |
|
|
15
|
+
| `team.addAgentTo` | Add {name} to {place} |
|
|
16
|
+
| `team.addAnAgentNote` | Agents work for whoever asks them, and reach only what that person can. |
|
|
17
|
+
| `team.addAnAgentTitle` | Add an agent to {place} |
|
|
18
|
+
| `team.addAnAgentTo` | Add an agent to {place}… |
|
|
19
|
+
| `team.addNamedNote` | It works there at once, as an editor. |
|
|
20
|
+
| `team.addNamedTo` | Add {name} to a space… |
|
|
21
|
+
| `team.addsAs` | Adds as |
|
|
22
|
+
| `team.addToNote` | It works there at once, as an editor: it answers chats there and adds to them. |
|
|
23
|
+
| `team.addToSpace` | Add to a space |
|
|
24
|
+
| `team.addToSpaceMenu` | Add to a space… |
|
|
25
|
+
| `team.addToTeam` | Add to the team |
|
|
26
|
+
| `team.addToTeamNamed` | Add {name} to the team |
|
|
27
|
+
| `team.addToTitle` | Add {name} to… |
|
|
28
|
+
| `team.agentsYouKnow` | Agents you know |
|
|
29
|
+
| `team.allProviders` | All providers |
|
|
30
|
+
| `team.allWorkHere` | Every agent you know works in {place} already. |
|
|
31
|
+
| `team.anotherEmoji` | Another emoji |
|
|
32
|
+
| `team.answersNewChats` | Answers new chats |
|
|
33
|
+
| `team.answersNewChatsHere` | Answers new chats here |
|
|
34
|
+
| `team.apiKeyLabel` | Your {provider} API key |
|
|
35
|
+
| `team.appAgentNotice` | Part of the app: it's set up in code, so it isn't changed here. To have one of your own like it, start a new agent from it. |
|
|
36
|
+
| `team.archivedSpace` | {place} is archived: restore it to add agents. |
|
|
37
|
+
| `team.askAgent` | Ask {name} |
|
|
38
|
+
| `team.askHandle` | Ask {handle} in any chat here. |
|
|
39
|
+
| `team.back` | Back |
|
|
40
|
+
| `team.belongsHint` | {lets}. It belongs to {place}: those who manage it change it. |
|
|
41
|
+
| `team.calledIn` | Called {handle} in chats |
|
|
42
|
+
| `team.cancel` | Cancel |
|
|
43
|
+
| `team.change` | Change |
|
|
44
|
+
| `team.changeAgent` | Change {name} |
|
|
45
|
+
| `team.changedForOrg` | Changed for your org |
|
|
46
|
+
| `team.chooseModel` | Choose a model |
|
|
47
|
+
| `team.contextSize` | {size} context |
|
|
48
|
+
| `team.createAgent` | Create agent |
|
|
49
|
+
| `team.createNamed` | Create {name} |
|
|
50
|
+
| `team.createNewAgent` | Create a new agent |
|
|
51
|
+
| `team.createNewAgentBody` | Say what it should do; it can write its own instructions. |
|
|
52
|
+
| `team.deleteButton` | Delete {name} |
|
|
53
|
+
| `team.deleteChats` | {bold} with what it said. |
|
|
54
|
+
| `team.deleteChatsBold` | Chats it was in stay as they are, |
|
|
55
|
+
| `team.deleteGone` | {bold} and it can't be brought back. |
|
|
56
|
+
| `team.deleteGoneBold` | Nobody can ask it anything again, |
|
|
57
|
+
| `team.deleteLeaves` | {bold}. Where it answered new chats, another agent there does. |
|
|
58
|
+
| `team.deleteLeavesBold` | It leaves every space it works in |
|
|
59
|
+
| `team.deleteLeavesNamed` | {bold}, {spaces} among them. Where it answered new chats, another agent there does. |
|
|
60
|
+
| `team.deleteMenu` | Delete {name}… |
|
|
61
|
+
| `team.deleteStepKeep` | Keep it |
|
|
62
|
+
| `team.deleteStepNote` | It leaves every space it works in, and nobody can ask it anything again. Chats it was in stay as they are. |
|
|
63
|
+
| `team.deleteTitle` | Delete {name}? |
|
|
64
|
+
| `team.describeHint` | A sentence or two is enough: its name, instructions and the rest are drafted for you to check. |
|
|
65
|
+
| `team.describePlaceholder` | Keeps the numbers straight for our clients: prices, costs and margins, with sources. |
|
|
66
|
+
| `team.doesHint` | A line or two, for people, and for other agents deciding whom to ask. |
|
|
67
|
+
| `team.doesPlaceholder` | Writes launch copy in our voice, and checks facts with the researcher. |
|
|
68
|
+
| `team.drafting` | Drafting… |
|
|
69
|
+
| `team.draftingWait` | Writing its instructions, a few seconds… |
|
|
70
|
+
| `team.draftIt` | Draft it |
|
|
71
|
+
| `team.draftNote` | Written for you from what it should do: read them through, and change what you like. |
|
|
72
|
+
| `team.edit` | Edit |
|
|
73
|
+
| `team.editAgent` | Edit {name} |
|
|
74
|
+
| `team.editNamed` | Edit {name} |
|
|
75
|
+
| `team.effort` | {effort} effort |
|
|
76
|
+
| `team.emoji` | Emoji |
|
|
77
|
+
| `team.fieldDoes` | What should it do? |
|
|
78
|
+
| `team.fieldName` | Name |
|
|
79
|
+
| `team.fillMyself` | Fill it in myself |
|
|
80
|
+
| `team.findAgent` | Find an agent |
|
|
81
|
+
| `team.findAgentKnown` | Find an agent you know |
|
|
82
|
+
| `team.findSpace` | Find a space |
|
|
83
|
+
| `team.goHome` | Go home |
|
|
84
|
+
| `team.instructions` | Instructions |
|
|
85
|
+
| `team.instructionsEmptyHint` | Say its name and what it should do, and it can write them for you. |
|
|
86
|
+
| `team.instructionsHint` | What it's told every time it works: who it is, what it does, and how it answers. |
|
|
87
|
+
| `team.justYou` | Just you |
|
|
88
|
+
| `team.keepsHandle` | It keeps its name in chats, @{handle}, whatever it's shown as. |
|
|
89
|
+
| `team.keyNote` | Encrypted, and never shown again. All of this org's agents use it for {provider}, and {provider} charges your account. |
|
|
90
|
+
| `team.keywordAgent` | agent |
|
|
91
|
+
| `team.keywordAnswer` | answer |
|
|
92
|
+
| `team.keywordChange` | change |
|
|
93
|
+
| `team.keywordCopy` | copy |
|
|
94
|
+
| `team.keywordCreate` | create |
|
|
95
|
+
| `team.keywordDefault` | default |
|
|
96
|
+
| `team.keywordInstructions` | instructions |
|
|
97
|
+
| `team.keywordInvite` | invite |
|
|
98
|
+
| `team.keywordJoin` | join |
|
|
99
|
+
| `team.keywordLike` | like |
|
|
100
|
+
| `team.keywordMake` | make |
|
|
101
|
+
| `team.keywordMember` | member |
|
|
102
|
+
| `team.keywordNewChats` | new chats |
|
|
103
|
+
| `team.keywordPersonal` | personal |
|
|
104
|
+
| `team.keywordRename` | rename |
|
|
105
|
+
| `team.keywordWork` | work |
|
|
106
|
+
| `team.kindHint` | Its model comes from the tier each chat runs on, for this kind of work. |
|
|
107
|
+
| `team.kindLabel` | Kind of work |
|
|
108
|
+
| `team.kindLike` | {kind} · like {agents} |
|
|
109
|
+
| `team.knownIntro` | Agents you know, from the app and your spaces |
|
|
110
|
+
| `team.listEnd` | {rest} and {last} |
|
|
111
|
+
| `team.listJoin` | , |
|
|
112
|
+
| `team.madeElsewhere` | Made elsewhere |
|
|
113
|
+
| `team.madeIn` | Made in {place} |
|
|
114
|
+
| `team.madeInOther` | Made in another space |
|
|
115
|
+
| `team.makeAnother` | Make another |
|
|
116
|
+
| `team.makeAnswer` | Make it answer new chats |
|
|
117
|
+
| `team.makeAnswerIn` | Make it answer new chats in {place} |
|
|
118
|
+
| `team.makeNamedAnswer` | Make {name} answer new chats |
|
|
119
|
+
| `team.makeNamedAnswerIn` | Make {name} answer new chats in {place} |
|
|
120
|
+
| `team.managersAdd` | Those who manage {place} add agents to it. |
|
|
121
|
+
| `team.managersChangeIt` | Those who manage {place} change it. |
|
|
122
|
+
| `team.managersChangeItElsewhere` | Those who manage the space it belongs to change it. |
|
|
123
|
+
| `team.mediaAudio` | Audio |
|
|
124
|
+
| `team.mediaImage` | Images |
|
|
125
|
+
| `team.mediaPdf` | PDFs |
|
|
126
|
+
| `team.mediaVideo` | Video |
|
|
127
|
+
| `team.model` | Model |
|
|
128
|
+
| `team.modelAndTools` | Model and tools |
|
|
129
|
+
| `team.modelHint` | What it thinks with. |
|
|
130
|
+
| `team.models` | Models |
|
|
131
|
+
| `team.modelsThenJoin` | , then |
|
|
132
|
+
| `team.moreMenu` | {name}: more |
|
|
133
|
+
| `team.nameHint` | What people call it: Maya is @maya in chats. |
|
|
134
|
+
| `team.namePlaceholder` | Maya |
|
|
135
|
+
| `team.needsKey` | Needs a key |
|
|
136
|
+
| `team.newAgent` | New agent… |
|
|
137
|
+
| `team.newAgentForm` | A new agent |
|
|
138
|
+
| `team.newAgentIn` | New agent in {place} |
|
|
139
|
+
| `team.newAgentInHere` | In {place} |
|
|
140
|
+
| `team.newAgentInNote` | It belongs to the space you pick: those who manage it change it. |
|
|
141
|
+
| `team.newAgentInStep` | New agent in… |
|
|
142
|
+
| `team.newLikeNote` | It starts with its words, model and tools; it belongs to the space you pick. |
|
|
143
|
+
| `team.newLikeTitle` | New agent like {name}, in… |
|
|
144
|
+
| `team.noCreditsUsed` | No credits used |
|
|
145
|
+
| `team.noEmoji` | None: its initial |
|
|
146
|
+
| `team.noKeyForProvider` | This org has no key for {provider}. Its owners and admins can add one. |
|
|
147
|
+
| `team.noneCalled` | No agent you know is called “{search}”. |
|
|
148
|
+
| `team.noSuchAgent` | No agent here by that name |
|
|
149
|
+
| `team.noSuchAgentBody` | It may have been deleted, or it works only in spaces you're not in. |
|
|
150
|
+
| `team.noSuchAgentTitle` | No such agent |
|
|
151
|
+
| `team.nothingMatches` | Nothing matches that. |
|
|
152
|
+
| `team.noTools` | None: it only talks. |
|
|
153
|
+
| `team.notYourSpace` | This space isn't one of yours. |
|
|
154
|
+
| `team.oneOfApps` | One of the app's agents |
|
|
155
|
+
| `team.openPage` | Open its page |
|
|
156
|
+
| `team.orgForm` | A new agent for the org |
|
|
157
|
+
| `team.orgJoins` | It joins every space in the org, and every new one. |
|
|
158
|
+
| `team.orgKey` | This org's key {hint} |
|
|
159
|
+
| `team.orgsTeam` | Your org's team |
|
|
160
|
+
| `team.otherEmoji` | Other |
|
|
161
|
+
| `team.paletteAgents` | Agents |
|
|
162
|
+
| `team.paletteCreate` | Create |
|
|
163
|
+
| `team.paletteThisAgent` | This agent |
|
|
164
|
+
| `team.paletteThisSpace` | This space |
|
|
165
|
+
| `team.partOfApp` | Part of the app |
|
|
166
|
+
| `team.pasteIt` | Paste it here |
|
|
167
|
+
| `team.personalSpace` | Personal |
|
|
168
|
+
| `team.priceLine` | {input} in · {output} out per 1M tokens |
|
|
169
|
+
| `team.priceOwnKey` | No credits used: your key, at {price} |
|
|
170
|
+
| `team.providerModels` | one: {count} model / other: {count} models |
|
|
171
|
+
| `team.providers` | Providers |
|
|
172
|
+
| `team.readsOnly` | It reads what's here for chats where it's an editor; it doesn't answer here. |
|
|
173
|
+
| `team.readyToUse` | Ready to use |
|
|
174
|
+
| `team.reasoning` | Reasoning |
|
|
175
|
+
| `team.remove` | Remove |
|
|
176
|
+
| `team.removeButton` | Remove |
|
|
177
|
+
| `team.removeFromTeamMenu` | Remove from the team… |
|
|
178
|
+
| `team.removeTeamTitle` | Remove {name} from the team? |
|
|
179
|
+
| `team.replace` | Replace |
|
|
180
|
+
| `team.rewriteForMe` | Rewrite them for me |
|
|
181
|
+
| `team.roleEditor` | Editor |
|
|
182
|
+
| `team.roleViewer` | Viewer |
|
|
183
|
+
| `team.save` | Save |
|
|
184
|
+
| `team.saveChanges` | Save changes |
|
|
185
|
+
| `team.sayNameFirst` | Say its name and what it should do first |
|
|
186
|
+
| `team.searchModels` | Search providers and models |
|
|
187
|
+
| `team.showAll` | Show all {count} |
|
|
188
|
+
| `team.showFewer` | Show fewer |
|
|
189
|
+
| `team.spacesYouManage` | Spaces you manage |
|
|
190
|
+
| `team.startBlank` | Nothing: a blank agent |
|
|
191
|
+
| `team.startFrom` | Start from |
|
|
192
|
+
| `team.startFromIt` | Start a new agent from it… |
|
|
193
|
+
| `team.startFromShort` | Start from it |
|
|
194
|
+
| `team.startingFrom` | Starting from {name}. |
|
|
195
|
+
| `team.startNewFrom` | Start a new agent from {name}… |
|
|
196
|
+
| `team.teamAddBack` | You can add it back under Organization settings › Agents. |
|
|
197
|
+
| `team.teamDeleted` | It's deleted: its instructions are gone. |
|
|
198
|
+
| `team.teamLeaves` | {bold}, and won't join new ones. |
|
|
199
|
+
| `team.teamLeavesBold` | It leaves every space in the org |
|
|
200
|
+
| `team.teamSaidStays` | What it already said stays in its chats. |
|
|
201
|
+
| `team.thinks` | Thinks |
|
|
202
|
+
| `team.tierModel` | Its model comes from the tier each chat runs on. Change the tiers' models under {place}. |
|
|
203
|
+
| `team.tierModelPlace` | Organization settings › Agents |
|
|
204
|
+
| `team.tools` | Tools |
|
|
205
|
+
| `team.toolsAll` | All |
|
|
206
|
+
| `team.toolsChoose` | Choose |
|
|
207
|
+
| `team.toolsChooseDone` | Done |
|
|
208
|
+
| `team.toolsLabel` | Tools {count} |
|
|
209
|
+
| `team.toolsMore` | +{count} more |
|
|
210
|
+
| `team.toolsNone` | None |
|
|
211
|
+
| `team.toolsOf` | {chosen} of {offered} |
|
|
212
|
+
| `team.undo` | Undo |
|
|
213
|
+
| `team.useOwnKey` | Use your own key |
|
|
214
|
+
| `team.usesAppKey` | Uses the app's key |
|
|
215
|
+
| `team.withOwnKey` | With your own key |
|
|
216
|
+
| `team.worksHere` | @{id} · works here |
|
|
217
|
+
| `team.worksIn` | Works in {count} |
|
|
218
|
+
| `team.worksInAs` | Works in {place} as |
|
|
219
|
+
| `team.worksNow` | {name} works in {place} now |
|
|
220
|
+
| `team.worksNowhere` | It doesn't work in any of your spaces. |
|
|
221
|
+
| `team.worksNowNames` | one: {names} works in {place} now. / other: {names} work in {place} now. |
|
|
222
|
+
| `team.writeForMe` | Write them for me |
|
|
223
|
+
| `team.writingFor` | Writing {name}'s instructions… |
|
|
224
|
+
| `team.youAreDefaultName` | Maya |
|
|
225
|
+
| `team.youArePlaceholder` | You are {name}. You… |
|
|
226
|
+
| `team.yourKey` | Your key |
|
|
227
|
+
|
|
228
|
+
## tiers
|
|
229
|
+
|
|
230
|
+
| Key | English |
|
|
231
|
+
|---|---|
|
|
232
|
+
| `tiers.add` | Add |
|
|
233
|
+
| `tiers.addAgent` | Add an agent |
|
|
234
|
+
| `tiers.addAgentAbout` | It works in every space in {org}, and every new one. |
|
|
235
|
+
| `tiers.addAgentAboutMine` | It works in every space of yours, and every new one. |
|
|
236
|
+
| `tiers.addAgentTitle` | Add an agent to the team |
|
|
237
|
+
| `tiers.addBack` | Add back |
|
|
238
|
+
| `tiers.addBackTier` | Add back {tier} |
|
|
239
|
+
| `tiers.addFallback` | Add a fallback |
|
|
240
|
+
| `tiers.addKind` | Add a kind of work |
|
|
241
|
+
| `tiers.agentLine` | {model} · {kind} · on {tier} |
|
|
242
|
+
| `tiers.asOrg` | As the org: {tier} |
|
|
243
|
+
| `tiers.backToDefault` | Back to the default |
|
|
244
|
+
| `tiers.backToOrgDefault` | Back to the org's default |
|
|
245
|
+
| `tiers.backToOriginal` | Back to the original |
|
|
246
|
+
| `tiers.backToPlan` | Back to your plan's default |
|
|
247
|
+
| `tiers.badgeChanged` | Changed |
|
|
248
|
+
| `tiers.badgeDefault` | Default |
|
|
249
|
+
| `tiers.badgeOrgs` | Your org's |
|
|
250
|
+
| `tiers.badgePlan` | Plan's |
|
|
251
|
+
| `tiers.badgeYours` | Yours |
|
|
252
|
+
| `tiers.billing` | Billing |
|
|
253
|
+
| `tiers.budget` | budget |
|
|
254
|
+
| `tiers.byOrg` | the org's default |
|
|
255
|
+
| `tiers.byPerson` | your default |
|
|
256
|
+
| `tiers.byPlan` | your plan's default |
|
|
257
|
+
| `tiers.bySpace` | this space's default |
|
|
258
|
+
| `tiers.byThread` | chosen for this chat |
|
|
259
|
+
| `tiers.cancel` | Cancel |
|
|
260
|
+
| `tiers.capAny` | Any tier |
|
|
261
|
+
| `tiers.capLabel` | Members can choose up to |
|
|
262
|
+
| `tiers.capNote` | Owners and admins can always use any of them. |
|
|
263
|
+
| `tiers.changeAnyTime` | You can change it any time. |
|
|
264
|
+
| `tiers.chatRunsDefault` | This chat runs on its default. |
|
|
265
|
+
| `tiers.chatRunsOn` | This chat runs on {tier} from its next reply. |
|
|
266
|
+
| `tiers.copyOf` | {tier} copy |
|
|
267
|
+
| `tiers.createTier` | Create tier |
|
|
268
|
+
| `tiers.creditsMonth` | about {things} a month with {plan}'s {amount} |
|
|
269
|
+
| `tiers.creditsOnce` | about {things} with {plan}'s {amount} |
|
|
270
|
+
| `tiers.creditsSeat` | about {things} a month for each seat on {plan} |
|
|
271
|
+
| `tiers.customize` | Customize… |
|
|
272
|
+
| `tiers.customizeAbout` | Each kind of work's model, and what it falls back to when that one fails. Changes apply from each chat's next reply. |
|
|
273
|
+
| `tiers.customizeTitle` | Customize {tier} |
|
|
274
|
+
| `tiers.defaultForNew` | Default for new chats |
|
|
275
|
+
| `tiers.deleteTier` | Delete |
|
|
276
|
+
| `tiers.doneSaid` | New chats use {tier} from now on. |
|
|
277
|
+
| `tiers.duplicate` | Duplicate… |
|
|
278
|
+
| `tiers.edit` | Edit |
|
|
279
|
+
| `tiers.effortHigh` | high effort |
|
|
280
|
+
| `tiers.effortLow` | low effort |
|
|
281
|
+
| `tiers.effortMax` | max effort |
|
|
282
|
+
| `tiers.effortMedium` | medium effort |
|
|
283
|
+
| `tiers.effortMinimal` | minimal effort |
|
|
284
|
+
| `tiers.effortNone` | no reasoning |
|
|
285
|
+
| `tiers.effortOther` | {effort} effort |
|
|
286
|
+
| `tiers.effortXhigh` | extra-high effort |
|
|
287
|
+
| `tiers.emptyBody` | This app's agents each think with the model it gives them. |
|
|
288
|
+
| `tiers.emptyTitle` | No tiers to choose from |
|
|
289
|
+
| `tiers.fallbacks` | If it fails, then |
|
|
290
|
+
| `tiers.faster` | {tier} uses your credits about {times} faster than {cheapest}. |
|
|
291
|
+
| `tiers.fasterGoes` | That's {goes}. |
|
|
292
|
+
| `tiers.footMessage` | A typical message here, measured from how people use these agents: the one who answers often calls its model a few times, and others join some messages. |
|
|
293
|
+
| `tiers.footPrices` | At your org's prices; real ones vary. What agents spend stays within your {budget}. |
|
|
294
|
+
| `tiers.footReply` | A typical reply here: about 20,000 tokens read, most of them from the cache, and 1,000 written. |
|
|
295
|
+
| `tiers.forLabel` | What it's for |
|
|
296
|
+
| `tiers.forPlaceholder` | Strong judgment, quick checks. |
|
|
297
|
+
| `tiers.makeDefault` | Make it the default |
|
|
298
|
+
| `tiers.messages` | one: {count} message / other: {count} messages |
|
|
299
|
+
| `tiers.moveDown` | Move down |
|
|
300
|
+
| `tiers.moveUp` | Move up |
|
|
301
|
+
| `tiers.name` | Name |
|
|
302
|
+
| `tiers.namePlaceholder` | Balanced |
|
|
303
|
+
| `tiers.newChatsDefault` | Your new chats start on the default. |
|
|
304
|
+
| `tiers.newChatsOn` | Your new chats start on {tier}. |
|
|
305
|
+
| `tiers.newKind` | A new kind of work |
|
|
306
|
+
| `tiers.newKindPlaceholder` | Numbers |
|
|
307
|
+
| `tiers.newTier` | New tier |
|
|
308
|
+
| `tiers.newTierAbout` | Mix models your way: one for deciding, another for checking. |
|
|
309
|
+
| `tiers.newTierStarts` | It starts as {tier}: change the model for any kind of work. |
|
|
310
|
+
| `tiers.newTierTitle` | A new tier |
|
|
311
|
+
| `tiers.nobodyYet` | No agent does this yet |
|
|
312
|
+
| `tiers.noCredits` | {plan} gives this org no credits. |
|
|
313
|
+
| `tiers.noCreditsMore` | Choose a plan or add credits for your agents to start working. |
|
|
314
|
+
| `tiers.noFallback` | Nothing: if it fails, the reply fails. |
|
|
315
|
+
| `tiers.notOnTeam` | Not on your team |
|
|
316
|
+
| `tiers.nowMore` | Anyone can switch a chat's tier as they write, and spaces can set their own. |
|
|
317
|
+
| `tiers.nowOrg` | New chats use {tier}, your org's default. |
|
|
318
|
+
| `tiers.nowPlan` | New chats use {tier}, your plan's default. |
|
|
319
|
+
| `tiers.onlyRunners` | Only {org}'s owners and admins change these. You can switch a chat's tier as you write. |
|
|
320
|
+
| `tiers.onlyRunnersHere` | Only the org's owners and admins change these. You can switch a chat's tier as you write. |
|
|
321
|
+
| `tiers.onPlans` | on your plans · model $0 |
|
|
322
|
+
| `tiers.onTier` | {model} on {tier} |
|
|
323
|
+
| `tiers.ownersChoose` | Your org's owners and admins choose this. |
|
|
324
|
+
| `tiers.perMessage` | a message |
|
|
325
|
+
| `tiers.perReply` | a reply |
|
|
326
|
+
| `tiers.pickCap` | Members can use up to {cap}. |
|
|
327
|
+
| `tiers.pickLabel` | Tier: {tier}, {by} |
|
|
328
|
+
| `tiers.pricedEach` | Priced as each model is |
|
|
329
|
+
| `tiers.providerChatgpt` | your ChatGPT plan |
|
|
330
|
+
| `tiers.recommended` | Recommended |
|
|
331
|
+
| `tiers.remove` | Remove |
|
|
332
|
+
| `tiers.removeBack` | You can add it back from this page. |
|
|
333
|
+
| `tiers.removeDeletes` | This deletes it. |
|
|
334
|
+
| `tiers.removeFromTeam` | Remove from the team |
|
|
335
|
+
| `tiers.removeSaid` | {name} leaves every space in {org} and won't join new ones. What it already said stays in its chats. |
|
|
336
|
+
| `tiers.removeSaidMine` | {name} leaves every space of yours and won't join new ones. What it already said stays in its chats. |
|
|
337
|
+
| `tiers.removeTitle` | Remove {name} from the team? |
|
|
338
|
+
| `tiers.replies` | one: {count} reply / other: {count} replies |
|
|
339
|
+
| `tiers.save` | Save |
|
|
340
|
+
| `tiers.spaceAsOrg` | As the org's default. |
|
|
341
|
+
| `tiers.spaceChosen` | Chosen for this space. The org's default is {tier}. |
|
|
342
|
+
| `tiers.spaceManagers` | This space's managers can change its default. |
|
|
343
|
+
| `tiers.spaceSelect` | This space's default tier |
|
|
344
|
+
| `tiers.spaceStartsOn` | New chats here start on {tier} |
|
|
345
|
+
| `tiers.spaceSwitch` | Anyone can switch a chat's tier as they write. |
|
|
346
|
+
| `tiers.startsFrom` | Starts from |
|
|
347
|
+
| `tiers.takeAway` | Take away |
|
|
348
|
+
| `tiers.takenAway` | Taken away: |
|
|
349
|
+
| `tiers.teamAbout` | Every space in {org} starts with these agents. Each does a kind of work, and the tier gives it its model. |
|
|
350
|
+
| `tiers.teamAboutMine` | Every space of yours starts with these agents. Each does a kind of work, and the tier gives it its model. |
|
|
351
|
+
| `tiers.teamTitle` | Your team |
|
|
352
|
+
| `tiers.then` | then {names} |
|
|
353
|
+
| `tiers.tierModels` | {tier}'s models |
|
|
354
|
+
| `tiers.tierMore` | {tier}: more |
|
|
355
|
+
| `tiers.tiersLabel` | Tiers |
|
|
356
|
+
| `tiers.underTenth` | under 0.1¢ |
|
|
357
|
+
| `tiers.undo` | Undo |
|
package/contract.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team's contract (`@pairz/team/contract`): team's and tiers', the shapes
|
|
3
|
+
* of an agent people made, a model pick, a tier and what a page shows of it,
|
|
4
|
+
* for plugins built on them. The rest is reached by name, through the
|
|
5
|
+
* runtime (`agent.create`, `tiers.choose`…).
|
|
6
|
+
*/
|
|
7
|
+
export * from "./team/contract.js";
|
|
8
|
+
export * from "./tiers/contract.js";
|
package/contract.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team's contract (`@pairz/team/contract`): team's and tiers', the shapes
|
|
3
|
+
* of an agent people made, a model pick, a tier and what a page shows of it,
|
|
4
|
+
* for plugins built on them. The rest is reached by name, through the
|
|
5
|
+
* runtime (`agent.create`, `tiers.choose`…).
|
|
6
|
+
*/
|
|
7
|
+
export * from "./team/contract.js";
|
|
8
|
+
export * from "./tiers/contract.js";
|
package/mod.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team (`@pairz/team`): agents people make, and the models the app's
|
|
3
|
+
* agents think with, as an org and its spaces choose them. Two plugins
|
|
4
|
+
* beside Pairz's `chat` (whose agents are the app's, in its code):
|
|
5
|
+
*
|
|
6
|
+
* - `team`: agents people make where they belong (a space), with their
|
|
7
|
+
* instructions, tools and model, added to other spaces by those who met
|
|
8
|
+
* them, changed only by who manage the space they belong to. Chat asks it
|
|
9
|
+
* what an agent not in the app's code is (`agentSources`).
|
|
10
|
+
* - `tiers`: which model each of the app's agents thinks with, by tier
|
|
11
|
+
* ("Everyday", "Expert"), the first that applies of a space's pick, the
|
|
12
|
+
* space's tier, the org's pick, the org's tier and its plan's (the
|
|
13
|
+
* `planTier` resource: `@pairz/billing`'s credits fill it).
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { team, tiers } from "@pairz/team";
|
|
17
|
+
*
|
|
18
|
+
* plugins: [models, chat, ...access, team, tiers, app]
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Their front ends are `@pairz/team/web` (`teamWeb`, `tiersWeb`); their
|
|
22
|
+
* shapes, `@pairz/team/contract`.
|
|
23
|
+
*/
|
|
24
|
+
export * from "./team/mod.js";
|
|
25
|
+
export * from "./tiers/mod.js";
|
package/mod.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team (`@pairz/team`): agents people make, and the models the app's
|
|
3
|
+
* agents think with, as an org and its spaces choose them. Two plugins
|
|
4
|
+
* beside Pairz's `chat` (whose agents are the app's, in its code):
|
|
5
|
+
*
|
|
6
|
+
* - `team`: agents people make where they belong (a space), with their
|
|
7
|
+
* instructions, tools and model, added to other spaces by those who met
|
|
8
|
+
* them, changed only by who manage the space they belong to. Chat asks it
|
|
9
|
+
* what an agent not in the app's code is (`agentSources`).
|
|
10
|
+
* - `tiers`: which model each of the app's agents thinks with, by tier
|
|
11
|
+
* ("Everyday", "Expert"), the first that applies of a space's pick, the
|
|
12
|
+
* space's tier, the org's pick, the org's tier and its plan's (the
|
|
13
|
+
* `planTier` resource: `@pairz/billing`'s credits fill it).
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { team, tiers } from "@pairz/team";
|
|
17
|
+
*
|
|
18
|
+
* plugins: [models, chat, ...access, team, tiers, app]
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Their front ends are `@pairz/team/web` (`teamWeb`, `tiersWeb`); their
|
|
22
|
+
* shapes, `@pairz/team/contract`.
|
|
23
|
+
*/
|
|
24
|
+
export * from "./team/mod.js";
|
|
25
|
+
export * from "./tiers/mod.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pairz/team",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0-rc.81",
|
|
4
|
+
"description": "Agents people make, and the models an org's agents think with (tiers). A Pairz plugin.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pairz",
|
|
7
|
+
"agents",
|
|
8
|
+
"ai",
|
|
9
|
+
"plugin"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/pairzhq/pairz/tree/main/packages/team#readme",
|
|
12
|
+
"bugs": "https://github.com/pairzhq/pairz/issues",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/pairzhq/pairz.git",
|
|
16
|
+
"directory": "packages/team"
|
|
17
|
+
},
|
|
5
18
|
"license": "MIT",
|
|
6
|
-
"
|
|
19
|
+
"type": "module",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=24"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"types": "./mod.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./mod.d.ts",
|
|
28
|
+
"default": "./mod.js"
|
|
29
|
+
},
|
|
30
|
+
"./web": {
|
|
31
|
+
"types": "./web.d.ts",
|
|
32
|
+
"default": "./web.js"
|
|
33
|
+
},
|
|
34
|
+
"./contract": {
|
|
35
|
+
"types": "./contract.d.ts",
|
|
36
|
+
"default": "./contract.js"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"README.md",
|
|
43
|
+
"WORDS.md",
|
|
44
|
+
"contract.d.ts",
|
|
45
|
+
"contract.js",
|
|
46
|
+
"mod.d.ts",
|
|
47
|
+
"mod.js",
|
|
48
|
+
"team",
|
|
49
|
+
"tiers",
|
|
50
|
+
"web.d.ts",
|
|
51
|
+
"web.js"
|
|
52
|
+
],
|
|
53
|
+
"dependencies": {},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@types/react": "^19.3.0",
|
|
56
|
+
"pairz": "1.0.0-rc.81",
|
|
57
|
+
"react": "^19.3.1",
|
|
58
|
+
"react-dom": "^19.3.1"
|
|
59
|
+
},
|
|
60
|
+
"peerDependenciesMeta": {
|
|
61
|
+
"@types/react": {
|
|
62
|
+
"optional": true
|
|
63
|
+
}
|
|
64
|
+
}
|
|
7
65
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const createAgentAction: import("pairz").ActionDef;
|
|
2
|
+
export declare const updateAgentAction: import("pairz").ActionDef;
|
|
3
|
+
export declare const deleteAgentAction: import("pairz").ActionDef;
|
|
4
|
+
export declare const restoreAgentAction: import("pairz").ActionDef;
|
|
5
|
+
export declare const resetAgentAction: import("pairz").ActionDef;
|
|
6
|
+
export declare const draftAgentAction: import("pairz").ActionDef;
|
|
7
|
+
/**
|
|
8
|
+
* `agent.sketch` `{ asked, kinds? }`: a whole agent drafted from what a person
|
|
9
|
+
* says it should do, for them to read before making it: its name, emoji,
|
|
10
|
+
* what it does, instructions, and of the `kinds` of work given (`{ kind,
|
|
11
|
+
* title, agents? }`), the closest (`like`). One quick model call (the app's
|
|
12
|
+
* `cheap` alias when it has one); nothing is made.
|
|
13
|
+
*/
|
|
14
|
+
export declare const sketchAgentAction: import("pairz").ActionDef;
|