phaibel 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (905) hide show
  1. package/README.md +245 -0
  2. package/dist/agentary.txt +82 -0
  3. package/dist/client/index.d.ts +135 -0
  4. package/dist/client/index.d.ts.map +1 -0
  5. package/dist/client/index.js +260 -0
  6. package/dist/client/index.js.map +1 -0
  7. package/dist/commands/cal.d.ts +31 -0
  8. package/dist/commands/cal.d.ts.map +1 -0
  9. package/dist/commands/cal.js +281 -0
  10. package/dist/commands/cal.js.map +1 -0
  11. package/dist/commands/chat.d.ts +3 -0
  12. package/dist/commands/chat.d.ts.map +1 -0
  13. package/dist/commands/chat.js +762 -0
  14. package/dist/commands/chat.js.map +1 -0
  15. package/dist/commands/config.d.ts +4 -0
  16. package/dist/commands/config.d.ts.map +1 -0
  17. package/dist/commands/config.js +184 -0
  18. package/dist/commands/config.js.map +1 -0
  19. package/dist/commands/cron.d.ts +4 -0
  20. package/dist/commands/cron.d.ts.map +1 -0
  21. package/dist/commands/cron.js +165 -0
  22. package/dist/commands/cron.js.map +1 -0
  23. package/dist/commands/entity-type.d.ts +3 -0
  24. package/dist/commands/entity-type.d.ts.map +1 -0
  25. package/dist/commands/entity-type.js +279 -0
  26. package/dist/commands/entity-type.js.map +1 -0
  27. package/dist/commands/entity.d.ts +3 -0
  28. package/dist/commands/entity.d.ts.map +1 -0
  29. package/dist/commands/entity.js +262 -0
  30. package/dist/commands/entity.js.map +1 -0
  31. package/dist/commands/event.d.ts +4 -0
  32. package/dist/commands/event.d.ts.map +1 -0
  33. package/dist/commands/event.js +515 -0
  34. package/dist/commands/event.js.map +1 -0
  35. package/dist/commands/feral.d.ts +3 -0
  36. package/dist/commands/feral.d.ts.map +1 -0
  37. package/dist/commands/feral.js +272 -0
  38. package/dist/commands/feral.js.map +1 -0
  39. package/dist/commands/goal.d.ts +4 -0
  40. package/dist/commands/goal.d.ts.map +1 -0
  41. package/dist/commands/goal.js +14 -0
  42. package/dist/commands/goal.js.map +1 -0
  43. package/dist/commands/inbox.d.ts +13 -0
  44. package/dist/commands/inbox.d.ts.map +1 -0
  45. package/dist/commands/inbox.js +210 -0
  46. package/dist/commands/inbox.js.map +1 -0
  47. package/dist/commands/init.d.ts +4 -0
  48. package/dist/commands/init.d.ts.map +1 -0
  49. package/dist/commands/init.js +154 -0
  50. package/dist/commands/init.js.map +1 -0
  51. package/dist/commands/interview.d.ts +14 -0
  52. package/dist/commands/interview.d.ts.map +1 -0
  53. package/dist/commands/interview.js +343 -0
  54. package/dist/commands/interview.js.map +1 -0
  55. package/dist/commands/list.d.ts +11 -0
  56. package/dist/commands/list.d.ts.map +1 -0
  57. package/dist/commands/list.js +168 -0
  58. package/dist/commands/list.js.map +1 -0
  59. package/dist/commands/note.d.ts +4 -0
  60. package/dist/commands/note.d.ts.map +1 -0
  61. package/dist/commands/note.js +548 -0
  62. package/dist/commands/note.js.map +1 -0
  63. package/dist/commands/pamp.d.ts +4 -0
  64. package/dist/commands/pamp.d.ts.map +1 -0
  65. package/dist/commands/pamp.js +323 -0
  66. package/dist/commands/pamp.js.map +1 -0
  67. package/dist/commands/person.d.ts +4 -0
  68. package/dist/commands/person.d.ts.map +1 -0
  69. package/dist/commands/person.js +185 -0
  70. package/dist/commands/person.js.map +1 -0
  71. package/dist/commands/project.d.ts +4 -0
  72. package/dist/commands/project.d.ts.map +1 -0
  73. package/dist/commands/project.js +70 -0
  74. package/dist/commands/project.js.map +1 -0
  75. package/dist/commands/recurrence.d.ts +17 -0
  76. package/dist/commands/recurrence.d.ts.map +1 -0
  77. package/dist/commands/recurrence.js +496 -0
  78. package/dist/commands/recurrence.js.map +1 -0
  79. package/dist/commands/remember.d.ts +4 -0
  80. package/dist/commands/remember.d.ts.map +1 -0
  81. package/dist/commands/remember.js +70 -0
  82. package/dist/commands/remember.js.map +1 -0
  83. package/dist/commands/research.d.ts +4 -0
  84. package/dist/commands/research.d.ts.map +1 -0
  85. package/dist/commands/research.js +14 -0
  86. package/dist/commands/research.js.map +1 -0
  87. package/dist/commands/service.d.ts +14 -0
  88. package/dist/commands/service.d.ts.map +1 -0
  89. package/dist/commands/service.js +313 -0
  90. package/dist/commands/service.js.map +1 -0
  91. package/dist/commands/setup.d.ts +4 -0
  92. package/dist/commands/setup.d.ts.map +1 -0
  93. package/dist/commands/setup.js +42 -0
  94. package/dist/commands/setup.js.map +1 -0
  95. package/dist/commands/shell.d.ts +3 -0
  96. package/dist/commands/shell.d.ts.map +1 -0
  97. package/dist/commands/shell.js +346 -0
  98. package/dist/commands/shell.js.map +1 -0
  99. package/dist/commands/skill.d.ts +4 -0
  100. package/dist/commands/skill.d.ts.map +1 -0
  101. package/dist/commands/skill.js +84 -0
  102. package/dist/commands/skill.js.map +1 -0
  103. package/dist/commands/sync.d.ts +4 -0
  104. package/dist/commands/sync.d.ts.map +1 -0
  105. package/dist/commands/sync.js +68 -0
  106. package/dist/commands/sync.js.map +1 -0
  107. package/dist/commands/time.d.ts +3 -0
  108. package/dist/commands/time.d.ts.map +1 -0
  109. package/dist/commands/time.js +12 -0
  110. package/dist/commands/time.js.map +1 -0
  111. package/dist/commands/today.d.ts +4 -0
  112. package/dist/commands/today.d.ts.map +1 -0
  113. package/dist/commands/today.js +112 -0
  114. package/dist/commands/today.js.map +1 -0
  115. package/dist/commands/todo.d.ts +4 -0
  116. package/dist/commands/todo.d.ts.map +1 -0
  117. package/dist/commands/todo.js +678 -0
  118. package/dist/commands/todo.js.map +1 -0
  119. package/dist/commands/todont.d.ts +19 -0
  120. package/dist/commands/todont.d.ts.map +1 -0
  121. package/dist/commands/todont.js +209 -0
  122. package/dist/commands/todont.js.map +1 -0
  123. package/dist/commands/week.d.ts +4 -0
  124. package/dist/commands/week.d.ts.map +1 -0
  125. package/dist/commands/week.js +267 -0
  126. package/dist/commands/week.js.map +1 -0
  127. package/dist/config.d.ts +16 -0
  128. package/dist/config.d.ts.map +1 -0
  129. package/dist/config.js +141 -0
  130. package/dist/config.js.map +1 -0
  131. package/dist/context/mentions.d.ts +21 -0
  132. package/dist/context/mentions.d.ts.map +1 -0
  133. package/dist/context/mentions.js +146 -0
  134. package/dist/context/mentions.js.map +1 -0
  135. package/dist/context/reader.d.ts +54 -0
  136. package/dist/context/reader.d.ts.map +1 -0
  137. package/dist/context/reader.js +133 -0
  138. package/dist/context/reader.js.map +1 -0
  139. package/dist/dobbai.txt +55 -0
  140. package/dist/dobbi.txt +55 -0
  141. package/dist/dobbie-bundle.cjs +73313 -0
  142. package/dist/dobbie.txt +55 -0
  143. package/dist/entities/embedding-index.d.ts +26 -0
  144. package/dist/entities/embedding-index.d.ts.map +1 -0
  145. package/dist/entities/embedding-index.js +200 -0
  146. package/dist/entities/embedding-index.js.map +1 -0
  147. package/dist/entities/entity-index.d.ts +74 -0
  148. package/dist/entities/entity-index.d.ts.map +1 -0
  149. package/dist/entities/entity-index.js +369 -0
  150. package/dist/entities/entity-index.js.map +1 -0
  151. package/dist/entities/entity-summary.d.ts +6 -0
  152. package/dist/entities/entity-summary.d.ts.map +1 -0
  153. package/dist/entities/entity-summary.js +36 -0
  154. package/dist/entities/entity-summary.js.map +1 -0
  155. package/dist/entities/entity-type-config.d.ts +83 -0
  156. package/dist/entities/entity-type-config.d.ts.map +1 -0
  157. package/dist/entities/entity-type-config.js +134 -0
  158. package/dist/entities/entity-type-config.js.map +1 -0
  159. package/dist/entities/entity-types-defaults.d.ts +5 -0
  160. package/dist/entities/entity-types-defaults.d.ts.map +1 -0
  161. package/dist/entities/entity-types-defaults.js +59 -0
  162. package/dist/entities/entity-types-defaults.js.map +1 -0
  163. package/dist/entities/entity-validator.d.ts +21 -0
  164. package/dist/entities/entity-validator.d.ts.map +1 -0
  165. package/dist/entities/entity-validator.js +102 -0
  166. package/dist/entities/entity-validator.js.map +1 -0
  167. package/dist/entities/entity.d.ts +180 -0
  168. package/dist/entities/entity.d.ts.map +1 -0
  169. package/dist/entities/entity.js +357 -0
  170. package/dist/entities/entity.js.map +1 -0
  171. package/dist/entities/spawner.d.ts +67 -0
  172. package/dist/entities/spawner.d.ts.map +1 -0
  173. package/dist/entities/spawner.js +294 -0
  174. package/dist/entities/spawner.js.map +1 -0
  175. package/dist/feral/agent/agent-brain.d.ts +22 -0
  176. package/dist/feral/agent/agent-brain.d.ts.map +1 -0
  177. package/dist/feral/agent/agent-brain.js +5 -0
  178. package/dist/feral/agent/agent-brain.js.map +1 -0
  179. package/dist/feral/agent/agent.d.ts +27 -0
  180. package/dist/feral/agent/agent.d.ts.map +1 -0
  181. package/dist/feral/agent/agent.js +12 -0
  182. package/dist/feral/agent/agent.js.map +1 -0
  183. package/dist/feral/agent/chatgpt-brain.d.ts +14 -0
  184. package/dist/feral/agent/chatgpt-brain.d.ts.map +1 -0
  185. package/dist/feral/agent/chatgpt-brain.js +73 -0
  186. package/dist/feral/agent/chatgpt-brain.js.map +1 -0
  187. package/dist/feral/agent/index.d.ts +10 -0
  188. package/dist/feral/agent/index.d.ts.map +1 -0
  189. package/dist/feral/agent/index.js +13 -0
  190. package/dist/feral/agent/index.js.map +1 -0
  191. package/dist/feral/agent/model-schema.d.ts +37 -0
  192. package/dist/feral/agent/model-schema.d.ts.map +1 -0
  193. package/dist/feral/agent/model-schema.js +43 -0
  194. package/dist/feral/agent/model-schema.js.map +1 -0
  195. package/dist/feral/agent/process-agent.d.ts +20 -0
  196. package/dist/feral/agent/process-agent.d.ts.map +1 -0
  197. package/dist/feral/agent/process-agent.js +81 -0
  198. package/dist/feral/agent/process-agent.js.map +1 -0
  199. package/dist/feral/agent/protoflow-agent.d.ts +20 -0
  200. package/dist/feral/agent/protoflow-agent.d.ts.map +1 -0
  201. package/dist/feral/agent/protoflow-agent.js +99 -0
  202. package/dist/feral/agent/protoflow-agent.js.map +1 -0
  203. package/dist/feral/agent/render-prompt.d.ts +12 -0
  204. package/dist/feral/agent/render-prompt.d.ts.map +1 -0
  205. package/dist/feral/agent/render-prompt.js +26 -0
  206. package/dist/feral/agent/render-prompt.js.map +1 -0
  207. package/dist/feral/bootstrap.d.ts +31 -0
  208. package/dist/feral/bootstrap.d.ts.map +1 -0
  209. package/dist/feral/bootstrap.js +241 -0
  210. package/dist/feral/bootstrap.js.map +1 -0
  211. package/dist/feral/catalog/agent-catalog-source.d.ts +9 -0
  212. package/dist/feral/catalog/agent-catalog-source.d.ts.map +1 -0
  213. package/dist/feral/catalog/agent-catalog-source.js +115 -0
  214. package/dist/feral/catalog/agent-catalog-source.js.map +1 -0
  215. package/dist/feral/catalog/built-in-catalog-source.d.ts +14 -0
  216. package/dist/feral/catalog/built-in-catalog-source.d.ts.map +1 -0
  217. package/dist/feral/catalog/built-in-catalog-source.js +25 -0
  218. package/dist/feral/catalog/built-in-catalog-source.js.map +1 -0
  219. package/dist/feral/catalog/catalog-node.d.ts +22 -0
  220. package/dist/feral/catalog/catalog-node.d.ts.map +1 -0
  221. package/dist/feral/catalog/catalog-node.js +14 -0
  222. package/dist/feral/catalog/catalog-node.js.map +1 -0
  223. package/dist/feral/catalog/catalog.d.ts +17 -0
  224. package/dist/feral/catalog/catalog.d.ts.map +1 -0
  225. package/dist/feral/catalog/catalog.js +27 -0
  226. package/dist/feral/catalog/catalog.js.map +1 -0
  227. package/dist/feral/catalog/entity-catalog-source.d.ts +13 -0
  228. package/dist/feral/catalog/entity-catalog-source.d.ts.map +1 -0
  229. package/dist/feral/catalog/entity-catalog-source.js +327 -0
  230. package/dist/feral/catalog/entity-catalog-source.js.map +1 -0
  231. package/dist/feral/catalog/feral-catalog-config.d.ts +26 -0
  232. package/dist/feral/catalog/feral-catalog-config.d.ts.map +1 -0
  233. package/dist/feral/catalog/feral-catalog-config.js +32 -0
  234. package/dist/feral/catalog/feral-catalog-config.js.map +1 -0
  235. package/dist/feral/catalog/introspect-catalog-source.d.ts +5 -0
  236. package/dist/feral/catalog/introspect-catalog-source.d.ts.map +1 -0
  237. package/dist/feral/catalog/introspect-catalog-source.js +83 -0
  238. package/dist/feral/catalog/introspect-catalog-source.js.map +1 -0
  239. package/dist/feral/catalog/json-catalog-source.d.ts +14 -0
  240. package/dist/feral/catalog/json-catalog-source.d.ts.map +1 -0
  241. package/dist/feral/catalog/json-catalog-source.js +26 -0
  242. package/dist/feral/catalog/json-catalog-source.js.map +1 -0
  243. package/dist/feral/catalog/mcp-catalog-source.d.ts +13 -0
  244. package/dist/feral/catalog/mcp-catalog-source.d.ts.map +1 -0
  245. package/dist/feral/catalog/mcp-catalog-source.js +28 -0
  246. package/dist/feral/catalog/mcp-catalog-source.js.map +1 -0
  247. package/dist/feral/catalog/output-catalog-source.d.ts +5 -0
  248. package/dist/feral/catalog/output-catalog-source.d.ts.map +1 -0
  249. package/dist/feral/catalog/output-catalog-source.js +32 -0
  250. package/dist/feral/catalog/output-catalog-source.js.map +1 -0
  251. package/dist/feral/catalog/pamp-catalog-source.d.ts +9 -0
  252. package/dist/feral/catalog/pamp-catalog-source.d.ts.map +1 -0
  253. package/dist/feral/catalog/pamp-catalog-source.js +42 -0
  254. package/dist/feral/catalog/pamp-catalog-source.js.map +1 -0
  255. package/dist/feral/catalog/slack-catalog-source.d.ts +10 -0
  256. package/dist/feral/catalog/slack-catalog-source.d.ts.map +1 -0
  257. package/dist/feral/catalog/slack-catalog-source.js +96 -0
  258. package/dist/feral/catalog/slack-catalog-source.js.map +1 -0
  259. package/dist/feral/catalog/system-catalog-source.d.ts +5 -0
  260. package/dist/feral/catalog/system-catalog-source.d.ts.map +1 -0
  261. package/dist/feral/catalog/system-catalog-source.js +74 -0
  262. package/dist/feral/catalog/system-catalog-source.js.map +1 -0
  263. package/dist/feral/configuration/configuration-description.d.ts +24 -0
  264. package/dist/feral/configuration/configuration-description.d.ts.map +1 -0
  265. package/dist/feral/configuration/configuration-description.js +5 -0
  266. package/dist/feral/configuration/configuration-description.js.map +1 -0
  267. package/dist/feral/configuration/configuration-manager.d.ts +12 -0
  268. package/dist/feral/configuration/configuration-manager.d.ts.map +1 -0
  269. package/dist/feral/configuration/configuration-manager.js +41 -0
  270. package/dist/feral/configuration/configuration-manager.js.map +1 -0
  271. package/dist/feral/configuration/configuration-value.d.ts +16 -0
  272. package/dist/feral/configuration/configuration-value.d.ts.map +1 -0
  273. package/dist/feral/configuration/configuration-value.js +22 -0
  274. package/dist/feral/configuration/configuration-value.js.map +1 -0
  275. package/dist/feral/context/context.d.ts +28 -0
  276. package/dist/feral/context/context.d.ts.map +1 -0
  277. package/dist/feral/context/context.js +44 -0
  278. package/dist/feral/context/context.js.map +1 -0
  279. package/dist/feral/engine/process-engine.d.ts +23 -0
  280. package/dist/feral/engine/process-engine.d.ts.map +1 -0
  281. package/dist/feral/engine/process-engine.js +134 -0
  282. package/dist/feral/engine/process-engine.js.map +1 -0
  283. package/dist/feral/errors.d.ts +28 -0
  284. package/dist/feral/errors.d.ts.map +1 -0
  285. package/dist/feral/errors.js +58 -0
  286. package/dist/feral/errors.js.map +1 -0
  287. package/dist/feral/events/event-dispatcher.d.ts +9 -0
  288. package/dist/feral/events/event-dispatcher.d.ts.map +1 -0
  289. package/dist/feral/events/event-dispatcher.js +27 -0
  290. package/dist/feral/events/event-dispatcher.js.map +1 -0
  291. package/dist/feral/events/events.d.ts +41 -0
  292. package/dist/feral/events/events.d.ts.map +1 -0
  293. package/dist/feral/events/events.js +5 -0
  294. package/dist/feral/events/events.js.map +1 -0
  295. package/dist/feral/events/subscribers/cycle-detection-subscriber.d.ts +7 -0
  296. package/dist/feral/events/subscribers/cycle-detection-subscriber.d.ts.map +1 -0
  297. package/dist/feral/events/subscribers/cycle-detection-subscriber.js +21 -0
  298. package/dist/feral/events/subscribers/cycle-detection-subscriber.js.map +1 -0
  299. package/dist/feral/events/subscribers/logger-subscriber.d.ts +6 -0
  300. package/dist/feral/events/subscribers/logger-subscriber.d.ts.map +1 -0
  301. package/dist/feral/events/subscribers/logger-subscriber.js +23 -0
  302. package/dist/feral/events/subscribers/logger-subscriber.js.map +1 -0
  303. package/dist/feral/events/subscribers/profiler-subscriber.d.ts +8 -0
  304. package/dist/feral/events/subscribers/profiler-subscriber.d.ts.map +1 -0
  305. package/dist/feral/events/subscribers/profiler-subscriber.js +27 -0
  306. package/dist/feral/events/subscribers/profiler-subscriber.js.map +1 -0
  307. package/dist/feral/feral-tool-registry.d.ts +18 -0
  308. package/dist/feral/feral-tool-registry.d.ts.map +1 -0
  309. package/dist/feral/feral-tool-registry.js +78 -0
  310. package/dist/feral/feral-tool-registry.js.map +1 -0
  311. package/dist/feral/index.d.ts +88 -0
  312. package/dist/feral/index.d.ts.map +1 -0
  313. package/dist/feral/index.js +89 -0
  314. package/dist/feral/index.js.map +1 -0
  315. package/dist/feral/node-code/abstract-node-code.d.ts +38 -0
  316. package/dist/feral/node-code/abstract-node-code.d.ts.map +1 -0
  317. package/dist/feral/node-code/abstract-node-code.js +127 -0
  318. package/dist/feral/node-code/abstract-node-code.js.map +1 -0
  319. package/dist/feral/node-code/data/calculation-node-code.d.ts +11 -0
  320. package/dist/feral/node-code/data/calculation-node-code.d.ts.map +1 -0
  321. package/dist/feral/node-code/data/calculation-node-code.js +65 -0
  322. package/dist/feral/node-code/data/calculation-node-code.js.map +1 -0
  323. package/dist/feral/node-code/data/clean-llm-json-node-code.d.ts +11 -0
  324. package/dist/feral/node-code/data/clean-llm-json-node-code.d.ts.map +1 -0
  325. package/dist/feral/node-code/data/clean-llm-json-node-code.js +47 -0
  326. package/dist/feral/node-code/data/clean-llm-json-node-code.js.map +1 -0
  327. package/dist/feral/node-code/data/counter-node-code.d.ts +11 -0
  328. package/dist/feral/node-code/data/counter-node-code.d.ts.map +1 -0
  329. package/dist/feral/node-code/data/counter-node-code.js +29 -0
  330. package/dist/feral/node-code/data/counter-node-code.js.map +1 -0
  331. package/dist/feral/node-code/data/http-node-code.d.ts +11 -0
  332. package/dist/feral/node-code/data/http-node-code.d.ts.map +1 -0
  333. package/dist/feral/node-code/data/http-node-code.js +66 -0
  334. package/dist/feral/node-code/data/http-node-code.js.map +1 -0
  335. package/dist/feral/node-code/data/json-decode-node-code.d.ts +11 -0
  336. package/dist/feral/node-code/data/json-decode-node-code.d.ts.map +1 -0
  337. package/dist/feral/node-code/data/json-decode-node-code.js +34 -0
  338. package/dist/feral/node-code/data/json-decode-node-code.js.map +1 -0
  339. package/dist/feral/node-code/data/json-encode-node-code.d.ts +11 -0
  340. package/dist/feral/node-code/data/json-encode-node-code.d.ts.map +1 -0
  341. package/dist/feral/node-code/data/json-encode-node-code.js +30 -0
  342. package/dist/feral/node-code/data/json-encode-node-code.js.map +1 -0
  343. package/dist/feral/node-code/data/llm-chat-node-code.d.ts +11 -0
  344. package/dist/feral/node-code/data/llm-chat-node-code.d.ts.map +1 -0
  345. package/dist/feral/node-code/data/llm-chat-node-code.js +93 -0
  346. package/dist/feral/node-code/data/llm-chat-node-code.js.map +1 -0
  347. package/dist/feral/node-code/data/log-node-code.d.ts +13 -0
  348. package/dist/feral/node-code/data/log-node-code.d.ts.map +1 -0
  349. package/dist/feral/node-code/data/log-node-code.js +44 -0
  350. package/dist/feral/node-code/data/log-node-code.js.map +1 -0
  351. package/dist/feral/node-code/data/random-value-node-code.d.ts +11 -0
  352. package/dist/feral/node-code/data/random-value-node-code.d.ts.map +1 -0
  353. package/dist/feral/node-code/data/random-value-node-code.js +43 -0
  354. package/dist/feral/node-code/data/random-value-node-code.js.map +1 -0
  355. package/dist/feral/node-code/data/read-file-node-code.d.ts +11 -0
  356. package/dist/feral/node-code/data/read-file-node-code.d.ts.map +1 -0
  357. package/dist/feral/node-code/data/read-file-node-code.js +50 -0
  358. package/dist/feral/node-code/data/read-file-node-code.js.map +1 -0
  359. package/dist/feral/node-code/data/set-context-table-node-code.d.ts +11 -0
  360. package/dist/feral/node-code/data/set-context-table-node-code.d.ts.map +1 -0
  361. package/dist/feral/node-code/data/set-context-table-node-code.js +34 -0
  362. package/dist/feral/node-code/data/set-context-table-node-code.js.map +1 -0
  363. package/dist/feral/node-code/data/set-context-value-node-code.d.ts +11 -0
  364. package/dist/feral/node-code/data/set-context-value-node-code.d.ts.map +1 -0
  365. package/dist/feral/node-code/data/set-context-value-node-code.js +43 -0
  366. package/dist/feral/node-code/data/set-context-value-node-code.js.map +1 -0
  367. package/dist/feral/node-code/data/weather-node-code.d.ts +11 -0
  368. package/dist/feral/node-code/data/weather-node-code.d.ts.map +1 -0
  369. package/dist/feral/node-code/data/weather-node-code.js +88 -0
  370. package/dist/feral/node-code/data/weather-node-code.js.map +1 -0
  371. package/dist/feral/node-code/entity/complete-entity-node-code.d.ts +11 -0
  372. package/dist/feral/node-code/entity/complete-entity-node-code.d.ts.map +1 -0
  373. package/dist/feral/node-code/entity/complete-entity-node-code.js +72 -0
  374. package/dist/feral/node-code/entity/complete-entity-node-code.js.map +1 -0
  375. package/dist/feral/node-code/entity/create-entity-node-code.d.ts +11 -0
  376. package/dist/feral/node-code/entity/create-entity-node-code.d.ts.map +1 -0
  377. package/dist/feral/node-code/entity/create-entity-node-code.js +109 -0
  378. package/dist/feral/node-code/entity/create-entity-node-code.js.map +1 -0
  379. package/dist/feral/node-code/entity/create-entity-type-node-code.d.ts +11 -0
  380. package/dist/feral/node-code/entity/create-entity-type-node-code.d.ts.map +1 -0
  381. package/dist/feral/node-code/entity/create-entity-type-node-code.js +131 -0
  382. package/dist/feral/node-code/entity/create-entity-type-node-code.js.map +1 -0
  383. package/dist/feral/node-code/entity/create-recurring-task-node-code.d.ts +15 -0
  384. package/dist/feral/node-code/entity/create-recurring-task-node-code.d.ts.map +1 -0
  385. package/dist/feral/node-code/entity/create-recurring-task-node-code.js +146 -0
  386. package/dist/feral/node-code/entity/create-recurring-task-node-code.js.map +1 -0
  387. package/dist/feral/node-code/entity/delete-entity-node-code.d.ts +11 -0
  388. package/dist/feral/node-code/entity/delete-entity-node-code.d.ts.map +1 -0
  389. package/dist/feral/node-code/entity/delete-entity-node-code.js +60 -0
  390. package/dist/feral/node-code/entity/delete-entity-node-code.js.map +1 -0
  391. package/dist/feral/node-code/entity/delete-entity-type-node-code.d.ts +11 -0
  392. package/dist/feral/node-code/entity/delete-entity-type-node-code.d.ts.map +1 -0
  393. package/dist/feral/node-code/entity/delete-entity-type-node-code.js +51 -0
  394. package/dist/feral/node-code/entity/delete-entity-type-node-code.js.map +1 -0
  395. package/dist/feral/node-code/entity/find-entity-node-code.d.ts +13 -0
  396. package/dist/feral/node-code/entity/find-entity-node-code.d.ts.map +1 -0
  397. package/dist/feral/node-code/entity/find-entity-node-code.js +59 -0
  398. package/dist/feral/node-code/entity/find-entity-node-code.js.map +1 -0
  399. package/dist/feral/node-code/entity/link-entities-node-code.d.ts +11 -0
  400. package/dist/feral/node-code/entity/link-entities-node-code.d.ts.map +1 -0
  401. package/dist/feral/node-code/entity/link-entities-node-code.js +64 -0
  402. package/dist/feral/node-code/entity/link-entities-node-code.js.map +1 -0
  403. package/dist/feral/node-code/entity/list-entities-node-code.d.ts +11 -0
  404. package/dist/feral/node-code/entity/list-entities-node-code.d.ts.map +1 -0
  405. package/dist/feral/node-code/entity/list-entities-node-code.js +44 -0
  406. package/dist/feral/node-code/entity/list-entities-node-code.js.map +1 -0
  407. package/dist/feral/node-code/entity/list-entity-types-node-code.d.ts +11 -0
  408. package/dist/feral/node-code/entity/list-entity-types-node-code.d.ts.map +1 -0
  409. package/dist/feral/node-code/entity/list-entity-types-node-code.js +22 -0
  410. package/dist/feral/node-code/entity/list-entity-types-node-code.js.map +1 -0
  411. package/dist/feral/node-code/entity/load-vault-context-node-code.d.ts +11 -0
  412. package/dist/feral/node-code/entity/load-vault-context-node-code.d.ts.map +1 -0
  413. package/dist/feral/node-code/entity/load-vault-context-node-code.js +66 -0
  414. package/dist/feral/node-code/entity/load-vault-context-node-code.js.map +1 -0
  415. package/dist/feral/node-code/entity/search-entities-node-code.d.ts +13 -0
  416. package/dist/feral/node-code/entity/search-entities-node-code.d.ts.map +1 -0
  417. package/dist/feral/node-code/entity/search-entities-node-code.js +66 -0
  418. package/dist/feral/node-code/entity/search-entities-node-code.js.map +1 -0
  419. package/dist/feral/node-code/entity/set-entity-field-node-code.d.ts +11 -0
  420. package/dist/feral/node-code/entity/set-entity-field-node-code.d.ts.map +1 -0
  421. package/dist/feral/node-code/entity/set-entity-field-node-code.js +65 -0
  422. package/dist/feral/node-code/entity/set-entity-field-node-code.js.map +1 -0
  423. package/dist/feral/node-code/entity/sort-entities-node-code.d.ts +11 -0
  424. package/dist/feral/node-code/entity/sort-entities-node-code.d.ts.map +1 -0
  425. package/dist/feral/node-code/entity/sort-entities-node-code.js +67 -0
  426. package/dist/feral/node-code/entity/sort-entities-node-code.js.map +1 -0
  427. package/dist/feral/node-code/entity/update-entity-node-code.d.ts +13 -0
  428. package/dist/feral/node-code/entity/update-entity-node-code.d.ts.map +1 -0
  429. package/dist/feral/node-code/entity/update-entity-node-code.js +131 -0
  430. package/dist/feral/node-code/entity/update-entity-node-code.js.map +1 -0
  431. package/dist/feral/node-code/entity/update-entity-type-node-code.d.ts +11 -0
  432. package/dist/feral/node-code/entity/update-entity-type-node-code.d.ts.map +1 -0
  433. package/dist/feral/node-code/entity/update-entity-type-node-code.js +118 -0
  434. package/dist/feral/node-code/entity/update-entity-type-node-code.js.map +1 -0
  435. package/dist/feral/node-code/flow/array-iterator-node-code.d.ts +11 -0
  436. package/dist/feral/node-code/flow/array-iterator-node-code.d.ts.map +1 -0
  437. package/dist/feral/node-code/flow/array-iterator-node-code.js +91 -0
  438. package/dist/feral/node-code/flow/array-iterator-node-code.js.map +1 -0
  439. package/dist/feral/node-code/flow/comparator-node-code.d.ts +11 -0
  440. package/dist/feral/node-code/flow/comparator-node-code.d.ts.map +1 -0
  441. package/dist/feral/node-code/flow/comparator-node-code.js +55 -0
  442. package/dist/feral/node-code/flow/comparator-node-code.js.map +1 -0
  443. package/dist/feral/node-code/flow/context-value-result-node-code.d.ts +11 -0
  444. package/dist/feral/node-code/flow/context-value-result-node-code.d.ts.map +1 -0
  445. package/dist/feral/node-code/flow/context-value-result-node-code.js +22 -0
  446. package/dist/feral/node-code/flow/context-value-result-node-code.js.map +1 -0
  447. package/dist/feral/node-code/flow/noop-node-code.d.ts +11 -0
  448. package/dist/feral/node-code/flow/noop-node-code.d.ts.map +1 -0
  449. package/dist/feral/node-code/flow/noop-node-code.js +19 -0
  450. package/dist/feral/node-code/flow/noop-node-code.js.map +1 -0
  451. package/dist/feral/node-code/flow/start-node-code.d.ts +11 -0
  452. package/dist/feral/node-code/flow/start-node-code.d.ts.map +1 -0
  453. package/dist/feral/node-code/flow/start-node-code.js +19 -0
  454. package/dist/feral/node-code/flow/start-node-code.js.map +1 -0
  455. package/dist/feral/node-code/flow/stop-node-code.d.ts +11 -0
  456. package/dist/feral/node-code/flow/stop-node-code.d.ts.map +1 -0
  457. package/dist/feral/node-code/flow/stop-node-code.js +19 -0
  458. package/dist/feral/node-code/flow/stop-node-code.js.map +1 -0
  459. package/dist/feral/node-code/flow/sub-process-node-code.d.ts +11 -0
  460. package/dist/feral/node-code/flow/sub-process-node-code.d.ts.map +1 -0
  461. package/dist/feral/node-code/flow/sub-process-node-code.js +53 -0
  462. package/dist/feral/node-code/flow/sub-process-node-code.js.map +1 -0
  463. package/dist/feral/node-code/flow/throw-exception-node-code.d.ts +11 -0
  464. package/dist/feral/node-code/flow/throw-exception-node-code.d.ts.map +1 -0
  465. package/dist/feral/node-code/flow/throw-exception-node-code.js +20 -0
  466. package/dist/feral/node-code/flow/throw-exception-node-code.js.map +1 -0
  467. package/dist/feral/node-code/genai/data-synthesis-prep-node-code.d.ts +15 -0
  468. package/dist/feral/node-code/genai/data-synthesis-prep-node-code.d.ts.map +1 -0
  469. package/dist/feral/node-code/genai/data-synthesis-prep-node-code.js +44 -0
  470. package/dist/feral/node-code/genai/data-synthesis-prep-node-code.js.map +1 -0
  471. package/dist/feral/node-code/genai/generate-html-node-code.d.ts +13 -0
  472. package/dist/feral/node-code/genai/generate-html-node-code.d.ts.map +1 -0
  473. package/dist/feral/node-code/genai/generate-html-node-code.js +47 -0
  474. package/dist/feral/node-code/genai/generate-html-node-code.js.map +1 -0
  475. package/dist/feral/node-code/genai/generate-markdown-node-code.d.ts +27 -0
  476. package/dist/feral/node-code/genai/generate-markdown-node-code.d.ts.map +1 -0
  477. package/dist/feral/node-code/genai/generate-markdown-node-code.js +81 -0
  478. package/dist/feral/node-code/genai/generate-markdown-node-code.js.map +1 -0
  479. package/dist/feral/node-code/genai/hydrate-model-node-code.d.ts +21 -0
  480. package/dist/feral/node-code/genai/hydrate-model-node-code.d.ts.map +1 -0
  481. package/dist/feral/node-code/genai/hydrate-model-node-code.js +83 -0
  482. package/dist/feral/node-code/genai/hydrate-model-node-code.js.map +1 -0
  483. package/dist/feral/node-code/genai/merge-strings-node-code.d.ts +14 -0
  484. package/dist/feral/node-code/genai/merge-strings-node-code.d.ts.map +1 -0
  485. package/dist/feral/node-code/genai/merge-strings-node-code.js +34 -0
  486. package/dist/feral/node-code/genai/merge-strings-node-code.js.map +1 -0
  487. package/dist/feral/node-code/genai/model-to-output-node-code.d.ts +18 -0
  488. package/dist/feral/node-code/genai/model-to-output-node-code.d.ts.map +1 -0
  489. package/dist/feral/node-code/genai/model-to-output-node-code.js +49 -0
  490. package/dist/feral/node-code/genai/model-to-output-node-code.js.map +1 -0
  491. package/dist/feral/node-code/genai/openai-node-code.d.ts +14 -0
  492. package/dist/feral/node-code/genai/openai-node-code.d.ts.map +1 -0
  493. package/dist/feral/node-code/genai/openai-node-code.js +66 -0
  494. package/dist/feral/node-code/genai/openai-node-code.js.map +1 -0
  495. package/dist/feral/node-code/genai/write-entity-node-code.d.ts +22 -0
  496. package/dist/feral/node-code/genai/write-entity-node-code.d.ts.map +1 -0
  497. package/dist/feral/node-code/genai/write-entity-node-code.js +46 -0
  498. package/dist/feral/node-code/genai/write-entity-node-code.js.map +1 -0
  499. package/dist/feral/node-code/genai/write-file-node-code.d.ts +13 -0
  500. package/dist/feral/node-code/genai/write-file-node-code.d.ts.map +1 -0
  501. package/dist/feral/node-code/genai/write-file-node-code.js +59 -0
  502. package/dist/feral/node-code/genai/write-file-node-code.js.map +1 -0
  503. package/dist/feral/node-code/genai/write-to-redis-node-code.d.ts +23 -0
  504. package/dist/feral/node-code/genai/write-to-redis-node-code.d.ts.map +1 -0
  505. package/dist/feral/node-code/genai/write-to-redis-node-code.js +48 -0
  506. package/dist/feral/node-code/genai/write-to-redis-node-code.js.map +1 -0
  507. package/dist/feral/node-code/input/prompt-input-node-code.d.ts +11 -0
  508. package/dist/feral/node-code/input/prompt-input-node-code.d.ts.map +1 -0
  509. package/dist/feral/node-code/input/prompt-input-node-code.js +70 -0
  510. package/dist/feral/node-code/input/prompt-input-node-code.js.map +1 -0
  511. package/dist/feral/node-code/input/prompt-select-node-code.d.ts +11 -0
  512. package/dist/feral/node-code/input/prompt-select-node-code.d.ts.map +1 -0
  513. package/dist/feral/node-code/input/prompt-select-node-code.js +65 -0
  514. package/dist/feral/node-code/input/prompt-select-node-code.js.map +1 -0
  515. package/dist/feral/node-code/mcp/mcp-call-tool-node-code.d.ts +12 -0
  516. package/dist/feral/node-code/mcp/mcp-call-tool-node-code.d.ts.map +1 -0
  517. package/dist/feral/node-code/mcp/mcp-call-tool-node-code.js +44 -0
  518. package/dist/feral/node-code/mcp/mcp-call-tool-node-code.js.map +1 -0
  519. package/dist/feral/node-code/node-code-factory.d.ts +20 -0
  520. package/dist/feral/node-code/node-code-factory.d.ts.map +1 -0
  521. package/dist/feral/node-code/node-code-factory.js +32 -0
  522. package/dist/feral/node-code/node-code-factory.js.map +1 -0
  523. package/dist/feral/node-code/node-code.d.ts +22 -0
  524. package/dist/feral/node-code/node-code.d.ts.map +1 -0
  525. package/dist/feral/node-code/node-code.js +9 -0
  526. package/dist/feral/node-code/node-code.js.map +1 -0
  527. package/dist/feral/node-code/output/agent-speak-node-code.d.ts +11 -0
  528. package/dist/feral/node-code/output/agent-speak-node-code.d.ts.map +1 -0
  529. package/dist/feral/node-code/output/agent-speak-node-code.js +56 -0
  530. package/dist/feral/node-code/output/agent-speak-node-code.js.map +1 -0
  531. package/dist/feral/node-code/output/dobbai-speak-node-code.d.ts +11 -0
  532. package/dist/feral/node-code/output/dobbai-speak-node-code.d.ts.map +1 -0
  533. package/dist/feral/node-code/output/dobbai-speak-node-code.js +56 -0
  534. package/dist/feral/node-code/output/dobbai-speak-node-code.js.map +1 -0
  535. package/dist/feral/node-code/output/dobbi-speak-node-code.d.ts +15 -0
  536. package/dist/feral/node-code/output/dobbi-speak-node-code.d.ts.map +1 -0
  537. package/dist/feral/node-code/output/dobbi-speak-node-code.js +60 -0
  538. package/dist/feral/node-code/output/dobbi-speak-node-code.js.map +1 -0
  539. package/dist/feral/node-code/output/dobbie-speak-node-code.d.ts +11 -0
  540. package/dist/feral/node-code/output/dobbie-speak-node-code.d.ts.map +1 -0
  541. package/dist/feral/node-code/output/dobbie-speak-node-code.js +56 -0
  542. package/dist/feral/node-code/output/dobbie-speak-node-code.js.map +1 -0
  543. package/dist/feral/node-code/pamp/pamp-await-reply-node-code.d.ts +11 -0
  544. package/dist/feral/node-code/pamp/pamp-await-reply-node-code.d.ts.map +1 -0
  545. package/dist/feral/node-code/pamp/pamp-await-reply-node-code.js +51 -0
  546. package/dist/feral/node-code/pamp/pamp-await-reply-node-code.js.map +1 -0
  547. package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.d.ts +11 -0
  548. package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.d.ts.map +1 -0
  549. package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.js +37 -0
  550. package/dist/feral/node-code/pamp/pamp-check-inbox-node-code.js.map +1 -0
  551. package/dist/feral/node-code/pamp/pamp-send-node-code.d.ts +11 -0
  552. package/dist/feral/node-code/pamp/pamp-send-node-code.d.ts.map +1 -0
  553. package/dist/feral/node-code/pamp/pamp-send-node-code.js +48 -0
  554. package/dist/feral/node-code/pamp/pamp-send-node-code.js.map +1 -0
  555. package/dist/feral/node-code/pamp/pamp-share-entity-node-code.d.ts +11 -0
  556. package/dist/feral/node-code/pamp/pamp-share-entity-node-code.d.ts.map +1 -0
  557. package/dist/feral/node-code/pamp/pamp-share-entity-node-code.js +45 -0
  558. package/dist/feral/node-code/pamp/pamp-share-entity-node-code.js.map +1 -0
  559. package/dist/feral/node-code/slack/slack-block-builder-node-code.d.ts +18 -0
  560. package/dist/feral/node-code/slack/slack-block-builder-node-code.d.ts.map +1 -0
  561. package/dist/feral/node-code/slack/slack-block-builder-node-code.js +100 -0
  562. package/dist/feral/node-code/slack/slack-block-builder-node-code.js.map +1 -0
  563. package/dist/feral/node-code/slack/slack-post-webhook-node-code.d.ts +13 -0
  564. package/dist/feral/node-code/slack/slack-post-webhook-node-code.d.ts.map +1 -0
  565. package/dist/feral/node-code/slack/slack-post-webhook-node-code.js +47 -0
  566. package/dist/feral/node-code/slack/slack-post-webhook-node-code.js.map +1 -0
  567. package/dist/feral/node-code/slack/slack-process-slash-command-node-code.d.ts +14 -0
  568. package/dist/feral/node-code/slack/slack-process-slash-command-node-code.d.ts.map +1 -0
  569. package/dist/feral/node-code/slack/slack-process-slash-command-node-code.js +39 -0
  570. package/dist/feral/node-code/slack/slack-process-slash-command-node-code.js.map +1 -0
  571. package/dist/feral/node-code/system/cli-command-node-code.d.ts +11 -0
  572. package/dist/feral/node-code/system/cli-command-node-code.d.ts.map +1 -0
  573. package/dist/feral/node-code/system/cli-command-node-code.js +50 -0
  574. package/dist/feral/node-code/system/cli-command-node-code.js.map +1 -0
  575. package/dist/feral/node-code/system/introspect-node-code.d.ts +12 -0
  576. package/dist/feral/node-code/system/introspect-node-code.d.ts.map +1 -0
  577. package/dist/feral/node-code/system/introspect-node-code.js +98 -0
  578. package/dist/feral/node-code/system/introspect-node-code.js.map +1 -0
  579. package/dist/feral/node-code/system/list-catalog-nodes-node-code.d.ts +10 -0
  580. package/dist/feral/node-code/system/list-catalog-nodes-node-code.d.ts.map +1 -0
  581. package/dist/feral/node-code/system/list-catalog-nodes-node-code.js +33 -0
  582. package/dist/feral/node-code/system/list-catalog-nodes-node-code.js.map +1 -0
  583. package/dist/feral/node-code/system/list-processes-node-code.d.ts +10 -0
  584. package/dist/feral/node-code/system/list-processes-node-code.d.ts.map +1 -0
  585. package/dist/feral/node-code/system/list-processes-node-code.js +22 -0
  586. package/dist/feral/node-code/system/list-processes-node-code.js.map +1 -0
  587. package/dist/feral/process/edge.d.ts +18 -0
  588. package/dist/feral/process/edge.d.ts.map +1 -0
  589. package/dist/feral/process/edge.js +32 -0
  590. package/dist/feral/process/edge.js.map +1 -0
  591. package/dist/feral/process/json-process-source.d.ts +18 -0
  592. package/dist/feral/process/json-process-source.d.ts.map +1 -0
  593. package/dist/feral/process/json-process-source.js +55 -0
  594. package/dist/feral/process/json-process-source.js.map +1 -0
  595. package/dist/feral/process/node.d.ts +14 -0
  596. package/dist/feral/process/node.d.ts.map +1 -0
  597. package/dist/feral/process/node.js +5 -0
  598. package/dist/feral/process/node.js.map +1 -0
  599. package/dist/feral/process/process-factory.d.ts +18 -0
  600. package/dist/feral/process/process-factory.d.ts.map +1 -0
  601. package/dist/feral/process/process-factory.js +30 -0
  602. package/dist/feral/process/process-factory.js.map +1 -0
  603. package/dist/feral/process/process-json-hydrator.d.ts +53 -0
  604. package/dist/feral/process/process-json-hydrator.d.ts.map +1 -0
  605. package/dist/feral/process/process-json-hydrator.js +48 -0
  606. package/dist/feral/process/process-json-hydrator.js.map +1 -0
  607. package/dist/feral/process/process.d.ts +17 -0
  608. package/dist/feral/process/process.d.ts.map +1 -0
  609. package/dist/feral/process/process.js +5 -0
  610. package/dist/feral/process/process.js.map +1 -0
  611. package/dist/feral/result/result.d.ts +30 -0
  612. package/dist/feral/result/result.d.ts.map +1 -0
  613. package/dist/feral/result/result.js +28 -0
  614. package/dist/feral/result/result.js.map +1 -0
  615. package/dist/feral/runner/runner.d.ts +13 -0
  616. package/dist/feral/runner/runner.d.ts.map +1 -0
  617. package/dist/feral/runner/runner.js +28 -0
  618. package/dist/feral/runner/runner.js.map +1 -0
  619. package/dist/feral/security/file-access-guard.d.ts +18 -0
  620. package/dist/feral/security/file-access-guard.d.ts.map +1 -0
  621. package/dist/feral/security/file-access-guard.js +69 -0
  622. package/dist/feral/security/file-access-guard.js.map +1 -0
  623. package/dist/feral/slack/block-builder.d.ts +61 -0
  624. package/dist/feral/slack/block-builder.d.ts.map +1 -0
  625. package/dist/feral/slack/block-builder.js +206 -0
  626. package/dist/feral/slack/block-builder.js.map +1 -0
  627. package/dist/feral/slack/blocks.d.ts +86 -0
  628. package/dist/feral/slack/blocks.d.ts.map +1 -0
  629. package/dist/feral/slack/blocks.js +181 -0
  630. package/dist/feral/slack/blocks.js.map +1 -0
  631. package/dist/feral/slack/composition.d.ts +54 -0
  632. package/dist/feral/slack/composition.d.ts.map +1 -0
  633. package/dist/feral/slack/composition.js +114 -0
  634. package/dist/feral/slack/composition.js.map +1 -0
  635. package/dist/feral/slack/elements.d.ts +123 -0
  636. package/dist/feral/slack/elements.d.ts.map +1 -0
  637. package/dist/feral/slack/elements.js +269 -0
  638. package/dist/feral/slack/elements.js.map +1 -0
  639. package/dist/feral/slack/index.d.ts +12 -0
  640. package/dist/feral/slack/index.d.ts.map +1 -0
  641. package/dist/feral/slack/index.js +20 -0
  642. package/dist/feral/slack/index.js.map +1 -0
  643. package/dist/feral/slack/mapping-factory.d.ts +24 -0
  644. package/dist/feral/slack/mapping-factory.d.ts.map +1 -0
  645. package/dist/feral/slack/mapping-factory.js +45 -0
  646. package/dist/feral/slack/mapping-factory.js.map +1 -0
  647. package/dist/feral/slack/messages.d.ts +34 -0
  648. package/dist/feral/slack/messages.d.ts.map +1 -0
  649. package/dist/feral/slack/messages.js +53 -0
  650. package/dist/feral/slack/messages.js.map +1 -0
  651. package/dist/feral/slack/slack-facade.d.ts +20 -0
  652. package/dist/feral/slack/slack-facade.d.ts.map +1 -0
  653. package/dist/feral/slack/slack-facade.js +41 -0
  654. package/dist/feral/slack/slack-facade.js.map +1 -0
  655. package/dist/feral/slack/slack-markdown-formatter.d.ts +22 -0
  656. package/dist/feral/slack/slack-markdown-formatter.d.ts.map +1 -0
  657. package/dist/feral/slack/slack-markdown-formatter.js +36 -0
  658. package/dist/feral/slack/slack-markdown-formatter.js.map +1 -0
  659. package/dist/feral/slack/slash-command-input.d.ts +23 -0
  660. package/dist/feral/slack/slash-command-input.d.ts.map +1 -0
  661. package/dist/feral/slack/slash-command-input.js +45 -0
  662. package/dist/feral/slack/slash-command-input.js.map +1 -0
  663. package/dist/feral/slack/types.d.ts +64 -0
  664. package/dist/feral/slack/types.d.ts.map +1 -0
  665. package/dist/feral/slack/types.js +44 -0
  666. package/dist/feral/slack/types.js.map +1 -0
  667. package/dist/feral/trace/process-trace.d.ts +44 -0
  668. package/dist/feral/trace/process-trace.d.ts.map +1 -0
  669. package/dist/feral/trace/process-trace.js +44 -0
  670. package/dist/feral/trace/process-trace.js.map +1 -0
  671. package/dist/index.d.ts +5 -0
  672. package/dist/index.d.ts.map +1 -0
  673. package/dist/index.js +157 -0
  674. package/dist/index.js.map +1 -0
  675. package/dist/llm/providers/claude.d.ts +11 -0
  676. package/dist/llm/providers/claude.d.ts.map +1 -0
  677. package/dist/llm/providers/claude.js +45 -0
  678. package/dist/llm/providers/claude.js.map +1 -0
  679. package/dist/llm/providers/index.d.ts +5 -0
  680. package/dist/llm/providers/index.d.ts.map +1 -0
  681. package/dist/llm/providers/index.js +20 -0
  682. package/dist/llm/providers/index.js.map +1 -0
  683. package/dist/llm/providers/openai.d.ts +12 -0
  684. package/dist/llm/providers/openai.d.ts.map +1 -0
  685. package/dist/llm/providers/openai.js +62 -0
  686. package/dist/llm/providers/openai.js.map +1 -0
  687. package/dist/llm/router.d.ts +32 -0
  688. package/dist/llm/router.d.ts.map +1 -0
  689. package/dist/llm/router.js +100 -0
  690. package/dist/llm/router.js.map +1 -0
  691. package/dist/llm/types.d.ts +18 -0
  692. package/dist/llm/types.d.ts.map +1 -0
  693. package/dist/llm/types.js +2 -0
  694. package/dist/llm/types.js.map +1 -0
  695. package/dist/markdown/parser.d.ts +26 -0
  696. package/dist/markdown/parser.d.ts.map +1 -0
  697. package/dist/markdown/parser.js +58 -0
  698. package/dist/markdown/parser.js.map +1 -0
  699. package/dist/pamp/client.d.ts +39 -0
  700. package/dist/pamp/client.d.ts.map +1 -0
  701. package/dist/pamp/client.js +336 -0
  702. package/dist/pamp/client.js.map +1 -0
  703. package/dist/pamp/crypto.d.ts +23 -0
  704. package/dist/pamp/crypto.d.ts.map +1 -0
  705. package/dist/pamp/crypto.js +130 -0
  706. package/dist/pamp/crypto.js.map +1 -0
  707. package/dist/pamp/envelope.d.ts +23 -0
  708. package/dist/pamp/envelope.d.ts.map +1 -0
  709. package/dist/pamp/envelope.js +67 -0
  710. package/dist/pamp/envelope.js.map +1 -0
  711. package/dist/pamp/index.d.ts +6 -0
  712. package/dist/pamp/index.d.ts.map +1 -0
  713. package/dist/pamp/index.js +9 -0
  714. package/dist/pamp/index.js.map +1 -0
  715. package/dist/pamp/storage.d.ts +20 -0
  716. package/dist/pamp/storage.d.ts.map +1 -0
  717. package/dist/pamp/storage.js +160 -0
  718. package/dist/pamp/storage.js.map +1 -0
  719. package/dist/pamp/types.d.ts +80 -0
  720. package/dist/pamp/types.d.ts.map +1 -0
  721. package/dist/pamp/types.js +7 -0
  722. package/dist/pamp/types.js.map +1 -0
  723. package/dist/paths.d.ts +24 -0
  724. package/dist/paths.d.ts.map +1 -0
  725. package/dist/paths.js +70 -0
  726. package/dist/paths.js.map +1 -0
  727. package/dist/personalities.d.ts +20 -0
  728. package/dist/personalities.d.ts.map +1 -0
  729. package/dist/personalities.js +181 -0
  730. package/dist/personalities.js.map +1 -0
  731. package/dist/phaibel.txt +82 -0
  732. package/dist/responses.d.ts +34 -0
  733. package/dist/responses.d.ts.map +1 -0
  734. package/dist/responses.js +467 -0
  735. package/dist/responses.js.map +1 -0
  736. package/dist/schemas/index.d.ts +154 -0
  737. package/dist/schemas/index.d.ts.map +1 -0
  738. package/dist/schemas/index.js +73 -0
  739. package/dist/schemas/index.js.map +1 -0
  740. package/dist/service/api-router.d.ts +7 -0
  741. package/dist/service/api-router.d.ts.map +1 -0
  742. package/dist/service/api-router.js +478 -0
  743. package/dist/service/api-router.js.map +1 -0
  744. package/dist/service/context/provider.d.ts +76 -0
  745. package/dist/service/context/provider.d.ts.map +1 -0
  746. package/dist/service/context/provider.js +140 -0
  747. package/dist/service/context/provider.js.map +1 -0
  748. package/dist/service/cron/feedback-analysis.d.ts +2 -0
  749. package/dist/service/cron/feedback-analysis.d.ts.map +1 -0
  750. package/dist/service/cron/feedback-analysis.js +100 -0
  751. package/dist/service/cron/feedback-analysis.js.map +1 -0
  752. package/dist/service/cron/pamp-checker.d.ts +7 -0
  753. package/dist/service/cron/pamp-checker.d.ts.map +1 -0
  754. package/dist/service/cron/pamp-checker.js +29 -0
  755. package/dist/service/cron/pamp-checker.js.map +1 -0
  756. package/dist/service/cron/process-evaluator.d.ts +6 -0
  757. package/dist/service/cron/process-evaluator.d.ts.map +1 -0
  758. package/dist/service/cron/process-evaluator.js +126 -0
  759. package/dist/service/cron/process-evaluator.js.map +1 -0
  760. package/dist/service/cron/process-lifecycle.d.ts +6 -0
  761. package/dist/service/cron/process-lifecycle.d.ts.map +1 -0
  762. package/dist/service/cron/process-lifecycle.js +202 -0
  763. package/dist/service/cron/process-lifecycle.js.map +1 -0
  764. package/dist/service/cron/scheduler.d.ts +36 -0
  765. package/dist/service/cron/scheduler.d.ts.map +1 -0
  766. package/dist/service/cron/scheduler.js +232 -0
  767. package/dist/service/cron/scheduler.js.map +1 -0
  768. package/dist/service/daemon.d.ts +24 -0
  769. package/dist/service/daemon.d.ts.map +1 -0
  770. package/dist/service/daemon.js +181 -0
  771. package/dist/service/daemon.js.map +1 -0
  772. package/dist/service/index.d.ts +11 -0
  773. package/dist/service/index.d.ts.map +1 -0
  774. package/dist/service/index.js +255 -0
  775. package/dist/service/index.js.map +1 -0
  776. package/dist/service/protocol.d.ts +119 -0
  777. package/dist/service/protocol.d.ts.map +1 -0
  778. package/dist/service/protocol.js +17 -0
  779. package/dist/service/protocol.js.map +1 -0
  780. package/dist/service/queue/manager.d.ts +66 -0
  781. package/dist/service/queue/manager.d.ts.map +1 -0
  782. package/dist/service/queue/manager.js +206 -0
  783. package/dist/service/queue/manager.js.map +1 -0
  784. package/dist/service/queue/processor.d.ts +53 -0
  785. package/dist/service/queue/processor.d.ts.map +1 -0
  786. package/dist/service/queue/processor.js +288 -0
  787. package/dist/service/queue/processor.js.map +1 -0
  788. package/dist/service/queue/queue-persistence.d.ts +27 -0
  789. package/dist/service/queue/queue-persistence.d.ts.map +1 -0
  790. package/dist/service/queue/queue-persistence.js +53 -0
  791. package/dist/service/queue/queue-persistence.js.map +1 -0
  792. package/dist/service/server.d.ts +28 -0
  793. package/dist/service/server.d.ts.map +1 -0
  794. package/dist/service/server.js +101 -0
  795. package/dist/service/server.js.map +1 -0
  796. package/dist/service/task/builder.d.ts +43 -0
  797. package/dist/service/task/builder.d.ts.map +1 -0
  798. package/dist/service/task/builder.js +100 -0
  799. package/dist/service/task/builder.js.map +1 -0
  800. package/dist/service/task/types.d.ts +2 -0
  801. package/dist/service/task/types.d.ts.map +1 -0
  802. package/dist/service/task/types.js +3 -0
  803. package/dist/service/task/types.js.map +1 -0
  804. package/dist/service/web-client.html +1569 -0
  805. package/dist/service/web-server.d.ts +18 -0
  806. package/dist/service/web-server.d.ts.map +1 -0
  807. package/dist/service/web-server.js +395 -0
  808. package/dist/service/web-server.js.map +1 -0
  809. package/dist/shell/banner.d.ts +11 -0
  810. package/dist/shell/banner.d.ts.map +1 -0
  811. package/dist/shell/banner.js +66 -0
  812. package/dist/shell/banner.js.map +1 -0
  813. package/dist/shell/status-poller.d.ts +27 -0
  814. package/dist/shell/status-poller.d.ts.map +1 -0
  815. package/dist/shell/status-poller.js +77 -0
  816. package/dist/shell/status-poller.js.map +1 -0
  817. package/dist/shell/tui.d.ts +32 -0
  818. package/dist/shell/tui.d.ts.map +1 -0
  819. package/dist/shell/tui.js +69 -0
  820. package/dist/shell/tui.js.map +1 -0
  821. package/dist/skills/mcp-manager.d.ts +30 -0
  822. package/dist/skills/mcp-manager.d.ts.map +1 -0
  823. package/dist/skills/mcp-manager.js +104 -0
  824. package/dist/skills/mcp-manager.js.map +1 -0
  825. package/dist/skills/skill-config.d.ts +13 -0
  826. package/dist/skills/skill-config.d.ts.map +1 -0
  827. package/dist/skills/skill-config.js +23 -0
  828. package/dist/skills/skill-config.js.map +1 -0
  829. package/dist/state/manager.d.ts +73 -0
  830. package/dist/state/manager.d.ts.map +1 -0
  831. package/dist/state/manager.js +201 -0
  832. package/dist/state/manager.js.map +1 -0
  833. package/dist/tools/daily.d.ts +2 -0
  834. package/dist/tools/daily.d.ts.map +1 -0
  835. package/dist/tools/daily.js +310 -0
  836. package/dist/tools/daily.js.map +1 -0
  837. package/dist/tools/events.d.ts +2 -0
  838. package/dist/tools/events.d.ts.map +1 -0
  839. package/dist/tools/events.js +132 -0
  840. package/dist/tools/events.js.map +1 -0
  841. package/dist/tools/goals.d.ts +2 -0
  842. package/dist/tools/goals.d.ts.map +1 -0
  843. package/dist/tools/goals.js +128 -0
  844. package/dist/tools/goals.js.map +1 -0
  845. package/dist/tools/index.d.ts +10 -0
  846. package/dist/tools/index.d.ts.map +1 -0
  847. package/dist/tools/index.js +13 -0
  848. package/dist/tools/index.js.map +1 -0
  849. package/dist/tools/notes.d.ts +2 -0
  850. package/dist/tools/notes.d.ts.map +1 -0
  851. package/dist/tools/notes.js +88 -0
  852. package/dist/tools/notes.js.map +1 -0
  853. package/dist/tools/project.d.ts +2 -0
  854. package/dist/tools/project.d.ts.map +1 -0
  855. package/dist/tools/project.js +112 -0
  856. package/dist/tools/project.js.map +1 -0
  857. package/dist/tools/research.d.ts +2 -0
  858. package/dist/tools/research.d.ts.map +1 -0
  859. package/dist/tools/research.js +64 -0
  860. package/dist/tools/research.js.map +1 -0
  861. package/dist/tools/summarize.d.ts +2 -0
  862. package/dist/tools/summarize.d.ts.map +1 -0
  863. package/dist/tools/summarize.js +31 -0
  864. package/dist/tools/summarize.js.map +1 -0
  865. package/dist/tools/tasks.d.ts +2 -0
  866. package/dist/tools/tasks.d.ts.map +1 -0
  867. package/dist/tools/tasks.js +90 -0
  868. package/dist/tools/tasks.js.map +1 -0
  869. package/dist/tools/time.d.ts +2 -0
  870. package/dist/tools/time.d.ts.map +1 -0
  871. package/dist/tools/time.js +21 -0
  872. package/dist/tools/time.js.map +1 -0
  873. package/dist/tools/types.d.ts +56 -0
  874. package/dist/tools/types.d.ts.map +1 -0
  875. package/dist/tools/types.js +17 -0
  876. package/dist/tools/types.js.map +1 -0
  877. package/dist/ui/breadcrumb.d.ts +11 -0
  878. package/dist/ui/breadcrumb.d.ts.map +1 -0
  879. package/dist/ui/breadcrumb.js +35 -0
  880. package/dist/ui/breadcrumb.js.map +1 -0
  881. package/dist/ui/entity-prompt.d.ts +52 -0
  882. package/dist/ui/entity-prompt.d.ts.map +1 -0
  883. package/dist/ui/entity-prompt.js +130 -0
  884. package/dist/ui/entity-prompt.js.map +1 -0
  885. package/dist/utils/chat-logger.d.ts +28 -0
  886. package/dist/utils/chat-logger.d.ts.map +1 -0
  887. package/dist/utils/chat-logger.js +85 -0
  888. package/dist/utils/chat-logger.js.map +1 -0
  889. package/dist/utils/debug.d.ts +14 -0
  890. package/dist/utils/debug.d.ts.map +1 -0
  891. package/dist/utils/debug.js +31 -0
  892. package/dist/utils/debug.js.map +1 -0
  893. package/dist/utils/execution-logger.d.ts +21 -0
  894. package/dist/utils/execution-logger.d.ts.map +1 -0
  895. package/dist/utils/execution-logger.js +46 -0
  896. package/dist/utils/execution-logger.js.map +1 -0
  897. package/dist/utils/ics-parser.d.ts +14 -0
  898. package/dist/utils/ics-parser.d.ts.map +1 -0
  899. package/dist/utils/ics-parser.js +57 -0
  900. package/dist/utils/ics-parser.js.map +1 -0
  901. package/dist/utils/json-parser.d.ts +10 -0
  902. package/dist/utils/json-parser.d.ts.map +1 -0
  903. package/dist/utils/json-parser.js +164 -0
  904. package/dist/utils/json-parser.js.map +1 -0
  905. package/package.json +66 -0
@@ -0,0 +1,43 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Random Value NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import { ResultStatus } from '../../result/result.js';
5
+ import { AbstractNodeCode } from '../abstract-node-code.js';
6
+ import { NodeCodeCategory } from '../node-code.js';
7
+ export class RandomValueNodeCode extends AbstractNodeCode {
8
+ static configDescriptions = [
9
+ { key: 'context_path', name: 'Context Path', description: 'Context key to store the random value.', type: 'string' },
10
+ { key: 'type', name: 'Type', description: 'Type of random value.', type: 'string', default: 'float', options: ['float', 'int', 'uuid'] },
11
+ { key: 'min', name: 'Minimum', description: 'Minimum value (for int/float types).', type: 'float', default: 0, isOptional: true },
12
+ { key: 'max', name: 'Maximum', description: 'Maximum value (for int/float types).', type: 'float', default: 1, isOptional: true },
13
+ ];
14
+ static resultDescriptions = [
15
+ { status: ResultStatus.OK, description: 'Random value generated.' },
16
+ ];
17
+ constructor() {
18
+ super('random_value', 'Random Value', 'Generates a random value and stores it in context.', NodeCodeCategory.DATA);
19
+ }
20
+ async process(context) {
21
+ const contextPath = this.getRequiredConfigValue('context_path');
22
+ const type = this.getRequiredConfigValue('type', 'float');
23
+ const min = Number(this.getOptionalConfigValue('min', 0));
24
+ const max = Number(this.getOptionalConfigValue('max', 1));
25
+ let value;
26
+ switch (type) {
27
+ case 'float':
28
+ value = min + Math.random() * (max - min);
29
+ break;
30
+ case 'int':
31
+ value = Math.floor(min + Math.random() * (max - min + 1));
32
+ break;
33
+ case 'uuid':
34
+ value = crypto.randomUUID();
35
+ break;
36
+ default:
37
+ throw new Error(`Unknown random type "${type}".`);
38
+ }
39
+ context.set(contextPath, value);
40
+ return this.result(ResultStatus.OK, `Generated random ${type}: ${value}`);
41
+ }
42
+ }
43
+ //# sourceMappingURL=random-value-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random-value-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/random-value-node-code.ts"],"names":[],"mappings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C,cAAc,CAAW,CAAC;QAC1E,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAW,CAAC;QACpE,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QAE1D,IAAI,KAAc,CAAC;QACnB,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,OAAO;gBACR,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;gBAC1C,MAAM;YACV,KAAK,KAAK;gBACN,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC1D,MAAM;YACV,KAAK,MAAM;gBACP,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBAC5B,MAAM;YACV;gBACI,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,oBAAoB,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class ReadFileNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=read-file-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-file-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/read-file-node-code.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,qBAAa,gBAAiB,SAAQ,gBAAgB;IAClD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CA4BnD"}
@@ -0,0 +1,50 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Read File NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import { readFile } from 'node:fs/promises';
5
+ import { ResultStatus } from '../../result/result.js';
6
+ import { AbstractNodeCode } from '../abstract-node-code.js';
7
+ import { NodeCodeCategory } from '../node-code.js';
8
+ import { assertPathAllowed, FileAccessDeniedError } from '../../security/file-access-guard.js';
9
+ export class ReadFileNodeCode extends AbstractNodeCode {
10
+ static configDescriptions = [
11
+ { key: 'file_path', name: 'File Path', description: 'Path to the file to read. Supports {key} interpolation from context.', type: 'string' },
12
+ { key: 'context_path', name: 'Context Path', description: 'Context key to store the file contents.', type: 'string' },
13
+ { key: 'encoding', name: 'Encoding', description: 'File encoding.', type: 'string', default: 'utf-8', isOptional: true },
14
+ ];
15
+ static resultDescriptions = [
16
+ { status: ResultStatus.OK, description: 'File read successfully.' },
17
+ { status: ResultStatus.ERROR, description: 'File could not be read.' },
18
+ ];
19
+ constructor() {
20
+ super('read_file', 'Read File', 'Reads a file into the context.', NodeCodeCategory.DATA);
21
+ }
22
+ async process(context) {
23
+ const filePathTemplate = this.getRequiredConfigValue('file_path');
24
+ const contextPath = this.getRequiredConfigValue('context_path');
25
+ const encoding = this.getOptionalConfigValue('encoding', 'utf-8');
26
+ // Interpolate {key} references
27
+ const filePath = filePathTemplate.replace(/\{(\w+)\}/g, (_, key) => {
28
+ return String(context.get(key) ?? '');
29
+ });
30
+ try {
31
+ await assertPathAllowed(filePath);
32
+ }
33
+ catch (error) {
34
+ if (error instanceof FileAccessDeniedError) {
35
+ return this.result(ResultStatus.ERROR, error.message);
36
+ }
37
+ throw error;
38
+ }
39
+ try {
40
+ const content = await readFile(filePath, { encoding });
41
+ context.set(contextPath, content);
42
+ return this.result(ResultStatus.OK, `Read file "${filePath}" → "${contextPath}" (${content.length} chars).`);
43
+ }
44
+ catch (error) {
45
+ const message = error instanceof Error ? error.message : String(error);
46
+ return this.result(ResultStatus.ERROR, `Failed to read file "${filePath}": ${message}`);
47
+ }
48
+ }
49
+ }
50
+ //# sourceMappingURL=read-file-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-file-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/read-file-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE/F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C;QAC1C,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC;YACD,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;gBACzC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAC1D,CAAC;YACD,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,cAAc,QAAQ,QAAQ,WAAW,MAAM,OAAO,CAAC,MAAM,UAAU,CAAC,CAAC;QACjH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,wBAAwB,QAAQ,MAAM,OAAO,EAAE,CAAC,CAAC;QAC5F,CAAC;IACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class SetContextTableNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=set-context-table-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-context-table-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-table-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAE5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAkBnD"}
@@ -0,0 +1,34 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Set Context Table NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import { ResultStatus } from '../../result/result.js';
5
+ import { AbstractNodeCode } from '../abstract-node-code.js';
6
+ import { NodeCodeCategory } from '../node-code.js';
7
+ export class SetContextTableNodeCode extends AbstractNodeCode {
8
+ static configDescriptions = [
9
+ { key: 'table', name: 'Table', description: 'A JSON object of key-value pairs to set in the context.', type: 'string' },
10
+ ];
11
+ static resultDescriptions = [
12
+ { status: ResultStatus.OK, description: 'All values were set successfully.' },
13
+ ];
14
+ constructor() {
15
+ super('set_context_table', 'Set Data Table', 'Sets multiple context values from a key-value map.', NodeCodeCategory.DATA);
16
+ }
17
+ async process(context) {
18
+ const tableRaw = this.getRequiredConfigValue('table');
19
+ let table;
20
+ if (typeof tableRaw === 'string') {
21
+ table = JSON.parse(tableRaw);
22
+ }
23
+ else {
24
+ table = tableRaw;
25
+ }
26
+ let count = 0;
27
+ for (const [key, value] of Object.entries(table)) {
28
+ context.set(key, value);
29
+ count++;
30
+ }
31
+ return this.result(ResultStatus.OK, `Set ${count} context value(s).`);
32
+ }
33
+ }
34
+ //# sourceMappingURL=set-context-table-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-context-table-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-table-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,OAAO,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,yDAAyD,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC1H,CAAC;IACF,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE;KAChF,CAAC;IAEF;QACI,KAAK,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,oDAAoD,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC9H,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAgB;QAC1B,MAAM,QAAQ,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,KAA8B,CAAC;QAEnC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC/B,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAA4B,CAAC;QAC5D,CAAC;aAAM,CAAC;YACJ,KAAK,GAAG,QAAmC,CAAC;QAChD,CAAC;QAED,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACxB,KAAK,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,KAAK,oBAAoB,CAAC,CAAC;IAC1E,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class SetContextValueNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=set-context-value-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-context-value-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-value-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IACzD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAErD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBnD"}
@@ -0,0 +1,43 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Set Context Value NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import { ResultStatus } from '../../result/result.js';
5
+ import { AbstractNodeCode } from '../abstract-node-code.js';
6
+ import { NodeCodeCategory } from '../node-code.js';
7
+ export class SetContextValueNodeCode extends AbstractNodeCode {
8
+ static configDescriptions = [
9
+ { key: 'value', name: 'Value', description: 'The value to set in the context.', type: 'string' },
10
+ { key: 'context_path', name: 'Context Path', description: 'The key in the context to set.', type: 'string' },
11
+ { key: 'value_type', name: 'Value Type', description: 'Type cast for the value.', type: 'string', default: 'string', options: ['string', 'int', 'float', 'boolean'] },
12
+ ];
13
+ static resultDescriptions = [
14
+ { status: ResultStatus.OK, description: 'Value was set successfully.' },
15
+ ];
16
+ constructor() {
17
+ super('set_context_value', 'Set Data Value', 'Sets a typed value in the context.', NodeCodeCategory.DATA);
18
+ }
19
+ async process(context) {
20
+ const valueType = this.getRequiredConfigValue('value_type', 'string');
21
+ const rawValue = this.getRequiredConfigValue('value');
22
+ const contextPath = this.getRequiredConfigValue('context_path');
23
+ let value;
24
+ switch (valueType) {
25
+ case 'string':
26
+ value = String(rawValue);
27
+ break;
28
+ case 'int':
29
+ value = parseInt(String(rawValue), 10);
30
+ break;
31
+ case 'float':
32
+ value = parseFloat(String(rawValue));
33
+ break;
34
+ case 'boolean':
35
+ value = rawValue === 'true' || rawValue === '1';
36
+ break;
37
+ default: throw new Error(`Unknown value_type "${valueType}".`);
38
+ }
39
+ context.set(contextPath, value);
40
+ return this.result(ResultStatus.OK, `Set "${contextPath}" = ${JSON.stringify(value)}.`);
41
+ }
42
+ }
43
+ //# sourceMappingURL=set-context-value-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-context-value-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/set-context-value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AAW,CAAC;QAE1E,IAAI,KAAc,CAAC;QACnB,QAAQ,SAAS,EAAE,CAAC;YAChB,KAAK,QAAQ;gBAAE,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAAC,MAAM;YAC/C,KAAK,KAAK;gBAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;gBAAC,MAAM;YAC1D,KAAK,OAAO;gBAAE,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAAC,MAAM;YAC1D,KAAK,SAAS;gBAAE,KAAK,GAAG,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,GAAG,CAAC;gBAAC,MAAM;YACvE,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,uBAAuB,SAAS,IAAI,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,WAAW,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5F,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class WeatherNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=weather-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weather-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/data/weather-node-code.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAmB5D,qBAAa,eAAgB,SAAQ,gBAAgB;IACjD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAI5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAmEnD"}
@@ -0,0 +1,88 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Weather Data NodeCode (Open-Meteo, no API key required)
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import { ResultStatus } from '../../result/result.js';
5
+ import { AbstractNodeCode } from '../abstract-node-code.js';
6
+ import { NodeCodeCategory } from '../node-code.js';
7
+ /** WMO Weather interpretation codes → human-readable descriptions. */
8
+ const WMO_CODES = {
9
+ 0: 'Clear sky',
10
+ 1: 'Mainly clear', 2: 'Partly cloudy', 3: 'Overcast',
11
+ 45: 'Foggy', 48: 'Depositing rime fog',
12
+ 51: 'Light drizzle', 53: 'Moderate drizzle', 55: 'Dense drizzle',
13
+ 56: 'Light freezing drizzle', 57: 'Dense freezing drizzle',
14
+ 61: 'Slight rain', 63: 'Moderate rain', 65: 'Heavy rain',
15
+ 66: 'Light freezing rain', 67: 'Heavy freezing rain',
16
+ 71: 'Slight snowfall', 73: 'Moderate snowfall', 75: 'Heavy snowfall',
17
+ 77: 'Snow grains',
18
+ 80: 'Slight rain showers', 81: 'Moderate rain showers', 82: 'Violent rain showers',
19
+ 85: 'Slight snow showers', 86: 'Heavy snow showers',
20
+ 95: 'Thunderstorm', 96: 'Thunderstorm with slight hail', 99: 'Thunderstorm with heavy hail',
21
+ };
22
+ export class WeatherNodeCode extends AbstractNodeCode {
23
+ static configDescriptions = [
24
+ { key: 'location', name: 'Location', description: 'City name to look up. Supports {context_key} interpolation.', type: 'string' },
25
+ { key: 'units', name: 'Units', description: 'Unit system for temperature and wind speed.', type: 'string', default: 'metric', options: ['metric', 'imperial'] },
26
+ { key: 'response_context_path', name: 'Response Path', description: 'Context key to store the weather summary object.', type: 'string', default: 'weather' },
27
+ ];
28
+ static resultDescriptions = [
29
+ { status: ResultStatus.OK, description: 'Weather data retrieved successfully.' },
30
+ { status: ResultStatus.ERROR, description: 'Geocoding or weather fetch failed.' },
31
+ ];
32
+ constructor() {
33
+ super('weather', 'Weather Lookup', 'Fetches current weather for a city via Open-Meteo (no API key needed).', NodeCodeCategory.DATA);
34
+ }
35
+ async process(context) {
36
+ const locationTemplate = this.getRequiredConfigValue('location');
37
+ const units = this.getRequiredConfigValue('units', 'metric').toLowerCase();
38
+ const responsePath = this.getRequiredConfigValue('response_context_path', 'weather');
39
+ // Interpolate {context_key} references
40
+ const city = locationTemplate.replace(/\{(\w+)\}/g, (_, key) => {
41
+ return String(context.get(key) ?? '');
42
+ }).trim();
43
+ if (!city) {
44
+ return this.result(ResultStatus.ERROR, 'Location resolved to an empty string.');
45
+ }
46
+ const isImperial = units === 'imperial';
47
+ const tempUnit = isImperial ? 'fahrenheit' : 'celsius';
48
+ const windUnit = isImperial ? 'mph' : 'kmh';
49
+ try {
50
+ // 1. Geocode city name → lat/lon
51
+ const geoUrl = `https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(city)}&count=1`;
52
+ const geoRes = await fetch(geoUrl);
53
+ if (!geoRes.ok) {
54
+ return this.result(ResultStatus.ERROR, `Geocoding request failed: ${geoRes.status}`);
55
+ }
56
+ const geoData = await geoRes.json();
57
+ if (!geoData.results?.length) {
58
+ return this.result(ResultStatus.ERROR, `No location found for "${city}".`);
59
+ }
60
+ const { latitude, longitude, name, country } = geoData.results[0];
61
+ // 2. Fetch current weather
62
+ const wxUrl = `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}&current=temperature_2m,apparent_temperature,weather_code,wind_speed_10m,relative_humidity_2m&temperature_unit=${tempUnit}&wind_speed_unit=${windUnit}`;
63
+ const wxRes = await fetch(wxUrl);
64
+ if (!wxRes.ok) {
65
+ return this.result(ResultStatus.ERROR, `Weather request failed: ${wxRes.status}`);
66
+ }
67
+ const wxData = await wxRes.json();
68
+ const cur = wxData.current;
69
+ const tempLabel = isImperial ? '°F' : '°C';
70
+ const windLabel = isImperial ? 'mph' : 'km/h';
71
+ const summary = {
72
+ location: `${name}, ${country}`,
73
+ condition: WMO_CODES[cur.weather_code] ?? `Code ${cur.weather_code}`,
74
+ temperature: `${cur.temperature_2m}${tempLabel}`,
75
+ feels_like: `${cur.apparent_temperature}${tempLabel}`,
76
+ humidity: `${cur.relative_humidity_2m}%`,
77
+ wind: `${cur.wind_speed_10m} ${windLabel}`,
78
+ };
79
+ context.set(responsePath, summary);
80
+ return this.result(ResultStatus.OK, `Weather for ${summary.location}: ${summary.condition}, ${summary.temperature}`);
81
+ }
82
+ catch (error) {
83
+ const message = error instanceof Error ? error.message : String(error);
84
+ return this.result(ResultStatus.ERROR, `Weather lookup failed: ${message}`);
85
+ }
86
+ }
87
+ }
88
+ //# sourceMappingURL=weather-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weather-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/data/weather-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,sEAAsE;AACtE,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,sEAAsE;AACtE,MAAM,SAAS,GAA2B;IACtC,CAAC,EAAE,WAA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CAAC;YAE9C,MAAM,OAAO,GAAG;gBACZ,QAAQ,EAAE,GAAG,IAAI,KAAK,OAAO,EAAE;gBAC/B,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,QAAQ,GAAG,CAAC,YAAY,EAAE;gBACpE,WAAW,EAAE,GAAG,GAAG,CAAC,cAAc,GAAG,SAAS,EAAE;gBAChD,UAAU,EAAE,GAAG,GAAG,CAAC,oBAAoB,GAAG,SAAS,EAAE;gBACrD,QAAQ,EAAE,GAAG,GAAG,CAAC,oBAAoB,GAAG;gBACxC,IAAI,EAAE,GAAG,GAAG,CAAC,cAAc,IAAI,SAAS,EAAE;aAC7C,CAAC;YAEF,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YACnC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,eAAe,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,SAAS,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;QACzH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,0BAA0B,OAAO,EAAE,CAAC,CAAC;QAChF,CAAC;IACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class CompleteEntityNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=complete-entity-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complete-entity-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/complete-entity-node-code.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAG5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAGrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAmDnD"}
@@ -0,0 +1,72 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Complete Entity NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ //
5
+ // A convenience NodeCode that finds an entity by title and marks it complete
6
+ // in a single step. This avoids the fragile context-threading between
7
+ // find_entity → update_entity that LLMs often get wrong.
8
+ // ─────────────────────────────────────────────────────────────────────────────
9
+ import { ResultStatus } from '../../result/result.js';
10
+ import { AbstractNodeCode } from '../abstract-node-code.js';
11
+ import { NodeCodeCategory } from '../node-code.js';
12
+ import { findEntityByTitle, writeEntity } from '../../../entities/entity.js';
13
+ import { getEntityIndex } from '../../../entities/entity-index.js';
14
+ import { getEmbeddingIndex } from '../../../entities/embedding-index.js';
15
+ const NOT_FOUND = 'not_found';
16
+ export class CompleteEntityNodeCode extends AbstractNodeCode {
17
+ static configDescriptions = [
18
+ { key: 'entity_type', name: 'Entity Type', description: 'The entity type to complete (task, goal, research).', type: 'string' },
19
+ { key: 'entity_title', name: 'Entity Title', description: 'Title of the entity to mark complete. Supports {context_key} interpolation.', type: 'string', isOptional: true },
20
+ ];
21
+ static resultDescriptions = [
22
+ { status: ResultStatus.OK, description: 'Entity marked complete.' },
23
+ { status: NOT_FOUND, description: 'Entity not found.' },
24
+ ];
25
+ constructor() {
26
+ super('complete_entity', 'Complete Entity', 'Finds an entity by title and marks it as complete.', NodeCodeCategory.DATA);
27
+ }
28
+ async process(context) {
29
+ const entityType = this.getRequiredConfigValue('entity_type');
30
+ // Read title from config (preferred) or context
31
+ const configTitle = this.getOptionalConfigValue('entity_title');
32
+ if (configTitle) {
33
+ context.set('title', this.interpolate(configTitle, context));
34
+ }
35
+ const title = context.get('title');
36
+ if (!title) {
37
+ context.set('error', 'No title provided.');
38
+ return this.result(NOT_FOUND, 'Missing title — provide entity_title config or set "title" in context.');
39
+ }
40
+ const found = await findEntityByTitle(entityType, title);
41
+ if (!found) {
42
+ context.set('error', `${entityType} "${title}" not found.`);
43
+ return this.result(NOT_FOUND, `${entityType} "${title}" not found.`);
44
+ }
45
+ // Mark complete
46
+ found.meta.status = 'complete';
47
+ await writeEntity(found.filepath, found.meta, found.content ?? '');
48
+ context.set('entity', {
49
+ filepath: found.filepath,
50
+ content: found.content ?? '',
51
+ ...found.meta,
52
+ });
53
+ // Update entity index
54
+ const index = getEntityIndex();
55
+ if (index.isBuilt) {
56
+ const entityId = found.meta.id;
57
+ const tags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
58
+ const summary = found.meta.summary ?? '';
59
+ await index.addOrUpdate(entityType, entityId, title, found.filepath, tags, summary);
60
+ }
61
+ // Update embedding index
62
+ const embeddingIndex = getEmbeddingIndex();
63
+ if (embeddingIndex.isLoaded) {
64
+ const id = found.meta.id;
65
+ const tags = Array.isArray(found.meta.tags) ? found.meta.tags : [];
66
+ const summary = found.meta.summary ?? '';
67
+ await embeddingIndex.upsert(`${entityType}:${id}`, { title, tags, summary });
68
+ }
69
+ return this.result(ResultStatus.OK, `Marked ${entityType} "${title}" as complete.`);
70
+ }
71
+ }
72
+ //# sourceMappingURL=complete-entity-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complete-entity-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/complete-entity-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,uCAAuC;AACvC,gFAAgF;AAChF,EAAE;AACF,6EAA6E;AAC7E,sEAAsE;AACtE,yDAAyD;AACzD,gFAAgF;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAuB,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B,MAAM,OAAO,sBAAuB,SAAQ,gBAAgB;IACxD,MAAM,CAAU,kBAAkB,GAA+B;QAC7D,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,qDAAqD,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/H,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,6EAA6E,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;KAC9K,CAAC;IACF,MAAM,CAAU,kBAAkB,GAAwB;QACtD,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;QACnE,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE;KAC1D,CAAC;IAEF;QACI,KAAK,CAAC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E,EAAE,UAAU,UAAU,KAAK,KAAK,gBAAgB,CAAC,CAAC;IACxF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Context } from '../../context/context.js';
2
+ import type { Result } from '../../result/result.js';
3
+ import type { ConfigurationDescription, ResultDescription } from '../../configuration/configuration-description.js';
4
+ import { AbstractNodeCode } from '../abstract-node-code.js';
5
+ export declare class CreateEntityNodeCode extends AbstractNodeCode {
6
+ static readonly configDescriptions: ConfigurationDescription[];
7
+ static readonly resultDescriptions: ResultDescription[];
8
+ constructor();
9
+ process(context: Context): Promise<Result>;
10
+ }
11
+ //# sourceMappingURL=create-entity-node-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-entity-node-code.d.ts","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/create-entity-node-code.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsB5D,qBAAa,oBAAqB,SAAQ,gBAAgB;IACtD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,CAM5D;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,CAIrD;;IAMI,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAwFnD"}
@@ -0,0 +1,109 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // Feral CCF — Create Entity NodeCode
3
+ // ─────────────────────────────────────────────────────────────────────────────
4
+ import path from 'path';
5
+ import { ResultStatus } from '../../result/result.js';
6
+ import { AbstractNodeCode } from '../abstract-node-code.js';
7
+ import { NodeCodeCategory } from '../node-code.js';
8
+ import { createEntityMeta, ensureEntityDir, findEntityByTitle, writeEntity, entityFilename, } from '../../../entities/entity.js';
9
+ import { getEntityType } from '../../../entities/entity-type-config.js';
10
+ import { validateEntity, formatValidationErrors } from '../../../entities/entity-validator.js';
11
+ import { getEntityIndex } from '../../../entities/entity-index.js';
12
+ import { getEmbeddingIndex } from '../../../entities/embedding-index.js';
13
+ import { generateEntitySummary } from '../../../entities/entity-summary.js';
14
+ /**
15
+ * Custom result for duplicate detection.
16
+ */
17
+ const ALREADY_EXISTS = 'already_exists';
18
+ export class CreateEntityNodeCode extends AbstractNodeCode {
19
+ static configDescriptions = [
20
+ { key: 'entity_type', name: 'Entity Type', description: 'The entity type to create (any configured entity type, e.g. task, note, event, goal).', type: 'string' },
21
+ { key: 'entity_title', name: 'Entity Title', description: 'Title for the entity. Supports {context_key} interpolation. Sets "title" in context.', type: 'string', isOptional: true },
22
+ { key: 'entity_body', name: 'Entity Body', description: 'Body/content for the entity. Supports {context_key} interpolation. Sets "content" in context.', type: 'string', isOptional: true },
23
+ { key: 'tags', name: 'Tags', description: 'Comma-separated tags for the entity (e.g. "urgent,year-of-the-house"). Supports {context_key} interpolation.', type: 'string', isOptional: true },
24
+ { key: 'extra_fields', name: 'Extra Fields', description: 'Comma-separated list of extra context keys to include in metadata (e.g. status,priority,dueDate).', type: 'string', default: '', isOptional: true },
25
+ ];
26
+ static resultDescriptions = [
27
+ { status: ResultStatus.OK, description: 'Entity created successfully.' },
28
+ { status: ALREADY_EXISTS, description: 'Entity with this title already exists.' },
29
+ { status: ResultStatus.ERROR, description: 'Failed to create entity.' },
30
+ ];
31
+ constructor() {
32
+ super('create_entity', 'Create Entity', 'Creates a new entity in the vault.', NodeCodeCategory.DATA);
33
+ }
34
+ async process(context) {
35
+ const entityType = this.getRequiredConfigValue('entity_type');
36
+ const extraFieldsStr = this.getOptionalConfigValue('extra_fields', '');
37
+ // Bridge config → context: if entity_title/entity_body are set in config,
38
+ // interpolate and write them into context so the rest of the logic works.
39
+ const configTitle = this.getOptionalConfigValue('entity_title');
40
+ const configBody = this.getOptionalConfigValue('entity_body');
41
+ if (configTitle) {
42
+ context.set('title', this.interpolate(configTitle, context));
43
+ }
44
+ if (configBody) {
45
+ context.set('content', this.interpolate(configBody, context));
46
+ }
47
+ const configTags = this.getOptionalConfigValue('tags');
48
+ if (configTags) {
49
+ const interpolated = this.interpolate(configTags, context);
50
+ context.set('tags', interpolated.split(',').map(t => t.trim()).filter(Boolean));
51
+ }
52
+ const title = context.get('title');
53
+ if (!title) {
54
+ context.set('error', 'No title provided in context.');
55
+ return this.result(ResultStatus.ERROR, 'Missing title in context.');
56
+ }
57
+ // Check for duplicates
58
+ const existing = await findEntityByTitle(entityType, title);
59
+ if (existing) {
60
+ context.set('error', `${entityType} "${title}" already exists.`);
61
+ return this.result(ALREADY_EXISTS, `${entityType} "${title}" already exists.`);
62
+ }
63
+ const content = context.get('content') ?? '';
64
+ const tags = context.get('tags') ?? [];
65
+ const dir = await ensureEntityDir(entityType);
66
+ const entityMeta = createEntityMeta(entityType, title, { tags });
67
+ const id = entityMeta.id;
68
+ const filepath = path.join(dir, entityFilename(title, id));
69
+ const meta = { ...entityMeta };
70
+ // Merge extra fields from context into metadata
71
+ if (extraFieldsStr) {
72
+ for (const field of extraFieldsStr.split(',').map(f => f.trim()).filter(Boolean)) {
73
+ const val = context.get(field);
74
+ if (val !== undefined) {
75
+ meta[field] = val;
76
+ }
77
+ }
78
+ }
79
+ // Validate fields against entity type schema
80
+ const typeConfig = await getEntityType(entityType);
81
+ if (typeConfig) {
82
+ const errors = validateEntity(meta, typeConfig, true);
83
+ if (errors.length > 0) {
84
+ const msg = `Validation failed for ${entityType}: ${formatValidationErrors(errors)}`;
85
+ context.set('error', msg);
86
+ return this.result(ResultStatus.ERROR, msg);
87
+ }
88
+ }
89
+ await writeEntity(filepath, meta, content);
90
+ // Generate and persist summary
91
+ const summary = await generateEntitySummary(entityType, title, content, meta);
92
+ meta.summary = summary;
93
+ await writeEntity(filepath, meta, content);
94
+ context.set('filepath', filepath);
95
+ context.set('entity', { filepath, content, ...meta });
96
+ // Update entity index incrementally
97
+ const index = getEntityIndex();
98
+ if (index.isBuilt) {
99
+ await index.addOrUpdate(entityType, id, title, filepath, tags, summary);
100
+ }
101
+ // Update embedding index
102
+ const embeddingIndex = getEmbeddingIndex();
103
+ if (embeddingIndex.isLoaded) {
104
+ await embeddingIndex.upsert(`${entityType}:${id}`, { title, tags, summary: summary ?? '' });
105
+ }
106
+ return this.result(ResultStatus.OK, `Created ${entityType} "${title}" at ${filepath}.`);
107
+ }
108
+ }
109
+ //# sourceMappingURL=create-entity-node-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-entity-node-code.js","sourceRoot":"","sources":["../../../../src/feral/node-code/entity/create-entity-node-code.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,qCAAqC;AACrC,gFAAgF;AAEhF,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAEH,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,cAAc,GAEjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E;;GAEG;AACH,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAExC,MAAM,OAAO,oBAAqB,SAAQ,gBAAgB;IACtD,MA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