@abtnode/core 1.16.53-beta-20251009-113612-7a16b6a0 → 1.16.53-beta-20251010-233105-b0ddacda
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.
|
@@ -443,8 +443,8 @@ class DiskBlockletManager extends BaseBlockletManager {
|
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
445
|
ensureBlockletRunning.initialize({
|
|
446
|
-
|
|
447
|
-
await this.
|
|
446
|
+
start: async (params) => {
|
|
447
|
+
await this.start(params);
|
|
448
448
|
},
|
|
449
449
|
createAuditLog: (params) => this.createAuditLog(params),
|
|
450
450
|
notification: (did, title, description, severity) => {
|
|
@@ -92,12 +92,12 @@ class EnsureBlockletRunning {
|
|
|
92
92
|
this.states = states;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
initialize = ({
|
|
95
|
+
initialize = ({ start, stop, notification, checkSystemHighLoad, createAuditLog }) => {
|
|
96
96
|
if (this.initialized) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
this.initialized = true;
|
|
100
|
-
this.
|
|
100
|
+
this.start = start;
|
|
101
101
|
this.stop = stop;
|
|
102
102
|
this.notification = notification;
|
|
103
103
|
this.createAuditLog = createAuditLog;
|
|
@@ -308,7 +308,7 @@ class EnsureBlockletRunning {
|
|
|
308
308
|
|
|
309
309
|
try {
|
|
310
310
|
logger.info('restart blocklet:', did, componentDids);
|
|
311
|
-
await this.
|
|
311
|
+
await this.start({
|
|
312
312
|
did,
|
|
313
313
|
componentDids,
|
|
314
314
|
checkHealthImmediately: true,
|
package/lib/util/aigne-verify.js
CHANGED
|
@@ -51,7 +51,7 @@ const verifyAigneHub = async (config, blocklet) => {
|
|
|
51
51
|
const modelConfig = {
|
|
52
52
|
apiKey: decryptValue(config.key, did),
|
|
53
53
|
model: !config.model || config.model === 'auto' ? undefined : config.model,
|
|
54
|
-
|
|
54
|
+
baseURL: baseUrl,
|
|
55
55
|
clientOptions: {
|
|
56
56
|
clientId: did,
|
|
57
57
|
},
|
package/lib/util/blocklet.js
CHANGED
|
@@ -1688,7 +1688,8 @@ const _getBlocklet = async ({
|
|
|
1688
1688
|
throw new Error('Blocklet did does not exist');
|
|
1689
1689
|
}
|
|
1690
1690
|
if (!isValidDid(did)) {
|
|
1691
|
-
|
|
1691
|
+
logger.error('Blocklet did is invalid', { did });
|
|
1692
|
+
throw new Error('Blocklet did is invalid');
|
|
1692
1693
|
}
|
|
1693
1694
|
|
|
1694
1695
|
if (!dataDirs) {
|
|
@@ -1702,7 +1703,8 @@ const _getBlocklet = async ({
|
|
|
1702
1703
|
const blocklet = await states.blocklet.getBlocklet(did);
|
|
1703
1704
|
if (!blocklet) {
|
|
1704
1705
|
if (throwOnNotExist || ensureIntegrity) {
|
|
1705
|
-
|
|
1706
|
+
logger.error('can not find blocklet in database by did', { did });
|
|
1707
|
+
throw new Error('can not find blocklet in database by did');
|
|
1706
1708
|
}
|
|
1707
1709
|
return null;
|
|
1708
1710
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.53-beta-
|
|
6
|
+
"version": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@abtnode/analytics": "1.16.53-beta-
|
|
25
|
-
"@abtnode/auth": "1.16.53-beta-
|
|
26
|
-
"@abtnode/certificate-manager": "1.16.53-beta-
|
|
27
|
-
"@abtnode/constant": "1.16.53-beta-
|
|
28
|
-
"@abtnode/cron": "1.16.53-beta-
|
|
29
|
-
"@abtnode/db-cache": "1.16.53-beta-
|
|
30
|
-
"@abtnode/docker-utils": "1.16.53-beta-
|
|
31
|
-
"@abtnode/logger": "1.16.53-beta-
|
|
32
|
-
"@abtnode/models": "1.16.53-beta-
|
|
33
|
-
"@abtnode/queue": "1.16.53-beta-
|
|
34
|
-
"@abtnode/rbac": "1.16.53-beta-
|
|
35
|
-
"@abtnode/router-provider": "1.16.53-beta-
|
|
36
|
-
"@abtnode/static-server": "1.16.53-beta-
|
|
37
|
-
"@abtnode/timemachine": "1.16.53-beta-
|
|
38
|
-
"@abtnode/util": "1.16.53-beta-
|
|
24
|
+
"@abtnode/analytics": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
25
|
+
"@abtnode/auth": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
26
|
+
"@abtnode/certificate-manager": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
27
|
+
"@abtnode/constant": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
28
|
+
"@abtnode/cron": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
29
|
+
"@abtnode/db-cache": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
30
|
+
"@abtnode/docker-utils": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
31
|
+
"@abtnode/logger": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
32
|
+
"@abtnode/models": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
33
|
+
"@abtnode/queue": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
34
|
+
"@abtnode/rbac": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
35
|
+
"@abtnode/router-provider": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
36
|
+
"@abtnode/static-server": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
37
|
+
"@abtnode/timemachine": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
38
|
+
"@abtnode/util": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
39
39
|
"@aigne/aigne-hub": "^0.10.0",
|
|
40
40
|
"@arcblock/did": "1.25.6",
|
|
41
41
|
"@arcblock/did-connect-js": "1.25.6",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"@arcblock/pm2-events": "^0.0.5",
|
|
48
48
|
"@arcblock/validator": "1.25.6",
|
|
49
49
|
"@arcblock/vc": "1.25.6",
|
|
50
|
-
"@blocklet/constant": "1.16.53-beta-
|
|
50
|
+
"@blocklet/constant": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
51
51
|
"@blocklet/did-space-js": "^1.1.29",
|
|
52
|
-
"@blocklet/env": "1.16.53-beta-
|
|
52
|
+
"@blocklet/env": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
53
53
|
"@blocklet/error": "^0.2.5",
|
|
54
|
-
"@blocklet/meta": "1.16.53-beta-
|
|
55
|
-
"@blocklet/resolver": "1.16.53-beta-
|
|
56
|
-
"@blocklet/sdk": "1.16.53-beta-
|
|
57
|
-
"@blocklet/server-js": "1.16.53-beta-
|
|
58
|
-
"@blocklet/store": "1.16.53-beta-
|
|
54
|
+
"@blocklet/meta": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
55
|
+
"@blocklet/resolver": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
56
|
+
"@blocklet/sdk": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
57
|
+
"@blocklet/server-js": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
58
|
+
"@blocklet/store": "1.16.53-beta-20251010-233105-b0ddacda",
|
|
59
59
|
"@blocklet/theme": "^3.1.45",
|
|
60
60
|
"@fidm/x509": "^1.2.1",
|
|
61
61
|
"@ocap/mcrypto": "1.25.6",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"jest": "^29.7.0",
|
|
121
121
|
"unzipper": "^0.10.11"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "82159b4c2d656b970d3c2fdc3dc4778acd646ccc"
|
|
124
124
|
}
|