@pairz/team 1.0.0-rc.86 → 1.0.0-rc.87

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/WORDS.md CHANGED
@@ -163,6 +163,7 @@ Generated: `deno run -A packages/team/tests/words.ts`.
163
163
  | `team.paidCredits` | Credits · {price} |
164
164
  | `team.paidFallBack` | Members without {plans} fall back to the next model |
165
165
  | `team.paidYours` | Your {plan} · $0 |
166
+ | `team.paidYoursComputer` | Your {plan} · computer time only |
166
167
  | `team.paletteAgents` | Agents |
167
168
  | `team.paletteCreate` | Create |
168
169
  | `team.paletteThisAgent` | This agent |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairz/team",
3
- "version": "1.0.0-rc.86",
3
+ "version": "1.0.0-rc.87",
4
4
  "description": "Agents people make, and the models an org's agents think with (tiers). A Pairz plugin.",
5
5
  "keywords": [
6
6
  "pairz",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {},
54
54
  "peerDependencies": {
55
55
  "@types/react": "^19.3.0",
56
- "pairz": "1.0.0-rc.86",
56
+ "pairz": "1.0.0-rc.87",
57
57
  "react": "^19.3.1",
58
58
  "react-dom": "^19.3.1"
59
59
  },
@@ -10,8 +10,10 @@
10
10
  *
11
11
  * For a model people's turns run on their plans first (a tier's, `plans`),
12
12
  * it offers every model the org can run, each saying how it's paid for the
13
- * person looking: "Your Claude · $0" where a subscription of theirs runs it,
14
- * "Credits" where a key covers it, and for a model only plans run, "Members
13
+ * person looking: "Your Claude · $0" where a subscription of theirs runs it
14
+ * (on their own computer, or the server), "Your Claude · computer time only"
15
+ * where it runs through a cloud computer of theirs, whose time awake is
16
+ * charged, "Credits" where a key covers it, and for a model only plans run, "Members
15
17
  * without Claude fall back to the next model" (`members`: an org's tier, so
16
18
  * it can be chosen) or "Connect Claude to use" (`mine`: their own).
17
19
  */
@@ -28,8 +30,10 @@ export type Paid = "members" | "mine";
28
30
  export declare const choosable: (model: OfferedModel, plans?: Paid) => boolean;
29
31
  /**
30
32
  * How a model is paid for, for the person looking, where turns run on plans
31
- * first: their subscription ("Your Claude · $0"), else credits, at its price,
32
- * else, for a model only plans run, who falls back or what to connect.
33
+ * first: their subscription ("Your Claude · $0"; "Your Claude · computer
34
+ * time only" through a cloud computer of theirs, `yoursOn: "cloud"`), else
35
+ * credits, at its price, else, for a model only plans run, who falls back or
36
+ * what to connect.
33
37
  */
34
38
  export declare function paidSaid(model: OfferedModel, plans: Paid): string | undefined;
35
39
  export declare function ModelPicker({ value, onChange, call, disabled, id, look, label, plans }: {
@@ -11,8 +11,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
11
11
  *
12
12
  * For a model people's turns run on their plans first (a tier's, `plans`),
13
13
  * it offers every model the org can run, each saying how it's paid for the
14
- * person looking: "Your Claude · $0" where a subscription of theirs runs it,
15
- * "Credits" where a key covers it, and for a model only plans run, "Members
14
+ * person looking: "Your Claude · $0" where a subscription of theirs runs it
15
+ * (on their own computer, or the server), "Your Claude · computer time only"
16
+ * where it runs through a cloud computer of theirs, whose time awake is
17
+ * charged, "Credits" where a key covers it, and for a model only plans run, "Members
16
18
  * without Claude fall back to the next model" (`members`: an org's tier, so
17
19
  * it can be chosen) or "Connect Claude to use" (`mine`: their own).
18
20
  */
@@ -28,12 +30,17 @@ const reachable = (provider, plans) => provider.ready ||
28
30
  (!!plans && (!!provider.yours?.length || (plans === "members" && !!provider.plans?.length)));
29
31
  /**
30
32
  * How a model is paid for, for the person looking, where turns run on plans
31
- * first: their subscription ("Your Claude · $0"), else credits, at its price,
32
- * else, for a model only plans run, who falls back or what to connect.
33
+ * first: their subscription ("Your Claude · $0"; "Your Claude · computer
34
+ * time only" through a cloud computer of theirs, `yoursOn: "cloud"`), else
35
+ * credits, at its price, else, for a model only plans run, who falls back or
36
+ * what to connect.
33
37
  */
34
38
  export function paidSaid(model, plans) {
35
- if (model.yours)
36
- return say("paidYours", { plan: model.yours });
39
+ if (model.yours) {
40
+ return say(model.yoursOn === "cloud" ? "paidYoursComputer" : "paidYours", {
41
+ plan: model.yours,
42
+ });
43
+ }
37
44
  if (model.ready) {
38
45
  const cost = priced(model);
39
46
  return model.ownKey ? cost : cost ? say("paidCredits", { price: cost }) : say("credits");
@@ -1,5 +1,5 @@
1
1
  /** Every word Team's web front end shows, to be changed by the app (`team.<key>`). */
2
2
  import { type Phrase } from "pairz/web/words";
3
- export declare const say: import("pairz/web/words").Say<"add" | "remove" | "instructions" | "model" | "effort" | "tools" | "replace" | "cancel" | "change" | "listJoin" | "listEnd" | "personalSpace" | "noSuchAgentTitle" | "noSuchAgent" | "noSuchAgentBody" | "goHome" | "partOfApp" | "madeIn" | "madeElsewhere" | "answersNewChatsHere" | "askAgent" | "edit" | "editAgent" | "moreMenu" | "makeAnswerIn" | "addToSpaceMenu" | "startFromIt" | "deleteMenu" | "addToTitle" | "addToNote" | "newLikeTitle" | "newLikeNote" | "newAgentIn" | "startingFrom" | "appAgentNotice" | "startFromShort" | "managersChangeIt" | "managersChangeItElsewhere" | "worksIn" | "addToSpace" | "answersNewChats" | "roleViewer" | "roleEditor" | "worksNowhere" | "modelAndTools" | "thinks" | "toolsLabel" | "noTools" | "showFewer" | "showAll" | "modelsThenJoin" | "changeAgent" | "keepsHandle" | "saveChanges" | "deleteTitle" | "deleteButton" | "deleteLeavesBold" | "deleteLeavesNamed" | "deleteLeaves" | "deleteGoneBold" | "deleteGone" | "deleteChatsBold" | "deleteChats" | "findSpace" | "spacesYouManage" | "justYou" | "keywordPersonal" | "deleteStepNote" | "deleteStepKeep" | "fieldName" | "calledIn" | "nameHint" | "namePlaceholder" | "emoji" | "noEmoji" | "anotherEmoji" | "otherEmoji" | "fieldDoes" | "doesHint" | "doesPlaceholder" | "modelHint" | "rewriteForMe" | "writeForMe" | "sayNameFirst" | "youArePlaceholder" | "youAreDefaultName" | "writingFor" | "draftNote" | "undo" | "instructionsHint" | "instructionsEmptyHint" | "toolsOf" | "toolsChooseDone" | "toolsChoose" | "toolsAll" | "toolsNone" | "toolsMore" | "newAgentForm" | "agentsYouKnow" | "startFrom" | "startBlank" | "worksInAs" | "belongsHint" | "createNamed" | "createAgent" | "worksNow" | "askHandle" | "readsOnly" | "makeAnswer" | "openPage" | "makeAnother" | "notYourSpace" | "archivedSpace" | "managersAdd" | "addAnAgentTitle" | "addAnAgentNote" | "oneOfApps" | "madeInOther" | "findAgent" | "findAgentKnown" | "knownIntro" | "addsAs" | "createNewAgent" | "createNewAgentBody" | "addAgentTo" | "noneCalled" | "allWorkHere" | "worksNowNames" | "paletteThisAgent" | "paletteThisSpace" | "paletteAgents" | "paletteCreate" | "makeNamedAnswerIn" | "makeNamedAnswer" | "keywordDefault" | "keywordAnswer" | "keywordNewChats" | "addNamedTo" | "addNamedNote" | "keywordMember" | "keywordJoin" | "keywordWork" | "editNamed" | "keywordChange" | "keywordInstructions" | "keywordRename" | "startNewFrom" | "keywordCopy" | "keywordLike" | "keywordCreate" | "addAnAgentTo" | "keywordInvite" | "keywordAgent" | "worksHere" | "newAgent" | "newAgentInHere" | "keywordMake" | "newAgentInStep" | "newAgentInNote" | "chooseModel" | "needsKey" | "yourKey" | "providerModels" | "searchModels" | "readyToUse" | "withOwnKey" | "providers" | "models" | "nothingMatches" | "allProviders" | "noKeyForProvider" | "apiKeyLabel" | "pasteIt" | "save" | "keyNote" | "orgKey" | "usesAppKey" | "useOwnKey" | "noCreditsUsed" | "priceLine" | "priceOwnKey" | "paidYours" | "paidCredits" | "credits" | "paidFallBack" | "paidConnect" | "yourPlan" | "contextSize" | "mediaImage" | "mediaPdf" | "mediaAudio" | "mediaVideo" | "reasoning" | "describeHint" | "describePlaceholder" | "fillMyself" | "draftIt" | "drafting" | "draftingWait" | "kindLabel" | "kindHint" | "kindLike" | "orgForm" | "orgJoins" | "back" | "addToTeamNamed" | "addToTeam" | "removeFromTeamMenu" | "changedForOrg" | "orgsTeam" | "tierModel" | "tierModelPlace" | "removeTeamTitle" | "removeButton" | "teamLeaves" | "teamLeavesBold" | "teamSaidStays" | "teamAddBack" | "teamDeleted">;
3
+ export declare const say: import("pairz/web/words").Say<"add" | "remove" | "instructions" | "model" | "effort" | "tools" | "replace" | "cancel" | "change" | "listJoin" | "listEnd" | "personalSpace" | "noSuchAgentTitle" | "noSuchAgent" | "noSuchAgentBody" | "goHome" | "partOfApp" | "madeIn" | "madeElsewhere" | "answersNewChatsHere" | "askAgent" | "edit" | "editAgent" | "moreMenu" | "makeAnswerIn" | "addToSpaceMenu" | "startFromIt" | "deleteMenu" | "addToTitle" | "addToNote" | "newLikeTitle" | "newLikeNote" | "newAgentIn" | "startingFrom" | "appAgentNotice" | "startFromShort" | "managersChangeIt" | "managersChangeItElsewhere" | "worksIn" | "addToSpace" | "answersNewChats" | "roleViewer" | "roleEditor" | "worksNowhere" | "modelAndTools" | "thinks" | "toolsLabel" | "noTools" | "showFewer" | "showAll" | "modelsThenJoin" | "changeAgent" | "keepsHandle" | "saveChanges" | "deleteTitle" | "deleteButton" | "deleteLeavesBold" | "deleteLeavesNamed" | "deleteLeaves" | "deleteGoneBold" | "deleteGone" | "deleteChatsBold" | "deleteChats" | "findSpace" | "spacesYouManage" | "justYou" | "keywordPersonal" | "deleteStepNote" | "deleteStepKeep" | "fieldName" | "calledIn" | "nameHint" | "namePlaceholder" | "emoji" | "noEmoji" | "anotherEmoji" | "otherEmoji" | "fieldDoes" | "doesHint" | "doesPlaceholder" | "modelHint" | "rewriteForMe" | "writeForMe" | "sayNameFirst" | "youArePlaceholder" | "youAreDefaultName" | "writingFor" | "draftNote" | "undo" | "instructionsHint" | "instructionsEmptyHint" | "toolsOf" | "toolsChooseDone" | "toolsChoose" | "toolsAll" | "toolsNone" | "toolsMore" | "newAgentForm" | "agentsYouKnow" | "startFrom" | "startBlank" | "worksInAs" | "belongsHint" | "createNamed" | "createAgent" | "worksNow" | "askHandle" | "readsOnly" | "makeAnswer" | "openPage" | "makeAnother" | "notYourSpace" | "archivedSpace" | "managersAdd" | "addAnAgentTitle" | "addAnAgentNote" | "oneOfApps" | "madeInOther" | "findAgent" | "findAgentKnown" | "knownIntro" | "addsAs" | "createNewAgent" | "createNewAgentBody" | "addAgentTo" | "noneCalled" | "allWorkHere" | "worksNowNames" | "paletteThisAgent" | "paletteThisSpace" | "paletteAgents" | "paletteCreate" | "makeNamedAnswerIn" | "makeNamedAnswer" | "keywordDefault" | "keywordAnswer" | "keywordNewChats" | "addNamedTo" | "addNamedNote" | "keywordMember" | "keywordJoin" | "keywordWork" | "editNamed" | "keywordChange" | "keywordInstructions" | "keywordRename" | "startNewFrom" | "keywordCopy" | "keywordLike" | "keywordCreate" | "addAnAgentTo" | "keywordInvite" | "keywordAgent" | "worksHere" | "newAgent" | "newAgentInHere" | "keywordMake" | "newAgentInStep" | "newAgentInNote" | "chooseModel" | "needsKey" | "yourKey" | "providerModels" | "searchModels" | "readyToUse" | "withOwnKey" | "providers" | "models" | "nothingMatches" | "allProviders" | "noKeyForProvider" | "apiKeyLabel" | "pasteIt" | "save" | "keyNote" | "orgKey" | "usesAppKey" | "useOwnKey" | "noCreditsUsed" | "priceLine" | "priceOwnKey" | "paidYours" | "paidYoursComputer" | "paidCredits" | "credits" | "paidFallBack" | "paidConnect" | "yourPlan" | "contextSize" | "mediaImage" | "mediaPdf" | "mediaAudio" | "mediaVideo" | "reasoning" | "describeHint" | "describePlaceholder" | "fillMyself" | "draftIt" | "drafting" | "draftingWait" | "kindLabel" | "kindHint" | "kindLike" | "orgForm" | "orgJoins" | "back" | "addToTeamNamed" | "addToTeam" | "removeFromTeamMenu" | "changedForOrg" | "orgsTeam" | "tierModel" | "tierModelPlace" | "removeTeamTitle" | "removeButton" | "teamLeaves" | "teamLeavesBold" | "teamSaidStays" | "teamAddBack" | "teamDeleted">;
4
4
  /** Every word of team's front end, by area (WORDS.md lists them). */
5
5
  export declare const PHRASES: Record<string, Record<string, Phrase>>;
@@ -201,6 +201,7 @@ const team = {
201
201
  priceOwnKey: "No credits used: your key, at {price}",
202
202
  // How a model is paid for, where turns run on people's plans first
203
203
  paidYours: "Your {plan} · $0",
204
+ paidYoursComputer: "Your {plan} · computer time only",
204
205
  paidCredits: "Credits · {price}",
205
206
  credits: "Credits",
206
207
  paidFallBack: "Members without {plans} fall back to the next model",