@vibesdotdev/logging 0.0.1

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 (393) hide show
  1. package/README.md +80 -0
  2. package/SPEC.md +65 -0
  3. package/dist/audit/audit.descriptor.d.ts +11 -0
  4. package/dist/audit/audit.descriptor.d.ts.map +1 -0
  5. package/dist/audit/audit.descriptor.js +40 -0
  6. package/dist/audit/audit.descriptor.js.map +1 -0
  7. package/dist/audit/audit.storage.schema.d.ts +79 -0
  8. package/dist/audit/audit.storage.schema.d.ts.map +1 -0
  9. package/dist/audit/audit.storage.schema.js +33 -0
  10. package/dist/audit/audit.storage.schema.js.map +1 -0
  11. package/dist/audit/index.d.ts +2 -0
  12. package/dist/audit/index.d.ts.map +1 -0
  13. package/dist/audit/index.js +2 -0
  14. package/dist/audit/index.js.map +1 -0
  15. package/dist/cli/logs.descriptor.d.ts +9 -0
  16. package/dist/cli/logs.descriptor.d.ts.map +1 -0
  17. package/dist/cli/logs.descriptor.js +16 -0
  18. package/dist/cli/logs.descriptor.js.map +1 -0
  19. package/dist/cli/logs.list.descriptor.d.ts +9 -0
  20. package/dist/cli/logs.list.descriptor.d.ts.map +1 -0
  21. package/dist/cli/logs.list.descriptor.js +23 -0
  22. package/dist/cli/logs.list.descriptor.js.map +1 -0
  23. package/dist/cli/logs.list.impl.d.ts +13 -0
  24. package/dist/cli/logs.list.impl.d.ts.map +1 -0
  25. package/dist/cli/logs.list.impl.js +81 -0
  26. package/dist/cli/logs.list.impl.js.map +1 -0
  27. package/dist/cli/logs.rotate.descriptor.d.ts +9 -0
  28. package/dist/cli/logs.rotate.descriptor.d.ts.map +1 -0
  29. package/dist/cli/logs.rotate.descriptor.js +34 -0
  30. package/dist/cli/logs.rotate.descriptor.js.map +1 -0
  31. package/dist/cli/logs.rotate.impl.d.ts +17 -0
  32. package/dist/cli/logs.rotate.impl.d.ts.map +1 -0
  33. package/dist/cli/logs.rotate.impl.js +48 -0
  34. package/dist/cli/logs.rotate.impl.js.map +1 -0
  35. package/dist/cli/logs.search.descriptor.d.ts +9 -0
  36. package/dist/cli/logs.search.descriptor.d.ts.map +1 -0
  37. package/dist/cli/logs.search.descriptor.js +55 -0
  38. package/dist/cli/logs.search.descriptor.js.map +1 -0
  39. package/dist/cli/logs.search.impl.d.ts +22 -0
  40. package/dist/cli/logs.search.impl.d.ts.map +1 -0
  41. package/dist/cli/logs.search.impl.js +145 -0
  42. package/dist/cli/logs.search.impl.js.map +1 -0
  43. package/dist/cli/logs.tail.descriptor.d.ts +9 -0
  44. package/dist/cli/logs.tail.descriptor.d.ts.map +1 -0
  45. package/dist/cli/logs.tail.descriptor.js +43 -0
  46. package/dist/cli/logs.tail.descriptor.js.map +1 -0
  47. package/dist/cli/logs.tail.impl.d.ts +19 -0
  48. package/dist/cli/logs.tail.impl.d.ts.map +1 -0
  49. package/dist/cli/logs.tail.impl.js +78 -0
  50. package/dist/cli/logs.tail.impl.js.map +1 -0
  51. package/dist/cli/logs.view.descriptor.d.ts +9 -0
  52. package/dist/cli/logs.view.descriptor.d.ts.map +1 -0
  53. package/dist/cli/logs.view.descriptor.js +51 -0
  54. package/dist/cli/logs.view.descriptor.js.map +1 -0
  55. package/dist/cli/logs.view.impl.d.ts +21 -0
  56. package/dist/cli/logs.view.impl.d.ts.map +1 -0
  57. package/dist/cli/logs.view.impl.js +85 -0
  58. package/dist/cli/logs.view.impl.js.map +1 -0
  59. package/dist/cli/types.d.ts +57 -0
  60. package/dist/cli/types.d.ts.map +1 -0
  61. package/dist/cli/types.js +9 -0
  62. package/dist/cli/types.js.map +1 -0
  63. package/dist/contexts/audit.d.ts +34 -0
  64. package/dist/contexts/audit.d.ts.map +1 -0
  65. package/dist/contexts/audit.js +13 -0
  66. package/dist/contexts/audit.js.map +1 -0
  67. package/dist/contexts/fallback-logger.d.ts +3 -0
  68. package/dist/contexts/fallback-logger.d.ts.map +1 -0
  69. package/dist/contexts/fallback-logger.js +67 -0
  70. package/dist/contexts/fallback-logger.js.map +1 -0
  71. package/dist/contexts/index.d.ts +8 -0
  72. package/dist/contexts/index.d.ts.map +1 -0
  73. package/dist/contexts/index.js +9 -0
  74. package/dist/contexts/index.js.map +1 -0
  75. package/dist/contexts/logger.d.ts +26 -0
  76. package/dist/contexts/logger.d.ts.map +1 -0
  77. package/dist/contexts/logger.js +88 -0
  78. package/dist/contexts/logger.js.map +1 -0
  79. package/dist/core/index.d.ts +9 -0
  80. package/dist/core/index.d.ts.map +1 -0
  81. package/dist/core/index.js +10 -0
  82. package/dist/core/index.js.map +1 -0
  83. package/dist/core/logger.d.ts +3 -0
  84. package/dist/core/logger.d.ts.map +1 -0
  85. package/dist/core/logger.js +118 -0
  86. package/dist/core/logger.js.map +1 -0
  87. package/dist/core/namespace.d.ts +69 -0
  88. package/dist/core/namespace.d.ts.map +1 -0
  89. package/dist/core/namespace.js +136 -0
  90. package/dist/core/namespace.js.map +1 -0
  91. package/dist/core/parsing.d.ts +3 -0
  92. package/dist/core/parsing.d.ts.map +1 -0
  93. package/dist/core/parsing.js +25 -0
  94. package/dist/core/parsing.js.map +1 -0
  95. package/dist/core/types.d.ts +69 -0
  96. package/dist/core/types.d.ts.map +1 -0
  97. package/dist/core/types.js +7 -0
  98. package/dist/core/types.js.map +1 -0
  99. package/dist/docs/levels.docs.descriptor.d.ts +4 -0
  100. package/dist/docs/levels.docs.descriptor.d.ts.map +1 -0
  101. package/dist/docs/levels.docs.descriptor.js +342 -0
  102. package/dist/docs/levels.docs.descriptor.js.map +1 -0
  103. package/dist/docs/structured.docs.descriptor.d.ts +4 -0
  104. package/dist/docs/structured.docs.descriptor.d.ts.map +1 -0
  105. package/dist/docs/structured.docs.descriptor.js +442 -0
  106. package/dist/docs/structured.docs.descriptor.js.map +1 -0
  107. package/dist/docs/transports.docs.descriptor.d.ts +4 -0
  108. package/dist/docs/transports.docs.descriptor.d.ts.map +1 -0
  109. package/dist/docs/transports.docs.descriptor.js +426 -0
  110. package/dist/docs/transports.docs.descriptor.js.map +1 -0
  111. package/dist/formatters/index.d.ts +7 -0
  112. package/dist/formatters/index.d.ts.map +1 -0
  113. package/dist/formatters/index.js +8 -0
  114. package/dist/formatters/index.js.map +1 -0
  115. package/dist/formatters/json/json.formatters.descriptor.d.ts +9 -0
  116. package/dist/formatters/json/json.formatters.descriptor.d.ts.map +1 -0
  117. package/dist/formatters/json/json.formatters.descriptor.js +22 -0
  118. package/dist/formatters/json/json.formatters.descriptor.js.map +1 -0
  119. package/dist/formatters/json/json.impl.d.ts +22 -0
  120. package/dist/formatters/json/json.impl.d.ts.map +1 -0
  121. package/dist/formatters/json/json.impl.js +32 -0
  122. package/dist/formatters/json/json.impl.js.map +1 -0
  123. package/dist/formatters/json5/json5.descriptor.d.ts +9 -0
  124. package/dist/formatters/json5/json5.descriptor.d.ts.map +1 -0
  125. package/dist/formatters/json5/json5.descriptor.js +22 -0
  126. package/dist/formatters/json5/json5.descriptor.js.map +1 -0
  127. package/dist/formatters/json5/json5.impl.d.ts +23 -0
  128. package/dist/formatters/json5/json5.impl.d.ts.map +1 -0
  129. package/dist/formatters/json5/json5.impl.js +34 -0
  130. package/dist/formatters/json5/json5.impl.js.map +1 -0
  131. package/dist/formatters/jsonl/jsonl.descriptor.d.ts +10 -0
  132. package/dist/formatters/jsonl/jsonl.descriptor.d.ts.map +1 -0
  133. package/dist/formatters/jsonl/jsonl.descriptor.js +23 -0
  134. package/dist/formatters/jsonl/jsonl.descriptor.js.map +1 -0
  135. package/dist/formatters/jsonl/jsonl.impl.d.ts +21 -0
  136. package/dist/formatters/jsonl/jsonl.impl.d.ts.map +1 -0
  137. package/dist/formatters/jsonl/jsonl.impl.js +30 -0
  138. package/dist/formatters/jsonl/jsonl.impl.js.map +1 -0
  139. package/dist/formatters/pretty/pretty.descriptor.d.ts +9 -0
  140. package/dist/formatters/pretty/pretty.descriptor.d.ts.map +1 -0
  141. package/dist/formatters/pretty/pretty.descriptor.js +23 -0
  142. package/dist/formatters/pretty/pretty.descriptor.js.map +1 -0
  143. package/dist/formatters/pretty/pretty.impl.cli.d.ts +23 -0
  144. package/dist/formatters/pretty/pretty.impl.cli.d.ts.map +1 -0
  145. package/dist/formatters/pretty/pretty.impl.cli.js +81 -0
  146. package/dist/formatters/pretty/pretty.impl.cli.js.map +1 -0
  147. package/dist/index.d.ts +67 -0
  148. package/dist/index.d.ts.map +1 -0
  149. package/dist/index.js +97 -0
  150. package/dist/index.js.map +1 -0
  151. package/dist/kinds/audit.d.ts +85 -0
  152. package/dist/kinds/audit.d.ts.map +1 -0
  153. package/dist/kinds/audit.js +71 -0
  154. package/dist/kinds/audit.js.map +1 -0
  155. package/dist/kinds/contexts.d.ts +21 -0
  156. package/dist/kinds/contexts.d.ts.map +1 -0
  157. package/dist/kinds/contexts.js +8 -0
  158. package/dist/kinds/contexts.js.map +1 -0
  159. package/dist/kinds/formatter.d.ts +42 -0
  160. package/dist/kinds/formatter.d.ts.map +1 -0
  161. package/dist/kinds/formatter.js +69 -0
  162. package/dist/kinds/formatter.js.map +1 -0
  163. package/dist/kinds/index.d.ts +13 -0
  164. package/dist/kinds/index.d.ts.map +1 -0
  165. package/dist/kinds/index.js +13 -0
  166. package/dist/kinds/index.js.map +1 -0
  167. package/dist/kinds/logger.contracts.d.ts +16 -0
  168. package/dist/kinds/logger.contracts.d.ts.map +1 -0
  169. package/dist/kinds/logger.contracts.js +9 -0
  170. package/dist/kinds/logger.contracts.js.map +1 -0
  171. package/dist/kinds/logger.d.ts +15 -0
  172. package/dist/kinds/logger.d.ts.map +1 -0
  173. package/dist/kinds/logger.impl.d.ts +40 -0
  174. package/dist/kinds/logger.impl.d.ts.map +1 -0
  175. package/dist/kinds/logger.impl.js +139 -0
  176. package/dist/kinds/logger.impl.js.map +1 -0
  177. package/dist/kinds/logger.js +28 -0
  178. package/dist/kinds/logger.js.map +1 -0
  179. package/dist/kinds/logger.utils.d.ts +15 -0
  180. package/dist/kinds/logger.utils.d.ts.map +1 -0
  181. package/dist/kinds/logger.utils.js +55 -0
  182. package/dist/kinds/logger.utils.js.map +1 -0
  183. package/dist/kinds/output.contracts.d.ts +50 -0
  184. package/dist/kinds/output.contracts.d.ts.map +1 -0
  185. package/dist/kinds/output.contracts.js +10 -0
  186. package/dist/kinds/output.contracts.js.map +1 -0
  187. package/dist/kinds/output.d.ts +20 -0
  188. package/dist/kinds/output.d.ts.map +1 -0
  189. package/dist/kinds/output.impl.d.ts +22 -0
  190. package/dist/kinds/output.impl.d.ts.map +1 -0
  191. package/dist/kinds/output.impl.js +84 -0
  192. package/dist/kinds/output.impl.js.map +1 -0
  193. package/dist/kinds/output.js +29 -0
  194. package/dist/kinds/output.js.map +1 -0
  195. package/dist/kinds/output.types.d.ts +92 -0
  196. package/dist/kinds/output.types.d.ts.map +1 -0
  197. package/dist/kinds/output.types.js +7 -0
  198. package/dist/kinds/output.types.js.map +1 -0
  199. package/dist/kinds/sink.d.ts +40 -0
  200. package/dist/kinds/sink.d.ts.map +1 -0
  201. package/dist/kinds/sink.js +61 -0
  202. package/dist/kinds/sink.js.map +1 -0
  203. package/dist/logger.context.descriptor.d.ts +21 -0
  204. package/dist/logger.context.descriptor.d.ts.map +1 -0
  205. package/dist/logger.context.descriptor.js +12 -0
  206. package/dist/logger.context.descriptor.js.map +1 -0
  207. package/dist/logging.cli.plugin.d.ts +20 -0
  208. package/dist/logging.cli.plugin.d.ts.map +1 -0
  209. package/dist/logging.cli.plugin.js +39 -0
  210. package/dist/logging.cli.plugin.js.map +1 -0
  211. package/dist/logging.plugin.d.ts +16 -0
  212. package/dist/logging.plugin.d.ts.map +1 -0
  213. package/dist/logging.plugin.js +83 -0
  214. package/dist/logging.plugin.js.map +1 -0
  215. package/dist/outputs/index.d.ts +7 -0
  216. package/dist/outputs/index.d.ts.map +1 -0
  217. package/dist/outputs/index.js +8 -0
  218. package/dist/outputs/index.js.map +1 -0
  219. package/dist/outputs/remote/remote.descriptor.d.ts +10 -0
  220. package/dist/outputs/remote/remote.descriptor.d.ts.map +1 -0
  221. package/dist/outputs/remote/remote.descriptor.js +24 -0
  222. package/dist/outputs/remote/remote.descriptor.js.map +1 -0
  223. package/dist/outputs/remote/remote.impl.d.ts +50 -0
  224. package/dist/outputs/remote/remote.impl.d.ts.map +1 -0
  225. package/dist/outputs/remote/remote.impl.js +178 -0
  226. package/dist/outputs/remote/remote.impl.js.map +1 -0
  227. package/dist/outputs.context.descriptor.d.ts +19 -0
  228. package/dist/outputs.context.descriptor.d.ts.map +1 -0
  229. package/dist/outputs.context.descriptor.js +9 -0
  230. package/dist/outputs.context.descriptor.js.map +1 -0
  231. package/dist/outputs.context.impl.d.ts +9 -0
  232. package/dist/outputs.context.impl.d.ts.map +1 -0
  233. package/dist/outputs.context.impl.js +18 -0
  234. package/dist/outputs.context.impl.js.map +1 -0
  235. package/dist/paths.d.ts +8 -0
  236. package/dist/paths.d.ts.map +1 -0
  237. package/dist/paths.js +10 -0
  238. package/dist/paths.js.map +1 -0
  239. package/dist/schemas/audit.d.ts +133 -0
  240. package/dist/schemas/audit.d.ts.map +1 -0
  241. package/dist/schemas/audit.js +80 -0
  242. package/dist/schemas/audit.js.map +1 -0
  243. package/dist/schemas/entry.d.ts +74 -0
  244. package/dist/schemas/entry.d.ts.map +1 -0
  245. package/dist/schemas/entry.js +62 -0
  246. package/dist/schemas/entry.js.map +1 -0
  247. package/dist/schemas/formatter.d.ts +46 -0
  248. package/dist/schemas/formatter.d.ts.map +1 -0
  249. package/dist/schemas/formatter.js +31 -0
  250. package/dist/schemas/formatter.js.map +1 -0
  251. package/dist/schemas/index.d.ts +12 -0
  252. package/dist/schemas/index.d.ts.map +1 -0
  253. package/dist/schemas/index.js +18 -0
  254. package/dist/schemas/index.js.map +1 -0
  255. package/dist/schemas/logger.d.ts +48 -0
  256. package/dist/schemas/logger.d.ts.map +1 -0
  257. package/dist/schemas/logger.js +27 -0
  258. package/dist/schemas/logger.js.map +1 -0
  259. package/dist/schemas/output.d.ts +68 -0
  260. package/dist/schemas/output.d.ts.map +1 -0
  261. package/dist/schemas/output.js +48 -0
  262. package/dist/schemas/output.js.map +1 -0
  263. package/dist/schemas/sink.d.ts +52 -0
  264. package/dist/schemas/sink.d.ts.map +1 -0
  265. package/dist/schemas/sink.js +30 -0
  266. package/dist/schemas/sink.js.map +1 -0
  267. package/dist/sinks/buffer/buffer.descriptor.d.ts +4 -0
  268. package/dist/sinks/buffer/buffer.descriptor.d.ts.map +1 -0
  269. package/dist/sinks/buffer/buffer.descriptor.js +11 -0
  270. package/dist/sinks/buffer/buffer.descriptor.js.map +1 -0
  271. package/dist/sinks/buffer/buffer.impl.cli.d.ts +21 -0
  272. package/dist/sinks/buffer/buffer.impl.cli.d.ts.map +1 -0
  273. package/dist/sinks/buffer/buffer.impl.cli.js +34 -0
  274. package/dist/sinks/buffer/buffer.impl.cli.js.map +1 -0
  275. package/dist/sinks/console/console.descriptor.d.ts +10 -0
  276. package/dist/sinks/console/console.descriptor.d.ts.map +1 -0
  277. package/dist/sinks/console/console.descriptor.js +17 -0
  278. package/dist/sinks/console/console.descriptor.js.map +1 -0
  279. package/dist/sinks/console/console.impl.browser.d.ts +21 -0
  280. package/dist/sinks/console/console.impl.browser.d.ts.map +1 -0
  281. package/dist/sinks/console/console.impl.browser.js +57 -0
  282. package/dist/sinks/console/console.impl.browser.js.map +1 -0
  283. package/dist/sinks/console/console.impl.cli.d.ts +21 -0
  284. package/dist/sinks/console/console.impl.cli.d.ts.map +1 -0
  285. package/dist/sinks/console/console.impl.cli.js +57 -0
  286. package/dist/sinks/console/console.impl.cli.js.map +1 -0
  287. package/dist/sinks/index.d.ts +8 -0
  288. package/dist/sinks/index.d.ts.map +1 -0
  289. package/dist/sinks/index.js +8 -0
  290. package/dist/sinks/index.js.map +1 -0
  291. package/dist/sinks/memory/memory.descriptor.d.ts +10 -0
  292. package/dist/sinks/memory/memory.descriptor.d.ts.map +1 -0
  293. package/dist/sinks/memory/memory.descriptor.js +17 -0
  294. package/dist/sinks/memory/memory.descriptor.js.map +1 -0
  295. package/dist/sinks/memory/memory.impl.d.ts +50 -0
  296. package/dist/sinks/memory/memory.impl.d.ts.map +1 -0
  297. package/dist/sinks/memory/memory.impl.js +88 -0
  298. package/dist/sinks/memory/memory.impl.js.map +1 -0
  299. package/dist/sinks/stdout/stdout.descriptor.d.ts +4 -0
  300. package/dist/sinks/stdout/stdout.descriptor.d.ts.map +1 -0
  301. package/dist/sinks/stdout/stdout.descriptor.js +11 -0
  302. package/dist/sinks/stdout/stdout.descriptor.js.map +1 -0
  303. package/dist/sinks/stdout/stdout.impl.cli.d.ts +10 -0
  304. package/dist/sinks/stdout/stdout.impl.cli.d.ts.map +1 -0
  305. package/dist/sinks/stdout/stdout.impl.cli.js +21 -0
  306. package/dist/sinks/stdout/stdout.impl.cli.js.map +1 -0
  307. package/dist/sinks.context.descriptor.d.ts +19 -0
  308. package/dist/sinks.context.descriptor.d.ts.map +1 -0
  309. package/dist/sinks.context.descriptor.js +9 -0
  310. package/dist/sinks.context.descriptor.js.map +1 -0
  311. package/dist/sinks.context.impl.d.ts +9 -0
  312. package/dist/sinks.context.impl.d.ts.map +1 -0
  313. package/dist/sinks.context.impl.js +18 -0
  314. package/dist/sinks.context.impl.js.map +1 -0
  315. package/package.json +331 -0
  316. package/src/audit/audit.descriptor.ts +45 -0
  317. package/src/audit/audit.storage.schema.ts +57 -0
  318. package/src/audit/index.ts +8 -0
  319. package/src/cli/logs.descriptor.ts +19 -0
  320. package/src/cli/logs.list.descriptor.ts +28 -0
  321. package/src/cli/logs.list.impl.ts +93 -0
  322. package/src/cli/logs.rotate.descriptor.ts +40 -0
  323. package/src/cli/logs.rotate.impl.ts +61 -0
  324. package/src/cli/logs.search.descriptor.ts +61 -0
  325. package/src/cli/logs.search.impl.ts +173 -0
  326. package/src/cli/logs.tail.descriptor.ts +49 -0
  327. package/src/cli/logs.tail.impl.ts +105 -0
  328. package/src/cli/logs.view.descriptor.ts +57 -0
  329. package/src/cli/logs.view.impl.ts +108 -0
  330. package/src/cli/types.ts +59 -0
  331. package/src/contexts/audit.ts +36 -0
  332. package/src/contexts/fallback-logger.ts +80 -0
  333. package/src/contexts/index.ts +23 -0
  334. package/src/contexts/logger.ts +119 -0
  335. package/src/core/index.ts +32 -0
  336. package/src/core/logger.ts +150 -0
  337. package/src/core/namespace.ts +195 -0
  338. package/src/core/parsing.ts +21 -0
  339. package/src/core/types.ts +82 -0
  340. package/src/docs/levels.docs.descriptor.ts +344 -0
  341. package/src/docs/structured.docs.descriptor.ts +444 -0
  342. package/src/docs/transports.docs.descriptor.ts +428 -0
  343. package/src/formatters/index.ts +6 -0
  344. package/src/formatters/json/json.formatters.descriptor.ts +25 -0
  345. package/src/formatters/json/json.impl.ts +41 -0
  346. package/src/formatters/json5/json5.descriptor.ts +25 -0
  347. package/src/formatters/json5/json5.impl.ts +43 -0
  348. package/src/formatters/jsonl/jsonl.descriptor.ts +26 -0
  349. package/src/formatters/jsonl/jsonl.impl.ts +39 -0
  350. package/src/formatters/pretty/pretty.descriptor.ts +26 -0
  351. package/src/formatters/pretty/pretty.impl.cli.ts +101 -0
  352. package/src/index.ts +190 -0
  353. package/src/kinds/audit.ts +169 -0
  354. package/src/kinds/contexts.ts +22 -0
  355. package/src/kinds/formatter.ts +117 -0
  356. package/src/kinds/index.ts +25 -0
  357. package/src/kinds/logger.contracts.ts +17 -0
  358. package/src/kinds/logger.impl.ts +206 -0
  359. package/src/kinds/logger.ts +46 -0
  360. package/src/kinds/logger.utils.ts +91 -0
  361. package/src/kinds/output.contracts.ts +54 -0
  362. package/src/kinds/output.impl.ts +118 -0
  363. package/src/kinds/output.ts +59 -0
  364. package/src/kinds/output.types.ts +105 -0
  365. package/src/kinds/sink.ts +100 -0
  366. package/src/logger.context.descriptor.ts +13 -0
  367. package/src/logging.cli.plugin.ts +43 -0
  368. package/src/logging.plugin.ts +93 -0
  369. package/src/outputs/index.ts +6 -0
  370. package/src/outputs/remote/remote.descriptor.ts +27 -0
  371. package/src/outputs/remote/remote.impl.ts +218 -0
  372. package/src/outputs.context.descriptor.ts +10 -0
  373. package/src/outputs.context.impl.ts +30 -0
  374. package/src/paths.ts +10 -0
  375. package/src/schemas/audit.ts +98 -0
  376. package/src/schemas/entry.ts +88 -0
  377. package/src/schemas/formatter.ts +37 -0
  378. package/src/schemas/index.ts +80 -0
  379. package/src/schemas/logger.ts +38 -0
  380. package/src/schemas/output.ts +62 -0
  381. package/src/schemas/sink.ts +39 -0
  382. package/src/sinks/buffer/buffer.descriptor.ts +13 -0
  383. package/src/sinks/buffer/buffer.impl.cli.ts +49 -0
  384. package/src/sinks/console/console.descriptor.ts +20 -0
  385. package/src/sinks/console/console.impl.browser.ts +69 -0
  386. package/src/sinks/console/console.impl.cli.ts +71 -0
  387. package/src/sinks/index.ts +8 -0
  388. package/src/sinks/memory/memory.descriptor.ts +20 -0
  389. package/src/sinks/memory/memory.impl.ts +119 -0
  390. package/src/sinks/stdout/stdout.descriptor.ts +13 -0
  391. package/src/sinks/stdout/stdout.impl.cli.ts +27 -0
  392. package/src/sinks.context.descriptor.ts +10 -0
  393. package/src/sinks.context.impl.ts +30 -0
@@ -0,0 +1,22 @@
1
+ import type { OutputReadOptions, OutputTailOptions, TailHandle, OutputStats, OutputImplementation } from './output.types';
2
+ import type { RuntimeLogEntry } from '../schemas/entry.ts';
3
+ import type { RuntimeDescriptor } from '@vibesdotdev/runtime/schemas/kind';
4
+ import type { KindContext } from '@vibesdotdev/runtime/schemas/kind';
5
+ export declare class DefaultOutputImplementation implements OutputImplementation {
6
+ readonly id: string;
7
+ private readonly descriptor;
8
+ private readonly context;
9
+ private delegate;
10
+ private delegatePromise;
11
+ private pendingTailCloses;
12
+ constructor(descriptor: RuntimeDescriptor, context: KindContext);
13
+ private resolveDelegate;
14
+ private getDelegatePromise;
15
+ write(entry: RuntimeLogEntry): Promise<void>;
16
+ flush(): Promise<void>;
17
+ close(): Promise<void>;
18
+ read(options?: OutputReadOptions): Promise<string[]>;
19
+ tail(callback: (line: string) => void, options?: OutputTailOptions): TailHandle;
20
+ stats(): Promise<OutputStats>;
21
+ }
22
+ //# sourceMappingURL=output.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.impl.d.ts","sourceRoot":"","sources":["../../src/kinds/output.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,oBAAoB,EAEpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAErE,qBAAa,2BAA4B,YAAW,oBAAoB;IACvE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAqC;IACrD,OAAO,CAAC,eAAe,CAA8C;IACrE,OAAO,CAAC,iBAAiB,CAAyB;gBAGjD,UAAU,EAAE,iBAAiB,EAC7B,OAAO,EAAE,WAAW;YAOP,eAAe;IAmC7B,OAAO,CAAC,kBAAkB;IAUpB,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAI1D,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,UAAU;IAuBzE,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC;CAGnC"}
@@ -0,0 +1,84 @@
1
+ export class DefaultOutputImplementation {
2
+ id;
3
+ descriptor;
4
+ context;
5
+ delegate = null;
6
+ delegatePromise = null;
7
+ pendingTailCloses = [];
8
+ constructor(descriptor, context) {
9
+ this.id = descriptor.id;
10
+ this.descriptor = descriptor;
11
+ this.context = context;
12
+ }
13
+ async resolveDelegate() {
14
+ if (this.delegate)
15
+ return this.delegate;
16
+ const storage = this.descriptor.storage ?? 'file';
17
+ const runtime = this.context.runtime;
18
+ if (runtime && runtime.hasKind('logging/output')) {
19
+ try {
20
+ const storageImpl = await runtime
21
+ .query('logging/output')
22
+ .withId(storage)
23
+ .resolve();
24
+ const ImplClass = storageImpl.constructor;
25
+ this.delegate = new ImplClass(this.descriptor, this.context);
26
+ return this.delegate;
27
+ }
28
+ catch {
29
+ // Fall through to error
30
+ }
31
+ }
32
+ throw new Error(`No output implementation available for '${this.id}' (storage: ${storage}). ` +
33
+ `Ensure a '${storage}' output descriptor and implementation are registered.`);
34
+ }
35
+ getDelegatePromise() {
36
+ if (this.delegate)
37
+ return Promise.resolve(this.delegate);
38
+ if (!this.delegatePromise) {
39
+ this.delegatePromise = this.resolveDelegate().finally(() => {
40
+ this.delegatePromise = null;
41
+ });
42
+ }
43
+ return this.delegatePromise;
44
+ }
45
+ async write(entry) {
46
+ return (await this.getDelegatePromise()).write(entry);
47
+ }
48
+ async flush() {
49
+ return (await this.getDelegatePromise()).flush();
50
+ }
51
+ async close() {
52
+ return (await this.getDelegatePromise()).close();
53
+ }
54
+ async read(options) {
55
+ return (await this.getDelegatePromise()).read(options);
56
+ }
57
+ tail(callback, options) {
58
+ let handle = null;
59
+ let closed = false;
60
+ this.getDelegatePromise().then((delegate) => {
61
+ if (closed)
62
+ return;
63
+ handle = delegate.tail(callback, options);
64
+ for (const closeOp of this.pendingTailCloses)
65
+ closeOp();
66
+ this.pendingTailCloses = [];
67
+ });
68
+ return {
69
+ close: () => {
70
+ closed = true;
71
+ if (handle) {
72
+ handle.close();
73
+ }
74
+ else {
75
+ this.pendingTailCloses.push(() => handle?.close());
76
+ }
77
+ }
78
+ };
79
+ }
80
+ async stats() {
81
+ return (await this.getDelegatePromise()).stats();
82
+ }
83
+ }
84
+ //# sourceMappingURL=output.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.impl.js","sourceRoot":"","sources":["../../src/kinds/output.impl.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,2BAA2B;IAC9B,EAAE,CAAS;IACH,UAAU,CAAmB;IAC7B,OAAO,CAAgB;IAChC,QAAQ,GAAgC,IAAI,CAAC;IAC7C,eAAe,GAAyC,IAAI,CAAC;IAC7D,iBAAiB,GAAsB,EAAE,CAAC;IAElD,YACC,UAA6B,EAC7B,OAAoB;QAEpB,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAA8B,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAwB,CAAC;IACzC,CAAC;IAEO,KAAK,CAAC,eAAe;QAC5B,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;QAExC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,MAAM,CAAC;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAKrB,CAAC;QAET,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAClD,IAAI,CAAC;gBACJ,MAAM,WAAW,GAAG,MAAM,OAAO;qBAC/B,KAAK,CAAC,gBAAgB,CAAC;qBACvB,MAAM,CAAC,OAAO,CAAC;qBACf,OAAO,EAAwB,CAAC;gBAElC,MAAM,SAAS,GAAG,WAAW,CAAC,WAGL,CAAC;gBAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC7D,OAAO,IAAI,CAAC,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AE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC3C,IAAI,MAAM;gBAAE,OAAO;YACnB,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC1C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,iBAAiB;gBAAE,OAAO,EAAE,CAAC;YACxD,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,OAAO;YACN,KAAK,EAAE,GAAG,EAAE;gBACX,MAAM,GAAG,IAAI,CAAC;gBACd,IAAI,MAAM,EAAE,CAAC;oBACZ,MAAM,CAAC,KAAK,EAAE,CAAC;gBAChB,CAAC;qBAAM,CAAC;oBACP,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBACpD,CAAC;YACF,CAAC;SACD,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACV,OAAO,CAAC,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IAClD,CAAC;CACD"}
@@ -0,0 +1,29 @@
1
+ import { OutputDescriptorSchema } from "../schemas/output.js";
2
+ import { DefaultOutputImplementation } from './output.impl.js';
3
+ function resolveOutput(candidates, scope, _context) {
4
+ const typed = candidates;
5
+ if (typed.length === 0)
6
+ return undefined;
7
+ if (typed.length === 1)
8
+ return typed[0];
9
+ const hardware = scope.hardware;
10
+ const matching = typed.filter((d) => {
11
+ if (!d.hardware || d.hardware.length === 0)
12
+ return true;
13
+ return d.hardware.includes(hardware);
14
+ });
15
+ if (matching.length === 0)
16
+ return undefined;
17
+ const explicit = matching.filter((d) => d.hardware && d.hardware.length > 0);
18
+ if (explicit.length > 0)
19
+ return explicit[0];
20
+ return matching[0];
21
+ }
22
+ export const outputKind = {
23
+ id: 'logging/output',
24
+ descriptorSchema: OutputDescriptorSchema,
25
+ defaultImplementation: DefaultOutputImplementation,
26
+ resolve: resolveOutput,
27
+ contexts: ['runtime/workspace-path']
28
+ };
29
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/kinds/output.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAyB,MAAM,sBAAsB,CAAC;AAErF,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAiB5D,SAAS,aAAa,CACrB,UAA+B,EAC/B,KAAmB,EACnB,QAAqB;IAErB,MAAM,KAAK,GAAG,UAAgC,CAAC;IAC/C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;IAExC,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QACnC,IAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QACxD,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC7E,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5C,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAInB;IACH,EAAE,EAAE,gBAAgB;IACpB,gBAAgB,EAAE,sBAAsB;IACxC,qBAAqB,EAAE,2BAA2B;IAClD,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,CAAC,wBAAwB,CAAC;CACpC,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Output Type Definitions
3
+ *
4
+ * Type-only definitions to avoid circular dependencies.
5
+ */
6
+ import type { RuntimeLogEntry } from '../schemas/entry.ts';
7
+ import type { KindContext } from '@vibesdotdev/runtime/schemas/kind';
8
+ import type { FormatterImplementation } from './formatter.ts';
9
+ /**
10
+ * Options for reading from an output
11
+ */
12
+ export interface OutputReadOptions {
13
+ /** Number of lines to read */
14
+ lines?: number;
15
+ /** Offset to start reading from */
16
+ offset?: number;
17
+ /** Filter pattern */
18
+ filter?: string | RegExp;
19
+ /** Whether to ignore case when filtering */
20
+ ignoreCase?: boolean;
21
+ }
22
+ /**
23
+ * Options for tailing an output
24
+ */
25
+ export interface OutputTailOptions {
26
+ /** Number of lines to tail */
27
+ lines?: number;
28
+ /** Filter pattern */
29
+ filter?: string | RegExp;
30
+ /** Whether to ignore case when filtering */
31
+ ignoreCase?: boolean;
32
+ }
33
+ /**
34
+ * Handle for controlling a tail operation
35
+ */
36
+ export interface TailHandle {
37
+ /** Close the tail operation */
38
+ close(): void;
39
+ }
40
+ /**
41
+ * Statistics about an output
42
+ */
43
+ export interface OutputStats {
44
+ /** Size in bytes */
45
+ size: number;
46
+ /** Number of lines (if applicable) */
47
+ lines?: number;
48
+ /** Last modification time */
49
+ modifiedAt?: Date;
50
+ /** Whether the output exists */
51
+ exists: boolean;
52
+ }
53
+ /**
54
+ * Context provided to output implementations.
55
+ */
56
+ export interface OutputContext extends KindContext {
57
+ /** Runtime reference */
58
+ readonly runtime: unknown;
59
+ /** Formatter to use for this output */
60
+ readonly formatter?: FormatterImplementation;
61
+ /** Workspace path for file outputs */
62
+ readonly workspacePath?: string;
63
+ }
64
+ /**
65
+ * Output implementation interface.
66
+ * Implementations write log entries to their destination.
67
+ */
68
+ export interface OutputImplementation {
69
+ /** Unique identifier for this output */
70
+ readonly id: string;
71
+ /** Write a single log entry */
72
+ write(entry: RuntimeLogEntry): Promise<void>;
73
+ /** Write multiple entries in batch (optional optimization) */
74
+ writeBatch?(entries: RuntimeLogEntry[]): Promise<void>;
75
+ /** Write a raw line (optional) */
76
+ writeLine?(line: string): Promise<void>;
77
+ /** Flush any buffered entries */
78
+ flush(): Promise<void>;
79
+ /** Close the output and release resources */
80
+ close(): Promise<void>;
81
+ /** Rotate the output file (optional) */
82
+ rotate?(): Promise<{
83
+ archived: string;
84
+ }>;
85
+ /** Read entries from the output */
86
+ read(options?: OutputReadOptions): Promise<string[]>;
87
+ /** Tail the output for new entries */
88
+ tail(callback: (line: string) => void, options?: OutputTailOptions): TailHandle;
89
+ /** Get statistics about the output */
90
+ stats(): Promise<OutputStats>;
91
+ }
92
+ //# sourceMappingURL=output.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.types.d.ts","sourceRoot":"","sources":["../../src/kinds/output.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,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C;IAEvB,wCAAwC;IACxC,MAAM,CAAC,IAAI,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEzC,mCAAmC;IACnC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAErD,sCAAsC;IACtC,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,UAAU,CAAC;IAEhF,sCAAsC;IACtC,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Output Type Definitions
3
+ *
4
+ * Type-only definitions to avoid circular dependencies.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=output.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.types.js","sourceRoot":"","sources":["../../src/kinds/output.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Logging Sink Kind Definition
3
+ *
4
+ * Sinks are output destinations for log entries.
5
+ */
6
+ import type { RuntimeKindDescriptor, KindContext } from '@vibesdotdev/runtime/schemas/kind';
7
+ import { type SinkDescriptor } from '../schemas/sink.ts';
8
+ import type { RuntimeLogEntry } from '../schemas/entry.ts';
9
+ /**
10
+ * Sink implementation interface.
11
+ * Implementations emit log entries to their destination.
12
+ */
13
+ export interface SinkImplementation {
14
+ /** Emit a log entry to this sink */
15
+ emit(entry: RuntimeLogEntry): void | Promise<void>;
16
+ /** Flush any buffered entries */
17
+ flush?(): Promise<void>;
18
+ /** Close the sink and release resources */
19
+ close?(): Promise<void>;
20
+ }
21
+ /**
22
+ * Context provided to sink implementations.
23
+ */
24
+ export interface SinkContext extends KindContext {
25
+ /** Runtime reference */
26
+ readonly runtime: unknown;
27
+ }
28
+ /**
29
+ * Sink kind definition for runtime registration.
30
+ */
31
+ export declare const sinkKind: RuntimeKindDescriptor<SinkDescriptor, SinkImplementation, SinkContext>;
32
+ declare module '@vibesdotdev/runtime/schemas/kind-types' {
33
+ interface KindTypeMap {
34
+ 'logging/sink': {
35
+ descriptor: SinkDescriptor;
36
+ impl: SinkImplementation;
37
+ };
38
+ }
39
+ }
40
+ //# sourceMappingURL=sink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sink.d.ts","sourceRoot":"","sources":["../../src/kinds/sink.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAqB,MAAM,mCAAmC,CAAC;AAE/G,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,oCAAoC;IACpC,IAAI,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,iCAAiC;IACjC,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,2CAA2C;IAC3C,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC/C,wBAAwB;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC1B;AAsDD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,qBAAqB,CAAC,cAAc,EAAE,kBAAkB,EAAE,WAAW,CAM3F,CAAC;AAEF,OAAO,QAAQ,yCAAyC,CAAC;IACxD,UAAU,WAAW;QACpB,cAAc,EAAE;YAAE,UAAU,EAAE,cAAc,CAAC;YAAC,IAAI,EAAE,kBAAkB,CAAA;SAAE,CAAC;KACzE;CACD"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Logging Sink Kind Definition
3
+ *
4
+ * Sinks are output destinations for log entries.
5
+ */
6
+ import { SinkDescriptorSchema } from "../schemas/sink.js";
7
+ /**
8
+ * Default sink implementation - console output.
9
+ * Used when no specific implementation is registered.
10
+ */
11
+ class DefaultSinkImplementation {
12
+ id;
13
+ descriptor;
14
+ constructor(descriptor, _context) {
15
+ this.id = descriptor.id;
16
+ this.descriptor = descriptor;
17
+ }
18
+ emit(entry) {
19
+ const { level, namespace, message, context } = entry;
20
+ const prefix = `[${namespace}]`;
21
+ const payload = JSON.stringify(context);
22
+ const line = `[${level.toUpperCase()}] ${prefix} ${message} ${payload}`;
23
+ console.error(line);
24
+ }
25
+ }
26
+ /**
27
+ * Sink kind resolution logic.
28
+ * Selects sink based on hardware compatibility.
29
+ */
30
+ function resolveSink(candidates, scope, _context) {
31
+ const typed = candidates;
32
+ if (typed.length === 0)
33
+ return undefined;
34
+ if (typed.length === 1)
35
+ return typed[0];
36
+ const hardware = scope.hardware;
37
+ // Filter by hardware compatibility
38
+ const matching = typed.filter((d) => {
39
+ if (!d.hardware || d.hardware.length === 0)
40
+ return true;
41
+ return d.hardware.includes(hardware);
42
+ });
43
+ if (matching.length === 0)
44
+ return undefined;
45
+ // Prefer sinks with explicit hardware match
46
+ const explicit = matching.filter((d) => d.hardware && d.hardware.length > 0);
47
+ if (explicit.length > 0)
48
+ return explicit[0];
49
+ return matching[0];
50
+ }
51
+ /**
52
+ * Sink kind definition for runtime registration.
53
+ */
54
+ export const sinkKind = {
55
+ id: 'logging/sink',
56
+ descriptorSchema: SinkDescriptorSchema,
57
+ defaultImplementation: DefaultSinkImplementation,
58
+ resolve: resolveSink,
59
+ contexts: []
60
+ };
61
+ //# sourceMappingURL=sink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sink.js","sourceRoot":"","sources":["../../src/kinds/sink.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAuB,MAAM,oBAAoB,CAAC;AAwB/E;;;GAGG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,CAAC;QAAE,OAAO,SAAS,CAAC;IAE5C,4CAA4C;IAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC7E,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE5C,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA2E;IAC/F,EAAE,EAAE,cAAc;IAClB,gBAAgB,EAAE,oBAAoB;IACtC,qBAAqB,EAAE,yBAAyB;IAChD,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,EAAE;CACZ,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * CLI Logger Context Descriptor
3
+ *
4
+ * Provides logger instance for CLI surface.
5
+ */
6
+ declare const _default: {
7
+ id: string;
8
+ kind: "context";
9
+ name?: string | undefined;
10
+ description?: string | undefined;
11
+ tags?: string[] | undefined;
12
+ hardware?: string[] | undefined;
13
+ enabled?: boolean | undefined;
14
+ priority?: number | undefined;
15
+ requiredContext?: string[] | undefined;
16
+ optionalContext?: string[] | undefined;
17
+ config?: Record<string, unknown> | undefined;
18
+ valueSchema?: unknown;
19
+ };
20
+ export default _default;
21
+ //# sourceMappingURL=logger.context.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.context.descriptor.d.ts","sourceRoot":"","sources":["../src/logger.context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;AAIH,wBAIG"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * CLI Logger Context Descriptor
3
+ *
4
+ * Provides logger instance for CLI surface.
5
+ */
6
+ import { createContextDescriptor } from '@vibesdotdev/runtime/factory/context';
7
+ export default createContextDescriptor({
8
+ id: 'cli/logger',
9
+ description: 'Logger instance for CLI and terminal output.',
10
+ hardware: ['consumer']
11
+ });
12
+ //# sourceMappingURL=logger.context.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.context.descriptor.js","sourceRoot":"","sources":["../src/logger.context.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,eAAe,uBAAuB,CAAC;IACtC,EAAE,EAAE,YAAY;IAChB,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Logging CLI Slice Plugin
3
+ *
4
+ * Registers the `vibes logs *` CLI surface (group + commands) against the
5
+ * `cli/group` and `cli/command` kinds owned by `@vibesdotdev/cli`.
6
+ *
7
+ * Per docs/architecture/RUNTIME-FIRST-MODULES.md §What Surfaces Are Allowed To Do
8
+ * and §Plugin Composition Rules, CLI is a surface adapter. The core
9
+ * `@vibesdotdev/logging/plugin` registers logging kinds and sinks/formatters/
10
+ * outputs that every consumer needs; this slice plugin layers the CLI surface
11
+ * on top so SSR/web/worker apps can consume logging without dragging the CLI
12
+ * machinery into their plugin chain.
13
+ *
14
+ * Apps that ship a CLI surface (account, ai, tools, cli-bin, etc.) should
15
+ * include both `@vibesdotdev/cli/cli.plugin` and `@vibesdotdev/logging/cli.plugin`
16
+ * after the core logging plugin in their `vibes.config.ts`.
17
+ */
18
+ declare const _default: import("@vibesdotdev/runtime").RuntimePlugin;
19
+ export default _default;
20
+ //# sourceMappingURL=logging.cli.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logging.cli.plugin.d.ts","sourceRoot":"","sources":["../src/logging.cli.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;;AAWH,wBAeG"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Logging CLI Slice Plugin
3
+ *
4
+ * Registers the `vibes logs *` CLI surface (group + commands) against the
5
+ * `cli/group` and `cli/command` kinds owned by `@vibesdotdev/cli`.
6
+ *
7
+ * Per docs/architecture/RUNTIME-FIRST-MODULES.md §What Surfaces Are Allowed To Do
8
+ * and §Plugin Composition Rules, CLI is a surface adapter. The core
9
+ * `@vibesdotdev/logging/plugin` registers logging kinds and sinks/formatters/
10
+ * outputs that every consumer needs; this slice plugin layers the CLI surface
11
+ * on top so SSR/web/worker apps can consume logging without dragging the CLI
12
+ * machinery into their plugin chain.
13
+ *
14
+ * Apps that ship a CLI surface (account, ai, tools, cli-bin, etc.) should
15
+ * include both `@vibesdotdev/cli/cli.plugin` and `@vibesdotdev/logging/cli.plugin`
16
+ * after the core logging plugin in their `vibes.config.ts`.
17
+ */
18
+ import { createRuntimePlugin, loader } from '@vibesdotdev/runtime';
19
+ import logsGroup from './cli/logs.descriptor.js';
20
+ import logsList from './cli/logs.list.descriptor.js';
21
+ import logsSearch from './cli/logs.search.descriptor.js';
22
+ import logsTail from './cli/logs.tail.descriptor.js';
23
+ import logsRotate from './cli/logs.rotate.descriptor.js';
24
+ import logsView from './cli/logs.view.descriptor.js';
25
+ export default createRuntimePlugin({
26
+ id: 'logging.cli',
27
+ name: 'Logging CLI Surface',
28
+ description: '`vibes logs *` CLI commands for viewing, searching, tailing, rotating logs',
29
+ dependencies: ['logging', 'cli'],
30
+ descriptors: [logsGroup, logsList, logsSearch, logsTail, logsRotate, logsView],
31
+ loaders: [
32
+ loader('logs.list', { kind: 'cli/command' }, () => import('./cli/logs.list.impl.js')),
33
+ loader('logs.search', { kind: 'cli/command' }, () => import('./cli/logs.search.impl.js')),
34
+ loader('logs.tail', { kind: 'cli/command' }, () => import('./cli/logs.tail.impl.js')),
35
+ loader('logs.rotate', { kind: 'cli/command' }, () => import('./cli/logs.rotate.impl.js')),
36
+ loader('logs.view', { kind: 'cli/command' }, () => import('./cli/logs.view.impl.js'))
37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AAC,WAAW,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;KACrF;CACD,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Logging Plugin
3
+ *
4
+ * Registers logging kinds (sink, formatter, output, audit, logger) with the
5
+ * runtime. Context providers for 'logging/sinks' and 'logging/outputs' are
6
+ * autoloaded.
7
+ *
8
+ * Surface-neutral: depends only on `context`. Apps that ship a CLI surface
9
+ * (cli-bin, account, ai, tools) layer `@vibesdotdev/logging/cli.plugin` on
10
+ * top to register the `vibes logs *` commands. SSR/web/worker apps where
11
+ * `@vibesdotdev/cli` is shimmed out by the cloud build must NOT pull in the
12
+ * CLI slice — see logging.cli.plugin.ts.
13
+ */
14
+ declare const _default: import("@vibesdotdev/runtime").RuntimePlugin;
15
+ export default _default;
16
+ //# sourceMappingURL=logging.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logging.plugin.d.ts","sourceRoot":"","sources":["../src/logging.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;AA2BH,wBAqDG"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Logging Plugin
3
+ *
4
+ * Registers logging kinds (sink, formatter, output, audit, logger) with the
5
+ * runtime. Context providers for 'logging/sinks' and 'logging/outputs' are
6
+ * autoloaded.
7
+ *
8
+ * Surface-neutral: depends only on `context`. Apps that ship a CLI surface
9
+ * (cli-bin, account, ai, tools) layer `@vibesdotdev/logging/cli.plugin` on
10
+ * top to register the `vibes logs *` commands. SSR/web/worker apps where
11
+ * `@vibesdotdev/cli` is shimmed out by the cloud build must NOT pull in the
12
+ * CLI slice — see logging.cli.plugin.ts.
13
+ */
14
+ import { createRuntimePlugin } from '@vibesdotdev/runtime';
15
+ import { loader } from '@vibesdotdev/runtime';
16
+ import { sinkKind, formatterKind, outputKind, auditKind, loggerKind } from "./kinds/index.js";
17
+ import sinksContextDescriptor from './sinks.context.descriptor.js';
18
+ import outputsContextDescriptor from './outputs.context.descriptor.js';
19
+ import cliLoggerContextDescriptor from './logger.context.descriptor.js';
20
+ import consoleSinkDescriptor from './sinks/console/console.descriptor.js';
21
+ import bufferSinkDescriptor from './sinks/buffer/buffer.descriptor.js';
22
+ import stdoutSinkDescriptor from './sinks/stdout/stdout.descriptor.js';
23
+ import memorySinkDescriptor from './sinks/memory/memory.descriptor.js';
24
+ import prettyFormatterDescriptor from './formatters/pretty/pretty.descriptor.js';
25
+ import json5FormatterDescriptor from './formatters/json5/json5.descriptor.js';
26
+ import jsonlFormatterDescriptor from './formatters/jsonl/jsonl.descriptor.js';
27
+ import jsonFormatterDescriptor from './formatters/json/json.formatters.descriptor.js';
28
+ import remoteOutputDescriptor from './outputs/remote/remote.descriptor.js';
29
+ import defaultAuditDescriptor, { authenticationAuditDescriptor, securityAuditDescriptor } from './audit/audit.descriptor.js';
30
+ // Docs
31
+ import levelsDescriptor from './docs/levels.docs.descriptor.js';
32
+ import transportsDescriptor from './docs/transports.docs.descriptor.js';
33
+ import structuredDescriptor from './docs/structured.docs.descriptor.js';
34
+ export default createRuntimePlugin({
35
+ id: 'logging',
36
+ name: 'Logging Module',
37
+ description: 'Structured logging with sinks, formatters, outputs, and audit trails',
38
+ dependencies: ['context'],
39
+ // Cast required: kind descriptors use specific TDescriptor types which are
40
+ // contravariant in the defaultImplementation constructor parameter.
41
+ kinds: [
42
+ sinkKind,
43
+ formatterKind,
44
+ outputKind,
45
+ auditKind,
46
+ loggerKind
47
+ ],
48
+ descriptors: [
49
+ sinksContextDescriptor,
50
+ outputsContextDescriptor,
51
+ cliLoggerContextDescriptor,
52
+ consoleSinkDescriptor,
53
+ bufferSinkDescriptor,
54
+ stdoutSinkDescriptor,
55
+ memorySinkDescriptor,
56
+ prettyFormatterDescriptor,
57
+ json5FormatterDescriptor,
58
+ jsonlFormatterDescriptor,
59
+ jsonFormatterDescriptor,
60
+ remoteOutputDescriptor,
61
+ defaultAuditDescriptor,
62
+ authenticationAuditDescriptor,
63
+ securityAuditDescriptor,
64
+ levelsDescriptor,
65
+ transportsDescriptor,
66
+ structuredDescriptor
67
+ ],
68
+ loaders: [
69
+ loader(sinksContextDescriptor.id, { kind: 'context' }, () => import('./sinks.context.impl.js')),
70
+ loader(outputsContextDescriptor.id, { kind: 'context' }, () => import('./outputs.context.impl.js')),
71
+ loader('console', { kind: 'logging/sink' }, () => import('./sinks/console/console.impl.cli.js')),
72
+ loader('console', { kind: 'logging/sink', scope: 'browser' }, () => import('./sinks/console/console.impl.browser.js')),
73
+ loader('buffer', { kind: 'logging/sink' }, () => import('./sinks/buffer/buffer.impl.cli.js')),
74
+ loader('stdout', { kind: 'logging/sink' }, () => import('./sinks/stdout/stdout.impl.cli.js')),
75
+ loader('memory', { kind: 'logging/sink' }, () => import('./sinks/memory/memory.impl.js')),
76
+ loader('pretty', { kind: 'logging/formatter' }, () => import('./formatters/pretty/pretty.impl.cli.js')),
77
+ loader('json5', { kind: 'logging/formatter' }, () => import('./formatters/json5/json5.impl.js')),
78
+ loader('jsonl', { kind: 'logging/formatter' }, () => import('./formatters/jsonl/jsonl.impl.js')),
79
+ loader('json', { kind: 'logging/formatter' }, () => import('./formatters/json/json.impl.js')),
80
+ loader('remote', { kind: 'logging/output' }, () => import('./outputs/remote/remote.impl.js'))
81
+ ]
82
+ });
83
+ //# sourceMappingURL=logging.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logging.plugin.js","sourceRoot":"","sources":["../src/logging.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACN,mBAAmB,EAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,sBAAsB,MAAM,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AC,CAAC;QAChG,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;QAC7F,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;KAC7F;CACD,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Logging Outputs
3
+ *
4
+ * Descriptors and implementations are autoloaded by the runtime.
5
+ * No public API — use the runtime to resolve output implementations.
6
+ */
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outputs/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Logging Outputs
4
+ *
5
+ * Descriptors and implementations are autoloaded by the runtime.
6
+ * No public API — use the runtime to resolve output implementations.
7
+ */
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/outputs/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Remote Output Descriptor
3
+ *
4
+ * Sends logs to a remote HTTP endpoint.
5
+ * Cloud hardware target.
6
+ */
7
+ import type { OutputDescriptor } from '../../schemas/output.ts';
8
+ export declare const remoteOutputDescriptor: OutputDescriptor;
9
+ export default remoteOutputDescriptor;
10
+ //# sourceMappingURL=remote.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.descriptor.d.ts","sourceRoot":"","sources":["../../../src/outputs/remote/remote.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,eAAO,MAAM,sBAAsB,EAAE,gBAepC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}