@d5render/cli 0.1.87 → 0.1.88
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 +2 -2
- package/README.md +35 -35
- package/bin/d5cli +8 -7
- package/bin/mcpServer.js +85 -230
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-review
|
|
3
|
-
description: code-review task process.
|
|
3
|
+
description: code-review task process for main-agent, subagent please not call report tools.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
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:
|
|
@@ -10,7 +10,7 @@ For all review-related tasks, the subagent and main-agent can confirm with each
|
|
|
10
10
|
|
|
11
11
|
Then,
|
|
12
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,
|
|
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
14
|
- One of:
|
|
15
15
|
- Read README.md, AGENTS.md, .github/**.md, .cursor/**.md files in the **same directory** as the changes and the **root directory**.
|
|
16
16
|
- Determining whether documents contain related content requires additional loading and returning to the main agent.
|
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
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { argv, env, platform } from "node:process";
|
|
2
|
+
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
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { tmpdir } from "node:os";
|
|
8
9
|
|
|
9
10
|
//#region package.json
|
|
10
11
|
var name$1 = "@d5render/cli";
|
|
11
|
-
var version = "0.1.
|
|
12
|
+
var version = "0.1.88";
|
|
12
13
|
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region packages/env.ts
|
|
@@ -29,7 +30,6 @@ const envConfigKeys = [
|
|
|
29
30
|
"CI_MERGE_REQUEST_IID",
|
|
30
31
|
"CI_MERGE_REQUEST_TITLE",
|
|
31
32
|
"CI_MERGE_REQUEST_DESCRIPTION",
|
|
32
|
-
"JIRA_BASE_URL",
|
|
33
33
|
"DINGTALK_WEBHOOK",
|
|
34
34
|
"GITLAB_TOKEN",
|
|
35
35
|
"JIRA_PAT",
|
|
@@ -39,7 +39,7 @@ const envConfigKeys = [
|
|
|
39
39
|
"TOKEN_USAGE"
|
|
40
40
|
];
|
|
41
41
|
const envUsed = Object.defineProperty({}, "JIRA_BASE_URL", {
|
|
42
|
-
get: () => toEnv("
|
|
42
|
+
get: () => toEnv("JIRA_BASE_URL", "http://jira.d5techs.com.cn"),
|
|
43
43
|
enumerable: true,
|
|
44
44
|
configurable: true
|
|
45
45
|
});
|
|
@@ -126,7 +126,8 @@ async function sendding(title, text) {
|
|
|
126
126
|
//#region review/helper.ts
|
|
127
127
|
const NAME = name$1.replaceAll("/", "_");
|
|
128
128
|
const VERSION = version;
|
|
129
|
-
const
|
|
129
|
+
const CWD = env.CI_PROJECT_DIR || cwd();
|
|
130
|
+
const TEMP = env.CI_PROJECT_DIR ? join(env.CI_PROJECT_DIR || "", `../../.${NAME}`) : join(tmpdir(), `.${NAME}`);
|
|
130
131
|
const common_review_prompt = `Load code-review skills, then call the mcp tool '${name}-${getHash}' to load code-review commits.
|
|
131
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}`;
|
|
132
133
|
async function changelog() {
|
|
@@ -325,7 +326,7 @@ async function cli() {
|
|
|
325
326
|
];
|
|
326
327
|
let child;
|
|
327
328
|
if (platform === "win32") child = spawn(bin, args, {
|
|
328
|
-
cwd:
|
|
329
|
+
cwd: CWD,
|
|
329
330
|
stdio: [
|
|
330
331
|
"inherit",
|
|
331
332
|
"pipe",
|
|
@@ -334,7 +335,7 @@ async function cli() {
|
|
|
334
335
|
shell: true
|
|
335
336
|
});
|
|
336
337
|
else child = spawn("sh", ["-c", `export GH_TOKEN=${shellEscape(env.GH_TOKEN)}; exec ${bin} ${args.map((a) => shellEscape(a)).join(" ")}`], {
|
|
337
|
-
cwd:
|
|
338
|
+
cwd: CWD,
|
|
338
339
|
stdio: [
|
|
339
340
|
"inherit",
|
|
340
341
|
"pipe",
|
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.25.3_hono@4.11.3_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.25.3_hono@4.11.3_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.25.3_hono@4.11.3_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.25.3_hono@4.11.3_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.25.3_hono@4.11.3_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,7 +10553,6 @@ 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.");
|
|
10557
10556
|
this._transport = transport;
|
|
10558
10557
|
const _onclose = this.transport?.onclose;
|
|
10559
10558
|
this._transport.onclose = () => {
|
|
@@ -10581,8 +10580,6 @@ var Protocol = class {
|
|
|
10581
10580
|
this._progressHandlers.clear();
|
|
10582
10581
|
this._taskProgressTokens.clear();
|
|
10583
10582
|
this._pendingDebouncedNotifications.clear();
|
|
10584
|
-
for (const controller of this._requestHandlerAbortControllers.values()) controller.abort();
|
|
10585
|
-
this._requestHandlerAbortControllers.clear();
|
|
10586
10583
|
const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
10587
10584
|
this._transport = void 0;
|
|
10588
10585
|
this.onclose?.();
|
|
@@ -10626,13 +10623,11 @@ var Protocol = class {
|
|
|
10626
10623
|
sessionId: capturedTransport?.sessionId,
|
|
10627
10624
|
_meta: request.params?._meta,
|
|
10628
10625
|
sendNotification: async (notification) => {
|
|
10629
|
-
if (abortController.signal.aborted) return;
|
|
10630
10626
|
const notificationOptions = { relatedRequestId: request.id };
|
|
10631
10627
|
if (relatedTaskId) notificationOptions.relatedTask = { taskId: relatedTaskId };
|
|
10632
10628
|
await this.notification(notification, notificationOptions);
|
|
10633
10629
|
},
|
|
10634
10630
|
sendRequest: async (r, resultSchema, options) => {
|
|
10635
|
-
if (abortController.signal.aborted) throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
10636
10631
|
const requestOptions = {
|
|
10637
10632
|
...options,
|
|
10638
10633
|
relatedRequestId: request.id
|
|
@@ -11246,7 +11241,7 @@ function mergeCapabilities(base, additional) {
|
|
|
11246
11241
|
}
|
|
11247
11242
|
|
|
11248
11243
|
//#endregion
|
|
11249
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11244
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
|
|
11250
11245
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11251
11246
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11252
11247
|
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;
|
|
@@ -11382,7 +11377,7 @@ var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11382
11377
|
}));
|
|
11383
11378
|
|
|
11384
11379
|
//#endregion
|
|
11385
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11380
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js
|
|
11386
11381
|
var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11387
11382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11388
11383
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -11520,7 +11515,7 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11520
11515
|
}));
|
|
11521
11516
|
|
|
11522
11517
|
//#endregion
|
|
11523
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
11518
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js
|
|
11524
11519
|
var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11525
11520
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11526
11521
|
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;
|
|
@@ -12190,7 +12185,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12190
12185
|
}));
|
|
12191
12186
|
|
|
12192
12187
|
//#endregion
|
|
12193
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12188
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js
|
|
12194
12189
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12195
12190
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12196
12191
|
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;
|
|
@@ -12332,7 +12327,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12332
12327
|
}));
|
|
12333
12328
|
|
|
12334
12329
|
//#endregion
|
|
12335
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12330
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js
|
|
12336
12331
|
var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12337
12332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12338
12333
|
const codegen_1 = require_codegen();
|
|
@@ -12358,7 +12353,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12358
12353
|
}));
|
|
12359
12354
|
|
|
12360
12355
|
//#endregion
|
|
12361
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12356
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js
|
|
12362
12357
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12363
12358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12364
12359
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -12455,7 +12450,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12455
12450
|
}));
|
|
12456
12451
|
|
|
12457
12452
|
//#endregion
|
|
12458
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12453
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
12459
12454
|
var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12460
12455
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12461
12456
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -12498,7 +12493,7 @@ var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12498
12493
|
}));
|
|
12499
12494
|
|
|
12500
12495
|
//#endregion
|
|
12501
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12496
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js
|
|
12502
12497
|
var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12503
12498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12504
12499
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -12557,7 +12552,7 @@ var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12557
12552
|
}));
|
|
12558
12553
|
|
|
12559
12554
|
//#endregion
|
|
12560
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12555
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js
|
|
12561
12556
|
var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12562
12557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12563
12558
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -12578,7 +12573,7 @@ var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12578
12573
|
}));
|
|
12579
12574
|
|
|
12580
12575
|
//#endregion
|
|
12581
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12576
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js
|
|
12582
12577
|
var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12583
12578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12584
12579
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -12743,7 +12738,7 @@ var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12743
12738
|
}));
|
|
12744
12739
|
|
|
12745
12740
|
//#endregion
|
|
12746
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12741
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js
|
|
12747
12742
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12748
12743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12749
12744
|
exports.assignDefaults = void 0;
|
|
@@ -12770,7 +12765,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12770
12765
|
}));
|
|
12771
12766
|
|
|
12772
12767
|
//#endregion
|
|
12773
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12768
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js
|
|
12774
12769
|
var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12775
12770
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12776
12771
|
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;
|
|
@@ -12895,7 +12890,7 @@ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
12895
12890
|
}));
|
|
12896
12891
|
|
|
12897
12892
|
//#endregion
|
|
12898
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
12893
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js
|
|
12899
12894
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12900
12895
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12901
12896
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -13002,7 +12997,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13002
12997
|
}));
|
|
13003
12998
|
|
|
13004
12999
|
//#endregion
|
|
13005
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13000
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js
|
|
13006
13001
|
var require_subschema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13007
13002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13008
13003
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -13177,7 +13172,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
13177
13172
|
}));
|
|
13178
13173
|
|
|
13179
13174
|
//#endregion
|
|
13180
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13175
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
|
|
13181
13176
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13182
13177
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13183
13178
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -13305,7 +13300,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13305
13300
|
}));
|
|
13306
13301
|
|
|
13307
13302
|
//#endregion
|
|
13308
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13303
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js
|
|
13309
13304
|
var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13310
13305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13311
13306
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -13725,7 +13720,7 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13725
13720
|
}));
|
|
13726
13721
|
|
|
13727
13722
|
//#endregion
|
|
13728
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13723
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js
|
|
13729
13724
|
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13730
13725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13731
13726
|
var ValidationError = class extends Error {
|
|
@@ -13739,7 +13734,7 @@ var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13739
13734
|
}));
|
|
13740
13735
|
|
|
13741
13736
|
//#endregion
|
|
13742
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13737
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js
|
|
13743
13738
|
var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13744
13739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13745
13740
|
const resolve_1 = require_resolve();
|
|
@@ -13754,7 +13749,7 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13754
13749
|
}));
|
|
13755
13750
|
|
|
13756
13751
|
//#endregion
|
|
13757
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13752
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js
|
|
13758
13753
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13759
13754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13760
13755
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -13969,7 +13964,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13969
13964
|
}));
|
|
13970
13965
|
|
|
13971
13966
|
//#endregion
|
|
13972
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
13967
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json
|
|
13973
13968
|
var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13974
13969
|
module.exports = {
|
|
13975
13970
|
"$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -14684,7 +14679,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14684
14679
|
}));
|
|
14685
14680
|
|
|
14686
14681
|
//#endregion
|
|
14687
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
14682
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js
|
|
14688
14683
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14689
14684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14690
14685
|
const uri = require_fast_uri();
|
|
@@ -14693,7 +14688,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14693
14688
|
}));
|
|
14694
14689
|
|
|
14695
14690
|
//#endregion
|
|
14696
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
14691
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
|
|
14697
14692
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14698
14693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14699
14694
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -15263,7 +15258,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15263
15258
|
}));
|
|
15264
15259
|
|
|
15265
15260
|
//#endregion
|
|
15266
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15261
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js
|
|
15267
15262
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15268
15263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15269
15264
|
const def = {
|
|
@@ -15276,7 +15271,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15276
15271
|
}));
|
|
15277
15272
|
|
|
15278
15273
|
//#endregion
|
|
15279
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15274
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
15280
15275
|
var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15281
15276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15282
15277
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -15380,7 +15375,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15380
15375
|
}));
|
|
15381
15376
|
|
|
15382
15377
|
//#endregion
|
|
15383
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15378
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
|
|
15384
15379
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15385
15380
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15386
15381
|
const id_1 = require_id();
|
|
@@ -15399,7 +15394,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15399
15394
|
}));
|
|
15400
15395
|
|
|
15401
15396
|
//#endregion
|
|
15402
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15397
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
15403
15398
|
var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15404
15399
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15405
15400
|
const codegen_1 = require_codegen();
|
|
@@ -15444,7 +15439,7 @@ var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15444
15439
|
}));
|
|
15445
15440
|
|
|
15446
15441
|
//#endregion
|
|
15447
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15442
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
15448
15443
|
var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15449
15444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15450
15445
|
const codegen_1 = require_codegen();
|
|
@@ -15469,7 +15464,7 @@ var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15469
15464
|
}));
|
|
15470
15465
|
|
|
15471
15466
|
//#endregion
|
|
15472
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15467
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js
|
|
15473
15468
|
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15474
15469
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15475
15470
|
function ucs2length(str) {
|
|
@@ -15492,7 +15487,7 @@ var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15492
15487
|
}));
|
|
15493
15488
|
|
|
15494
15489
|
//#endregion
|
|
15495
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15490
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
15496
15491
|
var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15497
15492
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15498
15493
|
const codegen_1 = require_codegen();
|
|
@@ -15521,11 +15516,10 @@ var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15521
15516
|
}));
|
|
15522
15517
|
|
|
15523
15518
|
//#endregion
|
|
15524
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15519
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
15525
15520
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15526
15521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15527
15522
|
const code_1 = require_code();
|
|
15528
|
-
const util_1 = require_util();
|
|
15529
15523
|
const codegen_1 = require_codegen();
|
|
15530
15524
|
const def = {
|
|
15531
15525
|
keyword: "pattern",
|
|
@@ -15537,25 +15531,17 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15537
15531
|
params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}`
|
|
15538
15532
|
},
|
|
15539
15533
|
code(cxt) {
|
|
15540
|
-
const {
|
|
15534
|
+
const { data, $data, schema, schemaCode, it } = cxt;
|
|
15541
15535
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
15542
|
-
|
|
15543
|
-
|
|
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
|
-
}
|
|
15536
|
+
const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
|
|
15537
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
15552
15538
|
}
|
|
15553
15539
|
};
|
|
15554
15540
|
exports.default = def;
|
|
15555
15541
|
}));
|
|
15556
15542
|
|
|
15557
15543
|
//#endregion
|
|
15558
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15544
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
15559
15545
|
var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15560
15546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15561
15547
|
const codegen_1 = require_codegen();
|
|
@@ -15581,7 +15567,7 @@ var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15581
15567
|
}));
|
|
15582
15568
|
|
|
15583
15569
|
//#endregion
|
|
15584
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15570
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
15585
15571
|
var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15586
15572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15587
15573
|
const code_1 = require_code();
|
|
@@ -15649,7 +15635,7 @@ var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15649
15635
|
}));
|
|
15650
15636
|
|
|
15651
15637
|
//#endregion
|
|
15652
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15638
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
15653
15639
|
var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15654
15640
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15655
15641
|
const codegen_1 = require_codegen();
|
|
@@ -15675,7 +15661,7 @@ var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15675
15661
|
}));
|
|
15676
15662
|
|
|
15677
15663
|
//#endregion
|
|
15678
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15664
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
|
|
15679
15665
|
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15680
15666
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15681
15667
|
const equal = require_fast_deep_equal();
|
|
@@ -15684,7 +15670,7 @@ var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15684
15670
|
}));
|
|
15685
15671
|
|
|
15686
15672
|
//#endregion
|
|
15687
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15673
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
15688
15674
|
var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15689
15675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15690
15676
|
const dataType_1 = require_dataType();
|
|
@@ -15749,7 +15735,7 @@ var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15749
15735
|
}));
|
|
15750
15736
|
|
|
15751
15737
|
//#endregion
|
|
15752
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15738
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
15753
15739
|
var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15754
15740
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15755
15741
|
const codegen_1 = require_codegen();
|
|
@@ -15772,7 +15758,7 @@ var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15772
15758
|
}));
|
|
15773
15759
|
|
|
15774
15760
|
//#endregion
|
|
15775
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15761
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
15776
15762
|
var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15777
15763
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15778
15764
|
const codegen_1 = require_codegen();
|
|
@@ -15817,7 +15803,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15817
15803
|
}));
|
|
15818
15804
|
|
|
15819
15805
|
//#endregion
|
|
15820
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15806
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
15821
15807
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15822
15808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15823
15809
|
const limitNumber_1 = require_limitNumber();
|
|
@@ -15854,7 +15840,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15854
15840
|
}));
|
|
15855
15841
|
|
|
15856
15842
|
//#endregion
|
|
15857
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15843
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
15858
15844
|
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15859
15845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15860
15846
|
exports.validateAdditionalItems = void 0;
|
|
@@ -15907,7 +15893,7 @@ var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15907
15893
|
}));
|
|
15908
15894
|
|
|
15909
15895
|
//#endregion
|
|
15910
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15896
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
15911
15897
|
var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15912
15898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15913
15899
|
exports.validateTuple = void 0;
|
|
@@ -15961,7 +15947,7 @@ var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15961
15947
|
}));
|
|
15962
15948
|
|
|
15963
15949
|
//#endregion
|
|
15964
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15950
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
15965
15951
|
var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15966
15952
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15967
15953
|
const items_1 = require_items();
|
|
@@ -15976,7 +15962,7 @@ var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15976
15962
|
}));
|
|
15977
15963
|
|
|
15978
15964
|
//#endregion
|
|
15979
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15965
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
15980
15966
|
var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15981
15967
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15982
15968
|
const codegen_1 = require_codegen();
|
|
@@ -16005,7 +15991,7 @@ var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16005
15991
|
}));
|
|
16006
15992
|
|
|
16007
15993
|
//#endregion
|
|
16008
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
15994
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
16009
15995
|
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16010
15996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16011
15997
|
const codegen_1 = require_codegen();
|
|
@@ -16091,7 +16077,7 @@ var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16091
16077
|
}));
|
|
16092
16078
|
|
|
16093
16079
|
//#endregion
|
|
16094
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16080
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
16095
16081
|
var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16096
16082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16097
16083
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -16173,7 +16159,7 @@ var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16173
16159
|
}));
|
|
16174
16160
|
|
|
16175
16161
|
//#endregion
|
|
16176
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16162
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
16177
16163
|
var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16178
16164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16179
16165
|
const codegen_1 = require_codegen();
|
|
@@ -16211,7 +16197,7 @@ var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16211
16197
|
}));
|
|
16212
16198
|
|
|
16213
16199
|
//#endregion
|
|
16214
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16200
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
16215
16201
|
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16216
16202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16217
16203
|
const code_1 = require_code();
|
|
@@ -16302,7 +16288,7 @@ var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16302
16288
|
}));
|
|
16303
16289
|
|
|
16304
16290
|
//#endregion
|
|
16305
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16291
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
16306
16292
|
var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16307
16293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16308
16294
|
const validate_1 = require_validate();
|
|
@@ -16349,7 +16335,7 @@ var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16349
16335
|
}));
|
|
16350
16336
|
|
|
16351
16337
|
//#endregion
|
|
16352
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16338
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
16353
16339
|
var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16354
16340
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16355
16341
|
const code_1 = require_code();
|
|
@@ -16406,7 +16392,7 @@ var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16406
16392
|
}));
|
|
16407
16393
|
|
|
16408
16394
|
//#endregion
|
|
16409
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16395
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
16410
16396
|
var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16411
16397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16412
16398
|
const util_1 = require_util();
|
|
@@ -16435,7 +16421,7 @@ var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16435
16421
|
}));
|
|
16436
16422
|
|
|
16437
16423
|
//#endregion
|
|
16438
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16424
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
16439
16425
|
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16440
16426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16441
16427
|
const def = {
|
|
@@ -16449,7 +16435,7 @@ var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16449
16435
|
}));
|
|
16450
16436
|
|
|
16451
16437
|
//#endregion
|
|
16452
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16438
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
16453
16439
|
var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16454
16440
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16455
16441
|
const codegen_1 = require_codegen();
|
|
@@ -16497,7 +16483,7 @@ var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16497
16483
|
}));
|
|
16498
16484
|
|
|
16499
16485
|
//#endregion
|
|
16500
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16486
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
16501
16487
|
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16502
16488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16503
16489
|
const util_1 = require_util();
|
|
@@ -16524,7 +16510,7 @@ var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16524
16510
|
}));
|
|
16525
16511
|
|
|
16526
16512
|
//#endregion
|
|
16527
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16513
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
16528
16514
|
var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16529
16515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16530
16516
|
const codegen_1 = require_codegen();
|
|
@@ -16582,7 +16568,7 @@ var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16582
16568
|
}));
|
|
16583
16569
|
|
|
16584
16570
|
//#endregion
|
|
16585
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16571
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
16586
16572
|
var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16587
16573
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16588
16574
|
const util_1 = require_util();
|
|
@@ -16597,7 +16583,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16597
16583
|
}));
|
|
16598
16584
|
|
|
16599
16585
|
//#endregion
|
|
16600
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16586
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
16601
16587
|
var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16602
16588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16603
16589
|
const additionalItems_1 = require_additionalItems();
|
|
@@ -16639,7 +16625,7 @@ var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16639
16625
|
}));
|
|
16640
16626
|
|
|
16641
16627
|
//#endregion
|
|
16642
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16628
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js
|
|
16643
16629
|
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16644
16630
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16645
16631
|
const codegen_1 = require_codegen();
|
|
@@ -16729,7 +16715,7 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16729
16715
|
}));
|
|
16730
16716
|
|
|
16731
16717
|
//#endregion
|
|
16732
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16718
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js
|
|
16733
16719
|
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16734
16720
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16735
16721
|
const format = [require_format$1().default];
|
|
@@ -16737,7 +16723,7 @@ var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16737
16723
|
}));
|
|
16738
16724
|
|
|
16739
16725
|
//#endregion
|
|
16740
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16726
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js
|
|
16741
16727
|
var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16742
16728
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16743
16729
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -16758,7 +16744,7 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16758
16744
|
}));
|
|
16759
16745
|
|
|
16760
16746
|
//#endregion
|
|
16761
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16747
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js
|
|
16762
16748
|
var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16763
16749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16764
16750
|
const core_1 = require_core();
|
|
@@ -16778,7 +16764,7 @@ var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16778
16764
|
}));
|
|
16779
16765
|
|
|
16780
16766
|
//#endregion
|
|
16781
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16767
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
16782
16768
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16783
16769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16784
16770
|
exports.DiscrError = void 0;
|
|
@@ -16790,7 +16776,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16790
16776
|
}));
|
|
16791
16777
|
|
|
16792
16778
|
//#endregion
|
|
16793
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16779
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
16794
16780
|
var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
16795
16781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16796
16782
|
const codegen_1 = require_codegen();
|
|
@@ -16885,7 +16871,7 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16885
16871
|
}));
|
|
16886
16872
|
|
|
16887
16873
|
//#endregion
|
|
16888
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
16874
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
16889
16875
|
var require_json_schema_draft_07 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16890
16876
|
module.exports = {
|
|
16891
16877
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -17024,7 +17010,7 @@ var require_json_schema_draft_07 = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
17024
17010
|
}));
|
|
17025
17011
|
|
|
17026
17012
|
//#endregion
|
|
17027
|
-
//#region node_modules/.pnpm/ajv@8.
|
|
17013
|
+
//#region node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js
|
|
17028
17014
|
var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17029
17015
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17030
17016
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -17117,7 +17103,7 @@ var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17117
17103
|
}));
|
|
17118
17104
|
|
|
17119
17105
|
//#endregion
|
|
17120
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17106
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js
|
|
17121
17107
|
var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17122
17108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17123
17109
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -17306,7 +17292,7 @@ var require_formats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17306
17292
|
}));
|
|
17307
17293
|
|
|
17308
17294
|
//#endregion
|
|
17309
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17295
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js
|
|
17310
17296
|
var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17311
17297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17312
17298
|
exports.formatLimitDefinition = void 0;
|
|
@@ -17386,7 +17372,7 @@ var require_limit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17386
17372
|
}));
|
|
17387
17373
|
|
|
17388
17374
|
//#endregion
|
|
17389
|
-
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
17375
|
+
//#region node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js
|
|
17390
17376
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17391
17377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17392
17378
|
const formats_1 = require_formats();
|
|
@@ -17421,7 +17407,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17421
17407
|
}));
|
|
17422
17408
|
|
|
17423
17409
|
//#endregion
|
|
17424
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17410
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
17425
17411
|
var import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
|
|
17426
17412
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
17427
17413
|
function createDefaultAjvInstance() {
|
|
@@ -17498,7 +17484,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
17498
17484
|
};
|
|
17499
17485
|
|
|
17500
17486
|
//#endregion
|
|
17501
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17487
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
17502
17488
|
/**
|
|
17503
17489
|
* Experimental server task features for MCP SDK.
|
|
17504
17490
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -17539,136 +17525,6 @@ var ExperimentalServerTasks = class {
|
|
|
17539
17525
|
return this._server.requestStream(request, resultSchema, options);
|
|
17540
17526
|
}
|
|
17541
17527
|
/**
|
|
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
|
-
/**
|
|
17672
17528
|
* Gets the current status of a task.
|
|
17673
17529
|
*
|
|
17674
17530
|
* @param taskId - The task identifier
|
|
@@ -17719,7 +17575,7 @@ var ExperimentalServerTasks = class {
|
|
|
17719
17575
|
};
|
|
17720
17576
|
|
|
17721
17577
|
//#endregion
|
|
17722
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17578
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
17723
17579
|
/**
|
|
17724
17580
|
* Experimental task capability assertion helpers.
|
|
17725
17581
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -17771,7 +17627,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
17771
17627
|
}
|
|
17772
17628
|
|
|
17773
17629
|
//#endregion
|
|
17774
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17630
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
17775
17631
|
/**
|
|
17776
17632
|
* An MCP server on top of a pluggable transport.
|
|
17777
17633
|
*
|
|
@@ -18113,7 +17969,7 @@ var Server = class extends Protocol {
|
|
|
18113
17969
|
};
|
|
18114
17970
|
|
|
18115
17971
|
//#endregion
|
|
18116
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17972
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
18117
17973
|
const COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
18118
17974
|
/**
|
|
18119
17975
|
* Checks if a schema is completable (has completion metadata).
|
|
@@ -18133,7 +17989,7 @@ var McpZodTypeKind;
|
|
|
18133
17989
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
18134
17990
|
|
|
18135
17991
|
//#endregion
|
|
18136
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17992
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
18137
17993
|
/**
|
|
18138
17994
|
* Tool name validation utilities according to SEP: Specify Format for Tool Names
|
|
18139
17995
|
*
|
|
@@ -18205,7 +18061,7 @@ function validateAndWarnToolName(name) {
|
|
|
18205
18061
|
}
|
|
18206
18062
|
|
|
18207
18063
|
//#endregion
|
|
18208
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18064
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
18209
18065
|
/**
|
|
18210
18066
|
* Experimental McpServer task features for MCP SDK.
|
|
18211
18067
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -18237,7 +18093,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
18237
18093
|
};
|
|
18238
18094
|
|
|
18239
18095
|
//#endregion
|
|
18240
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18096
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
18241
18097
|
/**
|
|
18242
18098
|
* High-level MCP server that provides a simpler API for working with resources, tools, and prompts.
|
|
18243
18099
|
* For advanced usage (like sending notifications or setting custom request handlers), use the underlying
|
|
@@ -18860,7 +18716,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
18860
18716
|
} };
|
|
18861
18717
|
|
|
18862
18718
|
//#endregion
|
|
18863
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18719
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
18864
18720
|
/**
|
|
18865
18721
|
* Buffers a continuous stdio stream into discrete JSON-RPC messages.
|
|
18866
18722
|
*/
|
|
@@ -18888,7 +18744,7 @@ function serializeMessage(message) {
|
|
|
18888
18744
|
}
|
|
18889
18745
|
|
|
18890
18746
|
//#endregion
|
|
18891
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18747
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.3_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
18892
18748
|
/**
|
|
18893
18749
|
* Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout.
|
|
18894
18750
|
*
|
|
@@ -18961,7 +18817,6 @@ const envConfigKeys = [
|
|
|
18961
18817
|
"CI_MERGE_REQUEST_IID",
|
|
18962
18818
|
"CI_MERGE_REQUEST_TITLE",
|
|
18963
18819
|
"CI_MERGE_REQUEST_DESCRIPTION",
|
|
18964
|
-
"JIRA_BASE_URL",
|
|
18965
18820
|
"DINGTALK_WEBHOOK",
|
|
18966
18821
|
"GITLAB_TOKEN",
|
|
18967
18822
|
"JIRA_PAT",
|
|
@@ -18971,7 +18826,7 @@ const envConfigKeys = [
|
|
|
18971
18826
|
"TOKEN_USAGE"
|
|
18972
18827
|
];
|
|
18973
18828
|
const envUsed = Object.defineProperty({}, "JIRA_BASE_URL", {
|
|
18974
|
-
get: () => toEnv("
|
|
18829
|
+
get: () => toEnv("JIRA_BASE_URL", "http://jira.d5techs.com.cn"),
|
|
18975
18830
|
enumerable: true,
|
|
18976
18831
|
configurable: true
|
|
18977
18832
|
});
|