devflare 1.0.0-next.39 → 1.0.0-next.40
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/_chunks/account-BtWcv3X9.js +462 -0
- package/dist/_chunks/account-resources-CsmVowJp.js +159 -0
- package/dist/_chunks/ai-CBEuLdoP.js +322 -0
- package/dist/_chunks/api-TzdliH-6.js +568 -0
- package/dist/_chunks/build-3T6O4uIg.js +24 -0
- package/dist/_chunks/build-artifacts-8TqBSQkG.js +483 -0
- package/dist/_chunks/cli-BTF1X4SG.js +1128 -0
- package/dist/_chunks/cloudflare-BaloqI3H.js +157 -0
- package/dist/_chunks/colors-DiK6wPJ5.js +13 -0
- package/dist/_chunks/command-utils-BsfkmTqh.js +45 -0
- package/dist/_chunks/compiler-uoyAQ8zW.js +424 -0
- package/dist/_chunks/config-D5u-bEkn.js +78 -0
- package/dist/_chunks/config-path-DCPto4XB.js +42 -0
- package/dist/_chunks/context-CX50Y2Kb.js +2250 -0
- package/dist/_chunks/decorators-QmV57ixr.js +19 -0
- package/dist/_chunks/dependencies-C2oxFjU_.js +57 -0
- package/dist/_chunks/deploy-DMTr6JeR.js +915 -0
- package/dist/_chunks/dev-CvRHmRFZ.js +3456 -0
- package/dist/_chunks/doctor-DIG8DoFU.js +219 -0
- package/dist/_chunks/durable-object-DMtH0XYX.js +234 -0
- package/dist/_chunks/env-S0_nMVz1.js +125 -0
- package/dist/_chunks/family-DXC5SdFK.js +143 -0
- package/dist/_chunks/generated-artifacts-dMJY4KAt.js +32 -0
- package/dist/_chunks/glob-CmQOvunB.js +56 -0
- package/dist/_chunks/init-3moXTgpb.js +165 -0
- package/dist/_chunks/loader-DLXO60RO.js +1153 -0
- package/dist/_chunks/local-dev-vars-CTSa-wvF.js +81 -0
- package/dist/_chunks/local-hyperdrive-CJ90j46O.js +119 -0
- package/dist/_chunks/local-media-bindings-DsAW4AMF.js +335 -0
- package/dist/_chunks/local-secrets-DMmEOygL.js +123 -0
- package/dist/_chunks/local-workflow-entrypoints-Wip3o1u8.js +90 -0
- package/dist/_chunks/login-BmnDzDlH.js +51 -0
- package/dist/_chunks/package-metadata-DAuCkyvK.js +39 -0
- package/dist/_chunks/preferences-BKp_7XJx.js +241 -0
- package/dist/_chunks/preview-BhqDmq8I.js +456 -0
- package/dist/_chunks/preview-registry-ClAbLTHH.js +1186 -0
- package/dist/_chunks/preview-resources-DdXj8LMM.js +358 -0
- package/dist/_chunks/previews-Dlr13x5M.js +1134 -0
- package/dist/_chunks/productions-D3AnOHac.js +411 -0
- package/dist/_chunks/ref-CYJNAAe_.js +178 -0
- package/dist/_chunks/remote-CZnP-HLJ.js +79 -0
- package/dist/_chunks/remote-config-D39BY9ji.js +132 -0
- package/dist/_chunks/resolve-package-Y84HB3Nt.js +133 -0
- package/dist/_chunks/rolldown-runtime-CvQ6eiug.js +14 -0
- package/dist/_chunks/routes-C3FqES2W.js +796 -0
- package/dist/_chunks/runtime-FvXvfuZ2.js +550 -0
- package/dist/_chunks/schema-normalization-DWVleVxo.js +477 -0
- package/dist/_chunks/secrets-70eN0Q6C.js +95 -0
- package/dist/_chunks/token-kguIDmej.js +333 -0
- package/dist/_chunks/tokens-iVcgNXi-.js +221 -0
- package/dist/_chunks/types-OrLbzv4I.js +476 -0
- package/dist/_chunks/ui-BUoZApvE.js +103 -0
- package/dist/_chunks/usage-BBTGzjon.js +272 -0
- package/dist/_chunks/vite-CsI0E-uV.js +1235 -0
- package/dist/_chunks/vite-utils-OVLMV605.js +183 -0
- package/dist/_chunks/worker-CS1jgNFE.js +410 -0
- package/dist/_chunks/worker-bundler-dTTnYU3n.js +458 -0
- package/dist/_chunks/worker-entrypoint-CQW77lG8.js +247 -0
- package/dist/_chunks/workerName-CFJsLZA-.js +23 -0
- package/dist/bridge/index.d.ts +6 -6
- package/dist/bridge/miniflare.d.ts +2 -2
- package/dist/bridge/proxy.d.ts +1 -1
- package/dist/bridge/v2/body-streams.d.ts +1 -1
- package/dist/bridge/v2/codec.d.ts +4 -4
- package/dist/bridge/v2/index.d.ts +10 -10
- package/dist/bridge/v2/serialization.d.ts +1 -1
- package/dist/bridge/v2/value-codec.d.ts +1 -1
- package/dist/bridge/v2/value-serialization.d.ts.map +1 -1
- package/dist/bridge/v2/ws-relay.d.ts +3 -3
- package/dist/browser-shim/index.d.ts +2 -2
- package/dist/browser.d.ts +70 -70
- package/dist/browser.js +74 -2462
- package/dist/bundler/do-bundler.d.ts +1 -1
- package/dist/bundler/index.d.ts +3 -3
- package/dist/bundler/rolldown-shared.d.ts +1 -1
- package/dist/bundler/worker-bundler.d.ts +1 -1
- package/dist/cli/build-manifest.d.ts +1 -1
- package/dist/cli/command-utils.d.ts +1 -1
- package/dist/cli/commands/account.d.ts +1 -1
- package/dist/cli/commands/ai.d.ts +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +5 -5
- package/dist/cli/commands/build.d.ts +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/deploy/prepare.d.ts +2 -2
- package/dist/cli/commands/deploy/runtime.d.ts +1 -1
- package/dist/cli/commands/deploy/verification.d.ts +1 -1
- package/dist/cli/commands/deploy.d.ts +1 -1
- package/dist/cli/commands/dev.d.ts +1 -1
- package/dist/cli/commands/doctor.d.ts +1 -1
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/login.d.ts +1 -1
- package/dist/cli/commands/previews-support/cleanup.d.ts +1 -1
- package/dist/cli/commands/previews-support/family.d.ts +3 -3
- package/dist/cli/commands/previews-support/render.d.ts +3 -3
- package/dist/cli/commands/previews-support/theme.d.ts +2 -2
- package/dist/cli/commands/previews-support/types.d.ts +2 -2
- package/dist/cli/commands/previews.d.ts +1 -1
- package/dist/cli/commands/productions.d.ts +1 -1
- package/dist/cli/commands/remote.d.ts +1 -1
- package/dist/cli/commands/secrets.d.ts +1 -1
- package/dist/cli/commands/token.d.ts +1 -1
- package/dist/cli/commands/type-generation/discovery.d.ts +2 -2
- package/dist/cli/commands/type-generation/generator.d.ts +3 -3
- package/dist/cli/commands/type-generation/models.d.ts +1 -1
- package/dist/cli/commands/types.d.ts +1 -1
- package/dist/cli/commands/worker.d.ts +1 -1
- package/dist/cli/deploy-strategy.d.ts +1 -1
- package/dist/cli/deploy-target.d.ts +1 -1
- package/dist/cli/help-pages/pages/account.d.ts +1 -1
- package/dist/cli/help-pages/pages/core.d.ts +1 -1
- package/dist/cli/help-pages/pages/index.d.ts +1 -1
- package/dist/cli/help-pages/pages/misc.d.ts +1 -1
- package/dist/cli/help-pages/pages/previews.d.ts +1 -1
- package/dist/cli/help-pages/pages/productions.d.ts +1 -1
- package/dist/cli/help-pages/render.d.ts +2 -2
- package/dist/cli/help-pages/shared.d.ts +1 -1
- package/dist/cli/help.d.ts +2 -2
- package/dist/cli/index.js +2 -1383
- package/dist/cli/preview-bindings.d.ts +3 -3
- package/dist/cli/preview.d.ts +1 -1
- package/dist/cli/wrangler-auth.d.ts +1 -1
- package/dist/cloudflare/account-core.d.ts +2 -2
- package/dist/cloudflare/account-resources.d.ts +2 -2
- package/dist/cloudflare/account-status.d.ts +1 -1
- package/dist/cloudflare/account-workers.d.ts +2 -2
- package/dist/cloudflare/account.d.ts +7 -7
- package/dist/cloudflare/auth.d.ts +1 -1
- package/dist/cloudflare/index.d.ts +13 -13
- package/dist/cloudflare/index.js +4 -59
- package/dist/cloudflare/kv-namespace.d.ts +1 -1
- package/dist/cloudflare/preview-registry-cache.d.ts +1 -1
- package/dist/cloudflare/preview-registry-inference.d.ts +2 -2
- package/dist/cloudflare/preview-registry-records.d.ts +3 -3
- package/dist/cloudflare/preview-registry-shape.d.ts +2 -2
- package/dist/cloudflare/preview-registry-store.d.ts +3 -3
- package/dist/cloudflare/preview-registry-transport.d.ts +2 -2
- package/dist/cloudflare/preview-registry-types.d.ts +2 -2
- package/dist/cloudflare/preview-registry.d.ts +5 -5
- package/dist/cloudflare/tokens.d.ts +2 -2
- package/dist/cloudflare/usage.d.ts +2 -2
- package/dist/config/binding-resolution-helpers.d.ts +1 -1
- package/dist/config/compiler/bindings.d.ts +2 -2
- package/dist/config/compiler/core-helpers.d.ts +2 -2
- package/dist/config/compiler/do-workers.d.ts +2 -2
- package/dist/config/compiler/paths.d.ts +1 -1
- package/dist/config/compiler.d.ts +6 -6
- package/dist/config/define.d.ts +2 -2
- package/dist/config/deploy-resources.d.ts +5 -5
- package/dist/config/env-vars.d.ts +1 -1
- package/dist/config/framework-providers.d.ts +1 -1
- package/dist/config/index.d.ts +12 -12
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/local-dev-vars.d.ts +1 -1
- package/dist/config/preview-resources.d.ts +4 -4
- package/dist/config/preview.d.ts +1 -1
- package/dist/config/ref.d.ts +2 -2
- package/dist/config/resolve-phased.d.ts +4 -4
- package/dist/config/resolve.d.ts +1 -1
- package/dist/config/resource-resolution.d.ts +6 -6
- package/dist/config/schema-env.d.ts +20 -20
- package/dist/config/schema-normalization.d.ts +1 -1
- package/dist/config/schema-types-bindings.d.ts +4 -4
- package/dist/config/schema-types-build.d.ts +1 -1
- package/dist/config/schema-types.d.ts +7 -7
- package/dist/config/schema.d.ts +46 -46
- package/dist/config/service-bindings-validation.d.ts +1 -1
- package/dist/config-entry.d.ts +6 -6
- package/dist/config-entry.js +3 -8
- package/dist/decorators/index.d.ts +2 -2
- package/dist/decorators/index.js +2 -9
- package/dist/dev-server/d1-migrations.d.ts +1 -1
- package/dist/dev-server/dev-server-state.d.ts +6 -6
- package/dist/dev-server/gateway-script.d.ts +1 -1
- package/dist/dev-server/index.d.ts +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts +5 -5
- package/dist/dev-server/miniflare-worker-config.d.ts +3 -3
- package/dist/dev-server/server-startup-helpers.d.ts +6 -6
- package/dist/dev-server/worker-surface-paths.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -22
- package/dist/runtime/context-events.d.ts +1 -1
- package/dist/runtime/context.d.ts +3 -3
- package/dist/runtime/exports.d.ts +2 -2
- package/dist/runtime/index.d.ts +10 -10
- package/dist/runtime/index.js +5 -57
- package/dist/runtime/middleware.d.ts +1 -1
- package/dist/runtime/router/index.d.ts +3 -3
- package/dist/runtime/validation.d.ts +1 -1
- package/dist/secrets/local-secrets.d.ts +1 -1
- package/dist/shims/local-media-bindings.d.ts +1 -1
- package/dist/sveltekit/index.d.ts +1 -1
- package/dist/sveltekit/index.js +327 -9
- package/dist/sveltekit/local-bindings.d.ts +1 -1
- package/dist/sveltekit/platform.d.ts +1 -1
- package/dist/test/binding-hints.d.ts +2 -2
- package/dist/test/cf.d.ts +19 -19
- package/dist/test/index.d.ts +18 -18
- package/dist/test/index.js +4495 -46
- package/dist/test/offline-bindings.d.ts +3 -3
- package/dist/test/resolve-service-bindings.d.ts +1 -1
- package/dist/test/simple-context-bindings.d.ts +1 -1
- package/dist/test/simple-context-durable-objects.d.ts +1 -1
- package/dist/test/simple-context-env.d.ts +2 -2
- package/dist/test/simple-context-handlers.d.ts +2 -2
- package/dist/test/simple-context-lifecycle.d.ts +2 -2
- package/dist/test/simple-context-mfconfig.d.ts +1 -1
- package/dist/test/simple-context-multi-worker.d.ts +2 -2
- package/dist/test/simple-context-runtime.d.ts +1 -1
- package/dist/test/simple-context-startup.d.ts +1 -1
- package/dist/test/simple-context.d.ts +1 -1
- package/dist/test/utilities/env.d.ts +3 -3
- package/dist/test/utilities.d.ts +10 -10
- package/dist/test/worker.d.ts +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/utils/send-email.js +163 -19
- package/dist/vite/config-file.d.ts +2 -2
- package/dist/vite/index.d.ts +3 -3
- package/dist/vite/index.js +2 -31
- package/dist/vite/plugin-config-hook.d.ts +1 -1
- package/dist/vite/plugin-context.d.ts +3 -3
- package/dist/vite/plugin-durable-objects.d.ts +2 -2
- package/dist/vite/plugin-programmatic.d.ts +1 -1
- package/dist/vite/plugin-service-bindings.d.ts +2 -2
- package/dist/vite/plugin.d.ts +3 -3
- package/dist/worker-entry/composed-worker.d.ts +1 -1
- package/dist/worker-entry/routes.d.ts +2 -2
- package/dist/worker-entry/surface-paths.d.ts +1 -1
- package/dist/workflows/local-workflow-entrypoints.d.ts +1 -1
- package/package.json +5 -3
- package/dist/account-4tgh03a8.js +0 -484
- package/dist/ai-r3zqmxan.js +0 -261
- package/dist/api-6z01z734.js +0 -33
- package/dist/build-kw625v84.js +0 -51
- package/dist/config-ghk2bxj3.js +0 -102
- package/dist/deploy-9kee65n9.js +0 -1062
- package/dist/dev-x8zr249a.js +0 -3569
- package/dist/doctor-0ng5qrr1.js +0 -258
- package/dist/durable-object-0ybmg08a.js +0 -13
- package/dist/index-04wh9bxx.js +0 -514
- package/dist/index-0cc05hzv.js +0 -74
- package/dist/index-2yv7w548.js +0 -185
- package/dist/index-37x76zdn.js +0 -4
- package/dist/index-3cpzsr47.js +0 -125
- package/dist/index-3t6rypgc.js +0 -13
- package/dist/index-4mmpccrb.js +0 -309
- package/dist/index-5dkjffqz.js +0 -25
- package/dist/index-5hy7jmv3.js +0 -890
- package/dist/index-627srx16.js +0 -45
- package/dist/index-7m557715.js +0 -283
- package/dist/index-a8pnvg3r.js +0 -52
- package/dist/index-aabgympv.js +0 -39
- package/dist/index-atwc3csp.js +0 -256
- package/dist/index-cv4cvrxe.js +0 -2046
- package/dist/index-h7r11y4a.js +0 -539
- package/dist/index-hvtd936d.js +0 -1229
- package/dist/index-kcp7y951.js +0 -136
- package/dist/index-maw0jjnn.js +0 -147
- package/dist/index-mek9msfv.js +0 -705
- package/dist/index-n4xkaymm.js +0 -236
- package/dist/index-nkk59p3y.js +0 -579
- package/dist/index-phcrvs6d.js +0 -342
- package/dist/index-se4kw8tm.js +0 -460
- package/dist/index-x8s9rwfh.js +0 -2020
- package/dist/index-y7w3x9p1.js +0 -18
- package/dist/index-z9gy8w6b.js +0 -57
- package/dist/index-zdd0d9qa.js +0 -199
- package/dist/init-tb8jqgvr.js +0 -180
- package/dist/login-4h1sfsed.js +0 -75
- package/dist/previews-qr7c5j8h.js +0 -1336
- package/dist/productions-xpmd6bw8.js +0 -505
- package/dist/remote-kqcvhnfx.js +0 -192
- package/dist/secrets-6wbdsdek.js +0 -89
- package/dist/token-yp1qa70y.js +0 -419
- package/dist/types-15yv4cj3.js +0 -701
- package/dist/worker-1yg72jxg.js +0 -510
- package/dist/worker-entrypoint-y8s9kdcx.js +0 -15
package/dist/ai-r3zqmxan.js
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BG_BLUE,
|
|
3
|
-
BOLD,
|
|
4
|
-
DIM,
|
|
5
|
-
RESET,
|
|
6
|
-
WHITE
|
|
7
|
-
} from "./index-3t6rypgc.js";
|
|
8
|
-
import"./index-37x76zdn.js";
|
|
9
|
-
|
|
10
|
-
// src/cloudflare/pricing.ts
|
|
11
|
-
var PRICING_DOCS_URL = "https://developers.cloudflare.com/workers-ai/platform/pricing/";
|
|
12
|
-
var PRICE_PER_1000_NEURONS_USD = 0.011;
|
|
13
|
-
var FREE_TIER_NEURONS_PER_DAY = 1e4;
|
|
14
|
-
|
|
15
|
-
// src/cli/commands/ai.ts
|
|
16
|
-
var LLM_PRICING = [
|
|
17
|
-
{
|
|
18
|
-
model: "@cf/ibm-granite/granite-4.0-h-micro",
|
|
19
|
-
inputPrice: "$0.017",
|
|
20
|
-
outputPrice: "$0.112",
|
|
21
|
-
inputNeurons: "1542",
|
|
22
|
-
outputNeurons: "10158"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
model: "@cf/meta/llama-3.2-1b-instruct",
|
|
26
|
-
inputPrice: "$0.027",
|
|
27
|
-
outputPrice: "$0.201",
|
|
28
|
-
inputNeurons: "2457",
|
|
29
|
-
outputNeurons: "18252"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
model: "@cf/meta/llama-3.2-3b-instruct",
|
|
33
|
-
inputPrice: "$0.051",
|
|
34
|
-
outputPrice: "$0.335",
|
|
35
|
-
inputNeurons: "4625",
|
|
36
|
-
outputNeurons: "30475"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
model: "@cf/qwen/qwen3-30b-a3b-fp8",
|
|
40
|
-
inputPrice: "$0.051",
|
|
41
|
-
outputPrice: "$0.335",
|
|
42
|
-
inputNeurons: "4625",
|
|
43
|
-
outputNeurons: "30475"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
model: "@cf/meta/llama-3.1-8b-instruct-fp8-fast",
|
|
47
|
-
inputPrice: "$0.045",
|
|
48
|
-
outputPrice: "$0.384",
|
|
49
|
-
inputNeurons: "4119",
|
|
50
|
-
outputNeurons: "34868"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
model: "@cf/meta/llama-3.2-11b-vision-instruct",
|
|
54
|
-
inputPrice: "$0.049",
|
|
55
|
-
outputPrice: "$0.676",
|
|
56
|
-
inputNeurons: "4410",
|
|
57
|
-
outputNeurons: "61493"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
model: "@cf/mistral/mistral-7b-instruct-v0.1",
|
|
61
|
-
inputPrice: "$0.110",
|
|
62
|
-
outputPrice: "$0.190",
|
|
63
|
-
inputNeurons: "10000",
|
|
64
|
-
outputNeurons: "17300"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
model: "@cf/meta/llama-3-8b-instruct-awq",
|
|
68
|
-
inputPrice: "$0.123",
|
|
69
|
-
outputPrice: "$0.266",
|
|
70
|
-
inputNeurons: "11161",
|
|
71
|
-
outputNeurons: "24215"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
model: "@cf/meta/llama-3.1-8b-instruct-awq",
|
|
75
|
-
inputPrice: "$0.123",
|
|
76
|
-
outputPrice: "$0.266",
|
|
77
|
-
inputNeurons: "11161",
|
|
78
|
-
outputNeurons: "24215"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
model: "@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
82
|
-
inputPrice: "$0.152",
|
|
83
|
-
outputPrice: "$0.287",
|
|
84
|
-
inputNeurons: "13778",
|
|
85
|
-
outputNeurons: "26128"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
model: "@cf/openai/gpt-oss-20b",
|
|
89
|
-
inputPrice: "$0.200",
|
|
90
|
-
outputPrice: "$0.300",
|
|
91
|
-
inputNeurons: "18182",
|
|
92
|
-
outputNeurons: "27273"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
model: "@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
96
|
-
inputPrice: "$0.270",
|
|
97
|
-
outputPrice: "$0.850",
|
|
98
|
-
inputNeurons: "24545",
|
|
99
|
-
outputNeurons: "77273"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
model: "@cf/meta/llama-3.1-8b-instruct",
|
|
103
|
-
inputPrice: "$0.282",
|
|
104
|
-
outputPrice: "$0.827",
|
|
105
|
-
inputNeurons: "25608",
|
|
106
|
-
outputNeurons: "75147"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
model: "@cf/meta/llama-3-8b-instruct",
|
|
110
|
-
inputPrice: "$0.282",
|
|
111
|
-
outputPrice: "$0.827",
|
|
112
|
-
inputNeurons: "25608",
|
|
113
|
-
outputNeurons: "75147"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
model: "@cf/meta/llama-3.1-70b-instruct-fp8-fast",
|
|
117
|
-
inputPrice: "$0.293",
|
|
118
|
-
outputPrice: "$2.253",
|
|
119
|
-
inputNeurons: "26668",
|
|
120
|
-
outputNeurons: "204805"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
model: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
124
|
-
inputPrice: "$0.293",
|
|
125
|
-
outputPrice: "$2.253",
|
|
126
|
-
inputNeurons: "26668",
|
|
127
|
-
outputNeurons: "204805"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
model: "@cf/google/gemma-3-12b-it",
|
|
131
|
-
inputPrice: "$0.345",
|
|
132
|
-
outputPrice: "$0.556",
|
|
133
|
-
inputNeurons: "31371",
|
|
134
|
-
outputNeurons: "50560"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
model: "@cf/openai/gpt-oss-120b",
|
|
138
|
-
inputPrice: "$0.350",
|
|
139
|
-
outputPrice: "$0.750",
|
|
140
|
-
inputNeurons: "31818",
|
|
141
|
-
outputNeurons: "68182"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
model: "@cf/mistralai/mistral-small-3.1-24b-instruct",
|
|
145
|
-
inputPrice: "$0.351",
|
|
146
|
-
outputPrice: "$0.555",
|
|
147
|
-
inputNeurons: "31876",
|
|
148
|
-
outputNeurons: "50488"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
model: "@cf/aisingapore/gemma-sea-lion-v4-27b-it",
|
|
152
|
-
inputPrice: "$0.351",
|
|
153
|
-
outputPrice: "$0.555",
|
|
154
|
-
inputNeurons: "31876",
|
|
155
|
-
outputNeurons: "50488"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
model: "@cf/meta/llama-guard-3-8b",
|
|
159
|
-
inputPrice: "$0.484",
|
|
160
|
-
outputPrice: "$0.030",
|
|
161
|
-
inputNeurons: "44003",
|
|
162
|
-
outputNeurons: "2730"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
model: "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
166
|
-
inputPrice: "$0.497",
|
|
167
|
-
outputPrice: "$4.881",
|
|
168
|
-
inputNeurons: "45170",
|
|
169
|
-
outputNeurons: "443756"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
model: "@cf/meta/llama-2-7b-chat-fp16",
|
|
173
|
-
inputPrice: "$0.556",
|
|
174
|
-
outputPrice: "$6.667",
|
|
175
|
-
inputNeurons: "50505",
|
|
176
|
-
outputNeurons: "606061"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
model: "@cf/qwen/qwq-32b",
|
|
180
|
-
inputPrice: "$0.660",
|
|
181
|
-
outputPrice: "$1.000",
|
|
182
|
-
inputNeurons: "60000",
|
|
183
|
-
outputNeurons: "90909"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
model: "@cf/qwen/qwen2.5-coder-32b-instruct",
|
|
187
|
-
inputPrice: "$0.660",
|
|
188
|
-
outputPrice: "$1.000",
|
|
189
|
-
inputNeurons: "60000",
|
|
190
|
-
outputNeurons: "90909"
|
|
191
|
-
}
|
|
192
|
-
];
|
|
193
|
-
var EMBEDDING_PRICING = [
|
|
194
|
-
{ model: "@cf/baai/bge-m3", price: "$0.012", neurons: "1075" },
|
|
195
|
-
{ model: "@cf/qwen/qwen3-embedding-0.6b", price: "$0.012", neurons: "1075" },
|
|
196
|
-
{ model: "@cf/pfnet/plamo-embedding-1b", price: "$0.019", neurons: "1689" },
|
|
197
|
-
{ model: "@cf/baai/bge-small-en-v1.5", price: "$0.020", neurons: "1841" },
|
|
198
|
-
{ model: "@cf/baai/bge-base-en-v1.5", price: "$0.067", neurons: "6058" },
|
|
199
|
-
{ model: "@cf/baai/bge-large-en-v1.5", price: "$0.204", neurons: "18582" }
|
|
200
|
-
];
|
|
201
|
-
var IMAGE_PRICING = [
|
|
202
|
-
{
|
|
203
|
-
model: "@cf/black-forest-labs/flux-1-schnell",
|
|
204
|
-
tilePrice: "$0.0000528",
|
|
205
|
-
stepPrice: "$0.0001056"
|
|
206
|
-
},
|
|
207
|
-
{ model: "@cf/leonardo/phoenix-1.0", tilePrice: "$0.005830", stepPrice: "$0.000110" },
|
|
208
|
-
{ model: "@cf/leonardo/lucid-origin", tilePrice: "$0.006996", stepPrice: "$0.000132" }
|
|
209
|
-
];
|
|
210
|
-
var AUDIO_PRICING = [
|
|
211
|
-
{ model: "@cf/myshell-ai/melotts", price: "$0.0002", unit: "per audio minute" },
|
|
212
|
-
{ model: "@cf/openai/whisper", price: "$0.0005", unit: "per audio minute" },
|
|
213
|
-
{ model: "@cf/openai/whisper-large-v3-turbo", price: "$0.0005", unit: "per audio minute" },
|
|
214
|
-
{ model: "@cf/deepgram/nova-3", price: "$0.0052", unit: "per audio minute" },
|
|
215
|
-
{ model: "@cf/deepgram/flux (WebSocket)", price: "$0.0077", unit: "per audio minute" },
|
|
216
|
-
{ model: "@cf/deepgram/nova-3 (WebSocket)", price: "$0.0092", unit: "per audio minute" },
|
|
217
|
-
{ model: "@cf/deepgram/aura-1", price: "$0.015", unit: "per 1k characters" },
|
|
218
|
-
{ model: "@cf/deepgram/aura-2-en", price: "$0.030", unit: "per 1k characters" },
|
|
219
|
-
{ model: "@cf/deepgram/aura-2-es", price: "$0.030", unit: "per 1k characters" }
|
|
220
|
-
];
|
|
221
|
-
function log(message = "") {
|
|
222
|
-
console.log(message);
|
|
223
|
-
}
|
|
224
|
-
function header(title) {
|
|
225
|
-
console.log(`
|
|
226
|
-
${BG_BLUE}${WHITE}${BOLD} ${title} ${RESET}`);
|
|
227
|
-
}
|
|
228
|
-
function runAICommand() {
|
|
229
|
-
log("\uD83E\uDD16 Workers AI");
|
|
230
|
-
log();
|
|
231
|
-
log(`${BOLD}Pricing${RESET} $${PRICE_PER_1000_NEURONS_USD.toFixed(3)} per 1,000 neurons`);
|
|
232
|
-
log(`${BOLD}Free${RESET} ${FREE_TIER_NEURONS_PER_DAY.toLocaleString("en-US")} neurons/day`);
|
|
233
|
-
log(`${DIM}${PRICING_DOCS_URL}${RESET}`);
|
|
234
|
-
header("LLM model pricing");
|
|
235
|
-
for (const m of LLM_PRICING) {
|
|
236
|
-
log(` • ${m.model}`);
|
|
237
|
-
log(` ${DIM}${m.inputPrice} per M input tokens${RESET}`);
|
|
238
|
-
log(` ${DIM}${m.outputPrice} per M output tokens${RESET}`);
|
|
239
|
-
}
|
|
240
|
-
header("Embeddings model pricing");
|
|
241
|
-
for (const m of EMBEDDING_PRICING) {
|
|
242
|
-
log(` • ${m.model}`);
|
|
243
|
-
log(` ${DIM}${m.price} per M input tokens${RESET}`);
|
|
244
|
-
}
|
|
245
|
-
header("Image model pricing");
|
|
246
|
-
for (const m of IMAGE_PRICING) {
|
|
247
|
-
log(` • ${m.model}`);
|
|
248
|
-
log(` ${DIM}${m.tilePrice} per 512x512 tile${RESET}`);
|
|
249
|
-
log(` ${DIM}${m.stepPrice} per step${RESET}`);
|
|
250
|
-
}
|
|
251
|
-
header("Audio model pricing");
|
|
252
|
-
for (const m of AUDIO_PRICING) {
|
|
253
|
-
log(` • ${m.model}`);
|
|
254
|
-
log(` ${DIM}${m.price} ${m.unit}${RESET}`);
|
|
255
|
-
}
|
|
256
|
-
log();
|
|
257
|
-
return { exitCode: 0 };
|
|
258
|
-
}
|
|
259
|
-
export {
|
|
260
|
-
runAICommand
|
|
261
|
-
};
|
package/dist/api-6z01z734.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AuthenticationError,
|
|
3
|
-
CloudflareAPIError,
|
|
4
|
-
apiDelete,
|
|
5
|
-
apiGet,
|
|
6
|
-
apiGetAll,
|
|
7
|
-
apiPatch,
|
|
8
|
-
apiPost,
|
|
9
|
-
apiPut,
|
|
10
|
-
createCloudflareAuthSession,
|
|
11
|
-
kvDelete,
|
|
12
|
-
kvGet,
|
|
13
|
-
kvPut,
|
|
14
|
-
parseCloudflareEnvelope,
|
|
15
|
-
parseRawJson
|
|
16
|
-
} from "./index-04wh9bxx.js";
|
|
17
|
-
import"./index-37x76zdn.js";
|
|
18
|
-
export {
|
|
19
|
-
parseRawJson,
|
|
20
|
-
parseCloudflareEnvelope,
|
|
21
|
-
kvPut,
|
|
22
|
-
kvGet,
|
|
23
|
-
kvDelete,
|
|
24
|
-
createCloudflareAuthSession,
|
|
25
|
-
apiPut,
|
|
26
|
-
apiPost,
|
|
27
|
-
apiPatch,
|
|
28
|
-
apiGetAll,
|
|
29
|
-
apiGet,
|
|
30
|
-
apiDelete,
|
|
31
|
-
CloudflareAPIError,
|
|
32
|
-
AuthenticationError
|
|
33
|
-
};
|
package/dist/build-kw625v84.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
prepareBuildArtifacts
|
|
3
|
-
} from "./index-nkk59p3y.js";
|
|
4
|
-
import"./index-aabgympv.js";
|
|
5
|
-
import"./index-z9gy8w6b.js";
|
|
6
|
-
import"./index-5hy7jmv3.js";
|
|
7
|
-
import"./index-zdd0d9qa.js";
|
|
8
|
-
import"./index-627srx16.js";
|
|
9
|
-
import {
|
|
10
|
-
createCliTheme,
|
|
11
|
-
cyanBold,
|
|
12
|
-
dim,
|
|
13
|
-
logLine
|
|
14
|
-
} from "./index-maw0jjnn.js";
|
|
15
|
-
import"./index-3t6rypgc.js";
|
|
16
|
-
import"./index-cv4cvrxe.js";
|
|
17
|
-
import"./index-3cpzsr47.js";
|
|
18
|
-
import"./index-5dkjffqz.js";
|
|
19
|
-
import"./index-mek9msfv.js";
|
|
20
|
-
import"./index-x8s9rwfh.js";
|
|
21
|
-
import"./index-h7r11y4a.js";
|
|
22
|
-
import"./index-04wh9bxx.js";
|
|
23
|
-
import"./index-7m557715.js";
|
|
24
|
-
import"./index-4mmpccrb.js";
|
|
25
|
-
import"./index-37x76zdn.js";
|
|
26
|
-
|
|
27
|
-
// src/cli/commands/build.ts
|
|
28
|
-
async function runBuildCommand(parsed, logger, options) {
|
|
29
|
-
const theme = createCliTheme(parsed.options);
|
|
30
|
-
logLine(logger);
|
|
31
|
-
logLine(logger, `${cyanBold("build", theme)} ${dim("Preparing production artifacts", theme)}`);
|
|
32
|
-
try {
|
|
33
|
-
await prepareBuildArtifacts(parsed, logger, options);
|
|
34
|
-
logger.success("Generated .devflare/wrangler.jsonc");
|
|
35
|
-
logger.success("Generated .devflare/build/wrangler.jsonc");
|
|
36
|
-
logger.success("Generated .wrangler/deploy/config.json");
|
|
37
|
-
logger.success("Build complete!");
|
|
38
|
-
return { exitCode: 0 };
|
|
39
|
-
} catch (error) {
|
|
40
|
-
if (error instanceof Error) {
|
|
41
|
-
logger.error("Build failed:", error.message);
|
|
42
|
-
if (parsed.options.debug) {
|
|
43
|
-
logger.error(error.stack);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return { exitCode: 1 };
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
runBuildCommand
|
|
51
|
-
};
|
package/dist/config-ghk2bxj3.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
compileBuildConfig,
|
|
3
|
-
compileConfig
|
|
4
|
-
} from "./index-mek9msfv.js";
|
|
5
|
-
import {
|
|
6
|
-
ConfigResourceResolutionError,
|
|
7
|
-
loadConfig,
|
|
8
|
-
loadResolvedConfig,
|
|
9
|
-
resolveConfigEnvVars,
|
|
10
|
-
resolveResources
|
|
11
|
-
} from "./index-x8s9rwfh.js";
|
|
12
|
-
import"./index-h7r11y4a.js";
|
|
13
|
-
import"./index-04wh9bxx.js";
|
|
14
|
-
import"./index-37x76zdn.js";
|
|
15
|
-
|
|
16
|
-
// src/cli/commands/config.ts
|
|
17
|
-
function isSupportedFormat(value) {
|
|
18
|
-
return value === "devflare" || value === "wrangler";
|
|
19
|
-
}
|
|
20
|
-
function isSupportedPhase(value) {
|
|
21
|
-
return value === "build" || value === "local" || value === "deploy";
|
|
22
|
-
}
|
|
23
|
-
async function loadConfigForPhase(options) {
|
|
24
|
-
if (options.phase === "deploy") {
|
|
25
|
-
const resolvedConfig = await loadResolvedConfig({
|
|
26
|
-
cwd: options.cwd,
|
|
27
|
-
configFile: options.configPath,
|
|
28
|
-
environment: options.environment
|
|
29
|
-
});
|
|
30
|
-
return await resolveConfigEnvVars(resolvedConfig, {
|
|
31
|
-
cwd: options.cwd,
|
|
32
|
-
configPath: options.configPath,
|
|
33
|
-
mode: "build"
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
const config = await loadConfig({
|
|
37
|
-
cwd: options.cwd,
|
|
38
|
-
configFile: options.configPath
|
|
39
|
-
});
|
|
40
|
-
const resourceResolvedConfig = await resolveResources(config, {
|
|
41
|
-
phase: options.phase,
|
|
42
|
-
environment: options.environment
|
|
43
|
-
});
|
|
44
|
-
return await resolveConfigEnvVars(resourceResolvedConfig, {
|
|
45
|
-
cwd: options.cwd,
|
|
46
|
-
configPath: options.configPath,
|
|
47
|
-
mode: options.phase === "local" ? "dev" : "build"
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
async function runConfigCommand(parsed, logger, options) {
|
|
51
|
-
const cwd = options.cwd || process.cwd();
|
|
52
|
-
const configPath = parsed.options.config;
|
|
53
|
-
const environment = parsed.options.env;
|
|
54
|
-
const subcommand = parsed.args[0] ?? "print";
|
|
55
|
-
const formatOption = parsed.options.format;
|
|
56
|
-
const format = formatOption ?? "devflare";
|
|
57
|
-
const phaseOption = parsed.options.local === true ? "local" : parsed.options.phase ?? "deploy";
|
|
58
|
-
if (subcommand !== "print") {
|
|
59
|
-
logger.error(`Unknown config subcommand: ${subcommand}`);
|
|
60
|
-
logger.info("Supported subcommands: print");
|
|
61
|
-
return { exitCode: 1 };
|
|
62
|
-
}
|
|
63
|
-
if (!isSupportedFormat(format)) {
|
|
64
|
-
logger.error(`Unsupported config format: ${format}`);
|
|
65
|
-
logger.info("Supported formats: devflare, wrangler");
|
|
66
|
-
return { exitCode: 1 };
|
|
67
|
-
}
|
|
68
|
-
if (!isSupportedPhase(phaseOption)) {
|
|
69
|
-
logger.error(`Unsupported config phase: ${phaseOption}`);
|
|
70
|
-
logger.info("Supported phases: build, local, deploy");
|
|
71
|
-
return { exitCode: 1 };
|
|
72
|
-
}
|
|
73
|
-
try {
|
|
74
|
-
const resolvedConfig = await loadConfigForPhase({
|
|
75
|
-
cwd,
|
|
76
|
-
configPath,
|
|
77
|
-
environment,
|
|
78
|
-
phase: phaseOption
|
|
79
|
-
});
|
|
80
|
-
const output = format === "wrangler" ? phaseOption === "build" ? compileBuildConfig(resolvedConfig, undefined, { alreadyResolved: true }) : compileConfig(resolvedConfig) : resolvedConfig;
|
|
81
|
-
const text = JSON.stringify(output, null, "\t");
|
|
82
|
-
if (!options.silent) {
|
|
83
|
-
process.stdout.write(`${text}
|
|
84
|
-
`);
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
exitCode: 0,
|
|
88
|
-
output: text
|
|
89
|
-
};
|
|
90
|
-
} catch (error) {
|
|
91
|
-
if (error instanceof Error) {
|
|
92
|
-
logger.error("Config command failed:", error.message);
|
|
93
|
-
if (error instanceof ConfigResourceResolutionError) {
|
|
94
|
-
logger.info("For offline inspection, run `devflare config --phase local` or `devflare config --phase build --format wrangler`.");
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return { exitCode: 1 };
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
runConfigCommand
|
|
102
|
-
};
|