@pithy-sh/core 0.8.0 → 0.10.0
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/dist/asyncapi/document.d.ts +46 -0
- package/dist/asyncapi/document.d.ts.map +1 -0
- package/dist/asyncapi/document.js +115 -0
- package/dist/capability/capability.d.ts +7 -0
- package/dist/capability/capability.d.ts.map +1 -1
- package/dist/capability/composition.d.ts.map +1 -1
- package/dist/capability/composition.js +5 -1
- package/dist/capability/settings.d.ts +10 -2
- package/dist/capability/settings.d.ts.map +1 -1
- package/dist/capability/settings.js +5 -3
- package/dist/cli/command.d.ts +364 -0
- package/dist/cli/command.d.ts.map +1 -0
- package/dist/cli/command.js +418 -0
- package/dist/cli/commandCatalog.generated.d.ts +2275 -0
- package/dist/cli/commandCatalog.generated.d.ts.map +1 -0
- package/dist/cli/commandCatalog.generated.js +2390 -0
- package/dist/cli/commandFacts.d.ts +164 -0
- package/dist/cli/commandFacts.d.ts.map +1 -0
- package/dist/cli/commandFacts.js +215 -0
- package/dist/controlPlane/error/errors.d.ts.map +1 -1
- package/dist/controlPlane/error/errors.js +4 -3
- package/dist/controlPlane/http/guard.d.ts.map +1 -1
- package/dist/controlPlane/http/guard.js +11 -1
- package/dist/controlPlane/http/routes.d.ts +1 -1
- package/dist/controlPlane/http/routes.d.ts.map +1 -1
- package/dist/controlPlane/http/routes.js +34 -7
- package/dist/createBackend.d.ts +7 -0
- package/dist/createBackend.d.ts.map +1 -1
- package/dist/createBackend.js +34 -4
- package/dist/entitlement/require.js +1 -1
- package/dist/error/cause.d.ts +16 -116
- package/dist/error/cause.d.ts.map +1 -1
- package/dist/error/cause.js +19 -153
- package/dist/error/http.d.ts +40 -0
- package/dist/error/http.d.ts.map +1 -1
- package/dist/error/payload.d.ts +80 -0
- package/dist/error/payload.d.ts.map +1 -1
- package/dist/error/payload.js +26 -0
- package/dist/error/pithyError.d.ts +44 -0
- package/dist/error/pithyError.d.ts.map +1 -1
- package/dist/error/pithyError.js +56 -1
- package/dist/error/unresolved.d.ts +265 -0
- package/dist/error/unresolved.d.ts.map +1 -0
- package/dist/error/unresolved.js +599 -0
- package/dist/error/wire.d.ts +20 -0
- package/dist/error/wire.d.ts.map +1 -0
- package/dist/error/wire.js +19 -0
- package/dist/http/oidcWebhook.d.ts +3 -3
- package/dist/http/oidcWebhook.js +3 -3
- package/dist/http/routeContract.js +1 -1
- package/dist/http/routeSpec.d.ts +66 -0
- package/dist/http/routeSpec.d.ts.map +1 -0
- package/dist/http/routeSpec.js +40 -0
- package/dist/http/sameOrigin.d.ts +1 -1
- package/dist/http/sameOrigin.js +1 -1
- package/dist/http/signedWebhook.d.ts +3 -3
- package/dist/http/signedWebhook.js +3 -3
- package/dist/http/socket.d.ts +52 -0
- package/dist/http/socket.d.ts.map +1 -0
- package/dist/http/socket.js +2 -0
- package/dist/http/subprotocol.d.ts +29 -0
- package/dist/http/subprotocol.d.ts.map +1 -0
- package/dist/http/subprotocol.js +37 -0
- package/dist/http/validation.d.ts +40 -8
- package/dist/http/validation.d.ts.map +1 -1
- package/dist/http/validation.js +25 -1
- package/dist/index.js +2 -2
- package/dist/logger/record.d.ts +23 -0
- package/dist/logger/record.d.ts.map +1 -1
- package/dist/migrations/bookkeeping.d.ts +21 -0
- package/dist/migrations/bookkeeping.d.ts.map +1 -1
- package/dist/migrations/bookkeeping.js +32 -3
- package/dist/migrations/groups.d.ts +140 -0
- package/dist/migrations/groups.d.ts.map +1 -0
- package/dist/migrations/groups.js +191 -0
- package/dist/migrations/migrateStep.d.ts +13 -0
- package/dist/migrations/migrateStep.d.ts.map +1 -0
- package/dist/migrations/migrateStep.js +20 -0
- package/dist/migrations/owner.d.ts +7 -0
- package/dist/migrations/owner.d.ts.map +1 -1
- package/dist/migrations/owner.js +11 -7
- package/dist/migrations/retained.js +2 -2
- package/dist/migrations/runner.d.ts +76 -5
- package/dist/migrations/runner.d.ts.map +1 -1
- package/dist/migrations/runner.js +130 -19
- package/dist/naming/domains.d.ts +30 -0
- package/dist/naming/domains.d.ts.map +1 -1
- package/dist/naming/domains.js +83 -4
- package/dist/naming/environment.d.ts.map +1 -1
- package/dist/naming/environment.js +2 -1
- package/dist/naming/packageName.d.ts +17 -0
- package/dist/naming/packageName.d.ts.map +1 -0
- package/dist/naming/packageName.js +22 -0
- package/dist/naming/provisionScope.d.ts.map +1 -1
- package/dist/naming/provisionScope.js +2 -1
- package/dist/openapi/document.d.ts +106 -0
- package/dist/openapi/document.d.ts.map +1 -0
- package/dist/openapi/document.js +314 -0
- package/dist/openapi/routeGroups.d.ts +8 -0
- package/dist/openapi/routeGroups.d.ts.map +1 -0
- package/dist/openapi/routeGroups.js +23 -0
- package/dist/seed/devLogin.d.ts +33 -0
- package/dist/seed/devLogin.d.ts.map +1 -1
- package/dist/seed/devLogin.js +28 -1
- package/dist/text/comments.js +66 -4
- package/dist/text/literals.d.ts +43 -0
- package/dist/text/literals.d.ts.map +1 -0
- package/dist/text/literals.js +293 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.d.ts.map +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/workflow/dispatchRoute.d.ts.map +1 -1
- package/dist/workflow/dispatchRoute.js +12 -6
- package/dist/workflow/faults.d.ts.map +1 -1
- package/dist/workflow/faults.js +2 -3
- package/dist/workflow/hostEnv.d.ts +1 -0
- package/dist/workflow/hostEnv.d.ts.map +1 -1
- package/dist/workflow/hostEnv.js +4 -2
- package/dist/workflow/loopback.d.ts.map +1 -1
- package/dist/workflow/loopback.js +2 -1
- package/package.json +3 -3
- package/src/asyncapi/document.ts +164 -0
- package/src/capability/capability.ts +7 -0
- package/src/capability/composition.ts +2 -1
- package/src/capability/settings.ts +19 -2
- package/src/cli/command.ts +865 -0
- package/src/cli/commandCatalog.generated.ts +2533 -0
- package/src/cli/commandFacts.ts +219 -0
- package/src/controlPlane/error/errors.ts +10 -3
- package/src/controlPlane/http/guard.ts +14 -2
- package/src/controlPlane/http/routes.ts +57 -9
- package/src/createBackend.ts +35 -2
- package/src/entitlement/require.ts +1 -1
- package/src/error/cause.ts +18 -181
- package/src/error/payload.ts +59 -0
- package/src/error/pithyError.ts +76 -0
- package/src/error/unresolved.ts +853 -0
- package/src/error/wire.ts +40 -0
- package/src/http/oidcWebhook.ts +3 -3
- package/src/http/routeContract.ts +1 -1
- package/src/http/routeSpec.ts +81 -0
- package/src/http/sameOrigin.ts +1 -1
- package/src/http/signedWebhook.ts +3 -3
- package/src/http/socket.ts +55 -0
- package/src/http/subprotocol.ts +47 -0
- package/src/http/validation.ts +50 -8
- package/src/migrations/bookkeeping.ts +39 -2
- package/src/migrations/groups.ts +295 -0
- package/src/migrations/migrateStep.ts +19 -0
- package/src/migrations/owner.ts +10 -6
- package/src/migrations/retained.ts +2 -2
- package/src/migrations/runner.ts +214 -22
- package/src/naming/domains.ts +97 -16
- package/src/naming/environment.ts +2 -1
- package/src/naming/packageName.ts +20 -0
- package/src/naming/provisionScope.ts +2 -1
- package/src/openapi/document.ts +412 -0
- package/src/openapi/routeGroups.ts +25 -0
- package/src/seed/devLogin.ts +31 -0
- package/src/text/comments.ts +56 -4
- package/src/text/literals.ts +294 -0
- package/src/version.generated.ts +1 -1
- package/src/workflow/dispatchRoute.ts +13 -6
- package/src/workflow/faults.ts +5 -3
- package/src/workflow/hostEnv.ts +9 -1
- package/src/workflow/loopback.ts +2 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import type { DEFAULT_ENVIRONMENTS, LOCAL_ENVIRONMENT } from "../naming/environment";
|
|
4
|
+
import { COMMANDS, GROUPS } from "./commandCatalog.generated";
|
|
5
|
+
import { CONFIRM_FLAGS, type DestructiveFlag, type DestructivePath, EVERY_ENVIRONMENT_ALWAYS, MEANING_FLAGS, MEANING_ONLY_WITH, PRODUCTION_ENVIRONMENTS, type ProductionPath, type WorkerScopedPath } from "./commandFacts";
|
|
6
|
+
/**
|
|
7
|
+
* **The one place a `pithy` command line is spelled (#711).**
|
|
8
|
+
*
|
|
9
|
+
* #697 held every `fix` to one rule: it runs as written. The sentences beside it were held to nothing, and three
|
|
10
|
+
* review rounds each found new ones that did not run — a `--worker` dropped, an `--env` left to default to `dev`,
|
|
11
|
+
* a placeholder an agent pasted verbatim, a command that destroyed far more than the fault it was offered for.
|
|
12
|
+
* Every one was a command spelled by hand at its own site, so every fix was one site, and the next site was
|
|
13
|
+
* still spelled by hand.
|
|
14
|
+
*
|
|
15
|
+
* So no site spells one. A line that names a command gets it from here, and this module knows the tree
|
|
16
|
+
* (`commandCatalog.generated.ts`, projected from the CLI's own parser) and the facts the parser cannot state
|
|
17
|
+
* (`commandFacts.ts`). It refuses to build:
|
|
18
|
+
*
|
|
19
|
+
* - **a command that does not exist**, or a flag the command does not declare — at compile time for a literal
|
|
20
|
+
* path, at run time for one assembled from a capability's name;
|
|
21
|
+
* - **a command missing a flag it needs**: one the parser requires, one a rule over several flags requires, an
|
|
22
|
+
* `--env` whose default would change what the command acts on, or the `--worker` a command acting on one
|
|
23
|
+
* Worker is refused without — and `--worker` takes a {@link WorkerDir}, the Worker's `apps/` directory, never
|
|
24
|
+
* its deployed script name;
|
|
25
|
+
* - **a command that destroys something**, or a production provision. Those are a person's decision, and
|
|
26
|
+
* {@link personDecision} says so in a sentence that carries no command an agent would run.
|
|
27
|
+
*
|
|
28
|
+
* ## A builder reached at run time never throws because of data
|
|
29
|
+
*
|
|
30
|
+
* Every refusal above is about what **the program spells** — a command path, a flag name, an enum choice, the
|
|
31
|
+
* shape of the line — and a value is one of two kinds:
|
|
32
|
+
*
|
|
33
|
+
* - **Spelled by the program**: the path, each flag's name, a choice from a flag's fixed set, a Worker directory
|
|
34
|
+
* (a {@link WorkerDir}, which only {@link workerDirOf} makes). These are checked, at compile time where the path
|
|
35
|
+
* is a literal.
|
|
36
|
+
* - **Supplied by a caller**: a `--set` value, a secret's name, free text, anything a run read. These are
|
|
37
|
+
* shell-quoted as they are and never checked — `fromName=Acme <hi@acme.io>` is a value, not a placeholder, and a
|
|
38
|
+
* builder that read it as one turned `pithy add email` into `core/internal` after it had installed the package
|
|
39
|
+
* (#711). A `<placeholder>` is a fault of **spelling**, so the place that refuses one is the gate that reads
|
|
40
|
+
* spellings, `packages/cli/src/ci/runnableCommands.test.ts`, which reads every literal handed to a builder too.
|
|
41
|
+
*
|
|
42
|
+
* So whether a line is a person's decision never turns on a value at run time either. An environment a run reads —
|
|
43
|
+
* a deployed Worker's `ENVIRONMENT`, a caller's `--env` — is data: {@link pithyCommand} takes no `--env` on a
|
|
44
|
+
* command a production run makes a person's decision except a literal non-production one, {@link pithyCommandOf}
|
|
45
|
+
* takes none there at all, and a line that names one it read is {@link remedy}'s or {@link rerunRemedy}'s, which
|
|
46
|
+
* say a production one as a person's decision. {@link personDecision} takes only a command or flag that destroys
|
|
47
|
+
* something, which is shape. What is left to throw is a program that spelled a line wrong, every time it runs.
|
|
48
|
+
*
|
|
49
|
+
* `packages/cli/src/ci/runnableCommands.test.ts` reads every string in every package's shipped source and fails
|
|
50
|
+
* on a `pithy …` spelled anywhere but here, wherever it sits in the sentence.
|
|
51
|
+
*/
|
|
52
|
+
type Catalog = typeof COMMANDS;
|
|
53
|
+
/** A command the CLI runs, as typed after `pithy`. */
|
|
54
|
+
export type CommandPath = keyof Catalog;
|
|
55
|
+
/** A group, which only lists its subcommands. A sentence may name one in prose. */
|
|
56
|
+
export type GroupPath = (typeof GROUPS)[number];
|
|
57
|
+
declare const WORKER_DIR: unique symbol;
|
|
58
|
+
/**
|
|
59
|
+
* **A Worker as `--worker` takes it: its `apps/` directory.** Branded, so the deployed script name — a `string`
|
|
60
|
+
* every Worker also carries — cannot be passed where this is wanted. Made by {@link workerDirOf} from the
|
|
61
|
+
* Worker's directory.
|
|
62
|
+
*/
|
|
63
|
+
export type WorkerDir = string & {
|
|
64
|
+
readonly [WORKER_DIR]: true;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The Worker a directory holds, as `--worker` names it: the directory's own name. Takes the directory rather
|
|
68
|
+
* than a name, because a name in hand is as often the deployed script name, which `--worker` does not resolve.
|
|
69
|
+
*/
|
|
70
|
+
export declare function workerDirOf(worker: {
|
|
71
|
+
readonly dir: string;
|
|
72
|
+
}): WorkerDir;
|
|
73
|
+
declare const BUILT: unique symbol;
|
|
74
|
+
/** A command line this module built, and so one that runs as written. The only thing a `fix` may carry. */
|
|
75
|
+
export type Command = string & {
|
|
76
|
+
readonly [BUILT]: true;
|
|
77
|
+
};
|
|
78
|
+
type FlagDefs<P extends CommandPath> = Catalog[P]["flags"];
|
|
79
|
+
type FlagName<P extends CommandPath> = Extract<keyof FlagDefs<P>, string>;
|
|
80
|
+
type ConfirmFlag = (typeof CONFIRM_FLAGS)[number];
|
|
81
|
+
type MeaningFlag = (typeof MEANING_FLAGS)[number];
|
|
82
|
+
/**
|
|
83
|
+
* An environment no project's production run is: the local one, and the deployed one that is not `prod`. The only
|
|
84
|
+
* `--env` a literal line may give a command whose production run is a person's decision — so it is spelled, never
|
|
85
|
+
* read, and an environment a run read goes through {@link remedy}, which decides by its value.
|
|
86
|
+
*/
|
|
87
|
+
export type QuietEnvironment = typeof LOCAL_ENVIRONMENT | Exclude<(typeof DEFAULT_ENVIRONMENTS)[number], (typeof PRODUCTION_ENVIRONMENTS)[number]>;
|
|
88
|
+
/**
|
|
89
|
+
* The value one flag takes: `true` for a boolean, a {@link WorkerDir} for `--worker`, one of a fixed set's choices,
|
|
90
|
+
* a {@link QuietEnvironment} for the `--env` of a command a production run makes a person's decision, else a string.
|
|
91
|
+
*/
|
|
92
|
+
type FlagValue<P, D, F> = F extends "--worker" ? WorkerDir : D extends {
|
|
93
|
+
type: "boolean";
|
|
94
|
+
} ? true : F extends "--env" ? P extends ProductionPath ? QuietEnvironment : string : D extends {
|
|
95
|
+
enum: readonly (infer E)[];
|
|
96
|
+
} ? D extends {
|
|
97
|
+
repeatable: true;
|
|
98
|
+
} ? E | readonly E[] : E : D extends {
|
|
99
|
+
repeatable: true;
|
|
100
|
+
} ? string | readonly string[] : string;
|
|
101
|
+
/** Whether a line naming `P` must carry `F`. `add`'s Worker is its own builder's to name (`addCommand.ts`). */
|
|
102
|
+
type IsNeeded<P extends CommandPath, F extends FlagName<P>> = FlagDefs<P>[F] extends {
|
|
103
|
+
required: true;
|
|
104
|
+
} ? true : F extends MeaningFlag ? FlagDefs<P>[F] extends {
|
|
105
|
+
default: string;
|
|
106
|
+
} ? P extends keyof typeof MEANING_ONLY_WITH ? false : true : false : F extends "--worker" ? P extends Exclude<WorkerScopedPath, "add"> ? true : false : false;
|
|
107
|
+
type NeededFlag<P extends CommandPath> = {
|
|
108
|
+
[F in FlagName<P>]: IsNeeded<P, F> extends true ? F : never;
|
|
109
|
+
}[FlagName<P>];
|
|
110
|
+
/** The flags a line naming `P` passes: the ones it needs, and any other it declares that destroys nothing. */
|
|
111
|
+
export type CommandFlags<P extends CommandPath> = {
|
|
112
|
+
[F in NeededFlag<P>]: FlagValue<P, FlagDefs<P>[F], F>;
|
|
113
|
+
} & {
|
|
114
|
+
[F in Exclude<FlagName<P>, NeededFlag<P> | DestructiveFlag | ConfirmFlag>]?: FlagValue<P, FlagDefs<P>[F], F>;
|
|
115
|
+
};
|
|
116
|
+
type HasRequiredPositional<P extends CommandPath> = [
|
|
117
|
+
Extract<Catalog[P]["positionals"][number], {
|
|
118
|
+
required: true;
|
|
119
|
+
}>
|
|
120
|
+
] extends [never] ? false : true;
|
|
121
|
+
/** What a line naming `P` passes: its positional arguments, and its flags, in the order they are written. */
|
|
122
|
+
export type CommandParts<P extends CommandPath> = (HasRequiredPositional<P> extends true ? {
|
|
123
|
+
args: readonly [string, ...string[]];
|
|
124
|
+
} : {
|
|
125
|
+
args?: readonly string[];
|
|
126
|
+
}) & ([NeededFlag<P>] extends [never] ? {
|
|
127
|
+
flags?: CommandFlags<P>;
|
|
128
|
+
} : {
|
|
129
|
+
flags: CommandFlags<P>;
|
|
130
|
+
});
|
|
131
|
+
type PartsArgument<P extends CommandPath> = HasRequiredPositional<P> extends true ? [parts: CommandParts<P>] : [NeededFlag<P>] extends [never] ? [parts?: CommandParts<P>] : [parts: CommandParts<P>];
|
|
132
|
+
/**
|
|
133
|
+
* A command that is built like any other: one that destroys nothing, and that does not act on every environment on
|
|
134
|
+
* every run — a line names that one through {@link remedy}, which says it as a person's decision.
|
|
135
|
+
*/
|
|
136
|
+
export type BuildablePath = Exclude<CommandPath, DestructivePath | (typeof EVERY_ENVIRONMENT_ALWAYS)[number]>;
|
|
137
|
+
/** Parts as a builder holds them when the path is a value rather than a literal. */
|
|
138
|
+
export interface LooseParts {
|
|
139
|
+
readonly args?: readonly string[];
|
|
140
|
+
readonly flags?: Readonly<Record<string, string | true | readonly string[] | undefined>>;
|
|
141
|
+
}
|
|
142
|
+
/** What {@link commandFaults} is asked to allow. */
|
|
143
|
+
export interface FaultOptions {
|
|
144
|
+
/**
|
|
145
|
+
* A person's decision: a destructive command or flag, or a production run, is named for a person to choose,
|
|
146
|
+
* and the confirmation flags are theirs to add. {@link personDecision} asks for this; nothing else does.
|
|
147
|
+
*/
|
|
148
|
+
readonly person?: boolean;
|
|
149
|
+
/** The project's `seed.productionEnvironments`, beyond the {@link PRODUCTION_ENVIRONMENTS} every project has. */
|
|
150
|
+
readonly productionEnvironments?: readonly string[];
|
|
151
|
+
/**
|
|
152
|
+
* A line said by a **deployed** Worker — into its own log, or to an HTTP caller — which cannot know the `apps/`
|
|
153
|
+
* directory that provisioned it. Every rule holds but `--worker`. Only the files
|
|
154
|
+
* `packages/cli/src/ci/runnableCommands.test.ts` lists as runtime lines may pass it.
|
|
155
|
+
*/
|
|
156
|
+
readonly runtime?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* **Every value on the line was spelled by the program** — the gate, reading a line written in a literal — so a
|
|
159
|
+
* `<placeholder>` or a blank among them is a fault. No builder says this: a value handed to a builder is a
|
|
160
|
+
* caller's, and is shell-quoted as it is (see the module comment).
|
|
161
|
+
*/
|
|
162
|
+
readonly spelled?: boolean;
|
|
163
|
+
/** Treat `<x>`, the gate's mark for interpolation, as a value rather than a placeholder. */
|
|
164
|
+
readonly interpolated?: boolean;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* What a builder adds to {@link FaultOptions}: that every value is the caller's own run, handed back as it was
|
|
168
|
+
* given, so not even a fixed set of choices is held against it — the run's own parser has had its say.
|
|
169
|
+
*/
|
|
170
|
+
interface BuildOptions extends FaultOptions {
|
|
171
|
+
readonly given?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/** Whether `path` is a command the CLI runs. */
|
|
174
|
+
export declare function isCommandPath(path: string): path is CommandPath;
|
|
175
|
+
/** Whether `path` is a group. */
|
|
176
|
+
export declare function isGroupPath(path: string): path is GroupPath;
|
|
177
|
+
/**
|
|
178
|
+
* What the catalog says about one flag of one command — its type, whether it is required, its default — or
|
|
179
|
+
* `undefined` when the command does not declare it.
|
|
180
|
+
*/
|
|
181
|
+
export declare function commandFlag(path: string, flag: string): {
|
|
182
|
+
readonly type: "boolean" | "string";
|
|
183
|
+
readonly required: boolean;
|
|
184
|
+
readonly default?: string;
|
|
185
|
+
} | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* **Every reason a command line would not run as written, or would do more than a remedy may.** Empty when it
|
|
188
|
+
* runs. The builder throws on any; `runnableCommands.test.ts` holds every hand-spelled line it reads to the same
|
|
189
|
+
* function, so the gate and the builder cannot disagree about a rule.
|
|
190
|
+
*/
|
|
191
|
+
export declare function commandFaults(path: string, parts?: LooseParts, options?: BuildOptions): string[];
|
|
192
|
+
/**
|
|
193
|
+
* **What a command does that only a person may decide**: what it deletes, or that it runs against production. Empty
|
|
194
|
+
* for a command a remedy may name.
|
|
195
|
+
*/
|
|
196
|
+
export declare function consequencesOf(path: string, parts?: LooseParts, options?: FaultOptions): string[];
|
|
197
|
+
/**
|
|
198
|
+
* Whether `path` acts on every environment, production among them, when its `--env` is left off — `pithy testers
|
|
199
|
+
* provision` (`commandFacts.ts`'s {@link EVERY_ENVIRONMENT_WITHOUT_ENV}). A line about one environment names it.
|
|
200
|
+
*/
|
|
201
|
+
export declare function actsOnEveryEnvironment(path: string): boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Whether `path` acts on every environment, production among them, on every run, with no `--env` to narrow it —
|
|
204
|
+
* `pithy secrets provision` (`commandFacts.ts`'s {@link EVERY_ENVIRONMENT_ALWAYS}). A line naming it is a person's
|
|
205
|
+
* decision, always.
|
|
206
|
+
*/
|
|
207
|
+
export declare function actsOnEveryEnvironmentAlways(path: string): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* **A command line that runs as written**, from a literal path: the tree checks its command, its flags and the
|
|
210
|
+
* flags it needs at compile time, and {@link commandFaults} checks the rest when it is built.
|
|
211
|
+
*/
|
|
212
|
+
export declare function pithyCommand<P extends BuildablePath>(path: P, ...parts: PartsArgument<P>): Command;
|
|
213
|
+
/** The parts of a line a deployed Worker builds: no `--env`, which it reads as data and names through {@link remedy}. */
|
|
214
|
+
export interface RuntimeParts extends LooseParts {
|
|
215
|
+
readonly flags?: LooseParts["flags"] & {
|
|
216
|
+
readonly "--env"?: never;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* **The same, from a path that is a value** — `` `${capability} provision` ``. Nothing is checked at compile
|
|
221
|
+
* time, so everything is checked here, and a path the CLI does not have is refused rather than spelled.
|
|
222
|
+
*
|
|
223
|
+
* Whether a command is a person's decision never turns on a value here. A runtime line names no `--env`: a deployed
|
|
224
|
+
* Worker's environment is data, and whether its command is a person's decision depends on it, so that line is
|
|
225
|
+
* {@link remedy}'s. Nor does any line name the `--env` of a command a production run makes a person's decision —
|
|
226
|
+
* `provision`, `seed`, `vector provision`. Each is refused for every value, so no environment is a surprise.
|
|
227
|
+
*/
|
|
228
|
+
export declare function pithyCommandOf(path: string, parts: RuntimeParts, options: {
|
|
229
|
+
readonly runtime: true;
|
|
230
|
+
}): Command;
|
|
231
|
+
export declare function pithyCommandOf(path: string, parts?: LooseParts): Command;
|
|
232
|
+
/**
|
|
233
|
+
* **A command a person decides on, said as one.** For a fault whose only remedy destroys something, or runs
|
|
234
|
+
* against production: the sentence names the command, says what it does and that the choice is a person's, and
|
|
235
|
+
* leaves every confirmation flag for them to add. It returns a sentence, never a {@link Command}, so it cannot
|
|
236
|
+
* become a `fix`.
|
|
237
|
+
*
|
|
238
|
+
* It takes a command that destroys something, or a line naming a flag that does — shape, never a value. A command
|
|
239
|
+
* whose production run is a person's decision is a decision only for a production `--env`, which is data, so that
|
|
240
|
+
* line is {@link remedy}'s, which decides by the value; here it is refused for every value.
|
|
241
|
+
*/
|
|
242
|
+
export declare function personDecision(path: PersonPath, parts: LooseParts, options?: Pick<FaultOptions, "productionEnvironments" | "runtime">): string;
|
|
243
|
+
/** A command that destroys something, or one declaring a flag that does: what {@link personDecision} takes. */
|
|
244
|
+
export type PersonPath = {
|
|
245
|
+
[P in CommandPath]: P extends DestructivePath ? P : [Extract<FlagName<P>, DestructiveFlag>] extends [never] ? never : P;
|
|
246
|
+
}[CommandPath];
|
|
247
|
+
/** **A remedy**: the command a `fix` carries when one may, and the words a line says about it. */
|
|
248
|
+
export interface Remedy {
|
|
249
|
+
/** The command, when it runs as written and a `fix` may carry it. `undefined` for a person's decision. */
|
|
250
|
+
readonly fix: Command | undefined;
|
|
251
|
+
/** The words: `wrap` around the command, or — for a person's decision — that sentence in its place. */
|
|
252
|
+
say(wrap: (command: string) => string): string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* **The remedy a line names**, decided by the command rather than by its site: a command a remedy may name is a
|
|
256
|
+
* `fix` and goes into the sentence; one that destroys something or runs against production is a person's
|
|
257
|
+
* decision, said as one, with no `fix`. A command that does not run is refused either way.
|
|
258
|
+
*/
|
|
259
|
+
export declare function remedy(path: string, parts?: LooseParts, options?: Pick<FaultOptions, "productionEnvironments" | "runtime">): Remedy;
|
|
260
|
+
declare const CALLER: unique symbol;
|
|
261
|
+
/**
|
|
262
|
+
* **The caller's own run (#711): the one input every rerun and every fix naming it again is built from.**
|
|
263
|
+
*
|
|
264
|
+
* Each review round of #711 found another run again that dropped what the caller gave — `--json`, `--worker`,
|
|
265
|
+
* `--dry-run`, a `--set`, an option the Worker's config already answers — because each was rebuilt at its own site
|
|
266
|
+
* from whatever flags that site held. So a rerun builder ({@link rerunCommand}, {@link rerunRemedy}, `pithy add`'s
|
|
267
|
+
* `addAgain`) takes this and nothing else, and this is made only by {@link callerOf}, from a run's parsed arguments.
|
|
268
|
+
* Branded, so loose flags do not type-check where one is wanted; `packages/cli/src/ci/runnableCommands.test.ts`
|
|
269
|
+
* fails on a cast to it and on a {@link callerOf} handed anything but a run's own arguments.
|
|
270
|
+
*/
|
|
271
|
+
export interface Caller<P extends CommandPath = CommandPath> {
|
|
272
|
+
/** The command the run was. */
|
|
273
|
+
readonly path: P;
|
|
274
|
+
/** Its parsed arguments, keyed as the parser keys them (`worker`, `routing-zone`, `dry-run`). */
|
|
275
|
+
readonly given: Readonly<Record<string, unknown>>;
|
|
276
|
+
/** Its `--set` values, by key, and every option it settled by a prompt ({@link settledBy}). */
|
|
277
|
+
readonly set: Readonly<Record<string, string>>;
|
|
278
|
+
/**
|
|
279
|
+
* The options the Worker's config already answers, for a command that reads one (`pithy add`): settled, so a
|
|
280
|
+
* rerun names no `--set` for them, which could contradict the config.
|
|
281
|
+
*/
|
|
282
|
+
readonly answered: ReadonlySet<string>;
|
|
283
|
+
readonly [CALLER]: true;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* **A run's own context**, from its parsed arguments. `set` is the raw `--set` entries where the parser keeps only the
|
|
287
|
+
* last (`collectSetFlags`); absent, they are read from `given.set`. `answered` is what the Worker's config states.
|
|
288
|
+
*/
|
|
289
|
+
export declare function callerOf<P extends CommandPath>(path: P, given: Readonly<Record<string, unknown>>, context?: {
|
|
290
|
+
readonly set?: readonly string[] | undefined;
|
|
291
|
+
readonly answered?: Iterable<string> | undefined;
|
|
292
|
+
}): Caller<P>;
|
|
293
|
+
/** The same caller, with what the run settled on its way — a prompt's answers — carried as `--set` too. */
|
|
294
|
+
export declare function settledBy<P extends CommandPath>(caller: Caller<P>, values: Readonly<Record<string, string>>): Caller<P>;
|
|
295
|
+
/** The same caller, with the options its Worker's config answers. */
|
|
296
|
+
export declare function answeredBy<P extends CommandPath>(caller: Caller<P>, keys: Iterable<string>): Caller<P>;
|
|
297
|
+
/** What a run-again is told beyond the arguments the run was given. */
|
|
298
|
+
export interface RerunOptions {
|
|
299
|
+
/** The positional arguments, as the command takes them. */
|
|
300
|
+
readonly args?: readonly string[];
|
|
301
|
+
/** What the run resolved for itself — the Worker it picked when it was not named — or `undefined` to drop one. */
|
|
302
|
+
readonly flags?: LooseParts["flags"];
|
|
303
|
+
/** The project's `seed.productionEnvironments`, beyond the ones every project has. */
|
|
304
|
+
readonly productionEnvironments?: readonly string[] | undefined;
|
|
305
|
+
}
|
|
306
|
+
/** A command whose run again is always a command: it destroys nothing, and no production run of it is a person's. */
|
|
307
|
+
export type RerunPath = Exclude<CommandPath, DestructivePath | ProductionPath>;
|
|
308
|
+
/**
|
|
309
|
+
* **The caller's own command, to run again (#711)**, as a {@link Command} — rebuilt from the run's {@link Caller}, so
|
|
310
|
+
* a rerun asks for nothing the first run did not. `options.flags` adds what the run resolved for itself (the Worker it
|
|
311
|
+
* picked) or drops a flag whose work is done (`undefined`).
|
|
312
|
+
*
|
|
313
|
+
* It takes no command whose run again could be a person's decision — one that destroys something, or one a
|
|
314
|
+
* production `--env` makes a person's: that run again is {@link rerunRemedy}'s, which says so rather than throwing.
|
|
315
|
+
*/
|
|
316
|
+
export declare function rerunCommand(caller: Caller<RerunPath>, options?: Omit<RerunOptions, "productionEnvironments">): Command;
|
|
317
|
+
/**
|
|
318
|
+
* **The caller's own command, as a line names it to run again (#711)** — the {@link Remedy} for
|
|
319
|
+
* {@link rerunCommand}'s parts, for any command. A run again that a production `--env` makes a person's decision is
|
|
320
|
+
* said as one, with no `fix`, rather than thrown after the run did its work. `say` hands `wrap` the command in code
|
|
321
|
+
* and — where the run was given a credential by flag, which no line repeats — the flags to pass again beside it.
|
|
322
|
+
*/
|
|
323
|
+
export declare function rerunRemedy(caller: Caller, options?: RerunOptions): Remedy;
|
|
324
|
+
/**
|
|
325
|
+
* **A command named in prose, not given to run** — "as `pithy add` wrote it". Checked to exist, and spelled with
|
|
326
|
+
* nothing after it. A line that tells somebody to run a command builds it with {@link pithyCommand}.
|
|
327
|
+
*/
|
|
328
|
+
export declare function commandName(path: CommandPath | GroupPath): string;
|
|
329
|
+
/** {@link commandName}, for a path that is a value: refused when the CLI has no such command or group. */
|
|
330
|
+
export declare function commandNameOf(path: string): string;
|
|
331
|
+
/**
|
|
332
|
+
* {@link commandNameOf}, for a path as a parser walked it, word by word. Empty is the root, which is the CLI
|
|
333
|
+
* itself rather than a command, and is named as such.
|
|
334
|
+
*/
|
|
335
|
+
export declare function commandNameOfPath(path: readonly string[]): string;
|
|
336
|
+
/**
|
|
337
|
+
* **The CLI at a version** — `pithy 0.9.5`, as a line names a release rather than a command. A line never spells
|
|
338
|
+
* `pithy` before an interpolation: the gate reads that as a command it cannot check.
|
|
339
|
+
*/
|
|
340
|
+
export declare function cliAtVersion(version: string): string;
|
|
341
|
+
/**
|
|
342
|
+
* **How each package manager runs a project's own binary**: `bun x`, `pnpm exec`, `yarn`, `npx`. The one table
|
|
343
|
+
* both a spawned process (`packages/cli/src/project/packageManager.ts`'s `execArgs`) and a line naming one read.
|
|
344
|
+
*/
|
|
345
|
+
export declare const PACKAGE_EXEC: {
|
|
346
|
+
readonly bun: readonly ["bun", "x"];
|
|
347
|
+
readonly pnpm: readonly ["pnpm", "exec"];
|
|
348
|
+
readonly yarn: readonly ["yarn"];
|
|
349
|
+
readonly npm: readonly ["npx"];
|
|
350
|
+
};
|
|
351
|
+
/** A package manager a project runs its own binaries through. */
|
|
352
|
+
export type ExecPackageManager = keyof typeof PACKAGE_EXEC;
|
|
353
|
+
/**
|
|
354
|
+
* **A built command, run through the project's own package manager** — the `pithy` the project installed, never
|
|
355
|
+
* a global one, which may be an older CLI than the line is about. Takes a {@link Command}, so what follows the
|
|
356
|
+
* prefix was built and runs as written.
|
|
357
|
+
*/
|
|
358
|
+
export declare function viaPackageManager(pm: ExecPackageManager, command: Command): Command;
|
|
359
|
+
/** `a`, `a or b`, `a, b or c`, each in code: commands a reader picks one of. */
|
|
360
|
+
export declare function commandAlternatives(commands: readonly string[]): string;
|
|
361
|
+
/** `a`, `a and b`, `a, b and c`, each in code: commands that all run. */
|
|
362
|
+
export declare function commandSequence(commands: readonly string[]): string;
|
|
363
|
+
export {};
|
|
364
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/cli/command.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAgB,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EACL,aAAa,EAKb,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,wBAAwB,EAExB,aAAa,EACb,iBAAiB,EAGjB,uBAAuB,EACvB,KAAK,cAAc,EAGnB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,KAAK,OAAO,GAAG,OAAO,QAAQ,CAAC;AAK/B,sDAAsD;AACtD,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC;AAExC,mFAAmF;AACnF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhD,OAAO,CAAC,MAAM,UAAU,EAAE,OAAO,MAAM,CAAC;AAExC;;;;G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