@dotobokuri/fleet-console 1.29.0 → 1.31.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/cli.mjs +116 -73
- package/dist/client/assets/{_baseUniq-DEvADUqz.js → _baseUniq-6rANA-_q.js} +1 -1
- package/dist/client/assets/{arc-pB9oYw5d.js → arc-tzTBQuJE.js} +1 -1
- package/dist/client/assets/{architectureDiagram-Q4EWVU46-D0gUBsh1.js → architectureDiagram-Q4EWVU46-B4MzTga_.js} +1 -1
- package/dist/client/assets/{blockDiagram-DXYQGD6D-9NSt9xrC.js → blockDiagram-DXYQGD6D-BSkil4Kq.js} +1 -1
- package/dist/client/assets/{c4Diagram-AHTNJAMY-BS1EhMAN.js → c4Diagram-AHTNJAMY-Dwq5nIR_.js} +1 -1
- package/dist/client/assets/channel-DGrgEBwr.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-BKkeF7mF.js → chunk-4BX2VUAB-BGefUfmP.js} +1 -1
- package/dist/client/assets/{chunk-4TB4RGXK-DRp3Dsap.js → chunk-4TB4RGXK-DBUtBigu.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-De-sLT-H.js → chunk-55IACEB6-BLF4uUa8.js} +1 -1
- package/dist/client/assets/{chunk-EDXVE4YY-ByYWvw6c.js → chunk-EDXVE4YY-Cc41I6y_.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-BDpIWnNm.js → chunk-FMBD7UC4-C8PUZ57p.js} +1 -1
- package/dist/client/assets/{chunk-OYMX7WX6-qxbtvneQ.js → chunk-OYMX7WX6-CYos7ODp.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-BnkLN840.js → chunk-QZHKN3VN-I4gCcbsX.js} +1 -1
- package/dist/client/assets/{chunk-YZCP3GAM-HfizEXdz.js → chunk-YZCP3GAM-CO0vuwK9.js} +1 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-CKhx9oUH.js +1 -0
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-CKhx9oUH.js +1 -0
- package/dist/client/assets/clone-BODjA13N.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-B4U_tiL9.js → cose-bilkent-S5V4N54A-BjXxkeBn.js} +1 -1
- package/dist/client/assets/{dagre-KV5264BT-De3dSv-R.js → dagre-KV5264BT-DKVbTDmI.js} +1 -1
- package/dist/client/assets/{diagram-5BDNPKRD-CZAF0Kro.js → diagram-5BDNPKRD-C1as30xl.js} +1 -1
- package/dist/client/assets/{diagram-G4DWMVQ6-BHyDlHAq.js → diagram-G4DWMVQ6-B_G7-yDL.js} +1 -1
- package/dist/client/assets/{diagram-MMDJMWI5-CV93x0hu.js → diagram-MMDJMWI5-B2srczqP.js} +1 -1
- package/dist/client/assets/{diagram-TYMM5635-CTRzVEQp.js → diagram-TYMM5635-pYQydnR9.js} +1 -1
- package/dist/client/assets/{erDiagram-SMLLAGMA-xW-UvBlm.js → erDiagram-SMLLAGMA-AcmG-sIC.js} +1 -1
- package/dist/client/assets/{flowDiagram-DWJPFMVM-C21IECUy.js → flowDiagram-DWJPFMVM-BRvh-u54.js} +1 -1
- package/dist/client/assets/{ganttDiagram-T4ZO3ILL-DVzOf8Xv.js → ganttDiagram-T4ZO3ILL-CuyxaGr-.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-UUTBAWPF-B-NQC3Ae.js → gitGraphDiagram-UUTBAWPF-BWFXSUkW.js} +1 -1
- package/dist/client/assets/{graph-BDzdWbuy.js → graph-BFw4pMat.js} +1 -1
- package/dist/client/assets/index-DD3oRP6t.css +1 -0
- package/dist/client/assets/index-qutkoA_F.js +451 -0
- package/dist/client/assets/{infoDiagram-42DDH7IO-2KCXFMZg.js → infoDiagram-42DDH7IO-CgrEFkpl.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-UXIWVN3A-D4Fvy3ms.js → ishikawaDiagram-UXIWVN3A-C1PYBJVn.js} +1 -1
- package/dist/client/assets/{journeyDiagram-VCZTEJTY-DkXZkeED.js → journeyDiagram-VCZTEJTY-BHC_QZyQ.js} +1 -1
- package/dist/client/assets/{kanban-definition-6JOO6SKY-CTrIp4rv.js → kanban-definition-6JOO6SKY-BTQZjl-H.js} +1 -1
- package/dist/client/assets/{layout-DKdT-A2u.js → layout-LyiAOink.js} +1 -1
- package/dist/client/assets/{linear-Dn21C3ab.js → linear-BWduiQJJ.js} +1 -1
- package/dist/client/assets/{mermaid.core-ho7gOyUr.js → mermaid.core-B2Lf_dRe.js} +4 -4
- package/dist/client/assets/{min-DV-zxfLU.js → min-BS4WshjZ.js} +1 -1
- package/dist/client/assets/{mindmap-definition-QFDTVHPH-By8nfvJ0.js → mindmap-definition-QFDTVHPH-uBQw-Rcf.js} +1 -1
- package/dist/client/assets/{pieDiagram-DEJITSTG-B4ndzH1J.js → pieDiagram-DEJITSTG-Daco6XeA.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-34T5L4WZ-CiDb6b3-.js → quadrantDiagram-34T5L4WZ-phmU55Tk.js} +1 -1
- package/dist/client/assets/{requirementDiagram-MS252O5E-TTr1SzvX.js → requirementDiagram-MS252O5E-D7WmHJB1.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-XADWPNL6-CUyxk-WA.js → sankeyDiagram-XADWPNL6-QmItdHVw.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-FGHM5R23-CyBxBNAZ.js → sequenceDiagram-FGHM5R23-B-Wgp5TP.js} +1 -1
- package/dist/client/assets/{stateDiagram-FHFEXIEX-Cj4j5FFK.js → stateDiagram-FHFEXIEX-J7H1J8u1.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-D0qZOg43.js +1 -0
- package/dist/client/assets/{timeline-definition-GMOUNBTQ-MQzKGbxg.js → timeline-definition-GMOUNBTQ-BI_kLbxz.js} +1 -1
- package/dist/client/assets/{vennDiagram-DHZGUBPP-sG3K7NAZ.js → vennDiagram-DHZGUBPP-Do5nm7Eq.js} +1 -1
- package/dist/client/assets/{wardley-RL74JXVD-ID5rQjqH.js → wardley-RL74JXVD-DvA1fdMU.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-NUSXRM2D-AMajCCI5.js → wardleyDiagram-NUSXRM2D-BrigyBQU.js} +1 -1
- package/dist/client/assets/{xychartDiagram-5P7HB3ND-DUb36W9E.js → xychartDiagram-5P7HB3ND-B0Inv_Uf.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/fleet-plugins/file-explorer/routes.mjs +199 -38
- package/dist/fleet-plugins/repository/routes.mjs +612 -33
- package/dist/fleet-plugins/skills/routes.mjs +43 -16
- package/dist/fleet-plugins/terminal/routes.mjs +308 -148
- package/package.json +1 -1
- package/dist/client/assets/channel-BSgCfWXO.js +0 -1
- package/dist/client/assets/classDiagram-6PBFFD2Q-C3WhxxfZ.js +0 -1
- package/dist/client/assets/classDiagram-v2-HSJHXN6E-C3WhxxfZ.js +0 -1
- package/dist/client/assets/clone-DjOK69th.js +0 -1
- package/dist/client/assets/index-BDJVPQd1.css +0 -1
- package/dist/client/assets/index-CjBu8lNT.js +0 -451
- package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-CWhJmDZj.js +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -902,15 +902,29 @@ function sanitizeGlobalOptionsData(value) {
|
|
|
902
902
|
if (value.version !== GLOBAL_OPTIONS_VERSION) {
|
|
903
903
|
return { data: createEmptyGlobalOptionsData(), changed: true };
|
|
904
904
|
}
|
|
905
|
+
const kimiModel = sanitizeKimiModel(value.kimiModel);
|
|
905
906
|
const data = {
|
|
906
907
|
version: GLOBAL_OPTIONS_VERSION,
|
|
907
908
|
...typeof value.enableMetaphor === "boolean" ? { enableMetaphor: value.enableMetaphor } : {},
|
|
908
|
-
...value.codexLaunchMode === "acp" || value.codexLaunchMode === "app-server" ? { codexLaunchMode: value.codexLaunchMode } : {}
|
|
909
|
+
...value.codexLaunchMode === "acp" || value.codexLaunchMode === "app-server" ? { codexLaunchMode: value.codexLaunchMode } : {},
|
|
910
|
+
...kimiModel ? { kimiModel } : {}
|
|
909
911
|
};
|
|
910
|
-
const allowedKeys = /* @__PURE__ */ new Set(["version", "enableMetaphor", "codexLaunchMode"]);
|
|
911
|
-
const changed = Object.keys(value).some((key) => !allowedKeys.has(key)) || "enableMetaphor" in value && typeof value.enableMetaphor !== "boolean" || "codexLaunchMode" in value && value.codexLaunchMode !== "acp" && value.codexLaunchMode !== "app-server";
|
|
912
|
+
const allowedKeys = /* @__PURE__ */ new Set(["version", "enableMetaphor", "codexLaunchMode", "kimiModel"]);
|
|
913
|
+
const changed = Object.keys(value).some((key) => !allowedKeys.has(key)) || "enableMetaphor" in value && typeof value.enableMetaphor !== "boolean" || "codexLaunchMode" in value && value.codexLaunchMode !== "acp" && value.codexLaunchMode !== "app-server" || "kimiModel" in value && kimiModel === void 0;
|
|
912
914
|
return { data, changed };
|
|
913
915
|
}
|
|
916
|
+
function sanitizeKimiModel(value) {
|
|
917
|
+
if (!isRecord(value)) {
|
|
918
|
+
return void 0;
|
|
919
|
+
}
|
|
920
|
+
if (typeof value.model !== "string" || value.model.length === 0) {
|
|
921
|
+
return void 0;
|
|
922
|
+
}
|
|
923
|
+
return {
|
|
924
|
+
model: value.model,
|
|
925
|
+
...typeof value.effort === "string" ? { effort: value.effort } : {}
|
|
926
|
+
};
|
|
927
|
+
}
|
|
914
928
|
function isRecord(value) {
|
|
915
929
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
916
930
|
}
|
|
@@ -11153,6 +11167,8 @@ function clampInteger3(value, fallback, min, max, field) {
|
|
|
11153
11167
|
}
|
|
11154
11168
|
return Math.min(max, Math.max(min, value));
|
|
11155
11169
|
}
|
|
11170
|
+
|
|
11171
|
+
// ../../packages/fleet-wiki/src/tools/read.ts
|
|
11156
11172
|
var DEFAULT_BOUNDARY = FLEET_WIKI_BOUNDARY_GUIDELINES[0];
|
|
11157
11173
|
var TRUNCATION_MARKER2 = "\n\n[truncated by wiki_read max_tokens]";
|
|
11158
11174
|
var MAX_QUERY_TOKENS_FLOOR = 1;
|
|
@@ -11261,7 +11277,7 @@ async function buildReadEntryResult(entry, paths, graph, input) {
|
|
|
11261
11277
|
rawSourceRef: entry.rawSourceRef,
|
|
11262
11278
|
rawSourceRefs,
|
|
11263
11279
|
source: {
|
|
11264
|
-
path:
|
|
11280
|
+
path: `wiki/${entry.id}.md`,
|
|
11265
11281
|
rawSourceRef: entry.rawSourceRef,
|
|
11266
11282
|
rawSourceRefs
|
|
11267
11283
|
},
|
|
@@ -11387,7 +11403,7 @@ function buildRelatedEntries(entry, graph) {
|
|
|
11387
11403
|
deduped.set(candidate.id, {
|
|
11388
11404
|
id: relatedEntry.id,
|
|
11389
11405
|
title: relatedEntry.title,
|
|
11390
|
-
path:
|
|
11406
|
+
path: `wiki/${relatedEntry.id}.md`,
|
|
11391
11407
|
reason: candidate.reason
|
|
11392
11408
|
});
|
|
11393
11409
|
}
|
|
@@ -11739,6 +11755,7 @@ function buildWikiToolSpec(config2, usage, resolver) {
|
|
|
11739
11755
|
var STAGING_PREFIX = "knowledge.migrating-";
|
|
11740
11756
|
var MARKER_NAME = "knowledge.migrated.json";
|
|
11741
11757
|
var MARKER_TEMP_REGEXP = /^knowledge\.migrated\.json\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.tmp$/i;
|
|
11758
|
+
var IGNORED_FSYNC_ERROR_CODES2 = /* @__PURE__ */ new Set(["EPERM", "EINVAL", "ENOSYS"]);
|
|
11742
11759
|
function createWikiWorkspaceResolver(deps) {
|
|
11743
11760
|
return createResolver(deps);
|
|
11744
11761
|
}
|
|
@@ -11923,10 +11940,18 @@ function writeAtomic2(target, contents) {
|
|
|
11923
11940
|
syncFile(temporary);
|
|
11924
11941
|
fs10.renameSync(temporary, target);
|
|
11925
11942
|
}
|
|
11943
|
+
function fsyncBestEffort(fd) {
|
|
11944
|
+
try {
|
|
11945
|
+
fs10.fsyncSync(fd);
|
|
11946
|
+
} catch (error51) {
|
|
11947
|
+
const code = error51.code;
|
|
11948
|
+
if (typeof code !== "string" || !IGNORED_FSYNC_ERROR_CODES2.has(code)) throw error51;
|
|
11949
|
+
}
|
|
11950
|
+
}
|
|
11926
11951
|
function syncFile(target) {
|
|
11927
11952
|
const fd = fs10.openSync(target, "r");
|
|
11928
11953
|
try {
|
|
11929
|
-
|
|
11954
|
+
fsyncBestEffort(fd);
|
|
11930
11955
|
} finally {
|
|
11931
11956
|
fs10.closeSync(fd);
|
|
11932
11957
|
}
|
|
@@ -11935,7 +11960,7 @@ function syncDirectory(target) {
|
|
|
11935
11960
|
if (!shouldSyncDirectoryForTest(process.platform)) return;
|
|
11936
11961
|
const fd = fs10.openSync(target, "r");
|
|
11937
11962
|
try {
|
|
11938
|
-
|
|
11963
|
+
fsyncBestEffort(fd);
|
|
11939
11964
|
} finally {
|
|
11940
11965
|
fs10.closeSync(fd);
|
|
11941
11966
|
}
|
|
@@ -13451,10 +13476,10 @@ function mergeDefs(...defs) {
|
|
|
13451
13476
|
function cloneDef(schema) {
|
|
13452
13477
|
return mergeDefs(schema._zod.def);
|
|
13453
13478
|
}
|
|
13454
|
-
function getElementAtPath(obj,
|
|
13455
|
-
if (!
|
|
13479
|
+
function getElementAtPath(obj, path49) {
|
|
13480
|
+
if (!path49)
|
|
13456
13481
|
return obj;
|
|
13457
|
-
return
|
|
13482
|
+
return path49.reduce((acc, key) => acc?.[key], obj);
|
|
13458
13483
|
}
|
|
13459
13484
|
function promiseAllObject(promisesObj) {
|
|
13460
13485
|
const keys = Object.keys(promisesObj);
|
|
@@ -13863,11 +13888,11 @@ function explicitlyAborted(x, startIndex = 0) {
|
|
|
13863
13888
|
}
|
|
13864
13889
|
return false;
|
|
13865
13890
|
}
|
|
13866
|
-
function prefixIssues(
|
|
13891
|
+
function prefixIssues(path49, issues) {
|
|
13867
13892
|
return issues.map((iss) => {
|
|
13868
13893
|
var _a3;
|
|
13869
13894
|
(_a3 = iss).path ?? (_a3.path = []);
|
|
13870
|
-
iss.path.unshift(
|
|
13895
|
+
iss.path.unshift(path49);
|
|
13871
13896
|
return iss;
|
|
13872
13897
|
});
|
|
13873
13898
|
}
|
|
@@ -14014,16 +14039,16 @@ function flattenError(error51, mapper = (issue3) => issue3.message) {
|
|
|
14014
14039
|
}
|
|
14015
14040
|
function formatError(error51, mapper = (issue3) => issue3.message) {
|
|
14016
14041
|
const fieldErrors = { _errors: [] };
|
|
14017
|
-
const processError = (error52,
|
|
14042
|
+
const processError = (error52, path49 = []) => {
|
|
14018
14043
|
for (const issue3 of error52.issues) {
|
|
14019
14044
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
14020
|
-
issue3.errors.map((issues) => processError({ issues }, [...
|
|
14045
|
+
issue3.errors.map((issues) => processError({ issues }, [...path49, ...issue3.path]));
|
|
14021
14046
|
} else if (issue3.code === "invalid_key") {
|
|
14022
|
-
processError({ issues: issue3.issues }, [...
|
|
14047
|
+
processError({ issues: issue3.issues }, [...path49, ...issue3.path]);
|
|
14023
14048
|
} else if (issue3.code === "invalid_element") {
|
|
14024
|
-
processError({ issues: issue3.issues }, [...
|
|
14049
|
+
processError({ issues: issue3.issues }, [...path49, ...issue3.path]);
|
|
14025
14050
|
} else {
|
|
14026
|
-
const fullpath = [...
|
|
14051
|
+
const fullpath = [...path49, ...issue3.path];
|
|
14027
14052
|
if (fullpath.length === 0) {
|
|
14028
14053
|
fieldErrors._errors.push(mapper(issue3));
|
|
14029
14054
|
} else {
|
|
@@ -14050,17 +14075,17 @@ function formatError(error51, mapper = (issue3) => issue3.message) {
|
|
|
14050
14075
|
}
|
|
14051
14076
|
function treeifyError(error51, mapper = (issue3) => issue3.message) {
|
|
14052
14077
|
const result = { errors: [] };
|
|
14053
|
-
const processError = (error52,
|
|
14078
|
+
const processError = (error52, path49 = []) => {
|
|
14054
14079
|
var _a3, _b;
|
|
14055
14080
|
for (const issue3 of error52.issues) {
|
|
14056
14081
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
14057
|
-
issue3.errors.map((issues) => processError({ issues }, [...
|
|
14082
|
+
issue3.errors.map((issues) => processError({ issues }, [...path49, ...issue3.path]));
|
|
14058
14083
|
} else if (issue3.code === "invalid_key") {
|
|
14059
|
-
processError({ issues: issue3.issues }, [...
|
|
14084
|
+
processError({ issues: issue3.issues }, [...path49, ...issue3.path]);
|
|
14060
14085
|
} else if (issue3.code === "invalid_element") {
|
|
14061
|
-
processError({ issues: issue3.issues }, [...
|
|
14086
|
+
processError({ issues: issue3.issues }, [...path49, ...issue3.path]);
|
|
14062
14087
|
} else {
|
|
14063
|
-
const fullpath = [...
|
|
14088
|
+
const fullpath = [...path49, ...issue3.path];
|
|
14064
14089
|
if (fullpath.length === 0) {
|
|
14065
14090
|
result.errors.push(mapper(issue3));
|
|
14066
14091
|
continue;
|
|
@@ -14092,8 +14117,8 @@ function treeifyError(error51, mapper = (issue3) => issue3.message) {
|
|
|
14092
14117
|
}
|
|
14093
14118
|
function toDotPath(_path) {
|
|
14094
14119
|
const segs = [];
|
|
14095
|
-
const
|
|
14096
|
-
for (const seg of
|
|
14120
|
+
const path49 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
|
|
14121
|
+
for (const seg of path49) {
|
|
14097
14122
|
if (typeof seg === "number")
|
|
14098
14123
|
segs.push(`[${seg}]`);
|
|
14099
14124
|
else if (typeof seg === "symbol")
|
|
@@ -26757,13 +26782,13 @@ function resolveRef(ref, ctx) {
|
|
|
26757
26782
|
if (!ref.startsWith("#")) {
|
|
26758
26783
|
throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
26759
26784
|
}
|
|
26760
|
-
const
|
|
26761
|
-
if (
|
|
26785
|
+
const path49 = ref.slice(1).split("/").filter(Boolean);
|
|
26786
|
+
if (path49.length === 0) {
|
|
26762
26787
|
return ctx.rootSchema;
|
|
26763
26788
|
}
|
|
26764
26789
|
const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
|
|
26765
|
-
if (
|
|
26766
|
-
const key =
|
|
26790
|
+
if (path49[0] === defsKey) {
|
|
26791
|
+
const key = path49[1];
|
|
26767
26792
|
if (!key || !ctx.defs[key]) {
|
|
26768
26793
|
throw new Error(`Reference not found: ${ref}`);
|
|
26769
26794
|
}
|
|
@@ -31927,7 +31952,7 @@ function inferBinName(packageName) {
|
|
|
31927
31952
|
// ../../packages/core-unified-agent/models.json
|
|
31928
31953
|
var models_default = {
|
|
31929
31954
|
version: 1,
|
|
31930
|
-
updatedAt: "2026-07-
|
|
31955
|
+
updatedAt: "2026-07-21T00:00:00Z",
|
|
31931
31956
|
providers: {
|
|
31932
31957
|
claude: {
|
|
31933
31958
|
name: "Claude Code",
|
|
@@ -31946,15 +31971,16 @@ var models_default = {
|
|
|
31946
31971
|
name: "Kimi via Claude Code",
|
|
31947
31972
|
defaultModel: "kimi-for-coding",
|
|
31948
31973
|
models: [
|
|
31949
|
-
{ modelId: "kimi-for-coding", name: "Kimi for Coding", description: "Available on every Kimi Code membership tier (262K context)", effort: { supported: false } },
|
|
31950
|
-
{ modelId: "k3", name: "Kimi K3", description: "Available on Moderato and higher tiers (262K context)", effort: { supported: true, levels: ["max"], default: "
|
|
31951
|
-
{ modelId: "k3[1m]", name: "Kimi K3 [1M]", description: "Available on Allegretto and higher tiers (1M context)", effort: { supported: true, levels: ["max"], default: "
|
|
31952
|
-
{ modelId: "kimi-for-coding-highspeed", name: "Kimi for Coding Highspeed", description: "Available on Allegretto and higher tiers (262K context)", effort: { supported: false } }
|
|
31974
|
+
{ modelId: "kimi-for-coding", name: "Kimi for Coding", description: "Available on every Kimi Code membership tier (262K context)", effort: { supported: false }, contextWindow: 262144 },
|
|
31975
|
+
{ modelId: "k3", name: "Kimi K3", description: "Available on Moderato and higher tiers (262K context)", effort: { supported: true, levels: ["low", "high", "max"], default: "high" }, contextWindow: 262144 },
|
|
31976
|
+
{ modelId: "k3[1m]", name: "Kimi K3 [1M]", description: "Available on Allegretto and higher tiers (1M context)", effort: { supported: true, levels: ["low", "high", "max"], default: "high" }, contextWindow: 1048576 },
|
|
31977
|
+
{ modelId: "kimi-for-coding-highspeed", name: "Kimi for Coding Highspeed", description: "Available on Allegretto and higher tiers (262K context)", effort: { supported: false }, contextWindow: 262144 }
|
|
31953
31978
|
],
|
|
31954
31979
|
modelsMapping: {
|
|
31955
31980
|
haiku: "kimi-for-coding",
|
|
31956
31981
|
sonnet: "kimi-for-coding",
|
|
31957
|
-
opus: "kimi-for-coding"
|
|
31982
|
+
opus: "kimi-for-coding",
|
|
31983
|
+
fable: "kimi-for-coding"
|
|
31958
31984
|
}
|
|
31959
31985
|
},
|
|
31960
31986
|
codex: {
|
|
@@ -31971,15 +31997,19 @@ var models_default = {
|
|
|
31971
31997
|
},
|
|
31972
31998
|
"opencode-go": {
|
|
31973
31999
|
name: "OpenCode Go",
|
|
31974
|
-
defaultModel: "opencode-go/
|
|
32000
|
+
defaultModel: "opencode-go/deepseek-v4-flash",
|
|
31975
32001
|
models: [
|
|
31976
32002
|
{ modelId: "opencode-go/deepseek-v4-flash", name: "DeepSeek V4 Flash", effort: { supported: false } },
|
|
31977
32003
|
{ modelId: "opencode-go/deepseek-v4-pro", name: "DeepSeek V4 Pro", effort: { supported: false } },
|
|
31978
|
-
{ modelId: "opencode-go/glm-5", name: "GLM-5", effort: { supported: false } },
|
|
31979
|
-
{ modelId: "opencode-go/glm-5.1", name: "GLM-5.1", effort: { supported: false } },
|
|
31980
32004
|
{ modelId: "opencode-go/glm-5.2", name: "GLM-5.2", effort: { supported: false } },
|
|
31981
|
-
{ modelId: "opencode-go/
|
|
31982
|
-
{ modelId: "opencode-go/kimi-
|
|
32005
|
+
{ modelId: "opencode-go/grok-4.5", name: "Grok 4.5", effort: { supported: false } },
|
|
32006
|
+
{ modelId: "opencode-go/kimi-k3", name: "Kimi K3", effort: { supported: false } },
|
|
32007
|
+
{ modelId: "opencode-go/kimi-k2.7-code", name: "Kimi K2.7 Code", effort: { supported: false } },
|
|
32008
|
+
{ modelId: "opencode-go/mimo-v2.5", name: "MiMo V2.5", effort: { supported: false } },
|
|
32009
|
+
{ modelId: "opencode-go/mimo-v2.5-pro", name: "MiMo V2.5 Pro", effort: { supported: false } },
|
|
32010
|
+
{ modelId: "opencode-go/minimax-m3", name: "MiniMax M3", effort: { supported: false } },
|
|
32011
|
+
{ modelId: "opencode-go/qwen3.7-max", name: "Qwen3.7 Max", effort: { supported: false } },
|
|
32012
|
+
{ modelId: "opencode-go/qwen3.7-plus", name: "Qwen3.7 Plus", effort: { supported: false } }
|
|
31983
32013
|
]
|
|
31984
32014
|
},
|
|
31985
32015
|
cursor: {
|
|
@@ -31987,14 +32017,34 @@ var models_default = {
|
|
|
31987
32017
|
defaultModel: "auto",
|
|
31988
32018
|
models: [
|
|
31989
32019
|
{ modelId: "auto", name: "Auto", effort: { supported: false } },
|
|
31990
|
-
{ modelId: "composer-2.5
|
|
31991
|
-
{ modelId: "composer-2.5", name: "Composer 2.5
|
|
32020
|
+
{ modelId: "composer-2.5", name: "Composer 2.5", effort: { supported: false } },
|
|
32021
|
+
{ modelId: "composer-2.5-fast", name: "Composer 2.5 Fast", effort: { supported: false } },
|
|
32022
|
+
{ modelId: "gpt-5.6-sol", name: "GPT-5.6 Sol", spawnModelTemplate: "gpt-5.6-sol-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32023
|
+
{ modelId: "gpt-5.6-sol-fast", name: "GPT-5.6 Sol Fast", spawnModelTemplate: "gpt-5.6-sol-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32024
|
+
{ modelId: "gpt-5.6-sol-none", name: "GPT-5.6 Sol None", effort: { supported: false } },
|
|
32025
|
+
{ modelId: "gpt-5.6-sol-none-fast", name: "GPT-5.6 Sol None Fast", effort: { supported: false } },
|
|
32026
|
+
{ modelId: "gpt-5.6-luna", name: "GPT-5.6 Luna", spawnModelTemplate: "gpt-5.6-luna-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32027
|
+
{ modelId: "gpt-5.6-luna-fast", name: "GPT-5.6 Luna Fast", spawnModelTemplate: "gpt-5.6-luna-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32028
|
+
{ modelId: "gpt-5.6-luna-none", name: "GPT-5.6 Luna None", effort: { supported: false } },
|
|
32029
|
+
{ modelId: "gpt-5.6-luna-none-fast", name: "GPT-5.6 Luna None Fast", effort: { supported: false } },
|
|
32030
|
+
{ modelId: "gpt-5.6-terra", name: "GPT-5.6 Terra", spawnModelTemplate: "gpt-5.6-terra-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32031
|
+
{ modelId: "gpt-5.6-terra-fast", name: "GPT-5.6 Terra Fast", spawnModelTemplate: "gpt-5.6-terra-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
32032
|
+
{ modelId: "gpt-5.6-terra-none", name: "GPT-5.6 Terra None", effort: { supported: false } },
|
|
32033
|
+
{ modelId: "gpt-5.6-terra-none-fast", name: "GPT-5.6 Terra None Fast", effort: { supported: false } },
|
|
32034
|
+
{ modelId: "cursor-grok-4.5", name: "Cursor Grok 4.5", spawnModelTemplate: "cursor-grok-4.5-{effort}", effort: { supported: true, levels: ["low", "medium", "high"], default: "high" } },
|
|
32035
|
+
{ modelId: "cursor-grok-4.5-fast", name: "Cursor Grok 4.5 Fast", spawnModelTemplate: "cursor-grok-4.5-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high"], default: "high" } },
|
|
32036
|
+
{ modelId: "claude-opus-4-8", name: "Claude Opus 4.8", spawnModelTemplate: "claude-opus-4-8-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "high" } },
|
|
32037
|
+
{ modelId: "claude-opus-4-8-fast", name: "Claude Opus 4.8 Fast", spawnModelTemplate: "claude-opus-4-8-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "high" } },
|
|
32038
|
+
{ modelId: "claude-opus-4-8-thinking", name: "Claude Opus 4.8 Thinking", spawnModelTemplate: "claude-opus-4-8-thinking-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "xhigh" } },
|
|
32039
|
+
{ modelId: "claude-opus-4-8-thinking-fast", name: "Claude Opus 4.8 Thinking Fast", spawnModelTemplate: "claude-opus-4-8-thinking-{effort}-fast", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "xhigh" } },
|
|
32040
|
+
{ modelId: "claude-sonnet-5", name: "Claude Sonnet 5", spawnModelTemplate: "claude-sonnet-5-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "high" } },
|
|
32041
|
+
{ modelId: "claude-sonnet-5-thinking", name: "Claude Sonnet 5 Thinking", spawnModelTemplate: "claude-sonnet-5-thinking-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "xhigh" } },
|
|
32042
|
+
{ modelId: "claude-fable-5", name: "Claude Fable 5", description: "NO ZDR per cursor-agent model list", spawnModelTemplate: "claude-fable-5-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "high" } },
|
|
32043
|
+
{ modelId: "claude-fable-5-thinking", name: "Claude Fable 5 Thinking", description: "NO ZDR per cursor-agent model list", spawnModelTemplate: "claude-fable-5-thinking-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "xhigh" } },
|
|
31992
32044
|
{ modelId: "gemini-3.1-pro", name: "Gemini 3.1 Pro", effort: { supported: false } },
|
|
31993
|
-
{ modelId: "gemini-3-flash", name: "Gemini 3 Flash", effort: { supported: false } },
|
|
31994
32045
|
{ modelId: "gemini-3.5-flash", name: "Gemini 3.5 Flash", effort: { supported: false } },
|
|
31995
32046
|
{ modelId: "kimi-k2.7-code", name: "Kimi K2.7 Code", effort: { supported: false } },
|
|
31996
|
-
{ modelId: "glm-5.2", name: "GLM 5.2", spawnModelTemplate: "glm-5.2-{effort}", effort: { supported: true, levels: ["high", "max"], default: "max" } }
|
|
31997
|
-
{ modelId: "claude-opus-4-8-thinking", name: "Claude Opus 4.8 Thinking", spawnModelTemplate: "claude-opus-4-8-thinking-{effort}", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "xhigh" } }
|
|
32047
|
+
{ modelId: "glm-5.2", name: "GLM 5.2", spawnModelTemplate: "glm-5.2-{effort}", effort: { supported: true, levels: ["high", "max"], default: "max" } }
|
|
31998
32048
|
]
|
|
31999
32049
|
}
|
|
32000
32050
|
}
|
|
@@ -32028,6 +32078,8 @@ var ModelEntrySchema = external_exports.object({
|
|
|
32028
32078
|
description: external_exports.string().optional(),
|
|
32029
32079
|
/** spawn 시 실제 CLI 모델 ID를 조립해야 하는 경우의 템플릿 */
|
|
32030
32080
|
spawnModelTemplate: external_exports.string().optional(),
|
|
32081
|
+
/** 모델의 컨텍스트 윈도우 크기 (토큰) */
|
|
32082
|
+
contextWindow: external_exports.number().int().positive().optional(),
|
|
32031
32083
|
/** 모델별 effort 설정 */
|
|
32032
32084
|
effort: EffortSchema
|
|
32033
32085
|
}).check((ctx) => {
|
|
@@ -38383,18 +38435,7 @@ async function handleItem(req, res, id, deps) {
|
|
|
38383
38435
|
return;
|
|
38384
38436
|
}
|
|
38385
38437
|
if (req.method === "DELETE") {
|
|
38386
|
-
const
|
|
38387
|
-
const deleted = deps.store.delete(id);
|
|
38388
|
-
if (deleted) {
|
|
38389
|
-
deps.persist();
|
|
38390
|
-
if (existing) {
|
|
38391
|
-
deps.publishDeleteEvent?.({
|
|
38392
|
-
operationId: existing.id,
|
|
38393
|
-
pluginId: existing.pluginId,
|
|
38394
|
-
type: existing.type
|
|
38395
|
-
});
|
|
38396
|
-
}
|
|
38397
|
-
}
|
|
38438
|
+
const deleted = deps.deleteOperation(id);
|
|
38398
38439
|
deps.writeJson(res, deleted ? 200 : 404, deleted ? { ok: true } : { error: "operation_not_found" });
|
|
38399
38440
|
return;
|
|
38400
38441
|
}
|
|
@@ -40992,6 +41033,20 @@ function createConsoleServer(deps = {}) {
|
|
|
40992
41033
|
const pluginEventListeners = /* @__PURE__ */ new Map();
|
|
40993
41034
|
const operationSseSubscribers = /* @__PURE__ */ new Set();
|
|
40994
41035
|
const desktopThemeSseSubscribers = /* @__PURE__ */ new Set();
|
|
41036
|
+
function publishPluginEvent(channel2, payload) {
|
|
41037
|
+
for (const listener of pluginEventListeners.get(channel2) ?? []) listener(payload);
|
|
41038
|
+
}
|
|
41039
|
+
function deleteOperation(operationId) {
|
|
41040
|
+
const operation = operations.get(operationId);
|
|
41041
|
+
if (!operation || !operations.delete(operationId)) return false;
|
|
41042
|
+
persistDurableState();
|
|
41043
|
+
publishPluginEvent(OPERATION_DELETED_EVENT_CHANNEL, {
|
|
41044
|
+
operationId: operation.id,
|
|
41045
|
+
pluginId: operation.pluginId,
|
|
41046
|
+
type: operation.type
|
|
41047
|
+
});
|
|
41048
|
+
return true;
|
|
41049
|
+
}
|
|
40995
41050
|
let desktopFullscreen = false;
|
|
40996
41051
|
let unsubscribeUpdateCheckChanges = updateCheck.onChange?.(() => {
|
|
40997
41052
|
broadcastUpdateAvailable();
|
|
@@ -41016,11 +41071,7 @@ function createConsoleServer(deps = {}) {
|
|
|
41016
41071
|
}
|
|
41017
41072
|
return operation;
|
|
41018
41073
|
},
|
|
41019
|
-
delete:
|
|
41020
|
-
const deleted = operations.delete(id);
|
|
41021
|
-
if (deleted) persistDurableState();
|
|
41022
|
-
return deleted;
|
|
41023
|
-
},
|
|
41074
|
+
delete: deleteOperation,
|
|
41024
41075
|
registerOperationType: (type) => {
|
|
41025
41076
|
pluginOperationTypes.add(type);
|
|
41026
41077
|
return () => {
|
|
@@ -41050,9 +41101,7 @@ function createConsoleServer(deps = {}) {
|
|
|
41050
41101
|
}
|
|
41051
41102
|
},
|
|
41052
41103
|
events: {
|
|
41053
|
-
publish:
|
|
41054
|
-
for (const listener of pluginEventListeners.get(channel2) ?? []) listener(payload);
|
|
41055
|
-
},
|
|
41104
|
+
publish: publishPluginEvent,
|
|
41056
41105
|
subscribe: (channel2, listener) => {
|
|
41057
41106
|
const listeners = pluginEventListeners.get(channel2) ?? /* @__PURE__ */ new Set();
|
|
41058
41107
|
listeners.add(listener);
|
|
@@ -41236,13 +41285,13 @@ function createConsoleServer(deps = {}) {
|
|
|
41236
41285
|
readJsonBody,
|
|
41237
41286
|
writeJson,
|
|
41238
41287
|
persist: persistDurableState,
|
|
41288
|
+
deleteOperation,
|
|
41239
41289
|
getPluginSensitiveFields: (pluginId) => [
|
|
41240
41290
|
...pluginHost.sensitiveFieldsByPluginId.get(pluginId) ?? [],
|
|
41241
41291
|
...pluginPayloadSanitizers.get(pluginId) ?? []
|
|
41242
41292
|
],
|
|
41243
41293
|
resolveLaunchCatalog: resolveOperationCatalog,
|
|
41244
41294
|
publishRenameEvent: (event) => pluginHostCapabilities.events.publish(OPERATION_RENAMED_EVENT_CHANNEL, event),
|
|
41245
|
-
publishDeleteEvent: (event) => pluginHostCapabilities.events.publish(OPERATION_DELETED_EVENT_CHANNEL, event),
|
|
41246
41295
|
broadcastOperationChanged,
|
|
41247
41296
|
subscribeOperationSse: (res) => {
|
|
41248
41297
|
res.writeHead(200, withSecurityHeaders2({
|
|
@@ -41504,14 +41553,8 @@ function createConsoleServer(deps = {}) {
|
|
|
41504
41553
|
}
|
|
41505
41554
|
theaters.remove(theaterId);
|
|
41506
41555
|
codex.unregisterTheaterWorkspaces(theaterId);
|
|
41507
|
-
for (const operation of operations.listByTheater(theaterId))
|
|
41508
|
-
|
|
41509
|
-
operationId: operation.id,
|
|
41510
|
-
pluginId: operation.pluginId,
|
|
41511
|
-
type: operation.type
|
|
41512
|
-
});
|
|
41513
|
-
}
|
|
41514
|
-
operations.deleteByTheater(theaterId);
|
|
41556
|
+
for (const operation of operations.listByTheater(theaterId)) deleteOperation(operation.id);
|
|
41557
|
+
operations.deleteGroupsByTheater(theaterId);
|
|
41515
41558
|
persistDurableState();
|
|
41516
41559
|
writeJson(res, 200, { ok: true });
|
|
41517
41560
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aW as L,bs as ln,aG as A,aU as P,aF as W,bt as gn,bu as dn,bv as hn,bw as z,bx as pn,bn as An,by as m,aX as N,b0 as U,b3 as T,bz as _n,a_ as on,bA as wn,bq as On,aH as V,bo as vn,bB as I}from"./mermaid.core-
|
|
1
|
+
import{aW as L,bs as ln,aG as A,aU as P,aF as W,bt as gn,bu as dn,bv as hn,bw as z,bx as pn,bn as An,by as m,aX as N,b0 as U,b3 as T,bz as _n,a_ as on,bA as wn,bq as On,aH as V,bo as vn,bB as I}from"./mermaid.core-B2Lf_dRe.js";var Pn="[object Symbol]";function x(n){return typeof n=="symbol"||L(n)&&ln(n)==Pn}function yn(n,r){for(var e=-1,i=n==null?0:n.length,f=Array(i);++e<i;)f[e]=r(n[e],e,n);return f}var B=P?P.prototype:void 0,H=B?B.toString:void 0;function k(n){if(typeof n=="string")return n;if(A(n))return yn(n,k)+"";if(x(n))return H?H.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function bn(){}function En(n,r){for(var e=-1,i=n==null?0:n.length;++e<i&&r(n[e],e,n)!==!1;);return n}function cn(n,r,e,i){for(var f=n.length,t=e+-1;++t<f;)if(r(n[t],t,n))return t;return-1}function Tn(n){return n!==n}function Rn(n,r,e){for(var i=e-1,f=n.length;++i<f;)if(n[i]===r)return i;return-1}function In(n,r,e){return r===r?Rn(n,r,e):cn(n,Tn,e)}function Sn(n,r){var e=n==null?0:n.length;return!!e&&In(n,r,0)>-1}function M(n){return W(n)?gn(n):dn(n)}var Ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/;function $(n,r){if(A(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||x(n)?!0:xn.test(n)||!Ln.test(n)||r!=null&&n in Object(r)}var Mn=500;function $n(n){var r=hn(n,function(i){return e.size===Mn&&e.clear(),i}),e=r.cache;return r}var Cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,Gn=$n(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(Cn,function(e,i,f,t){r.push(f?t.replace(Fn,"$1"):i||e)}),r});function Dn(n){return n==null?"":k(n)}function j(n,r){return A(n)?n:$(n,r)?[n]:Gn(Dn(n))}function R(n){if(typeof n=="string"||x(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function nn(n,r){r=j(r,n);for(var e=0,i=r.length;n!=null&&e<i;)n=n[R(r[e++])];return e&&e==i?n:void 0}function mn(n,r,e){var i=n==null?void 0:nn(n,r);return i===void 0?e:i}function rn(n,r){for(var e=-1,i=r.length,f=n.length;++e<i;)n[f+e]=r[e];return n}var K=P?P.isConcatSpreadable:void 0;function Nn(n){return A(n)||z(n)||!!(K&&n&&n[K])}function Kr(n,r,e,i,f){var t=-1,s=n.length;for(e||(e=Nn),f||(f=[]);++t<s;){var u=n[t];e(u)?rn(f,u):i||(f[f.length]=u)}return f}function Un(n,r,e,i){var f=-1,t=n==null?0:n.length;for(i&&t&&(e=n[++f]);++f<t;)e=r(e,n[f],f,n);return e}function en(n,r){for(var e=-1,i=n==null?0:n.length,f=0,t=[];++e<i;){var s=n[e];r(s,e,n)&&(t[f++]=s)}return t}function Bn(){return[]}var Hn=Object.prototype,Kn=Hn.propertyIsEnumerable,q=Object.getOwnPropertySymbols,qn=q?function(n){return n==null?[]:(n=Object(n),en(q(n),function(r){return Kn.call(n,r)}))}:Bn;function Zn(n,r,e){var i=r(n);return A(n)?i:rn(i,e(n))}function Z(n){return Zn(n,M,qn)}var Xn="__lodash_hash_undefined__";function Yn(n){return this.__data__.set(n,Xn),this}function Jn(n){return this.__data__.has(n)}function y(n){var r=-1,e=n==null?0:n.length;for(this.__data__=new pn;++r<e;)this.add(n[r])}y.prototype.add=y.prototype.push=Yn;y.prototype.has=Jn;function Qn(n,r){for(var e=-1,i=n==null?0:n.length;++e<i;)if(r(n[e],e,n))return!0;return!1}function tn(n,r){return n.has(r)}var Wn=1,zn=2;function fn(n,r,e,i,f,t){var s=e&Wn,u=n.length,a=r.length;if(u!=a&&!(s&&a>u))return!1;var h=t.get(n),g=t.get(r);if(h&&g)return h==r&&g==n;var l=-1,d=!0,o=e&zn?new y:void 0;for(t.set(n,r),t.set(r,n);++l<u;){var p=n[l],_=r[l];if(i)var w=s?i(_,p,l,r,n,t):i(p,_,l,n,r,t);if(w!==void 0){if(w)continue;d=!1;break}if(o){if(!Qn(r,function(O,v){if(!tn(o,v)&&(p===O||f(p,O,e,i,t)))return o.push(v)})){d=!1;break}}else if(!(p===_||f(p,_,e,i,t))){d=!1;break}}return t.delete(n),t.delete(r),d}function Vn(n){var r=-1,e=Array(n.size);return n.forEach(function(i,f){e[++r]=[f,i]}),e}function C(n){var r=-1,e=Array(n.size);return n.forEach(function(i){e[++r]=i}),e}var kn=1,jn=2,nr="[object Boolean]",rr="[object Date]",er="[object Error]",ir="[object Map]",tr="[object Number]",fr="[object RegExp]",sr="[object Set]",ur="[object String]",ar="[object Symbol]",lr="[object ArrayBuffer]",gr="[object DataView]",X=P?P.prototype:void 0,S=X?X.valueOf:void 0;function dr(n,r,e,i,f,t,s){switch(e){case gr:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case lr:return!(n.byteLength!=r.byteLength||!t(new m(n),new m(r)));case nr:case rr:case tr:return An(+n,+r);case er:return n.name==r.name&&n.message==r.message;case fr:case ur:return n==r+"";case ir:var u=Vn;case sr:var a=i&kn;if(u||(u=C),n.size!=r.size&&!a)return!1;var h=s.get(n);if(h)return h==r;i|=jn,s.set(n,r);var g=fn(u(n),u(r),i,f,t,s);return s.delete(n),g;case ar:if(S)return S.call(n)==S.call(r)}return!1}var hr=1,pr=Object.prototype,Ar=pr.hasOwnProperty;function _r(n,r,e,i,f,t){var s=e&hr,u=Z(n),a=u.length,h=Z(r),g=h.length;if(a!=g&&!s)return!1;for(var l=a;l--;){var d=u[l];if(!(s?d in r:Ar.call(r,d)))return!1}var o=t.get(n),p=t.get(r);if(o&&p)return o==r&&p==n;var _=!0;t.set(n,r),t.set(r,n);for(var w=s;++l<a;){d=u[l];var O=n[d],v=r[d];if(i)var D=s?i(v,O,d,r,n,t):i(O,v,d,n,r,t);if(!(D===void 0?O===v||f(O,v,e,i,t):D)){_=!1;break}w||(w=d=="constructor")}if(_&&!w){var b=n.constructor,E=r.constructor;b!=E&&"constructor"in n&&"constructor"in r&&!(typeof b=="function"&&b instanceof b&&typeof E=="function"&&E instanceof E)&&(_=!1)}return t.delete(n),t.delete(r),_}var or=1,Y="[object Arguments]",J="[object Array]",c="[object Object]",wr=Object.prototype,Q=wr.hasOwnProperty;function Or(n,r,e,i,f,t){var s=A(n),u=A(r),a=s?J:N(n),h=u?J:N(r);a=a==Y?c:a,h=h==Y?c:h;var g=a==c,l=h==c,d=a==h;if(d&&U(n)){if(!U(r))return!1;s=!0,g=!1}if(d&&!g)return t||(t=new T),s||_n(n)?fn(n,r,e,i,f,t):dr(n,r,a,e,i,f,t);if(!(e&or)){var o=g&&Q.call(n,"__wrapped__"),p=l&&Q.call(r,"__wrapped__");if(o||p){var _=o?n.value():n,w=p?r.value():r;return t||(t=new T),f(_,w,e,i,t)}}return d?(t||(t=new T),_r(n,r,e,i,f,t)):!1}function F(n,r,e,i,f){return n===r?!0:n==null||r==null||!L(n)&&!L(r)?n!==n&&r!==r:Or(n,r,e,i,F,f)}var vr=1,Pr=2;function yr(n,r,e,i){var f=e.length,t=f;if(n==null)return!t;for(n=Object(n);f--;){var s=e[f];if(s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++f<t;){s=e[f];var u=s[0],a=n[u],h=s[1];if(s[2]){if(a===void 0&&!(u in n))return!1}else{var g=new T,l;if(!(l===void 0?F(h,a,vr|Pr,i,g):l))return!1}}return!0}function sn(n){return n===n&&!on(n)}function br(n){for(var r=M(n),e=r.length;e--;){var i=r[e],f=n[i];r[e]=[i,f,sn(f)]}return r}function un(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function Er(n){var r=br(n);return r.length==1&&r[0][2]?un(r[0][0],r[0][1]):function(e){return e===n||yr(e,n,r)}}function cr(n,r){return n!=null&&r in Object(n)}function Tr(n,r,e){r=j(r,n);for(var i=-1,f=r.length,t=!1;++i<f;){var s=R(r[i]);if(!(t=n!=null&&e(n,s)))break;n=n[s]}return t||++i!=f?t:(f=n==null?0:n.length,!!f&&wn(f)&&On(s,f)&&(A(n)||z(n)))}function Rr(n,r){return n!=null&&Tr(n,r,cr)}var Ir=1,Sr=2;function Lr(n,r){return $(n)&&sn(r)?un(R(n),r):function(e){var i=mn(e,n);return i===void 0&&i===r?Rr(e,n):F(r,i,Ir|Sr)}}function xr(n){return function(r){return r?.[n]}}function Mr(n){return function(r){return nn(r,n)}}function $r(n){return $(n)?xr(R(n)):Mr(n)}function an(n){return typeof n=="function"?n:n==null?V:typeof n=="object"?A(n)?Lr(n[0],n[1]):Er(n):$r(n)}function Cr(n,r){return n&&vn(n,r,M)}function Fr(n,r){return function(e,i){if(e==null)return e;if(!W(e))return n(e,i);for(var f=e.length,t=-1,s=Object(e);++t<f&&i(s[t],t,s)!==!1;);return e}}var G=Fr(Cr);function Gr(n){return typeof n=="function"?n:V}function qr(n,r){var e=A(n)?En:G;return e(n,Gr(r))}function Dr(n,r){var e=[];return G(n,function(i,f,t){r(i,f,t)&&e.push(i)}),e}function Zr(n,r){var e=A(n)?en:Dr;return e(n,an(r))}function mr(n,r,e,i,f){return f(n,function(t,s,u){e=i?(i=!1,t):r(e,t,s,u)}),e}function Xr(n,r,e){var i=A(n)?Un:mr,f=arguments.length<3;return i(n,an(r),e,f,G)}var Nr=1/0,Ur=I&&1/C(new I([,-0]))[1]==Nr?function(n){return new I(n)}:bn,Br=200;function Yr(n,r,e){var i=-1,f=Sn,t=n.length,s=!0,u=[],a=u;if(t>=Br){var h=r?null:Ur(n);if(h)return C(h);s=!1,f=tn,a=new y}else a=r?[]:u;n:for(;++i<t;){var g=n[i],l=r?r(g):g;if(g=g!==0?g:0,s&&l===l){for(var d=a.length;d--;)if(a[d]===l)continue n;r&&a.push(l),u.push(g)}else f(a,l,e)||(a!==u&&a.push(l),u.push(g))}return u}export{G as a,Kr as b,an as c,yn as d,rn as e,Zn as f,qn as g,En as h,x as i,Z as j,M as k,Yr as l,Zr as m,qr as n,cn as o,Gr as p,Cr as q,Xr as r,Bn as s,Tr as t,j as u,R as v,nn as w,Rr as x,Dn as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as ln,a0 as an,a1 as G,a2 as q,a3 as z,a4 as un,a5 as y,a6 as tn,a7 as K,a8 as _,a9 as rn,aa as o,ab as on,ac as sn,ad as fn}from"./mermaid.core-
|
|
1
|
+
import{$ as ln,a0 as an,a1 as G,a2 as q,a3 as z,a4 as un,a5 as y,a6 as tn,a7 as K,a8 as _,a9 as rn,aa as o,ab as on,ac as sn,ad as fn}from"./mermaid.core-B2Lf_dRe.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,B,a){var O=I-l,i=D-h,n=B-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function V(l,h,I,D,v,A,B){var a=l-I,O=h-D,i=(B?A:-A)/K(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,C=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*K(on(0,T*T*R-P*P)),$=(P*g-m*S)/R,j=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=$-C,e=j-t,r=w-C,F=p-t;return x*x+e*e>r*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,C=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(C<an)if(E=pn(H,J,W,X,Q,U,M,N)){var Y=H-E[0],Z=J-E[1],b=Q-E[0],k=U-E[1],nn=1/q(fn((Y*b+Z*k)/(K(Y*Y+Z*Z)*K(b*b+k*k)))/2),en=K(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(H,J),a.arc(0,0,s,m,g,!t)):a.moveTo(H,J),!(u>y)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[G(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:z(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:z(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:z(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:z(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:z(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:z(+n),i):A},i.padAngle=function(n){return arguments.length?(B=typeof n=="function"?n:z(+n),i):B},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|