@abtnode/core 1.16.53-beta-20251010-233105-b0ddacda → 1.16.53-beta-20251011-054719-4ed2f6b7

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.
@@ -3540,10 +3540,15 @@ class DiskBlockletManager extends BaseBlockletManager {
3540
3540
 
3541
3541
  await this.configSynchronizer.throttledSyncAppConfig(nextBlocklet);
3542
3542
  const componentsInfo = getComponentsInternalInfo(nextBlocklet);
3543
- this.emit(BlockletInternalEvents.componentStarted, {
3543
+
3544
+ this.emit(BlockletInternalEvents.componentUpdated, {
3544
3545
  appDid: blocklet.appDid,
3545
3546
  components: componentsInfo,
3546
3547
  });
3548
+ this.emit(BlockletInternalEvents.componentStarted, {
3549
+ appDid: blocklet.appDid,
3550
+ components: (componentDids || []).map((x) => ({ did: x })),
3551
+ });
3547
3552
 
3548
3553
  this.emit(BlockletEvents.statusChange, nextBlocklet);
3549
3554
  this.emit(BlockletEvents.started, { ...nextBlocklet, componentDids });
@@ -1,5 +1,20 @@
1
- // 是否是自定义 docker 镜像, 并且是否挂载了数据卷
1
+ // search-kit 应该忽略蓝绿部署, 不然重启过程会失败
2
+ const SINGLE_INSTANCE_COMPONENT_DIDS = new Set(['z8iZorY6mvb5tZrxXTqhBmwu89xjEEazrgT3t']);
3
+
4
+ /**
5
+ * 检查组件是否只能以单实例模式运行
6
+ * @param {Object} meta - 组件元数据
7
+ * @param {string} meta.did - 组件DID
8
+ * @param {Object} meta.docker - Docker配置
9
+ * @returns {boolean} 是否只能单实例运行
10
+ */
2
11
  function isDockerOnlySingleInstance(meta = {}) {
12
+ if (!meta.did) {
13
+ return true;
14
+ }
15
+ if (SINGLE_INSTANCE_COMPONENT_DIDS.has(meta.did)) {
16
+ return true;
17
+ }
3
18
  if (!meta.docker) {
4
19
  return false;
5
20
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.53-beta-20251010-233105-b0ddacda",
6
+ "version": "1.16.53-beta-20251011-054719-4ed2f6b7",
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-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",
24
+ "@abtnode/analytics": "1.16.53-beta-20251011-054719-4ed2f6b7",
25
+ "@abtnode/auth": "1.16.53-beta-20251011-054719-4ed2f6b7",
26
+ "@abtnode/certificate-manager": "1.16.53-beta-20251011-054719-4ed2f6b7",
27
+ "@abtnode/constant": "1.16.53-beta-20251011-054719-4ed2f6b7",
28
+ "@abtnode/cron": "1.16.53-beta-20251011-054719-4ed2f6b7",
29
+ "@abtnode/db-cache": "1.16.53-beta-20251011-054719-4ed2f6b7",
30
+ "@abtnode/docker-utils": "1.16.53-beta-20251011-054719-4ed2f6b7",
31
+ "@abtnode/logger": "1.16.53-beta-20251011-054719-4ed2f6b7",
32
+ "@abtnode/models": "1.16.53-beta-20251011-054719-4ed2f6b7",
33
+ "@abtnode/queue": "1.16.53-beta-20251011-054719-4ed2f6b7",
34
+ "@abtnode/rbac": "1.16.53-beta-20251011-054719-4ed2f6b7",
35
+ "@abtnode/router-provider": "1.16.53-beta-20251011-054719-4ed2f6b7",
36
+ "@abtnode/static-server": "1.16.53-beta-20251011-054719-4ed2f6b7",
37
+ "@abtnode/timemachine": "1.16.53-beta-20251011-054719-4ed2f6b7",
38
+ "@abtnode/util": "1.16.53-beta-20251011-054719-4ed2f6b7",
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-20251010-233105-b0ddacda",
50
+ "@blocklet/constant": "1.16.53-beta-20251011-054719-4ed2f6b7",
51
51
  "@blocklet/did-space-js": "^1.1.29",
52
- "@blocklet/env": "1.16.53-beta-20251010-233105-b0ddacda",
52
+ "@blocklet/env": "1.16.53-beta-20251011-054719-4ed2f6b7",
53
53
  "@blocklet/error": "^0.2.5",
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",
54
+ "@blocklet/meta": "1.16.53-beta-20251011-054719-4ed2f6b7",
55
+ "@blocklet/resolver": "1.16.53-beta-20251011-054719-4ed2f6b7",
56
+ "@blocklet/sdk": "1.16.53-beta-20251011-054719-4ed2f6b7",
57
+ "@blocklet/server-js": "1.16.53-beta-20251011-054719-4ed2f6b7",
58
+ "@blocklet/store": "1.16.53-beta-20251011-054719-4ed2f6b7",
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": "82159b4c2d656b970d3c2fdc3dc4778acd646ccc"
123
+ "gitHead": "26bebabf3b6e72db61ec6b48e679c37b3d5088fe"
124
124
  }