@nocobase/plugin-ai 2.3.0-beta.22 → 2.3.0-beta.23

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.
@@ -20,6 +20,7 @@ export type MCPRecord = {
20
20
  title?: string;
21
21
  description?: string;
22
22
  enabled?: boolean;
23
+ fromFile?: boolean;
23
24
  transport: MCPTransport;
24
25
  command?: string | null;
25
26
  url?: string | null;
@@ -55,11 +56,12 @@ type MCPListResult = {
55
56
  data: MCPRecord[];
56
57
  total?: number;
57
58
  };
59
+ export declare const isProtectedMCP: (record?: MCPRecord) => boolean;
58
60
  export declare const sanitizeMCPValues: (values: MCPFormValues) => MCPRecord;
59
61
  export declare const toMCPFormValues: (record: MCPRecord) => MCPFormValues;
60
62
  export declare const getMCPToolsByServer: (toolsMap: Record<string, MCPToolEntry[]> | null | undefined, serverName: string) => MCPToolEntry[];
61
63
  export declare function listMCPClients(apiClient: APIClientLike): Promise<MCPListResult>;
62
- export declare function testMCPConnection(apiClient: APIClientLike, values: MCPFormValues): Promise<MCPTestResultData>;
64
+ export declare function testMCPConnection(apiClient: APIClientLike, values: MCPFormValues, record?: MCPRecord): Promise<MCPTestResultData>;
63
65
  export declare function createMCPClient(apiClient: APIClientLike, values: MCPFormValues): Promise<void>;
64
66
  export declare function updateMCPClient(apiClient: APIClientLike, values: MCPFormValues, name: string): Promise<void>;
65
67
  export declare function deleteMCPClient(apiClient: APIClientLike, name: string): Promise<void>;
@@ -60,6 +60,11 @@ var ai_mcp_clients_default = {
60
60
  type: "boolean",
61
61
  defaultValue: true
62
62
  },
63
+ {
64
+ name: "fromFile",
65
+ type: "boolean",
66
+ defaultValue: false
67
+ },
63
68
  {
64
69
  name: "transport",
65
70
  type: "string",
@@ -8,17 +8,17 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/plugin-acl": "2.3.0-beta.22",
12
- "@nocobase/plugin-workflow": "2.3.0-beta.22",
13
- "@nocobase/client": "2.3.0-beta.22",
14
- "@nocobase/utils": "2.3.0-beta.22",
15
- "@nocobase/flow-engine": "2.3.0-beta.22",
16
- "@nocobase/client-v2": "2.3.0-beta.22",
17
- "@nocobase/database": "2.3.0-beta.22",
18
- "@nocobase/actions": "2.3.0-beta.22",
19
- "@nocobase/plugin-file-manager": "2.3.0-beta.22",
20
- "@nocobase/server": "2.3.0-beta.22",
21
- "@nocobase/ai": "2.3.0-beta.22",
11
+ "@nocobase/plugin-acl": "2.3.0-beta.23",
12
+ "@nocobase/plugin-workflow": "2.3.0-beta.23",
13
+ "@nocobase/client": "2.3.0-beta.23",
14
+ "@nocobase/utils": "2.3.0-beta.23",
15
+ "@nocobase/flow-engine": "2.3.0-beta.23",
16
+ "@nocobase/client-v2": "2.3.0-beta.23",
17
+ "@nocobase/database": "2.3.0-beta.23",
18
+ "@nocobase/actions": "2.3.0-beta.23",
19
+ "@nocobase/plugin-file-manager": "2.3.0-beta.23",
20
+ "@nocobase/server": "2.3.0-beta.23",
21
+ "@nocobase/ai": "2.3.0-beta.23",
22
22
  "langchain": "1.2.39",
23
23
  "react": "18.2.0",
24
24
  "antd": "5.24.2",
@@ -30,14 +30,14 @@ module.exports = {
30
30
  "react-router-dom": "6.30.1",
31
31
  "@langchain/core": "1.1.49",
32
32
  "@langchain/langgraph": "1.4.4",
33
- "@nocobase/cache": "2.3.0-beta.22",
33
+ "@nocobase/cache": "2.3.0-beta.23",
34
34
  "@langchain/anthropic": "1.3.17",
35
35
  "@langchain/openai": "1.4.7",
36
36
  "@langchain/google-genai": "2.1.18",
37
37
  "@langchain/ollama": "1.2.7",
38
- "@nocobase/acl": "2.3.0-beta.22",
39
- "@nocobase/data-source-manager": "2.3.0-beta.22",
40
- "@nocobase/resourcer": "2.3.0-beta.22",
38
+ "@nocobase/acl": "2.3.0-beta.23",
39
+ "@nocobase/data-source-manager": "2.3.0-beta.23",
40
+ "@nocobase/resourcer": "2.3.0-beta.23",
41
41
  "dayjs": "1.11.13",
42
42
  "react-dom": "18.2.0",
43
43
  "@formily/core": "2.3.7",
@@ -1,4 +1,10 @@
1
1
  {
2
+ "Stdio MCP servers can only be configured in storage/ai/mcp/servers.json.": "Stdio MCP servers can only be configured in storage/ai/mcp/servers.json.",
3
+ "This MCP server is managed by deployment configuration. Only its enabled state can be changed.": "This MCP server is managed by deployment configuration. Only its enabled state can be changed.",
4
+ "Invalid MCP configuration": "Invalid MCP configuration",
5
+ "MCP server not found": "MCP server not found",
6
+ "Command is required for stdio transport": "Command is required for stdio transport",
7
+ "No configuration provided": "No configuration provided",
2
8
  "API Key": "API Key",
3
9
  "X-Title": "X-Title",
4
10
  "Sent as the \"X-Title\" request header.": "Sent as the \"X-Title\" request header.",
@@ -1,4 +1,10 @@
1
1
  {
2
+ "Stdio MCP servers can only be configured in storage/ai/mcp/servers.json.": "Stdio MCP 服务只能通过 storage/ai/mcp/servers.json 配置。",
3
+ "This MCP server is managed by deployment configuration. Only its enabled state can be changed.": "此 MCP 服务由部署配置管理,仅可切换启用状态。",
4
+ "Invalid MCP configuration": "MCP 配置无效",
5
+ "MCP server not found": "MCP 服务不存在",
6
+ "Command is required for stdio transport": "Stdio 传输必须配置命令",
7
+ "No configuration provided": "未提供连接配置",
2
8
  "API Key": "API Key",
3
9
  "X-Title": "X-Title",
4
10
  "Sent as the \"X-Title\" request header.": "作为 \"X-Title\" 请求头发送。",
@@ -1 +1 @@
1
- {"name":"@langchain/mistralai","version":"1.0.0","description":"MistralAI integration for LangChain.js","author":"LangChain","license":"MIT","type":"module","engines":{"node":">=20"},"repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-mistralai/","dependencies":{"@mistralai/mistralai":"^1.3.1","uuid":"^10.0.0"},"peerDependencies":{"@langchain/core":"^1.0.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.3","@vitest/coverage-v8":"^3.2.4","dotenv":"^16.3.1","dpdm":"^3.14.0","eslint":"^9.34.0","prettier":"^2.8.3","rollup":"^4.5.2","typescript":"~5.8.3","vitest":"^3.2.4","zod":"^3.25.76","@langchain/eslint":"0.1.0","@langchain/standard-tests":"0.0.0","@langchain/core":"1.0.1"},"publishConfig":{"access":"public"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"files":["dist/","CHANGELOG.md","README.md","LICENSE"],"scripts":{"build":"pnpm --filter @langchain/build compile @langchain/mistralai","lint:eslint":"eslint --cache src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"pnpm lint:eslint && pnpm lint:dpdm","lint:fix":"pnpm lint:eslint --fix && pnpm lint:dpdm","clean":"rm -rf .turbo dist/","test":"vitest run","test:watch":"vitest","test:int":"vitest run --mode int","test:standard:unit":"vitest run --mode standard-unit","test:standard:int":"vitest run --mode standard-int","test:standard":"pnpm test:standard:unit && pnpm test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"_lastModified":"2026-11-10T01:32:22.110Z"}
1
+ {"name":"@langchain/mistralai","version":"1.0.0","description":"MistralAI integration for LangChain.js","author":"LangChain","license":"MIT","type":"module","engines":{"node":">=20"},"repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-mistralai/","dependencies":{"@mistralai/mistralai":"^1.3.1","uuid":"^10.0.0"},"peerDependencies":{"@langchain/core":"^1.0.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.3","@vitest/coverage-v8":"^3.2.4","dotenv":"^16.3.1","dpdm":"^3.14.0","eslint":"^9.34.0","prettier":"^2.8.3","rollup":"^4.5.2","typescript":"~5.8.3","vitest":"^3.2.4","zod":"^3.25.76","@langchain/eslint":"0.1.0","@langchain/standard-tests":"0.0.0","@langchain/core":"1.0.1"},"publishConfig":{"access":"public"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"input":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"files":["dist/","CHANGELOG.md","README.md","LICENSE"],"scripts":{"build":"pnpm --filter @langchain/build compile @langchain/mistralai","lint:eslint":"eslint --cache src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"pnpm lint:eslint && pnpm lint:dpdm","lint:fix":"pnpm lint:eslint --fix && pnpm lint:dpdm","clean":"rm -rf .turbo dist/","test":"vitest run","test:watch":"vitest","test:int":"vitest run --mode int","test:standard:unit":"vitest run --mode standard-unit","test:standard:int":"vitest run --mode standard-int","test:standard":"pnpm test:standard:unit && pnpm test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"_lastModified":"2026-11-11T01:05:00.547Z"}
@@ -1 +1 @@
1
- {"name":"@langchain/xai","version":"1.3.19","description":"xAI integration for LangChain.js","author":"LangChain","license":"MIT","type":"module","engines":{"node":">=20"},"repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-xai/","dependencies":{"@langchain/openai":"1.4.7"},"peerDependencies":{"@langchain/core":"^1.0.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.3","@vitest/coverage-v8":"^3.2.4","dotenv":"^17.4.0","dpdm":"^3.14.0","typescript":"~5.8.3","vitest":"^4.1.2","zod":"^3.25.76","@langchain/openai":"^1.4.7","@langchain/core":"^1.1.48","@langchain/standard-tests":"0.0.23","@langchain/tsconfig":"0.0.1"},"publishConfig":{"access":"public"},"main":"./dist/index.cjs","types":"./dist/index.d.cts","exports":{".":{"input":"./src/index.ts","require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"files":["dist/","CHANGELOG.md","README.md","LICENSE"],"module":"./dist/index.js","scripts":{"build":"turbo build:compile --filter @langchain/xai --output-logs new-only","build:compile":"tsdown","clean":"rm -rf .turbo dist/","test":"vitest run","test:watch":"vitest --watch","test:int":"vitest --mode int","test:standard:unit":"vitest --mode standard-unit","test:standard:int":"vitest --mode standard-int","test:standard":"pnpm test:standard:unit && pnpm test:standard:int","typegen":"pnpm run typegen:profiles","typegen:profiles":"pnpm --filter @langchain/model-profiles make --config profiles.toml"},"_lastModified":"2026-11-10T01:32:24.446Z"}
1
+ {"name":"@langchain/xai","version":"1.3.19","description":"xAI integration for LangChain.js","author":"LangChain","license":"MIT","type":"module","engines":{"node":">=20"},"repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-xai/","dependencies":{"@langchain/openai":"1.4.7"},"peerDependencies":{"@langchain/core":"^1.0.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.3","@vitest/coverage-v8":"^3.2.4","dotenv":"^17.4.0","dpdm":"^3.14.0","typescript":"~5.8.3","vitest":"^4.1.2","zod":"^3.25.76","@langchain/openai":"^1.4.7","@langchain/core":"^1.1.48","@langchain/standard-tests":"0.0.23","@langchain/tsconfig":"0.0.1"},"publishConfig":{"access":"public"},"main":"./dist/index.cjs","types":"./dist/index.d.cts","exports":{".":{"input":"./src/index.ts","require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"files":["dist/","CHANGELOG.md","README.md","LICENSE"],"module":"./dist/index.js","scripts":{"build":"turbo build:compile --filter @langchain/xai --output-logs new-only","build:compile":"tsdown","clean":"rm -rf .turbo dist/","test":"vitest run","test:watch":"vitest --watch","test:int":"vitest --mode int","test:standard:unit":"vitest --mode standard-unit","test:standard:int":"vitest --mode standard-int","test:standard":"pnpm test:standard:unit && pnpm test:standard:int","typegen":"pnpm run typegen:profiles","typegen:profiles":"pnpm --filter @langchain/model-profiles make --config profiles.toml"},"_lastModified":"2026-11-11T01:05:02.935Z"}
@@ -1 +1 @@
1
- {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-11-10T01:32:24.582Z"}
1
+ {"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-11-11T01:05:03.079Z"}
@@ -1 +1 @@
1
- {"name":"jsonrepair","version":"3.13.1","description":"Repair broken JSON documents","repository":{"type":"git","url":"https://github.com/josdejong/jsonrepair.git"},"type":"module","main":"lib/cjs/index.js","module":"lib/esm/index.js","browser":"lib/umd/jsonrepair.min.js","types":"lib/types/index.d.ts","sideEffects":false,"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js","types":"./lib/types/index.d.ts"},"./stream":{"import":"./lib/esm/stream.js","require":"./lib/cjs/stream.js","types":"./lib/types/stream.d.ts"}},"keywords":["simple","json","repair","fix","invalid","stream","streaming"],"bin":{"jsonrepair":"./bin/cli.js"},"scripts":{"test":"vitest watch src","test:it":"vitest run src","build":"npm-run-all build:**","build:clean":"del-cli lib","build:esm":"babel src --out-dir lib/esm --extensions \".ts\" --source-maps --config-file ./babel.config.json","build:cjs":"babel src --out-dir lib/cjs --extensions \".ts\" --source-maps --config-file ./babel-cjs.config.json && cpy tools/cjs lib/cjs --flat","build:umd":"rollup lib/esm/index.js --format umd --name JSONRepair --sourcemap --output.file lib/umd/jsonrepair.js && cpy tools/cjs/package.json lib/umd --flat","build:umd:min":"uglifyjs --compress --mangle --source-map --comments --output lib/umd/jsonrepair.min.js -- lib/umd/jsonrepair.js","build:types":"tsc --project tsconfig-types.json","build:validate":"vitest run test-lib","lint":"biome check","format":"biome check --write","benchmark":"npm run build:esm && node tools/benchmark/run.mjs","build-and-test":"npm run lint && npm run test:it && npm run build","release":"npm-run-all release:**","release:build-and-test":"npm run build-and-test","release:version":"standard-version","release:push":"git push && git push --tag","release:publish":"npm publish","release-dry-run":"npm run build-and-test && standard-version --dry-run","prepare":"husky"},"files":["README.md","LICENSE.md","lib"],"author":"Jos de Jong","license":"ISC","devDependencies":{"@babel/cli":"7.28.3","@babel/core":"7.28.4","@babel/plugin-transform-typescript":"7.28.0","@babel/preset-env":"7.28.3","@babel/preset-typescript":"7.27.1","@biomejs/biome":"2.2.4","@commitlint/cli":"19.8.1","@commitlint/config-conventional":"19.8.1","@types/node":"24.5.2","cpy-cli":"6.0.0","del-cli":"7.0.0","husky":"9.1.7","npm-run-all":"4.1.5","rollup":"4.51.0","standard-version":"9.5.0","tinybench":"5.0.1","ts-node":"10.9.2","typescript":"5.9.2","uglify-js":"3.19.3","vitest":"3.2.4"},"_lastModified":"2026-11-10T01:32:29.824Z"}
1
+ {"name":"jsonrepair","version":"3.13.1","description":"Repair broken JSON documents","repository":{"type":"git","url":"https://github.com/josdejong/jsonrepair.git"},"type":"module","main":"lib/cjs/index.js","module":"lib/esm/index.js","browser":"lib/umd/jsonrepair.min.js","types":"lib/types/index.d.ts","sideEffects":false,"exports":{".":{"import":"./lib/esm/index.js","require":"./lib/cjs/index.js","types":"./lib/types/index.d.ts"},"./stream":{"import":"./lib/esm/stream.js","require":"./lib/cjs/stream.js","types":"./lib/types/stream.d.ts"}},"keywords":["simple","json","repair","fix","invalid","stream","streaming"],"bin":{"jsonrepair":"./bin/cli.js"},"scripts":{"test":"vitest watch src","test:it":"vitest run src","build":"npm-run-all build:**","build:clean":"del-cli lib","build:esm":"babel src --out-dir lib/esm --extensions \".ts\" --source-maps --config-file ./babel.config.json","build:cjs":"babel src --out-dir lib/cjs --extensions \".ts\" --source-maps --config-file ./babel-cjs.config.json && cpy tools/cjs lib/cjs --flat","build:umd":"rollup lib/esm/index.js --format umd --name JSONRepair --sourcemap --output.file lib/umd/jsonrepair.js && cpy tools/cjs/package.json lib/umd --flat","build:umd:min":"uglifyjs --compress --mangle --source-map --comments --output lib/umd/jsonrepair.min.js -- lib/umd/jsonrepair.js","build:types":"tsc --project tsconfig-types.json","build:validate":"vitest run test-lib","lint":"biome check","format":"biome check --write","benchmark":"npm run build:esm && node tools/benchmark/run.mjs","build-and-test":"npm run lint && npm run test:it && npm run build","release":"npm-run-all release:**","release:build-and-test":"npm run build-and-test","release:version":"standard-version","release:push":"git push && git push --tag","release:publish":"npm publish","release-dry-run":"npm run build-and-test && standard-version --dry-run","prepare":"husky"},"files":["README.md","LICENSE.md","lib"],"author":"Jos de Jong","license":"ISC","devDependencies":{"@babel/cli":"7.28.3","@babel/core":"7.28.4","@babel/plugin-transform-typescript":"7.28.0","@babel/preset-env":"7.28.3","@babel/preset-typescript":"7.27.1","@biomejs/biome":"2.2.4","@commitlint/cli":"19.8.1","@commitlint/config-conventional":"19.8.1","@types/node":"24.5.2","cpy-cli":"6.0.0","del-cli":"7.0.0","husky":"9.1.7","npm-run-all":"4.1.5","rollup":"4.51.0","standard-version":"9.5.0","tinybench":"5.0.1","ts-node":"10.9.2","typescript":"5.9.2","uglify-js":"3.19.3","vitest":"3.2.4"},"_lastModified":"2026-11-11T01:05:07.591Z"}
@@ -1 +1 @@
1
- {"name":"just-bash","version":"3.4.2","description":"A simulated bash environment with virtual filesystem","repository":{"type":"git","url":"git+https://github.com/vercel-labs/just-bash.git"},"homepage":"https://github.com/vercel-labs/just-bash#readme","bugs":{"url":"https://github.com/vercel-labs/just-bash/issues"},"type":"module","engines":{"node":">=20.18.1"},"main":"dist/bundle/index.js","types":"dist/index.d.ts","exports":{".":{"browser":"./dist/bundle/browser.js","require":{"types":"./dist/index.d.cts","default":"./dist/bundle/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/bundle/index.js"}},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/bundle/browser.js"}},"files":["dist/bundle/","dist/bin/","dist/*.d.ts","dist/*.d.cts","dist/ast/*.d.ts","dist/commands/**/*.d.ts","dist/commands/sqlite3/worker.js","dist/fs/**/*.d.ts","dist/interpreter/**/*.d.ts","dist/network/**/*.d.ts","dist/parser/*.d.ts","dist/sandbox/*.d.ts","dist/security/*.d.ts","dist/transform/**/*.d.ts","dist/utils/*.d.ts","vendor/cpython-emscripten/","README.md","CHANGELOG.md","dist/AGENTS.md"],"bin":{"just-bash":"./dist/bin/just-bash.js","just-bash-shell":"./dist/bin/shell/shell.js"},"publishConfig":{"access":"public"},"keywords":[],"author":"Malte and Claude","license":"Apache-2.0","devDependencies":{"@types/ini":"^4.1.1","@types/node":"^25.9.5","@types/papaparse":"^5.5.2","@types/sprintf-js":"^1.1.4","@types/sql.js":"^1.4.11","@types/turndown":"^5.0.6","@vitest/coverage-v8":"^4.1.10","esbuild":"^0.27.7","fast-check":"^3.23.2","knip":"^5.88.1","tsx":"^4.23.12","typescript":"^5.9.3","vitest":"^4.1.10"},"dependencies":{"diff":"^8.0.4","fast-xml-parser":"^5.10.1","file-type":"^21.3.4","ini":"^6.0.0","minimatch":"^10.2.6","modern-tar":"^0.7.7","papaparse":"^5.6.0","quickjs-emscripten":"^0.32.0","re2js":"^1.3.3","seek-bzip":"^2.0.0","smol-toml":"^1.8.0","sprintf-js":"^1.1.3","sql.js":"^1.14.1","turndown":"^7.2.4","undici":"^7.29.0","yaml":"^2.9.0"},"optionalDependencies":{"@mongodb-js/zstd":"^7.0.0","node-liblzma":"^2.2.0"},"scripts":{"build":"rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md","build:clean":"find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete","build:worker":"esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/js-exec-worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/js-exec-worker.js --external:quickjs-emscripten && cp src/commands/js-exec/js-exec-worker.js dist/commands/js-exec/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bundle/chunks/js-exec-worker.js && esbuild src/commands/sqlite3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/sqlite3/worker.js --external:sql.js && mkdir -p dist/commands/sqlite3 && cp src/commands/sqlite3/worker.js dist/commands/sqlite3/worker.js && cp src/commands/sqlite3/worker.js dist/bin/chunks/sqlite3-worker.js && cp src/commands/sqlite3/worker.js dist/bundle/chunks/sqlite3-worker.js","build:lib":"esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --banner:js='import{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:lib:cjs":"esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:browser":"esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:undici --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip --define:__BROWSER__=true --alias:node:async_hooks=./src/shims/browser-unsupported.js --alias:node:dns=./src/shims/browser-unsupported.js --alias:node:module=./src/shims/browser-unsupported.js","build:cli":"esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node\nimport{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:shell":"esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node\nimport{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","validate":"pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist","typecheck":"tsc --noEmit","lint":"pnpm lint:banned","check:worker-sync":"node scripts/check-worker-sync.js","lint:banned":"node scripts/check-banned-patterns.js","lint:fix":"pnpm --workspace-root lint:fix","knip":"knip","test":"vitest","test:run":"vitest run --exclude src/security/fuzzing/ --exclude src/commands/python3/ --exclude src/commands/sqlite3/ --exclude src/commands/js-exec/ --exclude src/agent-examples/python-scripting.test.ts","test:dist":"vitest run src/cli/just-bash.bundle.test.ts src/package-contents.test.ts","test:unit":"vitest run --config vitest.unit.config.ts","test:wasm":"vitest run --config vitest.wasm.config.ts","test:comparison":"vitest run --config vitest.comparison.config.ts","test:comparison:record":"RECORD_FIXTURES=1 vitest run --config vitest.comparison.config.ts","test:coverage":"vitest run --coverage","test:coverage:unit":"vitest run --config vitest.unit.config.ts --coverage","test:fuzz":"vitest run src/security/fuzzing/","test:fuzz:long":"FUZZ_RUNS=10000 vitest run src/security/fuzzing/","shell":"tsx src/cli/shell.ts","dev:exec":"tsx src/cli/exec.ts"},"_lastModified":"2026-11-10T01:32:27.285Z"}
1
+ {"name":"just-bash","version":"3.4.2","description":"A simulated bash environment with virtual filesystem","repository":{"type":"git","url":"git+https://github.com/vercel-labs/just-bash.git"},"homepage":"https://github.com/vercel-labs/just-bash#readme","bugs":{"url":"https://github.com/vercel-labs/just-bash/issues"},"type":"module","engines":{"node":">=20.18.1"},"main":"dist/bundle/index.js","types":"dist/index.d.ts","exports":{".":{"browser":"./dist/bundle/browser.js","require":{"types":"./dist/index.d.cts","default":"./dist/bundle/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/bundle/index.js"}},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/bundle/browser.js"}},"files":["dist/bundle/","dist/bin/","dist/*.d.ts","dist/*.d.cts","dist/ast/*.d.ts","dist/commands/**/*.d.ts","dist/commands/sqlite3/worker.js","dist/fs/**/*.d.ts","dist/interpreter/**/*.d.ts","dist/network/**/*.d.ts","dist/parser/*.d.ts","dist/sandbox/*.d.ts","dist/security/*.d.ts","dist/transform/**/*.d.ts","dist/utils/*.d.ts","vendor/cpython-emscripten/","README.md","CHANGELOG.md","dist/AGENTS.md"],"bin":{"just-bash":"./dist/bin/just-bash.js","just-bash-shell":"./dist/bin/shell/shell.js"},"publishConfig":{"access":"public"},"keywords":[],"author":"Malte and Claude","license":"Apache-2.0","devDependencies":{"@types/ini":"^4.1.1","@types/node":"^25.9.5","@types/papaparse":"^5.5.2","@types/sprintf-js":"^1.1.4","@types/sql.js":"^1.4.11","@types/turndown":"^5.0.6","@vitest/coverage-v8":"^4.1.10","esbuild":"^0.27.7","fast-check":"^3.23.2","knip":"^5.88.1","tsx":"^4.23.12","typescript":"^5.9.3","vitest":"^4.1.10"},"dependencies":{"diff":"^8.0.4","fast-xml-parser":"^5.10.1","file-type":"^21.3.4","ini":"^6.0.0","minimatch":"^10.2.6","modern-tar":"^0.7.7","papaparse":"^5.6.0","quickjs-emscripten":"^0.32.0","re2js":"^1.3.3","seek-bzip":"^2.0.0","smol-toml":"^1.8.0","sprintf-js":"^1.1.3","sql.js":"^1.14.1","turndown":"^7.2.4","undici":"^7.29.0","yaml":"^2.9.0"},"optionalDependencies":{"@mongodb-js/zstd":"^7.0.0","node-liblzma":"^2.2.0"},"scripts":{"build":"rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md","build:clean":"find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete","build:worker":"esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/js-exec-worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/js-exec-worker.js --external:quickjs-emscripten && cp src/commands/js-exec/js-exec-worker.js dist/commands/js-exec/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bundle/chunks/js-exec-worker.js && esbuild src/commands/sqlite3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/sqlite3/worker.js --external:sql.js && mkdir -p dist/commands/sqlite3 && cp src/commands/sqlite3/worker.js dist/commands/sqlite3/worker.js && cp src/commands/sqlite3/worker.js dist/bin/chunks/sqlite3-worker.js && cp src/commands/sqlite3/worker.js dist/bundle/chunks/sqlite3-worker.js","build:lib":"esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --banner:js='import{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:lib:cjs":"esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:browser":"esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:undici --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip --define:__BROWSER__=true --alias:node:async_hooks=./src/shims/browser-unsupported.js --alias:node:dns=./src/shims/browser-unsupported.js --alias:node:module=./src/shims/browser-unsupported.js","build:cli":"esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node\nimport{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","build:shell":"esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node\nimport{createRequire} from\"node:module\";const require=createRequire(import.meta.url);' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip","validate":"pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist","typecheck":"tsc --noEmit","lint":"pnpm lint:banned","check:worker-sync":"node scripts/check-worker-sync.js","lint:banned":"node scripts/check-banned-patterns.js","lint:fix":"pnpm --workspace-root lint:fix","knip":"knip","test":"vitest","test:run":"vitest run --exclude src/security/fuzzing/ --exclude src/commands/python3/ --exclude src/commands/sqlite3/ --exclude src/commands/js-exec/ --exclude src/agent-examples/python-scripting.test.ts","test:dist":"vitest run src/cli/just-bash.bundle.test.ts src/package-contents.test.ts","test:unit":"vitest run --config vitest.unit.config.ts","test:wasm":"vitest run --config vitest.wasm.config.ts","test:comparison":"vitest run --config vitest.comparison.config.ts","test:comparison:record":"RECORD_FIXTURES=1 vitest run --config vitest.comparison.config.ts","test:coverage":"vitest run --coverage","test:coverage:unit":"vitest run --config vitest.unit.config.ts --coverage","test:fuzz":"vitest run src/security/fuzzing/","test:fuzz:long":"FUZZ_RUNS=10000 vitest run src/security/fuzzing/","shell":"tsx src/cli/shell.ts","dev:exec":"tsx src/cli/exec.ts"},"_lastModified":"2026-11-11T01:05:05.693Z"}
@@ -1 +1 @@
1
- {"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-11-10T01:32:15.728Z"}
1
+ {"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-11-11T01:04:54.176Z"}
@@ -1 +1 @@
1
- {"name":"openai","version":"6.39.1","description":"The official TypeScript library for the OpenAI API","author":"OpenAI <support@openai.com>","types":"./index.d.ts","main":"./index.js","type":"commonjs","repository":"github:openai/openai-node","license":"Apache-2.0","packageManager":"yarn@1.22.22","files":["**/*"],"private":false,"publishConfig":{"access":"public"},"scripts":{"test":"./scripts/test","build":"./scripts/build","format":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","fix":"./scripts/format"},"dependencies":{},"bin":{"openai":"bin/cli"},"overrides":{"minimatch":"^9.0.5"},"pnpm":{"overrides":{"minimatch":"^9.0.5"}},"resolutions":{"minimatch":"^9.0.5"},"exports":{".":{"require":{"types":"./index.d.ts","default":"./index.js"},"types":"./index.d.mts","default":"./index.mjs"},"./_vendor/*.mjs":{"default":"./_vendor/*.mjs"},"./_vendor/*.js":{"default":"./_vendor/*.js"},"./_vendor/*":{"import":"./_vendor/*.mjs","require":"./_vendor/*.js"},"./api-promise":{"import":"./api-promise.mjs","require":"./api-promise.js"},"./api-promise.js":{"default":"./api-promise.js"},"./api-promise.mjs":{"default":"./api-promise.mjs"},"./auth/*.mjs":{"default":"./auth/*.mjs"},"./auth/*.js":{"default":"./auth/*.js"},"./auth/*":{"import":"./auth/*.mjs","require":"./auth/*.js"},"./azure":{"import":"./azure.mjs","require":"./azure.js"},"./azure.js":{"default":"./azure.js"},"./azure.mjs":{"default":"./azure.mjs"},"./beta/*.mjs":{"default":"./beta/*.mjs"},"./beta/*.js":{"default":"./beta/*.js"},"./beta/*":{"import":"./beta/*.mjs","require":"./beta/*.js"},"./client":{"import":"./client.mjs","require":"./client.js"},"./client.js":{"default":"./client.js"},"./client.mjs":{"default":"./client.mjs"},"./core/*.mjs":{"default":"./core/*.mjs"},"./core/*.js":{"default":"./core/*.js"},"./core/*":{"import":"./core/*.mjs","require":"./core/*.js"},"./error":{"import":"./error.mjs","require":"./error.js"},"./error.js":{"default":"./error.js"},"./error.mjs":{"default":"./error.mjs"},"./helpers/*.mjs":{"default":"./helpers/*.mjs"},"./helpers/*.js":{"default":"./helpers/*.js"},"./helpers/*":{"import":"./helpers/*.mjs","require":"./helpers/*.js"},"./index":{"import":"./index.mjs","require":"./index.js"},"./index.js":{"default":"./index.js"},"./index.mjs":{"default":"./index.mjs"},"./lib/*.mjs":{"default":"./lib/*.mjs"},"./lib/*.js":{"default":"./lib/*.js"},"./lib/*":{"import":"./lib/*.mjs","require":"./lib/*.js"},"./pagination":{"import":"./pagination.mjs","require":"./pagination.js"},"./pagination.js":{"default":"./pagination.js"},"./pagination.mjs":{"default":"./pagination.mjs"},"./realtime/*.mjs":{"default":"./realtime/*.mjs"},"./realtime/*.js":{"default":"./realtime/*.js"},"./realtime/*":{"import":"./realtime/*.mjs","require":"./realtime/*.js"},"./resource":{"import":"./resource.mjs","require":"./resource.js"},"./resource.js":{"default":"./resource.js"},"./resource.mjs":{"default":"./resource.mjs"},"./resources/*.mjs":{"default":"./resources/*.mjs"},"./resources/*.js":{"default":"./resources/*.js"},"./resources/*":{"import":"./resources/*.mjs","require":"./resources/*.js"},"./resources":{"import":"./resources.mjs","require":"./resources.js"},"./resources.js":{"default":"./resources.js"},"./resources.mjs":{"default":"./resources.mjs"},"./streaming":{"import":"./streaming.mjs","require":"./streaming.js"},"./streaming.js":{"default":"./streaming.js"},"./streaming.mjs":{"default":"./streaming.mjs"},"./uploads":{"import":"./uploads.mjs","require":"./uploads.js"},"./uploads.js":{"default":"./uploads.js"},"./uploads.mjs":{"default":"./uploads.mjs"},"./version":{"import":"./version.mjs","require":"./version.js"},"./version.js":{"default":"./version.js"},"./version.mjs":{"default":"./version.mjs"}},"peerDependencies":{"ws":"^8.18.0","zod":"^3.25 || ^4.0"},"peerDependenciesMeta":{"ws":{"optional":true},"zod":{"optional":true}},"_lastModified":"2026-11-10T01:32:29.632Z"}
1
+ {"name":"openai","version":"6.39.1","description":"The official TypeScript library for the OpenAI API","author":"OpenAI <support@openai.com>","types":"./index.d.ts","main":"./index.js","type":"commonjs","repository":"github:openai/openai-node","license":"Apache-2.0","packageManager":"yarn@1.22.22","files":["**/*"],"private":false,"publishConfig":{"access":"public"},"scripts":{"test":"./scripts/test","build":"./scripts/build","format":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","fix":"./scripts/format"},"dependencies":{},"bin":{"openai":"bin/cli"},"overrides":{"minimatch":"^9.0.5"},"pnpm":{"overrides":{"minimatch":"^9.0.5"}},"resolutions":{"minimatch":"^9.0.5"},"exports":{".":{"require":{"types":"./index.d.ts","default":"./index.js"},"types":"./index.d.mts","default":"./index.mjs"},"./_vendor/*.mjs":{"default":"./_vendor/*.mjs"},"./_vendor/*.js":{"default":"./_vendor/*.js"},"./_vendor/*":{"import":"./_vendor/*.mjs","require":"./_vendor/*.js"},"./api-promise":{"import":"./api-promise.mjs","require":"./api-promise.js"},"./api-promise.js":{"default":"./api-promise.js"},"./api-promise.mjs":{"default":"./api-promise.mjs"},"./auth/*.mjs":{"default":"./auth/*.mjs"},"./auth/*.js":{"default":"./auth/*.js"},"./auth/*":{"import":"./auth/*.mjs","require":"./auth/*.js"},"./azure":{"import":"./azure.mjs","require":"./azure.js"},"./azure.js":{"default":"./azure.js"},"./azure.mjs":{"default":"./azure.mjs"},"./beta/*.mjs":{"default":"./beta/*.mjs"},"./beta/*.js":{"default":"./beta/*.js"},"./beta/*":{"import":"./beta/*.mjs","require":"./beta/*.js"},"./client":{"import":"./client.mjs","require":"./client.js"},"./client.js":{"default":"./client.js"},"./client.mjs":{"default":"./client.mjs"},"./core/*.mjs":{"default":"./core/*.mjs"},"./core/*.js":{"default":"./core/*.js"},"./core/*":{"import":"./core/*.mjs","require":"./core/*.js"},"./error":{"import":"./error.mjs","require":"./error.js"},"./error.js":{"default":"./error.js"},"./error.mjs":{"default":"./error.mjs"},"./helpers/*.mjs":{"default":"./helpers/*.mjs"},"./helpers/*.js":{"default":"./helpers/*.js"},"./helpers/*":{"import":"./helpers/*.mjs","require":"./helpers/*.js"},"./index":{"import":"./index.mjs","require":"./index.js"},"./index.js":{"default":"./index.js"},"./index.mjs":{"default":"./index.mjs"},"./lib/*.mjs":{"default":"./lib/*.mjs"},"./lib/*.js":{"default":"./lib/*.js"},"./lib/*":{"import":"./lib/*.mjs","require":"./lib/*.js"},"./pagination":{"import":"./pagination.mjs","require":"./pagination.js"},"./pagination.js":{"default":"./pagination.js"},"./pagination.mjs":{"default":"./pagination.mjs"},"./realtime/*.mjs":{"default":"./realtime/*.mjs"},"./realtime/*.js":{"default":"./realtime/*.js"},"./realtime/*":{"import":"./realtime/*.mjs","require":"./realtime/*.js"},"./resource":{"import":"./resource.mjs","require":"./resource.js"},"./resource.js":{"default":"./resource.js"},"./resource.mjs":{"default":"./resource.mjs"},"./resources/*.mjs":{"default":"./resources/*.mjs"},"./resources/*.js":{"default":"./resources/*.js"},"./resources/*":{"import":"./resources/*.mjs","require":"./resources/*.js"},"./resources":{"import":"./resources.mjs","require":"./resources.js"},"./resources.js":{"default":"./resources.js"},"./resources.mjs":{"default":"./resources.mjs"},"./streaming":{"import":"./streaming.mjs","require":"./streaming.js"},"./streaming.js":{"default":"./streaming.js"},"./streaming.mjs":{"default":"./streaming.mjs"},"./uploads":{"import":"./uploads.mjs","require":"./uploads.js"},"./uploads.js":{"default":"./uploads.js"},"./uploads.mjs":{"default":"./uploads.mjs"},"./version":{"import":"./version.mjs","require":"./version.js"},"./version.js":{"default":"./version.js"},"./version.mjs":{"default":"./version.mjs"}},"peerDependencies":{"ws":"^8.18.0","zod":"^3.25 || ^4.0"},"peerDependenciesMeta":{"ws":{"optional":true},"zod":{"optional":true}},"_lastModified":"2026-11-11T01:05:07.372Z"}
@@ -1 +1 @@
1
- {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-11-10T01:32:15.593Z"}
1
+ {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-11-11T01:04:54.122Z"}
@@ -388,7 +388,8 @@ class AIEmployee {
388
388
  if (this.from === "sub-agent") {
389
389
  delete config.configurable;
390
390
  }
391
- return agent.stream(input, this.withRunMetadata(config));
391
+ const runner = input instanceof import_langgraph.Command ? agent.graph : agent;
392
+ return runner.stream(input, this.withRunMetadata(config));
392
393
  }
393
394
  async agentInvoke(provider, context, config, state) {
394
395
  const { systemPrompt, tools, middleware } = context;
@@ -397,7 +398,8 @@ class AIEmployee {
397
398
  if (this.from === "sub-agent") {
398
399
  delete config.configurable;
399
400
  }
400
- return agent.invoke(input, this.withRunMetadata(config));
401
+ const runner = input instanceof import_langgraph.Command ? agent.graph : agent;
402
+ return runner.invoke(input, this.withRunMetadata(config));
401
403
  }
402
404
  async prepareChatStream({
403
405
  chatContext,
@@ -41,12 +41,13 @@ __export(plugin_exports, {
41
41
  });
42
42
  module.exports = __toCommonJS(plugin_exports);
43
43
  var import_server = require("@nocobase/server");
44
+ var import_ai = require("@nocobase/ai");
44
45
  var import_ai_manager = require("./manager/ai-manager");
45
46
  var import_ai_feature_manager = require("./manager/ai-feature-manager");
46
47
  var import_openai = require("./llm-providers/openai");
47
48
  var import_openai2 = require("./llm-providers/openai");
48
49
  var import_deepseek = require("./llm-providers/deepseek");
49
- var import_ai = __toESM(require("./resource/ai"));
50
+ var import_ai2 = __toESM(require("./resource/ai"));
50
51
  var import_llm = require("./workflow/nodes/llm");
51
52
  var import_aiConversations = __toESM(require("./resource/aiConversations"));
52
53
  var import_aiWorkflowTasks = __toESM(require("./resource/aiWorkflowTasks"));
@@ -132,6 +133,7 @@ class PluginAIServer extends import_server.Plugin {
132
133
  this.app.on("afterStart", async () => {
133
134
  await this.ai.skillsManager.init();
134
135
  await this.ai.employeeManager.init();
136
+ await new import_ai.MCPLoader(this.ai.mcpManager, { log: this.log }).load();
135
137
  await this.ai.mcpManager.init();
136
138
  });
137
139
  this.app.on("afterUpgrade", async () => {
@@ -206,7 +208,7 @@ class PluginAIServer extends import_server.Plugin {
206
208
  toolsManager.registerDynamicTools(this.ai.mcpManager.getMCPToolsProvider());
207
209
  }
208
210
  defineResources() {
209
- this.app.resourceManager.define(import_ai.default);
211
+ this.app.resourceManager.define(import_ai2.default);
210
212
  this.app.resourceManager.define(import_aiConversations.default);
211
213
  this.app.resourceManager.define(import_aiWorkflowTasks.default);
212
214
  this.app.resourceManager.define(import_aiTools.default);
@@ -30,22 +30,106 @@ __export(aiMcpClients_exports, {
30
30
  default: () => aiMcpClients_default
31
31
  });
32
32
  module.exports = __toCommonJS(aiMcpClients_exports);
33
+ var import_database = require("@nocobase/database");
34
+ const namespace = "@nocobase/plugin-ai";
35
+ const stdioMessage = "Stdio MCP servers can only be configured in storage/ai/mcp/servers.json.";
36
+ const protectedMessage = "This MCP server is managed by deployment configuration. Only its enabled state can be changed.";
37
+ const isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
38
+ async function protectMCPWrites(ctx, next) {
39
+ const { actionName, params } = ctx.action;
40
+ if (!["create", "update", "destroy", "firstOrCreate", "updateOrCreate"].includes(actionName)) {
41
+ return next();
42
+ }
43
+ const repository = ctx.db.getRepository("aiMcpClients");
44
+ if (actionName === "destroy") {
45
+ const matches = await repository.find({
46
+ filter: params.filter,
47
+ filterByTk: params.filterByTk,
48
+ fields: ["name", "transport", "fromFile"]
49
+ });
50
+ if (matches.some((record) => record.get("transport") === "stdio" || record.get("fromFile") === true)) {
51
+ ctx.throw(403, ctx.t(protectedMessage, { ns: namespace }));
52
+ }
53
+ return next();
54
+ }
55
+ const rawValues = params.values;
56
+ const rows = Array.isArray(rawValues) ? rawValues : [rawValues];
57
+ const sanitizedRows = [];
58
+ for (const row of rows) {
59
+ if (!isRecord(row)) {
60
+ ctx.throw(400, ctx.t("Invalid MCP configuration", { ns: namespace }));
61
+ }
62
+ const values = { ...row };
63
+ delete values.fromFile;
64
+ sanitizedRows.push(values);
65
+ }
66
+ params.values = Array.isArray(rawValues) ? sanitizedRows : sanitizedRows[0];
67
+ for (const values of sanitizedRows) {
68
+ let matches = [];
69
+ if (actionName === "update") {
70
+ matches = await repository.find({
71
+ filter: Array.isArray(rawValues) ? void 0 : params.filter,
72
+ filterByTk: Array.isArray(rawValues) ? values.name : params.filterByTk,
73
+ fields: ["name", "transport", "fromFile"]
74
+ });
75
+ } else if (actionName === "firstOrCreate" || actionName === "updateOrCreate") {
76
+ const match = await repository.findOne({ filter: import_database.Repository.valuesToFilter(values, params.filterKeys) });
77
+ matches = match ? [match] : [];
78
+ if (actionName === "firstOrCreate" && match) {
79
+ continue;
80
+ }
81
+ }
82
+ if (values.transport === "stdio") {
83
+ ctx.throw(403, ctx.t(stdioMessage, { ns: namespace }));
84
+ }
85
+ const enabledOnly = Object.keys(values).length === 1 && Object.hasOwn(values, "enabled");
86
+ if (!enabledOnly && matches.some((record) => record.get("transport") === "stdio" || record.get("fromFile") === true)) {
87
+ ctx.throw(403, ctx.t(protectedMessage, { ns: namespace }));
88
+ }
89
+ }
90
+ await next();
91
+ }
33
92
  const aiMcpClients = {
34
93
  name: "aiMcpClients",
94
+ middleware: protectMCPWrites,
35
95
  actions: {
36
96
  testConnection: async (ctx, next) => {
37
- const values = ctx.action.params.values;
38
- if (!values) {
97
+ const { filterByTk, values } = ctx.action.params;
98
+ let options = values;
99
+ if (filterByTk != null) {
100
+ if (typeof filterByTk !== "string" || !filterByTk) {
101
+ ctx.throw(403, ctx.t(stdioMessage, { ns: namespace }));
102
+ }
103
+ const record = await ctx.db.getRepository("aiMcpClients").findOne({ filterByTk });
104
+ if (!record) {
105
+ ctx.throw(404, ctx.t("MCP server not found", { ns: namespace }));
106
+ }
107
+ if (record.get("transport") === "stdio") {
108
+ options = record.toJSON();
109
+ if (!options.command) {
110
+ ctx.body = {
111
+ success: false,
112
+ error: ctx.t("Command is required for stdio transport", { ns: namespace })
113
+ };
114
+ await next();
115
+ return;
116
+ }
117
+ } else if ((options == null ? void 0 : options.transport) === "stdio") {
118
+ ctx.throw(403, ctx.t(stdioMessage, { ns: namespace }));
119
+ }
120
+ } else if ((options == null ? void 0 : options.transport) === "stdio") {
121
+ ctx.throw(403, ctx.t(stdioMessage, { ns: namespace }));
122
+ }
123
+ if (!options) {
39
124
  ctx.body = {
40
125
  success: false,
41
- error: "No configuration provided"
126
+ error: ctx.t("No configuration provided", { ns: namespace })
42
127
  };
43
128
  await next();
44
129
  return;
45
130
  }
46
131
  const plugin = ctx.app.pm.get("ai");
47
- const result = await plugin.ai.mcpManager.testConnection(values, ctx);
48
- ctx.body = result;
132
+ ctx.body = await plugin.ai.mcpManager.testConnection(options, ctx);
49
133
  await next();
50
134
  },
51
135
  rebuildClient: async (ctx, next) => {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Create AI employees with diverse skills to collaborate with humans, build systems, and handle business operations.",
7
7
  "description.ru-RU": "Поддержка интеграции с AI-сервисами: предоставляются AI-узлы для рабочих процессов, расширяя возможности бизнес-обработки.",
8
8
  "description.zh-CN": "创建各种技能的 AI 员工,与人类协同,搭建系统,处理业务。",
9
- "version": "2.3.0-beta.22",
9
+ "version": "2.3.0-beta.23",
10
10
  "main": "dist/server/index.js",
11
11
  "homepage": "https://docs.nocobase.com/handbook/action-ai",
12
12
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/action-ai",
@@ -66,5 +66,5 @@
66
66
  "keywords": [
67
67
  "AI"
68
68
  ],
69
- "gitHead": "b64f83147d5d2149878d961d294622c4137efe21"
69
+ "gitHead": "53ad17b1117bae431d21cddaac7af7da484967fc"
70
70
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- "use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["264"],{2851:function(e,t,n){n.r(t),n.d(t,{MCPSettingsPage:function(){return ei},createMCPClient:function(){return V},createMCPRequestVariableNode:function(){return J},deleteMCPClient:function(){return X},deleteMCPClients:function(){return _},getMCPToolsByServer:function(){return U},listMCPClients:function(){return z},listMCPTools:function(){return $},rebuildMCPClient:function(){return W},sanitizeMCPValues:function(){return D},testMCPConnection:function(){return L},toMCPFormValues:function(){return N},updateMCPClient:function(){return H},updateMCPClientEnabled:function(){return K},updateMCPToolPermission:function(){return G}});var r=n(9155),a=n.n(r),l=n(2059),i=n(7375),u=n(5477),o=n(3485),c=n(7694),s=n(9488),f=n(9312),m=n(8666);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,a,l,i){try{var u=e[l](i),o=u.value}catch(e){n(e);return}u.done?t(o):Promise.resolve(o).then(r,a)}function b(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function i(e){p(l,r,a,i,u,"next",e)}function u(e){p(l,r,a,i,u,"throw",e)}i(void 0)})}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function v(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function E(e,t){if(null==e)return{};var n,r,a,l={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,n=Reflect.ownKeys(Object(e));a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}if(l=function(e,t){if(null==e)return{};var n,r,a={},l=Object.getOwnPropertyNames(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,t),Object.getOwnPropertySymbols)for(a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l=[],i=!0,u=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){u=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(u)throw r}}return l}}(e,t)||S(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}function x(e,t){var n,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:o(0)}),u(i,"throw",{value:o(1)}),u(i,"return",{value:o(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function o(u){return function(o){var c=[u,o];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,r=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){l=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){l.label=c[1];break}if(6===c[0]&&l.label<a[1]){l.label=a[1],a=c;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(c);break}a[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function P(){var e,t,n=(e=["\n flex: 1;\n min-height: 0;\n display: flex;\n flex-direction: column;\n\n .ant-spin-nested-loading,\n .ant-spin-container,\n .ant-table,\n .ant-table-container {\n min-height: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n\n .ant-table-content {\n flex: 1;\n min-height: 0;\n }\n\n .ant-table-body {\n flex: 1;\n min-height: 0;\n }\n\n .ant-table-thead > tr > th {\n white-space: nowrap;\n }\n\n .ant-pagination {\n flex: 0 0 auto;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return P=function(){return n},n}var O=[{label:"Stdio",value:"stdio"},{label:"HTTP (Streamable)",value:"http"},{label:"HTTP + SSE (Legacy)",value:"sse"}],A={stdio:"blue",http:"green",sse:"gold"},F=(0,u.css)(P()),k=function(e){return null!==e&&(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)},j=function(e){var t,n;if(k(e))return null!=(t=null==(n=e.data)?void 0:n.data)?t:e.data},T=function(e){if(k(e)){var t,n=null==(t=e.data)?void 0:t.count;return"number"==typeof n?n:void 0}},M=function(e,t,n,r){return b(function(){var a;return x(this,function(l){if("function"!=typeof(a=e.resource(t)[n]))throw Error("Missing resource action: ".concat(t,".").concat(n));return[2,a(r)]})})()},I=function(e){var t;return k(e)&&"string"==typeof e.name&&("stdio"===(t=e.transport)||"http"===t||"sse"===t)},q=function(e){return k(e)&&"string"==typeof e.name&&"string"==typeof e.title&&"string"==typeof e.serverName},R=function(e){return Object.entries(e||{}).map(function(e){var t=C(e,2),n=t[0],r=t[1];return{name:n,value:null==r?"":String(r)}})},B=function(e){return k(e)?Object.entries(e).reduce(function(e,t){var n=C(t,2),r=n[0],a=n[1];return r&&(e[r]=null==a?"":String(a)),e},{}):(Array.isArray(e)?e:[]).reduce(function(e,t){return(null==t?void 0:t.name)&&(e[t.name]=t.value||""),e},{})},D=function(e){var t=e.transport,n=v(g({},e),{useUserContext:"stdio"!==t&&!0===e.useUserContext,args:"string"==typeof e.args?e.args.split(" ").map(function(e){return e.trim()}).filter(Boolean):Array.isArray(e.args)?e.args:[],env:B(e.env),headers:B(e.headers),restart:k(e.restart)?e.restart:{}});return"stdio"===t?v(g({},n),{url:null,headers:{}}):v(g({},n),{command:null,args:[],env:{}})},N=function(e){return v(g({},e),{args:Array.isArray(e.args)?e.args.join(" "):"",env:R(e.env),headers:R(e.headers),restart:k(e.restart)?e.restart:{}})},U=function(e,t){var n=null==e?void 0:e[t];return Array.isArray(n)?n.filter(q):[]};function z(e){return b(function(){var t,n;return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","list")];case 1:return[2,{data:Array.isArray(n=j(t=r.sent()))?n.filter(I):[],total:T(t)}]}})})()}function L(e,t){return b(function(){var n;return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","testConnection",{values:D(t)})];case 1:var a;return[2,k(a=n=j(r.sent()))&&"boolean"==typeof a.success?n:null]}})})()}function V(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","create",{values:D(t)})];case 1:return n.sent(),[2]}})})()}function H(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","update",{values:D(t),filterByTk:n})];case 1:return r.sent(),[2]}})})()}function X(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","destroy",{filterByTk:t})];case 1:return n.sent(),[2]}})})()}function _(e,t){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,M(e,"aiMcpClients","destroy",{filterByTk:t})];case 1:return n.sent(),[2]}})})()}function K(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","update",{filterByTk:t,values:{enabled:n}})];case 1:return r.sent(),[2]}})})()}function W(e){return b(function(){return x(this,function(t){switch(t.label){case 0:return[4,M(e,"aiMcpClients","rebuildClient")];case 1:return t.sent(),[2]}})})()}function $(e,t){return b(function(){var n;return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","listTools")];case 1:return[2,k(n=j(r.sent()))?U(n,t):[]]}})})()}function G(e,t,n){return b(function(){return x(this,function(r){switch(r.label){case 0:return[4,M(e,"aiMcpClients","updateToolPermission",{values:{toolName:t,permission:n}})];case 1:return r.sent(),[2]}})})()}var J=function(e){return{name:"request",title:e("NocoBase request"),type:"object",paths:["request"],children:[{name:"headers",title:"headers",type:"object",paths:["request","headers"],children:[{name:"x-app",title:"X-App",type:"string",paths:["request","headers","x-app"]},{name:"x-locale",title:"X-Locale",type:"string",paths:["request","headers","x-locale"]},{name:"x-hostname",title:"X-Hostname",type:"string",paths:["request","headers","x-hostname"]},{name:"x-timezone",title:"X-Timezone",type:"string",paths:["request","headers","x-timezone"]},{name:"x-role",title:"X-Role",type:"string",paths:["request","headers","x-role"]},{name:"x-authenticator",title:"X-Authenticator",type:"string",paths:["request","headers","x-authenticator"]}]},{name:"token",title:"Token",type:"string",paths:["request","token"]}]}},Q=function(e,t){var n,r=(null==(n=e.paths)?void 0:n.length)?[t].concat(w(e.paths.slice(1))):[t];return v(g({},e),{name:1===r.length?t:e.name,paths:r,children:function(e){if(e)return"function"==typeof e?function(){return b(function(){return x(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return[2,n.sent().map(function(e){return Q(e,t)})]}})})()}:e.map(function(e){return Q(e,t)})}(e.children)})},Y=function(e){var t=(0,c.useFlowContext)(),n=(0,s.kj)();return(0,r.useMemo)(function(){if(!e)return[];var r,a=null==(r=t.getPropertyMetaTree)?void 0:r.call(t).find(function(e){return"user"===e.name});return[a?Q(a,"$user"):null,J(n)].filter(function(e){return!!e})},[e,t,n])},Z=function(e){var t=e.variableScope,n=E(e,["variableScope"]),r=l.Form.useFormInstance(),i=l.Form.useWatch("useUserContext",r),u=Y("user"===(void 0===t?"env":t)&&!0===i);return a().createElement(o.VariableInput,v(g({},n),{namespaces:["$env"],extraNodes:u}))},ee=function(e){var t=e.tooltip,n=E(e,["tooltip"]),i=l.Form.useFormInstance(),u="stdio"===l.Form.useWatch("transport",i);(0,r.useEffect)(function(){u&&i.getFieldValue("useUserContext")&&i.setFieldValue("useUserContext",!1)},[u,i]);var o=a().createElement(l.Checkbox,v(g({},n),{disabled:u||n.disabled}));return t?a().createElement(l.Tooltip,{title:t},o):o},et=function(e){var t=e.value,n=e.onChange,r=e.addLabel,u=e.variableScope,o=void 0===u?"env":u,c=(0,s.kj)(),f=Array.isArray(t)?t:R(t),m=function(e,t,r){var a=w(f);a[e]=v(g({},a[e]),h({},t,r)),null==n||n(a)};return a().createElement(l.Flex,{vertical:!0,gap:"small"},f.map(function(e,t){return a().createElement(l.Flex,{key:t,gap:"small",align:"baseline"},a().createElement(l.Input,{placeholder:c("Name"),value:e.name,onChange:function(e){return m(t,"name",e.target.value)}}),a().createElement(Z,{variableScope:o,value:e.value,onChange:function(e){return m(t,"value",e)}}),a().createElement(l.Button,{"aria-label":c("Delete"),type:"text",icon:a().createElement(i.DeleteOutlined,null),onClick:function(){return null==n?void 0:n(f.filter(function(e,n){return n!==t}))}}))}),a().createElement(l.Button,{type:"dashed",icon:a().createElement(i.PlusOutlined,null),onClick:function(){return null==n?void 0:n(w(f).concat([{name:"",value:""}]))}},r))},en=function(e){var t=e.editing,n=e.testResult,r=e.testing,i=(0,s.kj)(),u=l.Form.useFormInstance(),o=l.Form.useWatch("transport",u);return a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:"name",label:i("Name"),rules:[{required:!0}]},a().createElement(l.Input,{disabled:t})),a().createElement(l.Form.Item,{name:"title",label:i("Title"),rules:[{required:!0}]},a().createElement(l.Input,null)),a().createElement(l.Form.Item,{name:"description",label:i("Description")},a().createElement(l.Input.TextArea,{autoSize:{minRows:2,maxRows:4}})),a().createElement(l.Form.Item,{name:"transport",label:i("Transport"),rules:[{required:!0}]},a().createElement(l.Select,{options:O.map(function(e){return v(g({},e),{label:i(e.label)})})})),a().createElement(l.Form.Item,{name:"useUserContext",label:i("Depends on current user"),valuePropName:"checked"},a().createElement(ee,{tooltip:i("When enabled, URL and headers can use current user variables and NocoBase request variables. Stdio transport is not supported.")})),"stdio"===o?a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:"command",label:i("Command"),rules:[{required:!0}]},a().createElement(Z,{placeholder:i("For example: npx, uvx, node")})),a().createElement(l.Form.Item,{name:"args",label:i("Arguments")},a().createElement(Z,{placeholder:i("Space-separated args, e.g.: -u --flag value")})),a().createElement(l.Form.Item,{name:"env",label:i("Environment variables")},a().createElement(et,{addLabel:i("Add variable")}))):null,"http"===o||"sse"===o?a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:"url",label:i("URL"),rules:[{required:!0}]},a().createElement(Z,{variableScope:"user",placeholder:i("For example: https://example.com/mcp")})),a().createElement(l.Form.Item,{name:"headers",label:i("Headers")},a().createElement(et,{variableScope:"user",addLabel:i("Add request header")}))):null,a().createElement(er,{result:n,loading:r}))},er=function(e){var t,n=e.result,r=e.loading,u=(0,s.kj)();return r?a().createElement(l.Flex,{justify:"center"},a().createElement(l.Spin,{tip:u("Testing connection...")})):n?n.success?a().createElement(l.Alert,{type:"success",showIcon:!0,icon:a().createElement(i.CheckCircleOutlined,null),message:u("Connection Successful"),description:a().createElement(l.Flex,{vertical:!0,gap:"small"},a().createElement("span",null,u("Successfully connected to MCP server")),a().createElement("span",null,u("Tools found"),": ",n.toolsCount),(null==(t=n.tools)?void 0:t.length)?a().createElement(l.Space,{wrap:!0},n.tools.map(function(e){return a().createElement(l.Tag,{key:e},e)}),n.toolsTruncated?a().createElement("span",null,"..."):null):null)}):a().createElement(l.Alert,{type:"error",showIcon:!0,icon:a().createElement(i.CloseCircleOutlined,null),message:u("Connection Failed"),description:a().createElement(l.Flex,{vertical:!0,gap:"small"},a().createElement("span",null,n.error||u("Failed to connect to MCP server")),n.details?a().createElement(l.Typography.Text,{code:!0},n.details):null)}):null},ea=function(e){var t=e.record,n=e.rebuilding,i=(0,o.useApp)(),u=(0,s.kj)(),c=l.App.useApp().message,f=C((0,r.useState)([]),2),m=f[0],d=f[1],p=C((0,r.useState)(!1),2),h=p[0],E=p[1],w=C((0,r.useState)(null),2),S=w[0],P=w[1],O=(0,r.useRef)(c),A=(0,r.useRef)(u);return(O.current=c,A.current=u,(0,r.useEffect)(function(){var e=!1;return b(function(){var n,r;return x(this,function(a){switch(a.label){case 0:E(!0),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,$(i.apiClient,t.name)];case 2:return n=a.sent(),e||d(n),[3,5];case 3:return r=a.sent(),e||(O.current.error(y(r,Error)?r.message:A.current("Failed to load MCP tools")),d([])),[3,5];case 4:return e||E(!1),[7];case 5:return[2]}})})().catch(function(e){console.error(e)}),function(){e=!0}},[i.apiClient,t.name]),h)?a().createElement(l.Flex,{justify:"center"},a().createElement(l.Spin,null)):m.length?a().createElement(l.List,{itemLayout:"vertical",dataSource:m,pagination:{pageSize:10,hideOnSinglePage:!1,size:"small",showTotal:function(e){return u("Total {{count}} items",{count:e})}},renderItem:function(e){return a().createElement(l.List.Item,{key:e.name,extra:a().createElement(l.Space,null,a().createElement(l.Typography.Text,{type:"secondary"},u("Permission")),a().createElement(l.Segmented,{size:"small",options:[{label:u("Ask"),value:"ASK"},{label:u("Allow"),value:"ALLOW"}],value:e.permission,disabled:n||S===e.name,onChange:function(t){var n;return n=e.name,b(function(){var e,r;return x(this,function(a){switch(a.label){case 0:e=m,P(n),d(function(e){return e.map(function(e){return e.name===n?v(g({},e),{permission:t}):e})}),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,G(i.apiClient,n,t)];case 2:return a.sent(),[3,5];case 3:return r=a.sent(),d(e),O.current.error(y(r,Error)?r.message:A.current("Failed to update tool permission")),[3,5];case 4:return P(null),[7];case 5:return[2]}})})()}}))},a().createElement("div",null,e.title),e.description?a().createElement(l.Typography.Paragraph,{type:"secondary",ellipsis:{rows:3,expandable:"collapsible"}},e.description):null)}}):a().createElement(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,description:u("No data")})},el=function(e){var t=e.record,n=e.rebuilding,i=e.onUpdated,u=(0,o.useApp)(),c=C((0,r.useState)(!1),2),s=c[0],f=c[1];return a().createElement(l.Switch,{size:"small",checked:!1!==t.enabled,loading:s,disabled:n,onChange:function(e){return b(function(){return x(this,function(n){switch(n.label){case 0:f(!0),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,K(u.apiClient,t.name,e)];case 2:return n.sent(),[4,W(u.apiClient)];case 3:return n.sent(),[4,i()];case 4:return n.sent(),[3,6];case 5:return f(!1),[7];case 6:return[2]}})})()}})},ei=function(){var e=(0,o.useApp)(),t=(0,c.useFlowContext)(),n=(0,s.kj)(),u=l.App.useApp(),m=u.message;u.modal;var d=l.theme.useToken().token,p=C((0,r.useState)([]),2),h=p[0],y=p[1],g=C((0,r.useState)(!1),2),v=g[0],E=g[1],w=C((0,r.useState)([]),2),S=w[0],P=w[1],k=C((0,r.useState)(!1),2),j=k[0],T=k[1],M=(0,r.useRef)(Promise.resolve()),I=(0,r.useRef)(0),q=(0,r.useMemo)(function(){return{color:d.colorPrimary,marginInline:-d.paddingSM,paddingBlockEnd:d.paddingSM,paddingBlockStart:d.paddingSM+d.paddingXS,paddingInlineEnd:d.paddingXS+d.paddingSM,paddingInlineStart:d.paddingSM}},[d.colorPrimary,d.paddingSM,d.paddingXS]),R=(0,r.useCallback)(function(){return b(function(){var t;return x(this,function(n){return I.current+=1,T(!0),t=M.current.catch(function(){}).then(function(){return b(function(){return x(this,function(t){switch(t.label){case 0:return[4,W(e.apiClient)];case 1:return t.sent(),[2]}})})()}),M.current=t.finally(function(){I.current-=1,0===I.current&&T(!1)}),[2,t]})})()},[e.apiClient]),B=(0,r.useCallback)(function(){return b(function(){return x(this,function(t){switch(t.label){case 0:E(!0),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,z(e.apiClient)];case 2:return y(t.sent().data),[3,4];case 3:return E(!1),[7];case 4:return[2]}})})()},[e.apiClient]);(0,r.useEffect)(function(){B().catch(function(e){console.error(e),E(!1)})},[B]);var D=function(e){t.viewer.open({type:"drawer",width:f.o,closable:!0,content:a().createElement(eu,{record:e,rebuilding:j,rebuildClient:R,onSubmitted:B})})},N=[{title:n("Name"),dataIndex:"name"},{title:n("Title"),dataIndex:"title"},{title:n("Transport"),dataIndex:"transport",render:function(e){var t,r=(null==(t=O.find(function(t){return t.value===e}))?void 0:t.label)||e;return a().createElement(l.Tag,{color:A[e]},n(r))}},{title:n("Enabled"),dataIndex:"enabled",render:function(e,t){return a().createElement(el,{record:t,rebuilding:j,onUpdated:B})}},{title:n("Actions"),key:"actions",render:function(r,i){return a().createElement(l.Space,{size:d.marginXS},a().createElement("a",{style:q,onClick:function(){t.viewer.open({type:"drawer",width:f.p,closable:!0,content:a().createElement(eo,{record:i,rebuilding:j})})}},n("View")),a().createElement("a",{style:q,onClick:function(){return D(i)}},n("Edit")),a().createElement(l.Popconfirm,{title:n("Delete record"),description:n("Are you sure you want to delete it?"),onConfirm:function(){return b(function(){return x(this,function(t){switch(t.label){case 0:return[4,X(e.apiClient,i.name)];case 1:return t.sent(),[4,R()];case 2:return t.sent(),m.success(n("Saved successfully")),[4,B()];case 3:return t.sent(),[2]}})})()}},a().createElement("a",{style:q},n("Delete"))))}}];return a().createElement(l.Card,{style:{display:"flex",flexDirection:"column",minHeight:"100%"},styles:{body:{display:"flex",flex:1,flexDirection:"column",minHeight:0}}},a().createElement(l.Flex,{vertical:!0,gap:"middle",style:{flex:1,minHeight:0}},a().createElement(l.Flex,{justify:"end",wrap:"wrap",gap:"middle"},a().createElement(l.Space,null,a().createElement(l.Button,{icon:a().createElement(i.ReloadOutlined,null),onClick:function(){return B()}},n("Refresh")),a().createElement(l.Popconfirm,{title:n("Delete record"),description:n("Are you sure you want to delete it?"),disabled:!S.length||j,onConfirm:function(){return b(function(){var t;return x(this,function(r){switch(r.label){case 0:if(!(t=S.filter(function(e){return"string"==typeof e})).length)return[2];return[4,_(e.apiClient,t)];case 1:return r.sent(),[4,R()];case 2:return r.sent(),P([]),m.success(n("Saved successfully")),[4,B()];case 3:return r.sent(),[2]}})})()}},a().createElement(l.Button,{icon:a().createElement(i.DeleteOutlined,null),disabled:!S.length||j},n("Delete"))),a().createElement(l.Button,{type:"primary",icon:a().createElement(i.PlusOutlined,null),onClick:function(){t.viewer.open({type:"drawer",width:f.o,closable:!0,content:a().createElement(eu,{rebuilding:j,rebuildClient:R,onSubmitted:B})})},disabled:j},n("Add new")))),a().createElement("div",{style:{display:"flex",flex:1,flexDirection:"column",minHeight:0}},a().createElement(o.Table,{rowKey:"name",loading:v,columns:N,dataSource:h,className:F,rowSelection:{selectedRowKeys:S,onChange:P},pagination:{defaultPageSize:20,showTotal:function(e){return n("Total {{count}} items",{count:e})}},scroll:{x:"max-content",y:"100%"}}))))},eu=function(e){var t=e.record,n=e.rebuilding,i=e.rebuildClient,u=e.onSubmitted,f=(0,o.useApp)(),d=(0,c.useFlowContext)(),p=(0,s.kj)(),h=l.App.useApp(),g=h.message,v=h.modal,E=C(l.Form.useForm(),1)[0],w=C((0,r.useState)(!1),2),S=w[0],P=w[1],O=C((0,r.useState)(!1),2),A=O[0],F=O[1],k=C((0,r.useState)(null),2),j=k[0],T=k[1],M=C((0,r.useState)(!1),2),I=M[0],q=M[1],R=(0,r.useMemo)(function(){return t?N(t):{name:"",title:"",enabled:!0,transport:"stdio",useUserContext:!1,command:"",url:"",args:"",env:[],headers:[],restart:{}}},[t]),B=d.view,U=B.Header,z=B.Footer;(0,r.useEffect)(function(){E.setFieldsValue(R)},[E,R]);var X=(0,m.C)({view:d.view,form:E,initialValues:R,dirty:I,title:p("Unsaved changes"),content:p("Are you sure you don't want to save?")}),_=function(){return b(function(){var e,t,n;return x(this,function(r){switch(r.label){case 0:e=E.getFieldsValue(!0),F(!0),T(null),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,L(f.apiClient,e)];case 2:return T(t=r.sent()),[2,!!(null==t?void 0:t.success)];case 3:return T({success:!1,error:y(n=r.sent(),Error)?n.message:p("An error occurred while testing the connection")}),[2,!1];case 4:return F(!1),[7];case 5:return[2]}})})()};return a().createElement(a().Fragment,null,a().createElement(U,{title:t?p("Edit record"):p("Add new")}),a().createElement(l.Spin,{spinning:S},a().createElement(l.Form,{form:E,layout:"vertical",onFinish:function(e){return b(function(){return x(this,function(n){switch(n.label){case 0:P(!0),n.label=1;case 1:return n.trys.push([1,,12,13]),[4,_()];case 2:if(n.sent())return[3,4];if(!0!==D(e).useUserContext)return[2];return[4,v.confirm({title:p("Connection test failed"),content:p("The MCP server uses current user variables and the connection test failed. Do you want to save it anyway?"),okText:p("Save anyway"),cancelText:p("Cancel")})];case 3:if(!n.sent())return[2];n.label=4;case 4:if(!t)return[3,6];return[4,H(f.apiClient,e,t.name)];case 5:return n.sent(),[3,8];case 6:return[4,V(f.apiClient,e)];case 7:n.sent(),n.label=8;case 8:return[4,i()];case 9:return n.sent(),g.success(p("Saved successfully")),[4,u()];case 10:return n.sent(),[4,d.view.close(void 0,!0)];case 11:return n.sent(),[3,13];case 12:return P(!1),[7];case 13:return[2]}})})()},onValuesChange:function(){return q(!0)}},a().createElement(en,{editing:!!t,testResult:j,testing:A}))),a().createElement(z,null,a().createElement(l.Flex,{justify:"end",gap:"small"},a().createElement(l.Space,null,a().createElement(l.Button,{loading:A,onClick:function(){return _()}},p("Test flight")),a().createElement(l.Button,{onClick:X},p("Cancel")),a().createElement(l.Button,{type:"primary",loading:S||A||n,onClick:function(){return E.submit()}},p("Submit"))))))},eo=function(e){var t=e.record,n=e.rebuilding,r=(0,c.useFlowContext)(),l=(0,s.kj)(),i=r.view.Header;return a().createElement(a().Fragment,null,a().createElement(i,{title:l("MCP tools")}),a().createElement(ea,{record:t,rebuilding:n}))};t.default=ei}}]);