skykoi 2026.3.369 → 2026.3.371
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/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6dc4278ed751c4e1d1b196c76a6d4444082b8f045bd9ac7b8bd7d491175d27cc
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-D_gEzPfs.js";
|
|
2
|
-
import { a as require_jws, i as require_dist_cjs$1, n as LRUCache$1, o as require_safe_buffer, r as getOAuthProviders, s as getEnvApiKey } from "./pi-model-discovery-
|
|
2
|
+
import { a as require_jws, i as require_dist_cjs$1, n as LRUCache$1, o as require_safe_buffer, r as getOAuthProviders, s as getEnvApiKey } from "./pi-model-discovery-szlzYGsC.js";
|
|
3
3
|
import { t as require_dist_cjs$2 } from "./dist-cjs-B9iGzXDA.js";
|
|
4
4
|
import { C as require_dist_cjs$3, E as init_dist_es$1, M as require_dist_cjs$13, N as require_dist_cjs$12, T as dist_es_exports$1, a as require_dist_cjs$5, c as require_dist_cjs$17, d as require_dist_cjs$15, f as dist_es_exports, h as protocols_exports, i as require_dist_cjs$7, j as require_dist_cjs$14, l as require_dist_cjs$16, m as init_protocols, n as require_dist_cjs$10, o as require_dist_cjs$8, p as init_dist_es, r as require_dist_cjs$9, s as require_dist_cjs$11, t as require_dist_cjs$18, u as require_dist_cjs$6, w as require_dist_cjs$4 } from "./dist-cjs-Cpdu8jQP.js";
|
|
5
5
|
import { C as schema_exports, N as require_dist_cjs$21, P as require_dist_cjs$19, S as init_schema, t as require_dist_cjs$20 } from "./dist-cjs-BVSr8ctW.js";
|
|
@@ -21,7 +21,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
21
21
|
import fs, { constants, createWriteStream, existsSync, promises, statSync } from "node:fs";
|
|
22
22
|
import path, { join } from "node:path";
|
|
23
23
|
import { Logger } from "tslog";
|
|
24
|
-
import
|
|
24
|
+
import json5 from "json5";
|
|
25
25
|
import os, { homedir, tmpdir } from "node:os";
|
|
26
26
|
import { promisify } from "node:util";
|
|
27
27
|
import fs$1 from "node:fs/promises";
|
|
@@ -42,7 +42,7 @@ import { mkdir, readFile, stat as stat$1, unlink, writeFile } from "fs/promises"
|
|
|
42
42
|
import { Readable as Readable$1 } from "node:stream";
|
|
43
43
|
import { pipeline as pipeline$1 } from "node:stream/promises";
|
|
44
44
|
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
45
|
-
import
|
|
45
|
+
import AjvPkg from "ajv";
|
|
46
46
|
import lockfile from "proper-lockfile";
|
|
47
47
|
import { URL as URL$1 } from "url";
|
|
48
48
|
import "yaml";
|
|
@@ -2263,7 +2263,7 @@ function readLoggingConfig() {
|
|
|
2263
2263
|
try {
|
|
2264
2264
|
if (!fs.existsSync(configPath)) return;
|
|
2265
2265
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
2266
|
-
const logging =
|
|
2266
|
+
const logging = json5.parse(raw)?.logging;
|
|
2267
2267
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
2268
2268
|
return logging;
|
|
2269
2269
|
} catch {
|
|
@@ -19031,7 +19031,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
19031
19031
|
};
|
|
19032
19032
|
const defaultResolver = {
|
|
19033
19033
|
readFile: (p) => fs.readFileSync(p, "utf-8"),
|
|
19034
|
-
parseJson: (raw) =>
|
|
19034
|
+
parseJson: (raw) => json5.parse(raw)
|
|
19035
19035
|
};
|
|
19036
19036
|
/**
|
|
19037
19037
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -20541,7 +20541,7 @@ function loadPluginManifestRegistry(params) {
|
|
|
20541
20541
|
|
|
20542
20542
|
//#endregion
|
|
20543
20543
|
//#region src/plugins/schema-validator.ts
|
|
20544
|
-
const ajv$1 = new
|
|
20544
|
+
const ajv$1 = new AjvPkg({
|
|
20545
20545
|
allErrors: true,
|
|
20546
20546
|
strict: false,
|
|
20547
20547
|
removeAdditional: false
|
|
@@ -21728,18 +21728,18 @@ function resolveConfigPathForDeps(deps) {
|
|
|
21728
21728
|
function normalizeDeps(overrides = {}) {
|
|
21729
21729
|
return {
|
|
21730
21730
|
fs: overrides.fs ?? fs,
|
|
21731
|
-
json5: overrides.json5 ??
|
|
21731
|
+
json5: overrides.json5 ?? json5,
|
|
21732
21732
|
env: overrides.env ?? process.env,
|
|
21733
21733
|
homedir: overrides.homedir ?? os.homedir,
|
|
21734
21734
|
configPath: overrides.configPath ?? "",
|
|
21735
21735
|
logger: overrides.logger ?? console
|
|
21736
21736
|
};
|
|
21737
21737
|
}
|
|
21738
|
-
function parseConfigJson5(raw, json5 =
|
|
21738
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
21739
21739
|
try {
|
|
21740
21740
|
return {
|
|
21741
21741
|
ok: true,
|
|
21742
|
-
parsed: json5.parse(raw)
|
|
21742
|
+
parsed: json5$1.parse(raw)
|
|
21743
21743
|
};
|
|
21744
21744
|
} catch (err) {
|
|
21745
21745
|
return {
|
|
@@ -22253,7 +22253,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
22253
22253
|
let mtimeMs = getFileMtimeMs(storePath);
|
|
22254
22254
|
try {
|
|
22255
22255
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
22256
|
-
const parsed =
|
|
22256
|
+
const parsed = json5.parse(raw);
|
|
22257
22257
|
if (isSessionStoreRecord(parsed)) store = parsed;
|
|
22258
22258
|
mtimeMs = getFileMtimeMs(storePath) ?? mtimeMs;
|
|
22259
22259
|
} catch {}
|
|
@@ -48187,7 +48187,7 @@ const PROTOCOL_VERSION = 3;
|
|
|
48187
48187
|
|
|
48188
48188
|
//#endregion
|
|
48189
48189
|
//#region src/gateway/protocol/index.ts
|
|
48190
|
-
const ajv = new
|
|
48190
|
+
const ajv = new AjvPkg({
|
|
48191
48191
|
allErrors: true,
|
|
48192
48192
|
strict: false,
|
|
48193
48193
|
removeAdditional: false
|
|
@@ -68060,7 +68060,7 @@ function enqueueSystemEvent(text, options) {
|
|
|
68060
68060
|
const MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
68061
68061
|
(async () => {
|
|
68062
68062
|
try {
|
|
68063
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
68063
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-szlzYGsC.js").then((n) => n.t);
|
|
68064
68064
|
await ensureSKYKOIModelsJson(loadConfig());
|
|
68065
68065
|
const koiDir = resolveSKYKOIKoiDir();
|
|
68066
68066
|
const models = discoverModels(discoverAuthStorage(koiDir), koiDir).getAll();
|
|
@@ -34,7 +34,7 @@ import { access, mkdir, readFile, stat as stat$1, writeFile } from "fs/promises"
|
|
|
34
34
|
import Stream, { Readable as Readable$1 } from "node:stream";
|
|
35
35
|
import { finished } from "node:stream/promises";
|
|
36
36
|
import * as NodeWs from "ws";
|
|
37
|
-
import
|
|
37
|
+
import AjvPkg from "ajv";
|
|
38
38
|
import lockfile from "proper-lockfile";
|
|
39
39
|
import { fileURLToPath as fileURLToPath$1 } from "url";
|
|
40
40
|
import { TypeCompiler } from "@sinclair/typebox/compiler";
|
|
@@ -59699,7 +59699,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59699
59699
|
//#endregion
|
|
59700
59700
|
//#region node_modules/.pnpm/@mariozechner+pi-ai@0.52.8_ws@8.19.0_zod@4.3.6/node_modules/@mariozechner/pi-ai/dist/utils/validation.js
|
|
59701
59701
|
var import_dist$1 = /* @__PURE__ */ __toESM(require_dist$1(), 1);
|
|
59702
|
-
const Ajv$1 =
|
|
59702
|
+
const Ajv$1 = AjvPkg.default || AjvPkg;
|
|
59703
59703
|
const addFormats = import_dist$1.default.default || import_dist$1.default;
|
|
59704
59704
|
const isBrowserExtension = typeof globalThis !== "undefined" && globalThis.chrome?.runtime?.id !== void 0;
|
|
59705
59705
|
let ajv = null;
|
|
@@ -174026,7 +174026,7 @@ var AuthStorage = class {
|
|
|
174026
174026
|
/**
|
|
174027
174027
|
* Model registry - manages built-in and custom models, provides API key resolution.
|
|
174028
174028
|
*/
|
|
174029
|
-
const Ajv =
|
|
174029
|
+
const Ajv = AjvPkg.default || AjvPkg;
|
|
174030
174030
|
const OpenRouterRoutingSchema = Type.Object({
|
|
174031
174031
|
only: Type.Optional(Type.Array(Type.String())),
|
|
174032
174032
|
order: Type.Optional(Type.Array(Type.String()))
|