comisai 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2340) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +186 -0
  3. package/dist/agent.d.ts +1 -0
  4. package/dist/agent.js +2 -0
  5. package/dist/channels.d.ts +1 -0
  6. package/dist/channels.js +2 -0
  7. package/dist/cli-entry.d.ts +2 -0
  8. package/dist/cli-entry.js +16 -0
  9. package/dist/cli.d.ts +1 -0
  10. package/dist/cli.js +2 -0
  11. package/dist/core.d.ts +1 -0
  12. package/dist/core.js +2 -0
  13. package/dist/daemon.d.ts +1 -0
  14. package/dist/daemon.js +2 -0
  15. package/dist/gateway.d.ts +1 -0
  16. package/dist/gateway.js +2 -0
  17. package/dist/index.d.ts +12 -0
  18. package/dist/index.js +15 -0
  19. package/dist/infra.d.ts +1 -0
  20. package/dist/infra.js +2 -0
  21. package/dist/memory.d.ts +1 -0
  22. package/dist/memory.js +2 -0
  23. package/dist/scheduler.d.ts +1 -0
  24. package/dist/scheduler.js +2 -0
  25. package/dist/shared.d.ts +1 -0
  26. package/dist/shared.js +2 -0
  27. package/dist/skills.d.ts +1 -0
  28. package/dist/skills.js +2 -0
  29. package/node_modules/@comis/agent/dist/background/auto-background-middleware.d.ts +27 -0
  30. package/node_modules/@comis/agent/dist/background/auto-background-middleware.js +87 -0
  31. package/node_modules/@comis/agent/dist/background/background-task-manager.d.ts +34 -0
  32. package/node_modules/@comis/agent/dist/background/background-task-manager.js +199 -0
  33. package/node_modules/@comis/agent/dist/background/background-task-persistence.d.ts +26 -0
  34. package/node_modules/@comis/agent/dist/background/background-task-persistence.js +117 -0
  35. package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +30 -0
  36. package/node_modules/@comis/agent/dist/background/background-task-types.js +7 -0
  37. package/node_modules/@comis/agent/dist/background/index.d.ts +11 -0
  38. package/node_modules/@comis/agent/dist/background/index.js +9 -0
  39. package/node_modules/@comis/agent/dist/bootstrap/index.d.ts +6 -0
  40. package/node_modules/@comis/agent/dist/bootstrap/index.js +7 -0
  41. package/node_modules/@comis/agent/dist/bootstrap/section-extractor.d.ts +28 -0
  42. package/node_modules/@comis/agent/dist/bootstrap/section-extractor.js +70 -0
  43. package/node_modules/@comis/agent/dist/bootstrap/sections/context-sections.d.ts +43 -0
  44. package/node_modules/@comis/agent/dist/bootstrap/sections/context-sections.js +224 -0
  45. package/node_modules/@comis/agent/dist/bootstrap/sections/core-sections.d.ts +12 -0
  46. package/node_modules/@comis/agent/dist/bootstrap/sections/core-sections.js +162 -0
  47. package/node_modules/@comis/agent/dist/bootstrap/sections/docs-sections.d.ts +19 -0
  48. package/node_modules/@comis/agent/dist/bootstrap/sections/docs-sections.js +75 -0
  49. package/node_modules/@comis/agent/dist/bootstrap/sections/index.d.ts +10 -0
  50. package/node_modules/@comis/agent/dist/bootstrap/sections/index.js +11 -0
  51. package/node_modules/@comis/agent/dist/bootstrap/sections/media-sections.d.ts +21 -0
  52. package/node_modules/@comis/agent/dist/bootstrap/sections/media-sections.js +117 -0
  53. package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.d.ts +14 -0
  54. package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.js +119 -0
  55. package/node_modules/@comis/agent/dist/bootstrap/sections/skills-memory-sections.d.ts +7 -0
  56. package/node_modules/@comis/agent/dist/bootstrap/sections/skills-memory-sections.js +114 -0
  57. package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.d.ts +81 -0
  58. package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +549 -0
  59. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +62 -0
  60. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +363 -0
  61. package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.d.ts +47 -0
  62. package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.js +106 -0
  63. package/node_modules/@comis/agent/dist/bootstrap/sections/verbosity-sections.d.ts +30 -0
  64. package/node_modules/@comis/agent/dist/bootstrap/sections/verbosity-sections.js +68 -0
  65. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +108 -0
  66. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +199 -0
  67. package/node_modules/@comis/agent/dist/bootstrap/types.d.ts +96 -0
  68. package/node_modules/@comis/agent/dist/bootstrap/types.js +21 -0
  69. package/node_modules/@comis/agent/dist/bootstrap/workspace-loader.d.ts +121 -0
  70. package/node_modules/@comis/agent/dist/bootstrap/workspace-loader.js +227 -0
  71. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +30 -0
  72. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +94 -0
  73. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +95 -0
  74. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +104 -0
  75. package/node_modules/@comis/agent/dist/bridge/bridge-safety-controls.d.ts +105 -0
  76. package/node_modules/@comis/agent/dist/bridge/bridge-safety-controls.js +182 -0
  77. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +185 -0
  78. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +775 -0
  79. package/node_modules/@comis/agent/dist/budget/budget-guard.d.ts +48 -0
  80. package/node_modules/@comis/agent/dist/budget/budget-guard.js +128 -0
  81. package/node_modules/@comis/agent/dist/budget/cost-tracker.d.ts +110 -0
  82. package/node_modules/@comis/agent/dist/budget/cost-tracker.js +124 -0
  83. package/node_modules/@comis/agent/dist/budget/turn-budget-tracker.d.ts +63 -0
  84. package/node_modules/@comis/agent/dist/budget/turn-budget-tracker.js +65 -0
  85. package/node_modules/@comis/agent/dist/commands/budget-command.d.ts +37 -0
  86. package/node_modules/@comis/agent/dist/commands/budget-command.js +97 -0
  87. package/node_modules/@comis/agent/dist/commands/command-handler.d.ts +23 -0
  88. package/node_modules/@comis/agent/dist/commands/command-handler.js +508 -0
  89. package/node_modules/@comis/agent/dist/commands/command-parser.d.ts +24 -0
  90. package/node_modules/@comis/agent/dist/commands/command-parser.js +182 -0
  91. package/node_modules/@comis/agent/dist/commands/index.d.ts +8 -0
  92. package/node_modules/@comis/agent/dist/commands/index.js +10 -0
  93. package/node_modules/@comis/agent/dist/commands/prompt-skill-command.d.ts +53 -0
  94. package/node_modules/@comis/agent/dist/commands/prompt-skill-command.js +105 -0
  95. package/node_modules/@comis/agent/dist/commands/types.d.ts +184 -0
  96. package/node_modules/@comis/agent/dist/commands/types.js +14 -0
  97. package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.d.ts +20 -0
  98. package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.js +36 -0
  99. package/node_modules/@comis/agent/dist/context-engine/constants.d.ts +167 -0
  100. package/node_modules/@comis/agent/dist/context-engine/constants.js +292 -0
  101. package/node_modules/@comis/agent/dist/context-engine/context-engine.d.ts +26 -0
  102. package/node_modules/@comis/agent/dist/context-engine/context-engine.js +554 -0
  103. package/node_modules/@comis/agent/dist/context-engine/dag-annotator.d.ts +49 -0
  104. package/node_modules/@comis/agent/dist/context-engine/dag-annotator.js +178 -0
  105. package/node_modules/@comis/agent/dist/context-engine/dag-assembler.d.ts +32 -0
  106. package/node_modules/@comis/agent/dist/context-engine/dag-assembler.js +298 -0
  107. package/node_modules/@comis/agent/dist/context-engine/dag-compaction.d.ts +110 -0
  108. package/node_modules/@comis/agent/dist/context-engine/dag-compaction.js +358 -0
  109. package/node_modules/@comis/agent/dist/context-engine/dag-integrity.d.ts +27 -0
  110. package/node_modules/@comis/agent/dist/context-engine/dag-integrity.js +371 -0
  111. package/node_modules/@comis/agent/dist/context-engine/dag-reconciliation.d.ts +95 -0
  112. package/node_modules/@comis/agent/dist/context-engine/dag-reconciliation.js +521 -0
  113. package/node_modules/@comis/agent/dist/context-engine/dag-triggers.d.ts +88 -0
  114. package/node_modules/@comis/agent/dist/context-engine/dag-triggers.js +229 -0
  115. package/node_modules/@comis/agent/dist/context-engine/dead-content-evictor.d.ts +40 -0
  116. package/node_modules/@comis/agent/dist/context-engine/dead-content-evictor.js +441 -0
  117. package/node_modules/@comis/agent/dist/context-engine/history-window.d.ts +59 -0
  118. package/node_modules/@comis/agent/dist/context-engine/history-window.js +250 -0
  119. package/node_modules/@comis/agent/dist/context-engine/index.d.ts +45 -0
  120. package/node_modules/@comis/agent/dist/context-engine/index.js +51 -0
  121. package/node_modules/@comis/agent/dist/context-engine/llm-compaction.d.ts +52 -0
  122. package/node_modules/@comis/agent/dist/context-engine/llm-compaction.js +466 -0
  123. package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.d.ts +49 -0
  124. package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.js +288 -0
  125. package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.d.ts +24 -0
  126. package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.js +100 -0
  127. package/node_modules/@comis/agent/dist/context-engine/observation-masker.d.ts +53 -0
  128. package/node_modules/@comis/agent/dist/context-engine/observation-masker.js +344 -0
  129. package/node_modules/@comis/agent/dist/context-engine/reasoning-tag-stripper.d.ts +43 -0
  130. package/node_modules/@comis/agent/dist/context-engine/reasoning-tag-stripper.js +131 -0
  131. package/node_modules/@comis/agent/dist/context-engine/rehydration.d.ts +30 -0
  132. package/node_modules/@comis/agent/dist/context-engine/rehydration.js +393 -0
  133. package/node_modules/@comis/agent/dist/context-engine/reread-detector.d.ts +31 -0
  134. package/node_modules/@comis/agent/dist/context-engine/reread-detector.js +116 -0
  135. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +37 -0
  136. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +119 -0
  137. package/node_modules/@comis/agent/dist/context-engine/token-budget.d.ts +31 -0
  138. package/node_modules/@comis/agent/dist/context-engine/token-budget.js +52 -0
  139. package/node_modules/@comis/agent/dist/context-engine/types-compaction.d.ts +109 -0
  140. package/node_modules/@comis/agent/dist/context-engine/types-compaction.js +7 -0
  141. package/node_modules/@comis/agent/dist/context-engine/types-core.d.ts +292 -0
  142. package/node_modules/@comis/agent/dist/context-engine/types-core.js +7 -0
  143. package/node_modules/@comis/agent/dist/context-engine/types-dag.d.ts +239 -0
  144. package/node_modules/@comis/agent/dist/context-engine/types-dag.js +7 -0
  145. package/node_modules/@comis/agent/dist/context-engine/types-eviction.d.ts +17 -0
  146. package/node_modules/@comis/agent/dist/context-engine/types-eviction.js +7 -0
  147. package/node_modules/@comis/agent/dist/context-engine/types-integrity.d.ts +77 -0
  148. package/node_modules/@comis/agent/dist/context-engine/types-integrity.js +7 -0
  149. package/node_modules/@comis/agent/dist/context-engine/types.d.ts +20 -0
  150. package/node_modules/@comis/agent/dist/context-engine/types.js +21 -0
  151. package/node_modules/@comis/agent/dist/envelope/elapsed-time.d.ts +12 -0
  152. package/node_modules/@comis/agent/dist/envelope/elapsed-time.js +30 -0
  153. package/node_modules/@comis/agent/dist/envelope/index.d.ts +2 -0
  154. package/node_modules/@comis/agent/dist/envelope/index.js +4 -0
  155. package/node_modules/@comis/agent/dist/envelope/message-envelope.d.ts +25 -0
  156. package/node_modules/@comis/agent/dist/envelope/message-envelope.js +71 -0
  157. package/node_modules/@comis/agent/dist/executor/active-run-registry.d.ts +47 -0
  158. package/node_modules/@comis/agent/dist/executor/active-run-registry.js +48 -0
  159. package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.d.ts +72 -0
  160. package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.js +144 -0
  161. package/node_modules/@comis/agent/dist/executor/block-stability-tracker.d.ts +41 -0
  162. package/node_modules/@comis/agent/dist/executor/block-stability-tracker.js +69 -0
  163. package/node_modules/@comis/agent/dist/executor/cache-break-detection.d.ts +228 -0
  164. package/node_modules/@comis/agent/dist/executor/cache-break-detection.js +656 -0
  165. package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.d.ts +90 -0
  166. package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.js +159 -0
  167. package/node_modules/@comis/agent/dist/executor/cache-usage-helpers.d.ts +26 -0
  168. package/node_modules/@comis/agent/dist/executor/cache-usage-helpers.js +48 -0
  169. package/node_modules/@comis/agent/dist/executor/discovery-tracker.d.ts +74 -0
  170. package/node_modules/@comis/agent/dist/executor/discovery-tracker.js +130 -0
  171. package/node_modules/@comis/agent/dist/executor/error-classifier.d.ts +37 -0
  172. package/node_modules/@comis/agent/dist/executor/error-classifier.js +141 -0
  173. package/node_modules/@comis/agent/dist/executor/executor-command-handlers.d.ts +73 -0
  174. package/node_modules/@comis/agent/dist/executor/executor-command-handlers.js +275 -0
  175. package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.d.ts +98 -0
  176. package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.js +259 -0
  177. package/node_modules/@comis/agent/dist/executor/executor-input-guard.d.ts +42 -0
  178. package/node_modules/@comis/agent/dist/executor/executor-input-guard.js +156 -0
  179. package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +154 -0
  180. package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +337 -0
  181. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.d.ts +133 -0
  182. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +755 -0
  183. package/node_modules/@comis/agent/dist/executor/executor-response-filter.d.ts +91 -0
  184. package/node_modules/@comis/agent/dist/executor/executor-response-filter.js +224 -0
  185. package/node_modules/@comis/agent/dist/executor/executor-session-state.d.ts +142 -0
  186. package/node_modules/@comis/agent/dist/executor/executor-session-state.js +299 -0
  187. package/node_modules/@comis/agent/dist/executor/executor-stream-setup.d.ts +124 -0
  188. package/node_modules/@comis/agent/dist/executor/executor-stream-setup.js +244 -0
  189. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +144 -0
  190. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +339 -0
  191. package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.d.ts +75 -0
  192. package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.js +192 -0
  193. package/node_modules/@comis/agent/dist/executor/fault-injector.d.ts +51 -0
  194. package/node_modules/@comis/agent/dist/executor/fault-injector.js +93 -0
  195. package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.d.ts +50 -0
  196. package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.js +140 -0
  197. package/node_modules/@comis/agent/dist/executor/gemini-cache-lifecycle.d.ts +30 -0
  198. package/node_modules/@comis/agent/dist/executor/gemini-cache-lifecycle.js +31 -0
  199. package/node_modules/@comis/agent/dist/executor/gemini-cache-manager.d.ts +74 -0
  200. package/node_modules/@comis/agent/dist/executor/gemini-cache-manager.js +323 -0
  201. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.d.ts +56 -0
  202. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +127 -0
  203. package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.d.ts +36 -0
  204. package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.js +43 -0
  205. package/node_modules/@comis/agent/dist/executor/model-retry.d.ts +85 -0
  206. package/node_modules/@comis/agent/dist/executor/model-retry.js +301 -0
  207. package/node_modules/@comis/agent/dist/executor/overflow-recovery.d.ts +69 -0
  208. package/node_modules/@comis/agent/dist/executor/overflow-recovery.js +182 -0
  209. package/node_modules/@comis/agent/dist/executor/phase-filter.d.ts +21 -0
  210. package/node_modules/@comis/agent/dist/executor/phase-filter.js +63 -0
  211. package/node_modules/@comis/agent/dist/executor/pi-executor.d.ts +200 -0
  212. package/node_modules/@comis/agent/dist/executor/pi-executor.js +1028 -0
  213. package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +174 -0
  214. package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +767 -0
  215. package/node_modules/@comis/agent/dist/executor/prompt-timeout.d.ts +57 -0
  216. package/node_modules/@comis/agent/dist/executor/prompt-timeout.js +112 -0
  217. package/node_modules/@comis/agent/dist/executor/schema-stripping.d.ts +19 -0
  218. package/node_modules/@comis/agent/dist/executor/schema-stripping.js +113 -0
  219. package/node_modules/@comis/agent/dist/executor/session-latch.d.ts +63 -0
  220. package/node_modules/@comis/agent/dist/executor/session-latch.js +60 -0
  221. package/node_modules/@comis/agent/dist/executor/session-snapshot-cleanup.d.ts +35 -0
  222. package/node_modules/@comis/agent/dist/executor/session-snapshot-cleanup.js +65 -0
  223. package/node_modules/@comis/agent/dist/executor/step-counter.d.ts +21 -0
  224. package/node_modules/@comis/agent/dist/executor/step-counter.js +29 -0
  225. package/node_modules/@comis/agent/dist/executor/stream-wrappers/__test-helpers.d.ts +9 -0
  226. package/node_modules/@comis/agent/dist/executor/stream-wrappers/__test-helpers.js +43 -0
  227. package/node_modules/@comis/agent/dist/executor/stream-wrappers/api-payload-trace-writer.d.ts +40 -0
  228. package/node_modules/@comis/agent/dist/executor/stream-wrappers/api-payload-trace-writer.js +91 -0
  229. package/node_modules/@comis/agent/dist/executor/stream-wrappers/cache-trace-writer.d.ts +65 -0
  230. package/node_modules/@comis/agent/dist/executor/stream-wrappers/cache-trace-writer.js +145 -0
  231. package/node_modules/@comis/agent/dist/executor/stream-wrappers/compose.d.ts +20 -0
  232. package/node_modules/@comis/agent/dist/executor/stream-wrappers/compose.js +27 -0
  233. package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.d.ts +55 -0
  234. package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.js +85 -0
  235. package/node_modules/@comis/agent/dist/executor/stream-wrappers/index.d.ts +26 -0
  236. package/node_modules/@comis/agent/dist/executor/stream-wrappers/index.js +22 -0
  237. package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.d.ts +273 -0
  238. package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.js +1679 -0
  239. package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-result-size-bouncer.d.ts +46 -0
  240. package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-result-size-bouncer.js +92 -0
  241. package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-schema-cache.d.ts +28 -0
  242. package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-schema-cache.js +50 -0
  243. package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.d.ts +42 -0
  244. package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.js +68 -0
  245. package/node_modules/@comis/agent/dist/executor/stream-wrappers/types.d.ts +12 -0
  246. package/node_modules/@comis/agent/dist/executor/stream-wrappers/types.js +7 -0
  247. package/node_modules/@comis/agent/dist/executor/stream-wrappers/validation-error-formatter.d.ts +27 -0
  248. package/node_modules/@comis/agent/dist/executor/stream-wrappers/validation-error-formatter.js +51 -0
  249. package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +159 -0
  250. package/node_modules/@comis/agent/dist/executor/tool-deferral.js +617 -0
  251. package/node_modules/@comis/agent/dist/executor/tool-lifecycle.d.ts +112 -0
  252. package/node_modules/@comis/agent/dist/executor/tool-lifecycle.js +164 -0
  253. package/node_modules/@comis/agent/dist/executor/tool-parallelism.d.ts +59 -0
  254. package/node_modules/@comis/agent/dist/executor/tool-parallelism.js +158 -0
  255. package/node_modules/@comis/agent/dist/executor/ttl-guard.d.ts +55 -0
  256. package/node_modules/@comis/agent/dist/executor/ttl-guard.js +103 -0
  257. package/node_modules/@comis/agent/dist/executor/types.d.ts +112 -0
  258. package/node_modules/@comis/agent/dist/executor/types.js +7 -0
  259. package/node_modules/@comis/agent/dist/file-state/session-tracker-registry.d.ts +59 -0
  260. package/node_modules/@comis/agent/dist/file-state/session-tracker-registry.js +57 -0
  261. package/node_modules/@comis/agent/dist/greeting/session-greeting.d.ts +40 -0
  262. package/node_modules/@comis/agent/dist/greeting/session-greeting.js +94 -0
  263. package/node_modules/@comis/agent/dist/identity/identity-link-resolver.d.ts +47 -0
  264. package/node_modules/@comis/agent/dist/identity/identity-link-resolver.js +54 -0
  265. package/node_modules/@comis/agent/dist/identity/identity-loader.d.ts +38 -0
  266. package/node_modules/@comis/agent/dist/identity/identity-loader.js +91 -0
  267. package/node_modules/@comis/agent/dist/identity/identity-updater.d.ts +37 -0
  268. package/node_modules/@comis/agent/dist/identity/identity-updater.js +104 -0
  269. package/node_modules/@comis/agent/dist/index.d.ts +188 -0
  270. package/node_modules/@comis/agent/dist/index.js +192 -0
  271. package/node_modules/@comis/agent/dist/memory/memory-review-job.d.ts +72 -0
  272. package/node_modules/@comis/agent/dist/memory/memory-review-job.js +341 -0
  273. package/node_modules/@comis/agent/dist/model/auth-profile.d.ts +61 -0
  274. package/node_modules/@comis/agent/dist/model/auth-profile.js +154 -0
  275. package/node_modules/@comis/agent/dist/model/auth-provider.d.ts +70 -0
  276. package/node_modules/@comis/agent/dist/model/auth-provider.js +83 -0
  277. package/node_modules/@comis/agent/dist/model/auth-rotation-adapter.d.ts +53 -0
  278. package/node_modules/@comis/agent/dist/model/auth-rotation-adapter.js +78 -0
  279. package/node_modules/@comis/agent/dist/model/auth-storage-adapter.d.ts +27 -0
  280. package/node_modules/@comis/agent/dist/model/auth-storage-adapter.js +37 -0
  281. package/node_modules/@comis/agent/dist/model/auth-usage-tracker.d.ts +60 -0
  282. package/node_modules/@comis/agent/dist/model/auth-usage-tracker.js +90 -0
  283. package/node_modules/@comis/agent/dist/model/context-window-resolver.d.ts +48 -0
  284. package/node_modules/@comis/agent/dist/model/context-window-resolver.js +55 -0
  285. package/node_modules/@comis/agent/dist/model/image-router.d.ts +109 -0
  286. package/node_modules/@comis/agent/dist/model/image-router.js +128 -0
  287. package/node_modules/@comis/agent/dist/model/model-alias-resolver.d.ts +57 -0
  288. package/node_modules/@comis/agent/dist/model/model-alias-resolver.js +72 -0
  289. package/node_modules/@comis/agent/dist/model/model-allowlist.d.ts +52 -0
  290. package/node_modules/@comis/agent/dist/model/model-allowlist.js +61 -0
  291. package/node_modules/@comis/agent/dist/model/model-catalog.d.ts +93 -0
  292. package/node_modules/@comis/agent/dist/model/model-catalog.js +152 -0
  293. package/node_modules/@comis/agent/dist/model/model-registry-adapter.d.ts +47 -0
  294. package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +74 -0
  295. package/node_modules/@comis/agent/dist/model/model-scanner.d.ts +59 -0
  296. package/node_modules/@comis/agent/dist/model/model-scanner.js +199 -0
  297. package/node_modules/@comis/agent/dist/model/oauth-token-manager.d.ts +60 -0
  298. package/node_modules/@comis/agent/dist/model/oauth-token-manager.js +138 -0
  299. package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +48 -0
  300. package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +78 -0
  301. package/node_modules/@comis/agent/dist/model/operation-model-resolver.d.ts +65 -0
  302. package/node_modules/@comis/agent/dist/model/operation-model-resolver.js +135 -0
  303. package/node_modules/@comis/agent/dist/planner/checklist-formatter.d.ts +21 -0
  304. package/node_modules/@comis/agent/dist/planner/checklist-formatter.js +53 -0
  305. package/node_modules/@comis/agent/dist/planner/plan-extractor.d.ts +24 -0
  306. package/node_modules/@comis/agent/dist/planner/plan-extractor.js +66 -0
  307. package/node_modules/@comis/agent/dist/planner/types.d.ts +38 -0
  308. package/node_modules/@comis/agent/dist/planner/types.js +12 -0
  309. package/node_modules/@comis/agent/dist/provider/capabilities.d.ts +72 -0
  310. package/node_modules/@comis/agent/dist/provider/capabilities.js +163 -0
  311. package/node_modules/@comis/agent/dist/provider/model-compat.d.ts +35 -0
  312. package/node_modules/@comis/agent/dist/provider/model-compat.js +40 -0
  313. package/node_modules/@comis/agent/dist/provider/model-id-normalize.d.ts +33 -0
  314. package/node_modules/@comis/agent/dist/provider/model-id-normalize.js +87 -0
  315. package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.d.ts +50 -0
  316. package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.js +173 -0
  317. package/node_modules/@comis/agent/dist/provider/response/strip-minimax-xml.d.ts +9 -0
  318. package/node_modules/@comis/agent/dist/provider/response/strip-minimax-xml.js +17 -0
  319. package/node_modules/@comis/agent/dist/provider/response/strip-model-tokens.d.ts +13 -0
  320. package/node_modules/@comis/agent/dist/provider/response/strip-model-tokens.js +19 -0
  321. package/node_modules/@comis/agent/dist/provider/response/strip-tool-text.d.ts +11 -0
  322. package/node_modules/@comis/agent/dist/provider/response/strip-tool-text.js +32 -0
  323. package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gemini.d.ts +20 -0
  324. package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gemini.js +83 -0
  325. package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-xai.d.ts +20 -0
  326. package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-xai.js +82 -0
  327. package/node_modules/@comis/agent/dist/provider/tool-schema/normalize-enums.d.ts +33 -0
  328. package/node_modules/@comis/agent/dist/provider/tool-schema/normalize-enums.js +117 -0
  329. package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.d.ts +43 -0
  330. package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.js +133 -0
  331. package/node_modules/@comis/agent/dist/queue/coalescer.d.ts +25 -0
  332. package/node_modules/@comis/agent/dist/queue/coalescer.js +58 -0
  333. package/node_modules/@comis/agent/dist/queue/command-queue.d.ts +88 -0
  334. package/node_modules/@comis/agent/dist/queue/command-queue.js +351 -0
  335. package/node_modules/@comis/agent/dist/queue/debounce-buffer.d.ts +48 -0
  336. package/node_modules/@comis/agent/dist/queue/debounce-buffer.js +132 -0
  337. package/node_modules/@comis/agent/dist/queue/followup-trigger.d.ts +34 -0
  338. package/node_modules/@comis/agent/dist/queue/followup-trigger.js +62 -0
  339. package/node_modules/@comis/agent/dist/queue/index.d.ts +12 -0
  340. package/node_modules/@comis/agent/dist/queue/index.js +8 -0
  341. package/node_modules/@comis/agent/dist/queue/lane.d.ts +22 -0
  342. package/node_modules/@comis/agent/dist/queue/lane.js +10 -0
  343. package/node_modules/@comis/agent/dist/queue/overflow.d.ts +34 -0
  344. package/node_modules/@comis/agent/dist/queue/overflow.js +97 -0
  345. package/node_modules/@comis/agent/dist/queue/priority-scheduler.d.ts +59 -0
  346. package/node_modules/@comis/agent/dist/queue/priority-scheduler.js +198 -0
  347. package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.d.ts +41 -0
  348. package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.js +57 -0
  349. package/node_modules/@comis/agent/dist/rag/rag-retriever.d.ts +58 -0
  350. package/node_modules/@comis/agent/dist/rag/rag-retriever.js +147 -0
  351. package/node_modules/@comis/agent/dist/response-filter/code-regions.d.ts +27 -0
  352. package/node_modules/@comis/agent/dist/response-filter/code-regions.js +46 -0
  353. package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.d.ts +27 -0
  354. package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.js +85 -0
  355. package/node_modules/@comis/agent/dist/response-filter/thinking-tag-filter.d.ts +43 -0
  356. package/node_modules/@comis/agent/dist/response-filter/thinking-tag-filter.js +384 -0
  357. package/node_modules/@comis/agent/dist/routing/message-router.d.ts +49 -0
  358. package/node_modules/@comis/agent/dist/routing/message-router.js +121 -0
  359. package/node_modules/@comis/agent/dist/safety/circuit-breaker.d.ts +29 -0
  360. package/node_modules/@comis/agent/dist/safety/circuit-breaker.js +59 -0
  361. package/node_modules/@comis/agent/dist/safety/context-truncation-recovery.d.ts +40 -0
  362. package/node_modules/@comis/agent/dist/safety/context-truncation-recovery.js +115 -0
  363. package/node_modules/@comis/agent/dist/safety/context-window-guard.d.ts +59 -0
  364. package/node_modules/@comis/agent/dist/safety/context-window-guard.js +54 -0
  365. package/node_modules/@comis/agent/dist/safety/follow-through-detector.d.ts +46 -0
  366. package/node_modules/@comis/agent/dist/safety/follow-through-detector.js +76 -0
  367. package/node_modules/@comis/agent/dist/safety/message-send-limiter.d.ts +44 -0
  368. package/node_modules/@comis/agent/dist/safety/message-send-limiter.js +71 -0
  369. package/node_modules/@comis/agent/dist/safety/post-compaction-safety.d.ts +30 -0
  370. package/node_modules/@comis/agent/dist/safety/post-compaction-safety.js +51 -0
  371. package/node_modules/@comis/agent/dist/safety/provider-health-monitor.d.ts +56 -0
  372. package/node_modules/@comis/agent/dist/safety/provider-health-monitor.js +158 -0
  373. package/node_modules/@comis/agent/dist/safety/response-safety-checks.d.ts +65 -0
  374. package/node_modules/@comis/agent/dist/safety/response-safety-checks.js +118 -0
  375. package/node_modules/@comis/agent/dist/safety/schema-normalizer.d.ts +37 -0
  376. package/node_modules/@comis/agent/dist/safety/schema-normalizer.js +137 -0
  377. package/node_modules/@comis/agent/dist/safety/schema-pruning.d.ts +50 -0
  378. package/node_modules/@comis/agent/dist/safety/schema-pruning.js +112 -0
  379. package/node_modules/@comis/agent/dist/safety/token-estimator.d.ts +95 -0
  380. package/node_modules/@comis/agent/dist/safety/token-estimator.js +236 -0
  381. package/node_modules/@comis/agent/dist/safety/tool-display-names.d.ts +26 -0
  382. package/node_modules/@comis/agent/dist/safety/tool-display-names.js +66 -0
  383. package/node_modules/@comis/agent/dist/safety/tool-image-sanitizer.d.ts +43 -0
  384. package/node_modules/@comis/agent/dist/safety/tool-image-sanitizer.js +96 -0
  385. package/node_modules/@comis/agent/dist/safety/tool-output-safety.d.ts +79 -0
  386. package/node_modules/@comis/agent/dist/safety/tool-output-safety.js +184 -0
  387. package/node_modules/@comis/agent/dist/safety/tool-result-size-guard.d.ts +76 -0
  388. package/node_modules/@comis/agent/dist/safety/tool-result-size-guard.js +220 -0
  389. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +80 -0
  390. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +365 -0
  391. package/node_modules/@comis/agent/dist/safety/tool-sanitizer.d.ts +44 -0
  392. package/node_modules/@comis/agent/dist/safety/tool-sanitizer.js +94 -0
  393. package/node_modules/@comis/agent/dist/safety/tool-schema-safety.d.ts +89 -0
  394. package/node_modules/@comis/agent/dist/safety/tool-schema-safety.js +253 -0
  395. package/node_modules/@comis/agent/dist/safety/turn-result-budget.d.ts +48 -0
  396. package/node_modules/@comis/agent/dist/safety/turn-result-budget.js +173 -0
  397. package/node_modules/@comis/agent/dist/safety/validation-error-formatter.d.ts +22 -0
  398. package/node_modules/@comis/agent/dist/safety/validation-error-formatter.js +131 -0
  399. package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +114 -0
  400. package/node_modules/@comis/agent/dist/session/comis-session-manager.js +169 -0
  401. package/node_modules/@comis/agent/dist/session/orphaned-message-repair.d.ts +84 -0
  402. package/node_modules/@comis/agent/dist/session/orphaned-message-repair.js +337 -0
  403. package/node_modules/@comis/agent/dist/session/sanitize-session-secrets.d.ts +34 -0
  404. package/node_modules/@comis/agent/dist/session/sanitize-session-secrets.js +232 -0
  405. package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.d.ts +47 -0
  406. package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.js +183 -0
  407. package/node_modules/@comis/agent/dist/session/session-key-builder.d.ts +46 -0
  408. package/node_modules/@comis/agent/dist/session/session-key-builder.js +100 -0
  409. package/node_modules/@comis/agent/dist/session/session-key-mapper.d.ts +33 -0
  410. package/node_modules/@comis/agent/dist/session/session-key-mapper.js +183 -0
  411. package/node_modules/@comis/agent/dist/session/session-label-store.d.ts +34 -0
  412. package/node_modules/@comis/agent/dist/session/session-label-store.js +54 -0
  413. package/node_modules/@comis/agent/dist/session/session-lifecycle.d.ts +55 -0
  414. package/node_modules/@comis/agent/dist/session/session-lifecycle.js +82 -0
  415. package/node_modules/@comis/agent/dist/session/session-reset-policy.d.ts +113 -0
  416. package/node_modules/@comis/agent/dist/session/session-reset-policy.js +192 -0
  417. package/node_modules/@comis/agent/dist/session/session-write-lock.d.ts +48 -0
  418. package/node_modules/@comis/agent/dist/session/session-write-lock.js +151 -0
  419. package/node_modules/@comis/agent/dist/spawn/generate-parent-summary.d.ts +34 -0
  420. package/node_modules/@comis/agent/dist/spawn/generate-parent-summary.js +29 -0
  421. package/node_modules/@comis/agent/dist/spawn/index.d.ts +17 -0
  422. package/node_modules/@comis/agent/dist/spawn/index.js +13 -0
  423. package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.d.ts +86 -0
  424. package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.js +114 -0
  425. package/node_modules/@comis/agent/dist/spawn/narrative-caster.d.ts +46 -0
  426. package/node_modules/@comis/agent/dist/spawn/narrative-caster.js +159 -0
  427. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.d.ts +29 -0
  428. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.js +54 -0
  429. package/node_modules/@comis/agent/dist/spawn/result-condenser.d.ts +98 -0
  430. package/node_modules/@comis/agent/dist/spawn/result-condenser.js +343 -0
  431. package/node_modules/@comis/agent/dist/spawn/spawn-packet-builder.d.ts +41 -0
  432. package/node_modules/@comis/agent/dist/spawn/spawn-packet-builder.js +39 -0
  433. package/node_modules/@comis/agent/dist/workspace/boot-file.d.ts +23 -0
  434. package/node_modules/@comis/agent/dist/workspace/boot-file.js +38 -0
  435. package/node_modules/@comis/agent/dist/workspace/heartbeat-file.d.ts +24 -0
  436. package/node_modules/@comis/agent/dist/workspace/heartbeat-file.js +37 -0
  437. package/node_modules/@comis/agent/dist/workspace/index.d.ts +10 -0
  438. package/node_modules/@comis/agent/dist/workspace/index.js +8 -0
  439. package/node_modules/@comis/agent/dist/workspace/onboarding-detector.d.ts +12 -0
  440. package/node_modules/@comis/agent/dist/workspace/onboarding-detector.js +42 -0
  441. package/node_modules/@comis/agent/dist/workspace/templates.d.ts +11 -0
  442. package/node_modules/@comis/agent/dist/workspace/templates.js +499 -0
  443. package/node_modules/@comis/agent/dist/workspace/workspace-manager.d.ts +127 -0
  444. package/node_modules/@comis/agent/dist/workspace/workspace-manager.js +242 -0
  445. package/node_modules/@comis/agent/dist/workspace/workspace-resolver.d.ts +13 -0
  446. package/node_modules/@comis/agent/dist/workspace/workspace-resolver.js +27 -0
  447. package/node_modules/@comis/agent/dist/workspace/workspace-state.d.ts +39 -0
  448. package/node_modules/@comis/agent/dist/workspace/workspace-state.js +120 -0
  449. package/node_modules/@comis/agent/package.json +44 -0
  450. package/node_modules/@comis/channels/dist/discord/credential-validator.d.ts +23 -0
  451. package/node_modules/@comis/channels/dist/discord/credential-validator.js +33 -0
  452. package/node_modules/@comis/channels/dist/discord/discord-actions.d.ts +17 -0
  453. package/node_modules/@comis/channels/dist/discord/discord-actions.js +340 -0
  454. package/node_modules/@comis/channels/dist/discord/discord-adapter.d.ts +28 -0
  455. package/node_modules/@comis/channels/dist/discord/discord-adapter.js +451 -0
  456. package/node_modules/@comis/channels/dist/discord/discord-plugin.d.ts +17 -0
  457. package/node_modules/@comis/channels/dist/discord/discord-plugin.js +70 -0
  458. package/node_modules/@comis/channels/dist/discord/discord-resolver.d.ts +43 -0
  459. package/node_modules/@comis/channels/dist/discord/discord-resolver.js +50 -0
  460. package/node_modules/@comis/channels/dist/discord/format-discord.d.ts +31 -0
  461. package/node_modules/@comis/channels/dist/discord/format-discord.js +217 -0
  462. package/node_modules/@comis/channels/dist/discord/media-handler.d.ts +18 -0
  463. package/node_modules/@comis/channels/dist/discord/media-handler.js +43 -0
  464. package/node_modules/@comis/channels/dist/discord/message-mapper.d.ts +21 -0
  465. package/node_modules/@comis/channels/dist/discord/message-mapper.js +54 -0
  466. package/node_modules/@comis/channels/dist/discord/rich-renderer.d.ts +32 -0
  467. package/node_modules/@comis/channels/dist/discord/rich-renderer.js +97 -0
  468. package/node_modules/@comis/channels/dist/discord/voice-sender.d.ts +46 -0
  469. package/node_modules/@comis/channels/dist/discord/voice-sender.js +171 -0
  470. package/node_modules/@comis/channels/dist/echo/echo-adapter.d.ts +82 -0
  471. package/node_modules/@comis/channels/dist/echo/echo-adapter.js +170 -0
  472. package/node_modules/@comis/channels/dist/echo/echo-plugin.d.ts +19 -0
  473. package/node_modules/@comis/channels/dist/echo/echo-plugin.js +68 -0
  474. package/node_modules/@comis/channels/dist/email/credential-validator.d.ts +33 -0
  475. package/node_modules/@comis/channels/dist/email/credential-validator.js +45 -0
  476. package/node_modules/@comis/channels/dist/email/email-adapter.d.ts +46 -0
  477. package/node_modules/@comis/channels/dist/email/email-adapter.js +271 -0
  478. package/node_modules/@comis/channels/dist/email/email-plugin.d.ts +20 -0
  479. package/node_modules/@comis/channels/dist/email/email-plugin.js +76 -0
  480. package/node_modules/@comis/channels/dist/email/imap-lifecycle.d.ts +37 -0
  481. package/node_modules/@comis/channels/dist/email/imap-lifecycle.js +191 -0
  482. package/node_modules/@comis/channels/dist/email/message-mapper.d.ts +53 -0
  483. package/node_modules/@comis/channels/dist/email/message-mapper.js +107 -0
  484. package/node_modules/@comis/channels/dist/email/sender-filter.d.ts +31 -0
  485. package/node_modules/@comis/channels/dist/email/sender-filter.js +82 -0
  486. package/node_modules/@comis/channels/dist/email/threading.d.ts +38 -0
  487. package/node_modules/@comis/channels/dist/email/threading.js +44 -0
  488. package/node_modules/@comis/channels/dist/imessage/credential-validator.d.ts +36 -0
  489. package/node_modules/@comis/channels/dist/imessage/credential-validator.js +102 -0
  490. package/node_modules/@comis/channels/dist/imessage/imessage-adapter.d.ts +31 -0
  491. package/node_modules/@comis/channels/dist/imessage/imessage-adapter.js +290 -0
  492. package/node_modules/@comis/channels/dist/imessage/imessage-client.d.ts +52 -0
  493. package/node_modules/@comis/channels/dist/imessage/imessage-client.js +209 -0
  494. package/node_modules/@comis/channels/dist/imessage/imessage-plugin.d.ts +20 -0
  495. package/node_modules/@comis/channels/dist/imessage/imessage-plugin.js +71 -0
  496. package/node_modules/@comis/channels/dist/imessage/imessage-resolver.d.ts +33 -0
  497. package/node_modules/@comis/channels/dist/imessage/imessage-resolver.js +73 -0
  498. package/node_modules/@comis/channels/dist/imessage/media-handler.d.ts +31 -0
  499. package/node_modules/@comis/channels/dist/imessage/media-handler.js +34 -0
  500. package/node_modules/@comis/channels/dist/imessage/message-mapper.d.ts +56 -0
  501. package/node_modules/@comis/channels/dist/imessage/message-mapper.js +67 -0
  502. package/node_modules/@comis/channels/dist/index.d.ts +138 -0
  503. package/node_modules/@comis/channels/dist/index.js +127 -0
  504. package/node_modules/@comis/channels/dist/irc/credential-validator.d.ts +34 -0
  505. package/node_modules/@comis/channels/dist/irc/credential-validator.js +78 -0
  506. package/node_modules/@comis/channels/dist/irc/irc-adapter.d.ts +39 -0
  507. package/node_modules/@comis/channels/dist/irc/irc-adapter.js +302 -0
  508. package/node_modules/@comis/channels/dist/irc/irc-plugin.d.ts +21 -0
  509. package/node_modules/@comis/channels/dist/irc/irc-plugin.js +71 -0
  510. package/node_modules/@comis/channels/dist/irc/message-mapper.d.ts +34 -0
  511. package/node_modules/@comis/channels/dist/irc/message-mapper.js +41 -0
  512. package/node_modules/@comis/channels/dist/line/credential-validator.d.ts +37 -0
  513. package/node_modules/@comis/channels/dist/line/credential-validator.js +50 -0
  514. package/node_modules/@comis/channels/dist/line/flex-builder.d.ts +52 -0
  515. package/node_modules/@comis/channels/dist/line/flex-builder.js +136 -0
  516. package/node_modules/@comis/channels/dist/line/line-adapter.d.ts +40 -0
  517. package/node_modules/@comis/channels/dist/line/line-adapter.js +324 -0
  518. package/node_modules/@comis/channels/dist/line/line-plugin.d.ts +36 -0
  519. package/node_modules/@comis/channels/dist/line/line-plugin.js +83 -0
  520. package/node_modules/@comis/channels/dist/line/line-resolver.d.ts +31 -0
  521. package/node_modules/@comis/channels/dist/line/line-resolver.js +69 -0
  522. package/node_modules/@comis/channels/dist/line/media-handler.d.ts +24 -0
  523. package/node_modules/@comis/channels/dist/line/media-handler.js +72 -0
  524. package/node_modules/@comis/channels/dist/line/message-mapper.d.ts +29 -0
  525. package/node_modules/@comis/channels/dist/line/message-mapper.js +127 -0
  526. package/node_modules/@comis/channels/dist/line/rich-menu-manager.d.ts +79 -0
  527. package/node_modules/@comis/channels/dist/line/rich-menu-manager.js +90 -0
  528. package/node_modules/@comis/channels/dist/shared/abort-summary.d.ts +26 -0
  529. package/node_modules/@comis/channels/dist/shared/abort-summary.js +47 -0
  530. package/node_modules/@comis/channels/dist/shared/approval-notifier.d.ts +31 -0
  531. package/node_modules/@comis/channels/dist/shared/approval-notifier.js +82 -0
  532. package/node_modules/@comis/channels/dist/shared/audio-preflight.d.ts +49 -0
  533. package/node_modules/@comis/channels/dist/shared/audio-preflight.js +78 -0
  534. package/node_modules/@comis/channels/dist/shared/auto-reply-engine.d.ts +68 -0
  535. package/node_modules/@comis/channels/dist/shared/auto-reply-engine.js +132 -0
  536. package/node_modules/@comis/channels/dist/shared/block-chunker.d.ts +30 -0
  537. package/node_modules/@comis/channels/dist/shared/block-chunker.js +201 -0
  538. package/node_modules/@comis/channels/dist/shared/block-coalescer.d.ts +59 -0
  539. package/node_modules/@comis/channels/dist/shared/block-coalescer.js +154 -0
  540. package/node_modules/@comis/channels/dist/shared/block-pacer.d.ts +42 -0
  541. package/node_modules/@comis/channels/dist/shared/block-pacer.js +130 -0
  542. package/node_modules/@comis/channels/dist/shared/channel-health-monitor.d.ts +90 -0
  543. package/node_modules/@comis/channels/dist/shared/channel-health-monitor.js +317 -0
  544. package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +169 -0
  545. package/node_modules/@comis/channels/dist/shared/channel-manager.js +174 -0
  546. package/node_modules/@comis/channels/dist/shared/channel-registry.d.ts +46 -0
  547. package/node_modules/@comis/channels/dist/shared/channel-registry.js +81 -0
  548. package/node_modules/@comis/channels/dist/shared/chunk-for-delivery.d.ts +40 -0
  549. package/node_modules/@comis/channels/dist/shared/chunk-for-delivery.js +77 -0
  550. package/node_modules/@comis/channels/dist/shared/credential-validator-factory.d.ts +20 -0
  551. package/node_modules/@comis/channels/dist/shared/credential-validator-factory.js +24 -0
  552. package/node_modules/@comis/channels/dist/shared/deliver-to-channel.d.ts +156 -0
  553. package/node_modules/@comis/channels/dist/shared/deliver-to-channel.js +516 -0
  554. package/node_modules/@comis/channels/dist/shared/delivery-timing.d.ts +31 -0
  555. package/node_modules/@comis/channels/dist/shared/delivery-timing.js +87 -0
  556. package/node_modules/@comis/channels/dist/shared/emoji-tier-map.d.ts +46 -0
  557. package/node_modules/@comis/channels/dist/shared/emoji-tier-map.js +87 -0
  558. package/node_modules/@comis/channels/dist/shared/execution-deliver.d.ts +21 -0
  559. package/node_modules/@comis/channels/dist/shared/execution-deliver.js +174 -0
  560. package/node_modules/@comis/channels/dist/shared/execution-execute.d.ts +45 -0
  561. package/node_modules/@comis/channels/dist/shared/execution-execute.js +175 -0
  562. package/node_modules/@comis/channels/dist/shared/execution-filter.d.ts +30 -0
  563. package/node_modules/@comis/channels/dist/shared/execution-filter.js +186 -0
  564. package/node_modules/@comis/channels/dist/shared/execution-pipeline.d.ts +95 -0
  565. package/node_modules/@comis/channels/dist/shared/execution-pipeline.js +294 -0
  566. package/node_modules/@comis/channels/dist/shared/execution-policy.d.ts +34 -0
  567. package/node_modules/@comis/channels/dist/shared/execution-policy.js +128 -0
  568. package/node_modules/@comis/channels/dist/shared/format-for-channel.d.ts +27 -0
  569. package/node_modules/@comis/channels/dist/shared/format-for-channel.js +62 -0
  570. package/node_modules/@comis/channels/dist/shared/group-history-buffer.d.ts +33 -0
  571. package/node_modules/@comis/channels/dist/shared/group-history-buffer.js +58 -0
  572. package/node_modules/@comis/channels/dist/shared/inbound-gate.d.ts +35 -0
  573. package/node_modules/@comis/channels/dist/shared/inbound-gate.js +353 -0
  574. package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +144 -0
  575. package/node_modules/@comis/channels/dist/shared/inbound-pipeline.js +89 -0
  576. package/node_modules/@comis/channels/dist/shared/inbound-preprocess.d.ts +19 -0
  577. package/node_modules/@comis/channels/dist/shared/inbound-preprocess.js +83 -0
  578. package/node_modules/@comis/channels/dist/shared/inbound-resolve.d.ts +28 -0
  579. package/node_modules/@comis/channels/dist/shared/inbound-resolve.js +55 -0
  580. package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +26 -0
  581. package/node_modules/@comis/channels/dist/shared/inbound-route.js +235 -0
  582. package/node_modules/@comis/channels/dist/shared/inbound-setup.d.ts +32 -0
  583. package/node_modules/@comis/channels/dist/shared/inbound-setup.js +148 -0
  584. package/node_modules/@comis/channels/dist/shared/ir-chunker.d.ts +42 -0
  585. package/node_modules/@comis/channels/dist/shared/ir-chunker.js +234 -0
  586. package/node_modules/@comis/channels/dist/shared/ir-renderer.d.ts +26 -0
  587. package/node_modules/@comis/channels/dist/shared/ir-renderer.js +565 -0
  588. package/node_modules/@comis/channels/dist/shared/lifecycle-reactor.d.ts +44 -0
  589. package/node_modules/@comis/channels/dist/shared/lifecycle-reactor.js +420 -0
  590. package/node_modules/@comis/channels/dist/shared/lifecycle-state-machine.d.ts +56 -0
  591. package/node_modules/@comis/channels/dist/shared/lifecycle-state-machine.js +85 -0
  592. package/node_modules/@comis/channels/dist/shared/location-normalizer.d.ts +45 -0
  593. package/node_modules/@comis/channels/dist/shared/location-normalizer.js +37 -0
  594. package/node_modules/@comis/channels/dist/shared/markdown-ir.d.ts +49 -0
  595. package/node_modules/@comis/channels/dist/shared/markdown-ir.js +479 -0
  596. package/node_modules/@comis/channels/dist/shared/markdown-tables.d.ts +18 -0
  597. package/node_modules/@comis/channels/dist/shared/markdown-tables.js +142 -0
  598. package/node_modules/@comis/channels/dist/shared/media-compressor.d.ts +31 -0
  599. package/node_modules/@comis/channels/dist/shared/media-compressor.js +114 -0
  600. package/node_modules/@comis/channels/dist/shared/media-utils.d.ts +10 -0
  601. package/node_modules/@comis/channels/dist/shared/media-utils.js +19 -0
  602. package/node_modules/@comis/channels/dist/shared/outbound-media-handler.d.ts +56 -0
  603. package/node_modules/@comis/channels/dist/shared/outbound-media-handler.js +151 -0
  604. package/node_modules/@comis/channels/dist/shared/permanent-errors.d.ts +30 -0
  605. package/node_modules/@comis/channels/dist/shared/permanent-errors.js +41 -0
  606. package/node_modules/@comis/channels/dist/shared/poll-normalizer.d.ts +59 -0
  607. package/node_modules/@comis/channels/dist/shared/poll-normalizer.js +80 -0
  608. package/node_modules/@comis/channels/dist/shared/prefix-template.d.ts +53 -0
  609. package/node_modules/@comis/channels/dist/shared/prefix-template.js +158 -0
  610. package/node_modules/@comis/channels/dist/shared/regex-guard.d.ts +33 -0
  611. package/node_modules/@comis/channels/dist/shared/regex-guard.js +48 -0
  612. package/node_modules/@comis/channels/dist/shared/response-filter.d.ts +41 -0
  613. package/node_modules/@comis/channels/dist/shared/response-filter.js +75 -0
  614. package/node_modules/@comis/channels/dist/shared/retry-engine.d.ts +88 -0
  615. package/node_modules/@comis/channels/dist/shared/retry-engine.js +258 -0
  616. package/node_modules/@comis/channels/dist/shared/sanitize-for-plain-text.d.ts +32 -0
  617. package/node_modules/@comis/channels/dist/shared/sanitize-for-plain-text.js +80 -0
  618. package/node_modules/@comis/channels/dist/shared/send-policy.d.ts +53 -0
  619. package/node_modules/@comis/channels/dist/shared/send-policy.js +88 -0
  620. package/node_modules/@comis/channels/dist/shared/slack-emoji-map.d.ts +22 -0
  621. package/node_modules/@comis/channels/dist/shared/slack-emoji-map.js +44 -0
  622. package/node_modules/@comis/channels/dist/shared/stall-detector.d.ts +54 -0
  623. package/node_modules/@comis/channels/dist/shared/stall-detector.js +61 -0
  624. package/node_modules/@comis/channels/dist/shared/table-converter.d.ts +24 -0
  625. package/node_modules/@comis/channels/dist/shared/table-converter.js +139 -0
  626. package/node_modules/@comis/channels/dist/shared/telegram-file-ref-guard.d.ts +59 -0
  627. package/node_modules/@comis/channels/dist/shared/telegram-file-ref-guard.js +172 -0
  628. package/node_modules/@comis/channels/dist/shared/thinking-tag-filter.d.ts +28 -0
  629. package/node_modules/@comis/channels/dist/shared/thinking-tag-filter.js +206 -0
  630. package/node_modules/@comis/channels/dist/shared/typing-controller.d.ts +107 -0
  631. package/node_modules/@comis/channels/dist/shared/typing-controller.js +156 -0
  632. package/node_modules/@comis/channels/dist/shared/typing-lifecycle-controller.d.ts +55 -0
  633. package/node_modules/@comis/channels/dist/shared/typing-lifecycle-controller.js +86 -0
  634. package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.d.ts +149 -0
  635. package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.js +157 -0
  636. package/node_modules/@comis/channels/dist/shared/voice-sender.d.ts +64 -0
  637. package/node_modules/@comis/channels/dist/shared/voice-sender.js +77 -0
  638. package/node_modules/@comis/channels/dist/signal/credential-validator.d.ts +30 -0
  639. package/node_modules/@comis/channels/dist/signal/credential-validator.js +75 -0
  640. package/node_modules/@comis/channels/dist/signal/media-handler.d.ts +18 -0
  641. package/node_modules/@comis/channels/dist/signal/media-handler.js +40 -0
  642. package/node_modules/@comis/channels/dist/signal/message-mapper.d.ts +18 -0
  643. package/node_modules/@comis/channels/dist/signal/message-mapper.js +79 -0
  644. package/node_modules/@comis/channels/dist/signal/signal-adapter.d.ts +28 -0
  645. package/node_modules/@comis/channels/dist/signal/signal-adapter.js +339 -0
  646. package/node_modules/@comis/channels/dist/signal/signal-client.d.ts +98 -0
  647. package/node_modules/@comis/channels/dist/signal/signal-client.js +244 -0
  648. package/node_modules/@comis/channels/dist/signal/signal-format.d.ts +40 -0
  649. package/node_modules/@comis/channels/dist/signal/signal-format.js +169 -0
  650. package/node_modules/@comis/channels/dist/signal/signal-plugin.d.ts +17 -0
  651. package/node_modules/@comis/channels/dist/signal/signal-plugin.js +68 -0
  652. package/node_modules/@comis/channels/dist/signal/signal-resolver.d.ts +43 -0
  653. package/node_modules/@comis/channels/dist/signal/signal-resolver.js +50 -0
  654. package/node_modules/@comis/channels/dist/slack/credential-validator.d.ts +43 -0
  655. package/node_modules/@comis/channels/dist/slack/credential-validator.js +66 -0
  656. package/node_modules/@comis/channels/dist/slack/format-slack.d.ts +20 -0
  657. package/node_modules/@comis/channels/dist/slack/format-slack.js +73 -0
  658. package/node_modules/@comis/channels/dist/slack/media-handler.d.ts +47 -0
  659. package/node_modules/@comis/channels/dist/slack/media-handler.js +132 -0
  660. package/node_modules/@comis/channels/dist/slack/message-mapper.d.ts +50 -0
  661. package/node_modules/@comis/channels/dist/slack/message-mapper.js +70 -0
  662. package/node_modules/@comis/channels/dist/slack/rich-renderer.d.ts +32 -0
  663. package/node_modules/@comis/channels/dist/slack/rich-renderer.js +89 -0
  664. package/node_modules/@comis/channels/dist/slack/slack-actions.d.ts +22 -0
  665. package/node_modules/@comis/channels/dist/slack/slack-actions.js +137 -0
  666. package/node_modules/@comis/channels/dist/slack/slack-adapter.d.ts +30 -0
  667. package/node_modules/@comis/channels/dist/slack/slack-adapter.js +399 -0
  668. package/node_modules/@comis/channels/dist/slack/slack-plugin.d.ts +17 -0
  669. package/node_modules/@comis/channels/dist/slack/slack-plugin.js +69 -0
  670. package/node_modules/@comis/channels/dist/slack/slack-resolver.d.ts +31 -0
  671. package/node_modules/@comis/channels/dist/slack/slack-resolver.js +83 -0
  672. package/node_modules/@comis/channels/dist/telegram/credential-validator.d.ts +37 -0
  673. package/node_modules/@comis/channels/dist/telegram/credential-validator.js +62 -0
  674. package/node_modules/@comis/channels/dist/telegram/emoji-fallback.d.ts +30 -0
  675. package/node_modules/@comis/channels/dist/telegram/emoji-fallback.js +60 -0
  676. package/node_modules/@comis/channels/dist/telegram/media-handler.d.ts +13 -0
  677. package/node_modules/@comis/channels/dist/telegram/media-handler.js +92 -0
  678. package/node_modules/@comis/channels/dist/telegram/message-mapper.d.ts +21 -0
  679. package/node_modules/@comis/channels/dist/telegram/message-mapper.js +78 -0
  680. package/node_modules/@comis/channels/dist/telegram/rich-renderer.d.ts +33 -0
  681. package/node_modules/@comis/channels/dist/telegram/rich-renderer.js +97 -0
  682. package/node_modules/@comis/channels/dist/telegram/telegram-adapter.d.ts +36 -0
  683. package/node_modules/@comis/channels/dist/telegram/telegram-adapter.js +673 -0
  684. package/node_modules/@comis/channels/dist/telegram/telegram-plugin.d.ts +39 -0
  685. package/node_modules/@comis/channels/dist/telegram/telegram-plugin.js +79 -0
  686. package/node_modules/@comis/channels/dist/telegram/telegram-resolver.d.ts +44 -0
  687. package/node_modules/@comis/channels/dist/telegram/telegram-resolver.js +83 -0
  688. package/node_modules/@comis/channels/dist/telegram/thread-context.d.ts +90 -0
  689. package/node_modules/@comis/channels/dist/telegram/thread-context.js +119 -0
  690. package/node_modules/@comis/channels/dist/telegram/voice-sender.d.ts +35 -0
  691. package/node_modules/@comis/channels/dist/telegram/voice-sender.js +75 -0
  692. package/node_modules/@comis/channels/dist/whatsapp/credential-validator.d.ts +27 -0
  693. package/node_modules/@comis/channels/dist/whatsapp/credential-validator.js +80 -0
  694. package/node_modules/@comis/channels/dist/whatsapp/jid-utils.d.ts +39 -0
  695. package/node_modules/@comis/channels/dist/whatsapp/jid-utils.js +125 -0
  696. package/node_modules/@comis/channels/dist/whatsapp/media-handler.d.ts +27 -0
  697. package/node_modules/@comis/channels/dist/whatsapp/media-handler.js +84 -0
  698. package/node_modules/@comis/channels/dist/whatsapp/message-mapper.d.ts +74 -0
  699. package/node_modules/@comis/channels/dist/whatsapp/message-mapper.js +106 -0
  700. package/node_modules/@comis/channels/dist/whatsapp/voice-sender.d.ts +37 -0
  701. package/node_modules/@comis/channels/dist/whatsapp/voice-sender.js +49 -0
  702. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-adapter.d.ts +27 -0
  703. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-adapter.js +475 -0
  704. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-plugin.d.ts +17 -0
  705. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-plugin.js +69 -0
  706. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-resolver.d.ts +34 -0
  707. package/node_modules/@comis/channels/dist/whatsapp/whatsapp-resolver.js +99 -0
  708. package/node_modules/@comis/channels/package.json +47 -0
  709. package/node_modules/@comis/cli/dist/cli.d.ts +12 -0
  710. package/node_modules/@comis/cli/dist/cli.js +57 -0
  711. package/node_modules/@comis/cli/dist/client/rpc-client.d.ts +61 -0
  712. package/node_modules/@comis/cli/dist/client/rpc-client.js +274 -0
  713. package/node_modules/@comis/cli/dist/commands/agent.d.ts +15 -0
  714. package/node_modules/@comis/cli/dist/commands/agent.js +282 -0
  715. package/node_modules/@comis/cli/dist/commands/channel.d.ts +15 -0
  716. package/node_modules/@comis/cli/dist/commands/channel.js +113 -0
  717. package/node_modules/@comis/cli/dist/commands/config.d.ts +16 -0
  718. package/node_modules/@comis/cli/dist/commands/config.js +293 -0
  719. package/node_modules/@comis/cli/dist/commands/configure.d.ts +20 -0
  720. package/node_modules/@comis/cli/dist/commands/configure.js +273 -0
  721. package/node_modules/@comis/cli/dist/commands/daemon.d.ts +17 -0
  722. package/node_modules/@comis/cli/dist/commands/daemon.js +562 -0
  723. package/node_modules/@comis/cli/dist/commands/doctor.d.ts +20 -0
  724. package/node_modules/@comis/cli/dist/commands/doctor.js +160 -0
  725. package/node_modules/@comis/cli/dist/commands/health.d.ts +20 -0
  726. package/node_modules/@comis/cli/dist/commands/health.js +158 -0
  727. package/node_modules/@comis/cli/dist/commands/init.d.ts +24 -0
  728. package/node_modules/@comis/cli/dist/commands/init.js +229 -0
  729. package/node_modules/@comis/cli/dist/commands/memory.d.ts +15 -0
  730. package/node_modules/@comis/cli/dist/commands/memory.js +266 -0
  731. package/node_modules/@comis/cli/dist/commands/models.d.ts +20 -0
  732. package/node_modules/@comis/cli/dist/commands/models.js +225 -0
  733. package/node_modules/@comis/cli/dist/commands/pm2.d.ts +16 -0
  734. package/node_modules/@comis/cli/dist/commands/pm2.js +216 -0
  735. package/node_modules/@comis/cli/dist/commands/reset.d.ts +19 -0
  736. package/node_modules/@comis/cli/dist/commands/reset.js +186 -0
  737. package/node_modules/@comis/cli/dist/commands/secrets.d.ts +25 -0
  738. package/node_modules/@comis/cli/dist/commands/secrets.js +491 -0
  739. package/node_modules/@comis/cli/dist/commands/security.d.ts +21 -0
  740. package/node_modules/@comis/cli/dist/commands/security.js +231 -0
  741. package/node_modules/@comis/cli/dist/commands/sessions.d.ts +25 -0
  742. package/node_modules/@comis/cli/dist/commands/sessions.js +179 -0
  743. package/node_modules/@comis/cli/dist/commands/signal-setup.d.ts +19 -0
  744. package/node_modules/@comis/cli/dist/commands/signal-setup.js +398 -0
  745. package/node_modules/@comis/cli/dist/commands/status.d.ts +20 -0
  746. package/node_modules/@comis/cli/dist/commands/status.js +243 -0
  747. package/node_modules/@comis/cli/dist/commands/uninstall.d.ts +13 -0
  748. package/node_modules/@comis/cli/dist/commands/uninstall.js +143 -0
  749. package/node_modules/@comis/cli/dist/doctor/check-runner.d.ts +23 -0
  750. package/node_modules/@comis/cli/dist/doctor/check-runner.js +56 -0
  751. package/node_modules/@comis/cli/dist/doctor/checks/channel-health.d.ts +18 -0
  752. package/node_modules/@comis/cli/dist/doctor/checks/channel-health.js +94 -0
  753. package/node_modules/@comis/cli/dist/doctor/checks/config-health.d.ts +17 -0
  754. package/node_modules/@comis/cli/dist/doctor/checks/config-health.js +114 -0
  755. package/node_modules/@comis/cli/dist/doctor/checks/daemon-health.d.ts +17 -0
  756. package/node_modules/@comis/cli/dist/doctor/checks/daemon-health.js +77 -0
  757. package/node_modules/@comis/cli/dist/doctor/checks/gateway-health.d.ts +15 -0
  758. package/node_modules/@comis/cli/dist/doctor/checks/gateway-health.js +110 -0
  759. package/node_modules/@comis/cli/dist/doctor/checks/workspace-health.d.ts +19 -0
  760. package/node_modules/@comis/cli/dist/doctor/checks/workspace-health.js +97 -0
  761. package/node_modules/@comis/cli/dist/doctor/output.d.ts +28 -0
  762. package/node_modules/@comis/cli/dist/doctor/output.js +83 -0
  763. package/node_modules/@comis/cli/dist/doctor/repairs/repair-config.d.ts +24 -0
  764. package/node_modules/@comis/cli/dist/doctor/repairs/repair-config.js +88 -0
  765. package/node_modules/@comis/cli/dist/doctor/repairs/repair-daemon.d.ts +21 -0
  766. package/node_modules/@comis/cli/dist/doctor/repairs/repair-daemon.js +38 -0
  767. package/node_modules/@comis/cli/dist/doctor/repairs/repair-workspace.d.ts +23 -0
  768. package/node_modules/@comis/cli/dist/doctor/repairs/repair-workspace.js +56 -0
  769. package/node_modules/@comis/cli/dist/doctor/types.d.ts +65 -0
  770. package/node_modules/@comis/cli/dist/doctor/types.js +11 -0
  771. package/node_modules/@comis/cli/dist/index.d.ts +23 -0
  772. package/node_modules/@comis/cli/dist/index.js +48 -0
  773. package/node_modules/@comis/cli/dist/mock-rpc-client.d.ts +69 -0
  774. package/node_modules/@comis/cli/dist/mock-rpc-client.js +105 -0
  775. package/node_modules/@comis/cli/dist/output/format.d.ts +28 -0
  776. package/node_modules/@comis/cli/dist/output/format.js +42 -0
  777. package/node_modules/@comis/cli/dist/output/spinner.d.ts +19 -0
  778. package/node_modules/@comis/cli/dist/output/spinner.js +32 -0
  779. package/node_modules/@comis/cli/dist/output/table.d.ts +21 -0
  780. package/node_modules/@comis/cli/dist/output/table.js +57 -0
  781. package/node_modules/@comis/cli/dist/security/check-runner.d.ts +25 -0
  782. package/node_modules/@comis/cli/dist/security/check-runner.js +68 -0
  783. package/node_modules/@comis/cli/dist/security/checks/action-confirmation.d.ts +18 -0
  784. package/node_modules/@comis/cli/dist/security/checks/action-confirmation.js +52 -0
  785. package/node_modules/@comis/cli/dist/security/checks/audit-logging.d.ts +19 -0
  786. package/node_modules/@comis/cli/dist/security/checks/audit-logging.js +57 -0
  787. package/node_modules/@comis/cli/dist/security/checks/browser-exposure.d.ts +17 -0
  788. package/node_modules/@comis/cli/dist/security/checks/browser-exposure.js +56 -0
  789. package/node_modules/@comis/cli/dist/security/checks/channel-security.d.ts +16 -0
  790. package/node_modules/@comis/cli/dist/security/checks/channel-security.js +63 -0
  791. package/node_modules/@comis/cli/dist/security/checks/config-validation.d.ts +17 -0
  792. package/node_modules/@comis/cli/dist/security/checks/config-validation.js +77 -0
  793. package/node_modules/@comis/cli/dist/security/checks/file-permissions.d.ts +18 -0
  794. package/node_modules/@comis/cli/dist/security/checks/file-permissions.js +97 -0
  795. package/node_modules/@comis/cli/dist/security/checks/gateway-exposure.d.ts +17 -0
  796. package/node_modules/@comis/cli/dist/security/checks/gateway-exposure.js +69 -0
  797. package/node_modules/@comis/cli/dist/security/checks/hooks-hardening.d.ts +17 -0
  798. package/node_modules/@comis/cli/dist/security/checks/hooks-hardening.js +72 -0
  799. package/node_modules/@comis/cli/dist/security/checks/model-hygiene.d.ts +18 -0
  800. package/node_modules/@comis/cli/dist/security/checks/model-hygiene.js +61 -0
  801. package/node_modules/@comis/cli/dist/security/checks/secrets-exposure.d.ts +20 -0
  802. package/node_modules/@comis/cli/dist/security/checks/secrets-exposure.js +82 -0
  803. package/node_modules/@comis/cli/dist/security/checks/skills-code.d.ts +18 -0
  804. package/node_modules/@comis/cli/dist/security/checks/skills-code.js +136 -0
  805. package/node_modules/@comis/cli/dist/security/checks/ssrf-surface.d.ts +17 -0
  806. package/node_modules/@comis/cli/dist/security/checks/ssrf-surface.js +66 -0
  807. package/node_modules/@comis/cli/dist/security/checks/state-protection.d.ts +16 -0
  808. package/node_modules/@comis/cli/dist/security/checks/state-protection.js +97 -0
  809. package/node_modules/@comis/cli/dist/security/checks/webhook-security.d.ts +21 -0
  810. package/node_modules/@comis/cli/dist/security/checks/webhook-security.js +61 -0
  811. package/node_modules/@comis/cli/dist/security/fix-runner.d.ts +32 -0
  812. package/node_modules/@comis/cli/dist/security/fix-runner.js +95 -0
  813. package/node_modules/@comis/cli/dist/security/fix-types.d.ts +46 -0
  814. package/node_modules/@comis/cli/dist/security/fix-types.js +10 -0
  815. package/node_modules/@comis/cli/dist/security/fixes/fix-config.d.ts +25 -0
  816. package/node_modules/@comis/cli/dist/security/fixes/fix-config.js +46 -0
  817. package/node_modules/@comis/cli/dist/security/fixes/fix-permissions.d.ts +21 -0
  818. package/node_modules/@comis/cli/dist/security/fixes/fix-permissions.js +82 -0
  819. package/node_modules/@comis/cli/dist/security/fixes/fix-secrets.d.ts +21 -0
  820. package/node_modules/@comis/cli/dist/security/fixes/fix-secrets.js +34 -0
  821. package/node_modules/@comis/cli/dist/security/output.d.ts +28 -0
  822. package/node_modules/@comis/cli/dist/security/output.js +92 -0
  823. package/node_modules/@comis/cli/dist/security/types.d.ts +65 -0
  824. package/node_modules/@comis/cli/dist/security/types.js +11 -0
  825. package/node_modules/@comis/cli/dist/test-fixtures.d.ts +76 -0
  826. package/node_modules/@comis/cli/dist/test-fixtures.js +164 -0
  827. package/node_modules/@comis/cli/dist/test-helpers.d.ts +54 -0
  828. package/node_modules/@comis/cli/dist/test-helpers.js +73 -0
  829. package/node_modules/@comis/cli/dist/wizard/clack-adapter.d.ts +46 -0
  830. package/node_modules/@comis/cli/dist/wizard/clack-adapter.js +248 -0
  831. package/node_modules/@comis/cli/dist/wizard/config-writer.d.ts +25 -0
  832. package/node_modules/@comis/cli/dist/wizard/config-writer.js +144 -0
  833. package/node_modules/@comis/cli/dist/wizard/flow-types.d.ts +48 -0
  834. package/node_modules/@comis/cli/dist/wizard/flow-types.js +70 -0
  835. package/node_modules/@comis/cli/dist/wizard/index.d.ts +44 -0
  836. package/node_modules/@comis/cli/dist/wizard/index.js +46 -0
  837. package/node_modules/@comis/cli/dist/wizard/json-output.d.ts +66 -0
  838. package/node_modules/@comis/cli/dist/wizard/json-output.js +83 -0
  839. package/node_modules/@comis/cli/dist/wizard/manual-flow.d.ts +21 -0
  840. package/node_modules/@comis/cli/dist/wizard/manual-flow.js +345 -0
  841. package/node_modules/@comis/cli/dist/wizard/non-interactive.d.ts +120 -0
  842. package/node_modules/@comis/cli/dist/wizard/non-interactive.js +403 -0
  843. package/node_modules/@comis/cli/dist/wizard/prompter.d.ts +122 -0
  844. package/node_modules/@comis/cli/dist/wizard/prompter.js +44 -0
  845. package/node_modules/@comis/cli/dist/wizard/quickstart-flow.d.ts +21 -0
  846. package/node_modules/@comis/cli/dist/wizard/quickstart-flow.js +116 -0
  847. package/node_modules/@comis/cli/dist/wizard/state.d.ts +124 -0
  848. package/node_modules/@comis/cli/dist/wizard/state.js +448 -0
  849. package/node_modules/@comis/cli/dist/wizard/steps/00-welcome.d.ts +12 -0
  850. package/node_modules/@comis/cli/dist/wizard/steps/00-welcome.js +42 -0
  851. package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.d.ts +12 -0
  852. package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.js +369 -0
  853. package/node_modules/@comis/cli/dist/wizard/steps/02-flow-select.d.ts +14 -0
  854. package/node_modules/@comis/cli/dist/wizard/steps/02-flow-select.js +43 -0
  855. package/node_modules/@comis/cli/dist/wizard/steps/03-provider.d.ts +15 -0
  856. package/node_modules/@comis/cli/dist/wizard/steps/03-provider.js +46 -0
  857. package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.d.ts +18 -0
  858. package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.js +324 -0
  859. package/node_modules/@comis/cli/dist/wizard/steps/05-agent.d.ts +12 -0
  860. package/node_modules/@comis/cli/dist/wizard/steps/05-agent.js +116 -0
  861. package/node_modules/@comis/cli/dist/wizard/steps/06-channels.d.ts +15 -0
  862. package/node_modules/@comis/cli/dist/wizard/steps/06-channels.js +476 -0
  863. package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.d.ts +14 -0
  864. package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.js +105 -0
  865. package/node_modules/@comis/cli/dist/wizard/steps/08-workspace.d.ts +14 -0
  866. package/node_modules/@comis/cli/dist/wizard/steps/08-workspace.js +69 -0
  867. package/node_modules/@comis/cli/dist/wizard/steps/08b-tool-providers.d.ts +14 -0
  868. package/node_modules/@comis/cli/dist/wizard/steps/08b-tool-providers.js +61 -0
  869. package/node_modules/@comis/cli/dist/wizard/steps/09-review.d.ts +17 -0
  870. package/node_modules/@comis/cli/dist/wizard/steps/09-review.js +150 -0
  871. package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.d.ts +11 -0
  872. package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +342 -0
  873. package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.d.ts +16 -0
  874. package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.js +330 -0
  875. package/node_modules/@comis/cli/dist/wizard/steps/12-finish.d.ts +14 -0
  876. package/node_modules/@comis/cli/dist/wizard/steps/12-finish.js +95 -0
  877. package/node_modules/@comis/cli/dist/wizard/theme.d.ts +93 -0
  878. package/node_modules/@comis/cli/dist/wizard/theme.js +170 -0
  879. package/node_modules/@comis/cli/dist/wizard/types.d.ts +172 -0
  880. package/node_modules/@comis/cli/dist/wizard/types.js +88 -0
  881. package/node_modules/@comis/cli/dist/wizard/validators/agent-name.d.ts +26 -0
  882. package/node_modules/@comis/cli/dist/wizard/validators/agent-name.js +62 -0
  883. package/node_modules/@comis/cli/dist/wizard/validators/api-key.d.ts +36 -0
  884. package/node_modules/@comis/cli/dist/wizard/validators/api-key.js +124 -0
  885. package/node_modules/@comis/cli/dist/wizard/validators/channel-creds.d.ts +34 -0
  886. package/node_modules/@comis/cli/dist/wizard/validators/channel-creds.js +164 -0
  887. package/node_modules/@comis/cli/dist/wizard/validators/network.d.ts +27 -0
  888. package/node_modules/@comis/cli/dist/wizard/validators/network.js +68 -0
  889. package/node_modules/@comis/cli/dist/wizard/validators/port.d.ts +23 -0
  890. package/node_modules/@comis/cli/dist/wizard/validators/port.js +63 -0
  891. package/node_modules/@comis/cli/package.json +51 -0
  892. package/node_modules/@comis/core/dist/approval/approval-gate.d.ts +63 -0
  893. package/node_modules/@comis/core/dist/approval/approval-gate.js +330 -0
  894. package/node_modules/@comis/core/dist/approval/approval-gate.test.d.ts +1 -0
  895. package/node_modules/@comis/core/dist/approval/approval-gate.test.js +1003 -0
  896. package/node_modules/@comis/core/dist/approval/index.d.ts +4 -0
  897. package/node_modules/@comis/core/dist/approval/index.js +3 -0
  898. package/node_modules/@comis/core/dist/bootstrap.d.ts +55 -0
  899. package/node_modules/@comis/core/dist/bootstrap.js +81 -0
  900. package/node_modules/@comis/core/dist/bootstrap.test.d.ts +1 -0
  901. package/node_modules/@comis/core/dist/bootstrap.test.js +150 -0
  902. package/node_modules/@comis/core/dist/config/backup.d.ts +51 -0
  903. package/node_modules/@comis/core/dist/config/backup.js +116 -0
  904. package/node_modules/@comis/core/dist/config/backup.test.d.ts +1 -0
  905. package/node_modules/@comis/core/dist/config/backup.test.js +160 -0
  906. package/node_modules/@comis/core/dist/config/env-substitution.d.ts +59 -0
  907. package/node_modules/@comis/core/dist/config/env-substitution.js +262 -0
  908. package/node_modules/@comis/core/dist/config/env-substitution.test.d.ts +1 -0
  909. package/node_modules/@comis/core/dist/config/env-substitution.test.js +259 -0
  910. package/node_modules/@comis/core/dist/config/field-metadata.d.ts +42 -0
  911. package/node_modules/@comis/core/dist/config/field-metadata.js +187 -0
  912. package/node_modules/@comis/core/dist/config/field-metadata.test.d.ts +1 -0
  913. package/node_modules/@comis/core/dist/config/field-metadata.test.js +72 -0
  914. package/node_modules/@comis/core/dist/config/git-manager.d.ts +146 -0
  915. package/node_modules/@comis/core/dist/config/git-manager.js +466 -0
  916. package/node_modules/@comis/core/dist/config/git-manager.test.d.ts +1 -0
  917. package/node_modules/@comis/core/dist/config/git-manager.test.js +1042 -0
  918. package/node_modules/@comis/core/dist/config/immutable-keys.d.ts +79 -0
  919. package/node_modules/@comis/core/dist/config/immutable-keys.js +139 -0
  920. package/node_modules/@comis/core/dist/config/immutable-keys.test.d.ts +1 -0
  921. package/node_modules/@comis/core/dist/config/immutable-keys.test.js +283 -0
  922. package/node_modules/@comis/core/dist/config/include-resolver.d.ts +38 -0
  923. package/node_modules/@comis/core/dist/config/include-resolver.js +130 -0
  924. package/node_modules/@comis/core/dist/config/include-resolver.test.d.ts +1 -0
  925. package/node_modules/@comis/core/dist/config/include-resolver.test.js +292 -0
  926. package/node_modules/@comis/core/dist/config/index.d.ts +76 -0
  927. package/node_modules/@comis/core/dist/config/index.js +70 -0
  928. package/node_modules/@comis/core/dist/config/layered.d.ts +30 -0
  929. package/node_modules/@comis/core/dist/config/layered.js +87 -0
  930. package/node_modules/@comis/core/dist/config/layered.test.d.ts +1 -0
  931. package/node_modules/@comis/core/dist/config/layered.test.js +211 -0
  932. package/node_modules/@comis/core/dist/config/loader.d.ts +36 -0
  933. package/node_modules/@comis/core/dist/config/loader.js +110 -0
  934. package/node_modules/@comis/core/dist/config/loader.test.d.ts +1 -0
  935. package/node_modules/@comis/core/dist/config/loader.test.js +300 -0
  936. package/node_modules/@comis/core/dist/config/migrate.d.ts +27 -0
  937. package/node_modules/@comis/core/dist/config/migrate.js +114 -0
  938. package/node_modules/@comis/core/dist/config/migrate.test.d.ts +1 -0
  939. package/node_modules/@comis/core/dist/config/migrate.test.js +244 -0
  940. package/node_modules/@comis/core/dist/config/partial-validator.d.ts +49 -0
  941. package/node_modules/@comis/core/dist/config/partial-validator.js +77 -0
  942. package/node_modules/@comis/core/dist/config/partial-validator.test.d.ts +1 -0
  943. package/node_modules/@comis/core/dist/config/partial-validator.test.js +98 -0
  944. package/node_modules/@comis/core/dist/config/schema-agent-model.d.ts +135 -0
  945. package/node_modules/@comis/core/dist/config/schema-agent-model.js +114 -0
  946. package/node_modules/@comis/core/dist/config/schema-agent-model.test.d.ts +1 -0
  947. package/node_modules/@comis/core/dist/config/schema-agent-model.test.js +279 -0
  948. package/node_modules/@comis/core/dist/config/schema-agent-session.d.ts +177 -0
  949. package/node_modules/@comis/core/dist/config/schema-agent-session.js +116 -0
  950. package/node_modules/@comis/core/dist/config/schema-agent-session.test.d.ts +1 -0
  951. package/node_modules/@comis/core/dist/config/schema-agent-session.test.js +242 -0
  952. package/node_modules/@comis/core/dist/config/schema-agent.d.ts +2373 -0
  953. package/node_modules/@comis/core/dist/config/schema-agent.js +732 -0
  954. package/node_modules/@comis/core/dist/config/schema-agent.test.d.ts +1 -0
  955. package/node_modules/@comis/core/dist/config/schema-agent.test.js +645 -0
  956. package/node_modules/@comis/core/dist/config/schema-approvals.d.ts +78 -0
  957. package/node_modules/@comis/core/dist/config/schema-approvals.js +49 -0
  958. package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.d.ts +42 -0
  959. package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.js +35 -0
  960. package/node_modules/@comis/core/dist/config/schema-background-tasks.d.ts +25 -0
  961. package/node_modules/@comis/core/dist/config/schema-background-tasks.js +25 -0
  962. package/node_modules/@comis/core/dist/config/schema-browser.d.ts +42 -0
  963. package/node_modules/@comis/core/dist/config/schema-browser.js +51 -0
  964. package/node_modules/@comis/core/dist/config/schema-channel.d.ts +1172 -0
  965. package/node_modules/@comis/core/dist/config/schema-channel.js +165 -0
  966. package/node_modules/@comis/core/dist/config/schema-channel.test.d.ts +1 -0
  967. package/node_modules/@comis/core/dist/config/schema-channel.test.js +341 -0
  968. package/node_modules/@comis/core/dist/config/schema-coalescer.d.ts +24 -0
  969. package/node_modules/@comis/core/dist/config/schema-coalescer.js +21 -0
  970. package/node_modules/@comis/core/dist/config/schema-coalescer.test.d.ts +1 -0
  971. package/node_modules/@comis/core/dist/config/schema-coalescer.test.js +51 -0
  972. package/node_modules/@comis/core/dist/config/schema-context-engine.d.ts +92 -0
  973. package/node_modules/@comis/core/dist/config/schema-context-engine.js +92 -0
  974. package/node_modules/@comis/core/dist/config/schema-context-engine.test.d.ts +1 -0
  975. package/node_modules/@comis/core/dist/config/schema-context-engine.test.js +797 -0
  976. package/node_modules/@comis/core/dist/config/schema-context-guard.d.ts +34 -0
  977. package/node_modules/@comis/core/dist/config/schema-context-guard.js +32 -0
  978. package/node_modules/@comis/core/dist/config/schema-context-guard.test.d.ts +1 -0
  979. package/node_modules/@comis/core/dist/config/schema-context-guard.test.js +111 -0
  980. package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +140 -0
  981. package/node_modules/@comis/core/dist/config/schema-daemon.js +91 -0
  982. package/node_modules/@comis/core/dist/config/schema-daemon.test.d.ts +1 -0
  983. package/node_modules/@comis/core/dist/config/schema-daemon.test.js +107 -0
  984. package/node_modules/@comis/core/dist/config/schema-delivery-mirror.d.ts +27 -0
  985. package/node_modules/@comis/core/dist/config/schema-delivery-mirror.js +26 -0
  986. package/node_modules/@comis/core/dist/config/schema-delivery-queue.d.ts +31 -0
  987. package/node_modules/@comis/core/dist/config/schema-delivery-queue.js +30 -0
  988. package/node_modules/@comis/core/dist/config/schema-delivery-timing.d.ts +41 -0
  989. package/node_modules/@comis/core/dist/config/schema-delivery-timing.js +31 -0
  990. package/node_modules/@comis/core/dist/config/schema-delivery-timing.test.d.ts +1 -0
  991. package/node_modules/@comis/core/dist/config/schema-delivery-timing.test.js +51 -0
  992. package/node_modules/@comis/core/dist/config/schema-delivery.d.ts +97 -0
  993. package/node_modules/@comis/core/dist/config/schema-delivery.js +89 -0
  994. package/node_modules/@comis/core/dist/config/schema-documentation.d.ts +42 -0
  995. package/node_modules/@comis/core/dist/config/schema-documentation.js +36 -0
  996. package/node_modules/@comis/core/dist/config/schema-documentation.test.d.ts +1 -0
  997. package/node_modules/@comis/core/dist/config/schema-documentation.test.js +63 -0
  998. package/node_modules/@comis/core/dist/config/schema-embedding.d.ts +58 -0
  999. package/node_modules/@comis/core/dist/config/schema-embedding.js +61 -0
  1000. package/node_modules/@comis/core/dist/config/schema-envelope.d.ts +35 -0
  1001. package/node_modules/@comis/core/dist/config/schema-envelope.js +32 -0
  1002. package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +124 -0
  1003. package/node_modules/@comis/core/dist/config/schema-gateway.js +85 -0
  1004. package/node_modules/@comis/core/dist/config/schema-gateway.test.d.ts +1 -0
  1005. package/node_modules/@comis/core/dist/config/schema-gateway.test.js +219 -0
  1006. package/node_modules/@comis/core/dist/config/schema-gemini-cache.d.ts +19 -0
  1007. package/node_modules/@comis/core/dist/config/schema-gemini-cache.js +19 -0
  1008. package/node_modules/@comis/core/dist/config/schema-gemini-cache.test.d.ts +1 -0
  1009. package/node_modules/@comis/core/dist/config/schema-gemini-cache.test.js +41 -0
  1010. package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +960 -0
  1011. package/node_modules/@comis/core/dist/config/schema-integrations.js +369 -0
  1012. package/node_modules/@comis/core/dist/config/schema-integrations.test.d.ts +1 -0
  1013. package/node_modules/@comis/core/dist/config/schema-integrations.test.js +92 -0
  1014. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.d.ts +78 -0
  1015. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.js +49 -0
  1016. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.test.d.ts +1 -0
  1017. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.test.js +61 -0
  1018. package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +38 -0
  1019. package/node_modules/@comis/core/dist/config/schema-memory-review.js +38 -0
  1020. package/node_modules/@comis/core/dist/config/schema-memory.d.ts +50 -0
  1021. package/node_modules/@comis/core/dist/config/schema-memory.js +36 -0
  1022. package/node_modules/@comis/core/dist/config/schema-messages.d.ts +29 -0
  1023. package/node_modules/@comis/core/dist/config/schema-messages.js +28 -0
  1024. package/node_modules/@comis/core/dist/config/schema-misc.test.d.ts +1 -0
  1025. package/node_modules/@comis/core/dist/config/schema-misc.test.js +394 -0
  1026. package/node_modules/@comis/core/dist/config/schema-models.d.ts +46 -0
  1027. package/node_modules/@comis/core/dist/config/schema-models.js +36 -0
  1028. package/node_modules/@comis/core/dist/config/schema-monitoring.d.ts +105 -0
  1029. package/node_modules/@comis/core/dist/config/schema-monitoring.js +67 -0
  1030. package/node_modules/@comis/core/dist/config/schema-notification.d.ts +25 -0
  1031. package/node_modules/@comis/core/dist/config/schema-notification.js +25 -0
  1032. package/node_modules/@comis/core/dist/config/schema-observability.d.ts +139 -0
  1033. package/node_modules/@comis/core/dist/config/schema-observability.js +95 -0
  1034. package/node_modules/@comis/core/dist/config/schema-observability.test.d.ts +1 -0
  1035. package/node_modules/@comis/core/dist/config/schema-observability.test.js +76 -0
  1036. package/node_modules/@comis/core/dist/config/schema-plugins.d.ts +37 -0
  1037. package/node_modules/@comis/core/dist/config/schema-plugins.js +27 -0
  1038. package/node_modules/@comis/core/dist/config/schema-providers.d.ts +241 -0
  1039. package/node_modules/@comis/core/dist/config/schema-providers.js +88 -0
  1040. package/node_modules/@comis/core/dist/config/schema-providers.test.d.ts +1 -0
  1041. package/node_modules/@comis/core/dist/config/schema-providers.test.js +294 -0
  1042. package/node_modules/@comis/core/dist/config/schema-queue.d.ts +248 -0
  1043. package/node_modules/@comis/core/dist/config/schema-queue.js +145 -0
  1044. package/node_modules/@comis/core/dist/config/schema-queue.test.d.ts +1 -0
  1045. package/node_modules/@comis/core/dist/config/schema-queue.test.js +234 -0
  1046. package/node_modules/@comis/core/dist/config/schema-response-prefix.d.ts +20 -0
  1047. package/node_modules/@comis/core/dist/config/schema-response-prefix.js +17 -0
  1048. package/node_modules/@comis/core/dist/config/schema-response-prefix.test.d.ts +1 -0
  1049. package/node_modules/@comis/core/dist/config/schema-response-prefix.test.js +36 -0
  1050. package/node_modules/@comis/core/dist/config/schema-retry.d.ts +25 -0
  1051. package/node_modules/@comis/core/dist/config/schema-retry.js +25 -0
  1052. package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +90 -0
  1053. package/node_modules/@comis/core/dist/config/schema-scheduler.js +88 -0
  1054. package/node_modules/@comis/core/dist/config/schema-secrets.d.ts +15 -0
  1055. package/node_modules/@comis/core/dist/config/schema-secrets.js +14 -0
  1056. package/node_modules/@comis/core/dist/config/schema-security.d.ts +159 -0
  1057. package/node_modules/@comis/core/dist/config/schema-security.js +70 -0
  1058. package/node_modules/@comis/core/dist/config/schema-security.test.d.ts +1 -0
  1059. package/node_modules/@comis/core/dist/config/schema-security.test.js +54 -0
  1060. package/node_modules/@comis/core/dist/config/schema-send-policy.d.ts +65 -0
  1061. package/node_modules/@comis/core/dist/config/schema-send-policy.js +40 -0
  1062. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.d.ts +26 -0
  1063. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.js +22 -0
  1064. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.test.d.ts +1 -0
  1065. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.test.js +60 -0
  1066. package/node_modules/@comis/core/dist/config/schema-serializer.d.ts +33 -0
  1067. package/node_modules/@comis/core/dist/config/schema-serializer.js +97 -0
  1068. package/node_modules/@comis/core/dist/config/schema-serializer.test.d.ts +1 -0
  1069. package/node_modules/@comis/core/dist/config/schema-serializer.test.js +73 -0
  1070. package/node_modules/@comis/core/dist/config/schema-skills.d.ts +134 -0
  1071. package/node_modules/@comis/core/dist/config/schema-skills.js +122 -0
  1072. package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +286 -0
  1073. package/node_modules/@comis/core/dist/config/schema-streaming.js +110 -0
  1074. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.d.ts +19 -0
  1075. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.js +19 -0
  1076. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.test.d.ts +1 -0
  1077. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.test.js +39 -0
  1078. package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +68 -0
  1079. package/node_modules/@comis/core/dist/config/schema-verbosity.js +27 -0
  1080. package/node_modules/@comis/core/dist/config/schema-webhooks.d.ts +131 -0
  1081. package/node_modules/@comis/core/dist/config/schema-webhooks.js +72 -0
  1082. package/node_modules/@comis/core/dist/config/schema.d.ts +2041 -0
  1083. package/node_modules/@comis/core/dist/config/schema.js +115 -0
  1084. package/node_modules/@comis/core/dist/config/types.d.ts +52 -0
  1085. package/node_modules/@comis/core/dist/config/types.js +7 -0
  1086. package/node_modules/@comis/core/dist/context/context.d.ts +78 -0
  1087. package/node_modules/@comis/core/dist/context/context.js +82 -0
  1088. package/node_modules/@comis/core/dist/context/context.test.d.ts +1 -0
  1089. package/node_modules/@comis/core/dist/context/context.test.js +276 -0
  1090. package/node_modules/@comis/core/dist/context/index.d.ts +2 -0
  1091. package/node_modules/@comis/core/dist/context/index.js +2 -0
  1092. package/node_modules/@comis/core/dist/domain/agent-response.d.ts +55 -0
  1093. package/node_modules/@comis/core/dist/domain/agent-response.js +46 -0
  1094. package/node_modules/@comis/core/dist/domain/agent-response.test.d.ts +1 -0
  1095. package/node_modules/@comis/core/dist/domain/agent-response.test.js +159 -0
  1096. package/node_modules/@comis/core/dist/domain/approval-request.d.ts +98 -0
  1097. package/node_modules/@comis/core/dist/domain/approval-request.js +83 -0
  1098. package/node_modules/@comis/core/dist/domain/credential-mapping.d.ts +46 -0
  1099. package/node_modules/@comis/core/dist/domain/credential-mapping.js +62 -0
  1100. package/node_modules/@comis/core/dist/domain/credential-mapping.test.d.ts +1 -0
  1101. package/node_modules/@comis/core/dist/domain/credential-mapping.test.js +135 -0
  1102. package/node_modules/@comis/core/dist/domain/delivery-origin.d.ts +32 -0
  1103. package/node_modules/@comis/core/dist/domain/delivery-origin.js +35 -0
  1104. package/node_modules/@comis/core/dist/domain/delivery-origin.test.d.ts +1 -0
  1105. package/node_modules/@comis/core/dist/domain/delivery-origin.test.js +68 -0
  1106. package/node_modules/@comis/core/dist/domain/execution-graph.d.ts +260 -0
  1107. package/node_modules/@comis/core/dist/domain/execution-graph.js +322 -0
  1108. package/node_modules/@comis/core/dist/domain/execution-graph.test.d.ts +1 -0
  1109. package/node_modules/@comis/core/dist/domain/execution-graph.test.js +441 -0
  1110. package/node_modules/@comis/core/dist/domain/index.d.ts +31 -0
  1111. package/node_modules/@comis/core/dist/domain/index.js +20 -0
  1112. package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +74 -0
  1113. package/node_modules/@comis/core/dist/domain/memory-entry.js +56 -0
  1114. package/node_modules/@comis/core/dist/domain/memory-entry.test.d.ts +1 -0
  1115. package/node_modules/@comis/core/dist/domain/memory-entry.test.js +193 -0
  1116. package/node_modules/@comis/core/dist/domain/model-compat.d.ts +61 -0
  1117. package/node_modules/@comis/core/dist/domain/model-compat.js +47 -0
  1118. package/node_modules/@comis/core/dist/domain/node-type-driver.d.ts +124 -0
  1119. package/node_modules/@comis/core/dist/domain/node-type-driver.js +1 -0
  1120. package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +98 -0
  1121. package/node_modules/@comis/core/dist/domain/normalized-message.js +62 -0
  1122. package/node_modules/@comis/core/dist/domain/normalized-message.test.d.ts +1 -0
  1123. package/node_modules/@comis/core/dist/domain/normalized-message.test.js +255 -0
  1124. package/node_modules/@comis/core/dist/domain/poll-input.d.ts +46 -0
  1125. package/node_modules/@comis/core/dist/domain/poll-input.js +67 -0
  1126. package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +69 -0
  1127. package/node_modules/@comis/core/dist/domain/provider-capabilities.js +51 -0
  1128. package/node_modules/@comis/core/dist/domain/rich-message.d.ts +85 -0
  1129. package/node_modules/@comis/core/dist/domain/rich-message.js +83 -0
  1130. package/node_modules/@comis/core/dist/domain/secret-ref.d.ts +54 -0
  1131. package/node_modules/@comis/core/dist/domain/secret-ref.js +43 -0
  1132. package/node_modules/@comis/core/dist/domain/session-key.d.ts +47 -0
  1133. package/node_modules/@comis/core/dist/domain/session-key.js +120 -0
  1134. package/node_modules/@comis/core/dist/domain/session-key.test.d.ts +1 -0
  1135. package/node_modules/@comis/core/dist/domain/session-key.test.js +291 -0
  1136. package/node_modules/@comis/core/dist/domain/subagent-context-config.d.ts +62 -0
  1137. package/node_modules/@comis/core/dist/domain/subagent-context-config.js +58 -0
  1138. package/node_modules/@comis/core/dist/domain/subagent-context-config.test.d.ts +1 -0
  1139. package/node_modules/@comis/core/dist/domain/subagent-context-config.test.js +131 -0
  1140. package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +203 -0
  1141. package/node_modules/@comis/core/dist/domain/subagent-context-types.js +57 -0
  1142. package/node_modules/@comis/core/dist/domain/subagent-context-types.test.d.ts +1 -0
  1143. package/node_modules/@comis/core/dist/domain/subagent-context-types.test.js +182 -0
  1144. package/node_modules/@comis/core/dist/event-bus/bus.d.ts +50 -0
  1145. package/node_modules/@comis/core/dist/event-bus/bus.js +71 -0
  1146. package/node_modules/@comis/core/dist/event-bus/bus.test.d.ts +1 -0
  1147. package/node_modules/@comis/core/dist/event-bus/bus.test.js +152 -0
  1148. package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +387 -0
  1149. package/node_modules/@comis/core/dist/event-bus/events-agent.js +1 -0
  1150. package/node_modules/@comis/core/dist/event-bus/events-agent.test.d.ts +1 -0
  1151. package/node_modules/@comis/core/dist/event-bus/events-agent.test.js +409 -0
  1152. package/node_modules/@comis/core/dist/event-bus/events-channel.d.ts +376 -0
  1153. package/node_modules/@comis/core/dist/event-bus/events-channel.js +1 -0
  1154. package/node_modules/@comis/core/dist/event-bus/events-channel.test.d.ts +1 -0
  1155. package/node_modules/@comis/core/dist/event-bus/events-channel.test.js +240 -0
  1156. package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +437 -0
  1157. package/node_modules/@comis/core/dist/event-bus/events-infra.js +1 -0
  1158. package/node_modules/@comis/core/dist/event-bus/events-infra.test.d.ts +1 -0
  1159. package/node_modules/@comis/core/dist/event-bus/events-infra.test.js +416 -0
  1160. package/node_modules/@comis/core/dist/event-bus/events-messaging.d.ts +298 -0
  1161. package/node_modules/@comis/core/dist/event-bus/events-messaging.js +1 -0
  1162. package/node_modules/@comis/core/dist/event-bus/events-messaging.test.d.ts +1 -0
  1163. package/node_modules/@comis/core/dist/event-bus/events-messaging.test.js +433 -0
  1164. package/node_modules/@comis/core/dist/event-bus/events.d.ts +15 -0
  1165. package/node_modules/@comis/core/dist/event-bus/events.js +1 -0
  1166. package/node_modules/@comis/core/dist/event-bus/events.test.d.ts +1 -0
  1167. package/node_modules/@comis/core/dist/event-bus/events.test.js +93 -0
  1168. package/node_modules/@comis/core/dist/event-bus/index.d.ts +7 -0
  1169. package/node_modules/@comis/core/dist/event-bus/index.js +2 -0
  1170. package/node_modules/@comis/core/dist/exports/bootstrap.d.ts +5 -0
  1171. package/node_modules/@comis/core/dist/exports/bootstrap.js +8 -0
  1172. package/node_modules/@comis/core/dist/exports/config.d.ts +2 -0
  1173. package/node_modules/@comis/core/dist/exports/config.js +3 -0
  1174. package/node_modules/@comis/core/dist/exports/domain.d.ts +2 -0
  1175. package/node_modules/@comis/core/dist/exports/domain.js +33 -0
  1176. package/node_modules/@comis/core/dist/exports/event-bus.d.ts +2 -0
  1177. package/node_modules/@comis/core/dist/exports/event-bus.js +3 -0
  1178. package/node_modules/@comis/core/dist/exports/hooks.d.ts +6 -0
  1179. package/node_modules/@comis/core/dist/exports/hooks.js +7 -0
  1180. package/node_modules/@comis/core/dist/exports/ports.d.ts +2 -0
  1181. package/node_modules/@comis/core/dist/exports/ports.js +3 -0
  1182. package/node_modules/@comis/core/dist/exports/security.d.ts +38 -0
  1183. package/node_modules/@comis/core/dist/exports/security.js +45 -0
  1184. package/node_modules/@comis/core/dist/hooks/hook-runner-global.d.ts +4 -0
  1185. package/node_modules/@comis/core/dist/hooks/hook-runner-global.js +22 -0
  1186. package/node_modules/@comis/core/dist/hooks/hook-runner-global.test.d.ts +1 -0
  1187. package/node_modules/@comis/core/dist/hooks/hook-runner-global.test.js +29 -0
  1188. package/node_modules/@comis/core/dist/hooks/hook-runner.d.ts +52 -0
  1189. package/node_modules/@comis/core/dist/hooks/hook-runner.js +204 -0
  1190. package/node_modules/@comis/core/dist/hooks/hook-runner.test.d.ts +1 -0
  1191. package/node_modules/@comis/core/dist/hooks/hook-runner.test.js +490 -0
  1192. package/node_modules/@comis/core/dist/hooks/hook-strategies.d.ts +29 -0
  1193. package/node_modules/@comis/core/dist/hooks/hook-strategies.js +58 -0
  1194. package/node_modules/@comis/core/dist/hooks/hook-strategies.test.d.ts +1 -0
  1195. package/node_modules/@comis/core/dist/hooks/hook-strategies.test.js +209 -0
  1196. package/node_modules/@comis/core/dist/hooks/index.d.ts +6 -0
  1197. package/node_modules/@comis/core/dist/hooks/index.js +6 -0
  1198. package/node_modules/@comis/core/dist/hooks/integration.test.d.ts +1 -0
  1199. package/node_modules/@comis/core/dist/hooks/integration.test.js +235 -0
  1200. package/node_modules/@comis/core/dist/hooks/plugin-registry.d.ts +49 -0
  1201. package/node_modules/@comis/core/dist/hooks/plugin-registry.js +176 -0
  1202. package/node_modules/@comis/core/dist/hooks/plugin-registry.test.d.ts +1 -0
  1203. package/node_modules/@comis/core/dist/hooks/plugin-registry.test.js +470 -0
  1204. package/node_modules/@comis/core/dist/index.d.ts +7 -0
  1205. package/node_modules/@comis/core/dist/index.js +12 -0
  1206. package/node_modules/@comis/core/dist/load-env.d.ts +31 -0
  1207. package/node_modules/@comis/core/dist/load-env.js +83 -0
  1208. package/node_modules/@comis/core/dist/load-env.test.d.ts +1 -0
  1209. package/node_modules/@comis/core/dist/load-env.test.js +21 -0
  1210. package/node_modules/@comis/core/dist/ports/channel-plugin.d.ts +104 -0
  1211. package/node_modules/@comis/core/dist/ports/channel-plugin.js +59 -0
  1212. package/node_modules/@comis/core/dist/ports/channel.d.ts +223 -0
  1213. package/node_modules/@comis/core/dist/ports/channel.js +1 -0
  1214. package/node_modules/@comis/core/dist/ports/credential-mapping.d.ts +61 -0
  1215. package/node_modules/@comis/core/dist/ports/credential-mapping.js +1 -0
  1216. package/node_modules/@comis/core/dist/ports/delivery-mirror.d.ts +87 -0
  1217. package/node_modules/@comis/core/dist/ports/delivery-mirror.js +29 -0
  1218. package/node_modules/@comis/core/dist/ports/delivery-queue.d.ts +114 -0
  1219. package/node_modules/@comis/core/dist/ports/delivery-queue.js +33 -0
  1220. package/node_modules/@comis/core/dist/ports/device-identity.d.ts +50 -0
  1221. package/node_modules/@comis/core/dist/ports/device-identity.js +14 -0
  1222. package/node_modules/@comis/core/dist/ports/embedding.d.ts +51 -0
  1223. package/node_modules/@comis/core/dist/ports/embedding.js +1 -0
  1224. package/node_modules/@comis/core/dist/ports/file-extraction-port.d.ts +82 -0
  1225. package/node_modules/@comis/core/dist/ports/file-extraction-port.js +1 -0
  1226. package/node_modules/@comis/core/dist/ports/hook-types.d.ts +218 -0
  1227. package/node_modules/@comis/core/dist/ports/hook-types.js +1 -0
  1228. package/node_modules/@comis/core/dist/ports/image-analysis-port.d.ts +27 -0
  1229. package/node_modules/@comis/core/dist/ports/image-analysis-port.js +1 -0
  1230. package/node_modules/@comis/core/dist/ports/index.d.ts +23 -0
  1231. package/node_modules/@comis/core/dist/ports/index.js +5 -0
  1232. package/node_modules/@comis/core/dist/ports/media-ports.d.ts +278 -0
  1233. package/node_modules/@comis/core/dist/ports/media-ports.js +1 -0
  1234. package/node_modules/@comis/core/dist/ports/media-resolver-port.d.ts +42 -0
  1235. package/node_modules/@comis/core/dist/ports/media-resolver-port.js +1 -0
  1236. package/node_modules/@comis/core/dist/ports/memory.d.ts +97 -0
  1237. package/node_modules/@comis/core/dist/ports/memory.js +1 -0
  1238. package/node_modules/@comis/core/dist/ports/output-guard.d.ts +22 -0
  1239. package/node_modules/@comis/core/dist/ports/output-guard.js +1 -0
  1240. package/node_modules/@comis/core/dist/ports/plugin.d.ts +87 -0
  1241. package/node_modules/@comis/core/dist/ports/plugin.js +1 -0
  1242. package/node_modules/@comis/core/dist/ports/provider.d.ts +44 -0
  1243. package/node_modules/@comis/core/dist/ports/provider.js +1 -0
  1244. package/node_modules/@comis/core/dist/ports/secret-store.d.ts +106 -0
  1245. package/node_modules/@comis/core/dist/ports/secret-store.js +1 -0
  1246. package/node_modules/@comis/core/dist/ports/skill.d.ts +92 -0
  1247. package/node_modules/@comis/core/dist/ports/skill.js +1 -0
  1248. package/node_modules/@comis/core/dist/ports/transcription-port.d.ts +39 -0
  1249. package/node_modules/@comis/core/dist/ports/transcription-port.js +1 -0
  1250. package/node_modules/@comis/core/dist/ports/tts-port.d.ts +37 -0
  1251. package/node_modules/@comis/core/dist/ports/tts-port.js +1 -0
  1252. package/node_modules/@comis/core/dist/ports/vision-port.d.ts +56 -0
  1253. package/node_modules/@comis/core/dist/ports/vision-port.js +1 -0
  1254. package/node_modules/@comis/core/dist/security/action-classifier.d.ts +64 -0
  1255. package/node_modules/@comis/core/dist/security/action-classifier.js +320 -0
  1256. package/node_modules/@comis/core/dist/security/action-classifier.test.d.ts +1 -0
  1257. package/node_modules/@comis/core/dist/security/action-classifier.test.js +298 -0
  1258. package/node_modules/@comis/core/dist/security/audit-aggregator.d.ts +38 -0
  1259. package/node_modules/@comis/core/dist/security/audit-aggregator.js +73 -0
  1260. package/node_modules/@comis/core/dist/security/audit-aggregator.test.d.ts +1 -0
  1261. package/node_modules/@comis/core/dist/security/audit-aggregator.test.js +128 -0
  1262. package/node_modules/@comis/core/dist/security/audit.d.ts +64 -0
  1263. package/node_modules/@comis/core/dist/security/audit.js +56 -0
  1264. package/node_modules/@comis/core/dist/security/audit.test.d.ts +1 -0
  1265. package/node_modules/@comis/core/dist/security/audit.test.js +154 -0
  1266. package/node_modules/@comis/core/dist/security/canary-token.d.ts +18 -0
  1267. package/node_modules/@comis/core/dist/security/canary-token.js +28 -0
  1268. package/node_modules/@comis/core/dist/security/canary-token.test.d.ts +1 -0
  1269. package/node_modules/@comis/core/dist/security/canary-token.test.js +45 -0
  1270. package/node_modules/@comis/core/dist/security/config-redaction.d.ts +19 -0
  1271. package/node_modules/@comis/core/dist/security/config-redaction.js +42 -0
  1272. package/node_modules/@comis/core/dist/security/config-redaction.test.d.ts +1 -0
  1273. package/node_modules/@comis/core/dist/security/config-redaction.test.js +107 -0
  1274. package/node_modules/@comis/core/dist/security/external-content.d.ts +57 -0
  1275. package/node_modules/@comis/core/dist/security/external-content.js +210 -0
  1276. package/node_modules/@comis/core/dist/security/external-content.test.d.ts +1 -0
  1277. package/node_modules/@comis/core/dist/security/external-content.test.js +210 -0
  1278. package/node_modules/@comis/core/dist/security/index.d.ts +38 -0
  1279. package/node_modules/@comis/core/dist/security/index.js +66 -0
  1280. package/node_modules/@comis/core/dist/security/injection-patterns.d.ts +9 -0
  1281. package/node_modules/@comis/core/dist/security/injection-patterns.js +10 -0
  1282. package/node_modules/@comis/core/dist/security/injection-patterns.test.d.ts +1 -0
  1283. package/node_modules/@comis/core/dist/security/injection-patterns.test.js +213 -0
  1284. package/node_modules/@comis/core/dist/security/injection-rate-limiter.d.ts +43 -0
  1285. package/node_modules/@comis/core/dist/security/injection-rate-limiter.js +108 -0
  1286. package/node_modules/@comis/core/dist/security/injection-rate-limiter.test.d.ts +1 -0
  1287. package/node_modules/@comis/core/dist/security/injection-rate-limiter.test.js +194 -0
  1288. package/node_modules/@comis/core/dist/security/input-guard.d.ts +46 -0
  1289. package/node_modules/@comis/core/dist/security/input-guard.js +166 -0
  1290. package/node_modules/@comis/core/dist/security/input-guard.test.d.ts +1 -0
  1291. package/node_modules/@comis/core/dist/security/input-guard.test.js +215 -0
  1292. package/node_modules/@comis/core/dist/security/input-security-guard.d.ts +45 -0
  1293. package/node_modules/@comis/core/dist/security/input-security-guard.js +166 -0
  1294. package/node_modules/@comis/core/dist/security/input-security-guard.test.d.ts +1 -0
  1295. package/node_modules/@comis/core/dist/security/input-security-guard.test.js +215 -0
  1296. package/node_modules/@comis/core/dist/security/input-validator.d.ts +37 -0
  1297. package/node_modules/@comis/core/dist/security/input-validator.js +68 -0
  1298. package/node_modules/@comis/core/dist/security/input-validator.test.d.ts +1 -0
  1299. package/node_modules/@comis/core/dist/security/input-validator.test.js +133 -0
  1300. package/node_modules/@comis/core/dist/security/log-sanitizer.d.ts +21 -0
  1301. package/node_modules/@comis/core/dist/security/log-sanitizer.js +83 -0
  1302. package/node_modules/@comis/core/dist/security/log-sanitizer.test.d.ts +1 -0
  1303. package/node_modules/@comis/core/dist/security/log-sanitizer.test.js +260 -0
  1304. package/node_modules/@comis/core/dist/security/memory-write-validator.d.ts +35 -0
  1305. package/node_modules/@comis/core/dist/security/memory-write-validator.js +42 -0
  1306. package/node_modules/@comis/core/dist/security/memory-write-validator.test.d.ts +1 -0
  1307. package/node_modules/@comis/core/dist/security/memory-write-validator.test.js +62 -0
  1308. package/node_modules/@comis/core/dist/security/output-guard.d.ts +17 -0
  1309. package/node_modules/@comis/core/dist/security/output-guard.js +94 -0
  1310. package/node_modules/@comis/core/dist/security/output-guard.test.d.ts +1 -0
  1311. package/node_modules/@comis/core/dist/security/output-guard.test.js +397 -0
  1312. package/node_modules/@comis/core/dist/security/patterns/content-scanner.d.ts +57 -0
  1313. package/node_modules/@comis/core/dist/security/patterns/content-scanner.js +70 -0
  1314. package/node_modules/@comis/core/dist/security/patterns/credential-log.d.ts +37 -0
  1315. package/node_modules/@comis/core/dist/security/patterns/credential-log.js +52 -0
  1316. package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.d.ts +18 -0
  1317. package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.js +24 -0
  1318. package/node_modules/@comis/core/dist/security/patterns/index.d.ts +8 -0
  1319. package/node_modules/@comis/core/dist/security/patterns/index.js +9 -0
  1320. package/node_modules/@comis/core/dist/security/patterns/invisible-chars.d.ts +85 -0
  1321. package/node_modules/@comis/core/dist/security/patterns/invisible-chars.js +94 -0
  1322. package/node_modules/@comis/core/dist/security/patterns/jailbreak.d.ts +45 -0
  1323. package/node_modules/@comis/core/dist/security/patterns/jailbreak.js +67 -0
  1324. package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.d.ts +14 -0
  1325. package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.js +18 -0
  1326. package/node_modules/@comis/core/dist/security/patterns/role-markers.d.ts +22 -0
  1327. package/node_modules/@comis/core/dist/security/patterns/role-markers.js +30 -0
  1328. package/node_modules/@comis/core/dist/security/patterns/secret-formats.d.ts +35 -0
  1329. package/node_modules/@comis/core/dist/security/patterns/secret-formats.js +52 -0
  1330. package/node_modules/@comis/core/dist/security/safe-path.d.ts +26 -0
  1331. package/node_modules/@comis/core/dist/security/safe-path.js +97 -0
  1332. package/node_modules/@comis/core/dist/security/safe-path.test.d.ts +1 -0
  1333. package/node_modules/@comis/core/dist/security/safe-path.test.js +95 -0
  1334. package/node_modules/@comis/core/dist/security/scoped-secret-manager.d.ts +38 -0
  1335. package/node_modules/@comis/core/dist/security/scoped-secret-manager.js +94 -0
  1336. package/node_modules/@comis/core/dist/security/scoped-secret-manager.test.d.ts +1 -0
  1337. package/node_modules/@comis/core/dist/security/scoped-secret-manager.test.js +231 -0
  1338. package/node_modules/@comis/core/dist/security/secret-access.d.ts +36 -0
  1339. package/node_modules/@comis/core/dist/security/secret-access.js +53 -0
  1340. package/node_modules/@comis/core/dist/security/secret-access.test.d.ts +1 -0
  1341. package/node_modules/@comis/core/dist/security/secret-access.test.js +41 -0
  1342. package/node_modules/@comis/core/dist/security/secret-crypto.d.ts +52 -0
  1343. package/node_modules/@comis/core/dist/security/secret-crypto.js +83 -0
  1344. package/node_modules/@comis/core/dist/security/secret-crypto.test.d.ts +1 -0
  1345. package/node_modules/@comis/core/dist/security/secret-crypto.test.js +113 -0
  1346. package/node_modules/@comis/core/dist/security/secret-manager.d.ts +77 -0
  1347. package/node_modules/@comis/core/dist/security/secret-manager.js +154 -0
  1348. package/node_modules/@comis/core/dist/security/secret-manager.test.d.ts +1 -0
  1349. package/node_modules/@comis/core/dist/security/secret-manager.test.js +394 -0
  1350. package/node_modules/@comis/core/dist/security/secret-ref-resolver.d.ts +66 -0
  1351. package/node_modules/@comis/core/dist/security/secret-ref-resolver.js +233 -0
  1352. package/node_modules/@comis/core/dist/security/secret-ref-resolver.test.d.ts +1 -0
  1353. package/node_modules/@comis/core/dist/security/secret-ref-resolver.test.js +268 -0
  1354. package/node_modules/@comis/core/dist/security/secrets-audit.d.ts +71 -0
  1355. package/node_modules/@comis/core/dist/security/secrets-audit.js +226 -0
  1356. package/node_modules/@comis/core/dist/security/secrets-audit.test.d.ts +10 -0
  1357. package/node_modules/@comis/core/dist/security/secrets-audit.test.js +295 -0
  1358. package/node_modules/@comis/core/dist/security/ssrf-guard.d.ts +53 -0
  1359. package/node_modules/@comis/core/dist/security/ssrf-guard.js +106 -0
  1360. package/node_modules/@comis/core/dist/security/ssrf-guard.test.d.ts +1 -0
  1361. package/node_modules/@comis/core/dist/security/ssrf-guard.test.js +127 -0
  1362. package/node_modules/@comis/core/dist/security/token-generator.d.ts +21 -0
  1363. package/node_modules/@comis/core/dist/security/token-generator.js +28 -0
  1364. package/node_modules/@comis/core/dist/security/token-generator.test.d.ts +1 -0
  1365. package/node_modules/@comis/core/dist/security/token-generator.test.js +35 -0
  1366. package/node_modules/@comis/core/dist/tool-metadata.d.ts +62 -0
  1367. package/node_modules/@comis/core/dist/tool-metadata.js +85 -0
  1368. package/node_modules/@comis/core/dist/tool-metadata.test.d.ts +1 -0
  1369. package/node_modules/@comis/core/dist/tool-metadata.test.js +112 -0
  1370. package/node_modules/@comis/core/package.json +44 -0
  1371. package/node_modules/@comis/daemon/bundled-skills/skill-creator/SKILL.md +320 -0
  1372. package/node_modules/@comis/daemon/bundled-skills/skill-creator/references/schema.md +101 -0
  1373. package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/init-skill.py +137 -0
  1374. package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/validate-skill.py +286 -0
  1375. package/node_modules/@comis/daemon/dist/announcement-batcher.d.ts +58 -0
  1376. package/node_modules/@comis/daemon/dist/announcement-batcher.js +229 -0
  1377. package/node_modules/@comis/daemon/dist/announcement-dead-letter.d.ts +71 -0
  1378. package/node_modules/@comis/daemon/dist/announcement-dead-letter.js +216 -0
  1379. package/node_modules/@comis/daemon/dist/config/exec-git.d.ts +14 -0
  1380. package/node_modules/@comis/daemon/dist/config/exec-git.js +30 -0
  1381. package/node_modules/@comis/daemon/dist/config/last-known-good.d.ts +43 -0
  1382. package/node_modules/@comis/daemon/dist/config/last-known-good.js +141 -0
  1383. package/node_modules/@comis/daemon/dist/cross-session-sender.d.ts +56 -0
  1384. package/node_modules/@comis/daemon/dist/cross-session-sender.js +144 -0
  1385. package/node_modules/@comis/daemon/dist/daemon-types.d.ts +113 -0
  1386. package/node_modules/@comis/daemon/dist/daemon-types.js +8 -0
  1387. package/node_modules/@comis/daemon/dist/daemon.d.ts +37 -0
  1388. package/node_modules/@comis/daemon/dist/daemon.js +1327 -0
  1389. package/node_modules/@comis/daemon/dist/device/device-identity.d.ts +29 -0
  1390. package/node_modules/@comis/daemon/dist/device/device-identity.js +95 -0
  1391. package/node_modules/@comis/daemon/dist/device/device-pairing.d.ts +31 -0
  1392. package/node_modules/@comis/daemon/dist/device/device-pairing.js +240 -0
  1393. package/node_modules/@comis/daemon/dist/graph/drivers/agent-driver.d.ts +8 -0
  1394. package/node_modules/@comis/daemon/dist/graph/drivers/agent-driver.js +41 -0
  1395. package/node_modules/@comis/daemon/dist/graph/drivers/approval-gate-driver.d.ts +10 -0
  1396. package/node_modules/@comis/daemon/dist/graph/drivers/approval-gate-driver.js +76 -0
  1397. package/node_modules/@comis/daemon/dist/graph/drivers/collaborate-driver.d.ts +9 -0
  1398. package/node_modules/@comis/daemon/dist/graph/drivers/collaborate-driver.js +87 -0
  1399. package/node_modules/@comis/daemon/dist/graph/drivers/debate-driver.d.ts +9 -0
  1400. package/node_modules/@comis/daemon/dist/graph/drivers/debate-driver.js +208 -0
  1401. package/node_modules/@comis/daemon/dist/graph/drivers/index.d.ts +7 -0
  1402. package/node_modules/@comis/daemon/dist/graph/drivers/index.js +8 -0
  1403. package/node_modules/@comis/daemon/dist/graph/drivers/map-reduce-driver.d.ts +10 -0
  1404. package/node_modules/@comis/daemon/dist/graph/drivers/map-reduce-driver.js +79 -0
  1405. package/node_modules/@comis/daemon/dist/graph/drivers/refine-driver.d.ts +9 -0
  1406. package/node_modules/@comis/daemon/dist/graph/drivers/refine-driver.js +67 -0
  1407. package/node_modules/@comis/daemon/dist/graph/drivers/vote-driver.d.ts +9 -0
  1408. package/node_modules/@comis/daemon/dist/graph/drivers/vote-driver.js +66 -0
  1409. package/node_modules/@comis/daemon/dist/graph/graph-cleanup.d.ts +18 -0
  1410. package/node_modules/@comis/daemon/dist/graph/graph-cleanup.js +69 -0
  1411. package/node_modules/@comis/daemon/dist/graph/graph-completion.d.ts +64 -0
  1412. package/node_modules/@comis/daemon/dist/graph/graph-completion.js +478 -0
  1413. package/node_modules/@comis/daemon/dist/graph/graph-concurrency.d.ts +54 -0
  1414. package/node_modules/@comis/daemon/dist/graph/graph-concurrency.js +77 -0
  1415. package/node_modules/@comis/daemon/dist/graph/graph-coordinator-state.d.ts +233 -0
  1416. package/node_modules/@comis/daemon/dist/graph/graph-coordinator-state.js +9 -0
  1417. package/node_modules/@comis/daemon/dist/graph/graph-coordinator.d.ts +44 -0
  1418. package/node_modules/@comis/daemon/dist/graph/graph-coordinator.js +344 -0
  1419. package/node_modules/@comis/daemon/dist/graph/graph-driver-handler.d.ts +62 -0
  1420. package/node_modules/@comis/daemon/dist/graph/graph-driver-handler.js +611 -0
  1421. package/node_modules/@comis/daemon/dist/graph/graph-node-lifecycle.d.ts +97 -0
  1422. package/node_modules/@comis/daemon/dist/graph/graph-node-lifecycle.js +611 -0
  1423. package/node_modules/@comis/daemon/dist/graph/graph-prewarm.d.ts +65 -0
  1424. package/node_modules/@comis/daemon/dist/graph/graph-prewarm.js +95 -0
  1425. package/node_modules/@comis/daemon/dist/graph/graph-state-machine.d.ts +77 -0
  1426. package/node_modules/@comis/daemon/dist/graph/graph-state-machine.js +439 -0
  1427. package/node_modules/@comis/daemon/dist/graph/graph-tool-superset.d.ts +33 -0
  1428. package/node_modules/@comis/daemon/dist/graph/graph-tool-superset.js +74 -0
  1429. package/node_modules/@comis/daemon/dist/graph/index.d.ts +7 -0
  1430. package/node_modules/@comis/daemon/dist/graph/index.js +7 -0
  1431. package/node_modules/@comis/daemon/dist/graph/node-type-registry.d.ts +18 -0
  1432. package/node_modules/@comis/daemon/dist/graph/node-type-registry.js +45 -0
  1433. package/node_modules/@comis/daemon/dist/graph/template-interpolation.d.ts +73 -0
  1434. package/node_modules/@comis/daemon/dist/graph/template-interpolation.js +205 -0
  1435. package/node_modules/@comis/daemon/dist/graph/user-variables.d.ts +45 -0
  1436. package/node_modules/@comis/daemon/dist/graph/user-variables.js +68 -0
  1437. package/node_modules/@comis/daemon/dist/health/index.d.ts +1 -0
  1438. package/node_modules/@comis/daemon/dist/health/index.js +3 -0
  1439. package/node_modules/@comis/daemon/dist/health/watchdog.d.ts +50 -0
  1440. package/node_modules/@comis/daemon/dist/health/watchdog.js +84 -0
  1441. package/node_modules/@comis/daemon/dist/index.d.ts +9 -0
  1442. package/node_modules/@comis/daemon/dist/index.js +12 -0
  1443. package/node_modules/@comis/daemon/dist/monitoring/disk-space-source.d.ts +14 -0
  1444. package/node_modules/@comis/daemon/dist/monitoring/disk-space-source.js +71 -0
  1445. package/node_modules/@comis/daemon/dist/monitoring/exec-helpers.d.ts +31 -0
  1446. package/node_modules/@comis/daemon/dist/monitoring/exec-helpers.js +44 -0
  1447. package/node_modules/@comis/daemon/dist/monitoring/git-watcher-source.d.ts +15 -0
  1448. package/node_modules/@comis/daemon/dist/monitoring/git-watcher-source.js +104 -0
  1449. package/node_modules/@comis/daemon/dist/monitoring/index.d.ts +5 -0
  1450. package/node_modules/@comis/daemon/dist/monitoring/index.js +7 -0
  1451. package/node_modules/@comis/daemon/dist/monitoring/security-update-source.d.ts +14 -0
  1452. package/node_modules/@comis/daemon/dist/monitoring/security-update-source.js +141 -0
  1453. package/node_modules/@comis/daemon/dist/monitoring/system-resources-source.d.ts +15 -0
  1454. package/node_modules/@comis/daemon/dist/monitoring/system-resources-source.js +197 -0
  1455. package/node_modules/@comis/daemon/dist/monitoring/systemd-service-source.d.ts +14 -0
  1456. package/node_modules/@comis/daemon/dist/monitoring/systemd-service-source.js +115 -0
  1457. package/node_modules/@comis/daemon/dist/notification/channel-resolver.d.ts +40 -0
  1458. package/node_modules/@comis/daemon/dist/notification/channel-resolver.js +33 -0
  1459. package/node_modules/@comis/daemon/dist/notification/notification-service.d.ts +48 -0
  1460. package/node_modules/@comis/daemon/dist/notification/notification-service.js +150 -0
  1461. package/node_modules/@comis/daemon/dist/notification/rate-limiter.d.ts +15 -0
  1462. package/node_modules/@comis/daemon/dist/notification/rate-limiter.js +28 -0
  1463. package/node_modules/@comis/daemon/dist/notification/session-tracker.d.ts +23 -0
  1464. package/node_modules/@comis/daemon/dist/notification/session-tracker.js +40 -0
  1465. package/node_modules/@comis/daemon/dist/observability/billing-estimator.d.ts +63 -0
  1466. package/node_modules/@comis/daemon/dist/observability/billing-estimator.js +98 -0
  1467. package/node_modules/@comis/daemon/dist/observability/channel-activity-tracker.d.ts +36 -0
  1468. package/node_modules/@comis/daemon/dist/observability/channel-activity-tracker.js +97 -0
  1469. package/node_modules/@comis/daemon/dist/observability/channel-health-logger.d.ts +25 -0
  1470. package/node_modules/@comis/daemon/dist/observability/channel-health-logger.js +82 -0
  1471. package/node_modules/@comis/daemon/dist/observability/context-pipeline-collector.d.ts +73 -0
  1472. package/node_modules/@comis/daemon/dist/observability/context-pipeline-collector.js +132 -0
  1473. package/node_modules/@comis/daemon/dist/observability/delivery-context.d.ts +37 -0
  1474. package/node_modules/@comis/daemon/dist/observability/delivery-context.js +1 -0
  1475. package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.d.ts +25 -0
  1476. package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.js +99 -0
  1477. package/node_modules/@comis/daemon/dist/observability/delivery-tracer.d.ts +59 -0
  1478. package/node_modules/@comis/daemon/dist/observability/delivery-tracer.js +150 -0
  1479. package/node_modules/@comis/daemon/dist/observability/diagnostic-collector.d.ts +46 -0
  1480. package/node_modules/@comis/daemon/dist/observability/diagnostic-collector.js +129 -0
  1481. package/node_modules/@comis/daemon/dist/observability/index.d.ts +30 -0
  1482. package/node_modules/@comis/daemon/dist/observability/index.js +30 -0
  1483. package/node_modules/@comis/daemon/dist/observability/latency-recorder.d.ts +54 -0
  1484. package/node_modules/@comis/daemon/dist/observability/latency-recorder.js +85 -0
  1485. package/node_modules/@comis/daemon/dist/observability/log-infra.d.ts +57 -0
  1486. package/node_modules/@comis/daemon/dist/observability/log-infra.js +104 -0
  1487. package/node_modules/@comis/daemon/dist/observability/log-level-manager.d.ts +23 -0
  1488. package/node_modules/@comis/daemon/dist/observability/log-level-manager.js +34 -0
  1489. package/node_modules/@comis/daemon/dist/observability/log-transport.d.ts +44 -0
  1490. package/node_modules/@comis/daemon/dist/observability/log-transport.js +74 -0
  1491. package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.d.ts +82 -0
  1492. package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.js +213 -0
  1493. package/node_modules/@comis/daemon/dist/observability/obs-write-buffer.d.ts +53 -0
  1494. package/node_modules/@comis/daemon/dist/observability/obs-write-buffer.js +68 -0
  1495. package/node_modules/@comis/daemon/dist/observability/token-tracker.d.ts +70 -0
  1496. package/node_modules/@comis/daemon/dist/observability/token-tracker.js +120 -0
  1497. package/node_modules/@comis/daemon/dist/observability/trace-logger.d.ts +17 -0
  1498. package/node_modules/@comis/daemon/dist/observability/trace-logger.js +37 -0
  1499. package/node_modules/@comis/daemon/dist/observability/types.d.ts +6 -0
  1500. package/node_modules/@comis/daemon/dist/observability/types.js +1 -0
  1501. package/node_modules/@comis/daemon/dist/process/graceful-shutdown.d.ts +50 -0
  1502. package/node_modules/@comis/daemon/dist/process/graceful-shutdown.js +126 -0
  1503. package/node_modules/@comis/daemon/dist/process/index.d.ts +2 -0
  1504. package/node_modules/@comis/daemon/dist/process/index.js +4 -0
  1505. package/node_modules/@comis/daemon/dist/process/process-monitor.d.ts +52 -0
  1506. package/node_modules/@comis/daemon/dist/process/process-monitor.js +69 -0
  1507. package/node_modules/@comis/daemon/dist/rpc/agent-handlers.d.ts +40 -0
  1508. package/node_modules/@comis/daemon/dist/rpc/agent-handlers.js +293 -0
  1509. package/node_modules/@comis/daemon/dist/rpc/approval-handlers.d.ts +18 -0
  1510. package/node_modules/@comis/daemon/dist/rpc/approval-handlers.js +68 -0
  1511. package/node_modules/@comis/daemon/dist/rpc/browser-handlers.d.ts +22 -0
  1512. package/node_modules/@comis/daemon/dist/rpc/browser-handlers.js +118 -0
  1513. package/node_modules/@comis/daemon/dist/rpc/channel-handlers.d.ts +34 -0
  1514. package/node_modules/@comis/daemon/dist/rpc/channel-handlers.js +217 -0
  1515. package/node_modules/@comis/daemon/dist/rpc/config-handlers.d.ts +95 -0
  1516. package/node_modules/@comis/daemon/dist/rpc/config-handlers.js +855 -0
  1517. package/node_modules/@comis/daemon/dist/rpc/context-handlers.d.ts +42 -0
  1518. package/node_modules/@comis/daemon/dist/rpc/context-handlers.js +371 -0
  1519. package/node_modules/@comis/daemon/dist/rpc/cron-handlers.d.ts +22 -0
  1520. package/node_modules/@comis/daemon/dist/rpc/cron-handlers.js +204 -0
  1521. package/node_modules/@comis/daemon/dist/rpc/daemon-handlers.d.ts +19 -0
  1522. package/node_modules/@comis/daemon/dist/rpc/daemon-handlers.js +49 -0
  1523. package/node_modules/@comis/daemon/dist/rpc/env-handlers.d.ts +26 -0
  1524. package/node_modules/@comis/daemon/dist/rpc/env-handlers.js +289 -0
  1525. package/node_modules/@comis/daemon/dist/rpc/graph-handlers.d.ts +84 -0
  1526. package/node_modules/@comis/daemon/dist/rpc/graph-handlers.js +803 -0
  1527. package/node_modules/@comis/daemon/dist/rpc/heartbeat-handlers.d.ts +30 -0
  1528. package/node_modules/@comis/daemon/dist/rpc/heartbeat-handlers.js +195 -0
  1529. package/node_modules/@comis/daemon/dist/rpc/image-handlers.d.ts +28 -0
  1530. package/node_modules/@comis/daemon/dist/rpc/image-handlers.js +95 -0
  1531. package/node_modules/@comis/daemon/dist/rpc/index.d.ts +24 -0
  1532. package/node_modules/@comis/daemon/dist/rpc/index.js +23 -0
  1533. package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.d.ts +24 -0
  1534. package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.js +195 -0
  1535. package/node_modules/@comis/daemon/dist/rpc/media-handlers.d.ts +59 -0
  1536. package/node_modules/@comis/daemon/dist/rpc/media-handlers.js +480 -0
  1537. package/node_modules/@comis/daemon/dist/rpc/memory-handlers.d.ts +36 -0
  1538. package/node_modules/@comis/daemon/dist/rpc/memory-handlers.js +246 -0
  1539. package/node_modules/@comis/daemon/dist/rpc/message-handlers.d.ts +40 -0
  1540. package/node_modules/@comis/daemon/dist/rpc/message-handlers.js +296 -0
  1541. package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +26 -0
  1542. package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +100 -0
  1543. package/node_modules/@comis/daemon/dist/rpc/notification-handlers.d.ts +25 -0
  1544. package/node_modules/@comis/daemon/dist/rpc/notification-handlers.js +56 -0
  1545. package/node_modules/@comis/daemon/dist/rpc/obs-handlers.d.ts +86 -0
  1546. package/node_modules/@comis/daemon/dist/rpc/obs-handlers.js +570 -0
  1547. package/node_modules/@comis/daemon/dist/rpc/persist-to-config.d.ts +74 -0
  1548. package/node_modules/@comis/daemon/dist/rpc/persist-to-config.js +204 -0
  1549. package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.d.ts +200 -0
  1550. package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.js +199 -0
  1551. package/node_modules/@comis/daemon/dist/rpc/session-handlers.d.ts +73 -0
  1552. package/node_modules/@comis/daemon/dist/rpc/session-handlers.js +828 -0
  1553. package/node_modules/@comis/daemon/dist/rpc/skill-handlers.d.ts +34 -0
  1554. package/node_modules/@comis/daemon/dist/rpc/skill-handlers.js +444 -0
  1555. package/node_modules/@comis/daemon/dist/rpc/subagent-handlers.d.ts +25 -0
  1556. package/node_modules/@comis/daemon/dist/rpc/subagent-handlers.js +80 -0
  1557. package/node_modules/@comis/daemon/dist/rpc/token-handlers.d.ts +56 -0
  1558. package/node_modules/@comis/daemon/dist/rpc/token-handlers.js +212 -0
  1559. package/node_modules/@comis/daemon/dist/rpc/types.d.ts +2 -0
  1560. package/node_modules/@comis/daemon/dist/rpc/types.js +1 -0
  1561. package/node_modules/@comis/daemon/dist/rpc/workspace-handlers.d.ts +34 -0
  1562. package/node_modules/@comis/daemon/dist/rpc/workspace-handlers.js +424 -0
  1563. package/node_modules/@comis/daemon/dist/sub-agent-result-processor.d.ts +143 -0
  1564. package/node_modules/@comis/daemon/dist/sub-agent-result-processor.js +493 -0
  1565. package/node_modules/@comis/daemon/dist/sub-agent-runner.d.ts +321 -0
  1566. package/node_modules/@comis/daemon/dist/sub-agent-runner.js +1224 -0
  1567. package/node_modules/@comis/daemon/dist/wiring/daemon-context.d.ts +149 -0
  1568. package/node_modules/@comis/daemon/dist/wiring/daemon-context.js +13 -0
  1569. package/node_modules/@comis/daemon/dist/wiring/daemon-utils.d.ts +40 -0
  1570. package/node_modules/@comis/daemon/dist/wiring/daemon-utils.js +109 -0
  1571. package/node_modules/@comis/daemon/dist/wiring/index.d.ts +19 -0
  1572. package/node_modules/@comis/daemon/dist/wiring/index.js +18 -0
  1573. package/node_modules/@comis/daemon/dist/wiring/restart-continuation.d.ts +59 -0
  1574. package/node_modules/@comis/daemon/dist/wiring/restart-continuation.js +113 -0
  1575. package/node_modules/@comis/daemon/dist/wiring/seed-bundled-skills.d.ts +41 -0
  1576. package/node_modules/@comis/daemon/dist/wiring/seed-bundled-skills.js +84 -0
  1577. package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +182 -0
  1578. package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +455 -0
  1579. package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.d.ts +28 -0
  1580. package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +30 -0
  1581. package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.d.ts +42 -0
  1582. package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.js +296 -0
  1583. package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.d.ts +54 -0
  1584. package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.js +332 -0
  1585. package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +161 -0
  1586. package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +731 -0
  1587. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.d.ts +108 -0
  1588. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.js +732 -0
  1589. package/node_modules/@comis/daemon/dist/wiring/setup-delivery-mirror.d.ts +24 -0
  1590. package/node_modules/@comis/daemon/dist/wiring/setup-delivery-mirror.js +88 -0
  1591. package/node_modules/@comis/daemon/dist/wiring/setup-delivery-queue.d.ts +31 -0
  1592. package/node_modules/@comis/daemon/dist/wiring/setup-delivery-queue.js +132 -0
  1593. package/node_modules/@comis/daemon/dist/wiring/setup-delivery.d.ts +48 -0
  1594. package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +225 -0
  1595. package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.d.ts +48 -0
  1596. package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.js +262 -0
  1597. package/node_modules/@comis/daemon/dist/wiring/setup-gateway-rpc.d.ts +31 -0
  1598. package/node_modules/@comis/daemon/dist/wiring/setup-gateway-rpc.js +234 -0
  1599. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.d.ts +146 -0
  1600. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +690 -0
  1601. package/node_modules/@comis/daemon/dist/wiring/setup-health.d.ts +59 -0
  1602. package/node_modules/@comis/daemon/dist/wiring/setup-health.js +138 -0
  1603. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.d.ts +63 -0
  1604. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.js +111 -0
  1605. package/node_modules/@comis/daemon/dist/wiring/setup-logging.d.ts +38 -0
  1606. package/node_modules/@comis/daemon/dist/wiring/setup-logging.js +78 -0
  1607. package/node_modules/@comis/daemon/dist/wiring/setup-mcp.d.ts +47 -0
  1608. package/node_modules/@comis/daemon/dist/wiring/setup-mcp.js +182 -0
  1609. package/node_modules/@comis/daemon/dist/wiring/setup-media.d.ts +48 -0
  1610. package/node_modules/@comis/daemon/dist/wiring/setup-media.js +193 -0
  1611. package/node_modules/@comis/daemon/dist/wiring/setup-memory.d.ts +56 -0
  1612. package/node_modules/@comis/daemon/dist/wiring/setup-memory.js +214 -0
  1613. package/node_modules/@comis/daemon/dist/wiring/setup-monitoring.d.ts +38 -0
  1614. package/node_modules/@comis/daemon/dist/wiring/setup-monitoring.js +100 -0
  1615. package/node_modules/@comis/daemon/dist/wiring/setup-notifications.d.ts +43 -0
  1616. package/node_modules/@comis/daemon/dist/wiring/setup-notifications.js +53 -0
  1617. package/node_modules/@comis/daemon/dist/wiring/setup-observability.d.ts +48 -0
  1618. package/node_modules/@comis/daemon/dist/wiring/setup-observability.js +106 -0
  1619. package/node_modules/@comis/daemon/dist/wiring/setup-rpc-bridge.d.ts +34 -0
  1620. package/node_modules/@comis/daemon/dist/wiring/setup-rpc-bridge.js +52 -0
  1621. package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.d.ts +84 -0
  1622. package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.js +327 -0
  1623. package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.d.ts +135 -0
  1624. package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.js +308 -0
  1625. package/node_modules/@comis/daemon/dist/wiring/setup-task-extraction.d.ts +41 -0
  1626. package/node_modules/@comis/daemon/dist/wiring/setup-task-extraction.js +86 -0
  1627. package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +104 -0
  1628. package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +440 -0
  1629. package/node_modules/@comis/daemon/dist/wiring/startup-dry-run.d.ts +41 -0
  1630. package/node_modules/@comis/daemon/dist/wiring/startup-dry-run.js +88 -0
  1631. package/node_modules/@comis/daemon/package.json +50 -0
  1632. package/node_modules/@comis/gateway/dist/acp/acp-server.d.ts +74 -0
  1633. package/node_modules/@comis/gateway/dist/acp/acp-server.js +122 -0
  1634. package/node_modules/@comis/gateway/dist/acp/acp-session-map.d.ts +39 -0
  1635. package/node_modules/@comis/gateway/dist/acp/acp-session-map.js +50 -0
  1636. package/node_modules/@comis/gateway/dist/acp/index.d.ts +4 -0
  1637. package/node_modules/@comis/gateway/dist/acp/index.js +4 -0
  1638. package/node_modules/@comis/gateway/dist/auth/mtls-verifier.d.ts +24 -0
  1639. package/node_modules/@comis/gateway/dist/auth/mtls-verifier.js +70 -0
  1640. package/node_modules/@comis/gateway/dist/auth/token-auth.d.ts +54 -0
  1641. package/node_modules/@comis/gateway/dist/auth/token-auth.js +56 -0
  1642. package/node_modules/@comis/gateway/dist/discovery/index.d.ts +1 -0
  1643. package/node_modules/@comis/gateway/dist/discovery/index.js +3 -0
  1644. package/node_modules/@comis/gateway/dist/discovery/mdns-advertiser.d.ts +45 -0
  1645. package/node_modules/@comis/gateway/dist/discovery/mdns-advertiser.js +63 -0
  1646. package/node_modules/@comis/gateway/dist/index.d.ts +19 -0
  1647. package/node_modules/@comis/gateway/dist/index.js +30 -0
  1648. package/node_modules/@comis/gateway/dist/openai/index.d.ts +8 -0
  1649. package/node_modules/@comis/gateway/dist/openai/index.js +6 -0
  1650. package/node_modules/@comis/gateway/dist/openai/openai-completions.d.ts +60 -0
  1651. package/node_modules/@comis/gateway/dist/openai/openai-completions.js +236 -0
  1652. package/node_modules/@comis/gateway/dist/openai/openai-embeddings.d.ts +68 -0
  1653. package/node_modules/@comis/gateway/dist/openai/openai-embeddings.js +90 -0
  1654. package/node_modules/@comis/gateway/dist/openai/openai-models.d.ts +37 -0
  1655. package/node_modules/@comis/gateway/dist/openai/openai-models.js +59 -0
  1656. package/node_modules/@comis/gateway/dist/openai/openai-types.d.ts +115 -0
  1657. package/node_modules/@comis/gateway/dist/openai/openai-types.js +84 -0
  1658. package/node_modules/@comis/gateway/dist/rate-limit/rate-limiter.d.ts +40 -0
  1659. package/node_modules/@comis/gateway/dist/rate-limit/rate-limiter.js +83 -0
  1660. package/node_modules/@comis/gateway/dist/responses/index.d.ts +4 -0
  1661. package/node_modules/@comis/gateway/dist/responses/index.js +4 -0
  1662. package/node_modules/@comis/gateway/dist/responses/responses-endpoint.d.ts +57 -0
  1663. package/node_modules/@comis/gateway/dist/responses/responses-endpoint.js +293 -0
  1664. package/node_modules/@comis/gateway/dist/responses/responses-types.d.ts +148 -0
  1665. package/node_modules/@comis/gateway/dist/responses/responses-types.js +51 -0
  1666. package/node_modules/@comis/gateway/dist/rpc/method-router.d.ts +77 -0
  1667. package/node_modules/@comis/gateway/dist/rpc/method-router.js +223 -0
  1668. package/node_modules/@comis/gateway/dist/rpc/rpc-adapters.d.ts +120 -0
  1669. package/node_modules/@comis/gateway/dist/rpc/rpc-adapters.js +155 -0
  1670. package/node_modules/@comis/gateway/dist/rpc/ws-handler.d.ts +121 -0
  1671. package/node_modules/@comis/gateway/dist/rpc/ws-handler.js +313 -0
  1672. package/node_modules/@comis/gateway/dist/server/hono-server.d.ts +90 -0
  1673. package/node_modules/@comis/gateway/dist/server/hono-server.js +250 -0
  1674. package/node_modules/@comis/gateway/dist/web/index.d.ts +7 -0
  1675. package/node_modules/@comis/gateway/dist/web/index.js +6 -0
  1676. package/node_modules/@comis/gateway/dist/web/media-routes.d.ts +30 -0
  1677. package/node_modules/@comis/gateway/dist/web/media-routes.js +164 -0
  1678. package/node_modules/@comis/gateway/dist/web/rest-api.d.ts +83 -0
  1679. package/node_modules/@comis/gateway/dist/web/rest-api.js +300 -0
  1680. package/node_modules/@comis/gateway/dist/web/sse-endpoint.d.ts +32 -0
  1681. package/node_modules/@comis/gateway/dist/web/sse-endpoint.js +181 -0
  1682. package/node_modules/@comis/gateway/dist/web/static-middleware.d.ts +13 -0
  1683. package/node_modules/@comis/gateway/dist/web/static-middleware.js +59 -0
  1684. package/node_modules/@comis/gateway/dist/webhook/hmac-verifier.d.ts +61 -0
  1685. package/node_modules/@comis/gateway/dist/webhook/hmac-verifier.js +69 -0
  1686. package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.d.ts +115 -0
  1687. package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.js +186 -0
  1688. package/node_modules/@comis/gateway/dist/webhook/webhook-mapping.d.ts +69 -0
  1689. package/node_modules/@comis/gateway/dist/webhook/webhook-mapping.js +149 -0
  1690. package/node_modules/@comis/gateway/dist/webhook/webhook-presets.d.ts +27 -0
  1691. package/node_modules/@comis/gateway/dist/webhook/webhook-presets.js +57 -0
  1692. package/node_modules/@comis/gateway/package.json +45 -0
  1693. package/node_modules/@comis/infra/dist/index.d.ts +4 -0
  1694. package/node_modules/@comis/infra/dist/index.js +5 -0
  1695. package/node_modules/@comis/infra/dist/logging/index.d.ts +4 -0
  1696. package/node_modules/@comis/infra/dist/logging/index.js +4 -0
  1697. package/node_modules/@comis/infra/dist/logging/log-fields.d.ts +164 -0
  1698. package/node_modules/@comis/infra/dist/logging/log-fields.js +19 -0
  1699. package/node_modules/@comis/infra/dist/logging/logger.d.ts +39 -0
  1700. package/node_modules/@comis/infra/dist/logging/logger.js +152 -0
  1701. package/node_modules/@comis/infra/package.json +43 -0
  1702. package/node_modules/@comis/memory/dist/compaction.d.ts +85 -0
  1703. package/node_modules/@comis/memory/dist/compaction.js +181 -0
  1704. package/node_modules/@comis/memory/dist/compaction.test.d.ts +1 -0
  1705. package/node_modules/@comis/memory/dist/compaction.test.js +298 -0
  1706. package/node_modules/@comis/memory/dist/context-schema.d.ts +24 -0
  1707. package/node_modules/@comis/memory/dist/context-schema.js +161 -0
  1708. package/node_modules/@comis/memory/dist/context-schema.test.d.ts +1 -0
  1709. package/node_modules/@comis/memory/dist/context-schema.test.js +246 -0
  1710. package/node_modules/@comis/memory/dist/context-store.d.ts +139 -0
  1711. package/node_modules/@comis/memory/dist/context-store.js +450 -0
  1712. package/node_modules/@comis/memory/dist/context-store.test.d.ts +1 -0
  1713. package/node_modules/@comis/memory/dist/context-store.test.js +708 -0
  1714. package/node_modules/@comis/memory/dist/credential-mapping-schema.d.ts +25 -0
  1715. package/node_modules/@comis/memory/dist/credential-mapping-schema.js +40 -0
  1716. package/node_modules/@comis/memory/dist/credential-mapping-schema.test.d.ts +7 -0
  1717. package/node_modules/@comis/memory/dist/credential-mapping-schema.test.js +73 -0
  1718. package/node_modules/@comis/memory/dist/credential-mapping-store.d.ts +22 -0
  1719. package/node_modules/@comis/memory/dist/credential-mapping-store.js +98 -0
  1720. package/node_modules/@comis/memory/dist/credential-mapping-store.test.d.ts +8 -0
  1721. package/node_modules/@comis/memory/dist/credential-mapping-store.test.js +340 -0
  1722. package/node_modules/@comis/memory/dist/delivery-mirror-adapter.d.ts +21 -0
  1723. package/node_modules/@comis/memory/dist/delivery-mirror-adapter.js +112 -0
  1724. package/node_modules/@comis/memory/dist/delivery-mirror-adapter.test.d.ts +1 -0
  1725. package/node_modules/@comis/memory/dist/delivery-mirror-adapter.test.js +165 -0
  1726. package/node_modules/@comis/memory/dist/delivery-queue-adapter.d.ts +21 -0
  1727. package/node_modules/@comis/memory/dist/delivery-queue-adapter.js +197 -0
  1728. package/node_modules/@comis/memory/dist/delivery-queue-adapter.test.d.ts +1 -0
  1729. package/node_modules/@comis/memory/dist/delivery-queue-adapter.test.js +263 -0
  1730. package/node_modules/@comis/memory/dist/embedding-batch-indexer.d.ts +50 -0
  1731. package/node_modules/@comis/memory/dist/embedding-batch-indexer.js +104 -0
  1732. package/node_modules/@comis/memory/dist/embedding-batch-indexer.test.d.ts +1 -0
  1733. package/node_modules/@comis/memory/dist/embedding-batch-indexer.test.js +202 -0
  1734. package/node_modules/@comis/memory/dist/embedding-cache-lru.d.ts +36 -0
  1735. package/node_modules/@comis/memory/dist/embedding-cache-lru.js +100 -0
  1736. package/node_modules/@comis/memory/dist/embedding-cache-lru.test.d.ts +1 -0
  1737. package/node_modules/@comis/memory/dist/embedding-cache-lru.test.js +241 -0
  1738. package/node_modules/@comis/memory/dist/embedding-cache-sqlite.d.ts +36 -0
  1739. package/node_modules/@comis/memory/dist/embedding-cache-sqlite.js +247 -0
  1740. package/node_modules/@comis/memory/dist/embedding-cache-sqlite.test.d.ts +8 -0
  1741. package/node_modules/@comis/memory/dist/embedding-cache-sqlite.test.js +678 -0
  1742. package/node_modules/@comis/memory/dist/embedding-cache.d.ts +36 -0
  1743. package/node_modules/@comis/memory/dist/embedding-cache.js +94 -0
  1744. package/node_modules/@comis/memory/dist/embedding-cache.test.d.ts +1 -0
  1745. package/node_modules/@comis/memory/dist/embedding-cache.test.js +213 -0
  1746. package/node_modules/@comis/memory/dist/embedding-fingerprint.d.ts +35 -0
  1747. package/node_modules/@comis/memory/dist/embedding-fingerprint.js +75 -0
  1748. package/node_modules/@comis/memory/dist/embedding-fingerprint.test.d.ts +1 -0
  1749. package/node_modules/@comis/memory/dist/embedding-fingerprint.test.js +87 -0
  1750. package/node_modules/@comis/memory/dist/embedding-hash.d.ts +9 -0
  1751. package/node_modules/@comis/memory/dist/embedding-hash.js +14 -0
  1752. package/node_modules/@comis/memory/dist/embedding-hash.test.d.ts +1 -0
  1753. package/node_modules/@comis/memory/dist/embedding-hash.test.js +31 -0
  1754. package/node_modules/@comis/memory/dist/embedding-integration.test.d.ts +8 -0
  1755. package/node_modules/@comis/memory/dist/embedding-integration.test.js +232 -0
  1756. package/node_modules/@comis/memory/dist/embedding-provider-factory.d.ts +40 -0
  1757. package/node_modules/@comis/memory/dist/embedding-provider-factory.js +59 -0
  1758. package/node_modules/@comis/memory/dist/embedding-provider-factory.test.d.ts +1 -0
  1759. package/node_modules/@comis/memory/dist/embedding-provider-factory.test.js +176 -0
  1760. package/node_modules/@comis/memory/dist/embedding-provider-local.d.ts +32 -0
  1761. package/node_modules/@comis/memory/dist/embedding-provider-local.js +83 -0
  1762. package/node_modules/@comis/memory/dist/embedding-provider-local.test.d.ts +8 -0
  1763. package/node_modules/@comis/memory/dist/embedding-provider-local.test.js +76 -0
  1764. package/node_modules/@comis/memory/dist/embedding-provider-openai.d.ts +29 -0
  1765. package/node_modules/@comis/memory/dist/embedding-provider-openai.js +60 -0
  1766. package/node_modules/@comis/memory/dist/embedding-provider-openai.test.d.ts +8 -0
  1767. package/node_modules/@comis/memory/dist/embedding-provider-openai.test.js +100 -0
  1768. package/node_modules/@comis/memory/dist/embedding-queue.d.ts +48 -0
  1769. package/node_modules/@comis/memory/dist/embedding-queue.js +66 -0
  1770. package/node_modules/@comis/memory/dist/embedding-queue.test.d.ts +1 -0
  1771. package/node_modules/@comis/memory/dist/embedding-queue.test.js +236 -0
  1772. package/node_modules/@comis/memory/dist/hybrid-search.d.ts +104 -0
  1773. package/node_modules/@comis/memory/dist/hybrid-search.js +255 -0
  1774. package/node_modules/@comis/memory/dist/hybrid-search.test.d.ts +1 -0
  1775. package/node_modules/@comis/memory/dist/hybrid-search.test.js +476 -0
  1776. package/node_modules/@comis/memory/dist/identity-link-store.d.ts +45 -0
  1777. package/node_modules/@comis/memory/dist/identity-link-store.js +63 -0
  1778. package/node_modules/@comis/memory/dist/identity-link-store.test.d.ts +1 -0
  1779. package/node_modules/@comis/memory/dist/identity-link-store.test.js +88 -0
  1780. package/node_modules/@comis/memory/dist/index.d.ts +36 -0
  1781. package/node_modules/@comis/memory/dist/index.js +44 -0
  1782. package/node_modules/@comis/memory/dist/memory-api.d.ts +85 -0
  1783. package/node_modules/@comis/memory/dist/memory-api.js +225 -0
  1784. package/node_modules/@comis/memory/dist/memory-api.test.d.ts +1 -0
  1785. package/node_modules/@comis/memory/dist/memory-api.test.js +495 -0
  1786. package/node_modules/@comis/memory/dist/memory-concurrency.test.d.ts +20 -0
  1787. package/node_modules/@comis/memory/dist/memory-concurrency.test.js +222 -0
  1788. package/node_modules/@comis/memory/dist/named-graph-schema.d.ts +23 -0
  1789. package/node_modules/@comis/memory/dist/named-graph-schema.js +42 -0
  1790. package/node_modules/@comis/memory/dist/named-graph-store.d.ts +65 -0
  1791. package/node_modules/@comis/memory/dist/named-graph-store.js +111 -0
  1792. package/node_modules/@comis/memory/dist/named-graph-store.test.d.ts +1 -0
  1793. package/node_modules/@comis/memory/dist/named-graph-store.test.js +227 -0
  1794. package/node_modules/@comis/memory/dist/observability-store.d.ts +184 -0
  1795. package/node_modules/@comis/memory/dist/observability-store.js +387 -0
  1796. package/node_modules/@comis/memory/dist/observability-store.test.d.ts +1 -0
  1797. package/node_modules/@comis/memory/dist/observability-store.test.js +704 -0
  1798. package/node_modules/@comis/memory/dist/row-mapper.d.ts +70 -0
  1799. package/node_modules/@comis/memory/dist/row-mapper.js +159 -0
  1800. package/node_modules/@comis/memory/dist/row-mapper.test.d.ts +1 -0
  1801. package/node_modules/@comis/memory/dist/row-mapper.test.js +409 -0
  1802. package/node_modules/@comis/memory/dist/schema.d.ts +31 -0
  1803. package/node_modules/@comis/memory/dist/schema.js +358 -0
  1804. package/node_modules/@comis/memory/dist/schema.test.d.ts +1 -0
  1805. package/node_modules/@comis/memory/dist/schema.test.js +240 -0
  1806. package/node_modules/@comis/memory/dist/secret-store-schema.d.ts +43 -0
  1807. package/node_modules/@comis/memory/dist/secret-store-schema.js +92 -0
  1808. package/node_modules/@comis/memory/dist/secret-store-schema.test.d.ts +7 -0
  1809. package/node_modules/@comis/memory/dist/secret-store-schema.test.js +90 -0
  1810. package/node_modules/@comis/memory/dist/session-store.d.ts +93 -0
  1811. package/node_modules/@comis/memory/dist/session-store.js +131 -0
  1812. package/node_modules/@comis/memory/dist/session-store.test.d.ts +1 -0
  1813. package/node_modules/@comis/memory/dist/session-store.test.js +262 -0
  1814. package/node_modules/@comis/memory/dist/setup-secrets.d.ts +35 -0
  1815. package/node_modules/@comis/memory/dist/setup-secrets.js +45 -0
  1816. package/node_modules/@comis/memory/dist/setup-secrets.test.d.ts +1 -0
  1817. package/node_modules/@comis/memory/dist/setup-secrets.test.js +140 -0
  1818. package/node_modules/@comis/memory/dist/sqlite-adapter-base.d.ts +39 -0
  1819. package/node_modules/@comis/memory/dist/sqlite-adapter-base.js +72 -0
  1820. package/node_modules/@comis/memory/dist/sqlite-memory-adapter.d.ts +52 -0
  1821. package/node_modules/@comis/memory/dist/sqlite-memory-adapter.js +378 -0
  1822. package/node_modules/@comis/memory/dist/sqlite-memory-adapter.test.d.ts +1 -0
  1823. package/node_modules/@comis/memory/dist/sqlite-memory-adapter.test.js +888 -0
  1824. package/node_modules/@comis/memory/dist/sqlite-secret-store.d.ts +32 -0
  1825. package/node_modules/@comis/memory/dist/sqlite-secret-store.js +153 -0
  1826. package/node_modules/@comis/memory/dist/sqlite-secret-store.test.d.ts +8 -0
  1827. package/node_modules/@comis/memory/dist/sqlite-secret-store.test.js +245 -0
  1828. package/node_modules/@comis/memory/dist/types.d.ts +192 -0
  1829. package/node_modules/@comis/memory/dist/types.js +8 -0
  1830. package/node_modules/@comis/memory/package.json +45 -0
  1831. package/node_modules/@comis/scheduler/dist/config/scheduler-config.d.ts +9 -0
  1832. package/node_modules/@comis/scheduler/dist/config/scheduler-config.js +9 -0
  1833. package/node_modules/@comis/scheduler/dist/cron/cron-expression.d.ts +12 -0
  1834. package/node_modules/@comis/scheduler/dist/cron/cron-expression.js +57 -0
  1835. package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.d.ts +47 -0
  1836. package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.js +214 -0
  1837. package/node_modules/@comis/scheduler/dist/cron/cron-store.d.ts +33 -0
  1838. package/node_modules/@comis/scheduler/dist/cron/cron-store.js +155 -0
  1839. package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +161 -0
  1840. package/node_modules/@comis/scheduler/dist/cron/cron-types.js +113 -0
  1841. package/node_modules/@comis/scheduler/dist/cron/index.d.ts +6 -0
  1842. package/node_modules/@comis/scheduler/dist/cron/index.js +8 -0
  1843. package/node_modules/@comis/scheduler/dist/execution/execution-lock.d.ts +32 -0
  1844. package/node_modules/@comis/scheduler/dist/execution/execution-lock.js +86 -0
  1845. package/node_modules/@comis/scheduler/dist/execution/execution-tracker.d.ts +68 -0
  1846. package/node_modules/@comis/scheduler/dist/execution/execution-tracker.js +124 -0
  1847. package/node_modules/@comis/scheduler/dist/execution/index.d.ts +2 -0
  1848. package/node_modules/@comis/scheduler/dist/execution/index.js +4 -0
  1849. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.d.ts +117 -0
  1850. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +226 -0
  1851. package/node_modules/@comis/scheduler/dist/heartbeat/cron-delivery-policy.d.ts +28 -0
  1852. package/node_modules/@comis/scheduler/dist/heartbeat/cron-delivery-policy.js +33 -0
  1853. package/node_modules/@comis/scheduler/dist/heartbeat/cron-event-prompt.d.ts +21 -0
  1854. package/node_modules/@comis/scheduler/dist/heartbeat/cron-event-prompt.js +25 -0
  1855. package/node_modules/@comis/scheduler/dist/heartbeat/delivery-bridge.d.ts +61 -0
  1856. package/node_modules/@comis/scheduler/dist/heartbeat/delivery-bridge.js +110 -0
  1857. package/node_modules/@comis/scheduler/dist/heartbeat/duplicate-detector.d.ts +31 -0
  1858. package/node_modules/@comis/scheduler/dist/heartbeat/duplicate-detector.js +56 -0
  1859. package/node_modules/@comis/scheduler/dist/heartbeat/file-gate.d.ts +22 -0
  1860. package/node_modules/@comis/scheduler/dist/heartbeat/file-gate.js +29 -0
  1861. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-config.d.ts +27 -0
  1862. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-config.js +19 -0
  1863. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-runner.d.ts +75 -0
  1864. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-runner.js +136 -0
  1865. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-source.d.ts +34 -0
  1866. package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-source.js +9 -0
  1867. package/node_modules/@comis/scheduler/dist/heartbeat/index.d.ts +32 -0
  1868. package/node_modules/@comis/scheduler/dist/heartbeat/index.js +34 -0
  1869. package/node_modules/@comis/scheduler/dist/heartbeat/per-agent-heartbeat-runner.d.ts +52 -0
  1870. package/node_modules/@comis/scheduler/dist/heartbeat/per-agent-heartbeat-runner.js +227 -0
  1871. package/node_modules/@comis/scheduler/dist/heartbeat/prompt-builder.d.ts +43 -0
  1872. package/node_modules/@comis/scheduler/dist/heartbeat/prompt-builder.js +92 -0
  1873. package/node_modules/@comis/scheduler/dist/heartbeat/quiet-hours.d.ts +41 -0
  1874. package/node_modules/@comis/scheduler/dist/heartbeat/quiet-hours.js +75 -0
  1875. package/node_modules/@comis/scheduler/dist/heartbeat/relevance-filter.d.ts +49 -0
  1876. package/node_modules/@comis/scheduler/dist/heartbeat/relevance-filter.js +55 -0
  1877. package/node_modules/@comis/scheduler/dist/heartbeat/resilience-tracker.d.ts +53 -0
  1878. package/node_modules/@comis/scheduler/dist/heartbeat/resilience-tracker.js +81 -0
  1879. package/node_modules/@comis/scheduler/dist/heartbeat/response-cache.d.ts +42 -0
  1880. package/node_modules/@comis/scheduler/dist/heartbeat/response-cache.js +61 -0
  1881. package/node_modules/@comis/scheduler/dist/heartbeat/response-processor.d.ts +74 -0
  1882. package/node_modules/@comis/scheduler/dist/heartbeat/response-processor.js +120 -0
  1883. package/node_modules/@comis/scheduler/dist/heartbeat/wake-coalescer.d.ts +21 -0
  1884. package/node_modules/@comis/scheduler/dist/heartbeat/wake-coalescer.js +135 -0
  1885. package/node_modules/@comis/scheduler/dist/heartbeat/wake-types.d.ts +44 -0
  1886. package/node_modules/@comis/scheduler/dist/heartbeat/wake-types.js +22 -0
  1887. package/node_modules/@comis/scheduler/dist/index.d.ts +43 -0
  1888. package/node_modules/@comis/scheduler/dist/index.js +41 -0
  1889. package/node_modules/@comis/scheduler/dist/shared-types.d.ts +12 -0
  1890. package/node_modules/@comis/scheduler/dist/shared-types.js +1 -0
  1891. package/node_modules/@comis/scheduler/dist/system-events/index.d.ts +4 -0
  1892. package/node_modules/@comis/scheduler/dist/system-events/index.js +6 -0
  1893. package/node_modules/@comis/scheduler/dist/system-events/system-event-queue.d.ts +33 -0
  1894. package/node_modules/@comis/scheduler/dist/system-events/system-event-queue.js +63 -0
  1895. package/node_modules/@comis/scheduler/dist/system-events/system-event-types.d.ts +14 -0
  1896. package/node_modules/@comis/scheduler/dist/system-events/system-event-types.js +14 -0
  1897. package/node_modules/@comis/scheduler/dist/tasks/index.d.ts +8 -0
  1898. package/node_modules/@comis/scheduler/dist/tasks/index.js +6 -0
  1899. package/node_modules/@comis/scheduler/dist/tasks/task-extractor.d.ts +60 -0
  1900. package/node_modules/@comis/scheduler/dist/tasks/task-extractor.js +90 -0
  1901. package/node_modules/@comis/scheduler/dist/tasks/task-priority.d.ts +38 -0
  1902. package/node_modules/@comis/scheduler/dist/tasks/task-priority.js +65 -0
  1903. package/node_modules/@comis/scheduler/dist/tasks/task-store.d.ts +30 -0
  1904. package/node_modules/@comis/scheduler/dist/tasks/task-store.js +73 -0
  1905. package/node_modules/@comis/scheduler/dist/tasks/task-types.d.ts +92 -0
  1906. package/node_modules/@comis/scheduler/dist/tasks/task-types.js +50 -0
  1907. package/node_modules/@comis/scheduler/package.json +43 -0
  1908. package/node_modules/@comis/shared/dist/abort.d.ts +16 -0
  1909. package/node_modules/@comis/shared/dist/abort.js +24 -0
  1910. package/node_modules/@comis/shared/dist/abort.test.d.ts +1 -0
  1911. package/node_modules/@comis/shared/dist/abort.test.js +71 -0
  1912. package/node_modules/@comis/shared/dist/index.d.ts +7 -0
  1913. package/node_modules/@comis/shared/dist/index.js +7 -0
  1914. package/node_modules/@comis/shared/dist/result.d.ts +38 -0
  1915. package/node_modules/@comis/shared/dist/result.js +52 -0
  1916. package/node_modules/@comis/shared/dist/result.test.d.ts +1 -0
  1917. package/node_modules/@comis/shared/dist/result.test.js +178 -0
  1918. package/node_modules/@comis/shared/dist/suppress-error.d.ts +14 -0
  1919. package/node_modules/@comis/shared/dist/suppress-error.js +25 -0
  1920. package/node_modules/@comis/shared/dist/suppress-error.test.d.ts +1 -0
  1921. package/node_modules/@comis/shared/dist/suppress-error.test.js +50 -0
  1922. package/node_modules/@comis/shared/dist/timeout.d.ts +31 -0
  1923. package/node_modules/@comis/shared/dist/timeout.js +50 -0
  1924. package/node_modules/@comis/shared/dist/timeout.test.d.ts +1 -0
  1925. package/node_modules/@comis/shared/dist/timeout.test.js +75 -0
  1926. package/node_modules/@comis/shared/dist/ttl-cache.d.ts +41 -0
  1927. package/node_modules/@comis/shared/dist/ttl-cache.js +73 -0
  1928. package/node_modules/@comis/shared/dist/ttl-cache.test.d.ts +1 -0
  1929. package/node_modules/@comis/shared/dist/ttl-cache.test.js +81 -0
  1930. package/node_modules/@comis/shared/package.json +43 -0
  1931. package/node_modules/@comis/skills/dist/audit/skill-audit.d.ts +36 -0
  1932. package/node_modules/@comis/skills/dist/audit/skill-audit.js +72 -0
  1933. package/node_modules/@comis/skills/dist/bridge/credential-injector.d.ts +90 -0
  1934. package/node_modules/@comis/skills/dist/bridge/credential-injector.js +235 -0
  1935. package/node_modules/@comis/skills/dist/bridge/json-truncate.d.ts +33 -0
  1936. package/node_modules/@comis/skills/dist/bridge/json-truncate.js +185 -0
  1937. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +81 -0
  1938. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +260 -0
  1939. package/node_modules/@comis/skills/dist/bridge/tool-audit.d.ts +25 -0
  1940. package/node_modules/@comis/skills/dist/bridge/tool-audit.js +78 -0
  1941. package/node_modules/@comis/skills/dist/bridge/tool-bridge.d.ts +91 -0
  1942. package/node_modules/@comis/skills/dist/bridge/tool-bridge.js +136 -0
  1943. package/node_modules/@comis/skills/dist/bridge/tool-definition-adapter.d.ts +33 -0
  1944. package/node_modules/@comis/skills/dist/bridge/tool-definition-adapter.js +56 -0
  1945. package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.d.ts +45 -0
  1946. package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.js +101 -0
  1947. package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.d.ts +13 -0
  1948. package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +350 -0
  1949. package/node_modules/@comis/skills/dist/bridge/tool-output-schemas.d.ts +17 -0
  1950. package/node_modules/@comis/skills/dist/bridge/tool-output-schemas.js +125 -0
  1951. package/node_modules/@comis/skills/dist/bridge/tool-parallelism-metadata.d.ts +14 -0
  1952. package/node_modules/@comis/skills/dist/bridge/tool-parallelism-metadata.js +92 -0
  1953. package/node_modules/@comis/skills/dist/bridge/tool-result-caps.d.ts +14 -0
  1954. package/node_modules/@comis/skills/dist/bridge/tool-result-caps.js +36 -0
  1955. package/node_modules/@comis/skills/dist/bridge/tool-search-hints.d.ts +15 -0
  1956. package/node_modules/@comis/skills/dist/bridge/tool-search-hints.js +68 -0
  1957. package/node_modules/@comis/skills/dist/bridge/tool-validators.d.ts +11 -0
  1958. package/node_modules/@comis/skills/dist/bridge/tool-validators.js +105 -0
  1959. package/node_modules/@comis/skills/dist/browser/browser-service.d.ts +105 -0
  1960. package/node_modules/@comis/skills/dist/browser/browser-service.js +192 -0
  1961. package/node_modules/@comis/skills/dist/browser/cdp.d.ts +60 -0
  1962. package/node_modules/@comis/skills/dist/browser/cdp.js +91 -0
  1963. package/node_modules/@comis/skills/dist/browser/chrome-detection.d.ts +45 -0
  1964. package/node_modules/@comis/skills/dist/browser/chrome-detection.js +256 -0
  1965. package/node_modules/@comis/skills/dist/browser/config.d.ts +45 -0
  1966. package/node_modules/@comis/skills/dist/browser/config.js +49 -0
  1967. package/node_modules/@comis/skills/dist/browser/constants.d.ts +30 -0
  1968. package/node_modules/@comis/skills/dist/browser/constants.js +31 -0
  1969. package/node_modules/@comis/skills/dist/browser/downloads.d.ts +63 -0
  1970. package/node_modules/@comis/skills/dist/browser/downloads.js +135 -0
  1971. package/node_modules/@comis/skills/dist/browser/index.d.ts +24 -0
  1972. package/node_modules/@comis/skills/dist/browser/index.js +15 -0
  1973. package/node_modules/@comis/skills/dist/browser/playwright-actions.d.ts +78 -0
  1974. package/node_modules/@comis/skills/dist/browser/playwright-actions.js +232 -0
  1975. package/node_modules/@comis/skills/dist/browser/playwright-session.d.ts +120 -0
  1976. package/node_modules/@comis/skills/dist/browser/playwright-session.js +341 -0
  1977. package/node_modules/@comis/skills/dist/browser/playwright-snapshots.d.ts +61 -0
  1978. package/node_modules/@comis/skills/dist/browser/playwright-snapshots.js +287 -0
  1979. package/node_modules/@comis/skills/dist/browser/profile-decoration.d.ts +30 -0
  1980. package/node_modules/@comis/skills/dist/browser/profile-decoration.js +63 -0
  1981. package/node_modules/@comis/skills/dist/browser/profiles-service.d.ts +51 -0
  1982. package/node_modules/@comis/skills/dist/browser/profiles-service.js +137 -0
  1983. package/node_modules/@comis/skills/dist/browser/profiles.d.ts +42 -0
  1984. package/node_modules/@comis/skills/dist/browser/profiles.js +70 -0
  1985. package/node_modules/@comis/skills/dist/browser/screenshot-normalizer.d.ts +63 -0
  1986. package/node_modules/@comis/skills/dist/browser/screenshot-normalizer.js +124 -0
  1987. package/node_modules/@comis/skills/dist/browser/screenshots.d.ts +51 -0
  1988. package/node_modules/@comis/skills/dist/browser/screenshots.js +65 -0
  1989. package/node_modules/@comis/skills/dist/browser/smart-waits.d.ts +44 -0
  1990. package/node_modules/@comis/skills/dist/browser/smart-waits.js +74 -0
  1991. package/node_modules/@comis/skills/dist/browser/viewport.d.ts +45 -0
  1992. package/node_modules/@comis/skills/dist/browser/viewport.js +73 -0
  1993. package/node_modules/@comis/skills/dist/builtin/exec-security.d.ts +204 -0
  1994. package/node_modules/@comis/skills/dist/builtin/exec-security.js +988 -0
  1995. package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +83 -0
  1996. package/node_modules/@comis/skills/dist/builtin/exec-tool.js +886 -0
  1997. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-parser.d.ts +49 -0
  1998. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-parser.js +232 -0
  1999. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-similarity.d.ts +25 -0
  2000. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-similarity.js +94 -0
  2001. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.d.ts +16 -0
  2002. package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.js +418 -0
  2003. package/node_modules/@comis/skills/dist/builtin/file/file-state-tracker.d.ts +102 -0
  2004. package/node_modules/@comis/skills/dist/builtin/file/file-state-tracker.js +138 -0
  2005. package/node_modules/@comis/skills/dist/builtin/file/file-tools.d.ts +31 -0
  2006. package/node_modules/@comis/skills/dist/builtin/file/file-tools.js +67 -0
  2007. package/node_modules/@comis/skills/dist/builtin/file/find-sort-wrapper.d.ts +22 -0
  2008. package/node_modules/@comis/skills/dist/builtin/file/find-sort-wrapper.js +95 -0
  2009. package/node_modules/@comis/skills/dist/builtin/file/grep-output-mode-wrapper.d.ts +24 -0
  2010. package/node_modules/@comis/skills/dist/builtin/file/grep-output-mode-wrapper.js +167 -0
  2011. package/node_modules/@comis/skills/dist/builtin/file/path-suggest.d.ts +64 -0
  2012. package/node_modules/@comis/skills/dist/builtin/file/path-suggest.js +208 -0
  2013. package/node_modules/@comis/skills/dist/builtin/file/safe-path-wrapper.d.ts +26 -0
  2014. package/node_modules/@comis/skills/dist/builtin/file/safe-path-wrapper.js +23 -0
  2015. package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.d.ts +40 -0
  2016. package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.js +308 -0
  2017. package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.d.ts +36 -0
  2018. package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.js +313 -0
  2019. package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.d.ts +46 -0
  2020. package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.js +424 -0
  2021. package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.d.ts +34 -0
  2022. package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.js +166 -0
  2023. package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.d.ts +32 -0
  2024. package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.js +195 -0
  2025. package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.d.ts +50 -0
  2026. package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.js +427 -0
  2027. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/edit-diff.d.ts +109 -0
  2028. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/edit-diff.js +575 -0
  2029. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-encoding.d.ts +63 -0
  2030. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-encoding.js +130 -0
  2031. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-mutation-queue.d.ts +24 -0
  2032. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-mutation-queue.js +58 -0
  2033. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/git-diff.d.ts +20 -0
  2034. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/git-diff.js +34 -0
  2035. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-edit-ops.d.ts +47 -0
  2036. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-edit-ops.js +89 -0
  2037. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-utils.d.ts +32 -0
  2038. package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-utils.js +112 -0
  2039. package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.d.ts +36 -0
  2040. package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.js +283 -0
  2041. package/node_modules/@comis/skills/dist/builtin/output-cleaner.d.ts +33 -0
  2042. package/node_modules/@comis/skills/dist/builtin/output-cleaner.js +107 -0
  2043. package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.d.ts +70 -0
  2044. package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.js +95 -0
  2045. package/node_modules/@comis/skills/dist/builtin/platform/agents-list-tool.d.ts +19 -0
  2046. package/node_modules/@comis/skills/dist/builtin/platform/agents-list-tool.js +39 -0
  2047. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +69 -0
  2048. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +196 -0
  2049. package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.d.ts +50 -0
  2050. package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.js +157 -0
  2051. package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.d.ts +87 -0
  2052. package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.js +123 -0
  2053. package/node_modules/@comis/skills/dist/builtin/platform/browser-tool.d.ts +43 -0
  2054. package/node_modules/@comis/skills/dist/builtin/platform/browser-tool.js +98 -0
  2055. package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.d.ts +36 -0
  2056. package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.js +140 -0
  2057. package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.d.ts +48 -0
  2058. package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.js +172 -0
  2059. package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.d.ts +24 -0
  2060. package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.js +48 -0
  2061. package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.d.ts +22 -0
  2062. package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.js +47 -0
  2063. package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.d.ts +26 -0
  2064. package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.js +62 -0
  2065. package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.d.ts +26 -0
  2066. package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.js +52 -0
  2067. package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.d.ts +23 -0
  2068. package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.js +53 -0
  2069. package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.d.ts +29 -0
  2070. package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.js +90 -0
  2071. package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.d.ts +23 -0
  2072. package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.js +53 -0
  2073. package/node_modules/@comis/skills/dist/builtin/platform/fts5-sanitizer.d.ts +27 -0
  2074. package/node_modules/@comis/skills/dist/builtin/platform/fts5-sanitizer.js +78 -0
  2075. package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.d.ts +55 -0
  2076. package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.js +255 -0
  2077. package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.d.ts +36 -0
  2078. package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.js +139 -0
  2079. package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.d.ts +26 -0
  2080. package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.js +41 -0
  2081. package/node_modules/@comis/skills/dist/builtin/platform/image-tool.d.ts +27 -0
  2082. package/node_modules/@comis/skills/dist/builtin/platform/image-tool.js +73 -0
  2083. package/node_modules/@comis/skills/dist/builtin/platform/index.d.ts +60 -0
  2084. package/node_modules/@comis/skills/dist/builtin/platform/index.js +74 -0
  2085. package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.d.ts +23 -0
  2086. package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.js +109 -0
  2087. package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.d.ts +27 -0
  2088. package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.js +55 -0
  2089. package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.d.ts +41 -0
  2090. package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.js +183 -0
  2091. package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.d.ts +23 -0
  2092. package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.js +44 -0
  2093. package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.d.ts +22 -0
  2094. package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.js +66 -0
  2095. package/node_modules/@comis/skills/dist/builtin/platform/message-tool.d.ts +49 -0
  2096. package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +190 -0
  2097. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +75 -0
  2098. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.js +83 -0
  2099. package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.d.ts +32 -0
  2100. package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +76 -0
  2101. package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.d.ts +28 -0
  2102. package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.js +54 -0
  2103. package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.d.ts +25 -0
  2104. package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.js +179 -0
  2105. package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.d.ts +62 -0
  2106. package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.js +460 -0
  2107. package/node_modules/@comis/skills/dist/builtin/platform/platform-action-tool.d.ts +60 -0
  2108. package/node_modules/@comis/skills/dist/builtin/platform/platform-action-tool.js +70 -0
  2109. package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.d.ts +32 -0
  2110. package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.js +76 -0
  2111. package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.d.ts +21 -0
  2112. package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.js +43 -0
  2113. package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.d.ts +23 -0
  2114. package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.js +51 -0
  2115. package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.d.ts +22 -0
  2116. package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.js +51 -0
  2117. package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.d.ts +33 -0
  2118. package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.js +82 -0
  2119. package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.d.ts +29 -0
  2120. package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.js +58 -0
  2121. package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.d.ts +38 -0
  2122. package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.js +84 -0
  2123. package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.d.ts +38 -0
  2124. package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.js +107 -0
  2125. package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.d.ts +23 -0
  2126. package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.js +77 -0
  2127. package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.d.ts +26 -0
  2128. package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.js +100 -0
  2129. package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.d.ts +21 -0
  2130. package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.js +72 -0
  2131. package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.d.ts +33 -0
  2132. package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.js +87 -0
  2133. package/node_modules/@comis/skills/dist/builtin/platform/tool-helpers.d.ts +163 -0
  2134. package/node_modules/@comis/skills/dist/builtin/platform/tool-helpers.js +237 -0
  2135. package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.d.ts +23 -0
  2136. package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.js +53 -0
  2137. package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.d.ts +25 -0
  2138. package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.js +61 -0
  2139. package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.d.ts +34 -0
  2140. package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.js +106 -0
  2141. package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.d.ts +44 -0
  2142. package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.js +230 -0
  2143. package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.d.ts +32 -0
  2144. package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.js +130 -0
  2145. package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.d.ts +24 -0
  2146. package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.js +79 -0
  2147. package/node_modules/@comis/skills/dist/builtin/process-registry.d.ts +74 -0
  2148. package/node_modules/@comis/skills/dist/builtin/process-registry.js +213 -0
  2149. package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +35 -0
  2150. package/node_modules/@comis/skills/dist/builtin/process-tool.js +104 -0
  2151. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.d.ts +19 -0
  2152. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +181 -0
  2153. package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.d.ts +20 -0
  2154. package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.js +41 -0
  2155. package/node_modules/@comis/skills/dist/builtin/sandbox/sandbox-exec-provider.d.ts +15 -0
  2156. package/node_modules/@comis/skills/dist/builtin/sandbox/sandbox-exec-provider.js +201 -0
  2157. package/node_modules/@comis/skills/dist/builtin/sandbox/types.d.ts +46 -0
  2158. package/node_modules/@comis/skills/dist/builtin/sandbox/types.js +12 -0
  2159. package/node_modules/@comis/skills/dist/builtin/search-provider.d.ts +81 -0
  2160. package/node_modules/@comis/skills/dist/builtin/search-provider.js +45 -0
  2161. package/node_modules/@comis/skills/dist/builtin/task-plan-tool.d.ts +25 -0
  2162. package/node_modules/@comis/skills/dist/builtin/task-plan-tool.js +67 -0
  2163. package/node_modules/@comis/skills/dist/builtin/tool-provisioner.d.ts +29 -0
  2164. package/node_modules/@comis/skills/dist/builtin/tool-provisioner.js +227 -0
  2165. package/node_modules/@comis/skills/dist/builtin/tool-source-profiles.d.ts +48 -0
  2166. package/node_modules/@comis/skills/dist/builtin/tool-source-profiles.js +103 -0
  2167. package/node_modules/@comis/skills/dist/builtin/truncate.d.ts +59 -0
  2168. package/node_modules/@comis/skills/dist/builtin/truncate.js +125 -0
  2169. package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.d.ts +77 -0
  2170. package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.js +528 -0
  2171. package/node_modules/@comis/skills/dist/builtin/web-fetch-utils.d.ts +67 -0
  2172. package/node_modules/@comis/skills/dist/builtin/web-fetch-utils.js +268 -0
  2173. package/node_modules/@comis/skills/dist/builtin/web-fetch-visibility.d.ts +35 -0
  2174. package/node_modules/@comis/skills/dist/builtin/web-fetch-visibility.js +190 -0
  2175. package/node_modules/@comis/skills/dist/builtin/web-search-brave.d.ts +35 -0
  2176. package/node_modules/@comis/skills/dist/builtin/web-search-brave.js +147 -0
  2177. package/node_modules/@comis/skills/dist/builtin/web-search-duckduckgo.d.ts +43 -0
  2178. package/node_modules/@comis/skills/dist/builtin/web-search-duckduckgo.js +192 -0
  2179. package/node_modules/@comis/skills/dist/builtin/web-search-exa.d.ts +32 -0
  2180. package/node_modules/@comis/skills/dist/builtin/web-search-exa.js +84 -0
  2181. package/node_modules/@comis/skills/dist/builtin/web-search-grok.d.ts +50 -0
  2182. package/node_modules/@comis/skills/dist/builtin/web-search-grok.js +87 -0
  2183. package/node_modules/@comis/skills/dist/builtin/web-search-jina.d.ts +29 -0
  2184. package/node_modules/@comis/skills/dist/builtin/web-search-jina.js +94 -0
  2185. package/node_modules/@comis/skills/dist/builtin/web-search-perplexity.d.ts +45 -0
  2186. package/node_modules/@comis/skills/dist/builtin/web-search-perplexity.js +115 -0
  2187. package/node_modules/@comis/skills/dist/builtin/web-search-searxng.d.ts +31 -0
  2188. package/node_modules/@comis/skills/dist/builtin/web-search-searxng.js +100 -0
  2189. package/node_modules/@comis/skills/dist/builtin/web-search-tavily.d.ts +31 -0
  2190. package/node_modules/@comis/skills/dist/builtin/web-search-tavily.js +87 -0
  2191. package/node_modules/@comis/skills/dist/builtin/web-search-tool.d.ts +174 -0
  2192. package/node_modules/@comis/skills/dist/builtin/web-search-tool.js +666 -0
  2193. package/node_modules/@comis/skills/dist/builtin/web-shared.d.ts +60 -0
  2194. package/node_modules/@comis/skills/dist/builtin/web-shared.js +127 -0
  2195. package/node_modules/@comis/skills/dist/index.d.ts +62 -0
  2196. package/node_modules/@comis/skills/dist/index.js +113 -0
  2197. package/node_modules/@comis/skills/dist/integrations/deepgram-stt-adapter.d.ts +27 -0
  2198. package/node_modules/@comis/skills/dist/integrations/deepgram-stt-adapter.js +81 -0
  2199. package/node_modules/@comis/skills/dist/integrations/document/binary-detector.d.ts +28 -0
  2200. package/node_modules/@comis/skills/dist/integrations/document/binary-detector.js +59 -0
  2201. package/node_modules/@comis/skills/dist/integrations/document/composite-extractor.d.ts +22 -0
  2202. package/node_modules/@comis/skills/dist/integrations/document/composite-extractor.js +34 -0
  2203. package/node_modules/@comis/skills/dist/integrations/document/file-classifier.d.ts +25 -0
  2204. package/node_modules/@comis/skills/dist/integrations/document/file-classifier.js +60 -0
  2205. package/node_modules/@comis/skills/dist/integrations/document/file-extractor.d.ts +41 -0
  2206. package/node_modules/@comis/skills/dist/integrations/document/file-extractor.js +148 -0
  2207. package/node_modules/@comis/skills/dist/integrations/document/pdf-extractor.d.ts +50 -0
  2208. package/node_modules/@comis/skills/dist/integrations/document/pdf-extractor.js +214 -0
  2209. package/node_modules/@comis/skills/dist/integrations/document/pdf-page-renderer.d.ts +41 -0
  2210. package/node_modules/@comis/skills/dist/integrations/document/pdf-page-renderer.js +78 -0
  2211. package/node_modules/@comis/skills/dist/integrations/document/text-decoder.d.ts +21 -0
  2212. package/node_modules/@comis/skills/dist/integrations/document/text-decoder.js +53 -0
  2213. package/node_modules/@comis/skills/dist/integrations/document/xml-block.d.ts +59 -0
  2214. package/node_modules/@comis/skills/dist/integrations/document/xml-block.js +80 -0
  2215. package/node_modules/@comis/skills/dist/integrations/edge-tts-adapter.d.ts +15 -0
  2216. package/node_modules/@comis/skills/dist/integrations/edge-tts-adapter.js +42 -0
  2217. package/node_modules/@comis/skills/dist/integrations/elevenlabs-tts-adapter.d.ts +19 -0
  2218. package/node_modules/@comis/skills/dist/integrations/elevenlabs-tts-adapter.js +65 -0
  2219. package/node_modules/@comis/skills/dist/integrations/groq-stt-adapter.d.ts +23 -0
  2220. package/node_modules/@comis/skills/dist/integrations/groq-stt-adapter.js +76 -0
  2221. package/node_modules/@comis/skills/dist/integrations/image-gen/fal-adapter.d.ts +11 -0
  2222. package/node_modules/@comis/skills/dist/integrations/image-gen/fal-adapter.js +39 -0
  2223. package/node_modules/@comis/skills/dist/integrations/image-gen/image-gen-factory.d.ts +13 -0
  2224. package/node_modules/@comis/skills/dist/integrations/image-gen/image-gen-factory.js +31 -0
  2225. package/node_modules/@comis/skills/dist/integrations/image-gen/index.d.ts +5 -0
  2226. package/node_modules/@comis/skills/dist/integrations/image-gen/index.js +5 -0
  2227. package/node_modules/@comis/skills/dist/integrations/image-gen/openai-adapter.d.ts +11 -0
  2228. package/node_modules/@comis/skills/dist/integrations/image-gen/openai-adapter.js +32 -0
  2229. package/node_modules/@comis/skills/dist/integrations/image-gen/rate-limiter.d.ts +22 -0
  2230. package/node_modules/@comis/skills/dist/integrations/image-gen/rate-limiter.js +32 -0
  2231. package/node_modules/@comis/skills/dist/integrations/image-sanitizer.d.ts +39 -0
  2232. package/node_modules/@comis/skills/dist/integrations/image-sanitizer.js +121 -0
  2233. package/node_modules/@comis/skills/dist/integrations/link/link-detector.d.ts +26 -0
  2234. package/node_modules/@comis/skills/dist/integrations/link/link-detector.js +114 -0
  2235. package/node_modules/@comis/skills/dist/integrations/link/link-fetcher.d.ts +43 -0
  2236. package/node_modules/@comis/skills/dist/integrations/link/link-fetcher.js +74 -0
  2237. package/node_modules/@comis/skills/dist/integrations/link/link-formatter.d.ts +39 -0
  2238. package/node_modules/@comis/skills/dist/integrations/link/link-formatter.js +55 -0
  2239. package/node_modules/@comis/skills/dist/integrations/link/link-runner.d.ts +56 -0
  2240. package/node_modules/@comis/skills/dist/integrations/link/link-runner.js +77 -0
  2241. package/node_modules/@comis/skills/dist/integrations/mcp-client.d.ts +163 -0
  2242. package/node_modules/@comis/skills/dist/integrations/mcp-client.js +705 -0
  2243. package/node_modules/@comis/skills/dist/integrations/mcp-result-sanitizer.d.ts +21 -0
  2244. package/node_modules/@comis/skills/dist/integrations/mcp-result-sanitizer.js +44 -0
  2245. package/node_modules/@comis/skills/dist/integrations/mcp-tool-bridge.d.ts +75 -0
  2246. package/node_modules/@comis/skills/dist/integrations/mcp-tool-bridge.js +235 -0
  2247. package/node_modules/@comis/skills/dist/integrations/media-adapter-shared.d.ts +16 -0
  2248. package/node_modules/@comis/skills/dist/integrations/media-adapter-shared.js +35 -0
  2249. package/node_modules/@comis/skills/dist/integrations/media-handler-audio.d.ts +33 -0
  2250. package/node_modules/@comis/skills/dist/integrations/media-handler-audio.js +62 -0
  2251. package/node_modules/@comis/skills/dist/integrations/media-handler-document.d.ts +38 -0
  2252. package/node_modules/@comis/skills/dist/integrations/media-handler-document.js +70 -0
  2253. package/node_modules/@comis/skills/dist/integrations/media-handler-factory.d.ts +25 -0
  2254. package/node_modules/@comis/skills/dist/integrations/media-handler-factory.js +39 -0
  2255. package/node_modules/@comis/skills/dist/integrations/media-handler-image.d.ts +48 -0
  2256. package/node_modules/@comis/skills/dist/integrations/media-handler-image.js +86 -0
  2257. package/node_modules/@comis/skills/dist/integrations/media-handler-video.d.ts +37 -0
  2258. package/node_modules/@comis/skills/dist/integrations/media-handler-video.js +49 -0
  2259. package/node_modules/@comis/skills/dist/integrations/media-preprocessor.d.ts +118 -0
  2260. package/node_modules/@comis/skills/dist/integrations/media-preprocessor.js +176 -0
  2261. package/node_modules/@comis/skills/dist/integrations/multimodal-analyzer.d.ts +27 -0
  2262. package/node_modules/@comis/skills/dist/integrations/multimodal-analyzer.js +139 -0
  2263. package/node_modules/@comis/skills/dist/integrations/openai-stt-adapter.d.ts +24 -0
  2264. package/node_modules/@comis/skills/dist/integrations/openai-stt-adapter.js +78 -0
  2265. package/node_modules/@comis/skills/dist/integrations/openai-tts-adapter.d.ts +19 -0
  2266. package/node_modules/@comis/skills/dist/integrations/openai-tts-adapter.js +78 -0
  2267. package/node_modules/@comis/skills/dist/integrations/outbound-media-parser.d.ts +33 -0
  2268. package/node_modules/@comis/skills/dist/integrations/outbound-media-parser.js +58 -0
  2269. package/node_modules/@comis/skills/dist/integrations/stt-factory.d.ts +36 -0
  2270. package/node_modules/@comis/skills/dist/integrations/stt-factory.js +84 -0
  2271. package/node_modules/@comis/skills/dist/integrations/tts/tts-auto-mode.d.ts +44 -0
  2272. package/node_modules/@comis/skills/dist/integrations/tts/tts-auto-mode.js +48 -0
  2273. package/node_modules/@comis/skills/dist/integrations/tts/tts-directive-parser.d.ts +53 -0
  2274. package/node_modules/@comis/skills/dist/integrations/tts/tts-directive-parser.js +93 -0
  2275. package/node_modules/@comis/skills/dist/integrations/tts/tts-output-format.d.ts +42 -0
  2276. package/node_modules/@comis/skills/dist/integrations/tts/tts-output-format.js +114 -0
  2277. package/node_modules/@comis/skills/dist/integrations/tts-factory.d.ts +15 -0
  2278. package/node_modules/@comis/skills/dist/integrations/tts-factory.js +37 -0
  2279. package/node_modules/@comis/skills/dist/integrations/vision/gemini-vision-adapter.d.ts +35 -0
  2280. package/node_modules/@comis/skills/dist/integrations/vision/gemini-vision-adapter.js +149 -0
  2281. package/node_modules/@comis/skills/dist/integrations/vision/scope-resolver.d.ts +40 -0
  2282. package/node_modules/@comis/skills/dist/integrations/vision/scope-resolver.js +55 -0
  2283. package/node_modules/@comis/skills/dist/integrations/vision/video-handler.d.ts +33 -0
  2284. package/node_modules/@comis/skills/dist/integrations/vision/video-handler.js +46 -0
  2285. package/node_modules/@comis/skills/dist/integrations/vision/vision-provider-registry.d.ts +48 -0
  2286. package/node_modules/@comis/skills/dist/integrations/vision/vision-provider-registry.js +134 -0
  2287. package/node_modules/@comis/skills/dist/manifest/parser.d.ts +29 -0
  2288. package/node_modules/@comis/skills/dist/manifest/parser.js +69 -0
  2289. package/node_modules/@comis/skills/dist/manifest/schema.d.ts +125 -0
  2290. package/node_modules/@comis/skills/dist/manifest/schema.js +113 -0
  2291. package/node_modules/@comis/skills/dist/media/audio-converter.d.ts +39 -0
  2292. package/node_modules/@comis/skills/dist/media/audio-converter.js +154 -0
  2293. package/node_modules/@comis/skills/dist/media/audio-tags.d.ts +37 -0
  2294. package/node_modules/@comis/skills/dist/media/audio-tags.js +45 -0
  2295. package/node_modules/@comis/skills/dist/media/composite-resolver.d.ts +41 -0
  2296. package/node_modules/@comis/skills/dist/media/composite-resolver.js +78 -0
  2297. package/node_modules/@comis/skills/dist/media/constants.d.ts +17 -0
  2298. package/node_modules/@comis/skills/dist/media/constants.js +54 -0
  2299. package/node_modules/@comis/skills/dist/media/ffmpeg-detect.d.ts +27 -0
  2300. package/node_modules/@comis/skills/dist/media/ffmpeg-detect.js +41 -0
  2301. package/node_modules/@comis/skills/dist/media/file-validator.d.ts +45 -0
  2302. package/node_modules/@comis/skills/dist/media/file-validator.js +98 -0
  2303. package/node_modules/@comis/skills/dist/media/image-ops.d.ts +64 -0
  2304. package/node_modules/@comis/skills/dist/media/image-ops.js +139 -0
  2305. package/node_modules/@comis/skills/dist/media/index.d.ts +31 -0
  2306. package/node_modules/@comis/skills/dist/media/index.js +33 -0
  2307. package/node_modules/@comis/skills/dist/media/media-persistence.d.ts +64 -0
  2308. package/node_modules/@comis/skills/dist/media/media-persistence.js +95 -0
  2309. package/node_modules/@comis/skills/dist/media/media-semaphore.d.ts +37 -0
  2310. package/node_modules/@comis/skills/dist/media/media-semaphore.js +47 -0
  2311. package/node_modules/@comis/skills/dist/media/media-store.d.ts +64 -0
  2312. package/node_modules/@comis/skills/dist/media/media-store.js +178 -0
  2313. package/node_modules/@comis/skills/dist/media/media-temp.d.ts +53 -0
  2314. package/node_modules/@comis/skills/dist/media/media-temp.js +134 -0
  2315. package/node_modules/@comis/skills/dist/media/mime-detection.d.ts +45 -0
  2316. package/node_modules/@comis/skills/dist/media/mime-detection.js +125 -0
  2317. package/node_modules/@comis/skills/dist/media/ssrf-fetcher.d.ts +65 -0
  2318. package/node_modules/@comis/skills/dist/media/ssrf-fetcher.js +208 -0
  2319. package/node_modules/@comis/skills/dist/policy/index.d.ts +7 -0
  2320. package/node_modules/@comis/skills/dist/policy/index.js +7 -0
  2321. package/node_modules/@comis/skills/dist/policy/tool-policy.d.ts +74 -0
  2322. package/node_modules/@comis/skills/dist/policy/tool-policy.js +220 -0
  2323. package/node_modules/@comis/skills/dist/prompt/content-scanner.d.ts +58 -0
  2324. package/node_modules/@comis/skills/dist/prompt/content-scanner.js +284 -0
  2325. package/node_modules/@comis/skills/dist/prompt/processor.d.ts +98 -0
  2326. package/node_modules/@comis/skills/dist/prompt/processor.js +232 -0
  2327. package/node_modules/@comis/skills/dist/prompt/sanitizer.d.ts +62 -0
  2328. package/node_modules/@comis/skills/dist/prompt/sanitizer.js +72 -0
  2329. package/node_modules/@comis/skills/dist/registry/diagnostics.d.ts +23 -0
  2330. package/node_modules/@comis/skills/dist/registry/diagnostics.js +11 -0
  2331. package/node_modules/@comis/skills/dist/registry/discovery.d.ts +94 -0
  2332. package/node_modules/@comis/skills/dist/registry/discovery.js +332 -0
  2333. package/node_modules/@comis/skills/dist/registry/eligibility.d.ts +61 -0
  2334. package/node_modules/@comis/skills/dist/registry/eligibility.js +124 -0
  2335. package/node_modules/@comis/skills/dist/registry/skill-registry.d.ts +127 -0
  2336. package/node_modules/@comis/skills/dist/registry/skill-registry.js +496 -0
  2337. package/node_modules/@comis/skills/dist/registry/skill-watcher.d.ts +50 -0
  2338. package/node_modules/@comis/skills/dist/registry/skill-watcher.js +166 -0
  2339. package/node_modules/@comis/skills/package.json +44 -0
  2340. package/package.json +201 -0
@@ -0,0 +1,988 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Exec command security validation pipeline.
4
+ *
5
+ * Pure validation module -- no I/O, no state, no process management.
6
+ * Every function takes a string and returns `string | null` (error message
7
+ * or null for valid). The pipeline entry point `validateExecCommand()`
8
+ * composes all gates and is used by both `createExecTool()` and
9
+ * `tool-metadata-registry.ts` pre-flight registration.
10
+ *
11
+ * @module
12
+ */
13
+ import path from "node:path";
14
+ import os from "node:os";
15
+ /**
16
+ * Character-by-character shell quote state machine. Tracks whether the current
17
+ * position is inside single quotes, double quotes, backticks, or normal context.
18
+ * Handles backslash escaping in NORMAL and DOUBLE_QUOTE states (not SINGLE_QUOTE).
19
+ */
20
+ export class ShellQuoteTracker {
21
+ state = "NORMAL";
22
+ escaped = false;
23
+ feed(char) {
24
+ if (this.escaped) {
25
+ this.escaped = false;
26
+ return;
27
+ }
28
+ switch (this.state) {
29
+ case "NORMAL":
30
+ if (char === "\\") {
31
+ this.escaped = true;
32
+ }
33
+ else if (char === "'") {
34
+ this.state = "SINGLE_QUOTE";
35
+ }
36
+ else if (char === '"') {
37
+ this.state = "DOUBLE_QUOTE";
38
+ }
39
+ else if (char === "`") {
40
+ this.state = "BACKTICK";
41
+ }
42
+ break;
43
+ case "SINGLE_QUOTE":
44
+ // No escaping in single quotes -- only ' exits
45
+ if (char === "'")
46
+ this.state = "NORMAL";
47
+ break;
48
+ case "DOUBLE_QUOTE":
49
+ if (char === "\\") {
50
+ this.escaped = true;
51
+ }
52
+ else if (char === '"') {
53
+ this.state = "NORMAL";
54
+ }
55
+ break;
56
+ case "BACKTICK":
57
+ if (char === "\\") {
58
+ this.escaped = true;
59
+ }
60
+ else if (char === "`") {
61
+ this.state = "NORMAL";
62
+ }
63
+ break;
64
+ }
65
+ }
66
+ isInSingleQuote() {
67
+ return this.state === "SINGLE_QUOTE";
68
+ }
69
+ }
70
+ // --------------------------------------------------------------------------
71
+ // Shell substitution detection
72
+ // --------------------------------------------------------------------------
73
+ /**
74
+ * Detect shell substitution patterns ($(), backticks, <()/>()) that could
75
+ * enable injection. Single-quoted strings are excluded. Uses ShellQuoteTracker
76
+ * for escape and quote-context awareness.
77
+ *
78
+ * @param command - The raw shell command to analyze
79
+ * @returns Error message if dangerous substitution found, null if safe
80
+ */
81
+ export function detectShellSubstitutions(command) {
82
+ const tracker = new ShellQuoteTracker();
83
+ for (let i = 0; i < command.length; i++) {
84
+ const ch = command[i];
85
+ // Check BEFORE feeding to tracker so we can use current state
86
+ if (!tracker.escaped && !tracker.isInSingleQuote()) {
87
+ // Command substitution: $(
88
+ if (ch === "$" &&
89
+ i + 1 < command.length &&
90
+ command[i + 1] === "(" &&
91
+ tracker.state !== "BACKTICK") {
92
+ return "Shell command substitution $(...) detected";
93
+ }
94
+ // Backtick substitution (only in NORMAL or DOUBLE_QUOTE)
95
+ if (ch === "`" &&
96
+ (tracker.state === "NORMAL" || tracker.state === "DOUBLE_QUOTE")) {
97
+ return "Backtick substitution detected";
98
+ }
99
+ // Process substitution: <( or >(
100
+ if ((ch === "<" || ch === ">") &&
101
+ i + 1 < command.length &&
102
+ command[i + 1] === "(" &&
103
+ tracker.state === "NORMAL") {
104
+ return "Process substitution detected";
105
+ }
106
+ // Zsh process substitution: =( at word boundary
107
+ if (ch === "=" &&
108
+ i + 1 < command.length &&
109
+ command[i + 1] === "(" &&
110
+ tracker.state === "NORMAL") {
111
+ return "Zsh process substitution =(…) detected";
112
+ }
113
+ // Zsh equals expansion: =cmd at word start (not VAR=val)
114
+ if (ch === "=" &&
115
+ tracker.state === "NORMAL" &&
116
+ (i === 0 || /[\s;&|]/.test(command[i - 1])) &&
117
+ i + 1 < command.length &&
118
+ /[a-zA-Z_]/.test(command[i + 1])) {
119
+ return "Zsh equals expansion (=cmd) detected";
120
+ }
121
+ }
122
+ tracker.feed(ch);
123
+ }
124
+ return null;
125
+ }
126
+ // --------------------------------------------------------------------------
127
+ // Compound command splitting
128
+ // --------------------------------------------------------------------------
129
+ /**
130
+ * Split a shell command on compound operators (&&, ||, ;, |, &) with
131
+ * quote awareness. Returns individual command segments for independent
132
+ * validation.
133
+ *
134
+ * @param command - The raw shell command to split
135
+ * @returns Array of command segments (trimmed, non-empty)
136
+ */
137
+ export function splitCommandSegments(command) {
138
+ const tracker = new ShellQuoteTracker();
139
+ const segments = [];
140
+ let current = "";
141
+ for (let i = 0; i < command.length; i++) {
142
+ const ch = command[i];
143
+ if (!tracker.escaped && tracker.state === "NORMAL") {
144
+ // Two-char operators first
145
+ if (i + 1 < command.length) {
146
+ const two = command[i] + command[i + 1];
147
+ if (two === "&&" || two === "||") {
148
+ segments.push(current);
149
+ current = "";
150
+ i++; // skip second char
151
+ continue;
152
+ }
153
+ }
154
+ // Single-char operators
155
+ if (ch === ";" || ch === "|" || ch === "&") {
156
+ segments.push(current);
157
+ current = "";
158
+ continue;
159
+ }
160
+ }
161
+ tracker.feed(ch);
162
+ current += ch;
163
+ }
164
+ segments.push(current);
165
+ return segments.filter((s) => s.trim() !== "").map((s) => s.trim());
166
+ }
167
+ // --------------------------------------------------------------------------
168
+ // Dangerous pipe target detection
169
+ // --------------------------------------------------------------------------
170
+ /**
171
+ * Commands that are dangerous as pipe targets (data flows INTO them).
172
+ * Standalone use is legitimate -- only the pipe-to pattern is suspicious.
173
+ */
174
+ const DANGEROUS_PIPE_TARGETS = new Set([
175
+ // Shell interpreters (migrated from Category C denylist)
176
+ "sh", "bash", "zsh", "dash", "fish", "csh", "tcsh", "ksh",
177
+ // Network exfiltration tools
178
+ "nc", "ncat", "socat", "telnet", "curl", "wget",
179
+ ]);
180
+ /**
181
+ * Detect pipes to dangerous targets (shell interpreters, network tools).
182
+ * Runs on the FULL command before compound splitting, because splitCommandSegments
183
+ * splits on | and removes the pipe context from individual segments.
184
+ *
185
+ * @param command - The full raw shell command
186
+ * @returns Error message if dangerous pipe target found, null if safe
187
+ */
188
+ export function detectDangerousPipeTargets(command) {
189
+ if (!command.includes("|"))
190
+ return null;
191
+ const segments = splitCommandSegments(command);
192
+ for (let i = 1; i < segments.length; i++) {
193
+ const segment = segments[i].trimStart();
194
+ const firstWord = segment.split(/\s/)[0];
195
+ const basename = firstWord.includes("/")
196
+ ? firstWord.split("/").pop()
197
+ : firstWord;
198
+ if (DANGEROUS_PIPE_TARGETS.has(basename)) {
199
+ return `Pipe to '${basename}' detected (potential data exfiltration or remote code execution). Piping data to shell interpreters or network tools is blocked.`;
200
+ }
201
+ }
202
+ return null;
203
+ }
204
+ // --------------------------------------------------------------------------
205
+ // Constants
206
+ // --------------------------------------------------------------------------
207
+ /**
208
+ * Environment variables safe to pass through to exec subprocesses.
209
+ * Any env var NOT in this set is blocked when passed via the `env` parameter.
210
+ * Allowlist (fail-closed): new attack variables are blocked by default.
211
+ */
212
+ export const SAFE_ENV_VARS = new Set([
213
+ // Locale & display
214
+ "LANG", "LANGUAGE", "LC_ALL", "LC_CTYPE", "LC_MESSAGES",
215
+ "LC_COLLATE", "LC_NUMERIC", "LC_TIME", "LC_MONETARY",
216
+ "TZ", "TERM", "COLORTERM", "FORCE_COLOR", "NO_COLOR",
217
+ "COLUMNS", "LINES",
218
+ // Runtime behavior (non-executable)
219
+ "NODE_ENV", "RUST_BACKTRACE", "RUST_LOG",
220
+ "PYTHONDONTWRITEBYTECODE", "PYTHONUNBUFFERED",
221
+ "DEBUG", "VERBOSE", "LOG_LEVEL", "CI",
222
+ // Build/package config (path-setting, no code execution)
223
+ "HOME", "USER", "SHELL", "PATH",
224
+ "TMPDIR", "XDG_CONFIG_HOME", "XDG_DATA_HOME", "XDG_CACHE_HOME",
225
+ // Platform signals
226
+ "LS_COLORS", "CLICOLOR", "CLICOLOR_FORCE",
227
+ ]);
228
+ export const SAFE_ENV_PREFIXES = ["LC_"];
229
+ /**
230
+ * Command patterns that are blocked before spawning. Defense-in-depth only --
231
+ * the actual security boundary is the builtinTools.exec toggle and tool policy.
232
+ */
233
+ export const DANGEROUS_COMMAND_PATTERNS = [
234
+ // Category A -- Destructive filesystem operations
235
+ {
236
+ pattern: /\brm\s+(-[a-zA-Z]*[rR][a-zA-Z]*\s+)+(\/|~)/,
237
+ reason: "Recursive delete on root or home directory",
238
+ },
239
+ { pattern: /\bmkfs\b/, reason: "Filesystem format command" },
240
+ {
241
+ pattern: /\bdd\b.*\bof\s*=\s*\/dev\//,
242
+ reason: "Direct write to block device",
243
+ },
244
+ // Category B -- Permission/system compromise
245
+ {
246
+ pattern: /\bchmod\b.*\b777\b.*\//,
247
+ reason: "World-writable permissions on system path",
248
+ },
249
+ {
250
+ pattern: /:\(\)\s*\{.*\|.*&\s*\}/,
251
+ reason: "Fork bomb pattern",
252
+ },
253
+ // Category C -- Migrated to detectDangerousPipeTargets()
254
+ // Category D -- Sensitive file access
255
+ {
256
+ pattern: /\/etc\/(passwd|shadow|sudoers)/,
257
+ reason: "Access to sensitive system file",
258
+ },
259
+ { pattern: /\/\.ssh\//, reason: "Access to SSH key directory" },
260
+ {
261
+ pattern: /\.comis\/\.env/,
262
+ reason: "Access to secret envfile is blocked. Use the gateway tool with action='env_list' " +
263
+ "to see which secret names are configured (names only, no values). " +
264
+ "Secret values are never returned to the agent.",
265
+ },
266
+ // Category E -- Config file modification bypass
267
+ // Defense-in-depth: the agent system prompt is the primary guard.
268
+ // These regexes can be bypassed via quoting, variable expansion, etc.
269
+ // The real security boundary is the tool policy toggle.
270
+ // Note: plain `cat` (read) is intentionally excluded -- only write tools are blocked.
271
+ {
272
+ pattern: /(?:sed|awk|tee|cp|mv|perl|ruby)\b.*(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml)/,
273
+ reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
274
+ },
275
+ {
276
+ pattern: /(?:echo|cat)\s*>.*(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml)/,
277
+ reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
278
+ },
279
+ {
280
+ pattern: /(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml).*(?:sed|awk|tee|cat\s*>|echo\s*>)/,
281
+ reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
282
+ },
283
+ // Category G -- Code execution builtins
284
+ { pattern: /\beval\s/, reason: "Shell eval executes arbitrary code" },
285
+ {
286
+ pattern: /\bsource\s/,
287
+ reason: "Shell source executes arbitrary script file",
288
+ },
289
+ {
290
+ pattern: /^\.\s+\//,
291
+ reason: "POSIX source (.) executes arbitrary script file",
292
+ },
293
+ // Category H -- Indirect command execution
294
+ {
295
+ pattern: /\bfind\b.*-exec\s/,
296
+ reason: "find -exec can execute arbitrary commands",
297
+ },
298
+ {
299
+ pattern: /\bxargs\s+(?!-[0tI])(?:sudo\s+)?(?:rm|chmod|chown|mv|shred|dd|mkfs)\b/,
300
+ reason: "xargs piping to dangerous command",
301
+ },
302
+ // Category J -- Shell encoding bypass
303
+ {
304
+ pattern: /\$'[^']*\\[xuU0-7]/,
305
+ reason: "ANSI-C quoting ($'...') with escape sequences can encode arbitrary commands, bypassing command validation",
306
+ },
307
+ // Category K -- Sed dangerous operations
308
+ {
309
+ pattern: /\bsed\b.*'(?:\s*e\b|[^']*;\s*e\b)/,
310
+ reason: "sed 'e' command executes pattern space as shell command",
311
+ },
312
+ {
313
+ pattern: /\bsed\b.*'(?:\s*w\s|[^']*;\s*w\s)/,
314
+ reason: "sed 'w' command writes pattern space to arbitrary file",
315
+ },
316
+ {
317
+ pattern: /\bsed\b.*'[^']*\/[ew]\b/,
318
+ reason: "sed substitution with 'e' (execute) or 'w' (write) flag",
319
+ },
320
+ // Category F -- Secret file modification bypass (write-specific patterns)
321
+ // .env files contain credentials managed by SecretManager. Direct edits
322
+ // bypass secret redaction, audit logging, and can leak credentials.
323
+ // Note: Category D already blocks all access to .comis/.env (read + write).
324
+ // These patterns are kept as defense-in-depth for write-specific error messages.
325
+ {
326
+ pattern: /(?:sed|awk|tee|cp|mv|perl|ruby)\b.*\.comis\/\.env/,
327
+ reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
328
+ },
329
+ {
330
+ pattern: /(?:echo|cat)\b.*>.*\.comis\/\.env/,
331
+ reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
332
+ },
333
+ {
334
+ pattern: /\.comis\/\.env.*(?:sed|awk|tee|cat\s*>|echo\s*>)/,
335
+ reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
336
+ },
337
+ ];
338
+ // --------------------------------------------------------------------------
339
+ // Dangerous path protection constants
340
+ // --------------------------------------------------------------------------
341
+ /** Mutation commands that are blocked from targeting protected system paths. */
342
+ export const MUTATION_COMMANDS = new Set([
343
+ "rm", "chmod", "chown", "mv", "cp", "truncate", "shred", "tee", "install", "ln",
344
+ ]);
345
+ /** Exact system paths that mutation commands cannot target. */
346
+ export const PROTECTED_PATHS = new Set([
347
+ "/", "/bin", "/sbin", "/usr/bin", "/usr/sbin",
348
+ "/boot", "/dev", "/etc",
349
+ "/lib", "/lib64", "/lib32",
350
+ "/opt", "/proc", "/root", "/sys",
351
+ "/usr", "/var", "/home", "/tmp",
352
+ "/var/log", "/var/tmp", "/usr/local",
353
+ ]);
354
+ /** Path prefixes where mutation commands are blocked on any subpath. */
355
+ export const PROTECTED_PATH_PREFIXES = [
356
+ "/etc/",
357
+ "/boot/",
358
+ "/proc/",
359
+ "/sys/",
360
+ "/usr/bin/",
361
+ "/usr/sbin/",
362
+ "/usr/local/",
363
+ "/var/log/",
364
+ "/var/tmp/",
365
+ ];
366
+ /**
367
+ * Check whether a command segment contains a mutation command targeting a
368
+ * protected system path. Path traversal via `..` is normalized before checking.
369
+ * Only absolute paths and `~`-prefixed paths are evaluated -- relative paths
370
+ * pass through unchecked.
371
+ *
372
+ * @param segment - A single command segment (after compound splitting)
373
+ * @returns Error message if a protected path is targeted, null if safe
374
+ */
375
+ export function validateDangerousPaths(segment) {
376
+ const words = segment.trim().split(/\s+/);
377
+ if (words.length === 0)
378
+ return null;
379
+ // Extract base command (strip path prefix like /usr/bin/rm -> rm)
380
+ const baseCmd = words[0].includes("/") ? words[0].split("/").pop() : words[0];
381
+ if (!MUTATION_COMMANDS.has(baseCmd))
382
+ return null;
383
+ // Check positional args (skip flags starting with -)
384
+ for (let i = 1; i < words.length; i++) {
385
+ const arg = words[i];
386
+ if (arg.startsWith("-"))
387
+ continue;
388
+ // Only check absolute paths and ~-prefixed paths
389
+ if (!arg.startsWith("/") && !arg.startsWith("~"))
390
+ continue;
391
+ // Normalize: expand ~ to homedir, resolve .. via path.resolve()
392
+ let normalized = arg;
393
+ if (normalized.startsWith("~")) {
394
+ normalized = normalized.replace(/^~/, os.homedir());
395
+ }
396
+ normalized = path.resolve(normalized);
397
+ // Check exact match against PROTECTED_PATHS
398
+ if (PROTECTED_PATHS.has(normalized)) {
399
+ return `Mutation command '${baseCmd}' targets protected path '${normalized}'`;
400
+ }
401
+ // Check prefix match against PROTECTED_PATH_PREFIXES
402
+ for (const prefix of PROTECTED_PATH_PREFIXES) {
403
+ if (normalized.startsWith(prefix)) {
404
+ return `Mutation command '${baseCmd}' targets protected path '${normalized}' (under ${prefix})`;
405
+ }
406
+ }
407
+ }
408
+ return null;
409
+ }
410
+ // --------------------------------------------------------------------------
411
+ // Redirect target protection constants
412
+ // --------------------------------------------------------------------------
413
+ /**
414
+ * Additional path prefixes checked ONLY for redirect targets.
415
+ * Stored with ~ prefix -- resolved to actual homedir at validation time.
416
+ */
417
+ const REDIRECT_SENSITIVE_PATTERNS = [
418
+ "~/.ssh/",
419
+ "~/.gnupg/",
420
+ "~/.comis/",
421
+ "~/.config/",
422
+ "~/.bashrc",
423
+ "~/.bash_profile",
424
+ "~/.profile",
425
+ "~/.zshrc",
426
+ ];
427
+ /** Exported for testing -- the raw ~ patterns for redirect-sensitive paths. */
428
+ export const REDIRECT_SENSITIVE_PREFIXES = REDIRECT_SENSITIVE_PATTERNS;
429
+ /**
430
+ * Check whether a command segment contains output redirections (>, >>, 2>, &>)
431
+ * targeting protected system paths or sensitive user paths. Quote-aware via
432
+ * ShellQuoteTracker -- redirects inside single/double quotes are ignored.
433
+ *
434
+ * @param segment - A single command segment (after compound splitting)
435
+ * @returns Error message if a protected redirect target found, null if safe
436
+ */
437
+ export function validateRedirectTargets(segment) {
438
+ const tracker = new ShellQuoteTracker();
439
+ const homedir = os.homedir();
440
+ for (let i = 0; i < segment.length; i++) {
441
+ const ch = segment[i];
442
+ // Only detect redirects in NORMAL state (not inside quotes)
443
+ if (!tracker.escaped && tracker.state === "NORMAL") {
444
+ let isRedirect = false;
445
+ let skipChars = 0;
446
+ if (ch === ">" && (i === 0 || segment[i - 1] !== "\\")) {
447
+ // > or >>
448
+ isRedirect = true;
449
+ if (i + 1 < segment.length && segment[i + 1] === ">") {
450
+ skipChars = 1; // >>
451
+ }
452
+ }
453
+ else if (ch === "&" && i + 1 < segment.length && segment[i + 1] === ">") {
454
+ // &> or &>>
455
+ isRedirect = true;
456
+ skipChars = 1;
457
+ if (i + 2 < segment.length && segment[i + 2] === ">") {
458
+ skipChars = 2;
459
+ }
460
+ }
461
+ else if (ch === "2" && i + 1 < segment.length && segment[i + 1] === ">") {
462
+ // 2> or 2>>
463
+ isRedirect = true;
464
+ skipChars = 1;
465
+ if (i + 2 < segment.length && segment[i + 2] === ">") {
466
+ skipChars = 2;
467
+ }
468
+ }
469
+ if (isRedirect) {
470
+ // Skip the operator characters
471
+ let targetStart = i + 1 + skipChars;
472
+ // Skip whitespace after operator
473
+ while (targetStart < segment.length && segment[targetStart] === " ") {
474
+ targetStart++;
475
+ }
476
+ // Extract target path (until whitespace or end)
477
+ let targetEnd = targetStart;
478
+ while (targetEnd < segment.length && segment[targetEnd] !== " ") {
479
+ targetEnd++;
480
+ }
481
+ const target = segment.slice(targetStart, targetEnd);
482
+ if (target && (target.startsWith("/") || target.startsWith("~"))) {
483
+ // Normalize path: expand ~ and resolve traversals
484
+ let normalized = target;
485
+ if (normalized.startsWith("~")) {
486
+ normalized = normalized.replace(/^~/, homedir);
487
+ }
488
+ normalized = path.resolve(normalized);
489
+ // Check against PROTECTED_PATHS (exact match)
490
+ if (PROTECTED_PATHS.has(normalized)) {
491
+ return `Output redirection targets protected path '${normalized}'`;
492
+ }
493
+ // Check against PROTECTED_PATH_PREFIXES (system directories)
494
+ for (const prefix of PROTECTED_PATH_PREFIXES) {
495
+ if (normalized.startsWith(prefix)) {
496
+ return `Output redirection targets protected path '${normalized}' (under ${prefix})`;
497
+ }
498
+ }
499
+ // Check against REDIRECT_SENSITIVE_PATTERNS (user paths)
500
+ for (const pattern of REDIRECT_SENSITIVE_PATTERNS) {
501
+ let resolvedPattern = pattern;
502
+ if (resolvedPattern.startsWith("~")) {
503
+ resolvedPattern = resolvedPattern.replace(/^~/, homedir);
504
+ }
505
+ // For directory patterns (ending with /), check startsWith
506
+ // For exact file patterns (like ~/.bashrc), check equality or startsWith
507
+ if (normalized === resolvedPattern || normalized.startsWith(resolvedPattern)) {
508
+ return `Output redirection targets sensitive user path '${normalized}'`;
509
+ }
510
+ }
511
+ }
512
+ }
513
+ }
514
+ tracker.feed(ch);
515
+ }
516
+ return null;
517
+ }
518
+ // --------------------------------------------------------------------------
519
+ // Gate 0: Invisible character sanitization
520
+ // --------------------------------------------------------------------------
521
+ /**
522
+ * Regex matching invisible or ambiguous Unicode characters that can bypass
523
+ * regex-based validation. Ranges carefully exclude tab (0x09) and CR (0x0d).
524
+ *
525
+ * Ranges:
526
+ * - \x00-\x08: C0 controls before tab
527
+ * - \x0a-\x0c: LF, VT, FF (newline in command = injection vector)
528
+ * - \x0e-\x1f: C0 controls after CR (SO, SI, DLE, ..., US)
529
+ * - \u00A0: non-breaking space
530
+ * - \u00AD: soft hyphen
531
+ * - \u200B-\u200F: zero-width space, ZWNJ, ZWJ, LTR mark, RTL mark
532
+ * - \u2060: word joiner
533
+ * - \uFEFF: BOM / zero-width no-break space
534
+ * - \x7F: DEL character
535
+ * - \u1680: Ogham space mark
536
+ * - \u2000-\u200A: en/em/thin/hair/figure spaces
537
+ * - \u2028: line separator
538
+ * - \u2029: paragraph separator
539
+ * - \u202F: narrow no-break space
540
+ * - \u205F: medium mathematical space
541
+ * - \u3000: ideographic space
542
+ */
543
+ const INVISIBLE_CHAR_REGEX =
544
+ // eslint-disable-next-line no-control-regex
545
+ /[\x00-\x08\x0a-\x0c\x0e-\x1f\x7F\u00A0\u00AD\u1680\u200B-\u200F\u2000-\u200A\u2028\u2029\u202F\u205F\u2060\u3000\uFEFF]/;
546
+ /**
547
+ * Reject commands containing invisible or ambiguous characters that can bypass
548
+ * regex-based validation. First gate in the validation pipeline.
549
+ *
550
+ * @param command - The raw shell command to sanitize
551
+ * @returns Error message if dangerous characters found, null if clean
552
+ */
553
+ /**
554
+ * Detect shell patterns where the LLM is trying to write a file
555
+ * (cat/tee/echo/printf heredoc, or a `>` redirection). Used to swap
556
+ * the Gate-0 newline-rejection hint toward the `write` tool instead of
557
+ * `python3 -` with stdin — pointing the LLM at the correct alternative
558
+ * prevents it from retrying more cat-heredocs (observed NVDA run:
559
+ * 12 consecutive `[invalid_value]` failures before the exec tool was
560
+ * circuit-broken).
561
+ */
562
+ const FILE_WRITE_HEURISTIC = /^\s*(?:cat|tee|echo|printf)\b|>\s*["']?[^|<&\s]+\s*(?:<<|$)/;
563
+ export function sanitizeCommandInput(command) {
564
+ const match = INVISIBLE_CHAR_REGEX.exec(command);
565
+ if (match) {
566
+ const cp = match[0].codePointAt(0);
567
+ const hex = cp.toString(16).toUpperCase().padStart(4, "0");
568
+ let msg = `Command contains invisible/ambiguous character U+${hex} at position ${match.index}. This can bypass security validation. Remove the character and retry.`;
569
+ if (cp === 0x0a) {
570
+ // Disambiguate: is the LLM writing a file (use `write` tool) or
571
+ // running a multi-line script (use python3/node/bash with stdin)?
572
+ // The heuristic fires on the line the newline was rejected on, so
573
+ // the hint matches the LLM's actual intent.
574
+ const looksLikeFileWrite = FILE_WRITE_HEURISTIC.test(command);
575
+ msg += looksLikeFileWrite
576
+ ? ` To write files, use the 'write' tool (or 'edit' for targeted changes) instead of a shell heredoc in exec.`
577
+ : ` For multi-line scripts, use command='python3 -' (or 'node -', 'bash -') with the 'input' parameter for the script body.`;
578
+ }
579
+ return msg;
580
+ }
581
+ return null;
582
+ }
583
+ /**
584
+ * Auto-extract heredoc patterns into command + input before security validation.
585
+ *
586
+ * LLMs frequently send heredoc syntax like `python3 - <<'PY'\nscript\nPY` to the
587
+ * exec tool's command parameter. Gate 0 blocks newlines in commands (correctly,
588
+ * for injection prevention). This function detects the heredoc pattern and splits
589
+ * it into a clean command (`python3 -`) and input (the script body), allowing
590
+ * the existing `input` stdin parameter to carry the script content.
591
+ *
592
+ * Only matches known stdin-capable interpreters followed by ` -` (stdin marker).
593
+ * Returns null if no heredoc detected or if input is already provided.
594
+ */
595
+ export function extractHeredoc(command, input) {
596
+ if (input)
597
+ return null;
598
+ const match = command.match(/^((?:python3?|node|bash|sh|ruby|perl|php)\s+-)\s*<<-?['"]?([A-Za-z_]\w*)['"]?\n([\s\S]*)\n\2\s*$/);
599
+ if (!match)
600
+ return null;
601
+ return { command: match[1], input: match[3] };
602
+ }
603
+ // --------------------------------------------------------------------------
604
+ // Gate 1: Command denylist (moved from exec-tool.ts)
605
+ // --------------------------------------------------------------------------
606
+ /**
607
+ * Validate a command against the dangerous command denylist.
608
+ * Returns an error message if blocked, null if allowed.
609
+ *
610
+ * This is defense-in-depth, not a sandbox. The actual security boundary
611
+ * is the builtinTools.exec toggle and tool policy. Pattern matching on
612
+ * raw command strings can be bypassed via shell quoting/encoding.
613
+ */
614
+ export function validateCommand(command) {
615
+ for (const { pattern, reason } of DANGEROUS_COMMAND_PATTERNS) {
616
+ if (pattern.test(command)) {
617
+ return `Command blocked: ${reason}`;
618
+ }
619
+ }
620
+ return null;
621
+ }
622
+ // --------------------------------------------------------------------------
623
+ // Gate 2: Environment variable validation (moved from exec-tool.ts)
624
+ // --------------------------------------------------------------------------
625
+ /**
626
+ * Validate environment variables against the security allowlist.
627
+ * Only variables in SAFE_ENV_VARS (or matching SAFE_ENV_PREFIXES)
628
+ * are permitted. Returns an error message for the first blocked
629
+ * variable, null if all are safe.
630
+ */
631
+ export function validateEnvVars(env) {
632
+ for (const key of Object.keys(env)) {
633
+ if (SAFE_ENV_VARS.has(key))
634
+ continue;
635
+ if (SAFE_ENV_PREFIXES.some((prefix) => key.startsWith(prefix)))
636
+ continue;
637
+ return `Environment variable '${key}' is not in the allowed list. Only safe variables (locale, display, build config) can be overridden.`;
638
+ }
639
+ return null;
640
+ }
641
+ // --------------------------------------------------------------------------
642
+ // Gate 6: IFS injection detection
643
+ // --------------------------------------------------------------------------
644
+ /**
645
+ * Detect IFS variable usage that could bypass argument splitting security.
646
+ * Blocks $IFS direct references and ${...IFS...} parameter expansions.
647
+ *
648
+ * @param command - The raw shell command to analyze
649
+ * @returns Error message if IFS injection found, null if safe
650
+ */
651
+ export function detectIFSInjection(command) {
652
+ if (/\$IFS|\$\{[^}]*IFS|\bIFS=/.test(command)) {
653
+ return "Command contains IFS variable usage which could bypass security validation.";
654
+ }
655
+ return null;
656
+ }
657
+ // --------------------------------------------------------------------------
658
+ // Gate 7: Zsh dangerous commands detection
659
+ // --------------------------------------------------------------------------
660
+ /** Zsh-specific builtins and modules that can compromise the system. */
661
+ const ZSH_DANGEROUS_COMMANDS = new Set([
662
+ "zmodload", "emulate", "sysopen", "sysread", "syswrite", "sysseek",
663
+ "zpty", "ztcp", "zsocket",
664
+ "zf_rm", "zf_mv", "zf_ln", "zf_chmod", "zf_chown", "zf_mkdir", "zf_rmdir", "zf_chgrp",
665
+ ]);
666
+ /** Zsh precommand modifiers that precede the actual command. */
667
+ const ZSH_PRECOMMAND_MODIFIERS = new Set([
668
+ "command", "builtin", "noglob", "nocorrect",
669
+ ]);
670
+ /**
671
+ * Detect Zsh-specific dangerous commands in a command segment.
672
+ * Strips env assignments (VAR=val) and precommand modifiers (command, builtin,
673
+ * noglob, nocorrect) to find the base command. Also blocks `fc -e` (history
674
+ * command with execute flag).
675
+ *
676
+ * @param segment - A single command segment (after compound splitting)
677
+ * @returns Error message if dangerous Zsh command found, null if safe
678
+ */
679
+ export function detectZshDangerousCommands(segment) {
680
+ const words = segment.trim().split(/\s+/);
681
+ let baseCmd;
682
+ for (const word of words) {
683
+ // Skip VAR=value env assignments
684
+ if (/^[A-Za-z_]\w*=/.test(word))
685
+ continue;
686
+ // Skip precommand modifiers
687
+ if (ZSH_PRECOMMAND_MODIFIERS.has(word))
688
+ continue;
689
+ baseCmd = word;
690
+ break;
691
+ }
692
+ if (!baseCmd)
693
+ return null;
694
+ if (ZSH_DANGEROUS_COMMANDS.has(baseCmd)) {
695
+ return `Zsh dangerous command '${baseCmd}' is blocked.`;
696
+ }
697
+ // Block fc -e (history execute)
698
+ if (baseCmd === "fc" && /\s-\S*e/.test(segment)) {
699
+ return "Zsh 'fc -e' (history execute) is blocked.";
700
+ }
701
+ return null;
702
+ }
703
+ // --------------------------------------------------------------------------
704
+ // Gate 8: Brace expansion detection
705
+ // --------------------------------------------------------------------------
706
+ /**
707
+ * Check if position in string is backslash-escaped by counting consecutive
708
+ * backslashes before it. Odd count = escaped.
709
+ */
710
+ function isEscaped(content, pos) {
711
+ let count = 0;
712
+ let i = pos - 1;
713
+ while (i >= 0 && content[i] === "\\") {
714
+ count++;
715
+ i--;
716
+ }
717
+ return count % 2 === 1;
718
+ }
719
+ /**
720
+ * Detect dangerous brace expansion patterns in unquoted shell context.
721
+ * Blocks comma-based ({rm,-rf,/}) and range-based ({a..z}) patterns while
722
+ * allowing parameter expansion (${HOME}), quoted braces, and single braces
723
+ * without comma/dots.
724
+ *
725
+ * @param command - The raw shell command to analyze
726
+ * @returns Error message if dangerous brace expansion found, null if safe
727
+ */
728
+ export function detectBraceExpansion(command) {
729
+ const tracker = new ShellQuoteTracker();
730
+ // Build string of unquoted content, tracking positions
731
+ let unquoted = "";
732
+ const posMap = []; // maps unquoted index -> original command index
733
+ for (let i = 0; i < command.length; i++) {
734
+ const ch = command[i];
735
+ const wasNormal = tracker.state === "NORMAL" && !tracker.escaped;
736
+ tracker.feed(ch);
737
+ if (wasNormal && tracker.state === "NORMAL") {
738
+ unquoted += ch;
739
+ posMap.push(i);
740
+ }
741
+ else if (wasNormal) {
742
+ // Character triggered state change (e.g., opening quote) -- not unquoted content
743
+ }
744
+ }
745
+ // Scan unquoted content for brace expansion patterns
746
+ let depth = 0;
747
+ let outerStart = -1;
748
+ for (let i = 0; i < unquoted.length; i++) {
749
+ const ch = unquoted[i];
750
+ if (ch === "{" && !isEscaped(unquoted, i)) {
751
+ // Skip parameter expansion: ${ is NOT brace expansion
752
+ if (i > 0 && unquoted[i - 1] === "$")
753
+ continue;
754
+ if (depth === 0)
755
+ outerStart = i;
756
+ depth++;
757
+ }
758
+ else if (ch === "}" && !isEscaped(unquoted, i) && depth > 0) {
759
+ depth--;
760
+ if (depth === 0 && outerStart >= 0) {
761
+ // Extract content between outermost braces
762
+ const inner = unquoted.slice(outerStart + 1, i);
763
+ // Check for comma-based expansion: {a,b} or {rm,-rf,/}
764
+ if (inner.includes(",")) {
765
+ return `Brace expansion with comma pattern detected: {${inner.slice(0, 40)}}`;
766
+ }
767
+ // Check for range expansion: {a..z} or {1..10}
768
+ if (/\.\./.test(inner)) {
769
+ return `Brace expansion with range pattern detected: {${inner.slice(0, 40)}}`;
770
+ }
771
+ outerStart = -1;
772
+ }
773
+ }
774
+ }
775
+ return null;
776
+ }
777
+ // --------------------------------------------------------------------------
778
+ // Gate 11: /proc/environ access detection
779
+ // --------------------------------------------------------------------------
780
+ /**
781
+ * Detect access to /proc/{pid}/environ which leaks environment variables
782
+ * including secrets. Matches /proc/self/environ, /proc/1/environ, etc.
783
+ *
784
+ * @param command - The raw shell command to analyze
785
+ * @returns Error message if proc environ access found, null if safe
786
+ */
787
+ export function detectProcEnvironAccess(command) {
788
+ if (/\/proc\/.*\/environ/.test(command)) {
789
+ return "Access to /proc/*/environ is blocked (environment variable exfiltration).";
790
+ }
791
+ return null;
792
+ }
793
+ // --------------------------------------------------------------------------
794
+ // Gate 12: Comment-quote desync detection
795
+ // --------------------------------------------------------------------------
796
+ /**
797
+ * Detect comment-quote desync patterns where an unquoted # character is
798
+ * followed by quote characters in the same line. This can be used to inject
799
+ * commands via multi-line input where the first line's comment contains
800
+ * unbalanced quotes that change parsing of subsequent lines.
801
+ *
802
+ * @param command - The raw shell command to analyze
803
+ * @returns Error message if comment-quote desync found, null if safe
804
+ */
805
+ export function detectCommentQuoteDesync(command) {
806
+ const tracker = new ShellQuoteTracker();
807
+ for (let i = 0; i < command.length; i++) {
808
+ const ch = command[i];
809
+ // Check for unquoted # (shell comment start)
810
+ if (ch === "#" && tracker.state === "NORMAL" && !tracker.escaped) {
811
+ // Scan rest of line for quote characters
812
+ const rest = command.slice(i + 1);
813
+ const lineEnd = rest.indexOf("\n");
814
+ const commentContent = lineEnd >= 0 ? rest.slice(0, lineEnd) : rest;
815
+ if (/['"]/.test(commentContent)) {
816
+ return "Comment-quote desync detected: unquoted # followed by quote characters could enable injection.";
817
+ }
818
+ // Skip to end of line since it's a comment
819
+ if (lineEnd >= 0) {
820
+ i += lineEnd + 1;
821
+ continue;
822
+ }
823
+ break; // rest of command is comment
824
+ }
825
+ tracker.feed(ch);
826
+ }
827
+ return null;
828
+ }
829
+ // --------------------------------------------------------------------------
830
+ // Pipeline entry point
831
+ // --------------------------------------------------------------------------
832
+ /**
833
+ * Unified exec command validation pipeline. Composes all security gates in
834
+ * order: sanitize -> substitution -> pipe -> denylist -> IFS -> brace ->
835
+ * proc -> desync -> split+denylist+paths+redirects+zsh -> env.
836
+ * Used by both `createExecTool()` runtime and `tool-metadata-registry.ts`
837
+ * pre-flight registration.
838
+ *
839
+ * @param command - The raw shell command to validate
840
+ * @param env - Optional environment variable overrides to validate
841
+ * @returns Object with `message` and `blocker` fields if blocked, null if valid
842
+ */
843
+ export function validateExecCommand(command, env) {
844
+ // Gate 0: invisible character sanitization
845
+ const sanitizeError = sanitizeCommandInput(command);
846
+ if (sanitizeError)
847
+ return { message: sanitizeError, blocker: "sanitize" };
848
+ // Gate 1: shell substitution detection
849
+ const subError = detectShellSubstitutions(command);
850
+ if (subError)
851
+ return { message: subError, blocker: "substitution" };
852
+ // Gate 2: dangerous pipe target detection (pre-split)
853
+ const pipeError = detectDangerousPipeTargets(command);
854
+ if (pipeError)
855
+ return { message: pipeError, blocker: "pipe" };
856
+ // Gate 2.5: pre-split denylist for patterns that span segment boundaries
857
+ // (e.g. fork bomb ":(){ :|:& };:" contains | and ; which are segment delimiters)
858
+ const preSplitError = validateCommand(command);
859
+ if (preSplitError)
860
+ return { message: preSplitError, blocker: "denylist" };
861
+ // Gate 6: IFS injection
862
+ const ifsError = detectIFSInjection(command);
863
+ if (ifsError)
864
+ return { message: ifsError, blocker: "ifs" };
865
+ // Gate 8: Brace expansion
866
+ const braceError = detectBraceExpansion(command);
867
+ if (braceError)
868
+ return { message: braceError, blocker: "brace" };
869
+ // Gate 11: /proc/environ access
870
+ const procError = detectProcEnvironAccess(command);
871
+ if (procError)
872
+ return { message: procError, blocker: "proc" };
873
+ // Gate 12: Comment-quote desync
874
+ const desyncError = detectCommentQuoteDesync(command);
875
+ if (desyncError)
876
+ return { message: desyncError, blocker: "desync" };
877
+ // Gate 3+4: split compound commands, validate each segment against denylist
878
+ const segments = splitCommandSegments(command);
879
+ for (const segment of segments) {
880
+ const cmdError = validateCommand(segment);
881
+ if (cmdError) {
882
+ return {
883
+ message: `${cmdError} (in segment: ${segment.slice(0, 100)})`,
884
+ blocker: "denylist",
885
+ };
886
+ }
887
+ // Dangerous path protection for mutation commands
888
+ const pathError = validateDangerousPaths(segment);
889
+ if (pathError)
890
+ return { message: pathError, blocker: "path" };
891
+ // Redirect target protection
892
+ const redirectError = validateRedirectTargets(segment);
893
+ if (redirectError)
894
+ return { message: redirectError, blocker: "redirect" };
895
+ // Gate 7: Zsh dangerous commands
896
+ const zshError = detectZshDangerousCommands(segment);
897
+ if (zshError)
898
+ return { message: zshError, blocker: "zsh" };
899
+ }
900
+ // Gate 5: env var validation
901
+ if (env) {
902
+ const envError = validateEnvVars(env);
903
+ if (envError)
904
+ return { message: envError, blocker: "env" };
905
+ }
906
+ return null;
907
+ }
908
+ // --------------------------------------------------------------------------
909
+ // Semantic exit code interpretation
910
+ // --------------------------------------------------------------------------
911
+ /**
912
+ * Commands where non-zero exit codes have specific, non-error meanings.
913
+ * Maps command basename -> exit code -> human-readable interpretation.
914
+ */
915
+ const SEMANTIC_EXIT_CODES = new Map([
916
+ ["grep", new Map([
917
+ [0, "Pattern found"],
918
+ [1, "No match found (this is normal, not an error)"],
919
+ ])],
920
+ ["rg", new Map([
921
+ [0, "Pattern found"],
922
+ [1, "No match found (this is normal, not an error)"],
923
+ ])],
924
+ ["egrep", new Map([
925
+ [0, "Pattern found"],
926
+ [1, "No match found (this is normal, not an error)"],
927
+ ])],
928
+ ["fgrep", new Map([
929
+ [0, "Pattern found"],
930
+ [1, "No match found (this is normal, not an error)"],
931
+ ])],
932
+ ["diff", new Map([
933
+ [0, "Files are identical"],
934
+ [1, "Files differ (this is normal, not an error)"],
935
+ ])],
936
+ ["cmp", new Map([
937
+ [0, "Files are identical"],
938
+ [1, "Files differ (this is normal, not an error)"],
939
+ ])],
940
+ ["test", new Map([
941
+ [0, "Condition is true"],
942
+ [1, "Condition is false (this is normal, not an error)"],
943
+ ])],
944
+ ["[", new Map([
945
+ [0, "Condition is true"],
946
+ [1, "Condition is false (this is normal, not an error)"],
947
+ ])],
948
+ ["find", new Map([
949
+ [0, "Search completed successfully"],
950
+ [1, "Search completed with some inaccessible directories (partial results returned)"],
951
+ ])],
952
+ ]);
953
+ /**
954
+ * Interpret an exit code for a specific command. Returns a human-readable
955
+ * string if the command has known semantic exit codes, undefined otherwise.
956
+ *
957
+ * For piped commands (containing |), the exit code comes from the LAST
958
+ * command in the pipeline (bash default behavior). This function extracts
959
+ * the last command's basename for interpretation. For non-piped commands,
960
+ * the first word is used.
961
+ *
962
+ * Skipped when the command contains && or || (exit code semantics become
963
+ * ambiguous with conditional chaining).
964
+ *
965
+ * @param command - The full command string
966
+ * @param exitCode - The process exit code
967
+ * @returns Interpretation string, or undefined if no semantic meaning known
968
+ */
969
+ export function interpretExitCode(command, exitCode) {
970
+ // Skip interpretation for conditional chains -- exit code semantics are ambiguous
971
+ if (command.includes("&&") || command.includes("||"))
972
+ return undefined;
973
+ // For pipes, exit code comes from the LAST command (bash default)
974
+ let targetCommand;
975
+ if (command.includes("|")) {
976
+ const pipeSegments = command.split("|");
977
+ targetCommand = pipeSegments[pipeSegments.length - 1].trim();
978
+ }
979
+ else {
980
+ targetCommand = command.trim();
981
+ }
982
+ const firstWord = targetCommand.split(/\s/)[0];
983
+ const basename = firstWord.includes("/") ? firstWord.split("/").pop() : firstWord;
984
+ const codeMap = SEMANTIC_EXIT_CODES.get(basename);
985
+ if (!codeMap)
986
+ return undefined;
987
+ return codeMap.get(exitCode);
988
+ }