@heybox/hb-sdk 0.6.7-alpha.2 → 0.6.8-alpha.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +226 -0
  2. package/README.md +65 -583
  3. package/dist/cli-chunks/{build-CQmYxfxm.cjs → build-BfhZ07Qv.cjs} +4 -4
  4. package/dist/cli-chunks/{context-ChkYWwH_.cjs → context-CqoGNt7d.cjs} +2 -2
  5. package/dist/cli-chunks/{create-CC5r_8bL.cjs → create-us7swTbU.cjs} +1 -1
  6. package/dist/cli-chunks/{dev-CD-38TgO.cjs → dev-Bf49EoR8.cjs} +6 -6
  7. package/dist/cli-chunks/{doctor-43yEfVr0.cjs → doctor-CzETlRvH.cjs} +21 -3
  8. package/dist/cli-chunks/{index-CQnkS0Z8.cjs → index-BMhV2-vd.cjs} +14 -14
  9. package/dist/cli-chunks/{index-BM6oH2Hs.cjs → index-Cd37cCQM.cjs} +2 -2
  10. package/dist/cli-chunks/{index-BQm5XmMC.cjs → index-v4-6fbXX.cjs} +29 -2
  11. package/dist/cli-chunks/{login-BmisXAdp.cjs → login-Cb5ShNVQ.cjs} +2 -2
  12. package/dist/cli-chunks/{project-vite-D9_v57vp.cjs → project-vite-WP6NzC3p.cjs} +1 -1
  13. package/dist/cli-chunks/{remote-BXtT6M2f.cjs → remote-Co84uKvV.cjs} +28 -8
  14. package/dist/cli-chunks/{runtime-gate-B2MQf1vc.cjs → runtime-gate-DfMJQGH9.cjs} +1 -1
  15. package/dist/cli-chunks/{session-BjtjhtPg.cjs → session-9A8AY7YK.cjs} +1 -1
  16. package/dist/cli.cjs +1 -1
  17. package/dist/index.cjs.js +1 -1
  18. package/dist/index.esm.js +1 -1
  19. package/dist/miniapp-publish.cjs.js +29 -2
  20. package/dist/miniapp-publish.esm.js +29 -2
  21. package/dist/vite.cjs.js +1 -1
  22. package/dist/vite.esm.js +1 -1
  23. package/package.json +3 -1
  24. package/skill/references/api-protocol.md +0 -10
  25. package/skill/references/api-root.md +153 -353
  26. package/skill/references/safety-boundaries.md +6 -9
  27. package/skill/scripts/sync-references.mjs +10 -20
  28. package/skill/skill.json +4 -4
@@ -210,15 +210,9 @@ const loginGate = frontmatterless(read('apps/docs/hb-sdk/recipes/login-gate.md')
210
210
  const communityShare = frontmatterless(read('apps/docs/hb-sdk/recipes/community-share.md'));
211
211
  const customInstance = frontmatterless(read('apps/docs/hb-sdk/recipes/custom-instance.md'));
212
212
  const referenceHome = frontmatterless(read('apps/docs/hb-sdk/reference/index.md'));
213
- const quickStartSection = extractSection(readme, '## 快速开始');
214
- const runtimeEnvironment = extractSection(readme, '## 运行环境');
215
- const publicCapabilities = extractSection(readme, '## 常用能力');
216
- const lifecycleEvents = extractSection(readme, '## 生命周期事件');
217
- const standardErrors = extractSection(readme, '## 错误处理');
218
- const sdkRuntimeRelation = extractSection(readme, '## SDK 与 Runtime');
219
- const capabilityBoundaries = extractSection(readme, '## 能力边界');
220
- const manifestSection = extractSection(readme, '## Manifest');
221
- const cliSummarySection = extractSection(readme, '## CLI');
213
+ const publicCapabilities = extractSection(readme, '## 能力概览');
214
+ const capabilityBoundaries = extractSection(readme, '## 关键约束');
215
+ const manifestSection = extractSection(cliGuide, '## 生产构建');
222
216
  const cliCreateSection = extractSection(cliGuide, '## 创建工坊小程序');
223
217
  const cliDevSection = extractSection(cliGuide, '## 推荐调试流程');
224
218
  const cliBuildSection = extractSection(cliGuide, '## 生产构建');
@@ -275,6 +269,10 @@ files.set('api-root.md', `${header('Root API reference', [
275
269
  'packages/hb-sdk/src/index.ts',
276
270
  'packages/hb-sdk/src/vite/index.ts',
277
271
  'packages/hb-sdk/README.md',
272
+ 'apps/docs/hb-sdk/guide/quick-start.md',
273
+ 'apps/docs/hb-sdk/guide/error-handling.md',
274
+ 'apps/docs/hb-sdk/guide/lifecycle.md',
275
+ 'apps/docs/hb-sdk/guide/cli.md',
278
276
  ])}${contents([
279
277
  ['Package metadata', 'package-metadata'],
280
278
  ['Public root entrypoint', 'public-root-entrypoint'],
@@ -303,27 +301,23 @@ ${manifestSection}
303
301
 
304
302
  ## App-facing concepts
305
303
 
306
- ${quickStartSection}
307
-
308
- ${runtimeEnvironment}
304
+ ${quickStart}
309
305
 
310
- ${standardErrors}
306
+ ${rewriteBundledRecipeLinks(errorGuide)}
311
307
 
312
308
  ## Public modules
313
309
 
314
310
  ${publicCapabilities}
315
311
 
316
- ${lifecycleEvents}
312
+ ${rewriteBundledRecipeLinks(lifecycleGuide)}
317
313
  `);
318
314
 
319
315
  files.set('api-protocol.md', `${header('Protocol API reference', [
320
316
  'packages/hb-sdk/src/protocol.ts',
321
- 'packages/hb-sdk/README.md',
322
317
  'apps/docs/hb-sdk/reference/index.md',
323
318
  ])}${contents([
324
319
  ['Host/runtime-only warning', 'hostruntime-only-warning'],
325
320
  ['Public protocol entrypoint', 'public-protocol-entrypoint'],
326
- ['Protocol context', 'protocol-context'],
327
321
  ['Generated reference index', 'generated-reference-index'],
328
322
  ])}## Host/runtime-only warning
329
323
 
@@ -333,10 +327,6 @@ Use \`@heybox/hb-sdk/protocol\` only for parent-container runtime, bridge-server
333
327
 
334
328
  ${fenced('ts', protocolEntry)}
335
329
 
336
- ## Protocol context
337
-
338
- ${sdkRuntimeRelation}
339
-
340
330
  ## Generated reference index
341
331
 
342
332
  ${rewriteBundledProtocolIndexLinks(referenceHome)}
package/skill/skill.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "hb-sdk",
3
- "skillVersion": "0.6.7-alpha.2+skill.ed2b204ea04c",
3
+ "skillVersion": "0.6.8-alpha.0+skill.e34106bdd1de",
4
4
  "sdk": {
5
5
  "package": "@heybox/hb-sdk",
6
- "version": "0.6.7-alpha.2",
7
- "compatibility": "0.6.7-alpha.2"
6
+ "version": "0.6.8-alpha.0",
7
+ "compatibility": "0.6.8-alpha.0"
8
8
  },
9
9
  "source": "https://open.xiaoheihe.cn/agent-skills/hb-sdk",
10
- "integrity": "sha256-ed2b204ea04c904a30c99cfc1c4a60833dde694b9a5974bbc885f2b751224e68"
10
+ "integrity": "sha256-e34106bdd1dea827b5d991d2142e079bbdfa3cb4288141e1a6c7418ec2bf8ced"
11
11
  }