@syrin/cli 1.3.0

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 (438) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +302 -0
  3. package/dist/cli/commands/analyse.d.ts +16 -0
  4. package/dist/cli/commands/analyse.js +61 -0
  5. package/dist/cli/commands/dev.d.ts +23 -0
  6. package/dist/cli/commands/dev.js +419 -0
  7. package/dist/cli/commands/doctor.d.ts +10 -0
  8. package/dist/cli/commands/doctor.js +195 -0
  9. package/dist/cli/commands/index.d.ts +12 -0
  10. package/dist/cli/commands/index.js +12 -0
  11. package/dist/cli/commands/init.d.ts +16 -0
  12. package/dist/cli/commands/init.js +90 -0
  13. package/dist/cli/commands/list.d.ts +15 -0
  14. package/dist/cli/commands/list.js +50 -0
  15. package/dist/cli/commands/rollback.d.ts +12 -0
  16. package/dist/cli/commands/rollback.js +101 -0
  17. package/dist/cli/commands/test.d.ts +31 -0
  18. package/dist/cli/commands/test.js +88 -0
  19. package/dist/cli/commands/update.d.ts +9 -0
  20. package/dist/cli/commands/update.js +76 -0
  21. package/dist/cli/index.d.ts +13 -0
  22. package/dist/cli/index.js +342 -0
  23. package/dist/cli/prompts/index.d.ts +5 -0
  24. package/dist/cli/prompts/index.js +5 -0
  25. package/dist/cli/prompts/init-prompt.d.ts +17 -0
  26. package/dist/cli/prompts/init-prompt.js +263 -0
  27. package/dist/cli/utils/command-error-handler.d.ts +14 -0
  28. package/dist/cli/utils/command-error-handler.js +35 -0
  29. package/dist/cli/utils/common-types.d.ts +24 -0
  30. package/dist/cli/utils/common-types.js +6 -0
  31. package/dist/cli/utils/connection-handler.d.ts +37 -0
  32. package/dist/cli/utils/connection-handler.js +90 -0
  33. package/dist/cli/utils/index.d.ts +11 -0
  34. package/dist/cli/utils/index.js +11 -0
  35. package/dist/cli/utils/option-parsers.d.ts +41 -0
  36. package/dist/cli/utils/option-parsers.js +92 -0
  37. package/dist/cli/utils/output-utils.d.ts +12 -0
  38. package/dist/cli/utils/output-utils.js +21 -0
  39. package/dist/cli/utils/transport-resolver.d.ts +33 -0
  40. package/dist/cli/utils/transport-resolver.js +82 -0
  41. package/dist/cli/utils/version-banner.d.ts +10 -0
  42. package/dist/cli/utils/version-banner.js +26 -0
  43. package/dist/config/env-checker.d.ts +37 -0
  44. package/dist/config/env-checker.js +136 -0
  45. package/dist/config/generator.d.ts +19 -0
  46. package/dist/config/generator.js +196 -0
  47. package/dist/config/index.d.ts +9 -0
  48. package/dist/config/index.js +9 -0
  49. package/dist/config/loader.d.ts +19 -0
  50. package/dist/config/loader.js +57 -0
  51. package/dist/config/schema.d.ts +42 -0
  52. package/dist/config/schema.js +181 -0
  53. package/dist/config/syrin.template.yaml +127 -0
  54. package/dist/config/types.d.ts +87 -0
  55. package/dist/config/types.js +6 -0
  56. package/dist/constants/app.d.ts +9 -0
  57. package/dist/constants/app.js +9 -0
  58. package/dist/constants/commands.d.ts +43 -0
  59. package/dist/constants/commands.js +43 -0
  60. package/dist/constants/defaults.d.ts +18 -0
  61. package/dist/constants/defaults.js +18 -0
  62. package/dist/constants/env-vars.d.ts +11 -0
  63. package/dist/constants/env-vars.js +11 -0
  64. package/dist/constants/icons.d.ts +23 -0
  65. package/dist/constants/icons.js +23 -0
  66. package/dist/constants/index.d.ts +17 -0
  67. package/dist/constants/index.js +17 -0
  68. package/dist/constants/labels.d.ts +38 -0
  69. package/dist/constants/labels.js +42 -0
  70. package/dist/constants/links.d.ts +10 -0
  71. package/dist/constants/links.js +11 -0
  72. package/dist/constants/list.d.ts +10 -0
  73. package/dist/constants/list.js +9 -0
  74. package/dist/constants/llm.d.ts +26 -0
  75. package/dist/constants/llm.js +25 -0
  76. package/dist/constants/messages.d.ts +107 -0
  77. package/dist/constants/messages.js +138 -0
  78. package/dist/constants/paths.d.ts +29 -0
  79. package/dist/constants/paths.js +29 -0
  80. package/dist/constants/transport.d.ts +9 -0
  81. package/dist/constants/transport.js +8 -0
  82. package/dist/events/emitter.d.ts +64 -0
  83. package/dist/events/emitter.js +142 -0
  84. package/dist/events/event-type.d.ts +66 -0
  85. package/dist/events/event-type.js +81 -0
  86. package/dist/events/payloads/diagnostics.d.ts +24 -0
  87. package/dist/events/payloads/diagnostics.js +5 -0
  88. package/dist/events/payloads/index.d.ts +15 -0
  89. package/dist/events/payloads/index.js +6 -0
  90. package/dist/events/payloads/llm.d.ts +58 -0
  91. package/dist/events/payloads/llm.js +6 -0
  92. package/dist/events/payloads/registry.d.ts +28 -0
  93. package/dist/events/payloads/registry.js +5 -0
  94. package/dist/events/payloads/session.d.ts +32 -0
  95. package/dist/events/payloads/session.js +5 -0
  96. package/dist/events/payloads/testing.d.ts +17 -0
  97. package/dist/events/payloads/testing.js +5 -0
  98. package/dist/events/payloads/tool.d.ts +29 -0
  99. package/dist/events/payloads/tool.js +5 -0
  100. package/dist/events/payloads/transport.d.ts +30 -0
  101. package/dist/events/payloads/transport.js +5 -0
  102. package/dist/events/payloads/validation.d.ts +37 -0
  103. package/dist/events/payloads/validation.js +5 -0
  104. package/dist/events/payloads/workflow.d.ts +45 -0
  105. package/dist/events/payloads/workflow.js +5 -0
  106. package/dist/events/store/file-store.d.ts +37 -0
  107. package/dist/events/store/file-store.js +113 -0
  108. package/dist/events/store/index.d.ts +7 -0
  109. package/dist/events/store/index.js +6 -0
  110. package/dist/events/store/memory-store.d.ts +26 -0
  111. package/dist/events/store/memory-store.js +39 -0
  112. package/dist/events/store.d.ts +11 -0
  113. package/dist/events/store.js +2 -0
  114. package/dist/events/types.d.ts +14 -0
  115. package/dist/events/types.js +2 -0
  116. package/dist/index.d.ts +8 -0
  117. package/dist/index.js +30 -0
  118. package/dist/presentation/analysis-ui.d.ts +24 -0
  119. package/dist/presentation/analysis-ui.js +158 -0
  120. package/dist/presentation/dev/chat-ui-types.d.ts +68 -0
  121. package/dist/presentation/dev/chat-ui-types.js +5 -0
  122. package/dist/presentation/dev/chat-ui.d.ts +61 -0
  123. package/dist/presentation/dev/chat-ui.js +714 -0
  124. package/dist/presentation/dev/components/assistant-message.d.ts +19 -0
  125. package/dist/presentation/dev/components/assistant-message.js +36 -0
  126. package/dist/presentation/dev/components/header.d.ts +16 -0
  127. package/dist/presentation/dev/components/header.js +22 -0
  128. package/dist/presentation/dev/components/index.d.ts +13 -0
  129. package/dist/presentation/dev/components/index.js +13 -0
  130. package/dist/presentation/dev/components/input-panel.d.ts +22 -0
  131. package/dist/presentation/dev/components/input-panel.js +43 -0
  132. package/dist/presentation/dev/components/message-component.d.ts +16 -0
  133. package/dist/presentation/dev/components/message-component.js +51 -0
  134. package/dist/presentation/dev/components/messages-list.d.ts +24 -0
  135. package/dist/presentation/dev/components/messages-list.js +48 -0
  136. package/dist/presentation/dev/components/system-message.d.ts +16 -0
  137. package/dist/presentation/dev/components/system-message.js +26 -0
  138. package/dist/presentation/dev/components/user-message.d.ts +21 -0
  139. package/dist/presentation/dev/components/user-message.js +35 -0
  140. package/dist/presentation/dev/components/welcome-banner.d.ts +24 -0
  141. package/dist/presentation/dev/components/welcome-banner.js +146 -0
  142. package/dist/presentation/dev/goodbye-messages.d.ts +31 -0
  143. package/dist/presentation/dev/goodbye-messages.js +100 -0
  144. package/dist/presentation/dev/index.d.ts +5 -0
  145. package/dist/presentation/dev/index.js +5 -0
  146. package/dist/presentation/dev/text-wrapper.d.ts +30 -0
  147. package/dist/presentation/dev/text-wrapper.js +74 -0
  148. package/dist/presentation/dev-ui.d.ts +33 -0
  149. package/dist/presentation/dev-ui.js +246 -0
  150. package/dist/presentation/doctor-ui.d.ts +40 -0
  151. package/dist/presentation/doctor-ui.js +157 -0
  152. package/dist/presentation/init-ui.d.ts +14 -0
  153. package/dist/presentation/init-ui.js +41 -0
  154. package/dist/presentation/list-ui.d.ts +44 -0
  155. package/dist/presentation/list-ui.js +139 -0
  156. package/dist/presentation/test-ui.d.ts +49 -0
  157. package/dist/presentation/test-ui.js +358 -0
  158. package/dist/runtime/analysis/analyser.d.ts +14 -0
  159. package/dist/runtime/analysis/analyser.js +88 -0
  160. package/dist/runtime/analysis/dependencies.d.ts +10 -0
  161. package/dist/runtime/analysis/dependencies.js +140 -0
  162. package/dist/runtime/analysis/index.d.ts +10 -0
  163. package/dist/runtime/analysis/index.js +10 -0
  164. package/dist/runtime/analysis/indexer.d.ts +10 -0
  165. package/dist/runtime/analysis/indexer.js +62 -0
  166. package/dist/runtime/analysis/loader.d.ts +15 -0
  167. package/dist/runtime/analysis/loader.js +47 -0
  168. package/dist/runtime/analysis/normalizer.d.ts +14 -0
  169. package/dist/runtime/analysis/normalizer.js +184 -0
  170. package/dist/runtime/analysis/rules/__test-helpers__.d.ts +18 -0
  171. package/dist/runtime/analysis/rules/__test-helpers__.js +40 -0
  172. package/dist/runtime/analysis/rules/base.d.ts +38 -0
  173. package/dist/runtime/analysis/rules/base.js +23 -0
  174. package/dist/runtime/analysis/rules/error-codes.d.ts +64 -0
  175. package/dist/runtime/analysis/rules/error-codes.js +73 -0
  176. package/dist/runtime/analysis/rules/errors/e000-tool-not-found.d.ts +35 -0
  177. package/dist/runtime/analysis/rules/errors/e000-tool-not-found.js +32 -0
  178. package/dist/runtime/analysis/rules/errors/e001-missing-output-schema.d.ts +22 -0
  179. package/dist/runtime/analysis/rules/errors/e001-missing-output-schema.js +30 -0
  180. package/dist/runtime/analysis/rules/errors/e002-underspecified-input.d.ts +24 -0
  181. package/dist/runtime/analysis/rules/errors/e002-underspecified-input.js +52 -0
  182. package/dist/runtime/analysis/rules/errors/e003-type-mismatch.d.ts +23 -0
  183. package/dist/runtime/analysis/rules/errors/e003-type-mismatch.js +73 -0
  184. package/dist/runtime/analysis/rules/errors/e004-free-text-propagation.d.ts +23 -0
  185. package/dist/runtime/analysis/rules/errors/e004-free-text-propagation.js +47 -0
  186. package/dist/runtime/analysis/rules/errors/e005-tool-ambiguity.d.ts +25 -0
  187. package/dist/runtime/analysis/rules/errors/e005-tool-ambiguity.js +73 -0
  188. package/dist/runtime/analysis/rules/errors/e006-param-not-in-description.d.ts +22 -0
  189. package/dist/runtime/analysis/rules/errors/e006-param-not-in-description.js +57 -0
  190. package/dist/runtime/analysis/rules/errors/e007-output-not-guaranteed.d.ts +23 -0
  191. package/dist/runtime/analysis/rules/errors/e007-output-not-guaranteed.js +56 -0
  192. package/dist/runtime/analysis/rules/errors/e008-circular-dependency.d.ts +22 -0
  193. package/dist/runtime/analysis/rules/errors/e008-circular-dependency.js +84 -0
  194. package/dist/runtime/analysis/rules/errors/e009-implicit-user-input.d.ts +23 -0
  195. package/dist/runtime/analysis/rules/errors/e009-implicit-user-input.js +89 -0
  196. package/dist/runtime/analysis/rules/errors/e010-non-serializable.d.ts +25 -0
  197. package/dist/runtime/analysis/rules/errors/e010-non-serializable.js +46 -0
  198. package/dist/runtime/analysis/rules/errors/e011-missing-tool-description.d.ts +24 -0
  199. package/dist/runtime/analysis/rules/errors/e011-missing-tool-description.js +33 -0
  200. package/dist/runtime/analysis/rules/errors/e012-side-effect-detected.d.ts +39 -0
  201. package/dist/runtime/analysis/rules/errors/e012-side-effect-detected.js +40 -0
  202. package/dist/runtime/analysis/rules/errors/e013-non-deterministic-output.d.ts +37 -0
  203. package/dist/runtime/analysis/rules/errors/e013-non-deterministic-output.js +34 -0
  204. package/dist/runtime/analysis/rules/errors/e013-output-explosion.d.ts +39 -0
  205. package/dist/runtime/analysis/rules/errors/e013-output-explosion.js +36 -0
  206. package/dist/runtime/analysis/rules/errors/e014-hidden-dependency.d.ts +42 -0
  207. package/dist/runtime/analysis/rules/errors/e014-hidden-dependency.js +46 -0
  208. package/dist/runtime/analysis/rules/errors/e014-output-explosion.d.ts +39 -0
  209. package/dist/runtime/analysis/rules/errors/e014-output-explosion.js +36 -0
  210. package/dist/runtime/analysis/rules/errors/e015-hidden-dependency.d.ts +42 -0
  211. package/dist/runtime/analysis/rules/errors/e015-hidden-dependency.js +46 -0
  212. package/dist/runtime/analysis/rules/errors/e015-unbounded-execution.d.ts +44 -0
  213. package/dist/runtime/analysis/rules/errors/e015-unbounded-execution.js +66 -0
  214. package/dist/runtime/analysis/rules/errors/e016-output-validation-failed.d.ts +43 -0
  215. package/dist/runtime/analysis/rules/errors/e016-output-validation-failed.js +42 -0
  216. package/dist/runtime/analysis/rules/errors/e016-unbounded-execution.d.ts +44 -0
  217. package/dist/runtime/analysis/rules/errors/e016-unbounded-execution.js +66 -0
  218. package/dist/runtime/analysis/rules/errors/e017-input-validation-failed.d.ts +57 -0
  219. package/dist/runtime/analysis/rules/errors/e017-input-validation-failed.js +80 -0
  220. package/dist/runtime/analysis/rules/errors/e017-output-validation-failed.d.ts +43 -0
  221. package/dist/runtime/analysis/rules/errors/e017-output-validation-failed.js +42 -0
  222. package/dist/runtime/analysis/rules/errors/e018-input-validation-failed.d.ts +57 -0
  223. package/dist/runtime/analysis/rules/errors/e018-input-validation-failed.js +80 -0
  224. package/dist/runtime/analysis/rules/errors/e018-tool-execution-failed.d.ts +38 -0
  225. package/dist/runtime/analysis/rules/errors/e018-tool-execution-failed.js +37 -0
  226. package/dist/runtime/analysis/rules/errors/e019-tool-execution-failed.d.ts +38 -0
  227. package/dist/runtime/analysis/rules/errors/e019-tool-execution-failed.js +37 -0
  228. package/dist/runtime/analysis/rules/errors/e019-unexpected-test-result.d.ts +65 -0
  229. package/dist/runtime/analysis/rules/errors/e019-unexpected-test-result.js +109 -0
  230. package/dist/runtime/analysis/rules/errors/e020-unexpected-test-result.d.ts +65 -0
  231. package/dist/runtime/analysis/rules/errors/e020-unexpected-test-result.js +109 -0
  232. package/dist/runtime/analysis/rules/errors/e100-missing-output-schema.d.ts +22 -0
  233. package/dist/runtime/analysis/rules/errors/e100-missing-output-schema.js +30 -0
  234. package/dist/runtime/analysis/rules/errors/e101-missing-tool-description.d.ts +24 -0
  235. package/dist/runtime/analysis/rules/errors/e101-missing-tool-description.js +33 -0
  236. package/dist/runtime/analysis/rules/errors/e102-underspecified-input.d.ts +24 -0
  237. package/dist/runtime/analysis/rules/errors/e102-underspecified-input.js +52 -0
  238. package/dist/runtime/analysis/rules/errors/e103-type-mismatch.d.ts +23 -0
  239. package/dist/runtime/analysis/rules/errors/e103-type-mismatch.js +72 -0
  240. package/dist/runtime/analysis/rules/errors/e104-param-not-in-description.d.ts +22 -0
  241. package/dist/runtime/analysis/rules/errors/e104-param-not-in-description.js +57 -0
  242. package/dist/runtime/analysis/rules/errors/e105-free-text-propagation.d.ts +23 -0
  243. package/dist/runtime/analysis/rules/errors/e105-free-text-propagation.js +47 -0
  244. package/dist/runtime/analysis/rules/errors/e106-output-not-guaranteed.d.ts +23 -0
  245. package/dist/runtime/analysis/rules/errors/e106-output-not-guaranteed.js +58 -0
  246. package/dist/runtime/analysis/rules/errors/e107-circular-dependency.d.ts +22 -0
  247. package/dist/runtime/analysis/rules/errors/e107-circular-dependency.js +84 -0
  248. package/dist/runtime/analysis/rules/errors/e108-implicit-user-input.d.ts +23 -0
  249. package/dist/runtime/analysis/rules/errors/e108-implicit-user-input.js +94 -0
  250. package/dist/runtime/analysis/rules/errors/e109-non-serializable.d.ts +25 -0
  251. package/dist/runtime/analysis/rules/errors/e109-non-serializable.js +44 -0
  252. package/dist/runtime/analysis/rules/errors/e110-tool-ambiguity.d.ts +25 -0
  253. package/dist/runtime/analysis/rules/errors/e110-tool-ambiguity.js +73 -0
  254. package/dist/runtime/analysis/rules/errors/e200-input-validation-failed.d.ts +57 -0
  255. package/dist/runtime/analysis/rules/errors/e200-input-validation-failed.js +71 -0
  256. package/dist/runtime/analysis/rules/errors/e300-output-validation-failed.d.ts +43 -0
  257. package/dist/runtime/analysis/rules/errors/e300-output-validation-failed.js +44 -0
  258. package/dist/runtime/analysis/rules/errors/e301-output-explosion.d.ts +39 -0
  259. package/dist/runtime/analysis/rules/errors/e301-output-explosion.js +36 -0
  260. package/dist/runtime/analysis/rules/errors/e400-tool-execution-failed.d.ts +38 -0
  261. package/dist/runtime/analysis/rules/errors/e400-tool-execution-failed.js +37 -0
  262. package/dist/runtime/analysis/rules/errors/e403-unbounded-execution.d.ts +44 -0
  263. package/dist/runtime/analysis/rules/errors/e403-unbounded-execution.js +66 -0
  264. package/dist/runtime/analysis/rules/errors/e500-side-effect-detected.d.ts +39 -0
  265. package/dist/runtime/analysis/rules/errors/e500-side-effect-detected.js +40 -0
  266. package/dist/runtime/analysis/rules/errors/e501-hidden-dependency.d.ts +47 -0
  267. package/dist/runtime/analysis/rules/errors/e501-hidden-dependency.js +46 -0
  268. package/dist/runtime/analysis/rules/errors/e600-unexpected-test-result.d.ts +65 -0
  269. package/dist/runtime/analysis/rules/errors/e600-unexpected-test-result.js +109 -0
  270. package/dist/runtime/analysis/rules/index.d.ts +18 -0
  271. package/dist/runtime/analysis/rules/index.js +94 -0
  272. package/dist/runtime/analysis/rules/warnings/w001-implicit-dependency.d.ts +22 -0
  273. package/dist/runtime/analysis/rules/warnings/w001-implicit-dependency.js +39 -0
  274. package/dist/runtime/analysis/rules/warnings/w002-free-text-without-normalization.d.ts +24 -0
  275. package/dist/runtime/analysis/rules/warnings/w002-free-text-without-normalization.js +40 -0
  276. package/dist/runtime/analysis/rules/warnings/w003-missing-examples.d.ts +22 -0
  277. package/dist/runtime/analysis/rules/warnings/w003-missing-examples.js +84 -0
  278. package/dist/runtime/analysis/rules/warnings/w004-overloaded-responsibility.d.ts +23 -0
  279. package/dist/runtime/analysis/rules/warnings/w004-overloaded-responsibility.js +96 -0
  280. package/dist/runtime/analysis/rules/warnings/w005-generic-description.d.ts +53 -0
  281. package/dist/runtime/analysis/rules/warnings/w005-generic-description.js +108 -0
  282. package/dist/runtime/analysis/rules/warnings/w006-optional-as-required.d.ts +22 -0
  283. package/dist/runtime/analysis/rules/warnings/w006-optional-as-required.js +44 -0
  284. package/dist/runtime/analysis/rules/warnings/w007-broad-output-schema.d.ts +23 -0
  285. package/dist/runtime/analysis/rules/warnings/w007-broad-output-schema.js +37 -0
  286. package/dist/runtime/analysis/rules/warnings/w008-multiple-entry-points.d.ts +22 -0
  287. package/dist/runtime/analysis/rules/warnings/w008-multiple-entry-points.js +97 -0
  288. package/dist/runtime/analysis/rules/warnings/w009-hidden-side-effects.d.ts +23 -0
  289. package/dist/runtime/analysis/rules/warnings/w009-hidden-side-effects.js +88 -0
  290. package/dist/runtime/analysis/rules/warnings/w010-output-not-reusable.d.ts +22 -0
  291. package/dist/runtime/analysis/rules/warnings/w010-output-not-reusable.js +81 -0
  292. package/dist/runtime/analysis/rules/warnings/w021-weak-schema.d.ts +40 -0
  293. package/dist/runtime/analysis/rules/warnings/w021-weak-schema.js +32 -0
  294. package/dist/runtime/analysis/rules/warnings/w022-high-entropy-output.d.ts +39 -0
  295. package/dist/runtime/analysis/rules/warnings/w022-high-entropy-output.js +36 -0
  296. package/dist/runtime/analysis/rules/warnings/w023-unstable-defaults.d.ts +38 -0
  297. package/dist/runtime/analysis/rules/warnings/w023-unstable-defaults.js +36 -0
  298. package/dist/runtime/analysis/rules/warnings/w100-implicit-dependency.d.ts +22 -0
  299. package/dist/runtime/analysis/rules/warnings/w100-implicit-dependency.js +89 -0
  300. package/dist/runtime/analysis/rules/warnings/w101-free-text-without-normalization.d.ts +24 -0
  301. package/dist/runtime/analysis/rules/warnings/w101-free-text-without-normalization.js +40 -0
  302. package/dist/runtime/analysis/rules/warnings/w102-missing-examples.d.ts +22 -0
  303. package/dist/runtime/analysis/rules/warnings/w102-missing-examples.js +76 -0
  304. package/dist/runtime/analysis/rules/warnings/w103-overloaded-responsibility.d.ts +23 -0
  305. package/dist/runtime/analysis/rules/warnings/w103-overloaded-responsibility.js +91 -0
  306. package/dist/runtime/analysis/rules/warnings/w104-generic-description.d.ts +53 -0
  307. package/dist/runtime/analysis/rules/warnings/w104-generic-description.js +108 -0
  308. package/dist/runtime/analysis/rules/warnings/w105-optional-as-required.d.ts +22 -0
  309. package/dist/runtime/analysis/rules/warnings/w105-optional-as-required.js +45 -0
  310. package/dist/runtime/analysis/rules/warnings/w106-broad-output-schema.d.ts +23 -0
  311. package/dist/runtime/analysis/rules/warnings/w106-broad-output-schema.js +37 -0
  312. package/dist/runtime/analysis/rules/warnings/w107-multiple-entry-points.d.ts +22 -0
  313. package/dist/runtime/analysis/rules/warnings/w107-multiple-entry-points.js +97 -0
  314. package/dist/runtime/analysis/rules/warnings/w108-hidden-side-effects.d.ts +23 -0
  315. package/dist/runtime/analysis/rules/warnings/w108-hidden-side-effects.js +94 -0
  316. package/dist/runtime/analysis/rules/warnings/w109-output-not-reusable.d.ts +22 -0
  317. package/dist/runtime/analysis/rules/warnings/w109-output-not-reusable.js +63 -0
  318. package/dist/runtime/analysis/rules/warnings/w110-weak-schema.d.ts +40 -0
  319. package/dist/runtime/analysis/rules/warnings/w110-weak-schema.js +32 -0
  320. package/dist/runtime/analysis/rules/warnings/w300-high-entropy-output.d.ts +39 -0
  321. package/dist/runtime/analysis/rules/warnings/w300-high-entropy-output.js +47 -0
  322. package/dist/runtime/analysis/rules/warnings/w301-unstable-defaults.d.ts +38 -0
  323. package/dist/runtime/analysis/rules/warnings/w301-unstable-defaults.js +36 -0
  324. package/dist/runtime/analysis/strict-mode.d.ts +21 -0
  325. package/dist/runtime/analysis/strict-mode.js +44 -0
  326. package/dist/runtime/analysis/types.d.ts +133 -0
  327. package/dist/runtime/analysis/types.js +6 -0
  328. package/dist/runtime/analysis/utils.d.ts +19 -0
  329. package/dist/runtime/analysis/utils.js +21 -0
  330. package/dist/runtime/dev/data-manager.d.ts +55 -0
  331. package/dist/runtime/dev/data-manager.js +87 -0
  332. package/dist/runtime/dev/event-mapper.d.ts +100 -0
  333. package/dist/runtime/dev/event-mapper.js +400 -0
  334. package/dist/runtime/dev/formatter.d.ts +94 -0
  335. package/dist/runtime/dev/formatter.js +236 -0
  336. package/dist/runtime/dev/index.d.ts +9 -0
  337. package/dist/runtime/dev/index.js +9 -0
  338. package/dist/runtime/dev/repl.d.ts +114 -0
  339. package/dist/runtime/dev/repl.js +310 -0
  340. package/dist/runtime/dev/session.d.ts +86 -0
  341. package/dist/runtime/dev/session.js +447 -0
  342. package/dist/runtime/dev/stack-trace.d.ts +77 -0
  343. package/dist/runtime/dev/stack-trace.js +286 -0
  344. package/dist/runtime/dev/types.d.ts +54 -0
  345. package/dist/runtime/dev/types.js +5 -0
  346. package/dist/runtime/llm/claude.d.ts +27 -0
  347. package/dist/runtime/llm/claude.js +150 -0
  348. package/dist/runtime/llm/factory.d.ts +30 -0
  349. package/dist/runtime/llm/factory.js +78 -0
  350. package/dist/runtime/llm/index.d.ts +10 -0
  351. package/dist/runtime/llm/index.js +10 -0
  352. package/dist/runtime/llm/ollama.d.ts +45 -0
  353. package/dist/runtime/llm/ollama.js +449 -0
  354. package/dist/runtime/llm/openai.d.ts +27 -0
  355. package/dist/runtime/llm/openai.js +170 -0
  356. package/dist/runtime/llm/provider.d.ts +32 -0
  357. package/dist/runtime/llm/provider.js +6 -0
  358. package/dist/runtime/llm/types.d.ts +55 -0
  359. package/dist/runtime/llm/types.js +6 -0
  360. package/dist/runtime/mcp/client/base.d.ts +40 -0
  361. package/dist/runtime/mcp/client/base.js +157 -0
  362. package/dist/runtime/mcp/client/manager.d.ts +91 -0
  363. package/dist/runtime/mcp/client/manager.js +248 -0
  364. package/dist/runtime/mcp/client/process.d.ts +31 -0
  365. package/dist/runtime/mcp/client/process.js +82 -0
  366. package/dist/runtime/mcp/connection.d.ts +63 -0
  367. package/dist/runtime/mcp/connection.js +449 -0
  368. package/dist/runtime/mcp/index.d.ts +9 -0
  369. package/dist/runtime/mcp/index.js +9 -0
  370. package/dist/runtime/mcp/list.d.ts +50 -0
  371. package/dist/runtime/mcp/list.js +65 -0
  372. package/dist/runtime/mcp/stdio-transport.d.ts +23 -0
  373. package/dist/runtime/mcp/stdio-transport.js +71 -0
  374. package/dist/runtime/mcp/types.d.ts +85 -0
  375. package/dist/runtime/mcp/types.js +6 -0
  376. package/dist/runtime/sandbox/executor.d.ts +102 -0
  377. package/dist/runtime/sandbox/executor.js +537 -0
  378. package/dist/runtime/sandbox/index.d.ts +9 -0
  379. package/dist/runtime/sandbox/index.js +9 -0
  380. package/dist/runtime/sandbox/io-monitor.d.ts +78 -0
  381. package/dist/runtime/sandbox/io-monitor.js +98 -0
  382. package/dist/runtime/sandbox/time-parser.d.ts +19 -0
  383. package/dist/runtime/sandbox/time-parser.js +67 -0
  384. package/dist/runtime/sandbox/types.d.ts +58 -0
  385. package/dist/runtime/sandbox/types.js +23 -0
  386. package/dist/runtime/test/behavior-observer.d.ts +61 -0
  387. package/dist/runtime/test/behavior-observer.js +140 -0
  388. package/dist/runtime/test/contract-loader.d.ts +41 -0
  389. package/dist/runtime/test/contract-loader.js +158 -0
  390. package/dist/runtime/test/contract-schema.d.ts +46 -0
  391. package/dist/runtime/test/contract-schema.js +107 -0
  392. package/dist/runtime/test/contract-types.d.ts +106 -0
  393. package/dist/runtime/test/contract-types.js +6 -0
  394. package/dist/runtime/test/dependency-tracker.d.ts +66 -0
  395. package/dist/runtime/test/dependency-tracker.js +80 -0
  396. package/dist/runtime/test/formatters.d.ts +18 -0
  397. package/dist/runtime/test/formatters.js +172 -0
  398. package/dist/runtime/test/index.d.ts +12 -0
  399. package/dist/runtime/test/index.js +13 -0
  400. package/dist/runtime/test/input-generator.d.ts +33 -0
  401. package/dist/runtime/test/input-generator.js +498 -0
  402. package/dist/runtime/test/mcp-root-detector.d.ts +31 -0
  403. package/dist/runtime/test/mcp-root-detector.js +105 -0
  404. package/dist/runtime/test/orchestrator.d.ts +131 -0
  405. package/dist/runtime/test/orchestrator.js +738 -0
  406. package/dist/runtime/test/output-validator.d.ts +44 -0
  407. package/dist/runtime/test/output-validator.js +262 -0
  408. package/dist/runtime/test/retry-tester.d.ts +44 -0
  409. package/dist/runtime/test/retry-tester.js +103 -0
  410. package/dist/runtime/test/runner.d.ts +28 -0
  411. package/dist/runtime/test/runner.js +55 -0
  412. package/dist/runtime/test/synthetic-input-generator.d.ts +11 -0
  413. package/dist/runtime/test/synthetic-input-generator.js +154 -0
  414. package/dist/runtime/test/test-runner.d.ts +28 -0
  415. package/dist/runtime/test/test-runner.js +55 -0
  416. package/dist/types/factories.d.ts +16 -0
  417. package/dist/types/factories.js +43 -0
  418. package/dist/types/ids.d.ts +16 -0
  419. package/dist/types/ids.js +2 -0
  420. package/dist/types/opaque.d.ts +4 -0
  421. package/dist/types/opaque.js +2 -0
  422. package/dist/utils/errors.d.ts +92 -0
  423. package/dist/utils/errors.js +97 -0
  424. package/dist/utils/gitignore.d.ts +11 -0
  425. package/dist/utils/gitignore.js +59 -0
  426. package/dist/utils/json-file-saver.d.ts +17 -0
  427. package/dist/utils/json-file-saver.js +81 -0
  428. package/dist/utils/json-formatter.d.ts +63 -0
  429. package/dist/utils/json-formatter.js +344 -0
  430. package/dist/utils/logger.d.ts +184 -0
  431. package/dist/utils/logger.js +330 -0
  432. package/dist/utils/package-manager.d.ts +30 -0
  433. package/dist/utils/package-manager.js +157 -0
  434. package/dist/utils/version-checker.d.ts +47 -0
  435. package/dist/utils/version-checker.js +167 -0
  436. package/dist/utils/version-display.d.ts +10 -0
  437. package/dist/utils/version-display.js +20 -0
  438. package/package.json +106 -0
@@ -0,0 +1,127 @@
1
+ # Syrin Configuration File
2
+ # ========================
3
+ # This file configures your Syrin runtime environment.
4
+ # For detailed documentation, visit: https://github.com/syrin-labs/cli
5
+
6
+ # Configuration Version
7
+ # The version of this configuration schema.
8
+ version: "{{VERSION}}"
9
+
10
+ # Project Configuration
11
+ # ---------------------
12
+ # Project name: A unique identifier for your MCP server project
13
+ project_name: "{{PROJECT_NAME}}"
14
+
15
+ # Agent name: The name of your AI agent that will interact with the MCP server
16
+ agent_name: "{{AGENT_NAME}}"
17
+
18
+ # Transport Configuration
19
+ # -----------------------
20
+ # Transport type: How Syrin communicates with your MCP server
21
+ # - "stdio": Communicate via standard input/output (spawns the MCP server process)
22
+ # - "http": Communicate via HTTP (connects to a running MCP server)
23
+ transport: "{{TRANSPORT}}"
24
+
25
+ {{#IF_HTTP}}
26
+ # MCP Server URL (required for http transport)
27
+ # The HTTP endpoint where your MCP server is running
28
+ # Example: "http://localhost:8000/mcp"
29
+ mcp_url: "{{MCP_URL}}"
30
+ {{/IF_HTTP}}
31
+ {{#IF_STDIO}}
32
+ # MCP Server URL (not used for stdio transport)
33
+ # Uncomment and configure if you switch to http transport
34
+ # mcp_url: "http://localhost:8000/mcp"
35
+ {{/IF_STDIO}}
36
+
37
+ # Script Configuration
38
+ # --------------------
39
+ # Command to run your MCP server
40
+ # For stdio transport, this is required
41
+ # Use --run-script flag in dev mode to spawn the server internally
42
+ {{#IF_SCRIPT}}
43
+ script: "{{SCRIPT}}"
44
+ {{/IF_SCRIPT}}
45
+ {{#IF_NO_SCRIPT}}
46
+ # script: "python3 server.py"
47
+ {{/IF_NO_SCRIPT}}
48
+
49
+ # LLM Provider Configuration
50
+ # ---------------------------
51
+ # Configure one or more LLM providers for Syrin to use.
52
+ # API keys and model names can be set as:
53
+ # - Environment variable names (recommended for security)
54
+ # - Direct values (not recommended for production)
55
+ # At least one provider must be marked as default: true
56
+
57
+ llm:
58
+ {{#LLM_PROVIDERS}}
59
+ # {{PROVIDER_NAME}} Provider
60
+ {{PROVIDER_NAME}}:
61
+ {{#IF_OLLAMA}}
62
+ # Model name: Required for Ollama (e.g., "llama2", "mistral", "codellama")
63
+ # Can be set as environment variable name or direct value
64
+ # Example: "OLLAMA_MODEL_NAME" (reads from process.env.OLLAMA_MODEL_NAME)
65
+ # Or: "llama2" (direct value)
66
+ MODEL_NAME: "{{MODEL_NAME}}"
67
+ {{/IF_OLLAMA}}
68
+ {{#IF_CLOUD_PROVIDER}}
69
+ # API key: Set as environment variable name or direct value
70
+ # Example: "{{PROVIDER_NAME_UPPER}}_API_KEY" (reads from process.env.{{PROVIDER_NAME_UPPER}}_API_KEY)
71
+ # Or: "sk-..." (direct value, not recommended)
72
+ API_KEY: "{{API_KEY}}"
73
+
74
+ # Model name: Set as environment variable name or direct value
75
+ # Example: "{{PROVIDER_NAME_UPPER}}_MODEL_NAME" (reads from process.env.{{PROVIDER_NAME_UPPER}}_MODEL_NAME)
76
+ # Or: "gpt-4" (direct value)
77
+ MODEL_NAME: "{{MODEL_NAME}}"
78
+ {{/IF_CLOUD_PROVIDER}}
79
+ {{#IF_DEFAULT}}
80
+ # Set as default LLM provider
81
+ default: true
82
+ {{/IF_DEFAULT}}
83
+ {{#IF_NOT_DEFAULT}}
84
+ default: false
85
+ {{/IF_NOT_DEFAULT}}
86
+ {{#IF_OPENAI_AND_NO_CLAUDE}}
87
+
88
+ # Claude Provider (uncomment to enable)
89
+ # claude:
90
+ # API_KEY: "CLAUDE_API_KEY"
91
+ # MODEL_NAME: "CLAUDE_MODEL_NAME"
92
+ # default: false
93
+ {{/IF_OPENAI_AND_NO_CLAUDE}}
94
+ {{#IF_CLAUDE_AND_NO_OPENAI}}
95
+
96
+ # OpenAI Provider (uncomment to enable)
97
+ # openai:
98
+ # API_KEY: "OPENAI_API_KEY"
99
+ # MODEL_NAME: "OPENAI_MODEL_NAME"
100
+ # default: false
101
+ {{/IF_CLAUDE_AND_NO_OPENAI}}
102
+ {{#IF_NO_OLLAMA}}
103
+
104
+ # Ollama Provider - uncomment to enable
105
+ # ollama:
106
+ # MODEL_NAME: "OLLAMA_MODEL_NAME" # or "llama2", "mistral", etc.
107
+ # default: false
108
+ {{/IF_NO_OLLAMA}}
109
+
110
+ {{/LLM_PROVIDERS}}
111
+ # Tool Validation Configuration (v1.3.0)
112
+ # ---------------------------
113
+ # Configure tool-level structural safety validation
114
+ # This section is optional but recommended for production use
115
+
116
+ check:
117
+ # Timeout for tool execution in milliseconds
118
+ timeout_ms: 30000
119
+
120
+ # Tools directory name (relative to project root, default: "tools")
121
+ # tools_dir: tools
122
+
123
+ # Maximum output size in KB (default: 50)
124
+ # max_output_size_kb: 50
125
+
126
+ # Strict mode: warnings become errors (default: false)
127
+ # strict_mode: false
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Configuration type definitions for Syrin.
3
+ * These types represent the structure of the syrin.yaml file.
4
+ */
5
+ import type { ProjectName, AgentName, MCPURL, APIKey, ModelName, ScriptCommand, SyrinVersion } from '../types/ids.js';
6
+ export type TransportType = 'stdio' | 'http';
7
+ export interface LLMProviderConfig {
8
+ /** API key for the LLM provider (can be an environment variable name) - required for cloud providers */
9
+ API_KEY?: APIKey;
10
+ /** Model name to use (can be an environment variable name) - required for cloud providers and Ollama */
11
+ MODEL_NAME?: ModelName;
12
+ /** Whether this is the default LLM provider */
13
+ default?: boolean;
14
+ }
15
+ export interface CheckConfig {
16
+ /** Timeout for tool execution in milliseconds */
17
+ timeout_ms?: number;
18
+ /** Memory limit for sandboxed processes in MB */
19
+ memory_limit_mb?: number;
20
+ /** Tools directory name (relative to project root, default: "tools") */
21
+ tools_dir?: string;
22
+ /** Maximum output size in KB (default: 50) */
23
+ max_output_size_kb?: number;
24
+ /** Number of runs for determinism checking (default: 3) */
25
+ determinism_runs?: number;
26
+ /** Enable retry scenario testing (default: true) */
27
+ test_retries?: boolean;
28
+ /** Maximum retries to test (default: 3) */
29
+ max_retries?: number;
30
+ /** Retry delay in milliseconds (default: 100) */
31
+ retry_delay_ms?: number;
32
+ /** Strict mode: warnings become errors (default: false) */
33
+ strict_mode?: boolean;
34
+ }
35
+ export interface SyrinConfig {
36
+ /** Configuration version */
37
+ version: SyrinVersion;
38
+ /** Project name */
39
+ project_name: ProjectName;
40
+ /** Agent name */
41
+ agent_name: AgentName;
42
+ /** Transport type (stdio or http) */
43
+ transport: TransportType;
44
+ /** MCP server URL (required for http transport) */
45
+ mcp_url?: MCPURL;
46
+ /** Script command to run the MCP server (required for stdio transport) */
47
+ script?: ScriptCommand;
48
+ /** LLM provider configurations */
49
+ llm: Record<string, LLMProviderConfig>;
50
+ /** Tool testing configuration (v1.3.0) */
51
+ check?: CheckConfig;
52
+ }
53
+ /**
54
+ * Options for initializing a new Syrin project.
55
+ */
56
+ export interface InitOptions {
57
+ /** Project name */
58
+ projectName: ProjectName;
59
+ /** Agent name */
60
+ agentName: AgentName;
61
+ /** Transport type */
62
+ transport: TransportType;
63
+ /** MCP server URL (for http transport) */
64
+ mcpUrl?: MCPURL;
65
+ /** Script command to run the MCP server */
66
+ script: ScriptCommand;
67
+ /** LLM providers to configure */
68
+ llmProviders: {
69
+ openai?: {
70
+ apiKey: APIKey;
71
+ modelName: ModelName;
72
+ default?: boolean;
73
+ };
74
+ claude?: {
75
+ apiKey: APIKey;
76
+ modelName: ModelName;
77
+ default?: boolean;
78
+ };
79
+ ollama?: {
80
+ modelName?: ModelName;
81
+ default?: boolean;
82
+ };
83
+ };
84
+ /** Skip interactive prompts (non-interactive mode) */
85
+ nonInteractive?: boolean;
86
+ }
87
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Configuration type definitions for Syrin.
3
+ * These types represent the structure of the syrin.yaml file.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Application metadata constants.
3
+ */
4
+ export declare const PACKAGE_NAME = "@syrin/cli";
5
+ export declare const App: {
6
+ readonly NAME: "Syrin";
7
+ readonly VERSION_KEY: "version";
8
+ };
9
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Application metadata constants.
3
+ */
4
+ export const PACKAGE_NAME = '@syrin/cli';
5
+ export const App = {
6
+ NAME: 'Syrin',
7
+ VERSION_KEY: 'version',
8
+ };
9
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Command name constants.
3
+ * Centralized command names used throughout the CLI.
4
+ */
5
+ /**
6
+ * CLI tool commands (main CLI commands).
7
+ */
8
+ export declare const ToolCommands: {
9
+ /** Main CLI name */
10
+ readonly CLI_NAME: "syrin";
11
+ /** Init command */
12
+ readonly INIT: "syrin init";
13
+ /** Doctor command */
14
+ readonly DOCTOR: "syrin doctor";
15
+ /** Dev command */
16
+ readonly DEV: "syrin dev";
17
+ /** Test command */
18
+ readonly TEST: "syrin test";
19
+ /** List command */
20
+ readonly LIST: "syrin list";
21
+ /** Analyse command */
22
+ readonly ANALYSE: "syrin analyse";
23
+ };
24
+ /**
25
+ * Chat commands (available in dev mode chat interface).
26
+ */
27
+ export declare const ChatCommands: {
28
+ /** Show help message */
29
+ readonly HELP: "/help";
30
+ /** Clear chat history */
31
+ readonly CLEAR: "/clear";
32
+ /** List available MCP tools */
33
+ readonly TOOLS: "/tools";
34
+ /** Show command history */
35
+ readonly HISTORY: "/history";
36
+ /** Save tool result JSON to file */
37
+ readonly SAVE_JSON: "/save-json";
38
+ /** Exit the chat */
39
+ readonly EXIT: "/exit";
40
+ /** Quit the chat (alias for exit) */
41
+ readonly QUIT: "/quit";
42
+ };
43
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Command name constants.
3
+ * Centralized command names used throughout the CLI.
4
+ */
5
+ /**
6
+ * CLI tool commands (main CLI commands).
7
+ */
8
+ export const ToolCommands = {
9
+ /** Main CLI name */
10
+ CLI_NAME: 'syrin',
11
+ /** Init command */
12
+ INIT: 'syrin init',
13
+ /** Doctor command */
14
+ DOCTOR: 'syrin doctor',
15
+ /** Dev command */
16
+ DEV: 'syrin dev',
17
+ /** Test command */
18
+ TEST: 'syrin test',
19
+ /** List command */
20
+ LIST: 'syrin list',
21
+ /** Analyse command */
22
+ ANALYSE: 'syrin analyse',
23
+ };
24
+ /**
25
+ * Chat commands (available in dev mode chat interface).
26
+ */
27
+ export const ChatCommands = {
28
+ /** Show help message */
29
+ HELP: '/help',
30
+ /** Clear chat history */
31
+ CLEAR: '/clear',
32
+ /** List available MCP tools */
33
+ TOOLS: '/tools',
34
+ /** Show command history */
35
+ HISTORY: '/history',
36
+ /** Save tool result JSON to file */
37
+ SAVE_JSON: '/save-json',
38
+ /** Exit the chat */
39
+ EXIT: '/exit',
40
+ /** Quit the chat (alias for exit) */
41
+ QUIT: '/quit',
42
+ };
43
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Default values used throughout the application.
3
+ */
4
+ export declare const Defaults: {
5
+ /** Default MCP server URL */
6
+ readonly MCP_URL: "http://localhost:8000/mcp";
7
+ /** Default transport type */
8
+ readonly TRANSPORT: "stdio";
9
+ /** Default LLM provider */
10
+ readonly LLM_PROVIDER: "openai";
11
+ /** Default agent name */
12
+ readonly AGENT_NAME: "Syrin";
13
+ /** Default script command */
14
+ readonly SCRIPT_COMMAND: "npm run start";
15
+ /** Default working status message */
16
+ readonly WORKING: "working";
17
+ };
18
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Default values used throughout the application.
3
+ */
4
+ export const Defaults = {
5
+ /** Default MCP server URL */
6
+ MCP_URL: 'http://localhost:8000/mcp',
7
+ /** Default transport type */
8
+ TRANSPORT: 'stdio',
9
+ /** Default LLM provider */
10
+ LLM_PROVIDER: 'openai',
11
+ /** Default agent name */
12
+ AGENT_NAME: 'Syrin',
13
+ /** Default script command */
14
+ SCRIPT_COMMAND: 'npm run start',
15
+ /** Default working status message */
16
+ WORKING: 'working',
17
+ };
18
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Environment variable name constants.
3
+ */
4
+ export declare const EnvVars: {
5
+ readonly OPENAI_API_KEY: "OPENAI_API_KEY";
6
+ readonly OPENAI_MODEL_NAME: "OPENAI_MODEL_NAME";
7
+ readonly CLAUDE_API_KEY: "CLAUDE_API_KEY";
8
+ readonly CLAUDE_MODEL_NAME: "CLAUDE_MODEL_NAME";
9
+ readonly OLLAMA_MODEL_NAME: "OLLAMA_MODEL_NAME";
10
+ };
11
+ //# sourceMappingURL=env-vars.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Environment variable name constants.
3
+ */
4
+ export const EnvVars = {
5
+ OPENAI_API_KEY: 'OPENAI_API_KEY',
6
+ OPENAI_MODEL_NAME: 'OPENAI_MODEL_NAME',
7
+ CLAUDE_API_KEY: 'CLAUDE_API_KEY',
8
+ CLAUDE_MODEL_NAME: 'CLAUDE_MODEL_NAME',
9
+ OLLAMA_MODEL_NAME: 'OLLAMA_MODEL_NAME',
10
+ };
11
+ //# sourceMappingURL=env-vars.js.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Icon constants used throughout the CLI.
3
+ * Centralized for easy maintenance and consistency.
4
+ */
5
+ export declare const Icons: {
6
+ /** Success/Valid indicator */
7
+ readonly SUCCESS: "✓";
8
+ /** Failure/Invalid indicator */
9
+ readonly FAILURE: "✗";
10
+ /** Warning indicator */
11
+ readonly WARNING: "⚠️";
12
+ /** Error indicator */
13
+ readonly ERROR: "❌";
14
+ /** Checkmark indicator (alternative) */
15
+ readonly CHECK: "✅";
16
+ /** Folder/Directory indicator */
17
+ readonly FOLDER: "📁";
18
+ /** Document/Note indicator */
19
+ readonly DOCUMENT: "📝";
20
+ /** Lightbulb/Tip indicator */
21
+ readonly TIP: "💡";
22
+ };
23
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Icon constants used throughout the CLI.
3
+ * Centralized for easy maintenance and consistency.
4
+ */
5
+ export const Icons = {
6
+ /** Success/Valid indicator */
7
+ SUCCESS: '✓',
8
+ /** Failure/Invalid indicator */
9
+ FAILURE: '✗',
10
+ /** Warning indicator */
11
+ WARNING: '⚠️',
12
+ /** Error indicator */
13
+ ERROR: '❌',
14
+ /** Checkmark indicator (alternative) */
15
+ CHECK: '✅',
16
+ /** Folder/Directory indicator */
17
+ FOLDER: '📁',
18
+ /** Document/Note indicator */
19
+ DOCUMENT: '📝',
20
+ /** Lightbulb/Tip indicator */
21
+ TIP: '💡',
22
+ };
23
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Constants index file.
3
+ * Exports all constants for easy importing throughout the application.
4
+ */
5
+ export * from './icons.js';
6
+ export * from './labels.js';
7
+ export * from './messages.js';
8
+ export * from './paths.js';
9
+ export * from './commands.js';
10
+ export * from './transport.js';
11
+ export * from './list.js';
12
+ export * from './llm.js';
13
+ export * from './defaults.js';
14
+ export * from './env-vars.js';
15
+ export * from './app.js';
16
+ export * from './links.js';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Constants index file.
3
+ * Exports all constants for easy importing throughout the application.
4
+ */
5
+ export * from './icons.js';
6
+ export * from './labels.js';
7
+ export * from './messages.js';
8
+ export * from './paths.js';
9
+ export * from './commands.js';
10
+ export * from './transport.js';
11
+ export * from './list.js';
12
+ export * from './llm.js';
13
+ export * from './defaults.js';
14
+ export * from './env-vars.js';
15
+ export * from './app.js';
16
+ export * from './links.js';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Label constants for CLI output.
3
+ * Used in doctor reports and other formatted output.
4
+ */
5
+ export declare const Labels: {
6
+ readonly DOCTOR_REPORT_TITLE: "Syrin Doctor Report";
7
+ readonly SYRIN_VERSION: "Syrin Version:";
8
+ readonly MCP_PROJECT_NAME: "MCP Project Name:";
9
+ readonly AGENT_NAME: "Agent Name:";
10
+ readonly TRANSPORT_LAYER: "Transport Layer:";
11
+ readonly MCP_URL: "MCP URL:";
12
+ readonly COMMAND: "Command:";
13
+ readonly SCRIPTS: "Scripts:";
14
+ readonly LLMS: "LLMs:";
15
+ readonly MODEL: "Model";
16
+ readonly SCRIPT_DEV: "dev";
17
+ readonly SCRIPT_START: "start";
18
+ readonly STATUS_WORKING: "(working)";
19
+ readonly STATUS_DEFAULT: "(default)";
20
+ readonly STATUS_MISSING: "Missing";
21
+ readonly STATUS_NA: "N/A";
22
+ readonly TOOLS: "Tools";
23
+ readonly RESOURCES: "Resources";
24
+ readonly PROMPTS: "Prompts";
25
+ readonly NAME: "Name";
26
+ readonly TITLE: "Title";
27
+ readonly DESCRIPTION: "Description";
28
+ readonly URI: "URI";
29
+ readonly ARGUMENTS: "Arguments";
30
+ readonly REQUIRED: "Required";
31
+ readonly INPUT_SCHEMA: "Input Schema";
32
+ readonly OUTPUT_SCHEMA: "Output Schema";
33
+ readonly NO_TOOLS: "No tools available";
34
+ readonly NO_RESOURCES: "No resources available";
35
+ readonly NO_PROMPTS: "No prompts available";
36
+ readonly TOTAL_COUNT: "Total";
37
+ };
38
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Label constants for CLI output.
3
+ * Used in doctor reports and other formatted output.
4
+ */
5
+ export const Labels = {
6
+ // Doctor Report Labels
7
+ DOCTOR_REPORT_TITLE: 'Syrin Doctor Report',
8
+ SYRIN_VERSION: 'Syrin Version:',
9
+ MCP_PROJECT_NAME: 'MCP Project Name:',
10
+ AGENT_NAME: 'Agent Name:',
11
+ TRANSPORT_LAYER: 'Transport Layer:',
12
+ MCP_URL: 'MCP URL:',
13
+ COMMAND: 'Command:',
14
+ SCRIPTS: 'Scripts:',
15
+ LLMS: 'LLMs:',
16
+ MODEL: 'Model',
17
+ // Script Labels
18
+ SCRIPT_DEV: 'dev',
19
+ SCRIPT_START: 'start',
20
+ // Status Messages
21
+ STATUS_WORKING: '(working)',
22
+ STATUS_DEFAULT: '(default)',
23
+ STATUS_MISSING: 'Missing',
24
+ STATUS_NA: 'N/A',
25
+ // List Command Labels
26
+ TOOLS: 'Tools',
27
+ RESOURCES: 'Resources',
28
+ PROMPTS: 'Prompts',
29
+ NAME: 'Name',
30
+ TITLE: 'Title',
31
+ DESCRIPTION: 'Description',
32
+ URI: 'URI',
33
+ ARGUMENTS: 'Arguments',
34
+ REQUIRED: 'Required',
35
+ INPUT_SCHEMA: 'Input Schema',
36
+ OUTPUT_SCHEMA: 'Output Schema',
37
+ NO_TOOLS: 'No tools available',
38
+ NO_RESOURCES: 'No resources available',
39
+ NO_PROMPTS: 'No prompts available',
40
+ TOTAL_COUNT: 'Total',
41
+ };
42
+ //# sourceMappingURL=labels.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Syrin external links constants.
3
+ * Centralized URLs for npm, GitHub, and documentation.
4
+ */
5
+ export declare const SYRIN_LINKS: {
6
+ readonly NPM: "https://www.npmjs.com/package/@syrin/cli";
7
+ readonly GITHUB: "https://github.com/syrin-labs/cli";
8
+ readonly DOCS: "https://github.com/syrin-labs/cli#readme";
9
+ };
10
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Syrin external links constants.
3
+ * Centralized URLs for npm, GitHub, and documentation.
4
+ */
5
+ import { PACKAGE_NAME } from './app.js';
6
+ export const SYRIN_LINKS = {
7
+ NPM: `https://www.npmjs.com/package/${PACKAGE_NAME}`,
8
+ GITHUB: 'https://github.com/syrin-labs/cli',
9
+ DOCS: 'https://github.com/syrin-labs/cli#readme',
10
+ };
11
+ //# sourceMappingURL=links.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * List type constants.
3
+ */
4
+ export declare const ListTypes: {
5
+ readonly TOOLS: "tools";
6
+ readonly RESOURCES: "resources";
7
+ readonly PROMPTS: "prompts";
8
+ };
9
+ export type ListType = (typeof ListTypes)[keyof typeof ListTypes];
10
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * List type constants.
3
+ */
4
+ export const ListTypes = {
5
+ TOOLS: 'tools',
6
+ RESOURCES: 'resources',
7
+ PROMPTS: 'prompts',
8
+ };
9
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * LLM provider constants.
3
+ */
4
+ export declare const LLMProviders: {
5
+ readonly OPENAI: "openai";
6
+ readonly CLAUDE: "claude";
7
+ readonly OLLAMA: "ollama";
8
+ };
9
+ export type LLMProvider = (typeof LLMProviders)[keyof typeof LLMProviders];
10
+ /**
11
+ * LLM provider display names.
12
+ */
13
+ export declare const LLMProviderNames: {
14
+ readonly OPENAI: "OpenAI";
15
+ readonly CLAUDE: "Claude";
16
+ readonly OLLAMA: "Ollama";
17
+ };
18
+ /**
19
+ * LLM provider full display names (for prompts).
20
+ */
21
+ export declare const LLMProviderDisplayNames: {
22
+ readonly OPENAI: "OpenAI";
23
+ readonly CLAUDE: "Claude (Anthropic)";
24
+ readonly OLLAMA: "Ollama";
25
+ };
26
+ //# sourceMappingURL=llm.d.ts.map
@@ -0,0 +1,25 @@
1
+ /**
2
+ * LLM provider constants.
3
+ */
4
+ export const LLMProviders = {
5
+ OPENAI: 'openai',
6
+ CLAUDE: 'claude',
7
+ OLLAMA: 'ollama',
8
+ };
9
+ /**
10
+ * LLM provider display names.
11
+ */
12
+ export const LLMProviderNames = {
13
+ OPENAI: 'OpenAI',
14
+ CLAUDE: 'Claude',
15
+ OLLAMA: 'Ollama',
16
+ };
17
+ /**
18
+ * LLM provider full display names (for prompts).
19
+ */
20
+ export const LLMProviderDisplayNames = {
21
+ OPENAI: 'OpenAI',
22
+ CLAUDE: 'Claude (Anthropic)',
23
+ OLLAMA: 'Ollama',
24
+ };
25
+ //# sourceMappingURL=llm.js.map