@heybox/hb-sdk 0.9.2-alpha.6 → 0.9.2-alpha.7

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -2
  3. package/dist/cli-chunks/{build-ffQNXsFk.cjs → build-Do22AWbq.cjs} +5 -5
  4. package/dist/cli-chunks/{context-DlFt5Q7p.cjs → context-DQhjWa7X.cjs} +2 -2
  5. package/dist/cli-chunks/{create-BtmA7deR.cjs → create-QuI_mw8x.cjs} +1 -1
  6. package/dist/cli-chunks/{dev-CNDIlDmL.cjs → dev-KAhj5UTy.cjs} +75 -66
  7. package/dist/cli-chunks/{doctor-BkFUZH17.cjs → doctor-DNoQWBpo.cjs} +1 -1
  8. package/dist/cli-chunks/{index-DrlSotEe.cjs → index-DZUYwb3h.cjs} +1 -1
  9. package/dist/cli-chunks/{index-CN_l895H.cjs → index-bZIxID9N.cjs} +16 -16
  10. package/dist/cli-chunks/{index.esm-mmJekGrr.cjs → index.esm-EWleN3S5.cjs} +6 -6
  11. package/dist/cli-chunks/{login-qupR7tLT.cjs → login-BYM3Nwau.cjs} +1 -1
  12. package/dist/cli-chunks/{project-vite-CNubrzp5.cjs → project-vite-6eLmb4Em.cjs} +1 -1
  13. package/dist/cli-chunks/{remote-CbZlAq6Z.cjs → remote-dvOjaxJu.cjs} +6 -6
  14. package/dist/cli-chunks/{runtime-gate-BcKHky95.cjs → runtime-gate-BKc2zPV-.cjs} +2 -2
  15. package/dist/cli-chunks/{runtime-permission-env-BQ7lPfhg.cjs → runtime-permission-env-B9SqoP85.cjs} +2 -2
  16. package/dist/cli-chunks/{skill-KmRvlkMJ.cjs → skill-DFXZ0SK_.cjs} +2 -2
  17. package/dist/cli-chunks/{version-ai8lcNbJ.cjs → version-CwEOrhL1.cjs} +1 -1
  18. package/dist/cli.cjs +1 -1
  19. package/dist/devtools/browser-dev-host/assets/{browser-dev-host-DIkT9EVT.js → browser-dev-host-BitDUIsy.js} +1 -1
  20. package/dist/devtools/browser-dev-host/assets/{desktop-app-launch-CXLBQXPW.js → desktop-app-launch-B0yrI7xe.js} +1 -1
  21. package/dist/devtools/browser-dev-host/assets/{index-Dn9OFySi.js → index-D_mC4Hvt.js} +3 -3
  22. package/dist/devtools/browser-dev-host/index.html +2 -2
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.esm.js +1 -1
  25. package/dist/vite.cjs.js +1 -1
  26. package/dist/vite.esm.js +1 -1
  27. package/docs/runtime-host-migration.md +1 -1
  28. package/package.json +4 -4
  29. package/skill/skill.json +4 -4
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta name="theme-color" content="#f4f5f7" />
7
7
  <title>小程序工坊调试台</title>
8
- <script type="module" crossorigin src="/assets/index-Dn9OFySi.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-CXLBQXPW.js">
8
+ <script type="module" crossorigin src="/assets/index-D_mC4Hvt.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-B0yrI7xe.js">
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-7Cq8iNcD.css">
11
11
  </head>
12
12
  <body>
package/dist/index.cjs.js CHANGED
@@ -7291,7 +7291,7 @@ function createMessageId() {
7291
7291
  /** 构建时替换为当前发布包的实际版本。 */
7292
7292
  const HB_SDK_VERSION = typeof undefined === 'string'
7293
7293
  ? undefined
7294
- : '0.9.2-alpha.6';
7294
+ : '0.9.2-alpha.7';
7295
7295
 
7296
7296
  const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
7297
7297
  const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
package/dist/index.esm.js CHANGED
@@ -7287,7 +7287,7 @@ function createMessageId() {
7287
7287
  /** 构建时替换为当前发布包的实际版本。 */
7288
7288
  const HB_SDK_VERSION = typeof undefined === 'string'
7289
7289
  ? undefined
7290
- : '0.9.2-alpha.6';
7290
+ : '0.9.2-alpha.7';
7291
7291
 
7292
7292
  const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
7293
7293
  const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
package/dist/vite.cjs.js CHANGED
@@ -10281,7 +10281,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
10281
10281
  /** 构建时替换为当前发布包的实际版本。 */
10282
10282
  const HB_SDK_VERSION = typeof undefined === 'string'
10283
10283
  ? undefined
10284
- : '0.9.2-alpha.6';
10284
+ : '0.9.2-alpha.7';
10285
10285
 
10286
10286
  /**
10287
10287
  * iframe 与调试台页面的开发期 console 捕获转发。
package/dist/vite.esm.js CHANGED
@@ -10278,7 +10278,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
10278
10278
  /** 构建时替换为当前发布包的实际版本。 */
10279
10279
  const HB_SDK_VERSION = typeof undefined === 'string'
10280
10280
  ? undefined
10281
- : '0.9.2-alpha.6';
10281
+ : '0.9.2-alpha.7';
10282
10282
 
10283
10283
  /**
10284
10284
  * iframe 与调试台页面的开发期 console 捕获转发。
@@ -45,7 +45,7 @@ await runtime.start();
45
45
 
46
46
  ## Browser Dev Host
47
47
 
48
- Browser Dev Host 由 SDK CLI 提供 Vue 3 调试台并注入 `@heybox/hb-sdk-runtime/web-host`。它可以在没有 CLI 登录、项目绑定或远端 Dev Context 时启动;依赖账号或远端配置的能力必须明确失败,不能阻断页面服务和基础 Browser Mock。存在 CLI 登录会话时,Node 可以代发 Host `heybox-session` 请求;小程序仍须调用 `auth.login()`。凭证留在 Node,不会下发到浏览器、URL 或日志。真机调试继续走 App 内登录。
48
+ Browser Dev Host 由 SDK CLI 提供 Vue 3 调试台并注入 `@heybox/hb-sdk-runtime/web-host`。`hb-sdk dev` 在创建服务前必须完成 CLI 登录态、项目绑定与远端 Dev Context 校验;前置条件不满足时退出并给出修复指引。校验通过后的签票失败或运行中临时远端故障不关闭页面服务和基础 Browser Mock,真实客户端按票据有效期与退避规则恢复。存在 CLI 登录会话时,Node 可以代发 Host `heybox-session` 请求;小程序仍须调用 `auth.login()`。凭证留在 Node,不会下发到浏览器、URL 或日志。真机调试继续走 App 内登录。
49
49
 
50
50
  调试台的 iframe 在整个会话中保持同一个 DOM 节点。iPhone 16 Pro Max(`440 x 956`)和 Pixel 9 Pro(`410 x 914`)预设投影设备 metrics、外框、状态栏和安全区;Host presentation 返回的顶部可用偏移还需包含 `44px` 移动端宿主导航栏,以对齐手机真机。切换设备时不得触发 iframe navigation 或 Runtime 重启。授权与操作弹窗、Toast、Loading 和振动反馈由 Host presentation controller 渲染在设备预览的 overlay layer 内。
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heybox/hb-sdk",
3
- "version": "0.9.2-alpha.6",
3
+ "version": "0.9.2-alpha.7",
4
4
  "sideEffects": [
5
5
  "./src/index.ts",
6
6
  "./src/core/singleton.ts",
@@ -76,7 +76,7 @@
76
76
  "undici": "^7.28.0",
77
77
  "ws": "^8.18.0",
78
78
  "sharp": "^0.34.5",
79
- "@heybox/hb-sdk-protocol": "0.9.2-alpha.6"
79
+ "@heybox/hb-sdk-protocol": "0.9.2-alpha.7"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "vite": ">=5"
@@ -129,9 +129,9 @@
129
129
  "@ai-desktop/view-contract": "file:../hb-sdk-protocol/vendor/view-contract-2.2.2-6ac49bbf6410.tgz",
130
130
  "rollup-plugin-dts": "6.4.0",
131
131
  "@heybox-domain/heybox-theme": "~0.1.0",
132
- "@heybox-domain/heybox-vue3-ui": "~0.1.0",
133
- "@heybox/hb-sdk-runtime": "~0.9.2-alpha.6",
132
+ "@heybox/hb-sdk-runtime": "~0.9.2-alpha.7",
134
133
  "@heybox/hb-api": "~1.28.14",
134
+ "@heybox-domain/heybox-vue3-ui": "~0.1.0",
135
135
  "@heybox/runtime": "~0.2.1",
136
136
  "@heybox/runtime-policy": "~0.2.1",
137
137
  "@heybox/runtime-transport-fetch": "~0.2.1"
package/skill/skill.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "hb-sdk",
3
- "skillVersion": "0.9.2-alpha.6+skill.c3a240ca503a",
3
+ "skillVersion": "0.9.2-alpha.7+skill.c3a240ca503a",
4
4
  "sdk": {
5
5
  "package": "@heybox/hb-sdk",
6
- "version": "0.9.2-alpha.6",
7
- "compatibility": "0.9.2-alpha.6"
6
+ "version": "0.9.2-alpha.7",
7
+ "compatibility": "0.9.2-alpha.7"
8
8
  },
9
9
  "distribution": {
10
10
  "type": "npm",
11
11
  "package": "@heybox/hb-sdk",
12
- "version": "0.9.2-alpha.6",
12
+ "version": "0.9.2-alpha.7",
13
13
  "path": "skill"
14
14
  },
15
15
  "integrity": "sha256-c3a240ca503a1e5f3b15033e091f1fa79a8b70585aa0d8d8fa0b332daec60ac5"