@signetai/connector-gemini 0.224.0 → 0.226.1

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
@@ -2,6 +2,7 @@ import { BaseConnector, type InstallResult, type UninstallResult } from "@signet
2
2
  export declare class GeminiConnector extends BaseConnector {
3
3
  readonly name = "Gemini";
4
4
  readonly harnessId = "gemini";
5
+ getIconAsset(): string;
5
6
  private getGeminiHome;
6
7
  getConfigPath(): string;
7
8
  private getGeminiMdPath;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAMpB,MAAM,wBAAwB,CAAC;AAehC,qBAAa,eAAgB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,SAAS,YAAY;IAE9B,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAgBjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqEjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA2B3C,WAAW,IAAI,OAAO;IAOtB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAIpC,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,gBAAgB;CAqBxB;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAC;AACrD,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAMpB,MAAM,wBAAwB,CAAC;AAehC,qBAAa,eAAgB,SAAQ,aAAa;IACjD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,SAAS,YAAY;IAE9B,YAAY,IAAI,MAAM;IAItB,OAAO,CAAC,aAAa;IAIrB,aAAa,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAgBjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAqEjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA2B3C,WAAW,IAAI,OAAO;IAOtB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAIpC,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,gBAAgB;CAqBxB;AAED,eAAO,MAAM,eAAe,iBAAwB,CAAC;AACrD,eAAe,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -18261,6 +18261,9 @@ function escapeRegex(str) {
18261
18261
  }
18262
18262
 
18263
18263
  class BaseConnector {
18264
+ getIconAsset() {
18265
+ return null;
18266
+ }
18264
18267
  stripSignetBlock(content) {
18265
18268
  return stripSignetBlock(content);
18266
18269
  }
@@ -18326,6 +18329,36 @@ ${content}`);
18326
18329
  return parts.join(`
18327
18330
  `);
18328
18331
  }
18332
+ isDetected() {
18333
+ return existsSync(this.getConfigPath());
18334
+ }
18335
+ async inspectHealth() {
18336
+ try {
18337
+ if (this.isInstalled()) {
18338
+ return { status: "degraded", message: "Integration detected; runtime health has not been verified." };
18339
+ }
18340
+ if (this.isDetected()) {
18341
+ return { status: "degraded", message: "Harness detected; Signet integration is not configured." };
18342
+ }
18343
+ return { status: "unhealthy", message: "Signet integration is not installed." };
18344
+ } catch (error) {
18345
+ const message = error instanceof Error ? error.message : String(error);
18346
+ return { status: "unhealthy", message: `Health inspection failed: ${message}` };
18347
+ }
18348
+ }
18349
+ getRecoveryCapabilities() {
18350
+ return {
18351
+ repair: true,
18352
+ reinitialize: true,
18353
+ reinitializeRequiresConfirmation: true
18354
+ };
18355
+ }
18356
+ async repair(basePath) {
18357
+ return this.install(basePath);
18358
+ }
18359
+ async reinitialize(basePath) {
18360
+ return this.install(basePath);
18361
+ }
18329
18362
  }
18330
18363
  function isSignetGeneratedFile(raw) {
18331
18364
  const lines = raw.split(`
@@ -36565,6 +36598,9 @@ function readGeminiSettings(settingsPath) {
36565
36598
  class GeminiConnector extends BaseConnector {
36566
36599
  name = "Gemini";
36567
36600
  harnessId = "gemini";
36601
+ getIconAsset() {
36602
+ return "gemini.svg";
36603
+ }
36568
36604
  getGeminiHome() {
36569
36605
  return join6(homedir3(), ".gemini");
36570
36606
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-gemini",
3
- "version": "0.224.0",
3
+ "version": "0.226.1",
4
4
  "description": "Signet connector for Gemini CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@signetai/connector-base": "0.224.0",
28
- "@signetai/core": "0.224.0"
27
+ "@signetai/connector-base": "0.226.1",
28
+ "@signetai/core": "0.226.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",