zilmate 1.9.9 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/.agents/skills/ad-creative/SKILL.md +362 -0
  2. package/.agents/skills/ad-creative/evals/evals.json +90 -0
  3. package/.agents/skills/ad-creative/references/generative-tools.md +637 -0
  4. package/.agents/skills/ad-creative/references/platform-specs.md +213 -0
  5. package/.agents/skills/ai-seo/SKILL.md +489 -0
  6. package/.agents/skills/ai-seo/evals/evals.json +90 -0
  7. package/.agents/skills/ai-seo/references/content-patterns.md +285 -0
  8. package/.agents/skills/ai-seo/references/content-types.md +71 -0
  9. package/.agents/skills/ai-seo/references/okf.md +104 -0
  10. package/.agents/skills/ai-seo/references/platform-ranking-factors.md +154 -0
  11. package/.agents/skills/clerk-backend-api/SKILL.md +426 -0
  12. package/.agents/skills/clerk-backend-api/evals/evals.json +87 -0
  13. package/.agents/skills/clerk-backend-api/scripts/api-specs-context.sh +30 -0
  14. package/.agents/skills/clerk-backend-api/scripts/execute-request.sh +88 -0
  15. package/.agents/skills/clerk-backend-api/scripts/extract-endpoint-detail.sh +165 -0
  16. package/.agents/skills/clerk-backend-api/scripts/extract-tag-endpoints.sh +208 -0
  17. package/.agents/skills/clerk-backend-api/scripts/extract-tags.js +14 -0
  18. package/.agents/skills/copy-editing/SKILL.md +457 -0
  19. package/.agents/skills/copy-editing/evals/evals.json +89 -0
  20. package/.agents/skills/copy-editing/references/checklist.md +66 -0
  21. package/.agents/skills/copy-editing/references/content-refresh.md +38 -0
  22. package/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
  23. package/.agents/skills/hyperframes/SKILL.md +163 -0
  24. package/.agents/skills/hyperframes-cli/SKILL.md +109 -0
  25. package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
  26. package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +51 -0
  27. package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
  28. package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
  29. package/.agents/skills/hyperframes-cli/references/preview-render.md +109 -0
  30. package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
  31. package/.agents/skills/hyperframes-media/SKILL.md +97 -0
  32. package/.agents/skills/hyperframes-media/assets/sfx/CREDITS.md +35 -0
  33. package/.agents/skills/hyperframes-media/assets/sfx/manifest.json +97 -0
  34. package/.agents/skills/hyperframes-media/references/bgm.md +72 -0
  35. package/.agents/skills/hyperframes-media/references/captions/authoring.md +159 -0
  36. package/.agents/skills/hyperframes-media/references/captions/motion.md +87 -0
  37. package/.agents/skills/hyperframes-media/references/captions/transcript-handling.md +97 -0
  38. package/.agents/skills/hyperframes-media/references/remove-background.md +143 -0
  39. package/.agents/skills/hyperframes-media/references/requirements.md +29 -0
  40. package/.agents/skills/hyperframes-media/references/sfx.md +42 -0
  41. package/.agents/skills/hyperframes-media/references/transcribe.md +52 -0
  42. package/.agents/skills/hyperframes-media/references/tts-to-captions.md +24 -0
  43. package/.agents/skills/hyperframes-media/references/tts.md +135 -0
  44. package/.agents/skills/hyperframes-media/scripts/audio.mjs +282 -0
  45. package/.agents/skills/hyperframes-media/scripts/heygen-tts.mjs +121 -0
  46. package/.agents/skills/hyperframes-media/scripts/lib/bgm.mjs +235 -0
  47. package/.agents/skills/hyperframes-media/scripts/lib/heygen.mjs +131 -0
  48. package/.agents/skills/hyperframes-media/scripts/lib/sfx.mjs +128 -0
  49. package/.agents/skills/hyperframes-media/scripts/lib/tts.mjs +220 -0
  50. package/.agents/skills/hyperframes-media/scripts/lyria-recipe.py +128 -0
  51. package/.agents/skills/hyperframes-media/scripts/wait-bgm.mjs +167 -0
  52. package/.agents/skills/hyperframes-registry/SKILL.md +101 -0
  53. package/.agents/skills/hyperframes-registry/examples/add-block.md +51 -0
  54. package/.agents/skills/hyperframes-registry/examples/add-component.md +73 -0
  55. package/.agents/skills/hyperframes-registry/references/contributing.md +166 -0
  56. package/.agents/skills/hyperframes-registry/references/demo-html-pattern.md +54 -0
  57. package/.agents/skills/hyperframes-registry/references/discovery.md +215 -0
  58. package/.agents/skills/hyperframes-registry/references/install-locations.md +45 -0
  59. package/.agents/skills/hyperframes-registry/references/templates.md +417 -0
  60. package/.agents/skills/hyperframes-registry/references/wiring-blocks.md +61 -0
  61. package/.agents/skills/hyperframes-registry/references/wiring-components.md +39 -0
  62. package/.agents/skills/marketing-psychology/SKILL.md +455 -0
  63. package/.agents/skills/marketing-psychology/evals/evals.json +88 -0
  64. package/.agents/skills/mintlify/SKILL.md +328 -0
  65. package/.agents/skills/product-launch-video/SKILL.md +206 -0
  66. package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
  67. package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
  68. package/.agents/skills/product-launch-video/references/story-design.md +373 -0
  69. package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
  70. package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
  71. package/.agents/skills/product-launch-video/scripts/audio.mjs +253 -0
  72. package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
  73. package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
  74. package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
  75. package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
  76. package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
  77. package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
  78. package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
  79. package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
  80. package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
  81. package/.agents/skills/product-launch-video/scripts/transitions.mjs +320 -0
  82. package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +74 -0
  83. package/.agents/skills/prompt-engineering-patterns/SKILL.md +144 -0
  84. package/.agents/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
  85. package/.agents/skills/prompt-engineering-patterns/assets/prompt-template-library.md +264 -0
  86. package/.agents/skills/prompt-engineering-patterns/references/chain-of-thought.md +412 -0
  87. package/.agents/skills/prompt-engineering-patterns/references/details.md +338 -0
  88. package/.agents/skills/prompt-engineering-patterns/references/few-shot-learning.md +386 -0
  89. package/.agents/skills/prompt-engineering-patterns/references/prompt-optimization.md +428 -0
  90. package/.agents/skills/prompt-engineering-patterns/references/prompt-templates.md +484 -0
  91. package/.agents/skills/prompt-engineering-patterns/references/system-prompts.md +195 -0
  92. package/.agents/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
  93. package/.agents/skills/remotion-to-hyperframes/SKILL.md +127 -0
  94. package/.agents/skills/remotion-to-hyperframes/assets/.gitkeep +0 -0
  95. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/run.sh +249 -0
  96. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/README.md +41 -0
  97. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/expected.json +26 -0
  98. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +61 -0
  99. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/package.json +14 -0
  100. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/remotion.config.ts +13 -0
  101. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/Root.tsx +13 -0
  102. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/TitleCard.tsx +34 -0
  103. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/src/index.ts +4 -0
  104. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/remotion-src/tsconfig.json +15 -0
  105. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/README.md +54 -0
  106. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/expected.json +29 -0
  107. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +118 -0
  108. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/package.json +14 -0
  109. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/remotion.config.ts +13 -0
  110. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/MultiScene.tsx +105 -0
  111. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/Root.tsx +13 -0
  112. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/src/index.ts +4 -0
  113. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/remotion-src/tsconfig.json +15 -0
  114. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/setup.sh +34 -0
  115. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/README.md +85 -0
  116. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +41 -0
  117. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +269 -0
  118. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/package.json +15 -0
  119. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/remotion.config.ts +13 -0
  120. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Root.tsx +27 -0
  121. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/Stargazed.tsx +37 -0
  122. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/AnimatedNumber.tsx +23 -0
  123. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/StatCard.tsx +59 -0
  124. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/components/UnderlinedText.tsx +47 -0
  125. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/index.ts +4 -0
  126. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/OutroScene.tsx +18 -0
  127. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/StatsScene.tsx +34 -0
  128. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/TitleScene.tsx +55 -0
  129. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/remotion-src/tsconfig.json +15 -0
  130. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/README.md +51 -0
  131. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/01-use-state.tsx +29 -0
  132. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/02-use-effect-deps.tsx +29 -0
  133. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/03-async-metadata.tsx +39 -0
  134. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/04-third-party-react.tsx +30 -0
  135. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/05-lambda-config.tsx +38 -0
  136. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/06-warnings-only.tsx +36 -0
  137. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/07-custom-hook.tsx +28 -0
  138. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/cases/08-mixed.tsx +41 -0
  139. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/expected.json +85 -0
  140. package/.agents/skills/remotion-to-hyperframes/assets/test-corpus/tier-4-escape-hatch/validate.sh +110 -0
  141. package/.agents/skills/remotion-to-hyperframes/references/api-map.md +142 -0
  142. package/.agents/skills/remotion-to-hyperframes/references/escape-hatch.md +115 -0
  143. package/.agents/skills/remotion-to-hyperframes/references/eval.md +140 -0
  144. package/.agents/skills/remotion-to-hyperframes/references/fonts.md +112 -0
  145. package/.agents/skills/remotion-to-hyperframes/references/limitations.md +136 -0
  146. package/.agents/skills/remotion-to-hyperframes/references/lottie.md +121 -0
  147. package/.agents/skills/remotion-to-hyperframes/references/media.md +149 -0
  148. package/.agents/skills/remotion-to-hyperframes/references/parameters.md +167 -0
  149. package/.agents/skills/remotion-to-hyperframes/references/sequencing.md +195 -0
  150. package/.agents/skills/remotion-to-hyperframes/references/timing.md +165 -0
  151. package/.agents/skills/remotion-to-hyperframes/references/transitions.md +114 -0
  152. package/.agents/skills/remotion-to-hyperframes/scripts/.gitkeep +0 -0
  153. package/.agents/skills/remotion-to-hyperframes/scripts/frame_strip.sh +107 -0
  154. package/.agents/skills/remotion-to-hyperframes/scripts/lint_source.py +358 -0
  155. package/.agents/skills/remotion-to-hyperframes/scripts/render_diff.sh +103 -0
  156. package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/blocker.tsx +50 -0
  157. package/.agents/skills/remotion-to-hyperframes/scripts/tests/fixtures/clean.tsx +46 -0
  158. package/.agents/skills/remotion-to-hyperframes/scripts/tests/smoke.sh +90 -0
  159. package/.agents/skills/seo-audit/SKILL.md +497 -0
  160. package/.agents/skills/seo-audit/evals/evals.json +136 -0
  161. package/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
  162. package/.agents/skills/seo-audit/references/international-seo.md +230 -0
  163. package/README.md +4 -2
  164. package/SDK.md +64 -1
  165. package/dist/agents/coding.agent.d.ts +558 -0
  166. package/dist/agents/coding.agent.d.ts.map +1 -1
  167. package/dist/agents/coding.agent.js +8 -0
  168. package/dist/agents/coding.agent.js.map +1 -1
  169. package/dist/agents/developer-helper.agent.d.ts +712 -0
  170. package/dist/agents/developer-helper.agent.d.ts.map +1 -1
  171. package/dist/agents/developer-helper.agent.js +6 -0
  172. package/dist/agents/developer-helper.agent.js.map +1 -1
  173. package/dist/agents/docs-research.agent.d.ts +8 -0
  174. package/dist/agents/docs-research.agent.d.ts.map +1 -1
  175. package/dist/agents/finance.agent.d.ts +8 -0
  176. package/dist/agents/finance.agent.d.ts.map +1 -1
  177. package/dist/agents/manager.d.ts +837 -2
  178. package/dist/agents/manager.d.ts.map +1 -1
  179. package/dist/agents/manager.js +28 -0
  180. package/dist/agents/manager.js.map +1 -1
  181. package/dist/agents/security.agent.d.ts +165 -3
  182. package/dist/agents/security.agent.d.ts.map +1 -1
  183. package/dist/agents/security.agent.js +3 -0
  184. package/dist/agents/security.agent.js.map +1 -1
  185. package/dist/agents/swarm/main.js +1 -1
  186. package/dist/agents/swarm/main.js.map +1 -1
  187. package/dist/agents/swarm/registry.d.ts.map +1 -1
  188. package/dist/agents/swarm/registry.js +232 -26
  189. package/dist/agents/swarm/registry.js.map +1 -1
  190. package/dist/cli/doctor.d.ts +14 -0
  191. package/dist/cli/doctor.d.ts.map +1 -1
  192. package/dist/cli/doctor.js +91 -0
  193. package/dist/cli/doctor.js.map +1 -1
  194. package/dist/cli/menu.d.ts.map +1 -1
  195. package/dist/cli/menu.js +102 -0
  196. package/dist/cli/menu.js.map +1 -1
  197. package/dist/cli/setup.d.ts +10 -0
  198. package/dist/cli/setup.d.ts.map +1 -1
  199. package/dist/cli/setup.js +178 -0
  200. package/dist/cli/setup.js.map +1 -1
  201. package/dist/cli/swarm.d.ts +1 -0
  202. package/dist/cli/swarm.d.ts.map +1 -1
  203. package/dist/cli/swarm.js +47 -8
  204. package/dist/cli/swarm.js.map +1 -1
  205. package/dist/cli/theme.d.ts +0 -24
  206. package/dist/cli/theme.d.ts.map +1 -1
  207. package/dist/cli/theme.js +6 -2
  208. package/dist/cli/theme.js.map +1 -1
  209. package/dist/config/env.d.ts +10 -0
  210. package/dist/config/env.d.ts.map +1 -1
  211. package/dist/config/env.js +38 -17
  212. package/dist/config/env.js.map +1 -1
  213. package/dist/index.js +96 -5
  214. package/dist/index.js.map +1 -1
  215. package/dist/jobs/trigger-orchestrator.d.ts +5 -1
  216. package/dist/jobs/trigger-orchestrator.d.ts.map +1 -1
  217. package/dist/jobs/trigger-orchestrator.js +29 -9
  218. package/dist/jobs/trigger-orchestrator.js.map +1 -1
  219. package/dist/jobs/trigger-router.d.ts.map +1 -1
  220. package/dist/jobs/trigger-router.js +3 -2
  221. package/dist/jobs/trigger-router.js.map +1 -1
  222. package/dist/memory/corporate-wiki.d.ts +15 -0
  223. package/dist/memory/corporate-wiki.d.ts.map +1 -0
  224. package/dist/memory/corporate-wiki.js +152 -0
  225. package/dist/memory/corporate-wiki.js.map +1 -0
  226. package/dist/memory/scratchpad.d.ts +2 -0
  227. package/dist/memory/scratchpad.d.ts.map +1 -1
  228. package/dist/memory/scratchpad.js +27 -0
  229. package/dist/memory/scratchpad.js.map +1 -1
  230. package/dist/observability/doctor.d.ts.map +1 -1
  231. package/dist/observability/doctor.js +12 -4
  232. package/dist/observability/doctor.js.map +1 -1
  233. package/dist/observability/traces.d.ts +72 -0
  234. package/dist/observability/traces.d.ts.map +1 -0
  235. package/dist/observability/traces.js +1134 -0
  236. package/dist/observability/traces.js.map +1 -0
  237. package/dist/runtime/swarm.d.ts +1 -1
  238. package/dist/runtime/swarm.d.ts.map +1 -1
  239. package/dist/runtime/swarm.js +54 -25
  240. package/dist/runtime/swarm.js.map +1 -1
  241. package/dist/safety/approvals.d.ts +2 -2
  242. package/dist/safety/approvals.d.ts.map +1 -1
  243. package/dist/safety/approvals.js +47 -1
  244. package/dist/safety/approvals.js.map +1 -1
  245. package/dist/safety/redaction.d.ts.map +1 -1
  246. package/dist/safety/redaction.js +10 -0
  247. package/dist/safety/redaction.js.map +1 -1
  248. package/dist/tools/cloud.tool.d.ts +394 -0
  249. package/dist/tools/cloud.tool.d.ts.map +1 -0
  250. package/dist/tools/cloud.tool.js +784 -0
  251. package/dist/tools/cloud.tool.js.map +1 -0
  252. package/dist/tools/computer-use.tool.d.ts +2 -2
  253. package/dist/tools/corporate-wiki.tool.d.ts +22 -0
  254. package/dist/tools/corporate-wiki.tool.d.ts.map +1 -0
  255. package/dist/tools/corporate-wiki.tool.js +43 -0
  256. package/dist/tools/corporate-wiki.tool.js.map +1 -0
  257. package/dist/tools/devops.tool.d.ts +162 -0
  258. package/dist/tools/devops.tool.d.ts.map +1 -0
  259. package/dist/tools/devops.tool.js +377 -0
  260. package/dist/tools/devops.tool.js.map +1 -0
  261. package/dist/tools/multimedia.tool.d.ts +126 -0
  262. package/dist/tools/multimedia.tool.d.ts.map +1 -0
  263. package/dist/tools/multimedia.tool.js +533 -0
  264. package/dist/tools/multimedia.tool.js.map +1 -0
  265. package/dist/tools/osint.tool.d.ts +6 -6
  266. package/dist/tools/sandbox-dev.tool.d.ts +15 -0
  267. package/dist/tools/sandbox-dev.tool.d.ts.map +1 -0
  268. package/dist/tools/sandbox-dev.tool.js +146 -0
  269. package/dist/tools/sandbox-dev.tool.js.map +1 -0
  270. package/dist/tools/scratchpad.tool.d.ts +8 -0
  271. package/dist/tools/scratchpad.tool.d.ts.map +1 -1
  272. package/dist/tools/scratchpad.tool.js +40 -1
  273. package/dist/tools/scratchpad.tool.js.map +1 -1
  274. package/dist/tools/setup-assistant.tool.d.ts +1 -1
  275. package/dist/tools/swarm-ops.tool.d.ts +14 -0
  276. package/dist/tools/swarm-ops.tool.d.ts.map +1 -1
  277. package/dist/tools/swarm-ops.tool.js +47 -0
  278. package/dist/tools/swarm-ops.tool.js.map +1 -1
  279. package/dist/tools/sysops.tool.d.ts +157 -0
  280. package/dist/tools/sysops.tool.d.ts.map +1 -0
  281. package/dist/tools/sysops.tool.js +643 -0
  282. package/dist/tools/sysops.tool.js.map +1 -0
  283. package/dist/voice/deepgram.d.ts.map +1 -1
  284. package/dist/voice/deepgram.js +30 -2
  285. package/dist/voice/deepgram.js.map +1 -1
  286. package/package.json +8 -1
  287. package/scripts/release-github.mjs +23 -16
@@ -0,0 +1,15 @@
1
+ export declare const sandboxDevTools: {
2
+ executeSandboxDevLoop: import("ai").Tool<{
3
+ compileCommand: string;
4
+ testCommand: string;
5
+ cwd?: string | undefined;
6
+ }, {
7
+ success: boolean;
8
+ stage: string;
9
+ exitCode: any;
10
+ stdout: any;
11
+ stderr: any;
12
+ diagnostics: string;
13
+ }>;
14
+ };
15
+ //# sourceMappingURL=sandbox-dev.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-dev.tool.d.ts","sourceRoot":"","sources":["../../src/tools/sandbox-dev.tool.ts"],"names":[],"mappings":"AAgGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAkE3B,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { tool } from 'ai';
2
+ import { z } from 'zod';
3
+ import { execFile } from 'node:child_process';
4
+ import { promisify } from 'node:util';
5
+ import { emitProgress } from '../runtime/progress.js';
6
+ const execFileAsync = promisify(execFile);
7
+ async function runCommand(command, cwd) {
8
+ const shell = process.platform === 'win32' ? 'powershell.exe' : '/bin/sh';
9
+ const args = process.platform === 'win32'
10
+ ? ['-NoProfile', '-Command', command]
11
+ : ['-c', command];
12
+ try {
13
+ const { stdout, stderr } = await execFileAsync(shell, args, {
14
+ cwd,
15
+ timeout: 180000, // 3 minutes timeout
16
+ maxBuffer: 50 * 1024 * 1024, // 50MB buffer
17
+ windowsHide: true,
18
+ });
19
+ return { success: true, exitCode: 0, stdout: stdout.trim(), stderr: stderr.trim() };
20
+ }
21
+ catch (error) {
22
+ return {
23
+ success: false,
24
+ exitCode: error.code ?? 1,
25
+ stdout: error.stdout?.toString().trim() ?? '',
26
+ stderr: error.stderr?.toString().trim() ?? '',
27
+ };
28
+ }
29
+ }
30
+ function parseDiagnostics(buildOutput, testOutput) {
31
+ const tsErrorRegex = /(\S+\.ts[x]?)\((\d+),(\d+)\): error (TS\d+): (.*)/g;
32
+ const tsErrors = [];
33
+ let match;
34
+ while ((match = tsErrorRegex.exec(buildOutput)) !== null) {
35
+ tsErrors.push(`- File: ${match[1]}, Line: ${match[2]}, Column: ${match[3]}, Code: ${match[4]}, Message: ${match[5]}`);
36
+ }
37
+ // Fallback if no regex match but build output has TS errors
38
+ if (tsErrors.length === 0 && (buildOutput.includes('error TS') || buildOutput.includes('TypeScript error'))) {
39
+ tsErrors.push('Detected TypeScript compilation errors. Output snippet:');
40
+ tsErrors.push(buildOutput.substring(0, 1000));
41
+ }
42
+ const playwrightErrors = [];
43
+ if (testOutput.includes('Error:') || testOutput.includes('expect(') || testOutput.includes('failed')) {
44
+ const lines = testOutput.split('\n');
45
+ let captureStack = false;
46
+ let currentError = [];
47
+ for (const line of lines) {
48
+ if (line.includes('Error:') || line.includes('expect(') || line.includes('✕') || /^\s*\d+\)/.test(line)) {
49
+ if (currentError.length > 0) {
50
+ playwrightErrors.push(currentError.join('\n'));
51
+ currentError = [];
52
+ }
53
+ captureStack = true;
54
+ currentError.push(line.trim());
55
+ }
56
+ else if (captureStack && (line.trim().startsWith('at ') || line.trim().startsWith('-'))) {
57
+ currentError.push(line.trim());
58
+ }
59
+ else if (line.trim() === '' && currentError.length > 5) {
60
+ captureStack = false;
61
+ }
62
+ }
63
+ if (currentError.length > 0) {
64
+ playwrightErrors.push(currentError.join('\n'));
65
+ }
66
+ }
67
+ const report = [];
68
+ if (tsErrors.length > 0) {
69
+ report.push('=== COMPILATION FAILURES DETECTED ===');
70
+ report.push(tsErrors.join('\n'));
71
+ report.push('\n[ACTION REQUIRED] Please review the compilation errors above, locate the files, fix the type or import mismatches, and run the sandbox dev loop again.');
72
+ }
73
+ if (playwrightErrors.length > 0) {
74
+ report.push('=== PLAYWRIGHT TEST FAILURES DETECTED ===');
75
+ report.push(playwrightErrors.slice(0, 8).map(err => `- ${err}`).join('\n\n'));
76
+ report.push('\n[ACTION REQUIRED] Please review the test assertion or environment failures above, locate the test/source files, fix the bugs, and run the sandbox dev loop again.');
77
+ }
78
+ if (tsErrors.length === 0 && playwrightErrors.length === 0) {
79
+ if (buildOutput.includes('Failed') || testOutput.includes('Failed') || testOutput.includes('fail')) {
80
+ report.push('=== UNDIAGNOSED FAILURES DETECTED ===');
81
+ report.push('Build or test failed but could not parse exact locations. Raw build output snippet:\n' + buildOutput.substring(0, 500));
82
+ report.push('\nRaw test output snippet:\n' + testOutput.substring(0, 500));
83
+ }
84
+ }
85
+ return report.join('\n\n');
86
+ }
87
+ export const sandboxDevTools = {
88
+ executeSandboxDevLoop: tool({
89
+ description: 'Compile the current workspace, run Playwright/unit test suites inside the isolated sandbox loop, detect exact build or test failures, and feed errors back to the caller for self-healing.',
90
+ inputSchema: z.object({
91
+ compileCommand: z.string().optional().default('npm run build').describe('Command to compile or build the workspace.'),
92
+ testCommand: z.string().optional().default('npx playwright test').describe('Command to run Playwright E2E or unit tests.'),
93
+ cwd: z.string().optional().describe('Optional directory to run the loop in.'),
94
+ }),
95
+ execute: async ({ compileCommand, testCommand, cwd }) => {
96
+ const activeCwd = cwd || process.cwd();
97
+ emitProgress({ type: 'tool:start', label: 'Starting Sandbox Compile & Test Loop', detail: compileCommand });
98
+ const { SwarmTraceTracker } = await import('../observability/traces.js');
99
+ const tracker = SwarmTraceTracker.getInstance();
100
+ await tracker.recordEvent('tool_call', 'executeSandboxDevLoop', `Compile: ${compileCommand}`);
101
+ // Step 1: Compile Code
102
+ const buildResult = await runCommand(compileCommand, activeCwd);
103
+ if (!buildResult.success) {
104
+ emitProgress({ type: 'tool:error', label: 'Sandbox Compilation Failed' });
105
+ await tracker.recordEvent('tool_call', 'Sandbox Compile Failed', buildResult.stderr || 'Build failed');
106
+ const diagnostics = parseDiagnostics(buildResult.stdout + '\n' + buildResult.stderr, '');
107
+ return {
108
+ success: false,
109
+ stage: 'COMPILE',
110
+ exitCode: buildResult.exitCode,
111
+ stdout: buildResult.stdout,
112
+ stderr: buildResult.stderr,
113
+ diagnostics,
114
+ };
115
+ }
116
+ emitProgress({ type: 'step', label: 'Compilation passed. Running test suites...' });
117
+ await tracker.recordEvent('tool_call', 'Sandbox Compile Passed', 'Running test suites...');
118
+ // Step 2: Run tests
119
+ const testResult = await runCommand(testCommand, activeCwd);
120
+ const diagnostics = parseDiagnostics(buildResult.stdout, testResult.stdout + '\n' + testResult.stderr);
121
+ if (!testResult.success) {
122
+ emitProgress({ type: 'tool:error', label: 'Sandbox Test Suite Failed' });
123
+ await tracker.recordEvent('tool_call', 'Sandbox Tests Failed', testResult.stderr || 'Tests failed');
124
+ return {
125
+ success: false,
126
+ stage: 'TEST',
127
+ exitCode: testResult.exitCode,
128
+ stdout: testResult.stdout,
129
+ stderr: testResult.stderr,
130
+ diagnostics,
131
+ };
132
+ }
133
+ emitProgress({ type: 'tool:end', label: 'Sandbox Loop Passed Perfectly!' });
134
+ await tracker.recordEvent('tool_call', 'Sandbox Loop Passed', 'All compile & test checks passed cleanly.');
135
+ return {
136
+ success: true,
137
+ stage: 'COMPLETE',
138
+ exitCode: 0,
139
+ stdout: testResult.stdout,
140
+ stderr: testResult.stderr,
141
+ diagnostics: 'All checks passed cleanly! Zero errors detected.',
142
+ };
143
+ },
144
+ }),
145
+ };
146
+ //# sourceMappingURL=sandbox-dev.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-dev.tool.js","sourceRoot":"","sources":["../../src/tools/sandbox-dev.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO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AAU,CAAC,MAAM;gBACzB,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,WAAW,EAAE,kDAAkD;aAChE,CAAC;QACJ,CAAC;KACF,CAAC;CACH,CAAC"}
@@ -3,5 +3,13 @@ export declare function createScratchpadTools(runId: string): {
3
3
  appendScratchpad: import("ai").Tool<{
4
4
  note: string;
5
5
  }, string>;
6
+ getSharedValue: import("ai").Tool<{
7
+ key: string;
8
+ }, any>;
9
+ setSharedValue: import("ai").Tool<{
10
+ key: string;
11
+ value: any;
12
+ }, string>;
13
+ listSharedKeys: import("ai").Tool<Record<string, never>, string[]>;
6
14
  };
7
15
  //# sourceMappingURL=scratchpad.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scratchpad.tool.d.ts","sourceRoot":"","sources":["../../src/tools/scratchpad.tool.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM;;;;;EAuBlD"}
1
+ {"version":3,"file":"scratchpad.tool.d.ts","sourceRoot":"","sources":["../../src/tools/scratchpad.tool.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;EA8DlD"}
@@ -1,6 +1,6 @@
1
1
  import { tool } from 'ai';
2
2
  import { z } from 'zod';
3
- import { appendScratchpad, readScratchpad } from '../memory/scratchpad.js';
3
+ import { appendScratchpad, readScratchpad, getSharedScratchpad, saveSharedScratchpad } from '../memory/scratchpad.js';
4
4
  import { emitProgress } from '../runtime/progress.js';
5
5
  export function createScratchpadTools(runId) {
6
6
  return {
@@ -24,6 +24,45 @@ export function createScratchpadTools(runId) {
24
24
  return result;
25
25
  },
26
26
  }),
27
+ getSharedValue: tool({
28
+ description: 'Get a value from the shared multi-agent scratchpad by key. Useful for retrieving volatile variables like staging_url, git_branch, or credentials.',
29
+ inputSchema: z.object({
30
+ key: z.string().describe('The key of the shared variable to retrieve.'),
31
+ }),
32
+ execute: async ({ key }) => {
33
+ emitProgress({ type: 'fetch:start', label: `Reading shared value: ${key}`, detail: runId });
34
+ const store = await getSharedScratchpad(runId);
35
+ const value = store[key];
36
+ emitProgress({ type: 'fetch:end', label: `Shared value loaded: ${key}`, detail: runId });
37
+ return value !== undefined ? value : null;
38
+ },
39
+ }),
40
+ setSharedValue: tool({
41
+ description: 'Set a value in the shared multi-agent scratchpad by key. Useful for sharing volatile variables like staging_url, git_branch, or credentials with other agents.',
42
+ inputSchema: z.object({
43
+ key: z.string().describe('The key of the shared variable to set.'),
44
+ value: z.any().describe('The JSON-serializable value to store.'),
45
+ }),
46
+ execute: async ({ key, value }) => {
47
+ emitProgress({ type: 'fetch:start', label: `Setting shared value: ${key}`, detail: runId });
48
+ const store = await getSharedScratchpad(runId);
49
+ store[key] = value;
50
+ await saveSharedScratchpad(runId, store);
51
+ emitProgress({ type: 'fetch:end', label: `Shared value saved: ${key}`, detail: runId });
52
+ return `Successfully set shared key "${key}".`;
53
+ },
54
+ }),
55
+ listSharedKeys: tool({
56
+ description: 'List all active keys currently stored in the shared multi-agent scratchpad for this run.',
57
+ inputSchema: z.object({}),
58
+ execute: async () => {
59
+ emitProgress({ type: 'fetch:start', label: 'Listing shared keys', detail: runId });
60
+ const store = await getSharedScratchpad(runId);
61
+ const keys = Object.keys(store);
62
+ emitProgress({ type: 'fetch:end', label: 'Shared keys listed', detail: runId });
63
+ return keys;
64
+ },
65
+ }),
27
66
  };
28
67
  }
29
68
  //# sourceMappingURL=scratchpad.tool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scratchpad.tool.js","sourceRoot":"","sources":["../../src/tools/scratchpad.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;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G,EAAE,KAAK,EAAE,EAAE,EAAE;gBAChC,YAAY,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,yBAAyB,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC5F,MAAM,KAAK,GAAG,MAAM,mBAAmB,CAAC,KAAK,CAAC,CAAC;gBAC/C,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBACnB,MAAM,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBACzC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,uBAAuB,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBACxF,OAAO,gCAAgC,GAAG,IAAI,CAAC;YACjD,CAAC;SACF,CAAC;QACF,cAAc,EAAE,IAAI,CAAC;YACnB,WAAW,EAAE,0FAA0F;YACvG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,YAAY,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBACnF,MAAM,KAAK,GAAG,MAAM,mBAAmB,CAAC,KAAK,CAAC,CAAC;gBAC/C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAChC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBAChF,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -24,7 +24,7 @@ export declare const setupAssistantTools: {
24
24
  secureSetupHint: string;
25
25
  }>;
26
26
  launchSecureSetup: import("ai").Tool<{
27
- section?: "gateway" | "redis" | "jobs" | "all" | "composio" | "tavily" | "qstash" | "voice" | "workspace" | undefined;
27
+ section?: "gateway" | "redis" | "jobs" | "all" | "voice" | "composio" | "tavily" | "qstash" | "workspace" | undefined;
28
28
  }, {
29
29
  instruction: string;
30
30
  command: string;
@@ -17,4 +17,18 @@ export declare const swarmOpsTools: {
17
17
  scope: string;
18
18
  }>;
19
19
  };
20
+ /**
21
+ * Peer-to-Peer Message Bus factory tool.
22
+ * Dynamically launches a peer specialist in a Joint War Room sub-thread.
23
+ */
24
+ export declare function getCollaborateWithPeerTool(callingAgentName: string): import("ai").Tool<{
25
+ peerKey: string;
26
+ task: string;
27
+ context?: string | undefined;
28
+ }, {
29
+ sender: string;
30
+ recipient: string;
31
+ task: string;
32
+ responseReport: string;
33
+ }>;
20
34
  //# sourceMappingURL=swarm-ops.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swarm-ops.tool.d.ts","sourceRoot":"","sources":["../../src/tools/swarm-ops.tool.ts"],"names":[],"mappings":"AAkBA,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC,CAS/E;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CA2BzB,CAAC"}
1
+ {"version":3,"file":"swarm-ops.tool.d.ts","sourceRoot":"","sources":["../../src/tools/swarm-ops.tool.ts"],"names":[],"mappings":"AAkBA,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC,CAS/E;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CA2BzB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,gBAAgB,EAAE,MAAM;;;;;;;;;GAiDlE"}
@@ -52,4 +52,51 @@ export const swarmOpsTools = {
52
52
  },
53
53
  }),
54
54
  };
55
+ /**
56
+ * Peer-to-Peer Message Bus factory tool.
57
+ * Dynamically launches a peer specialist in a Joint War Room sub-thread.
58
+ */
59
+ export function getCollaborateWithPeerTool(callingAgentName) {
60
+ return tool({
61
+ description: 'Invite a peer specialist agent from the digital corporation swarm to a collaborative "Joint War Room" thread to solve cross-functional tasks or negotiate payload contracts directly without involving the COO.',
62
+ inputSchema: z.object({
63
+ peerKey: z.string().describe("The key of the specialist peer to collaborate with (e.g., 'frontendArchitect', 'backendArchitect', 'qaEngineer', 'creativeDirector', 'marketAnalyst', 'seoExpert', 'fullStackCoder')."),
64
+ task: z.string().describe('Describe the task/problem to collaborate on. Be specific and clear about what you need from them.'),
65
+ context: z.string().optional().describe('Optional context (e.g., API schemas, file contents, error logs, or code blocks) to share with the peer.'),
66
+ }),
67
+ execute: async ({ peerKey, task, context }) => {
68
+ emitProgress({ type: 'step', label: `Joint War Room: ${callingAgentName} invited ${peerKey}` });
69
+ const { specialistRegistry } = await import('../agents/swarm/registry.js');
70
+ const { SwarmAgent } = await import('../runtime/swarm.js');
71
+ const { SwarmTraceTracker } = await import('../observability/traces.js');
72
+ const tracker = SwarmTraceTracker.getInstance();
73
+ await tracker.recordEvent('collaboration', `Collab Invite: ${callingAgentName} -> ${peerKey}`, task);
74
+ const peerConfig = specialistRegistry[peerKey];
75
+ if (!peerConfig) {
76
+ throw new Error(`Specialist peer with key "${peerKey}" was not found in the corporation registry. Available peers: ${Object.keys(specialistRegistry).join(', ')}`);
77
+ }
78
+ // Instantiate and run the peer agent in their own context
79
+ const peerAgent = new SwarmAgent(peerConfig);
80
+ await peerAgent.init();
81
+ const prompt = `[JOINT WAR ROOM COLLABORATION]
82
+ You have been invited by your peer ${callingAgentName} to a Joint War Room to collaborate on a task.
83
+
84
+ Sender: ${callingAgentName}
85
+ Task: ${task}
86
+
87
+ Shared Context / Inputs:
88
+ ${context || 'None provided'}
89
+
90
+ Please analyze the request, use your specialized tools to investigate or complete the task, and provide a clear, comprehensive report or resolution back to your peer.`;
91
+ const response = await peerAgent.run(prompt);
92
+ emitProgress({ type: 'step', label: `Joint War Room: ${peerKey} delivered collaboration report to ${callingAgentName}` });
93
+ return {
94
+ sender: callingAgentName,
95
+ recipient: peerKey,
96
+ task,
97
+ responseReport: response,
98
+ };
99
+ }
100
+ });
101
+ }
55
102
  //# sourceMappingURL=swarm-ops.tool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"swarm-ops.tool.js","sourceRoot":"","sources":["../../src/tools/swarm-ops.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE/D,KAAK,UAAU,eAAe,CAAC,EAAU,EAAE,KAA2B;IACpE,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,sBAAsB,EAAE,EAAE,CAAC;IACvC,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAyB,oBAAoB,EAAE,EAAE,CAAC,CAAC;IAC9E,IAAI,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;IACjB,MAAM,SAAS,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EAAU;IAC9C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,sBAAsB,EAAE,EAAE,CAAC;IACvC,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,CAAS,GAAG,CAAC,CAAC;QACzC,OAAO,GAAG,KAAK,QAAQ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;;;EAGV,OAAO,IAAI,eAAe;;uKAE2I,CAAC;YAElK,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAE7C,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,OAAO,sCAAsC,gBAAgB,EAAE,EAAE,CAAC,CAAC;YAC1H,OAAO;gBACL,MAAM,EAAE,gBAAgB;gBACxB,SAAS,EAAE,OAAO;gBAClB,IAAI;gBACJ,cAAc,EAAE,QAAQ;aACzB,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,157 @@
1
+ export declare const sysopsTools: {
2
+ listOpenPorts: import("ai").Tool<Record<string, never>, {
3
+ ports: any;
4
+ error?: never;
5
+ rawError?: never;
6
+ } | {
7
+ error: string;
8
+ rawError: any;
9
+ ports?: never;
10
+ }>;
11
+ pingHost: import("ai").Tool<{
12
+ host: string;
13
+ }, {
14
+ host: string;
15
+ success: boolean;
16
+ output: string;
17
+ error?: never;
18
+ rawError?: never;
19
+ } | {
20
+ host: string;
21
+ success: boolean;
22
+ error: string;
23
+ rawError: any;
24
+ output?: never;
25
+ }>;
26
+ traceRoute: import("ai").Tool<{
27
+ host: string;
28
+ }, {
29
+ host: string;
30
+ output: string;
31
+ error?: never;
32
+ rawError?: never;
33
+ } | {
34
+ host: string;
35
+ error: string;
36
+ rawError: any;
37
+ output?: never;
38
+ }>;
39
+ getDatabaseSchema: import("ai").Tool<{
40
+ databasePath: string;
41
+ }, {
42
+ error: string;
43
+ databasePath?: never;
44
+ method?: never;
45
+ schema?: never;
46
+ tables?: never;
47
+ } | {
48
+ databasePath: string;
49
+ method: string;
50
+ schema: string;
51
+ error?: never;
52
+ tables?: never;
53
+ } | {
54
+ databasePath: string;
55
+ method: string;
56
+ schema: any;
57
+ tables: any;
58
+ error?: never;
59
+ }>;
60
+ runDatabaseQuery: import("ai").Tool<{
61
+ databasePath: string;
62
+ sql: string;
63
+ }, any>;
64
+ listSystemProcesses: import("ai").Tool<{
65
+ sortBy: "memory" | "cpu" | "pid";
66
+ limit: number;
67
+ filterName?: string | undefined;
68
+ }, {
69
+ processes: {
70
+ pid: number;
71
+ name: string;
72
+ cpu: number;
73
+ memory: number;
74
+ }[];
75
+ error?: never;
76
+ rawError?: never;
77
+ } | {
78
+ error: string;
79
+ rawError: any;
80
+ processes?: never;
81
+ }>;
82
+ killSystemProcess: import("ai").Tool<{
83
+ force: boolean;
84
+ pid?: number | undefined;
85
+ name?: string | undefined;
86
+ port?: number | undefined;
87
+ }, {
88
+ error: string;
89
+ success?: never;
90
+ killedPids?: never;
91
+ name?: never;
92
+ rawError?: never;
93
+ } | {
94
+ success: boolean;
95
+ error: string;
96
+ killedPids?: never;
97
+ name?: never;
98
+ rawError?: never;
99
+ } | {
100
+ success: boolean;
101
+ killedPids: number[];
102
+ error?: never;
103
+ name?: never;
104
+ rawError?: never;
105
+ } | {
106
+ success: boolean;
107
+ name: string;
108
+ error?: never;
109
+ killedPids?: never;
110
+ rawError?: never;
111
+ } | {
112
+ success: boolean;
113
+ error: string;
114
+ rawError: any;
115
+ killedPids?: never;
116
+ name?: never;
117
+ }>;
118
+ getSystemMetrics: import("ai").Tool<Record<string, never>, {
119
+ success: boolean;
120
+ metrics: {
121
+ os: {
122
+ name: string;
123
+ platform: NodeJS.Platform;
124
+ release: string;
125
+ architecture: NodeJS.Architecture;
126
+ uptimeSeconds: number;
127
+ uptimeHours: number;
128
+ };
129
+ cpu: {
130
+ activeUtilizationPercent: number;
131
+ cores: number;
132
+ model: string;
133
+ };
134
+ memory: {
135
+ totalGb: number;
136
+ freeGb: number;
137
+ usedGb: number;
138
+ utilizationPercent: number;
139
+ };
140
+ disk: {
141
+ workspacePath: string;
142
+ totalGb: number;
143
+ freeGb: number;
144
+ usedGb: number;
145
+ utilizationPercent: number;
146
+ };
147
+ };
148
+ error?: never;
149
+ rawError?: never;
150
+ } | {
151
+ success: boolean;
152
+ error: string;
153
+ rawError: any;
154
+ metrics?: never;
155
+ }>;
156
+ };
157
+ //# sourceMappingURL=sysops.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sysops.tool.d.ts","sourceRoot":"","sources":["../../src/tools/sysops.tool.ts"],"names":[],"mappings":"AAkHA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsUY,MAAM;kBAAQ,MAAM;iBAAO,MAAM;oBAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8OpF,CAAC"}