@kapybara/zerosub 1.3.0 → 1.5.0
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 +26 -8
- package/client/accounts-surface.tsx +11 -2
- package/client/pills.ts +14 -5
- package/client/settings-screen.tsx +8 -1
- package/client/switch-row.tsx +2 -4
- package/package.json +1 -1
- package/server/account-identity.ts +22 -0
- package/server/adapter.ts +7 -4
- package/server/claude.ts +6 -6
- package/server/codex.ts +34 -7
- package/server/continuations.ts +580 -0
- package/server/handoff.ts +52 -8
- package/server/limits.ts +24 -4
- package/server/routing.ts +33 -2
- package/server/service.ts +215 -30
- package/server/state.ts +34 -0
- package/server/usage.ts +8 -0
- package/shared/format.ts +11 -1
- package/shared/model.ts +14 -0
- package/shared/preferences.ts +6 -1
- package/shared/rpc.ts +1 -1
package/shared/preferences.ts
CHANGED
|
@@ -22,10 +22,15 @@ export const preferences = defineSettings({
|
|
|
22
22
|
* open at the time. Codex threads never move either way.
|
|
23
23
|
*/
|
|
24
24
|
moveAgentsOnDefaultChange: z.boolean().default(true),
|
|
25
|
-
/** New agents
|
|
25
|
+
/** New agents choose an account by usage instead of the default. */
|
|
26
26
|
balanceNewAgents: z.boolean().default(false),
|
|
27
27
|
/** When every account of a provider is at its limit, spend a banked reset instead of stopping. */
|
|
28
28
|
autoRedeem: z.boolean().default(false),
|
|
29
|
+
/**
|
|
30
|
+
* A ChatGPT account at its limit stays in use while it has ChatGPT credits, so new agents may
|
|
31
|
+
* spend paid credits even while another account still has room. A limit a turn ran into stands.
|
|
32
|
+
*/
|
|
33
|
+
useCredits: z.boolean().default(false),
|
|
29
34
|
/**
|
|
30
35
|
* When every account of a provider is at its limit, carry the chat on in a new agent on the
|
|
31
36
|
* other provider (Claude ↔ ChatGPT), in a mode no more permissive than the original's.
|
package/shared/rpc.ts
CHANGED
|
@@ -48,7 +48,7 @@ export const ReopenSummarySchema = z.object({
|
|
|
48
48
|
/** Busy agents move when their current turn ends. */
|
|
49
49
|
deferred: z.array(z.string()),
|
|
50
50
|
failed: z.array(z.object({ agentId: z.string(), error: z.string() })),
|
|
51
|
-
/** A conversation that could not move in place and continues in this
|
|
51
|
+
/** A conversation that could not move in place and continues in this account's agent instead. */
|
|
52
52
|
continuedIn: z.object({ agentId: z.string(), title: z.string() }).nullable().default(null),
|
|
53
53
|
});
|
|
54
54
|
export type ReopenSummary = z.infer<typeof ReopenSummarySchema>;
|