@heybox/hb-sdk 0.3.2 → 0.4.0
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/README.md +63 -28
- package/dist/cli-chunks/browser-RAy8e8cV.cjs +635 -0
- package/dist/cli-chunks/create-D1j9UnM7.cjs +1376 -0
- package/dist/cli-chunks/deploy-CknDDoS_.cjs +3730 -0
- package/dist/cli-chunks/dev-BS9h09yG.cjs +955 -0
- package/dist/cli-chunks/doctor-WTl1HCW0.cjs +186 -0
- package/dist/cli-chunks/index-io4h3kr-.cjs +13348 -0
- package/dist/cli-chunks/index-yjJgBEBF.cjs +64023 -0
- package/dist/cli-chunks/login-B-A53Sta.cjs +193 -0
- package/dist/cli-chunks/session-CMBN3o9z.cjs +3040 -0
- package/dist/cli.cjs +19 -77791
- package/dist/devtools/mock-host/index.html +63 -3
- package/dist/devtools/mock-host/main.js +3246 -20
- package/dist/index.cjs.js +20 -0
- package/dist/index.esm.js +20 -0
- package/dist/miniapp-publish.cjs.js +2810 -4
- package/dist/miniapp-publish.esm.js +2809 -4
- package/dist/protocol.cjs.js +15 -0
- package/dist/protocol.esm.js +15 -1
- package/dist/templates/vue3-vite-ts/README.md.ejs +2 -2
- package/dist/vite.cjs.js +2814 -14
- package/dist/vite.esm.js +2814 -14
- package/package.json +10 -4
- package/skill/SKILL.md +19 -13
- package/skill/references/api-protocol.md +7 -2
- package/skill/references/api-root.md +24 -13
- package/skill/references/cli.md +335 -104
- package/skill/references/llms-index.md +1 -1
- package/skill/scripts/sync-references.mjs +17 -1
- package/skill/skill.json +4 -4
- package/types/index.d.ts +1 -1
- package/types/miniapp-manifest/schema.d.ts +2 -1
- package/types/miniapp-publish/index.d.ts +2 -1
- package/types/modules/viewport/index.d.ts +33 -0
- package/types/protocol/capabilities.d.ts +17 -2
- package/types/protocol.d.ts +2 -2
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
body {
|
|
13
13
|
margin: 0;
|
|
14
|
-
|
|
14
|
+
height: 100vh;
|
|
15
|
+
overflow: hidden;
|
|
15
16
|
color: #1f2933;
|
|
16
17
|
background: #eef2f6;
|
|
17
18
|
font-family:
|
|
@@ -26,16 +27,21 @@
|
|
|
26
27
|
.layout {
|
|
27
28
|
display: grid;
|
|
28
29
|
grid-template-columns: minmax(320px, 400px) minmax(360px, 1fr);
|
|
29
|
-
|
|
30
|
+
height: 100vh;
|
|
31
|
+
min-height: 0;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.panel {
|
|
33
35
|
display: flex;
|
|
34
36
|
flex-direction: column;
|
|
35
37
|
gap: 16px;
|
|
38
|
+
min-height: 0;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
overscroll-behavior: contain;
|
|
36
41
|
padding: 18px;
|
|
37
42
|
border-right: 1px solid #d7dee8;
|
|
38
43
|
background: #fff;
|
|
44
|
+
scrollbar-gutter: stable;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.panel h1 {
|
|
@@ -174,6 +180,31 @@
|
|
|
174
180
|
padding: 0 10px;
|
|
175
181
|
}
|
|
176
182
|
|
|
183
|
+
.field select {
|
|
184
|
+
min-height: 36px;
|
|
185
|
+
width: 100%;
|
|
186
|
+
border: 1px solid #cad5e2;
|
|
187
|
+
border-radius: 6px;
|
|
188
|
+
padding: 0 10px;
|
|
189
|
+
color: #1f2933;
|
|
190
|
+
background: #fff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mobile-qr {
|
|
194
|
+
display: grid;
|
|
195
|
+
justify-items: center;
|
|
196
|
+
gap: 8px;
|
|
197
|
+
margin-top: 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.mobile-qr img {
|
|
201
|
+
width: 176px;
|
|
202
|
+
height: 176px;
|
|
203
|
+
border: 1px solid #d7dee8;
|
|
204
|
+
border-radius: 6px;
|
|
205
|
+
background: #fff;
|
|
206
|
+
}
|
|
207
|
+
|
|
177
208
|
.logs {
|
|
178
209
|
display: grid;
|
|
179
210
|
gap: 8px;
|
|
@@ -207,7 +238,10 @@
|
|
|
207
238
|
.stage {
|
|
208
239
|
display: grid;
|
|
209
240
|
place-items: center;
|
|
241
|
+
height: 100vh;
|
|
242
|
+
min-height: 0;
|
|
210
243
|
min-width: 0;
|
|
244
|
+
overflow: hidden;
|
|
211
245
|
padding: 22px;
|
|
212
246
|
}
|
|
213
247
|
|
|
@@ -234,14 +268,28 @@
|
|
|
234
268
|
}
|
|
235
269
|
|
|
236
270
|
@media (max-width: 860px) {
|
|
271
|
+
body {
|
|
272
|
+
height: auto;
|
|
273
|
+
min-height: 100vh;
|
|
274
|
+
overflow: auto;
|
|
275
|
+
}
|
|
276
|
+
|
|
237
277
|
.layout {
|
|
238
278
|
grid-template-columns: 1fr;
|
|
279
|
+
height: auto;
|
|
280
|
+
min-height: 100vh;
|
|
239
281
|
}
|
|
240
282
|
|
|
241
283
|
.panel {
|
|
284
|
+
overflow: visible;
|
|
242
285
|
border-right: 0;
|
|
243
286
|
border-bottom: 1px solid #d7dee8;
|
|
244
287
|
}
|
|
288
|
+
|
|
289
|
+
.stage {
|
|
290
|
+
height: auto;
|
|
291
|
+
min-height: 80vh;
|
|
292
|
+
}
|
|
245
293
|
}
|
|
246
294
|
</style>
|
|
247
295
|
</head>
|
|
@@ -275,7 +323,7 @@
|
|
|
275
323
|
<button class="primary" id="mac-app-button" type="button">在 Mac 版 APP 中启动</button>
|
|
276
324
|
</div>
|
|
277
325
|
<div class="mac-app-status" id="mac-app-status" hidden>
|
|
278
|
-
<div>如果没有唤起 Mac 版 APP
|
|
326
|
+
<div>如果没有唤起 Mac 版 APP,请在系统浏览器中打开当前调试页面后重试。若 APP 已打开但加载失败,请升级到支持本地小程序调试的 Mac App 版本。</div>
|
|
279
327
|
<div class="debug-page-url">
|
|
280
328
|
<code id="debug-page-url"></code>
|
|
281
329
|
<button
|
|
@@ -295,6 +343,18 @@
|
|
|
295
343
|
</div>
|
|
296
344
|
</section>
|
|
297
345
|
|
|
346
|
+
<section class="block">
|
|
347
|
+
<span>Mobile App</span>
|
|
348
|
+
<label class="field" style="margin-top: 10px">
|
|
349
|
+
<span>Network</span>
|
|
350
|
+
<select id="mobile-lan-select"></select>
|
|
351
|
+
</label>
|
|
352
|
+
<div class="mobile-qr">
|
|
353
|
+
<img id="mobile-qr-image" alt="手机扫码调试二维码" />
|
|
354
|
+
<div class="copy-status" id="mobile-qr-status"></div>
|
|
355
|
+
</div>
|
|
356
|
+
</section>
|
|
357
|
+
|
|
298
358
|
<section class="block">
|
|
299
359
|
<label class="field">
|
|
300
360
|
<span>Nickname</span>
|