@sequenceholdings/studio-cli 0.9.22 → 0.9.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +152 -144
  2. package/dist/access/commands.js +3 -5
  3. package/dist/access/principal.js +2 -2
  4. package/dist/access/tier-hosts.js +2 -2
  5. package/dist/agents/commands.d.ts +1 -1
  6. package/dist/agents/commands.js +9 -9
  7. package/dist/agents/scaffold.js +3 -3
  8. package/dist/agents/voice.d.ts +1 -1
  9. package/dist/agents/voice.js +1 -1
  10. package/dist/app/commands.d.ts +2 -2
  11. package/dist/app/commands.js +31 -21
  12. package/dist/app/deploy.d.ts +1 -1
  13. package/dist/app/deploy.js +1 -1
  14. package/dist/app/manifest.d.ts +9 -9
  15. package/dist/app/manifest.js +1 -1
  16. package/dist/app/prepare.js +1 -1
  17. package/dist/app/primitive-scaffold.js +1 -1
  18. package/dist/app/readme.js +6 -6
  19. package/dist/app/scaffold.js +1 -1
  20. package/dist/app/validate.d.ts +1 -1
  21. package/dist/app/workspace-scaffold.js +1 -1
  22. package/dist/artifact/delegate.d.ts +1 -1
  23. package/dist/artifact/delegate.js +43 -3
  24. package/dist/auth-cmds/commands.js +1 -2
  25. package/dist/bin.js +12 -2
  26. package/dist/cli-attribution.d.ts +4 -0
  27. package/dist/cli-attribution.js +25 -3
  28. package/dist/cli-errors.d.ts +9 -1
  29. package/dist/cli-errors.js +20 -9
  30. package/dist/command-contract.d.ts +7 -182
  31. package/dist/command-contract.js +9 -33
  32. package/dist/command-help.d.ts +4 -4
  33. package/dist/command-help.js +24 -24
  34. package/dist/command-telemetry.js +2 -2
  35. package/dist/config-dir.d.ts +8 -0
  36. package/dist/config-dir.js +35 -0
  37. package/dist/config.d.ts +6 -0
  38. package/dist/config.js +15 -3
  39. package/dist/docs/commands.js +9 -4
  40. package/dist/env-registry.d.ts +4 -0
  41. package/dist/env-registry.js +15 -6
  42. package/dist/envs/commands.d.ts +3 -0
  43. package/dist/envs/commands.js +11 -0
  44. package/dist/exit-codes.d.ts +16 -0
  45. package/dist/exit-codes.js +27 -0
  46. package/dist/functions/bundle.d.ts +1 -1
  47. package/dist/functions/commands.js +19 -18
  48. package/dist/functions/manifest.js +1 -1
  49. package/dist/functions/service-account-guidance.d.ts +1 -1
  50. package/dist/functions/service-account-guidance.js +2 -2
  51. package/dist/lifecycle/check.d.ts +13 -0
  52. package/dist/lifecycle/check.js +116 -0
  53. package/dist/lifecycle/commands.d.ts +14 -0
  54. package/dist/lifecycle/commands.js +121 -0
  55. package/dist/lifecycle/plan.d.ts +28 -0
  56. package/dist/lifecycle/plan.js +113 -0
  57. package/dist/lifecycle/rollback.d.ts +7 -0
  58. package/dist/lifecycle/rollback.js +89 -0
  59. package/dist/lifecycle/seq-ci-tools.d.ts +107 -0
  60. package/dist/lifecycle/seq-ci-tools.js +177 -0
  61. package/dist/lifecycle/upgrade.d.ts +3 -0
  62. package/dist/lifecycle/upgrade.js +38 -0
  63. package/dist/machine-output.d.ts +11 -2
  64. package/dist/machine-output.js +32 -10
  65. package/dist/main.d.ts +16 -6
  66. package/dist/main.js +187 -361
  67. package/dist/orgs.d.ts +45 -0
  68. package/dist/orgs.js +106 -0
  69. package/dist/orm/delegate.d.ts +1 -1
  70. package/dist/orm/delegate.js +32 -18
  71. package/dist/orm/deployment-policy.js +1 -2
  72. package/dist/orm/discover.js +6 -8
  73. package/dist/orm/execute.d.ts +1 -1
  74. package/dist/orm/execute.js +5 -6
  75. package/dist/orm/failures.js +2 -2
  76. package/dist/orm/help.d.ts +1 -1
  77. package/dist/orm/help.js +5 -5
  78. package/dist/orm/history.js +1 -2
  79. package/dist/orm/operation-show.js +1 -2
  80. package/dist/orm/version-guard.d.ts +7 -2
  81. package/dist/orm/version-guard.js +12 -7
  82. package/dist/pipeline/codegen.js +2 -2
  83. package/dist/pipeline/commands.js +9 -7
  84. package/dist/pipeline/discovery.d.ts +1 -1
  85. package/dist/pipeline/discovery.js +2 -3
  86. package/dist/pipeline/help.d.ts +1 -1
  87. package/dist/pipeline/help.js +1 -1
  88. package/dist/pipeline/lifecycle.js +1 -1
  89. package/dist/pipeline/stage-secrets.js +4 -4
  90. package/dist/pipeline/templates.js +2 -2
  91. package/dist/pnpm-auto-update.js +3 -3
  92. package/dist/preview.d.ts +1 -1
  93. package/dist/preview.js +1 -1
  94. package/dist/principals/commands.d.ts +1 -1
  95. package/dist/principals/commands.js +13 -14
  96. package/dist/process/commands.js +4 -1
  97. package/dist/process/run-steps.d.ts +2 -2
  98. package/dist/process/runs.js +1 -2
  99. package/dist/registry/commands.d.ts +4 -0
  100. package/dist/registry/commands.js +281 -0
  101. package/dist/registry/help.d.ts +8 -0
  102. package/dist/registry/help.js +64 -0
  103. package/dist/registry/lifecycle-commands.d.ts +3 -0
  104. package/dist/registry/lifecycle-commands.js +60 -0
  105. package/dist/registry/lookup.d.ts +6 -0
  106. package/dist/registry/lookup.js +18 -0
  107. package/dist/registry/runners.d.ts +14 -0
  108. package/dist/registry/runners.js +206 -0
  109. package/dist/registry/spec.d.ts +45 -0
  110. package/dist/registry/spec.js +8 -0
  111. package/dist/repos/commands.js +1 -2
  112. package/dist/repos/github-connect-command.d.ts +10 -1
  113. package/dist/repos/github-connect-command.js +52 -11
  114. package/dist/repos/github-init.d.ts +9 -2
  115. package/dist/repos/github-init.js +18 -2
  116. package/dist/repos/init-repo.js +1 -2
  117. package/dist/run-pinned.d.ts +48 -0
  118. package/dist/run-pinned.js +127 -0
  119. package/dist/sdk-source.d.ts +64 -0
  120. package/dist/sdk-source.js +199 -0
  121. package/dist/secrets/commands.d.ts +1 -1
  122. package/dist/secrets/commands.js +29 -24
  123. package/dist/service-accounts/commands.d.ts +1 -1
  124. package/dist/service-accounts/commands.js +4 -5
  125. package/dist/staged-env.d.ts +14 -0
  126. package/dist/staged-env.js +73 -0
  127. package/dist/storage/commands.js +21 -22
  128. package/dist/templates/catalog.d.ts +4 -4
  129. package/dist/update-check.js +3 -3
  130. package/dist/version-support.d.ts +39 -0
  131. package/dist/version-support.js +71 -0
  132. package/package.json +11 -10
  133. package/release-summary.json +3 -1
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 lint
11
+ seq-studio process validate
12
12
  seq-studio process plan -e <env>
13
13
  seq-studio process apply -e <env>
14
- seq-studio agents validate
15
- seq-studio agents plan -e <env>
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 functions invoke --help`.
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 describe lending loans # columns, types, actions
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
 
@@ -231,11 +231,11 @@ seq-studio envs list # show configured environments (name, URL, so
231
231
 
232
232
  The reserved names `staging`, `production` and `banksouth` are for deployments
233
233
  that sign in through the shared Sequence login: `envs add` saves one of them to
234
- `~/.config/lattice/config.toml` only after the deployment confirms that login,
234
+ `~/.config/seq-studio/config.toml` only after the deployment confirms that login,
235
235
  and `seq-studio login` signs you in.
236
236
 
237
237
  You can also add or override environments yourself in
238
- `~/.config/lattice/config.toml`.
238
+ `~/.config/seq-studio/config.toml`.
239
239
  Authenticated requests accept only HTTPS origins at `seqholdings.com` or its
240
240
  subdomains, plus HTTP loopback origins for local development. The CLI
241
241
  revalidates that exact origin immediately before attaching credentials and
@@ -278,12 +278,12 @@ locations, dependencies, and deployment selection.
278
278
  | `seq-studio add <kind> <name> [--depends-on <ids>] [--template <t>]` | Add any primitive, including additional ORM namespaces and UIs |
279
279
  | `seq-studio add package <name>` | Add a shared TypeScript package to the manifest and pnpm workspace |
280
280
  | `seq-studio validate [--dir <path>] [--json]` | Offline check of the app manifest, dependency graph, contained primitive directories, and resolved member refs |
281
- | `seq-studio deploy -e <env> [--yes] [--only id1,id2] [--dry-run]` | Validate and deploy the selected app graph, including prerequisites |
281
+ | `seq-studio apply -e <env> [--yes] [--only id1,id2] [--dry-run]` | Validate and deploy the selected app graph, including prerequisites |
282
282
 
283
283
  `seq-studio validate` works before a legacy repository is adopted: it needs no
284
284
  login or environment and lists existing members such as process refs. It does
285
285
  not verify that remote members exist or that primitive-specific source can
286
- deploy. `seq-studio deploy --dry-run` still requires the repository identity
286
+ deploy. `seq-studio apply --dry-run` still requires the repository identity
287
287
  receipt and performs its existing deployment preflight.
288
288
 
289
289
  `init` accepts `orm`, `workspace`, `function`, `agent`, `process`, `pipeline`, and `artifact` as
@@ -311,20 +311,20 @@ cd loan-tools
311
311
  # and merging main creates and deploys the declared supported primitives.
312
312
  # Outside one, deploy directly:
313
313
  seq-studio login -e <env>
314
- seq-studio deploy -e <env> --dry-run
315
- seq-studio deploy -e <env> --yes
314
+ seq-studio apply -e <env> --dry-run
315
+ seq-studio apply -e <env> --yes
316
316
 
317
317
  seq-studio add agent reviewer
318
318
  seq-studio add process approvals --depends-on reviewer-agent
319
319
  seq-studio add orm audit
320
320
  pnpm install
321
- seq-studio orm generate orm/audit
321
+ seq-studio orm build orm/audit
322
322
  seq-studio orm diff orm/audit
323
323
  # Review and commit orm/audit/migrations/.
324
324
  seq-studio add artifact admin
325
325
  seq-studio add package contracts
326
326
  pnpm install
327
- seq-studio deploy -e <env> --only approvals-process --yes
327
+ seq-studio apply -e <env> --only approvals-process --yes
328
328
  ```
329
329
 
330
330
  Creating a platform git-service repo without `--git-backend` (`seq-studio repos
@@ -429,8 +429,8 @@ Agent and process entries may set `only` to select definitions from their source
429
429
  folder. Agent and pipeline entries may set `target` to select a deployment identity.
430
430
 
431
431
  A `workspace` primitive is a Workspaces V2 workspace. Its `path` holds the
432
- `workspace.yml` that `seq-studio storage init` writes, and the entry's `name`
433
- must match `workspace.name` in it. Deploy runs `seq-studio storage apply`, an
432
+ `workspace.yml` that `seq-studio workspace init` writes, and the entry's `name`
433
+ must match `workspace.name` in it. Deploy runs `seq-studio workspace apply`, an
434
434
  idempotent upsert by name, so it needs the same authority as applying the file
435
435
  yourself. Workspaces are never part of Application roles: their access depends
436
436
  on the folders and files in them and is managed in Workspaces V2.
@@ -459,7 +459,7 @@ primitives:
459
459
  ```
460
460
 
461
461
  Every primitive appears in the graph, including agents, pipelines and
462
- workspaces. `seq-studio deploy` and `seq-studio artifact deploy` resolve these
462
+ workspaces. `seq-studio apply` and `seq-studio artifact deploy` resolve these
463
463
  names in the selected environment and validate explicit manifest bindings.
464
464
  An artifact's selected `targets.<environment>.url` must match that environment's
465
465
  API origin; the `targets` map may list every environment. A `uses` edge to a
@@ -472,7 +472,7 @@ values are not scanned for URLs or UUIDs. Repository tenant identity admission,
472
472
  manifest validation, deployment permissions, and runtime authorization still apply.
473
473
 
474
474
  After changing an ORM schema, run
475
- `seq-studio orm generate <namespace-path>` followed by
475
+ `seq-studio orm build <namespace-path>` followed by
476
476
  `seq-studio orm diff <namespace-path>`. Review and commit the generated migration
477
477
  ledger. `init` authors the baseline for its initial namespace (unless
478
478
  `--skip-install`); namespaces added later still need this workflow. A namespace without migrations fails deployment
@@ -639,7 +639,7 @@ and inherits only other collaborator roles.
639
639
  pipelines (in `apps` or your own namespace).
640
640
  - Secrets the app's functions and pipelines read are listed under a top-level
641
641
  `secrets:` block by their name in each environment. Deploy doesn't create or
642
- set them — use `seq-studio secrets` — it bundles them so a collaborator role
642
+ set them — use `seq-studio secret` — it bundles them so a collaborator role
643
643
  can give `editor` (set the value, roll back, attach and pin it; values stay
644
644
  write-only). Like a pipeline, a secret has nothing to use: functions and
645
645
  stages read it through their own attachments whether or not it's listed,
@@ -674,7 +674,7 @@ and inherits only other collaborator roles.
674
674
  - { id: lending, kind: orm, ref: lending }
675
675
  - { id: intake, kind: process, ref: loan-intake }
676
676
  ```
677
- - After registering, `seq-studio deploy` prints **suggested members**: what
677
+ - After registering, `seq-studio apply` prints **suggested members**: what
678
678
  the app's members depend on that it doesn't include — secrets they read,
679
679
  accounts they run as, functions and agents their process steps run, data
680
680
  they declare, and what traces saw them call — with the lines to paste
@@ -695,21 +695,21 @@ bundle; it never implicitly deletes agents.
695
695
 
696
696
  | Command | What it does |
697
697
  |---------|--------------|
698
- | `seq-studio agents 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)) |
699
- | `seq-studio agents validate [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Compile and validate locally, without API access |
700
- | `seq-studio agents bundle --out <file> [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Write the config deploy body, `{ definitions, bundleHash }`, offline; repository CI's agent build |
701
- | `seq-studio agents plan [--dir <dir>] [--only <id1,id2>]` | Offline compile/hash plan |
702
- | `seq-studio agents plan [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--managed] [--check-execution]` | Diff creates, updates, and unchanged definitions against an environment |
703
- | `seq-studio agents apply [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--yes] [--managed] [--check-execution]` | Deploy agent configuration after showing the plan |
704
- | `seq-studio agents list -e <env>` | List visible runtime agents |
705
- | `seq-studio agents show <id> -e <env>` | Show one runtime agent |
698
+ | `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)) |
699
+ | `seq-studio agent validate [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Compile and validate locally, without API access |
700
+ | `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 |
701
+ | `seq-studio agent plan [--dir <dir>] [--only <id1,id2>]` | Offline compile/hash plan |
702
+ | `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 |
703
+ | `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 |
704
+ | `seq-studio agent list -e <env>` | List visible runtime agents |
705
+ | `seq-studio agent show <id> -e <env>` | Show one runtime agent |
706
706
 
707
707
  For `validate`, `bundle`, `plan`, and `apply`, `--only` accepts a comma-separated list of
708
708
  agent IDs after deployment-environment selection; every requested ID must be
709
709
  selected.
710
710
 
711
- **Access is managed in Atlas, not in code.** `seq-studio agents plan`/`apply`
712
- and `seq-studio deploy` deploy agents config-only, as you, with the same rules
711
+ **Access is managed in Atlas, not in code.** `seq-studio agent plan`/`apply`
712
+ and `seq-studio apply` deploy agents config-only, as you, with the same rules
713
713
  as an Agent Builder save:
714
714
 
715
715
  - A new agent needs **Can create** on Agent Builder; you become its owner and
@@ -732,8 +732,8 @@ Studio CLI 0.8.0 adds `--check-execution` to CONFIG `agents plan` and `agents
732
732
  apply`. Confirm matching backend support before using this release candidate:
733
733
 
734
734
  ```bash
735
- seq-studio agents plan --dir . -e <env> --check-execution
736
- seq-studio agents apply --dir . -e <env> --check-execution
735
+ seq-studio agent plan --dir . -e <env> --check-execution
736
+ seq-studio agent apply --dir . -e <env> --check-execution
737
737
  ```
738
738
 
739
739
  This opt-in accepts at most **20 existing agents in one whole bundle** and
@@ -787,12 +787,12 @@ Standalone workflow:
787
787
  pnpm dlx @sequenceholdings/studio-cli agents init support-agent
788
788
  cd support-agent
789
789
  pnpm install
790
- pnpm exec seq-studio agents validate
791
- pnpm exec seq-studio agents plan
790
+ pnpm exec seq-studio agent validate
791
+ pnpm exec seq-studio agent plan
792
792
  # Authenticate only when ready to inspect or apply an environment:
793
793
  pnpm exec seq-studio login
794
- pnpm exec seq-studio agents plan -e <env>
795
- pnpm exec seq-studio agents apply -e <env>
794
+ pnpm exec seq-studio agent plan -e <env>
795
+ pnpm exec seq-studio agent apply -e <env>
796
796
  ```
797
797
 
798
798
  Sequence staff deploying Sequence's own code-managed agents add `--managed` to
@@ -842,16 +842,16 @@ before executing anything from a repository.
842
842
  Start in your existing standalone typed-Agent repository:
843
843
 
844
844
  ```sh
845
- seq-studio agents voice help
845
+ seq-studio agent voice help
846
846
  seq-studio login
847
- seq-studio agents voice inspect <id> -e staging --out inspection.json
848
- seq-studio agents voice export <id> -e staging --out agent.ts
847
+ seq-studio agent voice inspect <id> -e staging --out inspection.json
848
+ seq-studio agent voice export <id> -e staging --out agent.ts
849
849
  # Edit agent.ts, retaining its Voice mode and the same ID.
850
- seq-studio agents validate --dir .
851
- seq-studio agents voice save <id> -e staging --dir . --expected-revision 3
852
- seq-studio agents voice inspect <id> -e staging
850
+ seq-studio agent validate --dir .
851
+ seq-studio agent voice save <id> -e staging --dir . --expected-revision 3
852
+ seq-studio agent voice inspect <id> -e staging
853
853
  # Use the actual returned draft revision, not the illustrative number here.
854
- seq-studio agents voice validate <id> -e staging --expected-revision 4 --out review.json
854
+ seq-studio agent voice validate <id> -e staging --expected-revision 4 --out review.json
855
855
  ```
856
856
 
857
857
  `inspect` never replaces captured text when a source Skill changes. `save` checks
@@ -900,10 +900,10 @@ Generate your own UUID (for example `node -e 'console.log(crypto.randomUUID())'`
900
900
  the example key is illustrative. Keep the exact request file before dispatch:
901
901
 
902
902
  ```sh
903
- seq-studio agents voice publish <id> -e staging --request-file publication.json
904
- seq-studio agents voice status <id> -e staging --key <uuid-from-file>
903
+ seq-studio agent voice publish <id> -e staging --request-file publication.json
904
+ seq-studio agent voice status <id> -e staging --key <uuid-from-file>
905
905
  # Only when the recorded operation requires an explicit retry:
906
- seq-studio agents voice retry <id> -e staging --operation <returned-operation-uuid>
906
+ seq-studio agent voice retry <id> -e staging --operation <returned-operation-uuid>
907
907
  ```
908
908
 
909
909
  Calls time out after 30 seconds and responses are bounded to 8 MiB. Voice requests
@@ -928,8 +928,8 @@ compiled to canonical SQL before registration.
928
928
  | Command | What it does |
929
929
  |---------|--------------|
930
930
  | `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 generate [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. |
932
- | `seq-studio orm generate [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. |
931
+ | `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. |
932
+ | `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
933
  | `seq-studio orm validate [dir]` | Parse and compile the namespace, then verify its committed migration chain is current. |
934
934
  | `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
935
  | `seq-studio orm diff [dir] [--check]` | Author the next committed migration, or verify the migration/snapshot chain offline for CI. |
@@ -939,10 +939,10 @@ compiled to canonical SQL before registration.
939
939
  | `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
940
  | `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
941
  | `seq-studio orm deployment-policy <namespace> -e <env> --mode manual` | Restore direct, permission-checked deployment; requires namespace Admin. |
942
- | `seq-studio orm execute <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. |
943
- | `seq-studio orm execute <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. |
942
+ | `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. |
943
+ | `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
944
  | `seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]` | List the namespaces you can read. |
945
- | `seq-studio orm describe <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. |
945
+ | `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
946
  | `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
947
  | `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
948
  | `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 +968,7 @@ cd lending
968
968
  pnpm install
969
969
 
970
970
  # Edit sequence.config.ts, schema/*.ts, and graphql/**/*.ts.
971
- pnpm exec seq-studio orm generate .
971
+ pnpm exec seq-studio orm build .
972
972
  pnpm exec seq-studio orm plan . -e local
973
973
  pnpm exec seq-studio orm apply . -e local
974
974
  pnpm exec seq-studio orm validate .
@@ -1028,9 +1028,9 @@ read-only.
1028
1028
  ```bash
1029
1029
  seq-studio orm namespaces -e <env> # NAMESPACE FORMAT TABLES OPERATIONS DESCRIPTION
1030
1030
  seq-studio orm namespaces -e <env> --limit 20 --offset 20 --json
1031
- seq-studio orm describe lending -e <env> # tables, views, persisted operations
1032
- seq-studio orm describe lending --operations -e <env> # operations, requirements, variables
1033
- seq-studio orm describe lending loans -e <env> # columns, enum values, links, actions
1031
+ seq-studio orm show lending -e <env> # tables, views, persisted operations
1032
+ seq-studio orm show lending --operations -e <env> # operations, requirements, variables
1033
+ seq-studio orm show lending loans -e <env> # columns, enum values, links, actions
1034
1034
  seq-studio orm operation show lending ListLoans -e <env> --json # active document and hash
1035
1035
  ```
1036
1036
 
@@ -1060,8 +1060,8 @@ seq-studio orm operation show lending ListLoans -e <env> --json # active docume
1060
1060
  ### Running a deployed operation (`orm execute <namespace> <operation>`)
1061
1061
 
1062
1062
  ```bash
1063
- seq-studio orm execute lending ListLoans -e <env> --var officer=<uuid> --var limit=5
1064
- seq-studio orm execute lending ListLoans -e <env> --variables-file variables.json
1063
+ seq-studio orm run lending ListLoans -e <env> --var officer=<uuid> --var limit=5
1064
+ seq-studio orm run lending ListLoans -e <env> --variables-file variables.json
1065
1065
  ```
1066
1066
 
1067
1067
  Both execute forms accept `--variables-file -` (or `/dev/stdin`) for piped JSON.
@@ -1177,7 +1177,7 @@ datasets before adopting this path for latency-sensitive reads.
1177
1177
  | Command | What it does |
1178
1178
  |---------|--------------|
1179
1179
  | `seq-studio process init <dir>` | Scaffold a process repo: `package.json`, sample `process.ts`, `tsconfig.json` |
1180
- | `seq-studio process lint [--dir <path>] [--offline]` | Static checks (graph, return contracts, agent schema, timeouts, JSONata syntax, and human `input` projections); `--offline` skips live agent-schema lookup |
1180
+ | `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
1181
  | `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
1182
  | `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
1183
  | `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 +1324,7 @@ my-processes/
1324
1324
  ```
1325
1325
 
1326
1326
  ```bash
1327
- seq-studio process lint --dir my-processes --offline # finds both processes
1327
+ seq-studio process validate --dir my-processes --offline # finds both processes
1328
1328
  ```
1329
1329
 
1330
1330
  ## Managed Function commands
@@ -1344,26 +1344,26 @@ functions cannot opt in retroactively. The default remains mutable. See the
1344
1344
 
1345
1345
  | Command | What it does |
1346
1346
  |---------|--------------|
1347
- | `seq-studio functions 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)) |
1348
- | `seq-studio functions dev [--dir <dir>] [--port <port>]` | Run a local HTTP server with Managed Function cache context |
1349
- | `seq-studio functions build [--dir <dir>]` | Validate a local manifest, bundle, lockfile, and size |
1350
- | `seq-studio functions register [--dir <dir>] -e <env>` | Register an undeployed shell and its initial secret names/mappings without uploading or activating code |
1351
- | `seq-studio functions deploy --dir <dir> -e <env>` | Preview secrets and deploy a local function |
1352
- | `seq-studio functions build --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and validate a function from the platform Git Service |
1353
- | `seq-studio functions deploy --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and deploy a function from the platform Git Service |
1354
- | `seq-studio functions show --fn <slug> -e <env>` | Show one function: its input and output JSON Schemas, and for readers its versions and secrets |
1355
- | `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 |
1356
- | `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 |
1357
- | `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 |
1358
- | `seq-studio functions invoke --fn <slug> -e <env> [--data <json> \| --data @<file> \| --stdin]` | Invoke a deployed function and print its response body |
1347
+ | `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)) |
1348
+ | `seq-studio function dev [--dir <dir>] [--port <port>]` | Run a local HTTP server with Managed Function cache context |
1349
+ | `seq-studio function build [--dir <dir>]` | Validate a local manifest, bundle, lockfile, and size |
1350
+ | `seq-studio function register [--dir <dir>] -e <env>` | Register an undeployed shell and its initial secret names/mappings without uploading or activating code |
1351
+ | `seq-studio function deploy --dir <dir> -e <env>` | Preview secrets and deploy a local function |
1352
+ | `seq-studio function build --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and validate a function from the platform Git Service |
1353
+ | `seq-studio function deploy --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and deploy a function from the platform Git Service |
1354
+ | `seq-studio function show --fn <slug> -e <env>` | Show one function: its input and output JSON Schemas, and for readers its versions and secrets |
1355
+ | `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 |
1356
+ | `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 |
1357
+ | `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 |
1358
+ | `seq-studio function run --fn <slug> -e <env> [--data <json> \| --data @<file> \| --stdin]` | Invoke a deployed function and print its response body |
1359
1359
 
1360
1360
  Before invoking a function, read its input schema and build the payload from
1361
1361
  it. `--schema` needs only invoke access, so it works for callers who cannot
1362
1362
  read the function's versions:
1363
1363
 
1364
1364
  ```bash
1365
- seq-studio functions show --fn my-function -e <env> --schema | jq .inputSchema
1366
- seq-studio functions invoke --fn my-function -e <env> --data '{"region": "east"}'
1365
+ seq-studio function show --fn my-function -e <env> --schema | jq .inputSchema
1366
+ seq-studio function run --fn my-function -e <env> --data '{"region": "east"}'
1367
1367
  ```
1368
1368
 
1369
1369
  A function whose manifest declares no schema shows `null`.
@@ -1398,10 +1398,10 @@ To select an existing secret version before the first deployment, declare its
1398
1398
  name in `managed-function.yml`, then register and pin before uploading code:
1399
1399
 
1400
1400
  ```bash
1401
- seq-studio functions register --dir my-function -e <env>
1402
- seq-studio secrets pin API_KEY --fn my-function 1 -e <env> --yes --no-redeploy
1403
- seq-studio functions show --fn my-function -e <env>
1404
- seq-studio functions deploy --dir my-function -e <env> --yes
1401
+ seq-studio function register --dir my-function -e <env>
1402
+ seq-studio secret pin API_KEY --fn my-function 1 -e <env> --yes --no-redeploy
1403
+ seq-studio function show --fn my-function -e <env>
1404
+ seq-studio function deploy --dir my-function -e <env> --yes
1405
1405
  ```
1406
1406
 
1407
1407
  Registration saves only secret names and set-entry mappings. It does not read
@@ -1451,9 +1451,9 @@ functions/
1451
1451
  Select exactly one function directory for each build or deploy:
1452
1452
 
1453
1453
  ```bash
1454
- seq-studio functions build --repo managed-functions/encompass \
1454
+ seq-studio function build --repo managed-functions/encompass \
1455
1455
  --path functions/get-loan -e staging
1456
- seq-studio functions deploy --repo managed-functions/encompass \
1456
+ seq-studio function deploy --repo managed-functions/encompass \
1457
1457
  --path functions/get-loan -e staging
1458
1458
  ```
1459
1459
 
@@ -1497,7 +1497,7 @@ invocations do not receive it. Current function access, declared group reach,
1497
1497
  caller visibility, and active tenant membership are checked at read time.
1498
1498
 
1499
1499
  Requires CLI 0.5.2+, SDK 0.4.1+, and a deployment advertising
1500
- `directory_members` in `seq-studio functions limits --json -e <env>`.
1500
+ `directory_members` in `seq-studio function limits --json -e <env>`.
1501
1501
  Deploy preflight rejects unsupported deployments or stale tooling. Release
1502
1502
  the supporting Atlas build and packages before adding the declaration to a
1503
1503
  consumer; declaring it does not create groups, grant access, or bypass action
@@ -1509,7 +1509,7 @@ To delete a deployed function when its source directory is unavailable, select
1509
1509
  it by slug instead of reading a local manifest:
1510
1510
 
1511
1511
  ```bash
1512
- seq-studio functions delete -e staging --fn my-function --yes
1512
+ seq-studio function delete -e staging --fn my-function --yes
1513
1513
  ```
1514
1514
 
1515
1515
  `--fn <slug>` also selects a function for `promote` and `rollback`; without it,
@@ -1520,10 +1520,10 @@ these commands use the manifest in the current directory (or `--dir`).
1520
1520
  Start local Atlas, then use the same deployment workflow:
1521
1521
 
1522
1522
  ```bash
1523
- seq-studio functions deploy --dir ./my-function -e local
1524
- seq-studio functions invoke --dir ./my-function -e local --data '{"name":"Atlas"}'
1525
- seq-studio functions logs --dir ./my-function -e local
1526
- seq-studio functions delete --dir ./my-function -e local --yes
1523
+ seq-studio function deploy --dir ./my-function -e local
1524
+ seq-studio function run --dir ./my-function -e local --data '{"name":"Atlas"}'
1525
+ seq-studio function logs --dir ./my-function -e local
1526
+ seq-studio function delete --dir ./my-function -e local --yes
1527
1527
  ```
1528
1528
 
1529
1529
  For a worktree, replace `local` with its environment from `seq-studio envs list`
@@ -1557,15 +1557,15 @@ are trusted development code running as your OS user. Hosted Atlas continues to
1557
1557
  use GCP. `MANAGED_FUNCTIONS_EXECUTION_BACKEND=gcp` explicitly retains the cloud
1558
1558
  backend for a local development process.
1559
1559
 
1560
- `seq-studio functions dev` remains a standalone HTTP harness; use `deploy -e local`
1560
+ `seq-studio function dev` remains a standalone HTTP harness; use `deploy -e local`
1561
1561
  to exercise the function through Atlas.
1562
1562
 
1563
1563
  Invoke payloads can be inline JSON, a JSON file prefixed with `@`, or stdin:
1564
1564
 
1565
1565
  ```bash
1566
- seq-studio functions invoke --fn my-function -e local --data '{"name":"Atlas"}'
1567
- seq-studio functions invoke --fn my-function -e local --data @request.json
1568
- cat request.json | seq-studio functions invoke --fn my-function -e local --stdin
1566
+ seq-studio function run --fn my-function -e local --data '{"name":"Atlas"}'
1567
+ seq-studio function run --fn my-function -e local --data @request.json
1568
+ cat request.json | seq-studio function run --fn my-function -e local --stdin
1569
1569
  ```
1570
1570
 
1571
1571
  The function response body is written to stdout so it can be piped to another
@@ -1577,9 +1577,9 @@ body.
1577
1577
  ### Scaling
1578
1578
 
1579
1579
  ```bash
1580
- seq-studio functions limits # installed CLI's bundled policy; offline
1581
- seq-studio functions limits -e staging # policy enforced by the deployed server
1582
- seq-studio functions limits -e staging --fn get-loan --json
1580
+ seq-studio function limits # installed CLI's bundled policy; offline
1581
+ seq-studio function limits -e staging # policy enforced by the deployed server
1582
+ seq-studio function limits -e staging --fn get-loan --json
1583
1583
  ```
1584
1584
 
1585
1585
  The catalog shares its definitions with manifest validation and server enforcement;
@@ -1628,7 +1628,7 @@ and memory. Three instances therefore provide capacity for up to 48 simultaneous
1628
1628
  requests, not 48 instances. CPU-bound JavaScript may not benefit from more CPUs
1629
1629
  without worker threads; I/O-heavy functions are better candidates for concurrency.
1630
1630
  Opting into concurrency requires handlers to keep request-specific state out of
1631
- mutable globals. Redeploy with `seq-studio functions deploy -e <env>` to apply
1631
+ mutable globals. Redeploy with `seq-studio function deploy -e <env>` to apply
1632
1632
  these settings; promote and rollback carry the selected version's settings.
1633
1633
 
1634
1634
  `invoke_rate_per_minute` applies per function **across all Atlas replicas in the
@@ -1656,7 +1656,7 @@ invocation:
1656
1656
  - 2001:db8::/48
1657
1657
  ```
1658
1658
 
1659
- `seq-studio functions build` validates IPv4/IPv6 addresses and CIDRs locally;
1659
+ `seq-studio function build` validates IPv4/IPv6 addresses and CIDRs locally;
1660
1660
  Atlas performs authoritative normalization during upload. `/0` ranges are
1661
1661
  rejected. Omitting `invocation` or declaring `allowed_ip_ranges: []` means
1662
1662
  unrestricted source IPs.
@@ -1679,7 +1679,7 @@ authorization:
1679
1679
  ```
1680
1680
 
1681
1681
  The adapter name is a closed platform registry. Authors cannot provide JSON
1682
- pointers or custom filtering logic. `seq-studio functions build` rejects an
1682
+ pointers or custom filtering logic. `seq-studio function build` rejects an
1683
1683
  unknown adapter, an adapter on an unregistered function, or a protected
1684
1684
  function whose required adapter is missing. The manifest declares only the
1685
1685
  server-owned adapter; authors cannot configure its runtime resource selection
@@ -1752,12 +1752,12 @@ those service-mode namespaces.
1752
1752
  Capabilities the function exercises as itself, such as storage, process,
1753
1753
  agent, workflow and monitoring access, always need one. A deploy that
1754
1754
  needs an account and names none is refused with the capabilities that need it,
1755
- whether you can create one (`seq-studio service-accounts create <slug> --display-name "<name>"` (needs Can create on Service Accounts)), and the accounts you can
1755
+ 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
1756
  already attach. Caller-mode execution (`createFunctionOrmExecutor`) remains on
1757
1757
  behalf of the invoking user; code chooses service mode explicitly with
1758
1758
  `createFunctionServiceOrmExecutor`.
1759
1759
 
1760
- A successful direct `seq-studio orm execute` call does not test a function's
1760
+ A successful direct `seq-studio orm run` call does not test a function's
1761
1761
  delegated scope. If the same read fails through the function with a 403, check
1762
1762
  the deployed `tables` declaration before requesting broader user grants.
1763
1763
 
@@ -1780,16 +1780,16 @@ for invocation-scoped context and receipt APIs.
1780
1780
 
1781
1781
  | Command | What it does |
1782
1782
  |---------|--------------|
1783
- | `seq-studio secrets 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) |
1784
- | `seq-studio secrets 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) |
1785
- | `seq-studio secrets list -e <env>` | Secrets you can see (never values) |
1783
+ | `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) |
1784
+ | `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) |
1785
+ | `seq-studio secret list -e <env>` | Secrets you can see (never values) |
1786
1786
 
1787
1787
  For a grouped credential, create a key/value set and write its complete value from a JSON file:
1788
1788
 
1789
1789
  ```bash
1790
- seq-studio secrets create CANDESCENT -e staging --type key-value
1791
- seq-studio secrets set CANDESCENT -e staging --from-json ../private/candescent-secrets.json
1792
- seq-studio functions deploy -e staging
1790
+ seq-studio secret create CANDESCENT -e staging --type key-value
1791
+ seq-studio secret set CANDESCENT -e staging --from-json ../private/candescent-secrets.json
1792
+ seq-studio function deploy -e staging
1793
1793
  ```
1794
1794
 
1795
1795
  The function's `managed-function.yml` names the set and maps its entries into the environment variables the code reads:
@@ -1806,13 +1806,13 @@ secrets:
1806
1806
 
1807
1807
  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
1808
 
1809
- If using `seq-studio secrets 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.
1809
+ 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
1810
 
1811
1811
  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
1812
 
1813
- To change only selected entries without reading or re-entering the others, put the changes in a JSON file and run `seq-studio secrets 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.
1813
+ 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
1814
 
1815
- Pipeline stages can select one entry from a set for each symbolic credential: `seq-studio secrets 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.
1815
+ 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
1816
 
1817
1817
  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
1818
 
@@ -1822,14 +1822,14 @@ the intended same-named secret for `set`, `attach`, `detach`, `versions`,
1822
1822
  orgs. Atlas validates it against the selected deployment's registry owner. A
1823
1823
  local Atlas instance may use a tenant owner even when addressed with `-e local`;
1824
1824
  use that tenant's slug. Tenant pipeline credentials must be created on that
1825
- tenant's deployment: `seq-studio secrets create NAME -e <tenant> --org <tenant>`.
1825
+ tenant's deployment: `seq-studio secret create NAME -e <tenant> --org <tenant>`.
1826
1826
  Creating a secret requires Can create on Secrets or Managed Functions in that org.
1827
1827
 
1828
1828
  ## Artifact commands
1829
1829
 
1830
1830
  `seq-studio artifact <sub>` is the entry point for Artifact Studio. It runs
1831
1831
  the `@sequenceholdings/artifact-studio` library (its `./cli` `runCli` export),
1832
- routed through `~/.config/lattice/config.toml` and the shared platform login.
1832
+ routed through `~/.config/seq-studio/config.toml` and the shared platform login.
1833
1833
 
1834
1834
  Use `seq-studio artifact --help` or add `--help` / `-h` to any artifact command
1835
1835
  (for example, `seq-studio artifact init --help`) to print usage and exit
@@ -2334,6 +2334,14 @@ repository is needed.
2334
2334
  target's deployment state. `seq-studio repo disconnect -e <env>` stops every GitHub deploy of it to that Atlas,
2335
2335
  including queued and retried ones.
2336
2336
 
2337
+ Moving an app to another GitHub repository, or retiring a repository: disconnecting alone only pauses it. Its branches
2338
+ stay the controllers of the resources they deploy, so another repository's `repo bind` is refused ("A different
2339
+ repository branch owns this resource"). `seq-studio repo disconnect -e <env> --release` also gives up every resource
2340
+ and Application its branches control on that Atlas, with their bindings and its Managed Pipelines release name. Then,
2341
+ in the repository taking over, list the app in `.seq/repository.yml` and run `repo bind` for the stage before the merge
2342
+ that deploys it. Run both on each Atlas. A `repo bind` of the released repository that was already running is refused.
2343
+ An Atlas from before `--release` refuses it and changes nothing.
2344
+
2337
2345
  Deploys run in GitHub Actions: a push to the dev branch deploys staging; Promote moves the release branch and deploys
2338
2346
  prod. Prod deploys only through Promote.
2339
2347
 
@@ -2352,7 +2360,7 @@ machine. Every init command takes `--repo <namespace>/<name>` to start there:
2352
2360
  `agents init`.
2353
2361
 
2354
2362
  ```bash
2355
- seq-studio functions init get-loan --repo lending/get-loan -e <env>
2363
+ seq-studio function init get-loan --repo lending/get-loan -e <env>
2356
2364
  git -C get-loan add -A && git -C get-loan commit -m 'Scaffold get-loan' && git -C get-loan push -u origin HEAD
2357
2365
  ```
2358
2366
 
@@ -2477,7 +2485,7 @@ Repository-backed deployment requires an adopted server identity and a matching
2477
2485
  Atlas enforces this for repository-backed Next.js builds, pipeline planning and
2478
2486
  execution (including queued plans), and native repository CI/CD activation. The
2479
2487
  CLI also checks it before resolving `--repo` build/deploy sources and before
2480
- `seq-studio deploy` runs any primitive, including dry runs. App deployment requires
2488
+ `seq-studio apply` runs any primitive, including dry runs. App deployment requires
2481
2489
  a platform clone whose origin matches the selected server and repository ID.
2482
2490
  Existing deployment permissions, environment binding and production approvals
2483
2491
  still apply; a receipt is not permission to deploy.
@@ -2635,13 +2643,13 @@ repository is deployed by that repository's CI. Pipelines bound to the
2635
2643
  Relationships namespace need a signed-in session, so they still deploy with
2636
2644
  `seq-studio pipeline deploy`.
2637
2645
 
2638
- An agent's build runs `seq-studio agents bundle` for exactly the agent its
2646
+ An agent's build runs `seq-studio agent bundle` for exactly the agent its
2639
2647
  entry names, compiled for the destination environment; Atlas then runs the
2640
- same config deploy as `seq-studio deploy`, with Agent Builder's save checks.
2648
+ same config deploy as `seq-studio apply`, with Agent Builder's save checks.
2641
2649
  It never changes who can use the agent, and refuses `permissions`, `isPublic`
2642
2650
  or `publicOutputs` in code. The repository binds that agent id on its first
2643
2651
  merge, so no other repository's merge can write it. An agent entry that names
2644
- no single agent still deploys with `seq-studio deploy`.
2652
+ no single agent still deploys with `seq-studio apply`.
2645
2653
 
2646
2654
  Secrets and service accounts are created through their own commands, never by
2647
2655
  a merge.
@@ -2713,13 +2721,13 @@ root, stage identities, deployment admission or rollback provenance.
2713
2721
  |---------|--------------|
2714
2722
  | `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
2723
  | `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 describe <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 |
2724
+ | `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
2725
  | `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
2726
  | `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
2727
  | `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
2728
  | `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
2729
  | `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 codegen 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 |
2730
+ | `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
2731
  | `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
2732
  | `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
2733
  | `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 +2794,7 @@ explicit source-qualified planning workflow instead.
2786
2794
  | `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
2795
  | `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
2796
  | `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-now --stage <slug> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--json]` | Run the stage's active job or DLT pipeline immediately and print its Databricks run URL |
2797
+ | `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
2798
  | `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
2799
  | `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
2800
 
@@ -2946,7 +2954,7 @@ uniqueness, relationships, or data quality.
2946
2954
  # Fictional repository and asset; substitute IDs returned by discovery.
2947
2955
  seq-studio pipeline list -e <env>
2948
2956
  seq-studio pipeline search "source item" --repo pipelines/catalog -e <env>
2949
- seq-studio pipeline describe catalog-ingest.items -e <env> --json
2957
+ seq-studio pipeline show catalog-ingest.items -e <env> --json
2950
2958
  seq-studio pipeline schema catalog-ingest.items -e <env>
2951
2959
  seq-studio pipeline sample catalog-ingest.items --limit 5 -e <env>
2952
2960
  seq-studio pipeline query catalog-ingest.items -e <env> \
@@ -3230,7 +3238,7 @@ server-side wiring on the developer's machine.
3230
3238
 
3231
3239
  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
3240
 
3233
- `seq-studio functions 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.
3241
+ `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
3242
  ## Blob storage / Workspaces V2
3235
3243
 
3236
3244
  Workspaces V2 is file storage, separate from Chat Workspaces. It has no content
@@ -3241,13 +3249,13 @@ contract review. With a CLI build containing this feature, use the normal Atlas
3241
3249
  environment and credentials:
3242
3250
 
3243
3251
  ```bash
3244
- seq-studio storage init application-documents
3245
- seq-studio storage validate workspace.yml
3246
- seq-studio storage apply workspace.yml -e local
3247
- seq-studio storage upload ./report.pdf --workspace <id> --path reports/report.pdf -e local
3248
- seq-studio storage import ./exports --workspace <id> --path imported --yes -e local
3249
- seq-studio storage list --workspace <id> -e local
3250
- seq-studio storage download --workspace <id> --node <file-id> --out ./copy.pdf -e local
3252
+ seq-studio workspace init application-documents
3253
+ seq-studio workspace validate workspace.yml
3254
+ seq-studio workspace apply workspace.yml -e local
3255
+ seq-studio workspace upload ./report.pdf --workspace <id> --path reports/report.pdf -e local
3256
+ seq-studio workspace import ./exports --workspace <id> --path imported --yes -e local
3257
+ seq-studio workspace list --workspace <id> -e local
3258
+ seq-studio workspace download --workspace <id> --node <file-id> --out ./copy.pdf -e local
3251
3259
  ```
3252
3260
 
3253
3261
  Workspace YAML declares `workspace.name` and optional `workspace.description`.
@@ -3315,8 +3323,8 @@ With local Atlas running on a personal `dev-*` Lakebase branch, create a managed
3315
3323
  secret and set its value in the local Secrets store:
3316
3324
 
3317
3325
  ```sh
3318
- seq-studio secrets create PROVIDER_KEY -e local
3319
- seq-studio secrets set PROVIDER_KEY --from-file /private/path/provider-key -e local
3326
+ seq-studio secret create PROVIDER_KEY -e local
3327
+ seq-studio secret set PROVIDER_KEY --from-file /private/path/provider-key -e local
3320
3328
  seq-studio artifact dev ./web -e local
3321
3329
  ```
3322
3330
 
@@ -3407,9 +3415,9 @@ unreleased packages do not prove a public-registry workflow.
3407
3415
 
3408
3416
  ```bash
3409
3417
  seq-studio auth whoami -e <env> --json
3410
- seq-studio service-accounts list -e <env>
3411
- seq-studio service-accounts create task-runtime --display-name "Task runtime" -e <env>
3412
- seq-studio service-accounts show <account-id> -e <env>
3418
+ seq-studio service-account list -e <env>
3419
+ seq-studio service-account create task-runtime --display-name "Task runtime" -e <env>
3420
+ seq-studio service-account show <account-id> -e <env>
3413
3421
  ```
3414
3422
 
3415
3423
  `whoami` reports the server-verified subject/email and environment, never credentials.
@@ -3423,7 +3431,7 @@ require an explicit environment; help is offline, including `doctor --help`.
3423
3431
  Atlas applies the rules the Permissions UI uses; the CLI adds no authority.
3424
3432
 
3425
3433
  ```bash
3426
- seq-studio principals search "maintenance" -e <env> # find grant-ready ids
3434
+ seq-studio principal search "maintenance" -e <env> # find grant-ready ids
3427
3435
  seq-studio access definitions process <process-id> -e <env>
3428
3436
  seq-studio access list process <process-id> --floor -e <env>
3429
3437
  seq-studio access grant process <process-id> --floor --principal-type service-account --principal-id <account-id> -e <env>
@@ -3469,13 +3477,13 @@ register new role keys; activate a release before granting them.
3469
3477
  ### Finding principals
3470
3478
 
3471
3479
  ```bash
3472
- seq-studio principals search <query> -e <env> [--types user,group,service-account,organization] [--limit <n>]
3473
- seq-studio principals users search <query> -e <env>
3474
- seq-studio principals groups list -e <env> [--search <query>] [--limit <n>] [--page <n>]
3475
- seq-studio principals groups show <group-id> -e <env> [--limit <n>] [--offset <n>]
3476
- seq-studio principals groups create "Brokerage Team" -e <env> [--description <text>] [--request-id <uuid>]
3477
- seq-studio principals groups members add <group-id> -e <env> --principal-id '<user-sub>' [--principal-id '<user-sub>' ...]
3478
- seq-studio principals groups members remove <group-id> -e <env> --principal-id '<user-sub>'
3480
+ seq-studio principal search <query> -e <env> [--types user,group,service-account,organization] [--limit <n>]
3481
+ seq-studio principal users search <query> -e <env>
3482
+ seq-studio principal groups list -e <env> [--search <query>] [--limit <n>] [--page <n>]
3483
+ seq-studio principal groups show <group-id> -e <env> [--limit <n>] [--offset <n>]
3484
+ seq-studio principal groups create "Brokerage Team" -e <env> [--description <text>] [--request-id <uuid>]
3485
+ seq-studio principal groups members add <group-id> -e <env> --principal-id '<user-sub>' [--principal-id '<user-sub>' ...]
3486
+ seq-studio principal groups members remove <group-id> -e <env> --principal-id '<user-sub>'
3479
3487
  ```
3480
3488
 
3481
3489
  Results are JSON, and each principal carries
@@ -3642,13 +3650,13 @@ operations and application-owned compatibility routes.
3642
3650
  ### Workspace snapshots for independent pipeline consumers (internal preview)
3643
3651
 
3644
3652
  ```sh
3645
- seq-studio storage source apply --workspace <uuid> --retention-days 30 --auto-sync true -e local
3646
- seq-studio storage sync --workspace <uuid> --idempotency-key import-2026-10-21 --wait -e local
3647
- seq-studio storage sync status <sync-id> --workspace <uuid> -e local
3648
- seq-studio storage snapshots list --workspace <uuid> -e local
3649
- seq-studio storage snapshots show <snapshot-id> --workspace <uuid> -e local
3650
- seq-studio storage sync retry <sync-id> --workspace <uuid> -e local
3651
- seq-studio storage sync cancel <sync-id> --workspace <uuid> -e local
3653
+ seq-studio workspace source apply --workspace <uuid> --retention-days 30 --auto-sync true -e local
3654
+ seq-studio workspace sync --workspace <uuid> --idempotency-key import-2026-10-21 --wait -e local
3655
+ seq-studio workspace sync status <sync-id> --workspace <uuid> -e local
3656
+ seq-studio workspace snapshots list --workspace <uuid> -e local
3657
+ seq-studio workspace snapshots show <snapshot-id> --workspace <uuid> -e local
3658
+ seq-studio workspace sync retry <sync-id> --workspace <uuid> -e local
3659
+ seq-studio workspace sync cancel <sync-id> --workspace <uuid> -e local
3652
3660
  ```
3653
3661
 
3654
3662
  `source apply` uses the server's configured target; `--target` selects only a target