@sixb/cli 0.1.25 → 0.2.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.
Files changed (109) hide show
  1. package/README.md +5 -5
  2. package/dist/commands/agent.d.ts +16 -0
  3. package/dist/commands/agent.d.ts.map +1 -0
  4. package/dist/commands/api.d.ts.map +1 -1
  5. package/dist/commands/check.d.ts.map +1 -1
  6. package/dist/commands/deploy.d.ts.map +1 -1
  7. package/dist/commands/dev-runner.d.ts +0 -1
  8. package/dist/commands/dev-runner.d.ts.map +1 -1
  9. package/dist/commands/dev.d.ts.map +1 -1
  10. package/dist/commands/env.d.ts +31 -0
  11. package/dist/commands/env.d.ts.map +1 -0
  12. package/dist/commands/worker-group.d.ts +0 -1
  13. package/dist/commands/worker-group.d.ts.map +1 -1
  14. package/dist/commands/worker.d.ts +0 -1
  15. package/dist/commands/worker.d.ts.map +1 -1
  16. package/dist/lib/command-line.d.ts +41 -6
  17. package/dist/lib/command-line.d.ts.map +1 -1
  18. package/dist/lib/deploy-release.d.ts +2 -0
  19. package/dist/lib/deploy-release.d.ts.map +1 -1
  20. package/dist/lib/deploy-source.d.ts +2 -0
  21. package/dist/lib/deploy-source.d.ts.map +1 -1
  22. package/dist/lib/env-config.d.ts +17 -0
  23. package/dist/lib/env-config.d.ts.map +1 -0
  24. package/dist/lib/env-file.d.ts +16 -0
  25. package/dist/lib/env-file.d.ts.map +1 -0
  26. package/dist/lib/github-ci.d.ts.map +1 -1
  27. package/dist/lib/hidden-prompt.d.ts +19 -0
  28. package/dist/lib/hidden-prompt.d.ts.map +1 -0
  29. package/dist/lib/runtime.d.ts +0 -1
  30. package/dist/lib/runtime.d.ts.map +1 -1
  31. package/dist/lib/worker-registry.d.ts +0 -1
  32. package/dist/lib/worker-registry.d.ts.map +1 -1
  33. package/dist/tui/app.d.ts +27 -0
  34. package/dist/tui/app.d.ts.map +1 -0
  35. package/dist/tui/brand.d.ts +7 -0
  36. package/dist/tui/brand.d.ts.map +1 -0
  37. package/dist/tui/computer.d.ts +8 -0
  38. package/dist/tui/computer.d.ts.map +1 -0
  39. package/dist/tui/connection.d.ts +45 -0
  40. package/dist/tui/connection.d.ts.map +1 -0
  41. package/dist/tui/context.d.ts +13 -0
  42. package/dist/tui/context.d.ts.map +1 -0
  43. package/dist/tui/format.d.ts +118 -0
  44. package/dist/tui/format.d.ts.map +1 -0
  45. package/dist/tui/index.d.ts +12 -0
  46. package/dist/tui/index.d.ts.map +1 -0
  47. package/dist/tui/markdown.d.ts +18 -0
  48. package/dist/tui/markdown.d.ts.map +1 -0
  49. package/dist/tui/palette.d.ts +25 -0
  50. package/dist/tui/palette.d.ts.map +1 -0
  51. package/dist/tui/parts.d.ts +74 -0
  52. package/dist/tui/parts.d.ts.map +1 -0
  53. package/dist/tui/runner.d.ts +75 -0
  54. package/dist/tui/runner.d.ts.map +1 -0
  55. package/dist/tui/settings.d.ts +56 -0
  56. package/dist/tui/settings.d.ts.map +1 -0
  57. package/dist/tui/slash.d.ts +14 -0
  58. package/dist/tui/slash.d.ts.map +1 -0
  59. package/dist/tui/theme.d.ts +39 -0
  60. package/dist/tui/theme.d.ts.map +1 -0
  61. package/dist/tui/transcript.d.ts +52 -0
  62. package/dist/tui/transcript.d.ts.map +1 -0
  63. package/dist/tui/ui.d.ts +42 -0
  64. package/dist/tui/ui.d.ts.map +1 -0
  65. package/dist/ui/deploy-screens.d.ts +3 -1
  66. package/dist/ui/deploy-screens.d.ts.map +1 -1
  67. package/dist/ui/env-screens.d.ts +37 -0
  68. package/dist/ui/env-screens.d.ts.map +1 -0
  69. package/package.json +19 -17
  70. package/src/commands/agent.ts +344 -0
  71. package/src/commands/api.ts +2 -1
  72. package/src/commands/check.ts +5 -1
  73. package/src/commands/deploy.ts +29 -3
  74. package/src/commands/dev-runner.ts +3 -5
  75. package/src/commands/dev.ts +3 -0
  76. package/src/commands/env.ts +422 -0
  77. package/src/commands/worker-group.ts +0 -4
  78. package/src/commands/worker.ts +0 -4
  79. package/src/index.tsx +95 -5
  80. package/src/lib/command-line.ts +111 -16
  81. package/src/lib/deploy-release.ts +3 -11
  82. package/src/lib/deploy-source.ts +10 -0
  83. package/src/lib/env-config.ts +96 -0
  84. package/src/lib/env-file.ts +104 -0
  85. package/src/lib/github-ci.ts +3 -1
  86. package/src/lib/hidden-prompt.ts +97 -0
  87. package/src/lib/runtime.ts +0 -2
  88. package/src/lib/worker-registry.ts +0 -2
  89. package/src/tui/app.tsx +1334 -0
  90. package/src/tui/brand.tsx +51 -0
  91. package/src/tui/computer.ts +91 -0
  92. package/src/tui/connection.ts +149 -0
  93. package/src/tui/context.tsx +149 -0
  94. package/src/tui/format.ts +477 -0
  95. package/src/tui/index.tsx +364 -0
  96. package/src/tui/markdown.ts +91 -0
  97. package/src/tui/palette.tsx +183 -0
  98. package/src/tui/parts.ts +274 -0
  99. package/src/tui/runner.ts +256 -0
  100. package/src/tui/settings.ts +176 -0
  101. package/src/tui/slash.ts +32 -0
  102. package/src/tui/theme.ts +111 -0
  103. package/src/tui/transcript.tsx +637 -0
  104. package/src/tui/ui.tsx +177 -0
  105. package/src/ui/deploy-screens.ts +12 -1
  106. package/src/ui/env-screens.ts +81 -0
  107. package/dist/lib/agent-turn-timeout.d.ts +0 -8
  108. package/dist/lib/agent-turn-timeout.d.ts.map +0 -1
  109. package/src/lib/agent-turn-timeout.ts +0 -46
@@ -0,0 +1,118 @@
1
+ import type { ApprovalOutcome, Part } from "./parts";
2
+ type ToolPart = Extract<Part, {
3
+ readonly kind: "tool";
4
+ }>;
5
+ /** A tool call as one line: what it did, then what it acted on. */
6
+ export interface ToolLine {
7
+ readonly verb: string;
8
+ readonly detail: string;
9
+ /** A few lines of what came back, when they say something the line does not. */
10
+ readonly preview?: readonly string[];
11
+ /** A short outcome beside the line: `exit 1`, `3 lines`. */
12
+ readonly note?: string;
13
+ readonly failed?: boolean;
14
+ /** A call the API held for the person's approval: neither done nor failed. */
15
+ readonly held?: boolean;
16
+ /** A shell command, shown whole as the call's panel. */
17
+ readonly command?: string;
18
+ }
19
+ /** `outcomes` says how the held calls ended, by approval id: a decided call is no longer held. */
20
+ export declare function toolLine(part: ToolPart, outcomes?: ReadonlyMap<string, ApprovalOutcome>): ToolLine;
21
+ /** Why a run failed, in a line; a conversation too long for its model says how to go on. */
22
+ export declare function runFailureText(error: {
23
+ readonly code: string;
24
+ readonly message: string;
25
+ }): string;
26
+ /** A part of what a conversation uses, as the API names it. */
27
+ export type ContextPartName = "system" | "instructions" | "memory" | "skills" | "ontology" | "tools" | "summary" | "messages" | "toolResults" | "files";
28
+ /** What the status line and `/context` need of a conversation's context against its limits. */
29
+ export interface ContextUse {
30
+ /** The model the limits are this one's. */
31
+ readonly model?: {
32
+ readonly provider: string;
33
+ readonly modelId: string;
34
+ };
35
+ readonly windowTokens?: number;
36
+ readonly limitTokens: number;
37
+ readonly usedTokens?: number;
38
+ readonly parts?: readonly {
39
+ readonly part: ContextPartName;
40
+ readonly tokens: number;
41
+ }[];
42
+ readonly lastCall?: {
43
+ readonly inputTokens: number;
44
+ readonly cacheReadInputTokens?: number;
45
+ };
46
+ readonly lastCompaction?: {
47
+ readonly createdAt: string;
48
+ readonly estimatedInputTokensBefore: number;
49
+ readonly estimatedInputTokensAfter: number;
50
+ };
51
+ }
52
+ /** How full the context is: amber from 80% of the model's limit, red past it. */
53
+ export type ContextTone = "quiet" | "near" | "over";
54
+ /**
55
+ * The context as the status line shows it, `ctx 38k/100k · 92% cached`, then shorter where room is
56
+ * short: `ctx 38k/100k`, then `ctx 21%`. Undefined before the first answer.
57
+ */
58
+ export declare function contextStatus(context: ContextUse): {
59
+ readonly text: string;
60
+ readonly short: string;
61
+ readonly shortest: string;
62
+ readonly tone: ContextTone;
63
+ } | undefined;
64
+ /**
65
+ * What of the context fits at the end of a status line whose items take `columns` of `room`: it
66
+ * whole, without the cache share, its share alone, or nothing, so the line never wraps.
67
+ */
68
+ export declare function fittedContextText(context: {
69
+ readonly text: string;
70
+ readonly short: string;
71
+ readonly shortest: string;
72
+ }, columns: number, room: number): string | undefined;
73
+ /** One row of `/context`: a part, the room left, or the room kept for the answer. */
74
+ export interface ContextRow {
75
+ readonly label: string;
76
+ readonly tokens: string;
77
+ /** Its share of what the conversation uses; none for the room left or kept. */
78
+ readonly share?: string;
79
+ /** A part's tiles: its share of what the conversation uses, out of the row's. */
80
+ readonly tiles: number;
81
+ readonly kind: "part" | "free" | "reserved";
82
+ }
83
+ /**
84
+ * What `/context` shows: the use against the limit, the window as one bar of `columns.bar` tiles
85
+ * (used, free, kept for the answer), then a row per part with its share in up to `columns.row`
86
+ * tiles, the room left and the room kept for the answer, and when it was last condensed.
87
+ * Undefined before the first answer.
88
+ */
89
+ export declare function contextBreakdown(context: ContextUse, columns: {
90
+ readonly bar: number;
91
+ readonly row: number;
92
+ }, now?: number): {
93
+ readonly headline: string;
94
+ readonly share: string;
95
+ readonly tone: ContextTone;
96
+ /** What a conversation near or past its limit is about to go through. */
97
+ readonly warning?: string;
98
+ readonly bar: {
99
+ readonly used: number;
100
+ readonly free: number;
101
+ readonly reserved: number;
102
+ };
103
+ readonly rows: readonly ContextRow[];
104
+ readonly notes: readonly string[];
105
+ } | undefined;
106
+ /** `1m 04s`, `12.4s`, `820ms`. */
107
+ export declare function duration(ms: number): string;
108
+ /** A path with the home directory as `~`, and its middle elided past `max` characters. */
109
+ export declare function shortPath(path: string, home: string, max?: number): string;
110
+ /** `1 more line`, `3 more lines`. */
111
+ export declare function plural(count: number, noun: string): string;
112
+ /**
113
+ * A path as the person reads it: relative to the folder the agent works in, and the run's own
114
+ * files, kept outside it, as `run/…`.
115
+ */
116
+ export declare function friendlyPath(text: string, folder?: string): string;
117
+ export {};
118
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/tui/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,SAAS,C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AED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAUlE"}
@@ -0,0 +1,12 @@
1
+ /** Where the app writes what would otherwise draw over it: its runner's notes and errors. */
2
+ export declare const TUI_LOG: string;
3
+ /**
4
+ * `sixb` with no command: the full-screen app. It connects as the CLI's current profile and opens
5
+ * on a new conversation that runs in the folder it was started in.
6
+ */
7
+ export declare function runTui(options: {
8
+ readonly version: string;
9
+ readonly apiUrl?: string;
10
+ readonly profile?: string;
11
+ }): Promise<void>;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tui/index.tsx"],"names":[],"mappings":"AA8BA,6FAA6F;AAC7F,eAAO,MAAM,OAAO,QAAiC,CAAA;AAErD;;;GAGG;AACH,wBAAsB,MAAM,CAAC,OAAO,EAAE;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,OAAO,CAAC,IAAI,CAAC,CAiFhB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The markdown of an answer still being written, as it can be drawn without moving: what is on
3
+ * screen only ever grows. Raw markdown that the next characters would turn into something else is
4
+ * closed early or held back:
5
+ *
6
+ * - an emphasis or code span the last line opened is closed, so `**sum` is drawn bold now rather
7
+ * than as `**sum` that loses its two stars when `**` arrives;
8
+ * - a link waits for its label, then shows as that label until its address is complete: a
9
+ * terminal without clickable links draws the address after it, which would grow mid-line;
10
+ * - a last line holding only a block's marker (`##`, `-`, `2`, `>`) waits for its text;
11
+ * - a table waits until it is complete: its columns are sized to its widest cell, so every row
12
+ * could resize the ones above it;
13
+ * - so does a quote, whose text OpenTUI draws raw until it is highlighted.
14
+ *
15
+ * Inside an open code fence everything is code, drawn as it arrives.
16
+ */
17
+ export declare function steadyMarkdown(text: string): string;
18
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/tui/markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBnD"}
@@ -0,0 +1,25 @@
1
+ import type { TuiColors } from "./theme";
2
+ export interface PaletteItem {
3
+ readonly id: string;
4
+ readonly label: string;
5
+ /** Quiet text after the label: a model's tier, a conversation's age. */
6
+ readonly detail?: string;
7
+ /** A shortcut that does the same, shown on the right. */
8
+ readonly keys?: string;
9
+ readonly group?: string;
10
+ /** The current choice, marked. */
11
+ readonly current?: boolean;
12
+ run(): void;
13
+ }
14
+ /**
15
+ * A list to pick from, filtered as you type: commands, conversations, models. Opens centered over
16
+ * the screen; esc closes it.
17
+ */
18
+ export declare function Palette({ colors, title, items, placeholder, onClose, }: {
19
+ readonly colors: TuiColors;
20
+ readonly title: string;
21
+ readonly items: readonly PaletteItem[];
22
+ readonly placeholder: string;
23
+ readonly onClose: () => void;
24
+ }): import("react").ReactNode;
25
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tui/palette.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,yDAAyD;IACzD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,kCAAkC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,GAAG,IAAI,IAAI,CAAA;CACZ;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAC7B,6BA4IA"}
@@ -0,0 +1,74 @@
1
+ import type { AgentRunStreamEvent, ListAgentThreadMessagesResponses } from "@sixb/client";
2
+ export type StoredMessage = ListAgentThreadMessagesResponses[200]["messages"][number];
3
+ export type ToolState = "running" | "done" | "error";
4
+ export type Part = {
5
+ readonly kind: "text";
6
+ readonly text: string;
7
+ } | {
8
+ readonly kind: "reasoning";
9
+ readonly text: string;
10
+ readonly done: boolean;
11
+ } | {
12
+ readonly kind: "tool";
13
+ readonly id: string;
14
+ readonly name: string;
15
+ readonly state: ToolState;
16
+ readonly input?: unknown;
17
+ /** The input while the model still writes it, as JSON text. */
18
+ readonly inputText?: string;
19
+ readonly output?: unknown;
20
+ readonly error?: string;
21
+ } | {
22
+ readonly kind: "file";
23
+ readonly name: string;
24
+ readonly mediaType?: string;
25
+ };
26
+ type ApprovalOutcomePart = Extract<StoredMessage["parts"][number], {
27
+ type: "approval-outcome";
28
+ }>;
29
+ /** How a held call ended, as the message that resumed or followed its turn told the agent. */
30
+ export interface ApprovalOutcome {
31
+ readonly approvalId: string;
32
+ readonly status: ApprovalOutcomePart["status"];
33
+ readonly outcome?: ApprovalOutcomePart["outcome"];
34
+ }
35
+ export interface ShownMessage {
36
+ readonly id: string;
37
+ readonly role: "user" | "assistant";
38
+ readonly runId: string | null;
39
+ readonly parts: readonly Part[];
40
+ /** How the held calls before it ended: not shown, but the calls' own lines say it. */
41
+ readonly outcomes: readonly ApprovalOutcome[];
42
+ /** Its run condensed the conversation first; `contextFull` when the provider refused it whole. */
43
+ readonly compaction?: {
44
+ readonly contextFull: boolean;
45
+ };
46
+ readonly createdAt: string;
47
+ }
48
+ /** A stored message as shown: what is context for the agent alone stays hidden. */
49
+ export declare function shownMessage(message: StoredMessage): ShownMessage | null;
50
+ /** How each held call of a transcript ended, by its approval's id. */
51
+ export declare function approvalOutcomes(messages: readonly ShownMessage[]): ReadonlyMap<string, ApprovalOutcome>;
52
+ /** A run as it streams: its parts so far, and whether it still works. */
53
+ export interface LiveRun {
54
+ readonly runId: string;
55
+ readonly parts: readonly Part[];
56
+ readonly keys: readonly string[];
57
+ readonly step: number;
58
+ /** How many parts came before the current step: a step asked again drops the ones after. */
59
+ readonly stepStart: number;
60
+ readonly working: boolean;
61
+ readonly compacting: boolean;
62
+ /** The condensing follows a request the provider refused as too long: the turn goes on after. */
63
+ readonly contextFull: boolean;
64
+ /** Set once the run's answer is stored: the transcript then shows it. */
65
+ readonly finalized: boolean;
66
+ readonly finished?: {
67
+ readonly status: string;
68
+ readonly error?: string;
69
+ };
70
+ }
71
+ export declare function liveRun(runId: string): LiveRun;
72
+ export declare function reduceLive(state: LiveRun, event: AgentRunStreamEvent): LiveRun;
73
+ export {};
74
+ //# sourceMappingURL=parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../src/tui/parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,gCAAgC,EAEjC,MAAM,cAAc,CAAA;AAKrB,MAAM,MAAM,aAAa,GAAG,gCAAgC,CAAC,GAAG,CAAC,CAA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AA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACzE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAY9C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CA2B9E"}
@@ -0,0 +1,75 @@
1
+ import { type GetAgentThreadResponses } from "@sixb/client";
2
+ import type { ConversationAgentRunRecord } from "@sixb/core/storage";
3
+ import type { Connection } from "./connection";
4
+ /**
5
+ * What the agent's commands never read on this computer, whatever the folder: the CLI's own
6
+ * sign-in, and the credentials SSH and AWS keep.
7
+ */
8
+ export declare function deniedPaths(): readonly string[];
9
+ /**
10
+ * This computer as a runner: it claims its owner's turns from the project and runs them in the
11
+ * folder `sixb` was opened in, one at a time per turn, each until it ends or is stopped. While its
12
+ * session is open, the project knows `sixb` is open here, and the turns sent from elsewhere to the
13
+ * conversations of this folder run here too.
14
+ */
15
+ export declare class LocalRunner {
16
+ private readonly connection;
17
+ /** The folder `sixb` was opened in: its real path, as the project keeps it. */
18
+ readonly folder: string;
19
+ private readonly onFailure;
20
+ private readonly runner;
21
+ private readonly running;
22
+ private readonly elsewhereListeners;
23
+ private session;
24
+ /** The session's last call: its release follows a renewal, which would open it again. */
25
+ private lastCall;
26
+ constructor(connection: Connection,
27
+ /** The folder `sixb` was opened in: its real path, as the project keeps it. */
28
+ folder: string, onFailure: (error: unknown) => void);
29
+ /** Hear each turn sent from elsewhere as it starts to run here. Returns the unsubscribe. */
30
+ onElsewhere(listener: (run: ConversationAgentRunRecord) => void): () => void;
31
+ /** Whether this computer runs `runId` now. */
32
+ runs(runId: string): boolean;
33
+ /**
34
+ * Claim a queued turn and run it, unless this computer runs it already. Resolves once the turn
35
+ * ended here: false when it was not this computer's to run, or could not be claimed.
36
+ */
37
+ claim(runId: string, onClaimed?: (run: ConversationAgentRunRecord) => void): Promise<boolean>;
38
+ /**
39
+ * Hold this `sixb`'s session while it is open: the conversations of this folder read as online,
40
+ * and the turns waiting for them are claimed. Idempotent.
41
+ */
42
+ openSession(): void;
43
+ /** Close the session: the conversations of this folder read as offline at once. */
44
+ closeSession(): Promise<void>;
45
+ /**
46
+ * Claim a turn sent from elsewhere when this computer runs its conversation: its owner's, on this
47
+ * computer and in this folder, and still queued, while the session is open. A running turn is
48
+ * another sixb's, or one whose sixb closed, which the API ends interrupted: claiming it again
49
+ * would run its commands twice.
50
+ */
51
+ claimIfHere(threadId: string, runId?: string): Promise<void>;
52
+ /** Whether this `sixb` runs `thread`'s turns: its owner's, on this computer, in this folder. */
53
+ runsHere(thread: GetAgentThreadResponses[200], computerId: string): boolean;
54
+ /** After a stop was asked for: the turn hears it now, not at its next lease renewal. */
55
+ hearStop(runId: string): void;
56
+ /** Whether a turn runs here now. */
57
+ get busy(): boolean;
58
+ /**
59
+ * Stop every turn this computer runs, each ending interrupted with its end recorded, and close
60
+ * the session.
61
+ */
62
+ stop(): Promise<void>;
63
+ /** A turn this computer already runs joins that run, and is no news. */
64
+ private claimElsewhere;
65
+ }
66
+ /** Whether the person signed in owns `thread`: with sign-in off, the system owns what it starts. */
67
+ export declare function owns(connection: Pick<Connection, "user">, thread: Pick<GetAgentThreadResponses[200], "ownerPrincipal">): boolean;
68
+ /**
69
+ * A closed terminal, or a kill, ends sixb as quitting does: the turns running here stop, each
70
+ * ending interrupted with its end recorded, instead of renewing their lease from a process nobody
71
+ * sees, and the session closes. Then `exit`, after a bounded wait. Returns the removal of the
72
+ * handlers.
73
+ */
74
+ export declare function stopOnHangUp(runner: () => Pick<LocalRunner, "stop"> | null, exit: (signal: "SIGHUP" | "SIGTERM") => void): () => void;
75
+ //# sourceMappingURL=runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/t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,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlE,gGAAgG;IAChG,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAS3E,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI7B,oCAAoC;IACpC,IAAI,IAAI,IAAI,OAAO,CAElB;IAED;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3B,wEAAwE;IACxE,OAAO,CAAC,cAAc;CAKvB;AAED,oGAAoG;AACpG,wBAAgB,IAAI,CAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EACpC,MAAM,EAAE,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,gBAAgB,CAAC,GAC3D,OAAO,CAKT;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,IAAI,EAC9C,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,GAC3C,MAAM,IAAI,CAuBZ"}
@@ -0,0 +1,56 @@
1
+ import type { ListModelsResponses } from "@sixb/client";
2
+ export type ApprovalMode = "manual" | "accept-edits" | "auto";
3
+ export type Place = "computer" | "cloud";
4
+ export type LanguageModel = ListModelsResponses[200]["language"][number];
5
+ export type ReasoningLevel = LanguageModel["reasoningLevels"][number];
6
+ /** What the next message is sent with. Remembered between sessions, per computer. */
7
+ export interface Settings {
8
+ /** Where a new conversation runs; a conversation keeps where it started. */
9
+ readonly place: Place;
10
+ /** The mode a new conversation starts in; in a conversation, the thread's applies. */
11
+ readonly approvalMode: ApprovalMode;
12
+ /** A model the person picked; absent follows the project: Auto with tiers, else its default. */
13
+ readonly model?: {
14
+ readonly provider: string;
15
+ readonly modelId: string;
16
+ };
17
+ readonly reasoning?: ReasoningLevel;
18
+ /**
19
+ * Whether your messages from the web, or another device, run in this folder: while it is on,
20
+ * `sixb` tells the project it is open here, and runs the turns sent to its conversations here.
21
+ * Kept per folder, apart from the settings every `sixb` rewrites: see {@link rememberWebMessages}.
22
+ */
23
+ readonly continueFromWeb: boolean;
24
+ }
25
+ export declare const DEFAULT_SETTINGS: Settings;
26
+ export declare const APPROVAL_MODES: readonly {
27
+ readonly mode: ApprovalMode;
28
+ readonly label: string;
29
+ readonly description: string;
30
+ }[];
31
+ export declare function approvalLabel(mode: ApprovalMode): string;
32
+ /** What this computer is called where the person picks where a conversation runs. */
33
+ export declare function computerName(): string;
34
+ export declare function placeLabel(place: Place): string;
35
+ /**
36
+ * Keep the choice for this folder alone. Reads the file first, as another `sixb` may have written
37
+ * it, and refuses one it can't read rather than lose the other folders' choices. Written whole, so
38
+ * no reader ever finds half of it.
39
+ */
40
+ export declare function rememberWebMessages(folder: string, on: boolean): Promise<void>;
41
+ export declare function loadSettings(folder: string): Promise<Settings>;
42
+ export declare function saveSettings(settings: Settings): Promise<void>;
43
+ /** The model the next message runs on, as the composer names it. */
44
+ export declare function modelLabel(models: readonly LanguageModel[], settings: Settings): {
45
+ readonly name: string;
46
+ readonly reasoning?: string;
47
+ };
48
+ /** What a message asks the server for: only what the person chose. */
49
+ export declare function messageSelection(models: readonly LanguageModel[], settings: Settings): {
50
+ readonly model?: {
51
+ provider: string;
52
+ modelId: string;
53
+ };
54
+ readonly reasoning?: ReasoningLevel;
55
+ };
56
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/tui/settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAGvD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAA;AAC7D,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,OAAO,CAA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AY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAKpE;AAED,oEAAoE;AACpE,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,QAAQ,EAAE,QAAQ,GACjB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAexD;AAED,sEAAsE;AACtE,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,QAAQ,EAAE,QAAQ,GACjB;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAA;CAAE,CAiBjG"}
@@ -0,0 +1,14 @@
1
+ /** A command typed in the composer, as `/model`. */
2
+ export interface SlashCommand {
3
+ readonly name: string;
4
+ readonly description: string;
5
+ run(): void;
6
+ }
7
+ /** The commands a composer's text starts to name: all of them for a lone `/`. */
8
+ export declare function slashMatches(commands: readonly SlashCommand[], text: string): readonly SlashCommand[];
9
+ /**
10
+ * The command a message runs when it is sent: the one chosen in the menu its text opens, the first
11
+ * when none was. Undefined for anything else, which is sent to the agent.
12
+ */
13
+ export declare function pickSlash(commands: readonly SlashCommand[], text: string, chosen?: number): SlashCommand | undefined;
14
+ //# sourceMappingURL=slash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slash.d.ts","sourceRoot":"","sources":["../../src/tui/slash.ts"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,GAAG,IAAI,IAAI,CAAA;CACZ;AAED,iFAAiF;AACjF,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,SAAS,YAAY,EAAE,EACjC,IAAI,EAAE,MAAM,GACX,SAAS,YAAY,EAAE,CAIzB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,SAAS,YAAY,EAAE,EACjC,IAAI,EAAE,MAAM,EACZ,MAAM,SAAI,GACT,YAAY,GAAG,SAAS,CAG1B"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The full-screen app's colors. It paints no background of its own: the terminal's shows through,
3
+ * and panels are the terminal's background with a little of its foreground mixed in, so they sit
4
+ * right on any theme. Blue is for what is live or chosen, amber for what waits on you.
5
+ */
6
+ export interface TuiColors {
7
+ /** Always the terminal's own. */
8
+ readonly background: string;
9
+ /** Panels: the composer, a user's message, a dialog. */
10
+ readonly surface: string;
11
+ /** A panel's selected row. */
12
+ readonly raised: string;
13
+ readonly border: string;
14
+ readonly text: string;
15
+ readonly muted: string;
16
+ readonly faint: string;
17
+ readonly blue: string;
18
+ readonly water: readonly string[];
19
+ /** The wordmark's blues, palest first, deep enough to read on this background. */
20
+ readonly wordmark: readonly string[];
21
+ /** Inline code in the agent's answers. */
22
+ readonly code: string;
23
+ readonly green: string;
24
+ readonly amber: string;
25
+ readonly red: string;
26
+ }
27
+ /** What the terminal says its own colors are, when it answers. */
28
+ export interface TerminalColors {
29
+ readonly background: string;
30
+ readonly foreground: string;
31
+ }
32
+ /**
33
+ * The colors for this terminal: from its own background and foreground when it reports them, else
34
+ * Sixb's night or day colors for the mode it reports.
35
+ */
36
+ export declare function tuiColors(mode: "light" | "dark" | null, terminal?: TerminalColors | null): TuiColors;
37
+ /** `amount` of `to` mixed into `from`, both `#rrggbb`. */
38
+ export declare function mix(from: string, to: string, amount: number): string;
39
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB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ses } from "@sixb/client";
4
+ import { type LiveRun, type ShownMessage } from "./parts";
5
+ import type { TuiColors } from "./theme";
6
+ export type Run = ListAgentThreadRunsResponses[200]["runs"][number];
7
+ export type Approval = ListAgentThreadApprovalsResponses[200]["approvals"][number];
8
+ /** How a turn's model is named under its answer: its catalog name, else its id. */
9
+ export type ModelNames = ReadonlyMap<string, string>;
10
+ export declare function Transcript({ colors, syntax, messages, runs, live, approvals, modelNames, computerRuns, width, folder, approvalChoice, }: {
11
+ readonly colors: TuiColors;
12
+ readonly syntax: SyntaxStyle;
13
+ readonly messages: readonly ShownMessage[];
14
+ readonly runs: readonly Run[];
15
+ readonly live: LiveRun | null;
16
+ readonly approvals: readonly Approval[];
17
+ readonly modelNames: ModelNames;
18
+ /** Whether the thread's turns run on its owner's computer. */
19
+ readonly computerRuns: boolean;
20
+ /** The terminal's width: rows that must stay one line are cut to it. */
21
+ readonly width: number;
22
+ /** The folder a computer's turns work in: paths in it are shown relative to it. */
23
+ readonly folder?: string;
24
+ /** The choice the first waiting call's card shows chosen. */
25
+ readonly approvalChoice: number;
26
+ }): import("react").ReactNode;
27
+ /** How a call waiting for the person can be decided, in the order the card offers them. */
28
+ export declare const APPROVAL_CHOICES: readonly [{
29
+ readonly key: "y";
30
+ readonly label: "Allow";
31
+ readonly decision: "approve";
32
+ readonly always: false;
33
+ }, {
34
+ readonly key: "a";
35
+ readonly label: "Always in this thread";
36
+ readonly decision: "approve";
37
+ readonly always: true;
38
+ }, {
39
+ readonly key: "n";
40
+ readonly label: "Deny";
41
+ readonly decision: "deny";
42
+ readonly always: false;
43
+ }];
44
+ /** While a turn works: the spinner, how long, and how to stop it. */
45
+ export declare function Working({ colors, since, label, stopping, }: {
46
+ readonly colors: TuiColors;
47
+ readonly since: number;
48
+ readonly label: string;
49
+ /** Waiting for a second esc: the hint is the label then. */
50
+ readonly stopping?: boolean;
51
+ }): import("react").ReactNode;
52
+ //# sourceMappingURL=transcript.d.ts.map
@@ -0,0 +1 @@
1
+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,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,mFAAmF;IACnF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,6DAA6D;IAC7D,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAChC,6BAiEA;AAsYD,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAInB,CAAA;AA+DV,qEAAqE;AACrE,wBAAgB,OAAO,CAAC,EACtB,MAAM,EACN,KAAK,EACL,KAAK,EACL,QAAgB,GACjB,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B,6BAWA"}
@@ -0,0 +1,42 @@
1
+ import type { TuiColors } from "./theme";
2
+ export declare const BOLD: number;
3
+ export declare const ITALIC: number;
4
+ /**
5
+ * The focused composer's clear: ctrl+c empties a draft before it quits, and says whether there
6
+ * was one. The app's keys run before the composer's, so the app asks it.
7
+ */
8
+ export declare const ComposerDraft: import("react").Context<{
9
+ current: (() => boolean) | null;
10
+ }>;
11
+ /** One piece of the line under the composer, such as `This Mac` or `Ask first`. */
12
+ export interface StatusItem {
13
+ readonly text: string;
14
+ readonly color: string;
15
+ readonly bold?: boolean;
16
+ }
17
+ /**
18
+ * Where a message is written: a panel with Sixb's blue bar, the line it will be sent with under
19
+ * it. `onSubmit` takes the text; the composer clears once it was taken.
20
+ */
21
+ export declare function Composer({ colors, placeholder, status, focused, accent, allowEmpty, onSubmit, onChange, }: {
22
+ readonly colors: TuiColors;
23
+ readonly placeholder: string;
24
+ readonly status: readonly StatusItem[];
25
+ readonly focused: boolean;
26
+ /** The bar's color: blue, or amber while something waits on the person. */
27
+ readonly accent?: string;
28
+ /** Enter sends an empty composer too, as a form's default does. */
29
+ readonly allowEmpty?: boolean;
30
+ readonly onSubmit: (text: string) => boolean | Promise<boolean>;
31
+ /** The text as it is typed. */
32
+ readonly onChange?: (text: string) => void;
33
+ }): import("react").ReactNode;
34
+ /** Key hints: `tab where shift+tab permissions ctrl+p commands`. */
35
+ export declare function KeyHints({ colors, items, }: {
36
+ readonly colors: TuiColors;
37
+ readonly items: readonly (readonly [key: string, label: string])[];
38
+ }): import("react").ReactNode;
39
+ export declare function useSpinner(active: boolean): string;
40
+ /** Re-renders every `ms` while `active`, for a clock. */
41
+ export declare function useNow(ms: number, active?: boolean): number;
42
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/tui/ui.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,IAAI,QAAuC,CAAA;AACxD,eAAO,MAAM,MAAM,QAAyC,CAAA;AAa5D;;;GAGG;AACH,eAAO,MAAM,aAAa;aAA4B,CAAC,MAAM,OAAO,CAAC,GAAG,IAAI;EAAsB,CAAA;AAElG,mFAAmF;AACnF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,WAAW,EACX,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,mEAAmE;IACnE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/D,+BAA+B;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C,6BA4EA;AAED,sEAAsE;AACtE,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,CAAA;CACnE,6BAYA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAQlD;AAED,yDAAyD;AACzD,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,MAAM,CAQxD"}
@@ -6,9 +6,11 @@ export declare function deployReleaseView({ release, configPath, }: {
6
6
  /** The plain line a finished step prints where there is no live view, and in CI logs. */
7
7
  export declare function deployStepLine(label: string, seconds: string): string;
8
8
  /** How a deploy ended. What was deployed, and where, opened the deploy's output already. */
9
- export declare function deployCompleteView({ release, seconds, }: {
9
+ export declare function deployCompleteView({ release, seconds, keptEnv, }: {
10
10
  release: DeployRelease;
11
11
  seconds?: number;
12
+ /** The deploy couldn't update the server's `.env`, so this release runs on its current values. */
13
+ keptEnv?: boolean;
12
14
  }): string;
13
15
  export declare function deployStatusView({ name, location, status, }: {
14
16
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-screens.d.ts","sourceRoot":"","sources":["../../src/ui/deploy-screens.ts"],"names":[],"mappings":"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