@sequenceholdings/studio-cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -6
- package/dist/agents/commands.d.ts +1 -1
- package/dist/app/repository-index.d.ts +6 -0
- package/dist/app/repository-index.js +2 -2
- package/dist/command-help.d.ts +6 -6
- package/dist/command-help.js +18 -5
- package/dist/machine-output.d.ts +7 -0
- package/dist/machine-output.js +56 -0
- package/dist/main.js +20 -1
- package/dist/process/commands.js +9 -3
- package/dist/process/human-input-probe.d.ts +23 -0
- package/dist/process/human-input-probe.js +118 -0
- package/dist/process/lint.d.ts +2 -0
- package/dist/process/lint.js +10 -0
- package/dist/process/run-steps.d.ts +112 -0
- package/dist/process/run-steps.js +123 -0
- package/dist/process/runs.d.ts +2 -2
- package/dist/process/runs.js +20 -14
- package/dist/repos/commands.d.ts +13 -0
- package/dist/repos/commands.js +28 -0
- package/dist/repos/primitive-declaration.d.ts +43 -0
- package/dist/repos/primitive-declaration.js +212 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -43,7 +43,10 @@ that the underlying platform HTTP routes are public contracts.
|
|
|
43
43
|
|
|
44
44
|
### Piped output
|
|
45
45
|
|
|
46
|
-
Commands with `--json` write their structured result to
|
|
46
|
+
Commands with `--json` (or `--jsonl`) write only their structured result to
|
|
47
|
+
stdout, so `seq-studio … --json | jq` parses: while either flag is set, every
|
|
48
|
+
human status, progress, or hint line goes to stderr, including lines from the
|
|
49
|
+
delegated ORM and Artifact Studio commands. The executable
|
|
47
50
|
allows stdout and stderr to drain before normal exit, including for large
|
|
48
51
|
responses and nonzero command statuses. Check the exit status before using a
|
|
49
52
|
result; an interrupted process or a closed downstream pipe can still leave
|
|
@@ -1117,8 +1120,8 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
1117
1120
|
| Command | What it does |
|
|
1118
1121
|
|---------|--------------|
|
|
1119
1122
|
| `seq-studio process init <dir>` | Scaffold a process repo: `package.json`, sample `process.ts`, `tsconfig.json` |
|
|
1120
|
-
| `seq-studio process lint [--dir <path>] [--offline]` | Static checks (graph, return contracts, agent schema, timeouts, and
|
|
1121
|
-
| `seq-studio process plan [--dir <path>] -e <env>` | Build bundle, diff against currently-active version |
|
|
1123
|
+
| `seq-studio process lint [--dir <path>] [--offline]` | Static checks (graph, return contracts, agent schema, timeouts, JSONata syntax, and human `input` projections); `--offline` skips live agent-schema lookup |
|
|
1124
|
+
| `seq-studio process plan [--dir <path>] -e <env>` | Build bundle, run the same lint `apply` enforces (CLI **0.9.1**+), diff against currently-active version |
|
|
1122
1125
|
| `seq-studio process apply [--dir <path>] -e <env> [--only <id1,id2>]` | Build → register bundle → promote each process. `--only` promotes just the named process ids (the bundle still contains the whole root — registration is inert) |
|
|
1123
1126
|
| `seq-studio process apply --repo <namespace>/<name> [--ref <r>] -e <env> [--only <id1,id2>]` | Same as above, but materializes the source from a platform git-service repo in `processes`, `apps`, or your own namespace. Pinned commit SHA is injected as bundle provenance. Uses your `seq-studio login` (or the target realm's M2M JSON source path for CI) |
|
|
1124
1127
|
| `seq-studio process test [--dir <path>] -e <env> [--offline]` | CI wrapper: lint + plan, non-zero exit on errors or BREAKING diffs; see the offline limitation below |
|
|
@@ -1131,7 +1134,7 @@ datasets before adopting this path for latency-sensitive reads.
|
|
|
1131
1134
|
| `seq-studio process runs start <process-id> -e <env> [--version <v>] [--run-id <id>] [--metadata-file <file>]` | Start a run as you (needs `invoker` on the process); prints the new run id |
|
|
1132
1135
|
| `seq-studio process runs retry <run-id> -e <env> [--run-id <new-id>]` | Start a failed, cancelled, or timed-out run again with the same inputs, linked to the original (needs `invoker` on the process; CLI **0.9.0**+) |
|
|
1133
1136
|
| `seq-studio process runs list -e <env> [--process <id>] [--status <s>] [--limit N]` | List runs you can view, newest first |
|
|
1134
|
-
| `seq-studio process runs show <run-id> -e <env> [--wait]` | Show a run's status and steps; `--wait` polls until it finishes |
|
|
1137
|
+
| `seq-studio process runs show <run-id> -e <env> [--wait] [--steps [--node <id>] [--full]]` | Show a run's status, error, and steps; `--wait` polls until it finishes; `--steps` (CLI **0.9.1**+) adds each step's edge, error, input, and output |
|
|
1135
1138
|
| `seq-studio process runs cancel <run-id> -e <env>` | Cancel a run (needs `invoker` on the process) |
|
|
1136
1139
|
|
|
1137
1140
|
Use `lint --offline` for checks without live registry lookups. `test --offline`
|
|
@@ -1145,6 +1148,7 @@ subprocess versions when needed. It is not a guarantee of network-free execution
|
|
|
1145
1148
|
seq-studio process runs start credit-memo -e <env> --metadata-file run.json
|
|
1146
1149
|
# prints: Run: <run-id> | Process: credit-memo@3 | Status: pending
|
|
1147
1150
|
seq-studio process runs show <run-id> -e <env> --wait --json
|
|
1151
|
+
seq-studio process runs show <run-id> -e <env> --steps # each step's edge, error, input, output
|
|
1148
1152
|
seq-studio process runs retry <run-id> -e <env> # after it failed
|
|
1149
1153
|
seq-studio process runs list -e <env> --process credit-memo --status failed --limit 20
|
|
1150
1154
|
```
|
|
@@ -1176,6 +1180,22 @@ maximum 500). The run API has no cursor, so narrow the filters to reach older
|
|
|
1176
1180
|
runs. `show --wait` stops waiting after `--timeout` seconds (default 600); the
|
|
1177
1181
|
run itself continues. `--json` prints the API response on every command.
|
|
1178
1182
|
|
|
1183
|
+
`show` prints the run's `error` when it failed. `show --steps` (CLI **0.9.1**
|
|
1184
|
+
or later) prints each step's status, edge taken, error, input, and output, read
|
|
1185
|
+
from the same run response and permission (`viewer` on the run) as `show`.
|
|
1186
|
+
Inputs, outputs, and errors longer than 2,000 characters are cut to a preview
|
|
1187
|
+
that says their full length; `--full` prints them whole, and `--node <id>`
|
|
1188
|
+
narrows to one node. `--steps --json` returns `{ run, steps }` with the same
|
|
1189
|
+
bounds: a cut field holds its first 2,000 characters as a string, and the step's
|
|
1190
|
+
(or run's) `truncated` map names it with its full length, for example
|
|
1191
|
+
`"truncated": { "output": { "chars": 5012 } }`.
|
|
1192
|
+
A node whose input mapper fails never starts a step, so that failure shows only
|
|
1193
|
+
as the run's error.
|
|
1194
|
+
|
|
1195
|
+
```bash
|
|
1196
|
+
seq-studio process runs show <run-id> -e <env> --steps --node review --full --json
|
|
1197
|
+
```
|
|
1198
|
+
|
|
1179
1199
|
### JSONata mapper contracts
|
|
1180
1200
|
|
|
1181
1201
|
`jsonata('…')` expressions are serialized as `*_expr` data and run in a
|
|
@@ -1185,7 +1205,7 @@ and returns an ISO-8601 string.
|
|
|
1185
1205
|
|
|
1186
1206
|
| Mapper slot | `$` input | Named bindings | Expected result |
|
|
1187
1207
|
|-------------|-----------|----------------|-----------------|
|
|
1188
|
-
| `input` / human context projection | Context snapshot | — | Runner input; human projections return
|
|
1208
|
+
| `input` / human context projection | Context snapshot | — | Runner input; human projections return `{ entity, run, upstream }` |
|
|
1189
1209
|
| `artifact_refs` | Context snapshot | — | Artifact-reference array |
|
|
1190
1210
|
| `dueDate` | Context snapshot | — | ISO date, epoch milliseconds, or `null` |
|
|
1191
1211
|
| `emailNotification` template/reminder | Context snapshot | `$info` | `{ subject, body }` |
|
|
@@ -2114,6 +2134,43 @@ git -C get-loan add -A && git -C get-loan commit -m 'Scaffold get-loan' && git -
|
|
|
2114
2134
|
`repos clone`.
|
|
2115
2135
|
- It needs `-e <env>` and a user login, or an agent sandbox.
|
|
2116
2136
|
|
|
2137
|
+
#### Repository CI inventory for standalone primitives
|
|
2138
|
+
|
|
2139
|
+
Repository CI checks and deploys only what `.seq/repository.yml` (or a root
|
|
2140
|
+
`sequence.app.yml`) declares, and fails `undeclared-manifest` on any other
|
|
2141
|
+
`artifact.bundle.yml`, `managed-function.yml`, or `sequence.config.ts`. So in a
|
|
2142
|
+
git-service checkout (its `origin` is a git-service clone URL, or it already has
|
|
2143
|
+
`.seq/repository.yml`), `orm init`, `functions init`, and `artifact init` add
|
|
2144
|
+
the scaffold under `resources`, with or without `--repo`:
|
|
2145
|
+
|
|
2146
|
+
```yaml
|
|
2147
|
+
# Repository CI checks every application and resource listed here and deploys it when changes merge to main.
|
|
2148
|
+
schema_version: 1
|
|
2149
|
+
resources:
|
|
2150
|
+
- id: maint-orm
|
|
2151
|
+
kind: orm
|
|
2152
|
+
path: orm/maint
|
|
2153
|
+
namespace: maint
|
|
2154
|
+
- id: notify
|
|
2155
|
+
kind: function
|
|
2156
|
+
path: functions/notify
|
|
2157
|
+
slug: notify
|
|
2158
|
+
- id: app-ui
|
|
2159
|
+
kind: artifact
|
|
2160
|
+
path: app
|
|
2161
|
+
project_id: app
|
|
2162
|
+
```
|
|
2163
|
+
|
|
2164
|
+
The identity comes from the scaffold itself (`sequence.config.ts` namespace,
|
|
2165
|
+
`managed-function.yml` `function.id`, `artifact.bundle.yml`
|
|
2166
|
+
`artifact.project_id`), and existing comments and entries are kept. A scaffold
|
|
2167
|
+
inside a declared application is left out, with a note to add it to that app
|
|
2168
|
+
with `seq-studio add`; a path that overlaps a declared resource or an `ignore`
|
|
2169
|
+
entry, or that would deploy the same namespace, function, or project id as a
|
|
2170
|
+
declared resource (CI rejects duplicate identities), is left out with the
|
|
2171
|
+
reason on stderr. Other repositories are not touched.
|
|
2172
|
+
Commit `.seq/repository.yml` with the scaffold.
|
|
2173
|
+
|
|
2117
2174
|
### Repository identity
|
|
2118
2175
|
|
|
2119
2176
|
New repositories created on identity-capable Atlas releases contain a committed
|
|
@@ -2226,7 +2283,7 @@ JSON API — the same repos `--repo <ns>/<name>` sources build from.
|
|
|
2226
2283
|
| `seq-studio repos namespaces [create <slug>] -e <env>` | list namespaces, or create one (creator becomes owner) |
|
|
2227
2284
|
| `seq-studio repos show <ns>/<name> -e <env>` | detail: id, branches, clone URL; artifact project id when slug matches |
|
|
2228
2285
|
| `seq-studio repos identity <ns>/<name> -e <env> [--write --dir .]` | inspect the server-issued identity; `--write` restores its receipt at the matching clone's Git worktree root; admin-only `--adopt --write --yes` binds a legacy repository once |
|
|
2229
|
-
| `seq-studio repos create <ns>/<name> -e <env> [--default-branch <b>] [--git-backend walgit]` | create a repo, seeded with a README on `main`. The server picks the backend (walgit wherever it is configured). `--git-backend walgit` creates it empty, for pushing existing history. Needs namespace write. |
|
|
2286
|
+
| `seq-studio repos create <ns>/<name> -e <env> [--default-branch <b>] [--git-backend walgit]` | create a repo, seeded with a README on `main`. The server picks the backend (walgit wherever it is configured). `--git-backend walgit` creates it empty, for pushing existing history. Needs namespace write. Returns once the repo resolves by name (the lookup `clone`, `show`, and `pull` use), so `repos clone` can follow at once. |
|
|
2230
2287
|
| `seq-studio repos clone <ns>/<name> \| --url <clone-url> \| --id <uuid> -e <env> [--ref <r>] [--output <dir>] [--force] [--full] [--transport auto\|git\|json]` | smart-HTTP `git clone --depth 1` using login (`--full` fetches history; a commit SHA stays full). Configures login for subsequent Git commands. Use files-only `--transport json` for `<ns>/<name>`. `--out` remains an alias for `--output`. |
|
|
2231
2288
|
| `seq-studio repos pull <ns>/<name> -e <env> [--ref <r>] [--out <dir>] [--force]` | always materialize via JSON API (no `.git` dir); refuses a non-empty destination unless `--force` |
|
|
2232
2289
|
| `seq-studio repos delete <ns>/<name> -e <env> [--yes]` | delete a repo — interactive confirm unless `--yes` |
|
|
@@ -20,5 +20,5 @@ export declare function agentsApplyCommand(args: ParsedArgs, { mode }?: {
|
|
|
20
20
|
}): Promise<number>;
|
|
21
21
|
export declare function agentsListCommand(args: ParsedArgs): Promise<number>;
|
|
22
22
|
export declare function agentsShowCommand(args: ParsedArgs): Promise<number>;
|
|
23
|
-
export declare const AGENTS_USAGE = "usage:\n seq-studio agents init <dir> [--repo <ns>/<name>] scaffold a typed agent (--repo: into a git-service repo)\n seq-studio agents validate [--dir d] [--target app] [--only ids] offline compile + validation\n seq-studio agents bundle --out <file> [--dir d] [--target app] [--only ids] offline deploy body { definitions, bundleHash }\n seq-studio agents plan [--dir d] [-e <env>] [--only ids] [--managed] [--check-execution] offline bundle plan or live diff\n seq-studio agents apply [--dir d] -e <env> [--only ids] [--yes] [--managed] [--check-execution] apply creates/updates; never deletes\n seq-studio agents list -e <env> list visible agents\n seq-studio agents show <id> -e <env> show one agent\n seq-studio agents voice help internal Voice authoring/publication\n\n plan and apply deploy configuration only, as you: a new agent needs Can\n create on Agent Builder, an existing one needs editor, and access stays\n whatever Agent Builder or the API set. --managed is Sequence's code-managed\n path, where the definition also owns access; it is limited to Sequence staff.\n\n --check-execution requires -e, CONFIG mode and at most 20 existing agents in\n one whole bundle. It checks proposed pinned-execution eligibility before\n apply writes; it is point-in-time and grants no access or future identity.\n Unknown checked routes or missing acknowledgement fail without fallback.\n\n Source: local --dir (default .), --repo agents/<name>, or --git-url <url>.\n Use --ref for remote sources. --target selects the deployment APP_ENV when it\n differs from the CLI environment alias (notably OpCo registrations). --only\n accepts a comma-separated list of agent IDs after environment selection.\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";
|
|
23
|
+
export declare const AGENTS_USAGE = "usage:\n seq-studio agents init <dir> [--repo <ns>/<name>] scaffold a typed agent (--repo: into a git-service repo)\n seq-studio agents validate [--dir d] [--target app] [--only ids] offline compile + validation\n seq-studio agents bundle --out <file> [--dir d] [--target app] [--only ids] offline deploy body { definitions, bundleHash }\n seq-studio agents plan [--dir d] [-e <env>] [--only ids] [--managed] [--check-execution] offline bundle plan or live diff\n seq-studio agents apply [--dir d] -e <env> [--only ids] [--yes] [--managed] [--check-execution] apply creates/updates; never deletes\n seq-studio agents list -e <env> list visible agents\n seq-studio agents show <id> -e <env> show one agent\n seq-studio agents voice help internal Voice authoring/publication\n\n plan and apply deploy configuration only, as you: a new agent needs Can\n create on Agent Builder, an existing one needs editor, and access stays\n whatever Agent Builder or the API set. --managed is Sequence's code-managed\n path, where the definition also owns access; it is limited to Sequence staff.\n\n --check-execution requires -e, CONFIG mode and at most 20 existing agents in\n one whole bundle. It checks proposed pinned-execution eligibility before\n apply writes; it is point-in-time and grants no access or future identity.\n Unknown checked routes or missing acknowledgement fail without fallback.\n\n Source: local --dir (default .), --repo agents/<name>, or --git-url <url>.\n Use --ref for remote sources. --target selects the deployment APP_ENV when it\n differs from the CLI environment alias (notably OpCo registrations). --only\n accepts a comma-separated list of agent IDs after environment selection.\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";
|
|
24
24
|
export declare function runAgentsCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;
|
|
@@ -6,6 +6,12 @@ export interface RepositoryDeclaration {
|
|
|
6
6
|
content: string;
|
|
7
7
|
created: boolean;
|
|
8
8
|
}
|
|
9
|
+
export declare function findGitRoot(start: string): string | null;
|
|
10
|
+
/** Same containment rule as repository CI: equal, or a descendant of a non-root path. */
|
|
11
|
+
export declare function under({ path, root }: {
|
|
12
|
+
path: string;
|
|
13
|
+
root: string;
|
|
14
|
+
}): boolean;
|
|
9
15
|
/**
|
|
10
16
|
* Plan the index change for an app about to be scaffolded at `appRoot`.
|
|
11
17
|
* Returns null when nothing needs declaring: no enclosing git repository, an
|
|
@@ -16,7 +16,7 @@ const indexSchema = z.looseObject({
|
|
|
16
16
|
applications: z.array(z.looseObject({ path: z.string().min(1) })).nullish(),
|
|
17
17
|
ignore: z.array(z.string().min(1)).nullish(),
|
|
18
18
|
});
|
|
19
|
-
function findGitRoot(start) {
|
|
19
|
+
export function findGitRoot(start) {
|
|
20
20
|
for (let directory = resolve(start);; directory = dirname(directory)) {
|
|
21
21
|
if (existsSync(join(directory, '.git')))
|
|
22
22
|
return directory;
|
|
@@ -25,7 +25,7 @@ function findGitRoot(start) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
/** Same containment rule as repository CI: equal, or a descendant of a non-root path. */
|
|
28
|
-
function under({ path, root }) {
|
|
28
|
+
export function under({ path, root }) {
|
|
29
29
|
return root === '.' || path === root || path.startsWith(`${root}/`);
|
|
30
30
|
}
|
|
31
31
|
const NEW_INDEX_HEADER = '# Repository CI checks every application listed here and deploys it when changes merge to main.\n';
|
package/dist/command-help.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/** Help text reachable before command implementations, auth, optional SDKs, or Atlas clients load. */
|
|
2
2
|
/** `--repo` on every init command; shared so the commands describe it identically. */
|
|
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";
|
|
4
|
-
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir> [--repo <ns>/<name>]\n seq-studio orm generate [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]\n seq-studio orm execute <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...\n seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm describe <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 namespaces lists what you can read; describe shows its tables and operations.\n Run seq-studio orm describe --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 execute --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";
|
|
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
|
+
export declare const ORM_HELP = "usage:\n seq-studio orm init <dir> [--repo <ns>/<name>]\n seq-studio orm generate [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]\n seq-studio orm execute <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...\n seq-studio orm execute <operation> [dir] --variables-file <file> -e <env>\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm describe <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 namespaces lists what you can read; describe shows its tables and operations.\n Run seq-studio orm describe --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 execute --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";
|
|
5
5
|
/** Artifact commands in sandbox token mode; shared by the offline and delegate usage. */
|
|
6
6
|
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";
|
|
7
|
-
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>]\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\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";
|
|
7
|
+
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>]\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";
|
|
8
8
|
export declare const PIPELINE_HELP = "usage:\n seq-studio pipeline list -e <env> [--limit 1..200] [--offset N] [--json]\n list pipeline repository rollups (not assets)\n seq-studio pipeline assets -e <env> [--repo <namespace>/<slug>] [--json]\n list asset declarations, including assets that may not be deployed\n seq-studio pipeline search <query> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--limit N] [--offset N] [--json]\n seq-studio pipeline describe <asset-id> -e <env> [--target <id>] [--repo <namespace>/<slug>] [--json]\n seq-studio pipeline schema|sample <asset-id> -e <env> [--target <id>] [--limit N] [--json]\n seq-studio pipeline query <asset-id> --sql <read-only-sql> -e <env> [--target <id>] [--limit N] [--json]\n seq-studio pipeline init|validate|plan|deploy|status|migrate|adopt|unbind|run-now|promote|rollback ...\n seq-studio pipeline plan|deploy --repo <namespace>/<slug> --ref <sha|branch>\n [--root <directory>] [--source-env <first-party-env>] -e <env> [--target <id>]\n For an existing target release unit, source-env selects a separately\n authenticated canonical repository from banksouth, staging, or production.\n Source identity must be adopted and belong to the destination tenant.\n Registered OpCo source origins are not supported yet. The target verifies\n and snapshots source before planning; no target repository is created.\n Reviewed pipeline.config.yml source_paths can select runtime files and\n directories, retaining pipeline metadata, release identity and size limits.\n Not compatible with --dir, existing IDs, or coordinated migrations.\n Rollback uses retained snapshots; historical source commits can be re-planned\n explicitly with deploy --ref <sha> --source-env <env>.\n seq-studio pipeline plan --plan-request-id <id> -e <env> [--json]\n poll an existing durable plan without enqueueing or attaching credentials\n Lifecycle --json results use stdout; progress uses stderr. Deploy --run-now\n executes producers in the managed worker; local polling may disconnect.\n\n Discovery requires staff access. Use list for pipeline repositories, assets\n for declared assets, and search/describe for active deployment metadata;\n use schema to verify physical columns. -e chooses the environment and\n --target chooses a logical target when the environment has more than one.\n Help is available offline.\n";
|
|
9
|
-
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio functions 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 functions build [--dir d] local pre-flight (manifest, lockfile, SDK timeout cap)\n seq-studio functions register -e <env> [--dir d] register a shell + initial secret declarations; no deploy\n seq-studio functions deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress\n seq-studio functions list -e <env> [--match-local] functions visible on the environment\n seq-studio functions show -e <env> [--fn slug] detail for one function (versions, secrets)\n [--json] [--version id|name] reader-gated release provenance\n seq-studio functions limits [-e <env>] [--json] bundled defaults/caps, or deployed policy\n [--fn slug] also show effective runtime limits (requires -e)\n seq-studio functions dev [--dir path] [--port 8080] local HTTP server with cache context\n seq-studio functions invoke -e <env> [--data JSON | --data @file | --stdin]\n invoke a function and print its response\n seq-studio functions logs -e <env> [--limit N] [--since t] function logs (reader-gated)\n seq-studio functions promote <version> -e <env> make a version live\n seq-studio functions rollback [<version>] -e <env> redeploy a prior version\n seq-studio functions delete -e <env> [--yes] 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 --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";
|
|
10
|
-
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.
|
|
11
|
-
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>]] [--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.\n";
|
|
9
|
+
export declare const FUNCTIONS_USAGE = "usage:\n seq-studio functions 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 functions build [--dir d] local pre-flight (manifest, lockfile, SDK timeout cap)\n seq-studio functions register -e <env> [--dir d] register a shell + initial secret declarations; no deploy\n seq-studio functions deploy -e <env> [-m msg] preflight, upload, then show version and lifecycle progress\n seq-studio functions list -e <env> [--match-local] functions visible on the environment\n seq-studio functions show -e <env> [--fn slug] detail for one function (versions, secrets)\n [--json] [--version id|name] reader-gated release provenance\n seq-studio functions limits [-e <env>] [--json] bundled defaults/caps, or deployed policy\n [--fn slug] also show effective runtime limits (requires -e)\n seq-studio functions dev [--dir path] [--port 8080] local HTTP server with cache context\n seq-studio functions invoke -e <env> [--data JSON | --data @file | --stdin]\n invoke a function and print its response\n seq-studio functions logs -e <env> [--limit N] [--since t] function logs (reader-gated)\n seq-studio functions promote <version> -e <env> make a version live\n seq-studio functions rollback [<version>] -e <env> redeploy a prior version\n seq-studio functions delete -e <env> [--yes] 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 --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";
|
|
10
|
+
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 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|close|comment|comments|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";
|
|
11
|
+
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";
|
|
12
12
|
export declare const ORM_DISCOVER_HELP = "usage:\n seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]\n seq-studio orm describe <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 prints the full description (describe omits the generated GraphQL SDL).\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";
|
|
13
13
|
export declare const ORM_EXECUTE_HELP = "usage:\n seq-studio orm execute <namespace> <operation> -e <env> [--variables-file <file>] [--var <name>=<value>]...\n seq-studio orm execute <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 describe <namespace> --operations\n From a checkout: execute <operation> [dir] runs the operation as hashed in the\n namespace directory's operations.manifest.json (default dir: .). If the\n deployed version hashes it differently, execute prints both hashes and the\n by-name command instead of a bare 404.\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. --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";
|
|
14
14
|
export declare function staticHelp({ namespace, sub }: {
|
package/dist/command-help.js
CHANGED
|
@@ -6,6 +6,10 @@ export const INIT_INTO_REPO_HELP = ` Init into a repo: --repo <ns>/<name> on an
|
|
|
6
6
|
it as that checkout's origin (a different existing origin is refused). It
|
|
7
7
|
needs -e <env>, or an agent sandbox. Nothing is committed or pushed; the
|
|
8
8
|
command prints the git add, commit, and push to run.
|
|
9
|
+
In a git-service checkout (with or without --repo), orm init, functions init
|
|
10
|
+
and artifact init also declare the scaffold under resources in
|
|
11
|
+
.seq/repository.yml, so repository CI checks and deploys it. A scaffold inside
|
|
12
|
+
a declared application is not declared; add it to that app with seq-studio add.
|
|
9
13
|
`;
|
|
10
14
|
export const ORM_HELP = `usage:
|
|
11
15
|
seq-studio orm init <dir> [--repo <ns>/<name>]
|
|
@@ -169,9 +173,10 @@ export const REPOS_USAGE = `usage:
|
|
|
169
173
|
seq-studio repos create <ns>/<name> -e <env> [--default-branch b] [--git-backend walgit]
|
|
170
174
|
create a repo seeded with a README; --git-backend
|
|
171
175
|
walgit creates it empty (for pushing existing
|
|
172
|
-
history); needs namespace write.
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
history); needs namespace write. Returns once
|
|
177
|
+
the repo resolves by name, so clone can follow
|
|
178
|
+
at once. The init commands take --repo
|
|
179
|
+
<ns>/<name> to create, clone, and scaffold
|
|
175
180
|
seq-studio repos clone <ns>/<name> -e <env> [--ref r] [--output dir] [--force] [--full] [--transport auto|git|json]
|
|
176
181
|
seq-studio repos clone --url <https://…/repos/<id>/git> -e <env> [--ref r] [--output dir] [--full]
|
|
177
182
|
seq-studio repos clone --id <uuid> -e <env> [--ref r] [--output dir] [--full]
|
|
@@ -210,7 +215,8 @@ export const PROCESS_RUNS_USAGE = `usage:
|
|
|
210
215
|
seq-studio process runs retry <run-id> -e <env> [--run-id <new-id>] [--json]
|
|
211
216
|
seq-studio process runs list -e <env> [--process <id>] [--status <status>]
|
|
212
217
|
[--entity-type <type>] [--entity-id <id>] [--archived] [--limit 1..500] [--json]
|
|
213
|
-
seq-studio process runs show <run-id> -e <env> [--wait [--timeout <seconds>]]
|
|
218
|
+
seq-studio process runs show <run-id> -e <env> [--wait [--timeout <seconds>]]
|
|
219
|
+
[--steps [--node <node-id>] [--full]] [--json]
|
|
214
220
|
seq-studio process runs cancel <run-id> -e <env> [--json]
|
|
215
221
|
|
|
216
222
|
Runs start and are read as you: start and retry need invoker on the process,
|
|
@@ -232,7 +238,14 @@ export const PROCESS_RUNS_USAGE = `usage:
|
|
|
232
238
|
API has no cursor, so narrow with filters to reach older runs.
|
|
233
239
|
--status: pending, running, completed, failed, cancelled, timed_out.
|
|
234
240
|
show --wait polls until the run finishes (default timeout 600s); the run keeps
|
|
235
|
-
going if the wait times out.
|
|
241
|
+
going if the wait times out. show prints the run's error when it failed.
|
|
242
|
+
show --steps (CLI 0.9.1+) prints each step's status, edge, error, input and
|
|
243
|
+
output, with the same viewer permission as show. Inputs, outputs and errors
|
|
244
|
+
over 2000 characters are cut to a preview; --full prints them whole.
|
|
245
|
+
--node narrows to one node. With --json, --steps returns { run, steps } with
|
|
246
|
+
the same bounds; each step's truncated map names its cut fields and their full
|
|
247
|
+
length. A failure in a node's input mapper happens before its step
|
|
248
|
+
starts, so it shows only as the run's error.
|
|
236
249
|
`;
|
|
237
250
|
export const ORM_DISCOVER_HELP = `usage:
|
|
238
251
|
seq-studio orm namespaces -e <env> [--limit N] [--offset N] [--json]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** True when the arguments ask for JSON (or JSON Lines) on stdout. */
|
|
2
|
+
export declare function requestsMachineOutput(argv: readonly string[]): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Route non-JSON console.log / console.info output to stderr until the
|
|
5
|
+
* returned restore function runs.
|
|
6
|
+
*/
|
|
7
|
+
export declare function guardMachineOutput(): () => void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep stdout parseable when a command prints machine output.
|
|
3
|
+
*
|
|
4
|
+
* `seq-studio … --json | jq` reads all of stdout, so a single `[seq-studio] …`
|
|
5
|
+
* status or progress line on it breaks the pipe. Status lines come from many
|
|
6
|
+
* places (shared source resolution, delegated ORM and Artifact Studio CLIs,
|
|
7
|
+
* per-command progress), so instead of trusting every call site, the CLI
|
|
8
|
+
* routes them centrally: while `--json` or `--jsonl` is set, console.log and
|
|
9
|
+
* console.info pass a value through to stdout only when it is JSON text, and
|
|
10
|
+
* send everything else to stderr. Humans still see every line in a terminal.
|
|
11
|
+
*/
|
|
12
|
+
import { format } from 'node:util';
|
|
13
|
+
const MACHINE_OUTPUT_FLAGS = new Set(['--json', '--jsonl']);
|
|
14
|
+
/** True when the arguments ask for JSON (or JSON Lines) on stdout. */
|
|
15
|
+
export function requestsMachineOutput(argv) {
|
|
16
|
+
for (const arg of argv) {
|
|
17
|
+
if (arg === '--')
|
|
18
|
+
return false;
|
|
19
|
+
if (MACHINE_OUTPUT_FLAGS.has(arg))
|
|
20
|
+
return true;
|
|
21
|
+
const eq = arg.indexOf('=');
|
|
22
|
+
if (eq > 0 && MACHINE_OUTPUT_FLAGS.has(arg.slice(0, eq)) && arg.slice(eq + 1) !== 'false')
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
function isJsonText(text) {
|
|
28
|
+
if (text.trim() === '')
|
|
29
|
+
return false;
|
|
30
|
+
try {
|
|
31
|
+
JSON.parse(text);
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Route non-JSON console.log / console.info output to stderr until the
|
|
40
|
+
* returned restore function runs.
|
|
41
|
+
*/
|
|
42
|
+
export function guardMachineOutput() {
|
|
43
|
+
const { log, info } = console;
|
|
44
|
+
const route = (write) => (...args) => {
|
|
45
|
+
if (isJsonText(format(...args)))
|
|
46
|
+
write(...args);
|
|
47
|
+
else
|
|
48
|
+
console.error(...args);
|
|
49
|
+
};
|
|
50
|
+
console.log = route(log);
|
|
51
|
+
console.info = route(info);
|
|
52
|
+
return () => {
|
|
53
|
+
console.log = log;
|
|
54
|
+
console.info = info;
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/main.js
CHANGED
|
@@ -28,6 +28,7 @@ import { parseArgs } from './argv.js';
|
|
|
28
28
|
import { renderCapabilities } from './command-contract.js';
|
|
29
29
|
import { staticHelp } from './command-help.js';
|
|
30
30
|
import { ignoredSandboxEnvNotice } from './env-flags.js';
|
|
31
|
+
import { guardMachineOutput, requestsMachineOutput } from './machine-output.js';
|
|
31
32
|
import { sandboxUsageFooter } from './sandbox-auth.js';
|
|
32
33
|
// Lazy-load artifact delegate: published @sequenceholdings/artifact-studio/cli
|
|
33
34
|
// still auto-runs runCli() at module load; importing it here breaks doctor/process.
|
|
@@ -64,7 +65,8 @@ const TOP_LEVEL_USAGE = `usage:
|
|
|
64
65
|
--repo <ns>/<name> to scaffold straight into a git-service repo; commit and push from there.
|
|
65
66
|
In an agent sandbox, SEQ_STUDIO_BASE_URL + SEQ_STUDIO_TOKEN_FILE select the
|
|
66
67
|
deployment and token instead (no login; -e optional).
|
|
67
|
-
Where supported, --json writes
|
|
68
|
+
Where supported, --json writes only JSON to stdout (status lines go to stderr);
|
|
69
|
+
check exit status and pagination.
|
|
68
70
|
Built-in env: local. Add your organization's deployment with
|
|
69
71
|
\`seq-studio envs add <name> <url>\`; custom entries live in ~/.config/lattice/config.toml.
|
|
70
72
|
If this CLI cannot complete a documented step, read that environment's docs
|
|
@@ -111,6 +113,17 @@ const SUBCOMMANDS = {
|
|
|
111
113
|
envs: new Set(['add', 'list']),
|
|
112
114
|
};
|
|
113
115
|
export async function run(argv = process.argv.slice(2)) {
|
|
116
|
+
if (!requestsMachineOutput(argv))
|
|
117
|
+
return dispatch(argv);
|
|
118
|
+
const restore = guardMachineOutput();
|
|
119
|
+
try {
|
|
120
|
+
return await dispatch(argv);
|
|
121
|
+
}
|
|
122
|
+
finally {
|
|
123
|
+
restore();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
async function dispatch(argv) {
|
|
114
127
|
const [namespace, sub, ...rest] = argv;
|
|
115
128
|
if (!namespace || namespace === 'help' || namespace === '--help' || namespace === '-h') {
|
|
116
129
|
console.log(`${TOP_LEVEL_USAGE}${sandboxUsageFooter()}`);
|
|
@@ -163,10 +176,14 @@ export async function run(argv = process.argv.slice(2)) {
|
|
|
163
176
|
return runProcessNamespace(sub, rest);
|
|
164
177
|
case 'artifact': {
|
|
165
178
|
const { runArtifactCommand } = await import('./artifact/delegate.js');
|
|
179
|
+
if (sub === 'init')
|
|
180
|
+
return (await import('./repos/primitive-declaration.js')).runStandaloneInit({ kind: 'artifact', argv: rest, defaultDir: '.', run: () => runArtifactCommand(sub, rest) });
|
|
166
181
|
return runArtifactCommand(sub, rest);
|
|
167
182
|
}
|
|
168
183
|
case 'functions': {
|
|
169
184
|
const { runFunctionsCommand } = await import('./functions/commands.js');
|
|
185
|
+
if (sub === 'init')
|
|
186
|
+
return (await import('./repos/primitive-declaration.js')).runStandaloneInit({ kind: 'function', argv: rest, run: () => runFunctionsCommand(sub, parseArgs(rest)) });
|
|
170
187
|
return runFunctionsCommand(sub, parseArgs(rest));
|
|
171
188
|
}
|
|
172
189
|
case 'storage': {
|
|
@@ -209,6 +226,8 @@ export async function run(argv = process.argv.slice(2)) {
|
|
|
209
226
|
}
|
|
210
227
|
case 'orm': {
|
|
211
228
|
const { runOrmCommand } = await import('./orm/delegate.js');
|
|
229
|
+
if (sub === 'init')
|
|
230
|
+
return (await import('./repos/primitive-declaration.js')).runStandaloneInit({ kind: 'orm', argv: rest, run: () => runOrmCommand(sub, rest) });
|
|
212
231
|
return runOrmCommand(sub, rest);
|
|
213
232
|
}
|
|
214
233
|
case 'pipeline': {
|
package/dist/process/commands.js
CHANGED
|
@@ -262,13 +262,19 @@ async function buildBundleForPublish(args, compiled) {
|
|
|
262
262
|
export async function planCommand(args) {
|
|
263
263
|
const compiled = await compileLocalProcessSource(args);
|
|
264
264
|
const bundle = await buildBundleForPublish(args, compiled);
|
|
265
|
-
// Static graph limits (LAT-148)
|
|
265
|
+
// Static graph limits (LAT-148) and the definition lint `apply` enforces,
|
|
266
|
+
// so a plan that passes does not fail at apply or at run time (for example a
|
|
267
|
+
// human `input` projection without upstream).
|
|
266
268
|
const limitLint = lintBundleStaticGraphLimits({ bundle });
|
|
267
|
-
const
|
|
269
|
+
const planLint = {
|
|
270
|
+
errors: [...compiled.lint.errors, ...limitLint.errors],
|
|
271
|
+
warnings: [...compiled.lint.warnings, ...limitLint.warnings],
|
|
272
|
+
};
|
|
273
|
+
const formattedLint = formatLintResult(planLint);
|
|
268
274
|
if (formattedLint.text)
|
|
269
275
|
console.log(formattedLint.text);
|
|
270
276
|
if (formattedLint.hasErrors) {
|
|
271
|
-
console.error(`\nplan FAILED — ${
|
|
277
|
+
console.error(`\nplan FAILED — ${planLint.errors.length} lint error(s), ${planLint.warnings.length} warning(s)`);
|
|
272
278
|
return 1;
|
|
273
279
|
}
|
|
274
280
|
const summary = summarizeBundle(bundle);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-deploy check for a human node's `input` projection. Atlas persists the
|
|
3
|
+
* projection as the step's ctx snapshot and fails the run at that node when it
|
|
4
|
+
* is not `{ entity, run, upstream }`. Lint reports a projection only when the
|
|
5
|
+
* problem cannot depend on the run's real data:
|
|
6
|
+
*
|
|
7
|
+
* - a JSONata projection whose root is an object constructor without one of
|
|
8
|
+
* the required literal keys (read from the parsed expression, not evaluated);
|
|
9
|
+
* - a JS projection that, run against a probe ctx, returns an object without a
|
|
10
|
+
* required key. Values read from upstream outputs are stand-ins that count as
|
|
11
|
+
* present, and a mapper that spreads or enumerates upstream data is
|
|
12
|
+
* inconclusive, because the real data could supply the keys.
|
|
13
|
+
*
|
|
14
|
+
* Anything else (a mapper that throws on probe data, returns a promise or a
|
|
15
|
+
* stand-in, or a JSONata root that is not an object constructor) passes.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The problem with a human node's `input` projection, or `undefined` when it
|
|
19
|
+
* is valid, absent, or the check was inconclusive.
|
|
20
|
+
*/
|
|
21
|
+
export declare function probeHumanInputProjection({ input }: {
|
|
22
|
+
input: unknown;
|
|
23
|
+
}): string | undefined;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-deploy check for a human node's `input` projection. Atlas persists the
|
|
3
|
+
* projection as the step's ctx snapshot and fails the run at that node when it
|
|
4
|
+
* is not `{ entity, run, upstream }`. Lint reports a projection only when the
|
|
5
|
+
* problem cannot depend on the run's real data:
|
|
6
|
+
*
|
|
7
|
+
* - a JSONata projection whose root is an object constructor without one of
|
|
8
|
+
* the required literal keys (read from the parsed expression, not evaluated);
|
|
9
|
+
* - a JS projection that, run against a probe ctx, returns an object without a
|
|
10
|
+
* required key. Values read from upstream outputs are stand-ins that count as
|
|
11
|
+
* present, and a mapper that spreads or enumerates upstream data is
|
|
12
|
+
* inconclusive, because the real data could supply the keys.
|
|
13
|
+
*
|
|
14
|
+
* Anything else (a mapper that throws on probe data, returns a promise or a
|
|
15
|
+
* stand-in, or a JSONata root that is not an object constructor) passes.
|
|
16
|
+
*/
|
|
17
|
+
import { describeHumanCtxProjectionProblem, isJsonataExpr } from '@sequenceholdings/lattice/define';
|
|
18
|
+
import { jsonataObjectConstructorKeys } from '@sequenceholdings/lattice/jsonata-runtime';
|
|
19
|
+
const PROBE_RUN = {
|
|
20
|
+
id: 'lint-probe-run',
|
|
21
|
+
process_id: 'lint-probe-process',
|
|
22
|
+
version: 'lint-probe-version',
|
|
23
|
+
started_at: '2026-01-01T00:00:00.000Z',
|
|
24
|
+
started_by: null,
|
|
25
|
+
trigger_reason: null,
|
|
26
|
+
metadata: {},
|
|
27
|
+
};
|
|
28
|
+
/** Tracks the probe stand-ins one mapper call produced and touched. */
|
|
29
|
+
class ProbeSession {
|
|
30
|
+
standIns = new WeakSet();
|
|
31
|
+
/** Set when the mapper enumerated stand-in keys, e.g. `{ ...upstream.x }`. */
|
|
32
|
+
enumerated = false;
|
|
33
|
+
/**
|
|
34
|
+
* A stand-in for upstream data: every property read, call and coercion
|
|
35
|
+
* returns another stand-in, so a mapper that walks deep into
|
|
36
|
+
* `ctx.upstream.<node>` completes and its result shape can be checked.
|
|
37
|
+
*/
|
|
38
|
+
standIn() {
|
|
39
|
+
const session = this;
|
|
40
|
+
const value = new Proxy(function probeValue() { }, {
|
|
41
|
+
get(_target, key) {
|
|
42
|
+
if (key === Symbol.toPrimitive)
|
|
43
|
+
return () => '';
|
|
44
|
+
if (key === Symbol.iterator)
|
|
45
|
+
return function* empty() { };
|
|
46
|
+
if (key === 'then' || typeof key === 'symbol')
|
|
47
|
+
return undefined;
|
|
48
|
+
if (key === 'toJSON')
|
|
49
|
+
return () => null;
|
|
50
|
+
return value;
|
|
51
|
+
},
|
|
52
|
+
apply: () => value,
|
|
53
|
+
has: () => true,
|
|
54
|
+
ownKeys(target) {
|
|
55
|
+
session.enumerated = true;
|
|
56
|
+
return Reflect.ownKeys(target);
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
this.standIns.add(value);
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
ctx() {
|
|
63
|
+
const nodeOutput = this.standIn();
|
|
64
|
+
const session = this;
|
|
65
|
+
return {
|
|
66
|
+
entity: { type: 'lint-probe', id: 'lint-probe' },
|
|
67
|
+
upstream: new Proxy({}, {
|
|
68
|
+
get: (target, key) => (typeof key === 'symbol' ? Reflect.get(target, key) : nodeOutput),
|
|
69
|
+
has: () => true,
|
|
70
|
+
ownKeys(target) {
|
|
71
|
+
session.enumerated = true;
|
|
72
|
+
return Reflect.ownKeys(target);
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
state: {},
|
|
76
|
+
run: { ...PROBE_RUN },
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** The result with stand-in values replaced by `{}`, so they count as present objects. */
|
|
80
|
+
settle(result) {
|
|
81
|
+
if (typeof result !== 'object' || result === null || Array.isArray(result))
|
|
82
|
+
return result;
|
|
83
|
+
return Object.fromEntries(Object.entries(result).map(([key, value]) => [key, typeof value === 'function' && this.standIns.has(value) ? {} : value]));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function probeJsFunction(mapper) {
|
|
87
|
+
const session = new ProbeSession();
|
|
88
|
+
let projected;
|
|
89
|
+
try {
|
|
90
|
+
projected = mapper(session.ctx());
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
// Probe data the mapper did not expect: inconclusive, not a finding.
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (projected instanceof Promise || session.enumerated)
|
|
97
|
+
return undefined;
|
|
98
|
+
if (typeof projected === 'function' && session.standIns.has(projected))
|
|
99
|
+
return undefined;
|
|
100
|
+
return describeHumanCtxProjectionProblem(session.settle(projected));
|
|
101
|
+
}
|
|
102
|
+
function probeJsonata(expr) {
|
|
103
|
+
const keys = jsonataObjectConstructorKeys(expr);
|
|
104
|
+
if (keys === undefined)
|
|
105
|
+
return undefined;
|
|
106
|
+
return describeHumanCtxProjectionProblem(Object.fromEntries(keys.map((key) => [key, {}])));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The problem with a human node's `input` projection, or `undefined` when it
|
|
110
|
+
* is valid, absent, or the check was inconclusive.
|
|
111
|
+
*/
|
|
112
|
+
export function probeHumanInputProjection({ input }) {
|
|
113
|
+
if (typeof input === 'function')
|
|
114
|
+
return probeJsFunction(input);
|
|
115
|
+
if (isJsonataExpr(input))
|
|
116
|
+
return probeJsonata(input.expr);
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|