@lunora/config 1.0.0-alpha.30 → 1.0.0-alpha.300

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.
Files changed (121) hide show
  1. package/LICENSE.md +135 -0
  2. package/README.md +3 -3
  3. package/dist/cloudflare/index.d.mts +1205 -0
  4. package/dist/cloudflare/index.d.ts +1205 -0
  5. package/dist/cloudflare/index.mjs +1 -0
  6. package/dist/index.d.mts +1044 -917
  7. package/dist/index.d.ts +1044 -917
  8. package/dist/index.mjs +1 -23
  9. package/dist/packem_shared/ACCENT-CotPTfv7.mjs +7 -0
  10. package/dist/packem_shared/AGENT_MODE_ENV-D8MvSwPE.mjs +1 -0
  11. package/dist/packem_shared/AGENT_RULES_DIR-C54Ta_vz.mjs +1 -0
  12. package/dist/packem_shared/ALLOW_FORWARDED_ENV-BUndghJx.mjs +1 -0
  13. package/dist/packem_shared/BINDING_MANIFEST_VERSION-CfXEYG8e.mjs +1 -0
  14. package/dist/packem_shared/CLOUDFLARE_DRIVER-Ci3VIqnk.mjs +1 -0
  15. package/dist/packem_shared/CLOUDFLARE_TOOLCHAIN_VERSIONS-Grzfm5p1.mjs +1 -0
  16. package/dist/packem_shared/CODEGEN_ENV-ZsCxV1kP.mjs +1 -0
  17. package/dist/packem_shared/COMPOSED_WORKER_ENTRY-C69wqbSP.mjs +1 -0
  18. package/dist/packem_shared/DEFAULT_DEPLOY_TARGET-CfoV0tDu.mjs +1 -0
  19. package/dist/packem_shared/DEFAULT_OBSERVABILITY-bN6UkTMx.mjs +1 -0
  20. package/dist/packem_shared/DEV_BINDINGS_FILE-C0ZN_XlP.mjs +4 -0
  21. package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-CqLorAxT.mjs +6 -0
  22. package/dist/packem_shared/DEV_WORKER_ENV_VALUE-DwGANZVw.mjs +1 -0
  23. package/dist/packem_shared/GLOBAL_FETCH_STRICTLY_PUBLIC_FLAG-f8CnJha3.mjs +1 -0
  24. package/dist/packem_shared/LINKED_PROJECT_DIR-Ba5qPEwo.mjs +2 -0
  25. package/dist/packem_shared/LUNORA_EVENT_SOURCE-DYdcDU9G.mjs +1 -0
  26. package/dist/packem_shared/LUNORA_IGNORED_PATHS-B0-PPvRp.mjs +19 -0
  27. package/dist/packem_shared/LUNORA_TAG-CiQM3BkI.mjs +1 -0
  28. package/dist/packem_shared/LunoraReporter-f277GLNT.mjs +6 -0
  29. package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-De7gLGIy.mjs +1 -0
  30. package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-0QiGKazX.mjs +1 -0
  31. package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-DioKi8jL.mjs +1 -0
  32. package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-Bv07Q3v8.mjs +1 -0
  33. package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-Dbt0faMd.mjs +1 -0
  34. package/dist/packem_shared/SEED_ENDPOINT-2B56PN_H.mjs +1 -0
  35. package/dist/packem_shared/STUDIO_PATH-BZI8go9A.mjs +1 -0
  36. package/dist/packem_shared/UNEXPORTED_CLASS_MARKER-s6wTR8W1.mjs +1 -0
  37. package/dist/packem_shared/WORKERS_CACHE_MIN_DATE-0k9ABJtF.mjs +1 -0
  38. package/dist/packem_shared/WRANGLER_FILES-UNW-xY5u.mjs +1 -0
  39. package/dist/packem_shared/acceptsConnection-DHhUYGjT.mjs +2 -0
  40. package/dist/packem_shared/addArgsFor-CYZKhNIo.mjs +1 -0
  41. package/dist/packem_shared/applyAdditiveEdit-CH0VhMJ2.mjs +6 -0
  42. package/dist/packem_shared/applyModify-DKP2l6S9.mjs +1 -0
  43. package/dist/packem_shared/applyStudioAssetCache-DHQEJuuv.mjs +1 -0
  44. package/dist/packem_shared/assertWranglerSatisfiesSchema-BBQ2zkZy.mjs +3 -0
  45. package/dist/packem_shared/assetContentType-CUb5bpbI.mjs +1 -0
  46. package/dist/packem_shared/buildPackageSecretsBlock-yv9mjKEW.mjs +19 -0
  47. package/dist/packem_shared/celld-config-D-L6uskI.mjs +3 -0
  48. package/dist/packem_shared/classifyPolicyEdit-D8NwrHxR.mjs +24 -0
  49. package/dist/packem_shared/collectExportGaps-qqrrR5x_.mjs +2 -0
  50. package/dist/packem_shared/collectWranglerSecretVariables-D-usPfT8.mjs +1 -0
  51. package/dist/packem_shared/createConfirm-D5mKTMHj.mjs +7 -0
  52. package/dist/packem_shared/describePreservedCrons-7gaDLxWx.mjs +1 -0
  53. package/dist/packem_shared/detectFramework-CUiVEHDQ.mjs +1 -0
  54. package/dist/packem_shared/discover-info-Vj9d4qYt.mjs +1 -0
  55. package/dist/packem_shared/discoverAgentInfo-CTdCSfYM.mjs +1 -0
  56. package/dist/packem_shared/discoverContainerInfo-EhZtEBQs.mjs +1 -0
  57. package/dist/packem_shared/discoverSchemaInfo-BguahM6z.mjs +1 -0
  58. package/dist/packem_shared/discoverWorkflowInfo-BsPvlo6O.mjs +1 -0
  59. package/dist/packem_shared/infer-bindings-B-BFynp2.mjs +1 -0
  60. package/dist/packem_shared/infer-bindings.d-BH0tk-TR.d.mts +421 -0
  61. package/dist/packem_shared/infer-bindings.d-BH0tk-TR.d.ts +421 -0
  62. package/dist/packem_shared/inferLunoraBindings-CzvNvl9y.mjs +1 -0
  63. package/dist/packem_shared/interpretRemote-C9yJC_ZK.mjs +1 -0
  64. package/dist/packem_shared/lunora-manifest-v90ZUbVp.mjs +6 -0
  65. package/dist/packem_shared/materializeServiceDevConfigs-VcqRp-kv.mjs +1 -0
  66. package/dist/packem_shared/mergeWranglerEnvironment-DXiB-HcS.mjs +1 -0
  67. package/dist/packem_shared/package-secrets-registry-DvtTiK4b.mjs +1 -0
  68. package/dist/packem_shared/parseDevVariable-teAAahVD.mjs +1 -0
  69. package/dist/packem_shared/parseSchema-D1Wbr1qv.mjs +1 -0
  70. package/dist/packem_shared/policy-scaffold.d-D2H4_G01.d.mts +86 -0
  71. package/dist/packem_shared/policy-scaffold.d-D2H4_G01.d.ts +86 -0
  72. package/dist/packem_shared/reconcile-services-3dn35zgy.mjs +1 -0
  73. package/dist/packem_shared/reconcileBindingsSafely-BRyb_65W.mjs +1 -0
  74. package/dist/packem_shared/reconcileWranglerCompatibilityDate-hocXEuRA.mjs +1 -0
  75. package/dist/packem_shared/renderStudioHtml-ByowDtMl.mjs +15 -0
  76. package/dist/packem_shared/resolveSchemaDirectory-Ca5P6KuP.mjs +1 -0
  77. package/dist/packem_shared/runPostCodegenHook-B0T1q2YI.mjs +1 -0
  78. package/dist/packem_shared/serveJsonHandler-Dv0EdCb9.mjs +1 -0
  79. package/dist/packem_shared/startCelldDevSession-BLFsd6jG.mjs +1 -0
  80. package/dist/packem_shared/streamContainerLogs-0nko1qpv.mjs +2 -0
  81. package/dist/packem_shared/validate-bindings-DFAcr5wA.mjs +1 -0
  82. package/dist/packem_shared/withTailConsumer-BZqzeKYh.mjs +1 -0
  83. package/dist/packem_shared/worker-entry-checks-9Vdz4d2f.mjs +1 -0
  84. package/dist/packem_shared/wranglerToAlchemy-CBO2ucRm.mjs +6 -0
  85. package/dist/packem_shared/write-atomic-9d9xs5ON.mjs +1 -0
  86. package/dist/studio-host/index.d.mts +314 -110
  87. package/dist/studio-host/index.d.ts +314 -110
  88. package/dist/studio-host/index.mjs +1 -7
  89. package/package.json +15 -7
  90. package/dist/packem_shared/ACCENT-DW1XJn8i.mjs +0 -40
  91. package/dist/packem_shared/AGENT_RULES_DIR-lcgC08aE.mjs +0 -40
  92. package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-dJPNTEnK.mjs +0 -37
  93. package/dist/packem_shared/LINKED_PROJECT_DIR-CXwXzV_C.mjs +0 -52
  94. package/dist/packem_shared/LUNORA_CONFIG_FILE-CtcIcB5-.mjs +0 -34
  95. package/dist/packem_shared/LUNORA_EVENT_SOURCE-D2fDeGB6.mjs +0 -86
  96. package/dist/packem_shared/LunoraReporter-Ci-bDCK9.mjs +0 -70
  97. package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-B8t_SdoZ.mjs +0 -70
  98. package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-CiC2IGKx.mjs +0 -103
  99. package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-BC7_e9Bz.mjs +0 -105
  100. package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-2YYyWJUq.mjs +0 -561
  101. package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-Df-Wrix-.mjs +0 -99
  102. package/dist/packem_shared/SEED_ENDPOINT-DVCjaGO-.mjs +0 -61
  103. package/dist/packem_shared/WRANGLER_FILES-DwSuC-Kn.mjs +0 -25
  104. package/dist/packem_shared/applyAdditiveEdit-C-snTFEV.mjs +0 -228
  105. package/dist/packem_shared/buildPackageSecretsBlock-DWDKHViT.mjs +0 -243
  106. package/dist/packem_shared/classifyPolicyEdit-BHeAqF8P.mjs +0 -99
  107. package/dist/packem_shared/createConfirm-fvpdgJ9s.mjs +0 -100
  108. package/dist/packem_shared/detectFramework-Br-BcPBq.mjs +0 -41
  109. package/dist/packem_shared/discoverContainerInfo-BXFs6Wav.mjs +0 -19
  110. package/dist/packem_shared/discoverSchemaInfo-BB-CKlTK.mjs +0 -25
  111. package/dist/packem_shared/discoverWorkflowInfo-CedvR0mn.mjs +0 -19
  112. package/dist/packem_shared/inferLunoraBindings-ByMwG-gH.mjs +0 -352
  113. package/dist/packem_shared/loadStudioAssets-Csk5RS4E.mjs +0 -28
  114. package/dist/packem_shared/parseDevVariable-CJiq2IwE.mjs +0 -30
  115. package/dist/packem_shared/parseSchema-DSeyktvG.mjs +0 -107
  116. package/dist/packem_shared/policy-scaffold.d-DCmwn7zQ.d.mts +0 -74
  117. package/dist/packem_shared/policy-scaffold.d-DCmwn7zQ.d.ts +0 -74
  118. package/dist/packem_shared/reconcileWranglerBindings-Cruwwx1M.mjs +0 -334
  119. package/dist/packem_shared/renderStudioHtml-449Ysn75.mjs +0 -37
  120. package/dist/packem_shared/serveJsonHandler-B4OLTGLS.mjs +0 -86
  121. package/dist/packem_shared/streamContainerLogs-BZ4cOZwH.mjs +0 -157
@@ -0,0 +1 @@
1
+ import{existsSync as _,statSync as w,readFileSync as j,readdirSync as B}from"node:fs";import{discoverFlags as P,FLAGS_FILENAME as F,discoverQueues as L,QUEUES_FILENAME as k,CAPABILITY_PROBES as I,readServiceBindings as G,mayReadCapabilityContext as U,foldCapabilitySignals as x,capabilitiesUsedBy as K,sourceCapabilitySignals as W}from"@lunora/codegen";import{init as Y}from"es-module-lexer";import{Project as q}from"ts-morph";import{discoverAgentInfo as M}from"./discoverAgentInfo-CTdCSfYM.mjs";import{discoverContainerInfo as H}from"./discoverContainerInfo-EhZtEBQs.mjs";import{escapeRegExp as X}from"./DEV_VARS_EXAMPLE_FILE-CqLorAxT.mjs";import{d as R}from"./discover-info-Vj9d4qYt.mjs";import{relative as J,sep as Q,isAbsolute as V,join as S}from"node:path";import{discoverSchemaInfo as z}from"./discoverSchemaInfo-BguahM6z.mjs";import{resolveWorkerEntry as Z,COMPOSED_ENTRY_DURABLE_OBJECTS as ee,GENERATED_MODULE_DURABLE_OBJECTS as se,GENERATED_DIRECTORY as C,DURABLE_OBJECT_BINDINGS as te,detectExportedDurableObjects as re,detectClassExports as A}from"./COMPOSED_WORKER_ENTRY-C69wqbSP.mjs";import{discoverWorkflowInfo as ne}from"./discoverWorkflowInfo-BsPvlo6O.mjs";const oe="https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/artifacts/namespaces",ae=e=>{const s='add an "artifacts" binding ({ binding: "ARTIFACTS", namespace }) — codegen reads env.ARTIFACTS unless `.artifacts()` on defineApp points ctx.artifacts at another binding';return e===void 0?`ctx.artifacts is used; ${s}. The namespace is created by the first repo create() if it does not exist yet.`:e==="fedramp"?'ctx.artifacts is used, but the schema pins data to "fedramp" and Artifacts namespaces exist only in "eu" or "us" — codegen refuses this combination.':`ctx.artifacts is used and the schema pins data to "${e}"; create the namespace in that jurisdiction BEFORE the first repo, with POST ${oe} and body { "namespace": "<name>", "jurisdiction": "${e}" }, then ${s}. A namespace's jurisdiction cannot be changed, and one created implicitly by the first repo create() is unrestricted.`},ie=(e,s)=>{const{error:r,value:t}=R(e,s,F,P);return r===void 0?{flags:t}:{error:r}},ce=(e,s)=>{const r=J(s,e);return r!==""&&r!==".."&&!r.startsWith(`..${Q}`)&&!V(r)},de=(e,s)=>{const{error:r,value:t}=R(e,s,k,L);return r===void 0?{queues:t??[]}:{error:r,queues:[]}},le=new Set([".cjs",".cts",".js",".jsx",".mjs",".mts",".ts",".tsx"]),ue=new Set([".git",".lunora-cache",".wrangler","dist",C,"node_modules"]),pe=["lunora","src"],me=/\benv\s*\.\s*DB\b/,he=/\benv\s*\.\s*AI\b/,D=["ai","aiSearch","analytics","analyticsSql","artifacts","browser","hyperdrive","images","kv","mail","notify","payments","pipelines","r2sql","scheduler","storage","x402"],$=e=>`uses${e.charAt(0).toUpperCase()}${e.slice(1)}`,N=[["usesAuth","@lunora/auth"],["usesCimdWorkers","@lunora/auth/cimd/workers"],["usesX402Charge","@lunora/x402/charge"]],T=[...D.map(e=>[$(e),I[e].moduleSpecifier]),...N].toSorted(([e],[s])=>e.localeCompare(s)),fe=["@lunora/agent","@lunora/agent/sandbox"],ge=new RegExp(String.raw`["'\x60](?:${[...T.map(([,e])=>e),...fe].map(e=>X(e)).join("|")})["'\x60]`,"u"),o=e=>{const{contextProperty:s,moduleSpecifier:r}=I[e];return s===void 0?`${r} is imported`:`${r} is imported or ctx.${s} is read`},Se="STRIPE_SECRET_KEY + STRIPE_WEBHOOK_SECRET (Stripe) or POLAR_ACCESS_TOKEN + POLAR_WEBHOOK_SECRET (Polar)",Ee=()=>{let e;return()=>(e??=new q({compilerOptions:{allowJs:!0},useInMemoryFileSystem:!0}),e)},be=(e,s,r)=>{const t=r(),n=t.createSourceFile(`/scan/${s.slice(s.lastIndexOf("/")+1)}`,e,{overwrite:!0}),i=W(n);return t.removeSourceFile(n),i},O=(e,s)=>{let r;try{r=B(e,{withFileTypes:!0})}catch{return}for(const t of r){if(t.isDirectory()){ue.has(t.name)||O(S(e,t.name),s);continue}const n=t.name.lastIndexOf(".");n!==-1&&le.has(t.name.slice(n))&&s.push(S(e,t.name))}},ve=(e,s)=>{const{info:r}=z(e,s);return{jurisdiction:r?.jurisdiction,needsD1:r?.hasD1GlobalTable??!1}},Ae=(e,s,r)=>{const t=Ee(),n=S(e,r),i=[],h=[];let c=!1,u=!1;for(const d of s){const l=S(e,d);if(!_(l)||!w(l).isDirectory())continue;const v=[];O(l,v);for(const m of v){const a=j(m,"utf8"),y=ce(m,n);c||=he.test(a),u||=me.test(a),(ge.test(a)||y&&U(a))&&(y?i:h).push(be(a,m,t))}}const f=x(i),g=x([f,...h]),E=new Set([...g.valueImports,...g.dynamicImports]),p=K({contextReads:f.contextReads,valueImports:E});return{...Object.fromEntries([...D.map(d=>[$(d),p.has(d)]),...N.map(([d,l])=>[d,E.has(l)])]),needsD1:u,usesAi:p.has("ai")||c,usesBrowser:p.has("browser")||f.sandboxTools.usesSandboxBrowser,usesWorkerLoader:f.sandboxTools.usesSandboxLoader}},ye=(e,s,r)=>[...e.map(t=>t.exported?`${t.bindingName}/${t.className} (container "${t.exportName}" declared and exported)`:`hint: container "${t.exportName}" is declared but ${t.className} is not exported by the worker entry — add \`export * from "./lunora/_generated/containers"\``),...s.map(t=>t.exported?`exports.${t.className} (workflow "${t.exportName}" declared and exported)`:`hint: workflow "${t.exportName}" is declared but ${t.className} is not exported by the worker entry — add \`export * from "./lunora/_generated/workflows"\``),...r.map(t=>t.exported?`exports.${t.className} (agent "${t.exportName}" declared and exported)`:`hint: agent "${t.exportName}" is declared but ${t.className} is not exported by the worker entry — add \`export * from "./lunora/_generated/agents"\``)],xe=(e,s,r)=>[[e.usesAi,`AI (${o("ai")}, or env.AI is used)`],[e.usesAuth&&!s.has("SessionDO"),"hint: @lunora/auth is imported; its tables are D1-backed by default. For DO-backed auth (what @better-auth/scim needs), pass `namespace` to .auth() and export the generated auth DO class"],[e.usesScheduler&&!s.has("SchedulerDO"),`hint: ${o("scheduler")}, but no SchedulerDO is exported by the worker entry`],[e.usesStorage,`hint: ${o("storage")}; add an r2_buckets binding (bucket binding names are user-defined)`],[e.usesMail,`hint: ${o("mail")}; set RESEND_API_KEY in .dev.vars (obtain at https://resend.com/api-keys)`],[e.usesPayments,`hint: ${o("payments")}; set the provider secrets in .dev.vars — ${Se}`],[e.usesBrowser,`browser (${o("browser")}, or a sandbox browserTool imported in lunora/) — self-describing { binding: BROWSER }`],[e.usesImages,`images (${o("images")}) — self-describing { binding: IMAGES }`],[e.usesAnalytics,`analytics_engine_datasets (${o("analytics")}) — self-describing { binding: ANALYTICS, dataset }`],[e.usesWorkerLoader,"worker_loaders (jsCodeTool imported in lunora/) — self-describing { binding: LOADER }"],[e.usesAiSearch,`ai_search_namespaces (${o("aiSearch")}) — self-describing { binding: AI_SEARCH, namespace: "default" }; remote-only, so \`lunora dev\` reaches the deployed AI Search service`],[e.usesAnalyticsSql,`analytics (${o("analyticsSql")}) — self-describing { binding: ANALYTICS_SQL }; needs wrangler >= 4.145.0, and is remote-only, so \`lunora dev\` queries the account's live analytics`],[e.usesKv,`hint: ${o("kv")}; add a kv_namespaces binding ({ binding, id }) and pass env.<BINDING> to createKv() — the namespace id can't be auto-provisioned`],[e.usesHyperdrive,`hint: ${o("hyperdrive")}; run 'wrangler hyperdrive create' and add a 'hyperdrive' binding ({ binding, id }) — the id can't be auto-provisioned`],[e.usesPipelines,`hint: ${o("pipelines")}; run 'wrangler pipelines create <name>' and add a 'pipelines' binding ({ binding, stream }) — the pipeline resource can't be auto-provisioned`],[e.usesArtifacts,`hint: ${ae(r.jurisdiction)}`],[e.usesX402Charge,"hint: @lunora/x402/charge is imported; set the recipient wallet address as a [vars] entry (the var name is yours to choose) and pass it to the charge config — the x402 facilitator settles USDC to that address"],[e.usesX402,`hint: ${o("x402")} (ActionCtx-only, spends real funds); add a secrets_store_secrets[] binding for the agent wallet key (name it to match signer.secretName) and pair the pay rail with a spend policy — ctx.secrets reads a Secrets Store binding, not .dev.vars, so the key can't be auto-provisioned`]].filter(([n])=>n).map(([,n])=>n),_e=(e,s,r,t=[],n=[],i=[])=>{const h=new Set(e.map(u=>u.className)),c=e.map(u=>`${u.binding}/${u.className} (exported by worker entry)`);return s.needsD1&&c.push("DB (.global() table declared)"),c.push(...ye(t,n,i),...xe(r,h,s)),c},Fe=async e=>{await Y;const s=e.schemaDir??"lunora",r=e.scanDirs??pe,t=Ae(e.projectRoot,r,s),n=Z(e.projectRoot);let i;n.composed?i=[...ee,...Object.entries(se).filter(([a])=>_(S(e.projectRoot,s,C,`${a}.ts`))).map(([,a])=>a)].map(a=>({binding:te[a],className:a})):i=n.path===void 0?[]:re(n.path);const h=ve(e.projectRoot,s),c={...h,needsD1:t.needsD1||h.needsD1},u=A(n,H(e.projectRoot,s).containers,"containers"),f=A(n,ne(e.projectRoot,s).workflows,"workflows"),g=A(n,M(e.projectRoot,s).agents,"agents"),E=[...de(e.projectRoot,s).queues],{flags:p}=ie(e.projectRoot,s),b=p?.provider==="flagship"&&p.mode==="binding"?p.bindingName:void 0,d=_e(i,c,t,u,f,g);b!==void 0&&d.push(`hint: lunora/flags.ts uses Flagship in binding mode; add a flagship binding ({ binding: "${b}", app_id }) — the app_id can't be auto-provisioned`);const l=G(e.projectRoot),v=l.error===void 0?l.services:void 0;return l.error!==void 0&&d.push(`hint: lunora.config \`services\` not reconciled — ${l.error}`),d.push(...l.services.map(m=>`${m.binding} → ${m.worker} (lunora.config services.${m.name})`)),{...t,agents:g,containers:u,durableObjects:i,flagshipBinding:b,...c.jurisdiction===void 0?{}:{jurisdiction:c.jurisdiction},needsD1:c.needsD1,queues:E,services:v,signals:d,usesFlags:p!==void 0,workflows:f}},Le=e=>T.filter(([s])=>e[s]).map(([,s])=>s);export{ae as a,Fe as i,Le as p};
@@ -0,0 +1,421 @@
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 lists remote secret names, when the host has a secret store. */
137
+ secretList?: (request: SecretRequest) => ToolchainCommand;
138
+ /** The command that writes one secret, when the host has a secret store. Its value is passed on stdin, never argv. */
139
+ secretPut?: (request: SecretRequest) => ToolchainCommand;
140
+ /** The command that tails live logs, when the host has one. */
141
+ tail?: (request: TailRequest) => ToolchainCommand;
142
+ }
143
+ /** What a {@link DeployDriver.projectConfig} projection is for — a dev server may need a different source than a deploy. */
144
+ type ProjectionPurpose = "deploy" | "dev";
145
+ /**
146
+ * The result of {@link DeployDriver.projectConfig}: a plan, not yet on disk.
147
+ * The caller validates the request it is for (the toolchain's argv builder
148
+ * refuses unsupported options), then calls `write` — so a refused command
149
+ * changes nothing.
150
+ */
151
+ interface ProjectedConfig {
152
+ /** Where the projection goes, to pass as the request's `configPath`. */
153
+ configPath: string;
154
+ /** Every key removed, as a dotted path (`observability`, `containers[0].rollout_step_percentage`). */
155
+ dropped: ReadonlyArray<string>;
156
+ /** Write the projection (and any build-artifact cleanup it planned). */
157
+ write: () => void;
158
+ }
159
+ /** A deploy target's implementation: an identity the registry resolves, and the host CLI surface (if any) behind it. */
160
+ interface DeployDriver {
161
+ /** The target id this driver serves (`"cloudflare"`, …) — matches codegen's `target`. */
162
+ readonly id: string;
163
+ /** Human-readable target name, for logs. */
164
+ readonly name: string;
165
+ /**
166
+ * Rewrite the project's wrangler config into the form this host's CLI
167
+ * accepts, and return the file to hand `deploy`/`dev` as `configPath`.
168
+ * Absent when the host reads the project's config as-is (Cloudflare).
169
+ *
170
+ * Needed because Lunora's reconcilers and templates write Cloudflare-only
171
+ * keys (`observability`, `limits`, …) that a Workers-compatible host with a
172
+ * strict config reader refuses outright. `dropped` names what was removed,
173
+ * so the caller can say so instead of silently deploying less than the
174
+ * config describes.
175
+ */
176
+ readonly projectConfig?: (projectRoot: string, purpose: ProjectionPurpose) => ProjectedConfig;
177
+ /**
178
+ * The host's command-line surface, or `undefined` for a host that has none.
179
+ * Pure: these build argv, they never spawn.
180
+ */
181
+ readonly toolchain?: DriverToolchain;
182
+ }
183
+ /** One filterable Vectorize metadata property a schema declares. */
184
+ interface VectorMetadataDeclaration {
185
+ /** The vector index the property belongs to. */
186
+ index: string;
187
+ /**
188
+ * The validator kind behind the column, or `undefined` when the column
189
+ * isn't in the owning table's shape. Callers map it to the Vectorize
190
+ * metadata type; a kind that can't be filtered on is reported, not indexed.
191
+ */
192
+ kind: string | undefined;
193
+ /** Column mirrored into vector metadata. */
194
+ property: string;
195
+ }
196
+ interface SchemaInfo {
197
+ /**
198
+ * Whether the schema declares a **D1-backed** `.global()` table — the only
199
+ * flavour that needs the `DB` binding and the app's `.global({ d1 })` chain.
200
+ * A `.global({ backend: "hyperdrive" })` table needs neither, and counting it
201
+ * here demanded a D1 database of a project that has none.
202
+ */
203
+ hasD1GlobalTable: boolean;
204
+ /** Whether the schema declares a `.global({ backend: "hyperdrive" })` table — needs the app's `.hyperdriveGlobal(...)` chain instead. Required, not optional: the only producer always knows the answer, and `?` made every consumer read a two-valued fact as three-valued. */
205
+ hasHyperdriveGlobalTable: boolean;
206
+ /**
207
+ * Data-residency jurisdiction declared via `defineSchema(...).jurisdiction("…")`.
208
+ * It pins the app's Durable Objects only; KV namespaces and R2 buckets carry
209
+ * their own jurisdiction, set when they are created.
210
+ */
211
+ jurisdiction?: SchemaIR["jurisdiction"];
212
+ /** Names of vector indexes declared via `.vectorize()` / `defineVectorIndex()`. */
213
+ vectorIndexNames?: ReadonlyArray<string>;
214
+ /**
215
+ * Metadata properties declared filterable on a vector index. Cloudflare
216
+ * needs an explicit metadata index per property before a `filter` can match
217
+ * anything, so deploy provisions these and doctor reports them.
218
+ */
219
+ vectorMetadata?: ReadonlyArray<VectorMetadataDeclaration>;
220
+ }
221
+ interface DiscoverSchemaInfoResult {
222
+ /** Parse error message, when the schema exists but could not be analyzed. */
223
+ error?: string;
224
+ /** Schema facts, or `undefined` when no `schema.ts` exists or parsing failed. */
225
+ info: SchemaInfo | undefined;
226
+ }
227
+ /**
228
+ * Discover {@link SchemaInfo} for a project. Returns `{ info: undefined }` when
229
+ * the project declares no `schema.ts` (not an error), or `{ info: undefined,
230
+ * error }` when a present schema could not be parsed — callers decide whether a
231
+ * parse failure is a warning (validator) or simply ignorable (inference).
232
+ */
233
+ declare const discoverSchemaInfo: (projectRoot: string, schemaDirectory: string) => DiscoverSchemaInfoResult;
234
+ interface DurableObjectSpec {
235
+ binding: string;
236
+ className: string;
237
+ }
238
+ /**
239
+ * The `_generated/` modules that hold a generated Durable Object / Workflow
240
+ * class — one per class kind a project can declare. wrangler validates every
241
+ * `class_name` against the worker's exports, so this is the set a worker entry
242
+ * re-exports (and the set the composed class-A entry star-re-exports for the
243
+ * kinds the project has).
244
+ *
245
+ * Owned here because four places need it and they must not drift:
246
+ * `@lunora/vite` emits one star re-export per entry, the wrangler validator
247
+ * DECIDES the composed entry's exports from it, `reconcile-bindings` types its
248
+ * export-gap `module` field on it, and this module's own `detectClassExports`
249
+ * probes the same names.
250
+ *
251
+ * `scheduler` carries no `define*` declarations of its own — codegen writes it
252
+ * off `hasScheduler` purely so the composed class-A entry has a `SchedulerDO`
253
+ * to forward. Its presence is therefore the ONLY signal the plugin and the
254
+ * validator need, and it is the same signal that decides whether the builder
255
+ * has a `.scheduler()` method at all. `@lunora/vite` depends on `@lunora/config`, so config
256
+ * owning it is the direction the dependency graph allows.
257
+ */
258
+ declare const GENERATED_CLASS_MODULES: readonly ["agents", "containers", "scheduler", "shardRegistry", "workflows"];
259
+ /** One {@link GENERATED_CLASS_MODULES} entry. */
260
+ type GeneratedClassModule = (typeof GENERATED_CLASS_MODULES)[number];
261
+ /**
262
+ * The class-B composed entry. `lunora deploy` passes this file to wrangler as
263
+ * the positional script whenever it exists, overriding `wrangler.main` — so it
264
+ * is what actually gets bundled and what wrangler checks its DO/Workflow
265
+ * bindings against. `main` in a class-B project names the framework adapter's
266
+ * build output (`.svelte-kit/cloudflare/_worker.js`, `dist/_worker.js`), which
267
+ * exists after `vite build` and exports only the SSR fetch handler. Lexing that
268
+ * instead read every declared class as unexported: nothing provisioned, plus a
269
+ * "add `export * from …`" warning the user cannot silence.
270
+ *
271
+ * Exported, not documented-as-duplicated: the CLI's `resolveComposedWorkerEntry`
272
+ * imports this constant, so the deploy's positional entry and the file this
273
+ * module lexes for exported classes cannot drift apart.
274
+ */
275
+ declare const COMPOSED_WORKER_ENTRY = "src/worker.ts";
276
+ /**
277
+ * A `defineContainer` declaration plus whether its generated DO class is
278
+ * exported by the worker entry. Only exported containers are safe to
279
+ * provision — wrangler rejects a `containers[].class_name` (and its Durable
280
+ * Object binding) that the worker doesn't export.
281
+ */
282
+ type InferredContainer = ContainerIR & {
283
+ exported: boolean;
284
+ };
285
+ /**
286
+ * A `defineWorkflow` declaration plus whether its generated
287
+ * `WorkflowEntrypoint` class is exported by the worker entry. Only exported
288
+ * workflows are safe to provision — wrangler rejects an `exports.<Class>`
289
+ * workflow the worker doesn't export. Workflows are NOT Durable Objects, so this never
290
+ * implies a `durable_objects` binding or migration.
291
+ */
292
+ interface InferredWorkflow extends WorkflowIR {
293
+ exported: boolean;
294
+ }
295
+ /**
296
+ * A `defineAgent` declaration plus whether its generated agent
297
+ * `WorkflowEntrypoint` class (e.g. `SupportAgentWorkflow`) is exported by the
298
+ * worker entry. An agent compiles onto a Cloudflare Workflow, so — exactly like
299
+ * {@link InferredWorkflow} — only exported agents are safe to provision
300
+ * (wrangler rejects an `exports.<Class>` workflow the worker doesn't export), and
301
+ * an agent is NOT a Durable Object (no `durable_objects` binding or migration).
302
+ */
303
+ interface InferredAgent extends AgentIR {
304
+ exported: boolean;
305
+ }
306
+ /**
307
+ * A queue declared in `lunora/queues.ts`. Unlike workflows, a queue needs no
308
+ * worker-entry class export (its `queue()` handler rides `createWorker`), so
309
+ * there is no `exported` flag — every declared queue is reconcilable into the
310
+ * wrangler `queues.producers[]` / `queues.consumers[]`.
311
+ */
312
+ type InferredQueue = QueueIR;
313
+ interface InferredBindings {
314
+ /** Agents declared in `lunora/agents.ts` (exported or not — see {@link InferredAgent.exported}); reconciled into wrangler `exports`. */
315
+ agents: InferredAgent[];
316
+ /** Containers declared in `lunora/containers.ts` (exported or not — see {@link InferredContainer.exported}). */
317
+ containers: InferredContainer[];
318
+ /** Durable Objects the worker entry exports → safe to bind. */
319
+ durableObjects: DurableObjectSpec[];
320
+ /**
321
+ * The wrangler `flagship[].binding` name implied by `lunora/flags.ts` when it
322
+ * uses the Flagship provider in binding mode — `undefined` for HTTP-mode
323
+ * Flagship, a custom OpenFeature provider, or no flags. The binding needs an
324
+ * un-mintable `app_id`, so it is reconciled as a hint, not auto-written.
325
+ */
326
+ flagshipBinding?: string;
327
+ /**
328
+ * The schema's `.jurisdiction("…")`, when it declares one. Read by the binding
329
+ * hints whose resource takes its residency at creation (Artifacts), so the
330
+ * hint can name the jurisdiction to create it in.
331
+ */
332
+ jurisdiction?: SchemaInfo["jurisdiction"];
333
+ /** Schema declares a `.global()` table → needs the `DB` D1 binding. */
334
+ needsD1: boolean;
335
+ /** Queues declared in `lunora/queues.ts` → reconciled into `queues.producers[]` / `queues.consumers[]`. */
336
+ queues: InferredQueue[];
337
+ /**
338
+ * Sibling Workers declared in `lunora.config` `services` → reconciled into
339
+ * `services[]` (plan 457). `undefined` when the declaration is unreadable, so
340
+ * reconcile leaves every entry alone rather than removing the owned ones.
341
+ */
342
+ services: ServiceBindingIR[] | undefined;
343
+ /** Human-readable provenance for each inferred binding / hint, for logging. */
344
+ signals: string[];
345
+ /** `@lunora/ai` is imported, `ctx.ai` read, or `env.AI` used → needs the `ai` Workers AI binding. */
346
+ usesAi: boolean;
347
+ /** `@lunora/bindings/ai-search` is value-imported or `ctx.aiSearch` read → self-describing `ai_search_namespaces` binding (`AI_SEARCH` on namespace `default`; auto-writeable). */
348
+ usesAiSearch: boolean;
349
+ /** `@lunora/bindings/analytics` is imported or `ctx.analytics` read → self-describing `analytics_engine_datasets` binding (auto-writeable). */
350
+ usesAnalytics: boolean;
351
+ /** `@lunora/bindings/analytics-sql` is value-imported or `ctx.analyticsSql` read → self-describing `analytics` binding (`{ binding: ANALYTICS_SQL }`; auto-writeable, wrangler >= 4.145.0). */
352
+ usesAnalyticsSql: boolean;
353
+ /**
354
+ * `ctx.artifacts` is read or `@lunora/bindings/artifacts` value-imported.
355
+ * Hint-only: the first repo `create()` against a missing namespace creates it
356
+ * UNRESTRICTED, and a namespace's jurisdiction can never change after that,
357
+ * so Lunora never writes the binding for you.
358
+ */
359
+ usesArtifacts: boolean;
360
+ /** `@lunora/auth` is imported (sessions may be D1- or `SessionDO`-backed). */
361
+ usesAuth: boolean;
362
+ /** `@lunora/browser` is imported or `ctx.browser` read → self-describing `browser` binding (auto-writeable). */
363
+ usesBrowser: boolean;
364
+ /** `@lunora/auth/cimd/workers` is imported → needs the `global_fetch_strictly_public` compatibility flag (no binding; `lunora doctor` checks it). */
365
+ usesCimdWorkers: boolean;
366
+ /** `lunora/flags.ts` declares a feature-flag provider (any OpenFeature provider — Flagship or custom). */
367
+ usesFlags: boolean;
368
+ /** `@lunora/hyperdrive` is imported or `ctx.sql` read (binding needs an un-mintable remote `id`; hint-only). */
369
+ usesHyperdrive: boolean;
370
+ /** `@lunora/bindings/images` is imported or `ctx.images` read → self-describing `images` binding (auto-writeable). */
371
+ usesImages: boolean;
372
+ /** `@lunora/bindings/kv` is imported or `ctx.kv` read (namespace binding name + id are user-defined; hint-only). */
373
+ usesKv: boolean;
374
+ /** `@lunora/mail` is imported (Resend API key must be set in `.dev.vars`; no binding). No `ctx.mail` helper exists, so only the import counts. */
375
+ usesMail: boolean;
376
+ /** `@lunora/notify` is imported or `ctx.notify` read (Web Push needs VAPID/FCM secrets in `.dev.vars`; no binding). */
377
+ usesNotify: boolean;
378
+ /** `@lunora/payment` is imported or `ctx.payments` read (provider secrets must be set in `.dev.vars`; no binding). */
379
+ usesPayments: boolean;
380
+ /** `@lunora/bindings/pipelines` is value-imported or `ctx.pipelines` read (binding needs an un-mintable remote pipeline name; hint-only). */
381
+ usesPipelines: boolean;
382
+ /** `@lunora/bindings/r2sql` is value-imported or `ctx.r2sql` read (needs the `R2_SQL_*` secrets in `.dev.vars`; no binding). */
383
+ usesR2sql: boolean;
384
+ /** `@lunora/scheduler` is imported or `ctx.scheduler` read. */
385
+ usesScheduler: boolean;
386
+ /** `@lunora/storage` is imported or `ctx.storage` read under `lunora/` (R2 bucket binding name is user-defined). */
387
+ usesStorage: boolean;
388
+ /** `jsCodeTool` is imported from `@lunora/agent` in `lunora/` → self-describing `worker_loaders` binding (`LOADER`). */
389
+ usesWorkerLoader: boolean;
390
+ /** `@lunora/x402/pay` is imported or `ctx.x402` read — the agent-wallet pay rail signs from a Secrets Store binding paired with a spend policy (ActionCtx-only; hint-only). */
391
+ usesX402: boolean;
392
+ /** `@lunora/x402/charge` is imported — the charge rail settles USDC to a recipient address (a public `[vars]` entry, user-named; hint-only). */
393
+ usesX402Charge: boolean;
394
+ /** Workflows declared in `lunora/workflows.ts` (exported or not — see {@link InferredWorkflow.exported}). */
395
+ workflows: InferredWorkflow[];
396
+ }
397
+ interface InferOptions {
398
+ projectRoot: string;
399
+ /** Directories (relative to root) to scan. Defaults to `lunora` + `src`. */
400
+ scanDirs?: ReadonlyArray<string>;
401
+ /** Lunora source directory holding `schema.ts`. Defaults to `lunora`. */
402
+ schemaDir?: string;
403
+ }
404
+ /**
405
+ * Scan a Lunora project and report which Cloudflare bindings its code implies.
406
+ * Read-only: performs no writes. Binding provisioning is driven by the worker
407
+ * entry's Durable Object exports plus the schema's D1 need; capability imports
408
+ * surface as hints.
409
+ */
410
+ declare const inferLunoraBindings: (options: InferOptions) => Promise<InferredBindings>;
411
+ /**
412
+ * Derive the list of `@lunora/*` package names that are actively used by a
413
+ * project, based on its already-resolved {@link InferredBindings}.
414
+ *
415
+ * This is the canonical bridge between binding inference and the package-aware
416
+ * `.dev.vars.example` scaffolding in `scaffold-dev-variables.ts`. The result is
417
+ * a stable, predictable slice of {@link FLAG_PACKAGES}' packages, filtered to
418
+ * the flags that are `true` in `bindings` — in flag-name order.
419
+ */
420
+ declare const packageNamesFromBindings: (bindings: InferredBindings) => string[];
421
+ export { COMPOSED_WORKER_ENTRY as C, DeployDriver as D, GeneratedClassModule as G, InferredBindings as I, ProjectionPurpose as P, SchemaInfo as S, ToolchainCommand as T, DeployRequest as a, DevRequest as b, DiscoverSchemaInfoResult as c, DriverToolchain as d, GENERATED_CLASS_MODULES as e, InferOptions as f, InferredAgent as g, InferredContainer as h, InferredWorkflow as i, ProjectedConfig as j, SecretRequest as k, TailRequest as l, discoverSchemaInfo as m, inferLunoraBindings as n, packageNamesFromBindings as p };