@heybox/hb-sdk 0.9.0-alpha.3 → 0.9.0-alpha.4
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/CHANGELOG.md +10 -0
- package/dist/cli-chunks/{build-C4d4WXYT.cjs → build-B_191Me8.cjs} +5 -5
- package/dist/cli-chunks/{context-mt_ERryB.cjs → context-Ap_TN7_y.cjs} +2 -2
- package/dist/cli-chunks/{create-LfZ8OhT6.cjs → create-CF2cKfm4.cjs} +1 -1
- package/dist/cli-chunks/{dev-lgUgVorS.cjs → dev-CvTcfOkL.cjs} +9 -9
- package/dist/cli-chunks/{doctor-BSJnY0Bu.cjs → doctor-BjtSOf0M.cjs} +1 -1
- package/dist/cli-chunks/{index-DVALw2rx.cjs → index-B-rceHr8.cjs} +2 -2
- package/dist/cli-chunks/{index-BtqxUixL.cjs → index-Ca2UIJsQ.cjs} +15 -15
- package/dist/cli-chunks/{index.esm-Deim9BX8.cjs → index.esm-C_9WnYFi.cjs} +7 -7
- package/dist/cli-chunks/{login-TIFXGbKv.cjs → login-DrvIHWVQ.cjs} +2 -2
- package/dist/cli-chunks/{project-vite-DSBP8NLj.cjs → project-vite-DrsHA8ds.cjs} +1 -1
- package/dist/cli-chunks/{remote-DyGb3YBA.cjs → remote-CIwRMZUZ.cjs} +7 -7
- package/dist/cli-chunks/{runtime-gate-CWUZK4aE.cjs → runtime-gate-DRuFXJpM.cjs} +1 -1
- package/dist/cli-chunks/{runtime-permission-env-DdWYFrFT.cjs → runtime-permission-env-DMaLUdko.cjs} +1 -1
- package/dist/cli-chunks/{session-CWCq-oeW.cjs → session-DTZLdP0E.cjs} +1 -1
- package/dist/cli-chunks/{skill-DQzR5fMS.cjs → skill-Bi4-AuLT.cjs} +2 -2
- package/dist/cli-chunks/{version-4zRtvcVD.cjs → version-BgfshM8-.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-BecHtxSh.js +102 -0
- package/dist/devtools/browser-dev-host/assets/{desktop-app-launch-Dod9L2SF.js → desktop-app-launch-DKPLqlp_.js} +1 -1
- package/dist/devtools/browser-dev-host/assets/{index-xtE6gn7j.js → index-CNRmDdSE.js} +3 -3
- package/dist/devtools/browser-dev-host/index.html +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/vite.cjs.js +1 -1
- package/dist/vite.esm.js +1 -1
- package/package.json +4 -4
- package/skill/skill.json +4 -4
- package/types/modules/user/index.d.ts +6 -0
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-BEJTrPTS.js +0 -102
|
@@ -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-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CNRmDdSE.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-app-launch-DKPLqlp_.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-0Ac39Njs.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
package/dist/index.cjs.js
CHANGED
|
@@ -1342,7 +1342,7 @@ function createMessageId() {
|
|
|
1342
1342
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
1343
1343
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
1344
1344
|
? undefined
|
|
1345
|
-
: '0.9.0-alpha.
|
|
1345
|
+
: '0.9.0-alpha.4';
|
|
1346
1346
|
|
|
1347
1347
|
const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
|
|
1348
1348
|
const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
|
package/dist/index.esm.js
CHANGED
|
@@ -1338,7 +1338,7 @@ function createMessageId() {
|
|
|
1338
1338
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
1339
1339
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
1340
1340
|
? undefined
|
|
1341
|
-
: '0.9.0-alpha.
|
|
1341
|
+
: '0.9.0-alpha.4';
|
|
1342
1342
|
|
|
1343
1343
|
const RUNTIME_MODES = new Set(['production', 'preview', 'development', 'unknown']);
|
|
1344
1344
|
const OPERATING_SYSTEM_NAMES = new Set(['android', 'ios', 'ohos', 'windows', 'macos', 'linux', 'unknown']);
|
package/dist/vite.cjs.js
CHANGED
|
@@ -2948,7 +2948,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
|
|
|
2948
2948
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
2949
2949
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
2950
2950
|
? undefined
|
|
2951
|
-
: '0.9.0-alpha.
|
|
2951
|
+
: '0.9.0-alpha.4';
|
|
2952
2952
|
|
|
2953
2953
|
/**
|
|
2954
2954
|
* iframe 与调试台页面的开发期 console 捕获转发。
|
package/dist/vite.esm.js
CHANGED
|
@@ -2945,7 +2945,7 @@ async function ensureBasicInfoDirectory(rootPath, relative) {
|
|
|
2945
2945
|
/** 构建时替换为当前发布包的实际版本。 */
|
|
2946
2946
|
const HB_SDK_VERSION = typeof undefined === 'string'
|
|
2947
2947
|
? undefined
|
|
2948
|
-
: '0.9.0-alpha.
|
|
2948
|
+
: '0.9.0-alpha.4';
|
|
2949
2949
|
|
|
2950
2950
|
/**
|
|
2951
2951
|
* iframe 与调试台页面的开发期 console 捕获转发。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heybox/hb-sdk",
|
|
3
|
-
"version": "0.9.0-alpha.
|
|
3
|
+
"version": "0.9.0-alpha.4",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"./src/index.ts",
|
|
6
6
|
"./src/core/singleton.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"undici": "^7.28.0",
|
|
66
66
|
"ws": "^8.18.0",
|
|
67
67
|
"sharp": "^0.34.5",
|
|
68
|
-
"@heybox/hb-sdk-protocol": "0.9.0-alpha.
|
|
68
|
+
"@heybox/hb-sdk-protocol": "0.9.0-alpha.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"vite": ">=5"
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"vue-tsc": "^3.3.7",
|
|
117
117
|
"vite": "^8.0.12",
|
|
118
118
|
"vitest": "^3.2.4",
|
|
119
|
-
"@heybox-domain/heybox-theme": "~0.1.0",
|
|
120
119
|
"@heybox-domain/heybox-vue3-ui": "~0.1.0",
|
|
120
|
+
"@heybox-domain/heybox-theme": "~0.1.0",
|
|
121
121
|
"@heybox/hb-api": "~1.28.10",
|
|
122
|
-
"@heybox/hb-sdk-runtime": "~0.9.0-alpha.
|
|
122
|
+
"@heybox/hb-sdk-runtime": "~0.9.0-alpha.4",
|
|
123
123
|
"@heybox/runtime": "~0.2.0",
|
|
124
124
|
"@heybox/runtime-policy": "~0.2.0",
|
|
125
125
|
"@heybox/runtime-transport-fetch": "~0.2.0"
|
package/skill/skill.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hb-sdk",
|
|
3
|
-
"skillVersion": "0.9.0-alpha.
|
|
3
|
+
"skillVersion": "0.9.0-alpha.4+skill.aa24d6656331",
|
|
4
4
|
"sdk": {
|
|
5
5
|
"package": "@heybox/hb-sdk",
|
|
6
|
-
"version": "0.9.0-alpha.
|
|
7
|
-
"compatibility": "0.9.0-alpha.
|
|
6
|
+
"version": "0.9.0-alpha.4",
|
|
7
|
+
"compatibility": "0.9.0-alpha.4"
|
|
8
8
|
},
|
|
9
9
|
"distribution": {
|
|
10
10
|
"type": "npm",
|
|
11
11
|
"package": "@heybox/hb-sdk",
|
|
12
|
-
"version": "0.9.0-alpha.
|
|
12
|
+
"version": "0.9.0-alpha.4",
|
|
13
13
|
"path": "skill"
|
|
14
14
|
},
|
|
15
15
|
"integrity": "sha256-aa24d6656331cbad8f6aae7735258a49d7f1a82f6e900415de53a1b93a30ddb8"
|
|
@@ -183,6 +183,12 @@ export interface MiniProgramUserModule {
|
|
|
183
183
|
* unit。`limit` 必须为正整数并在大于 100 时收窄为 100。继续分页时把返回的
|
|
184
184
|
* `data.nextOffset` 原样传给下一次调用。
|
|
185
185
|
*
|
|
186
|
+
* Host Runtime 默认将相同查询的成功游戏页缓存 24 小时,游戏新增、游玩时长、隐藏状态和
|
|
187
|
+
* 价格可能延迟更新。支持 sandbox 文件操作的宿主可以跨小程序关闭复用;其他宿主仅在当前
|
|
188
|
+
* Runtime 内复用。缓存仍检查当前账号和绑定上下文,首次全量读取仍需逐页请求。
|
|
189
|
+
* 缓存行为与有效期由 Host Runtime 策略决定,小程序不能通过本方法指定强制刷新。
|
|
190
|
+
* 系统或用户清理缓存目录后会重新请求;24 小时是有效期上限,不保证文件保留时长。
|
|
191
|
+
*
|
|
186
192
|
* 先检查 `isLogin` 和 `isBound`,再读取 `data`。需要单独读取小黑盒登录态和当前小程序
|
|
187
193
|
* 隔离身份时使用 [user.getInfo](/reference/sdk/user/getInfo);需要为开发者服务端建立会话时,
|
|
188
194
|
* 在可信用户操作中使用 [auth.login](/reference/sdk/auth/login)。这两个 API 都要求
|