@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.370 → 5.0.0-alpha.371

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/README.md CHANGED
@@ -65,7 +65,7 @@ Any combination of capabilities can be enabled together:
65
65
 
66
66
  The `deployment`, `workers` and `tunnels` capabilities are only exposed when `accountId`
67
67
  is resolvable — either passed explicitly in options or set as the
68
- `CLOUDFLARE_ACCOUNT_ID` env var or in a `credentials` provider's Environment (the option wins, then the
68
+ `HOLOCRON_CLOUDFLARE_ACCOUNT_ID` (or `CLOUDFLARE_ACCOUNT_ID`) env var or in a `credentials` provider's Environment (the option wins, then the
69
69
  environment, then the provider).
70
70
 
71
71
  ## `dns` capability
package/dist/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AuthError, ProviderApiError, connectionProbe, createResolveToken, resolveValue } from "@theholocron/cli";
2
+ import { PREFIX } from "@theholocron/env-utils/lookup";
2
3
  import { createCloudflareClient } from "@theholocron/cloudflare-client";
3
4
  import { errorMessage } from "@theholocron/misc-utils";
4
5
  // src/auth.ts
@@ -402,7 +403,7 @@ async function verifyToken(token, opts = {}) {
402
403
  // src/index.ts
403
404
  /** Builds the plugin context from its options; the API token is resolved lazily on the first client use. */
404
405
  function createContext(options = {}) {
405
- const accountId = options.accountId ?? resolveValue(["CLOUDFLARE_ACCOUNT_ID"], options.env);
406
+ const accountId = options.accountId ?? resolveValue(["CLOUDFLARE_ACCOUNT_ID"], options.env, { prefix: PREFIX });
406
407
  const opts = {
407
408
  ...options,
408
409
  accountId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.370",
3
+ "version": "5.0.0-alpha.371",
4
4
  "description": "Holocron plugin for Cloudflare. Implements the dns capability against Cloudflare's REST API — zone resolution, DNS record management.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -29,6 +29,9 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
+ "dependencies": {
33
+ "@theholocron/env-utils": "^1.17.0-alpha.2"
34
+ },
32
35
  "devDependencies": {
33
36
  "@types/node": "^26",
34
37
  "@vitest/coverage-v8": "^5.1.0",
@@ -41,20 +44,20 @@
41
44
  "tsx": "4.23.15",
42
45
  "typescript": "^5.9.3",
43
46
  "vitest": "^5.1.0",
44
- "@theholocron/cli": "5.0.0-alpha.370",
45
- "@theholocron/cloudflare-client": "^1.58.0-alpha.17",
47
+ "@theholocron/cli": "5.0.0-alpha.371",
46
48
  "@theholocron/eslint-config": "^8.9.0-alpha.11",
47
- "@theholocron/http-client": "^1.58.0-alpha.17",
48
- "@theholocron/kyber": "5.0.0-alpha.370",
49
+ "@theholocron/http-client": "^1.58.0-alpha.18",
50
+ "@theholocron/kyber": "5.0.0-alpha.371",
49
51
  "@theholocron/misc-utils": "^1.17.0-alpha.2",
50
- "@theholocron/tsdown-config": "^8.9.0-alpha.11",
51
52
  "@theholocron/tsconfig": "^8.9.0-alpha.11",
53
+ "@theholocron/tsdown-config": "^8.9.0-alpha.11",
54
+ "@theholocron/cloudflare-client": "^1.58.0-alpha.18",
52
55
  "@theholocron/vitest-config": "^8.9.0-alpha.11"
53
56
  },
54
57
  "peerDependencies": {
55
58
  "@theholocron/cloudflare-client": "^1.53.1",
56
59
  "@theholocron/misc-utils": "^1.16.0",
57
- "@theholocron/cli": "5.0.0-alpha.370"
60
+ "@theholocron/cli": "5.0.0-alpha.371"
58
61
  },
59
62
  "peerDependenciesMeta": {
60
63
  "@theholocron/cloudflare-client": {}