@camstack/addon-cloudflare 1.0.1 → 1.0.2

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.
@@ -12212,7 +12212,7 @@ method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchem
12212
12212
  * rebuilds without manual reload.
12213
12213
  *
12214
12214
  * The hub-local builtin `addon-pages-aggregator` (see
12215
- * `@camstack/core/builtins/addon-pages-aggregator`) registers the
12215
+ * `@camstack/system/builtins/addon-pages-aggregator`) registers the
12216
12216
  * provider. Splitting the public aggregator from the raw collection
12217
12217
  * keeps both ends in codegen — there's no hand-written
12218
12218
  * `addon-pages.router.ts` wrapper anymore.
@@ -12395,7 +12395,7 @@ method(_void(), array(WidgetMetadataSchema).readonly());
12395
12395
  * manual reload — same scheme used by `addon-pages`.
12396
12396
  *
12397
12397
  * The hub-local builtin `addon-widgets-aggregator` (see
12398
- * `@camstack/core/builtins/addon-widgets-aggregator`) registers the
12398
+ * `@camstack/system/builtins/addon-widgets-aggregator`) registers the
12399
12399
  * provider. Splitting the public aggregator from the raw collection
12400
12400
  * keeps both ends in codegen — there's no hand-written wrapper.
12401
12401
  */
@@ -15146,7 +15146,7 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
15146
15146
  * clients — they reverse-connect to the hub. Exposing their interfaces
15147
15147
  * via the same surface would leak internal topology with no upside.
15148
15148
  *
15149
- * Implementation in `@camstack/core/builtins/local-network/`.
15149
+ * Implementation in `@camstack/system/builtins/local-network/`.
15150
15150
  */
15151
15151
  /** Coarse classification derived from the interface name + IP range. */
15152
15152
  var InterfaceKindEnum = _enum([
@@ -15693,7 +15693,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
15693
15693
  * jitter, and observed/peak bandwidth per device + per client.
15694
15694
  *
15695
15695
  * Implementation lives in the server's `NetworkQualityService` (thin
15696
- * wrapper over the shared `NetworkQualityTracker` from `@camstack/core`).
15696
+ * wrapper over the shared `NetworkQualityTracker` from `@camstack/system`).
15697
15697
  * The provider is registered from `trpc.router.ts` against the existing
15698
15698
  * service instance — no addon owns this state.
15699
15699
  *
@@ -12212,7 +12212,7 @@ method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchem
12212
12212
  * rebuilds without manual reload.
12213
12213
  *
12214
12214
  * The hub-local builtin `addon-pages-aggregator` (see
12215
- * `@camstack/core/builtins/addon-pages-aggregator`) registers the
12215
+ * `@camstack/system/builtins/addon-pages-aggregator`) registers the
12216
12216
  * provider. Splitting the public aggregator from the raw collection
12217
12217
  * keeps both ends in codegen — there's no hand-written
12218
12218
  * `addon-pages.router.ts` wrapper anymore.
@@ -12395,7 +12395,7 @@ method(_void(), array(WidgetMetadataSchema).readonly());
12395
12395
  * manual reload — same scheme used by `addon-pages`.
12396
12396
  *
12397
12397
  * The hub-local builtin `addon-widgets-aggregator` (see
12398
- * `@camstack/core/builtins/addon-widgets-aggregator`) registers the
12398
+ * `@camstack/system/builtins/addon-widgets-aggregator`) registers the
12399
12399
  * provider. Splitting the public aggregator from the raw collection
12400
12400
  * keeps both ends in codegen — there's no hand-written wrapper.
12401
12401
  */
@@ -15146,7 +15146,7 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
15146
15146
  * clients — they reverse-connect to the hub. Exposing their interfaces
15147
15147
  * via the same surface would leak internal topology with no upside.
15148
15148
  *
15149
- * Implementation in `@camstack/core/builtins/local-network/`.
15149
+ * Implementation in `@camstack/system/builtins/local-network/`.
15150
15150
  */
15151
15151
  /** Coarse classification derived from the interface name + IP range. */
15152
15152
  var InterfaceKindEnum = _enum([
@@ -15693,7 +15693,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
15693
15693
  * jitter, and observed/peak bandwidth per device + per client.
15694
15694
  *
15695
15695
  * Implementation lives in the server's `NetworkQualityService` (thin
15696
- * wrapper over the shared `NetworkQualityTracker` from `@camstack/core`).
15696
+ * wrapper over the shared `NetworkQualityTracker` from `@camstack/system`).
15697
15697
  * The provider is registered from `trpc.router.ts` against the existing
15698
15698
  * service instance — no addon owns this state.
15699
15699
  *
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-CyZIFg13.js");
2
+ const require_dist = require("../dist-FQAxmoZY.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_child_process = require("node:child_process");
5
5
  //#region src/tunnel/cloudflare-tunnel.ts
@@ -178,8 +178,10 @@ var CloudflareTunnelService = class CloudflareTunnelService {
178
178
  const tunnelArgs = this.config.mode === "quick" ? [
179
179
  "tunnel",
180
180
  ...protocolFlag,
181
+ ...this.config.noTLSVerify ? ["--no-tls-verify"] : [],
182
+ ...this.config.originServerName ? ["--origin-server-name", this.config.originServerName] : [],
181
183
  "--url",
182
- `http://${this.config.localHost || "127.0.0.1"}:${this.config.localPort}`
184
+ `https://${this.config.localHost || "127.0.0.1"}:${this.config.localPort}`
183
185
  ] : [
184
186
  "tunnel",
185
187
  ...protocolFlag,
@@ -593,7 +595,8 @@ var cloudflareTunnelActions = require_dist.defineCustomActions({
593
595
  * Access page:
594
596
  *
595
597
  * • Quick (`mode='quick'`) — `start()` spawns `cloudflared tunnel --url
596
- * http://localhost:<port>`; cloudflared invents a random
598
+ * https://localhost:<port>` (the hub origin is HTTPS/self-signed, so
599
+ * `--no-tls-verify` is added); cloudflared invents a random
597
600
  * `*.trycloudflare.com` URL and we surface it back to the operator.
598
601
  *
599
602
  * • Custom (`mode='custom'`) — operator fills API token + zone +
@@ -1,4 +1,4 @@
1
- import { a as networkAccessCapability, c as array, d as literal, f as number, i as defineCustomActions, l as boolean, m as string, n as EventCategory, p as object, r as customAction, s as _enum, t as BaseAddon } from "../dist-hlqrwupf.mjs";
1
+ import { a as networkAccessCapability, c as array, d as literal, f as number, i as defineCustomActions, l as boolean, m as string, n as EventCategory, p as object, r as customAction, s as _enum, t as BaseAddon } from "../dist-gS41k7Cx.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region src/tunnel/cloudflare-tunnel.ts
@@ -177,8 +177,10 @@ var CloudflareTunnelService = class CloudflareTunnelService {
177
177
  const tunnelArgs = this.config.mode === "quick" ? [
178
178
  "tunnel",
179
179
  ...protocolFlag,
180
+ ...this.config.noTLSVerify ? ["--no-tls-verify"] : [],
181
+ ...this.config.originServerName ? ["--origin-server-name", this.config.originServerName] : [],
180
182
  "--url",
181
- `http://${this.config.localHost || "127.0.0.1"}:${this.config.localPort}`
183
+ `https://${this.config.localHost || "127.0.0.1"}:${this.config.localPort}`
182
184
  ] : [
183
185
  "tunnel",
184
186
  ...protocolFlag,
@@ -592,7 +594,8 @@ var cloudflareTunnelActions = defineCustomActions({
592
594
  * Access page:
593
595
  *
594
596
  * • Quick (`mode='quick'`) — `start()` spawns `cloudflared tunnel --url
595
- * http://localhost:<port>`; cloudflared invents a random
597
+ * https://localhost:<port>` (the hub origin is HTTPS/self-signed, so
598
+ * `--no-tls-verify` is added); cloudflared invents a random
596
599
  * `*.trycloudflare.com` URL and we surface it back to the operator.
597
600
  *
598
601
  * • Custom (`mode='custom'`) — operator fills API token + zone +
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-CyZIFg13.js");
2
+ const require_dist = require("../dist-FQAxmoZY.js");
3
3
  //#region src/turn/cloudflare-turn.ts
4
4
  /**
5
5
  * Cloudflare returns ICE servers in several flavours depending on which
@@ -1,4 +1,4 @@
1
- import { d as literal, f as number, i as defineCustomActions, l as boolean, m as string, o as turnProviderCapability, p as object, r as customAction, t as BaseAddon, u as discriminatedUnion } from "../dist-hlqrwupf.mjs";
1
+ import { d as literal, f as number, i as defineCustomActions, l as boolean, m as string, o as turnProviderCapability, p as object, r as customAction, t as BaseAddon, u as discriminatedUnion } from "../dist-gS41k7Cx.mjs";
2
2
  //#region src/turn/cloudflare-turn.ts
3
3
  /**
4
4
  * Cloudflare returns ICE servers in several flavours depending on which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-cloudflare",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",
@@ -87,7 +87,7 @@
87
87
  "publish": "npm publish --access public"
88
88
  },
89
89
  "peerDependencies": {
90
- "@camstack/types": "^0.1.0"
90
+ "@camstack/types": "*"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@camstack/types": "*",