@signetai/connector-opencode 0.224.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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { BaseConnector, type InstallResult, type UninstallResult } from "@signet
|
|
|
28
28
|
export declare class OpenCodeConnector extends BaseConnector {
|
|
29
29
|
readonly name = "OpenCode";
|
|
30
30
|
readonly harnessId = "opencode";
|
|
31
|
+
getIconAsset(): string;
|
|
31
32
|
protected getOpenCodePath(): string;
|
|
32
33
|
getConfigPath(): string;
|
|
33
34
|
private getPluginsPath;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EASpB,MAAM,wBAAwB,CAAC;AA+DhC;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;IACnD,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,SAAS,cAAc;IAEhC,SAAS,CAAC,eAAe,IAAI,MAAM;IAInC,aAAa,IAAI,MAAM;IAUvB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,oBAAoB;IAI5B;;;;;;;;OAQG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAyGvD;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAqC3C;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,OAAO;I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;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAqBpC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAM3C;IAEF,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,mBAAmB;IAW3B;;OAEG;YACW,gBAAgB;CAmB9B;AAMD,eAAO,MAAM,iBAAiB,mBAA0B,CAAC;AACzD,eAAe,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18205,6 +18205,9 @@ function escapeRegex(str) {
|
|
|
18205
18205
|
}
|
|
18206
18206
|
|
|
18207
18207
|
class BaseConnector {
|
|
18208
|
+
getIconAsset() {
|
|
18209
|
+
return null;
|
|
18210
|
+
}
|
|
18208
18211
|
stripSignetBlock(content) {
|
|
18209
18212
|
return stripSignetBlock(content);
|
|
18210
18213
|
}
|
|
@@ -18270,6 +18273,36 @@ ${content}`);
|
|
|
18270
18273
|
return parts.join(`
|
|
18271
18274
|
`);
|
|
18272
18275
|
}
|
|
18276
|
+
isDetected() {
|
|
18277
|
+
return existsSync(this.getConfigPath());
|
|
18278
|
+
}
|
|
18279
|
+
async inspectHealth() {
|
|
18280
|
+
try {
|
|
18281
|
+
if (this.isInstalled()) {
|
|
18282
|
+
return { status: "degraded", message: "Integration detected; runtime health has not been verified." };
|
|
18283
|
+
}
|
|
18284
|
+
if (this.isDetected()) {
|
|
18285
|
+
return { status: "degraded", message: "Harness detected; Signet integration is not configured." };
|
|
18286
|
+
}
|
|
18287
|
+
return { status: "unhealthy", message: "Signet integration is not installed." };
|
|
18288
|
+
} catch (error) {
|
|
18289
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
18290
|
+
return { status: "unhealthy", message: `Health inspection failed: ${message}` };
|
|
18291
|
+
}
|
|
18292
|
+
}
|
|
18293
|
+
getRecoveryCapabilities() {
|
|
18294
|
+
return {
|
|
18295
|
+
repair: true,
|
|
18296
|
+
reinitialize: true,
|
|
18297
|
+
reinitializeRequiresConfirmation: true
|
|
18298
|
+
};
|
|
18299
|
+
}
|
|
18300
|
+
async repair(basePath) {
|
|
18301
|
+
return this.install(basePath);
|
|
18302
|
+
}
|
|
18303
|
+
async reinitialize(basePath) {
|
|
18304
|
+
return this.install(basePath);
|
|
18305
|
+
}
|
|
18273
18306
|
}
|
|
18274
18307
|
function isSignetGeneratedFile(raw) {
|
|
18275
18308
|
const lines = raw.split(`
|
|
@@ -43472,6 +43505,9 @@ function configuredDaemonUrl() {
|
|
|
43472
43505
|
class OpenCodeConnector extends BaseConnector {
|
|
43473
43506
|
name = "OpenCode";
|
|
43474
43507
|
harnessId = "opencode";
|
|
43508
|
+
getIconAsset() {
|
|
43509
|
+
return "opencode.svg";
|
|
43510
|
+
}
|
|
43475
43511
|
getOpenCodePath() {
|
|
43476
43512
|
return join4(homedir(), ".config", "opencode");
|
|
43477
43513
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.225.0",
|
|
4
4
|
"description": "Signet connector for OpenCode - installs hooks and generates config",
|
|
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.225.0",
|
|
29
|
+
"@signetai/core": "0.225.0",
|
|
30
30
|
"jsonc-parser": "3.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|