@tinycloud/cli 0.9.1-beta.6 → 0.9.1-beta.7

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.
@@ -37,7 +37,7 @@ import {
37
37
  tinycloudConfigPath,
38
38
  tinycloudHomePath
39
39
  } from "@tinycloud/operations/state";
40
- var CONFIG_DIR, PROFILES_DIR, CONFIG_FILE, DEFAULT_HOST, DEFAULT_OPENKEY_HOST, DEFAULT_PROFILE, DEFAULT_CHAIN_ID, ExitCode;
40
+ var CONFIG_DIR, PROFILES_DIR, CONFIG_FILE, DEFAULT_HOST, DEFAULT_OPENKEY_HOST, DEFAULT_OPENKEY_DEVICE_API_HOST, DEFAULT_PROFILE, DEFAULT_CHAIN_ID, ExitCode;
41
41
  var init_constants = __esm({
42
42
  "src/config/constants.ts"() {
43
43
  "use strict";
@@ -46,6 +46,7 @@ var init_constants = __esm({
46
46
  CONFIG_FILE = tinycloudConfigPath();
47
47
  DEFAULT_HOST = "https://node.tinycloud.xyz";
48
48
  DEFAULT_OPENKEY_HOST = "https://openkey.so";
49
+ DEFAULT_OPENKEY_DEVICE_API_HOST = "https://api.openkey.so";
49
50
  DEFAULT_PROFILE = "default";
50
51
  DEFAULT_CHAIN_ID = 1;
51
52
  ExitCode = {
@@ -31169,7 +31170,7 @@ function assertApprovedBinding(input) {
31169
31170
  if (invalid) throw new Error(`OpenKey returned an invalid delegation: ${invalid}`);
31170
31171
  }
31171
31172
  async function acquireShareDeviceDelegation(input) {
31172
- const openkeyHost = canonicalOrigin(input.openkeyHost ?? DEFAULT_OPENKEY_HOST, "OpenKey host");
31173
+ const openkeyHost = canonicalOrigin(input.openkeyHost ?? DEFAULT_OPENKEY_DEVICE_API_HOST, "OpenKey host");
31173
31174
  const nodeOrigin = canonicalOrigin(input.nodeOrigin, "TinyCloud node origin");
31174
31175
  const shareOrigin = canonicalOrigin(input.shareOrigin, "Share origin");
31175
31176
  const fetchFn = input.fetchFn ?? globalThis.fetch;