@d5render/cli 0.1.88 → 0.1.89
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/.skills/code-review/SKILL.md +37 -38
- package/README.md +35 -35
- package/bin/d5cli +7 -7
- package/bin/mcpServer.js +228 -84
- package/package.json +40 -40
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-review
|
|
3
|
-
description: code-review task process for main-agent, subagent please not call report tools.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
For all review-related tasks, the subagent and main-agent can confirm with each other without user confirmation; they can be executed directly. However, it is important to note that all executed tasks must be listed at the end and only main-agent can execute report tasks. And obtain as much context as possible, including but not limited to the following:
|
|
7
|
-
|
|
8
|
-
- Use tools to locate files related to the changes. However, commits that explicitly request a merge, such as those with the title "Merge", do not require processing.
|
|
9
|
-
- Use toolchains to build complete call relationships and flowcharts for diff code, ensure the relevant graphs are as complete as possible (use `LSP` tool as a first-choice solution, and try other toolchain only if encounter problems). And use other tools mentioned in related documents to construct a data flow graph of the changes, ensure the relevant graphs are as complete as possible.
|
|
10
|
-
|
|
11
|
-
Then,
|
|
12
|
-
|
|
13
|
-
- Launch parallel subagents to independently code review the change (Unless there are special requirements, only the main-agent needs to call the report mcp tools, subagents do not call.). Information can be communicated between the subagents and main-agent, Subagents should do the following, then return a list of issues and the reason each issue was flagged (eg. .md adherence, issue, historical git context, etc.):
|
|
14
|
-
- One of:
|
|
15
|
-
- Read README.md, AGENTS.md, .github/**.md, .cursor/**.md files in the **same directory** as the changes and the **root directory**.
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
- Executes the report-related processes, must use chinese(中文) to report
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: code-review task process for main-agent, subagent please not call report tools.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
For all review-related tasks, the subagent and main-agent can confirm with each other without user confirmation; they can be executed directly. However, it is important to note that all executed tasks must be listed at the end and only main-agent can execute report tasks. And obtain as much context as possible, including but not limited to the following:
|
|
7
|
+
|
|
8
|
+
- Use tools to locate files related to the changes. However, commits that explicitly request a merge, such as those with the title "Merge", do not require processing.
|
|
9
|
+
- Use toolchains to build complete call relationships and flowcharts for diff code, ensure the relevant graphs are as complete as possible (use `LSP` tool as a first-choice solution, and try other toolchain only if encounter problems). And use other tools mentioned in related documents to construct a data flow graph of the changes, ensure the relevant graphs are as complete as possible.
|
|
10
|
+
|
|
11
|
+
Then,
|
|
12
|
+
|
|
13
|
+
- Launch parallel subagents to independently code review the change (Unless there are special requirements, only the main-agent needs to call the report mcp tools, subagents do not call.). Information can be communicated between the subagents and main-agent, Subagents should do the following, then return a list of issues and the reason each issue was flagged (eg. .md adherence, issue, historical git context, etc.):
|
|
14
|
+
- One of:
|
|
15
|
+
- Read README.md, AGENTS.md, .github/**.md, .cursor/**.md files in the **same directory** as the changes and the **root directory**.
|
|
16
|
+
- Read code comments in the modified files, and make sure the changes in the pull request comply with any guidance in the comments.
|
|
17
|
+
- Determining whether documents contain related content requires additional loading and returning to the main agent.
|
|
18
|
+
- Check [severity.instructions.md](./severity.instructions.md) to clarify error severity levels, Please follow the project requirements regarding the redefinition of error levels in the relevant documentation.
|
|
19
|
+
- Another of:
|
|
20
|
+
- Read all modified codes block, build a complete data flow and call relationship graph about the codes to review logic
|
|
21
|
+
- Consider whether there is a better implementation for the current logic.
|
|
22
|
+
- One more of: Read the Git messages and modification history chronologically
|
|
23
|
+
- Identify issues by incorporating commit history.
|
|
24
|
+
- Consider other related aspects of the current function and provide corresponding suggestions.
|
|
25
|
+
- Parallel subagents have the following additions.
|
|
26
|
+
- The subagents **should not** perform any report-related tasks.
|
|
27
|
+
- For each issue found returns a score to indicate the agent's level of confidence for whether the issue is real or false positive. To do that, the agent should score each issue on a scale from 0-100, indicating its level of confidence. For issues that were flagged due to CLAUDE.md instructions, the agent should double check that the CLAUDE.md actually calls out that issue specifically. The scale is (give this rubric to the agent verbatim):
|
|
28
|
+
- 0: Not confident at all. This is a false positive that doesn't stand up to light scrutiny, or is a pre-existing issue.
|
|
29
|
+
- 25: Somewhat confident. This might be a real issue, but may also be a false positive. The agent wasn't able to verify that it's a real issue. If the issue is stylistic, it is one that was not explicitly called out in the relevant CLAUDE.md.
|
|
30
|
+
- 50: Moderately confident. The agent was able to verify this is a real issue, but it might be a nitpick or not happen very often in practice. Relative to the rest of the PR, it's not very important.
|
|
31
|
+
- 75: Highly confident. The agent double checked the issue, and verified that it is very likely it is a real issue that will be hit in practice. The existing approach in the PR is insufficient. The issue is very important and will directly impact the code's functionality, or it is an issue that is directly mentioned in the relevant CLAUDE.md.
|
|
32
|
+
- 100: Absolutely certain. The agent double checked the issue, and confirmed that it is definitely a real issue, that will happen frequently in practice. The evidence directly confirms this.
|
|
33
|
+
- List the task plan and output the task completion status to main-agent. Then, main-agent performs the following actions
|
|
34
|
+
- First, based on the report, relevant tools were used again to supplement the context, them evaluate codes self.
|
|
35
|
+
- Then, compare and organize the issue scores in self and subagent, refine the context of projects scoring below 60, and re-perform the review. And final score is the average of the three scores.
|
|
36
|
+
- List all the task status
|
|
37
|
+
- Executes the report-related processes, must use chinese(中文) to report
|
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
> 参考 [.skills/devops](.skills/devops) 对项目进行初始化
|
|
2
|
-
|
|
3
|
-
> .github/\* 是相关技能的自定义的部分,建议自行放在项目文件夹内,review脚本会自动部署在~/.claude/skills(.claude适配的CLI比较多)内
|
|
4
|
-
|
|
5
|
-
# CHANGELOG
|
|
6
|
-
|
|
7
|
-
### 2026-3-18
|
|
8
|
-
|
|
9
|
-
🚩 cli
|
|
10
|
-
|
|
11
|
-
- 功能更新
|
|
12
|
-
- 报告添加回流功能
|
|
13
|
-
|
|
14
|
-
🚩 skills
|
|
15
|
-
|
|
16
|
-
- 多agent审查
|
|
17
|
-
- 启动LSP等辅助工具
|
|
18
|
-
|
|
19
|
-
### 2026-1-31
|
|
20
|
-
|
|
21
|
-
code-review skill 补充LSP相关语句
|
|
22
|
-
|
|
23
|
-
### 2026-1-16
|
|
24
|
-
|
|
25
|
-
补充安全相关检查
|
|
26
|
-
|
|
27
|
-
### 2026-1-7
|
|
28
|
-
|
|
29
|
-
代码评审 skills 更新
|
|
30
|
-
|
|
31
|
-
使用内置 skills
|
|
32
|
-
|
|
33
|
-
### 2025-12-31
|
|
34
|
-
|
|
35
|
-
基础评审能力上云
|
|
1
|
+
> 参考 [.skills/devops](.skills/devops) 对项目进行初始化
|
|
2
|
+
|
|
3
|
+
> .github/\* 是相关技能的自定义的部分,建议自行放在项目文件夹内,review脚本会自动部署在~/.claude/skills(.claude适配的CLI比较多)内
|
|
4
|
+
|
|
5
|
+
# CHANGELOG
|
|
6
|
+
|
|
7
|
+
### 2026-3-18
|
|
8
|
+
|
|
9
|
+
🚩 cli
|
|
10
|
+
|
|
11
|
+
- 功能更新
|
|
12
|
+
- 报告添加回流功能
|
|
13
|
+
|
|
14
|
+
🚩 skills
|
|
15
|
+
|
|
16
|
+
- 多agent审查
|
|
17
|
+
- 启动LSP等辅助工具
|
|
18
|
+
|
|
19
|
+
### 2026-1-31
|
|
20
|
+
|
|
21
|
+
code-review skill 补充LSP相关语句
|
|
22
|
+
|
|
23
|
+
### 2026-1-16
|
|
24
|
+
|
|
25
|
+
补充安全相关检查
|
|
26
|
+
|
|
27
|
+
### 2026-1-7
|
|
28
|
+
|
|
29
|
+
代码评审 skills 更新
|
|
30
|
+
|
|
31
|
+
使用内置 skills
|
|
32
|
+
|
|
33
|
+
### 2025-12-31
|
|
34
|
+
|
|
35
|
+
基础评审能力上云
|
package/bin/d5cli
CHANGED
|
@@ -3,13 +3,13 @@ import { argv, cwd, env, platform } from "node:process";
|
|
|
3
3
|
import { execSync, spawn } from "node:child_process";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
6
|
+
import { tmpdir } from "node:os";
|
|
6
7
|
import { dirname, join } from "node:path";
|
|
7
8
|
import { fileURLToPath } from "node:url";
|
|
8
|
-
import { tmpdir } from "node:os";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
11
|
var name$1 = "@d5render/cli";
|
|
12
|
-
var version = "0.1.
|
|
12
|
+
var version = "0.1.89";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region packages/env.ts
|
|
@@ -127,16 +127,16 @@ async function sendding(title, text) {
|
|
|
127
127
|
const NAME = name$1.replaceAll("/", "_");
|
|
128
128
|
const VERSION = version;
|
|
129
129
|
const CWD = env.CI_PROJECT_DIR || cwd();
|
|
130
|
-
const TEMP =
|
|
130
|
+
const TEMP = join(tmpdir(), `.${NAME}`);
|
|
131
131
|
const common_review_prompt = `Load code-review skills, then call the mcp tool '${name}-${getHash}' to load code-review commits.
|
|
132
132
|
Then use chinese(中文) to call the mcp tool '${name}-${report}', only main agent can call the tool '${name}-${report}', **prevent** subagent from calling tool '${name}-${report}`;
|
|
133
133
|
async function changelog() {
|
|
134
|
-
const changelog = readFileSync(join(RUNTIME_CWD, "README.md"), "utf8");
|
|
135
|
-
const cachepath = join(TEMP, "CHANGELOG_" + createHash("md5").update(env.DINGTALK_WEBHOOK || env.CI_RUNNER_ID || env.CI_PROJECT_ID || "").digest("hex"));
|
|
136
|
-
if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") : "")) return;
|
|
137
134
|
if (!existsSync(TEMP)) mkdirSync(TEMP, { recursive: true });
|
|
135
|
+
const changelog = readFileSync(join(RUNTIME_CWD, "README.md"), "utf8");
|
|
136
|
+
const cachepath = join(TEMP, "CHANGELOG_" + createHash("md5").update(env.DINGTALK_WEBHOOK || env.CI_RUNNER_ID || env.CI_PROJECT_ID || "").digest("hex")), feedback_cachepath = join(env.CI_PROJECT_DIR || "", `../../.${NAME}`);
|
|
137
|
+
if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") : existsSync(feedback_cachepath) ? readFileSync(feedback_cachepath, "utf8") : "")) return;
|
|
138
138
|
writeFileSync(cachepath, changelog, "utf8");
|
|
139
|
-
console.log("updated CHANGELOG cache
|
|
139
|
+
console.log("updated CHANGELOG cache...");
|
|
140
140
|
let matched = changelog.match(/CHANGELOG[\s\S]*?(#+[^\n]*\n+([\s\S]*?))(?=#+|$)/)?.[1] ?? "";
|
|
141
141
|
const matcheds = matched.split("\n");
|
|
142
142
|
matcheds.shift();
|
package/bin/mcpServer.js
CHANGED
|
@@ -7172,7 +7172,7 @@ const describe$1 = describe$2;
|
|
|
7172
7172
|
const meta$1 = meta$2;
|
|
7173
7173
|
|
|
7174
7174
|
//#endregion
|
|
7175
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
7175
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
7176
7176
|
function isZ4Schema(s) {
|
|
7177
7177
|
return !!s._zod;
|
|
7178
7178
|
}
|
|
@@ -7990,7 +7990,7 @@ function preprocess(fn, schema) {
|
|
|
7990
7990
|
}
|
|
7991
7991
|
|
|
7992
7992
|
//#endregion
|
|
7993
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
7993
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
7994
7994
|
const LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
7995
7995
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
7996
7996
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -9247,7 +9247,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
9247
9247
|
};
|
|
9248
9248
|
|
|
9249
9249
|
//#endregion
|
|
9250
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
9250
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
9251
9251
|
/**
|
|
9252
9252
|
* Experimental task interfaces for MCP SDK.
|
|
9253
9253
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -10364,7 +10364,7 @@ const zodToJsonSchema = (schema, options) => {
|
|
|
10364
10364
|
};
|
|
10365
10365
|
|
|
10366
10366
|
//#endregion
|
|
10367
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
10367
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
10368
10368
|
function mapMiniTarget(t) {
|
|
10369
10369
|
if (!t) return "draft-7";
|
|
10370
10370
|
if (t === "jsonSchema7" || t === "draft-7") return "draft-7";
|
|
@@ -10395,7 +10395,7 @@ function parseWithCompat(schema, data) {
|
|
|
10395
10395
|
}
|
|
10396
10396
|
|
|
10397
10397
|
//#endregion
|
|
10398
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
10398
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
10399
10399
|
/**
|
|
10400
10400
|
* The default request timeout, in miliseconds.
|
|
10401
10401
|
*/
|
|
@@ -10553,6 +10553,7 @@ var Protocol = class {
|
|
|
10553
10553
|
* The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward.
|
|
10554
10554
|
*/
|
|
10555
10555
|
async connect(transport) {
|
|
10556
|
+
if (this._transport) throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");
|
|
10556
10557
|
this._transport = transport;
|
|
10557
10558
|
const _onclose = this.transport?.onclose;
|
|
10558
10559
|
this._transport.onclose = () => {
|
|
@@ -10580,6 +10581,8 @@ var Protocol = class {
|
|
|
10580
10581
|
this._progressHandlers.clear();
|
|
10581
10582
|
this._taskProgressTokens.clear();
|
|
10582
10583
|
this._pendingDebouncedNotifications.clear();
|
|
10584
|
+
for (const controller of this._requestHandlerAbortControllers.values()) controller.abort();
|
|
10585
|
+
this._requestHandlerAbortControllers.clear();
|
|
10583
10586
|
const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
10584
10587
|
this._transport = void 0;
|
|
10585
10588
|
this.onclose?.();
|
|
@@ -10623,11 +10626,13 @@ var Protocol = class {
|
|
|
10623
10626
|
sessionId: capturedTransport?.sessionId,
|
|
10624
10627
|
_meta: request.params?._meta,
|
|
10625
10628
|
sendNotification: async (notification) => {
|
|
10629
|
+
if (abortController.signal.aborted) return;
|
|
10626
10630
|
const notificationOptions = { relatedRequestId: request.id };
|
|
10627
10631
|
if (relatedTaskId) notificationOptions.relatedTask = { taskId: relatedTaskId };
|
|
10628
10632
|
await this.notification(notification, notificationOptions);
|
|
10629
10633
|
},
|
|
10630
10634
|
sendRequest: async (r, resultSchema, options) => {
|
|
10635
|
+
if (abortController.signal.aborted) throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
10631
10636
|
const requestOptions = {
|
|
10632
10637
|
...options,
|
|
10633
10638
|
relatedRequestId: request.id
|
|
@@ -11241,7 +11246,7 @@ function mergeCapabilities(base, additional) {
|
|
|
11241
11246
|
}
|
|
11242
11247
|
|
|
11243
11248
|
//#endregion
|
|
11244
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11249
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
11245
11250
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11246
11251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11247
11252
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -11377,7 +11382,7 @@ var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11377
11382
|
}));
|
|
11378
11383
|
|
|
11379
11384
|
//#endregion
|
|
11380
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11385
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
11381
11386
|
var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11382
11387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11383
11388
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -11515,7 +11520,7 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11515
11520
|
}));
|
|
11516
11521
|
|
|
11517
11522
|
//#endregion
|
|
11518
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11523
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
11519
11524
|
var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11520
11525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11521
11526
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -12185,7 +12190,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12185
12190
|
}));
|
|
12186
12191
|
|
|
12187
12192
|
//#endregion
|
|
12188
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12193
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
|
|
12189
12194
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12190
12195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12191
12196
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -12327,7 +12332,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12327
12332
|
}));
|
|
12328
12333
|
|
|
12329
12334
|
//#endregion
|
|
12330
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12335
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
|
|
12331
12336
|
var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12332
12337
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12333
12338
|
const codegen_1 = require_codegen();
|
|
@@ -12353,7 +12358,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12353
12358
|
}));
|
|
12354
12359
|
|
|
12355
12360
|
//#endregion
|
|
12356
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12361
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
|
|
12357
12362
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12358
12363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12359
12364
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -12450,7 +12455,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12450
12455
|
}));
|
|
12451
12456
|
|
|
12452
12457
|
//#endregion
|
|
12453
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12458
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
12454
12459
|
var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12455
12460
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12456
12461
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -12493,7 +12498,7 @@ var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12493
12498
|
}));
|
|
12494
12499
|
|
|
12495
12500
|
//#endregion
|
|
12496
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12501
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
|
|
12497
12502
|
var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12498
12503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12499
12504
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -12552,7 +12557,7 @@ var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12552
12557
|
}));
|
|
12553
12558
|
|
|
12554
12559
|
//#endregion
|
|
12555
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12560
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
12556
12561
|
var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12557
12562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12558
12563
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -12573,7 +12578,7 @@ var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12573
12578
|
}));
|
|
12574
12579
|
|
|
12575
12580
|
//#endregion
|
|
12576
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12581
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
12577
12582
|
var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12578
12583
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12579
12584
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -12738,7 +12743,7 @@ var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12738
12743
|
}));
|
|
12739
12744
|
|
|
12740
12745
|
//#endregion
|
|
12741
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12746
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
12742
12747
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12743
12748
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12744
12749
|
exports.assignDefaults = void 0;
|
|
@@ -12765,7 +12770,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12765
12770
|
}));
|
|
12766
12771
|
|
|
12767
12772
|
//#endregion
|
|
12768
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12773
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
|
|
12769
12774
|
var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12770
12775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12771
12776
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -12890,7 +12895,7 @@ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12890
12895
|
}));
|
|
12891
12896
|
|
|
12892
12897
|
//#endregion
|
|
12893
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12898
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
12894
12899
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12895
12900
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12896
12901
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -12997,7 +13002,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12997
13002
|
}));
|
|
12998
13003
|
|
|
12999
13004
|
//#endregion
|
|
13000
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13005
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
13001
13006
|
var require_subschema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13002
13007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13003
13008
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -13172,7 +13177,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
13172
13177
|
}));
|
|
13173
13178
|
|
|
13174
13179
|
//#endregion
|
|
13175
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13180
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
|
|
13176
13181
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13177
13182
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13178
13183
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -13300,7 +13305,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13300
13305
|
}));
|
|
13301
13306
|
|
|
13302
13307
|
//#endregion
|
|
13303
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13308
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
|
|
13304
13309
|
var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13305
13310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13306
13311
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -13720,7 +13725,7 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13720
13725
|
}));
|
|
13721
13726
|
|
|
13722
13727
|
//#endregion
|
|
13723
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13728
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
13724
13729
|
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13725
13730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13726
13731
|
var ValidationError = class extends Error {
|
|
@@ -13734,7 +13739,7 @@ var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13734
13739
|
}));
|
|
13735
13740
|
|
|
13736
13741
|
//#endregion
|
|
13737
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13742
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
|
|
13738
13743
|
var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13739
13744
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13740
13745
|
const resolve_1 = require_resolve();
|
|
@@ -13749,7 +13754,7 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13749
13754
|
}));
|
|
13750
13755
|
|
|
13751
13756
|
//#endregion
|
|
13752
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13757
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
|
|
13753
13758
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13754
13759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13755
13760
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -13964,7 +13969,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13964
13969
|
}));
|
|
13965
13970
|
|
|
13966
13971
|
//#endregion
|
|
13967
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13972
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
|
|
13968
13973
|
var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13969
13974
|
module.exports = {
|
|
13970
13975
|
"$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -14679,7 +14684,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14679
14684
|
}));
|
|
14680
14685
|
|
|
14681
14686
|
//#endregion
|
|
14682
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
14687
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
|
|
14683
14688
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14684
14689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14685
14690
|
const uri = require_fast_uri();
|
|
@@ -14688,7 +14693,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14688
14693
|
}));
|
|
14689
14694
|
|
|
14690
14695
|
//#endregion
|
|
14691
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
14696
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
14692
14697
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14693
14698
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14694
14699
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -15258,7 +15263,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15258
15263
|
}));
|
|
15259
15264
|
|
|
15260
15265
|
//#endregion
|
|
15261
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15266
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
15262
15267
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15263
15268
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15264
15269
|
const def = {
|
|
@@ -15271,7 +15276,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15271
15276
|
}));
|
|
15272
15277
|
|
|
15273
15278
|
//#endregion
|
|
15274
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15279
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
15275
15280
|
var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15276
15281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15277
15282
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -15375,7 +15380,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15375
15380
|
}));
|
|
15376
15381
|
|
|
15377
15382
|
//#endregion
|
|
15378
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15383
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
15379
15384
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15380
15385
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15381
15386
|
const id_1 = require_id();
|
|
@@ -15394,7 +15399,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15394
15399
|
}));
|
|
15395
15400
|
|
|
15396
15401
|
//#endregion
|
|
15397
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15402
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
15398
15403
|
var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15399
15404
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15400
15405
|
const codegen_1 = require_codegen();
|
|
@@ -15439,7 +15444,7 @@ var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15439
15444
|
}));
|
|
15440
15445
|
|
|
15441
15446
|
//#endregion
|
|
15442
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15447
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
15443
15448
|
var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15444
15449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15445
15450
|
const codegen_1 = require_codegen();
|
|
@@ -15464,7 +15469,7 @@ var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15464
15469
|
}));
|
|
15465
15470
|
|
|
15466
15471
|
//#endregion
|
|
15467
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15472
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
15468
15473
|
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15469
15474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15470
15475
|
function ucs2length(str) {
|
|
@@ -15487,7 +15492,7 @@ var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15487
15492
|
}));
|
|
15488
15493
|
|
|
15489
15494
|
//#endregion
|
|
15490
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15495
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
15491
15496
|
var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15492
15497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15493
15498
|
const codegen_1 = require_codegen();
|
|
@@ -15516,10 +15521,11 @@ var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15516
15521
|
}));
|
|
15517
15522
|
|
|
15518
15523
|
//#endregion
|
|
15519
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15524
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
15520
15525
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15521
15526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15522
15527
|
const code_1 = require_code();
|
|
15528
|
+
const util_1 = require_util();
|
|
15523
15529
|
const codegen_1 = require_codegen();
|
|
15524
15530
|
const def = {
|
|
15525
15531
|
keyword: "pattern",
|
|
@@ -15531,17 +15537,25 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15531
15537
|
params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}`
|
|
15532
15538
|
},
|
|
15533
15539
|
code(cxt) {
|
|
15534
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
15540
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
15535
15541
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
15536
|
-
|
|
15537
|
-
|
|
15542
|
+
if ($data) {
|
|
15543
|
+
const { regExp } = it.opts.code;
|
|
15544
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
15545
|
+
const valid = gen.let("valid");
|
|
15546
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
15547
|
+
cxt.fail$data((0, codegen_1._)`!${valid}`);
|
|
15548
|
+
} else {
|
|
15549
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
15550
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
15551
|
+
}
|
|
15538
15552
|
}
|
|
15539
15553
|
};
|
|
15540
15554
|
exports.default = def;
|
|
15541
15555
|
}));
|
|
15542
15556
|
|
|
15543
15557
|
//#endregion
|
|
15544
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15558
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
15545
15559
|
var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15546
15560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15547
15561
|
const codegen_1 = require_codegen();
|
|
@@ -15567,7 +15581,7 @@ var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15567
15581
|
}));
|
|
15568
15582
|
|
|
15569
15583
|
//#endregion
|
|
15570
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15584
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
15571
15585
|
var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15572
15586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15573
15587
|
const code_1 = require_code();
|
|
@@ -15635,7 +15649,7 @@ var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15635
15649
|
}));
|
|
15636
15650
|
|
|
15637
15651
|
//#endregion
|
|
15638
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15652
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
15639
15653
|
var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15640
15654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15641
15655
|
const codegen_1 = require_codegen();
|
|
@@ -15661,7 +15675,7 @@ var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15661
15675
|
}));
|
|
15662
15676
|
|
|
15663
15677
|
//#endregion
|
|
15664
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15678
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
|
|
15665
15679
|
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15666
15680
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15667
15681
|
const equal = require_fast_deep_equal();
|
|
@@ -15670,7 +15684,7 @@ var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15670
15684
|
}));
|
|
15671
15685
|
|
|
15672
15686
|
//#endregion
|
|
15673
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15687
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
15674
15688
|
var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15675
15689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15676
15690
|
const dataType_1 = require_dataType();
|
|
@@ -15735,7 +15749,7 @@ var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15735
15749
|
}));
|
|
15736
15750
|
|
|
15737
15751
|
//#endregion
|
|
15738
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15752
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
15739
15753
|
var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15740
15754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15741
15755
|
const codegen_1 = require_codegen();
|
|
@@ -15758,7 +15772,7 @@ var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15758
15772
|
}));
|
|
15759
15773
|
|
|
15760
15774
|
//#endregion
|
|
15761
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15775
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
15762
15776
|
var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15763
15777
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15764
15778
|
const codegen_1 = require_codegen();
|
|
@@ -15803,7 +15817,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15803
15817
|
}));
|
|
15804
15818
|
|
|
15805
15819
|
//#endregion
|
|
15806
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15820
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
15807
15821
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15808
15822
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15809
15823
|
const limitNumber_1 = require_limitNumber();
|
|
@@ -15840,7 +15854,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15840
15854
|
}));
|
|
15841
15855
|
|
|
15842
15856
|
//#endregion
|
|
15843
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15857
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
15844
15858
|
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15845
15859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15846
15860
|
exports.validateAdditionalItems = void 0;
|
|
@@ -15893,7 +15907,7 @@ var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15893
15907
|
}));
|
|
15894
15908
|
|
|
15895
15909
|
//#endregion
|
|
15896
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15910
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
15897
15911
|
var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15898
15912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15899
15913
|
exports.validateTuple = void 0;
|
|
@@ -15947,7 +15961,7 @@ var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15947
15961
|
}));
|
|
15948
15962
|
|
|
15949
15963
|
//#endregion
|
|
15950
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15964
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
15951
15965
|
var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15952
15966
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15953
15967
|
const items_1 = require_items();
|
|
@@ -15962,7 +15976,7 @@ var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15962
15976
|
}));
|
|
15963
15977
|
|
|
15964
15978
|
//#endregion
|
|
15965
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15979
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
15966
15980
|
var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15967
15981
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15968
15982
|
const codegen_1 = require_codegen();
|
|
@@ -15991,7 +16005,7 @@ var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15991
16005
|
}));
|
|
15992
16006
|
|
|
15993
16007
|
//#endregion
|
|
15994
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16008
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
15995
16009
|
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15996
16010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15997
16011
|
const codegen_1 = require_codegen();
|
|
@@ -16077,7 +16091,7 @@ var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16077
16091
|
}));
|
|
16078
16092
|
|
|
16079
16093
|
//#endregion
|
|
16080
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16094
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
16081
16095
|
var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16082
16096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16083
16097
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -16159,7 +16173,7 @@ var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16159
16173
|
}));
|
|
16160
16174
|
|
|
16161
16175
|
//#endregion
|
|
16162
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16176
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
16163
16177
|
var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16164
16178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16165
16179
|
const codegen_1 = require_codegen();
|
|
@@ -16197,7 +16211,7 @@ var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16197
16211
|
}));
|
|
16198
16212
|
|
|
16199
16213
|
//#endregion
|
|
16200
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16214
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
16201
16215
|
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16202
16216
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16203
16217
|
const code_1 = require_code();
|
|
@@ -16288,7 +16302,7 @@ var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16288
16302
|
}));
|
|
16289
16303
|
|
|
16290
16304
|
//#endregion
|
|
16291
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16305
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
16292
16306
|
var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16293
16307
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16294
16308
|
const validate_1 = require_validate();
|
|
@@ -16335,7 +16349,7 @@ var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16335
16349
|
}));
|
|
16336
16350
|
|
|
16337
16351
|
//#endregion
|
|
16338
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16352
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
16339
16353
|
var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16340
16354
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16341
16355
|
const code_1 = require_code();
|
|
@@ -16392,7 +16406,7 @@ var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16392
16406
|
}));
|
|
16393
16407
|
|
|
16394
16408
|
//#endregion
|
|
16395
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16409
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
16396
16410
|
var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16397
16411
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16398
16412
|
const util_1 = require_util();
|
|
@@ -16421,7 +16435,7 @@ var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16421
16435
|
}));
|
|
16422
16436
|
|
|
16423
16437
|
//#endregion
|
|
16424
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16438
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
16425
16439
|
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16426
16440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16427
16441
|
const def = {
|
|
@@ -16435,7 +16449,7 @@ var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16435
16449
|
}));
|
|
16436
16450
|
|
|
16437
16451
|
//#endregion
|
|
16438
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16452
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
16439
16453
|
var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16440
16454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16441
16455
|
const codegen_1 = require_codegen();
|
|
@@ -16483,7 +16497,7 @@ var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16483
16497
|
}));
|
|
16484
16498
|
|
|
16485
16499
|
//#endregion
|
|
16486
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16500
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
16487
16501
|
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16488
16502
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16489
16503
|
const util_1 = require_util();
|
|
@@ -16510,7 +16524,7 @@ var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16510
16524
|
}));
|
|
16511
16525
|
|
|
16512
16526
|
//#endregion
|
|
16513
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16527
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
16514
16528
|
var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16515
16529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16516
16530
|
const codegen_1 = require_codegen();
|
|
@@ -16568,7 +16582,7 @@ var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16568
16582
|
}));
|
|
16569
16583
|
|
|
16570
16584
|
//#endregion
|
|
16571
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16585
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
16572
16586
|
var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16573
16587
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16574
16588
|
const util_1 = require_util();
|
|
@@ -16583,7 +16597,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16583
16597
|
}));
|
|
16584
16598
|
|
|
16585
16599
|
//#endregion
|
|
16586
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16600
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
16587
16601
|
var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16588
16602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16589
16603
|
const additionalItems_1 = require_additionalItems();
|
|
@@ -16625,7 +16639,7 @@ var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16625
16639
|
}));
|
|
16626
16640
|
|
|
16627
16641
|
//#endregion
|
|
16628
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16642
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
16629
16643
|
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16630
16644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16631
16645
|
const codegen_1 = require_codegen();
|
|
@@ -16715,7 +16729,7 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16715
16729
|
}));
|
|
16716
16730
|
|
|
16717
16731
|
//#endregion
|
|
16718
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16732
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
16719
16733
|
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16720
16734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16721
16735
|
const format = [require_format$1().default];
|
|
@@ -16723,7 +16737,7 @@ var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16723
16737
|
}));
|
|
16724
16738
|
|
|
16725
16739
|
//#endregion
|
|
16726
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16740
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
16727
16741
|
var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16728
16742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16729
16743
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -16744,7 +16758,7 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16744
16758
|
}));
|
|
16745
16759
|
|
|
16746
16760
|
//#endregion
|
|
16747
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16761
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
16748
16762
|
var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16749
16763
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16750
16764
|
const core_1 = require_core();
|
|
@@ -16764,7 +16778,7 @@ var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16764
16778
|
}));
|
|
16765
16779
|
|
|
16766
16780
|
//#endregion
|
|
16767
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16781
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
16768
16782
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16769
16783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16770
16784
|
exports.DiscrError = void 0;
|
|
@@ -16776,7 +16790,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16776
16790
|
}));
|
|
16777
16791
|
|
|
16778
16792
|
//#endregion
|
|
16779
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16793
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
16780
16794
|
var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16781
16795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16782
16796
|
const codegen_1 = require_codegen();
|
|
@@ -16871,7 +16885,7 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16871
16885
|
}));
|
|
16872
16886
|
|
|
16873
16887
|
//#endregion
|
|
16874
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16888
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
16875
16889
|
var require_json_schema_draft_07 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16876
16890
|
module.exports = {
|
|
16877
16891
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -17010,7 +17024,7 @@ var require_json_schema_draft_07 = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
17010
17024
|
}));
|
|
17011
17025
|
|
|
17012
17026
|
//#endregion
|
|
17013
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
17027
|
+
//#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js
|
|
17014
17028
|
var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17015
17029
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17016
17030
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -17103,7 +17117,7 @@ var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17103
17117
|
}));
|
|
17104
17118
|
|
|
17105
17119
|
//#endregion
|
|
17106
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17120
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js
|
|
17107
17121
|
var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17108
17122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17109
17123
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -17292,7 +17306,7 @@ var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17292
17306
|
}));
|
|
17293
17307
|
|
|
17294
17308
|
//#endregion
|
|
17295
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17309
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js
|
|
17296
17310
|
var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17297
17311
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17298
17312
|
exports.formatLimitDefinition = void 0;
|
|
@@ -17372,7 +17386,7 @@ var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17372
17386
|
}));
|
|
17373
17387
|
|
|
17374
17388
|
//#endregion
|
|
17375
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17389
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js
|
|
17376
17390
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17377
17391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17378
17392
|
const formats_1 = require_formats();
|
|
@@ -17407,7 +17421,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17407
17421
|
}));
|
|
17408
17422
|
|
|
17409
17423
|
//#endregion
|
|
17410
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17424
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
17411
17425
|
var import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
|
|
17412
17426
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
17413
17427
|
function createDefaultAjvInstance() {
|
|
@@ -17484,7 +17498,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
17484
17498
|
};
|
|
17485
17499
|
|
|
17486
17500
|
//#endregion
|
|
17487
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17501
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
17488
17502
|
/**
|
|
17489
17503
|
* Experimental server task features for MCP SDK.
|
|
17490
17504
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -17525,6 +17539,136 @@ var ExperimentalServerTasks = class {
|
|
|
17525
17539
|
return this._server.requestStream(request, resultSchema, options);
|
|
17526
17540
|
}
|
|
17527
17541
|
/**
|
|
17542
|
+
* Sends a sampling request and returns an AsyncGenerator that yields response messages.
|
|
17543
|
+
* The generator is guaranteed to end with either a 'result' or 'error' message.
|
|
17544
|
+
*
|
|
17545
|
+
* For task-augmented requests, yields 'taskCreated' and 'taskStatus' messages
|
|
17546
|
+
* before the final result.
|
|
17547
|
+
*
|
|
17548
|
+
* @example
|
|
17549
|
+
* ```typescript
|
|
17550
|
+
* const stream = server.experimental.tasks.createMessageStream({
|
|
17551
|
+
* messages: [{ role: 'user', content: { type: 'text', text: 'Hello' } }],
|
|
17552
|
+
* maxTokens: 100
|
|
17553
|
+
* }, {
|
|
17554
|
+
* onprogress: (progress) => {
|
|
17555
|
+
* // Handle streaming tokens via progress notifications
|
|
17556
|
+
* console.log('Progress:', progress.message);
|
|
17557
|
+
* }
|
|
17558
|
+
* });
|
|
17559
|
+
*
|
|
17560
|
+
* for await (const message of stream) {
|
|
17561
|
+
* switch (message.type) {
|
|
17562
|
+
* case 'taskCreated':
|
|
17563
|
+
* console.log('Task created:', message.task.taskId);
|
|
17564
|
+
* break;
|
|
17565
|
+
* case 'taskStatus':
|
|
17566
|
+
* console.log('Task status:', message.task.status);
|
|
17567
|
+
* break;
|
|
17568
|
+
* case 'result':
|
|
17569
|
+
* console.log('Final result:', message.result);
|
|
17570
|
+
* break;
|
|
17571
|
+
* case 'error':
|
|
17572
|
+
* console.error('Error:', message.error);
|
|
17573
|
+
* break;
|
|
17574
|
+
* }
|
|
17575
|
+
* }
|
|
17576
|
+
* ```
|
|
17577
|
+
*
|
|
17578
|
+
* @param params - The sampling request parameters
|
|
17579
|
+
* @param options - Optional request options (timeout, signal, task creation params, onprogress, etc.)
|
|
17580
|
+
* @returns AsyncGenerator that yields ResponseMessage objects
|
|
17581
|
+
*
|
|
17582
|
+
* @experimental
|
|
17583
|
+
*/
|
|
17584
|
+
createMessageStream(params, options) {
|
|
17585
|
+
const clientCapabilities = this._server.getClientCapabilities();
|
|
17586
|
+
if ((params.tools || params.toolChoice) && !clientCapabilities?.sampling?.tools) throw new Error("Client does not support sampling tools capability.");
|
|
17587
|
+
if (params.messages.length > 0) {
|
|
17588
|
+
const lastMessage = params.messages[params.messages.length - 1];
|
|
17589
|
+
const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [lastMessage.content];
|
|
17590
|
+
const hasToolResults = lastContent.some((c) => c.type === "tool_result");
|
|
17591
|
+
const previousMessage = params.messages.length > 1 ? params.messages[params.messages.length - 2] : void 0;
|
|
17592
|
+
const previousContent = previousMessage ? Array.isArray(previousMessage.content) ? previousMessage.content : [previousMessage.content] : [];
|
|
17593
|
+
const hasPreviousToolUse = previousContent.some((c) => c.type === "tool_use");
|
|
17594
|
+
if (hasToolResults) {
|
|
17595
|
+
if (lastContent.some((c) => c.type !== "tool_result")) throw new Error("The last message must contain only tool_result content if any is present");
|
|
17596
|
+
if (!hasPreviousToolUse) throw new Error("tool_result blocks are not matching any tool_use from the previous message");
|
|
17597
|
+
}
|
|
17598
|
+
if (hasPreviousToolUse) {
|
|
17599
|
+
const toolUseIds = new Set(previousContent.filter((c) => c.type === "tool_use").map((c) => c.id));
|
|
17600
|
+
const toolResultIds = new Set(lastContent.filter((c) => c.type === "tool_result").map((c) => c.toolUseId));
|
|
17601
|
+
if (toolUseIds.size !== toolResultIds.size || ![...toolUseIds].every((id) => toolResultIds.has(id))) throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match");
|
|
17602
|
+
}
|
|
17603
|
+
}
|
|
17604
|
+
return this.requestStream({
|
|
17605
|
+
method: "sampling/createMessage",
|
|
17606
|
+
params
|
|
17607
|
+
}, CreateMessageResultSchema, options);
|
|
17608
|
+
}
|
|
17609
|
+
/**
|
|
17610
|
+
* Sends an elicitation request and returns an AsyncGenerator that yields response messages.
|
|
17611
|
+
* The generator is guaranteed to end with either a 'result' or 'error' message.
|
|
17612
|
+
*
|
|
17613
|
+
* For task-augmented requests (especially URL-based elicitation), yields 'taskCreated'
|
|
17614
|
+
* and 'taskStatus' messages before the final result.
|
|
17615
|
+
*
|
|
17616
|
+
* @example
|
|
17617
|
+
* ```typescript
|
|
17618
|
+
* const stream = server.experimental.tasks.elicitInputStream({
|
|
17619
|
+
* mode: 'url',
|
|
17620
|
+
* message: 'Please authenticate',
|
|
17621
|
+
* elicitationId: 'auth-123',
|
|
17622
|
+
* url: 'https://example.com/auth'
|
|
17623
|
+
* }, {
|
|
17624
|
+
* task: { ttl: 300000 } // Task-augmented for long-running auth flow
|
|
17625
|
+
* });
|
|
17626
|
+
*
|
|
17627
|
+
* for await (const message of stream) {
|
|
17628
|
+
* switch (message.type) {
|
|
17629
|
+
* case 'taskCreated':
|
|
17630
|
+
* console.log('Task created:', message.task.taskId);
|
|
17631
|
+
* break;
|
|
17632
|
+
* case 'taskStatus':
|
|
17633
|
+
* console.log('Task status:', message.task.status);
|
|
17634
|
+
* break;
|
|
17635
|
+
* case 'result':
|
|
17636
|
+
* console.log('User action:', message.result.action);
|
|
17637
|
+
* break;
|
|
17638
|
+
* case 'error':
|
|
17639
|
+
* console.error('Error:', message.error);
|
|
17640
|
+
* break;
|
|
17641
|
+
* }
|
|
17642
|
+
* }
|
|
17643
|
+
* ```
|
|
17644
|
+
*
|
|
17645
|
+
* @param params - The elicitation request parameters
|
|
17646
|
+
* @param options - Optional request options (timeout, signal, task creation params, etc.)
|
|
17647
|
+
* @returns AsyncGenerator that yields ResponseMessage objects
|
|
17648
|
+
*
|
|
17649
|
+
* @experimental
|
|
17650
|
+
*/
|
|
17651
|
+
elicitInputStream(params, options) {
|
|
17652
|
+
const clientCapabilities = this._server.getClientCapabilities();
|
|
17653
|
+
const mode = params.mode ?? "form";
|
|
17654
|
+
switch (mode) {
|
|
17655
|
+
case "url":
|
|
17656
|
+
if (!clientCapabilities?.elicitation?.url) throw new Error("Client does not support url elicitation.");
|
|
17657
|
+
break;
|
|
17658
|
+
case "form":
|
|
17659
|
+
if (!clientCapabilities?.elicitation?.form) throw new Error("Client does not support form elicitation.");
|
|
17660
|
+
break;
|
|
17661
|
+
}
|
|
17662
|
+
const normalizedParams = mode === "form" && params.mode === void 0 ? {
|
|
17663
|
+
...params,
|
|
17664
|
+
mode: "form"
|
|
17665
|
+
} : params;
|
|
17666
|
+
return this.requestStream({
|
|
17667
|
+
method: "elicitation/create",
|
|
17668
|
+
params: normalizedParams
|
|
17669
|
+
}, ElicitResultSchema, options);
|
|
17670
|
+
}
|
|
17671
|
+
/**
|
|
17528
17672
|
* Gets the current status of a task.
|
|
17529
17673
|
*
|
|
17530
17674
|
* @param taskId - The task identifier
|
|
@@ -17575,7 +17719,7 @@ var ExperimentalServerTasks = class {
|
|
|
17575
17719
|
};
|
|
17576
17720
|
|
|
17577
17721
|
//#endregion
|
|
17578
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17722
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
17579
17723
|
/**
|
|
17580
17724
|
* Experimental task capability assertion helpers.
|
|
17581
17725
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -17627,7 +17771,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
17627
17771
|
}
|
|
17628
17772
|
|
|
17629
17773
|
//#endregion
|
|
17630
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17774
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
17631
17775
|
/**
|
|
17632
17776
|
* An MCP server on top of a pluggable transport.
|
|
17633
17777
|
*
|
|
@@ -17969,7 +18113,7 @@ var Server = class extends Protocol {
|
|
|
17969
18113
|
};
|
|
17970
18114
|
|
|
17971
18115
|
//#endregion
|
|
17972
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18116
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
17973
18117
|
const COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
17974
18118
|
/**
|
|
17975
18119
|
* Checks if a schema is completable (has completion metadata).
|
|
@@ -17989,7 +18133,7 @@ var McpZodTypeKind;
|
|
|
17989
18133
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
17990
18134
|
|
|
17991
18135
|
//#endregion
|
|
17992
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18136
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
17993
18137
|
/**
|
|
17994
18138
|
* Tool name validation utilities according to SEP: Specify Format for Tool Names
|
|
17995
18139
|
*
|
|
@@ -18061,7 +18205,7 @@ function validateAndWarnToolName(name) {
|
|
|
18061
18205
|
}
|
|
18062
18206
|
|
|
18063
18207
|
//#endregion
|
|
18064
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18208
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
18065
18209
|
/**
|
|
18066
18210
|
* Experimental McpServer task features for MCP SDK.
|
|
18067
18211
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -18093,7 +18237,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
18093
18237
|
};
|
|
18094
18238
|
|
|
18095
18239
|
//#endregion
|
|
18096
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18240
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
18097
18241
|
/**
|
|
18098
18242
|
* High-level MCP server that provides a simpler API for working with resources, tools, and prompts.
|
|
18099
18243
|
* For advanced usage (like sending notifications or setting custom request handlers), use the underlying
|
|
@@ -18716,7 +18860,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
18716
18860
|
} };
|
|
18717
18861
|
|
|
18718
18862
|
//#endregion
|
|
18719
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18863
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
18720
18864
|
/**
|
|
18721
18865
|
* Buffers a continuous stdio stream into discrete JSON-RPC messages.
|
|
18722
18866
|
*/
|
|
@@ -18744,7 +18888,7 @@ function serializeMessage(message) {
|
|
|
18744
18888
|
}
|
|
18745
18889
|
|
|
18746
18890
|
//#endregion
|
|
18747
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18891
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
18748
18892
|
/**
|
|
18749
18893
|
* Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout.
|
|
18750
18894
|
*
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@d5render/cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"author": "jasirou",
|
|
6
|
-
"bin": {
|
|
7
|
-
"d5cli": "bin/d5cli"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"CHANGELOG.md",
|
|
11
|
-
".skills/code-review",
|
|
12
|
-
".skills/devops",
|
|
13
|
-
"bin/d5cli",
|
|
14
|
-
"bin/mcpServer.js",
|
|
15
|
-
".github/instructions/severity.instructions.md"
|
|
16
|
-
],
|
|
17
|
-
"type": "module",
|
|
18
|
-
"main": "./bin/d5cli",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@d5render/cli",
|
|
3
|
+
"version": "0.1.89",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "jasirou",
|
|
6
|
+
"bin": {
|
|
7
|
+
"d5cli": "bin/d5cli"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
".skills/code-review",
|
|
12
|
+
".skills/devops",
|
|
13
|
+
"bin/d5cli",
|
|
14
|
+
"bin/mcpServer.js",
|
|
15
|
+
".github/instructions/severity.instructions.md"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./bin/d5cli",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "node ./setup.js build",
|
|
21
|
+
"release": "node ./setup.js publish",
|
|
22
|
+
"setup": "node ./setup.js",
|
|
23
|
+
"test": "node ./setup.js build:development"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"vscode-languageserver-protocol": "^3.17.5"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
30
|
+
"@types/node": "^25.1.0",
|
|
31
|
+
"@types/vscode": "^1.108.1",
|
|
32
|
+
"@vscode/vsce": "^3.7.1",
|
|
33
|
+
"json5": "^2.2.3",
|
|
34
|
+
"oxfmt": "^0.21.0",
|
|
35
|
+
"oxlint": "^1.42.0",
|
|
36
|
+
"rolldown": "1.0.0-rc.2",
|
|
37
|
+
"vitest": "^4.0.18",
|
|
38
|
+
"zod": "^4.3.6"
|
|
39
|
+
}
|
|
40
|
+
}
|