@dainprotocol/cli 1.2.18 → 1.2.20

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.
Files changed (2) hide show
  1. package/dist/utils.js +2 -2
  2. package/package.json +3 -3
package/dist/utils.js CHANGED
@@ -81,7 +81,7 @@ function getDainConfig(configFile) {
81
81
  config["environment"] = config["environment"] || "development";
82
82
  config["version"] = config["version"] || "1.0.0";
83
83
  config["out-dir"] = config["out-dir"] || "dist"; // Default to 'dist' if not specified
84
- config["tunnel-base-url"] = config["tunnel-base-url"] || "wss:///tunnel.dain-local.com"; // Default value if not specified
84
+ config["tunnel-base-url"] = config["tunnel-base-url"] || "wss://tunnel.dain-local.com"; // Default value if not specified
85
85
  config["runtime"] = config["runtime"] || "node"; // Add this line
86
86
  // Handle API key
87
87
  if (!config["api-key"] ||
@@ -117,7 +117,7 @@ function setupProxy(port, apiKey, config) {
117
117
  _a.label = 1;
118
118
  case 1:
119
119
  _a.trys.push([1, 3, , 4]);
120
- client = new client_1.DainTunnel(config["tunnel-base-url"] || "wss:///tunnel.dain-local.com", apiKey);
120
+ client = new client_1.DainTunnel(config["tunnel-base-url"] || "wss://tunnel.dain-local.com", apiKey);
121
121
  return [4 /*yield*/, client.start(parseInt(port))];
122
122
  case 2:
123
123
  tunnelUrl = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/cli",
3
- "version": "1.2.18",
3
+ "version": "1.2.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,8 +20,8 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@ai-sdk/anthropic": "^0.0.50",
23
- "@dainprotocol/service-sdk": "^2.0.59",
24
- "@dainprotocol/tunnel": "^1.1.23",
23
+ "@dainprotocol/service-sdk": "^2.0.75",
24
+ "@dainprotocol/tunnel": "^1.1.26",
25
25
  "@types/fs-extra": "^11.0.4",
26
26
  "@types/localtunnel": "^2.0.4",
27
27
  "ai": "^3.3.41",