@sequenceholdings/studio-cli 0.9.18 → 0.9.20

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 CHANGED
@@ -459,8 +459,9 @@ names in the selected environment and validate explicit manifest bindings.
459
459
  An artifact's selected `targets.<environment>.url` must match that environment's
460
460
  API origin; the `targets` map may list every environment. A `uses` edge to a
461
461
  workspace resolves its name in the selected environment (`uses` needs schema
462
- version 2 or later). Workspace IDs declared in `artifact.bundle.yml` under
463
- `capabilities.storage` or `server.capabilities.storage` must exist there.
462
+ version 2 or later). Workspaces declared in `artifact.bundle.yml` under
463
+ `capabilities.storage` or `server.capabilities.storage`, by ID or by name, must
464
+ exist there.
464
465
  Source files, shared packages, arbitrary config keys, and environment-variable
465
466
  values are not scanned for URLs or UUIDs. Repository tenant identity admission,
466
467
  manifest validation, deployment permissions, and runtime authorization still apply.
@@ -1853,11 +1854,32 @@ becomes the deployed project's slug.
1853
1854
  Artifact commands reject unknown options before authentication or network
1854
1855
  access, so a misspelled flag cannot be silently ignored. `seq-studio artifact
1855
1856
  deploy` validates explicit manifest bindings: the selected
1856
- `targets.<environment>.url` must match `-e`, and workspace IDs in
1857
+ `targets.<environment>.url` must match `-e`, and workspaces in
1857
1858
  `capabilities.storage` and `server.capabilities.storage` must exist in that
1858
1859
  environment. It does not infer bindings from source text or arbitrary config
1859
1860
  values. This does not relax repository identity or runtime access checks.
1860
1861
 
1862
+ Declare storage by workspace name so one manifest deploys to every environment:
1863
+
1864
+ ```yaml
1865
+ server:
1866
+ capabilities:
1867
+ storage:
1868
+ loan-documents: editor
1869
+ ```
1870
+
1871
+ A key shaped like a UUID is a workspace ID; any other key is a workspace name
1872
+ (lowercase kebab-case), and Workspaces V2 refuses UUID-shaped names, so the two
1873
+ never collide. Atlas resolves each name to that environment's active workspace
1874
+ when it admits the deployment and records the IDs, so runtime checks and
1875
+ rollbacks use the IDs the deployment was admitted with. An unknown or trashed
1876
+ name fails admission with a 409 naming the workspace and environment. Declare a
1877
+ workspace the same way in `server.capabilities.storage` and in an ingress's
1878
+ storage. A development binding may be keyed by the name. On a deployed Next.js
1879
+ server, `artifactWorkspaceId(name)` from `@sequenceholdings/artifact-studio/server`
1880
+ returns the environment's ID for a declared workspace, instead of a hardcoded
1881
+ per-environment map; `artifact dev` does not set it.
1882
+
1861
1883
  `pull` writes the **active deployment's** source files (default out dir:
1862
1884
  `./<project-id>`) and errors when the project has no active deployment.
1863
1885
  `promote` and `rollback` resolve the target project from the current
@@ -2011,14 +2033,16 @@ and ORM work inside Managed Functions or general API calls retain their own
2011
2033
  permission contracts. The `createArtifactOrmExecutor` API is unchanged.
2012
2034
 
2013
2035
  For hosted applications, bind an existing managed secret by its name in the
2014
- target deployment's organization and pin the exact numeric version:
2036
+ target deployment's organization:
2015
2037
 
2016
2038
  ```yaml
2017
2039
  server:
2018
2040
  secrets:
2019
2041
  - name: PAYMENTS_KEY
2020
2042
  secret_name: PAYMENTS_PROVIDER_KEY
2021
- version: 1
2043
+ - name: SLACK_BOT_TOKEN
2044
+ secret_name: SLACK_BOT_TOKEN
2045
+ secret_org: sequence
2022
2046
  egress:
2023
2047
  - api.payments.example.com
2024
2048
  ```
@@ -2026,16 +2050,30 @@ server:
2026
2050
  `name` is the runtime environment variable. `secret_name` is an exact
2027
2051
  `UPPER_SNAKE_CASE` managed-secret name; `secret_id: <UUID>` remains supported
2028
2052
  instead. Declare exactly one reference. A deployer needs editor access to the
2029
- selected secret, and that environment must contain the requested version of a
2030
- single-value secret. This keeps the same source manifest across environments
2031
- without copying secret values or environment-specific UUIDs into source.
2053
+ selected secret, which must be a single-value secret with a value in that
2054
+ environment.
2055
+
2056
+ Without `version`, admission mounts the secret's current default in the target
2057
+ environment, the same version an unpinned managed function mounts. Add
2058
+ `version: <n>` to pin an exact numeric version instead; that environment must
2059
+ then contain it. Version numbers count separately in each environment, so an
2060
+ unpinned binding is what lets the same source manifest deploy everywhere
2061
+ without copying secret values, version numbers or environment-specific UUIDs
2062
+ into source.
2063
+
2064
+ `secret_org` names the organization that owns the secret when it is not the
2065
+ deployment owner. Only the deployment owner and `sequence` are accepted, and the
2066
+ deployer still needs editor access to that secret.
2067
+
2032
2068
  Admission records the resolved secret ID, resource and version; retries and
2033
2069
  rollbacks recheck authority against those original pins, even if a name is later
2034
- reused. A new deployment resolves names again. Secret versions are never
2035
- implicitly upgraded. The CLI, Atlas and the application's Artifact SDK must all
2036
- contain this manifest support; older SDKs reject `secret_name` during the hosted
2037
- build. The hosted runtime already allows its own Atlas control-plane hostname,
2038
- so it does not need an environment-specific entry in `server.egress`.
2070
+ reused or the default moves. A new deployment resolves names and defaults again,
2071
+ so rotating a secret reaches a running application on its next deploy, never
2072
+ implicitly. The CLI, Atlas and the application's Artifact SDK must all contain
2073
+ this manifest support; older SDKs reject `secret_name`, `secret_org` and
2074
+ unversioned bindings during the hosted build. The hosted runtime already allows
2075
+ its own Atlas control-plane hostname, so it does not need an
2076
+ environment-specific entry in `server.egress`.
2039
2077
 
2040
2078
  For an immutable hosted preview, commit the source and connect its Git Service
2041
2079
  repository, then run:
@@ -3174,7 +3212,8 @@ A `secret_name` declaration defaults to that registry name; a `secret_id`
3174
3212
  declaration defaults locally to the declared environment name. Local development
3175
3213
  uses the local default value, independently of the hosted ID/version pin.
3176
3214
  The registry owner follows local Atlas's existing deployment identity, including
3177
- `ATLAS_TENANT_ID` when configured. Create the secret in that owner's registry
3215
+ `ATLAS_TENANT_ID` when configured; a binding with `secret_org` reads that
3216
+ organization's registry instead. Create the secret in that owner's registry
3178
3217
  with `secrets create PROVIDER_KEY --org <tenant> -e local`, and use the same
3179
3218
  `--org <tenant>` when setting its value. Atlas validates the requested owner.
3180
3219
 
@@ -27,6 +27,7 @@ export async function assertAppEnvironmentBindings({ manifest, entries, paths, d
27
27
  workspaces: resolved,
28
28
  files,
29
29
  workspaceExists: context.workspaceExists,
30
+ workspaceNameExists: async (workspaceName) => (await context.resolveWorkspaceByName(workspaceName)) !== undefined,
30
31
  });
31
32
  }
32
33
  function namedWorkspaces({ manifest, entries, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequenceholdings/studio-cli",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "description": "Unified Sequence Studio CLI — `seq-studio init` / `add` / `deploy` (app monorepos), `seq-studio agents`, `seq-studio process` (Lattice), `seq-studio artifact`, `seq-studio functions` / `secrets`, `seq-studio repos`, and `seq-studio auth whoami`. Includes Auth0 browser login shared with seqapi.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -46,15 +46,15 @@
46
46
  "yaml": "^2.8.4",
47
47
  "zod": "4.6.6",
48
48
  "@sequenceholdings/agent-spec": "0.1.5",
49
- "@sequenceholdings/artifact-studio": "0.11.16",
49
+ "@sequenceholdings/artifact-studio": "0.11.18",
50
50
  "@sequenceholdings/lattice": "0.1.8",
51
- "@sequenceholdings/storage": "0.1.7",
52
- "@sequenceholdings/platform": "0.1.4",
53
- "@sequenceholdings/managed-functions": "0.5.11"
51
+ "@sequenceholdings/managed-functions": "0.5.13",
52
+ "@sequenceholdings/storage": "0.1.8",
53
+ "@sequenceholdings/platform": "0.1.5"
54
54
  },
55
55
  "peerDependencies": {
56
- "@sequenceholdings/orm": "2.10.0",
57
- "@sequenceholdings/pipeline-spec": "0.3.10"
56
+ "@sequenceholdings/pipeline-spec": "0.3.12",
57
+ "@sequenceholdings/orm": "2.11.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@sequenceholdings/orm": {
@@ -70,8 +70,8 @@
70
70
  "@types/semver": "^7.8.0",
71
71
  "typescript": "^5.6.0",
72
72
  "vitest": "^4.1.12",
73
- "@sequenceholdings/pipeline-spec": "0.3.10",
74
- "@sequenceholdings/orm": "2.10.0"
73
+ "@sequenceholdings/orm": "2.11.0",
74
+ "@sequenceholdings/pipeline-spec": "0.3.12"
75
75
  },
76
76
  "engines": {
77
77
  "node": ">=20"
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "0.9.17": "Global pnpm 10 installs now update automatically to latest after a background check. If a command fails to start during an update, retry it. Use seq-studio updater track next for previews.",
3
3
  "0.9.18-next.0": "Preview build for testing automatic CLI updates on the next track. No command behavior changes.",
4
- "0.9.18": "Artifact builds now use Atlas UI 3.7.0, including DatePicker and DateRangePicker."
4
+ "0.9.18": "Artifact builds now use Atlas UI 3.7.0, including DatePicker and DateRangePicker.",
5
+ "0.9.19": "Next.js artifact manifests can name secrets without a version (and in another org with secret_org), name a service account by slug, and key storage by workspace name, so one manifest deploys to every environment.",
6
+ "0.9.20": "Lattice date forms now use DatePicker instead of the browser's native date popup."
5
7
  }