@sixb/cli 0.1.24 → 0.1.26
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 +5 -5
- package/dist/commands/agent.d.ts +16 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/dev-runner.d.ts +0 -1
- package/dist/commands/dev-runner.d.ts.map +1 -1
- package/dist/commands/worker-group.d.ts +0 -1
- package/dist/commands/worker-group.d.ts.map +1 -1
- package/dist/commands/worker.d.ts +0 -1
- package/dist/commands/worker.d.ts.map +1 -1
- package/dist/lib/command-line.d.ts +16 -6
- package/dist/lib/command-line.d.ts.map +1 -1
- package/dist/lib/deploy-release.d.ts.map +1 -1
- package/dist/lib/github-ci.d.ts.map +1 -1
- package/dist/lib/runtime.d.ts +0 -1
- package/dist/lib/runtime.d.ts.map +1 -1
- package/dist/lib/worker-registry.d.ts +0 -1
- package/dist/lib/worker-registry.d.ts.map +1 -1
- package/dist/tui/app.d.ts +19 -0
- package/dist/tui/app.d.ts.map +1 -0
- package/dist/tui/brand.d.ts +7 -0
- package/dist/tui/brand.d.ts.map +1 -0
- package/dist/tui/computer.d.ts +3 -0
- package/dist/tui/computer.d.ts.map +1 -0
- package/dist/tui/connection.d.ts +45 -0
- package/dist/tui/connection.d.ts.map +1 -0
- package/dist/tui/folders.d.ts +7 -0
- package/dist/tui/folders.d.ts.map +1 -0
- package/dist/tui/format.d.ts +33 -0
- package/dist/tui/format.d.ts.map +1 -0
- package/dist/tui/index.d.ts +12 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/palette.d.ts +25 -0
- package/dist/tui/palette.d.ts.map +1 -0
- package/dist/tui/parts.d.ts +66 -0
- package/dist/tui/parts.d.ts.map +1 -0
- package/dist/tui/runner.d.ts +52 -0
- package/dist/tui/runner.d.ts.map +1 -0
- package/dist/tui/settings.d.ts +44 -0
- package/dist/tui/settings.d.ts.map +1 -0
- package/dist/tui/slash.d.ts +14 -0
- package/dist/tui/slash.d.ts.map +1 -0
- package/dist/tui/theme.d.ts +39 -0
- package/dist/tui/theme.d.ts.map +1 -0
- package/dist/tui/transcript.d.ts +52 -0
- package/dist/tui/transcript.d.ts.map +1 -0
- package/dist/tui/ui.d.ts +35 -0
- package/dist/tui/ui.d.ts.map +1 -0
- package/package.json +17 -15
- package/src/commands/agent.ts +337 -0
- package/src/commands/dev-runner.ts +0 -4
- package/src/commands/worker-group.ts +0 -4
- package/src/commands/worker.ts +0 -4
- package/src/index.tsx +57 -5
- package/src/lib/command-line.ts +52 -15
- package/src/lib/deploy-release.ts +0 -11
- package/src/lib/github-ci.ts +3 -1
- package/src/lib/runtime.ts +0 -2
- package/src/lib/worker-registry.ts +0 -2
- package/src/tui/app.tsx +1198 -0
- package/src/tui/brand.tsx +51 -0
- package/src/tui/computer.ts +54 -0
- package/src/tui/connection.ts +149 -0
- package/src/tui/folders.ts +41 -0
- package/src/tui/format.ts +260 -0
- package/src/tui/index.tsx +353 -0
- package/src/tui/palette.tsx +183 -0
- package/src/tui/parts.ts +254 -0
- package/src/tui/runner.ts +173 -0
- package/src/tui/settings.ts +127 -0
- package/src/tui/slash.ts +32 -0
- package/src/tui/theme.ts +111 -0
- package/src/tui/transcript.tsx +555 -0
- package/src/tui/ui.tsx +148 -0
- package/dist/lib/agent-turn-timeout.d.ts +0 -8
- package/dist/lib/agent-turn-timeout.d.ts.map +0 -1
- package/src/lib/agent-turn-timeout.ts +0 -46
package/README.md
CHANGED
|
@@ -39,6 +39,9 @@ bun add @sixb/cli
|
|
|
39
39
|
| `sixb workflows ...` | Discover and start workflows |
|
|
40
40
|
| `sixb workflow-runs ...` | Inspect workflow execution history |
|
|
41
41
|
| `sixb files ...` | Upload and download files |
|
|
42
|
+
| `sixb datasets ...` | Read datasets, their versions and rows |
|
|
43
|
+
| `sixb syncs ...`, `sixb sync-runs ...` | List the syncs you may run and their history |
|
|
44
|
+
| `sixb pipelines ...`, `sixb pipeline-runs ...` | List the pipelines you may run and their runs |
|
|
42
45
|
| `sixb token list` | List personal access tokens |
|
|
43
46
|
| `sixb token create` | Create a personal access token |
|
|
44
47
|
| `sixb token revoke <id>` | Revoke a personal access token |
|
|
@@ -111,7 +114,6 @@ supervisor disappears, so a stuck startup cannot leave its process group running
|
|
|
111
114
|
| `--api-port <port>` | `dev`, `api` | `port + 1` | API/auth/docs/WebSocket port |
|
|
112
115
|
| `--api-host <host>` | `dev`, `api` | `--host` | API bind host |
|
|
113
116
|
| `--api-public-origin <origin>` | browser/API commands | dev: `http://localhost:<api-port>` | Public API origin |
|
|
114
|
-
| `--agent-turn-timeout <duration>` | `dev`, agent worker/group | `SIXB_AGENT_TURN_TIMEOUT` or `10m` | Agent turn wall-clock budget, e.g. `30s`, `10m`, or `1h` |
|
|
115
117
|
| `--vector-concurrency <count>` | `dev`, projection worker/group | `SIXB_VECTOR_CONCURRENCY` or `4` | Concurrent embedding calls for vector indexing |
|
|
116
118
|
| `--subagent-concurrency <count>` | `dev`, agent worker/group | `SIXB_SUBAGENT_CONCURRENCY` or `4` | Child agents an agent worker runs at once |
|
|
117
119
|
| `--subagent-concurrency-per-run <count>` | `dev`, agent worker/group | `SIXB_SUBAGENT_CONCURRENCY_PER_RUN` or `4` | Child agents one Agent turn keeps at work at once |
|
|
@@ -410,8 +412,7 @@ sixb worker-group sync pipeline projection
|
|
|
410
412
|
|
|
411
413
|
`sixb worker-group` with no positional types starts every registered queue worker type in one
|
|
412
414
|
process, including the agent worker when agents and agent storage are configured. Agent workers
|
|
413
|
-
require the API origin through `--api-public-origin` or `SIXB_API_PUBLIC_ORIGIN`.
|
|
414
|
-
wall-clock budget with `--agent-turn-timeout` or `SIXB_AGENT_TURN_TIMEOUT`; it defaults to 10 minutes.
|
|
415
|
+
require the API origin through `--api-public-origin` or `SIXB_API_PUBLIC_ORIGIN`.
|
|
415
416
|
|
|
416
417
|
`sixb dev` uses separated local ports by default:
|
|
417
418
|
|
|
@@ -434,6 +435,5 @@ enabled.
|
|
|
434
435
|
worker process owns exactly one queue type. `sixb worker-group [types...]` co-hosts several queue
|
|
435
436
|
workers in a single process for constrained deployments; with no positional types it starts every
|
|
436
437
|
registered worker type. Agent workers require `--api-public-origin` or
|
|
437
|
-
`SIXB_API_PUBLIC_ORIGIN`.
|
|
438
|
-
`SIXB_AGENT_TURN_TIMEOUT`. Both commands reject the built-in `InMemoryQueues` — use `sixb dev`,
|
|
438
|
+
`SIXB_API_PUBLIC_ORIGIN`. Both commands reject the built-in `InMemoryQueues` — use `sixb dev`,
|
|
439
439
|
which co-hosts workers in-process.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `sixb agent "<message>"`: one message to the agent, answered in the terminal. The turn runs on
|
|
3
|
+
* this computer in the current folder, or in the cloud with `--cloud`; its steps go to stderr and
|
|
4
|
+
* its answer to stdout, so the answer can be piped.
|
|
5
|
+
*/
|
|
6
|
+
export declare function runAgent(options: {
|
|
7
|
+
readonly text: readonly string[];
|
|
8
|
+
readonly thread?: string;
|
|
9
|
+
readonly cloud: boolean;
|
|
10
|
+
/** The turn's mode; without it, the person's in the thread applies, as for a message in the web. */
|
|
11
|
+
readonly approvalMode?: string;
|
|
12
|
+
readonly json: boolean;
|
|
13
|
+
readonly apiUrl?: string;
|
|
14
|
+
readonly profile?: string;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/commands/agent.ts"],"names":[],"mappings":"AA+BA;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE;IACtC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,oGAAoG;IACpG,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,OAAO,CAAC,IAAI,CAAC,CAgGhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-runner.d.ts","sourceRoot":"","sources":["../../src/commands/dev-runner.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"dev-runner.d.ts","sourceRoot":"","sources":["../../src/commands/dev-runner.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAA;AA2BzB,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,mGAAmG;IACnG,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAsB,aAAa,CAAC,OAAO,GAAE,UAAe,iBAgJ3D;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,SAAS,EAAE;IAAE,GAAG,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAAE,EAC7E,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAOpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-group.d.ts","sourceRoot":"","sources":["../../src/commands/worker-group.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker-group.d.ts","sourceRoot":"","sources":["../../src/commands/worker-group.ts"],"names":[],"mappings":"AA4BA,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC;AAED,wBAAsB,cAAc,CAAC,OAAO,GAAE,kBAAuB,iBAqGpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/commands/worker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/commands/worker.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,aAAkB,iBAuF1D"}
|
|
@@ -34,11 +34,6 @@ export declare const CLI_OPTION_DEFINITIONS: {
|
|
|
34
34
|
readonly summary: "Public API origin";
|
|
35
35
|
readonly kind: "string";
|
|
36
36
|
};
|
|
37
|
-
readonly "agent-turn-timeout": {
|
|
38
|
-
readonly syntax: "--agent-turn-timeout <duration>";
|
|
39
|
-
readonly summary: "Agent turn wall-clock budget (default: 10m)";
|
|
40
|
-
readonly kind: "string";
|
|
41
|
-
};
|
|
42
37
|
readonly concurrency: {
|
|
43
38
|
readonly syntax: "--concurrency <value>";
|
|
44
39
|
readonly summary: "Concurrent jobs: count for worker; repeat type=count for dev/worker-group";
|
|
@@ -129,6 +124,21 @@ export declare const CLI_OPTION_DEFINITIONS: {
|
|
|
129
124
|
readonly summary: "Print JSON instead of formatted output";
|
|
130
125
|
readonly kind: "boolean";
|
|
131
126
|
};
|
|
127
|
+
readonly thread: {
|
|
128
|
+
readonly syntax: "--thread <id>";
|
|
129
|
+
readonly summary: "Continue this conversation instead of starting one";
|
|
130
|
+
readonly kind: "string";
|
|
131
|
+
};
|
|
132
|
+
readonly cloud: {
|
|
133
|
+
readonly syntax: "--cloud";
|
|
134
|
+
readonly summary: "Run a new conversation in the cloud, not on this computer";
|
|
135
|
+
readonly kind: "boolean";
|
|
136
|
+
};
|
|
137
|
+
readonly "approval-mode": {
|
|
138
|
+
readonly syntax: "--approval-mode <manual|accept-edits|auto>";
|
|
139
|
+
readonly summary: "What this turn may do without asking (default: your mode in the conversation)";
|
|
140
|
+
readonly kind: "string";
|
|
141
|
+
};
|
|
132
142
|
readonly outdir: {
|
|
133
143
|
readonly syntax: "--outdir <path>";
|
|
134
144
|
readonly summary: "Build output directory";
|
|
@@ -181,7 +191,7 @@ export declare const CLI_OPTION_DEFINITIONS: {
|
|
|
181
191
|
};
|
|
182
192
|
};
|
|
183
193
|
export type CliOptionName = keyof typeof CLI_OPTION_DEFINITIONS;
|
|
184
|
-
export type LocalCommandId = "dev" | "api" | "app" | "login" | "logout" | "status" | "profile:list" | "profile:show" | "profile:use" | "token:list" | "token:create" | "token:revoke" | "service-account:list" | "service-account:create" | "service-account:disable" | "service-account:token:list" | "service-account:token:create" | "service-account:token:revoke" | "scheduler" | "orchestrator" | "rules" | "worker" | "worker-group" | "check" | "typegen" | "build" | "desktop:build" | "db:migrate" | "db:prepare" | "lake:check" | "lake:cleanup" | "deploy" | "deploy:status" | "deploy:logs" | "deploy:restart" | "deploy:start" | "deploy:stop" | "deploy:setup" | "deploy:check" | "deploy:ci" | "deploy:access:list" | "deploy:access:add" | "deploy:access:remove" | "init";
|
|
194
|
+
export type LocalCommandId = "agent" | "dev" | "api" | "app" | "login" | "logout" | "status" | "profile:list" | "profile:show" | "profile:use" | "token:list" | "token:create" | "token:revoke" | "service-account:list" | "service-account:create" | "service-account:disable" | "service-account:token:list" | "service-account:token:create" | "service-account:token:revoke" | "scheduler" | "orchestrator" | "rules" | "worker" | "worker-group" | "check" | "typegen" | "build" | "desktop:build" | "db:migrate" | "db:prepare" | "lake:check" | "lake:cleanup" | "deploy" | "deploy:status" | "deploy:logs" | "deploy:restart" | "deploy:start" | "deploy:stop" | "deploy:setup" | "deploy:check" | "deploy:ci" | "deploy:access:list" | "deploy:access:add" | "deploy:access:remove" | "init";
|
|
185
195
|
export interface CliHelpItem {
|
|
186
196
|
readonly label: string;
|
|
187
197
|
readonly value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line.d.ts","sourceRoot":"","sources":["../../src/lib/command-line.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"command-line.d.ts","sourceRoot":"","sources":["../../src/lib/command-line.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;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ED,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAG/F;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAErF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,GAAG,SAAS,MAAM,EAAE,CAGhG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAcpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-release.d.ts","sourceRoot":"","sources":["../../src/lib/deploy-release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EAEZ,qBAAqB,EAErB,aAAa,EAOd,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"deploy-release.d.ts","sourceRoot":"","sources":["../../src/lib/deploy-release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EAEZ,qBAAqB,EAErB,aAAa,EAOd,MAAM,mBAAmB,CAAA;AA4D1B,MAAM,WAAW,oBAAoB;IACnC,yFAAyF;IACzF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,CAgCf;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAOhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-ci.d.ts","sourceRoot":"","sources":["../../src/lib/github-ci.ts"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,cAAc,eAAe,CAAA;AAE1C,uDAAuD;AACvD,eAA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,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWvE;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAOlE;AAED,4FAA4F;AAC5F,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;AAED,8FAA8F;AAC9F,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAOvE;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5F;AAED,gEAAgE;AAChE,wBAAsB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMhF"}
|
package/dist/lib/runtime.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export interface StartSixbRuntimeOptions {
|
|
|
29
29
|
*/
|
|
30
30
|
readonly api?: RuntimeApiServer;
|
|
31
31
|
readonly agentApiBaseUrl?: string;
|
|
32
|
-
readonly agentTurnTimeoutMs?: number;
|
|
33
32
|
readonly workerConcurrency?: WorkerConcurrency;
|
|
34
33
|
readonly vectorConcurrency?: number;
|
|
35
34
|
readonly subagentConcurrency?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/lib/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAYhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAGzD,OAAO,EAGL,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,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A2B,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAKrF;AAED,kGAAkG;AAClG,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAEtF;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAGhG;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB3E;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAc1F;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAQlC;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,0BAA0B,CAAC,CA4CrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,cAAc,EACpB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,kBAAkB,CAAC,CAmH7B"}
|
|
@@ -8,7 +8,6 @@ export type QueueWorkerProcess = Worker & {
|
|
|
8
8
|
};
|
|
9
9
|
export interface WorkerCreationOptions {
|
|
10
10
|
readonly agentApiBaseUrl?: string;
|
|
11
|
-
readonly agentTurnTimeoutMs?: number;
|
|
12
11
|
readonly workerConcurrency?: WorkerConcurrency;
|
|
13
12
|
readonly vectorConcurrency?: number;
|
|
14
13
|
readonly subagentConcurrency?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-registry.d.ts","sourceRoot":"","sources":["../../src/lib/worker-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAMzD,OAAO,KAAK,EAAE,cAAc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Q,CAAC,yBAAyB,CAAC,EAAE,MAAM,CAAA;CAC5C;AAuDD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,qBAA0B,GAClC,kBAAkB,CAOpB;AAED,wBAAgB,wBAAwB,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,UAAU,CAa7E;AAUD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,qBAAqB,EAC9B,gBAAgB,EAAE,OAAO,GACxB,MAAM,GAAG,IAAI,CAIf;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CA6BjE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,UAAU,EAAE,CAwBxF;AAsBD,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAIjE;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,OAAO,CAOxF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SyntaxStyle } from "@opentui/core";
|
|
2
|
+
import type { Connection } from "./connection";
|
|
3
|
+
import { type LocalRunner } from "./runner";
|
|
4
|
+
import { type Settings } from "./settings";
|
|
5
|
+
import type { TuiColors } from "./theme";
|
|
6
|
+
export interface WorkspaceProps {
|
|
7
|
+
readonly connection: Connection;
|
|
8
|
+
readonly runner: LocalRunner;
|
|
9
|
+
/** This computer's id: a conversation on a computer runs on one of its owner's. */
|
|
10
|
+
readonly computerId: string;
|
|
11
|
+
readonly colors: TuiColors;
|
|
12
|
+
readonly syntax: SyntaxStyle;
|
|
13
|
+
readonly version: string;
|
|
14
|
+
readonly initialSettings: Settings;
|
|
15
|
+
readonly onExit: () => void;
|
|
16
|
+
}
|
|
17
|
+
/** Everything once connected: the home screen or a conversation, and the dialogs over them. */
|
|
18
|
+
export declare function Workspace(props: WorkspaceProps): import("react").ReactNode;
|
|
19
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/tui/app.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiC,WAAW,EAAE,MAAM,eAAe,CAAA;AA0B/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAK9C,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,UAAU,CAAA;AACrE,OAAO,EASL,KAAK,QAAQ,EAEd,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAiBxC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAA;IAC/B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,+FAA+F;AAC/F,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,6BA+T9C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @jsxImportSource @opentui/react */
|
|
2
|
+
import type { TuiColors } from "./theme";
|
|
3
|
+
/** The wordmark in Sixb's blues, palest to deepest across the name, as the website's hero fills. */
|
|
4
|
+
export declare function Logo({ colors }: {
|
|
5
|
+
readonly colors: TuiColors;
|
|
6
|
+
}): import("react").ReactNode;
|
|
7
|
+
//# sourceMappingURL=brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/tui/brand.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAiBxC,oGAAoG;AACpG,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAAE,6BAiB9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../../src/tui/computer.ts"],"names":[],"mappings":"AAaA,iFAAiF;AACjF,wBAAgB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAUhD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type SixbClient } from "@sixb/client";
|
|
2
|
+
/** A project the app talks to, as the person signed in to it. */
|
|
3
|
+
export interface Connection {
|
|
4
|
+
readonly apiUrl: string;
|
|
5
|
+
readonly client: SixbClient;
|
|
6
|
+
readonly project: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly timeZone: string;
|
|
9
|
+
readonly locale: string;
|
|
10
|
+
};
|
|
11
|
+
/** Who is signed in; absent where the project runs without sign-in. */
|
|
12
|
+
readonly user?: {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly email: string;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
};
|
|
17
|
+
/** The person's own credential, as an `Authorization` header, read fresh for each use. */
|
|
18
|
+
authorization(): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
/** Why the app cannot connect yet, and where it would. */
|
|
21
|
+
export interface SignedOut {
|
|
22
|
+
readonly apiUrl: string;
|
|
23
|
+
readonly profile?: string;
|
|
24
|
+
readonly reason: "signed-out" | "session-ended" | "unreachable";
|
|
25
|
+
readonly message?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Connect as the CLI's current profile, as every `sixb` command does. */
|
|
28
|
+
export declare function connect(input: {
|
|
29
|
+
readonly apiUrl?: string;
|
|
30
|
+
readonly profile?: string;
|
|
31
|
+
readonly token?: string;
|
|
32
|
+
}): Promise<Connection | SignedOut>;
|
|
33
|
+
/** A sign-in in progress: show the code, open the page, then wait for the person to approve it. */
|
|
34
|
+
export interface PendingSignIn {
|
|
35
|
+
readonly apiUrl: string;
|
|
36
|
+
readonly userCode: string;
|
|
37
|
+
readonly url: string;
|
|
38
|
+
complete(signal: AbortSignal): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sign this computer in to `apiUrl` with the device flow, as `sixb login` does, and keep the
|
|
42
|
+
* session on a profile named after the project.
|
|
43
|
+
*/
|
|
44
|
+
export declare function startSignIn(apiUrl: string): Promise<PendingSignIn>;
|
|
45
|
+
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/tui/connection.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,UAAU,EAGhB,MAAM,cAAc,CAAA;AASrB,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA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Of(threadId: string): Promise<string | undefined>;
|
|
3
|
+
/** Keep `folder` as the one a conversation works in on this computer. */
|
|
4
|
+
export declare function rememberFolder(threadId: string, folder: string): Promise<void>;
|
|
5
|
+
/** The conversations that work in `folder` on this computer. */
|
|
6
|
+
export declare function conversationsIn(folder: string): Promise<readonly string[]>;
|
|
7
|
+
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/tui/folders.ts"],"names":[],"mappings":"AAqBA,gGAAgG;AAChG,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE5E;AAED,yEAAyE;AACzE,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMpF;AAED,gEAAgE;AAChE,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAIhF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/** `1m 04s`, `12.4s`, `820ms`. */
|
|
22
|
+
export declare function duration(ms: number): string;
|
|
23
|
+
/** A path with the home directory as `~`, and its middle elided past `max` characters. */
|
|
24
|
+
export declare function shortPath(path: string, home: string, max?: number): string;
|
|
25
|
+
/** `1 more line`, `3 more lines`. */
|
|
26
|
+
export declare function plural(count: number, noun: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* A path as the person reads it: relative to the folder the agent works in, and the run's own
|
|
29
|
+
* files, kept outside it, as `run/…`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function friendlyPath(text: string, folder?: string): string;
|
|
32
|
+
export {};
|
|
33
|
+
//# 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,CAAA;AAEpD,KAAK,QAAQ,GAAG,OAAO,CAAC,IAAI,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAExD,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,wDAAwD;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;AAMD,kGAAkG;AAClG,wBAAgB,QAAQ,CACtB,IAAI,EAAE,QAAQ,EACd,QAAQ,GAAE,WAAW,CAAC,MAAM,EAAE,eAAe,CAAe,GAC3D,QAAQ,CAwFV;AAyGD,kCAAkC;AAClC,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAK3C;AAED,0FAA0F;AAC1F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAStE;AAED,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":"AA0BA,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,CA0EhB"}
|
|
@@ -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,66 @@
|
|
|
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
|
+
readonly createdAt: string;
|
|
43
|
+
}
|
|
44
|
+
/** A stored message as shown: what is context for the agent alone stays hidden. */
|
|
45
|
+
export declare function shownMessage(message: StoredMessage): ShownMessage | null;
|
|
46
|
+
/** How each held call of a transcript ended, by its approval's id. */
|
|
47
|
+
export declare function approvalOutcomes(messages: readonly ShownMessage[]): ReadonlyMap<string, ApprovalOutcome>;
|
|
48
|
+
/** A run as it streams: its parts so far, and whether it still works. */
|
|
49
|
+
export interface LiveRun {
|
|
50
|
+
readonly runId: string;
|
|
51
|
+
readonly parts: readonly Part[];
|
|
52
|
+
readonly keys: readonly string[];
|
|
53
|
+
readonly step: number;
|
|
54
|
+
readonly working: boolean;
|
|
55
|
+
readonly compacting: boolean;
|
|
56
|
+
/** Set once the run's answer is stored: the transcript then shows it. */
|
|
57
|
+
readonly finalized: boolean;
|
|
58
|
+
readonly finished?: {
|
|
59
|
+
readonly status: string;
|
|
60
|
+
readonly error?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export declare function liveRun(runId: string): LiveRun;
|
|
64
|
+
export declare function reduceLive(state: LiveRun, event: AgentRunStreamEvent): LiveRun;
|
|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AAA;IAC5B,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;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,CAU9C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CA0B9E"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type GetAgentThreadResponses } from "@sixb/client";
|
|
2
|
+
import type { Connection } from "./connection";
|
|
3
|
+
/**
|
|
4
|
+
* What the agent's commands never read on this computer, whatever the folder: the CLI's own
|
|
5
|
+
* sign-in, and the credentials SSH and AWS keep.
|
|
6
|
+
*/
|
|
7
|
+
export declare function deniedPaths(): readonly string[];
|
|
8
|
+
/**
|
|
9
|
+
* This computer as a runner: it claims its owner's turns from the project and runs them in the
|
|
10
|
+
* folder `sixb` was opened in, one at a time per turn, each until it ends or is stopped.
|
|
11
|
+
*/
|
|
12
|
+
export declare class LocalRunner {
|
|
13
|
+
private readonly connection;
|
|
14
|
+
readonly folder: string;
|
|
15
|
+
private readonly onFailure;
|
|
16
|
+
private readonly runner;
|
|
17
|
+
private readonly running;
|
|
18
|
+
constructor(connection: Connection, folder: string, onFailure: (error: unknown) => void);
|
|
19
|
+
/** Whether this computer runs `runId` now. */
|
|
20
|
+
runs(runId: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Claim a queued turn and run it, unless this computer runs it already. Resolves once the turn
|
|
23
|
+
* ended here: false when it was not this computer's to run, or could not be claimed.
|
|
24
|
+
*/
|
|
25
|
+
claim(runId: string): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Claim a conversation's turn when this computer runs it: its owner's, on this computer and in
|
|
28
|
+
* this folder, and still queued. A running turn is another sixb's, or one whose sixb closed,
|
|
29
|
+
* which the API ends interrupted: claiming it again would run its commands twice.
|
|
30
|
+
*/
|
|
31
|
+
claimIfHere(threadId: string, runId?: string): Promise<void>;
|
|
32
|
+
/** After a stop was asked for: the turn hears it now, not at its next lease renewal. */
|
|
33
|
+
hearStop(runId: string): void;
|
|
34
|
+
/** Whether a turn runs here now. */
|
|
35
|
+
get busy(): boolean;
|
|
36
|
+
/** Stop every turn this computer runs: each ends interrupted, its end recorded. */
|
|
37
|
+
stop(): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
/** Whether the person signed in owns `thread`: with sign-in off, the system owns what it starts. */
|
|
40
|
+
export declare function owns(connection: Pick<Connection, "user">, thread: Pick<GetAgentThreadResponses[200], "ownerPrincipal">): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether this computer runs a computer's thread: the one it runs on. A thread none claimed a turn
|
|
43
|
+
* of yet runs on the first that does, the one it started on.
|
|
44
|
+
*/
|
|
45
|
+
export declare function runsOnThisComputer(thread: Pick<GetAgentThreadResponses[200], "computerId">, computerId: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* A closed terminal, or a kill, ends sixb as quitting does: the turns running here stop, each
|
|
48
|
+
* ending interrupted with its end recorded, instead of renewing their lease from a process nobody
|
|
49
|
+
* sees. Then `exit`, after a bounded wait. Returns the removal of the handlers.
|
|
50
|
+
*/
|
|
51
|
+
export declare function stopOnHangUp(runner: () => Pick<LocalRunner, "busy" | "stop"> | null, exit: (signal: "SIGHUP" | "SIGTERM") => void): () => void;
|
|
52
|
+
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/tui/runner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAA+B,MAAM,cAAc,CAAA;AAIxF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA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AM,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,EACvD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,GAC3C,MAAM,IAAI,CAuBZ"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
export declare const DEFAULT_SETTINGS: Settings;
|
|
20
|
+
export declare const APPROVAL_MODES: readonly {
|
|
21
|
+
readonly mode: ApprovalMode;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly description: string;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function approvalLabel(mode: ApprovalMode): string;
|
|
26
|
+
/** What this computer is called where the person picks where a conversation runs. */
|
|
27
|
+
export declare function computerName(): string;
|
|
28
|
+
export declare function placeLabel(place: Place): string;
|
|
29
|
+
export declare function loadSettings(): Promise<Settings>;
|
|
30
|
+
export declare function saveSettings(settings: Settings): Promise<void>;
|
|
31
|
+
/** The model the next message runs on, as the composer names it. */
|
|
32
|
+
export declare function modelLabel(models: readonly LanguageModel[], settings: Settings): {
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly reasoning?: string;
|
|
35
|
+
};
|
|
36
|
+
/** What a message asks the server for: only what the person chose. */
|
|
37
|
+
export declare function messageSelection(models: readonly LanguageModel[], settings: Settings): {
|
|
38
|
+
readonly model?: {
|
|
39
|
+
provider: string;
|
|
40
|
+
modelId: string;
|
|
41
|
+
};
|
|
42
|
+
readonly reasoning?: ReasoningLevel;
|
|
43
|
+
};
|
|
44
|
+
//# 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,CAAA;AACxC,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AACxE,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAErE,qFAAqF;AACrF,MAAM,WAAW,QAAQ;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAA;IACnC,gGAAgG;IAChG,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;IACxE,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAA;CACpC;AAED,eAAO,MAAM,gBAAgB,EAAE,QAAwD,CAAA;AAEvF,eAAO,MAAM,c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