@sequenceholdings/studio-cli 0.9.20 → 0.9.21
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 +131 -11
- package/dist/app/commands.js +2 -0
- package/dist/app/deploy.js +2 -0
- package/dist/app/lockfile-preflight.d.ts +31 -0
- package/dist/app/lockfile-preflight.js +47 -0
- package/dist/app/repository-index.d.ts +5 -1
- package/dist/app/repository-index.js +9 -3
- package/dist/auth.d.ts +13 -9
- package/dist/auth.js +98 -20
- package/dist/cli-errors.js +6 -1
- package/dist/command-contract.d.ts +13 -1
- package/dist/command-contract.js +3 -1
- package/dist/command-help.d.ts +1 -1
- package/dist/command-help.js +8 -1
- package/dist/config.d.ts +14 -0
- package/dist/config.js +29 -3
- package/dist/docs/commands.d.ts +16 -0
- package/dist/docs/commands.js +168 -0
- package/dist/docs/help.d.ts +2 -0
- package/dist/docs/help.js +12 -0
- package/dist/envs/commands.js +10 -2
- package/dist/host-token.d.ts +19 -4
- package/dist/host-token.js +50 -10
- package/dist/main.d.ts +1 -0
- package/dist/main.js +20 -2
- package/dist/orm/discover-operations.d.ts +1 -1
- package/dist/orm/discover-operations.js +3 -3
- package/dist/orm/discover-schema.d.ts +0 -5
- package/dist/orm/discover-schema.js +0 -3
- package/dist/pipeline/commands.d.ts +0 -7
- package/dist/pipeline/commands.js +16 -67
- package/dist/pipeline/discovery.d.ts +1 -1
- package/dist/pipeline/discovery.js +6 -6
- package/dist/process/build.d.ts +2 -5
- package/dist/process/build.js +4 -49
- package/dist/repos/commands.d.ts +11 -1
- package/dist/repos/commands.js +78 -11
- package/dist/repos/git-credential.d.ts +12 -5
- package/dist/repos/git-credential.js +63 -36
- package/dist/repos/github-connect-command.d.ts +35 -0
- package/dist/repos/github-connect-command.js +250 -0
- package/dist/repos/github-init-command.d.ts +5 -0
- package/dist/repos/github-init-command.js +106 -0
- package/dist/repos/github-init.d.ts +133 -0
- package/dist/repos/github-init.js +265 -0
- package/dist/scaffold-guidance.d.ts +10 -2
- package/dist/scaffold-guidance.js +27 -2
- package/dist/templates/guidance/AGENTS.md +15 -8
- package/package.json +7 -7
- package/release-summary.json +2 -1
- package/templates/guidance/AGENTS.md +15 -8
- package/dist/pipeline/active-orm-contracts.d.ts +0 -16
- package/dist/pipeline/active-orm-contracts.js +0 -36
- package/dist/pipeline/repin-orm.d.ts +0 -2
- package/dist/pipeline/repin-orm.js +0 -207
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { applyGitHubSettings, ensureSeqCi, githubSettingsCommands, initializeGitHubRepository, resolveSettings, SEQUENCE_CI_APP } from './github-init.js';
|
|
3
|
+
export const REPO_INIT_USAGE = `usage:
|
|
4
|
+
seq-studio repo init [--org <org>] [--dev <branch>] [--release <branch>] [--seq-ci <vX.Y.Z>] [--release-repository <namespace/name>]
|
|
5
|
+
[--pull-request-builds reuse|rebuild] [--dir <checkout>] [--apply-github] [--json]
|
|
6
|
+
seq-studio repo init --check [--dir <checkout>] [--json]
|
|
7
|
+
|
|
8
|
+
Make a GitHub checkout a Sequence repository: .seq/github.yml (org and branches), the seq and seq promote
|
|
9
|
+
workflows, Renovate config, and an agent skill pointing at the platform docs. Writes only what's missing or
|
|
10
|
+
stale, and never overwrites a file it doesn't manage. --check reports the same and writes nothing (exit 3 when
|
|
11
|
+
anything is missing or stale).
|
|
12
|
+
|
|
13
|
+
Branch rulesets and secret scanning need admin rights on the repository (not the org): --apply-github runs them
|
|
14
|
+
with gh and confirms the repository can read seq-ci's org secrets; without it, the gh commands are printed for an
|
|
15
|
+
admin. Commit and push the written files yourself.
|
|
16
|
+
|
|
17
|
+
--pull-request-builds (default reuse): whether the dev branch's deploys reuse what a pull request's CI built and
|
|
18
|
+
checked from the change it merged. Sound only while the dev branch needs no approvals, as these rulesets set it;
|
|
19
|
+
once reviews are required, use rebuild. repo connect --stage staging records it on the Atlas.`;
|
|
20
|
+
function flag(args, name) {
|
|
21
|
+
const value = args.flags[name];
|
|
22
|
+
return typeof value === 'string' ? value : undefined;
|
|
23
|
+
}
|
|
24
|
+
/** `org/name` from a github.com origin, or null when the origin is elsewhere. */
|
|
25
|
+
export function githubRepositoryFromRemote(url) {
|
|
26
|
+
// The host must be exactly github.com: notgithub.com or example.com/github.com/... are not GitHub.
|
|
27
|
+
const match = /^(?:https:\/\/(?:[^@/]+@)?github\.com\/|ssh:\/\/git@github\.com\/|git@github\.com:)([A-Za-z0-9._-]+\/[A-Za-z0-9._-]+?)(?:\.git)?\/?$/.exec(url.trim());
|
|
28
|
+
return match ? match[1] : null;
|
|
29
|
+
}
|
|
30
|
+
function originRepository(directory) {
|
|
31
|
+
const result = spawnSync('git', ['remote', 'get-url', 'origin'], { cwd: directory, encoding: 'utf8' });
|
|
32
|
+
return result.status === 0 ? githubRepositoryFromRemote(result.stdout) : null;
|
|
33
|
+
}
|
|
34
|
+
const INSTALLATION_NOTES = {
|
|
35
|
+
all: () => 'The Sequence CI App covers every repository.\n',
|
|
36
|
+
added: () => 'Added to the Sequence CI App installation.\n',
|
|
37
|
+
missing: (org) => `The Sequence CI App isn't installed in ${org}; an org owner must install it (https://github.com/apps/${SEQUENCE_CI_APP.slug}/installations/new), then rerun.\n`,
|
|
38
|
+
unchecked: () => 'Sequence CI App installation not checked (that takes an org owner); it covers every repository unless an owner narrowed it.\n',
|
|
39
|
+
};
|
|
40
|
+
const ghApi = async ({ method, path, body }) => {
|
|
41
|
+
const result = spawnSync('gh', ['api', '--method', method, path, ...(body === undefined ? [] : ['--input', '-'])], { input: body === undefined ? undefined : JSON.stringify(body), encoding: 'utf8' });
|
|
42
|
+
if (result.status !== 0)
|
|
43
|
+
throw new Error(`gh api ${method} ${path}: ${result.stderr.trim()}`);
|
|
44
|
+
return result.stdout.trim() ? JSON.parse(result.stdout) : null;
|
|
45
|
+
};
|
|
46
|
+
function printReports(reports) {
|
|
47
|
+
for (const report of reports) {
|
|
48
|
+
const note = report.status === 'unmanaged' ? ' (exists and isn\'t managed by seq-studio; left alone)' : '';
|
|
49
|
+
process.stdout.write(` ${report.status.padEnd(9)} ${report.path}${note}\n`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export async function runRepoInitCommand(args) {
|
|
53
|
+
if (args.flags.help) {
|
|
54
|
+
process.stdout.write(`${REPO_INIT_USAGE}\n`);
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
const directory = flag(args, 'dir') ?? '.';
|
|
58
|
+
const check = args.flags.check === true;
|
|
59
|
+
const settings = await resolveSettings({ directory, org: flag(args, 'org'), dev: flag(args, 'dev'), release: flag(args, 'release'), seqCi: flag(args, 'seq-ci'),
|
|
60
|
+
releaseRepository: flag(args, 'release-repository'), pullRequestBuilds: flag(args, 'pull-request-builds') });
|
|
61
|
+
const reports = await initializeGitHubRepository({ directory, settings, write: !check });
|
|
62
|
+
const repository = originRepository(directory);
|
|
63
|
+
const commands = repository ? githubSettingsCommands({ repository, settings }) : [];
|
|
64
|
+
if (args.flags.json === true) {
|
|
65
|
+
process.stdout.write(`${JSON.stringify({ settings, repository, files: reports, githubCommands: commands.map((command) => command.slice(0, -1)) }, null, 2)}\n`);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
process.stdout.write(`${check ? 'Checking' : 'Initialized'} ${repository ?? directory} for org ${settings.org} (dev ${settings.branches.dev}, release ${settings.branches.release}, seq-ci ${settings.seq_ci}, pull-request builds ${settings.pull_request_builds})\n`);
|
|
69
|
+
printReports(reports);
|
|
70
|
+
}
|
|
71
|
+
const outstanding = reports.some((report) => report.status === 'missing' || report.status === 'stale');
|
|
72
|
+
if (check)
|
|
73
|
+
return outstanding ? 3 : 0;
|
|
74
|
+
// Prose goes to stderr under --json, so stdout stays one JSON document.
|
|
75
|
+
const say = (text) => (args.flags.json === true ? process.stderr : process.stdout).write(text);
|
|
76
|
+
if (!repository) {
|
|
77
|
+
process.stderr.write('The origin is not on github.com, so GitHub settings were skipped.\n');
|
|
78
|
+
return 0;
|
|
79
|
+
}
|
|
80
|
+
if (args.flags['apply-github'] === true) {
|
|
81
|
+
try {
|
|
82
|
+
const applied = await applyGitHubSettings({ repository, settings, api: ghApi });
|
|
83
|
+
say(`Branch rulesets: created ${applied.created.join(', ') || 'none'}; updated ${applied.updated.join(', ') || 'none'}; the Sequence CI App bypasses ${settings.branches.release}. Secret scanning on.\n`);
|
|
84
|
+
const org = repository.split('/')[0];
|
|
85
|
+
const seqCi = await ensureSeqCi({ repository, api: ghApi });
|
|
86
|
+
if (seqCi.secrets.shared.length > 0)
|
|
87
|
+
say(`seq-ci org secrets available: ${seqCi.secrets.shared.join(', ')}.\n`);
|
|
88
|
+
say(INSTALLATION_NOTES[seqCi.installation](org));
|
|
89
|
+
if (seqCi.secrets.missing.length > 0) {
|
|
90
|
+
process.stderr.write(`${repository} can't read ${seqCi.secrets.missing.join(', ')}, so seq-ci will fail. An ${org} org owner must make ` +
|
|
91
|
+
`${seqCi.secrets.missing.length === 1 ? 'it' : 'them'} visible to all private repositories (Settings → Secrets and variables → Actions), then rerun.\n`);
|
|
92
|
+
return 1;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
process.stderr.write(`GitHub settings failed (admin rights needed?): ${error instanceof Error ? error.message : String(error)}\n`);
|
|
97
|
+
return 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
say('\nGitHub settings (need admin rights): rerun with --apply-github, or have an admin run:\n');
|
|
102
|
+
for (const command of commands)
|
|
103
|
+
say(` echo '${command.at(-1)}' | ${command.slice(0, -1).join(' ')}\n`);
|
|
104
|
+
}
|
|
105
|
+
return 0;
|
|
106
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* `seq-studio repo init`: make a GitHub checkout a Sequence repository. Writes only files it owns, marked with a
|
|
4
|
+
* managed header, and only what's missing or stale; `check` reports the same without writing.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEMPLATE_VERSION = 1;
|
|
7
|
+
export declare const MANAGED_MARKER = "Managed by seq-studio";
|
|
8
|
+
export declare const SEQ_CI_REPOSITORY = "sequenceholdings/seq-ci";
|
|
9
|
+
export declare const githubSettingsSchema: z.ZodObject<{
|
|
10
|
+
schema_version: z.ZodLiteral<1>;
|
|
11
|
+
org: z.ZodString;
|
|
12
|
+
branches: z.ZodObject<{
|
|
13
|
+
dev: z.ZodString;
|
|
14
|
+
release: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
seq_ci: z.ZodString;
|
|
17
|
+
release_repository: z.ZodOptional<z.ZodString>;
|
|
18
|
+
pull_request_builds: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
reuse: "reuse";
|
|
20
|
+
rebuild: "rebuild";
|
|
21
|
+
}>>;
|
|
22
|
+
promoted_builds: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
reuse: "reuse";
|
|
24
|
+
rebuild: "rebuild";
|
|
25
|
+
}>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type GitHubSettings = z.infer<typeof githubSettingsSchema>;
|
|
28
|
+
export declare const GITHUB_SETTINGS_PATH = ".seq/github.yml";
|
|
29
|
+
export declare function pipelineWorkflow({ settings }: {
|
|
30
|
+
settings: GitHubSettings;
|
|
31
|
+
}): string;
|
|
32
|
+
export declare function promoteWorkflow({ settings }: {
|
|
33
|
+
settings: GitHubSettings;
|
|
34
|
+
}): string;
|
|
35
|
+
export declare function renovateConfig(): string;
|
|
36
|
+
export declare function agentSkill({ settings }: {
|
|
37
|
+
settings: GitHubSettings;
|
|
38
|
+
}): string;
|
|
39
|
+
export interface ManagedFile {
|
|
40
|
+
path: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function managedFiles({ settings }: {
|
|
44
|
+
settings: GitHubSettings;
|
|
45
|
+
}): ManagedFile[];
|
|
46
|
+
export type FileStatus = 'missing' | 'stale' | 'current' | 'unmanaged';
|
|
47
|
+
export interface FileReport {
|
|
48
|
+
path: string;
|
|
49
|
+
status: FileStatus;
|
|
50
|
+
}
|
|
51
|
+
/** Existing settings win over defaults, so rerunning never changes a repository's org or branches. */
|
|
52
|
+
export declare function resolveSettings({ directory, org, dev, release, seqCi, releaseRepository, pullRequestBuilds }: {
|
|
53
|
+
directory: string;
|
|
54
|
+
org?: string;
|
|
55
|
+
dev?: string;
|
|
56
|
+
release?: string;
|
|
57
|
+
seqCi?: string;
|
|
58
|
+
releaseRepository?: string;
|
|
59
|
+
pullRequestBuilds?: string;
|
|
60
|
+
}): Promise<GitHubSettings>;
|
|
61
|
+
/**
|
|
62
|
+
* Report, or with `write`, create every managed file that's missing or stale. Never overwrites a file it doesn't own:
|
|
63
|
+
* an unmanaged file at a managed path is reported and left alone.
|
|
64
|
+
*/
|
|
65
|
+
export declare function initializeGitHubRepository({ directory, settings, write }: {
|
|
66
|
+
directory: string;
|
|
67
|
+
settings: GitHubSettings;
|
|
68
|
+
write: boolean;
|
|
69
|
+
}): Promise<FileReport[]>;
|
|
70
|
+
/** The Sequence CI GitHub App (`sequence-ci`): prod Atlas moves release branches as it, their rulesets' bypass actor. */
|
|
71
|
+
export declare const SEQUENCE_CI_APP: {
|
|
72
|
+
readonly id: 5689400;
|
|
73
|
+
readonly slug: "sequence-ci";
|
|
74
|
+
};
|
|
75
|
+
/** The org secrets seq-ci's workflows read: read-only pull credentials, each visible to all the org's private repositories. */
|
|
76
|
+
/** The App's key is not among them: only prod Atlases hold it, and they move release branches as the App. */
|
|
77
|
+
export declare const SEQ_CI_SECRETS: readonly ["SEQ_CI_IMAGE_PULL_KEY", "SEQ_CI_REGISTRY_AUTH"];
|
|
78
|
+
/**
|
|
79
|
+
* The branch rulesets `repo init` keeps on a repository, by name. The dev branch requires `seq / checks` and no
|
|
80
|
+
* approvals: what `pull_request_builds: reuse` relies on (`githubSettingsSchema`). It doesn't require pull requests to
|
|
81
|
+
* be up to date with the branch: every push to it builds and checks again before deploying, reusing a pull request's
|
|
82
|
+
* builds only when the merged tree carries every change that pull request's last run tested.
|
|
83
|
+
*/
|
|
84
|
+
export declare function githubRulesets({ settings }: {
|
|
85
|
+
settings: GitHubSettings;
|
|
86
|
+
}): {
|
|
87
|
+
name: string;
|
|
88
|
+
body: Record<string, unknown> & {
|
|
89
|
+
bypass_actors: unknown[];
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
/** The GitHub API calls that set branch rules and secret scanning on a repository that has none yet, for an admin to run. */
|
|
93
|
+
export declare function githubSettingsCommands({ repository, settings }: {
|
|
94
|
+
repository: string;
|
|
95
|
+
settings: GitHubSettings;
|
|
96
|
+
}): string[][];
|
|
97
|
+
/** One GitHub API call: method, path and JSON body; returns the parsed response. */
|
|
98
|
+
export type GitHubApi = (args: {
|
|
99
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH';
|
|
100
|
+
path: string;
|
|
101
|
+
body?: unknown;
|
|
102
|
+
}) => Promise<unknown>;
|
|
103
|
+
/**
|
|
104
|
+
* Apply the rulesets and secret scanning, reconciling by ruleset name: an existing `seq: <branch>` ruleset is updated in
|
|
105
|
+
* place, keeping any bypass actors an admin added alongside the Sequence CI App's, never duplicated.
|
|
106
|
+
*/
|
|
107
|
+
export declare function applyGitHubSettings({ repository, settings, api }: {
|
|
108
|
+
repository: string;
|
|
109
|
+
settings: GitHubSettings;
|
|
110
|
+
api: GitHubApi;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
created: string[];
|
|
113
|
+
updated: string[];
|
|
114
|
+
}>;
|
|
115
|
+
/** Whether the Sequence CI App's installation covers the repository; `unchecked` when the caller can't list the org's installations. */
|
|
116
|
+
export type SeqCiInstallation = 'all' | 'added' | 'missing' | 'unchecked';
|
|
117
|
+
/**
|
|
118
|
+
* Make sure a repository has what seq-ci's workflows need from the org: the `SEQ_CI_*` secrets, and the Sequence CI
|
|
119
|
+
* App's installation, which Promote's App token is scoped to. Both are org-wide (secrets visible to all private
|
|
120
|
+
* repositories, the App on all repositories), so a repository admin who isn't an org owner only confirms them.
|
|
121
|
+
* Should an org owner have narrowed either to selected repositories, an owner's `admin:org` token adds this one;
|
|
122
|
+
* anyone else gets `missing` back, naming what an owner must fix. Idempotent.
|
|
123
|
+
*/
|
|
124
|
+
export declare function ensureSeqCi({ repository, api }: {
|
|
125
|
+
repository: string;
|
|
126
|
+
api: GitHubApi;
|
|
127
|
+
}): Promise<{
|
|
128
|
+
secrets: {
|
|
129
|
+
shared: string[];
|
|
130
|
+
missing: string[];
|
|
131
|
+
};
|
|
132
|
+
installation: SeqCiInstallation;
|
|
133
|
+
}>;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { lstat, mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
2
|
+
import { dirname, join, resolve } from 'node:path';
|
|
3
|
+
import { dump as yamlDump, load as yamlLoad } from 'js-yaml';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* `seq-studio repo init`: make a GitHub checkout a Sequence repository. Writes only files it owns, marked with a
|
|
7
|
+
* managed header, and only what's missing or stale; `check` reports the same without writing.
|
|
8
|
+
*/
|
|
9
|
+
export const TEMPLATE_VERSION = 1;
|
|
10
|
+
export const MANAGED_MARKER = 'Managed by seq-studio';
|
|
11
|
+
export const SEQ_CI_REPOSITORY = 'sequenceholdings/seq-ci';
|
|
12
|
+
export const githubSettingsSchema = z.object({
|
|
13
|
+
schema_version: z.literal(1),
|
|
14
|
+
org: z.string().regex(/^[a-z][a-z0-9_]*$/),
|
|
15
|
+
branches: z.object({ dev: z.string().min(1), release: z.string().min(1) }).strict(),
|
|
16
|
+
/** Exact seq-ci release the workflows call, e.g. `v1.0.0`. Renovate bumps it. */
|
|
17
|
+
seq_ci: z.string().regex(/^v[0-9]+\.[0-9]+\.[0-9]+$/),
|
|
18
|
+
/** The git-service repository (`<namespace>/<name>`) this repository's Managed Pipelines stay released under. */
|
|
19
|
+
release_repository: z.string().regex(/^[a-z0-9][a-z0-9_-]*\/[A-Za-z0-9._-]+$/).optional(),
|
|
20
|
+
/**
|
|
21
|
+
* Whether the dev branch's deploys reuse what a pull request's CI built and checked from the change it merged
|
|
22
|
+
* (`reuse`), or build everything again (`rebuild`). `repo connect --stage staging` records it on the Atlas. Reuse is
|
|
23
|
+
* sound only while the dev branch's ruleset requires no approvals, as `repo init` sets it: whoever opens a pull request
|
|
24
|
+
* can then already merge and deploy it. Once reviews are required, set `rebuild` and rerun `repo connect`.
|
|
25
|
+
*/
|
|
26
|
+
pull_request_builds: z.enum(['reuse', 'rebuild']).optional(),
|
|
27
|
+
/**
|
|
28
|
+
* Whether a promoted prod deploy reuses what the org's staging Atlas built, checked and runs for the same commit, for
|
|
29
|
+
* each environment-neutral target (`reuse`), or builds everything again (`rebuild`, the default when absent).
|
|
30
|
+
* `repo connect --stage prod` records it on the prod Atlas.
|
|
31
|
+
*/
|
|
32
|
+
promoted_builds: z.enum(['reuse', 'rebuild']).optional(),
|
|
33
|
+
}).strict();
|
|
34
|
+
export const GITHUB_SETTINGS_PATH = '.seq/github.yml';
|
|
35
|
+
const header = (path) => `# ${MANAGED_MARKER} (template ${TEMPLATE_VERSION}). Change it with \`seq-studio repo init\`; check it with \`seq-studio repo init --check\`.\n# ${path}\n`;
|
|
36
|
+
export function pipelineWorkflow({ settings }) {
|
|
37
|
+
return `${header('.github/workflows/seq.yml')}name: seq
|
|
38
|
+
on:
|
|
39
|
+
pull_request: {}
|
|
40
|
+
merge_group: {}
|
|
41
|
+
push:
|
|
42
|
+
branches: [${JSON.stringify(settings.branches.dev)}, ${JSON.stringify(settings.branches.release)}]
|
|
43
|
+
concurrency:
|
|
44
|
+
group: seq-\${{ github.ref }}
|
|
45
|
+
cancel-in-progress: \${{ github.event_name == 'pull_request' }}
|
|
46
|
+
permissions: {}
|
|
47
|
+
jobs:
|
|
48
|
+
seq:
|
|
49
|
+
uses: ${SEQ_CI_REPOSITORY}/.github/workflows/pipeline.yml@${settings.seq_ci}
|
|
50
|
+
permissions: { contents: read, id-token: write, pull-requests: write, checks: write }
|
|
51
|
+
secrets: inherit
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
export function promoteWorkflow({ settings }) {
|
|
55
|
+
return `${header('.github/workflows/seq-promote.yml')}name: seq promote
|
|
56
|
+
on:
|
|
57
|
+
workflow_dispatch:
|
|
58
|
+
inputs:
|
|
59
|
+
sha: { description: "Commit on ${settings.branches.dev} to release (default: its tip)", required: false }
|
|
60
|
+
permissions: {}
|
|
61
|
+
jobs:
|
|
62
|
+
promote:
|
|
63
|
+
uses: ${SEQ_CI_REPOSITORY}/.github/workflows/promote.yml@${settings.seq_ci}
|
|
64
|
+
with:
|
|
65
|
+
sha: \${{ inputs.sha }}
|
|
66
|
+
permissions: { contents: read, id-token: write }
|
|
67
|
+
secrets: inherit
|
|
68
|
+
`;
|
|
69
|
+
}
|
|
70
|
+
export function renovateConfig() {
|
|
71
|
+
return `${JSON.stringify({ $schema: 'https://docs.renovatebot.com/renovate-schema.json', extends: [`github>${SEQ_CI_REPOSITORY}//renovate/default`] }, null, 2)}\n`;
|
|
72
|
+
}
|
|
73
|
+
export function agentSkill({ settings }) {
|
|
74
|
+
return `---
|
|
75
|
+
name: sequence-platform
|
|
76
|
+
description: Read before using seq-studio or changing anything under .seq/, sequence.app.yml or a primitive manifest in this repository.
|
|
77
|
+
---
|
|
78
|
+
<!-- ${MANAGED_MARKER} (template ${TEMPLATE_VERSION}). -->
|
|
79
|
+
|
|
80
|
+
This repository deploys to the Sequence platform for the \`${settings.org}\` org.
|
|
81
|
+
|
|
82
|
+
- Read the platform docs first: \`seq-studio docs search "<topic>" -e <env>\`, then \`seq-studio docs read <slug> -e <env>\` (\`seq-studio envs list\` prints the environments). They match the deployed platform version; use them rather than guessing command shapes.
|
|
83
|
+
- \`${settings.branches.dev}\` deploys to staging; \`${settings.branches.release}\` deploys to prod and moves only through the Promote workflow in GitHub.
|
|
84
|
+
- Never use \`--break-glass\` unless the user explicitly asks for it in this conversation and gives the reason.
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
const AGENTS_POINTER = 'Before using seq-studio here, read .claude/skills/sequence-platform/SKILL.md.';
|
|
88
|
+
export function managedFiles({ settings }) {
|
|
89
|
+
return [
|
|
90
|
+
{ path: GITHUB_SETTINGS_PATH, content: `# ${MANAGED_MARKER}. Repository-level GitHub settings until .seq/repository.yml version 2 carries them.\n${yamlDump(settings)}` },
|
|
91
|
+
{ path: '.github/workflows/seq.yml', content: pipelineWorkflow({ settings }) },
|
|
92
|
+
{ path: '.github/workflows/seq-promote.yml', content: promoteWorkflow({ settings }) },
|
|
93
|
+
{ path: 'renovate.json', content: renovateConfig() },
|
|
94
|
+
{ path: '.claude/skills/sequence-platform/SKILL.md', content: agentSkill({ settings }) },
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
async function readOptional(path) {
|
|
98
|
+
try {
|
|
99
|
+
const info = await lstat(path);
|
|
100
|
+
if (!info.isFile())
|
|
101
|
+
throw new Error(`${path} must be a regular file`);
|
|
102
|
+
return await readFile(path, 'utf8');
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
106
|
+
return null;
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function statusOf({ existing, content }) {
|
|
111
|
+
if (existing === null)
|
|
112
|
+
return 'missing';
|
|
113
|
+
if (existing === content)
|
|
114
|
+
return 'current';
|
|
115
|
+
return existing.includes(MANAGED_MARKER) ? 'stale' : 'unmanaged';
|
|
116
|
+
}
|
|
117
|
+
/** Existing settings win over defaults, so rerunning never changes a repository's org or branches. */
|
|
118
|
+
export async function resolveSettings({ directory, org, dev, release, seqCi, releaseRepository, pullRequestBuilds }) {
|
|
119
|
+
const existing = await readOptional(join(resolve(directory), GITHUB_SETTINGS_PATH));
|
|
120
|
+
const current = existing === null ? undefined : githubSettingsSchema.parse(yamlLoad(existing));
|
|
121
|
+
const settings = { schema_version: 1, org: org ?? current?.org, branches: { dev: dev ?? current?.branches.dev ?? 'staging', release: release ?? current?.branches.release ?? 'main' },
|
|
122
|
+
seq_ci: seqCi ?? current?.seq_ci ?? 'v1.0.5',
|
|
123
|
+
// On by default: the dev branch ruleset below requires no approvals.
|
|
124
|
+
pull_request_builds: pullRequestBuilds ?? current?.pull_request_builds ?? 'reuse',
|
|
125
|
+
...((releaseRepository ?? current?.release_repository) ? { release_repository: releaseRepository ?? current?.release_repository } : {}),
|
|
126
|
+
...(current?.promoted_builds ? { promoted_builds: current.promoted_builds } : {}) };
|
|
127
|
+
if (!settings.org)
|
|
128
|
+
throw new Error('repo init needs --org the first time (for example --org banksouth)');
|
|
129
|
+
if (settings.branches.dev === settings.branches.release)
|
|
130
|
+
throw new Error('The dev and release branches must differ');
|
|
131
|
+
return githubSettingsSchema.parse(settings);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Report, or with `write`, create every managed file that's missing or stale. Never overwrites a file it doesn't own:
|
|
135
|
+
* an unmanaged file at a managed path is reported and left alone.
|
|
136
|
+
*/
|
|
137
|
+
export async function initializeGitHubRepository({ directory, settings, write }) {
|
|
138
|
+
const root = resolve(directory);
|
|
139
|
+
if (!(await lstat(join(root, '.git')).catch(() => null)))
|
|
140
|
+
throw new Error('repo init must run at the root of a git checkout');
|
|
141
|
+
const reports = [];
|
|
142
|
+
for (const file of managedFiles({ settings })) {
|
|
143
|
+
const path = join(root, file.path);
|
|
144
|
+
const status = statusOf({ existing: await readOptional(path), content: file.content });
|
|
145
|
+
reports.push({ path: file.path, status });
|
|
146
|
+
if (write && (status === 'missing' || status === 'stale')) {
|
|
147
|
+
await mkdir(dirname(path), { recursive: true });
|
|
148
|
+
await writeFile(path, file.content);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const agentsPath = join(root, 'AGENTS.md');
|
|
152
|
+
const agents = await readOptional(agentsPath);
|
|
153
|
+
const hasPointer = agents?.includes(AGENTS_POINTER) ?? false;
|
|
154
|
+
reports.push({ path: 'AGENTS.md', status: hasPointer ? 'current' : agents === null ? 'missing' : 'stale' });
|
|
155
|
+
if (write && !hasPointer)
|
|
156
|
+
await writeFile(agentsPath, `${agents ? `${agents.trimEnd()}\n\n` : ''}${AGENTS_POINTER}\n`);
|
|
157
|
+
return reports;
|
|
158
|
+
}
|
|
159
|
+
/** The Sequence CI GitHub App (`sequence-ci`): prod Atlas moves release branches as it, their rulesets' bypass actor. */
|
|
160
|
+
export const SEQUENCE_CI_APP = { id: 5689400, slug: 'sequence-ci' };
|
|
161
|
+
const APP_BYPASS = { actor_id: SEQUENCE_CI_APP.id, actor_type: 'Integration', bypass_mode: 'always' };
|
|
162
|
+
/** The org secrets seq-ci's workflows read: read-only pull credentials, each visible to all the org's private repositories. */
|
|
163
|
+
/** The App's key is not among them: only prod Atlases hold it, and they move release branches as the App. */
|
|
164
|
+
export const SEQ_CI_SECRETS = ['SEQ_CI_IMAGE_PULL_KEY', 'SEQ_CI_REGISTRY_AUTH'];
|
|
165
|
+
/**
|
|
166
|
+
* The branch rulesets `repo init` keeps on a repository, by name. The dev branch requires `seq / checks` and no
|
|
167
|
+
* approvals: what `pull_request_builds: reuse` relies on (`githubSettingsSchema`). It doesn't require pull requests to
|
|
168
|
+
* be up to date with the branch: every push to it builds and checks again before deploying, reusing a pull request's
|
|
169
|
+
* builds only when the merged tree carries every change that pull request's last run tested.
|
|
170
|
+
*/
|
|
171
|
+
export function githubRulesets({ settings }) {
|
|
172
|
+
const ruleset = (branch, rules) => ({ name: `seq: ${branch}`,
|
|
173
|
+
body: { name: `seq: ${branch}`, target: 'branch', enforcement: 'active', conditions: { ref_name: { include: [`refs/heads/${branch}`], exclude: [] } }, rules } });
|
|
174
|
+
return [
|
|
175
|
+
ruleset(settings.branches.dev, [
|
|
176
|
+
{ type: 'deletion' }, { type: 'non_fast_forward' }, { type: 'pull_request', parameters: { required_approving_review_count: 0, dismiss_stale_reviews_on_push: false, require_code_owner_review: false, require_last_push_approval: false, required_review_thread_resolution: false } },
|
|
177
|
+
{ type: 'required_status_checks', parameters: { strict_required_status_checks_policy: false, required_status_checks: [{ context: 'seq / checks' }] } },
|
|
178
|
+
]),
|
|
179
|
+
{ ...ruleset(settings.branches.release, [{ type: 'deletion' }, { type: 'non_fast_forward' }, { type: 'update' }]), bypass: [APP_BYPASS] },
|
|
180
|
+
].map(({ bypass = [], ...entry }) => ({ ...entry, body: { ...entry.body, bypass_actors: bypass } }));
|
|
181
|
+
}
|
|
182
|
+
const SECRET_SCANNING = { security_and_analysis: { secret_scanning: { status: 'enabled' }, secret_scanning_push_protection: { status: 'enabled' } } };
|
|
183
|
+
/** The GitHub API calls that set branch rules and secret scanning on a repository that has none yet, for an admin to run. */
|
|
184
|
+
export function githubSettingsCommands({ repository, settings }) {
|
|
185
|
+
return [
|
|
186
|
+
...githubRulesets({ settings }).map((ruleset) => ['gh', 'api', '--method', 'POST', `repos/${repository}/rulesets`, '--input', '-', JSON.stringify(ruleset.body)]),
|
|
187
|
+
['gh', 'api', '--method', 'PATCH', `repos/${repository}`, '--input', '-', JSON.stringify(SECRET_SCANNING)],
|
|
188
|
+
];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Apply the rulesets and secret scanning, reconciling by ruleset name: an existing `seq: <branch>` ruleset is updated in
|
|
192
|
+
* place, keeping any bypass actors an admin added alongside the Sequence CI App's, never duplicated.
|
|
193
|
+
*/
|
|
194
|
+
export async function applyGitHubSettings({ repository, settings, api }) {
|
|
195
|
+
const existing = await api({ method: 'GET', path: `repos/${repository}/rulesets?per_page=100` });
|
|
196
|
+
const listed = Array.isArray(existing) ? existing.filter((entry) => typeof entry?.id === 'number' && typeof entry?.name === 'string') : [];
|
|
197
|
+
const result = { created: [], updated: [] };
|
|
198
|
+
for (const ruleset of githubRulesets({ settings })) {
|
|
199
|
+
const match = listed.find((entry) => entry.name === ruleset.name);
|
|
200
|
+
if (!match) {
|
|
201
|
+
await api({ method: 'POST', path: `repos/${repository}/rulesets`, body: ruleset.body });
|
|
202
|
+
result.created.push(ruleset.name);
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
const current = await api({ method: 'GET', path: `repos/${repository}/rulesets/${match.id}` });
|
|
206
|
+
const kept = current && typeof current === 'object' && Array.isArray(Reflect.get(current, 'bypass_actors')) ? Reflect.get(current, 'bypass_actors') : [];
|
|
207
|
+
const key = (actor) => actor && typeof actor === 'object' ? `${String(Reflect.get(actor, 'actor_type'))}:${String(Reflect.get(actor, 'actor_id'))}` : '';
|
|
208
|
+
const bypass = [...kept, ...ruleset.body.bypass_actors.filter((actor) => !kept.some((entry) => key(entry) === key(actor)))];
|
|
209
|
+
await api({ method: 'PUT', path: `repos/${repository}/rulesets/${match.id}`, body: { ...ruleset.body, bypass_actors: bypass } });
|
|
210
|
+
result.updated.push(ruleset.name);
|
|
211
|
+
}
|
|
212
|
+
await api({ method: 'PATCH', path: `repos/${repository}`, body: SECRET_SCANNING });
|
|
213
|
+
return result;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Make sure a repository has what seq-ci's workflows need from the org: the `SEQ_CI_*` secrets, and the Sequence CI
|
|
217
|
+
* App's installation, which Promote's App token is scoped to. Both are org-wide (secrets visible to all private
|
|
218
|
+
* repositories, the App on all repositories), so a repository admin who isn't an org owner only confirms them.
|
|
219
|
+
* Should an org owner have narrowed either to selected repositories, an owner's `admin:org` token adds this one;
|
|
220
|
+
* anyone else gets `missing` back, naming what an owner must fix. Idempotent.
|
|
221
|
+
*/
|
|
222
|
+
export async function ensureSeqCi({ repository, api }) {
|
|
223
|
+
const [org] = repository.split('/');
|
|
224
|
+
const repo = await api({ method: 'GET', path: `repos/${repository}` });
|
|
225
|
+
const repoId = repo && typeof repo === 'object' ? Reflect.get(repo, 'id') : undefined;
|
|
226
|
+
if (typeof repoId !== 'number')
|
|
227
|
+
throw new Error(`GitHub returned no id for ${repository}`);
|
|
228
|
+
const visible = await api({ method: 'GET', path: `repos/${repository}/actions/organization-secrets?per_page=100` });
|
|
229
|
+
const entries = visible && typeof visible === 'object' ? Reflect.get(visible, 'secrets') : undefined;
|
|
230
|
+
const names = new Set(Array.isArray(entries) ? entries.map((entry) => entry?.name) : []);
|
|
231
|
+
const secrets = { shared: [], missing: [] };
|
|
232
|
+
for (const name of SEQ_CI_SECRETS) {
|
|
233
|
+
if (names.has(name)) {
|
|
234
|
+
secrets.shared.push(name);
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
try {
|
|
238
|
+
await api({ method: 'PUT', path: `orgs/${org}/actions/secrets/${name}/repositories/${repoId}` });
|
|
239
|
+
secrets.shared.push(name);
|
|
240
|
+
}
|
|
241
|
+
catch {
|
|
242
|
+
secrets.missing.push(name);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return { secrets, installation: await ensureInstallation({ org: org, repoId, api }) };
|
|
246
|
+
}
|
|
247
|
+
async function ensureInstallation({ org, repoId, api }) {
|
|
248
|
+
let listed;
|
|
249
|
+
// Listing an org's installations takes an org owner; for anyone else the App's coverage goes unverified.
|
|
250
|
+
try {
|
|
251
|
+
listed = await api({ method: 'GET', path: `orgs/${org}/installations?per_page=100` });
|
|
252
|
+
}
|
|
253
|
+
catch {
|
|
254
|
+
return 'unchecked';
|
|
255
|
+
}
|
|
256
|
+
const installations = listed && typeof listed === 'object' ? Reflect.get(listed, 'installations') : undefined;
|
|
257
|
+
const installation = Array.isArray(installations) ? installations.find((entry) => entry?.app_id === SEQUENCE_CI_APP.id) : undefined;
|
|
258
|
+
if (!installation || typeof installation.id !== 'number')
|
|
259
|
+
return 'missing';
|
|
260
|
+
// An installation on all repositories already covers this one; GitHub refuses to add a repository to it.
|
|
261
|
+
if (installation.repository_selection === 'all')
|
|
262
|
+
return 'all';
|
|
263
|
+
await api({ method: 'PUT', path: `user/installations/${installation.id}/repositories/${repoId}` });
|
|
264
|
+
return 'added';
|
|
265
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
/** Add documentation pointers without replacing project-specific instructions. */
|
|
1
|
+
/** Add documentation pointers without replacing project-specific instructions. Returns the files it created. */
|
|
2
2
|
export declare function writeScaffoldGuidance({ directory }: {
|
|
3
3
|
directory: string;
|
|
4
|
-
}): Promise<
|
|
4
|
+
}): Promise<string[]>;
|
|
5
|
+
/**
|
|
6
|
+
* A cloned repository may predate the guidance or carry its own. Add the guidance only when it has no AGENTS.md;
|
|
7
|
+
* otherwise leave the owner's file alone and say how to point it at the docs.
|
|
8
|
+
*/
|
|
9
|
+
export declare function guideClonedCheckout({ directory, envName }: {
|
|
10
|
+
directory: string;
|
|
11
|
+
envName: string;
|
|
12
|
+
}): Promise<string>;
|
|
@@ -1,15 +1,40 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
|
|
3
|
+
const GUIDANCE_FILES = ['AGENTS.md', 'CLAUDE.md'];
|
|
4
|
+
/** Present in every guidance template revision that points agents at `seq-studio docs`. */
|
|
5
|
+
const DOCS_POINTER = 'seq-studio docs search';
|
|
6
|
+
/** Add documentation pointers without replacing project-specific instructions. Returns the files it created. */
|
|
4
7
|
export async function writeScaffoldGuidance({ directory }) {
|
|
5
|
-
|
|
8
|
+
const created = [];
|
|
9
|
+
for (const name of GUIDANCE_FILES) {
|
|
6
10
|
const body = await readFile(new URL(`../templates/guidance/${name}`, import.meta.url), 'utf8');
|
|
7
11
|
try {
|
|
8
12
|
await writeFile(join(directory, name), body, { flag: 'wx' });
|
|
13
|
+
created.push(name);
|
|
9
14
|
}
|
|
10
15
|
catch (error) {
|
|
11
16
|
if (!(error instanceof Error && 'code' in error && error.code === 'EEXIST'))
|
|
12
17
|
throw error;
|
|
13
18
|
}
|
|
14
19
|
}
|
|
20
|
+
return created;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A cloned repository may predate the guidance or carry its own. Add the guidance only when it has no AGENTS.md;
|
|
24
|
+
* otherwise leave the owner's file alone and say how to point it at the docs.
|
|
25
|
+
*/
|
|
26
|
+
export async function guideClonedCheckout({ directory, envName }) {
|
|
27
|
+
const agents = await readFile(join(directory, 'AGENTS.md'), 'utf8').catch((error) => {
|
|
28
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
29
|
+
return null;
|
|
30
|
+
throw error;
|
|
31
|
+
});
|
|
32
|
+
const docsHint = `seq-studio docs search "<topic>" -e ${envName}`;
|
|
33
|
+
if (agents === null) {
|
|
34
|
+
const created = await writeScaffoldGuidance({ directory });
|
|
35
|
+
return `added ${created.join(' + ')} so coding agents read the platform docs (${docsHint}); commit them to share with your team`;
|
|
36
|
+
}
|
|
37
|
+
if (agents.includes(DOCS_POINTER))
|
|
38
|
+
return `AGENTS.md already points agents at the platform docs (${docsHint})`;
|
|
39
|
+
return `AGENTS.md has no docs pointer; add a line telling agents to run \`${docsHint}\` before using seq-studio`;
|
|
15
40
|
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
# Sequence development
|
|
2
2
|
|
|
3
|
-
Before every development task, read the
|
|
4
|
-
target environment.
|
|
5
|
-
|
|
3
|
+
Before every development task, read the Sequence developer docs for this
|
|
4
|
+
project's target environment. They match the platform version that environment
|
|
5
|
+
runs, so prefer them over memory, other repositories, or copied snippets.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
```sh
|
|
8
|
+
seq-studio envs list # find the environment name
|
|
9
|
+
seq-studio docs search "<what you need>" -e <env> # find the right page
|
|
10
|
+
seq-studio docs read <slug> -e <env> # read it in full
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Search before running an unfamiliar `seq-studio` command, and read the matching
|
|
14
|
+
page before changing a manifest. If the CLI cannot reach the docs, open
|
|
15
|
+
`<environment-url>/docs` (index at `/docs/llms.txt`) in the signed-in browser.
|
|
16
|
+
The docs are the single source of truth for platform usage; do not duplicate
|
|
17
|
+
their instructions in this file.
|
|
11
18
|
|
|
12
19
|
After concrete CLI friction costs time or retries, finish the task, then follow
|
|
13
|
-
the
|
|
20
|
+
the `seq-studio/feedback` docs page and run `seq-studio feedback submit`
|
|
14
21
|
before the final response. Include the confirmed receipt ID and ticket URL, or
|
|
15
22
|
the sanitized draft and submission evidence if no receipt is confirmed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequenceholdings/studio-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.21",
|
|
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": {
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"tsx": "^4.20.3",
|
|
46
46
|
"yaml": "^2.8.4",
|
|
47
47
|
"zod": "4.6.6",
|
|
48
|
-
"@sequenceholdings/agent-spec": "0.1.
|
|
49
|
-
"@sequenceholdings/artifact-studio": "0.11.
|
|
50
|
-
"@sequenceholdings/lattice": "0.1.8",
|
|
48
|
+
"@sequenceholdings/agent-spec": "0.1.6",
|
|
49
|
+
"@sequenceholdings/artifact-studio": "0.11.19",
|
|
51
50
|
"@sequenceholdings/managed-functions": "0.5.13",
|
|
52
51
|
"@sequenceholdings/storage": "0.1.8",
|
|
53
|
-
"@sequenceholdings/platform": "0.1.5"
|
|
52
|
+
"@sequenceholdings/platform": "0.1.5",
|
|
53
|
+
"@sequenceholdings/lattice": "0.1.9"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@sequenceholdings/
|
|
57
|
-
"@sequenceholdings/
|
|
56
|
+
"@sequenceholdings/orm": "2.11.0",
|
|
57
|
+
"@sequenceholdings/pipeline-spec": "0.3.12"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"@sequenceholdings/orm": {
|
package/release-summary.json
CHANGED
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
"0.9.18-next.0": "Preview build for testing automatic CLI updates on the next track. No command behavior changes.",
|
|
4
4
|
"0.9.18": "Artifact builds now use Atlas UI 3.7.0, including DatePicker and DateRangePicker.",
|
|
5
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."
|
|
6
|
+
"0.9.20": "Lattice date forms now use DatePicker instead of the browser's native date popup.",
|
|
7
|
+
"0.9.21": "New seq-studio docs search|read|list; repos clone adds agent docs guidance. Clones roll back on failure; new repos attach-login. Devbox sign-in no longer uses a shared identity. Browser login fails fast without a terminal. envs add accepts local:<name>. init and deploy flag lockfiles CI can't use."
|
|
7
8
|
}
|