@sequenceholdings/studio-cli 0.7.1 → 0.9.0
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 +390 -54
- package/dist/access/commands.d.ts +1 -1
- package/dist/access/commands.js +102 -55
- package/dist/access/custom-role-hosts.d.ts +3 -0
- package/dist/access/custom-role-hosts.js +88 -0
- package/dist/access/group-rosters.d.ts +6 -0
- package/dist/access/group-rosters.js +33 -0
- package/dist/access/host-contract.d.ts +55 -0
- package/dist/access/host-contract.js +33 -0
- package/dist/access/hosts.d.ts +4 -0
- package/dist/access/hosts.js +60 -0
- package/dist/access/principal.d.ts +16 -0
- package/dist/access/principal.js +36 -0
- package/dist/access/roles.d.ts +18 -0
- package/dist/access/roles.js +89 -0
- package/dist/access/tier-hosts.d.ts +12 -0
- package/dist/access/tier-hosts.js +206 -0
- package/dist/agents/commands.d.ts +1 -1
- package/dist/agents/commands.js +76 -16
- package/dist/agents/scaffold.js +8 -3
- package/dist/app/commands.d.ts +3 -1
- package/dist/app/commands.js +88 -12
- package/dist/app/manifest.d.ts +2 -2
- package/dist/app/official-source.d.ts +4 -2
- package/dist/app/official-source.js +6 -4
- package/dist/app/readme.js +2 -2
- package/dist/app/validate.d.ts +16 -0
- package/dist/app/validate.js +40 -0
- package/dist/app/workspace-model.js +4 -0
- package/dist/app/workspace-scaffold.js +5 -3
- package/dist/app/workspace.d.ts +2 -0
- package/dist/app/workspace.js +1 -1
- package/dist/artifact/delegate.js +26 -3
- package/dist/artifact/sandbox.js +2 -1
- package/dist/atlas-client.d.ts +17 -8
- package/dist/atlas-client.js +146 -62
- package/dist/bin.js +10 -1
- package/dist/cli-errors.js +12 -3
- package/dist/command-contract.d.ts +14 -2
- package/dist/command-contract.js +4 -2
- package/dist/command-help.d.ts +9 -7
- package/dist/command-help.js +56 -12
- package/dist/env-flags.d.ts +7 -0
- package/dist/env-flags.js +23 -0
- package/dist/functions/commands.d.ts +4 -0
- package/dist/functions/commands.js +127 -11
- package/dist/functions/manifest.d.ts +5 -0
- package/dist/functions/manifest.js +44 -23
- package/dist/functions/service-account-guidance.d.ts +21 -0
- package/dist/functions/service-account-guidance.js +62 -0
- package/dist/functions/workspace.d.ts +11 -0
- package/dist/functions/workspace.js +52 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.js +17 -3
- package/dist/orm/delegate.d.ts +1 -0
- package/dist/orm/delegate.js +65 -12
- package/dist/orm/discover-schema.d.ts +26 -0
- package/dist/orm/discover-schema.js +5 -0
- package/dist/orm/execute.js +11 -5
- package/dist/orm/failures.d.ts +32 -0
- package/dist/orm/failures.js +75 -0
- package/dist/orm/operation-show.d.ts +2 -0
- package/dist/orm/operation-show.js +35 -0
- package/dist/orm/read.js +3 -3
- package/dist/orm/version-guard.d.ts +3 -0
- package/dist/orm/version-guard.js +63 -0
- package/dist/pipeline/commands.js +4 -1
- package/dist/principals/commands.d.ts +3 -0
- package/dist/principals/commands.js +124 -0
- package/dist/process/runs.d.ts +4 -3
- package/dist/process/runs.js +52 -10
- package/dist/release-age.d.ts +1 -1
- package/dist/release-age.js +1 -0
- package/dist/repos/commands.d.ts +44 -0
- package/dist/repos/commands.js +55 -15
- package/dist/repos/init-repo.d.ts +45 -0
- package/dist/repos/init-repo.js +257 -0
- package/dist/sandbox-unpushed-warning.d.ts +23 -0
- package/dist/sandbox-unpushed-warning.js +86 -0
- package/dist/service-accounts/commands.js +15 -3
- package/dist/templates/commands.d.ts +14 -2
- package/dist/templates/commands.js +70 -16
- package/dist/templates/process/pnpm-workspace.yaml +1 -0
- package/dist/transient-503.d.ts +4 -0
- package/dist/transient-503.js +25 -0
- package/package.json +14 -10
- package/templates/process/pnpm-workspace.yaml +1 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ verifies and copies the selected release into a new or empty directory.
|
|
|
28
28
|
|
|
29
29
|
> **Note:** all network commands require a Sequence platform account with the
|
|
30
30
|
> appropriate permissions. Without one, only the offline commands
|
|
31
|
-
> (`init` without `--template`, `lint`, `simulate`, `build`, `bundle inspect`, `agents init`,
|
|
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
34
|
> example, `seq-studio repos create --help` and `seq-studio functions invoke --help`.
|
|
@@ -56,7 +56,7 @@ inspect `truncated` and pagination metadata where present.
|
|
|
56
56
|
# In a process or artifact repo (devDependency, using pnpm — see below):
|
|
57
57
|
pnpm add -D @sequenceholdings/studio-cli @sequenceholdings/lattice
|
|
58
58
|
|
|
59
|
-
# Or globally
|
|
59
|
+
# Or globally:
|
|
60
60
|
pnpm add -g @sequenceholdings/studio-cli
|
|
61
61
|
```
|
|
62
62
|
|
|
@@ -68,10 +68,12 @@ equivalent and would happily install a freshly-published malicious
|
|
|
68
68
|
version of any transitive dep. **External process repos scaffolded by
|
|
69
69
|
`seq-studio process init` ship a `pnpm-workspace.yaml` with the same
|
|
70
70
|
guard.** Stick with pnpm so the policy actually applies.
|
|
71
|
-
|
|
72
|
-
`artifact-studio`, `
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
The scaffold's first-party quarantine exemptions are `agent-spec`,
|
|
72
|
+
`artifact-studio`, `atlas-ui`, `custom-roles-manifest`, `lattice`,
|
|
73
|
+
`lattice-form-renderer`, `managed-functions`, `orm`, `pipeline-spec`, `platform`,
|
|
74
|
+
`storage`, and `studio-cli`, all under `@sequenceholdings/`. These packages come
|
|
75
|
+
from the Studio repo's own publish pipelines, so new `seq-studio` releases
|
|
76
|
+
install immediately. Third-party dependencies retain the seven-day quarantine.
|
|
75
77
|
|
|
76
78
|
All initializers include a short `AGENTS.md` pointing to the target environment's
|
|
77
79
|
live `/docs` and `/docs/llms.txt`, plus a `CLAUDE.md` importing it. Use these paths
|
|
@@ -165,15 +167,22 @@ git config --global credential."$SEQ_STUDIO_BASE_URL".useHttpPath true
|
|
|
165
167
|
Repository sources for `--repo` builds are materialized through the JSON API,
|
|
166
168
|
like other headless callers; public `--git-url` sources are refused.
|
|
167
169
|
|
|
170
|
+
The sandbox is temporary: Atlas resets it after inactivity and its files can be
|
|
171
|
+
lost. Keep real work in a git-service repository and push often. Scaffold
|
|
172
|
+
straight into one with `--repo <ns>/<name>` on any init command (see
|
|
173
|
+
[Scaffold into a repository](#scaffold-into-a-repository---repo)). After every
|
|
174
|
+
command, `seq-studio` prints one line to stderr when the current directory's
|
|
175
|
+
checkout has uncommitted changes or commits that are not pushed. The check is
|
|
176
|
+
skipped outside sandbox token mode, never changes the exit code or stdout, and
|
|
177
|
+
gives up silently on any Git error.
|
|
178
|
+
|
|
168
179
|
Artifact Studio apps deploy from a Git Service repository. The sandbox has no
|
|
169
180
|
package registry, so nothing is installed or built from a local directory:
|
|
170
181
|
|
|
171
182
|
```bash
|
|
172
|
-
seq-studio
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
seq-studio artifact init . # keep dependencies and optionalDependencies empty
|
|
176
|
-
git add -A && git commit -m "Portal" && git push
|
|
183
|
+
seq-studio artifact init portal --repo acme/portal # creates acme/portal if missing, clones it into ./portal
|
|
184
|
+
# keep package.json dependencies and optionalDependencies empty
|
|
185
|
+
git -C portal add -A && git -C portal commit -m "Portal" && git -C portal push -u origin HEAD
|
|
177
186
|
seq-studio artifact deploy --repo acme/portal
|
|
178
187
|
```
|
|
179
188
|
|
|
@@ -245,11 +254,18 @@ locations, dependencies, and deployment selection.
|
|
|
245
254
|
|
|
246
255
|
| Command | What it does |
|
|
247
256
|
|---------|--------------|
|
|
248
|
-
| `seq-studio init <dir> [--with <kinds>] [--skip-install]` | Scaffold a version 3 app, root pnpm workspace, shared package, README, and selected primitives; by default creates ORM, function, process, and artifact primitives, installs dependencies, and authors the first ORM migration |
|
|
257
|
+
| `seq-studio init <dir> [--with <kinds>] [--skip-install] [--repo <ns>/<name>]` | Scaffold a version 3 app, root pnpm workspace, shared package, README, and selected primitives; by default creates ORM, function, process, and artifact primitives, installs dependencies, and authors the first ORM migration |
|
|
249
258
|
| `seq-studio add <kind> <name> [--depends-on <ids>] [--template <t>]` | Add any primitive, including additional ORM namespaces and UIs |
|
|
250
259
|
| `seq-studio add package <name>` | Add a shared TypeScript package to the manifest and pnpm workspace |
|
|
260
|
+
| `seq-studio validate [--dir <path>] [--json]` | Offline check of the app manifest, dependency graph, contained primitive directories, and resolved member refs |
|
|
251
261
|
| `seq-studio deploy -e <env> [--yes] [--only id1,id2] [--dry-run]` | Validate and deploy the selected app graph, including prerequisites |
|
|
252
262
|
|
|
263
|
+
`seq-studio validate` works before a legacy repository is adopted: it needs no
|
|
264
|
+
login or environment and lists existing members such as process refs. It does
|
|
265
|
+
not verify that remote members exist or that primitive-specific source can
|
|
266
|
+
deploy. `seq-studio deploy --dry-run` still requires the repository identity
|
|
267
|
+
receipt and performs its existing deployment preflight.
|
|
268
|
+
|
|
253
269
|
`init` accepts `orm`, `workspace`, `function`, `agent`, `process`, `pipeline`, and `artifact` as
|
|
254
270
|
a comma-separated `--with` list or boolean flags (`--agent --process`). With no
|
|
255
271
|
kind flags it scaffolds `orm,function,process,artifact`. Repository CI/CD
|
|
@@ -313,9 +329,11 @@ packages, preserves the seven-day dependency age gate, and explicitly controls
|
|
|
313
329
|
build scripts. Generated nested install configuration is consolidated at the
|
|
314
330
|
root. CI should use `pnpm install --frozen-lockfile`.
|
|
315
331
|
|
|
316
|
-
Every new app includes `packages/shared`, named `@<app-id>/shared`.
|
|
317
|
-
|
|
318
|
-
|
|
332
|
+
Every new app includes `packages/shared`, named `@<app-id>/shared`. Processes
|
|
333
|
+
receive ordinary `workspace:*` dependencies. Functions and artifacts do not:
|
|
334
|
+
a function's deployed bundle cannot resolve workspace links, and an artifact
|
|
335
|
+
deployed on its own (`seq-studio artifact deploy --repo`) builds from its
|
|
336
|
+
directory alone. Add the link to an artifact or function that imports it. Export common types,
|
|
319
337
|
validation, and helpers from `src/index.ts`. Additional packages are registered
|
|
320
338
|
with `seq-studio add package <name>`; add them to consumers with:
|
|
321
339
|
|
|
@@ -646,12 +664,12 @@ bundle; it never implicitly deletes agents.
|
|
|
646
664
|
|
|
647
665
|
| Command | What it does |
|
|
648
666
|
|---------|--------------|
|
|
649
|
-
| `seq-studio agents init <dir
|
|
667
|
+
| `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)) |
|
|
650
668
|
| `seq-studio agents validate [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Compile and validate locally, without API access |
|
|
651
669
|
| `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 |
|
|
652
670
|
| `seq-studio agents plan [--dir <dir>] [--only <id1,id2>]` | Offline compile/hash plan |
|
|
653
|
-
| `seq-studio agents plan [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--managed]` | Diff creates, updates, and unchanged definitions against an environment |
|
|
654
|
-
| `seq-studio agents apply [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--yes] [--managed]` | Deploy agent configuration after showing the plan |
|
|
671
|
+
| `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 |
|
|
672
|
+
| `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 |
|
|
655
673
|
| `seq-studio agents list -e <env>` | List visible runtime agents |
|
|
656
674
|
| `seq-studio agents show <id> -e <env>` | Show one runtime agent |
|
|
657
675
|
|
|
@@ -679,6 +697,44 @@ A merge deploys an agent the same way, as the person who merged, when its
|
|
|
679
697
|
`--managed` selects the Sequence-staff path for Sequence's own code-managed
|
|
680
698
|
agents, whose definitions own their access as well.
|
|
681
699
|
|
|
700
|
+
Studio CLI 0.8.0 adds `--check-execution` to CONFIG `agents plan` and `agents
|
|
701
|
+
apply`. Confirm matching backend support before using this release candidate:
|
|
702
|
+
|
|
703
|
+
```bash
|
|
704
|
+
seq-studio agents plan --dir . -e <env> --check-execution
|
|
705
|
+
seq-studio agents apply --dir . -e <env> --check-execution
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
This opt-in accepts at most **20 existing agents in one whole bundle** and
|
|
709
|
+
requires your actual interactive login, editor access and current invocation
|
|
710
|
+
rights. Create a new agent through ordinary CONFIG deployment first. Checked
|
|
711
|
+
plan evaluates the proposed configurations together with their current,
|
|
712
|
+
authorized dependencies; checked apply repeats every readiness check before
|
|
713
|
+
its first write. Access remains managed through the UI or API. Offline and
|
|
714
|
+
`--managed` use are refused, and an unavailable checked endpoint or missing
|
|
715
|
+
acknowledgement never falls back to an unchecked deployment or smaller chunks.
|
|
716
|
+
|
|
717
|
+
Readiness is a point-in-time eligibility check, not a reservation, an execution
|
|
718
|
+
identity, a new permission, or proof that a model/tool run succeeded. Apply
|
|
719
|
+
still uses the existing per-agent writes. Obtain the actual current execution
|
|
720
|
+
identity after applying, and use the ordinary admission precondition when
|
|
721
|
+
starting a pinned run; source and access can change after a successful check.
|
|
722
|
+
|
|
723
|
+
Where the runtime has enabled pinned private context, references in an agent's
|
|
724
|
+
`systemPrompt` and recursive string values of `structuredOutput.schema` can be
|
|
725
|
+
captured for the actual execution owner. Captures contain reference IDs, owner
|
|
726
|
+
IDs and fragment versions only, never decrypted values or hashes of those
|
|
727
|
+
values. Any edit (including label/purpose), deletion, owner mismatch or disabled
|
|
728
|
+
private-capture support invalidates the pin at the next checked boundary.
|
|
729
|
+
Private configuration anywhere in the declared closure redacts input/output
|
|
730
|
+
telemetry and leaves private-dependent runtime evidence explicitly incomplete.
|
|
731
|
+
Other private placements, mounted per-agent credentials, unsupported runtimes
|
|
732
|
+
and completion hooks keep their existing capture refusals. New message-private
|
|
733
|
+
references cannot introduce an uncaptured source; references already admitted
|
|
734
|
+
by the configuration use the exact captured version. Ordinary saves and
|
|
735
|
+
existing unpinned owner-only resolution keep their current behavior.
|
|
736
|
+
|
|
737
|
+
|
|
682
738
|
An optional `deploy-manifest.json` targets definitions by deployment identity:
|
|
683
739
|
|
|
684
740
|
```json
|
|
@@ -840,22 +896,30 @@ compiled to canonical SQL before registration.
|
|
|
840
896
|
|
|
841
897
|
| Command | What it does |
|
|
842
898
|
|---------|--------------|
|
|
843
|
-
| `seq-studio orm init <dir
|
|
899
|
+
| `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)). |
|
|
844
900
|
| `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. |
|
|
845
901
|
| `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. |
|
|
846
902
|
| `seq-studio orm validate [dir]` | Parse and compile the namespace, then verify its committed migration chain is current. |
|
|
847
903
|
| `seq-studio orm plan [dir] -e <env>` | Compare the compiled namespace with registry state without applying database changes. |
|
|
848
904
|
| `seq-studio orm diff [dir] [--check]` | Author the next committed migration, or verify the migration/snapshot chain offline for CI. |
|
|
849
|
-
| `seq-studio orm apply [dir] -e <env
|
|
905
|
+
| `seq-studio orm apply [dir] -e <env> [--timeout <duration>] [--no-wait]` | Author a migration if needed, register/apply the namespace, activate its operation set, publish its declared capabilities, and refresh generated outputs. Waits until the new version is live (prints `live:`; default up to 20m); `--no-wait` returns once queued. |
|
|
850
906
|
| `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. |
|
|
851
907
|
| `seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>` | Execute one named persisted operation as hashed in this checkout's `operations.manifest.json`, with variables from a JSON object file, as the signed-in caller. |
|
|
852
908
|
| `seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]` | List the namespaces you can read. |
|
|
853
909
|
| `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. |
|
|
910
|
+
| `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. |
|
|
854
911
|
| `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. |
|
|
855
912
|
| `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. |
|
|
856
913
|
| `seq-studio orm migrate-from-yaml <dir>` | Convert a legacy YAML namespace to TypeScript authoring while preserving its committed migrations. |
|
|
857
914
|
| `seq-studio orm import [dir] --spec <file>` | Plan a batched copy from an existing Postgres relation (a synced warehouse table) into an owned ORM table. Writes a SQL script; it does not connect or apply row policies. |
|
|
858
915
|
|
|
916
|
+
For v2 schema commands (`generate`, `validate`, `plan`, `diff`, and `apply`),
|
|
917
|
+
`seq-studio` checks the ORM version it loads against the namespace's declared
|
|
918
|
+
`@sequenceholdings/orm` range in `package.json` before compiling. If they do
|
|
919
|
+
not match, install the namespace's dependencies and run its local CLI, or
|
|
920
|
+
upgrade the CLI and ORM together. A missing `package.json` has no declared
|
|
921
|
+
range to check; use a package manifest for versioned namespace builds.
|
|
922
|
+
|
|
859
923
|
Run ORM commands with the CLI installed in the package that owns the
|
|
860
924
|
namespace. A new namespace package lists both `@sequenceholdings/studio-cli` and
|
|
861
925
|
`@sequenceholdings/orm`, so after `pnpm install` everything runs through
|
|
@@ -874,8 +938,26 @@ pnpm exec seq-studio orm apply . -e local
|
|
|
874
938
|
pnpm exec seq-studio orm validate .
|
|
875
939
|
```
|
|
876
940
|
|
|
877
|
-
|
|
878
|
-
|
|
941
|
+
Global ORM commands require a CLI release that declares `drizzle-orm` directly.
|
|
942
|
+
Older releases can fail during module loading because `drizzle-kit` imports
|
|
943
|
+
`drizzle-orm` without declaring it. Update the global CLI if you see that error.
|
|
944
|
+
|
|
945
|
+
`apply` waits until the new version is live and serving, then prints a `live:`
|
|
946
|
+
line: every operation of the new version, by hash or by name, can run from that
|
|
947
|
+
point, so `apply` followed by `execute` needs no sleep. `--timeout` bounds the
|
|
948
|
+
wait (`90s`, `15m`, `1h`; a bare number is seconds) and `--no-wait` returns once
|
|
949
|
+
the apply is queued. A timed-out wait leaves the apply running on the server;
|
|
950
|
+
re-run the same command to keep waiting.
|
|
951
|
+
|
|
952
|
+
The scaffold's sample operations include create, get, update, and delete by
|
|
953
|
+
primary key, each governed by the table's write policy. Optional variables
|
|
954
|
+
follow GraphQL input rules: an omitted variable omits its field (the column
|
|
955
|
+
default applies on insert; an update leaves the column alone), and an explicit
|
|
956
|
+
`null` writes NULL.
|
|
957
|
+
|
|
958
|
+
A refused data-plane request prints the server's message, error code, and the
|
|
959
|
+
variable, column, constraint, or capability at fault (schema names only, never
|
|
960
|
+
values), followed by a next step.
|
|
879
961
|
|
|
880
962
|
`apply --dry-run` rehearses a migration against a disposable branch copy of
|
|
881
963
|
the target environment's data. `apply --no-create` is the CI guard that refuses
|
|
@@ -902,6 +984,7 @@ seq-studio orm namespaces -e <env> --limit 20 --offset 20 --json
|
|
|
902
984
|
seq-studio orm describe lending -e <env> # tables, views, persisted operations
|
|
903
985
|
seq-studio orm describe lending --operations -e <env> # operations, requirements, variables
|
|
904
986
|
seq-studio orm describe lending loans -e <env> # columns, enum values, links, actions
|
|
987
|
+
seq-studio orm operation show lending ListLoans -e <env> --json # active document and hash
|
|
905
988
|
```
|
|
906
989
|
|
|
907
990
|
- `namespaces` lists only namespaces you can read, ordered by name, with their
|
|
@@ -918,6 +1001,11 @@ seq-studio orm describe lending loans -e <env> # columns, enum values, links
|
|
|
918
1001
|
- Each persisted operation lists the variables it declares as `name: type`, with
|
|
919
1002
|
`!` when required and `= value` for a default. `--operations` prints only the
|
|
920
1003
|
operations.
|
|
1004
|
+
- `operation show` reads one active operation through the namespace reader gate.
|
|
1005
|
+
Without `--json` it prints the registered GraphQL document. `--json` includes
|
|
1006
|
+
the document, hash, variables, and requirements for contract review. Missing
|
|
1007
|
+
and unreadable operations return the same not-found result. It does not run
|
|
1008
|
+
the operation or read rows.
|
|
921
1009
|
|
|
922
1010
|
### Running a deployed operation (`orm execute <namespace> <operation>`)
|
|
923
1011
|
|
|
@@ -1040,7 +1128,8 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
1040
1128
|
| `seq-studio process bundle inspect <bundle.json>` | Show a saved bundle's summary |
|
|
1041
1129
|
| `seq-studio process bundle list [-e <env>] [--limit N] [--cursor <hash>]` | List registered bundles (paginated; CLI auto-fetches all pages) |
|
|
1042
1130
|
| `seq-studio process bundle publish <hash or bundle.json> [-e <env>]` | Register a local bundle (no promote) |
|
|
1043
|
-
| `seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>] [--metadata-file <file>]` | Start a run as you (needs `invoker` on the process) |
|
|
1131
|
+
| `seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>] [--metadata-file <file>]` | Start a run as you (needs `invoker` on the process); prints the new run id |
|
|
1132
|
+
| `seq-studio process runs retry <run-id> -e <env> [--run-id <new-id>]` | Start a failed, cancelled, or timed-out run again with the same inputs, linked to the original (needs `invoker` on the process; CLI **0.9.0**+) |
|
|
1044
1133
|
| `seq-studio process runs list -e <env> [--process <id>] [--status <s>] [--limit N]` | List runs you can view, newest first |
|
|
1045
1134
|
| `seq-studio process runs show <run-id> -e <env> [--wait]` | Show a run's status and steps; `--wait` polls until it finishes |
|
|
1046
1135
|
| `seq-studio process runs cancel <run-id> -e <env>` | Cancel a run (needs `invoker` on the process) |
|
|
@@ -1053,17 +1142,34 @@ subprocess versions when needed. It is not a guarantee of network-free execution
|
|
|
1053
1142
|
### Runs
|
|
1054
1143
|
|
|
1055
1144
|
```bash
|
|
1056
|
-
seq-studio process runs start credit-memo -e <env>
|
|
1057
|
-
|
|
1058
|
-
seq-studio process runs show
|
|
1145
|
+
seq-studio process runs start credit-memo -e <env> --metadata-file run.json
|
|
1146
|
+
# prints: Run: <run-id> | Process: credit-memo@3 | Status: pending
|
|
1147
|
+
seq-studio process runs show <run-id> -e <env> --wait --json
|
|
1148
|
+
seq-studio process runs retry <run-id> -e <env> # after it failed
|
|
1059
1149
|
seq-studio process runs list -e <env> --process credit-memo --status failed --limit 20
|
|
1060
1150
|
```
|
|
1061
1151
|
|
|
1152
|
+
`start` prints the new run's id. Without `--run-id`, every `start` gets a fresh
|
|
1153
|
+
id, so leave it off unless you need idempotency. `--run-id` names exactly one
|
|
1154
|
+
run: repeating it for the same process returns that run whatever its status
|
|
1155
|
+
(`idempotent_replay: true`, with `existing_status`) and never starts another,
|
|
1156
|
+
and reusing it for a different process is refused. Use it when a caller might
|
|
1157
|
+
send the same start twice, such as `--run-id memo-loan-1042` for one loan.
|
|
1158
|
+
|
|
1159
|
+
`retry` (CLI **0.9.0** or later, which may not be published yet) runs a
|
|
1160
|
+
`failed`, `cancelled`, or `timed_out` run again: a new run of the same process
|
|
1161
|
+
version, from the start node, with the original's metadata, entity, and title.
|
|
1162
|
+
The original is unchanged, and the new run is linked to it in the run's lineage
|
|
1163
|
+
(a `replay`, shown in the Lattice run view). Atlas refuses other statuses
|
|
1164
|
+
(`RUN_NOT_RETRYABLE`). A retry is a new start: it needs the same `invoker`
|
|
1165
|
+
grant on the process as starting it, plus permission to view the original run,
|
|
1166
|
+
and while the process is at its concurrent-run limit it waits queued
|
|
1167
|
+
(`outcome: queued`) exactly as a start does. `--run-id` on `retry`
|
|
1168
|
+
names the new run, so repeating that retry returns it instead of starting a
|
|
1169
|
+
third. To change the inputs or run a newer version, use `start`.
|
|
1170
|
+
|
|
1062
1171
|
`--version` pins a published version; without it the active version runs.
|
|
1063
|
-
`--
|
|
1064
|
-
the existing run (`idempotent_replay: true`) rather than starting another, and
|
|
1065
|
-
reusing it for a different process is refused. `--metadata-file` must hold a
|
|
1066
|
-
JSON object. `list` filters by `--process`, `--status` (`pending`, `running`,
|
|
1172
|
+
`--metadata-file` must hold a JSON object. `list` filters by `--process`, `--status` (`pending`, `running`,
|
|
1067
1173
|
`completed`, `failed`, `cancelled`, `timed_out`), `--entity-type`/`--entity-id`,
|
|
1068
1174
|
and `--archived`; it returns the newest runs up to `--limit` (default 50,
|
|
1069
1175
|
maximum 500). The run API has no cursor, so narrow the filters to reach older
|
|
@@ -1161,13 +1267,14 @@ functions cannot opt in retroactively. The default remains mutable. See the
|
|
|
1161
1267
|
|
|
1162
1268
|
| Command | What it does |
|
|
1163
1269
|
|---------|--------------|
|
|
1164
|
-
| `seq-studio functions init <dir
|
|
1270
|
+
| `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)) |
|
|
1165
1271
|
| `seq-studio functions dev [--dir <dir>] [--port <port>]` | Run a local HTTP server with Managed Function cache context |
|
|
1166
1272
|
| `seq-studio functions build [--dir <dir>]` | Validate a local manifest, bundle, lockfile, and size |
|
|
1167
1273
|
| `seq-studio functions register [--dir <dir>] -e <env>` | Register an undeployed shell and its initial secret names/mappings without uploading or activating code |
|
|
1168
1274
|
| `seq-studio functions deploy --dir <dir> -e <env>` | Preview secrets and deploy a local function |
|
|
1169
1275
|
| `seq-studio functions build --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and validate a function from the platform Git Service |
|
|
1170
1276
|
| `seq-studio functions deploy --repo managed-functions/<name> [--path <dir>] -e <env>` | Materialize and deploy a function from the platform Git Service |
|
|
1277
|
+
| `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 |
|
|
1171
1278
|
| `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 |
|
|
1172
1279
|
| `seq-studio functions invoke --fn <slug> -e <env> [--data <json> \| --data @<file> \| --stdin]` | Invoke a deployed function and print its response body |
|
|
1173
1280
|
|
|
@@ -1175,6 +1282,28 @@ functions cannot opt in retroactively. The default remains mutable. See the
|
|
|
1175
1282
|
that function. Versions named by repository CI, such as `ci-abc`, do not reset
|
|
1176
1283
|
the sequence. A function with no numbered versions starts at `v1`.
|
|
1177
1284
|
|
|
1285
|
+
For a local `--dir` deployment, the preview's `(repository dirty)` label and
|
|
1286
|
+
recorded `gitDirty` check the entire containing Git checkout: tracked changes
|
|
1287
|
+
and unignored files outside the function directory count too. This differs from
|
|
1288
|
+
local Artifact Studio active deploys, which check only the artifact source
|
|
1289
|
+
directory. A CLI-created `.artifact-studio/config.json` outside the function
|
|
1290
|
+
can therefore mark an unchanged function dirty. Run `git status --short` at
|
|
1291
|
+
the repository root before deploying. If that config is only local setup, add
|
|
1292
|
+
`.artifact-studio/` to the checkout's `.git/info/exclude` or a reviewed
|
|
1293
|
+
`.gitignore`; keep function source edits visible. Remote `--repo` and
|
|
1294
|
+
`--git-url` deploys record a pinned commit with `gitDirty=false`.
|
|
1295
|
+
|
|
1296
|
+
After an upload is accepted, `functions show --fn <slug> -e <env> --json` returns
|
|
1297
|
+
the server's `activeVersionId`, `immutableRelease`, exact active version, and
|
|
1298
|
+
version history with status, Git revision and dirty bit, and source digest.
|
|
1299
|
+
Use `--version <id-or-name>` to include `selectedVersion` for a submitted
|
|
1300
|
+
release, even while another version is active. Missing provenance on older
|
|
1301
|
+
version records appears as `null`; an environment that does not expose release
|
|
1302
|
+
identity fails the inspection. Reader access is required. If a deploy poll
|
|
1303
|
+
loses transport after upload acceptance, inspect the accepted version's status
|
|
1304
|
+
and compare its ID with `activeVersionId` before deciding what to do next.
|
|
1305
|
+
Do not resubmit the deployment solely because its poll disconnected.
|
|
1306
|
+
|
|
1178
1307
|
To select an existing secret version before the first deployment, declare its
|
|
1179
1308
|
name in `managed-function.yml`, then register and pin before uploading code:
|
|
1180
1309
|
|
|
@@ -1236,11 +1365,28 @@ seq-studio functions deploy --repo managed-functions/encompass \
|
|
|
1236
1365
|
--path functions/get-loan -e staging
|
|
1237
1366
|
```
|
|
1238
1367
|
|
|
1239
|
-
Each selected directory is a
|
|
1368
|
+
Each selected directory is a function package. Functions in the
|
|
1240
1369
|
same repo share Git review and commit provenance, but keep separate manifests,
|
|
1241
1370
|
versions, runtime resources, secrets, and permissions. `--path` accepts only a
|
|
1242
1371
|
canonical relative directory inside a remote repo; use `--dir` for local source.
|
|
1243
1372
|
|
|
1373
|
+
When the selected package uses `workspace:` dependencies, build/deploy discovers
|
|
1374
|
+
the containing `sequence.app.yml` within that repository and uses its declared
|
|
1375
|
+
`packages` to compile the selected function's dependency closure. The manifest
|
|
1376
|
+
must declare the selected function. This does **not** deploy sibling primitives,
|
|
1377
|
+
deployment prerequisites, or register/update the Application bundle. Standalone
|
|
1378
|
+
packages without workspace dependencies retain their existing build behavior.
|
|
1379
|
+
|
|
1380
|
+
Shared Node packages may set `"seqStudio": { "source": "src/index.ts" }` in
|
|
1381
|
+
`package.json` to use a root source entry instead of a missing or stale `dist`
|
|
1382
|
+
export on a clean clone. Browser and subpath exports keep their normal resolution.
|
|
1383
|
+
No package build scripts are executed. Compiled bundles retain the original Git
|
|
1384
|
+
provenance, registry dependencies and projected lockfile validation; workspace
|
|
1385
|
+
source paths must stay inside the declared package roots. Local `.env` and
|
|
1386
|
+
relative `--from-env-file` paths still resolve from the original selected function,
|
|
1387
|
+
never the temporary compilation directory. Remote committed `.env` files are
|
|
1388
|
+
never used, and dotenv files are not copied into the compiled staging directory.
|
|
1389
|
+
|
|
1244
1390
|
### Scoped group-member directory reads
|
|
1245
1391
|
|
|
1246
1392
|
A function may opt in to resolving selected members of existing Atlas groups:
|
|
@@ -1492,9 +1638,20 @@ reads its author. Do not substitute a physical directory table name. This is
|
|
|
1492
1638
|
an explicit read scope only; namespace access, operation requirements and row
|
|
1493
1639
|
policies still apply. Ordinary namespace table names remain lowercase identifiers.
|
|
1494
1640
|
|
|
1495
|
-
A function that
|
|
1496
|
-
|
|
1497
|
-
|
|
1641
|
+
A function that reads or writes a namespace on behalf of its caller needs no
|
|
1642
|
+
service account. To also act as the function itself (service mode:
|
|
1643
|
+
`createFunctionServiceOrmExecutor`, Lattice runs), name a top-level
|
|
1644
|
+
`service_account` you hold the actor role on. With a `service_account` named, the account acts in every declared namespace,
|
|
1645
|
+
unless you mark specific namespaces with `service: true` (which requires an
|
|
1646
|
+
account): then only those. The account's token and namespace floor cover only
|
|
1647
|
+
those service-mode namespaces.
|
|
1648
|
+
Capabilities the function exercises as itself, such as storage, process,
|
|
1649
|
+
agent, workflow and monitoring access, always need one. A deploy that
|
|
1650
|
+
needs an account and names none is refused with the capabilities that need it,
|
|
1651
|
+
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
|
|
1652
|
+
already attach. Caller-mode execution (`createFunctionOrmExecutor`) remains on
|
|
1653
|
+
behalf of the invoking user; code chooses service mode explicitly with
|
|
1654
|
+
`createFunctionServiceOrmExecutor`.
|
|
1498
1655
|
|
|
1499
1656
|
A successful direct `seq-studio orm execute` call does not test a function's
|
|
1500
1657
|
delegated scope. If the same read fails through the function with a 403, check
|
|
@@ -1575,11 +1732,12 @@ successfully. Help does not initialize files, authenticate, or deploy.
|
|
|
1575
1732
|
|
|
1576
1733
|
| Command | Underlying `runCli` verb |
|
|
1577
1734
|
|---------|--------------------------|
|
|
1578
|
-
| `seq-studio artifact init <dir> [--template react-vite\|nextjs]` | `init <dir>` — defaults to the existing React/Vite scaffold |
|
|
1735
|
+
| `seq-studio artifact init <dir> [--template react-vite\|nextjs] [--repo <ns>/<name>]` | `init <dir>` — defaults to the existing React/Vite scaffold; `--repo` first prepares a git-service checkout ([Scaffold into a repository](#scaffold-into-a-repository---repo)) |
|
|
1579
1736
|
| `seq-studio artifact link [dir] -e <env> [--project <id>]` | `link [dir] --env <env>` |
|
|
1580
1737
|
| `seq-studio artifact build [dir] [-e <env>]` | React/HTML: local bundle. Next.js: asynchronous hosted preview build on Atlas; use `pnpm build` for local compilation. |
|
|
1581
1738
|
| `seq-studio artifact plan [dir] -e <env>` | `plan [dir] --env <env>` |
|
|
1582
1739
|
| `seq-studio artifact deploy [dir] -e <env> [--skip-unchanged] [--no-create] [--project <id>]` | `deploy [dir] --env <env>` — `--skip-unchanged` no-ops (before building) when the remote active deployment's `sourceHash` **and** CLI/atlas-ui peer versions already match; `--no-create` errors instead of creating a missing project; `--project <id>` targets a project directly when duplicate slugs make the lookup ambiguous (slug must still match the manifest) |
|
|
1740
|
+
| `seq-studio artifact deploy --repo <ns>/<name> --ref <branch> --preview [--key <key>] -e <env>` | Builds any branch, tag, or commit as a preview and prints its link; see "Previews" below. Works for React/HTML and Next.js (`--key` is React/HTML only), and from an agent sandbox |
|
|
1583
1741
|
| `seq-studio artifact dev [dir] -e <env> [--link <pkgDir>[,<pkgDir>]] [--port <port>]` | React/HTML: rebuild preview on changes. Next.js: local development server and owner-only Atlas tunnel; `--port` selects its loopback port. |
|
|
1584
1742
|
| `seq-studio artifact pull <project-id> -e <env> [--out <dir>]` | `pull <project-id> --env <env> [--out <dir>]` |
|
|
1585
1743
|
| `seq-studio artifact list -e <env> [--json]` | `list --env <env>` — projects visible on the environment (slug, id, active version, visibility); `--json` emits the response object |
|
|
@@ -1611,7 +1769,28 @@ targeting `local` may use any branch, including dirty working trees. Feature
|
|
|
1611
1769
|
branches, dirty artifact source trees, non-git sources, and detached checkouts
|
|
1612
1770
|
that cannot be attributed to an allowed branch are preview-only for deployed environments
|
|
1613
1771
|
(`seq-studio artifact dev` / preview channel); promotion applies the same
|
|
1614
|
-
provenance check.
|
|
1772
|
+
provenance check. Atlas decides whether the target is a staging environment
|
|
1773
|
+
from its own configuration, not from the name you pass to `-e`, so a
|
|
1774
|
+
`staging`-branch deploy works under any environment name, including an agent
|
|
1775
|
+
sandbox's `sandbox`.
|
|
1776
|
+
|
|
1777
|
+
### Previews
|
|
1778
|
+
|
|
1779
|
+
A preview is a private test copy of your app. It runs the code from a branch
|
|
1780
|
+
inside Atlas, under its own link, for people who can edit the project. The live
|
|
1781
|
+
app and its users see nothing. Use one to try a branch before you merge it:
|
|
1782
|
+
|
|
1783
|
+
```bash
|
|
1784
|
+
seq-studio artifact deploy --repo <namespace>/<repository> --ref <branch> --preview -e <env>
|
|
1785
|
+
```
|
|
1786
|
+
|
|
1787
|
+
The command prints the preview link. For a React/HTML app, each `--key` keeps
|
|
1788
|
+
one preview; by default the key is the branch name, so every branch keeps its
|
|
1789
|
+
own and a later deploy of that branch replaces it. Each Next.js preview is its
|
|
1790
|
+
own immutable build with its own link, so `--key` does not apply to it. A preview can't be promoted to the live app. To go
|
|
1791
|
+
live, merge the branch and deploy `main` (or `staging` on a staging
|
|
1792
|
+
deployment). An official deploy of any other branch is refused with the
|
|
1793
|
+
`--preview` command to run instead.
|
|
1615
1794
|
|
|
1616
1795
|
**React/HTML CLI atlas-ui stamp (DES-254):** builds force-alias `@sequenceholdings/atlas-ui`
|
|
1617
1796
|
to the CLI's copy — not the artifact's declared semver. Deployments record
|
|
@@ -1904,6 +2083,37 @@ a human identity or extend a human login's expiry.
|
|
|
1904
2083
|
Add `--help` to a repo command to read its usage offline, without an
|
|
1905
2084
|
environment or credentials.
|
|
1906
2085
|
|
|
2086
|
+
### Scaffold into a repository (`--repo`)
|
|
2087
|
+
|
|
2088
|
+
Source you build belongs in a platform git-service repository, not only on one
|
|
2089
|
+
machine. Every init command takes `--repo <namespace>/<name>` to start there:
|
|
2090
|
+
`seq-studio init`, `orm init`, `functions init`, `artifact init`, and
|
|
2091
|
+
`agents init`.
|
|
2092
|
+
|
|
2093
|
+
```bash
|
|
2094
|
+
seq-studio functions init get-loan --repo lending/get-loan -e <env>
|
|
2095
|
+
git -C get-loan add -A && git -C get-loan commit -m 'Scaffold get-loan' && git -C get-loan push -u origin HEAD
|
|
2096
|
+
```
|
|
2097
|
+
|
|
2098
|
+
- The repository is created when it does not exist, with the same name rules
|
|
2099
|
+
and permission (namespace write) as `repos create`; an existing one is reused.
|
|
2100
|
+
- When `<dir>` is not inside a Git checkout, the repository is cloned into it
|
|
2101
|
+
(it must be new or empty) and the scaffold lands in the clone, next to the
|
|
2102
|
+
starter README and `.seq/identity.json`.
|
|
2103
|
+
- When `<dir>` is inside a Git checkout, the repository becomes that checkout's
|
|
2104
|
+
`origin` (created empty, so your history can be pushed into it). A checkout
|
|
2105
|
+
whose `origin` already points elsewhere is refused before anything is created.
|
|
2106
|
+
For a newly created repository, install its identity receipt with
|
|
2107
|
+
`seq-studio repos identity <ns>/<name> -e <env> --write --dir <root>`.
|
|
2108
|
+
- `seq-studio init --template <name>@<version> --repo …` fills the fresh clone:
|
|
2109
|
+
the template's README replaces the seed README, and the clone keeps its own
|
|
2110
|
+
`.seq/identity.json` (the receipt for this repository, not the template's).
|
|
2111
|
+
A checkout with any other content is refused.
|
|
2112
|
+
- Nothing is committed or pushed. The command prints the exact `git add`,
|
|
2113
|
+
`git commit`, and `git push` to run; pushes use the same credential helper as
|
|
2114
|
+
`repos clone`.
|
|
2115
|
+
- It needs `-e <env>` and a user login, or an agent sandbox.
|
|
2116
|
+
|
|
1907
2117
|
### Repository identity
|
|
1908
2118
|
|
|
1909
2119
|
New repositories created on identity-capable Atlas releases contain a committed
|
|
@@ -1924,11 +2134,18 @@ New repositories created on identity-capable Atlas releases contain a committed
|
|
|
1924
2134
|
|
|
1925
2135
|
The platform owns `identity`. Tenant ownership comes from the hosting
|
|
1926
2136
|
deployment, not the creator's organization, repository name, remote URL, or
|
|
1927
|
-
editable file. Renaming a repository does not change its ID.
|
|
1928
|
-
production share a tenant; this file intentionally does not
|
|
2137
|
+
editable file. Renaming a repository does not change its ID. A tenant's staging
|
|
2138
|
+
and production deployments share a tenant; this file intentionally does not
|
|
2139
|
+
select an environment.
|
|
1929
2140
|
Separate hosted repositories still have distinct IDs: copying this file does
|
|
1930
2141
|
not register a mirror or authorize promotion.
|
|
1931
2142
|
|
|
2143
|
+
Environment names alone are not tenant identities; the platform resolves the
|
|
2144
|
+
owner from the hosting deployment configuration. Correcting a deployment's
|
|
2145
|
+
owner mapping does not rewrite identities already issued to repositories; an
|
|
2146
|
+
old mismatched receipt still fails deployment admission and needs explicit
|
|
2147
|
+
platform reconciliation, not a hand-edited receipt or a cross-tenant exception.
|
|
2148
|
+
|
|
1932
2149
|
`metadata` is an extensible JSON object for non-secret annotations (for example,
|
|
1933
2150
|
`{"example.com": {"team": "engineering"}}`). Prefer namespaced keys for tools.
|
|
1934
2151
|
It is never an authorization or deployment-routing input. The whole file is
|
|
@@ -2155,6 +2372,23 @@ relative to the package root. Validation, planning, deployment, migrations,
|
|
|
2155
2372
|
and ORM repinning share the same loader. `pipeline init` scaffolds into the
|
|
2156
2373
|
first listed stage directory; without config it keeps using the package root.
|
|
2157
2374
|
|
|
2375
|
+
To package a pipeline from a larger application repository without changing its
|
|
2376
|
+
release identity, add `source_paths: [src, lookup-data, requirements.txt]` to
|
|
2377
|
+
`pipeline.config.yml`. Entries are literal package-relative files or complete
|
|
2378
|
+
directories, not globs. Include all runtime imports, data and dependency files.
|
|
2379
|
+
Configured stages and pipeline metadata (schemas, documentation, migrations,
|
|
2380
|
+
workflow, external assets, ORM contracts and extra resources) are always retained.
|
|
2381
|
+
Validation rejects missing declared entrypoints/decoders and extra-job local
|
|
2382
|
+
files. Omit `source_paths` to retain full-root capture. This requires a server and
|
|
2383
|
+
SDK release with source-package support; older releases reject the field.
|
|
2384
|
+
|
|
2385
|
+
Run `seq-studio pipeline validate .` in the standalone checkout, review and
|
|
2386
|
+
commit the config and source together, then use the usual `pipeline plan --repo
|
|
2387
|
+
<namespace>/<slug> --ref <sha> --source-env <source-env> -e <target-env>`. Selection
|
|
2388
|
+
is resolved from that pinned commit before snapshot size checks; the existing
|
|
2389
|
+
limits and repository authorization still apply. It does not change the repo,
|
|
2390
|
+
root, stage identities, deployment admission or rollback provenance.
|
|
2391
|
+
|
|
2158
2392
|
| Command | What it does |
|
|
2159
2393
|
|---------|--------------|
|
|
2160
2394
|
| `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 |
|
|
@@ -2606,7 +2840,7 @@ retires stages removed from the repo. This operation does not retain or restore
|
|
|
2606
2840
|
the deleted Databricks object; verify backups and cutover readiness before
|
|
2607
2841
|
authorizing a DLT pipeline deletion because its managed tables can be dropped.
|
|
2608
2842
|
|
|
2609
|
-
The `{env}-MP-…` scheme itself is a one-shot break from the unprefixed names (`
|
|
2843
|
+
The `{env}-MP-…` scheme itself is a one-shot break from the earlier unprefixed names (`pipelines-<domain>-<env>`). We do not migrate DAB bundle state or DLT resource identity: the first deploy after this change creates a new bundle and new jobs/pipelines, and can cascade-drop DLT-managed tables on the deleted resource. Operators should pause or delete leftover unprefixed jobs once the new ones are healthy. Each enabled OpCo deployment advertises and owns its own target profile.
|
|
2610
2844
|
|
|
2611
2845
|
`validate` is offline — no network or database. `--assets` supplies a
|
|
2612
2846
|
registry **asset export** (JSON) so inputs referencing other Pipelines'
|
|
@@ -2763,22 +2997,112 @@ require an explicit environment; help is offline, including `doctor --help`.
|
|
|
2763
2997
|
|
|
2764
2998
|
### Runtime access
|
|
2765
2999
|
|
|
3000
|
+
`seq-studio access` manages grants on every Atlas primitive with the same verbs.
|
|
3001
|
+
Atlas applies the rules the Permissions UI uses; the CLI adds no authority.
|
|
3002
|
+
|
|
2766
3003
|
```bash
|
|
2767
|
-
seq-studio
|
|
3004
|
+
seq-studio principals search "maintenance" -e <env> # find grant-ready ids
|
|
3005
|
+
seq-studio access definitions process <process-id> -e <env>
|
|
3006
|
+
seq-studio access list process <process-id> --floor -e <env>
|
|
3007
|
+
seq-studio access grant process <process-id> --floor --principal-type service-account --principal-id <account-id> -e <env>
|
|
3008
|
+
seq-studio access grant orm <namespace> --key <role> --principal-type group --principal-id <group-id> -e <env>
|
|
3009
|
+
seq-studio access revoke orm <namespace> --key <role> --principal-type group --principal-id <group-id> -e <env>
|
|
2768
3010
|
seq-studio access resolve orm <namespace> -e <env>
|
|
2769
|
-
seq-studio access list orm <namespace> --floor -e <env>
|
|
2770
|
-
seq-studio access grant orm <namespace> --floor --principal-type user --principal-id <subject> -e <env>
|
|
2771
|
-
seq-studio access grant orm <namespace> --key <role> --principal-type user --principal-id <subject> -e <env>
|
|
2772
|
-
seq-studio access revoke orm <namespace> --key <role> --principal-type user --principal-id <subject> -e <env>
|
|
2773
3011
|
```
|
|
2774
3012
|
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
3013
|
+
| Type | Resource ID | `--floor` | `--key` |
|
|
3014
|
+
| --- | --- | --- | --- |
|
|
3015
|
+
| `artifact` | project UUID | `end_user` | declared roles/capabilities |
|
|
3016
|
+
| `function` | Function UUID | `invoker` | declared roles/capabilities |
|
|
3017
|
+
| `orm` | namespace name | `end_user` | declared roles/capabilities |
|
|
3018
|
+
| `application` | Application id | none | Application roles; `--kind runtime\|collaborator` |
|
|
3019
|
+
| `process` | Lattice process id | `invoker` | `owner`, `editor`, `invoker`, `viewer` |
|
|
3020
|
+
| `agent` | Agent Builder agent id | `invoker` | `owner`, `editor`, `invoker`, `outputs_viewer` |
|
|
3021
|
+
| `pipeline` | release unit `<namespace>/<name>` | none | `admin`, `editor`, `operator`, `viewer` |
|
|
3022
|
+
| `service-account` | account id | none | `admin`, `actor` |
|
|
3023
|
+
| `secret` | secret UUID | `user` | `user`, `editor`, `admin` |
|
|
3024
|
+
| `repo` | `<namespace>/<name>` or repo id | none | `reader`, `writer`, `merger`, `admin` |
|
|
3025
|
+
| `namespace` | git namespace slug | none | `reader`, `writer`, `merger`, `admin` |
|
|
3026
|
+
| `workspace` | Workspaces V2 workspace id | none | `viewer`, `editor`, `admin` |
|
|
3027
|
+
|
|
3028
|
+
Principal types are `user` (authenticated subject), `group` (directory group id),
|
|
3029
|
+
`organization` (tenant slug), and `service-account` (`<account-id>` or
|
|
3030
|
+
`service-account|<account-id>`); never an email or display name. `definitions`
|
|
3031
|
+
lists a type's floor and tiers (declared roles for artifact/function/orm/application).
|
|
3032
|
+
`list` shows direct grants; `--floor`/`--key` narrow it. `resolve` evaluates only the
|
|
3033
|
+
signed-in caller and exists for the declared-capability types.
|
|
3034
|
+
|
|
3035
|
+
On every type except artifact, function, orm, and application, a principal holds
|
|
3036
|
+
one tier. `grant` is a no-op when it already holds that tier and refuses to change a
|
|
3037
|
+
different one unless you pass `--replace`; `revoke` removes only the named tier.
|
|
3038
|
+
Grants require grant-management authority on the resource (process editors manage
|
|
3039
|
+
Editor/Viewer, process owners every role). Service accounts additionally need you to
|
|
3040
|
+
hold `actor` on the account, and take only runtime tiers (`invoker`/`viewer` on a
|
|
3041
|
+
process, `invoker` on an agent). You can grant only groups you belong to unless you
|
|
3042
|
+
are a platform admin. Service-account grants are Sequence-operator only; managed
|
|
3043
|
+
secrets refuse agent sandbox tokens. Roles and pins do not assign users;
|
|
3044
|
+
`capabilities.uses` must declare every capability consumed. Fresh previews do not
|
|
3045
|
+
register new role keys; activate a release before granting them.
|
|
3046
|
+
|
|
3047
|
+
### Finding principals
|
|
3048
|
+
|
|
3049
|
+
```bash
|
|
3050
|
+
seq-studio principals search <query> -e <env> [--types user,group,service-account,organization] [--limit <n>]
|
|
3051
|
+
seq-studio principals users search <query> -e <env>
|
|
3052
|
+
seq-studio principals groups list -e <env> [--search <query>] [--limit <n>] [--page <n>]
|
|
3053
|
+
seq-studio principals groups show <group-id> -e <env> [--limit <n>] [--offset <n>]
|
|
3054
|
+
```
|
|
3055
|
+
|
|
3056
|
+
Results are JSON, and each principal carries
|
|
3057
|
+
`"grant": { "principalType", "principalId" }` ready for `access grant`. You see
|
|
3058
|
+
exactly what the Atlas pickers show you, through the same server code: active users
|
|
3059
|
+
in your organization (Sequence operators: both tenants), groups you belong to
|
|
3060
|
+
(platform admins: every group) and never deleted ones, service accounts you hold
|
|
3061
|
+
`actor` on, and your own organization. `groups show` pages a visible group's active
|
|
3062
|
+
members (50 per page) and reports a group you can't see as not found. An agent sandbox
|
|
3063
|
+
token sees exactly its caller's view. Requires CLI 0.8.0+ and an Atlas release with
|
|
3064
|
+
the caller mode of `/api/authz/principals/search`.
|
|
3065
|
+
|
|
3066
|
+
**Capabilities are code, roles are data.** A resource's source declares the
|
|
3067
|
+
capabilities its code checks; the roles that bundle them are created and edited
|
|
3068
|
+
in Atlas:
|
|
3069
|
+
|
|
3070
|
+
```bash
|
|
3071
|
+
seq-studio access roles list orm <namespace> -e <env>
|
|
3072
|
+
seq-studio access roles create orm <namespace> technician --grants equipment-read,work-orders-write -e <env>
|
|
3073
|
+
seq-studio access roles update orm <namespace> technician --grants equipment-read -e <env>
|
|
3074
|
+
seq-studio access roles delete orm <namespace> technician -e <env>
|
|
3075
|
+
```
|
|
3076
|
+
|
|
3077
|
+
`--grants` and `--inherits` replace the role's whole list on update. Editing
|
|
3078
|
+
roles requires capability-admin authority on the resource. Role `definitions`
|
|
3079
|
+
in source are a deprecated one-time seed that later deploys never update.
|
|
3080
|
+
|
|
3081
|
+
#### Service-account group roster Reader
|
|
3082
|
+
|
|
3083
|
+
Prepared in CLI **0.8.2**, paired with Platform SDK **0.1.0** and Managed Functions **0.5.1**; all await
|
|
3084
|
+
separate publication. Deploy the matching host/model before provisioning.
|
|
3085
|
+
|
|
3086
|
+
```bash
|
|
3087
|
+
seq-studio access grant group <group-id> --key roster-reader --principal-type user --principal-id 'service-account|<account-id>' -e <env>
|
|
3088
|
+
seq-studio access revoke group <group-id> --key roster-reader --principal-type user --principal-id 'service-account|<account-id>' -e <env>
|
|
3089
|
+
```
|
|
3090
|
+
|
|
3091
|
+
This uses the shared Platform SDK's typed operator client and the current CLI login.
|
|
3092
|
+
The shared transport owns redirect refusal, origin validation, deadline and response
|
|
3093
|
+
bounds; the CLI supplies session rotation and host-scoped edge headers. Grants
|
|
3094
|
+
require a verified human group owner or platform operator plus Actor on the
|
|
3095
|
+
service account. The independent Reader relation enables bounded roster reads without
|
|
3096
|
+
joining the group or inheriting member permissions. Tenant Directory Reader and
|
|
3097
|
+
the function's declared roster allowlist are still mandatory. Revocation does
|
|
3098
|
+
not require Actor; unavailable or unauthorized groups fail closed.
|
|
3099
|
+
|
|
3100
|
+
Only `grant` and `revoke`, key `roster-reader`, and an explicit service-account
|
|
3101
|
+
subject are supported for groups. Group floor grants, human subjects and other
|
|
3102
|
+
keys are rejected before authentication. An unavailable route or denied group fails closed; confirm the host version,
|
|
3103
|
+
IDs and governance access rather than granting
|
|
3104
|
+
ordinary group membership. Neither the SDK nor CLI grants access automatically
|
|
3105
|
+
on deployment. These operations do not issue credentials.
|
|
2782
3106
|
|
|
2783
3107
|
### Repository Pulls
|
|
2784
3108
|
|
|
@@ -2832,6 +3156,18 @@ contract and retry guidance. Agents only see this guidance when their instructio
|
|
|
2832
3156
|
load the page or the installed feedback skill.
|
|
2833
3157
|
|
|
2834
3158
|
|
|
2835
|
-
###
|
|
3159
|
+
### Verified service policy support
|
|
3160
|
+
|
|
3161
|
+
Namespace policies using `servicePrincipal()` (ORM 2.7.1 and later) require the matching deployed IR v6 runtime. Before registration, `orm apply` checks authenticated target protocol support and refuses an unavailable or older runtime. Package versions alone do not prove rollout.
|
|
3162
|
+
|
|
3163
|
+
## Shared Platform SDK runtime
|
|
2836
3164
|
|
|
2837
|
-
|
|
3165
|
+
All Atlas HTTP helpers now use the shared bounded transport while retaining CLI
|
|
3166
|
+
registered-origin checks, rotating sandbox sessions, host-scoped edge headers,
|
|
3167
|
+
structured Atlas errors, source authorization and raw invocation metadata. Only
|
|
3168
|
+
recognized pre-execution warming receipts retain the existing retry behavior.
|
|
3169
|
+
Typed operator provisioning clients live at `platform.controlPlane`; the CLI's
|
|
3170
|
+
service-account and roster workflows consume them. The coordinated Platform,
|
|
3171
|
+
Storage and primitive SDK release remains prepared and unpublished. See
|
|
3172
|
+
[consumer coverage](../../../docs/platform/sdk-consumer-coverage.md) for exact
|
|
3173
|
+
operations and application-owned compatibility routes.
|