@signetai/connector-codex 0.154.4 → 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
@@ -7,17 +7,17 @@ import { join as join4 } from "node:path";
7
7
 
8
8
  // ../../../libs/connector-base/dist/index.js
9
9
  import { randomBytes } from "node:crypto";
10
- import { existsSync, readFileSync, renameSync, statSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
11
- import { dirname as dirname2, join as join3, resolve } from "node:path";
10
+ import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
11
+ import { dirname as dirname3, join as join3 } from "node:path";
12
12
  import { createRequire } from "node:module";
13
13
  import { dirname, join } from "node:path";
14
14
  import { fileURLToPath } from "node:url";
15
15
  import { createRequire as createRequire2 } from "node:module";
16
- import { homedir as homedir3, platform as platform2 } from "node:os";
17
- import { basename, dirname as dirname3, resolve as resolve3 } from "node:path";
18
- import { homedir as homedir7 } from "node:os";
19
- import { existsSync as existsSync12, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
20
- import { join as join12 } from "node:path";
16
+ import { homedir as homedir4, platform as platform2 } from "node:os";
17
+ import { basename, dirname as dirname4, resolve as resolve4 } from "node:path";
18
+ import { homedir as homedir8 } from "node:os";
19
+ import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync9, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
20
+ import { join as join13 } from "node:path";
21
21
  var __create2 = Object.create;
22
22
  var __getProtoOf2 = Object.getPrototypeOf;
23
23
  var __defProp2 = Object.defineProperty;
@@ -10770,11 +10770,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
10770
10770
  function defaultDiscordDesktopCachePath() {
10771
10771
  switch (platform2()) {
10772
10772
  case "darwin":
10773
- return resolve3(homedir3(), "Library", "Application Support", "discord");
10773
+ return resolve4(homedir4(), "Library", "Application Support", "discord");
10774
10774
  case "win32":
10775
- return resolve3(process.env.APPDATA || resolve3(homedir3(), "AppData", "Roaming"), "discord");
10775
+ return resolve4(process.env.APPDATA || resolve4(homedir4(), "AppData", "Roaming"), "discord");
10776
10776
  default:
10777
- return resolve3(process.env.XDG_CONFIG_HOME || resolve3(homedir3(), ".config"), "discord");
10777
+ return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir4(), ".config"), "discord");
10778
10778
  }
10779
10779
  }
10780
10780
  var IDENTITY_FILES = {
@@ -10842,15 +10842,15 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10842
10842
  skipped: [],
10843
10843
  errors: []
10844
10844
  };
10845
- if (!existsSync12(sourceDir)) {
10845
+ if (!existsSync13(sourceDir)) {
10846
10846
  return result;
10847
10847
  }
10848
- const targetParent = join12(targetDir, "..");
10849
- if (!existsSync12(targetParent)) {
10850
- mkdirSync8(targetParent, { recursive: true });
10848
+ const targetParent = join13(targetDir, "..");
10849
+ if (!existsSync13(targetParent)) {
10850
+ mkdirSync9(targetParent, { recursive: true });
10851
10851
  }
10852
- if (!existsSync12(targetDir)) {
10853
- mkdirSync8(targetDir, { recursive: true });
10852
+ if (!existsSync13(targetDir)) {
10853
+ mkdirSync9(targetDir, { recursive: true });
10854
10854
  }
10855
10855
  let entries;
10856
10856
  try {
@@ -10863,8 +10863,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10863
10863
  return result;
10864
10864
  }
10865
10865
  for (const entry of entries) {
10866
- const srcPath = join12(sourceDir, entry);
10867
- const destPath = join12(targetDir, entry);
10866
+ const srcPath = join13(sourceDir, entry);
10867
+ const destPath = join13(targetDir, entry);
10868
10868
  try {
10869
10869
  const src = lstatSync(srcPath);
10870
10870
  if (src.isSymbolicLink() || !src.isDirectory()) {
@@ -10905,7 +10905,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
10905
10905
  }
10906
10906
  return result;
10907
10907
  }
10908
- var home = homedir7();
10908
+ var home = homedir8();
10909
10909
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
10910
10910
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
10911
10911
  function stripSignetBlock(content) {
@@ -11062,7 +11062,7 @@ class BaseConnector {
11062
11062
  generateHeader(sourcePath, targetName) {
11063
11063
  const name = targetName || this.name;
11064
11064
  const safe = (p) => p.replace(/[\n\r]/g, "");
11065
- const root = dirname2(sourcePath);
11065
+ const root = dirname3(sourcePath);
11066
11066
  return `# Auto-generated from ${safe(sourcePath)}
11067
11067
  # Source: ${safe(sourcePath)}
11068
11068
  # Generated: ${new Date().toISOString()}
@@ -11094,11 +11094,11 @@ ${content}`);
11094
11094
  }
11095
11095
  }
11096
11096
  function atomicWriteText(path, content, mode) {
11097
- const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
11097
+ const tmp = join3(dirname3(path), `.${randomBytes(6).toString("hex")}.tmp`);
11098
11098
  let writeMode = mode;
11099
11099
  if (writeMode === undefined) {
11100
11100
  try {
11101
- writeMode = statSync(path).mode & 511;
11101
+ writeMode = statSync2(path).mode & 511;
11102
11102
  } catch {}
11103
11103
  }
11104
11104
  try {
@@ -11136,14 +11136,14 @@ function resolveSignetCliCommand() {
11136
11136
 
11137
11137
  // ../../../platform/core/dist/index.js
11138
11138
  import { createRequire as createRequire3 } from "node:module";
11139
- import { dirname as dirname4, join as join2 } from "node:path";
11139
+ import { dirname as dirname2, join as join2 } from "node:path";
11140
11140
  import { fileURLToPath as fileURLToPath2 } from "node:url";
11141
11141
  import { homedir as homedir2 } from "os";
11142
11142
  import { join as join22 } from "path";
11143
11143
  import { createRequire as createRequire22 } from "node:module";
11144
- import { homedir as homedir32, platform as platform22 } from "node:os";
11145
- import { basename as basename2, dirname as dirname32, resolve as resolve32 } from "node:path";
11146
- import { homedir as homedir72 } from "node:os";
11144
+ import { homedir as homedir42, platform as platform22 } from "node:os";
11145
+ import { basename as basename2, dirname as dirname42, resolve as resolve42 } from "node:path";
11146
+ import { homedir as homedir82 } from "node:os";
11147
11147
  var __create = Object.create;
11148
11148
  var __getProtoOf = Object.getPrototypeOf;
11149
11149
  var __defProp = Object.defineProperty;
@@ -21818,7 +21818,7 @@ var MIGRATIONS2 = [
21818
21818
  ];
21819
21819
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
21820
21820
  var __filename22 = fileURLToPath2(import.meta.url);
21821
- var __dirname22 = dirname4(__filename22);
21821
+ var __dirname22 = dirname2(__filename22);
21822
21822
  var import_yaml3 = __toESM(require_dist2(), 1);
21823
21823
  function expandHome(p, home2 = homedir2()) {
21824
21824
  if (p === "~")
@@ -21974,11 +21974,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
21974
21974
  function defaultDiscordDesktopCachePath2() {
21975
21975
  switch (platform22()) {
21976
21976
  case "darwin":
21977
- return resolve32(homedir32(), "Library", "Application Support", "discord");
21977
+ return resolve42(homedir42(), "Library", "Application Support", "discord");
21978
21978
  case "win32":
21979
- return resolve32(process.env.APPDATA || resolve32(homedir32(), "AppData", "Roaming"), "discord");
21979
+ return resolve42(process.env.APPDATA || resolve42(homedir42(), "AppData", "Roaming"), "discord");
21980
21980
  default:
21981
- return resolve32(process.env.XDG_CONFIG_HOME || resolve32(homedir32(), ".config"), "discord");
21981
+ return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir42(), ".config"), "discord");
21982
21982
  }
21983
21983
  }
21984
21984
  var IDENTITY_FILES2 = {
@@ -22056,7 +22056,7 @@ function resolvePromptSubmitTimeoutMs(raw) {
22056
22056
  return 120000;
22057
22057
  return ms;
22058
22058
  }
22059
- var home2 = homedir72();
22059
+ var home2 = homedir82();
22060
22060
  var SKIP_SUBTYPES2 = new Set([
22061
22061
  "channel_join",
22062
22062
  "channel_leave",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-codex",
3
- "version": "0.154.4",
3
+ "version": "0.154.7",
4
4
  "description": "Signet connector for Codex 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.4",
28
- "@signetai/core": "0.154.4"
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",