@signetai/connector-forge 0.219.6 → 0.220.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.js +24 -24
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -53,9 +53,9 @@ import { homedir as homedir5 } from "node:os";
|
|
|
53
53
|
import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
|
|
54
54
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
55
55
|
import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
|
|
56
|
-
import { homedir as
|
|
57
|
-
import { existsSync as
|
|
58
|
-
import { join as
|
|
56
|
+
import { homedir as homedir8 } from "node:os";
|
|
57
|
+
import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
|
|
58
|
+
import { join as join13 } from "node:path";
|
|
59
59
|
var __create2 = Object.create;
|
|
60
60
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
61
61
|
var __defProp2 = Object.defineProperty;
|
|
@@ -18153,19 +18153,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18153
18153
|
skipped: [],
|
|
18154
18154
|
errors: []
|
|
18155
18155
|
};
|
|
18156
|
-
if (!
|
|
18156
|
+
if (!existsSync13(sourceDir)) {
|
|
18157
18157
|
return result;
|
|
18158
18158
|
}
|
|
18159
|
-
const targetParent =
|
|
18160
|
-
if (!
|
|
18161
|
-
|
|
18159
|
+
const targetParent = join13(targetDir, "..");
|
|
18160
|
+
if (!existsSync13(targetParent)) {
|
|
18161
|
+
mkdirSync8(targetParent, { recursive: true });
|
|
18162
18162
|
}
|
|
18163
|
-
if (!
|
|
18164
|
-
|
|
18163
|
+
if (!existsSync13(targetDir)) {
|
|
18164
|
+
mkdirSync8(targetDir, { recursive: true });
|
|
18165
18165
|
}
|
|
18166
18166
|
let entries;
|
|
18167
18167
|
try {
|
|
18168
|
-
entries =
|
|
18168
|
+
entries = readdirSync6(sourceDir);
|
|
18169
18169
|
} catch (e) {
|
|
18170
18170
|
result.errors.push({
|
|
18171
18171
|
path: sourceDir,
|
|
@@ -18174,8 +18174,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18174
18174
|
return result;
|
|
18175
18175
|
}
|
|
18176
18176
|
for (const entry of entries) {
|
|
18177
|
-
const srcPath =
|
|
18178
|
-
const destPath =
|
|
18177
|
+
const srcPath = join13(sourceDir, entry);
|
|
18178
|
+
const destPath = join13(targetDir, entry);
|
|
18179
18179
|
try {
|
|
18180
18180
|
const src = lstatSync(srcPath);
|
|
18181
18181
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|
|
@@ -18216,7 +18216,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18216
18216
|
}
|
|
18217
18217
|
return result;
|
|
18218
18218
|
}
|
|
18219
|
-
var home =
|
|
18219
|
+
var home = homedir8();
|
|
18220
18220
|
var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
18221
18221
|
var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
18222
18222
|
function stripSignetBlock(content) {
|
|
@@ -18406,9 +18406,9 @@ import { homedir as homedir52 } from "node:os";
|
|
|
18406
18406
|
import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
|
|
18407
18407
|
import { homedir as homedir62, platform as platform22 } from "node:os";
|
|
18408
18408
|
import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
|
|
18409
|
-
import { existsSync as
|
|
18410
|
-
import { dirname as
|
|
18411
|
-
import { homedir as
|
|
18409
|
+
import { existsSync as existsSync11, readFileSync as readFileSync9, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
|
|
18410
|
+
import { dirname as dirname62, join as join11 } from "node:path";
|
|
18411
|
+
import { homedir as homedir82 } from "node:os";
|
|
18412
18412
|
var __create = Object.create;
|
|
18413
18413
|
var __getProtoOf = Object.getPrototypeOf;
|
|
18414
18414
|
var __defProp = Object.defineProperty;
|
|
@@ -36367,7 +36367,7 @@ function hasValidIdentity(basePath) {
|
|
|
36367
36367
|
if (mode !== "managed")
|
|
36368
36368
|
return true;
|
|
36369
36369
|
for (const path of resolveRequiredIdentityPaths(basePath)) {
|
|
36370
|
-
if (!
|
|
36370
|
+
if (!existsSync11(join11(basePath, path))) {
|
|
36371
36371
|
return false;
|
|
36372
36372
|
}
|
|
36373
36373
|
}
|
|
@@ -36375,11 +36375,11 @@ function hasValidIdentity(basePath) {
|
|
|
36375
36375
|
}
|
|
36376
36376
|
function resolveRequiredIdentityPaths(basePath) {
|
|
36377
36377
|
const legacyRequired = () => REQUIRED_IDENTITY_KEYS2.map((key) => IDENTITY_FILES2[key].path);
|
|
36378
|
-
const agentYaml =
|
|
36379
|
-
if (!
|
|
36378
|
+
const agentYaml = join11(basePath, "agent.yaml");
|
|
36379
|
+
if (!existsSync11(agentYaml))
|
|
36380
36380
|
return legacyRequired();
|
|
36381
36381
|
try {
|
|
36382
|
-
const config = parseSimpleYaml(
|
|
36382
|
+
const config = parseSimpleYaml(readFileSync9(agentYaml, "utf-8"));
|
|
36383
36383
|
const identity = readRecord(readRecord(config).identity);
|
|
36384
36384
|
const configured = readIdentityEntryList(readRecord(identity.startup).load);
|
|
36385
36385
|
if (configured.length > 0)
|
|
@@ -36422,11 +36422,11 @@ function resolveIdentityModeFromConfig(config) {
|
|
|
36422
36422
|
return "managed";
|
|
36423
36423
|
}
|
|
36424
36424
|
function loadIdentityMode(agentsDir) {
|
|
36425
|
-
const agentYaml =
|
|
36426
|
-
if (!
|
|
36425
|
+
const agentYaml = join11(agentsDir, "agent.yaml");
|
|
36426
|
+
if (!existsSync11(agentYaml))
|
|
36427
36427
|
return "managed";
|
|
36428
36428
|
try {
|
|
36429
|
-
return resolveIdentityModeFromConfig(parseSimpleYaml(
|
|
36429
|
+
return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync9(agentYaml, "utf-8")));
|
|
36430
36430
|
} catch {
|
|
36431
36431
|
return "managed";
|
|
36432
36432
|
}
|
|
@@ -36451,7 +36451,7 @@ function readIdentityEntryList(value) {
|
|
|
36451
36451
|
return [];
|
|
36452
36452
|
return value.map(readIdentityEntry).filter((entry) => entry !== null);
|
|
36453
36453
|
}
|
|
36454
|
-
var home2 =
|
|
36454
|
+
var home2 = homedir82();
|
|
36455
36455
|
|
|
36456
36456
|
// src/index.ts
|
|
36457
36457
|
var SIGNET_FORGE_MARKER = "Managed by Signet (@signetai/connector-forge)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.220.0",
|
|
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.220.0",
|
|
28
|
+
"@signetai/core": "0.220.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|