@lunora/config 1.0.0-alpha.17 → 1.0.0-alpha.171

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 (96) hide show
  1. package/LICENSE.md +135 -0
  2. package/README.md +2 -2
  3. package/dist/cloudflare/index.d.mts +846 -0
  4. package/dist/cloudflare/index.d.ts +846 -0
  5. package/dist/cloudflare/index.mjs +1 -0
  6. package/dist/index.d.mts +873 -894
  7. package/dist/index.d.ts +873 -894
  8. package/dist/index.mjs +1 -22
  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-3-Sx1gHU.mjs +1 -0
  12. package/dist/packem_shared/ALLOW_FORWARDED_ENV-BUndghJx.mjs +1 -0
  13. package/dist/packem_shared/BINDING_MANIFEST_VERSION-Cd00jVOf.mjs +1 -0
  14. package/dist/packem_shared/CLOUDFLARE_DRIVER-BC-PjyIb.mjs +1 -0
  15. package/dist/packem_shared/CODEGEN_ENV-ZsCxV1kP.mjs +1 -0
  16. package/dist/packem_shared/DEFAULT_DEPLOY_TARGET-dS2wApDX.mjs +1 -0
  17. package/dist/packem_shared/DEV_DAEMON_ENV-e1mJUd1-.mjs +4 -0
  18. package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-CqLorAxT.mjs +6 -0
  19. package/dist/packem_shared/LINKED_PROJECT_DIR-Ba5qPEwo.mjs +2 -0
  20. package/dist/packem_shared/LUNORA_CONFIG_FILE-GOH3iIA4.mjs +1 -0
  21. package/dist/packem_shared/LUNORA_EVENT_SOURCE-DYdcDU9G.mjs +1 -0
  22. package/dist/packem_shared/LUNORA_IGNORED_PATHS-BGbVUqw_.mjs +19 -0
  23. package/dist/packem_shared/LunoraReporter-f277GLNT.mjs +6 -0
  24. package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-BgmvEPA-.mjs +1 -0
  25. package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-C1gb9ykA.mjs +1 -0
  26. package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-DKlqkz1w.mjs +1 -0
  27. package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-BM4qXyjS.mjs +1 -0
  28. package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-CknH7oga.mjs +1 -0
  29. package/dist/packem_shared/SEED_ENDPOINT-DVzCYp6l.mjs +1 -0
  30. package/dist/packem_shared/WORKERS_CACHE_MIN_DATE-0k9ABJtF.mjs +1 -0
  31. package/dist/packem_shared/WRANGLER_FILES-UNW-xY5u.mjs +1 -0
  32. package/dist/packem_shared/addArgsFor-B4D4zvM0.mjs +1 -0
  33. package/dist/packem_shared/applyAdditiveEdit-DPhNZsf2.mjs +6 -0
  34. package/dist/packem_shared/applyStudioAssetCache-DHQEJuuv.mjs +1 -0
  35. package/dist/packem_shared/assetContentType-CUb5bpbI.mjs +1 -0
  36. package/dist/packem_shared/buildPackageSecretsBlock-J7bP1P-6.mjs +19 -0
  37. package/dist/packem_shared/classifyPolicyEdit-BfSiVpv-.mjs +24 -0
  38. package/dist/packem_shared/cloudflare-driver-DkF7wRh1.mjs +1 -0
  39. package/dist/packem_shared/collectExportGaps-DHLZ7ulq.mjs +1 -0
  40. package/dist/packem_shared/collectWranglerSecretVariables-WNirpc4n.mjs +1 -0
  41. package/dist/packem_shared/createConfirm-D5mKTMHj.mjs +7 -0
  42. package/dist/packem_shared/detectFramework-DOn4PtpP.mjs +1 -0
  43. package/dist/packem_shared/discover-info-Vj9d4qYt.mjs +1 -0
  44. package/dist/packem_shared/discoverAgentInfo-CTdCSfYM.mjs +1 -0
  45. package/dist/packem_shared/discoverContainerInfo-EhZtEBQs.mjs +1 -0
  46. package/dist/packem_shared/discoverSchemaInfo-Bg2CUZXG.mjs +1 -0
  47. package/dist/packem_shared/discoverWorkflowInfo-BsPvlo6O.mjs +1 -0
  48. package/dist/packem_shared/inferLunoraBindings-KST9XCEe.mjs +1 -0
  49. package/dist/packem_shared/jsonc-edit-BZgQIdAH.mjs +1 -0
  50. package/dist/packem_shared/parseDevVariable-cacbGJkN.mjs +1 -0
  51. package/dist/packem_shared/parseSchema-B4nFDPzZ.mjs +1 -0
  52. package/dist/packem_shared/{policy-scaffold.d-DCmwn7zQ.d.mts → policy-scaffold.d-fV3db0S_.d.mts} +23 -23
  53. package/dist/packem_shared/{policy-scaffold.d-DCmwn7zQ.d.ts → policy-scaffold.d-fV3db0S_.d.ts} +23 -23
  54. package/dist/packem_shared/reconcileWranglerCompatibilityDate-7OO_xaKR.mjs +1 -0
  55. package/dist/packem_shared/reconcileWranglerCrons-COMb6ICf.mjs +1 -0
  56. package/dist/packem_shared/renderStudioHtml-ByowDtMl.mjs +15 -0
  57. package/dist/packem_shared/runPostCodegenHook-BF3XTBFz.mjs +1 -0
  58. package/dist/packem_shared/schema-info.d-DS0bUsWE.d.mts +375 -0
  59. package/dist/packem_shared/schema-info.d-DS0bUsWE.d.ts +375 -0
  60. package/dist/packem_shared/serveJsonHandler-CB85A2S9.mjs +1 -0
  61. package/dist/packem_shared/streamContainerLogs-0nko1qpv.mjs +2 -0
  62. package/dist/packem_shared/wranglerToAlchemy-CX9nCwtu.mjs +6 -0
  63. package/dist/packem_shared/write-atomic-ooiPzStx.mjs +1 -0
  64. package/dist/studio-host/index.d.mts +220 -92
  65. package/dist/studio-host/index.d.ts +220 -92
  66. package/dist/studio-host/index.mjs +1 -7
  67. package/package.json +16 -7
  68. package/dist/packem_shared/ACCENT-DW1XJn8i.mjs +0 -40
  69. package/dist/packem_shared/AGENT_RULES_DIR-lcgC08aE.mjs +0 -40
  70. package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-dJPNTEnK.mjs +0 -37
  71. package/dist/packem_shared/LINKED_PROJECT_DIR-CXwXzV_C.mjs +0 -52
  72. package/dist/packem_shared/LUNORA_CONFIG_FILE-CtcIcB5-.mjs +0 -34
  73. package/dist/packem_shared/LUNORA_EVENT_SOURCE-D2fDeGB6.mjs +0 -86
  74. package/dist/packem_shared/LunoraReporter-Ci-bDCK9.mjs +0 -70
  75. package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-B8t_SdoZ.mjs +0 -70
  76. package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-CiC2IGKx.mjs +0 -103
  77. package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-BC7_e9Bz.mjs +0 -105
  78. package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-USQQ7NfE.mjs +0 -554
  79. package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-Df-Wrix-.mjs +0 -99
  80. package/dist/packem_shared/SEED_ENDPOINT-DVCjaGO-.mjs +0 -61
  81. package/dist/packem_shared/WRANGLER_FILES-DwSuC-Kn.mjs +0 -25
  82. package/dist/packem_shared/applyAdditiveEdit-C-snTFEV.mjs +0 -228
  83. package/dist/packem_shared/buildPackageSecretsBlock-DWDKHViT.mjs +0 -243
  84. package/dist/packem_shared/classifyPolicyEdit-BHeAqF8P.mjs +0 -99
  85. package/dist/packem_shared/createConfirm-fvpdgJ9s.mjs +0 -100
  86. package/dist/packem_shared/detectFramework-Br-BcPBq.mjs +0 -41
  87. package/dist/packem_shared/discoverContainerInfo-BXFs6Wav.mjs +0 -19
  88. package/dist/packem_shared/discoverSchemaInfo-BB-CKlTK.mjs +0 -25
  89. package/dist/packem_shared/discoverWorkflowInfo-CedvR0mn.mjs +0 -19
  90. package/dist/packem_shared/inferLunoraBindings-b9SJwb2s.mjs +0 -329
  91. package/dist/packem_shared/loadStudioAssets-Csk5RS4E.mjs +0 -28
  92. package/dist/packem_shared/parseDevVariable-CJiq2IwE.mjs +0 -30
  93. package/dist/packem_shared/parseSchema-DSeyktvG.mjs +0 -107
  94. package/dist/packem_shared/reconcileWranglerBindings-27af-Qvt.mjs +0 -329
  95. package/dist/packem_shared/renderStudioHtml-449Ysn75.mjs +0 -37
  96. package/dist/packem_shared/serveJsonHandler-B4OLTGLS.mjs +0 -86
package/LICENSE.md CHANGED
@@ -103,3 +103,138 @@ Unless required by applicable law or agreed to in writing, software distributed
103
103
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
104
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
105
  specific language governing permissions and limitations under the License.
106
+
107
+ <!-- DEPENDENCIES -->
108
+
109
+ # Licenses of bundled dependencies
110
+ The published @lunora/config artifact additionally contains code with the following licenses:
111
+ MIT
112
+
113
+ # Bundled dependencies:
114
+ ## @visulima/path
115
+ License: MIT
116
+ By: Daniel Bannert
117
+ Repository: git+https://github.com/visulima/visulima.git
118
+
119
+ > MIT License
120
+ >
121
+ > Copyright (c) 2026 visulima
122
+ >
123
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
124
+ > of this software and associated documentation files (the "Software"), to deal
125
+ > in the Software without restriction, including without limitation the rights
126
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
127
+ > copies of the Software, and to permit persons to whom the Software is
128
+ > furnished to do so, subject to the following conditions:
129
+ >
130
+ > The above copyright notice and this permission notice shall be included in all
131
+ > copies or substantial portions of the Software.
132
+ >
133
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
134
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
135
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
136
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
137
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
138
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
139
+ > SOFTWARE.
140
+ >
141
+ > ---
142
+ >
143
+ > MIT License
144
+ >
145
+ > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
146
+ >
147
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
148
+ > of this software and associated documentation files (the "Software"), to deal
149
+ > in the Software without restriction, including without limitation the rights
150
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
151
+ > copies of the Software, and to permit persons to whom the Software is
152
+ > furnished to do so, subject to the following conditions:
153
+ >
154
+ > The above copyright notice and this permission notice shall be included in all
155
+ > copies or substantial portions of the Software.
156
+ >
157
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
158
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
159
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
160
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
161
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
162
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
163
+ > SOFTWARE.
164
+ >
165
+ > ---
166
+ >
167
+ > Copyright Joyent, Inc. and other Node contributors.
168
+ >
169
+ > Permission is hereby granted, free of charge, to any person obtaining a
170
+ > copy of this software and associated documentation files (the
171
+ > "Software"), to deal in the Software without restriction, including
172
+ > without limitation the rights to use, copy, modify, merge, publish,
173
+ > distribute, sublicense, and/or sell copies of the Software, and to permit
174
+ > persons to whom the Software is furnished to do so, subject to the
175
+ > following conditions:
176
+ >
177
+ > The above copyright notice and this permission notice shall be included
178
+ > in all copies or substantial portions of the Software.
179
+ >
180
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
181
+ > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
182
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
183
+ > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
184
+ > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
185
+ > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
186
+ > USE OR OTHER DEALINGS IN THE SOFTWARE.
187
+ >
188
+ > ---
189
+ >
190
+ > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
191
+ >
192
+ > The MIT License (MIT)
193
+ >
194
+ > Copyright (c) 2023-present Fabio Spampinato
195
+ >
196
+ > Permission is hereby granted, free of charge, to any person obtaining a
197
+ > copy of this software and associated documentation files (the "Software"),
198
+ > to deal in the Software without restriction, including without limitation
199
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
200
+ > and/or sell copies of the Software, and to permit persons to whom the
201
+ > Software is furnished to do so, subject to the following conditions:
202
+ >
203
+ > The above copyright notice and this permission notice shall be included in
204
+ > all copies or substantial portions of the Software.
205
+ >
206
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
207
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
208
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
209
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
210
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
211
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
212
+ > DEALINGS IN THE SOFTWARE.
213
+ >
214
+ >
215
+ >
216
+ > # Licenses of bundled dependencies
217
+ > The published @visulima/path artifact additionally contains code with the following licenses:
218
+ > MIT
219
+ >
220
+ > # Bundled dependencies:
221
+ > ## binary-extensions
222
+ > License: MIT
223
+ > By: Sindre Sorhus
224
+ > Repository: sindresorhus/binary-extensions
225
+ >
226
+ > > MIT License
227
+ > >
228
+ > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
229
+ > > Copyright (c) Paul Miller (https://paulmillr.com)
230
+ > >
231
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
232
+ > >
233
+ > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
234
+ > >
235
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
236
+
237
+ <!-- /DEPENDENCIES -->
238
+
239
+ <!-- TYPE_DEPENDENCIES -->
240
+ <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -57,7 +57,7 @@ pnpm add @lunora/config
57
57
  Validate a project's `wrangler.jsonc` from disk. `validateWranglerProject` finds the config file, parses the JSONC, discovers the schema (to know whether a `DB` D1 binding or Vectorize bindings are required), and returns a structured report:
58
58
 
59
59
  ```ts
60
- import { validateWranglerProject } from "@lunora/config";
60
+ import { validateWranglerProject } from "@lunora/config/cloudflare";
61
61
 
62
62
  const { report, wranglerPath } = validateWranglerProject({ projectRoot: process.cwd() });
63
63
 
@@ -70,7 +70,7 @@ for (const warning of report.warnings) console.warn(warning);
70
70
  If you already hold a parsed config object, `validateWranglerConfig` (aliased as `validateWrangler`) is the pure, I/O-free form. Pass the discovered `SchemaInfo` so it knows which bindings the schema demands:
71
71
 
72
72
  ```ts
73
- import { validateWranglerConfig } from "@lunora/config";
73
+ import { validateWranglerConfig } from "@lunora/config/cloudflare";
74
74
 
75
75
  const report = validateWranglerConfig(wrangler, { hasGlobalTable: true });
76
76
  // report: { valid: boolean; errors: string[]; warnings: string[] }