@sequenceholdings/studio-cli 0.9.7 → 0.9.9
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 +30 -6
- package/dist/command-help.d.ts +1 -1
- package/dist/command-help.js +2 -1
- package/dist/functions/commands.d.ts +3 -0
- package/dist/functions/commands.js +33 -3
- package/dist/repos/pulls.d.ts +14 -1
- package/dist/repos/pulls.js +27 -1
- package/dist/storage/commands.js +5 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ CLI authenticates both. Refresh tokens are neither requested nor persisted;
|
|
|
94
94
|
interactive commands perform a bounded PKCE login again after expiry.
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
seq-studio login # built-in
|
|
97
|
+
seq-studio login # built-in first-party environments
|
|
98
98
|
seq-studio envs add bsm-staging <tenant-url> # one-time tenant registration
|
|
99
99
|
seq-studio login --env bsm-staging # registered OpCo tenant realm
|
|
100
100
|
seq-studio doctor # confirms config + auth + authorization
|
|
@@ -121,7 +121,7 @@ A valid cached user session wins over an ambient M2M secret (common under
|
|
|
121
121
|
Doppler `atlas/dev`); force the service account with `SEQAPI_AUTH_MODE=m2m`:
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
|
-
export AUTH0_M2M_CLIENT_SECRET=... # built-in
|
|
124
|
+
export AUTH0_M2M_CLIENT_SECRET=... # built-in first-party environments
|
|
125
125
|
export AUTH0_M2M_CLIENT_SECRET_BSM_STAGING=... # registered bsm-staging realm
|
|
126
126
|
export SEQAPI_AUTH_MODE=m2m # optional: ignore a leftover user session
|
|
127
127
|
seq-studio artifact deploy -e <env>
|
|
@@ -1309,10 +1309,23 @@ functions cannot opt in retroactively. The default remains mutable. See the
|
|
|
1309
1309
|
| `seq-studio functions deploy --dir <dir> -e <env>` | Preview secrets and deploy a local function |
|
|
1310
1310
|
| `seq-studio functions build --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and validate a function from the platform Git Service |
|
|
1311
1311
|
| `seq-studio functions deploy --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and deploy a function from the platform Git Service |
|
|
1312
|
+
| `seq-studio functions show --fn <slug> -e <env>` | Show one function: its input and output JSON Schemas, and for readers its versions and secrets |
|
|
1313
|
+
| `seq-studio functions show --fn <slug> -e <env> --schema` | Print the function's identity (environment, id, slug, title, description, deployed) and its input and output JSON Schemas as JSON, for any caller who can see the function |
|
|
1312
1314
|
| `seq-studio functions show --fn <slug> -e <env> --json [--version <id-or-name>]` | Inspect reader-gated active release provenance and optionally select an exact submitted version |
|
|
1313
1315
|
| `seq-studio functions limits [-e <env>] [--json] [--fn <slug>]` | Inspect fleet, runtime, cache, and bundle defaults/caps; optionally inspect one function's effective runtime limits |
|
|
1314
1316
|
| `seq-studio functions invoke --fn <slug> -e <env> [--data <json> \| --data @<file> \| --stdin]` | Invoke a deployed function and print its response body |
|
|
1315
1317
|
|
|
1318
|
+
Before invoking a function, read its input schema and build the payload from
|
|
1319
|
+
it. `--schema` needs only invoke access, so it works for callers who cannot
|
|
1320
|
+
read the function's versions:
|
|
1321
|
+
|
|
1322
|
+
```bash
|
|
1323
|
+
seq-studio functions show --fn my-function -e <env> --schema | jq .inputSchema
|
|
1324
|
+
seq-studio functions invoke --fn my-function -e <env> --data '{"region": "east"}'
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1327
|
+
A function whose manifest declares no schema shows `null`.
|
|
1328
|
+
|
|
1316
1329
|
`functions deploy` picks the next `vN` after the highest numbered version of
|
|
1317
1330
|
that function. Versions named by repository CI, such as `ci-abc`, do not reset
|
|
1318
1331
|
the sequence. A function with no numbered versions starts at `v1`.
|
|
@@ -1863,7 +1876,7 @@ pnpm type-check
|
|
|
1863
1876
|
pnpm build
|
|
1864
1877
|
```
|
|
1865
1878
|
|
|
1866
|
-
The scaffold pins approved Next.js 16.
|
|
1879
|
+
The scaffold pins approved Next.js 16.4 and React 19 versions and uses schema-v2
|
|
1867
1880
|
`artifact.bundle.yml`. It owns its React/Next dependencies; the React/Vite
|
|
1868
1881
|
platform aliases do not apply. Commit the generated `pnpm-lock.yaml`. `pnpm dev`
|
|
1869
1882
|
provides a standalone loopback UI check; SDK access to Atlas requires the
|
|
@@ -3250,7 +3263,8 @@ seq-studio repos pulls close <namespace/name> <number> -e <env>
|
|
|
3250
3263
|
```
|
|
3251
3264
|
|
|
3252
3265
|
All results are JSON (`--json` is accepted). Listing returns one page and `nextCursor`;
|
|
3253
|
-
use `--cursor` to continue.
|
|
3266
|
+
use `--cursor` to continue. `create`, `show` (on `pullRequest`) and `list` (on each item)
|
|
3267
|
+
add a `url` field: the Atlas web link `<env origin>/repositories/<namespace>/<name>/pull/<number>`. Diff accepts `--max-files` (maximum 500) and reports truncation.
|
|
3254
3268
|
Merge requires merge/admin authority, confirmation (or approved automation's `--yes`),
|
|
3255
3269
|
and the existing server review/check policy. It merges the current branch head; a
|
|
3256
3270
|
displayed SHA is not a head-lock or policy bypass. Complete reviews before merging.
|
|
@@ -3308,7 +3322,7 @@ operations and application-owned compatibility routes.
|
|
|
3308
3322
|
### Workspace snapshots for independent pipeline consumers (internal preview)
|
|
3309
3323
|
|
|
3310
3324
|
```sh
|
|
3311
|
-
seq-studio storage source apply --workspace <uuid> --retention-days 30 -e local
|
|
3325
|
+
seq-studio storage source apply --workspace <uuid> --retention-days 30 --auto-sync true -e local
|
|
3312
3326
|
seq-studio storage sync --workspace <uuid> --idempotency-key import-2026-10-21 --wait -e local
|
|
3313
3327
|
seq-studio storage sync status <sync-id> --workspace <uuid> -e local
|
|
3314
3328
|
seq-studio storage snapshots list --workspace <uuid> -e local
|
|
@@ -3322,7 +3336,17 @@ the current deployment permits. `--readers <application-id,...>` sets explicit
|
|
|
3322
3336
|
Databricks readers, and omission preserves the current audience. Waiting times out
|
|
3323
3337
|
after one hour by default (`--timeout <seconds>`); it leaves the sync running.
|
|
3324
3338
|
Snapshot history supports `--cursor` and `--limit`. Workspace manifests may include
|
|
3325
|
-
`pipelineSource: { target, readers, retentionDays }` for declarative configuration.
|
|
3339
|
+
`pipelineSource: { target, readers, retentionDays, autoSyncEnabled }` for declarative configuration.
|
|
3340
|
+
|
|
3341
|
+
Automatic syncing is off by default. `--auto-sync true` enables it for subsequent
|
|
3342
|
+
uploads and file replacements; `--auto-sync false` disables it. Omission preserves
|
|
3343
|
+
the current setting. Completed uploads are grouped after a 10-second quiet period,
|
|
3344
|
+
with at most 60 seconds of postponement during continuous uploads. Only one
|
|
3345
|
+
automatic copy runs per workspace; uploads during a copy remain pending for a
|
|
3346
|
+
follow-up. Disabling clears pending work and allows an accepted copy to finish.
|
|
3347
|
+
Automatic sync uses the enabling administrator's identity and rechecks access
|
|
3348
|
+
before exporting. Errors remain visible in the workspace panel and retry with
|
|
3349
|
+
backoff. This publishes snapshots; pipelines still define their own feeds and runs.
|
|
3326
3350
|
|
|
3327
3351
|
Use the same symbolic source in two pipeline repositories; each gets its own
|
|
3328
3352
|
materialized bronze tables and batches:
|
package/dist/command-help.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const ORM_HELP = "usage:\n seq-studio orm init <dir> [--repo <ns
|
|
|
5
5
|
/** Artifact commands in sandbox token mode; shared by the offline and delegate usage. */
|
|
6
6
|
export declare const ARTIFACT_SANDBOX_HELP = " In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), build, plan\n and deploy take --repo: push the app to a Git Service repository and deploy\n from it. Atlas builds Next.js applications; static applications are bundled\n from the repository and must declare no package.json dependencies or\n optionalDependencies, because the sandbox cannot reach a package registry.\n dev, login, logout, --git-url, --source-env, --pr and --env-url are\n unavailable there, and -e is ignored.\n";
|
|
7
7
|
export declare const ARTIFACT_HELP = "usage:\n seq-studio artifact init <dir> [--template react-vite|nextjs] [--repo <namespace>/<name>]\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>] [--local-secrets <bindings.json>] [--bundler turbopack|webpack]\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\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n\n In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), build, plan\n and deploy take --repo: push the app to a Git Service repository and deploy\n from it. Atlas builds Next.js applications; static applications are bundled\n from the repository and must declare no package.json dependencies or\n optionalDependencies, because the sandbox cannot reach a package registry.\n dev, login, logout, --git-url, --source-env, --pr and --env-url are\n unavailable there, and -e is ignored.\n";
|
|
8
|
-
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio functions init <dir> [--repo <ns>/<name>] scaffold manifest, TypeScript handler, and docs pointers;\n --repo scaffolds into a git-service repo (see Init into a repo)\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 shell + initial secret declarations; no deploy\n seq-studio functions deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress\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 [--json] [--version id|name] reader-gated release provenance\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 Local deploys record repository-wide gitDirty, including unignored files\n outside --dir. Check git status at the repository root before deploying.\n\n Workspace dependencies are compiled from packages declared in a containing\n sequence.app.yml, within the source repository. Only the selected function is\n deployed: no sibling primitives or Application registration. Shared Node packages\n can set package.json seqStudio.source to a root source entry for clean builds.\n Package build scripts are not run. Local secret paths remain relative to --dir.\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\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n";
|
|
8
|
+
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio functions init <dir> [--repo <ns>/<name>] scaffold manifest, TypeScript handler, and docs pointers;\n --repo scaffolds into a git-service repo (see Init into a repo)\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 shell + initial secret declarations; no deploy\n seq-studio functions deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress\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 (input/output schemas, versions, secrets)\n [--schema] function identity plus input/output JSON Schemas, as JSON (any caller who can see it)\n [--json] [--version id|name] reader-gated release provenance\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 Local deploys record repository-wide gitDirty, including unignored files\n outside --dir. Check git status at the repository root before deploying.\n\n Workspace dependencies are compiled from packages declared in a containing\n sequence.app.yml, within the source repository. Only the selected function is\n deployed: no sibling primitives or Application registration. Shared Node packages\n can set package.json seqStudio.source to a root source entry for clean builds.\n Package build scripts are not run. Local secret paths remain relative to --dir.\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\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n";
|
|
9
9
|
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 identity <ns>/<name> -e <env> [--write --dir .] show/install the server-issued identity receipt\n --adopt --write --yes admin-only legacy binding; commit the receipt via PR\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. Returns once\n the repo resolves by name, so clone can follow\n at once. The init commands take --repo\n <ns>/<name> to create, clone, and scaffold\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|resolve|unresolve|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";
|
|
10
10
|
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 retry <run-id> -e <env> [--run-id <new-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>]]\n [--steps [--node <node-id>] [--full]] [--json]\n seq-studio process runs cancel <run-id> -e <env> [--json]\n\n Runs start and are read as you: start and retry need invoker on the process,\n show and list return only runs you can view, and cancel needs invoker on the\n process.\n start prints the new run's id. Omit --run-id for a fresh id on every start.\n --run-id names exactly one run: repeating it for the same process returns that\n run, whatever its status, instead of starting another. To run a failed run\n again, retry it rather than inventing a new id.\n --version pins a published process version; omitted, the active version runs.\n --metadata-file is a JSON object stored on the run.\n retry (CLI 0.9.0+) starts a new run of a failed, cancelled or timed_out run's\n process version with the same metadata, entity and title, linked to the\n original in its lineage, and prints the new id. Other statuses are refused.\n Like start, a retry waits queued while the process is at its concurrent-run\n limit.\n --run-id on retry names the new run, so repeating the retry returns it.\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. show prints the run's error when it failed.\n show --steps (CLI 0.9.1+) prints each step's status, edge, error, input and\n output, with the same viewer permission as show. Inputs, outputs and errors\n over 2000 characters are cut to a preview; --full prints them whole.\n --node narrows to one node. With --json, --steps returns { run, steps } with\n the same bounds; each step's truncated map names its cut fields and their full\n length. A failure in a node's input mapper happens before its step\n starts, so it shows only as the run's error.\n";
|
|
11
11
|
export declare const ORM_DISCOVER_HELP = "usage:\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm describe <namespace> [<table> | --operations] -e <env> [--json]\n seq-studio orm operation show <namespace> <name> -e <env> [--json]\n\n Find the ORM data you can read, then query it with orm read or orm sql.\n namespaces lists only namespaces you can read, ordered by name: format (v2 or\n v1), table and persisted-operation counts. It pages with --limit (default 50)\n and --offset; the total and the next page go to stderr.\n describe <namespace> lists its tables and views and the persisted operations\n it serves, with what each requires and the variables it declares (name: type,\n ! when required). --operations prints only the operations, ready for\n orm execute <namespace> <operation>. describe <namespace> <table> lists the\n table's columns (types, nullability, keys), enum values, links, actions, and\n the persisted operations that write it. Column names are the ones orm read and\n orm sql accept.\n A namespace you cannot read reports not found, the same as a missing one.\n --json omits SDL, adds active set/schema IDs and ops hash; retry on a mismatch.\n operation show prints one active persisted operation's registered GraphQL\n document; --json includes its hash, declared variables, and requirements.\n Missing and unreadable operations both report not found.\n In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), -e is not needed.\n";
|
package/dist/command-help.js
CHANGED
|
@@ -83,7 +83,8 @@ export const FUNCTIONS_USAGE = `usage:
|
|
|
83
83
|
seq-studio functions register -e <env> [--dir d] register a shell + initial secret declarations; no deploy
|
|
84
84
|
seq-studio functions deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress
|
|
85
85
|
seq-studio functions list -e <env> [--match-local] functions visible on the environment
|
|
86
|
-
seq-studio functions show -e <env> [--fn slug] detail for one function (versions, secrets)
|
|
86
|
+
seq-studio functions show -e <env> [--fn slug] detail for one function (input/output schemas, versions, secrets)
|
|
87
|
+
[--schema] function identity plus input/output JSON Schemas, as JSON (any caller who can see it)
|
|
87
88
|
[--json] [--version id|name] reader-gated release provenance
|
|
88
89
|
seq-studio functions limits [-e <env>] [--json] bundled defaults/caps, or deployed policy
|
|
89
90
|
[--fn slug] also show effective runtime limits (requires -e)
|
|
@@ -22,6 +22,9 @@ export interface FunctionSummary {
|
|
|
22
22
|
egressIpRanges?: string[];
|
|
23
23
|
egressEnforced?: boolean;
|
|
24
24
|
limits?: Record<string, number | string>;
|
|
25
|
+
/** JSON Schema for the invoke payload; returned to every caller who can see the function. */
|
|
26
|
+
inputSchema?: Record<string, unknown> | null;
|
|
27
|
+
outputSchema?: Record<string, unknown> | null;
|
|
25
28
|
}
|
|
26
29
|
export interface VersionSummary {
|
|
27
30
|
id: string;
|
|
@@ -1038,18 +1038,46 @@ async function printFunctionReleaseJson(ctx, fn, selected) {
|
|
|
1038
1038
|
}, null, 2));
|
|
1039
1039
|
return 0;
|
|
1040
1040
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1041
|
+
function printSchema(label, schema) {
|
|
1042
|
+
if (!schema) {
|
|
1043
|
+
console.log(` ${label}: (none declared)`);
|
|
1044
|
+
return;
|
|
1045
|
+
}
|
|
1046
|
+
console.log(` ${label}:`);
|
|
1047
|
+
for (const line of JSON.stringify(schema, null, 2).split('\n'))
|
|
1048
|
+
console.log(` ${line}`);
|
|
1049
|
+
}
|
|
1050
|
+
/** Rejects contradictory show flags before any request; returns the selected `--version`. */
|
|
1051
|
+
function showVersionFlag(flags) {
|
|
1052
|
+
const selected = flags.version;
|
|
1053
|
+
if (flagBool(flags, 'schema') && (flagBool(flags, 'json') || selected !== undefined)) {
|
|
1054
|
+
throw new Error('--schema cannot be combined with --json or --version');
|
|
1055
|
+
}
|
|
1043
1056
|
if (selected !== undefined && (typeof selected !== 'string' || !selected.trim())) {
|
|
1044
1057
|
throw new Error('--version requires a version ID or name');
|
|
1045
1058
|
}
|
|
1046
|
-
if (selected !== undefined && !flagBool(
|
|
1059
|
+
if (selected !== undefined && !flagBool(flags, 'json')) {
|
|
1047
1060
|
throw new Error('--version requires --json');
|
|
1048
1061
|
}
|
|
1062
|
+
return selected;
|
|
1063
|
+
}
|
|
1064
|
+
function printFunctionSchemaJson(ctx, fn) {
|
|
1065
|
+
console.log(JSON.stringify({
|
|
1066
|
+
environment: ctx.env.name,
|
|
1067
|
+
function: { id: fn.id, slug: fn.slug, title: fn.title, description: fn.description ?? null, deployed: fn.deployed },
|
|
1068
|
+
inputSchema: fn.inputSchema ?? null,
|
|
1069
|
+
outputSchema: fn.outputSchema ?? null,
|
|
1070
|
+
}, null, 2));
|
|
1071
|
+
return 0;
|
|
1072
|
+
}
|
|
1073
|
+
export async function functionsShowCommand(args) {
|
|
1074
|
+
const selected = showVersionFlag(args.flags);
|
|
1049
1075
|
const ctx = await buildContext(args);
|
|
1050
1076
|
const fn = await resolveFunction({ ctx, args, required: true });
|
|
1051
1077
|
if (!fn)
|
|
1052
1078
|
return 1;
|
|
1079
|
+
if (flagBool(args.flags, 'schema'))
|
|
1080
|
+
return printFunctionSchemaJson(ctx, fn);
|
|
1053
1081
|
if (flagBool(args.flags, 'json'))
|
|
1054
1082
|
return printFunctionReleaseJson(ctx, fn, selected);
|
|
1055
1083
|
console.log(`${LOG} function on ${ctx.env.name}:`);
|
|
@@ -1066,6 +1094,8 @@ export async function functionsShowCommand(args) {
|
|
|
1066
1094
|
else if (fn.canInvoke) {
|
|
1067
1095
|
console.log(` access: invoke-only`);
|
|
1068
1096
|
}
|
|
1097
|
+
printSchema('input schema', fn.inputSchema);
|
|
1098
|
+
printSchema('output schema', fn.outputSchema);
|
|
1069
1099
|
if (fn.currentUserAccess) {
|
|
1070
1100
|
try {
|
|
1071
1101
|
await printFunctionShowDetails({ ctx, fn });
|
package/dist/repos/pulls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
-
export declare const PULLS_USAGE = "usage:\n seq-studio repos pulls list <ns>/<name> -e <env> [--state open|closed|merged] [--limit N] [--cursor <cursor>]\n seq-studio repos pulls show <ns>/<name> <number> -e <env>\n seq-studio repos pulls create <ns>/<name> --head <branch> --base <branch> --title <title> -e <env> [--body-file <path>]\n seq-studio repos pulls diff <ns>/<name> <number> -e <env> [--max-files N]\n seq-studio repos pulls merge <ns>/<name> <number> -e <env> [--method squash|merge|ff] [--message <text>] [--yes]\n seq-studio repos pulls close <ns>/<name> <number> -e <env>\n seq-studio repos pulls comment <ns>/<name> <number> -e <env> (--body <text> | --body-file <path>)\n [--path <file> --line N [--side LEFT|RIGHT] [--commit <sha>]] [--reply-to <comment-id>]\n seq-studio repos pulls comments <ns>/<name> <number> -e <env> [--limit N] [--cursor <cursor>]\n seq-studio repos pulls resolve <ns>/<name> <number> <root-comment-id> -e <env>\n seq-studio repos pulls unresolve <ns>/<name> <number> <root-comment-id> -e <env>\n seq-studio repos pulls review <ns>/<name> <number> -e <env> (--approve | --request-changes | --comment)\n [--body <text> | --body-file <path>] [--commit <sha>]\n seq-studio repos pulls reviews <ns>/<name> <number> -e <env> [--limit N] [--cursor <cursor>]\n seq-studio repos pulls checks <ns>/<name> <number> -e <env> [--head <sha>]\n\n All results are JSON (--json is accepted). Authenticate: seq-studio login --env <env>.\n create needs repository write; merge needs merge/admin authority and passing server\n review/check policy. There is no policy bypass. Review show and diff before merging.\n Merge operates on the current branch head under server policy. When repository CI\n checks the branch, merge sends the checked head and base revisions; a newer push\n makes the server refuse until checks rerun. Default merge method: squash.\n list returns one page with nextCursor; pass --cursor to continue.\n diff compares live base/head branches for open Pulls, recorded SHAs for terminal\n Pulls, and reports truncated when its file\n limit is reached (default 100, maximum 500).\n close needs to be the Pull's author or have repository write; it is idempotent.\n comment adds a Pull comment; --path and --line anchor it to a diff line (side RIGHT\n and the branch's current commit unless --side/--commit say otherwise), and\n --reply-to answers an existing thread. review records approve, request-changes, or\n comment against the commit the Pull's branch points at now (or --commit). checks prints the check runs,\n CI plan and runs, and merge gates (mergeability, reviews, code owners) in one object.\n resolve and unresolve require repository read access and a root comment UUID from\n comments; the server rejects replies. They return the updated comment as JSON.\n repos pull (singular) materializes files; repos pulls manages review requests.\n";
|
|
2
|
+
export declare const PULLS_USAGE = "usage:\n seq-studio repos pulls list <ns>/<name> -e <env> [--state open|closed|merged] [--limit N] [--cursor <cursor>]\n seq-studio repos pulls show <ns>/<name> <number> -e <env>\n seq-studio repos pulls create <ns>/<name> --head <branch> --base <branch> --title <title> -e <env> [--body-file <path>]\n seq-studio repos pulls diff <ns>/<name> <number> -e <env> [--max-files N]\n seq-studio repos pulls merge <ns>/<name> <number> -e <env> [--method squash|merge|ff] [--message <text>] [--yes]\n seq-studio repos pulls close <ns>/<name> <number> -e <env>\n seq-studio repos pulls comment <ns>/<name> <number> -e <env> (--body <text> | --body-file <path>)\n [--path <file> --line N [--side LEFT|RIGHT] [--commit <sha>]] [--reply-to <comment-id>]\n seq-studio repos pulls comments <ns>/<name> <number> -e <env> [--limit N] [--cursor <cursor>]\n seq-studio repos pulls resolve <ns>/<name> <number> <root-comment-id> -e <env>\n seq-studio repos pulls unresolve <ns>/<name> <number> <root-comment-id> -e <env>\n seq-studio repos pulls review <ns>/<name> <number> -e <env> (--approve | --request-changes | --comment)\n [--body <text> | --body-file <path>] [--commit <sha>]\n seq-studio repos pulls reviews <ns>/<name> <number> -e <env> [--limit N] [--cursor <cursor>]\n seq-studio repos pulls checks <ns>/<name> <number> -e <env> [--head <sha>]\n\n All results are JSON (--json is accepted). Authenticate: seq-studio login --env <env>.\n create needs repository write; merge needs merge/admin authority and passing server\n review/check policy. There is no policy bypass. Review show and diff before merging.\n Merge operates on the current branch head under server policy. When repository CI\n checks the branch, merge sends the checked head and base revisions; a newer push\n makes the server refuse until checks rerun. Default merge method: squash.\n list returns one page with nextCursor; pass --cursor to continue.\n create, show and list add a web url field to each Pull (<env>/repositories/<ns>/<name>/pull/<n>).\n diff compares live base/head branches for open Pulls, recorded SHAs for terminal\n Pulls, and reports truncated when its file\n limit is reached (default 100, maximum 500).\n close needs to be the Pull's author or have repository write; it is idempotent.\n comment adds a Pull comment; --path and --line anchor it to a diff line (side RIGHT\n and the branch's current commit unless --side/--commit say otherwise), and\n --reply-to answers an existing thread. review records approve, request-changes, or\n comment against the commit the Pull's branch points at now (or --commit). checks prints the check runs,\n CI plan and runs, and merge gates (mergeability, reviews, code owners) in one object.\n resolve and unresolve require repository read access and a root comment UUID from\n comments; the server rejects replies. They return the updated comment as JSON.\n repos pull (singular) materializes files; repos pulls manages review requests.\n";
|
|
3
3
|
/** Only the revisions this command needs from GET .../pulls/<n>/ci. */
|
|
4
4
|
interface PullCiStatus {
|
|
5
5
|
plan?: {
|
|
@@ -17,6 +17,19 @@ export declare function checkedMergeRevision({ fetchStatus }: {
|
|
|
17
17
|
expectedHeadSha: string;
|
|
18
18
|
expectedBaseSha: string;
|
|
19
19
|
} | Record<string, never>>;
|
|
20
|
+
/** Atlas web URL for a Pull: <env origin>/repositories/<ns>/<name>/pull/<number>. */
|
|
21
|
+
export declare function pullWebUrl({ baseUrl, repoPath, number }: {
|
|
22
|
+
baseUrl: string;
|
|
23
|
+
repoPath: string;
|
|
24
|
+
number: number | string;
|
|
25
|
+
}): string;
|
|
26
|
+
/** Adds `url` to a Pull (create), `pullRequest` (show), or each `items` entry (list). */
|
|
27
|
+
export declare function addPullUrls({ action, result, baseUrl, repoPath }: {
|
|
28
|
+
action: string;
|
|
29
|
+
result: unknown;
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
repoPath: string;
|
|
32
|
+
}): unknown;
|
|
20
33
|
export declare function commentBody(args: ParsedArgs): Promise<object>;
|
|
21
34
|
export declare function reviewInput(args: ParsedArgs): Promise<{
|
|
22
35
|
state: string;
|
package/dist/repos/pulls.js
CHANGED
|
@@ -30,6 +30,7 @@ export const PULLS_USAGE = `usage:
|
|
|
30
30
|
checks the branch, merge sends the checked head and base revisions; a newer push
|
|
31
31
|
makes the server refuse until checks rerun. Default merge method: squash.
|
|
32
32
|
list returns one page with nextCursor; pass --cursor to continue.
|
|
33
|
+
create, show and list add a web url field to each Pull (<env>/repositories/<ns>/<name>/pull/<n>).
|
|
33
34
|
diff compares live base/head branches for open Pulls, recorded SHAs for terminal
|
|
34
35
|
Pulls, and reports truncated when its file
|
|
35
36
|
limit is reached (default 100, maximum 500).
|
|
@@ -90,6 +91,31 @@ async function createBody(args) {
|
|
|
90
91
|
throw new Error('--body-file exceeds 65,536 characters.');
|
|
91
92
|
return { headRef, baseRef, title, ...(body === undefined ? {} : { body }) };
|
|
92
93
|
}
|
|
94
|
+
/** Atlas web URL for a Pull: <env origin>/repositories/<ns>/<name>/pull/<number>. */
|
|
95
|
+
export function pullWebUrl({ baseUrl, repoPath, number }) {
|
|
96
|
+
const [namespace = '', name = ''] = repoPath.split('/');
|
|
97
|
+
return `${new URL(baseUrl).origin}/repositories/${encodeURIComponent(namespace)}/${encodeURIComponent(name)}/pull/${encodeURIComponent(String(number))}`;
|
|
98
|
+
}
|
|
99
|
+
function withPullUrl({ pull, baseUrl, repoPath }) {
|
|
100
|
+
const number = pull?.number;
|
|
101
|
+
if (typeof number !== 'number' && typeof number !== 'string')
|
|
102
|
+
return pull;
|
|
103
|
+
return { ...pull, url: pullWebUrl({ baseUrl, repoPath, number }) };
|
|
104
|
+
}
|
|
105
|
+
/** Adds `url` to a Pull (create), `pullRequest` (show), or each `items` entry (list). */
|
|
106
|
+
export function addPullUrls({ action, result, baseUrl, repoPath }) {
|
|
107
|
+
const add = (pull) => withPullUrl({ pull, baseUrl, repoPath });
|
|
108
|
+
const record = result;
|
|
109
|
+
if (!record || typeof record !== 'object')
|
|
110
|
+
return result;
|
|
111
|
+
if (action === 'create')
|
|
112
|
+
return add(record);
|
|
113
|
+
if (action === 'show' && record.pullRequest)
|
|
114
|
+
return { ...record, pullRequest: add(record.pullRequest) };
|
|
115
|
+
if (action === 'list' && Array.isArray(record.items))
|
|
116
|
+
return { ...record, items: record.items.map(add) };
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
93
119
|
const MAX_BODY_LENGTH = 65_536;
|
|
94
120
|
const COMMIT_SHA = /^[0-9a-f]{40}$/i;
|
|
95
121
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -296,6 +322,6 @@ export async function reposPullsCommand(input) {
|
|
|
296
322
|
result = await pullDiff({ ctx, path, repoBase, maxFiles });
|
|
297
323
|
else
|
|
298
324
|
result = await pullRead({ action, args, ctx, path, state, limit });
|
|
299
|
-
console.log(JSON.stringify(result, null, 2));
|
|
325
|
+
console.log(JSON.stringify(addPullUrls({ action, result, baseUrl: ctx.env.url, repoPath }), null, 2));
|
|
300
326
|
return 0;
|
|
301
327
|
}
|
package/dist/storage/commands.js
CHANGED
|
@@ -29,7 +29,7 @@ const usage = `usage:
|
|
|
29
29
|
seq-studio storage access --workspace <id> [--node <id>] [--file <access.json>] -e <env>
|
|
30
30
|
seq-studio storage operations --workspace <id> [--retry <operation-id>] -e <env>
|
|
31
31
|
seq-studio storage abort --workspace <id> --upload <id> -e <env>
|
|
32
|
-
seq-studio storage source show|apply --workspace <id> [--target <id>] [--readers <principal-ids>] -e <env>
|
|
32
|
+
seq-studio storage source show|apply --workspace <id> [--target <id>] [--readers <principal-ids>] [--auto-sync true|false] -e <env>
|
|
33
33
|
seq-studio storage sync --workspace <id> [--idempotency-key <key>] [--wait] -e <env>
|
|
34
34
|
seq-studio storage sync status|retry|cancel <sync-id> --workspace <id> -e <env>
|
|
35
35
|
seq-studio storage snapshots [list|show <snapshot-id>] --workspace <id> [--cursor <cursor>] -e <env>
|
|
@@ -127,11 +127,14 @@ export async function runStorageCommand(sub, args) {
|
|
|
127
127
|
switch (sub) {
|
|
128
128
|
case 'source': {
|
|
129
129
|
if (args.positional[0] === 'apply') {
|
|
130
|
+
const autoSync = args.flags['auto-sync'];
|
|
131
|
+
if (autoSync !== undefined && autoSync !== 'true' && autoSync !== 'false')
|
|
132
|
+
throw new Error('--auto-sync must be true or false');
|
|
130
133
|
const current = await workspace.pipelineSource();
|
|
131
134
|
const target = flag('target') ?? current.targets[0]?.id;
|
|
132
135
|
if (!target)
|
|
133
136
|
throw new Error('No pipeline destination is configured for this environment');
|
|
134
|
-
print(await workspace.applyPipelineSource({ target, readers: flag('readers') === undefined ? current.source?.readers ?? [] : flag('readers').split(',').map(x => x.trim()).filter(Boolean), retentionDays: flag('retention-days') ? Number(flag('retention-days')) : current.source?.retentionDays ?? 30 }));
|
|
137
|
+
print(await workspace.applyPipelineSource({ target, ...(autoSync === undefined ? {} : { autoSyncEnabled: autoSync === 'true' }), readers: flag('readers') === undefined ? current.source?.readers ?? [] : flag('readers').split(',').map(x => x.trim()).filter(Boolean), retentionDays: flag('retention-days') ? Number(flag('retention-days')) : current.source?.retentionDays ?? 30 }));
|
|
135
138
|
}
|
|
136
139
|
else if (!args.positional[0] || args.positional[0] === 'show')
|
|
137
140
|
print(await workspace.pipelineSource());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequenceholdings/studio-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "Unified Sequence Studio CLI — `seq-studio init` / `add` / `deploy` (app monorepos), `seq-studio agents`, `seq-studio process` (Lattice), `seq-studio artifact`, `seq-studio functions` / `secrets`, `seq-studio repos`, and `seq-studio auth whoami`. Includes Auth0 browser login shared with seqapi.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"tsx": "^4.20.3",
|
|
45
45
|
"yaml": "^2.8.4",
|
|
46
46
|
"zod": "^4.1.13",
|
|
47
|
-
"@sequenceholdings/artifact-studio": "0.11.7",
|
|
48
47
|
"@sequenceholdings/agent-spec": "0.1.5",
|
|
48
|
+
"@sequenceholdings/artifact-studio": "0.11.9",
|
|
49
49
|
"@sequenceholdings/lattice": "0.1.8",
|
|
50
|
-
"@sequenceholdings/managed-functions": "0.5.
|
|
51
|
-
"@sequenceholdings/
|
|
52
|
-
"@sequenceholdings/
|
|
50
|
+
"@sequenceholdings/managed-functions": "0.5.8",
|
|
51
|
+
"@sequenceholdings/storage": "0.1.6",
|
|
52
|
+
"@sequenceholdings/platform": "0.1.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@sequenceholdings/
|
|
56
|
-
"@sequenceholdings/
|
|
55
|
+
"@sequenceholdings/orm": "2.8.5",
|
|
56
|
+
"@sequenceholdings/pipeline-spec": "0.3.6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@sequenceholdings/orm": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@types/semver": "^7.8.0",
|
|
70
70
|
"typescript": "^5.6.0",
|
|
71
71
|
"vitest": "^4.1.11",
|
|
72
|
-
"@sequenceholdings/pipeline-spec": "0.3.
|
|
73
|
-
"@sequenceholdings/orm": "2.8.
|
|
72
|
+
"@sequenceholdings/pipeline-spec": "0.3.6",
|
|
73
|
+
"@sequenceholdings/orm": "2.8.5"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": ">=20"
|