@heybox/hb-sdk 0.7.3 → 0.7.4-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.
Files changed (44) hide show
  1. package/CHANGELOG.md +48 -1
  2. package/README.md +5 -0
  3. package/dist/cli-chunks/{build-0sZ873iU.cjs → build-BqGFRLe-.cjs} +2 -2
  4. package/dist/cli-chunks/{context-DNQEI7m7.cjs → context-DTr3hRTv.cjs} +6 -19
  5. package/dist/cli-chunks/{create-BkE71M2U.cjs → create-OkiiiH4I.cjs} +1 -1
  6. package/dist/cli-chunks/{dev-_tBlQ2WO.cjs → dev-j7W9R7ew.cjs} +798 -139
  7. package/dist/cli-chunks/{doctor-B1wk8IpC.cjs → doctor-BO0vkDny.cjs} +1 -1
  8. package/dist/cli-chunks/{index-BbDsxI94.cjs → index-CZuvk1Rg.cjs} +1 -1
  9. package/dist/cli-chunks/{index-CIucOD2H.cjs → index-CyEqCbeu.cjs} +24 -21
  10. package/dist/cli-chunks/{login-CnjEKlFT.cjs → login-CuAGltGs.cjs} +2 -2
  11. package/dist/cli-chunks/{project-vite-ESaxoAE1.cjs → project-vite-BUY9DgYo.cjs} +1 -1
  12. package/dist/cli-chunks/{remote-BaGzge7R.cjs → remote-tPMcxgpi.cjs} +4 -4
  13. package/dist/cli-chunks/{session-C9KHqijL.cjs → session-BUjFX2U2.cjs} +1 -1
  14. package/dist/cli.cjs +1 -1
  15. package/dist/devtools/{mock-host → browser-dev-host}/index.html +3 -7
  16. package/dist/devtools/browser-dev-host/main.js +9835 -0
  17. package/dist/index.cjs.js +40 -118
  18. package/dist/index.esm.js +40 -118
  19. package/dist/protocol.cjs.js +71 -346
  20. package/dist/protocol.esm.js +72 -342
  21. package/dist/vite.cjs.js +1 -4
  22. package/dist/vite.esm.js +1 -4
  23. package/package.json +26 -9
  24. package/skill/SKILL.md +5 -5
  25. package/skill/references/api-protocol.md +102 -114
  26. package/skill/references/api-root.md +1 -1
  27. package/skill/references/cli.md +4 -2
  28. package/skill/references/recipes.md +2 -0
  29. package/skill/references/safety-boundaries.md +1 -0
  30. package/skill/scripts/sync-references.mjs +5 -1
  31. package/skill/skill.json +4 -4
  32. package/types/core/network-sanitize.d.ts +1 -1
  33. package/types/modules/auth/index.d.ts +3 -1
  34. package/types/modules/user/types.d.ts +2 -53
  35. package/types/protocol/capabilities.d.ts +2 -352
  36. package/types/protocol/constants.d.ts +1 -14
  37. package/types/protocol/dev-session.d.ts +3 -3
  38. package/types/protocol/guards.d.ts +1 -8
  39. package/types/protocol/runtime-permissions.d.ts +2 -41
  40. package/types/protocol/types.d.ts +3 -150
  41. package/types/protocol.d.ts +8 -23
  42. package/dist/devtools/mock-host/main.js +0 -7751
  43. package/types/protocol/network-policy.d.ts +0 -10
  44. package/types/protocol/trusted-user-gesture.d.ts +0 -6
@@ -1,10 +0,0 @@
1
- /** Runtime / Host 在 `network.request` 分发前拒绝的小程序服务端私有路径前缀。 */
2
- export declare const MINI_PROGRAM_NETWORK_PROTECTED_PATHS: readonly ["/user_miniprogram/runtime/auth", "/user_miniprogram/openapi/v1"];
3
- /** 使用 URL 解析后的 hostname 判断黑盒官方根域及其子域。 */
4
- export declare function isOfficialMiniProgramNetworkUrl(value: string): boolean;
5
- /**
6
- * 规范化并判断 pathname 是否命中 Runtime Auth / OpenAPI 保护前缀。
7
- * 解码失败或仍可继续解码时视为不安全路径。
8
- */
9
- export declare function isProtectedMiniProgramNetworkPath(pathname: string): boolean;
10
- export declare function normalizeMiniProgramNetworkPathname(pathname: string): string | null;
@@ -1,6 +0,0 @@
1
- export interface TrustedIframeUserGestureEnvironment {
2
- readonly activeElement: Element | null;
3
- readonly userActivation?: Pick<UserActivation, 'isActive'>;
4
- }
5
- /** 按当前浏览器消息、用户激活和目标 iframe 焦点生成请求级可信手势快照。 */
6
- export declare function computeTrustedIframeUserGesture(event: Pick<MessageEvent, 'isTrusted'>, iframe: HTMLIFrameElement, environment?: TrustedIframeUserGestureEnvironment): boolean;