@heybox/hb-sdk 0.6.7 → 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.
- package/CHANGELOG.md +226 -0
- package/README.md +65 -583
- package/dist/cli-chunks/{build-DaHCCSLH.cjs → build-BfhZ07Qv.cjs} +2 -2
- package/dist/cli-chunks/{context-cQXupHub.cjs → context-CqoGNt7d.cjs} +1 -1
- package/dist/cli-chunks/{create-D2dSw7bl.cjs → create-us7swTbU.cjs} +1 -1
- package/dist/cli-chunks/{dev-D6WhI3cC.cjs → dev-Bf49EoR8.cjs} +5 -5
- package/dist/cli-chunks/{doctor-CtNS5Tt2.cjs → doctor-CzETlRvH.cjs} +1 -1
- package/dist/cli-chunks/{index-B1w-Jpba.cjs → index-BMhV2-vd.cjs} +14 -14
- package/dist/cli-chunks/{index-C4y2G95g.cjs → index-Cd37cCQM.cjs} +1 -1
- package/dist/cli-chunks/{login-D-ZK-n1E.cjs → login-Cb5ShNVQ.cjs} +2 -2
- package/dist/cli-chunks/{project-vite-J4lrUja0.cjs → project-vite-WP6NzC3p.cjs} +1 -1
- package/dist/cli-chunks/{remote-BZNHAL5_.cjs → remote-Co84uKvV.cjs} +4 -4
- package/dist/cli-chunks/{session-5ryBp2wZ.cjs → session-9A8AY7YK.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- 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 +3 -1
- package/skill/references/api-protocol.md +0 -10
- package/skill/references/api-root.md +153 -353
- package/skill/references/safety-boundaries.md +6 -9
- package/skill/scripts/sync-references.mjs +10 -20
- 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
|
|
214
|
-
const
|
|
215
|
-
const
|
|
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
|
-
${
|
|
307
|
-
|
|
308
|
-
${runtimeEnvironment}
|
|
304
|
+
${quickStart}
|
|
309
305
|
|
|
310
|
-
${
|
|
306
|
+
${rewriteBundledRecipeLinks(errorGuide)}
|
|
311
307
|
|
|
312
308
|
## Public modules
|
|
313
309
|
|
|
314
310
|
${publicCapabilities}
|
|
315
311
|
|
|
316
|
-
${
|
|
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.
|
|
3
|
+
"skillVersion": "0.6.8-alpha.0+skill.e34106bdd1de",
|
|
4
4
|
"sdk": {
|
|
5
5
|
"package": "@heybox/hb-sdk",
|
|
6
|
-
"version": "0.6.
|
|
7
|
-
"compatibility": "0.6.
|
|
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-
|
|
10
|
+
"integrity": "sha256-e34106bdd1dea827b5d991d2142e079bbdfa3cb4288141e1a6c7418ec2bf8ced"
|
|
11
11
|
}
|