@theholocron/holocron-plugin-cloudflare 5.0.0-alpha.123 → 5.0.0-alpha.124

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/index.d.mts CHANGED
@@ -42,6 +42,11 @@ declare class CloudflareDns implements Dns {
42
42
  listRecords(domain: string): Promise<DnsRecord[]>;
43
43
  upsertRecord(domain: string, record: DnsRecord): Promise<DnsRecord>;
44
44
  deleteRecord(domain: string, id: string): Promise<void>;
45
+ /** `holocron doctor` has no specific domain to check — lists every zone the token can see instead. */
46
+ whoami(): Promise<{
47
+ ok: boolean;
48
+ zones: number;
49
+ }>;
45
50
  /**
46
51
  * Walk from full domain up to apex to find the Cloudflare zone.
47
52
  * E.g. "api.staging.example.com" tries:
package/dist/index.mjs CHANGED
@@ -155,6 +155,13 @@ var CloudflareDns = class {
155
155
  const zoneId = await this.resolveZone(domain);
156
156
  await this.client().dns.delete(zoneId, id);
157
157
  }
158
+ /** `holocron doctor` has no specific domain to check — lists every zone the token can see instead. */
159
+ async whoami() {
160
+ return {
161
+ ok: true,
162
+ zones: (await this.client().zones.list()).length
163
+ };
164
+ }
158
165
  /**
159
166
  * Walk from full domain up to apex to find the Cloudflare zone.
160
167
  * E.g. "api.staging.example.com" tries:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-cloudflare",
3
- "version": "5.0.0-alpha.123",
3
+ "version": "5.0.0-alpha.124",
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",
@@ -48,12 +48,12 @@
48
48
  "tsx": "4.23.12",
49
49
  "typescript": "^5.9.3",
50
50
  "vitest": "^4.1.11",
51
- "@theholocron/cli": "5.0.0-alpha.123"
51
+ "@theholocron/cli": "5.0.0-alpha.124"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@theholocron/cloudflare-client": "^1.38.0",
55
55
  "@theholocron/misc-utils": "^1.9.2",
56
- "@theholocron/cli": "5.0.0-alpha.123"
56
+ "@theholocron/cli": "5.0.0-alpha.124"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@theholocron/cloudflare-client": {}