@signetai/connector-kimi 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
@@ -40,6 +40,7 @@ export declare function removeSignetKimiHookBlocks(content: string): string;
40
40
  export declare class KimiConnector extends BaseConnector {
41
41
  readonly name = "Kimi";
42
42
  readonly harnessId = "kimi";
43
+ getIconAsset(): string;
43
44
  protected getKimiHome(): string;
44
45
  getConfigPath(): string;
45
46
  protected getMcpJsonPath(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAmB,MAAM,wBAAwB,CAAC;AAuBlH,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AA0ED,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,kBAAkB,GAAG,YAAY,CAAC;IACnE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAmBD,wBAAgB,oBAAoB,CACnC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,eAAe,GAAE,MAAM,GAAG,IAA+B,GACvD,aAAa,EAAE,CAuBjB;AAwBD;8EAC8E;AAC9E,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA+BlE;AAqFD,qBAAa,aAAc,SAAQ,aAAa;IAC/C,QAAQ,CAAC,IAAI,UAAU;IACvB,QAAQ,CAAC,SAAS,UAAU;IAE5B,SAAS,CAAC,WAAW,IAAI,MAAM;IAa/B,aAAa,IA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IA2CjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IA0B3C,WAAW,IAAI,OAAO;CActB;AAED,eAAe,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -18125,6 +18125,9 @@ function escapeRegex(str) {
18125
18125
  }
18126
18126
 
18127
18127
  class BaseConnector {
18128
+ getIconAsset() {
18129
+ return null;
18130
+ }
18128
18131
  stripSignetBlock(content) {
18129
18132
  return stripSignetBlock(content);
18130
18133
  }
@@ -18190,6 +18193,36 @@ ${content}`);
18190
18193
  return parts.join(`
18191
18194
  `);
18192
18195
  }
18196
+ isDetected() {
18197
+ return existsSync(this.getConfigPath());
18198
+ }
18199
+ async inspectHealth() {
18200
+ try {
18201
+ if (this.isInstalled()) {
18202
+ return { status: "degraded", message: "Integration detected; runtime health has not been verified." };
18203
+ }
18204
+ if (this.isDetected()) {
18205
+ return { status: "degraded", message: "Harness detected; Signet integration is not configured." };
18206
+ }
18207
+ return { status: "unhealthy", message: "Signet integration is not installed." };
18208
+ } catch (error) {
18209
+ const message = error instanceof Error ? error.message : String(error);
18210
+ return { status: "unhealthy", message: `Health inspection failed: ${message}` };
18211
+ }
18212
+ }
18213
+ getRecoveryCapabilities() {
18214
+ return {
18215
+ repair: true,
18216
+ reinitialize: true,
18217
+ reinitializeRequiresConfirmation: true
18218
+ };
18219
+ }
18220
+ async repair(basePath) {
18221
+ return this.install(basePath);
18222
+ }
18223
+ async reinitialize(basePath) {
18224
+ return this.install(basePath);
18225
+ }
18193
18226
  }
18194
18227
  function atomicWriteText(path, content, mode) {
18195
18228
  const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
@@ -36579,6 +36612,9 @@ function unpatchMcpJson(path) {
36579
36612
  class KimiConnector extends BaseConnector {
36580
36613
  name = "Kimi";
36581
36614
  harnessId = "kimi";
36615
+ getIconAsset() {
36616
+ return "kimi.png";
36617
+ }
36582
36618
  getKimiHome() {
36583
36619
  const currentOverride = readEnv2("KIMI_SHARE_DIR");
36584
36620
  if (currentOverride)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-kimi",
3
- "version": "0.223.0",
3
+ "version": "0.225.0",
4
4
  "description": "Signet connector for Kimi CLI / Kimi Code",
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.223.0",
28
- "@signetai/core": "0.223.0"
27
+ "@signetai/connector-base": "0.225.0",
28
+ "@signetai/core": "0.225.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",