@signetai/connector-claude-code 0.154.6 → 0.154.7

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 +31 -31
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -6,17 +6,17 @@ import { join as join4 } from "node:path";
6
6
 
7
7
  // ../../../libs/connector-base/dist/index.js
8
8
  import { randomBytes } from "node:crypto";
9
- import { existsSync, readFileSync, renameSync, statSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
10
- import { dirname as dirname2, join as join3, resolve } from "node:path";
9
+ import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
10
+ import { dirname as dirname3, join as join3 } from "node:path";
11
11
  import { createRequire } from "node:module";
12
12
  import { dirname, join } from "node:path";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import { createRequire as createRequire2 } from "node:module";
15
- import { homedir as homedir3, platform as platform2 } from "node:os";
16
- import { basename, dirname as dirname3, resolve as resolve3 } from "node:path";
17
- import { homedir as homedir7 } from "node:os";
18
- import { existsSync as existsSync12, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
19
- import { join as join12 } from "node:path";
15
+ import { homedir as homedir4, platform as platform2 } from "node:os";
16
+ import { basename, dirname as dirname4, resolve as resolve4 } from "node:path";
17
+ import { homedir as homedir8 } from "node:os";
18
+ import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync9, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
19
+ import { join as join13 } from "node:path";
20
20
  var __create2 = Object.create;
21
21
  var __getProtoOf2 = Object.getPrototypeOf;
22
22
  var __defProp2 = Object.defineProperty;
@@ -10769,11 +10769,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
10769
10769
  function defaultDiscordDesktopCachePath() {
10770
10770
  switch (platform2()) {
10771
10771
  case "darwin":
10772
- return resolve3(homedir3(), "Library", "Application Support", "discord");
10772
+ return resolve4(homedir4(), "Library", "Application Support", "discord");
10773
10773
  case "win32":
10774
- return resolve3(process.env.APPDATA || resolve3(homedir3(), "AppData", "Roaming"), "discord");
10774
+ return resolve4(process.env.APPDATA || resolve4(homedir4(), "AppData", "Roaming"), "discord");
10775
10775
  default:
10776
- return resolve3(process.env.XDG_CONFIG_HOME || resolve3(homedir3(), ".config"), "discord");
10776
+ return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir4(), ".config"), "discord");
10777
10777
  }
10778
10778
  }
10779
10779
  var IDENTITY_FILES = {
@@ -10841,15 +10841,15 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10841
10841
  skipped: [],
10842
10842
  errors: []
10843
10843
  };
10844
- if (!existsSync12(sourceDir)) {
10844
+ if (!existsSync13(sourceDir)) {
10845
10845
  return result;
10846
10846
  }
10847
- const targetParent = join12(targetDir, "..");
10848
- if (!existsSync12(targetParent)) {
10849
- mkdirSync8(targetParent, { recursive: true });
10847
+ const targetParent = join13(targetDir, "..");
10848
+ if (!existsSync13(targetParent)) {
10849
+ mkdirSync9(targetParent, { recursive: true });
10850
10850
  }
10851
- if (!existsSync12(targetDir)) {
10852
- mkdirSync8(targetDir, { recursive: true });
10851
+ if (!existsSync13(targetDir)) {
10852
+ mkdirSync9(targetDir, { recursive: true });
10853
10853
  }
10854
10854
  let entries;
10855
10855
  try {
@@ -10862,8 +10862,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10862
10862
  return result;
10863
10863
  }
10864
10864
  for (const entry of entries) {
10865
- const srcPath = join12(sourceDir, entry);
10866
- const destPath = join12(targetDir, entry);
10865
+ const srcPath = join13(sourceDir, entry);
10866
+ const destPath = join13(targetDir, entry);
10867
10867
  try {
10868
10868
  const src = lstatSync(srcPath);
10869
10869
  if (src.isSymbolicLink() || !src.isDirectory()) {
@@ -10904,7 +10904,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10904
10904
  }
10905
10905
  return result;
10906
10906
  }
10907
- var home = homedir7();
10907
+ var home = homedir8();
10908
10908
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
10909
10909
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
10910
10910
  function stripSignetBlock(content) {
@@ -11061,7 +11061,7 @@ class BaseConnector {
11061
11061
  generateHeader(sourcePath, targetName) {
11062
11062
  const name = targetName || this.name;
11063
11063
  const safe = (p) => p.replace(/[\n\r]/g, "");
11064
- const root = dirname2(sourcePath);
11064
+ const root = dirname3(sourcePath);
11065
11065
  return `# Auto-generated from ${safe(sourcePath)}
11066
11066
  # Source: ${safe(sourcePath)}
11067
11067
  # Generated: ${new Date().toISOString()}
@@ -11098,11 +11098,11 @@ function isSignetGeneratedFile(raw) {
11098
11098
  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]));
11099
11099
  }
11100
11100
  function atomicWriteText(path, content, mode) {
11101
- const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
11101
+ const tmp = join3(dirname3(path), `.${randomBytes(6).toString("hex")}.tmp`);
11102
11102
  let writeMode = mode;
11103
11103
  if (writeMode === undefined) {
11104
11104
  try {
11105
- writeMode = statSync(path).mode & 511;
11105
+ writeMode = statSync2(path).mode & 511;
11106
11106
  } catch {}
11107
11107
  }
11108
11108
  try {
@@ -11137,14 +11137,14 @@ function resolveSignetMcpCommand() {
11137
11137
 
11138
11138
  // ../../../platform/core/dist/index.js
11139
11139
  import { createRequire as createRequire3 } from "node:module";
11140
- import { dirname as dirname4, join as join2 } from "node:path";
11140
+ import { dirname as dirname2, join as join2 } from "node:path";
11141
11141
  import { fileURLToPath as fileURLToPath2 } from "node:url";
11142
11142
  import { homedir as homedir2 } from "os";
11143
11143
  import { join as join22 } from "path";
11144
11144
  import { createRequire as createRequire22 } from "node:module";
11145
- import { homedir as homedir32, platform as platform22 } from "node:os";
11146
- import { basename as basename2, dirname as dirname32, resolve as resolve32 } from "node:path";
11147
- import { homedir as homedir72 } from "node:os";
11145
+ import { homedir as homedir42, platform as platform22 } from "node:os";
11146
+ import { basename as basename2, dirname as dirname42, resolve as resolve42 } from "node:path";
11147
+ import { homedir as homedir82 } from "node:os";
11148
11148
  var __create = Object.create;
11149
11149
  var __getProtoOf = Object.getPrototypeOf;
11150
11150
  var __defProp = Object.defineProperty;
@@ -21819,7 +21819,7 @@ var MIGRATIONS2 = [
21819
21819
  ];
21820
21820
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
21821
21821
  var __filename22 = fileURLToPath2(import.meta.url);
21822
- var __dirname22 = dirname4(__filename22);
21822
+ var __dirname22 = dirname2(__filename22);
21823
21823
  var import_yaml3 = __toESM(require_dist2(), 1);
21824
21824
  function expandHome(p, home2 = homedir2()) {
21825
21825
  if (p === "~")
@@ -21904,11 +21904,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
21904
21904
  function defaultDiscordDesktopCachePath2() {
21905
21905
  switch (platform22()) {
21906
21906
  case "darwin":
21907
- return resolve32(homedir32(), "Library", "Application Support", "discord");
21907
+ return resolve42(homedir42(), "Library", "Application Support", "discord");
21908
21908
  case "win32":
21909
- return resolve32(process.env.APPDATA || resolve32(homedir32(), "AppData", "Roaming"), "discord");
21909
+ return resolve42(process.env.APPDATA || resolve42(homedir42(), "AppData", "Roaming"), "discord");
21910
21910
  default:
21911
- return resolve32(process.env.XDG_CONFIG_HOME || resolve32(homedir32(), ".config"), "discord");
21911
+ return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir42(), ".config"), "discord");
21912
21912
  }
21913
21913
  }
21914
21914
  var IDENTITY_FILES2 = {
@@ -21986,7 +21986,7 @@ function resolvePromptSubmitTimeoutMs(raw) {
21986
21986
  return 120000;
21987
21987
  return ms;
21988
21988
  }
21989
- var home2 = homedir72();
21989
+ var home2 = homedir82();
21990
21990
  var SKIP_SUBTYPES2 = new Set([
21991
21991
  "channel_join",
21992
21992
  "channel_leave",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-claude-code",
3
- "version": "0.154.6",
3
+ "version": "0.154.7",
4
4
  "description": "Signet connector for Claude Code (Anthropic CLI)",
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.154.6",
28
- "@signetai/core": "0.154.6"
27
+ "@signetai/connector-base": "0.154.7",
28
+ "@signetai/core": "0.154.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",