@sequenceholdings/studio-cli 0.9.23 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +166 -146
- package/dist/access/commands.js +3 -5
- package/dist/access/principal.js +2 -2
- package/dist/access/tier-hosts.js +2 -2
- package/dist/agents/commands.d.ts +1 -1
- package/dist/agents/commands.js +9 -9
- package/dist/agents/scaffold.js +3 -3
- package/dist/agents/voice.d.ts +1 -1
- package/dist/agents/voice.js +1 -1
- package/dist/app/commands.d.ts +2 -2
- package/dist/app/commands.js +31 -21
- package/dist/app/deploy.d.ts +1 -1
- package/dist/app/deploy.js +1 -1
- package/dist/app/manifest.d.ts +9 -9
- package/dist/app/manifest.js +1 -1
- package/dist/app/prepare.js +1 -1
- package/dist/app/primitive-scaffold.js +1 -1
- package/dist/app/readme.js +6 -6
- package/dist/app/scaffold.js +1 -1
- package/dist/app/validate.d.ts +1 -1
- package/dist/app/workspace-scaffold.js +1 -1
- package/dist/app-preview/commands.d.ts +7 -0
- package/dist/app-preview/commands.js +264 -0
- package/dist/app-preview/fingerprint.d.ts +20 -0
- package/dist/app-preview/fingerprint.js +32 -0
- package/dist/app-preview/install.d.ts +31 -0
- package/dist/app-preview/install.js +53 -0
- package/dist/app-preview/namespace-probe.d.ts +13 -0
- package/dist/app-preview/namespace-probe.js +50 -0
- package/dist/app-preview/plan.d.ts +28 -0
- package/dist/app-preview/plan.js +41 -0
- package/dist/app-preview/run.d.ts +32 -0
- package/dist/app-preview/run.js +48 -0
- package/dist/app-preview/runners.d.ts +73 -0
- package/dist/app-preview/runners.js +226 -0
- package/dist/app-preview/secrets.d.ts +48 -0
- package/dist/app-preview/secrets.js +104 -0
- package/dist/app-preview/target.d.ts +28 -0
- package/dist/app-preview/target.js +62 -0
- package/dist/artifact/delegate.d.ts +1 -12
- package/dist/artifact/delegate.js +43 -124
- package/dist/artifact/sandbox.js +1 -1
- package/dist/auth-cmds/commands.js +1 -2
- package/dist/auth.js +1 -3
- package/dist/bin.js +12 -2
- package/dist/cli-attribution.d.ts +4 -0
- package/dist/cli-attribution.js +25 -3
- package/dist/cli-errors.d.ts +9 -1
- package/dist/cli-errors.js +20 -9
- package/dist/command-contract.d.ts +7 -182
- package/dist/command-contract.js +9 -33
- package/dist/command-help.d.ts +6 -6
- package/dist/command-help.js +31 -27
- package/dist/command-telemetry.js +2 -2
- package/dist/config-dir.d.ts +8 -0
- package/dist/config-dir.js +35 -0
- package/dist/config.d.ts +6 -7
- package/dist/config.js +15 -15
- package/dist/docs/commands.js +9 -4
- package/dist/edge-auth-headers.js +1 -18
- package/dist/env-registry.d.ts +4 -0
- package/dist/env-registry.js +15 -6
- package/dist/envs/commands.d.ts +3 -0
- package/dist/envs/commands.js +11 -0
- package/dist/exit-codes.d.ts +16 -0
- package/dist/exit-codes.js +27 -0
- package/dist/functions/bundle.d.ts +1 -1
- package/dist/functions/commands.d.ts +15 -0
- package/dist/functions/commands.js +86 -29
- package/dist/functions/manifest.js +1 -1
- package/dist/functions/service-account-guidance.d.ts +1 -1
- package/dist/functions/service-account-guidance.js +2 -2
- package/dist/lifecycle/check.d.ts +13 -0
- package/dist/lifecycle/check.js +116 -0
- package/dist/lifecycle/commands.d.ts +14 -0
- package/dist/lifecycle/commands.js +121 -0
- package/dist/lifecycle/plan.d.ts +28 -0
- package/dist/lifecycle/plan.js +113 -0
- package/dist/lifecycle/rollback.d.ts +7 -0
- package/dist/lifecycle/rollback.js +89 -0
- package/dist/lifecycle/seq-ci-tools.d.ts +107 -0
- package/dist/lifecycle/seq-ci-tools.js +177 -0
- package/dist/lifecycle/upgrade.d.ts +3 -0
- package/dist/lifecycle/upgrade.js +38 -0
- package/dist/machine-output.d.ts +11 -2
- package/dist/machine-output.js +32 -10
- package/dist/main.d.ts +16 -6
- package/dist/main.js +187 -361
- package/dist/orgs.d.ts +45 -0
- package/dist/orgs.js +106 -0
- package/dist/orm/delegate.d.ts +1 -1
- package/dist/orm/delegate.js +32 -18
- package/dist/orm/deployment-policy.js +1 -2
- package/dist/orm/discover.js +6 -8
- package/dist/orm/execute.d.ts +1 -1
- package/dist/orm/execute.js +5 -6
- package/dist/orm/failures.js +2 -2
- package/dist/orm/help.d.ts +1 -1
- package/dist/orm/help.js +5 -5
- package/dist/orm/history.js +1 -2
- package/dist/orm/operation-show.js +1 -2
- package/dist/orm/version-guard.d.ts +7 -2
- package/dist/orm/version-guard.js +12 -7
- package/dist/pipeline/codegen.js +2 -2
- package/dist/pipeline/commands.js +9 -7
- package/dist/pipeline/discovery.d.ts +1 -1
- package/dist/pipeline/discovery.js +2 -3
- package/dist/pipeline/help.d.ts +1 -1
- package/dist/pipeline/help.js +1 -1
- package/dist/pipeline/lifecycle.js +1 -1
- package/dist/pipeline/stage-secrets.js +4 -4
- package/dist/pipeline/templates.js +2 -2
- package/dist/pnpm-auto-update.js +3 -3
- package/dist/principals/commands.d.ts +1 -1
- package/dist/principals/commands.js +13 -14
- package/dist/process/commands.js +4 -1
- package/dist/process/run-steps.d.ts +2 -2
- package/dist/process/runs.js +1 -2
- package/dist/registry/commands.d.ts +4 -0
- package/dist/registry/commands.js +281 -0
- package/dist/registry/help.d.ts +8 -0
- package/dist/registry/help.js +64 -0
- package/dist/registry/lifecycle-commands.d.ts +3 -0
- package/dist/registry/lifecycle-commands.js +67 -0
- package/dist/registry/lookup.d.ts +6 -0
- package/dist/registry/lookup.js +18 -0
- package/dist/registry/runners.d.ts +14 -0
- package/dist/registry/runners.js +206 -0
- package/dist/registry/spec.d.ts +45 -0
- package/dist/registry/spec.js +8 -0
- package/dist/repos/commands.d.ts +1 -4
- package/dist/repos/commands.js +3 -21
- package/dist/repos/github-connect-command.d.ts +10 -1
- package/dist/repos/github-connect-command.js +52 -11
- package/dist/repos/github-init.d.ts +9 -2
- package/dist/repos/github-init.js +18 -2
- package/dist/repos/init-repo.js +1 -2
- package/dist/run-pinned.d.ts +48 -0
- package/dist/run-pinned.js +127 -0
- package/dist/sdk-source.d.ts +64 -0
- package/dist/sdk-source.js +199 -0
- package/dist/secrets/commands.d.ts +1 -1
- package/dist/secrets/commands.js +29 -24
- package/dist/service-accounts/commands.d.ts +1 -1
- package/dist/service-accounts/commands.js +4 -5
- package/dist/staged-env.d.ts +14 -0
- package/dist/staged-env.js +73 -0
- package/dist/storage/commands.js +21 -22
- package/dist/templates/catalog.d.ts +5 -5
- package/dist/templates/catalog.js +1 -1
- package/dist/update-check.js +3 -3
- package/dist/version-support.d.ts +39 -0
- package/dist/version-support.js +71 -0
- package/package.json +11 -10
- package/release-summary.json +4 -1
- package/dist/preview.d.ts +0 -90
- package/dist/preview.js +0 -292
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@ app-monorepo commands below are currently internal; see their availability
|
|
|
8
8
|
notice.
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
seq-studio process
|
|
11
|
+
seq-studio process validate
|
|
12
12
|
seq-studio process plan -e <env>
|
|
13
13
|
seq-studio process apply -e <env>
|
|
14
|
-
seq-studio
|
|
15
|
-
seq-studio
|
|
14
|
+
seq-studio agent validate
|
|
15
|
+
seq-studio agent plan -e <env>
|
|
16
16
|
seq-studio artifact deploy -e <env>
|
|
17
17
|
seq-studio orm init lending
|
|
18
18
|
seq-studio pipeline validate
|
|
@@ -31,7 +31,7 @@ verifies and copies the selected release into a new or empty directory.
|
|
|
31
31
|
> (`init` without `--template` or `--repo`, `lint`, `simulate`, `build`, `bundle inspect`, `agents init`,
|
|
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
|
-
> example, `seq-studio repos create --help` and `seq-studio
|
|
34
|
+
> example, `seq-studio repos create --help` and `seq-studio function run --help`.
|
|
35
35
|
> An unknown subcommand, including one followed by `--help`, exits nonzero and
|
|
36
36
|
> points to the namespace help; check command spelling before retrying.
|
|
37
37
|
> Sequence-internal contributors: see `INTERNAL.md` in the monorepo for
|
|
@@ -164,7 +164,7 @@ export SEQ_STUDIO_BASE_URL=https://<your-atlas-origin>
|
|
|
164
164
|
export SEQ_STUDIO_TOKEN_FILE=/run/seq/token
|
|
165
165
|
seq-studio auth whoami # authMode: sandbox
|
|
166
166
|
seq-studio orm namespaces # what data can I read?
|
|
167
|
-
seq-studio orm
|
|
167
|
+
seq-studio orm show lending loans # columns, types, actions
|
|
168
168
|
seq-studio orm read lending loans --limit 5 --json
|
|
169
169
|
```
|
|
170
170
|
|
|
@@ -212,8 +212,7 @@ packages, so its `package.json` must have no entries in `dependencies` or
|
|
|
212
212
|
`optionalDependencies`; one that does is refused rather than installed. Atlas
|
|
213
213
|
needs a committed `pnpm-lock.yaml` for a Next.js build, which a sandbox cannot
|
|
214
214
|
generate, so start new sandbox apps from the default static template. `build`, `plan` and `deploy` require `--repo`;
|
|
215
|
-
`dev`, `login`, `logout`, `--git-url
|
|
216
|
-
are unavailable, and `--token` is refused as everywhere else. List, show,
|
|
215
|
+
`dev`, `login`, `logout`, `--git-url` and `--source-env` are unavailable, and `--token` is refused as everywhere else. List, show,
|
|
217
216
|
status, whoami, pull, link, promote and rollback work as usual.
|
|
218
217
|
|
|
219
218
|
## Environments
|
|
@@ -231,11 +230,11 @@ seq-studio envs list # show configured environments (name, URL, so
|
|
|
231
230
|
|
|
232
231
|
The reserved names `staging`, `production` and `banksouth` are for deployments
|
|
233
232
|
that sign in through the shared Sequence login: `envs add` saves one of them to
|
|
234
|
-
`~/.config/
|
|
233
|
+
`~/.config/seq-studio/config.toml` only after the deployment confirms that login,
|
|
235
234
|
and `seq-studio login` signs you in.
|
|
236
235
|
|
|
237
236
|
You can also add or override environments yourself in
|
|
238
|
-
`~/.config/
|
|
237
|
+
`~/.config/seq-studio/config.toml`.
|
|
239
238
|
Authenticated requests accept only HTTPS origins at `seqholdings.com` or its
|
|
240
239
|
subdomains, plus HTTP loopback origins for local development. The CLI
|
|
241
240
|
revalidates that exact origin immediately before attaching credentials and
|
|
@@ -278,12 +277,12 @@ locations, dependencies, and deployment selection.
|
|
|
278
277
|
| `seq-studio add <kind> <name> [--depends-on <ids>] [--template <t>]` | Add any primitive, including additional ORM namespaces and UIs |
|
|
279
278
|
| `seq-studio add package <name>` | Add a shared TypeScript package to the manifest and pnpm workspace |
|
|
280
279
|
| `seq-studio validate [--dir <path>] [--json]` | Offline check of the app manifest, dependency graph, contained primitive directories, and resolved member refs |
|
|
281
|
-
| `seq-studio
|
|
280
|
+
| `seq-studio apply -e <env> [--yes] [--only id1,id2] [--dry-run]` | Validate and deploy the selected app graph, including prerequisites |
|
|
282
281
|
|
|
283
282
|
`seq-studio validate` works before a legacy repository is adopted: it needs no
|
|
284
283
|
login or environment and lists existing members such as process refs. It does
|
|
285
284
|
not verify that remote members exist or that primitive-specific source can
|
|
286
|
-
deploy. `seq-studio
|
|
285
|
+
deploy. `seq-studio apply --dry-run` still requires the repository identity
|
|
287
286
|
receipt and performs its existing deployment preflight.
|
|
288
287
|
|
|
289
288
|
`init` accepts `orm`, `workspace`, `function`, `agent`, `process`, `pipeline`, and `artifact` as
|
|
@@ -311,20 +310,20 @@ cd loan-tools
|
|
|
311
310
|
# and merging main creates and deploys the declared supported primitives.
|
|
312
311
|
# Outside one, deploy directly:
|
|
313
312
|
seq-studio login -e <env>
|
|
314
|
-
seq-studio
|
|
315
|
-
seq-studio
|
|
313
|
+
seq-studio apply -e <env> --dry-run
|
|
314
|
+
seq-studio apply -e <env> --yes
|
|
316
315
|
|
|
317
316
|
seq-studio add agent reviewer
|
|
318
317
|
seq-studio add process approvals --depends-on reviewer-agent
|
|
319
318
|
seq-studio add orm audit
|
|
320
319
|
pnpm install
|
|
321
|
-
seq-studio orm
|
|
320
|
+
seq-studio orm build orm/audit
|
|
322
321
|
seq-studio orm diff orm/audit
|
|
323
322
|
# Review and commit orm/audit/migrations/.
|
|
324
323
|
seq-studio add artifact admin
|
|
325
324
|
seq-studio add package contracts
|
|
326
325
|
pnpm install
|
|
327
|
-
seq-studio
|
|
326
|
+
seq-studio apply -e <env> --only approvals-process --yes
|
|
328
327
|
```
|
|
329
328
|
|
|
330
329
|
Creating a platform git-service repo without `--git-backend` (`seq-studio repos
|
|
@@ -429,8 +428,8 @@ Agent and process entries may set `only` to select definitions from their source
|
|
|
429
428
|
folder. Agent and pipeline entries may set `target` to select a deployment identity.
|
|
430
429
|
|
|
431
430
|
A `workspace` primitive is a Workspaces V2 workspace. Its `path` holds the
|
|
432
|
-
`workspace.yml` that `seq-studio
|
|
433
|
-
must match `workspace.name` in it. Deploy runs `seq-studio
|
|
431
|
+
`workspace.yml` that `seq-studio workspace init` writes, and the entry's `name`
|
|
432
|
+
must match `workspace.name` in it. Deploy runs `seq-studio workspace apply`, an
|
|
434
433
|
idempotent upsert by name, so it needs the same authority as applying the file
|
|
435
434
|
yourself. Workspaces are never part of Application roles: their access depends
|
|
436
435
|
on the folders and files in them and is managed in Workspaces V2.
|
|
@@ -459,7 +458,7 @@ primitives:
|
|
|
459
458
|
```
|
|
460
459
|
|
|
461
460
|
Every primitive appears in the graph, including agents, pipelines and
|
|
462
|
-
workspaces. `seq-studio
|
|
461
|
+
workspaces. `seq-studio apply` and `seq-studio artifact deploy` resolve these
|
|
463
462
|
names in the selected environment and validate explicit manifest bindings.
|
|
464
463
|
An artifact's selected `targets.<environment>.url` must match that environment's
|
|
465
464
|
API origin; the `targets` map may list every environment. A `uses` edge to a
|
|
@@ -472,7 +471,7 @@ values are not scanned for URLs or UUIDs. Repository tenant identity admission,
|
|
|
472
471
|
manifest validation, deployment permissions, and runtime authorization still apply.
|
|
473
472
|
|
|
474
473
|
After changing an ORM schema, run
|
|
475
|
-
`seq-studio orm
|
|
474
|
+
`seq-studio orm build <namespace-path>` followed by
|
|
476
475
|
`seq-studio orm diff <namespace-path>`. Review and commit the generated migration
|
|
477
476
|
ledger. `init` authors the baseline for its initial namespace (unless
|
|
478
477
|
`--skip-install`); namespaces added later still need this workflow. A namespace without migrations fails deployment
|
|
@@ -639,7 +638,7 @@ and inherits only other collaborator roles.
|
|
|
639
638
|
pipelines (in `apps` or your own namespace).
|
|
640
639
|
- Secrets the app's functions and pipelines read are listed under a top-level
|
|
641
640
|
`secrets:` block by their name in each environment. Deploy doesn't create or
|
|
642
|
-
set them — use `seq-studio
|
|
641
|
+
set them — use `seq-studio secret` — it bundles them so a collaborator role
|
|
643
642
|
can give `editor` (set the value, roll back, attach and pin it; values stay
|
|
644
643
|
write-only). Like a pipeline, a secret has nothing to use: functions and
|
|
645
644
|
stages read it through their own attachments whether or not it's listed,
|
|
@@ -674,7 +673,7 @@ and inherits only other collaborator roles.
|
|
|
674
673
|
- { id: lending, kind: orm, ref: lending }
|
|
675
674
|
- { id: intake, kind: process, ref: loan-intake }
|
|
676
675
|
```
|
|
677
|
-
- After registering, `seq-studio
|
|
676
|
+
- After registering, `seq-studio apply` prints **suggested members**: what
|
|
678
677
|
the app's members depend on that it doesn't include — secrets they read,
|
|
679
678
|
accounts they run as, functions and agents their process steps run, data
|
|
680
679
|
they declare, and what traces saw them call — with the lines to paste
|
|
@@ -695,21 +694,21 @@ bundle; it never implicitly deletes agents.
|
|
|
695
694
|
|
|
696
695
|
| Command | What it does |
|
|
697
696
|
|---------|--------------|
|
|
698
|
-
| `seq-studio
|
|
699
|
-
| `seq-studio
|
|
700
|
-
| `seq-studio
|
|
701
|
-
| `seq-studio
|
|
702
|
-
| `seq-studio
|
|
703
|
-
| `seq-studio
|
|
704
|
-
| `seq-studio
|
|
705
|
-
| `seq-studio
|
|
697
|
+
| `seq-studio agent init <dir> [--repo <ns>/<name>]` | Scaffold a standalone typed agent repository on the recommended model (`RECOMMENDED_AGENT_MODEL` from `@sequenceholdings/agent-spec`); `--repo` scaffolds into a git-service repo ([Scaffold into a repository](#scaffold-into-a-repository---repo)) |
|
|
698
|
+
| `seq-studio agent validate [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Compile and validate locally, without API access |
|
|
699
|
+
| `seq-studio agent bundle --out <file> [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Write the config deploy body, `{ definitions, bundleHash }`, offline; repository CI's agent build |
|
|
700
|
+
| `seq-studio agent plan [--dir <dir>] [--only <id1,id2>]` | Offline compile/hash plan |
|
|
701
|
+
| `seq-studio agent plan [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--managed] [--check-execution]` | Diff creates, updates, and unchanged definitions against an environment |
|
|
702
|
+
| `seq-studio agent apply [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--yes] [--managed] [--check-execution]` | Deploy agent configuration after showing the plan |
|
|
703
|
+
| `seq-studio agent list -e <env>` | List visible runtime agents |
|
|
704
|
+
| `seq-studio agent show <id> -e <env>` | Show one runtime agent |
|
|
706
705
|
|
|
707
706
|
For `validate`, `bundle`, `plan`, and `apply`, `--only` accepts a comma-separated list of
|
|
708
707
|
agent IDs after deployment-environment selection; every requested ID must be
|
|
709
708
|
selected.
|
|
710
709
|
|
|
711
|
-
**Access is managed in Atlas, not in code.** `seq-studio
|
|
712
|
-
and `seq-studio
|
|
710
|
+
**Access is managed in Atlas, not in code.** `seq-studio agent plan`/`apply`
|
|
711
|
+
and `seq-studio apply` deploy agents config-only, as you, with the same rules
|
|
713
712
|
as an Agent Builder save:
|
|
714
713
|
|
|
715
714
|
- A new agent needs **Can create** on Agent Builder; you become its owner and
|
|
@@ -732,8 +731,8 @@ Studio CLI 0.8.0 adds `--check-execution` to CONFIG `agents plan` and `agents
|
|
|
732
731
|
apply`. Confirm matching backend support before using this release candidate:
|
|
733
732
|
|
|
734
733
|
```bash
|
|
735
|
-
seq-studio
|
|
736
|
-
seq-studio
|
|
734
|
+
seq-studio agent plan --dir . -e <env> --check-execution
|
|
735
|
+
seq-studio agent apply --dir . -e <env> --check-execution
|
|
737
736
|
```
|
|
738
737
|
|
|
739
738
|
This opt-in accepts at most **20 existing agents in one whole bundle** and
|
|
@@ -787,12 +786,12 @@ Standalone workflow:
|
|
|
787
786
|
pnpm dlx @sequenceholdings/studio-cli agents init support-agent
|
|
788
787
|
cd support-agent
|
|
789
788
|
pnpm install
|
|
790
|
-
pnpm exec seq-studio
|
|
791
|
-
pnpm exec seq-studio
|
|
789
|
+
pnpm exec seq-studio agent validate
|
|
790
|
+
pnpm exec seq-studio agent plan
|
|
792
791
|
# Authenticate only when ready to inspect or apply an environment:
|
|
793
792
|
pnpm exec seq-studio login
|
|
794
|
-
pnpm exec seq-studio
|
|
795
|
-
pnpm exec seq-studio
|
|
793
|
+
pnpm exec seq-studio agent plan -e <env>
|
|
794
|
+
pnpm exec seq-studio agent apply -e <env>
|
|
796
795
|
```
|
|
797
796
|
|
|
798
797
|
Sequence staff deploying Sequence's own code-managed agents add `--managed` to
|
|
@@ -842,16 +841,16 @@ before executing anything from a repository.
|
|
|
842
841
|
Start in your existing standalone typed-Agent repository:
|
|
843
842
|
|
|
844
843
|
```sh
|
|
845
|
-
seq-studio
|
|
844
|
+
seq-studio agent voice help
|
|
846
845
|
seq-studio login
|
|
847
|
-
seq-studio
|
|
848
|
-
seq-studio
|
|
846
|
+
seq-studio agent voice inspect <id> -e staging --out inspection.json
|
|
847
|
+
seq-studio agent voice export <id> -e staging --out agent.ts
|
|
849
848
|
# Edit agent.ts, retaining its Voice mode and the same ID.
|
|
850
|
-
seq-studio
|
|
851
|
-
seq-studio
|
|
852
|
-
seq-studio
|
|
849
|
+
seq-studio agent validate --dir .
|
|
850
|
+
seq-studio agent voice save <id> -e staging --dir . --expected-revision 3
|
|
851
|
+
seq-studio agent voice inspect <id> -e staging
|
|
853
852
|
# Use the actual returned draft revision, not the illustrative number here.
|
|
854
|
-
seq-studio
|
|
853
|
+
seq-studio agent voice validate <id> -e staging --expected-revision 4 --out review.json
|
|
855
854
|
```
|
|
856
855
|
|
|
857
856
|
`inspect` never replaces captured text when a source Skill changes. `save` checks
|
|
@@ -900,10 +899,10 @@ Generate your own UUID (for example `node -e 'console.log(crypto.randomUUID())'`
|
|
|
900
899
|
the example key is illustrative. Keep the exact request file before dispatch:
|
|
901
900
|
|
|
902
901
|
```sh
|
|
903
|
-
seq-studio
|
|
904
|
-
seq-studio
|
|
902
|
+
seq-studio agent voice publish <id> -e staging --request-file publication.json
|
|
903
|
+
seq-studio agent voice status <id> -e staging --key <uuid-from-file>
|
|
905
904
|
# Only when the recorded operation requires an explicit retry:
|
|
906
|
-
seq-studio
|
|
905
|
+
seq-studio agent voice retry <id> -e staging --operation <returned-operation-uuid>
|
|
907
906
|
```
|
|
908
907
|
|
|
909
908
|
Calls time out after 30 seconds and responses are bounded to 8 MiB. Voice requests
|
|
@@ -928,8 +927,8 @@ compiled to canonical SQL before registration.
|
|
|
928
927
|
| Command | What it does |
|
|
929
928
|
|---------|--------------|
|
|
930
929
|
| `seq-studio orm init <dir> [--repo <ns>/<name>]` | Scaffold one v2 namespace package (`sequence.config.ts`, `schema/*.ts`, `graphql/**`, and codegen config). `--repo` scaffolds into a git-service repo ([Scaffold into a repository](#scaffold-into-a-repository---repo)). |
|
|
931
|
-
| `seq-studio orm
|
|
932
|
-
| `seq-studio orm
|
|
930
|
+
| `seq-studio orm build [dir]` | Generate `schema.graphql`, `operations.manifest.json`, `typePolicies.gen.ts`, `namespace.contract.json`, `sql-operations.gen.ts`, and consumer codegen when `codegen.ts` is present. |
|
|
931
|
+
| `seq-studio orm build [dir] --migration-export [--check]` | Export `orm.migration.json` after validating the committed ORM migration. Pipeline migration planning recompiles these declarative inputs. `--check` compares against the current source and operations without writing; use it in CI. |
|
|
933
932
|
| `seq-studio orm validate [dir]` | Parse and compile the namespace, then verify its committed migration chain is current. |
|
|
934
933
|
| `seq-studio orm plan [dir] -e <env>` | Print fresh-schema DDL using current names, including tables with retained rename hints, and compare registry versions without writes. This is not an incremental live migration diff; when available, print the live activation's source and provenance. |
|
|
935
934
|
| `seq-studio orm diff [dir] [--check]` | Author the next committed migration, or verify the migration/snapshot chain offline for CI. |
|
|
@@ -939,10 +938,10 @@ compiled to canonical SQL before registration.
|
|
|
939
938
|
| `seq-studio orm deployment-policy <namespace> -e <env> --mode ci --repo <ns>/<name> --branch <branch> --target <target-key>` | Explicitly enroll an existing namespace. Requires namespace Admin, repository Admin, and an automatic branch policy already bound to this exact namespace. |
|
|
940
939
|
| `seq-studio orm deployment-policy <namespace> -e <env> --mode source --repo <ns>/<name> --branch <branch> --path <dir> [--source-env <env>]` | Keep direct applies but accept only ones Atlas verifies came from that repository, branch and package directory. Requires namespace Admin and repository Read; `--source-env` finds the repository in another registered environment and checks Read with your sign-in there. |
|
|
941
940
|
| `seq-studio orm deployment-policy <namespace> -e <env> --mode manual` | Restore direct, permission-checked deployment; requires namespace Admin. |
|
|
942
|
-
| `seq-studio orm
|
|
943
|
-
| `seq-studio orm
|
|
941
|
+
| `seq-studio orm run <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...` | Execute the deployed version's persisted operation by name, as the signed-in caller. Needs no checkout. |
|
|
942
|
+
| `seq-studio orm run <operation> [dir] --variables-file <file> -e <env>` | Execute an operation from the checkout's manifest through the installed ORM package, with variables from a JSON object file, as the signed-in caller. |
|
|
944
943
|
| `seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]` | List the namespaces you can read. |
|
|
945
|
-
| `seq-studio orm
|
|
944
|
+
| `seq-studio orm show <namespace> [<table> \| --operations] -e <env> [--json]` | Show a namespace's tables, views, and persisted operations (with their variables), only its operations, or one table's columns, actions, and the operations that write it. |
|
|
946
945
|
| `seq-studio orm operation show <namespace> <name> -e <env> [--json]` | Show the active persisted operation's registered GraphQL document; JSON also includes its hash and declared variables. Requires namespace read access. |
|
|
947
946
|
| `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. |
|
|
948
947
|
| `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. |
|
|
@@ -968,7 +967,7 @@ cd lending
|
|
|
968
967
|
pnpm install
|
|
969
968
|
|
|
970
969
|
# Edit sequence.config.ts, schema/*.ts, and graphql/**/*.ts.
|
|
971
|
-
pnpm exec seq-studio orm
|
|
970
|
+
pnpm exec seq-studio orm build .
|
|
972
971
|
pnpm exec seq-studio orm plan . -e local
|
|
973
972
|
pnpm exec seq-studio orm apply . -e local
|
|
974
973
|
pnpm exec seq-studio orm validate .
|
|
@@ -1028,9 +1027,9 @@ read-only.
|
|
|
1028
1027
|
```bash
|
|
1029
1028
|
seq-studio orm namespaces -e <env> # NAMESPACE FORMAT TABLES OPERATIONS DESCRIPTION
|
|
1030
1029
|
seq-studio orm namespaces -e <env> --limit 20 --offset 20 --json
|
|
1031
|
-
seq-studio orm
|
|
1032
|
-
seq-studio orm
|
|
1033
|
-
seq-studio orm
|
|
1030
|
+
seq-studio orm show lending -e <env> # tables, views, persisted operations
|
|
1031
|
+
seq-studio orm show lending --operations -e <env> # operations, requirements, variables
|
|
1032
|
+
seq-studio orm show lending loans -e <env> # columns, enum values, links, actions
|
|
1034
1033
|
seq-studio orm operation show lending ListLoans -e <env> --json # active document and hash
|
|
1035
1034
|
```
|
|
1036
1035
|
|
|
@@ -1060,8 +1059,8 @@ seq-studio orm operation show lending ListLoans -e <env> --json # active docume
|
|
|
1060
1059
|
### Running a deployed operation (`orm execute <namespace> <operation>`)
|
|
1061
1060
|
|
|
1062
1061
|
```bash
|
|
1063
|
-
seq-studio orm
|
|
1064
|
-
seq-studio orm
|
|
1062
|
+
seq-studio orm run lending ListLoans -e <env> --var officer=<uuid> --var limit=5
|
|
1063
|
+
seq-studio orm run lending ListLoans -e <env> --variables-file variables.json
|
|
1065
1064
|
```
|
|
1066
1065
|
|
|
1067
1066
|
Both execute forms accept `--variables-file -` (or `/dev/stdin`) for piped JSON.
|
|
@@ -1177,7 +1176,7 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
1177
1176
|
| Command | What it does |
|
|
1178
1177
|
|---------|--------------|
|
|
1179
1178
|
| `seq-studio process init <dir>` | Scaffold a process repo: `package.json`, sample `process.ts`, `tsconfig.json` |
|
|
1180
|
-
| `seq-studio process
|
|
1179
|
+
| `seq-studio process validate [--dir <path>] [--offline]` | Static checks (graph, return contracts, agent schema, timeouts, JSONata syntax, and human `input` projections); `--offline` skips live agent-schema lookup |
|
|
1181
1180
|
| `seq-studio process plan [--dir <path>] -e <env>` | Build bundle, run the same lint `apply` enforces (CLI **0.9.1**+), diff against currently-active version |
|
|
1182
1181
|
| `seq-studio process apply [--dir <path>] -e <env> [--only <id1,id2>]` | Build → register bundle → promote each process. `--only` promotes just the named process ids (the bundle still contains the whole root — registration is inert) |
|
|
1183
1182
|
| `seq-studio process apply --repo <namespace>/<name> [--ref <r>] -e <env> [--only <id1,id2>]` | Same as above, but materializes the source from a platform git-service repo in `processes`, `apps`, or your own namespace. Pinned commit SHA is injected as bundle provenance. Uses your `seq-studio login` (or the target realm's M2M JSON source path for CI) |
|
|
@@ -1324,7 +1323,7 @@ my-processes/
|
|
|
1324
1323
|
```
|
|
1325
1324
|
|
|
1326
1325
|
```bash
|
|
1327
|
-
seq-studio process
|
|
1326
|
+
seq-studio process validate --dir my-processes --offline # finds both processes
|
|
1328
1327
|
```
|
|
1329
1328
|
|
|
1330
1329
|
## Managed Function commands
|
|
@@ -1344,26 +1343,26 @@ functions cannot opt in retroactively. The default remains mutable. See the
|
|
|
1344
1343
|
|
|
1345
1344
|
| Command | What it does |
|
|
1346
1345
|
|---------|--------------|
|
|
1347
|
-
| `seq-studio
|
|
1348
|
-
| `seq-studio
|
|
1349
|
-
| `seq-studio
|
|
1350
|
-
| `seq-studio
|
|
1351
|
-
| `seq-studio
|
|
1352
|
-
| `seq-studio
|
|
1353
|
-
| `seq-studio
|
|
1354
|
-
| `seq-studio
|
|
1355
|
-
| `seq-studio
|
|
1356
|
-
| `seq-studio
|
|
1357
|
-
| `seq-studio
|
|
1358
|
-
| `seq-studio
|
|
1346
|
+
| `seq-studio function init <dir> [--repo <ns>/<name>]` | Scaffold one standalone TypeScript managed function; `--repo` scaffolds into a git-service repo ([Scaffold into a repository](#scaffold-into-a-repository---repo)) |
|
|
1347
|
+
| `seq-studio function dev [--dir <dir>] [--port <port>]` | Run a local HTTP server with Managed Function cache context |
|
|
1348
|
+
| `seq-studio function build [--dir <dir>]` | Validate a local manifest, bundle, lockfile, and size |
|
|
1349
|
+
| `seq-studio function register [--dir <dir>] -e <env>` | Register an undeployed shell and its initial secret names/mappings without uploading or activating code |
|
|
1350
|
+
| `seq-studio function deploy --dir <dir> -e <env>` | Preview secrets and deploy a local function |
|
|
1351
|
+
| `seq-studio function build --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and validate a function from the platform Git Service |
|
|
1352
|
+
| `seq-studio function deploy --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and deploy a function from the platform Git Service |
|
|
1353
|
+
| `seq-studio function show --fn <slug> -e <env>` | Show one function: its input and output JSON Schemas, and for readers its versions and secrets |
|
|
1354
|
+
| `seq-studio function 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 |
|
|
1355
|
+
| `seq-studio function show --fn <slug> -e <env> --json [--version <id-or-name>]` | Inspect reader-gated active release provenance and optionally select an exact submitted version |
|
|
1356
|
+
| `seq-studio function limits [-e <env>] [--json] [--fn <slug>]` | Inspect fleet, runtime, cache, and bundle defaults/caps; optionally inspect one function's effective runtime limits |
|
|
1357
|
+
| `seq-studio function run --fn <slug> -e <env> [--data <json> \| --data @<file> \| --stdin]` | Invoke a deployed function and print its response body |
|
|
1359
1358
|
|
|
1360
1359
|
Before invoking a function, read its input schema and build the payload from
|
|
1361
1360
|
it. `--schema` needs only invoke access, so it works for callers who cannot
|
|
1362
1361
|
read the function's versions:
|
|
1363
1362
|
|
|
1364
1363
|
```bash
|
|
1365
|
-
seq-studio
|
|
1366
|
-
seq-studio
|
|
1364
|
+
seq-studio function show --fn my-function -e <env> --schema | jq .inputSchema
|
|
1365
|
+
seq-studio function run --fn my-function -e <env> --data '{"region": "east"}'
|
|
1367
1366
|
```
|
|
1368
1367
|
|
|
1369
1368
|
A function whose manifest declares no schema shows `null`.
|
|
@@ -1398,10 +1397,10 @@ To select an existing secret version before the first deployment, declare its
|
|
|
1398
1397
|
name in `managed-function.yml`, then register and pin before uploading code:
|
|
1399
1398
|
|
|
1400
1399
|
```bash
|
|
1401
|
-
seq-studio
|
|
1402
|
-
seq-studio
|
|
1403
|
-
seq-studio
|
|
1404
|
-
seq-studio
|
|
1400
|
+
seq-studio function register --dir my-function -e <env>
|
|
1401
|
+
seq-studio secret pin API_KEY --fn my-function 1 -e <env> --yes --no-redeploy
|
|
1402
|
+
seq-studio function show --fn my-function -e <env>
|
|
1403
|
+
seq-studio function deploy --dir my-function -e <env> --yes
|
|
1405
1404
|
```
|
|
1406
1405
|
|
|
1407
1406
|
Registration saves only secret names and set-entry mappings. It does not read
|
|
@@ -1451,9 +1450,9 @@ functions/
|
|
|
1451
1450
|
Select exactly one function directory for each build or deploy:
|
|
1452
1451
|
|
|
1453
1452
|
```bash
|
|
1454
|
-
seq-studio
|
|
1453
|
+
seq-studio function build --repo managed-functions/encompass \
|
|
1455
1454
|
--path functions/get-loan -e staging
|
|
1456
|
-
seq-studio
|
|
1455
|
+
seq-studio function deploy --repo managed-functions/encompass \
|
|
1457
1456
|
--path functions/get-loan -e staging
|
|
1458
1457
|
```
|
|
1459
1458
|
|
|
@@ -1497,7 +1496,7 @@ invocations do not receive it. Current function access, declared group reach,
|
|
|
1497
1496
|
caller visibility, and active tenant membership are checked at read time.
|
|
1498
1497
|
|
|
1499
1498
|
Requires CLI 0.5.2+, SDK 0.4.1+, and a deployment advertising
|
|
1500
|
-
`directory_members` in `seq-studio
|
|
1499
|
+
`directory_members` in `seq-studio function limits --json -e <env>`.
|
|
1501
1500
|
Deploy preflight rejects unsupported deployments or stale tooling. Release
|
|
1502
1501
|
the supporting Atlas build and packages before adding the declaration to a
|
|
1503
1502
|
consumer; declaring it does not create groups, grant access, or bypass action
|
|
@@ -1509,7 +1508,7 @@ To delete a deployed function when its source directory is unavailable, select
|
|
|
1509
1508
|
it by slug instead of reading a local manifest:
|
|
1510
1509
|
|
|
1511
1510
|
```bash
|
|
1512
|
-
seq-studio
|
|
1511
|
+
seq-studio function delete -e staging --fn my-function --yes
|
|
1513
1512
|
```
|
|
1514
1513
|
|
|
1515
1514
|
`--fn <slug>` also selects a function for `promote` and `rollback`; without it,
|
|
@@ -1520,12 +1519,25 @@ these commands use the manifest in the current directory (or `--dir`).
|
|
|
1520
1519
|
Start local Atlas, then use the same deployment workflow:
|
|
1521
1520
|
|
|
1522
1521
|
```bash
|
|
1523
|
-
seq-studio
|
|
1524
|
-
seq-studio
|
|
1525
|
-
seq-studio
|
|
1526
|
-
seq-studio
|
|
1522
|
+
seq-studio function deploy --dir ./my-function -e local
|
|
1523
|
+
seq-studio function run --dir ./my-function -e local --data '{"name":"Atlas"}'
|
|
1524
|
+
seq-studio function logs --dir ./my-function -e local
|
|
1525
|
+
seq-studio function delete --dir ./my-function -e local --yes
|
|
1527
1526
|
```
|
|
1528
1527
|
|
|
1528
|
+
A local Atlas that runs on a copy of another environment's database lists that environment's
|
|
1529
|
+
functions, but their runtime is elsewhere, so deploying or invoking one fails with "belongs to
|
|
1530
|
+
another runtime". On a personal development database branch, take the function over:
|
|
1531
|
+
|
|
1532
|
+
```bash
|
|
1533
|
+
seq-studio function deploy --dir ./my-function -e local --adopt
|
|
1534
|
+
```
|
|
1535
|
+
|
|
1536
|
+
`--adopt` rebinds the copied row to this local Atlas and then deploys. The function keeps its
|
|
1537
|
+
slug, so its callers need no change. It has no active version until that deploy finishes, and
|
|
1538
|
+
its secrets need local values. The runtime it was copied from is not contacted or changed.
|
|
1539
|
+
A local Atlas on any shared database branch refuses it.
|
|
1540
|
+
|
|
1529
1541
|
For a worktree, replace `local` with its environment from `seq-studio envs list`
|
|
1530
1542
|
(for example `local:my-worktree`). Local Atlas builds the uploaded source and
|
|
1531
1543
|
runs Google's Functions Framework in a supervised local Node process. It needs
|
|
@@ -1557,15 +1569,15 @@ are trusted development code running as your OS user. Hosted Atlas continues to
|
|
|
1557
1569
|
use GCP. `MANAGED_FUNCTIONS_EXECUTION_BACKEND=gcp` explicitly retains the cloud
|
|
1558
1570
|
backend for a local development process.
|
|
1559
1571
|
|
|
1560
|
-
`seq-studio
|
|
1572
|
+
`seq-studio function dev` remains a standalone HTTP harness; use `deploy -e local`
|
|
1561
1573
|
to exercise the function through Atlas.
|
|
1562
1574
|
|
|
1563
1575
|
Invoke payloads can be inline JSON, a JSON file prefixed with `@`, or stdin:
|
|
1564
1576
|
|
|
1565
1577
|
```bash
|
|
1566
|
-
seq-studio
|
|
1567
|
-
seq-studio
|
|
1568
|
-
cat request.json | seq-studio
|
|
1578
|
+
seq-studio function run --fn my-function -e local --data '{"name":"Atlas"}'
|
|
1579
|
+
seq-studio function run --fn my-function -e local --data @request.json
|
|
1580
|
+
cat request.json | seq-studio function run --fn my-function -e local --stdin
|
|
1569
1581
|
```
|
|
1570
1582
|
|
|
1571
1583
|
The function response body is written to stdout so it can be piped to another
|
|
@@ -1577,9 +1589,9 @@ body.
|
|
|
1577
1589
|
### Scaling
|
|
1578
1590
|
|
|
1579
1591
|
```bash
|
|
1580
|
-
seq-studio
|
|
1581
|
-
seq-studio
|
|
1582
|
-
seq-studio
|
|
1592
|
+
seq-studio function limits # installed CLI's bundled policy; offline
|
|
1593
|
+
seq-studio function limits -e staging # policy enforced by the deployed server
|
|
1594
|
+
seq-studio function limits -e staging --fn get-loan --json
|
|
1583
1595
|
```
|
|
1584
1596
|
|
|
1585
1597
|
The catalog shares its definitions with manifest validation and server enforcement;
|
|
@@ -1628,7 +1640,7 @@ and memory. Three instances therefore provide capacity for up to 48 simultaneous
|
|
|
1628
1640
|
requests, not 48 instances. CPU-bound JavaScript may not benefit from more CPUs
|
|
1629
1641
|
without worker threads; I/O-heavy functions are better candidates for concurrency.
|
|
1630
1642
|
Opting into concurrency requires handlers to keep request-specific state out of
|
|
1631
|
-
mutable globals. Redeploy with `seq-studio
|
|
1643
|
+
mutable globals. Redeploy with `seq-studio function deploy -e <env>` to apply
|
|
1632
1644
|
these settings; promote and rollback carry the selected version's settings.
|
|
1633
1645
|
|
|
1634
1646
|
`invoke_rate_per_minute` applies per function **across all Atlas replicas in the
|
|
@@ -1656,7 +1668,7 @@ invocation:
|
|
|
1656
1668
|
- 2001:db8::/48
|
|
1657
1669
|
```
|
|
1658
1670
|
|
|
1659
|
-
`seq-studio
|
|
1671
|
+
`seq-studio function build` validates IPv4/IPv6 addresses and CIDRs locally;
|
|
1660
1672
|
Atlas performs authoritative normalization during upload. `/0` ranges are
|
|
1661
1673
|
rejected. Omitting `invocation` or declaring `allowed_ip_ranges: []` means
|
|
1662
1674
|
unrestricted source IPs.
|
|
@@ -1679,7 +1691,7 @@ authorization:
|
|
|
1679
1691
|
```
|
|
1680
1692
|
|
|
1681
1693
|
The adapter name is a closed platform registry. Authors cannot provide JSON
|
|
1682
|
-
pointers or custom filtering logic. `seq-studio
|
|
1694
|
+
pointers or custom filtering logic. `seq-studio function build` rejects an
|
|
1683
1695
|
unknown adapter, an adapter on an unregistered function, or a protected
|
|
1684
1696
|
function whose required adapter is missing. The manifest declares only the
|
|
1685
1697
|
server-owned adapter; authors cannot configure its runtime resource selection
|
|
@@ -1752,12 +1764,12 @@ those service-mode namespaces.
|
|
|
1752
1764
|
Capabilities the function exercises as itself, such as storage, process,
|
|
1753
1765
|
agent, workflow and monitoring access, always need one. A deploy that
|
|
1754
1766
|
needs an account and names none is refused with the capabilities that need it,
|
|
1755
|
-
whether you can create one (`seq-studio service-
|
|
1767
|
+
whether you can create one (`seq-studio service-account create <slug> --display-name "<name>"` (needs Can create on Service Accounts)), and the accounts you can
|
|
1756
1768
|
already attach. Caller-mode execution (`createFunctionOrmExecutor`) remains on
|
|
1757
1769
|
behalf of the invoking user; code chooses service mode explicitly with
|
|
1758
1770
|
`createFunctionServiceOrmExecutor`.
|
|
1759
1771
|
|
|
1760
|
-
A successful direct `seq-studio orm
|
|
1772
|
+
A successful direct `seq-studio orm run` call does not test a function's
|
|
1761
1773
|
delegated scope. If the same read fails through the function with a 403, check
|
|
1762
1774
|
the deployed `tables` declaration before requesting broader user grants.
|
|
1763
1775
|
|
|
@@ -1780,16 +1792,16 @@ for invocation-scoped context and receipt APIs.
|
|
|
1780
1792
|
|
|
1781
1793
|
| Command | What it does |
|
|
1782
1794
|
|---------|--------------|
|
|
1783
|
-
| `seq-studio
|
|
1784
|
-
| `seq-studio
|
|
1785
|
-
| `seq-studio
|
|
1795
|
+
| `seq-studio secret create <NAME> -e <env> [--type key-value\|single] [--org <slug>]` | Register an org-owned secret with an immutable type (CLI defaults to `single` for existing scripts) |
|
|
1796
|
+
| `seq-studio secret set <NAME> -e <env> [--org <slug>] [--from-file <path>\|--from-json <path>]` | Set one value or a complete key/value set (write-only; file is not echoed) |
|
|
1797
|
+
| `seq-studio secret list -e <env>` | Secrets you can see (never values) |
|
|
1786
1798
|
|
|
1787
1799
|
For a grouped credential, create a key/value set and write its complete value from a JSON file:
|
|
1788
1800
|
|
|
1789
1801
|
```bash
|
|
1790
|
-
seq-studio
|
|
1791
|
-
seq-studio
|
|
1792
|
-
seq-studio
|
|
1802
|
+
seq-studio secret create CANDESCENT -e staging --type key-value
|
|
1803
|
+
seq-studio secret set CANDESCENT -e staging --from-json ../private/candescent-secrets.json
|
|
1804
|
+
seq-studio function deploy -e staging
|
|
1793
1805
|
```
|
|
1794
1806
|
|
|
1795
1807
|
The function's `managed-function.yml` names the set and maps its entries into the environment variables the code reads:
|
|
@@ -1806,13 +1818,13 @@ secrets:
|
|
|
1806
1818
|
|
|
1807
1819
|
For a single-value secret, `secrets: [API_KEY]` still supplies the secret named `API_KEY` as `process.env.API_KEY`. Deployment resolves manifest bindings automatically; no separate function attachment command is required.
|
|
1808
1820
|
|
|
1809
|
-
If using `seq-studio
|
|
1821
|
+
If using `seq-studio secret attach <NAME> --fn <slug>`, the function's active manifest must already declare that same secret source and exact environment variable mapping. An attachment cannot override a different manifest secret; update `managed-function.yml` and redeploy to change the source or mapping.
|
|
1810
1822
|
|
|
1811
1823
|
The JSON file contains an object of uppercase entry names and string values. Keep it outside git **and outside the function directory**, since function files are uploaded during deployment. A set is one version and one permission grant; changing any entry writes a new complete version. Redeploy functions tracking the default to apply it. Function code reads the mapped `process.env` names as before. Missing entries and undeclared environment variables fail deployment.
|
|
1812
1824
|
|
|
1813
|
-
To change only selected entries without reading or re-entering the others, put the changes in a JSON file and run `seq-studio
|
|
1825
|
+
To change only selected entries without reading or re-entering the others, put the changes in a JSON file and run `seq-studio secret set CANDESCENT -e staging --from-json ./changes.json --merge`. Use `null` for an entry to remove it. The CLI checks the active version before writing and asks you to retry if another edit won the race.
|
|
1814
1826
|
|
|
1815
|
-
Pipeline stages can select one entry from a set for each symbolic credential: `seq-studio
|
|
1827
|
+
Pipeline stages can select one entry from a set for each symbolic credential: `seq-studio secret attach CANDESCENT --stage my-stage -e staging --credential api_key --entry PRIVATE_KEY`. To read several entries as one JSON credential, use `--fields api_key=API_KEY,application_key=APPLICATION_KEY`; `pipeline_runtime.get_credential("<symbolic>")` then returns JSON with those output field names. Each field comes from the same pinned or default secret version, and plan fails if a selected entry is missing. The selected value is copied at deploy into that stage's credential scope. Artifact Studio applications currently require a single-value secret.
|
|
1816
1828
|
|
|
1817
1829
|
Existing single-value secrets keep their type. To consolidate them, create a new set, provide or rotate the entry values, update each consumer's manifest mapping, redeploy, verify the consumer, then retire the old secrets. The CLI and UI cannot read back existing secret values, so an agent needs the values from an authorized source or must rotate them during consolidation.
|
|
1818
1830
|
|
|
@@ -1822,14 +1834,14 @@ the intended same-named secret for `set`, `attach`, `detach`, `versions`,
|
|
|
1822
1834
|
orgs. Atlas validates it against the selected deployment's registry owner. A
|
|
1823
1835
|
local Atlas instance may use a tenant owner even when addressed with `-e local`;
|
|
1824
1836
|
use that tenant's slug. Tenant pipeline credentials must be created on that
|
|
1825
|
-
tenant's deployment: `seq-studio
|
|
1837
|
+
tenant's deployment: `seq-studio secret create NAME -e <tenant> --org <tenant>`.
|
|
1826
1838
|
Creating a secret requires Can create on Secrets or Managed Functions in that org.
|
|
1827
1839
|
|
|
1828
1840
|
## Artifact commands
|
|
1829
1841
|
|
|
1830
1842
|
`seq-studio artifact <sub>` is the entry point for Artifact Studio. It runs
|
|
1831
1843
|
the `@sequenceholdings/artifact-studio` library (its `./cli` `runCli` export),
|
|
1832
|
-
routed through `~/.config/
|
|
1844
|
+
routed through `~/.config/seq-studio/config.toml` and the shared platform login.
|
|
1833
1845
|
|
|
1834
1846
|
Use `seq-studio artifact --help` or add `--help` / `-h` to any artifact command
|
|
1835
1847
|
(for example, `seq-studio artifact init --help`) to print usage and exit
|
|
@@ -2334,6 +2346,14 @@ repository is needed.
|
|
|
2334
2346
|
target's deployment state. `seq-studio repo disconnect -e <env>` stops every GitHub deploy of it to that Atlas,
|
|
2335
2347
|
including queued and retried ones.
|
|
2336
2348
|
|
|
2349
|
+
Moving an app to another GitHub repository, or retiring a repository: disconnecting alone only pauses it. Its branches
|
|
2350
|
+
stay the controllers of the resources they deploy, so another repository's `repo bind` is refused ("A different
|
|
2351
|
+
repository branch owns this resource"). `seq-studio repo disconnect -e <env> --release` also gives up every resource
|
|
2352
|
+
and Application its branches control on that Atlas, with their bindings and its Managed Pipelines release name. Then,
|
|
2353
|
+
in the repository taking over, list the app in `.seq/repository.yml` and run `repo bind` for the stage before the merge
|
|
2354
|
+
that deploys it. Run both on each Atlas. A `repo bind` of the released repository that was already running is refused.
|
|
2355
|
+
An Atlas from before `--release` refuses it and changes nothing.
|
|
2356
|
+
|
|
2337
2357
|
Deploys run in GitHub Actions: a push to the dev branch deploys staging; Promote moves the release branch and deploys
|
|
2338
2358
|
prod. Prod deploys only through Promote.
|
|
2339
2359
|
|
|
@@ -2352,7 +2372,7 @@ machine. Every init command takes `--repo <namespace>/<name>` to start there:
|
|
|
2352
2372
|
`agents init`.
|
|
2353
2373
|
|
|
2354
2374
|
```bash
|
|
2355
|
-
seq-studio
|
|
2375
|
+
seq-studio function init get-loan --repo lending/get-loan -e <env>
|
|
2356
2376
|
git -C get-loan add -A && git -C get-loan commit -m 'Scaffold get-loan' && git -C get-loan push -u origin HEAD
|
|
2357
2377
|
```
|
|
2358
2378
|
|
|
@@ -2477,7 +2497,7 @@ Repository-backed deployment requires an adopted server identity and a matching
|
|
|
2477
2497
|
Atlas enforces this for repository-backed Next.js builds, pipeline planning and
|
|
2478
2498
|
execution (including queued plans), and native repository CI/CD activation. The
|
|
2479
2499
|
CLI also checks it before resolving `--repo` build/deploy sources and before
|
|
2480
|
-
`seq-studio
|
|
2500
|
+
`seq-studio apply` runs any primitive, including dry runs. App deployment requires
|
|
2481
2501
|
a platform clone whose origin matches the selected server and repository ID.
|
|
2482
2502
|
Existing deployment permissions, environment binding and production approvals
|
|
2483
2503
|
still apply; a receipt is not permission to deploy.
|
|
@@ -2635,13 +2655,13 @@ repository is deployed by that repository's CI. Pipelines bound to the
|
|
|
2635
2655
|
Relationships namespace need a signed-in session, so they still deploy with
|
|
2636
2656
|
`seq-studio pipeline deploy`.
|
|
2637
2657
|
|
|
2638
|
-
An agent's build runs `seq-studio
|
|
2658
|
+
An agent's build runs `seq-studio agent bundle` for exactly the agent its
|
|
2639
2659
|
entry names, compiled for the destination environment; Atlas then runs the
|
|
2640
|
-
same config deploy as `seq-studio
|
|
2660
|
+
same config deploy as `seq-studio apply`, with Agent Builder's save checks.
|
|
2641
2661
|
It never changes who can use the agent, and refuses `permissions`, `isPublic`
|
|
2642
2662
|
or `publicOutputs` in code. The repository binds that agent id on its first
|
|
2643
2663
|
merge, so no other repository's merge can write it. An agent entry that names
|
|
2644
|
-
no single agent still deploys with `seq-studio
|
|
2664
|
+
no single agent still deploys with `seq-studio apply`.
|
|
2645
2665
|
|
|
2646
2666
|
Secrets and service accounts are created through their own commands, never by
|
|
2647
2667
|
a merge.
|
|
@@ -2713,13 +2733,13 @@ root, stage identities, deployment admission or rollback provenance.
|
|
|
2713
2733
|
|---------|--------------|
|
|
2714
2734
|
| `seq-studio pipeline list -e <env> [--limit <count>] [--offset <count>] [--json]` | List available pipelines and their source repositories; default 50 results, maximum 200, with the next offset shown when more exist |
|
|
2715
2735
|
| `seq-studio pipeline search <text> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--limit <count>] [--offset <count>] [--json]` | Search deployed asset and column names/descriptions without contacting Databricks; default 20 assets, maximum 100 |
|
|
2716
|
-
| `seq-studio pipeline
|
|
2736
|
+
| `seq-studio pipeline show <assetId> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--json]` | Read an active deployment's table description, documented/declared columns, and source provenance without contacting Databricks |
|
|
2717
2737
|
| `seq-studio pipeline assets -e <env> [--repo <namespace>/<slug>] [--json]` | Export assets from the latest registered declarations for contract inspection; an asset need not be deployed |
|
|
2718
2738
|
| `seq-studio pipeline schema <assetId> -e <env> [--target <id>] [--repo <namespace>/<name>] [--json]` | Inspect the deployed asset's columns, types, nullability, and table/column descriptions when returned by the server |
|
|
2719
2739
|
| `seq-studio pipeline sample <assetId> -e <env> [--target <id>] [--repo <namespace>/<name>] [--limit <rows>] [--json]` | Preview rows from the deployed asset; default 25, capped at 100 by the server |
|
|
2720
2740
|
| `seq-studio pipeline query <assetId> --sql <sql> -e <env> [--target <id>] [--repo <namespace>/<name>] [--limit <rows>] [--json]` | Run a read-only query against the virtual relation `asset`; default and maximum 1,000 result rows |
|
|
2721
2741
|
| `seq-studio pipeline init --type ingestion\|transformation\|serving <name> [--dir <dir>]` | Scaffold `<name>.stage.yml` in the first configured stage directory (or package root without config), plus a package-root-relative `src/` Databricks-notebook entrypoint stub (begins with `# Databricks notebook source`; serving stages are declarative — no stub). Refuses to overwrite an existing spec |
|
|
2722
|
-
| `seq-studio pipeline
|
|
2742
|
+
| `seq-studio pipeline build tables [--from <authoring.ts>] [--dir <dir>] [--dry-run] [--force]` | Generate one ingestion stage spec per table from a `PerTableIngestionAuthoring` TypeScript module. `--from` defaults to `authoring.tables.ts`; `--dir` defaults to the current package root and writes into its first configured stage directory (or the root without config). `--dry-run` lists output files without writing; existing files are preserved unless `--force` is supplied |
|
|
2723
2743
|
| `seq-studio pipeline validate [dir] [--assets <file\|url>] [--json]` | Run the full offline spec gate: envelope + body validation, `schema_ref` resolution, repo-level graph validation, and optional `pipeline.yml` native workflow validation (DAG dependencies and manual stage membership). Ignores legacy `orm-contracts.json`; no ORM version or contract is required. Exit 0/1 |
|
|
2724
2744
|
| `seq-studio pipeline plan --repo <namespace>/<slug> --ref <sha\|branch> [--source-env <env>] [--root <directory>] -e <env> [--target <id>] [--json]` | Enqueue and poll a durable Pipeline plan (materialize → SDK/`validateSpecGraph` → compile → live-diff → provision findings). `<namespace>` is `pipelines`, `apps`, or your own namespace. Fails closed listing **every** missing target binding (alert channels, workspace, Databricks `source.credential`) plus Data Sync edge-worker machine/operation/`credEnvFamilies` mismatches before registry writes. Does **not** run Databricks `bundle validate` (that is a Trigger deploy-path hard gate). Exit 1 on destructive findings (CI-safe). `--json` emits the completed stable plan envelope |
|
|
2725
2745
|
| `seq-studio pipeline deploy --repo <namespace>/<slug> --ref <sha\|branch> [--source-env <env>] [--root <directory>] -e <env> [--target <id>] [--approved-by <sub>] [--allow-destructive <resource-key> ...] [--run-now] [--wait-timeout <duration>] [--no-wait] [--json]` | Plan then enqueue deploy; Trigger runs `bundle validate` then `bundle deploy` against reviewed bytes. `<namespace>` is `pipelines`, `apps`, or your own namespace. Default is plant-only (jobs are created, not run). `--run-now` runs in-unit producer roots after bundle deploy; serving refresh provisioning completes before producer trigger.after tasks can run. If a producer fails, the terminal status includes the remote Databricks task/event error when available. `--allow-destructive` is repeatable and must exactly name every deletion/recreation finding in the immutable plan; only authenticated `@seqholdings.com` users may authorize it; permission, ownership, schedule-drift, and provisioning blockers cannot be overridden. Polls to terminal unless `--no-wait`. Targets that require approval need `--approved-by` naming the authenticated caller. |
|
|
@@ -2786,7 +2806,7 @@ explicit source-qualified planning workflow instead.
|
|
|
2786
2806
|
| `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. |
|
|
2787
2807
|
| `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) |
|
|
2788
2808
|
| `seq-studio pipeline retire --repo <release-unit> -e <env> [--stages <slugs>] [--target <id>] [--json]` | Preview the whole pipeline, or comma-separated selected stages omitted from its latest published source collection. Approve the same scope with `--plan-hash <hash> --yes`. Inspect with `--retirement-id <id>`; explicitly resume a stopped failure with `--retirement-id <id> --resume --yes` (no replacement stages). 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. Live synced-table configurations remain blocked. Scoped completion releases the live pipeline while keeping retired stages fenced. `pipeline retire --help` is available offline; `capabilities --json` lists the command. |
|
|
2789
|
-
| `seq-studio pipeline run
|
|
2809
|
+
| `seq-studio pipeline run --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 |
|
|
2790
2810
|
| `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 |
|
|
2791
2811
|
| `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`. |
|
|
2792
2812
|
|
|
@@ -2946,7 +2966,7 @@ uniqueness, relationships, or data quality.
|
|
|
2946
2966
|
# Fictional repository and asset; substitute IDs returned by discovery.
|
|
2947
2967
|
seq-studio pipeline list -e <env>
|
|
2948
2968
|
seq-studio pipeline search "source item" --repo pipelines/catalog -e <env>
|
|
2949
|
-
seq-studio pipeline
|
|
2969
|
+
seq-studio pipeline show catalog-ingest.items -e <env> --json
|
|
2950
2970
|
seq-studio pipeline schema catalog-ingest.items -e <env>
|
|
2951
2971
|
seq-studio pipeline sample catalog-ingest.items --limit 5 -e <env>
|
|
2952
2972
|
seq-studio pipeline query catalog-ingest.items -e <env> \
|
|
@@ -3230,7 +3250,7 @@ server-side wiring on the developer's machine.
|
|
|
3230
3250
|
|
|
3231
3251
|
Opt in with `cache: { enabled: true }` in `managed-function.yml` for a dedicated Valkey instance and a third handler argument, `context.cache`. Defaults: `custom-pico`, zero replicas, 30-second TTL. Explicit CRUD supports `get`, `set`, `setIfAbsent`, and `delete`; `getOrCompute` bypasses unavailable caching. Always authorize before cache access, scope keys to the result's audience, and handle invalidation after writes. Only Sequence members may change capacity above the baseline; previously approved capacity can be retained.
|
|
3232
3252
|
|
|
3233
|
-
`seq-studio
|
|
3253
|
+
`seq-studio function dev --dir ./my-function --port 8080` compiles the project's TypeScript and starts a local HTTP server with the same context. Enabled caching without an explicit Valkey configuration uses bounded per-process TTL/LRU memory, only in this local harness. It never allocates cloud resources. See the Managed Functions SDK README for contracts, failure semantics, and optional private Valkey development connections.
|
|
3234
3254
|
## Blob storage / Workspaces V2
|
|
3235
3255
|
|
|
3236
3256
|
Workspaces V2 is file storage, separate from Chat Workspaces. It has no content
|
|
@@ -3241,13 +3261,13 @@ contract review. With a CLI build containing this feature, use the normal Atlas
|
|
|
3241
3261
|
environment and credentials:
|
|
3242
3262
|
|
|
3243
3263
|
```bash
|
|
3244
|
-
seq-studio
|
|
3245
|
-
seq-studio
|
|
3246
|
-
seq-studio
|
|
3247
|
-
seq-studio
|
|
3248
|
-
seq-studio
|
|
3249
|
-
seq-studio
|
|
3250
|
-
seq-studio
|
|
3264
|
+
seq-studio workspace init application-documents
|
|
3265
|
+
seq-studio workspace validate workspace.yml
|
|
3266
|
+
seq-studio workspace apply workspace.yml -e local
|
|
3267
|
+
seq-studio workspace upload ./report.pdf --workspace <id> --path reports/report.pdf -e local
|
|
3268
|
+
seq-studio workspace import ./exports --workspace <id> --path imported --yes -e local
|
|
3269
|
+
seq-studio workspace list --workspace <id> -e local
|
|
3270
|
+
seq-studio workspace download --workspace <id> --node <file-id> --out ./copy.pdf -e local
|
|
3251
3271
|
```
|
|
3252
3272
|
|
|
3253
3273
|
Workspace YAML declares `workspace.name` and optional `workspace.description`.
|
|
@@ -3315,8 +3335,8 @@ With local Atlas running on a personal `dev-*` Lakebase branch, create a managed
|
|
|
3315
3335
|
secret and set its value in the local Secrets store:
|
|
3316
3336
|
|
|
3317
3337
|
```sh
|
|
3318
|
-
seq-studio
|
|
3319
|
-
seq-studio
|
|
3338
|
+
seq-studio secret create PROVIDER_KEY -e local
|
|
3339
|
+
seq-studio secret set PROVIDER_KEY --from-file /private/path/provider-key -e local
|
|
3320
3340
|
seq-studio artifact dev ./web -e local
|
|
3321
3341
|
```
|
|
3322
3342
|
|
|
@@ -3407,9 +3427,9 @@ unreleased packages do not prove a public-registry workflow.
|
|
|
3407
3427
|
|
|
3408
3428
|
```bash
|
|
3409
3429
|
seq-studio auth whoami -e <env> --json
|
|
3410
|
-
seq-studio service-
|
|
3411
|
-
seq-studio service-
|
|
3412
|
-
seq-studio service-
|
|
3430
|
+
seq-studio service-account list -e <env>
|
|
3431
|
+
seq-studio service-account create task-runtime --display-name "Task runtime" -e <env>
|
|
3432
|
+
seq-studio service-account show <account-id> -e <env>
|
|
3413
3433
|
```
|
|
3414
3434
|
|
|
3415
3435
|
`whoami` reports the server-verified subject/email and environment, never credentials.
|
|
@@ -3423,7 +3443,7 @@ require an explicit environment; help is offline, including `doctor --help`.
|
|
|
3423
3443
|
Atlas applies the rules the Permissions UI uses; the CLI adds no authority.
|
|
3424
3444
|
|
|
3425
3445
|
```bash
|
|
3426
|
-
seq-studio
|
|
3446
|
+
seq-studio principal search "maintenance" -e <env> # find grant-ready ids
|
|
3427
3447
|
seq-studio access definitions process <process-id> -e <env>
|
|
3428
3448
|
seq-studio access list process <process-id> --floor -e <env>
|
|
3429
3449
|
seq-studio access grant process <process-id> --floor --principal-type service-account --principal-id <account-id> -e <env>
|
|
@@ -3469,13 +3489,13 @@ register new role keys; activate a release before granting them.
|
|
|
3469
3489
|
### Finding principals
|
|
3470
3490
|
|
|
3471
3491
|
```bash
|
|
3472
|
-
seq-studio
|
|
3473
|
-
seq-studio
|
|
3474
|
-
seq-studio
|
|
3475
|
-
seq-studio
|
|
3476
|
-
seq-studio
|
|
3477
|
-
seq-studio
|
|
3478
|
-
seq-studio
|
|
3492
|
+
seq-studio principal search <query> -e <env> [--types user,group,service-account,organization] [--limit <n>]
|
|
3493
|
+
seq-studio principal users search <query> -e <env>
|
|
3494
|
+
seq-studio principal groups list -e <env> [--search <query>] [--limit <n>] [--page <n>]
|
|
3495
|
+
seq-studio principal groups show <group-id> -e <env> [--limit <n>] [--offset <n>]
|
|
3496
|
+
seq-studio principal groups create "Brokerage Team" -e <env> [--description <text>] [--request-id <uuid>]
|
|
3497
|
+
seq-studio principal groups members add <group-id> -e <env> --principal-id '<user-sub>' [--principal-id '<user-sub>' ...]
|
|
3498
|
+
seq-studio principal groups members remove <group-id> -e <env> --principal-id '<user-sub>'
|
|
3479
3499
|
```
|
|
3480
3500
|
|
|
3481
3501
|
Results are JSON, and each principal carries
|
|
@@ -3642,13 +3662,13 @@ operations and application-owned compatibility routes.
|
|
|
3642
3662
|
### Workspace snapshots for independent pipeline consumers (internal preview)
|
|
3643
3663
|
|
|
3644
3664
|
```sh
|
|
3645
|
-
seq-studio
|
|
3646
|
-
seq-studio
|
|
3647
|
-
seq-studio
|
|
3648
|
-
seq-studio
|
|
3649
|
-
seq-studio
|
|
3650
|
-
seq-studio
|
|
3651
|
-
seq-studio
|
|
3665
|
+
seq-studio workspace source apply --workspace <uuid> --retention-days 30 --auto-sync true -e local
|
|
3666
|
+
seq-studio workspace sync --workspace <uuid> --idempotency-key import-2026-10-21 --wait -e local
|
|
3667
|
+
seq-studio workspace sync status <sync-id> --workspace <uuid> -e local
|
|
3668
|
+
seq-studio workspace snapshots list --workspace <uuid> -e local
|
|
3669
|
+
seq-studio workspace snapshots show <snapshot-id> --workspace <uuid> -e local
|
|
3670
|
+
seq-studio workspace sync retry <sync-id> --workspace <uuid> -e local
|
|
3671
|
+
seq-studio workspace sync cancel <sync-id> --workspace <uuid> -e local
|
|
3652
3672
|
```
|
|
3653
3673
|
|
|
3654
3674
|
`source apply` uses the server's configured target; `--target` selects only a target
|