@sequenceholdings/studio-cli 0.4.7 → 0.5.1
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 +78 -50
- package/dist/app/commands.d.ts +1 -1
- package/dist/app/commands.js +28 -3
- package/dist/app/readme.js +6 -2
- package/dist/app/scaffold.js +1 -1
- package/dist/artifact/delegate.js +4 -4
- package/dist/auth-cmds/commands.d.ts +1 -13
- package/dist/auth-cmds/commands.js +11 -246
- package/dist/bin.js +1 -1
- package/dist/command-contract.d.ts +11 -5
- package/dist/command-contract.js +4 -3
- package/dist/command-help.d.ts +2 -2
- package/dist/command-help.js +14 -16
- package/dist/main.d.ts +3 -2
- package/dist/main.js +11 -5
- package/dist/pipeline/clone-deploy.d.ts +1 -2
- package/dist/pipeline/clone-deploy.js +6 -8
- package/dist/pipeline/commands.js +1 -1
- package/dist/pipeline/lifecycle.d.ts +3 -1
- package/dist/pipeline/lifecycle.js +12 -4
- package/dist/repos/commands.d.ts +2 -11
- package/dist/repos/commands.js +70 -156
- package/dist/repos/git-clone.d.ts +1 -10
- package/dist/repos/git-clone.js +1 -49
- package/dist/repos/git-credential.d.ts +15 -0
- package/dist/repos/git-credential.js +91 -0
- package/dist/templates/catalog.d.ts +69 -0
- package/dist/templates/catalog.js +68 -0
- package/dist/templates/commands.d.ts +29 -0
- package/dist/templates/commands.js +443 -0
- package/package.json +12 -11
- package/dist/pat-hints.d.ts +0 -15
- package/dist/pat-hints.js +0 -28
package/README.md
CHANGED
|
@@ -16,13 +16,19 @@ seq-studio agents plan -e <env>
|
|
|
16
16
|
seq-studio artifact deploy -e <env>
|
|
17
17
|
seq-studio orm init lending
|
|
18
18
|
seq-studio pipeline validate
|
|
19
|
+
seq-studio templates list -e <env>
|
|
20
|
+
seq-studio init my-app --template <name>@<version> -e <env>
|
|
19
21
|
seq-studio envs list
|
|
20
22
|
seq-studio doctor
|
|
21
23
|
```
|
|
22
24
|
|
|
25
|
+
Published repository templates are available only to identities with reader
|
|
26
|
+
access to the environment's template catalog and repository. `init --template`
|
|
27
|
+
verifies and copies the selected release into a new or empty directory.
|
|
28
|
+
|
|
23
29
|
> **Note:** all network commands require a Sequence platform account with the
|
|
24
|
-
> appropriate permissions. Without one, the offline commands
|
|
25
|
-
> (`init`, `lint`, `simulate`, `build`, `bundle inspect`, `agents init`,
|
|
30
|
+
> appropriate permissions. Without one, only the offline commands
|
|
31
|
+
> (`init` without `--template`, `lint`, `simulate`, `build`, `bundle inspect`, `agents init`,
|
|
26
32
|
> `agents validate`, offline `agents plan`, `pipeline init`, `pipeline validate`) work.
|
|
27
33
|
> Repo and function command help is also available without an account; for
|
|
28
34
|
> example, `seq-studio repos create --help` and `seq-studio functions invoke --help`.
|
|
@@ -176,7 +182,7 @@ locations, dependencies, and deployment selection.
|
|
|
176
182
|
|
|
177
183
|
| Command | What it does |
|
|
178
184
|
|---------|--------------|
|
|
179
|
-
| `seq-studio init <dir> --with <kinds>` | Scaffold a version
|
|
185
|
+
| `seq-studio init <dir> --with <kinds>` | Scaffold a version 3 app, root pnpm workspace, shared package, README, and selected primitives |
|
|
180
186
|
| `seq-studio add <kind> <name> [--depends-on <ids>] [--template <t>]` | Add any primitive, including additional ORM namespaces and UIs |
|
|
181
187
|
| `seq-studio add package <name>` | Add a shared TypeScript package to the manifest and pnpm workspace |
|
|
182
188
|
| `seq-studio deploy -e <env> [--yes] [--only id1,id2] [--dry-run]` | Validate and deploy the selected app graph, including prerequisites |
|
|
@@ -224,6 +230,11 @@ preserves its git remote and existing ignores, replaces the seed README, and
|
|
|
224
230
|
refuses ordinary non-empty repositories. The initial UI stays at `artifact/`;
|
|
225
231
|
additional UIs live under `artifacts/<name>/`.
|
|
226
232
|
|
|
233
|
+
New scaffolds use schema version 3. Deploying all of their primitives registers
|
|
234
|
+
the app as an Application visible in Builder Studio; scaffolding alone does not
|
|
235
|
+
create a project there. Roles and grants are configured in Atlas after registration.
|
|
236
|
+
Existing version 2 manifests remain supported for bundles that do not register.
|
|
237
|
+
|
|
227
238
|
### One workspace, shared packages
|
|
228
239
|
|
|
229
240
|
Install once from the root and commit the generated `pnpm-lock.yaml`. The root
|
|
@@ -265,7 +276,7 @@ resolved again by the function service, just as in standalone function deploys.
|
|
|
265
276
|
### Manifest and deployment behavior
|
|
266
277
|
|
|
267
278
|
```yaml
|
|
268
|
-
schema_version:
|
|
279
|
+
schema_version: 3
|
|
269
280
|
app:
|
|
270
281
|
id: loan-tools
|
|
271
282
|
title: Loan Tools
|
|
@@ -292,7 +303,7 @@ deploy:
|
|
|
292
303
|
on_error: stop
|
|
293
304
|
```
|
|
294
305
|
|
|
295
|
-
|
|
306
|
+
Versions 2 and 3 topologically order `depends_on` prerequisites. Optional `deploy.order`
|
|
296
307
|
is a preference among ready primitives. `--only` includes the selected primitives'
|
|
297
308
|
transitive prerequisites; use app primitive IDs, not agent/process runtime IDs.
|
|
298
309
|
Agent and process entries may set `only` to select definitions from their source
|
|
@@ -345,7 +356,7 @@ ledger. Init creates the namespace source; it does not create this reviewed
|
|
|
345
356
|
baseline automatically. A namespace without migrations fails deployment
|
|
346
357
|
preflight with instructions to run `orm diff`.
|
|
347
358
|
|
|
348
|
-
Before any deployment,
|
|
359
|
+
Before any deployment, versions 2 and 3 validate and compile the selected sources.
|
|
349
360
|
`--dry-run` performs this preflight without deploying. Pipeline preflight reads
|
|
350
361
|
the remote repository, validates its source, and pins the resolved commit, so a
|
|
351
362
|
pipeline dry run needs network access and authentication. Other local primitive
|
|
@@ -365,7 +376,7 @@ not run them. Removing a manifest entry never implicitly deletes a resource.
|
|
|
365
376
|
|
|
366
377
|
`deploy.on_error` defaults to `stop`. `continue` deploys independent primitives
|
|
367
378
|
and skips dependents of failed/skipped prerequisites. The operation is not atomic:
|
|
368
|
-
successful deployments remain if a later primitive fails.
|
|
379
|
+
successful deployments remain if a later primitive fails. Versions 2 and 3 record the
|
|
369
380
|
plan and outcomes in `.sequence/deployments/<encoded-env>.json`, ignored by Git.
|
|
370
381
|
|
|
371
382
|
Existing version 1 manifests retain their explicit/kind ordering, exact `--only`
|
|
@@ -774,6 +785,14 @@ starting another rehearsal.
|
|
|
774
785
|
|
|
775
786
|
### Registered SQL operations in development builds
|
|
776
787
|
|
|
788
|
+
The planned Studio CLI 0.5.0 package chain also carries default namespace SQL:
|
|
789
|
+
ORM 2.6.0, Artifact Studio 0.7.0, and Managed Functions 0.4.0. With the matching
|
|
790
|
+
Atlas runtime, app/function executors expose `sql({ sql, parameters })` without
|
|
791
|
+
an authored operation or manifest. Namespace access, object policies, foreign
|
|
792
|
+
exports and delegated table scopes still apply. This is an SDK execution path,
|
|
793
|
+
not a new CLI command; `orm execute` continues using generated manifests for
|
|
794
|
+
registered operations. These source versions require publication and rollout.
|
|
795
|
+
|
|
777
796
|
Development builds containing SQL operation support also discover exported
|
|
778
797
|
`defineOperation({ language: 'sql', kind: 'query', ... })` definitions under
|
|
779
798
|
`operations/**/*.ts`, or equivalent `*.operation.json` files. Import the
|
|
@@ -813,7 +832,7 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
813
832
|
| `seq-studio process lint [--dir <path>] [--offline]` | Static checks (graph, return contracts, agent schema, timeouts, and JSONata syntax); `--offline` skips live agent-schema lookup |
|
|
814
833
|
| `seq-studio process plan [--dir <path>] -e <env>` | Build bundle, diff against currently-active version |
|
|
815
834
|
| `seq-studio process apply [--dir <path>] -e <env> [--only <id1,id2>]` | Build → register bundle → promote each process. `--only` promotes just the named process ids (the bundle still contains the whole root — registration is inert) |
|
|
816
|
-
| `seq-studio process apply --repo processes/<name> [--ref <r>] -e <env> [--only <id1,id2>]` | Same as above, but materializes the source from a platform git-service repo. Pinned commit SHA is injected as bundle provenance.
|
|
835
|
+
| `seq-studio process apply --repo processes/<name> [--ref <r>] -e <env> [--only <id1,id2>]` | Same as above, but materializes the source from a platform git-service repo. Pinned commit SHA is injected as bundle provenance. Uses your `seq-studio login` (or the target realm's M2M JSON source path for CI) |
|
|
817
836
|
| `seq-studio process test [--dir <path>] -e <env> [--offline]` | CI wrapper: lint + plan, non-zero exit on errors or BREAKING diffs; see the offline limitation below |
|
|
818
837
|
| `seq-studio process simulate <id> [--dir <path>]` | Isolated child-process walk with stubbed runners and hardened JSONata data-flow mapper evaluation (offline) |
|
|
819
838
|
| `seq-studio process bundle build [--dir <path>] [-o file.json]` | Build a bundle locally |
|
|
@@ -869,7 +888,7 @@ are discovered, the bundle is built with the pinned commit as provenance, and th
|
|
|
869
888
|
temp tree is cleaned up — even on error. Only the `processes` namespace is
|
|
870
889
|
accepted; other namespaces (artifacts, managed-functions) are rejected.
|
|
871
890
|
|
|
872
|
-
Auth: same as `artifact deploy --repo` — `
|
|
891
|
+
Auth: same as `artifact deploy --repo` — your `seq-studio login` token for the smart-HTTP
|
|
873
892
|
clone path, or the target realm's M2M secret for CI's JSON materialize path.
|
|
874
893
|
Those credentials remain in the parent CLI and are not forwarded to dependency
|
|
875
894
|
installation or process build tooling. Each install uses fresh temporary
|
|
@@ -1480,7 +1499,7 @@ process simulations run in short-lived children with an allowlisted runtime
|
|
|
1480
1499
|
environment and a synthetic home/config directory. Parent bearer tokens, Auth0
|
|
1481
1500
|
M2M secrets, Doppler tokens, cloud credentials, GitHub tokens, and user config
|
|
1482
1501
|
files are not inherited. The platform Git Service clone path passes only its
|
|
1483
|
-
|
|
1502
|
+
selected login token to `git` through an ephemeral askpass helper.
|
|
1484
1503
|
This is a credential-inheritance boundary, not an OS filesystem sandbox:
|
|
1485
1504
|
child code still runs as the invoking user and must be treated as trusted to
|
|
1486
1505
|
read files that it names explicitly outside the synthetic home.
|
|
@@ -1492,47 +1511,44 @@ These three look similar but fetch different things:
|
|
|
1492
1511
|
| Command | What you get |
|
|
1493
1512
|
|---------|--------------|
|
|
1494
1513
|
| `seq-studio artifact pull <project-id>` | Active **deployment** source files for an Artifact Studio project (built bundle inputs), keyed by project UUID — **not** git history |
|
|
1495
|
-
| `seq-studio repos clone <ns>/<name>` |
|
|
1514
|
+
| `seq-studio repos clone <ns>/<name>` | Real Git checkout using your login and a repository-local credential helper. Explicit `--transport json` downloads files only |
|
|
1496
1515
|
| `seq-studio artifact deploy --repo <ns>/<name>` | Build and deploy repository source; React/HTML builds locally, while Next.js uses Atlas's verified hosted build. |
|
|
1497
1516
|
|
|
1498
|
-
##
|
|
1499
|
-
|
|
1500
|
-
Personal Access Tokens authenticate `git clone` / `git push` (Basic auth:
|
|
1501
|
-
any username, PAT as password). **You do not need `seqapi`.**
|
|
1502
|
-
|
|
1503
|
-
### Everyone (recommended) — Atlas UI
|
|
1517
|
+
## Git authentication
|
|
1504
1518
|
|
|
1505
|
-
|
|
1506
|
-
(`<your-atlas-url>/settings/tokens` — run `seq-studio envs list` for the
|
|
1507
|
-
URLs visible to your identity)
|
|
1508
|
-
2. **New token** → scopes `repo:read` (add `repo:write` for push) → copy once
|
|
1509
|
-
Merge is a repository grant (Merge / Admin), not a PAT scope.
|
|
1510
|
-
3. Export and clone:
|
|
1519
|
+
Use your existing platform login for a real Git checkout:
|
|
1511
1520
|
|
|
1512
1521
|
```bash
|
|
1513
|
-
|
|
1522
|
+
seq-studio login --env <env>
|
|
1514
1523
|
seq-studio repos clone <namespace>/<repo> -e <env>
|
|
1515
|
-
|
|
1524
|
+
cd <repo>
|
|
1525
|
+
git pull
|
|
1526
|
+
git push
|
|
1516
1527
|
```
|
|
1517
1528
|
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1529
|
+
No PAT is required. `repos clone` configures a repository-local credential helper
|
|
1530
|
+
that reads your current login token for that exact environment and repository.
|
|
1531
|
+
It never stores the token in the remote URL or Git config, and does not pass it
|
|
1532
|
+
to inherited credential stores. Keep `seq-studio` installed on your `PATH`.
|
|
1533
|
+
Once your session expires, run `seq-studio login --env <env>` and retry;
|
|
1534
|
+
Git itself does not open a browser or silently switch to a machine identity.
|
|
1535
|
+
Repository grants and protected-branch rules still apply.
|
|
1522
1536
|
|
|
1523
|
-
|
|
1537
|
+
This requires an Atlas deployment that supports login-token Git authentication.
|
|
1538
|
+
Deploy login-capable server support before upgrading the CLI; this CLI cannot
|
|
1539
|
+
authenticate Git against older PAT-only servers. `clone` no longer silently downloads a files-only tree.
|
|
1540
|
+
Use `seq-studio repos pull` or `repos clone --transport json` explicitly when you want files without `.git`.
|
|
1524
1541
|
|
|
1525
|
-
|
|
1526
|
-
seq-studio login # add --env <registered-opco-env> for a tenant realm
|
|
1527
|
-
seq-studio auth pat create --name laptop --scopes repo:read,repo:write -e <env>
|
|
1528
|
-
# optional: --expires 1d|7d|30d|90d|1y|never (default 30d)
|
|
1529
|
-
# optional: --store-credentials # git credential approve for the env host
|
|
1542
|
+
### Retired personal access tokens
|
|
1530
1543
|
|
|
1531
|
-
seq-studio
|
|
1532
|
-
|
|
1533
|
-
|
|
1544
|
+
Git authentication requires a human `seq-studio login --env <env>` session.
|
|
1545
|
+
`ATLAS_GIT_PAT` is ignored; `auth pat` no longer issues or manages credentials.
|
|
1546
|
+
For an existing PAT-backed checkout, clone again to install the repository-local
|
|
1547
|
+
login helper. Old globally stored Git credentials are not modified automatically.
|
|
1534
1548
|
|
|
1535
|
-
|
|
1549
|
+
M2M identities cannot authenticate Git. Supported headless repository build
|
|
1550
|
+
workflows continue to materialize source through the JSON API; they never borrow
|
|
1551
|
+
a human identity or extend a human login's expiry.
|
|
1536
1552
|
|
|
1537
1553
|
## Repos commands
|
|
1538
1554
|
|
|
@@ -1540,8 +1556,7 @@ Add `--help` to a repo command to read its usage offline, without an
|
|
|
1540
1556
|
environment or credentials.
|
|
1541
1557
|
|
|
1542
1558
|
`repos create` creates the hosted repository; it does not configure Git in your
|
|
1543
|
-
current folder. For a new local checkout, use `repos clone`
|
|
1544
|
-
and `--full` to get `origin`, branch tracking, and complete history for your
|
|
1559
|
+
current folder. For a new local checkout, use `seq-studio login`, then `repos clone --full` to get `origin`, branch tracking, and complete history for your
|
|
1545
1560
|
editor's Git graph. For an existing folder, discover the clone URL with
|
|
1546
1561
|
`repos show`, inspect `git remote -v`, and add a missing `origin` with
|
|
1547
1562
|
`git remote add origin <clone-url>`, then `git fetch origin`. Fetching does not
|
|
@@ -1553,7 +1568,7 @@ for handling folders with no commits or separate local history. Replace
|
|
|
1553
1568
|
`<atlas-origin>` with the actual Atlas URL supplied by your platform administrator
|
|
1554
1569
|
for the target environment. Verify with
|
|
1555
1570
|
`git branch -vv` and `git status --short --branch`. Plain Git needs its own
|
|
1556
|
-
credential
|
|
1571
|
+
credential helper configured for the current `seq-studio login`; it does not read `ATLAS_GIT_PAT`.
|
|
1557
1572
|
|
|
1558
1573
|
`seq-studio repos <sub>` manages repos in the platform Git Service over the
|
|
1559
1574
|
JSON API — the same repos `--repo <ns>/<name>` sources build from.
|
|
@@ -1564,7 +1579,7 @@ JSON API — the same repos `--repo <ns>/<name>` sources build from.
|
|
|
1564
1579
|
| `seq-studio repos namespaces [create <slug>] -e <env>` | list namespaces, or create one (creator becomes owner) |
|
|
1565
1580
|
| `seq-studio repos show <ns>/<name> -e <env>` | detail: id, branches, clone URL; artifact project id when slug matches |
|
|
1566
1581
|
| `seq-studio repos create <ns>/<name> -e <env> [--default-branch <b>] [--git-backend walgit]` | create a repo, seeded with a README on `main`. The server picks the backend (walgit wherever it is configured). `--git-backend walgit` creates it empty, for pushing existing history. Needs namespace write. |
|
|
1567
|
-
| `seq-studio repos clone <ns>/<name> \| --url <clone-url> \| --id <uuid> -e <env> [--ref <r>] [--output <dir>] [--force] [--full] [--transport auto\|git\|json]` | smart-HTTP `git clone --depth 1`
|
|
1582
|
+
| `seq-studio repos clone <ns>/<name> \| --url <clone-url> \| --id <uuid> -e <env> [--ref <r>] [--output <dir>] [--force] [--full] [--transport auto\|git\|json]` | smart-HTTP `git clone --depth 1` using login (`--full` fetches history; a commit SHA stays full). Configures login for subsequent Git commands. Use files-only `--transport json` for `<ns>/<name>`. `--out` remains an alias for `--output`. |
|
|
1568
1583
|
| `seq-studio repos pull <ns>/<name> -e <env> [--ref <r>] [--out <dir>] [--force]` | always materialize via JSON API (no `.git` dir); refuses a non-empty destination unless `--force` |
|
|
1569
1584
|
| `seq-studio repos delete <ns>/<name> -e <env> [--yes]` | delete a repo — interactive confirm unless `--yes` |
|
|
1570
1585
|
| `seq-studio repos ci init [--dir <repository>]` | create `.seq/pipeline.yml` with native defaults; offline, preserves existing configuration |
|
|
@@ -1573,9 +1588,10 @@ JSON API — the same repos `--repo <ns>/<name>` sources build from.
|
|
|
1573
1588
|
| `seq-studio repos ci require <ns>/<name> --check <name> -e <env>` | disabled legacy required-check control; use native pipeline discovery |
|
|
1574
1589
|
| `seq-studio repos ci import <ns>/<name> -e <env> [--ref <r>]` | disabled legacy required-check control; use native pipeline discovery |
|
|
1575
1590
|
|
|
1576
|
-
`show` prints the smart-HTTP clone URL (`…/repos/<id>/git`).
|
|
1577
|
-
|
|
1578
|
-
|
|
1591
|
+
`show` prints the smart-HTTP clone URL (`…/repos/<id>/git`). Prefer `repos clone`
|
|
1592
|
+
to configure Git authentication automatically. The helper protocol command is
|
|
1593
|
+
`seq-studio auth git-credential --env <env> --url <clone-url> <get|store|erase>`;
|
|
1594
|
+
it is invoked by Git and must not be run to print credentials into a terminal.
|
|
1579
1595
|
|
|
1580
1596
|
To enable native repository checks, run this from the checkout containing your
|
|
1581
1597
|
`sequence.app.yml` or supported standalone resource manifest:
|
|
@@ -1626,6 +1642,11 @@ the old file in one commit. Both files together, invalid syntax and duplicate
|
|
|
1626
1642
|
YAML keys fail planning. Empty native `targets` means use discovered inventory
|
|
1627
1643
|
defaults; it does not disable required checks.
|
|
1628
1644
|
|
|
1645
|
+
In a multi-application repository, scope CI with `.seq/repository.yml`: list the
|
|
1646
|
+
checked `applications:` and put every other deployable path under `ignore:`.
|
|
1647
|
+
Repository CI never checks or deploys ignored paths, and they may not overlap a
|
|
1648
|
+
declared root.
|
|
1649
|
+
|
|
1629
1650
|
Without `--pr`, `ci show` previews the selected ref. For native schema version 2
|
|
1630
1651
|
it reports discovery and points to the authoritative PR plan. Legacy `checks`
|
|
1631
1652
|
declarations and package-script discovery remain preview-only: they post neutral
|
|
@@ -1676,7 +1697,7 @@ first listed stage directory; without config it keeps using the package root.
|
|
|
1676
1697
|
|
|
1677
1698
|
`--root` selects a contained Pipeline package inside the repository. The directory becomes the package and Databricks bundle root, so its `*.stage.yml`, `src/`, manifests, contracts, schemas, and extra resources keep their normal root-relative layout. Each repository/root pair is an independent release unit; sibling pipelines and unrelated app files are not included in its bundle. Omitting `--root` preserves the historical whole-repository release unit.
|
|
1678
1699
|
|
|
1679
|
-
`seq-studio pipeline deploy --dir <checkout> --repo <namespace>/<slug> -e <env>` publishes a clean local checkout into that environment's git service, then deploys the published commit through the same path. It is available on targets that do not require approval (`dev`, `staging`). BankSouth and production still deploy a commit that already exists in that environment's git service.
|
|
1700
|
+
`seq-studio pipeline deploy --dir <checkout> --repo <namespace>/<slug> -e <env>` publishes a clean local checkout into that environment's git service, then deploys the published commit through the same path. It is available on targets that do not require approval (`dev`, `staging`). BankSouth and production still deploy a commit that already exists in that environment's git service. Log in with `seq-studio login -e <env>` before publishing; the same user authenticates API and Git requests. Do not pass `--ref` with `--dir`. When the repository is created by this command, `main` is set to the published commit so a later clone without `--ref` resolves; an existing repository's default branch is left unchanged.
|
|
1680
1701
|
| `seq-studio pipeline status --deployment-id <id> -e <env> [--json]` | Fetch the current remote deployment status without changing it. Use this public command to continue monitoring after local polling stops |
|
|
1681
1702
|
| `seq-studio pipeline adopt --stage <slug> --ref <sha\|branch> [--root <directory>] -e <env> [--target <id>] --native-id <id> --approved-by <you> [--resource-key <key>] [--kind job\|dlt_pipeline] [--old-source-removal-pr <url>] [--repo <namespace>/<slug>]` | Bind a live Databricks job/pipeline into the stage without recreation (`bundle deployment bind` on Trigger). Always requires `--approved-by` naming the caller. When the key is still in the monorepo DAB, pass `--old-source-removal-pr` and follow the returned cutover checklist: unbind the old bundle state without deleting the remote, then remove its DAB declaration and add the target-specific adopted-resource entry in the same PR before redeploying. |
|
|
1682
1703
|
| `seq-studio pipeline unbind --stage <slug> --ref <sha\|branch> [--root <directory>] -e <env> [--target <id>] --approved-by <you> [--resource-key <key>] [--repo <namespace>/<slug>]` | Release an adopted binding on Trigger; the remote object stays live (never deleted) |
|
|
@@ -1691,9 +1712,9 @@ matches a target id or when the endpoint has exactly one target.
|
|
|
1691
1712
|
If Git authentication fails for a named repository, inspect its source with
|
|
1692
1713
|
`seq-studio repos clone pipelines/<name> -e <env> --transport json --output ./source`.
|
|
1693
1714
|
This explicitly uses your Atlas session and creates no `.git` directory. It is
|
|
1694
|
-
suitable for source inspection; obtain a Git checkout with
|
|
1715
|
+
suitable for source inspection; obtain a Git checkout with `seq-studio login` for that
|
|
1695
1716
|
environment when you need to push commits. URL/id-only clones require Git
|
|
1696
|
-
transport and a
|
|
1717
|
+
transport and a current user login. Check repository access and login expiry before retrying.
|
|
1697
1718
|
|
|
1698
1719
|
### Run a repository through the managed pipeline workflow
|
|
1699
1720
|
|
|
@@ -1861,6 +1882,13 @@ undocumented physical columns may be absent here. Use `schema` for live column
|
|
|
1861
1882
|
verification, then `sample` and `query` for values. Schema reads annotate observed
|
|
1862
1883
|
columns only; row queries do not infer descriptions for computed expressions.
|
|
1863
1884
|
|
|
1885
|
+
For ingestion feeds, `schema`, `sample`, and `query` use the active deployment's
|
|
1886
|
+
declared format. JSON, CSV, and custom-format feeds read the materialized bronze
|
|
1887
|
+
table, not raw landing files; a missing table reports a not-materialized error (409)
|
|
1888
|
+
rather than a successful empty result. Parquet feeds retain landing-volume reads,
|
|
1889
|
+
as do historical deployments that omit a format. These commands do not activate
|
|
1890
|
+
decoders, materialize a feed, or establish ingestion completeness.
|
|
1891
|
+
|
|
1864
1892
|
`assets` exports the latest registered declarations, including undeployed assets.
|
|
1865
1893
|
With `assets --repo`, the list, contract export, and total all match that repository.
|
|
1866
1894
|
|
|
@@ -2170,7 +2198,7 @@ the normal local Atlas authorization and lifecycle, with a dedicated development
|
|
|
2170
2198
|
GCS bucket. The standalone `functions dev` harness does not mint storage delegation.
|
|
2171
2199
|
|
|
2172
2200
|
|
|
2173
|
-
## Composed applications (0.
|
|
2201
|
+
## Composed applications (0.4.0)
|
|
2174
2202
|
|
|
2175
2203
|
The public builder path combines standalone Artifacts, ORM namespaces, and Managed
|
|
2176
2204
|
Functions in a platform repository. Use the environment's `/docs/getting-started/builder-handoff`
|
package/dist/app/commands.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import type { ParsedArgs } from '../process/commands.js';
|
|
8
8
|
export declare const APP_INIT_USAGE: string;
|
|
9
9
|
export declare const APP_ADD_USAGE: string;
|
|
10
|
-
export declare const APP_DEPLOY_USAGE = "usage:\n seq-studio deploy -e <env> [options]\n\n Deploy the app declared in sequence.app.yml.
|
|
10
|
+
export declare const APP_DEPLOY_USAGE = "usage:\n seq-studio deploy -e <env> [options]\n\n Deploy the app declared in sequence.app.yml. Versions 2 and 3 use\n depends_on prerequisites; deploy.order optionally orders ready primitives.\n Runs each kind's existing command:\n orm \u2192 seq-studio orm apply <path> -e <env>\n function \u2192 seq-studio functions deploy --dir <path> -e <env> [--yes]\n agent \u2192 seq-studio agents apply --dir <path> -e <env> [--yes]\n process \u2192 seq-studio process apply --dir <path> -e <env>\n pipeline \u2192 seq-studio pipeline deploy --repo <repo> --ref <ref> -e <env>\n artifact \u2192 seq-studio artifact deploy <path> -e <env>\n\n Options:\n -e, --env <name> target environment (required)\n --dir <path> app root (default: cwd; must contain sequence.app.yml)\n --only <id1,id2> deploy these ids and their prerequisites (v2)\n --yes non-interactive (forwarded to primitive commands)\n --dry-run validate/compile selected sources without deploying (v2)\n --approved-by <sub> recorded caller approval for protected pipeline targets\n --wait-timeout <d> pipeline polling timeout, e.g. 10m or 2h\n\n Examples:\n seq-studio deploy -e staging --yes\n seq-studio deploy -e local --only get-pokemon --yes\n seq-studio deploy --dir ./pokedex -e staging --dry-run\n\n Run from the app root (directory with sequence.app.yml), or pass --dir.\n Version 1 manifests keep their existing ordering and exact --only behavior.\n Pipelines require repo and ref in their manifest entry.\n ORM namespaces require generated code and a reviewed migration ledger:\n seq-studio orm generate <path> && seq-studio orm diff <path>\n Commit generated migrations before the first deployment and schema changes.\n Pipeline preflight reads the remote source and pins its commit; dry-run\n therefore needs network/auth for pipelines. Version 1 dry-run only lists.\n Version 2 writes the result to .sequence/deployments/<environment>.json.\n";
|
|
11
11
|
export declare function runAppInitCommand(args: ParsedArgs): Promise<number>;
|
|
12
12
|
export declare function runAppAddCommand({ kindArg, args, }: {
|
|
13
13
|
kindArg: string | undefined;
|
package/dist/app/commands.js
CHANGED
|
@@ -16,16 +16,21 @@ const LOG = '[seq-studio]';
|
|
|
16
16
|
export const APP_INIT_USAGE = `usage:
|
|
17
17
|
seq-studio init <dir> --with <kinds> [options]
|
|
18
18
|
seq-studio init <dir> --orm --function --artifact [options]
|
|
19
|
+
seq-studio init <dir> --template <name>@<version> -e <deployment>
|
|
19
20
|
|
|
20
21
|
Scaffold an app monorepo with ${APP_MANIFEST_FILENAME}, a Sequence app
|
|
21
22
|
README.md, AGENTS.md + CLAUDE.md guidance, and one subfolder per
|
|
22
|
-
selected primitive.
|
|
23
|
+
selected primitive. New manifests use schema version 3 and register in
|
|
24
|
+
Builder Studio after a successful deploy. At least one kind is required.
|
|
25
|
+
A git-service clone
|
|
23
26
|
whose README.md contains the seq-studio seed marker is a valid target;
|
|
24
27
|
ordinary docs-only repositories are refused so we do not overwrite them.
|
|
25
28
|
|
|
26
29
|
Kinds: ${PRIMITIVE_KINDS.join(', ')}
|
|
27
30
|
|
|
28
31
|
Options:
|
|
32
|
+
--template <n@v> initialize from a published template in the selected deployment
|
|
33
|
+
-e, --env <name> registered deployment whose template catalog to read
|
|
29
34
|
--with <k1,k2,…> comma-separated kinds to scaffold
|
|
30
35
|
--orm --function … boolean aliases for --with
|
|
31
36
|
--function-name <n> name/slug for the first function (default: hello)
|
|
@@ -37,7 +42,8 @@ export const APP_INIT_USAGE = `usage:
|
|
|
37
42
|
seq-studio init pokedex --with orm,function,artifact
|
|
38
43
|
seq-studio init pokedex --with orm,function,artifact --function-name get-pokemon
|
|
39
44
|
seq-studio init loan-tools --with function --function-name get-loan
|
|
40
|
-
|
|
45
|
+
seq-studio init review-app --with orm,function,agent,process,pipeline,artifact
|
|
46
|
+
seq-studio init review-app --template full-stack@1.0.0 -e banksouth-mortgage
|
|
41
47
|
`;
|
|
42
48
|
export const APP_ADD_USAGE = `usage:
|
|
43
49
|
seq-studio add <kind> <name> [--depends-on <ids>] [--pipeline-type <type>] [--template <t>]
|
|
@@ -68,7 +74,7 @@ export const APP_ADD_USAGE = `usage:
|
|
|
68
74
|
export const APP_DEPLOY_USAGE = `usage:
|
|
69
75
|
seq-studio deploy -e <env> [options]
|
|
70
76
|
|
|
71
|
-
Deploy the app declared in ${APP_MANIFEST_FILENAME}.
|
|
77
|
+
Deploy the app declared in ${APP_MANIFEST_FILENAME}. Versions 2 and 3 use
|
|
72
78
|
depends_on prerequisites; deploy.order optionally orders ready primitives.
|
|
73
79
|
Runs each kind's existing command:
|
|
74
80
|
orm → seq-studio orm apply <path> -e <env>
|
|
@@ -143,6 +149,25 @@ export async function runAppInitCommand(args) {
|
|
|
143
149
|
console.error(APP_INIT_USAGE);
|
|
144
150
|
return 1;
|
|
145
151
|
}
|
|
152
|
+
const artifactTemplate = args.flags.template === 'react-vite' || args.flags.template === 'nextjs';
|
|
153
|
+
if (args.flags.template !== undefined && !(artifactTemplate && kinds.length > 0)) {
|
|
154
|
+
try {
|
|
155
|
+
if (args.flags.template === true)
|
|
156
|
+
throw new Error('--template requires <name>@<version>.');
|
|
157
|
+
const env = args.flags.env ?? args.flags.e;
|
|
158
|
+
if (typeof env !== 'string')
|
|
159
|
+
throw new Error('--template requires -e <deployment>.');
|
|
160
|
+
if (kinds.length > 0)
|
|
161
|
+
throw new Error('Use either --template or --with/primitive flags.');
|
|
162
|
+
const { initFromTemplate } = await import('../templates/commands.js');
|
|
163
|
+
await initFromTemplate({ selection: args.flags.template, target, environment: env });
|
|
164
|
+
return 0;
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
printError(error);
|
|
168
|
+
return 1;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
146
171
|
if (kinds.length === 0) {
|
|
147
172
|
console.error(`${LOG} select at least one primitive via --with orm,function,artifact`);
|
|
148
173
|
console.error(APP_INIT_USAGE);
|
package/dist/app/readme.js
CHANGED
|
@@ -65,6 +65,10 @@ ${description}
|
|
|
65
65
|
|
|
66
66
|
This repository is a **seq-studio app bundle**. Its root \`sequence.app.yml\` defines the app's deployable primitives, source locations, and deployment prerequisites. Keep this file, shared packages, primitive manifests, and the root lockfile together in Git.
|
|
67
67
|
|
|
68
|
+
A new scaffold uses schema version 3. After its primitives deploy successfully,
|
|
69
|
+
Atlas registers the app as a Builder Studio project. Scaffolding alone does not
|
|
70
|
+
create a visible project. Configure its roles and grants in Atlas after registration.
|
|
71
|
+
|
|
68
72
|
**Platform documentation:** ${docsLink({ atlasOrigin, label: 'Sequence Platform' })}
|
|
69
73
|
|
|
70
74
|
Documentation lives at \`/docs\` on the Atlas URL for your target environment. Find that URL with \`seq-studio envs list\` or ask your platform administrator; use it wherever \`<atlas-url>\` appears. The environment name is a CLI label, not a hostname. Keep the \`/docs/…\` path when switching environments.
|
|
@@ -155,9 +159,9 @@ seq-studio add agent reviewer
|
|
|
155
159
|
seq-studio add process approvals --depends-on reviewer-agent
|
|
156
160
|
\`\`\`
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
Versions 2 and 3 derive a deterministic order from this graph. An optional \`deploy.order\` only prioritizes primitives whose prerequisites are ready. \`--only <id>\` includes that primitive's prerequisites. \`deploy.on_error: stop\` stops on failure; \`continue\` runs independent primitives and skips dependents of failed or skipped prerequisites. Deployment is not an atomic transaction: already successful primitives remain deployed if a later one fails. Removing an entry does not delete its deployed resource.
|
|
159
163
|
|
|
160
|
-
|
|
164
|
+
Versions 2 and 3 validate and compile the selected sources before deployment. Pipeline preflight reads the remote repository and pins its commit, so its dry run requires network access and authentication. Results are saved under \`.sequence/deployments/<encoded-env>.json\`.
|
|
161
165
|
|
|
162
166
|
Review and deploy from this directory:
|
|
163
167
|
|
package/dist/app/scaffold.js
CHANGED
|
@@ -52,7 +52,7 @@ export async function initAppMonorepo({ rootDir, appId, kinds, names = defaultSc
|
|
|
52
52
|
const withDeps = applyDefaultDependsOn(primitives);
|
|
53
53
|
const shared = await scaffoldSharedPackage({ rootDir: appRoot, appId, name: 'shared' });
|
|
54
54
|
const manifest = {
|
|
55
|
-
schema_version:
|
|
55
|
+
schema_version: 3,
|
|
56
56
|
app: {
|
|
57
57
|
id: appId,
|
|
58
58
|
title: titleizeSlug(appId),
|
|
@@ -41,10 +41,10 @@ const ARTIFACT_USAGE = `usage:
|
|
|
41
41
|
branch/tag/commit (default: the repo's default branch). --path <dir> selects the
|
|
42
42
|
application directory inside that repository (default: its root).
|
|
43
43
|
|
|
44
|
-
Interactive --repo builds clone over smart-HTTP
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
Interactive --repo builds clone over smart-HTTP using your seq-studio login
|
|
45
|
+
and repository read access. No PAT is needed. Headless M2M builds use JSON
|
|
46
|
+
materialize and accept only platform-managed --repo sources. Use --env to
|
|
47
|
+
select the same environment for source and deployment.
|
|
48
48
|
|
|
49
49
|
Next.js applications require Node.js 24 and application-local dependencies
|
|
50
50
|
(pnpm install). dev runs Next locally with native Fast Refresh through an
|
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
-
declare const
|
|
3
|
-
type PatScope = (typeof PAT_SCOPES)[number];
|
|
4
|
-
export declare const AUTH_USAGE = "usage:\n seq-studio auth whoami -e <env> [--json] server-verified identity and target (no tokens)\n seq-studio auth pat create --name <n> -e <env> [--scopes repo:read,repo:write]\n [--expires 1d|7d|30d|90d|1y|never] [--store-credentials]\n seq-studio auth pat list -e <env>\n seq-studio auth pat revoke <id> -e <env> [--yes]\n\n Issue a personal access token for git clone / git push against the platform\n git service.\n\n Authenticate with `seq-studio login`, then run `auth pat create -e <env>`.\n Alternatively, open Atlas \u2192 Settings \u2192 Tokens:\n https://<atlas-host>/settings/tokens\n Sign in, create a token (repo:read / repo:write), copy once, then:\n export ATLAS_GIT_PAT=<token>\n repo:write covers push and PR open; merging a PR requires an FGA Merge\n (or Admin) grant on the repository, not a PAT scope.\n\n On create the raw token is printed ONCE \u2014 store it; Atlas cannot re-show it.\n Git Basic auth: any username (e.g. git), PAT as the password.\n\n Flags: -e/--env <env> (required; see: seq-studio envs list)\n";
|
|
5
|
-
export declare function parsePatScopes(raw: string | undefined): PatScope[];
|
|
6
|
-
/**
|
|
7
|
-
* Map UI-style duration choices to an absolute ISO-8601 expiresAt, or undefined
|
|
8
|
-
* for never. Matches Settings Tokens dialog choices.
|
|
9
|
-
*/
|
|
10
|
-
export declare function resolveExpiresAt(choice: string | undefined): string | undefined;
|
|
11
|
-
export declare function authPatCreateCommand(args: ParsedArgs): Promise<number>;
|
|
12
|
-
export declare function authPatListCommand(args: ParsedArgs): Promise<number>;
|
|
13
|
-
export declare function authPatRevokeCommand(args: ParsedArgs): Promise<number>;
|
|
2
|
+
export declare const AUTH_USAGE = "usage:\n seq-studio auth whoami -e <env> [--json]\n seq-studio auth git-credential --env <env> --url <clone-url> <get|store|erase>\n Git authentication uses seq-studio login. repos clone installs the helper.\n";
|
|
14
3
|
export declare function runAuthCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;
|
|
15
|
-
export {};
|