@sequenceholdings/studio-cli 0.7.2 → 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.
Files changed (76) hide show
  1. package/README.md +351 -49
  2. package/dist/access/commands.d.ts +1 -1
  3. package/dist/access/commands.js +102 -55
  4. package/dist/access/custom-role-hosts.d.ts +3 -0
  5. package/dist/access/custom-role-hosts.js +88 -0
  6. package/dist/access/group-rosters.d.ts +6 -0
  7. package/dist/access/group-rosters.js +33 -0
  8. package/dist/access/host-contract.d.ts +55 -0
  9. package/dist/access/host-contract.js +33 -0
  10. package/dist/access/hosts.d.ts +4 -0
  11. package/dist/access/hosts.js +60 -0
  12. package/dist/access/principal.d.ts +16 -0
  13. package/dist/access/principal.js +36 -0
  14. package/dist/access/roles.d.ts +18 -0
  15. package/dist/access/roles.js +89 -0
  16. package/dist/access/tier-hosts.d.ts +12 -0
  17. package/dist/access/tier-hosts.js +206 -0
  18. package/dist/agents/commands.d.ts +1 -1
  19. package/dist/agents/commands.js +76 -16
  20. package/dist/agents/scaffold.js +8 -3
  21. package/dist/app/commands.js +37 -12
  22. package/dist/app/manifest.d.ts +2 -2
  23. package/dist/app/official-source.d.ts +4 -2
  24. package/dist/app/official-source.js +6 -4
  25. package/dist/app/readme.js +2 -2
  26. package/dist/app/workspace-model.js +4 -0
  27. package/dist/app/workspace-scaffold.js +5 -3
  28. package/dist/app/workspace.d.ts +2 -0
  29. package/dist/app/workspace.js +1 -1
  30. package/dist/artifact/delegate.js +26 -3
  31. package/dist/artifact/sandbox.js +2 -1
  32. package/dist/atlas-client.d.ts +15 -8
  33. package/dist/atlas-client.js +140 -64
  34. package/dist/bin.js +9 -1
  35. package/dist/cli-errors.js +4 -0
  36. package/dist/command-contract.d.ts +8 -2
  37. package/dist/command-contract.js +3 -2
  38. package/dist/command-help.d.ts +8 -6
  39. package/dist/command-help.js +50 -12
  40. package/dist/env-flags.d.ts +7 -0
  41. package/dist/env-flags.js +23 -0
  42. package/dist/functions/commands.js +66 -11
  43. package/dist/functions/manifest.d.ts +5 -0
  44. package/dist/functions/manifest.js +44 -23
  45. package/dist/functions/service-account-guidance.d.ts +21 -0
  46. package/dist/functions/service-account-guidance.js +62 -0
  47. package/dist/functions/workspace.d.ts +11 -0
  48. package/dist/functions/workspace.js +52 -0
  49. package/dist/main.d.ts +2 -1
  50. package/dist/main.js +12 -3
  51. package/dist/orm/delegate.js +49 -6
  52. package/dist/orm/execute.js +11 -5
  53. package/dist/orm/failures.d.ts +32 -0
  54. package/dist/orm/failures.js +75 -0
  55. package/dist/orm/read.js +3 -3
  56. package/dist/orm/version-guard.d.ts +3 -0
  57. package/dist/orm/version-guard.js +63 -0
  58. package/dist/pipeline/commands.js +4 -1
  59. package/dist/principals/commands.d.ts +3 -0
  60. package/dist/principals/commands.js +124 -0
  61. package/dist/process/runs.d.ts +4 -3
  62. package/dist/process/runs.js +52 -10
  63. package/dist/release-age.d.ts +1 -1
  64. package/dist/release-age.js +1 -0
  65. package/dist/repos/commands.d.ts +44 -0
  66. package/dist/repos/commands.js +55 -15
  67. package/dist/repos/init-repo.d.ts +45 -0
  68. package/dist/repos/init-repo.js +257 -0
  69. package/dist/sandbox-unpushed-warning.d.ts +23 -0
  70. package/dist/sandbox-unpushed-warning.js +86 -0
  71. package/dist/service-accounts/commands.js +15 -3
  72. package/dist/templates/commands.d.ts +14 -2
  73. package/dist/templates/commands.js +70 -16
  74. package/dist/templates/process/pnpm-workspace.yaml +1 -0
  75. package/package.json +14 -11
  76. 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`.
@@ -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
- (The seq-studio publish chain — `agent-spec`, `atlas-ui`, `lattice-form-renderer`,
72
- `artifact-studio`, `lattice`, `studio-cli` — is excluded from the quarantine;
73
- those come from the Studio repo's own publish pipeline, so new `seq-studio`
74
- releases install immediately.)
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 repos create acme/portal
173
- seq-studio repos clone acme/portal # clones into ./portal
174
- cd portal
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,7 +254,7 @@ 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 |
251
260
  | `seq-studio validate [--dir <path>] [--json]` | Offline check of the app manifest, dependency graph, contained primitive directories, and resolved member refs |
@@ -320,9 +329,11 @@ packages, preserves the seven-day dependency age gate, and explicitly controls
320
329
  build scripts. Generated nested install configuration is consolidated at the
321
330
  root. CI should use `pnpm install --frozen-lockfile`.
322
331
 
323
- Every new app includes `packages/shared`, named `@<app-id>/shared`. Artifacts and
324
- processes receive ordinary `workspace:*` dependencies; functions do not, because
325
- their deployed bundles cannot resolve workspace links. Export common types,
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,
326
337
  validation, and helpers from `src/index.ts`. Additional packages are registered
327
338
  with `seq-studio add package <name>`; add them to consumers with:
328
339
 
@@ -653,12 +664,12 @@ bundle; it never implicitly deletes agents.
653
664
 
654
665
  | Command | What it does |
655
666
  |---------|--------------|
656
- | `seq-studio agents init <dir>` | Scaffold a standalone typed agent repository |
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)) |
657
668
  | `seq-studio agents validate [--dir <dir>] [--target <APP_ENV>] [--only <id1,id2>]` | Compile and validate locally, without API access |
658
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 |
659
670
  | `seq-studio agents plan [--dir <dir>] [--only <id1,id2>]` | Offline compile/hash plan |
660
- | `seq-studio agents plan [--dir <dir>] -e <env> [--target <APP_ENV>] [--only <id1,id2>] [--managed]` | Diff creates, updates, and unchanged definitions against an environment |
661
- | `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 |
662
673
  | `seq-studio agents list -e <env>` | List visible runtime agents |
663
674
  | `seq-studio agents show <id> -e <env>` | Show one runtime agent |
664
675
 
@@ -686,6 +697,44 @@ A merge deploys an agent the same way, as the person who merged, when its
686
697
  `--managed` selects the Sequence-staff path for Sequence's own code-managed
687
698
  agents, whose definitions own their access as well.
688
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
+
689
738
  An optional `deploy-manifest.json` targets definitions by deployment identity:
690
739
 
691
740
  ```json
@@ -847,13 +896,13 @@ compiled to canonical SQL before registration.
847
896
 
848
897
  | Command | What it does |
849
898
  |---------|--------------|
850
- | `seq-studio orm init <dir>` | Scaffold one v2 namespace package (`sequence.config.ts`, `schema/*.ts`, `graphql/**`, and codegen config). |
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)). |
851
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. |
852
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. |
853
902
  | `seq-studio orm validate [dir]` | Parse and compile the namespace, then verify its committed migration chain is current. |
854
903
  | `seq-studio orm plan [dir] -e <env>` | Compare the compiled namespace with registry state without applying database changes. |
855
904
  | `seq-studio orm diff [dir] [--check]` | Author the next committed migration, or verify the migration/snapshot chain offline for CI. |
856
- | `seq-studio orm apply [dir] -e <env>` | Author a migration if needed, register/apply the namespace, activate its operation set, publish roles/capabilities, and refresh generated outputs. |
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. |
857
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. |
858
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. |
859
908
  | `seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]` | List the namespaces you can read. |
@@ -864,6 +913,13 @@ compiled to canonical SQL before registration.
864
913
  | `seq-studio orm migrate-from-yaml <dir>` | Convert a legacy YAML namespace to TypeScript authoring while preserving its committed migrations. |
865
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. |
866
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
+
867
923
  Run ORM commands with the CLI installed in the package that owns the
868
924
  namespace. A new namespace package lists both `@sequenceholdings/studio-cli` and
869
925
  `@sequenceholdings/orm`, so after `pnpm install` everything runs through
@@ -886,6 +942,23 @@ Global ORM commands require a CLI release that declares `drizzle-orm` directly.
886
942
  Older releases can fail during module loading because `drizzle-kit` imports
887
943
  `drizzle-orm` without declaring it. Update the global CLI if you see that error.
888
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.
961
+
889
962
  `apply --dry-run` rehearses a migration against a disposable branch copy of
890
963
  the target environment's data. `apply --no-create` is the CI guard that refuses
891
964
  to provision a missing namespace. Destructive DDL requires explicit
@@ -1055,7 +1128,8 @@ datasets before adopting this path for latency-sensitive reads.
1055
1128
  | `seq-studio process bundle inspect <bundle.json>` | Show a saved bundle's summary |
1056
1129
  | `seq-studio process bundle list [-e <env>] [--limit N] [--cursor <hash>]` | List registered bundles (paginated; CLI auto-fetches all pages) |
1057
1130
  | `seq-studio process bundle publish <hash or bundle.json> [-e <env>]` | Register a local bundle (no promote) |
1058
- | `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**+) |
1059
1133
  | `seq-studio process runs list -e <env> [--process <id>] [--status <s>] [--limit N]` | List runs you can view, newest first |
1060
1134
  | `seq-studio process runs show <run-id> -e <env> [--wait]` | Show a run's status and steps; `--wait` polls until it finishes |
1061
1135
  | `seq-studio process runs cancel <run-id> -e <env>` | Cancel a run (needs `invoker` on the process) |
@@ -1068,17 +1142,34 @@ subprocess versions when needed. It is not a guarantee of network-free execution
1068
1142
  ### Runs
1069
1143
 
1070
1144
  ```bash
1071
- seq-studio process runs start credit-memo -e <env> \
1072
- --run-id memo-loan-1042 --metadata-file run.json --json
1073
- seq-studio process runs show memo-loan-1042 -e <env> --wait --json
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
1074
1149
  seq-studio process runs list -e <env> --process credit-memo --status failed --limit 20
1075
1150
  ```
1076
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
+
1077
1171
  `--version` pins a published version; without it the active version runs.
1078
- `--run-id` makes `start` idempotent: repeating it for the same process returns
1079
- the existing run (`idempotent_replay: true`) rather than starting another, and
1080
- reusing it for a different process is refused. `--metadata-file` must hold a
1081
- JSON object. `list` filters by `--process`, `--status` (`pending`, `running`,
1172
+ `--metadata-file` must hold a JSON object. `list` filters by `--process`, `--status` (`pending`, `running`,
1082
1173
  `completed`, `failed`, `cancelled`, `timed_out`), `--entity-type`/`--entity-id`,
1083
1174
  and `--archived`; it returns the newest runs up to `--limit` (default 50,
1084
1175
  maximum 500). The run API has no cursor, so narrow the filters to reach older
@@ -1176,7 +1267,7 @@ functions cannot opt in retroactively. The default remains mutable. See the
1176
1267
 
1177
1268
  | Command | What it does |
1178
1269
  |---------|--------------|
1179
- | `seq-studio functions init <dir>` | Scaffold one standalone TypeScript managed function |
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)) |
1180
1271
  | `seq-studio functions dev [--dir <dir>] [--port <port>]` | Run a local HTTP server with Managed Function cache context |
1181
1272
  | `seq-studio functions build [--dir <dir>]` | Validate a local manifest, bundle, lockfile, and size |
1182
1273
  | `seq-studio functions register [--dir <dir>] -e <env>` | Register an undeployed shell and its initial secret names/mappings without uploading or activating code |
@@ -1191,6 +1282,17 @@ functions cannot opt in retroactively. The default remains mutable. See the
1191
1282
  that function. Versions named by repository CI, such as `ci-abc`, do not reset
1192
1283
  the sequence. A function with no numbered versions starts at `v1`.
1193
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
+
1194
1296
  After an upload is accepted, `functions show --fn <slug> -e <env> --json` returns
1195
1297
  the server's `activeVersionId`, `immutableRelease`, exact active version, and
1196
1298
  version history with status, Git revision and dirty bit, and source digest.
@@ -1263,11 +1365,28 @@ seq-studio functions deploy --repo managed-functions/encompass \
1263
1365
  --path functions/get-loan -e staging
1264
1366
  ```
1265
1367
 
1266
- Each selected directory is a self-contained function package. Functions in the
1368
+ Each selected directory is a function package. Functions in the
1267
1369
  same repo share Git review and commit provenance, but keep separate manifests,
1268
1370
  versions, runtime resources, secrets, and permissions. `--path` accepts only a
1269
1371
  canonical relative directory inside a remote repo; use `--dir` for local source.
1270
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
+
1271
1390
  ### Scoped group-member directory reads
1272
1391
 
1273
1392
  A function may opt in to resolving selected members of existing Atlas groups:
@@ -1519,9 +1638,20 @@ reads its author. Do not substitute a physical directory table name. This is
1519
1638
  an explicit read scope only; namespace access, operation requirements and row
1520
1639
  policies still apply. Ordinary namespace table names remain lowercase identifiers.
1521
1640
 
1522
- A function that reaches a namespace must attach a top-level `service_account`
1523
- provided by its administrator. Caller-mode execution remains on behalf of the
1524
- invoking user; attaching the account does not select service mode.
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`.
1525
1655
 
1526
1656
  A successful direct `seq-studio orm execute` call does not test a function's
1527
1657
  delegated scope. If the same read fails through the function with a 403, check
@@ -1602,11 +1732,12 @@ successfully. Help does not initialize files, authenticate, or deploy.
1602
1732
 
1603
1733
  | Command | Underlying `runCli` verb |
1604
1734
  |---------|--------------------------|
1605
- | `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)) |
1606
1736
  | `seq-studio artifact link [dir] -e <env> [--project <id>]` | `link [dir] --env <env>` |
1607
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. |
1608
1738
  | `seq-studio artifact plan [dir] -e <env>` | `plan [dir] --env <env>` |
1609
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 |
1610
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. |
1611
1742
  | `seq-studio artifact pull <project-id> -e <env> [--out <dir>]` | `pull <project-id> --env <env> [--out <dir>]` |
1612
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 |
@@ -1638,7 +1769,28 @@ targeting `local` may use any branch, including dirty working trees. Feature
1638
1769
  branches, dirty artifact source trees, non-git sources, and detached checkouts
1639
1770
  that cannot be attributed to an allowed branch are preview-only for deployed environments
1640
1771
  (`seq-studio artifact dev` / preview channel); promotion applies the same
1641
- 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.
1642
1794
 
1643
1795
  **React/HTML CLI atlas-ui stamp (DES-254):** builds force-alias `@sequenceholdings/atlas-ui`
1644
1796
  to the CLI's copy — not the artifact's declared semver. Deployments record
@@ -1931,6 +2083,37 @@ a human identity or extend a human login's expiry.
1931
2083
  Add `--help` to a repo command to read its usage offline, without an
1932
2084
  environment or credentials.
1933
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
+
1934
2117
  ### Repository identity
1935
2118
 
1936
2119
  New repositories created on identity-capable Atlas releases contain a committed
@@ -2189,6 +2372,23 @@ relative to the package root. Validation, planning, deployment, migrations,
2189
2372
  and ORM repinning share the same loader. `pipeline init` scaffolds into the
2190
2373
  first listed stage directory; without config it keeps using the package root.
2191
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
+
2192
2392
  | Command | What it does |
2193
2393
  |---------|--------------|
2194
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 |
@@ -2640,7 +2840,7 @@ retires stages removed from the repo. This operation does not retain or restore
2640
2840
  the deleted Databricks object; verify backups and cutover readiness before
2641
2841
  authorizing a DLT pipeline deletion because its managed tables can be dropped.
2642
2842
 
2643
- The `{env}-MP-…` scheme itself is a one-shot break from the unprefixed names (`silverlake-core`, `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.
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.
2644
2844
 
2645
2845
  `validate` is offline — no network or database. `--assets` supplies a
2646
2846
  registry **asset export** (JSON) so inputs referencing other Pipelines'
@@ -2797,22 +2997,112 @@ require an explicit environment; help is offline, including `doctor --help`.
2797
2997
 
2798
2998
  ### Runtime access
2799
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
+
2800
3003
  ```bash
2801
- seq-studio access definitions orm <namespace> -e <env>
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>
2802
3010
  seq-studio access resolve orm <namespace> -e <env>
2803
- seq-studio access list orm <namespace> --floor -e <env>
2804
- seq-studio access grant orm <namespace> --floor --principal-type user --principal-id <subject> -e <env>
2805
- seq-studio access grant orm <namespace> --key <role> --principal-type user --principal-id <subject> -e <env>
2806
- seq-studio access revoke orm <namespace> --key <role> --principal-type user --principal-id <subject> -e <env>
2807
3011
  ```
2808
3012
 
2809
- Resource types are `artifact`, `function`, and `orm`; their IDs are project UUID,
2810
- Function UUID, and namespace name respectively. The runtime floor means `end_user`
2811
- for Artifact/ORM and `invoker` for Function. `list` defaults to direct role/capability
2812
- grants; `resolve` evaluates only the signed-in caller. Grant/revoke require existing
2813
- grant-management authority. Roles and pins do not assign users; `capabilities.uses`
2814
- must declare every capability consumed. Fresh previews do not register new role keys;
2815
- activate a release before granting them. Authoring/collaborator permissions remain separate.
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.
2816
3106
 
2817
3107
  ### Repository Pulls
2818
3108
 
@@ -2866,6 +3156,18 @@ contract and retry guidance. Agents only see this guidance when their instructio
2866
3156
  load the page or the installed feedback skill.
2867
3157
 
2868
3158
 
2869
- ### Planned verified service policy support
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
2870
3164
 
2871
- The unpublished Studio CLI 0.7.0 release chain carries ORM 2.7.1. Namespace policies using `servicePrincipal()` require the matching deployed IR v6 runtime. Before registration, `orm apply` checks authenticated target protocol support and refuses an unavailable or older runtime. Artifact Studio 0.10.1, Managed Functions 0.4.5 and Pipeline Spec 0.3.0 remain awaiting publication in this same chain; package versions alone do not prove rollout. The existing `workspace:*` consumer dependencies resolve to ORM 2.7.1 when the reviewed chain is packed.
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.
@@ -1,3 +1,3 @@
1
1
  import type { ParsedArgs } from '../process/commands.js';
2
- export declare const ACCESS_USAGE = "usage:\n seq-studio access definitions <artifact|function|orm> <resource-id> -e <env>\n seq-studio access resolve <artifact|function|orm> <resource-id> -e <env>\n seq-studio access list <artifact|function|orm> <resource-id> -e <env> [--floor | --key <key>]\n seq-studio access grant <artifact|function|orm> <resource-id> -e <env>\n (--floor | --key <key>) --principal-type <user|group|organization> --principal-id <id>\n seq-studio access revoke <artifact|function|orm> <resource-id> -e <env>\n (--floor | --key <key>) --principal-type <user|group|organization> --principal-id <id>\n\n All results are JSON (--json is also accepted). Authenticate: seq-studio login --env <env>.\n Resource IDs are artifact project IDs, function IDs, or ORM namespace names.\n definitions lists declared roles/capabilities; resolve shows the CALLER's effective claims.\n list defaults to direct role/capability grants; --floor lists runtime entry access.\n --floor is end_user for artifacts/ORM and invoker for functions. A custom key can\n be granted with --key; it must be declared and grantable on that resource.\n User IDs are authenticated subjects (auth whoami); groups use directory IDs;\n organizations use tenant slugs. Service accounts use --principal-type user\n --principal-id 'service-account|<account-id>'. Never pass an email in place of an ID.\n Grant/list/revoke require existing grant-manager authority on the resource.\n Service-account grants also require authority to act as that account.\n These commands manage runtime access; deployment/collaborator permissions remain separate.\n";
2
+ export declare const ACCESS_USAGE: string;
3
3
  export declare function runAccessCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;