devflare 1.0.0-next.15 → 1.0.0-next.16
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/LLM.md +9360 -1819
- package/README.md +313 -39
- package/bin/devflare.js +17 -7
- package/dist/account-0w8wdzjv.js +475 -0
- package/dist/account-eygq6qx7.js +475 -0
- package/dist/account-fw8nafav.js +475 -0
- package/dist/account-pzq69nys.js +475 -0
- package/dist/account-s66jb15j.js +475 -0
- package/dist/api-d6ekexs5.js +25 -0
- package/dist/bridge/index.d.ts +1 -1
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/bridge/protocol.d.ts +1 -1
- package/dist/bridge/protocol.d.ts.map +1 -1
- package/dist/bridge/proxy.d.ts +0 -4
- package/dist/bridge/proxy.d.ts.map +1 -1
- package/dist/bridge/serialization.d.ts.map +1 -1
- package/dist/bridge/server.d.ts +1 -1
- package/dist/bridge/server.d.ts.map +1 -1
- package/dist/browser-shim/handler.d.ts +1 -1
- package/dist/browser-shim/handler.d.ts.map +1 -1
- package/dist/browser.d.ts +1648 -38
- package/dist/browser.d.ts.map +1 -1
- package/dist/build-1kmkwqgh.js +53 -0
- package/dist/build-506kjhcm.js +53 -0
- package/dist/build-66866ahs.js +53 -0
- package/dist/build-g1adm3ww.js +53 -0
- package/dist/build-p3r3117t.js +53 -0
- package/dist/bundler/do-bundler.d.ts.map +1 -1
- package/dist/bundler/rolldown-shared.d.ts +24 -0
- package/dist/bundler/rolldown-shared.d.ts.map +1 -0
- package/dist/bundler/worker-bundler.d.ts +0 -1
- package/dist/bundler/worker-bundler.d.ts.map +1 -1
- package/dist/cli/command-utils.d.ts +18 -0
- package/dist/cli/command-utils.d.ts.map +1 -0
- package/dist/cli/commands/account.d.ts +1 -1
- package/dist/cli/commands/account.d.ts.map +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +27 -0
- package/dist/cli/commands/build-artifacts.d.ts.map +1 -0
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/commands/dev.d.ts.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/login.d.ts +4 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/cleanup.d.ts +9 -0
- package/dist/cli/commands/previews-support/cleanup.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/family.d.ts +10 -0
- package/dist/cli/commands/previews-support/family.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/render.d.ts +8 -0
- package/dist/cli/commands/previews-support/render.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/theme.d.ts +10 -0
- package/dist/cli/commands/previews-support/theme.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/types.d.ts +70 -0
- package/dist/cli/commands/previews-support/types.d.ts.map +1 -0
- package/dist/cli/commands/previews.d.ts +4 -0
- package/dist/cli/commands/previews.d.ts.map +1 -0
- package/dist/cli/commands/productions.d.ts +4 -0
- package/dist/cli/commands/productions.d.ts.map +1 -0
- package/dist/cli/commands/token.d.ts +4 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/discovery.d.ts +7 -0
- package/dist/cli/commands/type-generation/discovery.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/generator.d.ts +44 -0
- package/dist/cli/commands/type-generation/generator.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/models.d.ts +27 -0
- package/dist/cli/commands/type-generation/models.d.ts.map +1 -0
- package/dist/cli/commands/types.d.ts.map +1 -1
- package/dist/cli/commands/worker.d.ts +4 -0
- package/dist/cli/commands/worker.d.ts.map +1 -0
- package/dist/cli/config-path.d.ts +2 -1
- package/dist/cli/config-path.d.ts.map +1 -1
- package/dist/cli/deploy-strategy.d.ts +17 -0
- package/dist/cli/deploy-strategy.d.ts.map +1 -0
- package/dist/cli/deploy-target.d.ts +17 -0
- package/dist/cli/deploy-target.d.ts.map +1 -0
- package/dist/cli/generated-artifacts.d.ts +12 -0
- package/dist/cli/generated-artifacts.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/account.d.ts +3 -0
- package/dist/cli/help-pages/pages/account.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/core.d.ts +4 -0
- package/dist/cli/help-pages/pages/core.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/index.d.ts +3 -0
- package/dist/cli/help-pages/pages/index.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/misc.d.ts +3 -0
- package/dist/cli/help-pages/pages/misc.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/previews.d.ts +3 -0
- package/dist/cli/help-pages/pages/previews.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/productions.d.ts +3 -0
- package/dist/cli/help-pages/pages/productions.d.ts.map +1 -0
- package/dist/cli/help-pages/render.d.ts +12 -0
- package/dist/cli/help-pages/render.d.ts.map +1 -0
- package/dist/cli/help-pages/shared.d.ts +15 -0
- package/dist/cli/help-pages/shared.d.ts.map +1 -0
- package/dist/cli/help-pages/types.d.ts +23 -0
- package/dist/cli/help-pages/types.d.ts.map +1 -0
- package/dist/cli/help.d.ts +6 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/preview-bindings.d.ts +42 -0
- package/dist/cli/preview-bindings.d.ts.map +1 -0
- package/dist/cli/preview.d.ts +11 -0
- package/dist/cli/preview.d.ts.map +1 -0
- package/dist/cli/ui.d.ts +37 -0
- package/dist/cli/ui.d.ts.map +1 -0
- package/dist/cli/workspace-build-guard.d.ts +14 -0
- package/dist/cli/workspace-build-guard.d.ts.map +1 -0
- package/dist/cloudflare/account-core.d.ts +6 -0
- package/dist/cloudflare/account-core.d.ts.map +1 -0
- package/dist/cloudflare/account-resources.d.ts +40 -0
- package/dist/cloudflare/account-resources.d.ts.map +1 -0
- package/dist/cloudflare/account-status.d.ts +11 -0
- package/dist/cloudflare/account-status.d.ts.map +1 -0
- package/dist/cloudflare/account-workers.d.ts +14 -0
- package/dist/cloudflare/account-workers.d.ts.map +1 -0
- package/dist/cloudflare/account.d.ts +7 -64
- package/dist/cloudflare/account.d.ts.map +1 -1
- package/dist/cloudflare/api.d.ts +4 -0
- package/dist/cloudflare/api.d.ts.map +1 -1
- package/dist/cloudflare/index.d.ts +57 -2
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/kv-namespace.d.ts +3 -0
- package/dist/cloudflare/kv-namespace.d.ts.map +1 -0
- package/dist/cloudflare/preferences.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-cache.d.ts +6 -0
- package/dist/cloudflare/preview-registry-cache.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-records.d.ts +61 -0
- package/dist/cloudflare/preview-registry-records.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-store.d.ts +14 -0
- package/dist/cloudflare/preview-registry-store.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-types.d.ts +103 -0
- package/dist/cloudflare/preview-registry-types.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry.d.ts +42 -0
- package/dist/cloudflare/preview-registry.d.ts.map +1 -0
- package/dist/cloudflare/registry-schema.d.ts +253 -0
- package/dist/cloudflare/registry-schema.d.ts.map +1 -0
- package/dist/cloudflare/tokens.d.ts +18 -0
- package/dist/cloudflare/tokens.d.ts.map +1 -0
- package/dist/cloudflare/types.d.ts +122 -5
- package/dist/cloudflare/types.d.ts.map +1 -1
- package/dist/cloudflare/usage.d.ts.map +1 -1
- package/dist/config/compiler.d.ts +4 -0
- package/dist/config/compiler.d.ts.map +1 -1
- package/dist/config/framework-providers.d.ts +9 -0
- package/dist/config/framework-providers.d.ts.map +1 -0
- package/dist/config/index.d.ts +4 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/preview-resources.d.ts +77 -0
- package/dist/config/preview-resources.d.ts.map +1 -0
- package/dist/config/preview.d.ts +31 -0
- package/dist/config/preview.d.ts.map +1 -0
- package/dist/config/ref.d.ts +0 -22
- package/dist/config/ref.d.ts.map +1 -1
- package/dist/config/resolve.d.ts +1 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resource-resolution.d.ts +21 -5
- package/dist/config/resource-resolution.d.ts.map +1 -1
- package/dist/config/schema-bindings.d.ts +693 -0
- package/dist/config/schema-bindings.d.ts.map +1 -0
- package/dist/config/schema-build.d.ts +67 -0
- package/dist/config/schema-build.d.ts.map +1 -0
- package/dist/config/schema-env.d.ts +1341 -0
- package/dist/config/schema-env.d.ts.map +1 -0
- package/dist/config/schema-normalization.d.ts +64 -0
- package/dist/config/schema-normalization.d.ts.map +1 -0
- package/dist/config/schema-runtime.d.ts +230 -0
- package/dist/config/schema-runtime.d.ts.map +1 -0
- package/dist/config/schema.d.ts +542 -3736
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config-entry.d.ts +5 -0
- package/dist/config-entry.d.ts.map +1 -0
- package/dist/{config-v9tr4rts.js → config-fjwke42y.js} +6 -4
- package/dist/config-hwdqjse7.js +59 -0
- package/dist/config-pxvewrhv.js +59 -0
- package/dist/config-q0g5qdga.js +59 -0
- package/dist/decorators/durable-object.d.ts.map +1 -1
- package/dist/deploy-7nmzc9r8.js +609 -0
- package/dist/deploy-csfhdr64.js +691 -0
- package/dist/deploy-ex4g5avz.js +621 -0
- package/dist/deploy-jnb0bhka.js +609 -0
- package/dist/deploy-tp0g6qdp.js +609 -0
- package/dist/deploy-ykpcjkc2.js +690 -0
- package/dist/{dev-ymtphbkg.js → dev-2pd33m28.js} +386 -348
- package/dist/dev-7ef5e2j1.js +2409 -0
- package/dist/dev-8nssqatr.js +2409 -0
- package/dist/dev-grznx8fn.js +2409 -0
- package/dist/dev-server/d1-migrations.d.ts +14 -0
- package/dist/dev-server/d1-migrations.d.ts.map +1 -0
- package/dist/dev-server/gateway-script.d.ts +8 -0
- package/dist/dev-server/gateway-script.d.ts.map +1 -0
- package/dist/dev-server/runtime-stdio.d.ts.map +1 -1
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/vite-process.d.ts +14 -0
- package/dist/dev-server/vite-process.d.ts.map +1 -0
- package/dist/dev-server/vite-utils.d.ts +1 -1
- package/dist/dev-server/vite-utils.d.ts.map +1 -1
- package/dist/dev-server/worker-source-watcher.d.ts +11 -0
- package/dist/dev-server/worker-source-watcher.d.ts.map +1 -0
- package/dist/dev-server/worker-surface-paths.d.ts +6 -0
- package/dist/dev-server/worker-surface-paths.d.ts.map +1 -0
- package/dist/{doctor-xv4gm1h4.js → doctor-04ammrrh.js} +67 -32
- package/dist/doctor-fmjj65mc.js +245 -0
- package/dist/doctor-fzkznce1.js +245 -0
- package/dist/doctor-sa5xv1bz.js +245 -0
- package/dist/index-091sh1ma.js +1229 -0
- package/dist/index-0apbm26n.js +788 -0
- package/dist/index-0eqksag4.js +418 -0
- package/dist/{index-k8vh558d.js → index-0kfzdywd.js} +15 -2
- package/dist/index-0w826dsr.js +379 -0
- package/dist/{index-5s1bz1e0.js → index-11m5a8wd.js} +100 -22
- package/dist/{index-0rsa2c1t.js → index-1sp39f2f.js} +110 -57
- package/dist/index-2jnrqbny.js +1301 -0
- package/dist/index-2pb7b9mw.js +378 -0
- package/dist/{index-3a4mmn57.js → index-2x53aqjm.js} +1065 -890
- package/dist/index-3ke5d2vn.js +1229 -0
- package/dist/index-43dq8yx8.js +788 -0
- package/dist/index-4rrttqj5.js +378 -0
- package/dist/index-4v9bc2pc.js +1367 -0
- package/dist/index-61jsjnsv.js +280 -0
- package/dist/index-6jef5emv.js +176 -0
- package/dist/index-6psz1h4c.js +788 -0
- package/dist/index-72mve6vh.js +168 -0
- package/dist/{index-zvgc3e0c.js → index-74198nxd.js} +159 -63
- package/dist/{index-7bq4xq84.js → index-7g8zyws4.js} +7 -12
- package/dist/index-7kcxjhta.js +456 -0
- package/dist/index-7v583xan.js +418 -0
- package/dist/index-7x0ybbtx.js +133 -0
- package/dist/index-816krz9p.js +52 -0
- package/dist/index-82f1z98k.js +41 -0
- package/dist/index-8t5nb4qx.js +133 -0
- package/dist/index-9az6s7ad.js +52 -0
- package/dist/{index-59df49vn.js → index-9ba1etyz.js} +29 -51
- package/dist/{index-001mw014.js → index-9fbtk7gv.js} +134 -248
- package/dist/index-9n6djthj.js +490 -0
- package/dist/index-aabgympv.js +39 -0
- package/dist/index-b8m6883k.js +74 -0
- package/dist/{index-5yxg30va.js → index-cgbvmse6.js} +15 -6
- package/dist/index-d8etnfef.js +1229 -0
- package/dist/index-e9yw4d6y.js +133 -0
- package/dist/index-epw1jxz5.js +1204 -0
- package/dist/index-f85s8gj3.js +2649 -0
- package/dist/index-fe2ngvh7.js +1229 -0
- package/dist/index-fvsadj32.js +192 -0
- package/dist/index-gs4y9gdf.js +456 -0
- package/dist/{index-fef08w43.js → index-h18pxvzs.js} +7 -6
- package/dist/index-hfj1a2c4.js +2649 -0
- package/dist/{index-8gtqgb3q.js → index-hjy8ctpc.js} +14 -92
- package/dist/index-htzf0py1.js +1204 -0
- package/dist/index-j185x270.js +897 -0
- package/dist/index-jb75kwa4.js +519 -0
- package/dist/index-jwd8pcb2.js +897 -0
- package/dist/index-k29yjhv0.js +52 -0
- package/dist/index-k6vq6kkt.js +456 -0
- package/dist/{index-vky23txa.js → index-m3fmw6mx.js} +2 -2
- package/dist/index-maxpsfk8.js +402 -0
- package/dist/index-mbdmrner.js +402 -0
- package/dist/index-mea5bc45.js +418 -0
- package/dist/index-mqekt778.js +185 -0
- package/dist/index-na3mnm1k.js +74 -0
- package/dist/index-p03n4qet.js +1367 -0
- package/dist/index-p296ban8.js +191 -0
- package/dist/index-pnbs1b8k.js +280 -0
- package/dist/index-q4kaz181.js +1207 -0
- package/dist/index-ry131z23.js +378 -0
- package/dist/index-sgb7c8nm.js +402 -0
- package/dist/index-sqrksgb2.js +133 -0
- package/dist/index-stgn34cr.js +148 -0
- package/dist/{index-v8vvsn9x.js → index-t08te69w.js} +1 -18
- package/dist/index-thna1tkd.js +280 -0
- package/dist/index-v5nmqthy.js +74 -0
- package/dist/{index-n932ytmq.js → index-vt4yxkmf.js} +2 -2
- package/dist/index-wyq6c6yj.js +402 -0
- package/dist/index-wztc9stx.js +418 -0
- package/dist/index-x9cwdxw5.js +456 -0
- package/dist/index-xk9djfjp.js +519 -0
- package/dist/index-yc0gcchc.js +418 -0
- package/dist/index-yqbxjysa.js +897 -0
- package/dist/index-yzddwp02.js +788 -0
- package/dist/index-zfhq6s96.js +74 -0
- package/dist/index-zt22fe2j.js +54 -0
- package/dist/index-zyt5byt6.js +2649 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{init-na2atvz2.js → init-r4hnxan3.js} +24 -17
- package/dist/login-2hnz4m4n.js +77 -0
- package/dist/login-5bsxxpvc.js +77 -0
- package/dist/login-6tzvczw2.js +77 -0
- package/dist/login-bhaw72zc.js +77 -0
- package/dist/login-x8tgckqm.js +77 -0
- package/dist/previews-3rn8mz2c.js +1168 -0
- package/dist/previews-d487qde5.js +1200 -0
- package/dist/previews-gm3z0syj.js +1168 -0
- package/dist/previews-j9ymq4ys.js +1169 -0
- package/dist/previews-q031mx34.js +1168 -0
- package/dist/productions-120xg0aq.js +505 -0
- package/dist/productions-5ev5qweg.js +505 -0
- package/dist/productions-me3tdvr9.js +505 -0
- package/dist/productions-p5rbgp2f.js +505 -0
- package/dist/productions-x9p0pym1.js +505 -0
- package/dist/runtime/context-events.d.ts +13 -0
- package/dist/runtime/context-events.d.ts.map +1 -0
- package/dist/runtime/context-types.d.ts +82 -0
- package/dist/runtime/context-types.d.ts.map +1 -0
- package/dist/runtime/context.d.ts +6 -267
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/exports.d.ts +3 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/middleware.d.ts +8 -38
- package/dist/runtime/middleware.d.ts.map +1 -1
- package/dist/src/browser.js +9 -17
- package/dist/src/cli/index.js +3 -1
- package/dist/src/cloudflare/index.js +49 -3
- package/dist/src/config-entry.js +14 -0
- package/dist/src/index.js +24 -20
- package/dist/src/runtime/index.js +3 -9
- package/dist/src/sveltekit/index.js +10 -8
- package/dist/src/test/index.js +16 -19
- package/dist/src/vite/index.js +7 -5
- package/dist/sveltekit/platform.d.ts +1 -1
- package/dist/sveltekit/platform.d.ts.map +1 -1
- package/dist/test/cf.d.ts +10 -10
- package/dist/test/email.d.ts.map +1 -1
- package/dist/test/index.d.ts +1 -6
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/queue.d.ts.map +1 -1
- package/dist/test/remote-ai.d.ts.map +1 -1
- package/dist/test/remote-cloudflare.d.ts +13 -0
- package/dist/test/remote-cloudflare.d.ts.map +1 -0
- package/dist/test/remote-vectorize.d.ts.map +1 -1
- package/dist/test/resolve-service-bindings.d.ts.map +1 -1
- package/dist/test/scheduled.d.ts.map +1 -1
- package/dist/test/should-skip.d.ts +0 -18
- package/dist/test/should-skip.d.ts.map +1 -1
- package/dist/test/simple-context-durable-objects.d.ts +6 -0
- package/dist/test/simple-context-durable-objects.d.ts.map +1 -0
- package/dist/test/simple-context-gateway-script.d.ts +2 -0
- package/dist/test/simple-context-gateway-script.d.ts.map +1 -0
- package/dist/test/simple-context-paths.d.ts +40 -0
- package/dist/test/simple-context-paths.d.ts.map +1 -0
- package/dist/test/simple-context.d.ts +1 -23
- package/dist/test/simple-context.d.ts.map +1 -1
- package/dist/test/tail.d.ts.map +1 -1
- package/dist/test/worker.d.ts.map +1 -1
- package/dist/token-kedhcret.js +419 -0
- package/dist/token-m8jmnjwk.js +419 -0
- package/dist/{types-158m16vd.js → types-0sqwkp7x.js} +244 -140
- package/dist/types-1gwr2ex6.js +572 -0
- package/dist/types-6e5yx6km.js +572 -0
- package/dist/types-p0gckpn6.js +572 -0
- package/dist/utils/send-email.d.ts.map +1 -1
- package/dist/vite/config-file.d.ts.map +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/worker-0srh2jfr.js +513 -0
- package/dist/worker-4xrfd10a.js +513 -0
- package/dist/worker-entry/composed-worker.d.ts +0 -7
- package/dist/worker-entry/composed-worker.d.ts.map +1 -1
- package/dist/worker-entry/surface-paths.d.ts +15 -0
- package/dist/worker-entry/surface-paths.d.ts.map +1 -0
- package/dist/worker-qtam8grz.js +513 -0
- package/dist/worker-qzm0b7br.js +513 -0
- package/dist/worker-y9ha6g44.js +513 -0
- package/package.json +17 -10
- package/R2.md +0 -200
- package/dist/account-spa7gzsn.js +0 -421
- package/dist/build-zv25ke4s.js +0 -102
- package/dist/deploy-6xmqvv06.js +0 -118
- package/dist/index-2q3pmzrx.js +0 -90
- package/dist/index-6nb7w45m.js +0 -79
- package/dist/index-tksw7gpy.js +0 -503
- package/dist/index-v43z02tr.js +0 -205
- package/dist/index-xdq9ery1.js +0 -664
- package/dist/test/multi-worker-context.d.ts +0 -114
- package/dist/test/multi-worker-context.d.ts.map +0 -1
package/dist/build-zv25ke4s.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bundleWorkerEntry
|
|
3
|
-
} from "./index-001mw014.js";
|
|
4
|
-
import {
|
|
5
|
-
detectViteProject
|
|
6
|
-
} from "./index-y1d8za14.js";
|
|
7
|
-
import {
|
|
8
|
-
getDependencies
|
|
9
|
-
} from "./index-1xpj0m4r.js";
|
|
10
|
-
import {
|
|
11
|
-
prepareComposedWorkerEntrypoint,
|
|
12
|
-
resolveEffectiveViteProject,
|
|
13
|
-
writeGeneratedViteConfig
|
|
14
|
-
} from "./index-zvgc3e0c.js";
|
|
15
|
-
import"./index-1p814k7s.js";
|
|
16
|
-
import"./index-rbht7m9r.js";
|
|
17
|
-
import"./index-9wt9x09k.js";
|
|
18
|
-
import {
|
|
19
|
-
compileConfig,
|
|
20
|
-
writeWranglerConfig
|
|
21
|
-
} from "./index-5s1bz1e0.js";
|
|
22
|
-
import {
|
|
23
|
-
loadResolvedConfig
|
|
24
|
-
} from "./index-tksw7gpy.js";
|
|
25
|
-
import"./index-v8vvsn9x.js";
|
|
26
|
-
import"./index-xdq9ery1.js";
|
|
27
|
-
import"./index-37x76zdn.js";
|
|
28
|
-
|
|
29
|
-
// src/cli/commands/build.ts
|
|
30
|
-
import { relative, resolve } from "pathe";
|
|
31
|
-
async function runBuildCommand(parsed, logger, options) {
|
|
32
|
-
const cwd = options.cwd || process.cwd();
|
|
33
|
-
const configPath = parsed.options.config;
|
|
34
|
-
const environment = parsed.options.env;
|
|
35
|
-
logger.info("Building for production...");
|
|
36
|
-
try {
|
|
37
|
-
const config = await loadResolvedConfig({ cwd, configFile: configPath, environment });
|
|
38
|
-
logger.info(`Building: ${config.name}`);
|
|
39
|
-
const composedMainEntry = await prepareComposedWorkerEntrypoint(cwd, config);
|
|
40
|
-
const deps = await getDependencies();
|
|
41
|
-
const viteProject = resolveEffectiveViteProject(await detectViteProject(cwd, deps.fs), config);
|
|
42
|
-
const wranglerConfig = compileConfig(config);
|
|
43
|
-
if (viteProject.shouldStartVite) {
|
|
44
|
-
if (composedMainEntry) {
|
|
45
|
-
wranglerConfig.main = composedMainEntry;
|
|
46
|
-
logger.info(`Generated composed worker entry: ${composedMainEntry}`);
|
|
47
|
-
}
|
|
48
|
-
} else if (composedMainEntry) {
|
|
49
|
-
const bundledMainEntryPath = await bundleWorkerEntry({
|
|
50
|
-
cwd,
|
|
51
|
-
inputFile: resolve(cwd, composedMainEntry),
|
|
52
|
-
outFile: resolve(cwd, ".devflare", "worker-entrypoints", "main.js"),
|
|
53
|
-
rolldownOptions: config.rolldown?.options,
|
|
54
|
-
sourcemap: config.rolldown?.sourcemap,
|
|
55
|
-
minify: config.rolldown?.minify,
|
|
56
|
-
target: config.rolldown?.target,
|
|
57
|
-
logger
|
|
58
|
-
});
|
|
59
|
-
wranglerConfig.main = relative(cwd, bundledMainEntryPath).replace(/\\/g, "/");
|
|
60
|
-
logger.info(`Generated bundled worker entry: ${wranglerConfig.main}`);
|
|
61
|
-
}
|
|
62
|
-
await writeWranglerConfig(cwd, wranglerConfig);
|
|
63
|
-
logger.success("Generated wrangler.jsonc");
|
|
64
|
-
if (!viteProject.shouldStartVite) {
|
|
65
|
-
logger.info("Skipping Vite build (no effective Vite config found for this package)");
|
|
66
|
-
logger.success("Build complete!");
|
|
67
|
-
return { exitCode: 0 };
|
|
68
|
-
}
|
|
69
|
-
const generatedViteConfigPath = await writeGeneratedViteConfig({
|
|
70
|
-
cwd,
|
|
71
|
-
configPath,
|
|
72
|
-
environment,
|
|
73
|
-
localConfigPath: viteProject.viteConfigPath
|
|
74
|
-
});
|
|
75
|
-
logger.info("Running vite build...");
|
|
76
|
-
const proc = await deps.exec.exec("bunx", ["vite", "build", "--config", generatedViteConfigPath], {
|
|
77
|
-
cwd,
|
|
78
|
-
stdio: "inherit",
|
|
79
|
-
env: {
|
|
80
|
-
...process.env,
|
|
81
|
-
DEVFLARE_BUILD: "true"
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
if (proc.exitCode !== 0) {
|
|
85
|
-
logger.error("Build failed");
|
|
86
|
-
return { exitCode: 1 };
|
|
87
|
-
}
|
|
88
|
-
logger.success("Build complete!");
|
|
89
|
-
return { exitCode: 0 };
|
|
90
|
-
} catch (error) {
|
|
91
|
-
if (error instanceof Error) {
|
|
92
|
-
logger.error("Build failed:", error.message);
|
|
93
|
-
if (parsed.options.debug) {
|
|
94
|
-
logger.error(error.stack);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return { exitCode: 1 };
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
runBuildCommand
|
|
102
|
-
};
|
package/dist/deploy-6xmqvv06.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bundleWorkerEntry
|
|
3
|
-
} from "./index-001mw014.js";
|
|
4
|
-
import {
|
|
5
|
-
detectViteProject
|
|
6
|
-
} from "./index-y1d8za14.js";
|
|
7
|
-
import {
|
|
8
|
-
getDependencies
|
|
9
|
-
} from "./index-1xpj0m4r.js";
|
|
10
|
-
import {
|
|
11
|
-
prepareComposedWorkerEntrypoint,
|
|
12
|
-
resolveEffectiveViteProject,
|
|
13
|
-
writeGeneratedViteConfig
|
|
14
|
-
} from "./index-zvgc3e0c.js";
|
|
15
|
-
import"./index-1p814k7s.js";
|
|
16
|
-
import"./index-rbht7m9r.js";
|
|
17
|
-
import"./index-9wt9x09k.js";
|
|
18
|
-
import {
|
|
19
|
-
compileConfig,
|
|
20
|
-
stringifyConfig,
|
|
21
|
-
writeWranglerConfig
|
|
22
|
-
} from "./index-5s1bz1e0.js";
|
|
23
|
-
import {
|
|
24
|
-
loadResolvedConfig
|
|
25
|
-
} from "./index-tksw7gpy.js";
|
|
26
|
-
import"./index-v8vvsn9x.js";
|
|
27
|
-
import"./index-xdq9ery1.js";
|
|
28
|
-
import"./index-37x76zdn.js";
|
|
29
|
-
|
|
30
|
-
// src/cli/commands/deploy.ts
|
|
31
|
-
import { relative, resolve } from "pathe";
|
|
32
|
-
async function runDeployCommand(parsed, logger, options) {
|
|
33
|
-
const cwd = options.cwd || process.cwd();
|
|
34
|
-
const configPath = parsed.options.config;
|
|
35
|
-
const environment = parsed.options.env;
|
|
36
|
-
const dryRun = parsed.options["dry-run"] === true;
|
|
37
|
-
logger.info("Deploying to Cloudflare...");
|
|
38
|
-
try {
|
|
39
|
-
const config = await loadResolvedConfig({ cwd, configFile: configPath, environment });
|
|
40
|
-
logger.info(`Deploying: ${config.name}`);
|
|
41
|
-
const composedMainEntry = await prepareComposedWorkerEntrypoint(cwd, config);
|
|
42
|
-
const wranglerConfig = compileConfig(config);
|
|
43
|
-
const deps = await getDependencies();
|
|
44
|
-
const viteProject = resolveEffectiveViteProject(await detectViteProject(cwd, deps.fs), config);
|
|
45
|
-
if (viteProject.shouldStartVite) {
|
|
46
|
-
if (composedMainEntry) {
|
|
47
|
-
wranglerConfig.main = composedMainEntry;
|
|
48
|
-
logger.info(`Generated composed worker entry: ${composedMainEntry}`);
|
|
49
|
-
}
|
|
50
|
-
} else if (composedMainEntry) {
|
|
51
|
-
const bundledMainEntryPath = await bundleWorkerEntry({
|
|
52
|
-
cwd,
|
|
53
|
-
inputFile: resolve(cwd, composedMainEntry),
|
|
54
|
-
outFile: resolve(cwd, ".devflare", "worker-entrypoints", "main.js"),
|
|
55
|
-
rolldownOptions: config.rolldown?.options,
|
|
56
|
-
sourcemap: config.rolldown?.sourcemap,
|
|
57
|
-
minify: config.rolldown?.minify,
|
|
58
|
-
target: config.rolldown?.target,
|
|
59
|
-
logger
|
|
60
|
-
});
|
|
61
|
-
wranglerConfig.main = relative(cwd, bundledMainEntryPath).replace(/\\/g, "/");
|
|
62
|
-
logger.info(`Generated bundled worker entry: ${wranglerConfig.main}`);
|
|
63
|
-
}
|
|
64
|
-
if (dryRun) {
|
|
65
|
-
logger.info("Dry run - skipping actual deployment");
|
|
66
|
-
logger.info("Would deploy with wrangler config:");
|
|
67
|
-
logger.info(stringifyConfig(wranglerConfig));
|
|
68
|
-
return { exitCode: 0 };
|
|
69
|
-
}
|
|
70
|
-
await writeWranglerConfig(cwd, wranglerConfig);
|
|
71
|
-
logger.debug("Generated wrangler.jsonc");
|
|
72
|
-
if (viteProject.shouldStartVite) {
|
|
73
|
-
const generatedViteConfigPath = await writeGeneratedViteConfig({
|
|
74
|
-
cwd,
|
|
75
|
-
configPath,
|
|
76
|
-
environment,
|
|
77
|
-
localConfigPath: viteProject.viteConfigPath
|
|
78
|
-
});
|
|
79
|
-
logger.info("Building...");
|
|
80
|
-
const buildProc = await deps.exec.exec("bunx", ["vite", "build", "--config", generatedViteConfigPath], {
|
|
81
|
-
cwd,
|
|
82
|
-
stdio: "inherit"
|
|
83
|
-
});
|
|
84
|
-
if (buildProc.exitCode !== 0) {
|
|
85
|
-
logger.error("Build failed");
|
|
86
|
-
return { exitCode: 1 };
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
logger.info("Skipping Vite build (no effective Vite config found for this package)");
|
|
90
|
-
}
|
|
91
|
-
logger.info("Deploying with wrangler...");
|
|
92
|
-
const wranglerArgs = ["wrangler", "deploy"];
|
|
93
|
-
if (environment) {
|
|
94
|
-
wranglerArgs.push("--env", environment);
|
|
95
|
-
}
|
|
96
|
-
const deployProc = await deps.exec.exec("bunx", wranglerArgs, {
|
|
97
|
-
cwd,
|
|
98
|
-
stdio: "inherit"
|
|
99
|
-
});
|
|
100
|
-
if (deployProc.exitCode !== 0) {
|
|
101
|
-
logger.error("Deployment failed");
|
|
102
|
-
return { exitCode: 1 };
|
|
103
|
-
}
|
|
104
|
-
logger.success("Deployed successfully!");
|
|
105
|
-
return { exitCode: 0 };
|
|
106
|
-
} catch (error) {
|
|
107
|
-
if (error instanceof Error) {
|
|
108
|
-
logger.error("Deployment failed:", error.message);
|
|
109
|
-
if (parsed.options.debug) {
|
|
110
|
-
logger.error(error.stack);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return { exitCode: 1 };
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
runDeployCommand
|
|
118
|
-
};
|
package/dist/index-2q3pmzrx.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_ENTRYPOINT_PATTERN,
|
|
3
|
-
findFiles,
|
|
4
|
-
findFilesSync
|
|
5
|
-
} from "./index-rbht7m9r.js";
|
|
6
|
-
import {
|
|
7
|
-
__require
|
|
8
|
-
} from "./index-37x76zdn.js";
|
|
9
|
-
|
|
10
|
-
// src/utils/entrypoint-discovery.ts
|
|
11
|
-
import { readFileSync } from "fs";
|
|
12
|
-
var ENTRYPOINT_CLASS_PATTERN = /export\s+class\s+(\w+)\s+extends\s+WorkerEntrypoint/g;
|
|
13
|
-
function findEntrypointClasses(code) {
|
|
14
|
-
const classes = [];
|
|
15
|
-
ENTRYPOINT_CLASS_PATTERN.lastIndex = 0;
|
|
16
|
-
let match;
|
|
17
|
-
while ((match = ENTRYPOINT_CLASS_PATTERN.exec(code)) !== null) {
|
|
18
|
-
classes.push(match[1]);
|
|
19
|
-
}
|
|
20
|
-
return classes;
|
|
21
|
-
}
|
|
22
|
-
function discoverEntrypointsSync(cwd, pattern = DEFAULT_ENTRYPOINT_PATTERN) {
|
|
23
|
-
const discovered = [];
|
|
24
|
-
try {
|
|
25
|
-
const files = findFilesSync(pattern, { cwd });
|
|
26
|
-
for (const file of files) {
|
|
27
|
-
try {
|
|
28
|
-
const code = readFileSync(file, "utf-8");
|
|
29
|
-
const classNames = findEntrypointClasses(code);
|
|
30
|
-
for (const className of classNames) {
|
|
31
|
-
discovered.push({ className, filePath: file });
|
|
32
|
-
}
|
|
33
|
-
} catch {}
|
|
34
|
-
}
|
|
35
|
-
} catch {}
|
|
36
|
-
return discovered;
|
|
37
|
-
}
|
|
38
|
-
async function discoverEntrypointsAsync(cwd, pattern = DEFAULT_ENTRYPOINT_PATTERN) {
|
|
39
|
-
const fs = await import("node:fs/promises");
|
|
40
|
-
const discovered = [];
|
|
41
|
-
const files = await findFiles(pattern, { cwd });
|
|
42
|
-
for (const filePath of files) {
|
|
43
|
-
try {
|
|
44
|
-
const code = await fs.readFile(filePath, "utf-8");
|
|
45
|
-
const classNames = findEntrypointClasses(code);
|
|
46
|
-
for (const className of classNames) {
|
|
47
|
-
discovered.push({ className, filePath });
|
|
48
|
-
}
|
|
49
|
-
} catch {}
|
|
50
|
-
}
|
|
51
|
-
return discovered;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/utils/resolve-package.ts
|
|
55
|
-
import { resolve, dirname } from "pathe";
|
|
56
|
-
import { readFileSync as readFileSync2, existsSync } from "node:fs";
|
|
57
|
-
function resolvePackageSpecifier(specifier, fromDir) {
|
|
58
|
-
if (specifier.startsWith(".") || specifier.startsWith("/") || /^[A-Za-z]:/.test(specifier)) {
|
|
59
|
-
return resolve(fromDir, specifier);
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
const parts = specifier.startsWith("@") ? specifier.split("/").slice(0, 2).join("/") : specifier.split("/")[0];
|
|
63
|
-
const subpath = specifier.startsWith("@") ? specifier.split("/").slice(2).join("/") : specifier.split("/").slice(1).join("/");
|
|
64
|
-
const pkgJsonPath = __require.resolve(`${parts}/package.json`, { paths: [fromDir] });
|
|
65
|
-
const pkgDir = dirname(pkgJsonPath);
|
|
66
|
-
if (subpath) {
|
|
67
|
-
const pkgJson = JSON.parse(readFileSync2(pkgJsonPath, "utf-8"));
|
|
68
|
-
const exportPath = pkgJson.exports?.[`./${subpath}`];
|
|
69
|
-
if (exportPath) {
|
|
70
|
-
const targetPath = typeof exportPath === "string" ? exportPath : exportPath.default || exportPath.import;
|
|
71
|
-
return resolve(pkgDir, targetPath);
|
|
72
|
-
}
|
|
73
|
-
const directPath = resolve(pkgDir, `${subpath}.ts`);
|
|
74
|
-
if (existsSync(directPath))
|
|
75
|
-
return directPath;
|
|
76
|
-
const withExt = resolve(pkgDir, subpath);
|
|
77
|
-
if (existsSync(withExt))
|
|
78
|
-
return withExt;
|
|
79
|
-
if (existsSync(`${withExt}.ts`))
|
|
80
|
-
return `${withExt}.ts`;
|
|
81
|
-
if (existsSync(`${withExt}.js`))
|
|
82
|
-
return `${withExt}.js`;
|
|
83
|
-
}
|
|
84
|
-
return pkgDir;
|
|
85
|
-
} catch {
|
|
86
|
-
return resolve(fromDir, specifier);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { discoverEntrypointsSync, discoverEntrypointsAsync, resolvePackageSpecifier };
|
package/dist/index-6nb7w45m.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
canProceedWithTest,
|
|
3
|
-
getAllUsageSummaries,
|
|
4
|
-
getLimits,
|
|
5
|
-
getUsage,
|
|
6
|
-
getUsageSummary,
|
|
7
|
-
isWithinLimits,
|
|
8
|
-
recordTestUsage,
|
|
9
|
-
recordUsage,
|
|
10
|
-
resetUsage,
|
|
11
|
-
setLimits,
|
|
12
|
-
setLimitsEnabled,
|
|
13
|
-
shouldSkip
|
|
14
|
-
} from "./index-7bq4xq84.js";
|
|
15
|
-
import {
|
|
16
|
-
clearGlobalDefaultAccountId,
|
|
17
|
-
getAccountById,
|
|
18
|
-
getAccountSummary,
|
|
19
|
-
getAccounts,
|
|
20
|
-
getAllServiceStatus,
|
|
21
|
-
getApiToken,
|
|
22
|
-
getEffectiveAccountId,
|
|
23
|
-
getGlobalDefaultAccountId,
|
|
24
|
-
getPrimaryAccount,
|
|
25
|
-
getServiceStatus,
|
|
26
|
-
getWorkspaceAccountId,
|
|
27
|
-
getWranglerAuth,
|
|
28
|
-
hasService,
|
|
29
|
-
hasWranglerConfig,
|
|
30
|
-
isAuthenticated,
|
|
31
|
-
listAIModels,
|
|
32
|
-
listD1Databases,
|
|
33
|
-
listKVNamespaces,
|
|
34
|
-
listR2Buckets,
|
|
35
|
-
listVectorizeIndexes,
|
|
36
|
-
listWorkers,
|
|
37
|
-
setGlobalDefaultAccountId,
|
|
38
|
-
setWorkspaceAccountId
|
|
39
|
-
} from "./index-xdq9ery1.js";
|
|
40
|
-
|
|
41
|
-
// src/cloudflare/index.ts
|
|
42
|
-
var account = {
|
|
43
|
-
isAuthenticated,
|
|
44
|
-
hasWranglerConfig,
|
|
45
|
-
getApiToken,
|
|
46
|
-
getWranglerAuth,
|
|
47
|
-
getAccounts,
|
|
48
|
-
getPrimaryAccount,
|
|
49
|
-
getAccountById,
|
|
50
|
-
getAccountSummary,
|
|
51
|
-
workers: listWorkers,
|
|
52
|
-
kv: listKVNamespaces,
|
|
53
|
-
d1: listD1Databases,
|
|
54
|
-
r2: listR2Buckets,
|
|
55
|
-
vectorize: listVectorizeIndexes,
|
|
56
|
-
ai: listAIModels,
|
|
57
|
-
getServiceStatus,
|
|
58
|
-
getAllServiceStatus,
|
|
59
|
-
hasService,
|
|
60
|
-
getUsage,
|
|
61
|
-
recordUsage,
|
|
62
|
-
resetUsage,
|
|
63
|
-
getAllUsageSummaries,
|
|
64
|
-
getUsageSummary,
|
|
65
|
-
getLimits,
|
|
66
|
-
setLimits,
|
|
67
|
-
setLimitsEnabled,
|
|
68
|
-
isWithinLimits,
|
|
69
|
-
canProceedWithTest,
|
|
70
|
-
recordTestUsage,
|
|
71
|
-
shouldSkip,
|
|
72
|
-
getGlobalDefaultAccountId,
|
|
73
|
-
setGlobalDefaultAccountId,
|
|
74
|
-
getWorkspaceAccountId,
|
|
75
|
-
setWorkspaceAccountId,
|
|
76
|
-
getEffectiveAccountId,
|
|
77
|
-
clearGlobalDefaultAccountId
|
|
78
|
-
};
|
|
79
|
-
export { account };
|