@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.
- 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/api.d.ts.map +1 -1
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/dev-runner.d.ts +0 -1
- package/dist/commands/dev-runner.d.ts.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/env.d.ts +31 -0
- package/dist/commands/env.d.ts.map +1 -0
- 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 +41 -6
- package/dist/lib/command-line.d.ts.map +1 -1
- package/dist/lib/deploy-release.d.ts +2 -0
- package/dist/lib/deploy-release.d.ts.map +1 -1
- package/dist/lib/deploy-source.d.ts +2 -0
- package/dist/lib/deploy-source.d.ts.map +1 -1
- package/dist/lib/env-config.d.ts +17 -0
- package/dist/lib/env-config.d.ts.map +1 -0
- package/dist/lib/env-file.d.ts +16 -0
- package/dist/lib/env-file.d.ts.map +1 -0
- package/dist/lib/github-ci.d.ts.map +1 -1
- package/dist/lib/hidden-prompt.d.ts +19 -0
- package/dist/lib/hidden-prompt.d.ts.map +1 -0
- 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 +27 -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 +8 -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/context.d.ts +13 -0
- package/dist/tui/context.d.ts.map +1 -0
- package/dist/tui/format.d.ts +118 -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/markdown.d.ts +18 -0
- package/dist/tui/markdown.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 +74 -0
- package/dist/tui/parts.d.ts.map +1 -0
- package/dist/tui/runner.d.ts +75 -0
- package/dist/tui/runner.d.ts.map +1 -0
- package/dist/tui/settings.d.ts +56 -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 +42 -0
- package/dist/tui/ui.d.ts.map +1 -0
- package/dist/ui/deploy-screens.d.ts +3 -1
- package/dist/ui/deploy-screens.d.ts.map +1 -1
- package/dist/ui/env-screens.d.ts +37 -0
- package/dist/ui/env-screens.d.ts.map +1 -0
- package/package.json +19 -17
- package/src/commands/agent.ts +344 -0
- package/src/commands/api.ts +2 -1
- package/src/commands/check.ts +5 -1
- package/src/commands/deploy.ts +29 -3
- package/src/commands/dev-runner.ts +3 -5
- package/src/commands/dev.ts +3 -0
- package/src/commands/env.ts +422 -0
- package/src/commands/worker-group.ts +0 -4
- package/src/commands/worker.ts +0 -4
- package/src/index.tsx +95 -5
- package/src/lib/command-line.ts +111 -16
- package/src/lib/deploy-release.ts +3 -11
- package/src/lib/deploy-source.ts +10 -0
- package/src/lib/env-config.ts +96 -0
- package/src/lib/env-file.ts +104 -0
- package/src/lib/github-ci.ts +3 -1
- package/src/lib/hidden-prompt.ts +97 -0
- package/src/lib/runtime.ts +0 -2
- package/src/lib/worker-registry.ts +0 -2
- package/src/tui/app.tsx +1334 -0
- package/src/tui/brand.tsx +51 -0
- package/src/tui/computer.ts +91 -0
- package/src/tui/connection.ts +149 -0
- package/src/tui/context.tsx +149 -0
- package/src/tui/format.ts +477 -0
- package/src/tui/index.tsx +364 -0
- package/src/tui/markdown.ts +91 -0
- package/src/tui/palette.tsx +183 -0
- package/src/tui/parts.ts +274 -0
- package/src/tui/runner.ts +256 -0
- package/src/tui/settings.ts +176 -0
- package/src/tui/slash.ts +32 -0
- package/src/tui/theme.ts +111 -0
- package/src/tui/transcript.tsx +637 -0
- package/src/tui/ui.tsx +177 -0
- package/src/ui/deploy-screens.ts +12 -1
- package/src/ui/env-screens.ts +81 -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":"AAgCA;;;;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,CAsGhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/commands/api.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,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,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/commands/api.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,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,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBAqFpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/commands/check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/commands/check.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAsB,QAAQ,CAAC,OAAO,GAAE,YAAiB,iBAoExD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":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AQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,iBAwE7F;AA8BD,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,iBAShG;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB,iBAeA;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAC9C,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAA;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB,iBAUA"}
|
|
@@ -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,iBAkJ3D;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":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG9C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBA4BpD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type EnvConfig, type EnvSource } from "@sixb/core/env";
|
|
2
|
+
export declare function runEnvPull(options: {
|
|
3
|
+
readonly env?: string;
|
|
4
|
+
readonly tokenFile?: string;
|
|
5
|
+
readonly force?: boolean;
|
|
6
|
+
readonly cwd?: string;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
/** Before `sixb dev`: stops on a missing variable, offering to pull when there's a source. */
|
|
9
|
+
export declare function assertDevEnv(cwd: string): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Bun read `.env` when this process started, and the processes `sixb dev` starts inherit what it
|
|
12
|
+
* read. So a pull also has to update this process, or they run on the old values. `.env.local`
|
|
13
|
+
* still wins, as it does when Bun loads the files itself. A variable exported in the shell loses
|
|
14
|
+
* here, which only happens on the rare start that pulls.
|
|
15
|
+
*/
|
|
16
|
+
export declare function pullIntoThisProcess(cwd: string, config: EnvConfig, source: EnvSource): Promise<void>;
|
|
17
|
+
export declare function runEnvSet(options: {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly env: string | undefined;
|
|
20
|
+
readonly cwd?: string;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
export declare function runEnvStatus(options?: {
|
|
23
|
+
readonly cwd?: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
export declare function runEnvInit(options: {
|
|
26
|
+
readonly project: string;
|
|
27
|
+
readonly dev?: string;
|
|
28
|
+
readonly prod?: string;
|
|
29
|
+
readonly cwd?: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/commands/env.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,SAAS,EAGf,MAAM,gBAAgB,CAAA;AA6BvB,wBAAsB,UAAU,CAAC,OAAO,EAAE;IACxC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoChB;AAoFD,8FAA8F;AAC9F,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc7D;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,IAAI,CAAC,CAYf;AAID,wBAAsB,SAAS,CAAC,OAAO,EAAE;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhB;AAID,wBAAsB,YAAY,CAAC,OAAO,GAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BzF;AAID,wBAAsB,UAAU,CAAC,OAAO,EAAE;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwDhB"}
|
|
@@ -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";
|
|
@@ -144,6 +154,31 @@ export declare const CLI_OPTION_DEFINITIONS: {
|
|
|
144
154
|
readonly summary: "Keep printing new log lines";
|
|
145
155
|
readonly kind: "boolean";
|
|
146
156
|
};
|
|
157
|
+
readonly env: {
|
|
158
|
+
readonly syntax: "--env <dev|prod>";
|
|
159
|
+
readonly summary: "Environment (default for pull: dev)";
|
|
160
|
+
readonly kind: "string";
|
|
161
|
+
};
|
|
162
|
+
readonly dev: {
|
|
163
|
+
readonly syntax: "--dev <file>";
|
|
164
|
+
readonly summary: "The file holding the current dev values";
|
|
165
|
+
readonly kind: "string";
|
|
166
|
+
};
|
|
167
|
+
readonly prod: {
|
|
168
|
+
readonly syntax: "--prod <file>";
|
|
169
|
+
readonly summary: "The file holding the current prod values";
|
|
170
|
+
readonly kind: "string";
|
|
171
|
+
};
|
|
172
|
+
readonly "token-file": {
|
|
173
|
+
readonly syntax: "--token-file <path>";
|
|
174
|
+
readonly summary: "Read the source's token from this file, as a server does";
|
|
175
|
+
readonly kind: "string";
|
|
176
|
+
};
|
|
177
|
+
readonly force: {
|
|
178
|
+
readonly syntax: "--force";
|
|
179
|
+
readonly summary: "Replace a hand-written .env, losing what the source doesn't have";
|
|
180
|
+
readonly kind: "boolean";
|
|
181
|
+
};
|
|
147
182
|
readonly admin: {
|
|
148
183
|
readonly syntax: "--admin <login>";
|
|
149
184
|
readonly summary: "Login with sudo that prepares the server (default: root)";
|
|
@@ -181,7 +216,7 @@ export declare const CLI_OPTION_DEFINITIONS: {
|
|
|
181
216
|
};
|
|
182
217
|
};
|
|
183
218
|
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";
|
|
219
|
+
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" | "env:init" | "env:pull" | "env:set" | "env:status" | "init";
|
|
185
220
|
export interface CliHelpItem {
|
|
186
221
|
readonly label: string;
|
|
187
222
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLuD,CAAA;AAE1F,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,sBAAsB,CAAA;AAC/D,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,cAAc,GACd,aAAa,GACb,YAAY,GACZ,cAAc,GACd,cAAc,GACd,sBAAsB,GACtB,wBAAwB,GACxB,yBAAyB,GACzB,4BAA4B,GAC5B,8BAA8B,GAC9B,8BAA8B,GAC9B,WAAW,GACX,cAAc,GACd,OAAO,GACP,QAAQ,GACR,cAAc,GACd,OAAO,GACP,SAAS,GACT,OAAO,GACP,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,cAAc,GACd,cAAc,GACd,WAAW,GACX,oBAAoB,GACpB,m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EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,QAAQ,KAAI;gBAET,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;CAK3C;AAED,eAAO,MAAM,SAAS,EAAE,OAWvB,CAAA;AAwBD,eAAO,MAAM,gBAAgB,EAAE,SAAS;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B,EAoBG,CAAA;AAEJ,eAAO,MAAM,YAAY,oGAKf,CAAA;AAEV,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAkB/D;AAED,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"}
|
|
@@ -2,6 +2,8 @@ import type { DeployConfig, DeployHttpServiceName, DeployRelease } from "@sixb/c
|
|
|
2
2
|
export interface DeployReleaseOptions {
|
|
3
3
|
/** The Bun version the project runs on, from its `packageManager` or the running Bun. */
|
|
4
4
|
readonly bunVersion: string;
|
|
5
|
+
/** Whether a deploy writes the target's `.env` from the project's source. */
|
|
6
|
+
readonly envFromSource?: boolean;
|
|
5
7
|
}
|
|
6
8
|
export declare function buildDeployRelease(config: DeployConfig, options: DeployReleaseOptions): DeployRelease;
|
|
7
9
|
/** Where browsers reach each HTTP service the deployment runs. */
|
|
@@ -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;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,oBAAoB,GAC5B,aAAa,CAiCf;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAOhD"}
|
|
@@ -20,4 +20,6 @@ export declare function projectPathOf(projectDir: string): Promise<string>;
|
|
|
20
20
|
export declare function repoRootOf(projectDir: string): Promise<string>;
|
|
21
21
|
/** Who deploys, recorded with the release. */
|
|
22
22
|
export declare function deployer(projectDir: string): Promise<string>;
|
|
23
|
+
/** Whether a commit being deployed has this file in the project's directory. */
|
|
24
|
+
export declare function commitHasProjectFile(projectDir: string, source: Pick<DeploySource, "commit" | "projectPath">, file: string): Promise<boolean>;
|
|
23
25
|
//# sourceMappingURL=deploy-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-source.d.ts","sourceRoot":"","sources":["../../src/lib/deploy-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,mBAAmB,CAAA;AA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B,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGvE;AAED,wDAAwD;AACxD,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D;AAED,8CAA8C;AAC9C,wBAAsB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMlE;AA4DD,gFAAgF;AAChF,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,aAAa,CAAC,EACpD,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAGlB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { EnvConfig, EnvName, EnvVarRule } from "@sixb/core/env";
|
|
2
|
+
import { SixbCliError } from "./errors";
|
|
3
|
+
export declare const ENV_CONFIG_FILE = "sixb.env.ts";
|
|
4
|
+
export declare const VAR_NAME_PATTERN: RegExp;
|
|
5
|
+
/** Loads `sixb.env.ts` from the project directory. A project without one has no declared names. */
|
|
6
|
+
export declare function loadEnvConfig(cwd?: string): Promise<EnvConfig | null>;
|
|
7
|
+
/** The names `env` must have a value for and doesn't. An empty value counts as none. */
|
|
8
|
+
export declare function missingEnvVars(config: EnvConfig, values: Readonly<Record<string, string | undefined>>, env: EnvName): string[];
|
|
9
|
+
/** Whether a variable with this rule must have a value in `env`. */
|
|
10
|
+
export declare function envVarNeeded(rule: EnvVarRule, env: EnvName): boolean;
|
|
11
|
+
/** The sentence every command uses to name what is missing. */
|
|
12
|
+
export declare function missingEnvSentence(names: readonly string[]): string;
|
|
13
|
+
/** Stops a command that is about to run the project without a variable it declares. */
|
|
14
|
+
export declare function assertDeclaredEnv(cwd: string): Promise<void>;
|
|
15
|
+
/** The failure for a project about to run without these variables, and what fixes it. */
|
|
16
|
+
export declare function missingEnvError(config: EnvConfig, names: readonly string[]): SixbCliError;
|
|
17
|
+
//# sourceMappingURL=env-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/lib/env-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,eAAO,MAAM,eAAe,gBAAgB,CAAA;AAE5C,eAAO,MAAM,gBAAgB,QAA6B,CAAA;AAG1D,mGAAmG;AACnG,wBAAsB,aAAa,CAAC,GAAG,SAAgB,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAWlF;AAmCD,wFAAwF;AACxF,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACpD,GAAG,EAAE,OAAO,GACX,MAAM,EAAE,CAIV;AAED,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAEpE;AAED,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEnE;AAED,uFAAuF;AACvF,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOlE;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,CAMzF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EnvName } from "@sixb/core/env";
|
|
2
|
+
/**
|
|
3
|
+
* What Bun reads from a `.env` file, by asking Bun: a second parser would disagree with the one the
|
|
4
|
+
* app runs on. The child has an empty environment and an empty directory, so the result holds this
|
|
5
|
+
* file's values and nothing else. A `$NAME` in the file sees only that file.
|
|
6
|
+
*/
|
|
7
|
+
export declare function readEnvFile(path: string): Promise<Record<string, string>>;
|
|
8
|
+
/** Whether this `.env` came from `sixb env pull`, so overwriting it loses nothing. */
|
|
9
|
+
export declare function isGeneratedEnvFile(path: string): Promise<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Writes `.env` readable only by its owner, or not at all. The new file is read back through Bun
|
|
12
|
+
* before it replaces the old one, because Bun's `.env` format can't hold every value: a trailing
|
|
13
|
+
* backslash swallows the closing quote and the next line, and a carriage return becomes a newline.
|
|
14
|
+
*/
|
|
15
|
+
export declare function writeEnvFile(path: string, values: Readonly<Record<string, string>>, env: EnvName): Promise<void>;
|
|
16
|
+
//# sourceMappingURL=env-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.d.ts","sourceRoot":"","sources":["../../src/lib/env-file.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CA+B/E;AAED,sFAAsF;AACtF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGvE;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACxC,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,IAAI,CAAC,CAwBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-ci.d.ts","sourceRoot":"","sources":["../../src/lib/github-ci.ts"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,c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,CAAC,CAgB7F;AAED,uFAAuF;AACvF,wBAAgB,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface HiddenInput {
|
|
2
|
+
readonly value: string;
|
|
3
|
+
/** The start of a paste that hasn't finished arriving. */
|
|
4
|
+
readonly pending: string;
|
|
5
|
+
/** `refused`: lines arrived that this terminal didn't mark as one paste. */
|
|
6
|
+
readonly outcome?: "done" | "cancelled" | "refused";
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Applies what the terminal sent. A terminal that supports it marks a paste, so a multi-line value
|
|
10
|
+
* stays whole. Without the marks, a newline with more behind it is refused: keeping only the first
|
|
11
|
+
* line would store a broken value, and "Set" would still print.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readHiddenKeys(input: HiddenInput, text: string): HiddenInput;
|
|
14
|
+
/**
|
|
15
|
+
* Reads a value from a terminal without showing it. It never joins the scrollback or the shell's
|
|
16
|
+
* history.
|
|
17
|
+
*/
|
|
18
|
+
export declare function promptHidden(label: string): Promise<string>;
|
|
19
|
+
//# sourceMappingURL=hidden-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidden-prompt.d.ts","sourceRoot":"","sources":["../../src/lib/hidden-prompt.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAA;CACpD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAgC5E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC3D"}
|
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,OAAO,EAAE,gBA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,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,EAAE,MAAM,YA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B,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,27 @@
|
|
|
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
|
+
import { type Run } from "./transcript";
|
|
7
|
+
export interface WorkspaceProps {
|
|
8
|
+
readonly connection: Connection;
|
|
9
|
+
readonly runner: LocalRunner;
|
|
10
|
+
/** This computer's id: a conversation on a computer runs on one of its owner's. */
|
|
11
|
+
readonly computerId: string;
|
|
12
|
+
readonly colors: TuiColors;
|
|
13
|
+
readonly syntax: SyntaxStyle;
|
|
14
|
+
readonly version: string;
|
|
15
|
+
readonly initialSettings: Settings;
|
|
16
|
+
readonly onExit: () => void;
|
|
17
|
+
}
|
|
18
|
+
/** Everything once connected: the home screen or a conversation, and the dialogs over them. */
|
|
19
|
+
export declare function Workspace(props: WorkspaceProps): import("react").ReactNode;
|
|
20
|
+
export declare function activityLabel(runs: readonly Run[], runId: string | null, where: {
|
|
21
|
+
readonly onComputer: boolean;
|
|
22
|
+
readonly mine: boolean;
|
|
23
|
+
readonly here: boolean;
|
|
24
|
+
readonly continueFromWeb: boolean;
|
|
25
|
+
readonly runningHere: boolean;
|
|
26
|
+
}): string;
|
|
27
|
+
//# 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;AA4B/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAK9C,OAAO,EAAE,KAAK,WAAW,EAAQ,MAAM,UAAU,CAAA;AACjD,OAAO,EAUL,KAAK,QAAQ,EAEd,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAmC,KAAK,GAAG,EAAuB,MAAM,cAAc,CAAA;AAgB7F,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,6BA4V9C;AAiqBD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,SAAS,GAAG,EAAE,EACpB,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,KAAK,EAAE;IACL,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC9B,GACA,MAAM,CAcR"}
|
|
@@ -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,8 @@
|
|
|
1
|
+
/** This computer's id: named once, the first time `sixb` runs here, and kept. */
|
|
2
|
+
export declare function thisComputerId(): Promise<string>;
|
|
3
|
+
/** This computer: its id, and what its owner calls it, as the web shows where a thread runs. */
|
|
4
|
+
export declare function thisComputer(): Promise<{
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=computer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../../src/tui/computer.ts"],"names":[],"mappings":"AAeA,iFAAiF;AACjF,wBAAgB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAUhD;AAED,gGAAgG;AAChG,wBAAsB,YAAY,IAAI,OAAO,CAAC;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAG5F"}
|
|
@@ -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;KAAE,CAAA;IAC7F,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,0FAA0F;IAC1F,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,0DAA0D;AAC1D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,eAAe,GAAG,aAAa,CAAA;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,0EAA0E;AAC1E,wBAAsB,OAAO,CAAC,KAAK,EAAE;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAgElC;AAED,mGAAmG;AACnG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC7C;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAwBxE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ContextUse } from "./format";
|
|
2
|
+
import type { TuiColors } from "./theme";
|
|
3
|
+
/**
|
|
4
|
+
* `/context`: what the conversation uses of its model's window, part by part. Opens centered over
|
|
5
|
+
* the screen like the palettes; esc or enter closes it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ContextPanel({ colors, context, modelName, onClose, }: {
|
|
8
|
+
readonly colors: TuiColors;
|
|
9
|
+
readonly context: ContextUse | null;
|
|
10
|
+
readonly modelName?: string;
|
|
11
|
+
readonly onClose: () => void;
|
|
12
|
+
}): import("react").ReactNode;
|
|
13
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/tui/context.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAMxC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAC7B,6BAqHA"}
|