@sequenceholdings/studio-cli 0.4.6 → 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.
Files changed (39) hide show
  1. package/README.md +180 -74
  2. package/dist/app/commands.d.ts +1 -1
  3. package/dist/app/commands.js +28 -3
  4. package/dist/app/readme.js +12 -4
  5. package/dist/app/scaffold.js +1 -1
  6. package/dist/artifact/delegate.js +4 -4
  7. package/dist/auth-cmds/commands.d.ts +1 -13
  8. package/dist/auth-cmds/commands.js +11 -246
  9. package/dist/bin.js +1 -1
  10. package/dist/command-contract.d.ts +14 -8
  11. package/dist/command-contract.js +5 -4
  12. package/dist/command-help.d.ts +2 -2
  13. package/dist/command-help.js +19 -19
  14. package/dist/main.d.ts +3 -2
  15. package/dist/main.js +12 -6
  16. package/dist/pipeline/clone-deploy.d.ts +1 -2
  17. package/dist/pipeline/clone-deploy.js +6 -8
  18. package/dist/pipeline/commands.js +1 -1
  19. package/dist/pipeline/lifecycle.d.ts +3 -1
  20. package/dist/pipeline/lifecycle.js +12 -4
  21. package/dist/repos/ci-config.d.ts +5 -0
  22. package/dist/repos/ci-config.js +29 -0
  23. package/dist/repos/ci-init.d.ts +4 -0
  24. package/dist/repos/ci-init.js +35 -0
  25. package/dist/repos/ci-status.d.ts +9 -0
  26. package/dist/repos/ci-status.js +49 -0
  27. package/dist/repos/commands.d.ts +8 -20
  28. package/dist/repos/commands.js +182 -233
  29. package/dist/repos/git-clone.d.ts +1 -10
  30. package/dist/repos/git-clone.js +1 -49
  31. package/dist/repos/git-credential.d.ts +15 -0
  32. package/dist/repos/git-credential.js +91 -0
  33. package/dist/templates/catalog.d.ts +69 -0
  34. package/dist/templates/catalog.js +68 -0
  35. package/dist/templates/commands.d.ts +29 -0
  36. package/dist/templates/commands.js +443 -0
  37. package/package.json +12 -11
  38. package/dist/pat-hints.d.ts +0 -15
  39. 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 2 app, root pnpm workspace, shared package, README, and selected primitives |
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: 2
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
- Version 2 topologically orders `depends_on` prerequisites. Optional `deploy.order`
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, version 2 validates and compiles the selected sources.
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. Version 2 records the
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. Requires `ATLAS_GIT_PAT` (or the target realm's M2M secret for CI) |
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` — `ATLAS_GIT_PAT` for the smart-HTTP
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
@@ -1350,6 +1369,36 @@ manifest declarations. Never put a secret in `build.public_env` or `NEXT_PUBLIC_
1350
1369
  Local execution runs as your OS user; Atlas does not sandbox your laptop's
1351
1370
  filesystem or arbitrary outbound connections.
1352
1371
 
1372
+ Browser ORM admission controls are planned for Studio CLI 0.4.7 and Artifact
1373
+ Studio 0.6.7, together with matching platform support. Confirm package
1374
+ publication and environment rollout before using them; this remains part of
1375
+ the internal Next.js pilot. In a schema-v2 manifest, browser
1376
+ `capabilities.data.operations` optionally lists up to 256 exact
1377
+ `namespace/ops/Operation` references. Omission retains table-based admission;
1378
+ an explicit empty list denies all browser ORM operations. Browser `data.read`
1379
+ and `data.write` declarations still bound table and mutation reach.
1380
+
1381
+ Only registered persisted operations qualify; autogenerated `DatasetPreview_*`
1382
+ hashes remain excluded even when a registered operation has the same name.
1383
+ The allowlist selects names, retaining active and previous operation-set
1384
+ fallback. A security-tightened replacement query needs a fresh name with the
1385
+ old name removed from the allowlist, or the older retained hash may still run.
1386
+
1387
+ `capabilities.data.required_capabilities` optionally maps source namespace names
1388
+ to nonempty lists of artifact capability pins. Each pin must be declared in
1389
+ `capabilities.uses` or, for a local bare key, defined under
1390
+ `capabilities.roles.capabilities`. All listed pins are required; accepted forms
1391
+ are `<key>`, `org/<key>`, and `app/<application-id>/<key>`. Namespaces in either
1392
+ control must be reached by
1393
+ browser `data.read` or `data.write`. Keep source namespace names when preview
1394
+ bindings map them to other resources. Atlas checks these requirements against
1395
+ the authenticated user's current artifact claims before delegation, alongside
1396
+ the existing namespace grants and row/write policies. Manifest declarations
1397
+ do not grant access, and browser-provided claims cannot satisfy these checks.
1398
+ These controls apply to direct browser ORM calls. Server SDK, external ingress,
1399
+ and ORM work inside Managed Functions or general API calls retain their own
1400
+ permission contracts. The `createArtifactOrmExecutor` API is unchanged.
1401
+
1353
1402
  For hosted applications, bind an existing managed secret by its name in the
1354
1403
  target deployment's organization and pin the exact numeric version:
1355
1404
 
@@ -1450,7 +1499,7 @@ process simulations run in short-lived children with an allowlisted runtime
1450
1499
  environment and a synthetic home/config directory. Parent bearer tokens, Auth0
1451
1500
  M2M secrets, Doppler tokens, cloud credentials, GitHub tokens, and user config
1452
1501
  files are not inherited. The platform Git Service clone path passes only its
1453
- single scoped PAT to `git` through an ephemeral askpass helper.
1502
+ selected login token to `git` through an ephemeral askpass helper.
1454
1503
  This is a credential-inheritance boundary, not an OS filesystem sandbox:
1455
1504
  child code still runs as the invoking user and must be treated as trusted to
1456
1505
  read files that it names explicitly outside the synthetic home.
@@ -1462,47 +1511,44 @@ These three look similar but fetch different things:
1462
1511
  | Command | What you get |
1463
1512
  |---------|--------------|
1464
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 |
1465
- | `seq-studio repos clone <ns>/<name>` | Repo source tree. With `ATLAS_GIT_PAT`, a real `git clone` via smart-HTTP; otherwise JSON-API materialize (no `.git` dir) |
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 |
1466
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. |
1467
1516
 
1468
- ## Auth (git-service PATs)
1469
-
1470
- Personal Access Tokens authenticate `git clone` / `git push` (Basic auth:
1471
- any username, PAT as password). **You do not need `seqapi`.**
1517
+ ## Git authentication
1472
1518
 
1473
- ### Everyone (recommended) — Atlas UI
1474
-
1475
- 1. Open **Settings → Tokens** in Atlas for your environment
1476
- (`<your-atlas-url>/settings/tokens` — run `seq-studio envs list` for the
1477
- URLs visible to your identity)
1478
- 2. **New token** → scopes `repo:read` (add `repo:write` for push) → copy once
1479
- Merge is a repository grant (Merge / Admin), not a PAT scope.
1480
- 3. Export and clone:
1519
+ Use your existing platform login for a real Git checkout:
1481
1520
 
1482
1521
  ```bash
1483
- export ATLAS_GIT_PAT=atlas_git_…
1522
+ seq-studio login --env <env>
1484
1523
  seq-studio repos clone <namespace>/<repo> -e <env>
1485
- # or: git clone https://git:$ATLAS_GIT_PAT@<your-atlas-host>/api/git-service/repos/<id>/git
1524
+ cd <repo>
1525
+ git pull
1526
+ git push
1486
1527
  ```
1487
1528
 
1488
- You can also open **Repositories → Access tokens** / the clone popover’s
1489
- **Manage tokens** link.
1490
-
1491
- ### CLI mint (optional)
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.
1492
1536
 
1493
- Requires Auth0 login. Same identity as the UI:
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`.
1494
1541
 
1495
- ```bash
1496
- seq-studio login # add --env <registered-opco-env> for a tenant realm
1497
- seq-studio auth pat create --name laptop --scopes repo:read,repo:write -e <env>
1498
- # optional: --expires 1d|7d|30d|90d|1y|never (default 30d)
1499
- # optional: --store-credentials # git credential approve for the env host
1542
+ ### Retired personal access tokens
1500
1543
 
1501
- seq-studio auth pat list -e <env>
1502
- seq-studio auth pat revoke <id> -e <env> --yes
1503
- ```
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.
1504
1548
 
1505
- The raw token is printed **once** on create.
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.
1506
1552
 
1507
1553
  ## Repos commands
1508
1554
 
@@ -1510,8 +1556,7 @@ Add `--help` to a repo command to read its usage offline, without an
1510
1556
  environment or credentials.
1511
1557
 
1512
1558
  `repos create` creates the hosted repository; it does not configure Git in your
1513
- current folder. For a new local checkout, use `repos clone` with `ATLAS_GIT_PAT`
1514
- 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
1515
1560
  editor's Git graph. For an existing folder, discover the clone URL with
1516
1561
  `repos show`, inspect `git remote -v`, and add a missing `origin` with
1517
1562
  `git remote add origin <clone-url>`, then `git fetch origin`. Fetching does not
@@ -1523,7 +1568,7 @@ for handling folders with no commits or separate local history. Replace
1523
1568
  `<atlas-origin>` with the actual Atlas URL supplied by your platform administrator
1524
1569
  for the target environment. Verify with
1525
1570
  `git branch -vv` and `git status --short --branch`. Plain Git needs its own
1526
- credential-manager or PAT prompt setup; it does not read `ATLAS_GIT_PAT`.
1571
+ credential helper configured for the current `seq-studio login`; it does not read `ATLAS_GIT_PAT`.
1527
1572
 
1528
1573
  `seq-studio repos <sub>` manages repos in the platform Git Service over the
1529
1574
  JSON API — the same repos `--repo <ns>/<name>` sources build from.
@@ -1534,36 +1579,79 @@ JSON API — the same repos `--repo <ns>/<name>` sources build from.
1534
1579
  | `seq-studio repos namespaces [create <slug>] -e <env>` | list namespaces, or create one (creator becomes owner) |
1535
1580
  | `seq-studio repos show <ns>/<name> -e <env>` | detail: id, branches, clone URL; artifact project id when slug matches |
1536
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. |
1537
- | `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` when `ATLAS_GIT_PAT` is set (`--full` fetches history; a commit SHA stays full). `--url`/`--id` need no seqapi. Otherwise JSON materialize + PAT hint. `--out` remains an alias for `--output`. |
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`. |
1538
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` |
1539
1584
  | `seq-studio repos delete <ns>/<name> -e <env> [--yes]` | delete a repo — interactive confirm unless `--yes` |
1540
- | `seq-studio repos ci show <ns>/<name> -e <env> [--ref <r>]` | preview CI checks discovered from the ref |
1541
- | `seq-studio repos ci require <ns>/<name> --check <name> -e <env>` | reserved for requiring a named CI check; currently refuses to write until the sandboxed runner is live |
1542
- | `seq-studio repos ci import <ns>/<name> -e <env> [--ref <r>]` | reserved for requiring every discovered check; currently refuses to write until the sandboxed runner is live |
1543
-
1544
- `show` prints the smart-HTTP clone URL (`…/repos/<id>/git`). Basic auth:
1545
- any username, PAT as password. Prefer `repos clone` over hand-rolling the
1546
- tree API.
1547
-
1548
- PR CI discovers `ci/check` from the first available `lint`, `typecheck`, or
1549
- `check` script and `ci/test` from `test`. A `.seq/ci.json` takes precedence;
1550
- its `checks` array can declare script/argv checks or be empty to opt out.
1551
-
1552
- For example:
1553
-
1554
- { "checks": [
1555
- { "phase": "check", "script": "lint" },
1556
- { "phase": "test", "command": ["pnpm", "test"] }
1557
- ] }
1558
-
1559
- Each check needs `phase` (`check` or `test`) and exactly one of `script` or
1560
- `command`; `name` is optional and otherwise defaults to `ci/<phase>`
1561
- (`-2`, etc. for additional checks in that phase).
1562
- Discovery alone never blocks a merge. Until the sandboxed executor is live,
1563
- `repos ci show` is preview-only, Settings controls are disabled, and
1564
- `require`/`import` refuse to write (discovery currently posts `neutral`
1565
- check-runs). Once the executor is live, repo owners can opt in by requiring
1566
- check names in Settings or with `repos ci require`/`repos ci import`.
1585
+ | `seq-studio repos ci init [--dir <repository>]` | create `.seq/pipeline.yml` with native defaults; offline, preserves existing configuration |
1586
+ | `seq-studio repos ci show <ns>/<name> -e <env> --pr <number> [--json]` | inspect the server's discovered pipeline, exact plan and recent runs; JSON retains the complete status response |
1587
+ | `seq-studio repos ci show <ns>/<name> -e <env> [--ref <r>]` | preview pipeline discovery or legacy checks at a ref |
1588
+ | `seq-studio repos ci require <ns>/<name> --check <name> -e <env>` | disabled legacy required-check control; use native pipeline discovery |
1589
+ | `seq-studio repos ci import <ns>/<name> -e <env> [--ref <r>]` | disabled legacy required-check control; use native pipeline discovery |
1590
+
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.
1595
+
1596
+ To enable native repository checks, run this from the checkout containing your
1597
+ `sequence.app.yml` or supported standalone resource manifest:
1598
+
1599
+ ```bash
1600
+ seq-studio repos ci init
1601
+ git add .seq/pipeline.yml
1602
+ git commit -m "Enable repository CI"
1603
+ git push
1604
+ # Open a pull request using Atlas or seq-studio repos pulls create, then inspect it:
1605
+ seq-studio repos ci show artifacts/my-app -e staging --pr 4
1606
+ ```
1607
+
1608
+ The generated file selects the platform's native lint, type-check, test and build
1609
+ defaults for the repository inventory:
1610
+
1611
+ ```yaml
1612
+ schema_version: 2
1613
+ targets: []
1614
+ ```
1615
+
1616
+ Atlas discovers the file on the pull request's head or base and runs checks on
1617
+ PR creation and updates to its head or base. Repository CI and deployment jobs
1618
+ use Buildkite, including for local destinations. Next.js resources may explicitly
1619
+ select Modal for compilation. Each run uses the platform
1620
+ image defaults; no image digest or manual branch-policy setup is
1621
+ needed from the repository author. This is a PR workflow; arbitrary GitHub
1622
+ Actions `on:` triggers and standalone push runs are not supported. Missing
1623
+ platform CI setup appears as unavailable with a reason; it is not a passing or
1624
+ absent pipeline. `ci show --pr` exits 1 for unavailable setup or planning errors.
1625
+
1626
+ Discovery does not change the repository's review or required-check policy.
1627
+ The file enables checks only. Deployment still requires separately authorized
1628
+ resource bindings and current native permissions. Platform administrators retain
1629
+ advanced branch policies for those bindings and approved execution overrides.
1630
+ An existing explicit policy takes precedence over automatic defaults.
1631
+
1632
+ Local development requires an explicitly configured public HTTPS tunnel to Atlas
1633
+ for Buildkite worker requests and signed completion webhooks. Keep the tunnel
1634
+ running; a missing runner or unreachable callback never falls back to laptop
1635
+ execution. Hosted environments use their own HTTPS server URL. Repository
1636
+ Settings → CI shows setup guidance and configured callback URLs; those checks
1637
+ do not prove a worker or webhook can reach the server.
1638
+
1639
+ `ci init` refuses to replace an existing `.seq/pipeline.yml` or create a second
1640
+ file beside legacy `.seq/ci.json`. Migrate a legacy JSON configuration and remove
1641
+ the old file in one commit. Both files together, invalid syntax and duplicate
1642
+ YAML keys fail planning. Empty native `targets` means use discovered inventory
1643
+ defaults; it does not disable required checks.
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
+
1650
+ Without `--pr`, `ci show` previews the selected ref. For native schema version 2
1651
+ it reports discovery and points to the authoritative PR plan. Legacy `checks`
1652
+ declarations and package-script discovery remain preview-only: they post neutral
1653
+ check-runs and cannot satisfy required merge gates. The legacy `require` and
1654
+ `import` commands remain disabled.
1567
1655
 
1568
1656
  ## Pipeline commands
1569
1657
 
@@ -1609,7 +1697,7 @@ first listed stage directory; without config it keeps using the package root.
1609
1697
 
1610
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.
1611
1699
 
1612
- `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. Set `ATLAS_GIT_PAT` (repo:write) before publishing. 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.
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.
1613
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 |
1614
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. |
1615
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) |
@@ -1624,9 +1712,9 @@ matches a target id or when the endpoint has exactly one target.
1624
1712
  If Git authentication fails for a named repository, inspect its source with
1625
1713
  `seq-studio repos clone pipelines/<name> -e <env> --transport json --output ./source`.
1626
1714
  This explicitly uses your Atlas session and creates no `.git` directory. It is
1627
- suitable for source inspection; obtain a Git checkout with a PAT valid for that
1715
+ suitable for source inspection; obtain a Git checkout with `seq-studio login` for that
1628
1716
  environment when you need to push commits. URL/id-only clones require Git
1629
- transport and a PAT. Avoid issuing more PATs without diagnosing the rejection.
1717
+ transport and a current user login. Check repository access and login expiry before retrying.
1630
1718
 
1631
1719
  ### Run a repository through the managed pipeline workflow
1632
1720
 
@@ -1794,6 +1882,13 @@ undocumented physical columns may be absent here. Use `schema` for live column
1794
1882
  verification, then `sample` and `query` for values. Schema reads annotate observed
1795
1883
  columns only; row queries do not infer descriptions for computed expressions.
1796
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
+
1797
1892
  `assets` exports the latest registered declarations, including undeployed assets.
1798
1893
  With `assets --repo`, the list, contract export, and total all match that repository.
1799
1894
 
@@ -1962,6 +2057,17 @@ Compiled Databricks assets use stable, environment-qualified identities: display
1962
2057
 
1963
2058
  Changing a DAB resource key is a delete-and-create operation. Treat these identities as the existing-resource contract when planning, adopting, unbinding, or inspecting a Managed Pipeline; Unity Catalog catalogs, volumes, tables, and synced tables are not renamed by this convention.
1964
2059
 
2060
+ To preserve an existing service-principal owner, a stage can opt into
2061
+ [`retained_resource_owners`](../pipeline-spec/README.md#retain-an-existing-native-resource-owner).
2062
+ Pin the exact target, compiled resource key, workspace, native ID and principal.
2063
+ Planning verifies the existing binding, sole direct owner and expected manager
2064
+ ACL; each deployment pass rechecks live ownership and applies only the checked
2065
+ in-place Databricks plan. This does not transfer ownership or authorize resource
2066
+ creation/replacement. Missing evidence and identity/permission drift remain
2067
+ non-overridable blockers. The supporting pipeline-spec and Atlas/worker releases
2068
+ must be installed first; older clients reject the new YAML field. Pipelines
2069
+ without these declarations keep their existing behavior.
2070
+
1965
2071
  Deletion and recreation remain blocked by default. For an intentional,
1966
2072
  reviewed migration, repeat `--allow-destructive <resource-key>` for every
1967
2073
  eligible finding printed by the plan. Only authenticated `@seqholdings.com`
@@ -2092,7 +2198,7 @@ the normal local Atlas authorization and lifecycle, with a dedicated development
2092
2198
  GCS bucket. The standalone `functions dev` harness does not mint storage delegation.
2093
2199
 
2094
2200
 
2095
- ## Composed applications (0.3.0)
2201
+ ## Composed applications (0.4.0)
2096
2202
 
2097
2203
  The public builder path combines standalone Artifacts, ORM namespaces, and Managed
2098
2204
  Functions in a platform repository. Use the environment's `/docs/getting-started/builder-handoff`
@@ -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. Version 2 uses\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";
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;
@@ -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. At least one kind is required. A git-service clone
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
- seq-studio init review-app --with orm,function,agent,process,pipeline,artifact
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}. Version 2 uses
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);
@@ -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.
@@ -115,8 +119,12 @@ Its Next.js artifact uses Node.js 24 and a separate install root: run \`pnpm ins
115
119
  inside \`artifact/\` and commit \`artifact/pnpm-lock.yaml\` as well. Keep its generated
116
120
  \`lint\`, \`type-check\`, \`test\` and \`build\` scripts. Repository CI runs these checks
117
121
  and an SSR/API smoke test on Buildkite before packaging the validated standalone
118
- output for the managed runtime. Configure registered resource bindings and automatic
119
- CI in Atlas; \`sequence.app.yml\` supplies the inventory, so \`.seq/ci.json\` is optional.
122
+ output for the managed runtime. Run \`seq-studio repos ci init\`, commit the generated
123
+ \`.seq/pipeline.yml\`, and open or update a pull request to run checks with the
124
+ platform's managed defaults. \`sequence.app.yml\` supplies the resource inventory;
125
+ the pipeline needs no image digest or manual branch policy. Inspect the plan with
126
+ \`seq-studio repos ci show <namespace>/<repo> -e <environment> --pr <number>\`.
127
+ Deployment still needs authorized resource bindings and native permissions.
120
128
  Build-time values belong in \`build.public_env\` and must use \`NEXT_PUBLIC_*\` names.
121
129
  Server secrets and resource credentials are attached only at runtime.
122
130
 
@@ -151,9 +159,9 @@ seq-studio add agent reviewer
151
159
  seq-studio add process approvals --depends-on reviewer-agent
152
160
  \`\`\`
153
161
 
154
- Version 2 derives 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.
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.
155
163
 
156
- Version 2 preflight validates and compiles 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\`.
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\`.
157
165
 
158
166
  Review and deploy from this directory:
159
167
 
@@ -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: 2,
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 and require ATLAS_GIT_PAT
45
- (a repo:read PAT — seq-studio auth pat create, or Atlas → Settings → Tokens).
46
- Headless M2M builds use JSON materialize and accept only platform-managed
47
- --repo sources.
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 PAT_SCOPES: readonly ["repo:read", "repo:write", "repo:admin"];
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 {};