@signetai/connector-pi 0.223.0 → 0.225.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.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare const writeConfiguredPiAgentDir: (pathValue: string, env?: NodeJS
10
10
  export declare class PiConnector extends BaseConnector {
11
11
  readonly name = "pi";
12
12
  readonly harnessId = "pi";
13
+ getIconAsset(): string;
13
14
  private getManagedExtensionPath;
14
15
  private getManagedCandidatePaths;
15
16
  getConfigPath(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAElB,KAAK,eAAe,EASpB,MAAM,wBAAwB,CAAC;AAUhC,eAAO,MAAM,yBAAyB,mCAAqC,CAAC;AAC5E,eAAO,MAAM,eAAe,qCAA2B,CAAC;AACxD,eAAO,MAAM,UAAU,sCAAsB,CAAC;AAC9C,eAAO,MAAM,wBAAwB,gDAAoC,CAAC;AAC1E,eAAO,MAAM,wBAAwB,4CAAoC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,qCAA6B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,qCAAkC,CAAC;AACtE,eAAO,MAAM,yBAAyB,wDAAqC,CAAC;AAsB5E,qBAAa,WAAY,SAAQ,aAAa;IAC7C,QAAQ,CAAC,IAAI,QAAQ;IACrB,QAAQ,CAAC,SAAS,QAAQ;IAE1B,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,wBAAwB;IAIhC,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA4CjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAmB3C,WAAW,IAAI,OAAO;CAGtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAElB,KAAK,eAAe,EASpB,MAAM,wBAAwB,CAAC;AAUhC,eAAO,MAAM,yBAAyB,mCAAqC,CAAC;AAC5E,eAAO,MAAM,eAAe,qCAA2B,CAAC;AACxD,eAAO,MAAM,UAAU,sCAAsB,CAAC;AAC9C,eAAO,MAAM,wBAAwB,gDAAoC,CAAC;AAC1E,eAAO,MAAM,wBAAwB,4CAAoC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,qCAA6B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,qCAAkC,CAAC;AACtE,eAAO,MAAM,yBAAyB,wDAAqC,CAAC;AAsB5E,qBAAa,WAAY,SAAQ,aAAa;IAC7C,QAAQ,CAAC,IAAI,QAAQ;IACrB,QAAQ,CAAC,SAAS,QAAQ;IAE1B,YAAY,IAAI,MAAM;IAItB,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,wBAAwB;IAIhC,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA4CjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAmB3C,WAAW,IAAI,OAAO;CAGtB"}
package/dist/index.js CHANGED
@@ -18330,6 +18330,9 @@ function escapeRegex(str) {
18330
18330
  }
18331
18331
 
18332
18332
  class BaseConnector {
18333
+ getIconAsset() {
18334
+ return null;
18335
+ }
18333
18336
  stripSignetBlock(content) {
18334
18337
  return stripSignetBlock(content);
18335
18338
  }
@@ -18395,6 +18398,36 @@ ${content}`);
18395
18398
  return parts.join(`
18396
18399
  `);
18397
18400
  }
18401
+ isDetected() {
18402
+ return existsSync(this.getConfigPath());
18403
+ }
18404
+ async inspectHealth() {
18405
+ try {
18406
+ if (this.isInstalled()) {
18407
+ return { status: "degraded", message: "Integration detected; runtime health has not been verified." };
18408
+ }
18409
+ if (this.isDetected()) {
18410
+ return { status: "degraded", message: "Harness detected; Signet integration is not configured." };
18411
+ }
18412
+ return { status: "unhealthy", message: "Signet integration is not installed." };
18413
+ } catch (error) {
18414
+ const message = error instanceof Error ? error.message : String(error);
18415
+ return { status: "unhealthy", message: `Health inspection failed: ${message}` };
18416
+ }
18417
+ }
18418
+ getRecoveryCapabilities() {
18419
+ return {
18420
+ repair: true,
18421
+ reinitialize: true,
18422
+ reinitializeRequiresConfirmation: true
18423
+ };
18424
+ }
18425
+ async repair(basePath) {
18426
+ return this.install(basePath);
18427
+ }
18428
+ async reinitialize(basePath) {
18429
+ return this.install(basePath);
18430
+ }
18398
18431
  }
18399
18432
  var MANAGED_DAEMON_URL_DEFAULT = "http://127.0.0.1:3850";
18400
18433
  var MANAGED_AGENT_ID_DEFAULT = "default";
@@ -43805,6 +43838,9 @@ function buildManagedPiExtensionContent(env) {
43805
43838
  class PiConnector extends BaseConnector {
43806
43839
  name = "pi";
43807
43840
  harnessId = "pi";
43841
+ getIconAsset() {
43842
+ return "pi.svg";
43843
+ }
43808
43844
  getManagedExtensionPath() {
43809
43845
  return join6(resolvePiExtensionsDir(), PI_MANAGED_FILENAME);
43810
43846
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-pi",
3
- "version": "0.223.0",
3
+ "version": "0.225.0",
4
4
  "description": "Signet connector for pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@signetai/connector-base": "0.223.0"
28
+ "@signetai/connector-base": "0.225.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@signet/pi-extension-base": "workspace:*",