@signetai/connector-base 0.178.0 → 0.179.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
34
34
  import { randomBytes } from "node:crypto";
35
35
  import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
36
36
  import { homedir } from "node:os";
37
- import { dirname as dirname3, isAbsolute, join as join3, relative, sep } from "node:path";
37
+ import { dirname as dirname5, isAbsolute, join as join3, relative, sep } from "node:path";
38
38
 
39
39
  // ../../platform/core/dist/index.js
40
40
  import { createRequire } from "node:module";
@@ -46,9 +46,11 @@ import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync as rea
46
46
  import { homedir as homedir3 } from "node:os";
47
47
  import { dirname as dirname2, join as join5, resolve } from "node:path";
48
48
  import { createRequire as createRequire2 } from "node:module";
49
- import { homedir as homedir4, platform as platform2 } from "node:os";
49
+ import { homedir as homedir4 } from "node:os";
50
+ import { dirname as dirname3, join as join6, resolve as resolve2 } from "node:path";
51
+ import { homedir as homedir5, platform as platform2 } from "node:os";
50
52
  import { basename, dirname as dirname4, resolve as resolve4 } from "node:path";
51
- import { homedir as homedir8 } from "node:os";
53
+ import { homedir as homedir9 } from "node:os";
52
54
  import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync9, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
53
55
  import { join as join13 } from "node:path";
54
56
  var __create2 = Object.create;
@@ -11515,6 +11517,7 @@ try {
11515
11517
  const esmRequire = createRequire2(import.meta.url);
11516
11518
  native = esmRequire("@signet/native");
11517
11519
  } catch {}
11520
+ var GRAPHIQ_DEFAULT_INSTALL_DIR = join6(homedir4(), ".local", "bin");
11518
11521
  var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
11519
11522
  var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
11520
11523
  var SIGNET_GIT_PROTECTED_PATHS = [
@@ -11584,11 +11587,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
11584
11587
  function defaultDiscordDesktopCachePath() {
11585
11588
  switch (platform2()) {
11586
11589
  case "darwin":
11587
- return resolve4(homedir4(), "Library", "Application Support", "discord");
11590
+ return resolve4(homedir5(), "Library", "Application Support", "discord");
11588
11591
  case "win32":
11589
- return resolve4(process.env.APPDATA || resolve4(homedir4(), "AppData", "Roaming"), "discord");
11592
+ return resolve4(process.env.APPDATA || resolve4(homedir5(), "AppData", "Roaming"), "discord");
11590
11593
  default:
11591
- return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir4(), ".config"), "discord");
11594
+ return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir5(), ".config"), "discord");
11592
11595
  }
11593
11596
  }
11594
11597
  var IDENTITY_FILES = {
@@ -11719,7 +11722,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
11719
11722
  }
11720
11723
  return result;
11721
11724
  }
11722
- var home = homedir8();
11725
+ var home = homedir9();
11723
11726
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
11724
11727
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
11725
11728
  function stripSignetBlock(content) {
@@ -11761,7 +11764,7 @@ class BaseConnector {
11761
11764
  generateHeader(sourcePath, targetName) {
11762
11765
  const name = targetName || this.name;
11763
11766
  const safe = (p) => p.replace(/[\n\r]/g, "");
11764
- const root = dirname3(sourcePath);
11767
+ const root = dirname5(sourcePath);
11765
11768
  return `# Auto-generated from ${safe(sourcePath)}
11766
11769
  # Source: ${safe(sourcePath)}
11767
11770
  # Generated: ${new Date().toISOString()}
@@ -11798,7 +11801,7 @@ function isSignetGeneratedFile(raw) {
11798
11801
  return lines.some((line, i) => /^#\s+AUTO-GENERATED\s+from\s+.*\s+by\s+Signet/i.test(line) || /^#\s+Auto-generated\s+from\s+/.test(line) && i + 1 < lines.length && /^#\s+Source:\s+/.test(lines[i + 1]));
11799
11802
  }
11800
11803
  function atomicWriteText(path, content, mode) {
11801
- const tmp = join3(dirname3(path), `.${randomBytes(6).toString("hex")}.tmp`);
11804
+ const tmp = join3(dirname5(path), `.${randomBytes(6).toString("hex")}.tmp`);
11802
11805
  let writeMode = mode;
11803
11806
  if (writeMode === undefined) {
11804
11807
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-base",
3
- "version": "0.178.0",
3
+ "version": "0.179.0",
4
4
  "description": "Base class for Signet harness connectors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@signetai/core": "0.178.0",
29
+ "@signetai/core": "0.179.0",
30
30
  "json5": "^2.2.3",
31
31
  "jsonc-parser": "3.3.1"
32
32
  },