@signetai/connector-kimi 0.219.5 → 0.220.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.
- package/dist/index.js +95 -19
- 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";
|
|
@@ -19,9 +26,9 @@ import { homedir as homedir5 } from "node:os";
|
|
|
19
26
|
import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
|
|
20
27
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
21
28
|
import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
|
|
22
|
-
import { homedir as
|
|
23
|
-
import { existsSync as
|
|
24
|
-
import { join as
|
|
29
|
+
import { homedir as homedir8 } from "node:os";
|
|
30
|
+
import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
|
|
31
|
+
import { join as join13 } from "node:path";
|
|
25
32
|
var __create2 = Object.create;
|
|
26
33
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
27
34
|
var __defProp2 = Object.defineProperty;
|
|
@@ -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
|
});
|
|
@@ -17899,19 +17937,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17899
17937
|
skipped: [],
|
|
17900
17938
|
errors: []
|
|
17901
17939
|
};
|
|
17902
|
-
if (!
|
|
17940
|
+
if (!existsSync13(sourceDir)) {
|
|
17903
17941
|
return result;
|
|
17904
17942
|
}
|
|
17905
|
-
const targetParent =
|
|
17906
|
-
if (!
|
|
17907
|
-
|
|
17943
|
+
const targetParent = join13(targetDir, "..");
|
|
17944
|
+
if (!existsSync13(targetParent)) {
|
|
17945
|
+
mkdirSync8(targetParent, { recursive: true });
|
|
17908
17946
|
}
|
|
17909
|
-
if (!
|
|
17910
|
-
|
|
17947
|
+
if (!existsSync13(targetDir)) {
|
|
17948
|
+
mkdirSync8(targetDir, { recursive: true });
|
|
17911
17949
|
}
|
|
17912
17950
|
let entries;
|
|
17913
17951
|
try {
|
|
17914
|
-
entries =
|
|
17952
|
+
entries = readdirSync6(sourceDir);
|
|
17915
17953
|
} catch (e) {
|
|
17916
17954
|
result.errors.push({
|
|
17917
17955
|
path: sourceDir,
|
|
@@ -17920,8 +17958,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17920
17958
|
return result;
|
|
17921
17959
|
}
|
|
17922
17960
|
for (const entry of entries) {
|
|
17923
|
-
const srcPath =
|
|
17924
|
-
const destPath =
|
|
17961
|
+
const srcPath = join13(sourceDir, entry);
|
|
17962
|
+
const destPath = join13(targetDir, entry);
|
|
17925
17963
|
try {
|
|
17926
17964
|
const src = lstatSync(srcPath);
|
|
17927
17965
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|
|
@@ -17962,7 +18000,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17962
18000
|
}
|
|
17963
18001
|
return result;
|
|
17964
18002
|
}
|
|
17965
|
-
var home =
|
|
18003
|
+
var home = homedir8();
|
|
17966
18004
|
var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
17967
18005
|
var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
17968
18006
|
function stripSignetBlock(content) {
|
|
@@ -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";
|
|
@@ -18078,7 +18123,7 @@ import { homedir as homedir52 } from "node:os";
|
|
|
18078
18123
|
import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
|
|
18079
18124
|
import { homedir as homedir62, platform as platform22 } from "node:os";
|
|
18080
18125
|
import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
|
|
18081
|
-
import { homedir as
|
|
18126
|
+
import { homedir as homedir82 } from "node:os";
|
|
18082
18127
|
var __create = Object.create;
|
|
18083
18128
|
var __getProtoOf = Object.getPrototypeOf;
|
|
18084
18129
|
var __defProp = Object.defineProperty;
|
|
@@ -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
|
});
|
|
@@ -36053,7 +36129,7 @@ function resolvePromptSubmitTimeoutMs(raw) {
|
|
|
36053
36129
|
return 120000;
|
|
36054
36130
|
return ms;
|
|
36055
36131
|
}
|
|
36056
|
-
var home2 =
|
|
36132
|
+
var home2 = homedir82();
|
|
36057
36133
|
|
|
36058
36134
|
// src/index.ts
|
|
36059
36135
|
function resolveSignetArgs() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-kimi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.220.0",
|
|
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.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.220.0",
|
|
28
|
+
"@signetai/core": "0.220.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|