@workclaw/openclaw-workclaw 1.0.32 → 1.0.33

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 (359) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/ipaddr.js +4 -0
  3. package/dist/_virtual/jiti.js +4 -0
  4. package/dist/_virtual/main.js +4 -0
  5. package/dist/api.js +4 -373
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +89 -1919
  9. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js +163 -0
  10. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js +32 -0
  11. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js +188 -0
  12. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/browser.js +25 -0
  13. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/account-id-C6v13Xic.js +4 -0
  14. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/auth-profiles-Db4Eg6ht.js +24 -0
  15. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.exec-runtime--1hhz8C_.js +46 -0
  16. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.schemas-BqpDemKo.js +32 -0
  17. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boolean-DbfRNnYl.js +14 -0
  18. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boundary-file-read-BymsBHso.js +172 -0
  19. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-Cuj8sKt6.js +18 -0
  20. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-dir-Cq5y_NKM.js +109 -0
  21. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-plugin-metadata-BJMD48hn.js +260 -0
  22. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/channel-entry-contract-BoTfqLnn.js +176 -0
  23. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/cli-name-DPC4W7Fo.js +22 -0
  24. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-format-LqDv8ows.js +24 -0
  25. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-registration-Dxq1bCXM.js +16 -0
  26. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry-normalize-Bk0WYUI0.js +94 -0
  27. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry.data-D99VdOlX.js +940 -0
  28. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config--3Msyf4f.js +20 -0
  29. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-C6kUPI7B.js +33 -0
  30. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-DB8FqQH8.js +82 -0
  31. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/conversation-binding-C3EIaK9Z.js +19 -0
  32. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/core-DpZtjMWz.js +51 -0
  33. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dedupe-DM7iBj7C.js +60 -0
  34. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/discovery-Cgp95o2R.js +649 -0
  35. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dispatch-2DAqwFVE.js +33 -0
  36. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/errors-Dyla6m1G.js +13 -0
  37. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-approvals-CLXc_BYU.js +212 -0
  38. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-defaults-DBnaZeLQ.js +13 -0
  39. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-jRxy02_4.js +9 -0
  40. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safe-bin-trust-DOmID2EO.js +638 -0
  41. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safety-C8v0dsfc.js +24 -0
  42. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-loader-B83leEeb.js +10 -0
  43. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-runtime-B04URCVZ.js +14 -0
  44. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-identity-sp9axE-E.js +411 -0
  45. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-lock-D016H3tC.js +5 -0
  46. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-control-ui-origins-B-lkqr3D.js +23 -0
  47. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-request-scope-BEWoJTx4.js +3 -0
  48. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/global-singleton-DhGoboiG.js +14 -0
  49. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/helpers-CI2CkXhU.js +7 -0
  50. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/home-dir-BEqRdfoa.js +67 -0
  51. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/host-env-security-B-Ebh6At.js +334 -0
  52. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ids-By7Nkc8R.js +76 -0
  53. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/inbound-path-policy-CQkSSeSi.js +26 -0
  54. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/internal-hooks-D52pUqod.js +5 -0
  55. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/io-DDkf_FUu.js +14328 -0
  56. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ip-CdfoCORt.js +2 -0
  57. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/json-files-DACY7Zw5.js +22 -0
  58. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/legacy-names-C7VUgVdg.js +5 -0
  59. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/links-BlUEqVE8.js +15 -0
  60. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/loader-DYJR63Q1.js +27 -0
  61. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/logger-BMuqDP66.js +26 -0
  62. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manager-szyCqvou.js +22 -0
  63. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-CjPIwluH.js +409 -0
  64. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-registry-CK0zNybm.js +394 -0
  65. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/map-size-DhG4ditB.js +15 -0
  66. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/message-channel-DXsjCySM.js +32 -0
  67. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/mime-BjR-Aw-Q.js +42 -0
  68. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/min-host-version-CmguvhGB.js +49 -0
  69. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-auth-markers-YVQDqG1J.js +8 -0
  70. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-selection-cli-U7l5Ifek.js +14 -0
  71. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/models-config-B-YHRI3g.js +40 -0
  72. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/native-command-session-targets-BW3SPx-T.js +11 -0
  73. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/network-mode-D3yzFBsD.js +15 -0
  74. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-require-DvwmVoHm.js +14 -0
  75. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-sqlite-FGjwOqiS.js +3 -0
  76. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/openclaw-root-BNWw3cXT.js +69 -0
  77. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/order-6WHL2fZu.js +26 -0
  78. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/parse-duration-amE_QFsj.js +42 -0
  79. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/path-safety-CKqzLERR.js +308 -0
  80. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/paths-LCYGfrV7.js +95 -0
  81. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/process-scoped-map-Cv-PkzaO.js +11 -0
  82. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/profile-utils-Dh8DVvPv.js +17 -0
  83. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/prototype-keys-BKGE_uzN.js +11 -0
  84. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-env-vars-DDfJbkrO.js +150 -0
  85. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-id-B3nZBDJJ.js +15 -0
  86. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-runtime-O-n0cjZo.js +22 -0
  87. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/public-surface-loader-CSDxBey4.js +14 -0
  88. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/redact-D4nea1HF.js +2 -0
  89. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ref-contract-B1q5N0Lz.js +35 -0
  90. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-DE4nHTjg.js +54 -0
  91. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-loaded-B8D6rQiJ.js +62 -0
  92. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-nEl7QZ30.js +3 -0
  93. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-Clo2XF6T.js +27 -0
  94. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-channel-state-Ck2VkX9T.js +20 -0
  95. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-guard-DqVOvWAZ.js +23 -0
  96. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-state-Cd3jnHgw.js +4 -0
  97. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/schema-validator-Bo7NeV8w.js +3 -0
  98. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/scp-host-CiFVRWHy.js +38 -0
  99. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/sdk-alias-Bo1huP7M.js +315 -0
  100. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-binding-service-D6sb-LrK.js +9 -0
  101. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-write-lock-Dk7FbMr_.js +6 -0
  102. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-helpers-ChrkNnYE.js +5 -0
  103. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-registry-BPL6c_Zk.js +16 -0
  104. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-wizard-helpers-DnMkYslk.js +19 -0
  105. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/skills-Djbt9HGh.js +21 -0
  106. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/slots-PynIdqZ_.js +10 -0
  107. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-coerce-BUSzWgUA.js +25 -0
  108. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-normalization-DIJRAo0o.js +20 -0
  109. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/strip-inbound-meta-WCHWW8is.js +12 -0
  110. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/subsystem-BHv2zSx6.js +15 -0
  111. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/system-events-CfifhXT7.js +3 -0
  112. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tailscale-status-Ch1LdrMM.js +5 -0
  113. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/task-registry-2LJDZL29.js +15 -0
  114. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/telegram-command-config-TdpOuZ__.js +66 -0
  115. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/terminal-link-B3nCYQJi.js +10 -0
  116. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/theme-CVJvORNs.js +27 -0
  117. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking-_rqwdGD8.js +44 -0
  118. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking.shared-Dginn1He.js +14 -0
  119. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tmp-openclaw-dir-DrKSsX71.js +103 -0
  120. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tool-policy-CwZyJfFc.js +300 -0
  121. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types-BfKfz-lz.js +38 -0
  122. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types.secrets-C9RpLzA0.js +53 -0
  123. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js +36 -0
  124. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/version-b06Uhxnq.js +82 -0
  125. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/workspace-oVBetctb.js +20 -0
  126. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema-Cpw1qu03.js +1299 -0
  127. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.agent-runtime-D48J52r_.js +620 -0
  128. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.core-BrzjtZhM.js +597 -0
  129. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-core-CX8AFeyJ.js +1354 -0
  130. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-whatsapp-7E9bf9oA.js +130 -0
  131. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.sensitive-BFZ4qze6.js +5 -0
  132. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.generated.js +14275 -0
  133. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.js +16 -0
  134. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/anthropic.js +314 -0
  135. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/github-copilot.js +256 -0
  136. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-antigravity.js +315 -0
  137. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-gemini-cli.js +402 -0
  138. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/index.js +41 -0
  139. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/oauth-page.js +103 -0
  140. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/openai-codex.js +335 -0
  141. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/pkce.js +20 -0
  142. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/system/policy.js +34 -0
  143. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/any/any.js +8 -0
  144. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/argument/argument.js +8 -0
  145. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/array/array.js +8 -0
  146. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.js +8 -0
  147. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.js +30 -0
  148. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.js +8 -0
  149. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.js +8 -0
  150. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/clone/type.js +7 -0
  151. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/clone/value.js +32 -0
  152. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/composite/composite.js +37 -0
  153. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/computed/computed.js +8 -0
  154. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/const/const.js +36 -0
  155. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.js +8 -0
  156. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.js +9 -0
  157. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/create/immutable.js +29 -0
  158. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/create/type.js +17 -0
  159. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/date/date.js +8 -0
  160. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/discard/discard.js +10 -0
  161. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/enum/enum.js +15 -0
  162. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/error/error.js +8 -0
  163. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.js +18 -0
  164. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.js +8 -0
  165. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.js +21 -0
  166. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.js +265 -0
  167. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.js +24 -0
  168. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.js +19 -0
  169. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends.js +16 -0
  170. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.js +18 -0
  171. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.js +8 -0
  172. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract.js +21 -0
  173. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/function/function.js +8 -0
  174. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/kind.js +176 -0
  175. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/type.js +272 -0
  176. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/value.js +62 -0
  177. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.js +21 -0
  178. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.js +20 -0
  179. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.js +21 -0
  180. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.js +61 -0
  181. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.js +9 -0
  182. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.js +86 -0
  183. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/integer/integer.js +8 -0
  184. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.js +11 -0
  185. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.js +31 -0
  186. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.js +16 -0
  187. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.js +7 -0
  188. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.js +25 -0
  189. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.js +55 -0
  190. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.js +7 -0
  191. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.js +7 -0
  192. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.js +7 -0
  193. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.js +8 -0
  194. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.js +19 -0
  195. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.js +36 -0
  196. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.js +31 -0
  197. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/literal/literal.js +12 -0
  198. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.js +11 -0
  199. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.js +76 -0
  200. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/module/compute.js +122 -0
  201. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/module/module.js +28 -0
  202. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/never/never.js +8 -0
  203. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/not/not.js +8 -0
  204. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/null/null.js +8 -0
  205. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/number/number.js +8 -0
  206. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/object/object.js +15 -0
  207. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.js +21 -0
  208. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.js +19 -0
  209. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit.js +48 -0
  210. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.js +18 -0
  211. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/optional/optional.js +21 -0
  212. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.js +9 -0
  213. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.js +19 -0
  214. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/partial/partial.js +53 -0
  215. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.js +16 -0
  216. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.js +23 -0
  217. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.js +19 -0
  218. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick.js +48 -0
  219. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/promise/promise.js +8 -0
  220. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.js +18 -0
  221. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.js +21 -0
  222. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.js +8 -0
  223. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/record/record.js +71 -0
  224. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.js +15 -0
  225. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/ref/ref.js +12 -0
  226. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.js +10 -0
  227. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.js +18 -0
  228. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/required/required.js +52 -0
  229. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/rest/rest.js +10 -0
  230. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.js +9 -0
  231. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/sets/set.js +30 -0
  232. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/string/string.js +8 -0
  233. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.js +8 -0
  234. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.js +12 -0
  235. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.js +27 -0
  236. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.js +38 -0
  237. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.js +128 -0
  238. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.js +21 -0
  239. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.js +45 -0
  240. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.js +12 -0
  241. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.js +11 -0
  242. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/transform/transform.js +37 -0
  243. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.js +8 -0
  244. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/type/index.js +5 -0
  245. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/type/type.js +126 -0
  246. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.js +8 -0
  247. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.js +8 -0
  248. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union-create.js +8 -0
  249. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.js +26 -0
  250. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union.js +9 -0
  251. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.js +8 -0
  252. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.js +8 -0
  253. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/void/void.js +8 -0
  254. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/value/guard/guard.js +18 -0
  255. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/dotenv/lib/main.js +318 -0
  256. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/ipaddr.js/lib/ipaddr.js +805 -0
  257. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/dist/jiti.js +3869 -0
  258. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/lib/jiti.js +26 -0
  259. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/json5/dist/index.js +1085 -0
  260. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/anchors.js +12 -0
  261. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/applyReviver.js +45 -0
  262. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/createNode.js +58 -0
  263. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/log.js +8 -0
  264. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Alias.js +111 -0
  265. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Collection.js +138 -0
  266. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Node.js +36 -0
  267. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Pair.js +35 -0
  268. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Scalar.js +25 -0
  269. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLMap.js +139 -0
  270. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +111 -0
  271. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +59 -0
  272. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/identity.js +52 -0
  273. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/toJS.js +25 -0
  274. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/parse/lexer.js +6 -0
  275. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +55 -0
  276. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +50 -0
  277. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +37 -0
  278. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +65 -0
  279. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +131 -0
  280. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringify.js +119 -0
  281. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +146 -0
  282. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyComment.js +12 -0
  283. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyPair.js +128 -0
  284. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyString.js +278 -0
  285. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/visit.js +104 -0
  286. package/dist/packages/plugin/src/accounts.js +199 -0
  287. package/dist/packages/plugin/src/api/accounts-api.js +133 -0
  288. package/dist/packages/plugin/src/api/prompts-api.js +105 -0
  289. package/dist/packages/plugin/src/api/session-api.js +174 -0
  290. package/dist/packages/plugin/src/api/skills-api.js +60 -0
  291. package/dist/packages/plugin/src/api/workspace.js +30 -0
  292. package/dist/packages/plugin/src/channel.js +214 -0
  293. package/dist/packages/plugin/src/config-schema.js +51 -0
  294. package/dist/packages/plugin/src/connection/workclaw-client.js +282 -0
  295. package/dist/packages/plugin/src/gateway/agent-handlers.js +407 -0
  296. package/dist/packages/plugin/src/gateway/config-writer.js +149 -0
  297. package/dist/{cron-tasks-handler-C-mP3VmV.js → packages/plugin/src/gateway/cron-tasks-handler.js} +75 -6
  298. package/dist/packages/plugin/src/gateway/message-context.js +408 -0
  299. package/dist/packages/plugin/src/gateway/message-dispatcher.js +517 -0
  300. package/dist/packages/plugin/src/gateway/reconnect.js +177 -0
  301. package/dist/packages/plugin/src/gateway/skills-handler.js +511 -0
  302. package/dist/packages/plugin/src/gateway/skills-list-handler.js +172 -0
  303. package/dist/packages/plugin/src/gateway/tools-list-handler.js +88 -0
  304. package/dist/packages/plugin/src/gateway/workclaw-gateway.js +208 -0
  305. package/dist/packages/plugin/src/media/upload.js +126 -0
  306. package/dist/packages/plugin/src/outbound/index.js +88 -0
  307. package/dist/packages/plugin/src/outbound/workclaw-sender.js +79 -0
  308. package/dist/packages/plugin/src/setup-core.js +22 -0
  309. package/dist/packages/plugin/src/setup-surface.js +338 -0
  310. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/api/index.js +184 -0
  311. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/index.js +29 -0
  312. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/params.js +129 -0
  313. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/sync.js +139 -0
  314. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/params.js +61 -0
  315. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/sync.js +85 -0
  316. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/params.js +61 -0
  317. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/sync.js +85 -0
  318. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/notify/sync.js +102 -0
  319. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/params.js +67 -0
  320. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/sync.js +85 -0
  321. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/params.js +140 -0
  322. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/sync.js +113 -0
  323. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/index.js +99 -0
  324. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/tool-context.js +28 -0
  325. package/dist/setup-entry.js +1 -168
  326. package/dist/src/config-schema.d.ts +3 -85
  327. package/dist/src/config-schema.d.ts.map +1 -1
  328. package/dist/src/gateway/cron-tasks-handler.d.ts +2 -1
  329. package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -1
  330. package/dist/src/gateway/tools-list-handler.d.ts.map +1 -1
  331. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -1
  332. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +0 -3
  333. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -1
  334. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +0 -3
  335. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -1
  336. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +0 -3
  337. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -1
  338. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +0 -3
  339. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -1
  340. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +0 -3
  341. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -1
  342. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +0 -3
  343. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -1
  344. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +0 -3
  345. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -1
  346. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +0 -3
  347. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -1
  348. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +0 -3
  349. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -1
  350. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +0 -3
  351. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -1
  352. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +0 -3
  353. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -1
  354. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +9 -0
  355. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
  356. package/openclaw.plugin.json +56 -56
  357. package/package.json +2 -2
  358. package/dist/channel-RYqEIK50.js +0 -49793
  359. package/dist/jiti-4i2h0FGP.js +0 -4814
@@ -0,0 +1,511 @@
1
+ import { Buffer } from "node:buffer";
2
+ import { exec } from "node:child_process";
3
+ import fs from "node:fs/promises";
4
+ import http from "node:http";
5
+ import https from "node:https";
6
+ import os from "node:os";
7
+ import path from "node:path";
8
+ import process$1 from "node:process";
9
+ import { promisify } from "node:util";
10
+ const execAsync = promisify(exec);
11
+ const TOPIC_TO_CALLBACK_URL = {
12
+ "skills/add": "/open-apis/v1/claw/do/skills/result",
13
+ "skills/update": "/open-apis/v1/claw/do/skills/result",
14
+ "skills/remove": "/open-apis/v1/claw/do/skills/result",
15
+ "skills/list": "/open-apis/v1/claw/do/skills/result",
16
+ "skills/get": "/open-apis/v1/claw/do/skills/result",
17
+ "skills/invoke": "/open-apis/v1/claw/do/skills/result"
18
+ };
19
+ async function handleSkillsEvent(eventData, token, baseUrl, appKey, log) {
20
+ const { topic, data } = eventData;
21
+ log?.info?.(`[SkillsHandler] Processing ${topic}, data: ${JSON.stringify(data)}`);
22
+ try {
23
+ let result;
24
+ switch (topic) {
25
+ case "skills/add":
26
+ result = await handleCreateSkill(data, log);
27
+ break;
28
+ case "skills/update":
29
+ result = await handleUpdateSkill(data, log);
30
+ break;
31
+ case "skills/remove":
32
+ result = await handleDeleteSkill(data, log);
33
+ break;
34
+ case "skills/list":
35
+ result = await handleListSkills(data, log);
36
+ break;
37
+ case "skills/get":
38
+ result = await handleGetSkill(data, log);
39
+ break;
40
+ case "skills/invoke":
41
+ result = await handleInvokeSkill(data, log);
42
+ break;
43
+ default:
44
+ throw new Error(`Unknown topic: ${topic}`);
45
+ }
46
+ await sendCallback(
47
+ baseUrl,
48
+ topic,
49
+ {
50
+ userId: result.userId || "",
51
+ agentId: "",
52
+ appKey,
53
+ agentIds: Array.isArray(result.agentIds) ? result.agentIds : result.agentIds || 0,
54
+ dotype: result.status || topic.split("/")[1],
55
+ doStatus: true,
56
+ doErrorMsg: "",
57
+ dataList: [
58
+ {
59
+ typeStr: "",
60
+ name: result.skillName || "",
61
+ description: ""
62
+ }
63
+ ]
64
+ },
65
+ token,
66
+ log
67
+ );
68
+ log?.info?.(`[SkillsHandler] ${topic} completed, callback sent`);
69
+ if (["skills/add", "skills/update", "skills/remove"].includes(topic)) {
70
+ try {
71
+ log?.info?.(`[SkillsHandler] rescan...`);
72
+ await execAsync(`openclaw skills rescan`, { timeout: 2e3 });
73
+ await execAsync(`openclaw skills reload --force`, { timeout: 2e3 });
74
+ await execAsync(`openclaw skills list`, { timeout: 2e3 });
75
+ log?.info?.(`[SkillsHandler] OpenClaw skills rescaned successfully`);
76
+ } catch (err) {
77
+ log?.error?.(`[SkillsHandler] Failed to rescan OpenClaw skills: ${err.message}`);
78
+ await execAsync(`openclaw skills restart`, { timeout: 2e4 });
79
+ }
80
+ }
81
+ } catch (err) {
82
+ log?.error?.(`[SkillsHandler] ${topic} failed: ${err.message}`);
83
+ await sendCallback(
84
+ baseUrl,
85
+ topic,
86
+ {
87
+ userId: "",
88
+ agentId: "",
89
+ agentIds: [],
90
+ appKey,
91
+ dotype: topic.split("/")[1],
92
+ doStatus: false,
93
+ doErrorMsg: err.message,
94
+ dataList: [
95
+ {
96
+ typeStr: "",
97
+ name: "",
98
+ description: ""
99
+ }
100
+ ]
101
+ },
102
+ token,
103
+ log
104
+ );
105
+ }
106
+ }
107
+ async function sendCallback(baseUrl, topic, response, authToken, log) {
108
+ const callbackPath = TOPIC_TO_CALLBACK_URL[topic];
109
+ if (!callbackPath) {
110
+ throw new Error(`No callback URL defined for topic: ${topic}`);
111
+ }
112
+ const callbackUrl = `${baseUrl.replace(/\/$/, "")}${callbackPath}`;
113
+ const responseData = JSON.stringify(response);
114
+ log?.info?.(`[SkillsHandler] Sending callback to ${callbackUrl}, data: ${responseData}`);
115
+ const headers = {
116
+ "Content-Type": "application/json"
117
+ };
118
+ if (authToken) {
119
+ headers.Authorization = authToken.startsWith("Bearer ") ? authToken : `Bearer ${authToken}`;
120
+ }
121
+ const controller = new AbortController();
122
+ const timeoutId = setTimeout(() => controller.abort(), 3e4);
123
+ try {
124
+ const res = await fetch(callbackUrl, {
125
+ method: "POST",
126
+ headers,
127
+ body: responseData,
128
+ signal: controller.signal
129
+ });
130
+ clearTimeout(timeoutId);
131
+ if (!res.ok) {
132
+ const errorText = await res.text();
133
+ throw new Error(`HTTP ${res.status}: ${res.statusText || errorText}`);
134
+ }
135
+ log?.info?.(`[SkillsHandler] Callback sent successfully, status: ${res.status}`);
136
+ } catch (err) {
137
+ clearTimeout(timeoutId);
138
+ if (err.name === "AbortError") {
139
+ log?.error?.(`[SkillsHandler] Callback timeout after 30s: ${callbackUrl}`);
140
+ throw new Error("Callback timeout");
141
+ }
142
+ log?.error?.(`[SkillsHandler] Failed to send callback: ${err.message}`);
143
+ throw err;
144
+ }
145
+ }
146
+ async function downloadFromUrl(url) {
147
+ return new Promise((resolve, reject) => {
148
+ const client = url.startsWith("https:") ? https : http;
149
+ const req = client.get(url, (res) => {
150
+ if (res.statusCode !== 200) {
151
+ reject(new Error(`Failed to download: HTTP ${res.statusCode}`));
152
+ return;
153
+ }
154
+ const chunks = [];
155
+ res.on("data", (chunk) => {
156
+ chunks.push(chunk);
157
+ });
158
+ res.on("end", () => {
159
+ const buffer = Buffer.concat(chunks);
160
+ resolve(buffer);
161
+ });
162
+ });
163
+ req.on("error", (err) => {
164
+ reject(new Error(`Download failed: ${err.message}`));
165
+ });
166
+ req.setTimeout(3e4, () => {
167
+ req.destroy();
168
+ reject(new Error("Download timeout"));
169
+ });
170
+ });
171
+ }
172
+ function getOpenClawConfigDir() {
173
+ const homeDir = os.homedir();
174
+ return path.join(homeDir, ".openclaw");
175
+ }
176
+ async function getSkillsDir(agentId, log) {
177
+ const openclawDir = getOpenClawConfigDir();
178
+ let skillsDir = path.join(openclawDir, "workspace", "skills");
179
+ if (agentId && agentId.trim()) {
180
+ skillsDir = path.join(openclawDir, `workspace-${agentId}`, "skills");
181
+ }
182
+ try {
183
+ await fs.mkdir(skillsDir, { recursive: true });
184
+ } catch (err) {
185
+ log?.error?.(`[SkillsHandler] Failed to create skills directory: ${err.message}`);
186
+ throw new Error(`Failed to create skills directory: ${err.message}`);
187
+ }
188
+ return skillsDir;
189
+ }
190
+ async function installSkillToClaw(skillName, skillContent, agentId, log) {
191
+ try {
192
+ const isZip = skillContent.toString("utf8", 0, 2) === "PK";
193
+ if (isZip) {
194
+ log?.info?.(`[SkillsHandler] Detected ZIP file, extracting...`);
195
+ const skillsDir2 = await getSkillsDir(agentId, log);
196
+ const skillDir = path.join(skillsDir2, skillName);
197
+ const tempZipPath = path.join(skillsDir2, `${skillName}.zip`);
198
+ try {
199
+ await fs.mkdir(skillDir, { recursive: true });
200
+ log?.info?.(`[SkillsHandler] Skill directory created: ${skillDir}`);
201
+ await fs.writeFile(tempZipPath, skillContent);
202
+ log?.info?.(`[SkillsHandler] Temporary ZIP file created: ${tempZipPath}`);
203
+ if (process$1.platform === "win32") {
204
+ await execAsync(`powershell -Command "Expand-Archive -Path '${tempZipPath}' -DestinationPath '${skillDir}' -Force"`);
205
+ } else {
206
+ await execAsync(`unzip -o '${tempZipPath}' -d '${skillDir}'`);
207
+ }
208
+ log?.info?.(`[SkillsHandler] ZIP file extracted successfully to: ${skillDir}`);
209
+ await fs.unlink(tempZipPath);
210
+ log?.info?.(`[SkillsHandler] Temporary ZIP file deleted`);
211
+ return {
212
+ success: true,
213
+ message: `ZIP skill package ${skillName} installed successfully`,
214
+ path: skillDir
215
+ };
216
+ } catch (err) {
217
+ log?.error?.(`[SkillsHandler] Failed to extract ZIP file: ${err.message}`);
218
+ try {
219
+ await fs.unlink(tempZipPath);
220
+ } catch {
221
+ }
222
+ try {
223
+ await fs.rm(skillDir, { recursive: true, force: true });
224
+ } catch {
225
+ }
226
+ return {
227
+ success: false,
228
+ message: `Failed to extract ZIP file: ${err.message}`
229
+ };
230
+ }
231
+ }
232
+ let skillData;
233
+ try {
234
+ const jsonString = skillContent.toString("utf8");
235
+ skillData = JSON.parse(jsonString);
236
+ } catch (err) {
237
+ return {
238
+ success: false,
239
+ message: `Invalid skill JSON: ${err.message}`
240
+ };
241
+ }
242
+ if (!skillData.id || !skillData.name) {
243
+ return {
244
+ success: false,
245
+ message: "Missing required fields in skill: id, name"
246
+ };
247
+ }
248
+ const skillsDir = await getSkillsDir(agentId, log);
249
+ const skillFilePath = path.join(skillsDir, `${skillName}.json`);
250
+ await fs.writeFile(skillFilePath, skillContent, "utf-8");
251
+ log?.info?.(`[SkillsHandler] Skill saved to: ${skillFilePath}`);
252
+ return {
253
+ success: true,
254
+ message: `Skill ${skillName} installed successfully`,
255
+ path: skillFilePath
256
+ };
257
+ } catch (err) {
258
+ return {
259
+ success: false,
260
+ message: `Failed to install skill: ${err.message}`
261
+ };
262
+ }
263
+ }
264
+ async function installSkillToLocations(skillName, skillContent, locations, log) {
265
+ const installResults = [];
266
+ for (const agentId of locations) {
267
+ const installResult = await installSkillToClaw(skillName, skillContent, agentId, log);
268
+ if (!installResult.success) {
269
+ const error = new Error(`Failed to install skill to ${agentId ? `agent ${agentId}` : "default location"}: ${installResult.message}`);
270
+ error.code = "INSTALL_FAILED";
271
+ throw error;
272
+ }
273
+ installResults.push(installResult);
274
+ }
275
+ return installResults;
276
+ }
277
+ async function handleCreateSkill(data, log) {
278
+ const { userId, skillName, unloadUrl, mainId } = data;
279
+ const agentIds = Array.isArray(data?.agentIds) ? data.agentIds : data?.agentIds ? [data.agentIds] : [];
280
+ if (!userId || !skillName) {
281
+ const error = new Error("Missing required fields: userId, skillName");
282
+ error.code = "MISSING_FIELDS";
283
+ throw error;
284
+ }
285
+ log?.info?.(`[SkillsHandler] Creating skill: ${skillName}`);
286
+ log?.info?.(`[SkillsHandler] mainId: ${mainId}`);
287
+ if (agentIds.length > 0) {
288
+ log?.info?.(`[SkillsHandler] Target agents: ${agentIds.join(", ")}`);
289
+ }
290
+ if (unloadUrl) {
291
+ log?.info?.(`[SkillsHandler] Downloading skill from URL: ${unloadUrl}`);
292
+ try {
293
+ const skillContent = await downloadFromUrl(unloadUrl);
294
+ log?.info?.(`[SkillsHandler] Downloaded skill content, length: ${skillContent.length} bytes`);
295
+ const installLocations = [];
296
+ const hasOnlyMainId = agentIds.length === 1 && agentIds[0] === mainId;
297
+ const hasMainIdAndOthers = agentIds.includes(mainId) && agentIds.length > 1;
298
+ if (hasOnlyMainId) {
299
+ log?.info?.(`[SkillsHandler] Only mainId found, installing to default location`);
300
+ installLocations.push(void 0);
301
+ } else if (hasMainIdAndOthers) {
302
+ log?.info?.(`[SkillsHandler] mainId and other agents found, installing to default location and other agents`);
303
+ installLocations.push(void 0);
304
+ installLocations.push(...agentIds.filter((id) => id !== mainId));
305
+ } else if (agentIds.length > 0) {
306
+ log?.info?.(`[SkillsHandler] No mainId found, installing to all specified agents`);
307
+ installLocations.push(...agentIds);
308
+ } else {
309
+ log?.info?.(`[SkillsHandler] No agents specified, installing to default location`);
310
+ installLocations.push(void 0);
311
+ }
312
+ const installResults = await installSkillToLocations(skillName, skillContent, installLocations, log);
313
+ log?.info?.(`[SkillsHandler] Skill installed to ${installResults.length} locations`);
314
+ return {
315
+ userId,
316
+ skillName,
317
+ agentId: "",
318
+ agentIds: agentIds.length > 0 ? agentIds : void 0,
319
+ status: "add",
320
+ installedAt: (/* @__PURE__ */ new Date()).toISOString()
321
+ };
322
+ } catch (err) {
323
+ log?.error?.(`[SkillsHandler] Failed to create skill from URL: ${err.message}`);
324
+ throw err;
325
+ }
326
+ }
327
+ return {
328
+ userId,
329
+ skillName,
330
+ agentId: "",
331
+ agentIds: agentIds.length > 0 ? agentIds : void 0,
332
+ status: "add",
333
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
334
+ };
335
+ }
336
+ async function handleUpdateSkill(data, log) {
337
+ const { id, ...updates } = data;
338
+ if (!id) {
339
+ const error = new Error("Missing required field: id");
340
+ error.code = "MISSING_FIELDS";
341
+ throw error;
342
+ }
343
+ log?.info?.(`[SkillsHandler] Updating skill: ${id}`);
344
+ return {
345
+ id,
346
+ ...updates,
347
+ status: "updated",
348
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString()
349
+ };
350
+ }
351
+ async function deleteSkillAtLocation(skillName, agentId, log) {
352
+ try {
353
+ const skillsDir = await getSkillsDir(agentId, log);
354
+ const skillFilePath = path.join(skillsDir, `${skillName}.json`);
355
+ const skillDirPath = path.join(skillsDir, skillName);
356
+ let deleted = false;
357
+ try {
358
+ await fs.unlink(skillFilePath);
359
+ log?.info?.(`[SkillsHandler] Skill file deleted: ${skillFilePath}`);
360
+ deleted = true;
361
+ } catch {
362
+ }
363
+ try {
364
+ await fs.rm(skillDirPath, { recursive: true, force: true });
365
+ log?.info?.(`[SkillsHandler] Skill directory deleted: ${skillDirPath}`);
366
+ deleted = true;
367
+ } catch {
368
+ }
369
+ return deleted;
370
+ } catch (err) {
371
+ log?.error?.(`[SkillsHandler] Failed to delete skill at location: ${err.message}`);
372
+ return false;
373
+ }
374
+ }
375
+ async function handleDeleteSkill(data, log) {
376
+ const { userId, skillName, agentIds, mainId } = data;
377
+ const agentIdsList = Array.isArray(agentIds) ? agentIds : agentIds ? [agentIds] : [];
378
+ if (!skillName) {
379
+ const error = new Error("Missing required field: skillName");
380
+ error.code = "MISSING_FIELDS";
381
+ throw error;
382
+ }
383
+ log?.info?.(`[SkillsHandler] Deleting skill: ${skillName}`);
384
+ log?.info?.(`[SkillsHandler] mainId: ${mainId}`);
385
+ if (agentIdsList.length > 0) {
386
+ log?.info?.(`[SkillsHandler] Target agents: ${agentIdsList.join(", ")}`);
387
+ }
388
+ try {
389
+ let deleted = false;
390
+ const hasOnlyMainId = agentIdsList.length === 1 && agentIdsList[0] === mainId;
391
+ const hasMainIdAndOthers = agentIdsList.includes(mainId) && agentIdsList.length > 1;
392
+ if (hasOnlyMainId) {
393
+ log?.info?.(`[SkillsHandler] Only mainId found, deleting from default location`);
394
+ deleted = await deleteSkillAtLocation(skillName, void 0, log);
395
+ } else if (hasMainIdAndOthers) {
396
+ log?.info?.(`[SkillsHandler] mainId and other agents found, deleting from default location and other agents`);
397
+ const defaultDeleted = await deleteSkillAtLocation(skillName, void 0, log);
398
+ deleted = deleted || defaultDeleted;
399
+ for (const agentId of agentIdsList) {
400
+ if (agentId !== mainId) {
401
+ const agentDeleted = await deleteSkillAtLocation(skillName, agentId, log);
402
+ deleted = deleted || agentDeleted;
403
+ }
404
+ }
405
+ } else if (agentIdsList.length > 0) {
406
+ log?.info?.(`[SkillsHandler] No mainId found, deleting from all specified agents`);
407
+ for (const agentId of agentIdsList) {
408
+ const agentDeleted = await deleteSkillAtLocation(skillName, agentId, log);
409
+ deleted = deleted || agentDeleted;
410
+ }
411
+ } else {
412
+ log?.info?.(`[SkillsHandler] No agents specified, deleting from default location`);
413
+ deleted = await deleteSkillAtLocation(skillName, void 0, log);
414
+ }
415
+ if (!deleted) {
416
+ const error = new Error(`Skill not found: ${skillName}`);
417
+ error.code = "SKILL_NOT_FOUND";
418
+ throw error;
419
+ }
420
+ return {
421
+ userId,
422
+ skillName,
423
+ agentId: "",
424
+ agentIds: agentIdsList.length > 0 ? agentIdsList : void 0,
425
+ status: "remove",
426
+ deletedAt: (/* @__PURE__ */ new Date()).toISOString()
427
+ };
428
+ } catch (err) {
429
+ log?.error?.(`[SkillsHandler] Failed to delete skill: ${err.message}`);
430
+ throw err;
431
+ }
432
+ }
433
+ async function handleListSkills(data, log) {
434
+ const { filter, limit = 100 } = data;
435
+ log?.info?.(`[SkillsHandler] Listing skills, filter: ${filter}, limit: ${limit}`);
436
+ try {
437
+ const { stdout } = await execAsync("openclaw skills list --json", {
438
+ timeout: 1e4
439
+ });
440
+ let skills = [];
441
+ try {
442
+ const parsed = JSON.parse(stdout);
443
+ skills = parsed.skills || parsed;
444
+ } catch {
445
+ const lines = stdout.split("\n");
446
+ skills = lines.filter((line) => line.trim() && !line.includes("Skills")).map((line) => {
447
+ const parts = line.split(/\s{2,}/).map((p) => p.trim());
448
+ if (parts.length >= 3) {
449
+ return {
450
+ status: parts[0]?.includes("✓") ? "ready" : "missing",
451
+ name: parts[1],
452
+ description: parts[2],
453
+ source: parts[3] || "openclaw-bundled"
454
+ };
455
+ }
456
+ return null;
457
+ }).filter((s) => s !== null);
458
+ }
459
+ if (filter) {
460
+ skills = skills.filter((s) => s.status === filter);
461
+ }
462
+ skills = skills.slice(0, limit);
463
+ return {
464
+ total: skills.length,
465
+ skills
466
+ };
467
+ } catch (err) {
468
+ log?.error?.(`[SkillsHandler] Failed to list skills: ${err.message}`);
469
+ return {
470
+ total: 0,
471
+ skills: []
472
+ };
473
+ }
474
+ }
475
+ async function handleGetSkill(data, log) {
476
+ const { id } = data;
477
+ if (!id) {
478
+ const error = new Error("Missing required field: id");
479
+ error.code = "MISSING_FIELDS";
480
+ throw error;
481
+ }
482
+ log?.info?.(`[SkillsHandler] Getting skill: ${id}`);
483
+ return {
484
+ id,
485
+ name: `Skill ${id}`,
486
+ description: "Skill description",
487
+ status: "ready"
488
+ };
489
+ }
490
+ async function handleInvokeSkill(data, log) {
491
+ const { id, input, context } = data;
492
+ if (!id) {
493
+ const error = new Error("Missing required field: id");
494
+ error.code = "MISSING_FIELDS";
495
+ throw error;
496
+ }
497
+ log?.info?.(`[SkillsHandler] Invoking skill: ${id}`);
498
+ return {
499
+ id,
500
+ status: "completed",
501
+ output: {
502
+ result: `Skill ${id} executed successfully`,
503
+ input,
504
+ context
505
+ },
506
+ executedAt: (/* @__PURE__ */ new Date()).toISOString()
507
+ };
508
+ }
509
+ export {
510
+ handleSkillsEvent
511
+ };
@@ -0,0 +1,172 @@
1
+ import { execSync } from "node:child_process";
2
+ import { existsSync, readdirSync, statSync, readFileSync } from "node:fs";
3
+ import { homedir } from "node:os";
4
+ import { join } from "node:path";
5
+ async function handleSkillsListEvent(event, baseUrl, token, log) {
6
+ const agentId = Number(event.agentId);
7
+ const userId = Number(event.userId);
8
+ log?.info?.(`SkillsList: Handling SKILLS_LIST event for agentId: ${agentId}, userId: ${userId}`);
9
+ try {
10
+ const skills = await fetchSkillsFromOpenClaw(agentId, userId, log);
11
+ const callbackPayload = {
12
+ userId,
13
+ agentId,
14
+ dataList: skills
15
+ };
16
+ const callbackUrl = `${baseUrl.replace(/\/$/, "")}/open-apis/v1/claw/push/skills`;
17
+ await sendSkillsListCallback(callbackUrl, callbackPayload, token, log);
18
+ log?.info?.(`SkillsList: Successfully processed SKILLS_LIST event, sent ${skills.length} skills`);
19
+ } catch (error) {
20
+ log?.error?.(`SkillsList: Failed to handle SKILLS_LIST event: ${String(error)}`);
21
+ throw error;
22
+ }
23
+ }
24
+ async function fetchSkillsFromOpenClaw(agentId, _userId, log) {
25
+ log?.info?.(`SkillsList: Fetching skills from OpenClaw for agentId: ${agentId}`);
26
+ try {
27
+ const result = execSync("openclaw skills list", {
28
+ encoding: "utf-8",
29
+ timeout: 3e4
30
+ // 30秒超时
31
+ });
32
+ const globalSkills = parseSkillsListOutput(result);
33
+ const agentWorkspaceSkills = await fetchAgentWorkspaceSkills(agentId, log);
34
+ const allSkills = mergeSkills(globalSkills, agentWorkspaceSkills);
35
+ log?.info?.(`SkillsList: Found ${allSkills.length} skills (${globalSkills.length} global, ${agentWorkspaceSkills.length} agent-specific)`);
36
+ return allSkills;
37
+ } catch (error) {
38
+ log?.error?.(`SkillsList: Error fetching skills: ${String(error)}`);
39
+ return [];
40
+ }
41
+ }
42
+ async function fetchAgentWorkspaceSkills(agentId, log) {
43
+ const skills = [];
44
+ try {
45
+ const agentWorkspace = join(homedir(), ".openclaw", "agents", `openclaw-workclaw-${agentId}`);
46
+ const skillsDir = join(agentWorkspace, "skills");
47
+ if (!existsSync(skillsDir)) {
48
+ log?.info?.(`SkillsList: No skills directory found in agent workspace: ${skillsDir}`);
49
+ return skills;
50
+ }
51
+ const items = readdirSync(skillsDir);
52
+ for (const item of items) {
53
+ const itemPath = join(skillsDir, item);
54
+ const stat = statSync(itemPath);
55
+ if (stat.isDirectory()) {
56
+ const skillFiles = readdirSync(itemPath);
57
+ for (const skillFile of skillFiles) {
58
+ if (skillFile.endsWith(".md") || skillFile.endsWith(".prose")) {
59
+ const skillFilePath = join(itemPath, skillFile);
60
+ const skill = parseSkillFile(skillFilePath, item, log);
61
+ if (skill) {
62
+ skills.push(skill);
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ log?.info?.(`SkillsList: Found ${skills.length} agent-specific skills in ${skillsDir}`);
69
+ } catch (error) {
70
+ log?.error?.(`SkillsList: Error reading agent workspace skills: ${String(error)}`);
71
+ }
72
+ return skills;
73
+ }
74
+ function parseSkillFile(filePath, skillName, log) {
75
+ try {
76
+ const content = readFileSync(filePath, "utf-8");
77
+ let description = "Agent-specific skill";
78
+ const lines = content.split("\n");
79
+ for (const line of lines) {
80
+ if (line.startsWith("# ")) {
81
+ description = line.substring(2).trim();
82
+ break;
83
+ } else if (line.startsWith("summary:") || line.startsWith("Summary:")) {
84
+ description = line.substring(line.indexOf(":") + 1).trim();
85
+ break;
86
+ }
87
+ }
88
+ return {
89
+ typeStr: "skill",
90
+ name: skillName,
91
+ description
92
+ };
93
+ } catch (error) {
94
+ log?.error?.(`SkillsList: Error parsing skill file ${filePath}: ${String(error)}`);
95
+ return null;
96
+ }
97
+ }
98
+ function mergeSkills(globalSkills, agentSkills) {
99
+ const skillMap = /* @__PURE__ */ new Map();
100
+ for (const skill of globalSkills) {
101
+ skillMap.set(skill.name, skill);
102
+ }
103
+ for (const skill of agentSkills) {
104
+ skillMap.set(skill.name, skill);
105
+ }
106
+ return Array.from(skillMap.values());
107
+ }
108
+ function parseSkillsListOutput(output) {
109
+ const skills = [];
110
+ const lines = output.split("\n");
111
+ let inTable = false;
112
+ let headerLine = -1;
113
+ for (let i = 0; i < lines.length; i++) {
114
+ const line = lines[i];
115
+ if (line.includes("Status") && line.includes("Skill") && line.includes("Description")) {
116
+ headerLine = i;
117
+ inTable = true;
118
+ continue;
119
+ }
120
+ if (inTable && (line.startsWith("├") || line.startsWith("┌") || line.startsWith("└"))) {
121
+ continue;
122
+ }
123
+ if (inTable && line.startsWith("│") && i > headerLine + 1) {
124
+ const parsed = parseSkillsTableRow(line);
125
+ if (parsed) {
126
+ skills.push(parsed);
127
+ }
128
+ }
129
+ if (inTable && line.startsWith("└")) {
130
+ break;
131
+ }
132
+ }
133
+ return skills;
134
+ }
135
+ function parseSkillsTableRow(line) {
136
+ const content = line.replace(/^│\s*/, "").replace(/\s*│$/, "");
137
+ const columns = content.split("│").map((col) => col.trim());
138
+ if (columns.length < 4) {
139
+ return null;
140
+ }
141
+ const status = columns[0];
142
+ const skillName = columns[1];
143
+ const description = columns[2];
144
+ if (!status.includes("✓") && !status.includes("ready")) {
145
+ return null;
146
+ }
147
+ const cleanName = skillName.replace(/[\u{1F300}-\u{1F9FF}]/gu, "").trim();
148
+ return {
149
+ typeStr: "skill",
150
+ name: cleanName,
151
+ description
152
+ };
153
+ }
154
+ async function sendSkillsListCallback(callbackUrl, payload, token, log) {
155
+ log?.info?.(`SkillsList: Sending callback to ${callbackUrl}`);
156
+ const response = await fetch(callbackUrl, {
157
+ method: "POST",
158
+ headers: {
159
+ "Content-Type": "application/json",
160
+ "Authorization": `Bearer ${token}`
161
+ },
162
+ body: JSON.stringify(payload)
163
+ });
164
+ if (!response.ok) {
165
+ const errorText = await response.text().catch(() => "Unknown error");
166
+ throw new Error(`Callback failed: ${response.status} ${errorText}`);
167
+ }
168
+ log?.info?.(`SkillsList: Callback sent successfully`);
169
+ }
170
+ export {
171
+ handleSkillsListEvent
172
+ };