@heybox/hb-sdk 0.8.0-alpha → 0.8.0-alpha.2

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 (52) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/README.md +67 -14
  3. package/THIRD_PARTY_NOTICES.md +1755 -0
  4. package/dist/cli-chunks/{build-DJWFSM1B.cjs → build-CCLWgXyA.cjs} +2 -2
  5. package/dist/cli-chunks/{context-DV2UK1Nz.cjs → context-Brh56h56.cjs} +1 -26
  6. package/dist/cli-chunks/{create-2HfoB48V.cjs → create-BZ-hi2s1.cjs} +1 -1
  7. package/dist/cli-chunks/{dev-Dgt2zS9k.cjs → dev-CoSXtEYa.cjs} +335 -516
  8. package/dist/cli-chunks/{doctor-C95gIao_.cjs → doctor-EsCYJGhV.cjs} +1 -1
  9. package/dist/cli-chunks/{index-D62ANeBv.cjs → index-BL5eEPap.cjs} +14 -14
  10. package/dist/cli-chunks/{index-BjoSXl8C.cjs → index-CS6Q0o5C.cjs} +1 -1
  11. package/dist/cli-chunks/{index.esm-CigcxJ2B.cjs → index.esm-BoBHPfpq.cjs} +5 -5
  12. package/dist/cli-chunks/{login-Cumknwdx.cjs → login-CILLxGuf.cjs} +2 -2
  13. package/dist/cli-chunks/{project-vite-CcE-HMmd.cjs → project-vite-Qu6Xe9Dn.cjs} +1 -1
  14. package/dist/cli-chunks/{remote-DDdP3xcE.cjs → remote-DRuTQ51u.cjs} +4 -4
  15. package/dist/cli-chunks/{session-BDi_AZSv.cjs → session-D-_N3WVL.cjs} +1 -1
  16. package/dist/cli.cjs +1 -1
  17. package/dist/devtools/browser-dev-host/assets/browser-dev-host-uq-Wac6k.js +97 -0
  18. package/dist/devtools/browser-dev-host/assets/heybox-logo-CogNENsk.svg +6 -0
  19. package/dist/devtools/browser-dev-host/assets/index-CeP6SLB3.js +567 -0
  20. package/dist/devtools/browser-dev-host/assets/index-KD2f3Jdz.css +1 -0
  21. package/dist/devtools/browser-dev-host/assets/workbench-state-D-1U0JRq.js +5 -0
  22. package/dist/devtools/browser-dev-host/index.html +6 -435
  23. package/dist/index.cjs.js +924 -28
  24. package/dist/index.esm.js +924 -29
  25. package/dist/protocol.cjs.js +208 -6
  26. package/dist/protocol.esm.js +182 -7
  27. package/dist/vite.cjs.js +1 -1
  28. package/dist/vite.esm.js +1 -1
  29. package/package.json +23 -9
  30. package/skill/SKILL.md +9 -5
  31. package/skill/references/api-protocol.md +99 -3
  32. package/skill/references/api-root.md +141 -14
  33. package/skill/references/cli.md +21 -17
  34. package/skill/references/examples.md +29 -0
  35. package/skill/references/recipes.md +105 -1
  36. package/skill/references/safety-boundaries.md +11 -0
  37. package/skill/scripts/sync-references.mjs +34 -2
  38. package/skill/skill.json +4 -4
  39. package/types/core/client.d.ts +17 -1
  40. package/types/core/sdk.d.ts +3 -0
  41. package/types/core/singleton.d.ts +3 -0
  42. package/types/index.d.ts +4 -2
  43. package/types/modules/files/index.d.ts +5 -0
  44. package/types/modules/files/registry.d.ts +35 -0
  45. package/types/modules/files/types.d.ts +159 -0
  46. package/types/modules/network/index.d.ts +50 -3
  47. package/types/protocol/capabilities.d.ts +2 -2
  48. package/types/protocol/constants.d.ts +1 -1
  49. package/types/protocol/guards.d.ts +1 -1
  50. package/types/protocol/types.d.ts +1 -1
  51. package/types/protocol.d.ts +4 -3
  52. package/dist/devtools/browser-dev-host/main.js +0 -12263
@@ -4,7 +4,7 @@ var fs$1 = require('node:fs');
4
4
  var fs = require('node:fs/promises');
5
5
  var os = require('node:os');
6
6
  var path = require('node:path');
7
- var index = require('./index-D62ANeBv.cjs');
7
+ var index = require('./index-BL5eEPap.cjs');
8
8
  require('node:module');
9
9
  require('path');
10
10
  require('os');
@@ -234,19 +234,19 @@ function requireArgument () {
234
234
 
235
235
  var command = {};
236
236
 
237
- const require$5 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-D62ANeBv.cjs', document.baseURI).href)));
237
+ const require$5 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-BL5eEPap.cjs', document.baseURI).href)));
238
238
  function __require$4() { return require$5("node:events"); }
239
239
 
240
- const require$4 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-D62ANeBv.cjs', document.baseURI).href)));
240
+ const require$4 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-BL5eEPap.cjs', document.baseURI).href)));
241
241
  function __require$3() { return require$4("node:child_process"); }
242
242
 
243
- const require$3 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-D62ANeBv.cjs', document.baseURI).href)));
243
+ const require$3 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-BL5eEPap.cjs', document.baseURI).href)));
244
244
  function __require$2() { return require$3("node:path"); }
245
245
 
246
- const require$2 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-D62ANeBv.cjs', document.baseURI).href)));
246
+ const require$2 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-BL5eEPap.cjs', document.baseURI).href)));
247
247
  function __require$1() { return require$2("node:fs"); }
248
248
 
249
- const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-D62ANeBv.cjs', document.baseURI).href)));
249
+ const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/index-BL5eEPap.cjs', document.baseURI).href)));
250
250
  function __require() { return require$1("node:process"); }
251
251
 
252
252
  var help = {};
@@ -13347,7 +13347,7 @@ function getPathname(pathWithQuery) {
13347
13347
  }
13348
13348
 
13349
13349
  const CLI_VERSION_PLACEHOLDER = ['__HB', 'SDK', 'CLI', 'VERSION__'].join('_');
13350
- const BUILT_CLI_VERSION = '0.8.0-alpha';
13350
+ const BUILT_CLI_VERSION = '0.8.0-alpha.2';
13351
13351
  const PACKAGE_JSON_CANDIDATES = [
13352
13352
  path.resolve(__dirname, '..', '..', 'package.json'),
13353
13353
  path.resolve(__dirname, '..', 'package.json'),
@@ -13682,35 +13682,35 @@ function createCommandLoggerResolver(options) {
13682
13682
  };
13683
13683
  }
13684
13684
  const defaultClearLoginStatus = async (...args) => {
13685
- const { clearLoginStatus } = await Promise.resolve().then(function () { return require('./login-Cumknwdx.cjs'); });
13685
+ const { clearLoginStatus } = await Promise.resolve().then(function () { return require('./login-CILLxGuf.cjs'); });
13686
13686
  return clearLoginStatus(...args);
13687
13687
  };
13688
13688
  const defaultLoginToHeybox = async (...args) => {
13689
- const { loginToHeybox } = await Promise.resolve().then(function () { return require('./login-Cumknwdx.cjs'); });
13689
+ const { loginToHeybox } = await Promise.resolve().then(function () { return require('./login-CILLxGuf.cjs'); });
13690
13690
  return loginToHeybox(...args);
13691
13691
  };
13692
13692
  const defaultPrintLoginStatus = async (...args) => {
13693
- const { printLoginStatus } = await Promise.resolve().then(function () { return require('./login-Cumknwdx.cjs'); });
13693
+ const { printLoginStatus } = await Promise.resolve().then(function () { return require('./login-CILLxGuf.cjs'); });
13694
13694
  return printLoginStatus(...args);
13695
13695
  };
13696
13696
  const defaultRunBuildCommand = async (...args) => {
13697
- const { runBuildCommand } = await Promise.resolve().then(function () { return require('./build-DJWFSM1B.cjs'); });
13697
+ const { runBuildCommand } = await Promise.resolve().then(function () { return require('./build-CCLWgXyA.cjs'); });
13698
13698
  return runBuildCommand(...args);
13699
13699
  };
13700
13700
  const defaultRunCreateCommand = async (...args) => {
13701
- const { runCreateCommand } = await Promise.resolve().then(function () { return require('./create-2HfoB48V.cjs'); });
13701
+ const { runCreateCommand } = await Promise.resolve().then(function () { return require('./create-BZ-hi2s1.cjs'); });
13702
13702
  return runCreateCommand(...args);
13703
13703
  };
13704
13704
  const defaultRunDevCommand = async (...args) => {
13705
- const { runDevCommand } = await Promise.resolve().then(function () { return require('./dev-Dgt2zS9k.cjs'); }).then(function (n) { return n.dev; });
13705
+ const { runDevCommand } = await Promise.resolve().then(function () { return require('./dev-CoSXtEYa.cjs'); }).then(function (n) { return n.dev; });
13706
13706
  return runDevCommand(...args);
13707
13707
  };
13708
13708
  const defaultRunDoctorCommand = async (...args) => {
13709
- const { runDoctorCommand } = await Promise.resolve().then(function () { return require('./doctor-C95gIao_.cjs'); });
13709
+ const { runDoctorCommand } = await Promise.resolve().then(function () { return require('./doctor-EsCYJGhV.cjs'); });
13710
13710
  return runDoctorCommand(...args);
13711
13711
  };
13712
13712
  const defaultRunRemoteCommand = async (...args) => {
13713
- const { runRemoteCommand } = await Promise.resolve().then(function () { return require('./remote-DDdP3xcE.cjs'); });
13713
+ const { runRemoteCommand } = await Promise.resolve().then(function () { return require('./remote-DRuTQ51u.cjs'); });
13714
13714
  return runRemoteCommand(...args);
13715
13715
  };
13716
13716
  function resolveStandaloneLogger(options, verbose) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index$2 = require('./index-D62ANeBv.cjs');
3
+ var index$2 = require('./index-BL5eEPap.cjs');
4
4
  var require$$0$3 = require('fs');
5
5
  var require$$0$2 = require('crypto');
6
6
  var require$$1$2 = require('path');
@@ -11,8 +11,8 @@ var require$$0$4 = require('url');
11
11
  var require$$0 = require('zlib');
12
12
  var require$$0$1 = require('buffer');
13
13
  var require$$1 = require('util');
14
- var index = require('./index-D62ANeBv.cjs');
15
- var dev = require('./dev-Dgt2zS9k.cjs');
14
+ var index = require('./index-BL5eEPap.cjs');
15
+ var dev = require('./dev-CoSXtEYa.cjs');
16
16
  require('node:module');
17
17
  require('node:fs');
18
18
  require('node:fs/promises');
@@ -27,8 +27,8 @@ require('node:net');
27
27
  require('node:crypto');
28
28
  require('node:dns/promises');
29
29
  require('node:http');
30
- require('./context-DV2UK1Nz.cjs');
31
- require('./session-BDi_AZSv.cjs');
30
+ require('./context-Brh56h56.cjs');
31
+ require('./session-D-_N3WVL.cjs');
32
32
  require('fs');
33
33
  require('constants');
34
34
  require('./runtime-permission-env-CjsCe5bp.cjs');
@@ -40,7 +40,7 @@ require('node:buffer');
40
40
  require('node:url');
41
41
  require('node:util');
42
42
  require('node:child_process');
43
- require('./project-vite-CcE-HMmd.cjs');
43
+ require('./project-vite-Qu6Xe9Dn.cjs');
44
44
 
45
45
  var bufferUtil = {exports: {}};
46
46
 
@@ -3,9 +3,9 @@
3
3
  var promises = require('node:readline/promises');
4
4
  var node_crypto = require('node:crypto');
5
5
  var node_http = require('node:http');
6
- var session = require('./session-BDi_AZSv.cjs');
6
+ var session = require('./session-D-_N3WVL.cjs');
7
7
  var browser = require('./browser-RAy8e8cV.cjs');
8
- var index = require('./index-D62ANeBv.cjs');
8
+ var index = require('./index-BL5eEPap.cjs');
9
9
  require('node:path');
10
10
  require('fs');
11
11
  require('constants');
@@ -5,7 +5,7 @@ var fs$1 = require('node:fs/promises');
5
5
  var node_module = require('node:module');
6
6
  var path = require('node:path');
7
7
  var node_url = require('node:url');
8
- var index = require('./index-D62ANeBv.cjs');
8
+ var index = require('./index-BL5eEPap.cjs');
9
9
 
10
10
  function findProjectRoot(startDir) {
11
11
  let current = path.resolve(startDir);
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var promises = require('node:readline/promises');
4
- var index = require('./index-D62ANeBv.cjs');
5
- var session = require('./session-BDi_AZSv.cjs');
4
+ var index = require('./index-BL5eEPap.cjs');
5
+ var session = require('./session-D-_N3WVL.cjs');
6
6
  var childProcess = require('node:child_process');
7
7
  var fs = require('node:fs');
8
8
  var fs$1 = require('node:fs/promises');
@@ -10,7 +10,7 @@ var path = require('node:path');
10
10
  var runtimePermissionEnv = require('./runtime-permission-env-CjsCe5bp.cjs');
11
11
  var runtimeGate = require('./runtime-gate-DFjw66kF.cjs');
12
12
  var node_crypto = require('node:crypto');
13
- var context = require('./context-DV2UK1Nz.cjs');
13
+ var context = require('./context-Brh56h56.cjs');
14
14
  require('node:module');
15
15
  require('path');
16
16
  require('os');
@@ -271,7 +271,7 @@ function createDefaultCosClient(uploadToken, COS) {
271
271
  };
272
272
  }
273
273
  async function loadCosConstructor() {
274
- const cosModule = await Promise.resolve().then(function () { return require('./index-BjoSXl8C.cjs'); }).then(function (n) { return n.index; });
274
+ const cosModule = await Promise.resolve().then(function () { return require('./index-CS6Q0o5C.cjs'); }).then(function (n) { return n.index; });
275
275
  return cosModule.default;
276
276
  }
277
277
  function formatSize(bytes) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D62ANeBv.cjs');
3
+ var index = require('./index-BL5eEPap.cjs');
4
4
  var node_crypto = require('node:crypto');
5
5
  var path = require('node:path');
6
6
  var require$$0$2 = require('fs');
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./cli-chunks/index-D62ANeBv.cjs');
3
+ var index = require('./cli-chunks/index-BL5eEPap.cjs');
4
4
  require('node:module');
5
5
  require('node:fs');
6
6
  require('node:fs/promises');