@nocobase/server 2.4.0-alpha.17 → 2.4.0-alpha.19
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/main-data-source.js +11 -7
- package/lib/plugin.js +0 -9
- package/package.json +17 -17
package/lib/main-data-source.js
CHANGED
|
@@ -116,12 +116,10 @@ const _MainDataSource = class _MainDataSource extends import_data_source_manager
|
|
|
116
116
|
...filter
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const collections = loadedCollections.filter(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
);
|
|
119
|
+
const collections = loadedCollections.filter((collection) => {
|
|
120
|
+
var _a;
|
|
121
|
+
return ((_a = collection.options) == null ? void 0 : _a.from) !== "db2cm";
|
|
122
|
+
});
|
|
125
123
|
const loadedData = {};
|
|
126
124
|
for (const collection of collections) {
|
|
127
125
|
const c = db.getCollection(collection.name);
|
|
@@ -157,7 +155,13 @@ const _MainDataSource = class _MainDataSource extends import_data_source_manager
|
|
|
157
155
|
} catch (err) {
|
|
158
156
|
ctx.log.error(err);
|
|
159
157
|
}
|
|
160
|
-
const toLoadCollections =
|
|
158
|
+
const toLoadCollections = collections.flatMap((collection) => {
|
|
159
|
+
const loaded = loadedCollections[collection.tableName];
|
|
160
|
+
return this.mergeWithLoadedCollections(
|
|
161
|
+
[collection],
|
|
162
|
+
(loaded == null ? void 0 : loaded.from) === "dbsync" ? { [collection.name]: loaded } : loadedCollections
|
|
163
|
+
);
|
|
164
|
+
});
|
|
161
165
|
const currentSchema = process.env.COLLECTION_MANAGER_SCHEMA || db.options.schema || "public";
|
|
162
166
|
for (const values of toLoadCollections) {
|
|
163
167
|
if (values.schema === currentSchema) {
|
package/lib/plugin.js
CHANGED
|
@@ -214,15 +214,6 @@ const _Plugin = class _Plugin {
|
|
|
214
214
|
log: this.log
|
|
215
215
|
});
|
|
216
216
|
await toolsLoader.load();
|
|
217
|
-
const mcpLoader = new import_ai.MCPLoader(this.ai, {
|
|
218
|
-
pluginName: this.getName(),
|
|
219
|
-
scan: {
|
|
220
|
-
basePath,
|
|
221
|
-
pattern: ["mcp/*.ts", "mcp/*.js", "!mcp/*.d.ts"]
|
|
222
|
-
},
|
|
223
|
-
log: this.log
|
|
224
|
-
});
|
|
225
|
-
await mcpLoader.load();
|
|
226
217
|
const skillsLoader = new import_ai.SkillsLoader(this.ai, {
|
|
227
218
|
pluginName: this.getName(),
|
|
228
219
|
scan: { basePath, pattern: ["**/skills/**/SKILLS.md"] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.4.0-alpha.
|
|
3
|
+
"version": "2.4.0-alpha.19",
|
|
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.4.0-alpha.
|
|
14
|
-
"@nocobase/actions": "2.4.0-alpha.
|
|
15
|
-
"@nocobase/ai": "2.4.0-alpha.
|
|
16
|
-
"@nocobase/auth": "2.4.0-alpha.
|
|
17
|
-
"@nocobase/cache": "2.4.0-alpha.
|
|
18
|
-
"@nocobase/data-source-manager": "2.4.0-alpha.
|
|
19
|
-
"@nocobase/database": "2.4.0-alpha.
|
|
20
|
-
"@nocobase/evaluators": "2.4.0-alpha.
|
|
21
|
-
"@nocobase/lock-manager": "2.4.0-alpha.
|
|
22
|
-
"@nocobase/logger": "2.4.0-alpha.
|
|
23
|
-
"@nocobase/resourcer": "2.4.0-alpha.
|
|
24
|
-
"@nocobase/sdk": "2.4.0-alpha.
|
|
25
|
-
"@nocobase/snowflake-id": "2.4.0-alpha.
|
|
26
|
-
"@nocobase/telemetry": "2.4.0-alpha.
|
|
27
|
-
"@nocobase/utils": "2.4.0-alpha.
|
|
13
|
+
"@nocobase/acl": "2.4.0-alpha.19",
|
|
14
|
+
"@nocobase/actions": "2.4.0-alpha.19",
|
|
15
|
+
"@nocobase/ai": "2.4.0-alpha.19",
|
|
16
|
+
"@nocobase/auth": "2.4.0-alpha.19",
|
|
17
|
+
"@nocobase/cache": "2.4.0-alpha.19",
|
|
18
|
+
"@nocobase/data-source-manager": "2.4.0-alpha.19",
|
|
19
|
+
"@nocobase/database": "2.4.0-alpha.19",
|
|
20
|
+
"@nocobase/evaluators": "2.4.0-alpha.19",
|
|
21
|
+
"@nocobase/lock-manager": "2.4.0-alpha.19",
|
|
22
|
+
"@nocobase/logger": "2.4.0-alpha.19",
|
|
23
|
+
"@nocobase/resourcer": "2.4.0-alpha.19",
|
|
24
|
+
"@nocobase/sdk": "2.4.0-alpha.19",
|
|
25
|
+
"@nocobase/snowflake-id": "2.4.0-alpha.19",
|
|
26
|
+
"@nocobase/telemetry": "2.4.0-alpha.19",
|
|
27
|
+
"@nocobase/utils": "2.4.0-alpha.19",
|
|
28
28
|
"@types/ini": "^1.3.31",
|
|
29
29
|
"@types/koa-send": "^4.1.3",
|
|
30
30
|
"@types/multer": "^1.4.12",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"@types/serve-handler": "^6.1.1",
|
|
61
61
|
"@types/ws": "^8.5.5"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "b958d8e10e75dd27b0e7a2882ffc8f9bda9da0d8"
|
|
64
64
|
}
|