@sequenceholdings/studio-cli 0.9.18-next.0 → 0.9.19

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:
@@ -2420,8 +2458,8 @@ targets: []
2420
2458
 
2421
2459
  Atlas discovers the file on the pull request's head or base and runs checks on
2422
2460
  PR creation and updates to its head. A base change is re-verified at merge, and
2423
- only a delta reaching control files or target inputs queues a recheck. Repository CI and deployment jobs
2424
- use Buildkite, including for local destinations. Next.js resources may explicitly
2461
+ only a delta reaching control files or target inputs queues a recheck. Repository CI and deployment builds
2462
+ use Cloud Build, including for local destinations. Next.js resources may explicitly
2425
2463
  select Modal for compilation. Each run uses the platform
2426
2464
  image defaults; no image digest or manual branch-policy setup is
2427
2465
  needed from the repository author. This is a PR workflow; arbitrary GitHub
@@ -2435,12 +2473,15 @@ resource bindings and current native permissions. Platform administrators retain
2435
2473
  advanced branch policies for those bindings and approved execution overrides.
2436
2474
  An existing explicit policy takes precedence over automatic defaults.
2437
2475
 
2438
- Local development requires an explicitly configured public HTTPS tunnel to Atlas
2439
- for Buildkite worker requests and signed completion webhooks. Keep the tunnel
2440
- running; a missing runner or unreachable callback never falls back to laptop
2441
- execution. Hosted environments use their own HTTPS server URL. Repository
2442
- Settings → CI shows setup guidance and configured callback URLs; those checks
2443
- do not prove a worker or webhook can reach the server.
2476
+ Repository checks need no inbound route: they exchange their inputs and results
2477
+ through signed storage objects, and there are no completion webhooks. Without a
2478
+ configured workload URL, local development deploys a merge to a local
2479
+ destination in process; testing hosted promotion or build callbacks locally
2480
+ needs an explicitly configured public HTTPS tunnel to Atlas. A missing runner or
2481
+ unreachable callback never falls back to laptop execution. Hosted environments
2482
+ use their own HTTPS server URL. Repository Settings → CI shows setup guidance
2483
+ and configured callback URLs; those checks do not prove a worker can reach the
2484
+ server.
2444
2485
 
2445
2486
  `ci init` refuses to replace an existing `.seq/pipeline.yml` or create a second
2446
2487
  file beside legacy `.seq/ci.json`. Migrate a legacy JSON configuration and remove
@@ -3171,7 +3212,8 @@ A `secret_name` declaration defaults to that registry name; a `secret_id`
3171
3212
  declaration defaults locally to the declared environment name. Local development
3172
3213
  uses the local default value, independently of the hosted ID/version pin.
3173
3214
  The registry owner follows local Atlas's existing deployment identity, including
3174
- `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
3175
3217
  with `secrets create PROVIDER_KEY --org <tenant> -e local`, and use the same
3176
3218
  `--org <tenant>` when setting its value. Atlas validates the requested owner.
3177
3219
 
@@ -3431,7 +3473,10 @@ merged and closed Pulls, and prints the updated Pull like `show` (with `url`).
3431
3473
  ## Agent feedback
3432
3474
 
3433
3475
  Report errors, confusing behavior, missing docs or capabilities, repeated retries, and
3434
- successful workarounds with normal Sequence credentials. A report needs only a title
3476
+ successful workarounds with normal Sequence credentials. For UI work, also report
3477
+ components that are hard to find, missing, or awkward to use, and a user's criticism
3478
+ of the UI's visual design. Set `pullRequestUrl` to the pull request you were working
3479
+ on when one exists. A report needs only a title
3435
3480
  and observed behavior; do not include transcripts, customer records, or secrets.
3436
3481
  Do not search for duplicates before submitting. Report each independently encountered
3437
3482
  occurrence, including known issues; group repeated symptoms within one incident.
@@ -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, }) {
@@ -1,3 +1,3 @@
1
1
  import { type ParsedArgs } from '../argv.js';
2
- export declare const FEEDBACK_HELP = "usage: seq-studio feedback submit --file report.json [-e <env>] [--json]\n\nSubmit a short, sanitized report using your normal Sequence credentials. Example:\n {\"title\":\"Deploy command retried unexpectedly\",\"observedBehavior\":\"The command returned 503 before validation\",\"agent\":{\"application\":\"Codex\",\"provider\":\"OpenAI\",\"modelId\":\"unknown\"}}\n\nInclude errors, confusing behavior, missing docs or capabilities, repeated retries, and\nsuccessful workarounds even when the cause is uncertain. Do not search for duplicates\nbefore submitting. Report each independent occurrence, including known issues; group\nrepeated symptoms within one incident. Do not suppress independent tasks or reporters.\nDo not attach transcripts, customer records, secrets, or raw logs. Receipt confirms\nLinear creation; otherwise keep your draft and submission evidence. Do not blindly\nresubmit an uncertain write. submissionId is correlation, not idempotency.\nAgent and model fields are client-reported.\n";
2
+ export declare const FEEDBACK_HELP = "usage: seq-studio feedback submit --file report.json [-e <env>] [--json]\n\nSubmit a short, sanitized report using your normal Sequence credentials. Example:\n {\"title\":\"Deploy command retried unexpectedly\",\"observedBehavior\":\"The command returned 503 before validation\",\"agent\":{\"application\":\"Codex\",\"provider\":\"OpenAI\",\"modelId\":\"unknown\"}}\n\nInclude errors, confusing behavior, missing docs or capabilities, repeated retries, and\nsuccessful workarounds even when the cause is uncertain. For UI work, also report UI\ncomponents that are hard to find, missing, or awkward to use, and a user's criticism\nof the UI's visual design. Set pullRequestUrl to the pull request you were working on\nwhen one exists; never guess it. Do not search for duplicates\nbefore submitting. Report each independent occurrence, including known issues; group\nrepeated symptoms within one incident. Do not suppress independent tasks or reporters.\nDo not attach transcripts, customer records, secrets, or raw logs. Receipt confirms\nLinear creation; otherwise keep your draft and submission evidence. Do not blindly\nresubmit an uncertain write. submissionId is correlation, not idempotency.\nAgent and model fields are client-reported.\n";
3
3
  export declare function runFeedbackCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;
@@ -6,6 +6,7 @@ const reportSchema = z.strictObject({
6
6
  observedBehavior: z.string().trim().min(1).max(3000),
7
7
  intent: z.string().max(1000).optional(), expectedBehavior: z.string().max(1000).optional(),
8
8
  suggestion: z.string().max(1000).optional(), commandOrEndpoint: z.string().max(500).optional(),
9
+ pullRequestUrl: z.string().trim().max(500).regex(/^https:\/\/\S+$/, 'Use a single https:// URL').optional(),
9
10
  sanitizedError: z.string().max(1000).optional(), workaround: z.string().max(1000).optional(),
10
11
  impact: z.string().max(500).optional(), evidence: z.string().max(1000).optional(),
11
12
  clientVersion: z.string().max(100).optional(), submissionId: z.uuid().optional(),
@@ -20,7 +21,10 @@ Submit a short, sanitized report using your normal Sequence credentials. Example
20
21
  {"title":"Deploy command retried unexpectedly","observedBehavior":"The command returned 503 before validation","agent":{"application":"Codex","provider":"OpenAI","modelId":"unknown"}}
21
22
 
22
23
  Include errors, confusing behavior, missing docs or capabilities, repeated retries, and
23
- successful workarounds even when the cause is uncertain. Do not search for duplicates
24
+ successful workarounds even when the cause is uncertain. For UI work, also report UI
25
+ components that are hard to find, missing, or awkward to use, and a user's criticism
26
+ of the UI's visual design. Set pullRequestUrl to the pull request you were working on
27
+ when one exists; never guess it. Do not search for duplicates
24
28
  before submitting. Report each independent occurrence, including known issues; group
25
29
  repeated symptoms within one incident. Do not suppress independent tasks or reporters.
26
30
  Do not attach transcripts, customer records, secrets, or raw logs. Receipt confirms
@@ -7,12 +7,13 @@
7
7
  * replaces them before they expire:
8
8
  *
9
9
  * SEQ_DEVBOX_TOKEN_DIR/<host> e.g. staging.example.seqholdings.com
10
+ * SEQ_DEVBOX_TOKEN_DIR/localhost the box's own Atlas, on any loopback origin
10
11
  *
11
12
  * A request to an origin whose host has a live file uses it, unless the user
12
13
  * has a live login of their own for that deployment, which wins (auth.ts);
13
14
  * every other origin resolves exactly as before. Unlike sandbox token
14
15
  * mode this pins nothing: `-e` still picks the deployment, and a deployment
15
- * with no file (or `-e local`) falls through to the usual login.
16
+ * with no file falls through to the usual login.
16
17
  *
17
18
  * The file is read again for each request, so a rotation mid-command is picked
18
19
  * up. A token whose `exp` is past (or within a minute of it) is ignored rather
@@ -7,12 +7,13 @@
7
7
  * replaces them before they expire:
8
8
  *
9
9
  * SEQ_DEVBOX_TOKEN_DIR/<host> e.g. staging.example.seqholdings.com
10
+ * SEQ_DEVBOX_TOKEN_DIR/localhost the box's own Atlas, on any loopback origin
10
11
  *
11
12
  * A request to an origin whose host has a live file uses it, unless the user
12
13
  * has a live login of their own for that deployment, which wins (auth.ts);
13
14
  * every other origin resolves exactly as before. Unlike sandbox token
14
15
  * mode this pins nothing: `-e` still picks the deployment, and a deployment
15
- * with no file (or `-e local`) falls through to the usual login.
16
+ * with no file falls through to the usual login.
16
17
  *
17
18
  * The file is read again for each request, so a rotation mid-command is picked
18
19
  * up. A token whose `exp` is past (or within a minute of it) is ignored rather
@@ -23,6 +24,9 @@ import { join } from 'node:path';
23
24
  export const DEVBOX_TOKEN_DIR_ENV = 'SEQ_DEVBOX_TOKEN_DIR';
24
25
  const HOST = /^[a-z0-9.-]+(?::\d{1,5})?$/;
25
26
  const EXPIRY_MARGIN_SECONDS = 60;
27
+ /** The file the box's own Atlas token lives under (Atlas `owner-token-targets.ts`). */
28
+ const LOCAL_ATLAS_TOKEN_HOST = 'localhost';
29
+ const LOOPBACK_HOSTNAMES = new Set(['localhost', '127.0.0.1', '[::1]']);
26
30
  /** The file name a token for `url` lives under, or null for an origin that never has one. */
27
31
  export function devboxTokenHost(url) {
28
32
  let parsed;
@@ -32,7 +36,11 @@ export function devboxTokenHost(url) {
32
36
  catch {
33
37
  return null;
34
38
  }
35
- // Loopback Atlas (the box's own) signs its own tokens; the control plane never writes one for it.
39
+ // The box's own Atlas accepts one token, addressed to this box, whichever loopback port it serves.
40
+ // A loopback request never leaves the box, so plain http is safe there and nowhere else.
41
+ if (LOOPBACK_HOSTNAMES.has(parsed.hostname.toLowerCase())) {
42
+ return parsed.protocol === 'http:' || parsed.protocol === 'https:' ? LOCAL_ATLAS_TOKEN_HOST : null;
43
+ }
36
44
  if (parsed.protocol !== 'https:')
37
45
  return null;
38
46
  const host = parsed.host.toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequenceholdings/studio-cli",
3
- "version": "0.9.18-next.0",
3
+ "version": "0.9.19",
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.15",
49
+ "@sequenceholdings/artifact-studio": "0.11.17",
50
+ "@sequenceholdings/managed-functions": "0.5.12",
51
+ "@sequenceholdings/storage": "0.1.8",
50
52
  "@sequenceholdings/lattice": "0.1.8",
51
- "@sequenceholdings/managed-functions": "0.5.11",
52
- "@sequenceholdings/storage": "0.1.7",
53
- "@sequenceholdings/platform": "0.1.4"
53
+ "@sequenceholdings/platform": "0.1.5"
54
54
  },
55
55
  "peerDependencies": {
56
- "@sequenceholdings/pipeline-spec": "0.3.10",
57
- "@sequenceholdings/orm": "2.10.0"
56
+ "@sequenceholdings/orm": "2.10.0",
57
+ "@sequenceholdings/pipeline-spec": "0.3.11"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@sequenceholdings/orm": {
@@ -70,7 +70,7 @@
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",
73
+ "@sequenceholdings/pipeline-spec": "0.3.11",
74
74
  "@sequenceholdings/orm": "2.10.0"
75
75
  },
76
76
  "engines": {
@@ -1,4 +1,6 @@
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
- "0.9.18-next.0": "Preview build for testing automatic CLI updates on the next track. No command behavior changes."
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.",
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."
4
6
  }