@package-broker/dist-cloudflare 0.0.0-stage → 2.0.0-rc.1
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/LICENSE +661 -0
- package/README.md +4 -2
- package/cloudflare/assets/app.0348e5888f99.js +15 -0
- package/cloudflare/assets/app.e8cea8b32d3a.css +2 -0
- package/cloudflare/assets/index.html +13 -0
- package/cloudflare/assets/manifest.json +26 -0
- package/cloudflare/assets/setup.98343039898f.js +1 -0
- package/cloudflare/assets/setup.html +14 -0
- package/cloudflare/assets.json +15 -0
- package/cloudflare/build-info.json +12 -0
- package/cloudflare/generated/manifest.json +74 -0
- package/cloudflare/migrations/core/0001_init.sql +1065 -0
- package/cloudflare/worker.js +80749 -0
- package/cloudflare/wrangler.toml +77 -0
- package/package.json +20 -3
- package/prebuilt.json +34 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
name = "package-broker"
|
|
2
|
+
main = "worker.js"
|
|
3
|
+
compatibility_date = "2026-10-01"
|
|
4
|
+
compatibility_flags = ["nodejs_compat"]
|
|
5
|
+
|
|
6
|
+
# With a custom public domain, list every active workers.dev alias in
|
|
7
|
+
# registry.outbound.extraSelfOrigins in broker.config.ts (or disable the alias).
|
|
8
|
+
# See docs/reference/workers-fill-limits.md.
|
|
9
|
+
#
|
|
10
|
+
# Operator template. Bindings are created by name at deploy time and no
|
|
11
|
+
# account or resource ids are committed. Every <deployment> placeholder must be
|
|
12
|
+
# resolved before deploying; unresolved placeholders do not deploy.
|
|
13
|
+
# Workers Paid is required (Queues). The binding and variable names below are
|
|
14
|
+
# the ones broker.config.ts and the runtime read: DB, STORAGE, JOBS, ANALYTICS
|
|
15
|
+
# and DEPLOYMENT_ID.
|
|
16
|
+
# EU jurisdiction applies to D1 and R2 and is fixed at creation time (ADR-020).
|
|
17
|
+
# It does not make Workers, Cache API, Queues, logs or Analytics Engine
|
|
18
|
+
# EU-resident.
|
|
19
|
+
#
|
|
20
|
+
# [[d1_databases]]
|
|
21
|
+
# binding = "DB"
|
|
22
|
+
# database_name = "<database-name>"
|
|
23
|
+
#
|
|
24
|
+
# [[r2_buckets]]
|
|
25
|
+
# binding = "STORAGE"
|
|
26
|
+
# bucket_name = "<deployment>-blobs"
|
|
27
|
+
# jurisdiction = "eu"
|
|
28
|
+
#
|
|
29
|
+
# [[queues.producers]]
|
|
30
|
+
# binding = "JOBS"
|
|
31
|
+
# queue = "<deployment>-jobs"
|
|
32
|
+
#
|
|
33
|
+
# [[queues.consumers]]
|
|
34
|
+
# queue = "<deployment>-jobs"
|
|
35
|
+
# max_batch_size = 1
|
|
36
|
+
# max_batch_timeout = 1
|
|
37
|
+
# max_retries = 4
|
|
38
|
+
# max_concurrency = 2
|
|
39
|
+
# dead_letter_queue = "<deployment>-jobs-dlq"
|
|
40
|
+
#
|
|
41
|
+
# No consumer is registered for the dead-letter queue: failed messages stay
|
|
42
|
+
# there for operator inspection and replay.
|
|
43
|
+
#
|
|
44
|
+
# [triggers]
|
|
45
|
+
# crons = ["* * * * *"]
|
|
46
|
+
#
|
|
47
|
+
# [[analytics_engine_datasets]]
|
|
48
|
+
# binding = "ANALYTICS"
|
|
49
|
+
# dataset = "<deployment>_metrics"
|
|
50
|
+
#
|
|
51
|
+
# Required when MCP is enabled. Limits are keyed by the token selector.
|
|
52
|
+
# [[unsafe.bindings]]
|
|
53
|
+
# name = "MCP_RATE_LIMIT"
|
|
54
|
+
# type = "ratelimit"
|
|
55
|
+
# namespace_id = "<mcp-rate-limit-namespace-id>"
|
|
56
|
+
# simple = { limit = 60, period = 60 }
|
|
57
|
+
#
|
|
58
|
+
# [vars]
|
|
59
|
+
# DEPLOYMENT_ID = "<deployment>"
|
|
60
|
+
#
|
|
61
|
+
# [observability]
|
|
62
|
+
# enabled = true
|
|
63
|
+
#
|
|
64
|
+
# [observability.logs]
|
|
65
|
+
# enabled = true
|
|
66
|
+
# invocation_logs = false
|
|
67
|
+
#
|
|
68
|
+
# [observability.traces]
|
|
69
|
+
# enabled = true
|
|
70
|
+
# head_sampling_rate = 0.05
|
|
71
|
+
#
|
|
72
|
+
[assets]
|
|
73
|
+
# binding = "ASSETS"
|
|
74
|
+
directory = "./assets"
|
|
75
|
+
# run_worker_first = true
|
|
76
|
+
# html_handling = "none"
|
|
77
|
+
# not_found_handling = "none"
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@package-broker/dist-cloudflare",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
|
+
"description": "Prebuilt Package Broker cloudflare distribution",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=24"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
"./prebuilt.json": "./prebuilt.json"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"cloudflare",
|
|
16
|
+
"prebuilt.json"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/package-broker/broker.git",
|
|
21
|
+
"directory": "packages/prebuilt-cloudflare"
|
|
22
|
+
}
|
|
6
23
|
}
|
package/prebuilt.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@package-broker/dist-cloudflare",
|
|
4
|
+
"version": "2.0.0-rc.1",
|
|
5
|
+
"target": "cloudflare",
|
|
6
|
+
"payload": "cloudflare",
|
|
7
|
+
"gitSha": "5997c3be88dab73518c955ab8734265e85302c37",
|
|
8
|
+
"lockfileSha256": "4872c707442182e31e7f951e7a9f3433dcfaddc03ab5b060760eddabfbadcfd5",
|
|
9
|
+
"toolchain": {
|
|
10
|
+
"node": "v24.22.0",
|
|
11
|
+
"esbuild": "0.28.2",
|
|
12
|
+
"os": "linux",
|
|
13
|
+
"arch": "x64"
|
|
14
|
+
},
|
|
15
|
+
"plugins": {
|
|
16
|
+
"@package-broker/plugin-sso-oidc": "0.1.0-rc.1",
|
|
17
|
+
"@package-broker/plugin-github": "0.1.0-rc.1"
|
|
18
|
+
},
|
|
19
|
+
"files": {
|
|
20
|
+
"assets.json": "sha256:36a83a51c7a86d33cbfd8904a47795fcf7e617dfafe64c14981756ad81ad28d6",
|
|
21
|
+
"assets/app.0348e5888f99.js": "sha256:0348e5888f995a3a69a7838cd62aee586a3adb180ab478b9b9633ddb19e80970",
|
|
22
|
+
"assets/app.e8cea8b32d3a.css": "sha256:e8cea8b32d3a515fa00caed5845d3d917e257477c9f201e4430d70d4cfbe4f7c",
|
|
23
|
+
"assets/index.html": "sha256:f251144135b29913a5c4a3567ae057fa645534dded15baf88741441c9372a498",
|
|
24
|
+
"assets/manifest.json": "sha256:9f659021dbe47516bd3780188a340c8ee3400c08d210ff942a946541ae28c2eb",
|
|
25
|
+
"assets/setup.98343039898f.js": "sha256:98343039898fc408bb2850b720f294b61d455369e24f022b85e7ade03bca26a7",
|
|
26
|
+
"assets/setup.html": "sha256:e335e9d2253387c6a3efe6a06a947d92f73648bff6a2a886627579dd3c72d3e2",
|
|
27
|
+
"build-info.json": "sha256:ab2ac634104b8c1de5776c07bfc232baf51f6543faa9d800f25c6eb8fc87a8f1",
|
|
28
|
+
"generated/manifest.json": "sha256:b2d37fdd27eb6e889d0e8a5a30e7b057692d7105bed2ab7fa0d1c213a3ee4d49",
|
|
29
|
+
"migrations/core/0001_init.sql": "sha256:a1005fb24893ffe9174ae1f1642b3f1270d853476183a47ce2b5e4d32471e2fb",
|
|
30
|
+
"worker.js": "sha256:ec4d30d510d430293a03f28d8e8b276c2aeccce337c30ade0e7bdde30cb6bae8",
|
|
31
|
+
"wrangler.toml": "sha256:bf05f14641a2e9a3f8fd595e2a9b8d946660206f4ea62cb114aa0bc7f5a3e917"
|
|
32
|
+
},
|
|
33
|
+
"artifactSha256": "3ca84a2506d168c02ec5fb71ddbfad9eaf778f3f278f017fdac36c24fde42dfa"
|
|
34
|
+
}
|