@sequenceholdings/studio-cli 0.5.4 → 0.5.5
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 +151 -1
- package/dist/agents/source.js +2 -1
- package/dist/app/adapters.js +2 -1
- package/dist/app/commands.js +4 -4
- package/dist/artifact/delegate.js +16 -4
- package/dist/atlas-client.js +5 -1
- package/dist/auth-cmds/commands.d.ts +1 -1
- package/dist/auth-cmds/commands.js +3 -0
- package/dist/auth.d.ts +2 -1
- package/dist/auth.js +16 -0
- package/dist/command-contract.d.ts +8 -8
- package/dist/command-contract.js +6 -6
- package/dist/command-help.d.ts +3 -2
- package/dist/command-help.js +31 -3
- package/dist/command-input.js +2 -2
- package/dist/config.d.ts +5 -0
- package/dist/config.js +14 -1
- package/dist/env-flags.d.ts +6 -0
- package/dist/env-flags.js +9 -0
- package/dist/functions/commands.d.ts +4 -1
- package/dist/functions/commands.js +27 -5
- package/dist/functions/deploy-preflight.js +2 -2
- package/dist/functions/manifest.d.ts +43 -29
- package/dist/functions/manifest.js +37 -74
- package/dist/main.js +42 -2
- package/dist/orm/delegate.js +25 -4
- package/dist/orm/read.d.ts +54 -0
- package/dist/orm/read.js +308 -0
- package/dist/pipeline/commands.js +10 -0
- package/dist/pipeline/discovery.js +3 -16
- package/dist/pipeline/retirement.d.ts +3 -0
- package/dist/pipeline/retirement.js +34 -0
- package/dist/process/build.js +4 -0
- package/dist/process/codegen.js +2 -0
- package/dist/process/commands.js +57 -18
- package/dist/process/plan-diff.js +1 -0
- package/dist/process/runs.d.ts +14 -0
- package/dist/process/runs.js +238 -0
- package/dist/repos/ci-status.js +28 -0
- package/dist/repos/commands.js +6 -0
- package/dist/repos/git-credential.d.ts +3 -2
- package/dist/repos/git-credential.js +52 -3
- package/dist/repos/pulls.d.ts +7 -1
- package/dist/repos/pulls.js +162 -22
- package/dist/sandbox-auth.d.ts +52 -0
- package/dist/sandbox-auth.js +105 -0
- package/dist/storage/commands.js +6 -5
- package/dist/text-table.d.ts +7 -0
- package/dist/text-table.js +16 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -32,6 +32,8 @@ verifies and copies the selected release into a new or empty directory.
|
|
|
32
32
|
> `agents validate`, offline `agents plan`, `pipeline init`, `pipeline validate`) work.
|
|
33
33
|
> Repo and function command help is also available without an account; for
|
|
34
34
|
> example, `seq-studio repos create --help` and `seq-studio functions invoke --help`.
|
|
35
|
+
> An unknown subcommand, including one followed by `--help`, exits nonzero and
|
|
36
|
+
> points to the namespace help; check command spelling before retrying.
|
|
35
37
|
> Sequence-internal contributors: see `INTERNAL.md` in the monorepo for
|
|
36
38
|
> rollout SOPs, preview environments, and publishing docs.
|
|
37
39
|
|
|
@@ -129,6 +131,40 @@ user-scoped/private resources.
|
|
|
129
131
|
Artifact commands do not accept bearer tokens through argv or environment.
|
|
130
132
|
Use interactive login or the realm-specific M2M secret above.
|
|
131
133
|
|
|
134
|
+
### Sandbox token mode (agent sandboxes)
|
|
135
|
+
|
|
136
|
+
An agent sandbox provisioned by Atlas has no browser and can reach only its
|
|
137
|
+
Atlas origin. Atlas writes a short-lived token scoped to the calling user into
|
|
138
|
+
a file and exports two variables:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
export SEQ_STUDIO_BASE_URL=https://<your-atlas-origin>
|
|
142
|
+
export SEQ_STUDIO_TOKEN_FILE=/run/seq/token
|
|
143
|
+
seq-studio auth whoami # authMode: sandbox
|
|
144
|
+
seq-studio orm read lending loans --limit 5 --json
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
With both set, every command targets `SEQ_STUDIO_BASE_URL` with the token from
|
|
148
|
+
`SEQ_STUDIO_TOKEN_FILE`. There is no login, token cache, or environment
|
|
149
|
+
registry lookup, and `-e` is optional (any value is ignored). The file is read
|
|
150
|
+
again for every request, so a token Atlas rotates mid-command is picked up.
|
|
151
|
+
Setting only one of the two variables is an error rather than a fallback to a
|
|
152
|
+
cached login. `seq-studio doctor` reports the mode.
|
|
153
|
+
|
|
154
|
+
Git uses the same token: `repos clone` installs the usual helper, and the helper
|
|
155
|
+
answers only for git-service repositories on `SEQ_STUDIO_BASE_URL`. To use plain
|
|
156
|
+
`git` against that host, configure the helper once:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
git config --global credential."$SEQ_STUDIO_BASE_URL".helper '!seq-studio auth git-credential'
|
|
160
|
+
git config --global credential."$SEQ_STUDIO_BASE_URL".useHttpPath true
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Repository sources for `--repo` builds are materialized through the JSON API,
|
|
164
|
+
like other headless callers; public `--git-url` sources are refused. Artifact
|
|
165
|
+
commands are not available in sandbox token mode: like `--token`, Artifact Studio
|
|
166
|
+
accepts only credentials the CLI obtained itself.
|
|
167
|
+
|
|
132
168
|
## Environments
|
|
133
169
|
|
|
134
170
|
The CLI ships with a single built-in environment, `local`
|
|
@@ -786,6 +822,8 @@ compiled to canonical SQL before registration.
|
|
|
786
822
|
| `seq-studio orm diff [dir] [--check]` | Author the next committed migration, or verify the migration/snapshot chain offline for CI. |
|
|
787
823
|
| `seq-studio orm apply [dir] -e <env>` | Author a migration if needed, register/apply the namespace, activate its operation set, publish roles/capabilities, and refresh generated outputs. |
|
|
788
824
|
| `seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>` | Execute one named persisted operation from `operations.manifest.json` with variables from a JSON object file, as the signed-in caller. |
|
|
825
|
+
| `seq-studio orm read <namespace> <table> -e <env> [--where …] [--select …] [--order …] [--limit N] [--offset N] [--json\|--jsonl]` | Read rows of a deployed v2 namespace's table as the caller. |
|
|
826
|
+
| `seq-studio orm sql <namespace> --query <sql> \| --file <path> -e <env> [--param …] [--json\|--jsonl]` | Run read-only SQL against a deployed v2 namespace as the caller. |
|
|
789
827
|
| `seq-studio orm migrate-from-yaml <dir>` | Convert a legacy YAML namespace to TypeScript authoring while preserving its committed migrations. |
|
|
790
828
|
| `seq-studio orm import [dir] --spec <file>` | Plan a batched copy from an existing Postgres relation (a synced warehouse table) into an owned ORM table. Writes a SQL script; it does not connect or apply row policies. |
|
|
791
829
|
|
|
@@ -824,6 +862,44 @@ starting another rehearsal.
|
|
|
824
862
|
> depends on `@sequenceholdings/orm@^2.0.0`; use the matching published major
|
|
825
863
|
> version and keep generated manifests and migrations committed with source.
|
|
826
864
|
|
|
865
|
+
### Ad-hoc reads (`orm read`, `orm sql`)
|
|
866
|
+
|
|
867
|
+
`read` and `sql` query a deployed ORM v2 namespace without authoring an
|
|
868
|
+
operation. Both run the namespace's built-in read-only SQL operation (the same
|
|
869
|
+
one `orm.sql()` uses in apps and functions) as you: grants and row-level
|
|
870
|
+
security apply, the server accepts only its read-only SQL grammar, and a result
|
|
871
|
+
is bounded to 1,000 rows, 8 MiB, and a 10-second statement timeout. Legacy v1
|
|
872
|
+
YAML namespaces are not supported; convert them with `orm migrate-from-yaml`.
|
|
873
|
+
|
|
874
|
+
```bash
|
|
875
|
+
seq-studio orm read lending loans -e <env> \
|
|
876
|
+
--where status=eq.open --where balance=gte.1000 \
|
|
877
|
+
--select id,officer,balance --order balance.desc --limit 50 --json
|
|
878
|
+
|
|
879
|
+
seq-studio orm sql lending -e <env> \
|
|
880
|
+
--query 'SELECT officer, sum(balance) AS total FROM lending.loans WHERE status = :status GROUP BY officer' \
|
|
881
|
+
--param status=open --jsonl | jq -r '.officer'
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
- `read` filters with repeatable `--where <column>=<op>.<value>`. Operators: `eq`, `ne`,
|
|
885
|
+
`gt`, `gte`, `lt`, `lte`, `in` (`id=in.(a,b,c)`), and `is` (`closed_at=is.null`,
|
|
886
|
+
`active=is.true`). Values bind as parameters typed like their columns, which `read`
|
|
887
|
+
looks up with one extra request. `--order <column>[.asc|.desc]` is repeatable or
|
|
888
|
+
comma-separated.
|
|
889
|
+
- `sql` takes the statement from `--query` or `--file` and binds `:name` placeholders.
|
|
890
|
+
`--param <name>[:<type>]=<value>` is repeatable; the type defaults to `text` and may be
|
|
891
|
+
`uuid`, `date`, `timestamptz`, `numeric`, `bigint`, `integer`, `double`, or `boolean`.
|
|
892
|
+
`--params '{"closed": {"type": "timestamptz", "value": null}}'` passes the wire shape,
|
|
893
|
+
including null values.
|
|
894
|
+
- `sql` must reference every table as `<namespace>.<table>` (`FROM lending.loans`, not
|
|
895
|
+
`FROM loans`); unqualified names and queries without a table (`SELECT 1`) are rejected.
|
|
896
|
+
The grammar is read-only `SELECT` with joins, CTEs, `UNION`, aggregates, and comparison
|
|
897
|
+
operators; it has no `LIKE` or `IN`. When the server rejects a statement it says only
|
|
898
|
+
"SQL query is invalid or unsupported", so the CLI adds a hint with these rules.
|
|
899
|
+
- `--json` prints a JSON array of row objects (`pandas.read_json`), `--jsonl` one
|
|
900
|
+
object per line (`pandas.read_json(lines=True)`, `jq`). Without either, rows print
|
|
901
|
+
as a table. Counts, truncation, and next-page hints (`--offset`) go to stderr.
|
|
902
|
+
|
|
827
903
|
### Registered SQL operations in development builds
|
|
828
904
|
|
|
829
905
|
The planned Studio CLI 0.5.0 package chain also carries default namespace SQL:
|
|
@@ -881,12 +957,36 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
881
957
|
| `seq-studio process bundle inspect <bundle.json>` | Show a saved bundle's summary |
|
|
882
958
|
| `seq-studio process bundle list [-e <env>] [--limit N] [--cursor <hash>]` | List registered bundles (paginated; CLI auto-fetches all pages) |
|
|
883
959
|
| `seq-studio process bundle publish <hash or bundle.json> [-e <env>]` | Register a local bundle (no promote) |
|
|
960
|
+
| `seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>] [--metadata-file <file>]` | Start a run as you (needs `invoker` on the process) |
|
|
961
|
+
| `seq-studio process runs list -e <env> [--process <id>] [--status <s>] [--limit N]` | List runs you can view, newest first |
|
|
962
|
+
| `seq-studio process runs show <run-id> -e <env> [--wait]` | Show a run's status and steps; `--wait` polls until it finishes |
|
|
963
|
+
| `seq-studio process runs cancel <run-id> -e <env>` | Cancel a run (needs `invoker` on the process) |
|
|
884
964
|
|
|
885
965
|
Use `lint --offline` for checks without live registry lookups. `test --offline`
|
|
886
966
|
also skips agent-schema lookup and permits skipping the active-version diff when
|
|
887
967
|
environment/auth is unavailable, but it still attempts that live diff and resolves
|
|
888
968
|
subprocess versions when needed. It is not a guarantee of network-free execution.
|
|
889
969
|
|
|
970
|
+
### Runs
|
|
971
|
+
|
|
972
|
+
```bash
|
|
973
|
+
seq-studio process runs start credit-memo -e <env> \
|
|
974
|
+
--run-id memo-loan-1042 --metadata-file run.json --json
|
|
975
|
+
seq-studio process runs show memo-loan-1042 -e <env> --wait --json
|
|
976
|
+
seq-studio process runs list -e <env> --process credit-memo --status failed --limit 20
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
`--version` pins a published version; without it the active version runs.
|
|
980
|
+
`--run-id` makes `start` idempotent: repeating it for the same process returns
|
|
981
|
+
the existing run (`idempotent_replay: true`) rather than starting another, and
|
|
982
|
+
reusing it for a different process is refused. `--metadata-file` must hold a
|
|
983
|
+
JSON object. `list` filters by `--process`, `--status` (`pending`, `running`,
|
|
984
|
+
`completed`, `failed`, `cancelled`, `timed_out`), `--entity-type`/`--entity-id`,
|
|
985
|
+
and `--archived`; it returns the newest runs up to `--limit` (default 50,
|
|
986
|
+
maximum 500). The run API has no cursor, so narrow the filters to reach older
|
|
987
|
+
runs. `show --wait` stops waiting after `--timeout` seconds (default 600); the
|
|
988
|
+
run itself continues. `--json` prints the API response on every command.
|
|
989
|
+
|
|
890
990
|
### JSONata mapper contracts
|
|
891
991
|
|
|
892
992
|
`jsonata('…')` expressions are serialized as `*_expr` data and run in a
|
|
@@ -966,6 +1066,16 @@ seq-studio process lint --dir my-processes --offline # finds both processes
|
|
|
966
1066
|
Add `--help` to a function command to read its usage offline, without an
|
|
967
1067
|
environment, credentials, or `managed-function.yml`.
|
|
968
1068
|
|
|
1069
|
+
For a function whose source must remain pinned, declare
|
|
1070
|
+
`function.immutable_release: true` before its first deployment using CLI **0.5.5**
|
|
1071
|
+
and a platform that advertises immutable releases. The first successful activation
|
|
1072
|
+
permanently freezes deployment of that function identity, including promote,
|
|
1073
|
+
rollback, and secret-version redeploys. Create a new `function.id` for the next
|
|
1074
|
+
release and retain previous functions while their callers still need them.
|
|
1075
|
+
Removing the flag cannot unfreeze the runtime, and already active mutable
|
|
1076
|
+
functions cannot opt in retroactively. The default remains mutable. See the
|
|
1077
|
+
[Managed Functions SDK guide](../managed-functions/README.md#immutable-function-releases).
|
|
1078
|
+
|
|
969
1079
|
| Command | What it does |
|
|
970
1080
|
|---------|--------------|
|
|
971
1081
|
| `seq-studio functions init <dir>` | Scaffold one standalone TypeScript managed function |
|
|
@@ -981,6 +1091,12 @@ environment, credentials, or `managed-function.yml`.
|
|
|
981
1091
|
that function. Versions named by repository CI, such as `ci-abc`, do not reset
|
|
982
1092
|
the sequence. A function with no numbered versions starts at `v1`.
|
|
983
1093
|
|
|
1094
|
+
Set `runtime: nodejs24` in `managed-function.yml` to use Node.js 24 on a hosted
|
|
1095
|
+
deployment. Node.js 20 (`nodejs20`) remains the default when `runtime` is omitted.
|
|
1096
|
+
These are the supported manifest values; other runtimes are rejected. Keep
|
|
1097
|
+
`package.json`'s `engines.node` compatible with the selected runtime, for example
|
|
1098
|
+
`"24.x"` for Node.js 24. Local development uses the installed Node version.
|
|
1099
|
+
|
|
984
1100
|
A normal function repo keeps `managed-function.yml` at its root and omits
|
|
985
1101
|
`--path`. A repo may also contain related, independently deployed functions:
|
|
986
1102
|
|
|
@@ -1271,6 +1387,21 @@ A successful direct `seq-studio orm execute` call does not test a function's
|
|
|
1271
1387
|
delegated scope. If the same read fails through the function with a 403, check
|
|
1272
1388
|
the deployed `tables` declaration before requesting broader user grants.
|
|
1273
1389
|
|
|
1390
|
+
### Trusted Lattice context
|
|
1391
|
+
|
|
1392
|
+
Declare `capabilities.lattice.context: true` and attach a top-level
|
|
1393
|
+
`service_account` for functions that read their verified Lattice execution or
|
|
1394
|
+
selected human-action receipts. This requires CLI `0.5.5`, Managed Functions SDK
|
|
1395
|
+
`0.4.2`, and deployed `lattice_context` support; preflight fails before upload
|
|
1396
|
+
when a declaration, attachment or release prerequisite is missing.
|
|
1397
|
+
|
|
1398
|
+
The reviewed process node must explicitly map any context data it exposes as
|
|
1399
|
+
`input.context`. The SDK returns the actual mapped input and platform-owned
|
|
1400
|
+
execution identity. It does not grant arbitrary run reads or treat a run
|
|
1401
|
+
starter, caller-authored actor or service attribution as a human approval.
|
|
1402
|
+
See the [Managed Functions SDK](../managed-functions/README.md#trusted-lattice-execution-and-human-actions)
|
|
1403
|
+
for invocation-scoped context and receipt APIs.
|
|
1404
|
+
|
|
1274
1405
|
## Managed Secret commands
|
|
1275
1406
|
|
|
1276
1407
|
| Command | What it does |
|
|
@@ -1615,6 +1746,10 @@ Deploy login-capable server support before upgrading the CLI; this CLI cannot
|
|
|
1615
1746
|
authenticate Git against older PAT-only servers. `clone` no longer silently downloads a files-only tree.
|
|
1616
1747
|
Use `seq-studio repos pull` or `repos clone --transport json` explicitly when you want files without `.git`.
|
|
1617
1748
|
|
|
1749
|
+
In sandbox token mode the helper answers with the sandbox token instead of a
|
|
1750
|
+
login, for git-service repositories on `SEQ_STUDIO_BASE_URL` only; see
|
|
1751
|
+
[Sandbox token mode](#sandbox-token-mode-agent-sandboxes).
|
|
1752
|
+
|
|
1618
1753
|
### Retired personal access tokens
|
|
1619
1754
|
|
|
1620
1755
|
Git authentication requires a human `seq-studio login --env <env>` session.
|
|
@@ -1659,7 +1794,7 @@ JSON API — the same repos `--repo <ns>/<name>` sources build from.
|
|
|
1659
1794
|
| `seq-studio repos pull <ns>/<name> -e <env> [--ref <r>] [--out <dir>] [--force]` | always materialize via JSON API (no `.git` dir); refuses a non-empty destination unless `--force` |
|
|
1660
1795
|
| `seq-studio repos delete <ns>/<name> -e <env> [--yes]` | delete a repo — interactive confirm unless `--yes` |
|
|
1661
1796
|
| `seq-studio repos ci init [--dir <repository>]` | create `.seq/pipeline.yml` with native defaults; offline, preserves existing configuration |
|
|
1662
|
-
| `seq-studio repos ci show <ns>/<name> -e <env> --pr <number> [--json]` | inspect the server's discovered pipeline, exact plan and
|
|
1797
|
+
| `seq-studio repos ci show <ns>/<name> -e <env> --pr <number> [--json]` | inspect the server's discovered pipeline, exact plan, recent runs, and deployment intents (state, target progress, errors, and live app URL). Text output shows at most five intents and ten targets per intent; `--json` retains the complete status response. |
|
|
1663
1798
|
| `seq-studio repos ci show <ns>/<name> -e <env> [--ref <r>]` | preview legacy discovery at a ref; an empty result does not establish that the server plan has no targets, checks, or findings. Open or update a PR and use `--pr <number>` for the authoritative plan. |
|
|
1664
1799
|
| `seq-studio repos ci require <ns>/<name> --check <name> -e <env>` | disabled legacy required-check control; use native pipeline discovery |
|
|
1665
1800
|
| `seq-studio repos ci import <ns>/<name> -e <env> [--ref <r>]` | disabled legacy required-check control; use native pipeline discovery |
|
|
@@ -1824,6 +1959,7 @@ Creating a release unit requires both **Can create** on Pipelines and Git Servic
|
|
|
1824
1959
|
| `seq-studio pipeline status --deployment-id <id> -e <env> [--json]` | Fetch the current remote deployment status without changing it. Use this public command to continue monitoring after local polling stops |
|
|
1825
1960
|
| `seq-studio pipeline adopt --stage <slug> --ref <sha\|branch> [--root <directory>] -e <env> [--target <id>] --native-id <id> --approved-by <you> [--resource-key <key>] [--kind job\|dlt_pipeline] [--old-source-removal-pr <url>] [--repo <namespace>/<slug>]` | Bind a live Databricks job/pipeline into the stage without recreation (`bundle deployment bind` on Trigger). Always requires `--approved-by` naming the caller. When the key is still in the monorepo DAB, pass `--old-source-removal-pr` and follow the returned cutover checklist: unbind the old bundle state without deleting the remote, then remove its DAB declaration and add the target-specific adopted-resource entry in the same PR before redeploying. |
|
|
1826
1961
|
| `seq-studio pipeline unbind --stage <slug> --ref <sha\|branch> [--root <directory>] -e <env> [--target <id>] --approved-by <you> [--resource-key <key>] [--repo <namespace>/<slug>]` | Release an adopted binding on Trigger; the remote object stays live (never deleted) |
|
|
1962
|
+
| `seq-studio pipeline retire --repo <release-unit> -e <env> [--target <id>] [--json]` | Preview the exact whole-pipeline inventory. Approve with `--plan-hash <hash> --yes`. Inspect with `--retirement-id <id>`; explicitly resume a stopped failure with `--retirement-id <id> --resume --yes`. Requires a human pipeline administrator and the existing staff destructive-operation gate. Deletes supported execution resources, releases bindings, and archives stages; retains data objects, source repositories, permissions and historical records. |
|
|
1827
1963
|
| `seq-studio pipeline run-now --stage <slug> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--json]` | Run the stage's active job or DLT pipeline immediately and print its Databricks run URL |
|
|
1828
1964
|
| `seq-studio pipeline promote --stage <slug> --version <v> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--approved-by <you>] [--wait-timeout <duration>] [--no-wait] [--json]` | Promote a validated version to another target. Targets that require approval need `--approved-by`; `--repo` disambiguates a slug that exists in multiple Pipelines |
|
|
1829
1965
|
| `seq-studio pipeline rollback --stage <slug> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--approved-by <you>] [--wait-timeout <duration>] [--no-wait] [--json]` | Redeploy the previously retired deployment's version. Targets that require approval need `--approved-by`. |
|
|
@@ -2386,6 +2522,11 @@ seq-studio repos pulls list <namespace/name> --state open -e <env>
|
|
|
2386
2522
|
seq-studio repos pulls show <namespace/name> <number> -e <env>
|
|
2387
2523
|
seq-studio repos pulls diff <namespace/name> <number> -e <env>
|
|
2388
2524
|
seq-studio repos pulls merge <namespace/name> <number> --method squash -e <env>
|
|
2525
|
+
seq-studio repos pulls comment <namespace/name> <number> --body "Looks good" -e <env>
|
|
2526
|
+
seq-studio repos pulls comment <namespace/name> <number> --path src/memo.ts --line 42 --body-file note.md -e <env>
|
|
2527
|
+
seq-studio repos pulls review <namespace/name> <number> --request-changes --body-file review.md -e <env>
|
|
2528
|
+
seq-studio repos pulls checks <namespace/name> <number> -e <env>
|
|
2529
|
+
seq-studio repos pulls close <namespace/name> <number> -e <env>
|
|
2389
2530
|
```
|
|
2390
2531
|
|
|
2391
2532
|
All results are JSON (`--json` is accepted). Listing returns one page and `nextCursor`;
|
|
@@ -2393,4 +2534,13 @@ use `--cursor` to continue. Diff accepts `--max-files` (maximum 500) and reports
|
|
|
2393
2534
|
Merge requires merge/admin authority, confirmation (or approved automation's `--yes`),
|
|
2394
2535
|
and the existing server review/check policy. It merges the current branch head; a
|
|
2395
2536
|
displayed SHA is not a head-lock or policy bypass. Complete reviews before merging.
|
|
2537
|
+
`comments` and `reviews` list a Pull's comments and reviews (paginated like `list`).
|
|
2538
|
+
`comment` adds a comment; `--path` with `--line` anchors it to a diff line on the
|
|
2539
|
+
new side (`--side LEFT` for the old side) at the commit the Pull's branch points at
|
|
2540
|
+
now (`--commit <sha>` to pin another), and `--reply-to <comment-id>` answers a thread.
|
|
2541
|
+
`review` takes exactly one of `--approve`, `--request-changes`, or `--comment`, an
|
|
2542
|
+
optional `--body`/`--body-file`, and records the review against the commit the Pull's
|
|
2543
|
+
branch points at now unless `--commit` names another. `checks` returns one object with the Pull's check
|
|
2544
|
+
runs, CI plan and runs, and merge gates (mergeability, review, code-owner, and check
|
|
2545
|
+
gates). `close` needs authorship or repository write and is idempotent.
|
|
2396
2546
|
`repos pull` remains the singular source-snapshot command.
|
package/dist/agents/source.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
+
import { sourceAuthMode } from '../sandbox-auth.js';
|
|
4
5
|
import { hashAgentBundle, } from '@sequenceholdings/agent-spec';
|
|
5
6
|
import { agentDeployManifestSchema, assertKnownTargetEnvironment, compileAgentDirectory, selectAgentEntries, selectionStats, } from '@sequenceholdings/agent-spec/compiler';
|
|
6
7
|
import { parseSourceSpec, resolveArtifactSource, } from '@sequenceholdings/artifact-studio/source-resolver';
|
|
@@ -19,7 +20,7 @@ function sourceSpec(args) {
|
|
|
19
20
|
}
|
|
20
21
|
function sourceOptions(context) {
|
|
21
22
|
return {
|
|
22
|
-
...(context.authMode ? { authMode: context.authMode } : {}),
|
|
23
|
+
...(context.authMode ? { authMode: sourceAuthMode(context.authMode) } : {}),
|
|
23
24
|
...clientOptions(context),
|
|
24
25
|
};
|
|
25
26
|
}
|
package/dist/app/adapters.js
CHANGED
|
@@ -5,6 +5,7 @@ import { join } from 'node:path';
|
|
|
5
5
|
import { load as loadYaml } from 'js-yaml';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { resolveArtifactSource } from '@sequenceholdings/artifact-studio/source-resolver';
|
|
8
|
+
import { sourceAuthMode } from '../sandbox-auth.js';
|
|
8
9
|
import { checkOfficialArtifactSource } from './official-source.js';
|
|
9
10
|
const functionIdentitySchema = z.object({ function: z.object({ id: z.string() }) });
|
|
10
11
|
const artifactIdentitySchema = z.object({ artifact: z.object({ project_id: z.string() }) });
|
|
@@ -88,7 +89,7 @@ async function validatePipelineSource(args) {
|
|
|
88
89
|
if (!namespace || !name || repo.split('/').length !== 2) {
|
|
89
90
|
throw new Error(`Pipeline "${args.entry.id}" requires a <namespace>/<name> repository.`);
|
|
90
91
|
}
|
|
91
|
-
const source = await resolveArtifactSource({ kind: 'git-service', namespace, name, ref }, { ...clientOptions(context), ...(context.authMode ? { authMode: context.authMode } : {}) });
|
|
92
|
+
const source = await resolveArtifactSource({ kind: 'git-service', namespace, name, ref }, { ...clientOptions(context), ...(context.authMode ? { authMode: sourceAuthMode(context.authMode) } : {}) });
|
|
92
93
|
try {
|
|
93
94
|
const commit = source.provenance.gitCommit;
|
|
94
95
|
if (!commit || !/^[0-9a-f]{40}$/i.test(commit)) {
|
package/dist/app/commands.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { basename, resolve } from 'node:path';
|
|
8
8
|
import { parseDurationMs } from '@sequenceholdings/lattice';
|
|
9
|
-
import { REQUIRE_EXPLICIT_ENV_MESSAGE } from '../env-flags.js';
|
|
9
|
+
import { REQUIRE_EXPLICIT_ENV_MESSAGE, explicitOrSandboxEnv } from '../env-flags.js';
|
|
10
10
|
import { deployApp } from './deploy.js';
|
|
11
11
|
import { DEFAULT_APP_KINDS, resolveRequestedKinds } from './kinds.js';
|
|
12
12
|
import { AppPreparationError, prepareScaffoldedApp } from './prepare.js';
|
|
@@ -49,12 +49,12 @@ export const APP_INIT_USAGE = `usage:
|
|
|
49
49
|
Examples:
|
|
50
50
|
seq-studio init pokedex
|
|
51
51
|
seq-studio init . --template nextjs
|
|
52
|
-
seq-studio init
|
|
52
|
+
seq-studio init reports # a new app inside an existing repository
|
|
53
53
|
seq-studio init pokedex --with orm,function,artifact
|
|
54
54
|
seq-studio init pokedex --with orm,function,artifact --function-name get-pokemon
|
|
55
55
|
seq-studio init loan-tools --with function --function-name get-loan
|
|
56
56
|
seq-studio init review-app --with orm,function,agent,process,pipeline,artifact
|
|
57
|
-
seq-studio init review-app --template full-stack@1.0.0 -e
|
|
57
|
+
seq-studio init review-app --template full-stack@1.0.0 -e staging
|
|
58
58
|
`;
|
|
59
59
|
export const APP_ADD_USAGE = `usage:
|
|
60
60
|
seq-studio add <kind> <name> [--depends-on <ids>] [--pipeline-type <type>] [--template <t>]
|
|
@@ -356,7 +356,7 @@ export async function runAppDeployCommand(args) {
|
|
|
356
356
|
return 1;
|
|
357
357
|
}
|
|
358
358
|
const waitTimeout = flagString(args.flags, 'wait-timeout');
|
|
359
|
-
const env = flagString(args.flags, 'env') ?? flagString(args.flags, 'e');
|
|
359
|
+
const env = explicitOrSandboxEnv(flagString(args.flags, 'env') ?? flagString(args.flags, 'e'));
|
|
360
360
|
if (!env) {
|
|
361
361
|
console.error(`${LOG} ${REQUIRE_EXPLICIT_ENV_MESSAGE}`);
|
|
362
362
|
console.error(APP_DEPLOY_USAGE);
|
|
@@ -155,15 +155,27 @@ export async function runArtifactCommand(sub, rest) {
|
|
|
155
155
|
const targetUrl = resolved?.url ??
|
|
156
156
|
process.env['ARTIFACT_STUDIO_BASE_URL']?.trim() ??
|
|
157
157
|
(authEnvName ? routingConfig.envs[authEnvName]?.url : undefined);
|
|
158
|
-
setTokenProvider(({ allowInteractiveLogin }) => allowInteractiveLogin
|
|
159
|
-
? getAccessTokenWithMode({ env: authEnvName, targetUrl })
|
|
160
|
-
: tryGetAccessTokenWithMode({
|
|
158
|
+
setTokenProvider(async ({ allowInteractiveLogin }) => artifactCredential(allowInteractiveLogin
|
|
159
|
+
? await getAccessTokenWithMode({ env: authEnvName, targetUrl })
|
|
160
|
+
: await tryGetAccessTokenWithMode({
|
|
161
161
|
failClosedForM2m: true,
|
|
162
162
|
env: authEnvName,
|
|
163
163
|
targetUrl,
|
|
164
|
-
}));
|
|
164
|
+
})));
|
|
165
165
|
return runArtifactStudio([sub, ...argvForCli]);
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Artifact Studio uses only credentials the CLI obtained itself. `main.ts`
|
|
169
|
+
* refuses artifact commands in sandbox token mode before reaching here; this
|
|
170
|
+
* keeps the rule if the delegate is ever called directly.
|
|
171
|
+
*/
|
|
172
|
+
function artifactCredential(auth) {
|
|
173
|
+
if (!auth)
|
|
174
|
+
return null;
|
|
175
|
+
if (auth.authMode === 'sandbox')
|
|
176
|
+
throw new Error('Artifact Studio does not accept sandbox tokens. Authenticate with seq-studio login.');
|
|
177
|
+
return { authMode: auth.authMode, token: auth.token };
|
|
178
|
+
}
|
|
167
179
|
/**
|
|
168
180
|
* Strip the seq-studio-only `--pr <number>` and `--env-url <url>` flags from
|
|
169
181
|
* argv and return the rest (forwarded to artifact-studio) plus the parsed
|
package/dist/atlas-client.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { authenticatedRequestUrl } from '@sequenceholdings/artifact-studio/deployment-validation';
|
|
8
8
|
import { validationDetail } from './validation-detail.js';
|
|
9
9
|
import { PREVIEW_DOMAIN } from './preview.js';
|
|
10
|
+
import { sandboxBearerFor } from './sandbox-auth.js';
|
|
10
11
|
const MAX_503_RETRIES = 5;
|
|
11
12
|
const DEFAULT_RETRY_AFTER_SECONDS = 2;
|
|
12
13
|
const LOG_PREFIX = '[seq-studio]';
|
|
@@ -39,6 +40,9 @@ async function fetchWith503Retry(input, init) {
|
|
|
39
40
|
}
|
|
40
41
|
async function authenticatedFetch({ baseUrl, init = {}, path, token, retry503 = true, }) {
|
|
41
42
|
const url = authenticatedRequestUrl({ baseUrl, path });
|
|
43
|
+
// Sandbox tokens rotate between requests, so a long command re-reads the file
|
|
44
|
+
// for every call instead of reusing the token it resolved at startup.
|
|
45
|
+
const bearer = (await sandboxBearerFor(baseUrl)) ?? token;
|
|
42
46
|
const send = retry503 ? fetchWith503Retry : fetch;
|
|
43
47
|
return send(url, {
|
|
44
48
|
...init,
|
|
@@ -47,7 +51,7 @@ async function authenticatedFetch({ baseUrl, init = {}, path, token, retry503 =
|
|
|
47
51
|
...previewAccessHeaders(baseUrl),
|
|
48
52
|
...cfAccessHeaders(baseUrl),
|
|
49
53
|
...init.headers,
|
|
50
|
-
Authorization: `Bearer ${
|
|
54
|
+
Authorization: `Bearer ${bearer}`,
|
|
51
55
|
},
|
|
52
56
|
});
|
|
53
57
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
-
export declare const AUTH_USAGE = "usage:\n seq-studio auth whoami -e <env> [--json]\n seq-studio auth git-credential --env <env> --url <clone-url> <get|store|erase>\n Git authentication uses seq-studio login. repos clone installs the helper.\n";
|
|
2
|
+
export declare const AUTH_USAGE = "usage:\n seq-studio auth whoami -e <env> [--json]\n seq-studio auth git-credential --env <env> --url <clone-url> <get|store|erase>\n Git authentication uses seq-studio login. repos clone installs the helper.\n In sandbox token mode (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE) the helper\n answers with the sandbox token for git-service repositories on that origin only;\n --env and --url are optional there.\n";
|
|
3
3
|
export declare function runAuthCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;
|
|
@@ -6,6 +6,9 @@ export const AUTH_USAGE = `usage:
|
|
|
6
6
|
seq-studio auth whoami -e <env> [--json]
|
|
7
7
|
seq-studio auth git-credential --env <env> --url <clone-url> <get|store|erase>
|
|
8
8
|
Git authentication uses seq-studio login. repos clone installs the helper.
|
|
9
|
+
In sandbox token mode (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE) the helper
|
|
10
|
+
answers with the sandbox token for git-service repositories on that origin only;
|
|
11
|
+
--env and --url are optional there.
|
|
9
12
|
`;
|
|
10
13
|
export async function runAuthCommand(sub, args) {
|
|
11
14
|
try {
|
package/dist/auth.d.ts
CHANGED
|
@@ -120,7 +120,8 @@ export declare class UnsafeAuthTargetError extends Error {
|
|
|
120
120
|
* that must never sign anyone in as a side effect.
|
|
121
121
|
*/
|
|
122
122
|
export declare function withoutAutoLogin<T>(fn: () => Promise<T>): Promise<T>;
|
|
123
|
-
|
|
123
|
+
/** `sandbox`: the caller-scoped bearer Atlas writes into an agent sandbox (see sandbox-auth.ts). */
|
|
124
|
+
export type AuthMode = 'm2m' | 'user' | 'sandbox';
|
|
124
125
|
export interface ResolvedAccessToken {
|
|
125
126
|
authMode: AuthMode;
|
|
126
127
|
token: string;
|
package/dist/auth.js
CHANGED
|
@@ -5,6 +5,7 @@ import { homedir } from 'node:os';
|
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import { validateDeploymentAudience, validateDeploymentBaseUrl, } from '@sequenceholdings/artifact-studio/deployment-validation';
|
|
7
7
|
import { withCrossProcessFileLock } from './file-lock.js';
|
|
8
|
+
import { isSandboxOrigin, readSandboxToken, SandboxAuthError, sandboxTarget } from './sandbox-auth.js';
|
|
8
9
|
function hasErrorCode(error, code) {
|
|
9
10
|
return error instanceof Error && Reflect.get(error, 'code') === code;
|
|
10
11
|
}
|
|
@@ -475,7 +476,20 @@ function validateRealmTarget({ realm, targetUrl, }) {
|
|
|
475
476
|
`${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
476
477
|
}
|
|
477
478
|
}
|
|
479
|
+
async function sandboxAccessToken(targetUrl) {
|
|
480
|
+
const sandbox = sandboxTarget();
|
|
481
|
+
if (!sandbox)
|
|
482
|
+
return null;
|
|
483
|
+
if (targetUrl && !isSandboxOrigin({ target: sandbox, url: targetUrl })) {
|
|
484
|
+
throw new UnsafeAuthTargetError(`Refusing to send the sandbox token to ${targetUrl}: sandbox token mode only targets ${sandbox.baseUrl}.`);
|
|
485
|
+
}
|
|
486
|
+
return { authMode: 'sandbox', token: await readSandboxToken(sandbox) };
|
|
487
|
+
}
|
|
478
488
|
export async function getAccessTokenWithMode(options) {
|
|
489
|
+
// Sandbox token mode replaces every other source, before any realm lookup.
|
|
490
|
+
const sandbox = await sandboxAccessToken(options?.targetUrl);
|
|
491
|
+
if (sandbox)
|
|
492
|
+
return sandbox;
|
|
479
493
|
const realm = await realmForEnv(options?.env, { targetUrl: options?.targetUrl });
|
|
480
494
|
if (options?.targetUrl)
|
|
481
495
|
validateRealmTarget({ realm, targetUrl: options.targetUrl });
|
|
@@ -539,6 +553,8 @@ export async function tryGetAccessTokenWithMode(options) {
|
|
|
539
553
|
throw err;
|
|
540
554
|
if (err instanceof AuthTokenStoreError)
|
|
541
555
|
throw err;
|
|
556
|
+
if (err instanceof SandboxAuthError)
|
|
557
|
+
throw err;
|
|
542
558
|
if (options?.failClosedForM2m) {
|
|
543
559
|
// Do not replace an invalid tenant registration with the Sequence realm:
|
|
544
560
|
// that could hide a rejected discovery token host or inspect the wrong
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
export declare const COMMAND_CONTRACT: readonly [{
|
|
3
3
|
readonly name: "init";
|
|
4
4
|
readonly description: "Scaffold an app workspace or use a published template";
|
|
5
|
-
readonly lifecycle: "
|
|
5
|
+
readonly lifecycle: "preview";
|
|
6
6
|
readonly access: "mixed";
|
|
7
7
|
readonly subcommands: readonly [];
|
|
8
8
|
}, {
|
|
9
9
|
readonly name: "add";
|
|
10
10
|
readonly description: "Add a primitive to an app workspace";
|
|
11
|
-
readonly lifecycle: "
|
|
11
|
+
readonly lifecycle: "preview";
|
|
12
12
|
readonly access: "offline";
|
|
13
13
|
readonly subcommands: readonly [];
|
|
14
14
|
}, {
|
|
15
15
|
readonly name: "deploy";
|
|
16
16
|
readonly description: "Deploy an app workspace";
|
|
17
|
-
readonly lifecycle: "
|
|
17
|
+
readonly lifecycle: "preview";
|
|
18
18
|
readonly access: "authenticated";
|
|
19
19
|
readonly subcommands: readonly [];
|
|
20
20
|
}, {
|
|
@@ -22,7 +22,7 @@ export declare const COMMAND_CONTRACT: readonly [{
|
|
|
22
22
|
readonly description: "Build and operate Lattice processes";
|
|
23
23
|
readonly lifecycle: "preview";
|
|
24
24
|
readonly access: "mixed";
|
|
25
|
-
readonly subcommands: readonly ["init", "lint", "plan", "apply", "test", "simulate", "bundle", "promote", "pull", "safety-baseline"];
|
|
25
|
+
readonly subcommands: readonly ["init", "lint", "plan", "apply", "test", "simulate", "bundle", "promote", "pull", "runs", "safety-baseline"];
|
|
26
26
|
}, {
|
|
27
27
|
readonly name: "artifact";
|
|
28
28
|
readonly description: "Build and operate Artifact Studio apps";
|
|
@@ -76,7 +76,7 @@ export declare const COMMAND_CONTRACT: readonly [{
|
|
|
76
76
|
readonly description: "Author and operate ORM namespaces";
|
|
77
77
|
readonly lifecycle: "preview";
|
|
78
78
|
readonly access: "mixed";
|
|
79
|
-
readonly subcommands: readonly ["init", "generate", "validate", "plan", "apply", "execute", "diff", "migrate-from-yaml", "import"];
|
|
79
|
+
readonly subcommands: readonly ["init", "generate", "validate", "plan", "apply", "execute", "read", "sql", "diff", "migrate-from-yaml", "import"];
|
|
80
80
|
}, {
|
|
81
81
|
readonly name: "envs";
|
|
82
82
|
readonly description: "Manage CLI environments";
|
|
@@ -115,10 +115,10 @@ export declare const COMMAND_CONTRACT: readonly [{
|
|
|
115
115
|
readonly subcommands: readonly [];
|
|
116
116
|
}, {
|
|
117
117
|
readonly name: "storage";
|
|
118
|
-
readonly description: "Manage
|
|
119
|
-
readonly lifecycle: "
|
|
118
|
+
readonly description: "Manage Workspaces V2 file storage";
|
|
119
|
+
readonly lifecycle: "preview";
|
|
120
120
|
readonly access: "authenticated";
|
|
121
|
-
readonly subcommands: readonly ["init", "validate", "apply", "list", "show", "mkdir", "upload", "download", "access", "trash", "restore", "purge", "operations", "abort", "delete"];
|
|
121
|
+
readonly subcommands: readonly ["init", "validate", "apply", "list", "show", "mkdir", "upload", "import", "uploads", "reconcile", "download", "access", "trash", "restore", "purge", "operations", "abort", "delete"];
|
|
122
122
|
}, {
|
|
123
123
|
readonly name: "access";
|
|
124
124
|
readonly description: "Manage runtime resource access";
|
package/dist/command-contract.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Machine-readable summary of the CLI surface, kept independent of command implementations. */
|
|
2
2
|
export const COMMAND_CONTRACT = [
|
|
3
|
-
{ name: 'init', description: 'Scaffold an app workspace or use a published template', lifecycle: '
|
|
4
|
-
{ name: 'add', description: 'Add a primitive to an app workspace', lifecycle: '
|
|
5
|
-
{ name: 'deploy', description: 'Deploy an app workspace', lifecycle: '
|
|
6
|
-
{ name: 'process', description: 'Build and operate Lattice processes', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'lint', 'plan', 'apply', 'test', 'simulate', 'bundle', 'promote', 'pull', 'safety-baseline'] },
|
|
3
|
+
{ name: 'init', description: 'Scaffold an app workspace or use a published template', lifecycle: 'preview', access: 'mixed', subcommands: [] },
|
|
4
|
+
{ name: 'add', description: 'Add a primitive to an app workspace', lifecycle: 'preview', access: 'offline', subcommands: [] },
|
|
5
|
+
{ name: 'deploy', description: 'Deploy an app workspace', lifecycle: 'preview', access: 'authenticated', subcommands: [] },
|
|
6
|
+
{ name: 'process', description: 'Build and operate Lattice processes', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'lint', 'plan', 'apply', 'test', 'simulate', 'bundle', 'promote', 'pull', 'runs', 'safety-baseline'] },
|
|
7
7
|
{ name: 'artifact', description: 'Build and operate Artifact Studio apps', lifecycle: 'stable', access: 'mixed', subcommands: ['init', 'whoami', 'link', 'env', 'status', 'list', 'show', 'validate', 'build', 'plan', 'deploy', 'dev', 'promote', 'pull', 'rollback'] },
|
|
8
8
|
{ name: 'functions', description: 'Build and operate Managed Functions', lifecycle: 'stable', access: 'authenticated', subcommands: ['init', 'build', 'deploy', 'list', 'show', 'limits', 'invoke', 'logs', 'promote', 'rollback', 'delete'] },
|
|
9
9
|
{ name: 'agents', description: 'Validate and deploy typed agent definitions', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'validate', 'bundle', 'plan', 'apply', 'list', 'show'] },
|
|
@@ -12,14 +12,14 @@ export const COMMAND_CONTRACT = [
|
|
|
12
12
|
{ name: 'templates', description: 'Publish, synchronize, and list repository templates', lifecycle: 'internal', access: 'mixed', subcommands: ['publish', 'sync', 'list'] },
|
|
13
13
|
{ name: 'pipeline', description: 'Discover and operate Data Pipelines', lifecycle: 'preview', access: 'staff', subcommands: ['list', 'assets', 'search', 'describe', 'schema', 'sample', 'query', 'init', 'validate', 'plan', 'deploy', 'status', 'migrate', 'adopt', 'unbind', 'run-now', 'promote', 'rollback'] },
|
|
14
14
|
{ name: 'auth', description: 'Manage Git authentication', lifecycle: 'stable', access: 'authenticated', subcommands: ['whoami', 'git-credential', 'pat'] },
|
|
15
|
-
{ name: 'orm', description: 'Author and operate ORM namespaces', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'generate', 'validate', 'plan', 'apply', 'execute', 'diff', 'migrate-from-yaml', 'import'] },
|
|
15
|
+
{ name: 'orm', description: 'Author and operate ORM namespaces', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'generate', 'validate', 'plan', 'apply', 'execute', 'read', 'sql', 'diff', 'migrate-from-yaml', 'import'] },
|
|
16
16
|
{ name: 'envs', description: 'Manage CLI environments', lifecycle: 'stable', access: 'mixed', subcommands: ['add', 'list'] },
|
|
17
17
|
{ name: 'login', description: 'Authenticate with Sequence', lifecycle: 'stable', access: 'public', subcommands: [] },
|
|
18
18
|
{ name: 'logout', description: 'Remove cached user tokens', lifecycle: 'stable', access: 'public', subcommands: [] },
|
|
19
19
|
{ name: 'doctor', description: 'Diagnose CLI configuration and access', lifecycle: 'stable', access: 'mixed', subcommands: [] },
|
|
20
20
|
{ name: 'version', description: 'Print the installed CLI version', lifecycle: 'stable', access: 'offline', subcommands: [] },
|
|
21
21
|
{ name: 'help', description: 'Show command help', lifecycle: 'stable', access: 'offline', subcommands: [] },
|
|
22
|
-
{ name: 'storage', description: 'Manage
|
|
22
|
+
{ name: 'storage', description: 'Manage Workspaces V2 file storage', lifecycle: 'preview', access: 'authenticated', subcommands: ['init', 'validate', 'apply', 'list', 'show', 'mkdir', 'upload', 'import', 'uploads', 'reconcile', 'download', 'access', 'trash', 'restore', 'purge', 'operations', 'abort', 'delete'] },
|
|
23
23
|
{ name: 'access', description: 'Manage runtime resource access', lifecycle: 'preview', access: 'authenticated', subcommands: ['definitions', 'list', 'grant', 'revoke', 'resolve'] },
|
|
24
24
|
{ name: 'service-accounts', description: 'Manage runtime service accounts', lifecycle: 'preview', access: 'authenticated', subcommands: ['list', 'show', 'create'] },
|
|
25
25
|
{ name: 'capabilities', description: 'Print the supported CLI command surface', lifecycle: 'blocked', access: 'offline', subcommands: [] },
|
package/dist/command-help.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/** Help text reachable before command implementations, auth, optional SDKs, or Atlas clients load. */
|
|
2
|
-
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir>\n seq-studio orm generate [dir] [--migration-export] [--check]\n seq-studio orm validate [dir]\n seq-studio orm plan [dir] -e <env>\n seq-studio orm apply [dir] -e <env>\n seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>\n seq-studio orm diff [dir] [--check] [--allow-destructive] [--rebase]\n seq-studio orm migrate-from-yaml <dir>\n seq-studio orm import [dir] --spec <file> | --table <table> --from <schema.table> --map <target=source,...>\n\n -e/--env is required for commands that contact Atlas. Use seq-studio envs list\n to discover environments and seq-studio login to authenticate.\n";
|
|
2
|
+
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir>\n seq-studio orm generate [dir] [--migration-export] [--check]\n seq-studio orm validate [dir]\n seq-studio orm plan [dir] -e <env>\n seq-studio orm apply [dir] -e <env>\n seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>\n seq-studio orm read <namespace> <table> -e <env> [--where <column>=<op>.<value>]... [--select <cols>] [--order <col>[.desc]] [--limit N] [--offset N] [--json|--jsonl]\n seq-studio orm sql <namespace> --query <sql> | --file <path> -e <env> [--param <name>[:<type>]=<value>]... | [--params <json-object>] [--json|--jsonl]\n seq-studio orm diff [dir] [--check] [--allow-destructive] [--rebase]\n seq-studio orm migrate-from-yaml <dir>\n seq-studio orm import [dir] --spec <file> | --table <table> --from <schema.table> --map <target=source,...>\n\n -e/--env is required for commands that contact Atlas. Use seq-studio envs list\n to discover environments and seq-studio login to authenticate.\n read and sql query a v2 namespace as you through its built-in read-only SQL.\n sql must name tables as <namespace>.<table> (FROM lending.loans, not FROM loans).\n Run seq-studio orm read --help for the filter grammar, parameters, and output formats.\n";
|
|
3
3
|
export declare const ARTIFACT_HELP = "usage:\n seq-studio artifact init <dir> [--template react-vite|nextjs]\n seq-studio artifact whoami -e <env>\n seq-studio artifact link [dir] -e <env> [--project <id>]\n seq-studio artifact env list|use <env>\n seq-studio artifact status [-e <env>]\n seq-studio artifact list -e <env> [--json]\n seq-studio artifact show <slug-or-id> -e <env> [--json]\n seq-studio artifact validate [dir]\n seq-studio artifact build|plan|deploy [dir | --repo <namespace>/<name> | --git-url <url>] [--ref <ref>] -e <env>\n seq-studio artifact dev [dir] -e <env> [--once] [--key <name>] [--link <package-dir>] [--port <port>]\n seq-studio artifact pull <project-id> -e <env> --out <dir>\n seq-studio artifact promote|rollback <deployment-id> -e <env>\n\n Help is available offline. Authenticate with seq-studio login. Build and deploy\n sources may be local, a platform git-service repo, or a public HTTPS Git URL;\n deployments target a named environment with -e. Local, preview, and official\n deployment workflows have different source and approval rules; see the public\n CLI README.\n";
|
|
4
4
|
export declare const PIPELINE_HELP = "usage:\n seq-studio pipeline list -e <env> [--limit 1..200] [--offset N] [--json]\n list pipeline repository rollups (not assets)\n seq-studio pipeline assets -e <env> [--repo <namespace>/<slug>] [--json]\n list asset declarations, including assets that may not be deployed\n seq-studio pipeline search <query> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--limit N] [--offset N] [--json]\n seq-studio pipeline describe <asset-id> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--json]\n seq-studio pipeline schema|sample <asset-id> -e <env> [--target <id>] [--limit N] [--json]\n seq-studio pipeline query <asset-id> --sql <read-only-sql> -e <env> [--target <id>] [--limit N] [--json]\n seq-studio pipeline init|validate|plan|deploy|status|migrate|adopt|unbind|run-now|promote|rollback ...\n seq-studio pipeline plan --plan-request-id <id> -e <env> [--json]\n poll an existing durable plan without enqueueing or attaching credentials\n Lifecycle --json results use stdout; progress uses stderr. Deploy --run-now\n executes producers in the managed worker; local polling may disconnect.\n\n Discovery requires staff access. Use list for pipeline repositories, assets\n for declared assets, and search/describe for active deployment metadata;\n use schema to verify physical columns. -e chooses the environment and\n --target chooses a logical target when the environment has more than one.\n Help is available offline.\n";
|
|
5
5
|
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio functions init <dir> scaffold manifest, TypeScript handler, and docs pointers\n seq-studio functions build [--dir d] local pre-flight (manifest, lockfile, SDK timeout cap)\n seq-studio functions register -e <env> [--dir d] register a function shell without deploying\n seq-studio functions deploy -e <env> [-m msg] preflight deployed capabilities, then upload and deploy\n seq-studio functions list -e <env> [--match-local] functions visible on the environment\n seq-studio functions show -e <env> [--fn slug] detail for one function (versions, secrets)\n seq-studio functions limits [-e <env>] [--json] bundled defaults/caps, or deployed policy\n [--fn slug] also show effective runtime limits (requires -e)\n seq-studio functions dev [--dir path] [--port 8080] local HTTP server with cache context\n seq-studio functions invoke -e <env> [--data JSON | --data @file | --stdin]\n invoke a function and print its response\n seq-studio functions logs -e <env> [--limit N] [--since t] function logs (reader-gated)\n seq-studio functions promote <version> -e <env> make a version live\n seq-studio functions rollback [<version>] -e <env> redeploy a prior version\n seq-studio functions delete -e <env> [--yes] archive function + tear down its runtime\n (version history is retained)\n\n Flags: -e/--env <env|preview:<slug>> (required for network commands; see: seq-studio envs list) \u00B7 --fn <slug> \u00B7 --dir <path>\n --path <repo-subdirectory> (remote build/deploy only) select one function in a multi-function repo\n --from-env-file <path> (default: .env) source file for secret values\n --no-wait \u00B7 --yes\n --no-provision (deploy) update-only: error instead of registering a new\n shell, writing secret values, or attaching secrets (CI sweep)\n\n Local Atlas builds and runs deployed functions on this computer, including teardown.\n \"functions dev\" runs a standalone handler without Atlas registration.\n\n Configure per-function CPU and concurrency in managed-function.yml under limits.\n Run \"functions limits\" for valid settings; redeploy to apply manifest changes.\n Invocation rates are shared across Atlas replicas; 429 includes Retry-After.\n If the shared rate limiter is unavailable, invocation fails closed with 503.\n\n Source for build/deploy: a local --dir (default .), a platform git-service\n repo (--repo <ns>/<name>), or a public HTTPS git URL (--git-url <url>). --path selects\n a function directory within a remote repo; omit it for the existing root-manifest\n layout. --ref selects a branch/tag/commit (default: the repo's default branch).\n Remote sources record the pinned commit as provenance (never dirty) and NEVER\n read a repo-committed .env for secret values \u2014 provision secrets server-side\n or pass a local --from-env-file (resolved against your cwd).\n\n Interactive --repo builds clone over smart-HTTP using your seq-studio login\n and repository read access. No PAT is needed. Headless M2M builds use JSON\n materialize and accept only platform-managed --repo sources. Use --env to\n select the same environment for source and deployment.\n";
|
|
6
|
-
export declare const REPOS_USAGE = "usage:\n seq-studio repos list -e <env> [--namespace <slug>] [--mine] repos visible on the environment\n seq-studio repos namespaces [create <slug>] -e <env> list or create namespaces\n seq-studio repos show <ns>/<name> -e <env> repo detail (branches, clone URL)\n seq-studio repos create <ns>/<name> -e <env> [--default-branch b] [--git-backend walgit]\n create a repo seeded with a README; --git-backend\n walgit creates it empty (for pushing existing\n history); needs namespace write\n seq-studio repos clone <ns>/<name> -e <env> [--ref r] [--output dir] [--force] [--full] [--transport auto|git|json]\n seq-studio repos clone --url <https://\u2026/repos/<id>/git> -e <env> [--ref r] [--output dir] [--full]\n seq-studio repos clone --id <uuid> -e <env> [--ref r] [--output dir] [--full]\n real Git clone using seq-studio login;\n configures login for subsequent git pull/push\n seq-studio repos pull <ns>/<name> -e <env> [--ref r] [--out dir] [--force]\n materialize the tree at a ref (JSON API)\n seq-studio repos pulls <list|show|create|diff|merge> [args]
|
|
6
|
+
export declare const REPOS_USAGE = "usage:\n seq-studio repos list -e <env> [--namespace <slug>] [--mine] repos visible on the environment\n seq-studio repos namespaces [create <slug>] -e <env> list or create namespaces\n seq-studio repos show <ns>/<name> -e <env> repo detail (branches, clone URL)\n seq-studio repos create <ns>/<name> -e <env> [--default-branch b] [--git-backend walgit]\n create a repo seeded with a README; --git-backend\n walgit creates it empty (for pushing existing\n history); needs namespace write\n seq-studio repos clone <ns>/<name> -e <env> [--ref r] [--output dir] [--force] [--full] [--transport auto|git|json]\n seq-studio repos clone --url <https://\u2026/repos/<id>/git> -e <env> [--ref r] [--output dir] [--full]\n seq-studio repos clone --id <uuid> -e <env> [--ref r] [--output dir] [--full]\n real Git clone using seq-studio login;\n configures login for subsequent git pull/push\n seq-studio repos pull <ns>/<name> -e <env> [--ref r] [--out dir] [--force]\n materialize the tree at a ref (JSON API)\n seq-studio repos pulls <list|show|create|diff|merge|close|comment|comments|review|reviews|checks> [args]\n review requests (see pulls --help)\n seq-studio repos delete <ns>/<name> -e <env> [--yes] delete a repo (confirm prompt)\n seq-studio repos ci init [--dir <repository>] create a native pipeline using platform defaults\n seq-studio repos ci show <ns>/<name> -e <env> --pr <number> [--json] inspect the server CI plan and runs\n seq-studio repos ci show <ns>/<name> -e <env> [--ref r] preview pipeline discovery or legacy checks\n seq-studio repos ci require <ns>/<name> --check <name> -e <env> disabled legacy control\n seq-studio repos ci import <ns>/<name> -e <env> [--ref r] disabled legacy control\n\n Flags: -e/--env <env> (required; see: seq-studio envs list)\n\n clone uses your login token (never written into the remote URL or Git config).\n A repository-local credential helper reads your current login for git pull/push.\n After expiry, run seq-studio login --env <env> again.\n --transport auto (default) and git both create a real Git checkout.\n Personal access tokens are retired; ATLAS_GIT_PAT is ignored.\n --transport json downloads files without .git; requires\n <ns>/<name>. repos pull also provides this files-only workflow.\n --ref accepts a branch, tag, or commit SHA (SHA \u2192 full clone, then checkout).\n Branch and tag clones are shallow (--depth 1). Pass --full for history.\n --output selects the clone directory (--out remains an alias).\n\n Authenticate JSON API calls with: seq-studio login\n Authenticate git clone/push with: seq-studio login --env <env>\n";
|
|
7
|
+
export declare const PROCESS_RUNS_USAGE = "usage:\n seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>]\n [--metadata-file <file.json>] [--title <text>] [--entity <type>:<id>] [--json]\n seq-studio process runs list -e <env> [--process <id>] [--status <status>]\n [--entity-type <type>] [--entity-id <id>] [--archived] [--limit 1..500] [--json]\n seq-studio process runs show <run-id> -e <env> [--wait [--timeout <seconds>]] [--json]\n seq-studio process runs cancel <run-id> -e <env> [--json]\n\n Runs start and are read as you: start needs invoker on the process, show and\n list return only runs you can view, and cancel needs invoker on the process.\n --version pins a published process version; omitted, the active version runs.\n --run-id makes start idempotent: repeating it for the same process returns the\n existing run instead of starting another. --metadata-file is a JSON object\n stored on the run.\n list returns the newest runs first, up to --limit (default 50, max 500); the run\n API has no cursor, so narrow with filters to reach older runs.\n --status: pending, running, completed, failed, cancelled, timed_out.\n show --wait polls until the run finishes (default timeout 600s); the run keeps\n going if the wait times out.\n";
|
|
7
8
|
export declare function staticHelp({ namespace, sub }: {
|
|
8
9
|
namespace: string;
|
|
9
10
|
sub?: string;
|