@sixb/cli 0.1.6 → 0.1.8

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 (73) hide show
  1. package/README.md +148 -18
  2. package/dist/commands/api.d.ts.map +1 -1
  3. package/dist/commands/app.d.ts.map +1 -1
  4. package/dist/commands/dev-runner.d.ts +14 -0
  5. package/dist/commands/dev-runner.d.ts.map +1 -0
  6. package/dist/commands/dev.d.ts +2 -12
  7. package/dist/commands/dev.d.ts.map +1 -1
  8. package/dist/commands/init.d.ts +0 -1
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/login.d.ts +8 -0
  11. package/dist/commands/login.d.ts.map +1 -0
  12. package/dist/commands/logout.d.ts +6 -0
  13. package/dist/commands/logout.d.ts.map +1 -0
  14. package/dist/commands/profile.d.ts +7 -0
  15. package/dist/commands/profile.d.ts.map +1 -0
  16. package/dist/commands/service-account.d.ts +1 -0
  17. package/dist/commands/service-account.d.ts.map +1 -1
  18. package/dist/commands/status.d.ts +8 -0
  19. package/dist/commands/status.d.ts.map +1 -0
  20. package/dist/commands/token.d.ts +1 -0
  21. package/dist/commands/token.d.ts.map +1 -1
  22. package/dist/lib/api-client.d.ts +0 -11
  23. package/dist/lib/api-client.d.ts.map +1 -1
  24. package/dist/lib/command-line.d.ts +176 -0
  25. package/dist/lib/command-line.d.ts.map +1 -0
  26. package/dist/lib/dev-supervisor.d.ts +4 -0
  27. package/dist/lib/dev-supervisor.d.ts.map +1 -0
  28. package/dist/lib/dev-watch.d.ts +7 -0
  29. package/dist/lib/dev-watch.d.ts.map +1 -0
  30. package/dist/lib/errors.d.ts +6 -0
  31. package/dist/lib/errors.d.ts.map +1 -1
  32. package/dist/lib/instance-command.d.ts +3 -0
  33. package/dist/lib/instance-command.d.ts.map +1 -0
  34. package/dist/lib/loadSixb.d.ts.map +1 -1
  35. package/dist/lib/production.d.ts +1 -0
  36. package/dist/lib/production.d.ts.map +1 -1
  37. package/dist/lib/profile-api-client.d.ts +6 -0
  38. package/dist/lib/profile-api-client.d.ts.map +1 -0
  39. package/dist/lib/profiles.d.ts +34 -0
  40. package/dist/lib/profiles.d.ts.map +1 -0
  41. package/dist/lib/runtime.d.ts.map +1 -1
  42. package/dist/lib/worker-registry.d.ts.map +1 -1
  43. package/dist/ui/index.d.ts +5 -5
  44. package/dist/ui/index.d.ts.map +1 -1
  45. package/package.json +16 -15
  46. package/src/commands/api.tsx +3 -5
  47. package/src/commands/app.tsx +2 -8
  48. package/src/commands/dev-runner.tsx +181 -0
  49. package/src/commands/dev.tsx +27 -157
  50. package/src/commands/init.tsx +1 -13
  51. package/src/commands/login.tsx +196 -0
  52. package/src/commands/logout.tsx +36 -0
  53. package/src/commands/profile.tsx +101 -0
  54. package/src/commands/service-account.tsx +18 -15
  55. package/src/commands/status.tsx +93 -0
  56. package/src/commands/token.tsx +11 -8
  57. package/src/index.tsx +134 -156
  58. package/src/lib/api-client.ts +4 -65
  59. package/src/lib/command-line.ts +743 -0
  60. package/src/lib/dev-supervisor.ts +170 -0
  61. package/src/lib/dev-watch.ts +200 -0
  62. package/src/lib/errors.ts +13 -0
  63. package/src/lib/instance-command.ts +80 -0
  64. package/src/lib/loadSixb.ts +0 -2
  65. package/src/lib/production.ts +11 -0
  66. package/src/lib/profile-api-client.ts +38 -0
  67. package/src/lib/profiles.ts +262 -0
  68. package/src/lib/runtime.ts +10 -4
  69. package/src/lib/worker-registry.ts +7 -1
  70. package/src/ui/index.tsx +39 -140
  71. package/dist/commands/auth.d.ts +0 -8
  72. package/dist/commands/auth.d.ts.map +0 -1
  73. package/src/commands/auth.tsx +0 -96
package/README.md CHANGED
@@ -4,6 +4,15 @@ Command-line interface for building and running [Sixb](https://github.com/sixb-a
4
4
 
5
5
  ## Installation
6
6
 
7
+ Install the `sixb` cli globally:
8
+
9
+ ```bash
10
+ bun add --global @sixb/cli
11
+ sixb --version
12
+ ```
13
+
14
+ Add the CLI to a Sixb project when its development and deployment scripts use it:
15
+
7
16
  ```bash
8
17
  bun add @sixb/cli
9
18
  ```
@@ -16,7 +25,21 @@ bun add @sixb/cli
16
25
  | `sixb api` | Start the production API/docs/WebSocket server |
17
26
  | `sixb atlas` | Start the production Atlas UI server |
18
27
  | `sixb app` | Start the production custom app server |
19
- | `sixb auth status` | Check API token authentication |
28
+ | `sixb login <api-url>` | Validate an instance and save it as the current profile |
29
+ | `sixb logout` | Remove the current or named profile |
30
+ | `sixb status` | Check the selected profile and API |
31
+ | `sixb profile list` | List saved profiles |
32
+ | `sixb profile show [name]` | Show a profile without exposing its token |
33
+ | `sixb profile use <name>` | Select the current profile |
34
+ | `sixb project show` | Show project metadata |
35
+ | `sixb ontology list|get` | Inspect the visible ontology |
36
+ | `sixb objects ...` | Inspect, list, search, and query objects |
37
+ | `sixb telemetry ...` | Read current and historical telemetry |
38
+ | `sixb actions ...` | Discover and request actions |
39
+ | `sixb action-runs ...` | Inspect action execution history |
40
+ | `sixb workflows ...` | Discover and start workflows |
41
+ | `sixb workflow-runs ...` | Inspect workflow execution history |
42
+ | `sixb files ...` | Upload and download files |
20
43
  | `sixb token list` | List personal access tokens |
21
44
  | `sixb token create` | Create a personal access token |
22
45
  | `sixb token revoke <id>` | Revoke a personal access token |
@@ -37,18 +60,39 @@ bun add @sixb/cli
37
60
  | `sixb lake check` | Check lake dataset definitions for drift against the lake catalog |
38
61
  | `sixb lake cleanup` | Run provider-supported lake maintenance cleanup |
39
62
  | `sixb init [dir]` | Initialize a new sixb project in a directory |
40
- | `sixb create <name>` | Scaffold a new Sixb project with `create-sixb` |
41
63
  | `sixb help` | Show help |
42
64
  | `sixb --version` | Show version |
43
65
 
44
- Scaffold a new project without installing the CLI first with `bun create sixb <name>`. After the
45
- CLI is installed, use `sixb create <name>`.
66
+ Scaffold a new project without installing the CLI first with `bun create sixb <name>`.
67
+
68
+ ### Development reload
69
+
70
+ `sixb dev` watches source and configuration files under the config module's directory.
71
+ Changes to ontology, actions, pipelines, other discovered definitions, shared helpers, or
72
+ configuration restart the local dev stack in a fresh process and regenerate project types.
73
+ File additions and deletions are picked up too. Custom `app/` edits use frontend HMR once
74
+ the app server is running; adding the first route starts it automatically.
75
+
76
+ Native file events trigger targeted checks. An asynchronous source scan every five seconds
77
+ recovers missed events without scanning the running frontend's files. A missed native event
78
+ can therefore take a few seconds to reload. Hidden browser tabs pause reload polling and
79
+ check again when visible; disconnected tabs back off retries until the server returns.
80
+
81
+ Backend restarts stop the old workers before starting replacements and reload connected
82
+ browser pages when the new stack is ready. In-memory state resets; persisted state remains.
83
+ Startup errors are displayed and the watcher stays alive so the next save can recover.
84
+ Generated `.sixb/` files, dependencies, build output, and non-source storage files are ignored.
85
+ Source outside the project root is not watched. Environment-file changes require restarting
86
+ `sixb dev`, because Bun loads them into the supervisor's environment at launch.
87
+ Stop the supervisor and its child with Ctrl+C.
88
+ On macOS/Linux, the dev child also enforces its own ten-second cleanup deadline if the
89
+ supervisor disappears, so a stuck startup cannot leave its process group running indefinitely.
46
90
 
47
91
  ## Options
48
92
 
49
93
  | Flag | Applies to | Default | Description |
50
94
  |---|---|---|---|
51
- | `--entry <path>` | all | `sixb.config.ts` | Path to the sixb config module |
95
+ | `--entry <path>` | project and runtime commands | `sixb.config.ts` | Path to the sixb config module |
52
96
  | `--no-migrate` | production roles | false | Start without migrating storage. Also `SIXB_SKIP_MIGRATION=1`. |
53
97
  | `--port <port>` | serving commands | role default | Role bind port. For `dev`, this is the Atlas base port. |
54
98
  | `--host <host>` | serving commands | dev: `127.0.0.1`, roles: `0.0.0.0` | Bind host. `sixb dev` stays on loopback unless you opt in. |
@@ -58,20 +102,64 @@ CLI is installed, use `sixb create <name>`.
58
102
  | `--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` |
59
103
  | `--atlas-public-origin <origin>` | `dev`, `api`, `atlas` | dev: `http://localhost:<port>` | Public Atlas UI origin |
60
104
  | `--app-public-origin <origin>` | `dev`, `api`, `app` | dev: `http://localhost:<port+1>` | Public custom app origin |
61
- | `--api-url <url>` | auth/token commands | `SIXB_API_URL` or `http://localhost:3002` | API origin or `/api` URL |
62
- | `--token <token>` | auth/token commands | `SIXB_API_TOKEN` or `SIXB_TOKEN` | API bearer token |
105
+ | `--profile <name>` | remote commands | current profile | Use a saved profile without changing the current one |
106
+ | `--api-url <url>` | remote commands | resolved profile or `http://localhost:3002` | Use an API without a saved profile |
107
+ | `--token <token>` | remote commands | selected source | Bearer token; direct `--api-url` never inherits another source's token |
108
+ | `--token-stdin` | `login` | false | Read an existing token from standard input |
63
109
  | `--id <id>` | token/service-account commands | generated when supported | Token or service-account id |
64
110
  | `--name <name>` | token/service-account commands | required for create | Token or service-account name |
65
111
  | `--description <text>` | `service-account create` | none | Service-account description |
66
112
  | `--expires-in <duration>` | token create commands | `90d` | Token lifetime, e.g. `30d`, `4w`, or `1y` |
67
113
  | `--expires-at <iso>` | token create commands | none | Token expiration timestamp |
68
114
  | `--group <id>` | token/service-account create commands | inherited/none | Assignable auth group; may repeat or use commas |
69
- | `--json` | auth/token commands | false | Print machine-readable JSON |
115
+ | `--json` | profile and credential commands | false | Print machine-readable JSON |
70
116
  | `--outdir <path>` | `build` | `.sixb/dist` | Build output directory |
71
117
  | `--dry-run` | `lake cleanup` | false | Preview cleanup without changing storage |
72
118
  | `--expire-older-than <interval>` | `lake cleanup` | `7 days` | Snapshot expiration window |
73
119
  | `--delete-older-than <interval>` | `lake cleanup` | expire window | File deletion window |
74
120
 
121
+ Options are command-scoped. Unknown options, missing values, duplicate scalar options, and extra
122
+ positionals fail before the command runs. Repeatable options such as `--group` and the typed
123
+ `--concurrency` forms are declared explicitly. `--api-url` and `--profile` are mutually exclusive;
124
+ either may be paired with an explicit `--token`.
125
+
126
+ Instance commands share this validation with the sandbox CLI. Help does not require a saved profile
127
+ or API connection. Use `--` to pass identifiers that look like options:
128
+
129
+ ```bash
130
+ sixb objects get Customer alice --help
131
+ sixb objects get Customer -- --help
132
+ ```
133
+
134
+ The first command prints help; the second looks up the literal primary id `--help`.
135
+
136
+ Use either help form for contextual command documentation:
137
+
138
+ ```bash
139
+ sixb token --help
140
+ sixb help token create
141
+ ```
142
+
143
+ A bare command group prints its scoped help without choosing a default action:
144
+
145
+ ```bash
146
+ sixb profile
147
+ sixb service-account token
148
+ ```
149
+
150
+ ## Output and exit codes
151
+
152
+ Instance commands emit compact JSON by default. Profile and credential-management commands render
153
+ for humans by default and emit compact JSON when passed `--json`. In JSON mode, failures are
154
+ written as one compact `{"error": ...}` value on stderr.
155
+
156
+ ```text
157
+ 0 success or help
158
+ 1 command or runtime failure
159
+ 2 invalid arguments
160
+ 3 API failure
161
+ ```
162
+
75
163
  ## Usage
76
164
 
77
165
  ```bash
@@ -111,27 +199,69 @@ sixb lake cleanup --dry-run
111
199
  sixb lake cleanup --expire-older-than "1 hour" --delete-older-than "1 hour"
112
200
  sixb lake cleanup --expire-older-than "7 days" --delete-older-than "7 days"
113
201
 
114
- # Scaffold a new project
115
- sixb create my-project
202
+ # Scaffold a new project without installing the CLI
203
+ bun create sixb my-project
116
204
  cd my-project && bun install && sixb dev
117
205
 
118
206
  # Initialize sixb in an existing directory
119
207
  sixb init .
120
208
  ```
121
209
 
122
- ## API authentication commands
210
+ ## Profiles and remote commands
123
211
 
124
- Use a personal access token to call management commands from a terminal, script, or CI job.
125
- `--token` wins over `SIXB_API_TOKEN`, which wins over `SIXB_TOKEN`. `--api-url` wins over
126
- `SIXB_API_URL`, then `SIXB_API_PUBLIC_ORIGIN`, then defaults to `http://localhost:3002`.
212
+ Login validates `/api/project`, saves the profile in `~/.config/sixb/config.json`, and selects it.
213
+ The directory is mode `0700`; the config file is atomically replaced at mode `0600`.
127
214
 
128
215
  ```bash
129
- export SIXB_API_URL=http://localhost:3002/api
130
- export SIXB_API_TOKEN=sixb_pat_...
216
+ sixb login http://localhost:3002 --profile local
131
217
 
132
- sixb auth status
218
+ # Authenticated APIs open a browser and wait for approval:
219
+ sixb login https://api.acme.example --profile production
220
+
221
+ # Non-interactive fallback with an existing token:
222
+ printf '%s\n' "$SIXB_API_TOKEN" |
223
+ sixb login https://api.acme.example --profile production --token-stdin
224
+
225
+ sixb status
226
+ sixb profile list
227
+ sixb profile use production
228
+ sixb ontology list
229
+ sixb objects inspect Customer customer-123
133
230
  ```
134
231
 
232
+ An auth-disabled local API stores a tokenless profile. Authenticated APIs use a short-lived device
233
+ code: the browser approves the request through the existing session, and the CLI stores the
234
+ one-time personal access token only after validating it against `/api/project`. Use `--token-stdin`
235
+ for automation or when you already have a token.
236
+
237
+ Remote target resolution is deterministic:
238
+
239
+ ```text
240
+ --api-url (+ optional --token)
241
+ --profile (+ optional --token)
242
+ SIXB_API_URL (+ SIXB_API_TOKEN or SIXB_TOKEN)
243
+ SIXB_PROFILE
244
+ current profile
245
+ http://localhost:3002
246
+ ```
247
+
248
+ Use a named profile for local tools such as Codex or Claude Code:
249
+
250
+ ```bash
251
+ sixb objects search "Northline" --profile production
252
+ SIXB_PROFILE=production sixb project show
253
+ ```
254
+
255
+ CI can keep credentials entirely in the environment:
256
+
257
+ ```bash
258
+ SIXB_API_URL=https://api.acme.example \
259
+ SIXB_API_TOKEN=sixb_sat_... \
260
+ sixb objects list
261
+ ```
262
+
263
+ ## API credential management
264
+
135
265
  Personal access tokens are user-owned credentials. They can manage personal tokens, service
136
266
  accounts, and service-account tokens within the caller's existing groups and permissions.
137
267
 
@@ -161,7 +291,7 @@ sixb service-account token revoke svc_sandbox tok_...
161
291
  sixb service-account disable svc_sandbox
162
292
  ```
163
293
 
164
- Use `--json` on auth/token commands when scripting:
294
+ Use `--json` on profile and credential-management commands when scripting:
165
295
 
166
296
  ```bash
167
297
  sixb service-account token create svc_sandbox --name "CI token" --expires-in 30d --json
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/commands/api.tsx"],"names":[],"mappings":"AAUA,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,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBA6FpD"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/commands/api.tsx"],"names":[],"mappings":"AAUA,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,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBA2FpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/commands/app.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBAyEpD"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/commands/app.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBAqEpD"}
@@ -0,0 +1,14 @@
1
+ export interface DevOptions {
2
+ entry?: string;
3
+ port?: string;
4
+ host?: string;
5
+ apiPort?: string;
6
+ apiHost?: string;
7
+ apiPublicOrigin?: string;
8
+ atlasPublicOrigin?: string;
9
+ appPublicOrigin?: string;
10
+ agentTurnTimeout?: string;
11
+ concurrency?: readonly string[];
12
+ }
13
+ export declare function runDevRuntime(options?: DevOptions): Promise<void>;
14
+ //# sourceMappingURL=dev-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-runner.d.ts","sourceRoot":"","sources":["../../src/commands/dev-runner.tsx"],"names":[],"mappings":"AAYA,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,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAChC;AAED,wBAAsB,aAAa,CAAC,OAAO,GAAE,UAAe,iBA2J3D"}
@@ -1,14 +1,4 @@
1
- export interface DevOptions {
2
- entry?: string;
3
- port?: string;
4
- host?: string;
5
- apiPort?: string;
6
- apiHost?: string;
7
- apiPublicOrigin?: string;
8
- atlasPublicOrigin?: string;
9
- appPublicOrigin?: string;
10
- agentTurnTimeout?: string;
11
- concurrency?: readonly string[];
12
- }
1
+ import type { DevOptions } from "./dev-runner";
2
+ export type { DevOptions } from "./dev-runner";
13
3
  export declare function runDev(options?: DevOptions): Promise<void>;
14
4
  //# sourceMappingURL=dev.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.tsx"],"names":[],"mappings":"AAYA,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,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAChC;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBAyIpD"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,wBAAsB,MAAM,CAAC,OAAO,GAAE,UAAe,iBA2BpD"}
@@ -1,3 +1,2 @@
1
1
  export declare function runInit(dir?: string): Promise<void>;
2
- export declare function runCreate(name: string): Promise<void>;
3
2
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.tsx"],"names":[],"mappings":"AAIA,wBAAsB,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWzD;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU3D"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.tsx"],"names":[],"mappings":"AAIA,wBAAsB,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWzD"}
@@ -0,0 +1,8 @@
1
+ export interface LoginCommandOptions {
2
+ readonly apiUrl?: string;
3
+ readonly profile?: string;
4
+ readonly tokenStdin?: boolean;
5
+ readonly json?: boolean;
6
+ }
7
+ export declare function runLogin(options?: LoginCommandOptions): Promise<void>;
8
+ //# sourceMappingURL=login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,QAAQ,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8C/E"}
@@ -0,0 +1,6 @@
1
+ export interface LogoutCommandOptions {
2
+ readonly profile?: string;
3
+ readonly json?: boolean;
4
+ }
5
+ export declare function runLogout(options?: LogoutCommandOptions): Promise<void>;
6
+ //# sourceMappingURL=logout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../src/commands/logout.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BjF"}
@@ -0,0 +1,7 @@
1
+ export interface ProfileCommandOptions {
2
+ readonly action?: string;
3
+ readonly name?: string;
4
+ readonly json?: boolean;
5
+ }
6
+ export declare function runProfile(options?: ProfileCommandOptions): Promise<void>;
7
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/commands/profile.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,UAAU,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAMnF"}
@@ -2,6 +2,7 @@ export interface ServiceAccountCommandOptions {
2
2
  readonly positionals?: readonly string[];
3
3
  readonly apiUrl?: string;
4
4
  readonly token?: string;
5
+ readonly profile?: string;
5
6
  readonly id?: string;
6
7
  readonly name?: string;
7
8
  readonly description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"service-account.d.ts","sourceRoot":"","sources":["../../src/commands/service-account.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,iBAAiB,CAAC,OAAO,GAAE,4BAAiC,iBAuBjF"}
1
+ {"version":3,"file":"service-account.d.ts","sourceRoot":"","sources":["../../src/commands/service-account.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,iBAAiB,CAAC,OAAO,GAAE,4BAAiC,iBAuBjF"}
@@ -0,0 +1,8 @@
1
+ export interface StatusCommandOptions {
2
+ readonly apiUrl?: string;
3
+ readonly token?: string;
4
+ readonly profile?: string;
5
+ readonly json?: boolean;
6
+ }
7
+ export declare function runStatus(options?: StatusCommandOptions): Promise<void>;
8
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/commands/status.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkCjF"}
@@ -3,6 +3,7 @@ export interface TokenCommandOptions {
3
3
  readonly positionals?: readonly string[];
4
4
  readonly apiUrl?: string;
5
5
  readonly token?: string;
6
+ readonly profile?: string;
6
7
  readonly id?: string;
7
8
  readonly name?: string;
8
9
  readonly expiresAt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/commands/token.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,QAAQ,CAAC,OAAO,GAAE,mBAAwB,iBAkB/D"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/commands/token.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAsB,QAAQ,CAAC,OAAO,GAAE,mBAAwB,iBAkB/D"}
@@ -5,17 +5,6 @@ export interface SixbApiClientConfig {
5
5
  readonly token?: string;
6
6
  readonly tokenSource?: string;
7
7
  }
8
- export interface ResolveApiClientConfigOptions {
9
- readonly apiUrl?: string;
10
- readonly token?: string;
11
- readonly env?: Record<string, string | undefined>;
12
- }
13
- export declare class SixbApiError extends Error {
14
- readonly status: number | undefined;
15
- readonly responseBody: unknown;
16
- constructor(message: string, status: number | undefined, responseBody: unknown);
17
- }
18
- export declare function resolveApiClientConfig(options?: ResolveApiClientConfigOptions): SixbApiClientConfig;
19
8
  export declare function createCliSixbClient(config: SixbApiClientConfig): SixbClient;
20
9
  export declare function unwrapSixbApiResult<T>(result: {
21
10
  readonly data?: T;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/lib/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CAClD;AAED,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;gBAElB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,OAAO;CAM/E;AAED,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,6BAAkC,GAC1C,mBAAmB,CAwBrB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAS3E;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACjB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAC7B,GAAG,CAAC,CAcJ;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUrD"}
1
+ {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/lib/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAW3E;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACjB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAC7B,GAAG,CAAC,CAcJ;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUrD"}
@@ -0,0 +1,176 @@
1
+ export declare const CLI_OPTION_DEFINITIONS: {
2
+ readonly entry: {
3
+ readonly syntax: "--entry <path>";
4
+ readonly summary: "Entry file (default: sixb.config.ts)";
5
+ readonly kind: "string";
6
+ };
7
+ readonly "no-migrate": {
8
+ readonly syntax: "--no-migrate";
9
+ readonly summary: "Start a role without migrating storage (or SIXB_SKIP_MIGRATION=1)";
10
+ readonly kind: "boolean";
11
+ };
12
+ readonly port: {
13
+ readonly syntax: "--port <port>";
14
+ readonly summary: "Role port; dev uses Atlas base port";
15
+ readonly kind: "string";
16
+ };
17
+ readonly host: {
18
+ readonly syntax: "--host <host>";
19
+ readonly summary: "Bind host (dev: 127.0.0.1, production roles: 0.0.0.0)";
20
+ readonly kind: "string";
21
+ };
22
+ readonly "api-port": {
23
+ readonly syntax: "--api-port <port>";
24
+ readonly summary: "API port (default: Atlas port + 2)";
25
+ readonly kind: "string";
26
+ };
27
+ readonly "api-host": {
28
+ readonly syntax: "--api-host <host>";
29
+ readonly summary: "API bind host (default: --host)";
30
+ readonly kind: "string";
31
+ };
32
+ readonly "api-public-origin": {
33
+ readonly syntax: "--api-public-origin <origin>";
34
+ readonly summary: "Public API origin";
35
+ readonly kind: "string";
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
+ readonly concurrency: {
43
+ readonly syntax: "--concurrency <value>";
44
+ readonly summary: "Concurrent jobs: count for worker; repeat type=count for dev/worker-group";
45
+ readonly kind: "string";
46
+ };
47
+ readonly "atlas-public-origin": {
48
+ readonly syntax: "--atlas-public-origin <origin>";
49
+ readonly summary: "Public Atlas origin";
50
+ readonly kind: "string";
51
+ };
52
+ readonly "app-public-origin": {
53
+ readonly syntax: "--app-public-origin <origin>";
54
+ readonly summary: "Public custom app origin";
55
+ readonly kind: "string";
56
+ };
57
+ readonly profile: {
58
+ readonly syntax: "--profile <name>";
59
+ readonly summary: "Use a saved API profile";
60
+ readonly kind: "string";
61
+ };
62
+ readonly "api-url": {
63
+ readonly syntax: "--api-url <url>";
64
+ readonly summary: "Use an API without a saved profile";
65
+ readonly kind: "string";
66
+ };
67
+ readonly token: {
68
+ readonly syntax: "--token <token>";
69
+ readonly summary: "Bearer token for an explicit API URL";
70
+ readonly kind: "string";
71
+ };
72
+ readonly "token-stdin": {
73
+ readonly syntax: "--token-stdin";
74
+ readonly summary: "Import a login token from standard input";
75
+ readonly kind: "boolean";
76
+ };
77
+ readonly id: {
78
+ readonly syntax: "--id <id>";
79
+ readonly summary: "Token or service-account id";
80
+ readonly kind: "string";
81
+ };
82
+ readonly name: {
83
+ readonly syntax: "--name <name>";
84
+ readonly summary: "Token or service-account name";
85
+ readonly kind: "string";
86
+ };
87
+ readonly description: {
88
+ readonly syntax: "--description <text>";
89
+ readonly summary: "Service-account description";
90
+ readonly kind: "string";
91
+ };
92
+ readonly "expires-in": {
93
+ readonly syntax: "--expires-in <duration>";
94
+ readonly summary: "Token lifetime, e.g. 30d or 1y";
95
+ readonly kind: "string";
96
+ };
97
+ readonly "expires-at": {
98
+ readonly syntax: "--expires-at <iso>";
99
+ readonly summary: "Token expiration timestamp";
100
+ readonly kind: "string";
101
+ };
102
+ readonly group: {
103
+ readonly syntax: "--group <id>";
104
+ readonly summary: "Assignable token group; may repeat";
105
+ readonly kind: "string";
106
+ };
107
+ readonly json: {
108
+ readonly syntax: "--json";
109
+ readonly summary: "Print JSON for management commands";
110
+ readonly kind: "boolean";
111
+ };
112
+ readonly outdir: {
113
+ readonly syntax: "--outdir <path>";
114
+ readonly summary: "Build output directory";
115
+ readonly kind: "string";
116
+ };
117
+ readonly "dry-run": {
118
+ readonly syntax: "--dry-run";
119
+ readonly summary: "Preview lake cleanup without changing storage";
120
+ readonly kind: "boolean";
121
+ };
122
+ readonly "expire-older-than": {
123
+ readonly syntax: "--expire-older-than <interval>";
124
+ readonly summary: "Lake snapshot expiration window";
125
+ readonly kind: "string";
126
+ };
127
+ readonly "delete-older-than": {
128
+ readonly syntax: "--delete-older-than <interval>";
129
+ readonly summary: "Lake file deletion window";
130
+ readonly kind: "string";
131
+ };
132
+ };
133
+ export type CliOptionName = keyof typeof CLI_OPTION_DEFINITIONS;
134
+ export type LocalCommandId = "dev" | "api" | "atlas" | "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" | "db:migrate" | "lake:check" | "lake:cleanup" | "init";
135
+ export interface CliHelpItem {
136
+ readonly label: string;
137
+ readonly value: string;
138
+ }
139
+ export interface CliHelp {
140
+ readonly path: readonly string[];
141
+ readonly usage: string;
142
+ readonly summary: string;
143
+ readonly commands: readonly CliHelpItem[];
144
+ readonly options: readonly CliHelpItem[];
145
+ }
146
+ export interface ParsedCliOptions {
147
+ readonly [name: string]: string | boolean | readonly string[] | undefined;
148
+ }
149
+ export type ParsedCli = {
150
+ readonly kind: "help";
151
+ readonly help: CliHelp;
152
+ } | {
153
+ readonly kind: "version";
154
+ } | {
155
+ readonly kind: "instance";
156
+ readonly args: readonly string[];
157
+ } | {
158
+ readonly kind: "command";
159
+ readonly id: LocalCommandId;
160
+ readonly path: readonly string[];
161
+ readonly positionals: readonly string[];
162
+ readonly options: ParsedCliOptions;
163
+ };
164
+ export declare class CliUsageError extends Error {
165
+ readonly help: CliHelp;
166
+ readonly exitCode = 2;
167
+ constructor(message: string, help: CliHelp);
168
+ }
169
+ export declare const ROOT_HELP: CliHelp;
170
+ export declare const CLI_EXAMPLES: readonly ["sixb dev", "sixb build", "sixb api", "sixb login http://localhost:3002 --profile local", "sixb ontology list", "sixb objects inspect Customer customer-123", "sixb token create --name 'Local CLI' --expires-in 90d", "sixb service-account create --id svc_sandbox --name 'Sandbox agent' --group agents", "sixb service-account token create svc_sandbox --name 'Sandbox token' --expires-in 30d", "sixb status", "sixb atlas", "sixb app", "sixb scheduler", "sixb orchestrator", "sixb rules", "sixb worker pipeline", "sixb worker agent --concurrency 8", "sixb worker-group sync agent --concurrency sync=2 --concurrency agent=8", "sixb dev --entry examples/mac-os/sixb.config.ts --port 8080", "sixb check", "sixb typegen", "sixb db migrate", "sixb lake check", "sixb lake cleanup --dry-run"];
171
+ export declare function parseCliArgs(args: readonly string[]): ParsedCli;
172
+ export declare function stringOption(options: ParsedCliOptions, name: CliOptionName): string | undefined;
173
+ export declare function booleanOption(options: ParsedCliOptions, name: CliOptionName): boolean;
174
+ export declare function repeatedOption(options: ParsedCliOptions, name: CliOptionName): readonly string[];
175
+ export declare function wantsManagementJson(args: readonly string[]): boolean;
176
+ //# sourceMappingURL=command-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-line.d.ts","sourceRoot":"","sources":["../../src/lib/command-line.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import type { DevOptions } from "../commands/dev-runner";
2
+ /** The parent never imports project modules: every generation gets a fresh module graph. */
3
+ export declare function runDevSupervisor(options: DevOptions): Promise<void>;
4
+ //# sourceMappingURL=dev-supervisor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-supervisor.d.ts","sourceRoot":"","sources":["../../src/lib/dev-supervisor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,4FAA4F;AAC5F,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAmKzE"}
@@ -0,0 +1,7 @@
1
+ /** Targeted native checks, with a bounded-concurrency async scan for missed events. */
2
+ export declare function watchDevSource(root: string, hasCustomApp: () => boolean, onChange: (path: string) => void, onError: (error: unknown) => void): {
3
+ ready: Promise<void>;
4
+ refresh: () => Promise<void>;
5
+ close(): Promise<void>;
6
+ };
7
+ //# sourceMappingURL=dev-watch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-watch.d.ts","sourceRoot":"","sources":["../../src/lib/dev-watch.ts"],"names":[],"mappings":"AAqCA,uFAAuF;AACvF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,OAAO,EAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAChC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;;;;EA6JlC"}
@@ -5,6 +5,12 @@ export interface SixbCliErrorOptions extends ErrorOptions {
5
5
  */
6
6
  readonly remediation?: string;
7
7
  }
8
+ /** An HTTP or transport failure returned by the Sixb API. */
9
+ export declare class SixbApiError extends Error {
10
+ readonly status: number | undefined;
11
+ readonly responseBody: unknown;
12
+ constructor(message: string, status: number | undefined, responseBody: unknown);
13
+ }
8
14
  /** A failure the CLI raised itself, as opposed to one it caught from the runtime. */
9
15
  export declare class SixbCliError extends Error {
10
16
  readonly remediation: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,qFAAqF;AACrF,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;gBAE5B,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB;CAK/D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAYnE"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,6DAA6D;AAC7D,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;gBAElB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,YAAY,EAAE,OAAO;CAM/E;AAED,qFAAqF;AACrF,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;gBAE5B,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB;CAK/D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAYnE"}