@signetai/connector-pi 0.140.4 → 0.141.0
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 +15 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10532,16 +10532,26 @@ function resolveSignetWorkspacePath(home2 = homedir()) {
|
|
|
10532
10532
|
const configured = readManagedTrimmedEnv("SIGNET_PATH");
|
|
10533
10533
|
if (configured)
|
|
10534
10534
|
return resolve(expandHome(configured));
|
|
10535
|
+
const defaultWorkspace = join3(home2, ".agents");
|
|
10535
10536
|
const configHome = readManagedTrimmedEnv("XDG_CONFIG_HOME") ?? join3(home2, ".config");
|
|
10536
10537
|
const workspaceConfigPath = join3(configHome, "signet", "workspace.json");
|
|
10537
10538
|
if (!existsSync(workspaceConfigPath))
|
|
10538
|
-
return
|
|
10539
|
+
return defaultWorkspace;
|
|
10540
|
+
let raw;
|
|
10539
10541
|
try {
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10542
|
+
raw = JSON.parse(readFileSync(workspaceConfigPath, "utf8"));
|
|
10543
|
+
} catch (err) {
|
|
10544
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
10545
|
+
throw new Error(`Invalid Signet workspace config at ${workspaceConfigPath}: ${detail}`);
|
|
10546
|
+
}
|
|
10547
|
+
if (typeof raw !== "object" || raw === null || !("workspace" in raw)) {
|
|
10548
|
+
throw new Error(`Invalid Signet workspace config at ${workspaceConfigPath}: missing workspace`);
|
|
10549
|
+
}
|
|
10550
|
+
const workspace = raw.workspace;
|
|
10551
|
+
if (typeof workspace !== "string" || workspace.trim().length === 0) {
|
|
10552
|
+
throw new Error(`Invalid Signet workspace config at ${workspaceConfigPath}: workspace must be a non-empty string`);
|
|
10544
10553
|
}
|
|
10554
|
+
return resolve(expandHome(workspace.trim()));
|
|
10545
10555
|
}
|
|
10546
10556
|
function resolveSignetDaemonUrl2() {
|
|
10547
10557
|
return resolveSignetDaemonUrl();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.141.0",
|
|
4
4
|
"description": "Signet connector for pi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.
|
|
29
|
-
"@signetai/core": "0.
|
|
28
|
+
"@signetai/connector-base": "0.141.0",
|
|
29
|
+
"@signetai/core": "0.141.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|