@signetai/connector-gemini 0.214.42 → 0.216.4

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 +38 -38
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  writeFileSync as writeFileSync2
12
12
  } from "node:fs";
13
13
  import { homedir as homedir3 } from "node:os";
14
- import { dirname as dirname9, join as join6, resolve as resolve3 } from "node:path";
14
+ import { dirname as dirname9, join as join6, resolve as resolve6 } from "node:path";
15
15
 
16
16
  // ../../../libs/connector-base/dist/index.js
17
17
  import { randomBytes } from "node:crypto";
@@ -22,32 +22,32 @@ import { createRequire } from "node:module";
22
22
  import { dirname, join } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
24
24
  import { createHash } from "node:crypto";
25
- import { homedir as homedir2 } from "os";
26
- import { join as join2 } from "path";
25
+ import { homedir as homedir2 } from "node:os";
26
+ import { join as join2, resolve } from "node:path";
27
27
  import { execFileSync as execFileSync2 } from "node:child_process";
28
28
  import { createHash as createHash2 } from "node:crypto";
29
29
  import { createRequire as createRequire2 } from "node:module";
30
30
  import {
31
31
  closeSync as closeSync2,
32
- existsSync as existsSync5,
32
+ existsSync as existsSync6,
33
33
  fsyncSync as fsyncSync2,
34
34
  mkdirSync as mkdirSync3,
35
35
  openSync as openSync2,
36
- readFileSync as readFileSync4,
36
+ readFileSync as readFileSync5,
37
37
  renameSync as renameSync2,
38
38
  rmSync,
39
39
  statSync as statSync3,
40
40
  writeSync
41
41
  } from "node:fs";
42
42
  import { homedir as homedir4 } from "node:os";
43
- import { dirname as dirname3, join as join7, resolve } from "node:path";
43
+ import { dirname as dirname3, join as join7, resolve as resolve2 } from "node:path";
44
44
  import { createRequire as createRequire3 } from "node:module";
45
45
  import { homedir as homedir5 } from "node:os";
46
- import { dirname as dirname4, join as join8, resolve as resolve2 } from "node:path";
46
+ import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
47
47
  import { homedir as homedir6, platform as platform2 } from "node:os";
48
- import { basename, dirname as dirname5, resolve as resolve4 } from "node:path";
48
+ import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
49
49
  import { homedir as homedir10 } from "node:os";
50
- import { existsSync as existsSync14, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
50
+ import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
51
51
  import { join as join15 } from "node:path";
52
52
  var __create2 = Object.create;
53
53
  var __getProtoOf2 = Object.getPrototypeOf;
@@ -7027,7 +7027,7 @@ var require_keyring = __commonJS2((exports, module) => {
7027
7027
  var __filename2 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
7028
7028
  var { createRequire: createRequire22 } = __require("node:module");
7029
7029
  __require = createRequire22(__filename2);
7030
- var { readFileSync: readFileSync2 } = __require("node:fs");
7030
+ var { readFileSync: readFileSync3 } = __require("node:fs");
7031
7031
  var nativeBinding = null;
7032
7032
  var loadErrors = [];
7033
7033
  var isMusl = () => {
@@ -7046,7 +7046,7 @@ var require_keyring = __commonJS2((exports, module) => {
7046
7046
  var isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
7047
7047
  var isMuslFromFilesystem = () => {
7048
7048
  try {
7049
- return readFileSync2("/usr/bin/ldd", "utf-8").includes("musl");
7049
+ return readFileSync3("/usr/bin/ldd", "utf-8").includes("musl");
7050
7050
  } catch {
7051
7051
  return null;
7052
7052
  }
@@ -17500,7 +17500,7 @@ var import_yaml2 = __toESM2(require_dist(), 1);
17500
17500
  var WORKSPACE_ENV_KEYS = ["SIGNET_PATH", "SIGNET_WORKSPACE"];
17501
17501
  var DEFAULT_AGENTS_DIRNAME = ".agents";
17502
17502
  function normalizeWorkspacePath(pathValue, home = homedir4()) {
17503
- return resolve(expandHome(pathValue.trim(), home));
17503
+ return resolve2(expandHome(pathValue.trim(), home));
17504
17504
  }
17505
17505
  function readTrimmedEnv(env, name) {
17506
17506
  const value = env[name];
@@ -17532,11 +17532,11 @@ function getWorkspaceConfigPath(env = process.env, home = homedir4()) {
17532
17532
  function readConfiguredWorkspacePath(env = process.env, home = homedir4(), options = {}) {
17533
17533
  const strict = options.strict ?? true;
17534
17534
  const configPath = getWorkspaceConfigPath(env, home);
17535
- if (!existsSync5(configPath))
17535
+ if (!existsSync6(configPath))
17536
17536
  return null;
17537
17537
  let raw;
17538
17538
  try {
17539
- raw = JSON.parse(readFileSync4(configPath, "utf-8"));
17539
+ raw = JSON.parse(readFileSync5(configPath, "utf-8"));
17540
17540
  } catch (err) {
17541
17541
  if (!strict)
17542
17542
  return null;
@@ -17674,11 +17674,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
17674
17674
  function defaultDiscordDesktopCachePath() {
17675
17675
  switch (platform2()) {
17676
17676
  case "darwin":
17677
- return resolve4(homedir6(), "Library", "Application Support", "discord");
17677
+ return resolve5(homedir6(), "Library", "Application Support", "discord");
17678
17678
  case "win32":
17679
- return resolve4(process.env.APPDATA || resolve4(homedir6(), "AppData", "Roaming"), "discord");
17679
+ return resolve5(process.env.APPDATA || resolve5(homedir6(), "AppData", "Roaming"), "discord");
17680
17680
  default:
17681
- return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir6(), ".config"), "discord");
17681
+ return resolve5(process.env.XDG_CONFIG_HOME || resolve5(homedir6(), ".config"), "discord");
17682
17682
  }
17683
17683
  }
17684
17684
  var IDENTITY_FILES = {
@@ -17746,14 +17746,14 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
17746
17746
  skipped: [],
17747
17747
  errors: []
17748
17748
  };
17749
- if (!existsSync14(sourceDir)) {
17749
+ if (!existsSync15(sourceDir)) {
17750
17750
  return result;
17751
17751
  }
17752
17752
  const targetParent = join15(targetDir, "..");
17753
- if (!existsSync14(targetParent)) {
17753
+ if (!existsSync15(targetParent)) {
17754
17754
  mkdirSync10(targetParent, { recursive: true });
17755
17755
  }
17756
- if (!existsSync14(targetDir)) {
17756
+ if (!existsSync15(targetDir)) {
17757
17757
  mkdirSync10(targetDir, { recursive: true });
17758
17758
  }
17759
17759
  let entries;
@@ -17933,17 +17933,17 @@ import { createRequire as createRequire4 } from "node:module";
17933
17933
  import { dirname as dirname6, join as join4 } from "node:path";
17934
17934
  import { fileURLToPath as fileURLToPath2 } from "node:url";
17935
17935
  import { createHash as createHash3 } from "node:crypto";
17936
- import { homedir as homedir22 } from "os";
17937
- import { join as join22 } from "path";
17936
+ import { homedir as homedir22 } from "node:os";
17937
+ import { join as join22, resolve as resolve4 } from "node:path";
17938
17938
  import { execFileSync as execFileSync22 } from "node:child_process";
17939
17939
  import { createHash as createHash22 } from "node:crypto";
17940
17940
  import { createRequire as createRequire22 } from "node:module";
17941
17941
  import { createRequire as createRequire32 } from "node:module";
17942
17942
  import { homedir as homedir52 } from "node:os";
17943
- import { dirname as dirname42, join as join82, resolve as resolve22 } from "node:path";
17943
+ import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
17944
17944
  import { homedir as homedir62, platform as platform22 } from "node:os";
17945
- import { basename as basename2, dirname as dirname52, resolve as resolve42 } from "node:path";
17946
- import { existsSync as existsSync12, readFileSync as readFileSync10, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
17945
+ import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
17946
+ import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
17947
17947
  import { dirname as dirname8, join as join13 } from "node:path";
17948
17948
  import { homedir as homedir102 } from "node:os";
17949
17949
  var __create = Object.create;
@@ -24924,7 +24924,7 @@ var require_keyring2 = __commonJS((exports, module) => {
24924
24924
  var __filename3 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
24925
24925
  var { createRequire: createRequire23 } = __require2("node:module");
24926
24926
  __require2 = createRequire23(__filename3);
24927
- var { readFileSync: readFileSync2 } = __require2("node:fs");
24927
+ var { readFileSync: readFileSync3 } = __require2("node:fs");
24928
24928
  var nativeBinding = null;
24929
24929
  var loadErrors = [];
24930
24930
  var isMusl = () => {
@@ -24943,7 +24943,7 @@ var require_keyring2 = __commonJS((exports, module) => {
24943
24943
  var isFileMusl = (f2) => f2.includes("libc.musl-") || f2.includes("ld-musl-");
24944
24944
  var isMuslFromFilesystem = () => {
24945
24945
  try {
24946
- return readFileSync2("/usr/bin/ldd", "utf-8").includes("musl");
24946
+ return readFileSync3("/usr/bin/ldd", "utf-8").includes("musl");
24947
24947
  } catch {
24948
24948
  return null;
24949
24949
  }
@@ -35477,11 +35477,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
35477
35477
  function defaultDiscordDesktopCachePath2() {
35478
35478
  switch (platform22()) {
35479
35479
  case "darwin":
35480
- return resolve42(homedir62(), "Library", "Application Support", "discord");
35480
+ return resolve52(homedir62(), "Library", "Application Support", "discord");
35481
35481
  case "win32":
35482
- return resolve42(process.env.APPDATA || resolve42(homedir62(), "AppData", "Roaming"), "discord");
35482
+ return resolve52(process.env.APPDATA || resolve52(homedir62(), "AppData", "Roaming"), "discord");
35483
35483
  default:
35484
- return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir62(), ".config"), "discord");
35484
+ return resolve52(process.env.XDG_CONFIG_HOME || resolve52(homedir62(), ".config"), "discord");
35485
35485
  }
35486
35486
  }
35487
35487
  var IDENTITY_MODES = ["managed", "off"];
@@ -35584,7 +35584,7 @@ function hasValidIdentity(basePath) {
35584
35584
  if (mode !== "managed")
35585
35585
  return true;
35586
35586
  for (const path of resolveRequiredIdentityPaths(basePath)) {
35587
- if (!existsSync12(join13(basePath, path))) {
35587
+ if (!existsSync13(join13(basePath, path))) {
35588
35588
  return false;
35589
35589
  }
35590
35590
  }
@@ -35593,10 +35593,10 @@ function hasValidIdentity(basePath) {
35593
35593
  function resolveRequiredIdentityPaths(basePath) {
35594
35594
  const legacyRequired = () => REQUIRED_IDENTITY_KEYS2.map((key) => IDENTITY_FILES2[key].path);
35595
35595
  const agentYaml = join13(basePath, "agent.yaml");
35596
- if (!existsSync12(agentYaml))
35596
+ if (!existsSync13(agentYaml))
35597
35597
  return legacyRequired();
35598
35598
  try {
35599
- const config = parseSimpleYaml(readFileSync10(agentYaml, "utf-8"));
35599
+ const config = parseSimpleYaml(readFileSync11(agentYaml, "utf-8"));
35600
35600
  const identity = readRecord(readRecord(config).identity);
35601
35601
  const configured = readIdentityEntryList(readRecord(identity.startup).load);
35602
35602
  if (configured.length > 0)
@@ -35640,10 +35640,10 @@ function resolveIdentityModeFromConfig(config) {
35640
35640
  }
35641
35641
  function loadIdentityMode(agentsDir) {
35642
35642
  const agentYaml = join13(agentsDir, "agent.yaml");
35643
- if (!existsSync12(agentYaml))
35643
+ if (!existsSync13(agentYaml))
35644
35644
  return "managed";
35645
35645
  try {
35646
- return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync10(agentYaml, "utf-8")));
35646
+ return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync11(agentYaml, "utf-8")));
35647
35647
  } catch {
35648
35648
  return "managed";
35649
35649
  }
@@ -35698,7 +35698,7 @@ class GeminiConnector extends BaseConnector {
35698
35698
  if (isJsonObject(contextConfig)) {
35699
35699
  const fileNames = contextConfig.fileName;
35700
35700
  if (Array.isArray(fileNames) && typeof fileNames[0] === "string") {
35701
- const candidate = resolve3(geminiHome, fileNames[0]);
35701
+ const candidate = resolve6(geminiHome, fileNames[0]);
35702
35702
  if (isChildOf(candidate, geminiHome)) {
35703
35703
  return candidate;
35704
35704
  }
@@ -35795,7 +35795,7 @@ class GeminiConnector extends BaseConnector {
35795
35795
  return existsSync2(join6(homedir3(), ".gemini", "settings.json"));
35796
35796
  }
35797
35797
  removeSignetSkillSymlinks(skillsDir, signetWorkspace) {
35798
- const signetSkillsSource = resolve3(signetWorkspace, "skills");
35798
+ const signetSkillsSource = resolve6(signetWorkspace, "skills");
35799
35799
  let entries;
35800
35800
  try {
35801
35801
  entries = readdirSync(skillsDir);
@@ -35813,7 +35813,7 @@ class GeminiConnector extends BaseConnector {
35813
35813
  if (stat?.isSymbolicLink()) {
35814
35814
  try {
35815
35815
  const rawTarget = readlinkSync(entryPath);
35816
- const target = resolve3(dirname9(entryPath), rawTarget);
35816
+ const target = resolve6(dirname9(entryPath), rawTarget);
35817
35817
  if (isChildOf(target, signetSkillsSource)) {
35818
35818
  unlinkSync3(entryPath);
35819
35819
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-gemini",
3
- "version": "0.214.42",
3
+ "version": "0.216.4",
4
4
  "description": "Signet connector for Gemini 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.214.42",
28
- "@signetai/core": "0.214.42"
27
+ "@signetai/connector-base": "0.216.4",
28
+ "@signetai/core": "0.216.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",