@signetai/connector-base 0.219.6 → 0.221.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/agent-dir.d.ts +17 -0
- package/dist/agent-dir.d.ts.map +1 -0
- package/dist/agent-dir.js +18331 -0
- package/dist/index.js +13 -13
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -72,9 +72,9 @@ import { homedir as homedir5 } from "node:os";
|
|
|
72
72
|
import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
|
|
73
73
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
74
74
|
import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
|
|
75
|
-
import { homedir as
|
|
76
|
-
import { existsSync as
|
|
77
|
-
import { join as
|
|
75
|
+
import { homedir as homedir8 } from "node:os";
|
|
76
|
+
import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
|
|
77
|
+
import { join as join13 } from "node:path";
|
|
78
78
|
var __create2 = Object.create;
|
|
79
79
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
80
80
|
var __defProp2 = Object.defineProperty;
|
|
@@ -18172,19 +18172,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18172
18172
|
skipped: [],
|
|
18173
18173
|
errors: []
|
|
18174
18174
|
};
|
|
18175
|
-
if (!
|
|
18175
|
+
if (!existsSync13(sourceDir)) {
|
|
18176
18176
|
return result;
|
|
18177
18177
|
}
|
|
18178
|
-
const targetParent =
|
|
18179
|
-
if (!
|
|
18180
|
-
|
|
18178
|
+
const targetParent = join13(targetDir, "..");
|
|
18179
|
+
if (!existsSync13(targetParent)) {
|
|
18180
|
+
mkdirSync8(targetParent, { recursive: true });
|
|
18181
18181
|
}
|
|
18182
|
-
if (!
|
|
18183
|
-
|
|
18182
|
+
if (!existsSync13(targetDir)) {
|
|
18183
|
+
mkdirSync8(targetDir, { recursive: true });
|
|
18184
18184
|
}
|
|
18185
18185
|
let entries;
|
|
18186
18186
|
try {
|
|
18187
|
-
entries =
|
|
18187
|
+
entries = readdirSync6(sourceDir);
|
|
18188
18188
|
} catch (e) {
|
|
18189
18189
|
result.errors.push({
|
|
18190
18190
|
path: sourceDir,
|
|
@@ -18193,8 +18193,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18193
18193
|
return result;
|
|
18194
18194
|
}
|
|
18195
18195
|
for (const entry of entries) {
|
|
18196
|
-
const srcPath =
|
|
18197
|
-
const destPath =
|
|
18196
|
+
const srcPath = join13(sourceDir, entry);
|
|
18197
|
+
const destPath = join13(targetDir, entry);
|
|
18198
18198
|
try {
|
|
18199
18199
|
const src = lstatSync(srcPath);
|
|
18200
18200
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|
|
@@ -18235,7 +18235,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
18235
18235
|
}
|
|
18236
18236
|
return result;
|
|
18237
18237
|
}
|
|
18238
|
-
var home =
|
|
18238
|
+
var home = homedir8();
|
|
18239
18239
|
var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
18240
18240
|
var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
18241
18241
|
function stripSignetBlock(content) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.221.1",
|
|
4
4
|
"description": "Base class for Signet harness connectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
12
|
},
|
|
13
|
+
"./agent-dir": {
|
|
14
|
+
"import": "./dist/agent-dir.js",
|
|
15
|
+
"types": "./dist/agent-dir.d.ts"
|
|
16
|
+
},
|
|
13
17
|
"./lenient-json": {
|
|
14
18
|
"import": "./dist/lenient-json.js",
|
|
15
19
|
"types": "./dist/lenient-json.d.ts"
|
|
@@ -21,12 +25,12 @@
|
|
|
21
25
|
"!dist/**/__tests__/**"
|
|
22
26
|
],
|
|
23
27
|
"scripts": {
|
|
24
|
-
"build": "bun build ./src/index.ts ./src/lenient-json.ts --outdir ./dist --target node --external better-sqlite3 && bun run build:types",
|
|
28
|
+
"build": "bun build ./src/index.ts ./src/agent-dir.ts ./src/lenient-json.ts --outdir ./dist --target node --external better-sqlite3 && bun run build:types",
|
|
25
29
|
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
26
30
|
"typecheck": "tsc --noEmit"
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"@signetai/core": "0.
|
|
33
|
+
"@signetai/core": "0.221.1",
|
|
30
34
|
"json5": "^2.2.3",
|
|
31
35
|
"jsonc-parser": "3.3.1"
|
|
32
36
|
},
|