@signetai/connector-kimi 0.219.4 → 0.219.6
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/index.js +80 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10,8 +10,15 @@ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "n
|
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
|
+
import {
|
|
14
|
+
execFile as nodeExecFile,
|
|
15
|
+
execFileSync as nodeExecFileSync,
|
|
16
|
+
execSync as nodeExecSync,
|
|
17
|
+
spawn as nodeSpawn,
|
|
18
|
+
spawnSync as nodeSpawnSync
|
|
19
|
+
} from "node:child_process";
|
|
20
|
+
import { promisify } from "node:util";
|
|
13
21
|
import { createHash } from "node:crypto";
|
|
14
|
-
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
15
22
|
import { createHash as createHash2 } from "node:crypto";
|
|
16
23
|
import { createRequire as createRequire2 } from "node:module";
|
|
17
24
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -11164,6 +11171,37 @@ var PIPELINE_PROVIDER_CHOICES = [
|
|
|
11164
11171
|
var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
|
|
11165
11172
|
var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
|
|
11166
11173
|
var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
|
|
11174
|
+
function withWindowsHide(options) {
|
|
11175
|
+
return {
|
|
11176
|
+
...options ?? {},
|
|
11177
|
+
windowsHide: options?.windowsHide ?? true
|
|
11178
|
+
};
|
|
11179
|
+
}
|
|
11180
|
+
function isOptions(value) {
|
|
11181
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11182
|
+
}
|
|
11183
|
+
function withWindowsHideArgument(args, firstOptionIndex) {
|
|
11184
|
+
const normalized = [...args];
|
|
11185
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
|
|
11186
|
+
if (optionIndex >= 0) {
|
|
11187
|
+
normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
|
|
11188
|
+
return normalized;
|
|
11189
|
+
}
|
|
11190
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
11191
|
+
if (placeholderIndex >= 0) {
|
|
11192
|
+
normalized[placeholderIndex] = withWindowsHide(undefined);
|
|
11193
|
+
return normalized;
|
|
11194
|
+
}
|
|
11195
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
11196
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
11197
|
+
return normalized;
|
|
11198
|
+
}
|
|
11199
|
+
var nodeExecFileAsync = promisify(nodeExecFile);
|
|
11200
|
+
var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
|
|
11201
|
+
Object.defineProperty(execFileHiddenImpl, promisify.custom, {
|
|
11202
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
|
|
11203
|
+
});
|
|
11204
|
+
var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
|
|
11167
11205
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
|
|
11168
11206
|
var MEMORY_CONTENT_SAFETY_REASONS = [
|
|
11169
11207
|
"prompt_injection",
|
|
@@ -17679,7 +17717,7 @@ function linuxKeyringAvailable() {
|
|
|
17679
17717
|
};
|
|
17680
17718
|
}
|
|
17681
17719
|
try {
|
|
17682
|
-
|
|
17720
|
+
execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
17683
17721
|
stdio: "ignore",
|
|
17684
17722
|
timeout: 1000
|
|
17685
17723
|
});
|
|
@@ -18067,10 +18105,17 @@ function atomicWriteJson(path, data, indent = 2) {
|
|
|
18067
18105
|
import { createRequire as createRequire4 } from "node:module";
|
|
18068
18106
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
18069
18107
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
18108
|
+
import {
|
|
18109
|
+
execFile as nodeExecFile2,
|
|
18110
|
+
execFileSync as nodeExecFileSync2,
|
|
18111
|
+
execSync as nodeExecSync2,
|
|
18112
|
+
spawn as nodeSpawn2,
|
|
18113
|
+
spawnSync as nodeSpawnSync2
|
|
18114
|
+
} from "node:child_process";
|
|
18115
|
+
import { promisify as promisify2 } from "node:util";
|
|
18070
18116
|
import { createHash as createHash3 } from "node:crypto";
|
|
18071
18117
|
import { homedir as homedir2 } from "node:os";
|
|
18072
18118
|
import { join as join22, resolve } from "node:path";
|
|
18073
|
-
import { execFileSync as execFileSync32 } from "node:child_process";
|
|
18074
18119
|
import { createHash as createHash22 } from "node:crypto";
|
|
18075
18120
|
import { createRequire as createRequire22 } from "node:module";
|
|
18076
18121
|
import { createRequire as createRequire32 } from "node:module";
|
|
@@ -29221,6 +29266,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
|
|
|
29221
29266
|
var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
|
|
29222
29267
|
var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
|
|
29223
29268
|
var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
|
|
29269
|
+
function withWindowsHide2(options) {
|
|
29270
|
+
return {
|
|
29271
|
+
...options ?? {},
|
|
29272
|
+
windowsHide: options?.windowsHide ?? true
|
|
29273
|
+
};
|
|
29274
|
+
}
|
|
29275
|
+
function isOptions2(value) {
|
|
29276
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
29277
|
+
}
|
|
29278
|
+
function withWindowsHideArgument2(args, firstOptionIndex) {
|
|
29279
|
+
const normalized = [...args];
|
|
29280
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
|
|
29281
|
+
if (optionIndex >= 0) {
|
|
29282
|
+
normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
|
|
29283
|
+
return normalized;
|
|
29284
|
+
}
|
|
29285
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
29286
|
+
if (placeholderIndex >= 0) {
|
|
29287
|
+
normalized[placeholderIndex] = withWindowsHide2(undefined);
|
|
29288
|
+
return normalized;
|
|
29289
|
+
}
|
|
29290
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
29291
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
29292
|
+
return normalized;
|
|
29293
|
+
}
|
|
29294
|
+
var nodeExecFileAsync2 = promisify2(nodeExecFile2);
|
|
29295
|
+
var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
|
|
29296
|
+
Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
|
|
29297
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
|
|
29298
|
+
});
|
|
29299
|
+
var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
|
|
29224
29300
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
|
|
29225
29301
|
var MEMORY_CONTENT_SAFETY_REASONS2 = [
|
|
29226
29302
|
"prompt_injection",
|
|
@@ -35743,7 +35819,7 @@ function linuxKeyringAvailable2() {
|
|
|
35743
35819
|
};
|
|
35744
35820
|
}
|
|
35745
35821
|
try {
|
|
35746
|
-
|
|
35822
|
+
execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
35747
35823
|
stdio: "ignore",
|
|
35748
35824
|
timeout: 1000
|
|
35749
35825
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-kimi",
|
|
3
|
-
"version": "0.219.
|
|
3
|
+
"version": "0.219.6",
|
|
4
4
|
"description": "Signet connector for Kimi CLI / Kimi Code",
|
|
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.219.
|
|
28
|
-
"@signetai/core": "0.219.
|
|
27
|
+
"@signetai/connector-base": "0.219.6",
|
|
28
|
+
"@signetai/core": "0.219.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|