@lunora/config 1.0.0-alpha.359 → 1.0.0-alpha.360
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/cli/index.d.mts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.mjs +1 -0
- package/dist/cloudflare/index.d.mts +2 -1
- package/dist/cloudflare/index.d.ts +2 -1
- package/dist/cloudflare/index.mjs +1 -1
- package/dist/index.d.mts +5 -271
- package/dist/index.d.ts +5 -271
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/LUNORA_TAG-DQTGPqcJ.mjs +1 -0
- package/dist/packem_shared/{assertWranglerSatisfiesSchema-Dd7ZPhw7.mjs → assertWranglerSatisfiesSchema-D4FA4jKB.mjs} +1 -1
- package/dist/packem_shared/blockingFindingsMessage-BVbijPdn.mjs +1 -0
- package/dist/packem_shared/deploy-driver.d-Cl96-c1l.d.mts +184 -0
- package/dist/packem_shared/deploy-driver.d-Cl96-c1l.d.ts +184 -0
- package/dist/packem_shared/index.d-Cmx4jMFV.d.ts +270 -0
- package/dist/packem_shared/index.d-DkNi7r6E.d.mts +270 -0
- package/dist/packem_shared/{infer-bindings.d-CFxssIAC.d.mts → infer-bindings.d-eFzcOnRh.d.mts} +1 -184
- package/dist/packem_shared/{infer-bindings.d-CFxssIAC.d.ts → infer-bindings.d-eFzcOnRh.d.ts} +1 -184
- package/dist/packem_shared/{reconcileBindingsSafely-7IJ58Uit.mjs → reconcileBindingsSafely-BEwmwy0q.mjs} +1 -1
- package/package.json +6 -2
- package/dist/packem_shared/LUNORA_TAG-CiQM3BkI.mjs +0 -1
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { e as ToolchainCommand, D as DeployDriver, d as ProjectionPurpose } from "./deploy-driver.d-Cl96-c1l.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Project-relative directory the Lunora agent skills ("rules") install into.
|
|
4
|
+
* This is the portable [Agent Skills](https://tanstack.com/intent/latest/docs/registry)
|
|
5
|
+
* location — Cursor, Claude Code, and GitHub Copilot all discover skills here.
|
|
6
|
+
*/
|
|
7
|
+
declare const AGENT_RULES_DIR = ".agents/skills";
|
|
8
|
+
/** Env var the once-per-process-tree hint guard ({@link claimAgentRulesHint}) sets. */
|
|
9
|
+
declare const AGENT_RULES_HINT_ENV = "LUNORA_RULES_HINT_SHOWN";
|
|
10
|
+
/**
|
|
11
|
+
* The Lunora agent skills shipped by `@lunora/cli`. The first entry (`lunora`)
|
|
12
|
+
* is the router skill — its presence is what {@link detectAgentRules} treats as
|
|
13
|
+
* "rules installed", since every other skill is reachable through it.
|
|
14
|
+
*
|
|
15
|
+
* `lunora rules install` enumerates `@lunora/cli`'s `skills/` directory rather
|
|
16
|
+
* than reading this list, so a skill missing here still installs — but
|
|
17
|
+
* `lunora rules check` counts against it, and reported "9/9 skills" with an
|
|
18
|
+
* empty "Missing:" line for a project holding all 14. The CLI's rules test
|
|
19
|
+
* pins the two together, since this package cannot see that directory.
|
|
20
|
+
*/
|
|
21
|
+
declare const LUNORA_SKILL_NAMES: ReadonlyArray<string>;
|
|
22
|
+
/** The router skill whose presence marks the rule set as installed. */
|
|
23
|
+
declare const ROOT_SKILL_NAME = "lunora";
|
|
24
|
+
/**
|
|
25
|
+
* The single "rules not installed" message shared by every surface (the CLI
|
|
26
|
+
* `lunora dev` summary and the Vite dev plugin), so the wording and the
|
|
27
|
+
* pointer at `lunora rules install` stay identical wherever it appears.
|
|
28
|
+
*/
|
|
29
|
+
declare const AGENT_RULES_HINT = "Lunora AI rules not installed — run `lunora rules install` so your coding agent knows how to use Lunora.";
|
|
30
|
+
/**
|
|
31
|
+
* Process-tree guard so the hint is emitted at most once. The first surface to
|
|
32
|
+
* print it sets {@link AGENT_RULES_HINT_ENV} on `process.env`; later surfaces (a
|
|
33
|
+
* Vite dev-server restart, or a child process that inherited the env) read it
|
|
34
|
+
* and stay quiet. Returns `true` the first time, `false` afterwards.
|
|
35
|
+
*/
|
|
36
|
+
declare const claimAgentRulesHint: () => boolean;
|
|
37
|
+
interface AgentRulesStatus {
|
|
38
|
+
/**
|
|
39
|
+
* True when the `lunora` router skill is installed. We key on the router
|
|
40
|
+
* (not "all nine present") so a project that intentionally trims the set
|
|
41
|
+
* still counts as installed and isn't nagged.
|
|
42
|
+
*/
|
|
43
|
+
readonly installed: boolean;
|
|
44
|
+
/** Skill names with no `SKILL.md` under `<root>/.agents/skills/<name>/`. */
|
|
45
|
+
readonly missing: ReadonlyArray<string>;
|
|
46
|
+
/** Skill names found under `<root>/.agents/skills/<name>/SKILL.md`. */
|
|
47
|
+
readonly present: ReadonlyArray<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Detect whether the Lunora agent skills are installed in `projectRoot` by
|
|
51
|
+
* checking the skills folder for each `SKILL.md`. Pure filesystem reads, safe to
|
|
52
|
+
* call on every dev-server / CLI startup — the CLI, the Vite plugin, and the
|
|
53
|
+
* studio host all use it to decide whether to surface the "rules not installed"
|
|
54
|
+
* hint.
|
|
55
|
+
*/
|
|
56
|
+
declare const detectAgentRules: (projectRoot: string) => AgentRulesStatus;
|
|
57
|
+
/** The default deploy target — today's behavior for every project. */
|
|
58
|
+
declare const DEFAULT_DEPLOY_TARGET = "cloudflare";
|
|
59
|
+
/** The ids a caller may select, for error messages and `--target` help text. */
|
|
60
|
+
declare const deployTargetIds: () => ReadonlyArray<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Resolve a target name to its driver.
|
|
63
|
+
* @throws when `target` names no registered driver — never falls back to the default.
|
|
64
|
+
*/
|
|
65
|
+
declare const resolveDeployDriver: (target?: string) => DeployDriver;
|
|
66
|
+
/**
|
|
67
|
+
* Whether `target`'s driver ships a `toolchain` — i.e. whether any tool can
|
|
68
|
+
* actually build, serve or deploy it, as opposed to merely generate for it.
|
|
69
|
+
*
|
|
70
|
+
* One predicate rather than one per caller: the CLI (`deploy`, `dev`) and the
|
|
71
|
+
* Vite plugin (`build`, `dev`) must refuse the same set, and a second copy
|
|
72
|
+
* fails silently — the tool that forgot runs the WRONG pipeline for the target
|
|
73
|
+
* instead of rejecting it.
|
|
74
|
+
* @param target A target id already resolved by `resolveTargetOrThrow`. Unknown
|
|
75
|
+
* ids answer `false` rather than throwing, so this is safe to ask about
|
|
76
|
+
* arbitrary input.
|
|
77
|
+
* @returns `true` when the target can be run.
|
|
78
|
+
*/
|
|
79
|
+
declare const isRunnableTarget: (target: string) => boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The subset of {@link deployTargetIds} that {@link isRunnableTarget} accepts,
|
|
82
|
+
* in the same (alphabetical) order.
|
|
83
|
+
* @returns every target id a tool can build, serve or deploy — used to name the
|
|
84
|
+
* alternatives when one is refused.
|
|
85
|
+
*/
|
|
86
|
+
declare const runnableTargetIds: () => ReadonlyArray<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Whether `lunora dev` serves `target`'s worker with the host's own dev server
|
|
89
|
+
* (`DriverToolchain.devServer === "own"`) instead of workerd. The CLI's flavor
|
|
90
|
+
* choice and the Vite plugin's warning both ask this, so it is answered once.
|
|
91
|
+
*/
|
|
92
|
+
declare const targetRunsOwnDevServer: (target: string) => boolean;
|
|
93
|
+
/** A toolchain command planned against the driver's config projection, with nothing written yet. */
|
|
94
|
+
interface ToolchainInvocation {
|
|
95
|
+
command: ToolchainCommand;
|
|
96
|
+
/** Write the projection, if the driver has one. Call only once the command is going to run. */
|
|
97
|
+
commit: () => void;
|
|
98
|
+
/** The projection the command reads, and every key it left out — `undefined` when the host reads the project config as-is. */
|
|
99
|
+
projection: {
|
|
100
|
+
configPath: string;
|
|
101
|
+
dropped: ReadonlyArray<string>;
|
|
102
|
+
} | undefined;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Plan a toolchain call in the one safe order: project the config (in memory),
|
|
106
|
+
* build the argv against the projection's path — which is where a host refuses
|
|
107
|
+
* an option it cannot honour, so a refusal throws here — and only then offer the
|
|
108
|
+
* write. A refused command therefore leaves nothing on disk, and `configPath`
|
|
109
|
+
* is set on every request whose driver projects.
|
|
110
|
+
*/
|
|
111
|
+
declare const planToolchainInvocation: (driver: DeployDriver, projectRoot: string, purpose: ProjectionPurpose, build: (configPath: string | undefined) => ToolchainCommand) => ToolchainInvocation;
|
|
112
|
+
/** The painted ` lunora ` badge, prepended to the plugin's branded log lines. */
|
|
113
|
+
declare const LUNORA_TAG: string;
|
|
114
|
+
/** Prefix a message with the Lunora badge (e.g. `lunoraLine("codegen done")`). */
|
|
115
|
+
declare const lunoraLine: (message: string) => string;
|
|
116
|
+
/**
|
|
117
|
+
* A branded schema-advisory line: the level-coloured badge (`warn`/`error`/`info`)
|
|
118
|
+
* — same badges the CLI reporter uses, so the dev server reads as one tool — then
|
|
119
|
+
* the rule name, the detail, and the remediation. Replaces the old dense
|
|
120
|
+
* `lunora-badge … schema advisory [WARN] …` line with the level-appropriate badge.
|
|
121
|
+
*/
|
|
122
|
+
declare const advisoryLine: (level: "ERROR" | "INFO" | "WARN", name: string, detail: string, remediation: string) => string;
|
|
123
|
+
declare class LunoraReporter {
|
|
124
|
+
#private;
|
|
125
|
+
setStdout(stdout: NodeJS.WriteStream): void;
|
|
126
|
+
setStderr(stderr: NodeJS.WriteStream): void;
|
|
127
|
+
log(meta: unknown): void;
|
|
128
|
+
}
|
|
129
|
+
type PackageManager = "pnpm" | "npm" | "yarn" | "bun";
|
|
130
|
+
/** True when `manager` is on PATH — probed by running `<manager> --version`. Injectable for tests. */
|
|
131
|
+
type PackageManagerProbe = (manager: PackageManager) => boolean;
|
|
132
|
+
/**
|
|
133
|
+
* The package managers actually installed on this machine, in preference order
|
|
134
|
+
* ({@link INSTALL_PREFERENCE} — pnpm > bun > yarn > npm). The first entry is the
|
|
135
|
+
* recommended default for the install prompt; the whole list is what the user
|
|
136
|
+
* picks from. Empty when none are found.
|
|
137
|
+
*/
|
|
138
|
+
declare const detectInstalledManagers: (probe?: PackageManagerProbe) => PackageManager[];
|
|
139
|
+
/** The argv that installs a project's dependencies with `manager` (`<manager> install`). */
|
|
140
|
+
declare const installArgsFor: (manager: PackageManager) => {
|
|
141
|
+
args: string[];
|
|
142
|
+
command: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* The argv that adds `packages` as new dependencies with `manager` — the
|
|
146
|
+
* counterpart to {@link installArgsFor}, which reinstalls what package.json
|
|
147
|
+
* already declares rather than adding something new to it.
|
|
148
|
+
*
|
|
149
|
+
* npm's dev flag is `--save-dev` (its own docs lead with the long form); bun's
|
|
150
|
+
* is the lowercase `-d` (uppercase `-D` is not one of its recognized flags);
|
|
151
|
+
* pnpm and yarn both take `-D`.
|
|
152
|
+
*/
|
|
153
|
+
declare const addArgsFor: (manager: PackageManager, packages: ReadonlyArray<string>, options?: {
|
|
154
|
+
dev?: boolean;
|
|
155
|
+
}) => {
|
|
156
|
+
args: string[];
|
|
157
|
+
command: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Resolve the package manager to drive for the project rooted at (or above)
|
|
161
|
+
* `startDirectory`. Every step is a real signal — Lunora never blindly assumes a
|
|
162
|
+
* particular manager, and there is no hardcoded fallback:
|
|
163
|
+
*
|
|
164
|
+
* 1. `@visulima/package` — the nearest lock file (`pnpm-lock.yaml`, `yarn.lock`,
|
|
165
|
+
* `package-lock.json`, `bun.lockb`) or the `packageManager` field of the nearest
|
|
166
|
+
* `package.json`.
|
|
167
|
+
* 2. The manager that launched this CLI, read from `npm_config_user_agent` (so
|
|
168
|
+
* `pnpm dlx lunora …` / `npx lunora …` resolve to the right manager).
|
|
169
|
+
* 3. The first package manager actually installed on this machine
|
|
170
|
+
* ({@link detectInstalledManagers}).
|
|
171
|
+
*
|
|
172
|
+
* Throws when none of those resolve — i.e. there is no lock file / `packageManager`
|
|
173
|
+
* field, the CLI wasn't launched by a known manager, and none is on `PATH`.
|
|
174
|
+
* Surfacing that is better than silently guessing a manager that can't run.
|
|
175
|
+
*/
|
|
176
|
+
declare const detectPackageManager: (startDirectory: string) => PackageManager;
|
|
177
|
+
/** Map a package manager to the argv pair that runs an installed CLI. */
|
|
178
|
+
declare const execArgsFor: (manager: PackageManager, command: string, args: ReadonlyArray<string>) => {
|
|
179
|
+
args: string[];
|
|
180
|
+
command: string;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* The argv that runs a driver's {@link ToolchainCommand}: through the package
|
|
184
|
+
* manager for a project dependency, directly for a binary on `PATH`.
|
|
185
|
+
*/
|
|
186
|
+
declare const toolchainExecArgs: (manager: PackageManager, command: ToolchainCommand) => {
|
|
187
|
+
args: string[];
|
|
188
|
+
command: string;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* The argv that runs a project SCRIPT with `manager` — the counterpart to
|
|
192
|
+
* {@link execArgsFor}, which runs a BINARY.
|
|
193
|
+
*
|
|
194
|
+
* All four managers accept `<manager> run <script>`, so this is uniform. It is a
|
|
195
|
+
* separate function because reaching for `execArgsFor(manager, "run", [script])`
|
|
196
|
+
* silently produces something else entirely: `pnpm exec run <script>` fails with
|
|
197
|
+
* `Command "run" not found`, and `npx -- run <script>` resolves the registry
|
|
198
|
+
* PACKAGE named `run` and executes it.
|
|
199
|
+
*/
|
|
200
|
+
declare const runScriptArgsFor: (manager: PackageManager, script: string) => {
|
|
201
|
+
args: string[];
|
|
202
|
+
command: string;
|
|
203
|
+
};
|
|
204
|
+
/** The shell command that runs a project script with `manager` (`pnpm dev`, `npm run dev`, …). */
|
|
205
|
+
declare const runScriptCommand: (manager: PackageManager, script: string) => string;
|
|
206
|
+
/**
|
|
207
|
+
* The `package.json` at `root` as a plain object, or `undefined` when it is
|
|
208
|
+
* missing, unreadable, or not a JSON object. Best-effort on purpose: every
|
|
209
|
+
* caller reads one fact off it (a script, a key, the dependencies) and falls
|
|
210
|
+
* back to its default rather than failing over a broken manifest.
|
|
211
|
+
*/
|
|
212
|
+
declare const readProjectManifest: (root: string) => Readonly<Record<string, unknown>> | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* The manifest's merged `devDependencies` + `dependencies` map — a runtime
|
|
215
|
+
* dependency wins a name declared in both — or `{}` when it cannot be read.
|
|
216
|
+
*/
|
|
217
|
+
declare const readProjectDependencies: (root: string) => Readonly<Record<string, string>>;
|
|
218
|
+
/** The names {@link readProjectDependencies} reads — empty when the manifest cannot be read. */
|
|
219
|
+
declare const readProjectDependencyNames: (root: string) => ReadonlySet<string>;
|
|
220
|
+
/**
|
|
221
|
+
* A badge: the short colored label that prefixes a line. `bg`/`fg` are hex so the
|
|
222
|
+
* same value drives both colorize's `bgHex().hex()` and the tui `<Text>` props.
|
|
223
|
+
*/
|
|
224
|
+
interface BadgeSpec {
|
|
225
|
+
bg: `#${string}`;
|
|
226
|
+
fg: `#${string}`;
|
|
227
|
+
text: string;
|
|
228
|
+
}
|
|
229
|
+
/** Lunora purple — the accent shared with the CLI prompt frames. */
|
|
230
|
+
declare const ACCENT: `#${string}`;
|
|
231
|
+
/** Standard log-level badge names (the restyled base output). */
|
|
232
|
+
type LevelBadgeName = "debug" | "error" | "info" | "success" | "warn";
|
|
233
|
+
/** Step-phase badge names (the create-astro-style flow transcript). */
|
|
234
|
+
type StepBadgeName = "add" | "deps" | "dir" | "git" | "lunora" | "next" | "tmpl";
|
|
235
|
+
type BadgeName = LevelBadgeName | StepBadgeName;
|
|
236
|
+
/** The ordered step-phase names, used to register custom pail log types. */
|
|
237
|
+
declare const STEP_BADGE_NAMES: ReadonlyArray<StepBadgeName>;
|
|
238
|
+
/**
|
|
239
|
+
* Every badge, keyed by name. Levels get their conventional colors (red/amber/
|
|
240
|
+
* green/blue/grey); step phases follow create-astro's green→purple→cyan rhythm.
|
|
241
|
+
*/
|
|
242
|
+
declare const BADGES: Record<BadgeName, BadgeSpec>;
|
|
243
|
+
/**
|
|
244
|
+
* Luna, the mascot: the folklore rabbit-in-the-moon — a bunny tucked inside the
|
|
245
|
+
* moon disc. Pure ASCII so it renders the same everywhere (including piped logs).
|
|
246
|
+
* The CLI signs off the `init` flow with it, the way create-astro closes with
|
|
247
|
+
* Houston.
|
|
248
|
+
*/
|
|
249
|
+
declare const LUNA_NAME = "Luna";
|
|
250
|
+
declare const LUNA_SIGNOFF = "Safe travels, voyager.";
|
|
251
|
+
declare const LUNA_BUNNY: string;
|
|
252
|
+
/**
|
|
253
|
+
* {@link LUNA_BUNNY} with its leading newline stripped, ready to render inline
|
|
254
|
+
* (beside the name + sign-off). Both render paths — the tui mascot frame and the
|
|
255
|
+
* pail off-TTY fallback — use this so neither re-implements the strip.
|
|
256
|
+
*/
|
|
257
|
+
declare const LUNA_ART: string;
|
|
258
|
+
/** The colored part of a badge — the word with one space of padding each side. */
|
|
259
|
+
declare const padBadge: (text: string) => string;
|
|
260
|
+
/** Leading spaces that right-align a badge's box within the gutter. */
|
|
261
|
+
declare const badgeLead: (text: string) => string;
|
|
262
|
+
/** Total columns a rendered badge column occupies (lead + box), constant across badges. */
|
|
263
|
+
declare const BADGE_COLUMN_WIDTH: number;
|
|
264
|
+
/** Columns a rendered badge occupies — the gutter-aligned column width. */
|
|
265
|
+
declare const badgeWidth: (_spec: BadgeSpec) => number;
|
|
266
|
+
/** Paint a badge as an ANSI string (the non-tui path): right-aligning spaces + the colored box. */
|
|
267
|
+
declare const paintBadge: (spec: BadgeSpec) => string;
|
|
268
|
+
/** Dim continuation text (a step's chosen answer, shown under the question). */
|
|
269
|
+
declare const paintAnswer: (text: string) => string;
|
|
270
|
+
export { ACCENT as A, BADGES as B, installArgsFor as C, DEFAULT_DEPLOY_TARGET as D, isRunnableTarget as E, lunoraLine as F, padBadge as G, paintAnswer as H, paintBadge as I, planToolchainInvocation as J, readProjectDependencies as K, LUNA_ART as L, readProjectDependencyNames as M, readProjectManifest as N, resolveDeployDriver as O, PackageManager as P, runScriptArgsFor as Q, ROOT_SKILL_NAME as R, STEP_BADGE_NAMES as S, ToolchainInvocation as T, runScriptCommand as U, runnableTargetIds as V, targetRunsOwnDevServer as W, toolchainExecArgs as X, AGENT_RULES_DIR as a, AGENT_RULES_HINT as b, AGENT_RULES_HINT_ENV as c, AgentRulesStatus as d, BADGE_COLUMN_WIDTH as e, BadgeName as f, BadgeSpec as g, LUNA_BUNNY as h, LUNA_NAME as i, LUNA_SIGNOFF as j, LUNORA_SKILL_NAMES as k, LUNORA_TAG as l, LevelBadgeName as m, LunoraReporter as n, PackageManagerProbe as o, StepBadgeName as p, addArgsFor as q, advisoryLine as r, badgeLead as s, badgeWidth as t, claimAgentRulesHint as u, deployTargetIds as v, detectAgentRules as w, detectInstalledManagers as x, detectPackageManager as y, execArgsFor as z };
|
package/dist/packem_shared/{infer-bindings.d-CFxssIAC.d.mts → infer-bindings.d-eFzcOnRh.d.mts}
RENAMED
|
@@ -1,187 +1,4 @@
|
|
|
1
1
|
import { SchemaIR, AgentIR, ContainerIR, QueueIR, ServiceBindingIR, WorkflowIR } from '@lunora/codegen';
|
|
2
|
-
/**
|
|
3
|
-
* `DeployDriver` — the provider-neutral seam between a Lunora command and the
|
|
4
|
-
* host CLI that carries it out (plan 114, §5.3).
|
|
5
|
-
*
|
|
6
|
-
* The seam is the **toolchain surface**: which command a host runs to deploy,
|
|
7
|
-
* serve, tail, or set a secret. A driver only *describes* that command
|
|
8
|
-
* ({@link ToolchainCommand}); it never spawns. The CLI keeps ownership of
|
|
9
|
-
* running it — package-manager resolution (`pnpm exec` / `npx --` / `bun x`)
|
|
10
|
-
* and the injected spawner its tests substitute — so the driver stays free of
|
|
11
|
-
* process concerns and remains trivially testable as a pure function.
|
|
12
|
-
*
|
|
13
|
-
* Each request type below is deliberately neutral: `preview`, `environment`,
|
|
14
|
-
* `temporary` are concepts, not wrangler flags. A second host maps the same
|
|
15
|
-
* request onto its own CLI without the caller changing.
|
|
16
|
-
*
|
|
17
|
-
* Three drivers are registered: Cloudflare (`cloudflare/cloudflare-driver.ts`)
|
|
18
|
-
* and celld (`celld/celld-driver.ts`), which ship toolchains, and Node
|
|
19
|
-
* (`node/node-driver.ts`), which has none — it is a codegen target, and
|
|
20
|
-
* `lunora deploy` / `lunora dev` refuse it at selection.
|
|
21
|
-
*
|
|
22
|
-
* **What this seam deliberately does NOT carry: configuration inference.** It
|
|
23
|
-
* used to, through an `infer`/`provision` pair over a provider-neutral
|
|
24
|
-
* `ResourceGraph`. Nothing ever called either one — every consumer reads
|
|
25
|
-
* `.toolchain` or just validates the target — and the arm rotted in place: the
|
|
26
|
-
* Node driver was *only* `infer` + `provision`, so its report of what that
|
|
27
|
-
* target cannot serve (containers, undispatched crons) could not reach an
|
|
28
|
-
* operator however wrong the app was. The reason it never got wired is worth
|
|
29
|
-
* keeping: writing real host configuration needs the host's own encodings —
|
|
30
|
-
* binding names, DO class wiring, migration tags — which a neutral graph
|
|
31
|
-
* necessarily discards, so `provision` re-derived them anyway and the graph was
|
|
32
|
-
* decorative. A second target that needs to share inference should grow the
|
|
33
|
-
* seam back with a caller attached, and with an encoding escape hatch.
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* A host CLI invocation, described but not run.
|
|
37
|
-
*
|
|
38
|
-
* `tool` is the binary name only (`"wrangler"`); the caller resolves how to
|
|
39
|
-
* execute it through the project's package manager (see `toolchainExecArgs`).
|
|
40
|
-
* Keeping that split means a driver never has to know whether the project uses
|
|
41
|
-
* pnpm, npm, yarn, or bun.
|
|
42
|
-
*/
|
|
43
|
-
interface ToolchainCommand {
|
|
44
|
-
/** Arguments for {@link ToolchainCommand.tool}. */
|
|
45
|
-
args: ReadonlyArray<string>;
|
|
46
|
-
/**
|
|
47
|
-
* The tool is a standalone binary installed on `PATH`, not a project
|
|
48
|
-
* dependency: run it directly. Going through the package manager would be
|
|
49
|
-
* wrong for it — `npx --` / `bun x` fetch an npm package of the same name
|
|
50
|
-
* when none is installed locally, which for a non-npm binary is somebody
|
|
51
|
-
* else's code.
|
|
52
|
-
*/
|
|
53
|
-
onPath?: boolean;
|
|
54
|
-
/** The host CLI binary, e.g. `"wrangler"`. */
|
|
55
|
-
tool: string;
|
|
56
|
-
}
|
|
57
|
-
/** Neutral options for a deploy. */
|
|
58
|
-
interface DeployRequest {
|
|
59
|
-
/** Host config file to deploy, when the flow uses a projected one (see {@link DeployDriver.projectConfig}). */
|
|
60
|
-
configPath?: string;
|
|
61
|
-
/** Validate and bundle without publishing — nothing ships. */
|
|
62
|
-
dryRun?: boolean;
|
|
63
|
-
/** Deploy this entry file instead of the host config's default (framework composition). */
|
|
64
|
-
entry?: string;
|
|
65
|
-
/** Named deployment environment, when the host supports them. */
|
|
66
|
-
environment?: string;
|
|
67
|
-
/** Write the built bundle (and any build metadata) to this directory. */
|
|
68
|
-
outDir?: string;
|
|
69
|
-
/** Upload a preview/versioned artifact instead of taking production traffic. */
|
|
70
|
-
preview?: boolean;
|
|
71
|
-
/** Deploy to a short-lived, unauthenticated account where the host offers one. */
|
|
72
|
-
temporary?: boolean;
|
|
73
|
-
}
|
|
74
|
-
/** Neutral options for a local dev server. */
|
|
75
|
-
interface DevRequest {
|
|
76
|
-
/** Host config file to run against, when the flow uses a generated one. */
|
|
77
|
-
configPath?: string;
|
|
78
|
-
/** Named environment. */
|
|
79
|
-
environment?: string;
|
|
80
|
-
/** Extra host-specific flags the caller has already resolved. */
|
|
81
|
-
extraArgs?: ReadonlyArray<string>;
|
|
82
|
-
}
|
|
83
|
-
/** Neutral options for tailing live logs. */
|
|
84
|
-
interface TailRequest {
|
|
85
|
-
/** Named environment. */
|
|
86
|
-
environment?: string;
|
|
87
|
-
/** Output format the host tail supports (`"json"`, `"pretty"`, …). */
|
|
88
|
-
format?: string;
|
|
89
|
-
/** Free-text filter. */
|
|
90
|
-
search?: string;
|
|
91
|
-
/** Status filter (`"error"`, `"ok"`, …). */
|
|
92
|
-
status?: string;
|
|
93
|
-
/** Tail a short-lived account's deployment. */
|
|
94
|
-
temporary?: boolean;
|
|
95
|
-
/** Tail a specific deployed worker/service by name, when the host addresses them individually. */
|
|
96
|
-
worker?: string;
|
|
97
|
-
}
|
|
98
|
-
/** Neutral options for reading or writing deployment secrets. */
|
|
99
|
-
interface SecretRequest {
|
|
100
|
-
/** Named environment. */
|
|
101
|
-
environment?: string;
|
|
102
|
-
/** The secret's name — required for `put`, unused for `list`. */
|
|
103
|
-
key?: string;
|
|
104
|
-
/** Operate against a short-lived account. */
|
|
105
|
-
temporary?: boolean;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* The host's command-line surface. Optional as a whole: a host with no vendor
|
|
109
|
-
* CLI (the Node target; a hypothetical API-driven one) declares none, and
|
|
110
|
-
* `isRunnableTarget` refuses it for the commands that would have to shell out.
|
|
111
|
-
*
|
|
112
|
-
* `deploy` and `dev` are what make a target runnable. The secret and tail
|
|
113
|
-
* commands are optional on their own, because a runnable host can simply not
|
|
114
|
-
* have them — celld keeps configuration in plain `vars` and has no log tail —
|
|
115
|
-
* and the commands that need one say so rather than guessing a substitute.
|
|
116
|
-
*/
|
|
117
|
-
interface DriverToolchain {
|
|
118
|
-
/** The command that deploys the app. */
|
|
119
|
-
deploy: (request: DeployRequest) => ToolchainCommand;
|
|
120
|
-
/** The command that runs a local dev server. */
|
|
121
|
-
dev: (request: DevRequest) => ToolchainCommand;
|
|
122
|
-
/**
|
|
123
|
-
* Where `lunora dev` runs the worker. `"workerd"`: `wrangler dev`, or the
|
|
124
|
-
* Vite plugin's `@cloudflare/vite-plugin`, whichever flavor the project
|
|
125
|
-
* picks. `"own"`: the host's dev server ({@link DriverToolchain.dev}) on
|
|
126
|
-
* the projected config, always the standalone flavor — neither Vite nor a
|
|
127
|
-
* framework sidecar can serve the worker on that runtime.
|
|
128
|
-
*/
|
|
129
|
-
readonly devServer: "own" | "workerd";
|
|
130
|
-
/**
|
|
131
|
-
* Whether `lunora deploy` builds and pushes container images itself
|
|
132
|
-
* (railpack, into the host's registry) before `deploy`. `false` when the
|
|
133
|
-
* host CLI builds each image from its Dockerfile during the deploy.
|
|
134
|
-
*/
|
|
135
|
-
readonly prebuildsContainerImages: boolean;
|
|
136
|
-
/** The command that writes many secrets in one call, as a JSON object of name to value on stdin. Optional: hosts without it get one `secretPut` per key. */
|
|
137
|
-
secretBulk?: (request: SecretRequest) => ToolchainCommand;
|
|
138
|
-
/** The command that lists remote secret names, when the host has a secret store. */
|
|
139
|
-
secretList?: (request: SecretRequest) => ToolchainCommand;
|
|
140
|
-
/** The command that writes one secret, when the host has a secret store. Its value is passed on stdin, never argv. */
|
|
141
|
-
secretPut?: (request: SecretRequest) => ToolchainCommand;
|
|
142
|
-
/** The command that tails live logs, when the host has one. */
|
|
143
|
-
tail?: (request: TailRequest) => ToolchainCommand;
|
|
144
|
-
}
|
|
145
|
-
/** What a {@link DeployDriver.projectConfig} projection is for — a dev server may need a different source than a deploy. */
|
|
146
|
-
type ProjectionPurpose = "deploy" | "dev";
|
|
147
|
-
/**
|
|
148
|
-
* The result of {@link DeployDriver.projectConfig}: a plan, not yet on disk.
|
|
149
|
-
* The caller validates the request it is for (the toolchain's argv builder
|
|
150
|
-
* refuses unsupported options), then calls `write` — so a refused command
|
|
151
|
-
* changes nothing.
|
|
152
|
-
*/
|
|
153
|
-
interface ProjectedConfig {
|
|
154
|
-
/** Where the projection goes, to pass as the request's `configPath`. */
|
|
155
|
-
configPath: string;
|
|
156
|
-
/** Every key removed, as a dotted path (`observability`, `containers[0].rollout_step_percentage`). */
|
|
157
|
-
dropped: ReadonlyArray<string>;
|
|
158
|
-
/** Write the projection (and any build-artifact cleanup it planned). */
|
|
159
|
-
write: () => void;
|
|
160
|
-
}
|
|
161
|
-
/** A deploy target's implementation: an identity the registry resolves, and the host CLI surface (if any) behind it. */
|
|
162
|
-
interface DeployDriver {
|
|
163
|
-
/** The target id this driver serves (`"cloudflare"`, …) — matches codegen's `target`. */
|
|
164
|
-
readonly id: string;
|
|
165
|
-
/** Human-readable target name, for logs. */
|
|
166
|
-
readonly name: string;
|
|
167
|
-
/**
|
|
168
|
-
* Rewrite the project's wrangler config into the form this host's CLI
|
|
169
|
-
* accepts, and return the file to hand `deploy`/`dev` as `configPath`.
|
|
170
|
-
* Absent when the host reads the project's config as-is (Cloudflare).
|
|
171
|
-
*
|
|
172
|
-
* Needed because Lunora's reconcilers and templates write Cloudflare-only
|
|
173
|
-
* keys (`observability`, `limits`, …) that a Workers-compatible host with a
|
|
174
|
-
* strict config reader refuses outright. `dropped` names what was removed,
|
|
175
|
-
* so the caller can say so instead of silently deploying less than the
|
|
176
|
-
* config describes.
|
|
177
|
-
*/
|
|
178
|
-
readonly projectConfig?: (projectRoot: string, purpose: ProjectionPurpose) => ProjectedConfig;
|
|
179
|
-
/**
|
|
180
|
-
* The host's command-line surface, or `undefined` for a host that has none.
|
|
181
|
-
* Pure: these build argv, they never spawn.
|
|
182
|
-
*/
|
|
183
|
-
readonly toolchain?: DriverToolchain;
|
|
184
|
-
}
|
|
185
2
|
/**
|
|
186
3
|
* An invocation-scoped memo for project discovery. A CLI command creates one,
|
|
187
4
|
* threads it through every `discover*` / `inferLunoraBindings` call it makes,
|
|
@@ -477,4 +294,4 @@ declare const inferLunoraBindings: (options: InferOptions) => Promise<InferredBi
|
|
|
477
294
|
* ({@link NOTIFY_CHANNEL_SECRETS}), keeping only sources that carry secrets.
|
|
478
295
|
*/
|
|
479
296
|
declare const secretSourcesFromBindings: (bindings: InferredBindings) => string[];
|
|
480
|
-
export { COMPOSED_WORKER_ENTRY as C,
|
|
297
|
+
export { COMPOSED_WORKER_ENTRY as C, DiscoveryCache as D, GENERATED_CLASS_MODULES as G, InferOptions as I, MERGED_DURABLE_OBJECTS_MODULE as M, SchemaInfo as S, DURABLE_OBJECT_BINDINGS as a, DiscoverSchemaInfoResult as b, GENERATED_MODULE_DURABLE_OBJECTS as c, GeneratedClassModule as d, InferredAgent as e, InferredBindings as f, InferredContainer as g, InferredWorkflow as h, createDiscoveryCache as i, discoverSchemaInfo as j, inferLunoraBindings as k, isMergedProject as l, isMergedRoleModule as m, secretSourcesFromBindings as s };
|
package/dist/packem_shared/{infer-bindings.d-CFxssIAC.d.ts → infer-bindings.d-eFzcOnRh.d.ts}
RENAMED
|
@@ -1,187 +1,4 @@
|
|
|
1
1
|
import { SchemaIR, AgentIR, ContainerIR, QueueIR, ServiceBindingIR, WorkflowIR } from '@lunora/codegen';
|
|
2
|
-
/**
|
|
3
|
-
* `DeployDriver` — the provider-neutral seam between a Lunora command and the
|
|
4
|
-
* host CLI that carries it out (plan 114, §5.3).
|
|
5
|
-
*
|
|
6
|
-
* The seam is the **toolchain surface**: which command a host runs to deploy,
|
|
7
|
-
* serve, tail, or set a secret. A driver only *describes* that command
|
|
8
|
-
* ({@link ToolchainCommand}); it never spawns. The CLI keeps ownership of
|
|
9
|
-
* running it — package-manager resolution (`pnpm exec` / `npx --` / `bun x`)
|
|
10
|
-
* and the injected spawner its tests substitute — so the driver stays free of
|
|
11
|
-
* process concerns and remains trivially testable as a pure function.
|
|
12
|
-
*
|
|
13
|
-
* Each request type below is deliberately neutral: `preview`, `environment`,
|
|
14
|
-
* `temporary` are concepts, not wrangler flags. A second host maps the same
|
|
15
|
-
* request onto its own CLI without the caller changing.
|
|
16
|
-
*
|
|
17
|
-
* Three drivers are registered: Cloudflare (`cloudflare/cloudflare-driver.ts`)
|
|
18
|
-
* and celld (`celld/celld-driver.ts`), which ship toolchains, and Node
|
|
19
|
-
* (`node/node-driver.ts`), which has none — it is a codegen target, and
|
|
20
|
-
* `lunora deploy` / `lunora dev` refuse it at selection.
|
|
21
|
-
*
|
|
22
|
-
* **What this seam deliberately does NOT carry: configuration inference.** It
|
|
23
|
-
* used to, through an `infer`/`provision` pair over a provider-neutral
|
|
24
|
-
* `ResourceGraph`. Nothing ever called either one — every consumer reads
|
|
25
|
-
* `.toolchain` or just validates the target — and the arm rotted in place: the
|
|
26
|
-
* Node driver was *only* `infer` + `provision`, so its report of what that
|
|
27
|
-
* target cannot serve (containers, undispatched crons) could not reach an
|
|
28
|
-
* operator however wrong the app was. The reason it never got wired is worth
|
|
29
|
-
* keeping: writing real host configuration needs the host's own encodings —
|
|
30
|
-
* binding names, DO class wiring, migration tags — which a neutral graph
|
|
31
|
-
* necessarily discards, so `provision` re-derived them anyway and the graph was
|
|
32
|
-
* decorative. A second target that needs to share inference should grow the
|
|
33
|
-
* seam back with a caller attached, and with an encoding escape hatch.
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* A host CLI invocation, described but not run.
|
|
37
|
-
*
|
|
38
|
-
* `tool` is the binary name only (`"wrangler"`); the caller resolves how to
|
|
39
|
-
* execute it through the project's package manager (see `toolchainExecArgs`).
|
|
40
|
-
* Keeping that split means a driver never has to know whether the project uses
|
|
41
|
-
* pnpm, npm, yarn, or bun.
|
|
42
|
-
*/
|
|
43
|
-
interface ToolchainCommand {
|
|
44
|
-
/** Arguments for {@link ToolchainCommand.tool}. */
|
|
45
|
-
args: ReadonlyArray<string>;
|
|
46
|
-
/**
|
|
47
|
-
* The tool is a standalone binary installed on `PATH`, not a project
|
|
48
|
-
* dependency: run it directly. Going through the package manager would be
|
|
49
|
-
* wrong for it — `npx --` / `bun x` fetch an npm package of the same name
|
|
50
|
-
* when none is installed locally, which for a non-npm binary is somebody
|
|
51
|
-
* else's code.
|
|
52
|
-
*/
|
|
53
|
-
onPath?: boolean;
|
|
54
|
-
/** The host CLI binary, e.g. `"wrangler"`. */
|
|
55
|
-
tool: string;
|
|
56
|
-
}
|
|
57
|
-
/** Neutral options for a deploy. */
|
|
58
|
-
interface DeployRequest {
|
|
59
|
-
/** Host config file to deploy, when the flow uses a projected one (see {@link DeployDriver.projectConfig}). */
|
|
60
|
-
configPath?: string;
|
|
61
|
-
/** Validate and bundle without publishing — nothing ships. */
|
|
62
|
-
dryRun?: boolean;
|
|
63
|
-
/** Deploy this entry file instead of the host config's default (framework composition). */
|
|
64
|
-
entry?: string;
|
|
65
|
-
/** Named deployment environment, when the host supports them. */
|
|
66
|
-
environment?: string;
|
|
67
|
-
/** Write the built bundle (and any build metadata) to this directory. */
|
|
68
|
-
outDir?: string;
|
|
69
|
-
/** Upload a preview/versioned artifact instead of taking production traffic. */
|
|
70
|
-
preview?: boolean;
|
|
71
|
-
/** Deploy to a short-lived, unauthenticated account where the host offers one. */
|
|
72
|
-
temporary?: boolean;
|
|
73
|
-
}
|
|
74
|
-
/** Neutral options for a local dev server. */
|
|
75
|
-
interface DevRequest {
|
|
76
|
-
/** Host config file to run against, when the flow uses a generated one. */
|
|
77
|
-
configPath?: string;
|
|
78
|
-
/** Named environment. */
|
|
79
|
-
environment?: string;
|
|
80
|
-
/** Extra host-specific flags the caller has already resolved. */
|
|
81
|
-
extraArgs?: ReadonlyArray<string>;
|
|
82
|
-
}
|
|
83
|
-
/** Neutral options for tailing live logs. */
|
|
84
|
-
interface TailRequest {
|
|
85
|
-
/** Named environment. */
|
|
86
|
-
environment?: string;
|
|
87
|
-
/** Output format the host tail supports (`"json"`, `"pretty"`, …). */
|
|
88
|
-
format?: string;
|
|
89
|
-
/** Free-text filter. */
|
|
90
|
-
search?: string;
|
|
91
|
-
/** Status filter (`"error"`, `"ok"`, …). */
|
|
92
|
-
status?: string;
|
|
93
|
-
/** Tail a short-lived account's deployment. */
|
|
94
|
-
temporary?: boolean;
|
|
95
|
-
/** Tail a specific deployed worker/service by name, when the host addresses them individually. */
|
|
96
|
-
worker?: string;
|
|
97
|
-
}
|
|
98
|
-
/** Neutral options for reading or writing deployment secrets. */
|
|
99
|
-
interface SecretRequest {
|
|
100
|
-
/** Named environment. */
|
|
101
|
-
environment?: string;
|
|
102
|
-
/** The secret's name — required for `put`, unused for `list`. */
|
|
103
|
-
key?: string;
|
|
104
|
-
/** Operate against a short-lived account. */
|
|
105
|
-
temporary?: boolean;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* The host's command-line surface. Optional as a whole: a host with no vendor
|
|
109
|
-
* CLI (the Node target; a hypothetical API-driven one) declares none, and
|
|
110
|
-
* `isRunnableTarget` refuses it for the commands that would have to shell out.
|
|
111
|
-
*
|
|
112
|
-
* `deploy` and `dev` are what make a target runnable. The secret and tail
|
|
113
|
-
* commands are optional on their own, because a runnable host can simply not
|
|
114
|
-
* have them — celld keeps configuration in plain `vars` and has no log tail —
|
|
115
|
-
* and the commands that need one say so rather than guessing a substitute.
|
|
116
|
-
*/
|
|
117
|
-
interface DriverToolchain {
|
|
118
|
-
/** The command that deploys the app. */
|
|
119
|
-
deploy: (request: DeployRequest) => ToolchainCommand;
|
|
120
|
-
/** The command that runs a local dev server. */
|
|
121
|
-
dev: (request: DevRequest) => ToolchainCommand;
|
|
122
|
-
/**
|
|
123
|
-
* Where `lunora dev` runs the worker. `"workerd"`: `wrangler dev`, or the
|
|
124
|
-
* Vite plugin's `@cloudflare/vite-plugin`, whichever flavor the project
|
|
125
|
-
* picks. `"own"`: the host's dev server ({@link DriverToolchain.dev}) on
|
|
126
|
-
* the projected config, always the standalone flavor — neither Vite nor a
|
|
127
|
-
* framework sidecar can serve the worker on that runtime.
|
|
128
|
-
*/
|
|
129
|
-
readonly devServer: "own" | "workerd";
|
|
130
|
-
/**
|
|
131
|
-
* Whether `lunora deploy` builds and pushes container images itself
|
|
132
|
-
* (railpack, into the host's registry) before `deploy`. `false` when the
|
|
133
|
-
* host CLI builds each image from its Dockerfile during the deploy.
|
|
134
|
-
*/
|
|
135
|
-
readonly prebuildsContainerImages: boolean;
|
|
136
|
-
/** The command that writes many secrets in one call, as a JSON object of name to value on stdin. Optional: hosts without it get one `secretPut` per key. */
|
|
137
|
-
secretBulk?: (request: SecretRequest) => ToolchainCommand;
|
|
138
|
-
/** The command that lists remote secret names, when the host has a secret store. */
|
|
139
|
-
secretList?: (request: SecretRequest) => ToolchainCommand;
|
|
140
|
-
/** The command that writes one secret, when the host has a secret store. Its value is passed on stdin, never argv. */
|
|
141
|
-
secretPut?: (request: SecretRequest) => ToolchainCommand;
|
|
142
|
-
/** The command that tails live logs, when the host has one. */
|
|
143
|
-
tail?: (request: TailRequest) => ToolchainCommand;
|
|
144
|
-
}
|
|
145
|
-
/** What a {@link DeployDriver.projectConfig} projection is for — a dev server may need a different source than a deploy. */
|
|
146
|
-
type ProjectionPurpose = "deploy" | "dev";
|
|
147
|
-
/**
|
|
148
|
-
* The result of {@link DeployDriver.projectConfig}: a plan, not yet on disk.
|
|
149
|
-
* The caller validates the request it is for (the toolchain's argv builder
|
|
150
|
-
* refuses unsupported options), then calls `write` — so a refused command
|
|
151
|
-
* changes nothing.
|
|
152
|
-
*/
|
|
153
|
-
interface ProjectedConfig {
|
|
154
|
-
/** Where the projection goes, to pass as the request's `configPath`. */
|
|
155
|
-
configPath: string;
|
|
156
|
-
/** Every key removed, as a dotted path (`observability`, `containers[0].rollout_step_percentage`). */
|
|
157
|
-
dropped: ReadonlyArray<string>;
|
|
158
|
-
/** Write the projection (and any build-artifact cleanup it planned). */
|
|
159
|
-
write: () => void;
|
|
160
|
-
}
|
|
161
|
-
/** A deploy target's implementation: an identity the registry resolves, and the host CLI surface (if any) behind it. */
|
|
162
|
-
interface DeployDriver {
|
|
163
|
-
/** The target id this driver serves (`"cloudflare"`, …) — matches codegen's `target`. */
|
|
164
|
-
readonly id: string;
|
|
165
|
-
/** Human-readable target name, for logs. */
|
|
166
|
-
readonly name: string;
|
|
167
|
-
/**
|
|
168
|
-
* Rewrite the project's wrangler config into the form this host's CLI
|
|
169
|
-
* accepts, and return the file to hand `deploy`/`dev` as `configPath`.
|
|
170
|
-
* Absent when the host reads the project's config as-is (Cloudflare).
|
|
171
|
-
*
|
|
172
|
-
* Needed because Lunora's reconcilers and templates write Cloudflare-only
|
|
173
|
-
* keys (`observability`, `limits`, …) that a Workers-compatible host with a
|
|
174
|
-
* strict config reader refuses outright. `dropped` names what was removed,
|
|
175
|
-
* so the caller can say so instead of silently deploying less than the
|
|
176
|
-
* config describes.
|
|
177
|
-
*/
|
|
178
|
-
readonly projectConfig?: (projectRoot: string, purpose: ProjectionPurpose) => ProjectedConfig;
|
|
179
|
-
/**
|
|
180
|
-
* The host's command-line surface, or `undefined` for a host that has none.
|
|
181
|
-
* Pure: these build argv, they never spawn.
|
|
182
|
-
*/
|
|
183
|
-
readonly toolchain?: DriverToolchain;
|
|
184
|
-
}
|
|
185
2
|
/**
|
|
186
3
|
* An invocation-scoped memo for project discovery. A CLI command creates one,
|
|
187
4
|
* threads it through every `discover*` / `inferLunoraBindings` call it makes,
|
|
@@ -477,4 +294,4 @@ declare const inferLunoraBindings: (options: InferOptions) => Promise<InferredBi
|
|
|
477
294
|
* ({@link NOTIFY_CHANNEL_SECRETS}), keeping only sources that carry secrets.
|
|
478
295
|
*/
|
|
479
296
|
declare const secretSourcesFromBindings: (bindings: InferredBindings) => string[];
|
|
480
|
-
export { COMPOSED_WORKER_ENTRY as C,
|
|
297
|
+
export { COMPOSED_WORKER_ENTRY as C, DiscoveryCache as D, GENERATED_CLASS_MODULES as G, InferOptions as I, MERGED_DURABLE_OBJECTS_MODULE as M, SchemaInfo as S, DURABLE_OBJECT_BINDINGS as a, DiscoverSchemaInfoResult as b, GENERATED_MODULE_DURABLE_OBJECTS as c, GeneratedClassModule as d, InferredAgent as e, InferredBindings as f, InferredContainer as g, InferredWorkflow as h, createDiscoveryCache as i, discoverSchemaInfo as j, inferLunoraBindings as k, isMergedProject as l, isMergedRoleModule as m, secretSourcesFromBindings as s };
|