@signetai/connector-forge 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 +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
|
@@ -2,6 +2,7 @@ import { BaseConnector, type InstallResult, type UninstallResult } from "@signet
|
|
|
2
2
|
export declare class ForgeConnector extends BaseConnector {
|
|
3
3
|
readonly name = "ForgeCode";
|
|
4
4
|
readonly harnessId = "forge";
|
|
5
|
+
getIconAsset(): string;
|
|
5
6
|
protected getForgeHome(): string;
|
|
6
7
|
getConfigPath(): string;
|
|
7
8
|
install(basePath: string): Promise<InstallResult>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,EAWpB,MAAM,wBAAwB,CAAC;AAyDhC,qBAAa,cAAe,SAAQ,aAAa;IAChD,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,SAAS,WAAW;IAE7B,SAAS,CAAC,YAAY,IAAI,MAAM;IAUhC,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA4EjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAiD3C,WAAW,IAAI,OAAO;IAStB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAWpC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,mBAAmB;CAgC3B;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC;AACnD,eAAe,cAAc,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,EAWpB,MAAM,wBAAwB,CAAC;AAyDhC,qBAAa,cAAe,SAAQ,aAAa;IAChD,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,SAAS,WAAW;IAE7B,YAAY,IAAI,MAAM;IAItB,SAAS,CAAC,YAAY,IAAI,MAAM;IAUhC,aAAa,IAAI,MAAM;IAIjB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA4EjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAiD3C,WAAW,IAAI,OAAO;IAStB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAWpC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,mBAAmB;CAgC3B;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC;AACnD,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18341,6 +18341,9 @@ function escapeRegex(str) {
|
|
|
18341
18341
|
}
|
|
18342
18342
|
|
|
18343
18343
|
class BaseConnector {
|
|
18344
|
+
getIconAsset() {
|
|
18345
|
+
return null;
|
|
18346
|
+
}
|
|
18344
18347
|
stripSignetBlock(content) {
|
|
18345
18348
|
return stripSignetBlock(content);
|
|
18346
18349
|
}
|
|
@@ -18406,6 +18409,36 @@ ${content}`);
|
|
|
18406
18409
|
return parts.join(`
|
|
18407
18410
|
`);
|
|
18408
18411
|
}
|
|
18412
|
+
isDetected() {
|
|
18413
|
+
return existsSync(this.getConfigPath());
|
|
18414
|
+
}
|
|
18415
|
+
async inspectHealth() {
|
|
18416
|
+
try {
|
|
18417
|
+
if (this.isInstalled()) {
|
|
18418
|
+
return { status: "degraded", message: "Integration detected; runtime health has not been verified." };
|
|
18419
|
+
}
|
|
18420
|
+
if (this.isDetected()) {
|
|
18421
|
+
return { status: "degraded", message: "Harness detected; Signet integration is not configured." };
|
|
18422
|
+
}
|
|
18423
|
+
return { status: "unhealthy", message: "Signet integration is not installed." };
|
|
18424
|
+
} catch (error) {
|
|
18425
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
18426
|
+
return { status: "unhealthy", message: `Health inspection failed: ${message}` };
|
|
18427
|
+
}
|
|
18428
|
+
}
|
|
18429
|
+
getRecoveryCapabilities() {
|
|
18430
|
+
return {
|
|
18431
|
+
repair: true,
|
|
18432
|
+
reinitialize: true,
|
|
18433
|
+
reinitializeRequiresConfirmation: true
|
|
18434
|
+
};
|
|
18435
|
+
}
|
|
18436
|
+
async repair(basePath) {
|
|
18437
|
+
return this.install(basePath);
|
|
18438
|
+
}
|
|
18439
|
+
async reinitialize(basePath) {
|
|
18440
|
+
return this.install(basePath);
|
|
18441
|
+
}
|
|
18409
18442
|
}
|
|
18410
18443
|
function isSignetGeneratedFile(raw) {
|
|
18411
18444
|
const lines = raw.split(`
|
|
@@ -36721,6 +36754,9 @@ function buildMcpServer(basePath) {
|
|
|
36721
36754
|
class ForgeConnector extends BaseConnector {
|
|
36722
36755
|
name = "ForgeCode";
|
|
36723
36756
|
harnessId = "forge";
|
|
36757
|
+
getIconAsset() {
|
|
36758
|
+
return "forge.svg";
|
|
36759
|
+
}
|
|
36724
36760
|
getForgeHome() {
|
|
36725
36761
|
const configured = readTrimmedEnv2("FORGE_CONFIG");
|
|
36726
36762
|
if (configured)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.226.1",
|
|
4
4
|
"description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
|
|
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.
|
|
28
|
-
"@signetai/core": "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",
|