@nocobase/server 2.1.0-alpha.20 → 2.1.0-alpha.21
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/lib/gateway/index.js +2 -2
- package/lib/plugin.js +4 -0
- package/package.json +17 -17
package/lib/gateway/index.js
CHANGED
|
@@ -345,10 +345,10 @@ const _Gateway = class _Gateway extends import_events.EventEmitter {
|
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
req.url = req.url.substring(APP_PUBLIC_PATH.length
|
|
348
|
+
req.url = req.url.substring(APP_PUBLIC_PATH.length + "storage".length);
|
|
349
349
|
await compress(req, res);
|
|
350
350
|
return (0, import_serve_handler.default)(req, res, {
|
|
351
|
-
public: (0,
|
|
351
|
+
public: (0, import_utils.resolveStorageRoot)(),
|
|
352
352
|
directoryListing: false
|
|
353
353
|
});
|
|
354
354
|
}
|
package/lib/plugin.js
CHANGED
|
@@ -206,6 +206,7 @@ const _Plugin = class _Plugin {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
const toolsLoader = new import_ai.ToolsLoader(this.ai, {
|
|
209
|
+
pluginName: this.getName(),
|
|
209
210
|
scan: {
|
|
210
211
|
basePath,
|
|
211
212
|
pattern: ["**/tools/**/*.ts", "**/tools/**/*.js", "!**/tools/**/*.d.ts", "**/tools/**/*/description.md"]
|
|
@@ -214,6 +215,7 @@ const _Plugin = class _Plugin {
|
|
|
214
215
|
});
|
|
215
216
|
await toolsLoader.load();
|
|
216
217
|
const mcpLoader = new import_ai.MCPLoader(this.ai, {
|
|
218
|
+
pluginName: this.getName(),
|
|
217
219
|
scan: {
|
|
218
220
|
basePath,
|
|
219
221
|
pattern: ["mcp/*.ts", "mcp/*.js", "!mcp/*.d.ts"]
|
|
@@ -222,11 +224,13 @@ const _Plugin = class _Plugin {
|
|
|
222
224
|
});
|
|
223
225
|
await mcpLoader.load();
|
|
224
226
|
const skillsLoader = new import_ai.SkillsLoader(this.ai, {
|
|
227
|
+
pluginName: this.getName(),
|
|
225
228
|
scan: { basePath, pattern: ["**/skills/**/SKILLS.md"] },
|
|
226
229
|
log: this.log
|
|
227
230
|
});
|
|
228
231
|
await skillsLoader.load();
|
|
229
232
|
const employeeLoader = new import_ai.AIEmployeeLoader(this.ai, {
|
|
233
|
+
pluginName: this.getName(),
|
|
230
234
|
scan: {
|
|
231
235
|
basePath,
|
|
232
236
|
pattern: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.21",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "2.1.0-alpha.
|
|
14
|
-
"@nocobase/actions": "2.1.0-alpha.
|
|
15
|
-
"@nocobase/ai": "2.1.0-alpha.
|
|
16
|
-
"@nocobase/auth": "2.1.0-alpha.
|
|
17
|
-
"@nocobase/cache": "2.1.0-alpha.
|
|
18
|
-
"@nocobase/data-source-manager": "2.1.0-alpha.
|
|
19
|
-
"@nocobase/database": "2.1.0-alpha.
|
|
20
|
-
"@nocobase/evaluators": "2.1.0-alpha.
|
|
21
|
-
"@nocobase/lock-manager": "2.1.0-alpha.
|
|
22
|
-
"@nocobase/logger": "2.1.0-alpha.
|
|
23
|
-
"@nocobase/resourcer": "2.1.0-alpha.
|
|
24
|
-
"@nocobase/sdk": "2.1.0-alpha.
|
|
25
|
-
"@nocobase/snowflake-id": "2.1.0-alpha.
|
|
26
|
-
"@nocobase/telemetry": "2.1.0-alpha.
|
|
27
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
13
|
+
"@nocobase/acl": "2.1.0-alpha.21",
|
|
14
|
+
"@nocobase/actions": "2.1.0-alpha.21",
|
|
15
|
+
"@nocobase/ai": "2.1.0-alpha.21",
|
|
16
|
+
"@nocobase/auth": "2.1.0-alpha.21",
|
|
17
|
+
"@nocobase/cache": "2.1.0-alpha.21",
|
|
18
|
+
"@nocobase/data-source-manager": "2.1.0-alpha.21",
|
|
19
|
+
"@nocobase/database": "2.1.0-alpha.21",
|
|
20
|
+
"@nocobase/evaluators": "2.1.0-alpha.21",
|
|
21
|
+
"@nocobase/lock-manager": "2.1.0-alpha.21",
|
|
22
|
+
"@nocobase/logger": "2.1.0-alpha.21",
|
|
23
|
+
"@nocobase/resourcer": "2.1.0-alpha.21",
|
|
24
|
+
"@nocobase/sdk": "2.1.0-alpha.21",
|
|
25
|
+
"@nocobase/snowflake-id": "2.1.0-alpha.21",
|
|
26
|
+
"@nocobase/telemetry": "2.1.0-alpha.21",
|
|
27
|
+
"@nocobase/utils": "2.1.0-alpha.21",
|
|
28
28
|
"@types/decompress": "4.2.7",
|
|
29
29
|
"@types/ini": "^1.3.31",
|
|
30
30
|
"@types/koa-send": "^4.1.3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@types/serve-handler": "^6.1.1",
|
|
62
62
|
"@types/ws": "^8.5.5"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b4c2b469f321ecaec7863a8ae371a02fe6a35aa2"
|
|
65
65
|
}
|