@sequenceholdings/studio-cli 0.9.22 → 0.9.24
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 +152 -144
- package/dist/access/commands.js +3 -5
- package/dist/access/principal.js +2 -2
- package/dist/access/tier-hosts.js +2 -2
- package/dist/agents/commands.d.ts +1 -1
- package/dist/agents/commands.js +9 -9
- package/dist/agents/scaffold.js +3 -3
- package/dist/agents/voice.d.ts +1 -1
- package/dist/agents/voice.js +1 -1
- package/dist/app/commands.d.ts +2 -2
- package/dist/app/commands.js +31 -21
- package/dist/app/deploy.d.ts +1 -1
- package/dist/app/deploy.js +1 -1
- package/dist/app/manifest.d.ts +9 -9
- package/dist/app/manifest.js +1 -1
- package/dist/app/prepare.js +1 -1
- package/dist/app/primitive-scaffold.js +1 -1
- package/dist/app/readme.js +6 -6
- package/dist/app/scaffold.js +1 -1
- package/dist/app/validate.d.ts +1 -1
- package/dist/app/workspace-scaffold.js +1 -1
- package/dist/artifact/delegate.d.ts +1 -1
- package/dist/artifact/delegate.js +43 -3
- package/dist/auth-cmds/commands.js +1 -2
- package/dist/bin.js +12 -2
- package/dist/cli-attribution.d.ts +4 -0
- package/dist/cli-attribution.js +25 -3
- package/dist/cli-errors.d.ts +9 -1
- package/dist/cli-errors.js +20 -9
- package/dist/command-contract.d.ts +7 -182
- package/dist/command-contract.js +9 -33
- package/dist/command-help.d.ts +4 -4
- package/dist/command-help.js +24 -24
- package/dist/command-telemetry.js +2 -2
- package/dist/config-dir.d.ts +8 -0
- package/dist/config-dir.js +35 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +15 -3
- package/dist/docs/commands.js +9 -4
- package/dist/env-registry.d.ts +4 -0
- package/dist/env-registry.js +15 -6
- package/dist/envs/commands.d.ts +3 -0
- package/dist/envs/commands.js +11 -0
- package/dist/exit-codes.d.ts +16 -0
- package/dist/exit-codes.js +27 -0
- package/dist/functions/bundle.d.ts +1 -1
- package/dist/functions/commands.js +19 -18
- package/dist/functions/manifest.js +1 -1
- package/dist/functions/service-account-guidance.d.ts +1 -1
- package/dist/functions/service-account-guidance.js +2 -2
- package/dist/lifecycle/check.d.ts +13 -0
- package/dist/lifecycle/check.js +116 -0
- package/dist/lifecycle/commands.d.ts +14 -0
- package/dist/lifecycle/commands.js +121 -0
- package/dist/lifecycle/plan.d.ts +28 -0
- package/dist/lifecycle/plan.js +113 -0
- package/dist/lifecycle/rollback.d.ts +7 -0
- package/dist/lifecycle/rollback.js +89 -0
- package/dist/lifecycle/seq-ci-tools.d.ts +107 -0
- package/dist/lifecycle/seq-ci-tools.js +177 -0
- package/dist/lifecycle/upgrade.d.ts +3 -0
- package/dist/lifecycle/upgrade.js +38 -0
- package/dist/machine-output.d.ts +11 -2
- package/dist/machine-output.js +32 -10
- package/dist/main.d.ts +16 -6
- package/dist/main.js +187 -361
- package/dist/orgs.d.ts +45 -0
- package/dist/orgs.js +106 -0
- package/dist/orm/delegate.d.ts +1 -1
- package/dist/orm/delegate.js +32 -18
- package/dist/orm/deployment-policy.js +1 -2
- package/dist/orm/discover.js +6 -8
- package/dist/orm/execute.d.ts +1 -1
- package/dist/orm/execute.js +5 -6
- package/dist/orm/failures.js +2 -2
- package/dist/orm/help.d.ts +1 -1
- package/dist/orm/help.js +5 -5
- package/dist/orm/history.js +1 -2
- package/dist/orm/operation-show.js +1 -2
- package/dist/orm/version-guard.d.ts +7 -2
- package/dist/orm/version-guard.js +12 -7
- package/dist/pipeline/codegen.js +2 -2
- package/dist/pipeline/commands.js +9 -7
- package/dist/pipeline/discovery.d.ts +1 -1
- package/dist/pipeline/discovery.js +2 -3
- package/dist/pipeline/help.d.ts +1 -1
- package/dist/pipeline/help.js +1 -1
- package/dist/pipeline/lifecycle.js +1 -1
- package/dist/pipeline/stage-secrets.js +4 -4
- package/dist/pipeline/templates.js +2 -2
- package/dist/pnpm-auto-update.js +3 -3
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +1 -1
- package/dist/principals/commands.d.ts +1 -1
- package/dist/principals/commands.js +13 -14
- package/dist/process/commands.js +4 -1
- package/dist/process/run-steps.d.ts +2 -2
- package/dist/process/runs.js +1 -2
- package/dist/registry/commands.d.ts +4 -0
- package/dist/registry/commands.js +281 -0
- package/dist/registry/help.d.ts +8 -0
- package/dist/registry/help.js +64 -0
- package/dist/registry/lifecycle-commands.d.ts +3 -0
- package/dist/registry/lifecycle-commands.js +60 -0
- package/dist/registry/lookup.d.ts +6 -0
- package/dist/registry/lookup.js +18 -0
- package/dist/registry/runners.d.ts +14 -0
- package/dist/registry/runners.js +206 -0
- package/dist/registry/spec.d.ts +45 -0
- package/dist/registry/spec.js +8 -0
- package/dist/repos/commands.js +1 -2
- package/dist/repos/github-connect-command.d.ts +10 -1
- package/dist/repos/github-connect-command.js +52 -11
- package/dist/repos/github-init.d.ts +9 -2
- package/dist/repos/github-init.js +18 -2
- package/dist/repos/init-repo.js +1 -2
- package/dist/run-pinned.d.ts +48 -0
- package/dist/run-pinned.js +127 -0
- package/dist/sdk-source.d.ts +64 -0
- package/dist/sdk-source.js +199 -0
- package/dist/secrets/commands.d.ts +1 -1
- package/dist/secrets/commands.js +29 -24
- package/dist/service-accounts/commands.d.ts +1 -1
- package/dist/service-accounts/commands.js +4 -5
- package/dist/staged-env.d.ts +14 -0
- package/dist/staged-env.js +73 -0
- package/dist/storage/commands.js +21 -22
- package/dist/templates/catalog.d.ts +4 -4
- package/dist/update-check.js +3 -3
- package/dist/version-support.d.ts +39 -0
- package/dist/version-support.js +71 -0
- package/package.json +11 -10
- package/release-summary.json +3 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/** The reason `--break-glass` gave, which every request of this command carries (set by the router). */
|
|
2
|
+
export declare const BREAK_GLASS_ENV = "SEQ_STUDIO_BREAK_GLASS";
|
|
3
|
+
export declare const BREAK_GLASS_HEADER = "x-seq-break-glass";
|
|
4
|
+
export declare const DEPLOY_NOTICE_HEADER = "x-seq-deploy-notice";
|
|
1
5
|
export declare function cliAttributionHeaders(): Record<string, string>;
|
|
2
6
|
/** Inject only at the CLI-owned transport, after its origin/auth/redirect checks. */
|
|
3
7
|
export declare const fetchWithCliAttribution: typeof fetch;
|
package/dist/cli-attribution.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { currentVersion } from './update-check.js';
|
|
2
|
+
import { enforceSupportedVersion } from './version-support.js';
|
|
2
3
|
// Read this installed package, never the delegated Artifact Studio SDK version.
|
|
3
4
|
const version = currentVersion();
|
|
5
|
+
/** The reason `--break-glass` gave, which every request of this command carries (set by the router). */
|
|
6
|
+
export const BREAK_GLASS_ENV = 'SEQ_STUDIO_BREAK_GLASS';
|
|
7
|
+
export const BREAK_GLASS_HEADER = 'x-seq-break-glass';
|
|
8
|
+
export const DEPLOY_NOTICE_HEADER = 'x-seq-deploy-notice';
|
|
4
9
|
export function cliAttributionHeaders() {
|
|
5
|
-
|
|
10
|
+
const reason = process.env[BREAK_GLASS_ENV]?.trim();
|
|
11
|
+
return { 'x-sequence-client': 'seq-studio', 'x-sequence-client-version': version,
|
|
12
|
+
// Header values must be ByteString: a reason in another script is sent percent-encoded.
|
|
13
|
+
...(reason ? { [BREAK_GLASS_HEADER]: encodeURIComponent(reason).slice(0, 1000) } : {}) };
|
|
6
14
|
}
|
|
7
15
|
/** Inject only at the CLI-owned transport, after its origin/auth/redirect checks. */
|
|
8
16
|
export const fetchWithCliAttribution = (input, init) => {
|
|
@@ -15,10 +23,24 @@ export const fetchWithCliAttribution = (input, init) => {
|
|
|
15
23
|
if (name.toLowerCase() in identity)
|
|
16
24
|
delete headers[name];
|
|
17
25
|
}
|
|
18
|
-
return globalThis.fetch(input, { ...init, headers: { ...headers, ...identity } });
|
|
26
|
+
return globalThis.fetch(input, { ...init, headers: { ...headers, ...identity } }).then(checked);
|
|
19
27
|
}
|
|
20
28
|
const headers = new Headers(source);
|
|
21
29
|
for (const [name, value] of Object.entries(identity))
|
|
22
30
|
headers.set(name, value);
|
|
23
|
-
return globalThis.fetch(input, { ...init, headers });
|
|
31
|
+
return globalThis.fetch(input, { ...init, headers }).then(checked);
|
|
24
32
|
};
|
|
33
|
+
const shownNotices = new Set();
|
|
34
|
+
/**
|
|
35
|
+
* Every Atlas response names the CLI versions it supports; refuse below its minimum. A deploy of a resource a
|
|
36
|
+
* GitHub repository controls carries a notice saying so, shown once per command.
|
|
37
|
+
*/
|
|
38
|
+
function checked(response) {
|
|
39
|
+
enforceSupportedVersion(response, version);
|
|
40
|
+
const notice = response.headers.get(DEPLOY_NOTICE_HEADER)?.trim();
|
|
41
|
+
if (notice && !shownNotices.has(notice)) {
|
|
42
|
+
shownNotices.add(notice);
|
|
43
|
+
console.error(`note: ${notice}`);
|
|
44
|
+
}
|
|
45
|
+
return response;
|
|
46
|
+
}
|
package/dist/cli-errors.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare const LOG = "[seq-studio]";
|
|
2
2
|
/** Map common apply failure reasons to clearer copy (original reason is preserved). */
|
|
3
3
|
export declare function clarifyApplyFailureReason(reason: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* The 1.0 error shape: `error <what>`, then indented detail lines, ending with
|
|
6
|
+
* the next step when one is known.
|
|
7
|
+
*/
|
|
4
8
|
export declare function formatCliError(error: unknown): string[];
|
|
5
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Terminal command catches print through this and return its exit code
|
|
11
|
+
* (`return printCliError(error)`). Formatting alone remains side-effect free.
|
|
12
|
+
*/
|
|
13
|
+
export declare function printCliError(error: unknown): number;
|
package/dist/cli-errors.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PlatformError } from '@sequenceholdings/platform';
|
|
2
2
|
import { recordTerminalCommandError } from './command-telemetry.js';
|
|
3
3
|
import { AtlasApiError } from './atlas-client.js';
|
|
4
|
+
import { exitCodeFor } from './exit-codes.js';
|
|
4
5
|
import { DEVBOX_TOKEN_DIR_ENV, devboxUnauthorizedHint } from './host-token.js';
|
|
5
6
|
export const LOG = '[seq-studio]';
|
|
6
7
|
/** Map common apply failure reasons to clearer copy (original reason is preserved). */
|
|
@@ -52,11 +53,14 @@ function nextStepForAtlasError(error) {
|
|
|
52
53
|
const devbox = devboxUnauthorizedHint();
|
|
53
54
|
return devbox ? `Next step: ${devbox}` : 'Next step: run `seq-studio login` and retry.';
|
|
54
55
|
}
|
|
56
|
+
if (error.status === 403 && error.code === 'deploys_from_github') {
|
|
57
|
+
return 'Next step: merge the change in GitHub (or Promote) and let CI deploy it; in an emergency, retry with --break-glass "<reason>".';
|
|
58
|
+
}
|
|
55
59
|
if (error.status === 403) {
|
|
56
60
|
return 'Next step: confirm `-e` targets the right environment and you have the required access grant.';
|
|
57
61
|
}
|
|
58
62
|
if (error.status === 404 && msg.includes('function')) {
|
|
59
|
-
return 'Next step: run `seq-studio
|
|
63
|
+
return 'Next step: run `seq-studio function list -e <env>` and confirm `managed-function.yml` `function.id` matches a remote slug.';
|
|
60
64
|
}
|
|
61
65
|
if (error.status === 409 && msg.includes('version')) {
|
|
62
66
|
return 'Next step: rerun deploy — another upload may have taken the version slot.';
|
|
@@ -64,37 +68,44 @@ function nextStepForAtlasError(error) {
|
|
|
64
68
|
if (error.status === 413 || msg.includes('too large')) {
|
|
65
69
|
if (error.path.startsWith('/api/data-pipelines/'))
|
|
66
70
|
return 'Next step: reduce the request size and retry; pipeline query accepts up to 10,000 SQL characters.';
|
|
67
|
-
return 'Next step: run `seq-studio
|
|
71
|
+
return 'Next step: run `seq-studio function build` and reduce bundle size or dependencies.';
|
|
68
72
|
}
|
|
69
73
|
if (error.status === 503)
|
|
70
74
|
return nextStepFor503(error);
|
|
71
75
|
if (error.status === 524 || msg.includes('timeout') || msg.includes('timed out')) {
|
|
72
76
|
if (error.path.startsWith('/api/data-pipelines/'))
|
|
73
77
|
return 'Next step: retry the read; if it persists, confirm the environment and backend availability.';
|
|
74
|
-
return 'Next step: retry; if it persists check VPN/network, then `seq-studio
|
|
78
|
+
return 'Next step: retry; if it persists check VPN/network, then `seq-studio function list` or logs to see whether the operation completed.';
|
|
75
79
|
}
|
|
76
80
|
return null;
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* The 1.0 error shape: `error <what>`, then indented detail lines, ending with
|
|
84
|
+
* the next step when one is known.
|
|
85
|
+
*/
|
|
78
86
|
export function formatCliError(error) {
|
|
79
87
|
// Shared domain clients retain the CLI's existing status/path guidance.
|
|
80
88
|
if (error instanceof PlatformError)
|
|
81
89
|
return formatCliError(new AtlasApiError(error.status, error.message, error.path ?? '', '', { code: error.code }));
|
|
82
90
|
if (error instanceof AtlasApiError) {
|
|
83
|
-
const lines = [
|
|
91
|
+
const lines = [`error ${error.status}${error.statusText ? ` ${error.statusText}` : ''}: ${error.message}`];
|
|
84
92
|
if (error.path)
|
|
85
|
-
lines.push(
|
|
93
|
+
lines.push(` request: ${error.path}`);
|
|
86
94
|
const next = nextStepForAtlasError(error);
|
|
87
95
|
if (next)
|
|
88
|
-
lines.push(
|
|
96
|
+
lines.push(` next: ${next.replace(/^Next step: /, '')}`);
|
|
89
97
|
return lines;
|
|
90
98
|
}
|
|
91
|
-
return [
|
|
99
|
+
return [`error ${error instanceof Error ? error.message : String(error)}`];
|
|
92
100
|
}
|
|
93
|
-
|
|
94
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Terminal command catches print through this and return its exit code
|
|
103
|
+
* (`return printCliError(error)`). Formatting alone remains side-effect free.
|
|
104
|
+
*/
|
|
95
105
|
export function printCliError(error) {
|
|
96
106
|
recordTerminalCommandError(error);
|
|
97
107
|
for (const line of formatCliError(error)) {
|
|
98
108
|
console.error(line);
|
|
99
109
|
}
|
|
110
|
+
return exitCodeFor(error);
|
|
100
111
|
}
|
|
@@ -1,185 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, {
|
|
9
|
-
readonly name: "add";
|
|
10
|
-
readonly description: "Add a primitive to an app workspace";
|
|
11
|
-
readonly lifecycle: "preview";
|
|
12
|
-
readonly access: "offline";
|
|
13
|
-
readonly subcommands: readonly [];
|
|
14
|
-
}, {
|
|
15
|
-
readonly name: "validate";
|
|
16
|
-
readonly description: "Validate an app manifest, graph, paths, and members offline";
|
|
17
|
-
readonly lifecycle: "preview";
|
|
18
|
-
readonly access: "offline";
|
|
19
|
-
readonly subcommands: readonly [];
|
|
20
|
-
}, {
|
|
21
|
-
readonly name: "deploy";
|
|
22
|
-
readonly description: "Deploy an app workspace";
|
|
23
|
-
readonly lifecycle: "preview";
|
|
24
|
-
readonly access: "authenticated";
|
|
25
|
-
readonly subcommands: readonly [];
|
|
26
|
-
}, {
|
|
27
|
-
readonly name: "process";
|
|
28
|
-
readonly description: "Build and operate Lattice processes";
|
|
29
|
-
readonly lifecycle: "preview";
|
|
30
|
-
readonly access: "mixed";
|
|
31
|
-
readonly subcommands: readonly ["init", "lint", "plan", "apply", "test", "simulate", "bundle", "promote", "pull", "runs", "safety-baseline"];
|
|
32
|
-
}, {
|
|
33
|
-
readonly name: "artifact";
|
|
34
|
-
readonly description: "Build and operate Artifact Studio apps";
|
|
35
|
-
readonly lifecycle: "stable";
|
|
36
|
-
readonly access: "mixed";
|
|
37
|
-
readonly subcommands: readonly ["init", "whoami", "link", "env", "status", "list", "show", "validate", "build", "plan", "deploy", "dev", "promote", "pull", "rollback"];
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "functions";
|
|
40
|
-
readonly description: "Build and operate Managed Functions";
|
|
41
|
-
readonly lifecycle: "stable";
|
|
42
|
-
readonly access: "authenticated";
|
|
43
|
-
readonly subcommands: readonly ["init", "build", "deploy", "list", "show", "limits", "invoke", "logs", "promote", "rollback", "delete"];
|
|
44
|
-
}, {
|
|
45
|
-
readonly name: "agents";
|
|
46
|
-
readonly description: "Validate and deploy typed agent definitions";
|
|
47
|
-
readonly lifecycle: "preview";
|
|
48
|
-
readonly access: "mixed";
|
|
49
|
-
readonly subcommands: readonly ["init", "validate", "bundle", "plan", "apply", "list", "show"];
|
|
50
|
-
}, {
|
|
51
|
-
readonly name: "secrets";
|
|
52
|
-
readonly description: "Manage organization-owned secrets";
|
|
53
|
-
readonly lifecycle: "stable";
|
|
54
|
-
readonly access: "authenticated";
|
|
55
|
-
readonly subcommands: readonly ["create", "set", "list", "attach", "detach", "apply"];
|
|
56
|
-
}, {
|
|
57
|
-
readonly name: "repos";
|
|
58
|
-
readonly description: "Manage repositories and native CI; ci init is offline";
|
|
59
|
-
readonly lifecycle: "stable";
|
|
60
|
-
readonly access: "mixed";
|
|
61
|
-
readonly subcommands: readonly ["list", "namespaces", "show", "identity", "create", "clone", "attach-login", "pull", "pulls", "delete", "ci"];
|
|
62
|
-
}, {
|
|
63
|
-
readonly name: "repo";
|
|
64
|
-
readonly description: "Set up a GitHub repository and connect it to Atlas deploys";
|
|
65
|
-
readonly lifecycle: "preview";
|
|
66
|
-
readonly access: "mixed";
|
|
67
|
-
readonly subcommands: readonly ["init", "connect", "bind", "disconnect", "status"];
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: "templates";
|
|
70
|
-
readonly description: "Publish, synchronize, and list repository templates";
|
|
71
|
-
readonly lifecycle: "internal";
|
|
72
|
-
readonly access: "mixed";
|
|
73
|
-
readonly subcommands: readonly ["publish", "sync", "list"];
|
|
74
|
-
}, {
|
|
75
|
-
readonly name: "pipeline";
|
|
76
|
-
readonly description: "Discover and operate Data Pipelines";
|
|
77
|
-
readonly lifecycle: "preview";
|
|
78
|
-
readonly access: "staff";
|
|
79
|
-
readonly subcommands: readonly ["list", "assets", "search", "describe", "schema", "sample", "query", "init", "validate", "plan", "deploy", "status", "migrate", "adopt", "unbind", "retire", "run-now", "promote", "rollback"];
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "docs";
|
|
82
|
-
readonly description: "Search and read the environment's developer documentation";
|
|
83
|
-
readonly lifecycle: "preview";
|
|
84
|
-
readonly access: "public";
|
|
85
|
-
readonly subcommands: readonly ["search", "read", "list"];
|
|
86
|
-
}, {
|
|
87
|
-
readonly name: "feedback";
|
|
88
|
-
readonly description: "Submit agent feedback";
|
|
89
|
-
readonly lifecycle: "preview";
|
|
90
|
-
readonly access: "authenticated";
|
|
91
|
-
readonly subcommands: readonly ["submit"];
|
|
92
|
-
}, {
|
|
93
|
-
readonly name: "auth";
|
|
94
|
-
readonly description: "Manage Git authentication";
|
|
95
|
-
readonly lifecycle: "stable";
|
|
96
|
-
readonly access: "authenticated";
|
|
97
|
-
readonly subcommands: readonly ["whoami", "git-credential", "pat"];
|
|
98
|
-
}, {
|
|
99
|
-
readonly name: "orm";
|
|
100
|
-
readonly description: "Author and operate ORM namespaces";
|
|
101
|
-
readonly lifecycle: "preview";
|
|
102
|
-
readonly access: "mixed";
|
|
103
|
-
readonly subcommands: readonly ["init", "generate", "validate", "plan", "apply", "history", "deployment-policy", "execute", "namespaces", "describe", "read", "sql", "diff", "migrate-from-yaml", "import"];
|
|
104
|
-
}, {
|
|
105
|
-
readonly name: "envs";
|
|
106
|
-
readonly description: "Manage CLI environments";
|
|
107
|
-
readonly lifecycle: "stable";
|
|
108
|
-
readonly access: "mixed";
|
|
109
|
-
readonly subcommands: readonly ["add", "list"];
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "login";
|
|
112
|
-
readonly description: "Authenticate with Sequence";
|
|
113
|
-
readonly lifecycle: "stable";
|
|
114
|
-
readonly access: "public";
|
|
115
|
-
readonly subcommands: readonly [];
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "logout";
|
|
118
|
-
readonly description: "Remove cached user tokens";
|
|
119
|
-
readonly lifecycle: "stable";
|
|
120
|
-
readonly access: "public";
|
|
121
|
-
readonly subcommands: readonly [];
|
|
122
|
-
}, {
|
|
123
|
-
readonly name: "doctor";
|
|
124
|
-
readonly description: "Diagnose CLI configuration and access";
|
|
125
|
-
readonly lifecycle: "stable";
|
|
126
|
-
readonly access: "mixed";
|
|
127
|
-
readonly subcommands: readonly [];
|
|
128
|
-
}, {
|
|
129
|
-
readonly name: "telemetry";
|
|
130
|
-
readonly description: "Control authenticated command telemetry";
|
|
131
|
-
readonly lifecycle: "preview";
|
|
132
|
-
readonly access: "offline";
|
|
133
|
-
readonly subcommands: readonly ["enable", "disable", "status"];
|
|
134
|
-
}, {
|
|
135
|
-
readonly name: "updater";
|
|
136
|
-
readonly description: "Control global pnpm CLI updates";
|
|
137
|
-
readonly lifecycle: "preview";
|
|
138
|
-
readonly access: "offline";
|
|
139
|
-
readonly subcommands: readonly ["status", "track"];
|
|
140
|
-
}, {
|
|
141
|
-
readonly name: "version";
|
|
142
|
-
readonly description: "Print the installed CLI version";
|
|
143
|
-
readonly lifecycle: "stable";
|
|
144
|
-
readonly access: "offline";
|
|
145
|
-
readonly subcommands: readonly [];
|
|
146
|
-
}, {
|
|
147
|
-
readonly name: "help";
|
|
148
|
-
readonly description: "Show command help";
|
|
149
|
-
readonly lifecycle: "stable";
|
|
150
|
-
readonly access: "offline";
|
|
151
|
-
readonly subcommands: readonly [];
|
|
152
|
-
}, {
|
|
153
|
-
readonly name: "storage";
|
|
154
|
-
readonly description: "Manage Workspaces V2 file storage";
|
|
155
|
-
readonly lifecycle: "preview";
|
|
156
|
-
readonly access: "authenticated";
|
|
157
|
-
readonly subcommands: readonly ["init", "validate", "apply", "list", "show", "mkdir", "upload", "import", "uploads", "reconcile", "download", "access", "trash", "restore", "purge", "operations", "abort", "delete"];
|
|
158
|
-
}, {
|
|
159
|
-
readonly name: "access";
|
|
160
|
-
readonly description: "Manage resource access on every primitive";
|
|
161
|
-
readonly lifecycle: "preview";
|
|
162
|
-
readonly access: "authenticated";
|
|
163
|
-
readonly subcommands: readonly ["definitions", "list", "grant", "revoke", "resolve"];
|
|
164
|
-
}, {
|
|
165
|
-
readonly name: "principals";
|
|
166
|
-
readonly description: "Find principals and manage local groups";
|
|
167
|
-
readonly lifecycle: "preview";
|
|
168
|
-
readonly access: "authenticated";
|
|
169
|
-
readonly subcommands: readonly ["search", "users", "groups"];
|
|
170
|
-
}, {
|
|
171
|
-
readonly name: "service-accounts";
|
|
172
|
-
readonly description: "Manage runtime service accounts";
|
|
173
|
-
readonly lifecycle: "preview";
|
|
174
|
-
readonly access: "authenticated";
|
|
175
|
-
readonly subcommands: readonly ["list", "show", "create"];
|
|
176
|
-
}, {
|
|
177
|
-
readonly name: "capabilities";
|
|
178
|
-
readonly description: "Print the supported CLI command surface";
|
|
179
|
-
readonly lifecycle: "blocked";
|
|
180
|
-
readonly access: "offline";
|
|
181
|
-
readonly subcommands: readonly [];
|
|
182
|
-
}];
|
|
1
|
+
export declare const COMMAND_CONTRACT: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
lifecycle: import("./registry/spec.js").Lifecycle;
|
|
5
|
+
access: import("./registry/spec.js").Access;
|
|
6
|
+
subcommands: string[];
|
|
7
|
+
}[];
|
|
183
8
|
export declare function renderCapabilities({ json }?: {
|
|
184
9
|
json?: boolean;
|
|
185
10
|
}): string;
|
package/dist/command-contract.js
CHANGED
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
/** Machine-readable summary of the CLI surface,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{ name: 'agents', description: 'Validate and deploy typed agent definitions', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'validate', 'bundle', 'plan', 'apply', 'list', 'show'] },
|
|
11
|
-
{ name: 'secrets', description: 'Manage organization-owned secrets', lifecycle: 'stable', access: 'authenticated', subcommands: ['create', 'set', 'list', 'attach', 'detach', 'apply'] },
|
|
12
|
-
{ name: 'repos', description: 'Manage repositories and native CI; ci init is offline', lifecycle: 'stable', access: 'mixed', subcommands: ['list', 'namespaces', 'show', 'identity', 'create', 'clone', 'attach-login', 'pull', 'pulls', 'delete', 'ci'] },
|
|
13
|
-
{ name: 'repo', description: 'Set up a GitHub repository and connect it to Atlas deploys', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'connect', 'bind', 'disconnect', 'status'] },
|
|
14
|
-
{ name: 'templates', description: 'Publish, synchronize, and list repository templates', lifecycle: 'internal', access: 'mixed', subcommands: ['publish', 'sync', 'list'] },
|
|
15
|
-
{ name: 'pipeline', description: 'Discover and operate Data Pipelines', lifecycle: 'preview', access: 'staff', subcommands: ['list', 'assets', 'search', 'describe', 'schema', 'sample', 'query', 'init', 'validate', 'plan', 'deploy', 'status', 'migrate', 'adopt', 'unbind', 'retire', 'run-now', 'promote', 'rollback'] },
|
|
16
|
-
{ name: 'docs', description: 'Search and read the environment\'s developer documentation', lifecycle: 'preview', access: 'public', subcommands: ['search', 'read', 'list'] },
|
|
17
|
-
{ name: 'feedback', description: 'Submit agent feedback', lifecycle: 'preview', access: 'authenticated', subcommands: ['submit'] },
|
|
18
|
-
{ name: 'auth', description: 'Manage Git authentication', lifecycle: 'stable', access: 'authenticated', subcommands: ['whoami', 'git-credential', 'pat'] },
|
|
19
|
-
{ name: 'orm', description: 'Author and operate ORM namespaces', lifecycle: 'preview', access: 'mixed', subcommands: ['init', 'generate', 'validate', 'plan', 'apply', 'history', 'deployment-policy', 'execute', 'namespaces', 'describe', 'read', 'sql', 'diff', 'migrate-from-yaml', 'import'] },
|
|
20
|
-
{ name: 'envs', description: 'Manage CLI environments', lifecycle: 'stable', access: 'mixed', subcommands: ['add', 'list'] },
|
|
21
|
-
{ name: 'login', description: 'Authenticate with Sequence', lifecycle: 'stable', access: 'public', subcommands: [] },
|
|
22
|
-
{ name: 'logout', description: 'Remove cached user tokens', lifecycle: 'stable', access: 'public', subcommands: [] },
|
|
23
|
-
{ name: 'doctor', description: 'Diagnose CLI configuration and access', lifecycle: 'stable', access: 'mixed', subcommands: [] },
|
|
24
|
-
{ name: 'telemetry', description: 'Control authenticated command telemetry', lifecycle: 'preview', access: 'offline', subcommands: ['enable', 'disable', 'status'] },
|
|
25
|
-
{ name: 'updater', description: 'Control global pnpm CLI updates', lifecycle: 'preview', access: 'offline', subcommands: ['status', 'track'] },
|
|
26
|
-
{ name: 'version', description: 'Print the installed CLI version', lifecycle: 'stable', access: 'offline', subcommands: [] },
|
|
27
|
-
{ name: 'help', description: 'Show command help', lifecycle: 'stable', access: 'offline', subcommands: [] },
|
|
28
|
-
{ name: 'storage', description: 'Manage Workspaces V2 file storage', lifecycle: 'preview', access: 'authenticated', subcommands: ['init', 'validate', 'apply', 'list', 'show', 'mkdir', 'upload', 'import', 'uploads', 'reconcile', 'download', 'access', 'trash', 'restore', 'purge', 'operations', 'abort', 'delete'] },
|
|
29
|
-
{ name: 'access', description: 'Manage resource access on every primitive', lifecycle: 'preview', access: 'authenticated', subcommands: ['definitions', 'list', 'grant', 'revoke', 'resolve'] },
|
|
30
|
-
{ name: 'principals', description: 'Find principals and manage local groups', lifecycle: 'preview', access: 'authenticated', subcommands: ['search', 'users', 'groups'] },
|
|
31
|
-
{ name: 'service-accounts', description: 'Manage runtime service accounts', lifecycle: 'preview', access: 'authenticated', subcommands: ['list', 'show', 'create'] },
|
|
32
|
-
{ name: 'capabilities', description: 'Print the supported CLI command surface', lifecycle: 'blocked', access: 'offline', subcommands: [] },
|
|
33
|
-
];
|
|
1
|
+
/** Machine-readable summary of the CLI surface, derived from the command registry. */
|
|
2
|
+
import { COMMANDS } from './registry/commands.js';
|
|
3
|
+
export const COMMAND_CONTRACT = COMMANDS.map(({ name, description, lifecycle, access, subcommands }) => ({
|
|
4
|
+
name,
|
|
5
|
+
description,
|
|
6
|
+
lifecycle,
|
|
7
|
+
access,
|
|
8
|
+
subcommands: subcommands.filter(({ listed }) => listed !== false).map((sub) => sub.name),
|
|
9
|
+
}));
|
|
34
10
|
export function renderCapabilities({ json = false } = {}) {
|
|
35
11
|
const commands = COMMAND_CONTRACT.map(({ name, description, lifecycle, access, subcommands }) => ({
|
|
36
12
|
name,
|
package/dist/command-help.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ export { PIPELINE_HELP } from './pipeline/help.js';
|
|
|
3
3
|
export declare const INIT_INTO_REPO_HELP = " Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n";
|
|
4
4
|
export declare const ORM_HISTORY_HELP = "usage:\n seq-studio orm history <namespace> -e <env> [--limit N] [--json]\n\n Lists every change to the namespace's live schema and operations, newest\n first: when, who, what moved, and the Git Service source. \"verified\" and \"ci\"\n sources were checked by Atlas against the repository; \"reported\" means Atlas\n could not tie the change to a pushed commit on a release branch, with the\n reason when one was claimed. \"break_glass\" is an admin override made with\n orm apply --unverified-source \"<reason>\". * marks the live activation.\n History starts with the first apply after the environment recorded it.\n";
|
|
5
5
|
export declare const ORM_DEPLOYMENT_POLICY_HELP = "usage:\n seq-studio orm deployment-policy <namespace> -e <env> [--json]\n seq-studio orm deployment-policy <namespace> -e <env> --mode ci --repo <ns>/<name> --branch <branch> --target <target-key>\n seq-studio orm deployment-policy <namespace> -e <env> --mode manual\n seq-studio orm deployment-policy <namespace> -e <env> --mode source --repo <ns>/<name> --branch <branch> --path <dir> [--source-env <env>]\n\n Existing namespaces default to manual deployment. CI mode rejects direct ORM\n registration, schema apply, and operations-only activation on the server;\n only the enrolled repository's verified merge deployment may activate changes.\n Enabling CI mode requires namespace Admin, repository Admin, and an existing\n automatic branch binding to this namespace. Restoring manual mode requires\n namespace Admin. This changes deployment policy; it does not deploy source.\n\n Source mode keeps direct applies but accepts only ones Atlas verifies came\n from that repository, branch and package directory (pass --path . for the\n repository root). It requires namespace Admin and repository Read. Namespace\n admins can still apply with --unverified-source \"<reason>\", which is recorded.\n --source-env names the environment whose Git Service holds the repository when\n it is not this one's (sign in there too); applies must then pass the same\n --source-env from a clean clone of that repository.\n";
|
|
6
|
-
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir> [--repo <ns>/<name>]\n seq-studio orm
|
|
6
|
+
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir> [--repo <ns>/<name>]\n seq-studio orm build [dir] [--migration-export] [--check]\n seq-studio orm validate [dir]\n seq-studio orm plan [dir] -e <env>\n seq-studio orm apply [dir] -e <env> [--timeout <duration>] [--no-wait] [--unverified-source \"<reason>\"] [--source-env <env>]\n seq-studio orm history <namespace> -e <env> [--limit N] [--json]\n seq-studio orm deployment-policy <namespace> -e <env> [--mode manual|ci|source] [--repo <ns>/<name> --branch <branch> (--target <target-key> | --path <dir> [--source-env <env>])] [--json]\n seq-studio orm run <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...\n seq-studio orm run <operation> [dir] --variables-file <file> -e <env>\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm show <namespace> [<table> | --operations] -e <env> [--json]\n seq-studio orm operation show <namespace> <name> -e <env> [--json]\n seq-studio orm read <namespace> <table> -e <env> [--where <column>=<op>.<value>]... [--select <cols>] [--order <col>[.desc]] [--limit N] [--offset N] [--json|--jsonl]\n seq-studio orm sql <namespace> --query <sql> | --file <path> -e <env> [--param <name>[:<type>]=<value>]... | [--params <json-object>] [--json|--jsonl]\n seq-studio orm diff [dir] [--check] [--allow-destructive] [--rebase]\n seq-studio orm migrate-from-yaml <dir>\n seq-studio orm import [dir] --spec <file> | --table <table> --from <schema.table> --map <target=source,...>\n\n -e/--env is required for commands that contact Atlas. Use seq-studio envs list\n to discover environments and seq-studio login to authenticate.\n Schema commands require the ORM loaded by seq-studio to satisfy the v2\n namespace's package.json @sequenceholdings/orm range before compiling.\n apply waits until the new version is live and serving (default up to 20m), then\n prints \"live:\"; --no-wait returns once the apply is queued.\n CI-managed namespaces reject direct apply; use the enrolled repository's merge\n workflow. Source-pinned namespaces accept only applies Atlas verifies against\n their repository, branch and package path, and an environment can require a\n verified source for every apply. A namespace admin may record an audited\n exception with --unverified-source \"<reason>\". --source-env <env> applies from a\n clone of another environment's Git Service, which Atlas verifies there with your\n sign-in for it. deployment-policy reads or explicitly changes this namespace setting.\n namespaces lists what you can read; describe shows its tables and operations.\n Run seq-studio orm show --help for the output.\n execute <namespace> <operation> runs the deployed version's persisted operation by\n name, with no checkout. Run seq-studio orm run --help for both forms.\n read and sql query a v2 namespace as you through its built-in read-only SQL.\n sql must name tables as <namespace>.<table> (FROM lending.loans, not FROM loans).\n Run seq-studio orm read --help for the filter grammar, parameters, and output formats.\n\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n";
|
|
7
7
|
/** Artifact commands in sandbox token mode; shared by the offline and delegate usage. */
|
|
8
8
|
export declare const ARTIFACT_SANDBOX_HELP = " In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), build, plan\n and deploy take --repo: push the app to a Git Service repository and deploy\n from it. Atlas builds Next.js applications; static applications are bundled\n from the repository and must declare no package.json dependencies or\n optionalDependencies, because the sandbox cannot reach a package registry.\n dev, login, logout, --git-url, --source-env, --pr and --env-url are\n unavailable there, and -e is ignored.\n";
|
|
9
9
|
export declare const ARTIFACT_HELP = "usage:\n seq-studio artifact init <dir> [--template react-vite|nextjs] [--repo <namespace>/<name>]\n seq-studio artifact whoami -e <env>\n seq-studio artifact link [dir] -e <env> [--project <id>]\n seq-studio artifact env list|use <env>\n seq-studio artifact status [-e <env>]\n seq-studio artifact list -e <env> [--json]\n seq-studio artifact show <slug-or-id> -e <env> [--json]\n seq-studio artifact validate [dir]\n seq-studio artifact build|plan|deploy [dir | --repo <namespace>/<name> | --git-url <url>] [--ref <ref>] -e <env>\n seq-studio artifact dev [dir] -e <env> [--once] [--key <name>] [--link <package-dir>] [--port <port>] [--secret-source local|hosted|none] [--local-secrets <bindings.json>] [--bundler turbopack|webpack]\n seq-studio artifact pull <project-id> -e <env> --out <dir>\n seq-studio artifact promote|rollback <deployment-id> -e <env>\n\n Help is available offline. Authenticate with seq-studio login. Build and deploy\n sources may be local, a platform git-service repo, or a public HTTPS Git URL;\n deployments target a named environment with -e. Local, preview, and official\n deployment workflows have different source and approval rules; see the public\n CLI README.\n\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n\n In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), build, plan\n and deploy take --repo: push the app to a Git Service repository and deploy\n from it. Atlas builds Next.js applications; static applications are bundled\n from the repository and must declare no package.json dependencies or\n optionalDependencies, because the sandbox cannot reach a package registry.\n dev, login, logout, --git-url, --source-env, --pr and --env-url are\n unavailable there, and -e is ignored.\n";
|
|
10
|
-
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio
|
|
10
|
+
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio function init <dir> [--repo <ns>/<name>] scaffold manifest, TypeScript handler, and docs pointers;\n --repo scaffolds into a git-service repo (see Init into a repo)\n seq-studio function build [--dir d] local pre-flight (manifest, lockfile, SDK timeout cap)\n seq-studio function register -e <env> [--dir d] register a shell + initial secret declarations; no deploy\n seq-studio function deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress\n seq-studio function list -e <env> [--match-local] functions visible on the environment\n seq-studio function show -e <env> [--fn slug] detail for one function (input/output schemas, versions, secrets)\n [--schema] function identity plus input/output JSON Schemas, as JSON (any caller who can see it)\n [--json] [--version id|name] reader-gated release provenance\n seq-studio function limits [-e <env>] [--json] bundled defaults/caps, or deployed policy\n [--fn slug] also show effective runtime limits (requires -e)\n seq-studio function dev [--dir path] [--port 8080] local HTTP server with cache context\n seq-studio function run -e <env> [--data JSON | --data @file | --stdin]\n invoke a function and print its response\n seq-studio function logs -e <env> [--limit N] [--since t] function logs (reader-gated)\n seq-studio function promote <version> -e <env> [--fn <slug>]\n make a version live\n seq-studio function rollback [<version>] -e <env> [--fn <slug>]\n redeploy a prior version\n seq-studio function delete -e <env> [--fn <slug>] [--yes]\n archive function + tear down its runtime\n (version history is retained)\n\n Flags: -e/--env <env|preview:<slug>> (required for network commands; see: seq-studio envs list) \u00B7 --fn <slug> \u00B7 --dir <path>\n --fn selects a deployed function without a local manifest; otherwise the manifest in --dir (default .) supplies its slug\n --path <repo-subdirectory> (remote build/deploy only) select one function in a multi-function repo\n --from-env-file <path> (default: .env) source file for secret values\n --no-wait \u00B7 --yes\n --no-provision (deploy) update-only: error instead of registering a new\n shell, writing secret values, or attaching secrets (CI sweep)\n\n Local Atlas builds and runs deployed functions on this computer, including teardown.\n \"functions dev\" runs a standalone handler without Atlas registration.\n\n Configure per-function CPU and concurrency in managed-function.yml under limits.\n Run \"functions limits\" for valid settings; redeploy to apply manifest changes.\n Invocation rates are shared across Atlas replicas; 429 includes Retry-After.\n If the shared rate limiter is unavailable, invocation fails closed with 503.\n\n Source for build/deploy: a local --dir (default .), a platform git-service\n repo (--repo <ns>/<name>), or a public HTTPS git URL (--git-url <url>). --path selects\n a function directory within a remote repo; omit it for the existing root-manifest\n layout. --ref selects a branch/tag/commit (default: the repo's default branch).\n Remote sources record the pinned commit as provenance (never dirty) and NEVER\n read a repo-committed .env for secret values \u2014 provision secrets server-side\n or pass a local --from-env-file (resolved against your cwd).\n Local deploys record repository-wide gitDirty, including unignored files\n outside --dir. Check git status at the repository root before deploying.\n\n Workspace dependencies are compiled from packages declared in a containing\n sequence.app.yml, within the source repository. Only the selected function is\n deployed: no sibling primitives or Application registration. Shared Node packages\n can set package.json seqStudio.source to a root source entry for clean builds.\n Package build scripts are not run. Local secret paths remain relative to --dir.\n\n Interactive --repo builds clone over smart-HTTP using your seq-studio login\n and repository read access. No PAT is needed. Headless M2M builds use JSON\n materialize and accept only platform-managed --repo sources. Use --env to\n select the same environment for source and deployment.\n\n Init into a repo: --repo <ns>/<name> on an init command creates that platform\n git-service repo if missing (same name rules as repos create), then clones it\n into <dir> and scaffolds there, or, when <dir> is inside a Git checkout, sets\n it as that checkout's origin (a different existing origin is refused). It\n needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the\n command prints the git add, commit, and push to run.\n In a git-service checkout (with or without --repo), orm init, functions init\n and artifact init also declare the scaffold under resources in\n .seq/repository.yml, so repository CI checks and deploys it. A scaffold inside\n a declared application is not declared; add it to that app with seq-studio add.\n";
|
|
11
11
|
export declare const REPOS_USAGE = "usage:\n seq-studio repos list -e <env> [--namespace <slug>] [--mine] repos visible on the environment\n seq-studio repos namespaces [create <slug>] -e <env> list or create namespaces\n seq-studio repos show <ns>/<name> -e <env> repo detail (branches, clone URL)\n seq-studio repos identity <ns>/<name> -e <env> [--write --dir .] show/install the server-issued identity receipt\n --adopt --write --yes admin-only legacy binding; commit the receipt via PR\n seq-studio repos create <ns>/<name> -e <env> [--default-branch b] [--git-backend walgit]\n create a repo seeded with a README; --git-backend\n walgit creates it empty (for pushing existing\n history); needs namespace write. Returns once\n the repo resolves by name, so clone can follow\n at once. The init commands take --repo\n <ns>/<name> to create, clone, and scaffold\n seq-studio repos clone <ns>/<name> -e <env> [--ref r] [--output dir] [--force] [--full] [--transport auto|git|json]\n seq-studio repos clone --url <https://\u2026/repos/<id>/git> -e <env> [--ref r] [--output dir] [--full]\n seq-studio repos clone --id <uuid> -e <env> [--ref r] [--output dir] [--full]\n real Git clone using seq-studio login;\n configures login for subsequent git pull/push;\n a failed clone leaves no partial checkout\n seq-studio repos attach-login [dir] -e <env> [--remote origin] bind the login credential helper to an\n existing checkout (plain git clone, or\n after an upgrade moved seq-studio)\n seq-studio repos pull <ns>/<name> -e <env> [--ref r] [--out dir] [--force]\n materialize the tree at a ref (JSON API)\n seq-studio repos pulls <list|show|create|diff|merge|edit|close|comment|comments|resolve|unresolve|review|reviews|checks> [args]\n review requests (see pulls --help)\n seq-studio repos delete <ns>/<name> -e <env> [--yes] delete a repo (confirm prompt)\n seq-studio repos ci init [--dir <repository>] create a native pipeline using platform defaults\n seq-studio repos ci show <ns>/<name> -e <env> --pr <number> [--json] inspect the server CI plan and runs\n seq-studio repos ci show <ns>/<name> -e <env> [--ref r] preview pipeline discovery or legacy checks\n seq-studio repos ci require <ns>/<name> --check <name> -e <env> disabled legacy control\n seq-studio repos ci import <ns>/<name> -e <env> [--ref r] disabled legacy control\n\n Flags: -e/--env <env> (required; see: seq-studio envs list)\n\n clone uses your login token (never written into the remote URL or Git config).\n A repository-local credential helper reads your current login for git pull/push.\n After expiry, run seq-studio login --env <env> again.\n --transport auto (default) and git both create a real Git checkout.\n Personal access tokens are retired; ATLAS_GIT_PAT is ignored.\n --transport json downloads files without .git; requires\n <ns>/<name>. repos pull also provides this files-only workflow.\n --ref accepts a branch, tag, or commit SHA (SHA \u2192 full clone, then checkout).\n Branch and tag clones are shallow (--depth 1). Pass --full for history.\n --output selects the clone directory (--out remains an alias).\n\n Authenticate JSON API calls with: seq-studio login\n Authenticate git clone/push with: seq-studio login --env <env>\n";
|
|
12
12
|
export declare const PROCESS_RUNS_USAGE = "usage:\n seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>]\n [--metadata-file <file.json>] [--title <text>] [--entity <type>:<id>] [--json]\n seq-studio process runs retry <run-id> -e <env> [--run-id <new-id>] [--json]\n seq-studio process runs list -e <env> [--process <id>] [--status <status>]\n [--entity-type <type>] [--entity-id <id>] [--archived] [--limit 1..500] [--json]\n seq-studio process runs show <run-id> -e <env> [--wait [--timeout <seconds>]]\n [--steps [--node <node-id>] [--full]] [--json]\n seq-studio process runs cancel <run-id> -e <env> [--json]\n\n Runs start and are read as you: start and retry need invoker on the process,\n show and list return only runs you can view, and cancel needs invoker on the\n process.\n start prints the new run's id. Omit --run-id for a fresh id on every start.\n --run-id names exactly one run: repeating it for the same process returns that\n run, whatever its status, instead of starting another. To run a failed run\n again, retry it rather than inventing a new id.\n --version pins a published process version; omitted, the active version runs.\n --metadata-file is a JSON object stored on the run.\n retry (CLI 0.9.0+) starts a new run of a failed, cancelled or timed_out run's\n process version with the same metadata, entity and title, linked to the\n original in its lineage, and prints the new id. Other statuses are refused.\n Like start, a retry waits queued while the process is at its concurrent-run\n limit.\n --run-id on retry names the new run, so repeating the retry returns it.\n list returns the newest runs first, up to --limit (default 50, max 500); the run\n API has no cursor, so narrow with filters to reach older runs.\n --status: pending, running, completed, failed, cancelled, timed_out.\n show --wait polls until the run finishes (default timeout 600s); the run keeps\n going if the wait times out. show prints the run's error when it failed.\n show --steps (CLI 0.9.1+) prints each step's status, edge, error, input and\n output, with the same viewer permission as show. Inputs, outputs and errors\n over 2000 characters are cut to a preview; --full prints them whole.\n --node narrows to one node. With --json, --steps returns { run, steps } with\n the same bounds; each step's truncated map names its cut fields and their full\n length. A failure in a node's input mapper happens before its step\n starts, so it shows only as the run's error.\n";
|
|
13
|
-
export declare const ORM_DISCOVER_HELP = "usage:\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm
|
|
14
|
-
export declare const ORM_EXECUTE_HELP = "usage:\n seq-studio orm
|
|
13
|
+
export declare const ORM_DISCOVER_HELP = "usage:\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm show <namespace> [<table> | --operations] -e <env> [--json]\n seq-studio orm operation show <namespace> <name> -e <env> [--json]\n\n Find the ORM data you can read, then query it with orm read or orm sql.\n namespaces lists only namespaces you can read, ordered by name: format (v2 or\n v1), table and persisted-operation counts. It pages with --limit (default 50)\n and --offset; the total and the next page go to stderr.\n describe <namespace> lists its tables and views and the persisted operations\n it serves, with what each requires and the variables it declares (name: type,\n ! when required). --operations prints only the operations, ready for\n orm execute <namespace> <operation>. describe <namespace> <table> lists the\n table's columns (types, nullability, keys), enum values, links, actions, and\n the persisted operations that write it. Column names are the ones orm read and\n orm sql accept.\n A namespace you cannot read reports not found, the same as a missing one.\n --json omits SDL, adds active set/schema IDs and ops hash; retry on a mismatch.\n operation show prints one active persisted operation's registered GraphQL\n document; --json includes its hash, declared variables, and requirements.\n Missing and unreadable operations both report not found.\n In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), -e is not needed.\n";
|
|
14
|
+
export declare const ORM_EXECUTE_HELP = "usage:\n seq-studio orm run <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...\n seq-studio orm run <operation> [dir] --variables-file <file> -e <env>\n\n Run one persisted operation as you. The server applies the operation's\n required capability or role and the namespace's row policies.\n By name: execute <namespace> <operation> looks the operation up in the\n namespace's deployed version and runs it. No checkout is needed, so it runs\n what is deployed even when a local clone is behind. List what you can run:\n seq-studio orm show <namespace> --operations\n From a checkout: execute <operation> [dir] delegates to the installed ORM\n package using the directory's operations.manifest.json (default dir: .).\n Updated ORM packages validate the name and kind, then call the active named\n operation. Older packages may still select the manifest hash. Confirm the\n installed package and platform support name selection before upgrading.\n The form is chosen by the second argument: an existing directory means a\n checkout; otherwise it is <namespace> <operation>.\n --variables-file takes a JSON object; - or /dev/stdin reads UTF-8 stdin until EOF\n (the checkout form requires an ORM package with stdin support).\n --var <name>=<value> (repeatable, by\n name only) sets one variable and wins over the file: numbers and booleans\n parse by the declared type, lists, filter inputs and jsonb take JSON, and other\n types take the text as is. Use the file for null.\n Output is the JSON response: {\"data\": ...}.\n In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), -e is not needed.\n";
|
|
15
15
|
export declare function staticHelp({ namespace, sub }: {
|
|
16
16
|
namespace: string;
|
|
17
17
|
sub?: string;
|
package/dist/command-help.js
CHANGED
|
@@ -48,16 +48,16 @@ export const ORM_DEPLOYMENT_POLICY_HELP = `usage:
|
|
|
48
48
|
`;
|
|
49
49
|
export const ORM_HELP = `usage:
|
|
50
50
|
seq-studio orm init <dir> [--repo <ns>/<name>]
|
|
51
|
-
seq-studio orm
|
|
51
|
+
seq-studio orm build [dir] [--migration-export] [--check]
|
|
52
52
|
seq-studio orm validate [dir]
|
|
53
53
|
seq-studio orm plan [dir] -e <env>
|
|
54
54
|
seq-studio orm apply [dir] -e <env> [--timeout <duration>] [--no-wait] [--unverified-source "<reason>"] [--source-env <env>]
|
|
55
55
|
seq-studio orm history <namespace> -e <env> [--limit N] [--json]
|
|
56
56
|
seq-studio orm deployment-policy <namespace> -e <env> [--mode manual|ci|source] [--repo <ns>/<name> --branch <branch> (--target <target-key> | --path <dir> [--source-env <env>])] [--json]
|
|
57
|
-
seq-studio orm
|
|
58
|
-
seq-studio orm
|
|
57
|
+
seq-studio orm run <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...
|
|
58
|
+
seq-studio orm run <operation> [dir] --variables-file <file> -e <env>
|
|
59
59
|
seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]
|
|
60
|
-
seq-studio orm
|
|
60
|
+
seq-studio orm show <namespace> [<table> | --operations] -e <env> [--json]
|
|
61
61
|
seq-studio orm operation show <namespace> <name> -e <env> [--json]
|
|
62
62
|
seq-studio orm read <namespace> <table> -e <env> [--where <column>=<op>.<value>]... [--select <cols>] [--order <col>[.desc]] [--limit N] [--offset N] [--json|--jsonl]
|
|
63
63
|
seq-studio orm sql <namespace> --query <sql> | --file <path> -e <env> [--param <name>[:<type>]=<value>]... | [--params <json-object>] [--json|--jsonl]
|
|
@@ -79,9 +79,9 @@ export const ORM_HELP = `usage:
|
|
|
79
79
|
clone of another environment's Git Service, which Atlas verifies there with your
|
|
80
80
|
sign-in for it. deployment-policy reads or explicitly changes this namespace setting.
|
|
81
81
|
namespaces lists what you can read; describe shows its tables and operations.
|
|
82
|
-
Run seq-studio orm
|
|
82
|
+
Run seq-studio orm show --help for the output.
|
|
83
83
|
execute <namespace> <operation> runs the deployed version's persisted operation by
|
|
84
|
-
name, with no checkout. Run seq-studio orm
|
|
84
|
+
name, with no checkout. Run seq-studio orm run --help for both forms.
|
|
85
85
|
read and sql query a v2 namespace as you through its built-in read-only SQL.
|
|
86
86
|
sql must name tables as <namespace>.<table> (FROM lending.loans, not FROM loans).
|
|
87
87
|
Run seq-studio orm read --help for the filter grammar, parameters, and output formats.
|
|
@@ -119,26 +119,26 @@ export const ARTIFACT_HELP = `usage:
|
|
|
119
119
|
${INIT_INTO_REPO_HELP}
|
|
120
120
|
${ARTIFACT_SANDBOX_HELP}`;
|
|
121
121
|
export const FUNCTIONS_USAGE = `usage:
|
|
122
|
-
seq-studio
|
|
122
|
+
seq-studio function init <dir> [--repo <ns>/<name>] scaffold manifest, TypeScript handler, and docs pointers;
|
|
123
123
|
--repo scaffolds into a git-service repo (see Init into a repo)
|
|
124
|
-
seq-studio
|
|
125
|
-
seq-studio
|
|
126
|
-
seq-studio
|
|
127
|
-
seq-studio
|
|
128
|
-
seq-studio
|
|
124
|
+
seq-studio function build [--dir d] local pre-flight (manifest, lockfile, SDK timeout cap)
|
|
125
|
+
seq-studio function register -e <env> [--dir d] register a shell + initial secret declarations; no deploy
|
|
126
|
+
seq-studio function deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress
|
|
127
|
+
seq-studio function list -e <env> [--match-local] functions visible on the environment
|
|
128
|
+
seq-studio function show -e <env> [--fn slug] detail for one function (input/output schemas, versions, secrets)
|
|
129
129
|
[--schema] function identity plus input/output JSON Schemas, as JSON (any caller who can see it)
|
|
130
130
|
[--json] [--version id|name] reader-gated release provenance
|
|
131
|
-
seq-studio
|
|
131
|
+
seq-studio function limits [-e <env>] [--json] bundled defaults/caps, or deployed policy
|
|
132
132
|
[--fn slug] also show effective runtime limits (requires -e)
|
|
133
|
-
seq-studio
|
|
134
|
-
seq-studio
|
|
133
|
+
seq-studio function dev [--dir path] [--port 8080] local HTTP server with cache context
|
|
134
|
+
seq-studio function run -e <env> [--data JSON | --data @file | --stdin]
|
|
135
135
|
invoke a function and print its response
|
|
136
|
-
seq-studio
|
|
137
|
-
seq-studio
|
|
136
|
+
seq-studio function logs -e <env> [--limit N] [--since t] function logs (reader-gated)
|
|
137
|
+
seq-studio function promote <version> -e <env> [--fn <slug>]
|
|
138
138
|
make a version live
|
|
139
|
-
seq-studio
|
|
139
|
+
seq-studio function rollback [<version>] -e <env> [--fn <slug>]
|
|
140
140
|
redeploy a prior version
|
|
141
|
-
seq-studio
|
|
141
|
+
seq-studio function delete -e <env> [--fn <slug>] [--yes]
|
|
142
142
|
archive function + tear down its runtime
|
|
143
143
|
(version history is retained)
|
|
144
144
|
|
|
@@ -269,7 +269,7 @@ export const PROCESS_RUNS_USAGE = `usage:
|
|
|
269
269
|
`;
|
|
270
270
|
export const ORM_DISCOVER_HELP = `usage:
|
|
271
271
|
seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]
|
|
272
|
-
seq-studio orm
|
|
272
|
+
seq-studio orm show <namespace> [<table> | --operations] -e <env> [--json]
|
|
273
273
|
seq-studio orm operation show <namespace> <name> -e <env> [--json]
|
|
274
274
|
|
|
275
275
|
Find the ORM data you can read, then query it with orm read or orm sql.
|
|
@@ -291,15 +291,15 @@ export const ORM_DISCOVER_HELP = `usage:
|
|
|
291
291
|
In an agent sandbox (SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE), -e is not needed.
|
|
292
292
|
`;
|
|
293
293
|
export const ORM_EXECUTE_HELP = `usage:
|
|
294
|
-
seq-studio orm
|
|
295
|
-
seq-studio orm
|
|
294
|
+
seq-studio orm run <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...
|
|
295
|
+
seq-studio orm run <operation> [dir] --variables-file <file> -e <env>
|
|
296
296
|
|
|
297
297
|
Run one persisted operation as you. The server applies the operation's
|
|
298
298
|
required capability or role and the namespace's row policies.
|
|
299
299
|
By name: execute <namespace> <operation> looks the operation up in the
|
|
300
300
|
namespace's deployed version and runs it. No checkout is needed, so it runs
|
|
301
301
|
what is deployed even when a local clone is behind. List what you can run:
|
|
302
|
-
seq-studio orm
|
|
302
|
+
seq-studio orm show <namespace> --operations
|
|
303
303
|
From a checkout: execute <operation> [dir] delegates to the installed ORM
|
|
304
304
|
package using the directory's operations.manifest.json (default dir: .).
|
|
305
305
|
Updated ORM packages validate the name and kind, then call the active named
|
|
@@ -335,7 +335,7 @@ export function staticHelp({ namespace, sub }) {
|
|
|
335
335
|
return ormHelp(sub);
|
|
336
336
|
if (namespace === 'pipeline')
|
|
337
337
|
return PIPELINE_HELP;
|
|
338
|
-
if (namespace === '
|
|
338
|
+
if (namespace === 'function')
|
|
339
339
|
return FUNCTIONS_USAGE;
|
|
340
340
|
if (namespace === 'repos' && sub !== 'pulls' && sub !== 'ci')
|
|
341
341
|
return REPOS_USAGE;
|