@yukino.js/yukino 0.0.11 → 0.0.13-dev
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/README.md +111 -68
- package/dist/a2a-DG2JNM3U.js +14 -0
- package/dist/acp-DCZDS6FQ.js +14 -0
- package/dist/anthropic-5BTWVZVT.js +4 -0
- package/dist/chunk-4CLD7LEU.js +5 -0
- package/dist/{chunk-QMHSZVNF.js → chunk-5DK2M7VI.js} +1 -1
- package/dist/chunk-5URXBVET.js +4 -0
- package/dist/{chunk-3VTVI62N.js → chunk-AZQD75PX.js} +1 -1
- package/dist/{chunk-WH5FUZXY.js → chunk-BDLFNDC4.js} +3 -3
- package/dist/{chunk-TPEUG7AU.js → chunk-COHBT6M7.js} +161 -155
- package/dist/chunk-CW5XFH7H.js +59 -0
- package/dist/{chunk-YWTRNPNR.js → chunk-IWMCIYOG.js} +21 -21
- package/dist/chunk-OI2W6R6H.js +28 -0
- package/dist/chunk-SZXXASVH.js +4 -0
- package/dist/chunk-UGX62ZSO.js +4 -0
- package/dist/chunk-W4GMCNWF.js +65 -0
- package/dist/lib/{anthropic-7HQY42TP.js → anthropic-AVZIC22O.js} +5 -5
- package/dist/lib/bwrap-JS5GRKWY.js +7 -0
- package/dist/lib/{chunk-QQ2V5EX3.js → chunk-EGJKLA2W.js} +3 -3
- package/dist/lib/{chunk-AUU4RKMV.js → chunk-GVI5R2DA.js} +47 -29
- package/dist/lib/{chunk-XDGZMZ2B.js → chunk-LSI3T24Q.js} +2 -2
- package/dist/lib/{chunk-EATSQNOB.js → chunk-O2H6VKKR.js} +3 -3
- package/dist/lib/{chunk-55LKYMVV.js → chunk-OFDOP6I2.js} +2 -2
- package/dist/lib/{chunk-JXZ5KIUV.js → chunk-PCZ63WQL.js} +1 -1
- package/dist/lib/{chunk-Q6B6TAR3.js → chunk-QJ32WYQY.js} +120 -152
- package/dist/lib/{chunk-VXHBKGZW.js → chunk-TUNZLQLO.js} +12 -13
- package/dist/lib/{chunk-OCGX3ISG.js → chunk-XH7D5FLE.js} +4 -4
- package/dist/lib/{chunk-KC54MV5H.js → chunk-XLRV26YW.js} +1 -1
- package/dist/lib/index.d.ts +380 -351
- package/dist/lib/index.js +925 -638
- package/dist/lib/{openai-Z7PCXN2X.js → openai-54IQOU6Y.js} +4 -4
- package/dist/lib/{providers-GOU5DD3X.js → providers-MOCB6Y5L.js} +3 -3
- package/dist/lib/seatbelt-LDM6UB6N.js +7 -0
- package/dist/lib/{tool-filter-GVVYY5QO.js → tool-filter-5Z6UTRRR.js} +4 -4
- package/dist/main-IA22XMQR.js +494 -0
- package/dist/main.js +2 -487
- package/dist/{openai-WNPMC64P.js → openai-I2TTMBWK.js} +1 -1
- package/dist/providers-DXQRJUIY.js +4 -0
- package/dist/server-QS7CX37F.js +4 -0
- package/dist/tool-filter-KDQMXIDC.js +4 -0
- package/package.json +2 -2
- package/dist/a2a-WKGEGTP6.js +0 -14
- package/dist/acp-W2I7T2NT.js +0 -14
- package/dist/anthropic-CQUMQFUK.js +0 -4
- package/dist/chunk-CH7VZVG4.js +0 -4
- package/dist/chunk-F6WFTAOT.js +0 -59
- package/dist/chunk-R567WVDL.js +0 -90
- package/dist/chunk-ZPL2YHQU.js +0 -5
- package/dist/lib/bwrap-V6MFP7PT.js +0 -7
- package/dist/lib/seatbelt-2OE46ZE7.js +0 -7
- package/dist/providers-CMCKMYGG.js +0 -4
- package/dist/server-OQ5XVSZY.js +0 -4
- package/dist/tool-filter-BTQ7WTHR.js +0 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createChildLogger
|
|
3
|
-
|
|
2
|
+
createChildLogger,
|
|
3
|
+
yukinoPath
|
|
4
|
+
} from "./chunk-GVI5R2DA.js";
|
|
4
5
|
import {
|
|
5
6
|
__export
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OFDOP6I2.js";
|
|
7
8
|
|
|
8
9
|
// src/config/provider-config.ts
|
|
9
10
|
var provider_config_exports = {};
|
|
@@ -29,11 +30,9 @@ __export(provider_config_exports, {
|
|
|
29
30
|
toReasoningEffort: () => toReasoningEffort,
|
|
30
31
|
withProviderDefaults: () => withProviderDefaults
|
|
31
32
|
});
|
|
32
|
-
import { homedir } from "os";
|
|
33
|
-
import { join } from "path";
|
|
34
33
|
import { z } from "zod";
|
|
35
34
|
function globalConfigPath() {
|
|
36
|
-
return
|
|
35
|
+
return yukinoPath("config.yaml");
|
|
37
36
|
}
|
|
38
37
|
var THINKING_LEVELS = [
|
|
39
38
|
"off",
|
|
@@ -206,7 +205,7 @@ __export(config_exports2, {
|
|
|
206
205
|
withProjectMcpServers: () => withProjectMcpServers
|
|
207
206
|
});
|
|
208
207
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
209
|
-
import { join as
|
|
208
|
+
import { join as join2 } from "path";
|
|
210
209
|
import {
|
|
211
210
|
getParseErrorMessage,
|
|
212
211
|
safeParse
|
|
@@ -252,7 +251,7 @@ import {
|
|
|
252
251
|
unlinkSync,
|
|
253
252
|
writeFileSync
|
|
254
253
|
} from "fs";
|
|
255
|
-
import { dirname, join
|
|
254
|
+
import { dirname, join } from "path";
|
|
256
255
|
import yaml from "js-yaml";
|
|
257
256
|
import { z as z3 } from "zod";
|
|
258
257
|
var tokenLimit = (fallback, min, max) => z3.preprocess(
|
|
@@ -294,7 +293,7 @@ function readConfigRaw(path) {
|
|
|
294
293
|
function writeConfigAtomic(path, raw) {
|
|
295
294
|
const directory = dirname(path);
|
|
296
295
|
mkdirSync(directory, { recursive: true });
|
|
297
|
-
const temporary =
|
|
296
|
+
const temporary = join(directory, `.config-${randomUUID()}.tmp`);
|
|
298
297
|
try {
|
|
299
298
|
writeFileSync(temporary, yaml.dump(raw, { lineWidth: -1, noRefs: true }), {
|
|
300
299
|
encoding: "utf-8",
|
|
@@ -574,8 +573,8 @@ function mcpServerFromJsonEntry(name, entry) {
|
|
|
574
573
|
}
|
|
575
574
|
return { name, url: entry.url, transport, headers: entry.headers };
|
|
576
575
|
}
|
|
577
|
-
function loadProjectMcpServers(
|
|
578
|
-
const path =
|
|
576
|
+
function loadProjectMcpServers(cwd) {
|
|
577
|
+
const path = join2(cwd, PROJECT_MCP_FILENAME);
|
|
579
578
|
if (!existsSync2(path)) {
|
|
580
579
|
return [];
|
|
581
580
|
}
|
|
@@ -614,8 +613,8 @@ function loadProjectMcpServers(workDir) {
|
|
|
614
613
|
}
|
|
615
614
|
return servers;
|
|
616
615
|
}
|
|
617
|
-
function withProjectMcpServers(config,
|
|
618
|
-
const projectServers = loadProjectMcpServers(
|
|
616
|
+
function withProjectMcpServers(config, cwd) {
|
|
617
|
+
const projectServers = loadProjectMcpServers(cwd);
|
|
619
618
|
if (projectServers.length === 0) {
|
|
620
619
|
return config;
|
|
621
620
|
}
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
thinkingBudgetForLevel,
|
|
18
18
|
toAnthropicThinkingEffort,
|
|
19
19
|
toReasoningEffort
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TUNZLQLO.js";
|
|
21
21
|
import {
|
|
22
22
|
MCP_TOOL_PREFIX,
|
|
23
23
|
isMcpToolLike,
|
|
24
24
|
normalizeToolResultContentBlock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LSI3T24Q.js";
|
|
26
26
|
import {
|
|
27
27
|
asErrorString,
|
|
28
28
|
asString,
|
|
29
29
|
contentToText,
|
|
30
30
|
createChildLogger,
|
|
31
31
|
strArg
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GVI5R2DA.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OFDOP6I2.js";
|
|
36
36
|
|
|
37
37
|
// src/llm/anthropic.ts
|
|
38
38
|
var anthropic_exports = {};
|