@better-openclaw/core 1.0.5 → 1.0.7

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 (414) hide show
  1. package/.github/workflows/publish-core.yml +32 -34
  2. package/dist/bare-metal-partition.d.mts +26 -0
  3. package/dist/bare-metal-partition.d.mts.map +1 -0
  4. package/dist/bare-metal-partition.mjs +48 -0
  5. package/dist/bare-metal-partition.mjs.map +1 -0
  6. package/dist/bare-metal-partition.test.d.mts +1 -0
  7. package/dist/bare-metal-partition.test.mjs +58 -0
  8. package/dist/bare-metal-partition.test.mjs.map +1 -0
  9. package/dist/composer.d.mts +21 -0
  10. package/dist/composer.d.mts.map +1 -0
  11. package/dist/composer.mjs +287 -0
  12. package/dist/composer.mjs.map +1 -0
  13. package/dist/composer.snapshot.test.d.mts +1 -0
  14. package/dist/composer.snapshot.test.mjs +92 -0
  15. package/dist/composer.snapshot.test.mjs.map +1 -0
  16. package/dist/composer.test.d.mts +1 -0
  17. package/dist/composer.test.mjs +166 -0
  18. package/dist/composer.test.mjs.map +1 -0
  19. package/dist/generate.d.mts +11 -0
  20. package/dist/generate.d.mts.map +1 -0
  21. package/dist/generate.mjs +169 -0
  22. package/dist/generate.mjs.map +1 -0
  23. package/dist/generate.test.d.mts +1 -0
  24. package/dist/generate.test.mjs +283 -0
  25. package/dist/generate.test.mjs.map +1 -0
  26. package/dist/generators/bare-metal-install.d.mts +17 -0
  27. package/dist/generators/bare-metal-install.d.mts.map +1 -0
  28. package/dist/generators/bare-metal-install.mjs +224 -0
  29. package/dist/generators/bare-metal-install.mjs.map +1 -0
  30. package/dist/generators/bare-metal-install.test.d.mts +1 -0
  31. package/dist/generators/bare-metal-install.test.mjs +48 -0
  32. package/dist/generators/bare-metal-install.test.mjs.map +1 -0
  33. package/dist/generators/caddy.d.mts +17 -0
  34. package/dist/generators/caddy.d.mts.map +1 -0
  35. package/dist/generators/caddy.mjs +77 -0
  36. package/dist/generators/caddy.mjs.map +1 -0
  37. package/dist/generators/env.d.mts +46 -0
  38. package/dist/generators/env.d.mts.map +1 -0
  39. package/dist/generators/env.mjs +250 -0
  40. package/dist/generators/env.mjs.map +1 -0
  41. package/dist/generators/grafana.d.mts +22 -0
  42. package/dist/generators/grafana.d.mts.map +1 -0
  43. package/dist/generators/grafana.mjs +293 -0
  44. package/dist/generators/grafana.mjs.map +1 -0
  45. package/dist/generators/n8n-workflows.d.mts +11 -0
  46. package/dist/generators/n8n-workflows.d.mts.map +1 -0
  47. package/dist/generators/n8n-workflows.mjs +75 -0
  48. package/dist/generators/n8n-workflows.mjs.map +1 -0
  49. package/dist/generators/native-services.d.mts +17 -0
  50. package/dist/generators/native-services.d.mts.map +1 -0
  51. package/dist/generators/native-services.mjs +78 -0
  52. package/dist/generators/native-services.mjs.map +1 -0
  53. package/dist/generators/postgres-init.d.mts +30 -0
  54. package/dist/generators/postgres-init.d.mts.map +1 -0
  55. package/dist/generators/postgres-init.mjs +151 -0
  56. package/dist/generators/postgres-init.mjs.map +1 -0
  57. package/dist/generators/prometheus.d.mts +14 -0
  58. package/dist/generators/prometheus.d.mts.map +1 -0
  59. package/dist/generators/prometheus.mjs +107 -0
  60. package/dist/generators/prometheus.mjs.map +1 -0
  61. package/dist/generators/readme.d.mts +25 -0
  62. package/dist/generators/readme.d.mts.map +1 -0
  63. package/dist/generators/readme.mjs +199 -0
  64. package/dist/generators/readme.mjs.map +1 -0
  65. package/dist/generators/scripts.d.mts +10 -0
  66. package/dist/generators/scripts.d.mts.map +1 -0
  67. package/dist/generators/scripts.mjs +351 -0
  68. package/dist/generators/scripts.mjs.map +1 -0
  69. package/dist/generators/skills.d.mts +14 -0
  70. package/dist/generators/skills.d.mts.map +1 -0
  71. package/dist/generators/skills.mjs +587 -0
  72. package/dist/generators/skills.mjs.map +1 -0
  73. package/dist/index.d.mts +21 -0
  74. package/dist/index.mjs +22 -0
  75. package/dist/magic-string.es-1uTtupLe.mjs +1014 -0
  76. package/dist/magic-string.es-1uTtupLe.mjs.map +1 -0
  77. package/dist/presets/registry.d.mts +9 -0
  78. package/dist/presets/registry.d.mts.map +1 -0
  79. package/dist/presets/registry.mjs +159 -0
  80. package/dist/presets/registry.mjs.map +1 -0
  81. package/dist/presets/registry.test.d.mts +1 -0
  82. package/dist/presets/registry.test.mjs +34 -0
  83. package/dist/presets/registry.test.mjs.map +1 -0
  84. package/dist/resolver.d.mts +21 -0
  85. package/dist/resolver.d.mts.map +1 -0
  86. package/dist/resolver.mjs +194 -0
  87. package/dist/resolver.mjs.map +1 -0
  88. package/dist/resolver.test.d.mts +1 -0
  89. package/dist/resolver.test.mjs +237 -0
  90. package/dist/resolver.test.mjs.map +1 -0
  91. package/dist/schema.d.mts +706 -0
  92. package/dist/schema.d.mts.map +1 -0
  93. package/dist/schema.mjs +260 -0
  94. package/dist/schema.mjs.map +1 -0
  95. package/dist/schema.test.d.mts +1 -0
  96. package/dist/schema.test.mjs +264 -0
  97. package/dist/schema.test.mjs.map +1 -0
  98. package/dist/services/definitions/anything-llm.d.mts +7 -0
  99. package/dist/services/definitions/anything-llm.d.mts.map +1 -0
  100. package/dist/services/definitions/anything-llm.mjs +44 -0
  101. package/dist/services/definitions/anything-llm.mjs.map +1 -0
  102. package/dist/services/definitions/appflowy.d.mts +7 -0
  103. package/dist/services/definitions/appflowy.d.mts.map +1 -0
  104. package/dist/services/definitions/appflowy.mjs +45 -0
  105. package/dist/services/definitions/appflowy.mjs.map +1 -0
  106. package/dist/services/definitions/beszel.d.mts +7 -0
  107. package/dist/services/definitions/beszel.d.mts.map +1 -0
  108. package/dist/services/definitions/beszel.mjs +45 -0
  109. package/dist/services/definitions/beszel.mjs.map +1 -0
  110. package/dist/services/definitions/browserless.d.mts +7 -0
  111. package/dist/services/definitions/browserless.d.mts.map +1 -0
  112. package/dist/services/definitions/browserless.mjs +85 -0
  113. package/dist/services/definitions/browserless.mjs.map +1 -0
  114. package/dist/services/definitions/caddy.d.mts +7 -0
  115. package/dist/services/definitions/caddy.d.mts.map +1 -0
  116. package/dist/services/definitions/caddy.mjs +52 -0
  117. package/dist/services/definitions/caddy.mjs.map +1 -0
  118. package/dist/services/definitions/chromadb.d.mts +7 -0
  119. package/dist/services/definitions/chromadb.d.mts.map +1 -0
  120. package/dist/services/definitions/chromadb.mjs +63 -0
  121. package/dist/services/definitions/chromadb.mjs.map +1 -0
  122. package/dist/services/definitions/claude-code.d.mts +7 -0
  123. package/dist/services/definitions/claude-code.d.mts.map +1 -0
  124. package/dist/services/definitions/claude-code.mjs +52 -0
  125. package/dist/services/definitions/claude-code.mjs.map +1 -0
  126. package/dist/services/definitions/code-server.d.mts +7 -0
  127. package/dist/services/definitions/code-server.d.mts.map +1 -0
  128. package/dist/services/definitions/code-server.mjs +66 -0
  129. package/dist/services/definitions/code-server.mjs.map +1 -0
  130. package/dist/services/definitions/codex.d.mts +7 -0
  131. package/dist/services/definitions/codex.d.mts.map +1 -0
  132. package/dist/services/definitions/codex.mjs +45 -0
  133. package/dist/services/definitions/codex.mjs.map +1 -0
  134. package/dist/services/definitions/convex-dashboard.d.mts +7 -0
  135. package/dist/services/definitions/convex-dashboard.d.mts.map +1 -0
  136. package/dist/services/definitions/convex-dashboard.mjs +46 -0
  137. package/dist/services/definitions/convex-dashboard.mjs.map +1 -0
  138. package/dist/services/definitions/convex.d.mts +7 -0
  139. package/dist/services/definitions/convex.d.mts.map +1 -0
  140. package/dist/services/definitions/convex.mjs +118 -0
  141. package/dist/services/definitions/convex.mjs.map +1 -0
  142. package/dist/services/definitions/coolify.d.mts +7 -0
  143. package/dist/services/definitions/coolify.d.mts.map +1 -0
  144. package/dist/services/definitions/coolify.mjs +49 -0
  145. package/dist/services/definitions/coolify.mjs.map +1 -0
  146. package/dist/services/definitions/dify.d.mts +7 -0
  147. package/dist/services/definitions/dify.d.mts.map +1 -0
  148. package/dist/services/definitions/dify.mjs +81 -0
  149. package/dist/services/definitions/dify.mjs.map +1 -0
  150. package/dist/services/definitions/docsgpt.d.mts +7 -0
  151. package/dist/services/definitions/docsgpt.d.mts.map +1 -0
  152. package/dist/services/definitions/docsgpt.mjs +45 -0
  153. package/dist/services/definitions/docsgpt.mjs.map +1 -0
  154. package/dist/services/definitions/dokploy.d.mts +7 -0
  155. package/dist/services/definitions/dokploy.d.mts.map +1 -0
  156. package/dist/services/definitions/dokploy.mjs +49 -0
  157. package/dist/services/definitions/dokploy.mjs.map +1 -0
  158. package/dist/services/definitions/dozzle.d.mts +7 -0
  159. package/dist/services/definitions/dozzle.d.mts.map +1 -0
  160. package/dist/services/definitions/dozzle.mjs +41 -0
  161. package/dist/services/definitions/dozzle.mjs.map +1 -0
  162. package/dist/services/definitions/ffmpeg.d.mts +7 -0
  163. package/dist/services/definitions/ffmpeg.d.mts.map +1 -0
  164. package/dist/services/definitions/ffmpeg.mjs +66 -0
  165. package/dist/services/definitions/ffmpeg.mjs.map +1 -0
  166. package/dist/services/definitions/flowise.d.mts +7 -0
  167. package/dist/services/definitions/flowise.d.mts.map +1 -0
  168. package/dist/services/definitions/flowise.mjs +45 -0
  169. package/dist/services/definitions/flowise.mjs.map +1 -0
  170. package/dist/services/definitions/gemini-cli.d.mts +7 -0
  171. package/dist/services/definitions/gemini-cli.d.mts.map +1 -0
  172. package/dist/services/definitions/gemini-cli.mjs +46 -0
  173. package/dist/services/definitions/gemini-cli.mjs.map +1 -0
  174. package/dist/services/definitions/gitea.d.mts +7 -0
  175. package/dist/services/definitions/gitea.d.mts.map +1 -0
  176. package/dist/services/definitions/gitea.mjs +49 -0
  177. package/dist/services/definitions/gitea.mjs.map +1 -0
  178. package/dist/services/definitions/gotify.d.mts +7 -0
  179. package/dist/services/definitions/gotify.d.mts.map +1 -0
  180. package/dist/services/definitions/gotify.mjs +62 -0
  181. package/dist/services/definitions/gotify.mjs.map +1 -0
  182. package/dist/services/definitions/grafana.d.mts +7 -0
  183. package/dist/services/definitions/grafana.d.mts.map +1 -0
  184. package/dist/services/definitions/grafana.mjs +63 -0
  185. package/dist/services/definitions/grafana.mjs.map +1 -0
  186. package/dist/services/definitions/index.d.mts +76 -0
  187. package/dist/services/definitions/index.d.mts.map +1 -0
  188. package/dist/services/definitions/index.mjs +146 -0
  189. package/dist/services/definitions/index.mjs.map +1 -0
  190. package/dist/services/definitions/kimi.d.mts +7 -0
  191. package/dist/services/definitions/kimi.d.mts.map +1 -0
  192. package/dist/services/definitions/kimi.mjs +46 -0
  193. package/dist/services/definitions/kimi.mjs.map +1 -0
  194. package/dist/services/definitions/lasuite-meet-agents.d.mts +7 -0
  195. package/dist/services/definitions/lasuite-meet-agents.d.mts.map +1 -0
  196. package/dist/services/definitions/lasuite-meet-agents.mjs +36 -0
  197. package/dist/services/definitions/lasuite-meet-agents.mjs.map +1 -0
  198. package/dist/services/definitions/lasuite-meet-backend.d.mts +7 -0
  199. package/dist/services/definitions/lasuite-meet-backend.d.mts.map +1 -0
  200. package/dist/services/definitions/lasuite-meet-backend.mjs +134 -0
  201. package/dist/services/definitions/lasuite-meet-backend.mjs.map +1 -0
  202. package/dist/services/definitions/lasuite-meet-frontend.d.mts +7 -0
  203. package/dist/services/definitions/lasuite-meet-frontend.d.mts.map +1 -0
  204. package/dist/services/definitions/lasuite-meet-frontend.mjs +48 -0
  205. package/dist/services/definitions/lasuite-meet-frontend.mjs.map +1 -0
  206. package/dist/services/definitions/librechat.d.mts +7 -0
  207. package/dist/services/definitions/librechat.d.mts.map +1 -0
  208. package/dist/services/definitions/librechat.mjs +50 -0
  209. package/dist/services/definitions/librechat.mjs.map +1 -0
  210. package/dist/services/definitions/lightpanda.d.mts +7 -0
  211. package/dist/services/definitions/lightpanda.d.mts.map +1 -0
  212. package/dist/services/definitions/lightpanda.mjs +59 -0
  213. package/dist/services/definitions/lightpanda.mjs.map +1 -0
  214. package/dist/services/definitions/litellm.d.mts +7 -0
  215. package/dist/services/definitions/litellm.d.mts.map +1 -0
  216. package/dist/services/definitions/litellm.mjs +47 -0
  217. package/dist/services/definitions/litellm.mjs.map +1 -0
  218. package/dist/services/definitions/livekit.d.mts +7 -0
  219. package/dist/services/definitions/livekit.d.mts.map +1 -0
  220. package/dist/services/definitions/livekit.mjs +56 -0
  221. package/dist/services/definitions/livekit.mjs.map +1 -0
  222. package/dist/services/definitions/matomo.d.mts +7 -0
  223. package/dist/services/definitions/matomo.d.mts.map +1 -0
  224. package/dist/services/definitions/matomo.mjs +80 -0
  225. package/dist/services/definitions/matomo.mjs.map +1 -0
  226. package/dist/services/definitions/matrix-synapse.d.mts +7 -0
  227. package/dist/services/definitions/matrix-synapse.d.mts.map +1 -0
  228. package/dist/services/definitions/matrix-synapse.mjs +88 -0
  229. package/dist/services/definitions/matrix-synapse.mjs.map +1 -0
  230. package/dist/services/definitions/mattermost.d.mts +7 -0
  231. package/dist/services/definitions/mattermost.d.mts.map +1 -0
  232. package/dist/services/definitions/mattermost.mjs +61 -0
  233. package/dist/services/definitions/mattermost.mjs.map +1 -0
  234. package/dist/services/definitions/meilisearch.d.mts +7 -0
  235. package/dist/services/definitions/meilisearch.d.mts.map +1 -0
  236. package/dist/services/definitions/meilisearch.mjs +78 -0
  237. package/dist/services/definitions/meilisearch.mjs.map +1 -0
  238. package/dist/services/definitions/minio.d.mts +7 -0
  239. package/dist/services/definitions/minio.d.mts.map +1 -0
  240. package/dist/services/definitions/minio.mjs +102 -0
  241. package/dist/services/definitions/minio.mjs.map +1 -0
  242. package/dist/services/definitions/mission-control.d.mts +7 -0
  243. package/dist/services/definitions/mission-control.d.mts.map +1 -0
  244. package/dist/services/definitions/mission-control.mjs +67 -0
  245. package/dist/services/definitions/mission-control.mjs.map +1 -0
  246. package/dist/services/definitions/mixpost.d.mts +7 -0
  247. package/dist/services/definitions/mixpost.d.mts.map +1 -0
  248. package/dist/services/definitions/mixpost.mjs +87 -0
  249. package/dist/services/definitions/mixpost.mjs.map +1 -0
  250. package/dist/services/definitions/motion-canvas.d.mts +7 -0
  251. package/dist/services/definitions/motion-canvas.d.mts.map +1 -0
  252. package/dist/services/definitions/motion-canvas.mjs +52 -0
  253. package/dist/services/definitions/motion-canvas.mjs.map +1 -0
  254. package/dist/services/definitions/n8n.d.mts +7 -0
  255. package/dist/services/definitions/n8n.d.mts.map +1 -0
  256. package/dist/services/definitions/n8n.mjs +154 -0
  257. package/dist/services/definitions/n8n.mjs.map +1 -0
  258. package/dist/services/definitions/nocodb.d.mts +7 -0
  259. package/dist/services/definitions/nocodb.d.mts.map +1 -0
  260. package/dist/services/definitions/nocodb.mjs +45 -0
  261. package/dist/services/definitions/nocodb.mjs.map +1 -0
  262. package/dist/services/definitions/ntfy.d.mts +7 -0
  263. package/dist/services/definitions/ntfy.d.mts.map +1 -0
  264. package/dist/services/definitions/ntfy.mjs +63 -0
  265. package/dist/services/definitions/ntfy.mjs.map +1 -0
  266. package/dist/services/definitions/ollama.d.mts +7 -0
  267. package/dist/services/definitions/ollama.d.mts.map +1 -0
  268. package/dist/services/definitions/ollama.mjs +66 -0
  269. package/dist/services/definitions/ollama.mjs.map +1 -0
  270. package/dist/services/definitions/open-webui.d.mts +7 -0
  271. package/dist/services/definitions/open-webui.d.mts.map +1 -0
  272. package/dist/services/definitions/open-webui.mjs +50 -0
  273. package/dist/services/definitions/open-webui.mjs.map +1 -0
  274. package/dist/services/definitions/opencode.d.mts +7 -0
  275. package/dist/services/definitions/opencode.d.mts.map +1 -0
  276. package/dist/services/definitions/opencode.mjs +50 -0
  277. package/dist/services/definitions/opencode.mjs.map +1 -0
  278. package/dist/services/definitions/openpanel.d.mts +7 -0
  279. package/dist/services/definitions/openpanel.d.mts.map +1 -0
  280. package/dist/services/definitions/openpanel.mjs +46 -0
  281. package/dist/services/definitions/openpanel.mjs.map +1 -0
  282. package/dist/services/definitions/outline.d.mts +7 -0
  283. package/dist/services/definitions/outline.d.mts.map +1 -0
  284. package/dist/services/definitions/outline.mjs +74 -0
  285. package/dist/services/definitions/outline.mjs.map +1 -0
  286. package/dist/services/definitions/paperless-ngx.d.mts +7 -0
  287. package/dist/services/definitions/paperless-ngx.d.mts.map +1 -0
  288. package/dist/services/definitions/paperless-ngx.mjs +93 -0
  289. package/dist/services/definitions/paperless-ngx.mjs.map +1 -0
  290. package/dist/services/definitions/playwright-server.d.mts +7 -0
  291. package/dist/services/definitions/playwright-server.d.mts.map +1 -0
  292. package/dist/services/definitions/playwright-server.mjs +42 -0
  293. package/dist/services/definitions/playwright-server.mjs.map +1 -0
  294. package/dist/services/definitions/portainer.d.mts +7 -0
  295. package/dist/services/definitions/portainer.d.mts.map +1 -0
  296. package/dist/services/definitions/portainer.mjs +49 -0
  297. package/dist/services/definitions/portainer.mjs.map +1 -0
  298. package/dist/services/definitions/postgresql.d.mts +7 -0
  299. package/dist/services/definitions/postgresql.d.mts.map +1 -0
  300. package/dist/services/definitions/postgresql.mjs +84 -0
  301. package/dist/services/definitions/postgresql.mjs.map +1 -0
  302. package/dist/services/definitions/postiz.d.mts +7 -0
  303. package/dist/services/definitions/postiz.d.mts.map +1 -0
  304. package/dist/services/definitions/postiz.mjs +83 -0
  305. package/dist/services/definitions/postiz.mjs.map +1 -0
  306. package/dist/services/definitions/prometheus.d.mts +7 -0
  307. package/dist/services/definitions/prometheus.d.mts.map +1 -0
  308. package/dist/services/definitions/prometheus.mjs +52 -0
  309. package/dist/services/definitions/prometheus.mjs.map +1 -0
  310. package/dist/services/definitions/qdrant.d.mts +7 -0
  311. package/dist/services/definitions/qdrant.d.mts.map +1 -0
  312. package/dist/services/definitions/qdrant.mjs +77 -0
  313. package/dist/services/definitions/qdrant.mjs.map +1 -0
  314. package/dist/services/definitions/redis.d.mts +7 -0
  315. package/dist/services/definitions/redis.d.mts.map +1 -0
  316. package/dist/services/definitions/redis.mjs +91 -0
  317. package/dist/services/definitions/redis.mjs.map +1 -0
  318. package/dist/services/definitions/remotion.d.mts +7 -0
  319. package/dist/services/definitions/remotion.d.mts.map +1 -0
  320. package/dist/services/definitions/remotion.mjs +55 -0
  321. package/dist/services/definitions/remotion.mjs.map +1 -0
  322. package/dist/services/definitions/rocketchat.d.mts +7 -0
  323. package/dist/services/definitions/rocketchat.d.mts.map +1 -0
  324. package/dist/services/definitions/rocketchat.mjs +57 -0
  325. package/dist/services/definitions/rocketchat.mjs.map +1 -0
  326. package/dist/services/definitions/searxng.d.mts +7 -0
  327. package/dist/services/definitions/searxng.d.mts.map +1 -0
  328. package/dist/services/definitions/searxng.mjs +65 -0
  329. package/dist/services/definitions/searxng.mjs.map +1 -0
  330. package/dist/services/definitions/stable-diffusion.d.mts +7 -0
  331. package/dist/services/definitions/stable-diffusion.d.mts.map +1 -0
  332. package/dist/services/definitions/stable-diffusion.mjs +48 -0
  333. package/dist/services/definitions/stable-diffusion.mjs.map +1 -0
  334. package/dist/services/definitions/steel-browser.d.mts +7 -0
  335. package/dist/services/definitions/steel-browser.d.mts.map +1 -0
  336. package/dist/services/definitions/steel-browser.mjs +77 -0
  337. package/dist/services/definitions/steel-browser.mjs.map +1 -0
  338. package/dist/services/definitions/tailscale.d.mts +7 -0
  339. package/dist/services/definitions/tailscale.d.mts.map +1 -0
  340. package/dist/services/definitions/tailscale.mjs +70 -0
  341. package/dist/services/definitions/tailscale.mjs.map +1 -0
  342. package/dist/services/definitions/temporal.d.mts +7 -0
  343. package/dist/services/definitions/temporal.d.mts.map +1 -0
  344. package/dist/services/definitions/temporal.mjs +100 -0
  345. package/dist/services/definitions/temporal.mjs.map +1 -0
  346. package/dist/services/definitions/traefik.d.mts +7 -0
  347. package/dist/services/definitions/traefik.d.mts.map +1 -0
  348. package/dist/services/definitions/traefik.mjs +58 -0
  349. package/dist/services/definitions/traefik.mjs.map +1 -0
  350. package/dist/services/definitions/umami.d.mts +7 -0
  351. package/dist/services/definitions/umami.d.mts.map +1 -0
  352. package/dist/services/definitions/umami.mjs +46 -0
  353. package/dist/services/definitions/umami.mjs.map +1 -0
  354. package/dist/services/definitions/uptime-kuma.d.mts +7 -0
  355. package/dist/services/definitions/uptime-kuma.d.mts.map +1 -0
  356. package/dist/services/definitions/uptime-kuma.mjs +51 -0
  357. package/dist/services/definitions/uptime-kuma.mjs.map +1 -0
  358. package/dist/services/definitions/usesend.d.mts +7 -0
  359. package/dist/services/definitions/usesend.d.mts.map +1 -0
  360. package/dist/services/definitions/usesend.mjs +99 -0
  361. package/dist/services/definitions/usesend.mjs.map +1 -0
  362. package/dist/services/definitions/valkey.d.mts +7 -0
  363. package/dist/services/definitions/valkey.d.mts.map +1 -0
  364. package/dist/services/definitions/valkey.mjs +61 -0
  365. package/dist/services/definitions/valkey.mjs.map +1 -0
  366. package/dist/services/definitions/watchtower.d.mts +7 -0
  367. package/dist/services/definitions/watchtower.d.mts.map +1 -0
  368. package/dist/services/definitions/watchtower.mjs +47 -0
  369. package/dist/services/definitions/watchtower.mjs.map +1 -0
  370. package/dist/services/definitions/weaviate.d.mts +7 -0
  371. package/dist/services/definitions/weaviate.d.mts.map +1 -0
  372. package/dist/services/definitions/weaviate.mjs +90 -0
  373. package/dist/services/definitions/weaviate.mjs.map +1 -0
  374. package/dist/services/definitions/whisper.d.mts +7 -0
  375. package/dist/services/definitions/whisper.d.mts.map +1 -0
  376. package/dist/services/definitions/whisper.mjs +62 -0
  377. package/dist/services/definitions/whisper.mjs.map +1 -0
  378. package/dist/services/registry.d.mts +16 -0
  379. package/dist/services/registry.d.mts.map +1 -0
  380. package/dist/services/registry.mjs +30 -0
  381. package/dist/services/registry.mjs.map +1 -0
  382. package/dist/services/registry.test.d.mts +1 -0
  383. package/dist/services/registry.test.mjs +64 -0
  384. package/dist/services/registry.test.mjs.map +1 -0
  385. package/dist/skills/registry.d.mts +11 -0
  386. package/dist/skills/registry.d.mts.map +1 -0
  387. package/dist/skills/registry.mjs +215 -0
  388. package/dist/skills/registry.mjs.map +1 -0
  389. package/dist/types.d.mts +64 -0
  390. package/dist/types.d.mts.map +1 -0
  391. package/dist/types.mjs +92 -0
  392. package/dist/types.mjs.map +1 -0
  393. package/dist/validator.d.mts +20 -0
  394. package/dist/validator.d.mts.map +1 -0
  395. package/dist/validator.mjs +111 -0
  396. package/dist/validator.mjs.map +1 -0
  397. package/dist/validator.test.d.mts +1 -0
  398. package/dist/validator.test.mjs +65 -0
  399. package/dist/validator.test.mjs.map +1 -0
  400. package/dist/version-manager.d.mts +14 -0
  401. package/dist/version-manager.d.mts.map +1 -0
  402. package/dist/version-manager.mjs +55 -0
  403. package/dist/version-manager.mjs.map +1 -0
  404. package/dist/vi.2VT5v0um-Qk6MgAnK.mjs +12916 -0
  405. package/dist/vi.2VT5v0um-Qk6MgAnK.mjs.map +1 -0
  406. package/package.json +17 -17
  407. package/src/schema.ts +2 -1
  408. package/src/services/definitions/convex-dashboard.ts +48 -0
  409. package/src/services/definitions/convex.ts +123 -0
  410. package/src/services/definitions/index.ts +12 -0
  411. package/src/services/definitions/mission-control.ts +71 -0
  412. package/src/services/definitions/tailscale.ts +2 -0
  413. package/src/services/definitions/usesend.ts +98 -0
  414. package/tsdown.config.ts +1 -0
@@ -0,0 +1,1014 @@
1
+ //#region node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
2
+ var comma = ",".charCodeAt(0);
3
+ var semicolon = ";".charCodeAt(0);
4
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5
+ var intToChar = new Uint8Array(64);
6
+ var charToInt = new Uint8Array(128);
7
+ for (let i = 0; i < chars.length; i++) {
8
+ const c = chars.charCodeAt(i);
9
+ intToChar[i] = c;
10
+ charToInt[c] = i;
11
+ }
12
+ function encodeInteger(builder, num, relative) {
13
+ let delta = num - relative;
14
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
15
+ do {
16
+ let clamped = delta & 31;
17
+ delta >>>= 5;
18
+ if (delta > 0) clamped |= 32;
19
+ builder.write(intToChar[clamped]);
20
+ } while (delta > 0);
21
+ return num;
22
+ }
23
+ var bufLength = 1024 * 16;
24
+ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
25
+ return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
26
+ } } : { decode(buf) {
27
+ let out = "";
28
+ for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
29
+ return out;
30
+ } };
31
+ var StringWriter = class {
32
+ constructor() {
33
+ this.pos = 0;
34
+ this.out = "";
35
+ this.buffer = new Uint8Array(bufLength);
36
+ }
37
+ write(v) {
38
+ const { buffer } = this;
39
+ buffer[this.pos++] = v;
40
+ if (this.pos === bufLength) {
41
+ this.out += td.decode(buffer);
42
+ this.pos = 0;
43
+ }
44
+ }
45
+ flush() {
46
+ const { buffer, out, pos } = this;
47
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
48
+ }
49
+ };
50
+ function encode(decoded) {
51
+ const writer = new StringWriter();
52
+ let sourcesIndex = 0;
53
+ let sourceLine = 0;
54
+ let sourceColumn = 0;
55
+ let namesIndex = 0;
56
+ for (let i = 0; i < decoded.length; i++) {
57
+ const line = decoded[i];
58
+ if (i > 0) writer.write(semicolon);
59
+ if (line.length === 0) continue;
60
+ let genColumn = 0;
61
+ for (let j = 0; j < line.length; j++) {
62
+ const segment = line[j];
63
+ if (j > 0) writer.write(comma);
64
+ genColumn = encodeInteger(writer, segment[0], genColumn);
65
+ if (segment.length === 1) continue;
66
+ sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
67
+ sourceLine = encodeInteger(writer, segment[2], sourceLine);
68
+ sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
69
+ if (segment.length === 4) continue;
70
+ namesIndex = encodeInteger(writer, segment[4], namesIndex);
71
+ }
72
+ }
73
+ return writer.flush();
74
+ }
75
+
76
+ //#endregion
77
+ //#region node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
78
+ var BitSet = class BitSet {
79
+ constructor(arg) {
80
+ this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
81
+ }
82
+ add(n) {
83
+ this.bits[n >> 5] |= 1 << (n & 31);
84
+ }
85
+ has(n) {
86
+ return !!(this.bits[n >> 5] & 1 << (n & 31));
87
+ }
88
+ };
89
+ var Chunk = class Chunk {
90
+ constructor(start, end, content) {
91
+ this.start = start;
92
+ this.end = end;
93
+ this.original = content;
94
+ this.intro = "";
95
+ this.outro = "";
96
+ this.content = content;
97
+ this.storeName = false;
98
+ this.edited = false;
99
+ this.previous = null;
100
+ this.next = null;
101
+ }
102
+ appendLeft(content) {
103
+ this.outro += content;
104
+ }
105
+ appendRight(content) {
106
+ this.intro = this.intro + content;
107
+ }
108
+ clone() {
109
+ const chunk = new Chunk(this.start, this.end, this.original);
110
+ chunk.intro = this.intro;
111
+ chunk.outro = this.outro;
112
+ chunk.content = this.content;
113
+ chunk.storeName = this.storeName;
114
+ chunk.edited = this.edited;
115
+ return chunk;
116
+ }
117
+ contains(index) {
118
+ return this.start < index && index < this.end;
119
+ }
120
+ eachNext(fn) {
121
+ let chunk = this;
122
+ while (chunk) {
123
+ fn(chunk);
124
+ chunk = chunk.next;
125
+ }
126
+ }
127
+ eachPrevious(fn) {
128
+ let chunk = this;
129
+ while (chunk) {
130
+ fn(chunk);
131
+ chunk = chunk.previous;
132
+ }
133
+ }
134
+ edit(content, storeName, contentOnly) {
135
+ this.content = content;
136
+ if (!contentOnly) {
137
+ this.intro = "";
138
+ this.outro = "";
139
+ }
140
+ this.storeName = storeName;
141
+ this.edited = true;
142
+ return this;
143
+ }
144
+ prependLeft(content) {
145
+ this.outro = content + this.outro;
146
+ }
147
+ prependRight(content) {
148
+ this.intro = content + this.intro;
149
+ }
150
+ reset() {
151
+ this.intro = "";
152
+ this.outro = "";
153
+ if (this.edited) {
154
+ this.content = this.original;
155
+ this.storeName = false;
156
+ this.edited = false;
157
+ }
158
+ }
159
+ split(index) {
160
+ const sliceIndex = index - this.start;
161
+ const originalBefore = this.original.slice(0, sliceIndex);
162
+ const originalAfter = this.original.slice(sliceIndex);
163
+ this.original = originalBefore;
164
+ const newChunk = new Chunk(index, this.end, originalAfter);
165
+ newChunk.outro = this.outro;
166
+ this.outro = "";
167
+ this.end = index;
168
+ if (this.edited) {
169
+ newChunk.edit("", false);
170
+ this.content = "";
171
+ } else this.content = originalBefore;
172
+ newChunk.next = this.next;
173
+ if (newChunk.next) newChunk.next.previous = newChunk;
174
+ newChunk.previous = this;
175
+ this.next = newChunk;
176
+ return newChunk;
177
+ }
178
+ toString() {
179
+ return this.intro + this.content + this.outro;
180
+ }
181
+ trimEnd(rx) {
182
+ this.outro = this.outro.replace(rx, "");
183
+ if (this.outro.length) return true;
184
+ const trimmed = this.content.replace(rx, "");
185
+ if (trimmed.length) {
186
+ if (trimmed !== this.content) {
187
+ this.split(this.start + trimmed.length).edit("", void 0, true);
188
+ if (this.edited) this.edit(trimmed, this.storeName, true);
189
+ }
190
+ return true;
191
+ } else {
192
+ this.edit("", void 0, true);
193
+ this.intro = this.intro.replace(rx, "");
194
+ if (this.intro.length) return true;
195
+ }
196
+ }
197
+ trimStart(rx) {
198
+ this.intro = this.intro.replace(rx, "");
199
+ if (this.intro.length) return true;
200
+ const trimmed = this.content.replace(rx, "");
201
+ if (trimmed.length) {
202
+ if (trimmed !== this.content) {
203
+ const newChunk = this.split(this.end - trimmed.length);
204
+ if (this.edited) newChunk.edit(trimmed, this.storeName, true);
205
+ this.edit("", void 0, true);
206
+ }
207
+ return true;
208
+ } else {
209
+ this.edit("", void 0, true);
210
+ this.outro = this.outro.replace(rx, "");
211
+ if (this.outro.length) return true;
212
+ }
213
+ }
214
+ };
215
+ function getBtoa() {
216
+ if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
217
+ else if (typeof Buffer === "function") return (str) => Buffer.from(str, "utf-8").toString("base64");
218
+ else return () => {
219
+ throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
220
+ };
221
+ }
222
+ const btoa = /* @__PURE__ */ getBtoa();
223
+ var SourceMap = class {
224
+ constructor(properties) {
225
+ this.version = 3;
226
+ this.file = properties.file;
227
+ this.sources = properties.sources;
228
+ this.sourcesContent = properties.sourcesContent;
229
+ this.names = properties.names;
230
+ this.mappings = encode(properties.mappings);
231
+ if (typeof properties.x_google_ignoreList !== "undefined") this.x_google_ignoreList = properties.x_google_ignoreList;
232
+ if (typeof properties.debugId !== "undefined") this.debugId = properties.debugId;
233
+ }
234
+ toString() {
235
+ return JSON.stringify(this);
236
+ }
237
+ toUrl() {
238
+ return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
239
+ }
240
+ };
241
+ function guessIndent(code) {
242
+ const lines = code.split("\n");
243
+ const tabbed = lines.filter((line) => /^\t+/.test(line));
244
+ const spaced = lines.filter((line) => /^ {2,}/.test(line));
245
+ if (tabbed.length === 0 && spaced.length === 0) return null;
246
+ if (tabbed.length >= spaced.length) return " ";
247
+ const min = spaced.reduce((previous, current) => {
248
+ const numSpaces = /^ +/.exec(current)[0].length;
249
+ return Math.min(numSpaces, previous);
250
+ }, Infinity);
251
+ return new Array(min + 1).join(" ");
252
+ }
253
+ function getRelativePath(from, to) {
254
+ const fromParts = from.split(/[/\\]/);
255
+ const toParts = to.split(/[/\\]/);
256
+ fromParts.pop();
257
+ while (fromParts[0] === toParts[0]) {
258
+ fromParts.shift();
259
+ toParts.shift();
260
+ }
261
+ if (fromParts.length) {
262
+ let i = fromParts.length;
263
+ while (i--) fromParts[i] = "..";
264
+ }
265
+ return fromParts.concat(toParts).join("/");
266
+ }
267
+ const toString = Object.prototype.toString;
268
+ function isObject(thing) {
269
+ return toString.call(thing) === "[object Object]";
270
+ }
271
+ function getLocator(source) {
272
+ const originalLines = source.split("\n");
273
+ const lineOffsets = [];
274
+ for (let i = 0, pos = 0; i < originalLines.length; i++) {
275
+ lineOffsets.push(pos);
276
+ pos += originalLines[i].length + 1;
277
+ }
278
+ return function locate(index) {
279
+ let i = 0;
280
+ let j = lineOffsets.length;
281
+ while (i < j) {
282
+ const m = i + j >> 1;
283
+ if (index < lineOffsets[m]) j = m;
284
+ else i = m + 1;
285
+ }
286
+ const line = i - 1;
287
+ return {
288
+ line,
289
+ column: index - lineOffsets[line]
290
+ };
291
+ };
292
+ }
293
+ const wordRegex = /\w/;
294
+ var Mappings = class {
295
+ constructor(hires) {
296
+ this.hires = hires;
297
+ this.generatedCodeLine = 0;
298
+ this.generatedCodeColumn = 0;
299
+ this.raw = [];
300
+ this.rawSegments = this.raw[this.generatedCodeLine] = [];
301
+ this.pending = null;
302
+ }
303
+ addEdit(sourceIndex, content, loc, nameIndex) {
304
+ if (content.length) {
305
+ const contentLengthMinusOne = content.length - 1;
306
+ let contentLineEnd = content.indexOf("\n", 0);
307
+ let previousContentLineEnd = -1;
308
+ while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
309
+ const segment = [
310
+ this.generatedCodeColumn,
311
+ sourceIndex,
312
+ loc.line,
313
+ loc.column
314
+ ];
315
+ if (nameIndex >= 0) segment.push(nameIndex);
316
+ this.rawSegments.push(segment);
317
+ this.generatedCodeLine += 1;
318
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
319
+ this.generatedCodeColumn = 0;
320
+ previousContentLineEnd = contentLineEnd;
321
+ contentLineEnd = content.indexOf("\n", contentLineEnd + 1);
322
+ }
323
+ const segment = [
324
+ this.generatedCodeColumn,
325
+ sourceIndex,
326
+ loc.line,
327
+ loc.column
328
+ ];
329
+ if (nameIndex >= 0) segment.push(nameIndex);
330
+ this.rawSegments.push(segment);
331
+ this.advance(content.slice(previousContentLineEnd + 1));
332
+ } else if (this.pending) {
333
+ this.rawSegments.push(this.pending);
334
+ this.advance(content);
335
+ }
336
+ this.pending = null;
337
+ }
338
+ addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
339
+ let originalCharIndex = chunk.start;
340
+ let first = true;
341
+ let charInHiresBoundary = false;
342
+ while (originalCharIndex < chunk.end) {
343
+ if (original[originalCharIndex] === "\n") {
344
+ loc.line += 1;
345
+ loc.column = 0;
346
+ this.generatedCodeLine += 1;
347
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
348
+ this.generatedCodeColumn = 0;
349
+ first = true;
350
+ charInHiresBoundary = false;
351
+ } else {
352
+ if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
353
+ const segment = [
354
+ this.generatedCodeColumn,
355
+ sourceIndex,
356
+ loc.line,
357
+ loc.column
358
+ ];
359
+ if (this.hires === "boundary") if (wordRegex.test(original[originalCharIndex])) {
360
+ if (!charInHiresBoundary) {
361
+ this.rawSegments.push(segment);
362
+ charInHiresBoundary = true;
363
+ }
364
+ } else {
365
+ this.rawSegments.push(segment);
366
+ charInHiresBoundary = false;
367
+ }
368
+ else this.rawSegments.push(segment);
369
+ }
370
+ loc.column += 1;
371
+ this.generatedCodeColumn += 1;
372
+ first = false;
373
+ }
374
+ originalCharIndex += 1;
375
+ }
376
+ this.pending = null;
377
+ }
378
+ advance(str) {
379
+ if (!str) return;
380
+ const lines = str.split("\n");
381
+ if (lines.length > 1) {
382
+ for (let i = 0; i < lines.length - 1; i++) {
383
+ this.generatedCodeLine++;
384
+ this.raw[this.generatedCodeLine] = this.rawSegments = [];
385
+ }
386
+ this.generatedCodeColumn = 0;
387
+ }
388
+ this.generatedCodeColumn += lines[lines.length - 1].length;
389
+ }
390
+ };
391
+ const n = "\n";
392
+ const warned = {
393
+ insertLeft: false,
394
+ insertRight: false,
395
+ storeName: false
396
+ };
397
+ var MagicString = class MagicString {
398
+ constructor(string, options = {}) {
399
+ const chunk = new Chunk(0, string.length, string);
400
+ Object.defineProperties(this, {
401
+ original: {
402
+ writable: true,
403
+ value: string
404
+ },
405
+ outro: {
406
+ writable: true,
407
+ value: ""
408
+ },
409
+ intro: {
410
+ writable: true,
411
+ value: ""
412
+ },
413
+ firstChunk: {
414
+ writable: true,
415
+ value: chunk
416
+ },
417
+ lastChunk: {
418
+ writable: true,
419
+ value: chunk
420
+ },
421
+ lastSearchedChunk: {
422
+ writable: true,
423
+ value: chunk
424
+ },
425
+ byStart: {
426
+ writable: true,
427
+ value: {}
428
+ },
429
+ byEnd: {
430
+ writable: true,
431
+ value: {}
432
+ },
433
+ filename: {
434
+ writable: true,
435
+ value: options.filename
436
+ },
437
+ indentExclusionRanges: {
438
+ writable: true,
439
+ value: options.indentExclusionRanges
440
+ },
441
+ sourcemapLocations: {
442
+ writable: true,
443
+ value: new BitSet()
444
+ },
445
+ storedNames: {
446
+ writable: true,
447
+ value: {}
448
+ },
449
+ indentStr: {
450
+ writable: true,
451
+ value: void 0
452
+ },
453
+ ignoreList: {
454
+ writable: true,
455
+ value: options.ignoreList
456
+ },
457
+ offset: {
458
+ writable: true,
459
+ value: options.offset || 0
460
+ }
461
+ });
462
+ this.byStart[0] = chunk;
463
+ this.byEnd[string.length] = chunk;
464
+ }
465
+ addSourcemapLocation(char) {
466
+ this.sourcemapLocations.add(char);
467
+ }
468
+ append(content) {
469
+ if (typeof content !== "string") throw new TypeError("outro content must be a string");
470
+ this.outro += content;
471
+ return this;
472
+ }
473
+ appendLeft(index, content) {
474
+ index = index + this.offset;
475
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
476
+ this._split(index);
477
+ const chunk = this.byEnd[index];
478
+ if (chunk) chunk.appendLeft(content);
479
+ else this.intro += content;
480
+ return this;
481
+ }
482
+ appendRight(index, content) {
483
+ index = index + this.offset;
484
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
485
+ this._split(index);
486
+ const chunk = this.byStart[index];
487
+ if (chunk) chunk.appendRight(content);
488
+ else this.outro += content;
489
+ return this;
490
+ }
491
+ clone() {
492
+ const cloned = new MagicString(this.original, {
493
+ filename: this.filename,
494
+ offset: this.offset
495
+ });
496
+ let originalChunk = this.firstChunk;
497
+ let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
498
+ while (originalChunk) {
499
+ cloned.byStart[clonedChunk.start] = clonedChunk;
500
+ cloned.byEnd[clonedChunk.end] = clonedChunk;
501
+ const nextOriginalChunk = originalChunk.next;
502
+ const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
503
+ if (nextClonedChunk) {
504
+ clonedChunk.next = nextClonedChunk;
505
+ nextClonedChunk.previous = clonedChunk;
506
+ clonedChunk = nextClonedChunk;
507
+ }
508
+ originalChunk = nextOriginalChunk;
509
+ }
510
+ cloned.lastChunk = clonedChunk;
511
+ if (this.indentExclusionRanges) cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
512
+ cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
513
+ cloned.intro = this.intro;
514
+ cloned.outro = this.outro;
515
+ return cloned;
516
+ }
517
+ generateDecodedMap(options) {
518
+ options = options || {};
519
+ const sourceIndex = 0;
520
+ const names = Object.keys(this.storedNames);
521
+ const mappings = new Mappings(options.hires);
522
+ const locate = getLocator(this.original);
523
+ if (this.intro) mappings.advance(this.intro);
524
+ this.firstChunk.eachNext((chunk) => {
525
+ const loc = locate(chunk.start);
526
+ if (chunk.intro.length) mappings.advance(chunk.intro);
527
+ if (chunk.edited) mappings.addEdit(sourceIndex, chunk.content, loc, chunk.storeName ? names.indexOf(chunk.original) : -1);
528
+ else mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
529
+ if (chunk.outro.length) mappings.advance(chunk.outro);
530
+ });
531
+ if (this.outro) mappings.advance(this.outro);
532
+ return {
533
+ file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
534
+ sources: [options.source ? getRelativePath(options.file || "", options.source) : options.file || ""],
535
+ sourcesContent: options.includeContent ? [this.original] : void 0,
536
+ names,
537
+ mappings: mappings.raw,
538
+ x_google_ignoreList: this.ignoreList ? [sourceIndex] : void 0
539
+ };
540
+ }
541
+ generateMap(options) {
542
+ return new SourceMap(this.generateDecodedMap(options));
543
+ }
544
+ _ensureindentStr() {
545
+ if (this.indentStr === void 0) this.indentStr = guessIndent(this.original);
546
+ }
547
+ _getRawIndentString() {
548
+ this._ensureindentStr();
549
+ return this.indentStr;
550
+ }
551
+ getIndentString() {
552
+ this._ensureindentStr();
553
+ return this.indentStr === null ? " " : this.indentStr;
554
+ }
555
+ indent(indentStr, options) {
556
+ const pattern = /^[^\r\n]/gm;
557
+ if (isObject(indentStr)) {
558
+ options = indentStr;
559
+ indentStr = void 0;
560
+ }
561
+ if (indentStr === void 0) {
562
+ this._ensureindentStr();
563
+ indentStr = this.indentStr || " ";
564
+ }
565
+ if (indentStr === "") return this;
566
+ options = options || {};
567
+ const isExcluded = {};
568
+ if (options.exclude) (typeof options.exclude[0] === "number" ? [options.exclude] : options.exclude).forEach((exclusion) => {
569
+ for (let i = exclusion[0]; i < exclusion[1]; i += 1) isExcluded[i] = true;
570
+ });
571
+ let shouldIndentNextCharacter = options.indentStart !== false;
572
+ const replacer = (match) => {
573
+ if (shouldIndentNextCharacter) return `${indentStr}${match}`;
574
+ shouldIndentNextCharacter = true;
575
+ return match;
576
+ };
577
+ this.intro = this.intro.replace(pattern, replacer);
578
+ let charIndex = 0;
579
+ let chunk = this.firstChunk;
580
+ while (chunk) {
581
+ const end = chunk.end;
582
+ if (chunk.edited) {
583
+ if (!isExcluded[charIndex]) {
584
+ chunk.content = chunk.content.replace(pattern, replacer);
585
+ if (chunk.content.length) shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === "\n";
586
+ }
587
+ } else {
588
+ charIndex = chunk.start;
589
+ while (charIndex < end) {
590
+ if (!isExcluded[charIndex]) {
591
+ const char = this.original[charIndex];
592
+ if (char === "\n") shouldIndentNextCharacter = true;
593
+ else if (char !== "\r" && shouldIndentNextCharacter) {
594
+ shouldIndentNextCharacter = false;
595
+ if (charIndex === chunk.start) chunk.prependRight(indentStr);
596
+ else {
597
+ this._splitChunk(chunk, charIndex);
598
+ chunk = chunk.next;
599
+ chunk.prependRight(indentStr);
600
+ }
601
+ }
602
+ }
603
+ charIndex += 1;
604
+ }
605
+ }
606
+ charIndex = chunk.end;
607
+ chunk = chunk.next;
608
+ }
609
+ this.outro = this.outro.replace(pattern, replacer);
610
+ return this;
611
+ }
612
+ insert() {
613
+ throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)");
614
+ }
615
+ insertLeft(index, content) {
616
+ if (!warned.insertLeft) {
617
+ console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead");
618
+ warned.insertLeft = true;
619
+ }
620
+ return this.appendLeft(index, content);
621
+ }
622
+ insertRight(index, content) {
623
+ if (!warned.insertRight) {
624
+ console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead");
625
+ warned.insertRight = true;
626
+ }
627
+ return this.prependRight(index, content);
628
+ }
629
+ move(start, end, index) {
630
+ start = start + this.offset;
631
+ end = end + this.offset;
632
+ index = index + this.offset;
633
+ if (index >= start && index <= end) throw new Error("Cannot move a selection inside itself");
634
+ this._split(start);
635
+ this._split(end);
636
+ this._split(index);
637
+ const first = this.byStart[start];
638
+ const last = this.byEnd[end];
639
+ const oldLeft = first.previous;
640
+ const oldRight = last.next;
641
+ const newRight = this.byStart[index];
642
+ if (!newRight && last === this.lastChunk) return this;
643
+ const newLeft = newRight ? newRight.previous : this.lastChunk;
644
+ if (oldLeft) oldLeft.next = oldRight;
645
+ if (oldRight) oldRight.previous = oldLeft;
646
+ if (newLeft) newLeft.next = first;
647
+ if (newRight) newRight.previous = last;
648
+ if (!first.previous) this.firstChunk = last.next;
649
+ if (!last.next) {
650
+ this.lastChunk = first.previous;
651
+ this.lastChunk.next = null;
652
+ }
653
+ first.previous = newLeft;
654
+ last.next = newRight || null;
655
+ if (!newLeft) this.firstChunk = first;
656
+ if (!newRight) this.lastChunk = last;
657
+ return this;
658
+ }
659
+ overwrite(start, end, content, options) {
660
+ options = options || {};
661
+ return this.update(start, end, content, {
662
+ ...options,
663
+ overwrite: !options.contentOnly
664
+ });
665
+ }
666
+ update(start, end, content, options) {
667
+ start = start + this.offset;
668
+ end = end + this.offset;
669
+ if (typeof content !== "string") throw new TypeError("replacement content must be a string");
670
+ if (this.original.length !== 0) {
671
+ while (start < 0) start += this.original.length;
672
+ while (end < 0) end += this.original.length;
673
+ }
674
+ if (end > this.original.length) throw new Error("end is out of bounds");
675
+ if (start === end) throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");
676
+ this._split(start);
677
+ this._split(end);
678
+ if (options === true) {
679
+ if (!warned.storeName) {
680
+ console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string");
681
+ warned.storeName = true;
682
+ }
683
+ options = { storeName: true };
684
+ }
685
+ const storeName = options !== void 0 ? options.storeName : false;
686
+ const overwrite = options !== void 0 ? options.overwrite : false;
687
+ if (storeName) {
688
+ const original = this.original.slice(start, end);
689
+ Object.defineProperty(this.storedNames, original, {
690
+ writable: true,
691
+ value: true,
692
+ enumerable: true
693
+ });
694
+ }
695
+ const first = this.byStart[start];
696
+ const last = this.byEnd[end];
697
+ if (first) {
698
+ let chunk = first;
699
+ while (chunk !== last) {
700
+ if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point");
701
+ chunk = chunk.next;
702
+ chunk.edit("", false);
703
+ }
704
+ first.edit(content, storeName, !overwrite);
705
+ } else {
706
+ const newChunk = new Chunk(start, end, "").edit(content, storeName);
707
+ last.next = newChunk;
708
+ newChunk.previous = last;
709
+ }
710
+ return this;
711
+ }
712
+ prepend(content) {
713
+ if (typeof content !== "string") throw new TypeError("outro content must be a string");
714
+ this.intro = content + this.intro;
715
+ return this;
716
+ }
717
+ prependLeft(index, content) {
718
+ index = index + this.offset;
719
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
720
+ this._split(index);
721
+ const chunk = this.byEnd[index];
722
+ if (chunk) chunk.prependLeft(content);
723
+ else this.intro = content + this.intro;
724
+ return this;
725
+ }
726
+ prependRight(index, content) {
727
+ index = index + this.offset;
728
+ if (typeof content !== "string") throw new TypeError("inserted content must be a string");
729
+ this._split(index);
730
+ const chunk = this.byStart[index];
731
+ if (chunk) chunk.prependRight(content);
732
+ else this.outro = content + this.outro;
733
+ return this;
734
+ }
735
+ remove(start, end) {
736
+ start = start + this.offset;
737
+ end = end + this.offset;
738
+ if (this.original.length !== 0) {
739
+ while (start < 0) start += this.original.length;
740
+ while (end < 0) end += this.original.length;
741
+ }
742
+ if (start === end) return this;
743
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
744
+ if (start > end) throw new Error("end must be greater than start");
745
+ this._split(start);
746
+ this._split(end);
747
+ let chunk = this.byStart[start];
748
+ while (chunk) {
749
+ chunk.intro = "";
750
+ chunk.outro = "";
751
+ chunk.edit("");
752
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
753
+ }
754
+ return this;
755
+ }
756
+ reset(start, end) {
757
+ start = start + this.offset;
758
+ end = end + this.offset;
759
+ if (this.original.length !== 0) {
760
+ while (start < 0) start += this.original.length;
761
+ while (end < 0) end += this.original.length;
762
+ }
763
+ if (start === end) return this;
764
+ if (start < 0 || end > this.original.length) throw new Error("Character is out of bounds");
765
+ if (start > end) throw new Error("end must be greater than start");
766
+ this._split(start);
767
+ this._split(end);
768
+ let chunk = this.byStart[start];
769
+ while (chunk) {
770
+ chunk.reset();
771
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
772
+ }
773
+ return this;
774
+ }
775
+ lastChar() {
776
+ if (this.outro.length) return this.outro[this.outro.length - 1];
777
+ let chunk = this.lastChunk;
778
+ do {
779
+ if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
780
+ if (chunk.content.length) return chunk.content[chunk.content.length - 1];
781
+ if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
782
+ } while (chunk = chunk.previous);
783
+ if (this.intro.length) return this.intro[this.intro.length - 1];
784
+ return "";
785
+ }
786
+ lastLine() {
787
+ let lineIndex = this.outro.lastIndexOf(n);
788
+ if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
789
+ let lineStr = this.outro;
790
+ let chunk = this.lastChunk;
791
+ do {
792
+ if (chunk.outro.length > 0) {
793
+ lineIndex = chunk.outro.lastIndexOf(n);
794
+ if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
795
+ lineStr = chunk.outro + lineStr;
796
+ }
797
+ if (chunk.content.length > 0) {
798
+ lineIndex = chunk.content.lastIndexOf(n);
799
+ if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
800
+ lineStr = chunk.content + lineStr;
801
+ }
802
+ if (chunk.intro.length > 0) {
803
+ lineIndex = chunk.intro.lastIndexOf(n);
804
+ if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
805
+ lineStr = chunk.intro + lineStr;
806
+ }
807
+ } while (chunk = chunk.previous);
808
+ lineIndex = this.intro.lastIndexOf(n);
809
+ if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
810
+ return this.intro + lineStr;
811
+ }
812
+ slice(start = 0, end = this.original.length - this.offset) {
813
+ start = start + this.offset;
814
+ end = end + this.offset;
815
+ if (this.original.length !== 0) {
816
+ while (start < 0) start += this.original.length;
817
+ while (end < 0) end += this.original.length;
818
+ }
819
+ let result = "";
820
+ let chunk = this.firstChunk;
821
+ while (chunk && (chunk.start > start || chunk.end <= start)) {
822
+ if (chunk.start < end && chunk.end >= end) return result;
823
+ chunk = chunk.next;
824
+ }
825
+ if (chunk && chunk.edited && chunk.start !== start) throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
826
+ const startChunk = chunk;
827
+ while (chunk) {
828
+ if (chunk.intro && (startChunk !== chunk || chunk.start === start)) result += chunk.intro;
829
+ const containsEnd = chunk.start < end && chunk.end >= end;
830
+ if (containsEnd && chunk.edited && chunk.end !== end) throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
831
+ const sliceStart = startChunk === chunk ? start - chunk.start : 0;
832
+ const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
833
+ result += chunk.content.slice(sliceStart, sliceEnd);
834
+ if (chunk.outro && (!containsEnd || chunk.end === end)) result += chunk.outro;
835
+ if (containsEnd) break;
836
+ chunk = chunk.next;
837
+ }
838
+ return result;
839
+ }
840
+ snip(start, end) {
841
+ const clone = this.clone();
842
+ clone.remove(0, start);
843
+ clone.remove(end, clone.original.length);
844
+ return clone;
845
+ }
846
+ _split(index) {
847
+ if (this.byStart[index] || this.byEnd[index]) return;
848
+ let chunk = this.lastSearchedChunk;
849
+ let previousChunk = chunk;
850
+ const searchForward = index > chunk.end;
851
+ while (chunk) {
852
+ if (chunk.contains(index)) return this._splitChunk(chunk, index);
853
+ chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
854
+ if (chunk === previousChunk) return;
855
+ previousChunk = chunk;
856
+ }
857
+ }
858
+ _splitChunk(chunk, index) {
859
+ if (chunk.edited && chunk.content.length) {
860
+ const loc = getLocator(this.original)(index);
861
+ throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`);
862
+ }
863
+ const newChunk = chunk.split(index);
864
+ this.byEnd[index] = chunk;
865
+ this.byStart[index] = newChunk;
866
+ this.byEnd[newChunk.end] = newChunk;
867
+ if (chunk === this.lastChunk) this.lastChunk = newChunk;
868
+ this.lastSearchedChunk = chunk;
869
+ return true;
870
+ }
871
+ toString() {
872
+ let str = this.intro;
873
+ let chunk = this.firstChunk;
874
+ while (chunk) {
875
+ str += chunk.toString();
876
+ chunk = chunk.next;
877
+ }
878
+ return str + this.outro;
879
+ }
880
+ isEmpty() {
881
+ let chunk = this.firstChunk;
882
+ do
883
+ if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return false;
884
+ while (chunk = chunk.next);
885
+ return true;
886
+ }
887
+ length() {
888
+ let chunk = this.firstChunk;
889
+ let length = 0;
890
+ do
891
+ length += chunk.intro.length + chunk.content.length + chunk.outro.length;
892
+ while (chunk = chunk.next);
893
+ return length;
894
+ }
895
+ trimLines() {
896
+ return this.trim("[\\r\\n]");
897
+ }
898
+ trim(charType) {
899
+ return this.trimStart(charType).trimEnd(charType);
900
+ }
901
+ trimEndAborted(charType) {
902
+ const rx = new RegExp((charType || "\\s") + "+$");
903
+ this.outro = this.outro.replace(rx, "");
904
+ if (this.outro.length) return true;
905
+ let chunk = this.lastChunk;
906
+ do {
907
+ const end = chunk.end;
908
+ const aborted = chunk.trimEnd(rx);
909
+ if (chunk.end !== end) {
910
+ if (this.lastChunk === chunk) this.lastChunk = chunk.next;
911
+ this.byEnd[chunk.end] = chunk;
912
+ this.byStart[chunk.next.start] = chunk.next;
913
+ this.byEnd[chunk.next.end] = chunk.next;
914
+ }
915
+ if (aborted) return true;
916
+ chunk = chunk.previous;
917
+ } while (chunk);
918
+ return false;
919
+ }
920
+ trimEnd(charType) {
921
+ this.trimEndAborted(charType);
922
+ return this;
923
+ }
924
+ trimStartAborted(charType) {
925
+ const rx = new RegExp("^" + (charType || "\\s") + "+");
926
+ this.intro = this.intro.replace(rx, "");
927
+ if (this.intro.length) return true;
928
+ let chunk = this.firstChunk;
929
+ do {
930
+ const end = chunk.end;
931
+ const aborted = chunk.trimStart(rx);
932
+ if (chunk.end !== end) {
933
+ if (chunk === this.lastChunk) this.lastChunk = chunk.next;
934
+ this.byEnd[chunk.end] = chunk;
935
+ this.byStart[chunk.next.start] = chunk.next;
936
+ this.byEnd[chunk.next.end] = chunk.next;
937
+ }
938
+ if (aborted) return true;
939
+ chunk = chunk.next;
940
+ } while (chunk);
941
+ return false;
942
+ }
943
+ trimStart(charType) {
944
+ this.trimStartAborted(charType);
945
+ return this;
946
+ }
947
+ hasChanged() {
948
+ return this.original !== this.toString();
949
+ }
950
+ _replaceRegexp(searchValue, replacement) {
951
+ function getReplacement(match, str) {
952
+ if (typeof replacement === "string") return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
953
+ if (i === "$") return "$";
954
+ if (i === "&") return match[0];
955
+ if (+i < match.length) return match[+i];
956
+ return `$${i}`;
957
+ });
958
+ else return replacement(...match, match.index, str, match.groups);
959
+ }
960
+ function matchAll(re, str) {
961
+ let match;
962
+ const matches = [];
963
+ while (match = re.exec(str)) matches.push(match);
964
+ return matches;
965
+ }
966
+ if (searchValue.global) matchAll(searchValue, this.original).forEach((match) => {
967
+ if (match.index != null) {
968
+ const replacement = getReplacement(match, this.original);
969
+ if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
970
+ }
971
+ });
972
+ else {
973
+ const match = this.original.match(searchValue);
974
+ if (match && match.index != null) {
975
+ const replacement = getReplacement(match, this.original);
976
+ if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
977
+ }
978
+ }
979
+ return this;
980
+ }
981
+ _replaceString(string, replacement) {
982
+ const { original } = this;
983
+ const index = original.indexOf(string);
984
+ if (index !== -1) {
985
+ if (typeof replacement === "function") replacement = replacement(string, index, original);
986
+ if (string !== replacement) this.overwrite(index, index + string.length, replacement);
987
+ }
988
+ return this;
989
+ }
990
+ replace(searchValue, replacement) {
991
+ if (typeof searchValue === "string") return this._replaceString(searchValue, replacement);
992
+ return this._replaceRegexp(searchValue, replacement);
993
+ }
994
+ _replaceAllString(string, replacement) {
995
+ const { original } = this;
996
+ const stringLength = string.length;
997
+ for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
998
+ const previous = original.slice(index, index + stringLength);
999
+ let _replacement = replacement;
1000
+ if (typeof replacement === "function") _replacement = replacement(previous, index, original);
1001
+ if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
1002
+ }
1003
+ return this;
1004
+ }
1005
+ replaceAll(searchValue, replacement) {
1006
+ if (typeof searchValue === "string") return this._replaceAllString(searchValue, replacement);
1007
+ if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
1008
+ return this._replaceRegexp(searchValue, replacement);
1009
+ }
1010
+ };
1011
+
1012
+ //#endregion
1013
+ export { MagicString as default };
1014
+ //# sourceMappingURL=magic-string.es-1uTtupLe.mjs.map