trinity-config 1.3.1 → 1.3.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.
- package/dist/index.js +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import pc from "picocolors";
|
|
|
9
9
|
|
|
10
10
|
// src/constants.ts
|
|
11
11
|
var PACKAGE_NAME = "trinity-config";
|
|
12
|
-
var PACKAGE_VERSION = "1.3.
|
|
12
|
+
var PACKAGE_VERSION = "1.3.2";
|
|
13
13
|
var TRINITY_BASE_URL = "https://api.trinitydesk.ai";
|
|
14
14
|
var DEFAULT_CLAUDE_MODEL = "claude-sonnet-4-6";
|
|
15
15
|
var DEFAULT_CLAUDE_FAST_MODEL = "claude-sonnet-4-6";
|
|
@@ -453,18 +453,29 @@ URL=${url}\r
|
|
|
453
453
|
`, "utf8");
|
|
454
454
|
return { urlFile, txtFile };
|
|
455
455
|
}
|
|
456
|
-
async function openCcSwitchDeepLink(url,
|
|
456
|
+
async function openCcSwitchDeepLink(url, _urlFile) {
|
|
457
457
|
if (url.length > CCSWITCH_URL_SAFE_MAX) {
|
|
458
458
|
return "too_long";
|
|
459
459
|
}
|
|
460
460
|
const platform = process.platform;
|
|
461
461
|
if (platform === "win32") {
|
|
462
|
-
const
|
|
463
|
-
await execa(
|
|
462
|
+
const result = await execa(
|
|
464
463
|
"powershell.exe",
|
|
465
|
-
[
|
|
464
|
+
[
|
|
465
|
+
"-NoProfile",
|
|
466
|
+
"-NonInteractive",
|
|
467
|
+
"-Command",
|
|
468
|
+
`Start-Process ${JSON.stringify(url)}`
|
|
469
|
+
],
|
|
466
470
|
{ reject: false, windowsHide: true }
|
|
467
471
|
);
|
|
472
|
+
if (result.exitCode !== 0) {
|
|
473
|
+
await execa(
|
|
474
|
+
"rundll32",
|
|
475
|
+
["url.dll,FileProtocolHandler", url],
|
|
476
|
+
{ reject: false, windowsHide: true }
|
|
477
|
+
);
|
|
478
|
+
}
|
|
468
479
|
return "opened";
|
|
469
480
|
}
|
|
470
481
|
if (platform === "darwin") {
|