agentfootprint 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/AGENTS.md +66 -47
  2. package/CLAUDE.md +47 -37
  3. package/README.md +28 -13
  4. package/dist/adapters/llm/createProvider.js +3 -2
  5. package/dist/adapters/llm/createProvider.js.map +1 -1
  6. package/dist/adapters/observability/agentcore.js +1 -0
  7. package/dist/adapters/observability/agentcore.js.map +1 -1
  8. package/dist/cache/CacheDecisionSubflow.js +13 -18
  9. package/dist/cache/CacheDecisionSubflow.js.map +1 -1
  10. package/dist/cache/CacheGateDecider.js +18 -3
  11. package/dist/cache/CacheGateDecider.js.map +1 -1
  12. package/dist/cache/cacheRecorder.js +12 -3
  13. package/dist/cache/cacheRecorder.js.map +1 -1
  14. package/dist/conventions.js +152 -2
  15. package/dist/conventions.js.map +1 -1
  16. package/dist/core/Agent.js +46 -9
  17. package/dist/core/Agent.js.map +1 -1
  18. package/dist/core/LLMCall.js +177 -44
  19. package/dist/core/LLMCall.js.map +1 -1
  20. package/dist/core/RunnerBase.js +14 -0
  21. package/dist/core/RunnerBase.js.map +1 -1
  22. package/dist/core/agent/buildAgentChart.js +117 -48
  23. package/dist/core/agent/buildAgentChart.js.map +1 -1
  24. package/dist/core/agent/buildAgentMessageApiChart.js +201 -0
  25. package/dist/core/agent/buildAgentMessageApiChart.js.map +1 -0
  26. package/dist/core/agent/buildCacheSubflow.js +62 -0
  27. package/dist/core/agent/buildCacheSubflow.js.map +1 -0
  28. package/dist/core/agent/buildDynamicAgentChart.js +364 -0
  29. package/dist/core/agent/buildDynamicAgentChart.js.map +1 -0
  30. package/dist/core/agent/buildMessageApiChart.js +154 -0
  31. package/dist/core/agent/buildMessageApiChart.js.map +1 -0
  32. package/dist/core/agent/stages/callLLM.js +11 -0
  33. package/dist/core/agent/stages/callLLM.js.map +1 -1
  34. package/dist/core/agent/stages/reliabilityExecution.js +64 -9
  35. package/dist/core/agent/stages/reliabilityExecution.js.map +1 -1
  36. package/dist/core/flowchartAsTool.js +5 -5
  37. package/dist/core/humanizeLLMError.js +66 -0
  38. package/dist/core/humanizeLLMError.js.map +1 -0
  39. package/dist/core/slots/buildMessagesSlot.js +1 -1
  40. package/dist/core/slots/buildMessagesSlot.js.map +1 -1
  41. package/dist/core/slots/buildToolsSlot.js.map +1 -1
  42. package/dist/core-flow/Conditional.js +1 -1
  43. package/dist/core-flow/Conditional.js.map +1 -1
  44. package/dist/core-flow/Loop.js +1 -1
  45. package/dist/core-flow/Loop.js.map +1 -1
  46. package/dist/core-flow/Parallel.js +1 -1
  47. package/dist/core-flow/Parallel.js.map +1 -1
  48. package/dist/esm/adapters/llm/createProvider.js +3 -2
  49. package/dist/esm/adapters/llm/createProvider.js.map +1 -1
  50. package/dist/esm/adapters/observability/agentcore.js +1 -0
  51. package/dist/esm/adapters/observability/agentcore.js.map +1 -1
  52. package/dist/esm/cache/CacheDecisionSubflow.js +11 -17
  53. package/dist/esm/cache/CacheDecisionSubflow.js.map +1 -1
  54. package/dist/esm/cache/CacheGateDecider.js +18 -3
  55. package/dist/esm/cache/CacheGateDecider.js.map +1 -1
  56. package/dist/esm/cache/cacheRecorder.js +12 -3
  57. package/dist/esm/cache/cacheRecorder.js.map +1 -1
  58. package/dist/esm/conventions.js +148 -1
  59. package/dist/esm/conventions.js.map +1 -1
  60. package/dist/esm/core/Agent.js +47 -10
  61. package/dist/esm/core/Agent.js.map +1 -1
  62. package/dist/esm/core/LLMCall.js +177 -44
  63. package/dist/esm/core/LLMCall.js.map +1 -1
  64. package/dist/esm/core/RunnerBase.js +14 -0
  65. package/dist/esm/core/RunnerBase.js.map +1 -1
  66. package/dist/esm/core/agent/buildAgentChart.js +118 -49
  67. package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
  68. package/dist/esm/core/agent/buildAgentMessageApiChart.js +197 -0
  69. package/dist/esm/core/agent/buildAgentMessageApiChart.js.map +1 -0
  70. package/dist/esm/core/agent/buildCacheSubflow.js +58 -0
  71. package/dist/esm/core/agent/buildCacheSubflow.js.map +1 -0
  72. package/dist/esm/core/agent/buildDynamicAgentChart.js +360 -0
  73. package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -0
  74. package/dist/esm/core/agent/buildMessageApiChart.js +150 -0
  75. package/dist/esm/core/agent/buildMessageApiChart.js.map +1 -0
  76. package/dist/esm/core/agent/stages/callLLM.js +11 -0
  77. package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
  78. package/dist/esm/core/agent/stages/reliabilityExecution.js +64 -9
  79. package/dist/esm/core/agent/stages/reliabilityExecution.js.map +1 -1
  80. package/dist/esm/core/flowchartAsTool.js +5 -5
  81. package/dist/esm/core/humanizeLLMError.js +61 -0
  82. package/dist/esm/core/humanizeLLMError.js.map +1 -0
  83. package/dist/esm/core/slots/buildMessagesSlot.js +1 -1
  84. package/dist/esm/core/slots/buildMessagesSlot.js.map +1 -1
  85. package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
  86. package/dist/esm/core-flow/Conditional.js +1 -1
  87. package/dist/esm/core-flow/Conditional.js.map +1 -1
  88. package/dist/esm/core-flow/Loop.js +1 -1
  89. package/dist/esm/core-flow/Loop.js.map +1 -1
  90. package/dist/esm/core-flow/Parallel.js +1 -1
  91. package/dist/esm/core-flow/Parallel.js.map +1 -1
  92. package/dist/esm/events/registry.js +10 -0
  93. package/dist/esm/events/registry.js.map +1 -1
  94. package/dist/esm/index.js +21 -1
  95. package/dist/esm/index.js.map +1 -1
  96. package/dist/esm/lib/injection-engine/buildInjectionEngineSubflow.js +15 -8
  97. package/dist/esm/lib/injection-engine/buildInjectionEngineSubflow.js.map +1 -1
  98. package/dist/esm/lib/lazyRequire.js +2 -30
  99. package/dist/esm/lib/lazyRequire.js.map +1 -1
  100. package/dist/esm/lib/rag/defineRAG.js +4 -2
  101. package/dist/esm/lib/rag/defineRAG.js.map +1 -1
  102. package/dist/esm/lib/rag/indexDocuments.js +2 -2
  103. package/dist/esm/locales/index.js +3 -3
  104. package/dist/esm/memory/beats/heuristicExtractor.js +1 -1
  105. package/dist/esm/memory/beats/heuristicExtractor.js.map +1 -1
  106. package/dist/esm/memory/beats/index.js +6 -6
  107. package/dist/esm/memory/beats/index.js.map +1 -1
  108. package/dist/esm/memory/beats/llmExtractor.js +1 -1
  109. package/dist/esm/memory/beats/llmExtractor.js.map +1 -1
  110. package/dist/esm/memory/embedding/index.js +4 -4
  111. package/dist/esm/memory/embedding/index.js.map +1 -1
  112. package/dist/esm/memory/entry/index.js +1 -1
  113. package/dist/esm/memory/entry/index.js.map +1 -1
  114. package/dist/esm/memory/facts/extractFacts.js +1 -1
  115. package/dist/esm/memory/facts/extractFacts.js.map +1 -1
  116. package/dist/esm/memory/facts/index.js +7 -7
  117. package/dist/esm/memory/facts/index.js.map +1 -1
  118. package/dist/esm/memory/facts/llmFactExtractor.js +1 -1
  119. package/dist/esm/memory/facts/llmFactExtractor.js.map +1 -1
  120. package/dist/esm/memory/facts/loadFacts.js +1 -1
  121. package/dist/esm/memory/facts/loadFacts.js.map +1 -1
  122. package/dist/esm/memory/facts/patternFactExtractor.js +1 -1
  123. package/dist/esm/memory/facts/patternFactExtractor.js.map +1 -1
  124. package/dist/esm/memory/identity/index.js +1 -1
  125. package/dist/esm/memory/identity/index.js.map +1 -1
  126. package/dist/esm/memory/pipeline/auto.js +2 -2
  127. package/dist/esm/memory/pipeline/auto.js.map +1 -1
  128. package/dist/esm/memory/pipeline/default.js +4 -4
  129. package/dist/esm/memory/pipeline/default.js.map +1 -1
  130. package/dist/esm/memory/pipeline/ephemeral.js +3 -3
  131. package/dist/esm/memory/pipeline/ephemeral.js.map +1 -1
  132. package/dist/esm/memory/pipeline/fact.js +5 -5
  133. package/dist/esm/memory/pipeline/fact.js.map +1 -1
  134. package/dist/esm/memory/pipeline/index.js +6 -6
  135. package/dist/esm/memory/pipeline/index.js.map +1 -1
  136. package/dist/esm/memory/pipeline/narrative.js +6 -6
  137. package/dist/esm/memory/pipeline/narrative.js.map +1 -1
  138. package/dist/esm/memory/pipeline/semantic.js +5 -5
  139. package/dist/esm/memory/pipeline/semantic.js.map +1 -1
  140. package/dist/esm/memory/stages/index.js +6 -6
  141. package/dist/esm/memory/stages/index.js.map +1 -1
  142. package/dist/esm/memory/stages/pickByBudget.js +1 -1
  143. package/dist/esm/memory/stages/pickByBudget.js.map +1 -1
  144. package/dist/esm/memory/store/InMemoryStore.js +2 -2
  145. package/dist/esm/memory/store/InMemoryStore.js.map +1 -1
  146. package/dist/esm/memory/store/index.js +1 -1
  147. package/dist/esm/memory/store/index.js.map +1 -1
  148. package/dist/esm/memory/wire/index.js +1 -1
  149. package/dist/esm/memory/wire/index.js.map +1 -1
  150. package/dist/esm/package.json +1 -0
  151. package/dist/esm/recorders/core/ContextEvaluatedRecorder.js +31 -0
  152. package/dist/esm/recorders/core/ContextEvaluatedRecorder.js.map +1 -0
  153. package/dist/esm/recorders/core/ContextRecorder.js +12 -14
  154. package/dist/esm/recorders/core/ContextRecorder.js.map +1 -1
  155. package/dist/esm/recorders/core/ErrorBridge.js +59 -0
  156. package/dist/esm/recorders/core/ErrorBridge.js.map +1 -0
  157. package/dist/esm/recorders/core/ReliabilityRecorder.js +29 -0
  158. package/dist/esm/recorders/core/ReliabilityRecorder.js.map +1 -0
  159. package/dist/esm/recorders/core/typedEmit.js +1 -1
  160. package/dist/esm/recorders/observability/BoundaryRecorder.js +26 -2
  161. package/dist/esm/recorders/observability/BoundaryRecorder.js.map +1 -1
  162. package/dist/esm/recorders/observability/LiveStateRecorder.js +8 -0
  163. package/dist/esm/recorders/observability/LiveStateRecorder.js.map +1 -1
  164. package/dist/esm/recorders/observability/commentary/commentaryTemplates.js +1 -0
  165. package/dist/esm/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
  166. package/dist/esm/reliability/buildReliabilityGateChart.js +10 -4
  167. package/dist/esm/reliability/buildReliabilityGateChart.js.map +1 -1
  168. package/dist/esm/resilience/withRetry.js +3 -0
  169. package/dist/esm/resilience/withRetry.js.map +1 -1
  170. package/dist/esm/strategies/compose.js +2 -2
  171. package/dist/esm/tool-providers/skillScopedTools.js +3 -3
  172. package/dist/events/registry.js +10 -0
  173. package/dist/events/registry.js.map +1 -1
  174. package/dist/index.js +26 -3
  175. package/dist/index.js.map +1 -1
  176. package/dist/lib/injection-engine/buildInjectionEngineSubflow.js +15 -8
  177. package/dist/lib/injection-engine/buildInjectionEngineSubflow.js.map +1 -1
  178. package/dist/lib/lazyRequire.js +6 -0
  179. package/dist/lib/lazyRequire.js.map +1 -1
  180. package/dist/lib/rag/defineRAG.js +4 -2
  181. package/dist/lib/rag/defineRAG.js.map +1 -1
  182. package/dist/lib/rag/indexDocuments.js +2 -2
  183. package/dist/locales/index.js +3 -3
  184. package/dist/memory/beats/heuristicExtractor.js +4 -4
  185. package/dist/memory/beats/heuristicExtractor.js.map +1 -1
  186. package/dist/memory/beats/index.js +13 -13
  187. package/dist/memory/beats/index.js.map +1 -1
  188. package/dist/memory/beats/llmExtractor.js +2 -2
  189. package/dist/memory/beats/llmExtractor.js.map +1 -1
  190. package/dist/memory/embedding/index.js +8 -8
  191. package/dist/memory/embedding/index.js.map +1 -1
  192. package/dist/memory/entry/index.js +3 -3
  193. package/dist/memory/entry/index.js.map +1 -1
  194. package/dist/memory/facts/extractFacts.js +2 -2
  195. package/dist/memory/facts/extractFacts.js.map +1 -1
  196. package/dist/memory/facts/index.js +17 -17
  197. package/dist/memory/facts/index.js.map +1 -1
  198. package/dist/memory/facts/llmFactExtractor.js +2 -2
  199. package/dist/memory/facts/llmFactExtractor.js.map +1 -1
  200. package/dist/memory/facts/loadFacts.js +2 -2
  201. package/dist/memory/facts/loadFacts.js.map +1 -1
  202. package/dist/memory/facts/patternFactExtractor.js +2 -2
  203. package/dist/memory/facts/patternFactExtractor.js.map +1 -1
  204. package/dist/memory/identity/index.js +2 -2
  205. package/dist/memory/identity/index.js.map +1 -1
  206. package/dist/memory/pipeline/auto.js +11 -11
  207. package/dist/memory/pipeline/auto.js.map +1 -1
  208. package/dist/memory/pipeline/default.js +8 -8
  209. package/dist/memory/pipeline/default.js.map +1 -1
  210. package/dist/memory/pipeline/ephemeral.js +6 -6
  211. package/dist/memory/pipeline/ephemeral.js.map +1 -1
  212. package/dist/memory/pipeline/fact.js +11 -11
  213. package/dist/memory/pipeline/fact.js.map +1 -1
  214. package/dist/memory/pipeline/index.js +12 -12
  215. package/dist/memory/pipeline/index.js.map +1 -1
  216. package/dist/memory/pipeline/narrative.js +12 -12
  217. package/dist/memory/pipeline/narrative.js.map +1 -1
  218. package/dist/memory/pipeline/semantic.js +10 -10
  219. package/dist/memory/pipeline/semantic.js.map +1 -1
  220. package/dist/memory/stages/index.js +13 -13
  221. package/dist/memory/stages/index.js.map +1 -1
  222. package/dist/memory/stages/pickByBudget.js +3 -3
  223. package/dist/memory/stages/pickByBudget.js.map +1 -1
  224. package/dist/memory/store/InMemoryStore.js +5 -5
  225. package/dist/memory/store/InMemoryStore.js.map +1 -1
  226. package/dist/memory/store/index.js +2 -2
  227. package/dist/memory/store/index.js.map +1 -1
  228. package/dist/memory/wire/index.js +4 -4
  229. package/dist/memory/wire/index.js.map +1 -1
  230. package/dist/recorders/core/ContextEvaluatedRecorder.js +35 -0
  231. package/dist/recorders/core/ContextEvaluatedRecorder.js.map +1 -0
  232. package/dist/recorders/core/ContextRecorder.js +11 -13
  233. package/dist/recorders/core/ContextRecorder.js.map +1 -1
  234. package/dist/recorders/core/ErrorBridge.js +64 -0
  235. package/dist/recorders/core/ErrorBridge.js.map +1 -0
  236. package/dist/recorders/core/ReliabilityRecorder.js +33 -0
  237. package/dist/recorders/core/ReliabilityRecorder.js.map +1 -0
  238. package/dist/recorders/core/typedEmit.js +1 -1
  239. package/dist/recorders/observability/BoundaryRecorder.js +26 -2
  240. package/dist/recorders/observability/BoundaryRecorder.js.map +1 -1
  241. package/dist/recorders/observability/LiveStateRecorder.js +8 -0
  242. package/dist/recorders/observability/LiveStateRecorder.js.map +1 -1
  243. package/dist/recorders/observability/commentary/commentaryTemplates.js +1 -0
  244. package/dist/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
  245. package/dist/reliability/buildReliabilityGateChart.js +10 -4
  246. package/dist/reliability/buildReliabilityGateChart.js.map +1 -1
  247. package/dist/resilience/withRetry.js +3 -0
  248. package/dist/resilience/withRetry.js.map +1 -1
  249. package/dist/strategies/compose.js +2 -2
  250. package/dist/tool-providers/skillScopedTools.js +3 -3
  251. package/dist/types/adapters/llm/createProvider.d.ts +3 -2
  252. package/dist/types/adapters/llm/createProvider.d.ts.map +1 -1
  253. package/dist/types/adapters/observability/agentcore.d.ts +1 -0
  254. package/dist/types/adapters/observability/agentcore.d.ts.map +1 -1
  255. package/dist/types/cache/CacheDecisionSubflow.d.ts +7 -10
  256. package/dist/types/cache/CacheDecisionSubflow.d.ts.map +1 -1
  257. package/dist/types/cache/CacheGateDecider.d.ts +16 -2
  258. package/dist/types/cache/CacheGateDecider.d.ts.map +1 -1
  259. package/dist/types/cache/cacheRecorder.d.ts.map +1 -1
  260. package/dist/types/conventions.d.ts +101 -1
  261. package/dist/types/conventions.d.ts.map +1 -1
  262. package/dist/types/core/Agent.d.ts +8 -0
  263. package/dist/types/core/Agent.d.ts.map +1 -1
  264. package/dist/types/core/LLMCall.d.ts +48 -12
  265. package/dist/types/core/LLMCall.d.ts.map +1 -1
  266. package/dist/types/core/RunnerBase.d.ts +12 -0
  267. package/dist/types/core/RunnerBase.d.ts.map +1 -1
  268. package/dist/types/core/agent/buildAgentChart.d.ts +31 -18
  269. package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -1
  270. package/dist/types/core/agent/buildAgentMessageApiChart.d.ts +41 -0
  271. package/dist/types/core/agent/buildAgentMessageApiChart.d.ts.map +1 -0
  272. package/dist/types/core/agent/buildCacheSubflow.d.ts +36 -0
  273. package/dist/types/core/agent/buildCacheSubflow.d.ts.map +1 -0
  274. package/dist/types/core/agent/buildDynamicAgentChart.d.ts +57 -0
  275. package/dist/types/core/agent/buildDynamicAgentChart.d.ts.map +1 -0
  276. package/dist/types/core/agent/buildMessageApiChart.d.ts +48 -0
  277. package/dist/types/core/agent/buildMessageApiChart.d.ts.map +1 -0
  278. package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
  279. package/dist/types/core/agent/stages/reliabilityExecution.d.ts.map +1 -1
  280. package/dist/types/core/agent/types.d.ts +69 -2
  281. package/dist/types/core/agent/types.d.ts.map +1 -1
  282. package/dist/types/core/flowchartAsTool.d.ts +5 -5
  283. package/dist/types/core/humanizeLLMError.d.ts +24 -0
  284. package/dist/types/core/humanizeLLMError.d.ts.map +1 -0
  285. package/dist/types/core/slots/buildMessagesSlot.d.ts.map +1 -1
  286. package/dist/types/events/payloads.d.ts +84 -0
  287. package/dist/types/events/payloads.d.ts.map +1 -1
  288. package/dist/types/events/registry.d.ts +11 -1
  289. package/dist/types/events/registry.d.ts.map +1 -1
  290. package/dist/types/index.d.ts +4 -1
  291. package/dist/types/index.d.ts.map +1 -1
  292. package/dist/types/lib/injection-engine/buildInjectionEngineSubflow.d.ts.map +1 -1
  293. package/dist/types/lib/lazyRequire.d.ts.map +1 -1
  294. package/dist/types/lib/rag/defineRAG.d.ts +4 -2
  295. package/dist/types/lib/rag/defineRAG.d.ts.map +1 -1
  296. package/dist/types/lib/rag/indexDocuments.d.ts +2 -2
  297. package/dist/types/locales/index.d.ts +3 -3
  298. package/dist/types/memory/beats/extractBeats.d.ts +4 -4
  299. package/dist/types/memory/beats/extractBeats.d.ts.map +1 -1
  300. package/dist/types/memory/beats/extractor.d.ts +2 -2
  301. package/dist/types/memory/beats/extractor.d.ts.map +1 -1
  302. package/dist/types/memory/beats/formatAsNarrative.d.ts +1 -1
  303. package/dist/types/memory/beats/formatAsNarrative.d.ts.map +1 -1
  304. package/dist/types/memory/beats/heuristicExtractor.d.ts +1 -1
  305. package/dist/types/memory/beats/heuristicExtractor.d.ts.map +1 -1
  306. package/dist/types/memory/beats/index.d.ts +12 -12
  307. package/dist/types/memory/beats/index.d.ts.map +1 -1
  308. package/dist/types/memory/beats/llmExtractor.d.ts +2 -2
  309. package/dist/types/memory/beats/llmExtractor.d.ts.map +1 -1
  310. package/dist/types/memory/beats/writeBeats.d.ts +2 -2
  311. package/dist/types/memory/beats/writeBeats.d.ts.map +1 -1
  312. package/dist/types/memory/embedding/embedMessages.d.ts +3 -3
  313. package/dist/types/memory/embedding/embedMessages.d.ts.map +1 -1
  314. package/dist/types/memory/embedding/index.d.ts +8 -8
  315. package/dist/types/memory/embedding/index.d.ts.map +1 -1
  316. package/dist/types/memory/embedding/loadRelevant.d.ts +3 -3
  317. package/dist/types/memory/embedding/loadRelevant.d.ts.map +1 -1
  318. package/dist/types/memory/embedding/mockEmbedder.d.ts +1 -1
  319. package/dist/types/memory/embedding/mockEmbedder.d.ts.map +1 -1
  320. package/dist/types/memory/entry/decay.d.ts +1 -1
  321. package/dist/types/memory/entry/decay.d.ts.map +1 -1
  322. package/dist/types/memory/entry/index.d.ts +2 -2
  323. package/dist/types/memory/entry/index.d.ts.map +1 -1
  324. package/dist/types/memory/entry/types.d.ts +1 -1
  325. package/dist/types/memory/entry/types.d.ts.map +1 -1
  326. package/dist/types/memory/facts/extractFacts.d.ts +4 -4
  327. package/dist/types/memory/facts/extractFacts.d.ts.map +1 -1
  328. package/dist/types/memory/facts/extractor.d.ts +2 -2
  329. package/dist/types/memory/facts/extractor.d.ts.map +1 -1
  330. package/dist/types/memory/facts/formatFacts.d.ts +3 -3
  331. package/dist/types/memory/facts/formatFacts.d.ts.map +1 -1
  332. package/dist/types/memory/facts/index.d.ts +14 -14
  333. package/dist/types/memory/facts/index.d.ts.map +1 -1
  334. package/dist/types/memory/facts/llmFactExtractor.d.ts +2 -2
  335. package/dist/types/memory/facts/llmFactExtractor.d.ts.map +1 -1
  336. package/dist/types/memory/facts/loadFacts.d.ts +2 -2
  337. package/dist/types/memory/facts/loadFacts.d.ts.map +1 -1
  338. package/dist/types/memory/facts/patternFactExtractor.d.ts +1 -1
  339. package/dist/types/memory/facts/patternFactExtractor.d.ts.map +1 -1
  340. package/dist/types/memory/facts/writeFacts.d.ts +2 -2
  341. package/dist/types/memory/facts/writeFacts.d.ts.map +1 -1
  342. package/dist/types/memory/identity/index.d.ts +2 -2
  343. package/dist/types/memory/identity/index.d.ts.map +1 -1
  344. package/dist/types/memory/pipeline/auto.d.ts +6 -6
  345. package/dist/types/memory/pipeline/auto.d.ts.map +1 -1
  346. package/dist/types/memory/pipeline/default.d.ts +2 -2
  347. package/dist/types/memory/pipeline/default.d.ts.map +1 -1
  348. package/dist/types/memory/pipeline/ephemeral.d.ts +2 -2
  349. package/dist/types/memory/pipeline/ephemeral.d.ts.map +1 -1
  350. package/dist/types/memory/pipeline/fact.d.ts +3 -3
  351. package/dist/types/memory/pipeline/fact.d.ts.map +1 -1
  352. package/dist/types/memory/pipeline/index.d.ts +13 -13
  353. package/dist/types/memory/pipeline/index.d.ts.map +1 -1
  354. package/dist/types/memory/pipeline/narrative.d.ts +3 -3
  355. package/dist/types/memory/pipeline/narrative.d.ts.map +1 -1
  356. package/dist/types/memory/pipeline/semantic.d.ts +3 -3
  357. package/dist/types/memory/pipeline/semantic.d.ts.map +1 -1
  358. package/dist/types/memory/pipeline/types.d.ts +1 -1
  359. package/dist/types/memory/pipeline/types.d.ts.map +1 -1
  360. package/dist/types/memory/stages/formatDefault.d.ts +3 -3
  361. package/dist/types/memory/stages/formatDefault.d.ts.map +1 -1
  362. package/dist/types/memory/stages/index.d.ts +13 -13
  363. package/dist/types/memory/stages/index.d.ts.map +1 -1
  364. package/dist/types/memory/stages/loadRecent.d.ts +2 -2
  365. package/dist/types/memory/stages/loadRecent.d.ts.map +1 -1
  366. package/dist/types/memory/stages/pickByBudget.d.ts +2 -2
  367. package/dist/types/memory/stages/pickByBudget.d.ts.map +1 -1
  368. package/dist/types/memory/stages/summarize.d.ts +2 -2
  369. package/dist/types/memory/stages/summarize.d.ts.map +1 -1
  370. package/dist/types/memory/stages/tokenize.d.ts +1 -1
  371. package/dist/types/memory/stages/tokenize.d.ts.map +1 -1
  372. package/dist/types/memory/stages/types.d.ts +3 -3
  373. package/dist/types/memory/stages/types.d.ts.map +1 -1
  374. package/dist/types/memory/stages/writeMessages.d.ts +3 -3
  375. package/dist/types/memory/stages/writeMessages.d.ts.map +1 -1
  376. package/dist/types/memory/store/InMemoryStore.d.ts +3 -3
  377. package/dist/types/memory/store/InMemoryStore.d.ts.map +1 -1
  378. package/dist/types/memory/store/index.d.ts +2 -2
  379. package/dist/types/memory/store/index.d.ts.map +1 -1
  380. package/dist/types/memory/store/types.d.ts +2 -2
  381. package/dist/types/memory/store/types.d.ts.map +1 -1
  382. package/dist/types/memory/wire/index.d.ts +2 -2
  383. package/dist/types/memory/wire/index.d.ts.map +1 -1
  384. package/dist/types/memory/wire/mountMemoryPipeline.d.ts +1 -1
  385. package/dist/types/memory/wire/mountMemoryPipeline.d.ts.map +1 -1
  386. package/dist/types/recorders/core/ContextEvaluatedRecorder.d.ts +24 -0
  387. package/dist/types/recorders/core/ContextEvaluatedRecorder.d.ts.map +1 -0
  388. package/dist/types/recorders/core/ContextRecorder.d.ts +0 -2
  389. package/dist/types/recorders/core/ContextRecorder.d.ts.map +1 -1
  390. package/dist/types/recorders/core/ErrorBridge.d.ts +39 -0
  391. package/dist/types/recorders/core/ErrorBridge.d.ts.map +1 -0
  392. package/dist/types/recorders/core/ReliabilityRecorder.d.ts +25 -0
  393. package/dist/types/recorders/core/ReliabilityRecorder.d.ts.map +1 -0
  394. package/dist/types/recorders/core/typedEmit.d.ts +1 -1
  395. package/dist/types/recorders/observability/BoundaryRecorder.d.ts +10 -2
  396. package/dist/types/recorders/observability/BoundaryRecorder.d.ts.map +1 -1
  397. package/dist/types/recorders/observability/LiveStateRecorder.d.ts.map +1 -1
  398. package/dist/types/recorders/observability/commentary/commentaryTemplates.d.ts.map +1 -1
  399. package/dist/types/recorders/observability/observeRunId.d.ts +1 -1
  400. package/dist/types/reliability/buildReliabilityGateChart.d.ts.map +1 -1
  401. package/dist/types/resilience/withRetry.d.ts +3 -0
  402. package/dist/types/resilience/withRetry.d.ts.map +1 -1
  403. package/dist/types/strategies/compose.d.ts +2 -2
  404. package/dist/types/tool-providers/skillScopedTools.d.ts +3 -3
  405. package/package.json +10 -5
  406. package/dist/core/agent/stages/iterationStart.js +0 -24
  407. package/dist/core/agent/stages/iterationStart.js.map +0 -1
  408. package/dist/esm/core/agent/stages/iterationStart.js +0 -20
  409. package/dist/esm/core/agent/stages/iterationStart.js.map +0 -1
  410. package/dist/types/core/agent/stages/iterationStart.d.ts +0 -16
  411. package/dist/types/core/agent/stages/iterationStart.d.ts.map +0 -1
@@ -15,6 +15,10 @@ export declare const SUBFLOW_IDS: {
15
15
  /** Injection Engine subflow. Evaluates every Injection's trigger
16
16
  * and writes activeInjections[] for the slot subflows to consume. */
17
17
  readonly INJECTION_ENGINE: "sf-injection-engine";
18
+ /** Inner subflow inside LLMCall that wraps the invocation
19
+ * (seed + slots + call-llm + optional thinking + extract-final).
20
+ * Mounted by LLMCall's outer `client` chart. */
21
+ readonly LLM_CALL: "sf-llm-call";
18
22
  /** System-prompt slot subflow. Observed by ContextRecorder. */
19
23
  readonly SYSTEM_PROMPT: "sf-system-prompt";
20
24
  /** Messages slot subflow. */
@@ -33,8 +37,18 @@ export declare const SUBFLOW_IDS: {
33
37
  * decider returns `'final'` as a routing value AND the same string
34
38
  * becomes the subflow's id. */
35
39
  readonly FINAL: "final";
40
+ /** Cache subflow (v2.14). Wraps the whole per-turn cache machinery —
41
+ * decide markers → CacheGate decider → apply/skip — as ONE collapsible
42
+ * boundary in the chart. Provider-independent decision layer; the
43
+ * attached provider's CacheStrategy turns markers into wire format.
44
+ * UpdateSkillHistory stays OUTSIDE (in the main loop) so the rolling
45
+ * skillHistory window persists across iterations without round-tripping
46
+ * through this subflow. */
47
+ readonly CACHE: "sf-cache";
36
48
  /** Cache decision subflow (v2.6). Walks activeInjections, emits
37
- * agnostic CacheMarker[]. Provider-independent. */
49
+ * agnostic CacheMarker[]. Provider-independent. Standalone building
50
+ * block; the agent now uses the `decideCacheMarkers` stage inside
51
+ * `sf-cache` instead of mounting this directly. */
38
52
  readonly CACHE_DECISION: "sf-cache-decision";
39
53
  /** Thinking-normalization mount (v2.14). Wraps the consumer's
40
54
  * ThinkingHandler.normalize() in a real footprintjs subflow so it
@@ -48,7 +62,24 @@ export type SubflowId = (typeof SUBFLOW_IDS)[keyof typeof SUBFLOW_IDS];
48
62
  /** Stage IDs — plain function stages that builders mount. */
49
63
  export declare const STAGE_IDS: {
50
64
  readonly SEED: "seed";
65
+ /** Context-assembly selector stage. Runs AFTER InjectionEngine and
66
+ * fans the 3 slot subflows (system-prompt / messages / tools) out in
67
+ * PARALLEL (selector picks all 3 every iteration; failFast so a
68
+ * required slot's throw aborts the turn). They converge before
69
+ * CacheDecision. Shared by buildAgentChart + buildDynamicAgentChart;
70
+ * the flat viz proof chart uses the same id as its root selector. */
71
+ readonly CONTEXT: "context";
72
+ /** Outer "client" stage in LLMCall's wrapped chart. Receives args on
73
+ * the first visit, $break()s on the second (post-loop) visit with
74
+ * the LLM answer as TraversalResult. This is the lens-friendly
75
+ * affordance — the User pill maps to this stage. */
76
+ readonly CLIENT: "client";
51
77
  readonly CALL_LLM: "call-llm";
78
+ /** Final-response extraction stage that runs after CallLLM (and
79
+ * optional sf-thinking). For LLMCall this is mostly symmetric with
80
+ * Agent's `sf-final` branch — gives lens a "Final" node and a
81
+ * clear commit boundary marking "we have the answer." */
82
+ readonly EXTRACT_FINAL: "extract-final";
52
83
  readonly FINAL: "final";
53
84
  readonly FORMAT_MERGE: "format-merge";
54
85
  readonly MERGE_LLM: "merge-llm";
@@ -74,10 +105,79 @@ export type StageId = (typeof STAGE_IDS)[keyof typeof STAGE_IDS];
74
105
  export declare function isSlotSubflow(id: string): id is typeof SUBFLOW_IDS.SYSTEM_PROMPT | typeof SUBFLOW_IDS.MESSAGES | typeof SUBFLOW_IDS.TOOLS;
75
106
  /** Map a slot subflow id to its ContextSlot type. Undefined for non-slot ids. */
76
107
  export declare function slotFromSubflowId(id: string): ContextSlot | undefined;
108
+ /**
109
+ * Resolve the context slot a scope write belongs to FROM THE WRITE'S OWN
110
+ * `runtimeStageId` — not from a "currently-open slot" stack.
111
+ *
112
+ * Why: once the 3 slot subflows run in PARALLEL (selector fan-out), their
113
+ * entry/write/exit events INTERLEAVE — a stack top is unreliable, so a write
114
+ * inside `sf-messages` could be attributed to (or dropped against)
115
+ * `sf-tools`. The write's `runtimeStageId` (`[subflowPath/]stageId#index`)
116
+ * always encodes which slot subflow enclosed it; we scan the path segments
117
+ * innermost-first for a slot id. Matches the sequential result exactly
118
+ * (the write is still inside its own slot), so it is behavior-preserving.
119
+ */
120
+ export declare function slotFromRuntimeStageId(runtimeStageId: string): ContextSlot | undefined;
77
121
  /** True when an id is any of the library's known subflow IDs. */
78
122
  export declare function isKnownSubflow(id: string): id is SubflowId;
79
123
  /** True when an id is any of the library's known stage IDs. */
80
124
  export declare function isKnownStage(id: string): id is StageId;
125
+ /**
126
+ * Semantic role of a stage, used by renderers to decide visual emphasis.
127
+ *
128
+ * The agent's chart mixes a handful of stages users actually care about
129
+ * (the HEROES — what context was built, what the model decided, what it did)
130
+ * with mechanism stages (PLUMBING). This is the ONE place that says which is
131
+ * which; renderers stay generic and style purely off this role (e.g. heroes
132
+ * prominent, plumbing muted). Keeping it here — the semantic owner — avoids
133
+ * the "name-based filter list duplicated across renderers" anti-pattern.
134
+ *
135
+ * - `hero-slot` — a context slot (system-prompt / messages / tools)
136
+ * - `hero-llm` — the LLM invocation
137
+ * - `hero-action` — tool execution (the agent's actions)
138
+ * - `plumbing` — mechanism (injection engine, cache, route, thinking, …)
139
+ * - `boundary` — neutral chart boundaries (Initialize root, Final) +
140
+ * anything unrecognised (rendered normally, never muted)
141
+ */
142
+ export type StageRole = 'hero-slot' | 'hero-llm' | 'hero-action' | 'plumbing' | 'boundary';
143
+ /**
144
+ * Classify a stage id into its {@link StageRole}. Accepts a path-qualified id
145
+ * (`sf-llm-call/call-llm`) — only the LOCAL segment matters, so it works at
146
+ * any nesting depth. Built entirely from the id constants above, so adding a
147
+ * stage to the chart only requires listing it here.
148
+ */
149
+ export declare function stageRole(id: string): StageRole;
150
+ /**
151
+ * A {@link Milestone}'s kind — the domain vocabulary for "meaningful step you'd
152
+ * scrub to" in the agent's run.
153
+ */
154
+ export type MilestoneKind = 'iteration' | 'slot' | 'llm-turn' | 'tool-call' | 'decision';
155
+ /**
156
+ * A time-travel milestone: a domain-declared scrub stop. Conceptually each
157
+ * milestone marks the boundary of a COLLECTION of commits (the commits that
158
+ * belong to that step) — so the Lens slider can step stage-by-stage
159
+ * (iteration → llm-turn → tool-call → …) instead of stopping only on
160
+ * structural subflow boundaries. The renderer iterates whatever the domain
161
+ * classifies; it never hardcodes agent vocabulary.
162
+ */
163
+ export interface Milestone {
164
+ readonly kind: MilestoneKind;
165
+ /** Human-readable base label ("LLM turn"); the renderer may add an ordinal. */
166
+ readonly label: string;
167
+ }
168
+ /**
169
+ * Classify a stage id into a {@link Milestone}, or `null` when the stage is NOT
170
+ * a milestone boundary (its commits fold into the surrounding milestone's
171
+ * collection). This is the DOMAIN's declaration of which steps are scrub-worthy;
172
+ * the Lens consumes it to build the time-travel slider (see
173
+ * agentfootprint-lens `cursorPositionsAtDrill`).
174
+ *
175
+ * Mirrors {@link stageRole}: accepts a runtimeStageId (`call-llm#17`), a
176
+ * path-qualified id (`sf-llm-call/call-llm`), or a bare local id — only the
177
+ * LOCAL stage segment matters, so it works at any nesting depth and for both
178
+ * commit ids and subflow-group ids.
179
+ */
180
+ export declare function milestoneFor(id: string): Milestone | null;
81
181
  /**
82
182
  * Scope-key convention for context injections.
83
183
  *
@@ -1 +1 @@
1
- {"version":3,"file":"conventions.d.ts","sourceRoot":"","sources":["../../src/conventions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAA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Translator`;
146
146
  * undefined when consumer didn't attach one. */
147
147
  private readonly agentGroupTranslator?;
148
+ /** ReAct chart shape — 'flat' (default, bare call-llm stage) or
149
+ * 'subflow' (LLM turn wrapped in sf-llm-call). Set from
150
+ * `opts.reactStructure`. */
151
+ private readonly reactStructure;
152
+ /** ReAct loop SEMANTICS — 'dynamic' (default, re-engineer all slots each
153
+ * turn, loop→InjectionEngine) or 'classic' (engineer context once,
154
+ * loop→Messages only). Set from `opts.reactMode`. See AgentOptions. */
155
+ private readonly reactMode;
148
156
  constructor(opts: AgentOptions, systemPromptValue: string, registry: readonly ToolRegistryEntry[], voice: {
149
157
  readonly appName: string;
150
158
  readonly commentaryTemplates: Readonly<Record<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../src/core/Agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAWjE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAkBrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAKlE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAKL,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAwC,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAa,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EA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EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAoC5D;;;;;;;;;;OAUG;IACG,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC;IAiB1E,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;IAwD7F;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,aAAa,CACjB,UAAU,EAAE,kBAAkB,GAAG,OAAO,EACxC,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;IAQ5C;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAyB1B,MAAM,CACV,UAAU,EAAE,mBAAmB,EAC/B,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;IAW5C,OAAO,CAAC,cAAc;IA+CtB,OAAO,CAAC,cAAc;IA8FtB,OAAO,CAAC,UAAU;CA6JnB"}
@@ -1,15 +1,42 @@
1
1
  /**
2
- * LLMCall — the leaf primitive for a single LLM invocation (no tools, no loop).
2
+ * LLMCall — the leaf primitive for a single LLM invocation (no tools).
3
3
  *
4
4
  * Pattern: Builder (GoF) → produces a Runner backed by a footprintjs FlowChart.
5
- * Role: Layer-5 primitive (core/). Uses the 3-slot model internally:
6
- * Seed sf-system-prompt sf-messages sf-tools call-llm
7
- * Slot subflows write convention-keyed injections observed by
8
- * ContextRecorder. The call-llm stage typedEmits stream.llm_start
9
- * and stream.llm_end observed by StreamRecorder.
10
- * Emits: Through its internally-attached recorders:
11
- * agentfootprint.stream.llm_start / llm_end
12
- * agentfootprint.context.injected / slot_composed
5
+ *
6
+ * Chart shape outer client wrapper around an inner llm-subflow:
7
+ *
8
+ * Client sf-llm-call loopTo(client)
9
+ *
10
+ * Outer `Client` stage:
11
+ * - First visit: receives args, writes userMessage to scope.
12
+ * - Second visit (after the loop completes): $break()s with
13
+ * scope.answer as the chart's TraversalResult.
14
+ *
15
+ * Inner `sf-llm-call` subflow (drill-down view):
16
+ * Initialize → sf-system-prompt → sf-messages → call-llm
17
+ * → [sf-thinking if handler] → extract-final
18
+ *
19
+ * NO `sf-tools` slot — LLMCall has no tools by design (that's Agent's
20
+ * territory). Atomic LLMCall's lens chart is a clean 3-node top-level
21
+ * view (Client + LLM + loop edge) that drills into the real flowchart
22
+ * below.
23
+ *
24
+ * Loop semantics: LLMCall is one-shot. The loop fires once; the
25
+ * second Client visit immediately breaks. The shape is identical to
26
+ * chat-mode (future): swap `$break()` for `pause()` and the same
27
+ * chart supports multi-turn conversation.
28
+ *
29
+ * Slot subflows write convention-keyed injections observed by
30
+ * ContextRecorder. The call-llm stage typedEmits stream.llm_start
31
+ * and stream.llm_end observed by StreamRecorder. When a
32
+ * `ThinkingHandler` resolves for the provider, `sf-thinking` mounts
33
+ * automatically (auto-wired by provider.name — same convention Agent
34
+ * uses).
35
+ *
36
+ * Emits (through internally-attached recorders):
37
+ * agentfootprint.stream.llm_start / llm_end
38
+ * agentfootprint.context.injected / slot_composed
39
+ * agentfootprint.stream.thinking_end (when sf-thinking mounted)
13
40
  */
14
41
  import { type FlowchartCheckpoint, type RunOptions, type StructureRecorder } from 'footprintjs';
15
42
  import type { GroupMetadata, GroupTranslator } from './translator.js';
@@ -45,7 +72,7 @@ export interface LLMCallOptions {
45
72
  * Optional build-time recorders threaded into footprintjs's
46
73
  * `flowChart()` factory. Each recorder observes per-node build
47
74
  * events (`onStageAdded` / `onSubflowMounted` / etc.) for this
48
- * LLMCall's internal chart (Seed + slot mounts + CallLLM). When
75
+ * LLMCall's internal chart (Initialize + slot mounts + CallLLM). When
49
76
  * omitted, no build-time observation is wired up.
50
77
  */
51
78
  readonly structureRecorders?: readonly StructureRecorder[];
@@ -76,14 +103,23 @@ export declare class LLMCall extends RunnerBase<LLMCallInput, LLMCallOutput> {
76
103
  private readonly costBudget?;
77
104
  private readonly structureRecorders?;
78
105
  private readonly groupTranslator?;
106
+ /** Auto-resolved from provider.name at construction time (same
107
+ * convention Agent uses — see findThinkingHandler). When undefined,
108
+ * sf-thinking is NOT mounted and the chart has zero thinking
109
+ * overhead (build-time conditional mount). */
110
+ private readonly thinkingHandler?;
79
111
  private currentRunContext;
80
112
  constructor(opts: LLMCallOptions, systemPromptValue: string);
81
113
  static create(opts: LLMCallOptions): LLMCallBuilder;
82
114
  protected getGroupTranslator(): GroupTranslator | undefined;
83
115
  /** LLMCall has no nested-runner members (slots are subflows of
84
- * the LLMCall's own chart, not Runner instances). The 3 slot ids
116
+ * the LLMCall's own chart, not Runner instances). The slot ids
85
117
  * are surfaced via `extra` so Lens can render the slot cards
86
- * inside an LLMCall card without inspecting `buildTimeStructure`. */
118
+ * inside an LLMCall card without inspecting `buildTimeStructure`.
119
+ *
120
+ * TWO slots only — LLMCall does not have tools (that's Agent's
121
+ * affordance). Atomic LLMCall renders as a clean 2-pill card in
122
+ * collapsed (top-level) view. */
87
123
  protected buildUIGroupMetadata(): GroupMetadata;
88
124
  run(input: LLMCallInput, options?: RunOptions): Promise<LLMCallOutput | RunnerPauseOutcome>;
89
125
  resume(checkpoint: FlowchartCheckpoint, input?: unknown, options?: RunOptions): Promise<LLMCallOutput | RunnerPauseOutcome>;
@@ -1 +1 @@
1
- {"version":3,"file":"LLMCall.d.ts","sourceRoot":"","sources":["../../../src/core/LLMCall.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YA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EnB,IAAI,EAAE,cAAc;IAIhC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK5B,KAAK,IAAI,OAAO;CAGjB"}
@@ -65,6 +65,18 @@ export declare abstract class RunnerBase<TIn = unknown, TOut = unknown> implemen
65
65
  * across multi-turn reuse of the same runner instance).
66
66
  */
67
67
  getLastSnapshot(): ReturnType<FlowChartExecutor['getSnapshot']> | undefined;
68
+ /**
69
+ * Alias for `getLastSnapshot()` that mirrors `FlowChartExecutor.getSnapshot()`
70
+ * so consumers (lens, playground, ExplainableShell) can read the live or
71
+ * just-completed snapshot through the same method name they'd use on a
72
+ * footprintjs executor — without having to know whether they're holding
73
+ * an agentfootprint Runner or a raw executor.
74
+ *
75
+ * During an active run, returns the live snapshot (commit log + execution
76
+ * tree built incrementally as stages execute). Between runs, returns the
77
+ * last completed run's snapshot. Undefined before any run has started.
78
+ */
79
+ getSnapshot(): ReturnType<FlowChartExecutor['getSnapshot']> | undefined;
68
80
  /**
69
81
  * Return the footprintjs FlowChart for this runner — the canonical
70
82
  * design-time blueprint. STABLE REFERENCE across calls (`getSpec()
@@ -1 +1 @@
1
- {"version":3,"file":"RunnerBase.d.ts","sourceRoot":"","sources":["../../../src/core/RunnerBase.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAGV,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAA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SAAS,MAAM,EAAE;IAI9C;;;;OAIG;IACH,SAAS,CAAC,aAAa,IAAI,eAAe;CAG3C"}
@@ -15,27 +15,27 @@
15
15
  *
16
16
  * Chart shape:
17
17
  *
18
- * Seed
18
+ * Initialize
19
19
  * → [memory READ subflows for each .memory()]
20
- * → InjectionEngine (subflow)
21
- * → SystemPrompt (slot subflow)
22
- * Messages (slot subflow)
23
- * Tools (slot subflow)
24
- * → CacheDecision (subflow)
20
+ * → InjectionEngine (subflow) ← loop target (tool-calls loops here)
21
+ * → Context (selector, PARALLEL fan-out, failFast)
22
+ * {System Prompt ‖ Messages ‖ Tools} (slot subflows)
23
+ * converge
25
24
  * → UpdateSkillHistory
26
- * → CacheGate (decider) ApplyMarkers / SkipCaching
27
- * IterationStart
28
- * → CallLLM
29
- * → Route (decider) tool-calls (pausable) / final (subflow)
30
- * |
31
- * ┌────── PrepareFinal ▼
25
+ * → Cache (sf-cache subflow: decideCacheMarkers CacheGate
26
+ * ApplyMarkers / SkipCaching)
27
+ * → CallLLM (also emits the per-iteration iteration_start marker)
28
+ * → [NormalizeThinking] (subflow, only when a ThinkingHandler resolved)
29
+ * → Route (decider)
30
+ * ├─ tool-calls (pausable) → loopTo(InjectionEngine) ← branch-sourced loop
31
+ * └─ final (subflow) → terminal leaf
32
+ * ┌────── PrepareFinal
32
33
  * ├──── [memory WRITE subflows]
33
34
  * └──── BreakFinal ($break)
34
- * loopTo(InjectionEngine)
35
35
  *
36
36
  * (When v2.11.x reliability is configured, the reliability gate chart
37
- * mounts as a subflow between IterationStart and CallLLM with a
38
- * TranslateFailFast stage after it. Lands in the next commit.)
37
+ * mounts as a subflow before CallLLM with a TranslateFailFast stage
38
+ * after it. Lands in the next commit.)
39
39
  */
40
40
  import type { FlowChart, StructureRecorder } from 'footprintjs';
41
41
  import type { CachePolicy } from '../../cache/types.js';
@@ -55,7 +55,6 @@ export interface AgentChartDeps {
55
55
  * inputMapper for max-iteration policies. */
56
56
  readonly maxIterations: number;
57
57
  readonly seed: (scope: never) => void;
58
- readonly iterationStart: (scope: never) => void;
59
58
  readonly callLLM: (scope: never) => Promise<void>;
60
59
  readonly routeDecider: (scope: never) => 'tool-calls' | 'final';
61
60
  readonly toolCallsHandler: import('footprintjs').PausableHandler<never>;
@@ -71,9 +70,23 @@ export interface AgentChartDeps {
71
70
  * zero overhead for non-thinking agents (build-time conditional mount).
72
71
  */
73
72
  readonly thinkingSubflow?: FlowChart;
74
- readonly cacheDecisionSubflow: FlowChart;
75
73
  readonly updateSkillHistoryStage: (scope: never) => void;
76
- readonly cacheGateDecide: (scope: never) => unknown;
74
+ /**
75
+ * Whether ≥1 Skill is registered. The `UpdateSkillHistory` stage (and
76
+ * therefore the cache's skill-churn rule) is mounted ONLY when true:
77
+ * with no skills the window would record "no skill" every iteration and
78
+ * `detectSkillChurn` could never fire, so the stage would be pure dead
79
+ * weight + a misleading box. Mirrors the `skills.length > 0` gate that
80
+ * auto-attaches `read_skill`, and the `thinkingSubflow` conditional mount.
81
+ */
82
+ readonly hasSkills: boolean;
83
+ /**
84
+ * ReAct loop semantics. `'dynamic'` (default) re-runs the InjectionEngine +
85
+ * all 3 slots every iteration (loop → InjectionEngine). `'classic'`
86
+ * engineers context ONCE (InjectionEngine + system-prompt + tools up front)
87
+ * and loops only the Messages slot (loop → Messages). See AgentOptions.reactMode.
88
+ */
89
+ readonly reactMode?: 'classic' | 'dynamic';
77
90
  /** Structure recorders threaded into both `flowChart()` calls (the
78
91
  * main chart and the PrepareFinal sub-chart). Each recorder
79
92
  * observes per-node build events (`onStageAdded` /
@@ -1 +1 @@
1
- {"version":3,"file":"buildAgentChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildAgentChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EA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AC,EAAE,SAAS,CAAC;IAMrC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEzD;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAG3C;;;;0CAIsC;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAqT/D"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * buildAgentMessageApiChart — the Agent (ReAct) form of the messageAPI
3
+ * merge-tree, as ONE FLAT main chart (no inner LLM-call sub-box).
4
+ *
5
+ * The whole ReAct cycle lives directly in the single Agent chart:
6
+ *
7
+ * Context (ROOT selector — inits + picks which context slots to engineer)
8
+ * ├─ system-prompt ┐
9
+ * ├─ messages ─────┼─→ messageAPI → Call-LLM
10
+ * └─ tools ────────┘
11
+ * → Route (decider) → [ ToolCalls (execute) → loop ] / Final (response)
12
+ * loopTo(Context)
13
+ *
14
+ * WHY flat (the user's call): the entire agent — context engineering, the LLM
15
+ * call, routing, tool execution, the loop, and the final response — is ONE
16
+ * visible flowchart in ONE Agent box. No nested LLM-call box: Lens wraps the
17
+ * whole chart in the Agent main-box and renders the slots as pills. This is
18
+ * simpler than the composed (sf-llm-call subflow) shape and avoids box-in-box
19
+ * nesting entirely.
20
+ *
21
+ * The three context slots are DIRECT children of Context; all converge at
22
+ * messageAPI (which assembles system-prompt + messages); Call-LLM then sends
23
+ * the assembled payload plus the tool schemas. Route decides tool-calls (loop)
24
+ * vs final (terminate). The same chart serves Static and Dynamic agents — only
25
+ * which slots the Context selector lights per iteration differs.
26
+ */
27
+ import type { FlowChart } from 'footprintjs';
28
+ import type { LLMProvider, LLMToolSchema } from '../../adapters/types.js';
29
+ export interface AgentMessageApiChartDeps {
30
+ readonly provider: LLMProvider;
31
+ readonly model: string;
32
+ readonly systemPrompt: string;
33
+ readonly tools: readonly LLMToolSchema[];
34
+ readonly maxIterations?: number;
35
+ readonly structureRecorders?: readonly import('footprintjs').StructureRecorder[];
36
+ }
37
+ /**
38
+ * Build the Agent merge-tree chart as one flat ReAct flowchart.
39
+ */
40
+ export declare function buildAgentMessageApiChart(deps: AgentMessageApiChartDeps): FlowChart;
41
+ //# sourceMappingURL=buildAgentMessageApiChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAgentMessageApiChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildAgentMessageApiChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAc,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA8BtF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,OAAO,aAAa,EAAE,iBAAiB,EAAE,CAAC;CAClF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,wBAAwB,GAAG,SAAS,CA8LnF"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * buildCacheSubflow — the per-turn prompt-cache decision, as ONE subflow.
3
+ *
4
+ * Collapses the cache machinery into a single `sf-cache` boundary so the
5
+ * agent chart reads cleanly (one "Cache" box you can drill into) while the
6
+ * execution tree stays honest:
7
+ *
8
+ * decideCacheMarkers → CacheGate (decider) → ApplyMarkers / SkipCaching
9
+ *
10
+ * Layering (see src/cache/types.ts):
11
+ * - This subflow is the provider-AGNOSTIC DECISION layer — it only computes
12
+ * and gates provider-neutral `CacheMarker[]`. It knows nothing about any
13
+ * provider.
14
+ * - The provider-SPECIFIC MECHANISM (Anthropic `cache_control`, OpenAI
15
+ * automatic, …) is the attached provider's `CacheStrategy`, selected by
16
+ * `provider.name`, applied later when the request is built.
17
+ *
18
+ * Why `UpdateSkillHistory` is NOT in here: the `skillHistory` rolling window
19
+ * must persist across loop iterations. Keeping `UpdateSkillHistory` in the
20
+ * main loop (just before this subflow) lets `skillHistory` live in the parent
21
+ * scope without round-tripping through this subflow's in/out mappers — the
22
+ * subflow stays pure (reads the turn's state, writes only `cacheMarkers`).
23
+ *
24
+ * Deps-free: every input (`activeInjections`, `iteration`, `skillHistory`,
25
+ * `recentHitRate`, `systemPromptCachePolicy`, …) is supplied by the PARENT's
26
+ * `inputMapper` at the mount site; the output is just `cacheMarkers`.
27
+ */
28
+ import { type FlowChart } from 'footprintjs';
29
+ /**
30
+ * Build the `sf-cache` subflow chart. Called by `buildAgentChart` and
31
+ * `buildDynamicAgentChart` and mounted via `addSubFlowChartNext(
32
+ * SUBFLOW_IDS.CACHE, buildCacheSubflow(), 'Cache', { inputMapper,
33
+ * outputMapper, arrayMerge: Replace })`.
34
+ */
35
+ export declare function buildCacheSubflow(): FlowChart;
36
+ //# sourceMappingURL=buildCacheSubflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildCacheSubflow.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildCacheSubflow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxD;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,CAqC7C"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * buildDynamicAgentChart — the Dynamic-ReAct agent chart, where the
3
+ * whole LLM turn (context engineering + the call) is ONE `sf-llm-call`
4
+ * subflow, exactly like the `LLMCall` primitive produces.
5
+ *
6
+ * WHY a second builder (vs `buildAgentChart`)
7
+ * ───────────────────────────────────────────
8
+ * `buildAgentChart` mounts the LLM as a flat `call-llm` STAGE with the
9
+ * slot subflows as its siblings. That renders as nothing in Lens — a
10
+ * bare stage is dropped by the subflow-level collapser, so the slots
11
+ * have no LLM card to fold into and the chart comes up empty.
12
+ *
13
+ * This builder wraps that same region in an `sf-llm-call` SUBFLOW. The
14
+ * payoff is purely structural — Lens already maps `sf-llm-call → LLM
15
+ * group` (same boundary `LLMCall` produces), so the Dynamic agent
16
+ * renders as an LLM group with its slots inside, a peer Tool node, and
17
+ * the loop arc, with ZERO Lens-specific special-casing.
18
+ *
19
+ * The data flow is IDENTICAL to `buildAgentChart` — every stage handler
20
+ * + slot subflow is reused verbatim from the same `AgentChartDeps`. The
21
+ * ONLY new thing is the subflow boundary, which means:
22
+ *
23
+ * • A small inner seed (`dynamicTurnSeed`) initialises the per-turn
24
+ * working keys the OUTER seed used to set, since the inner subflow
25
+ * gets a fresh scope each loop re-entry.
26
+ * • Cross-iteration accumulators (token totals, cost counters,
27
+ * skill-history) round-trip out→in: the boundary `outputMapper`
28
+ * bubbles them to the outer scope, and the next iteration's
29
+ * `inputMapper` feeds them back under `prior*` aliases (because
30
+ * keys passed via `inputMapper` are FROZEN inside the subflow —
31
+ * `ScopeFacade.setValue` throws on them — so the writable working
32
+ * key must have a different name from the read-only input).
33
+ *
34
+ * Chart shape (mirrors the diagram the team locked):
35
+ *
36
+ * Initialize
37
+ * → [memory READ subflows]
38
+ * → sf-llm-call (SUBFLOW — same boundary LLMCall produces)
39
+ * dynamicTurnSeed → InjectionEngine
40
+ * → Context (selector, PARALLEL fan-out, failFast)
41
+ * ⇉ {System Prompt ‖ Messages ‖ Tools} → converge
42
+ * → UpdateSkillHistory → Cache (sf-cache subflow)
43
+ * → CallLLM (emits iteration_start) → [NormalizeThinking]
44
+ * → Route (decider)
45
+ * ├─ tool-calls (pausable) → loopTo(sf-llm-call) ← branch-sourced loop
46
+ * └─ sf-final (the answer) → terminal leaf
47
+ *
48
+ * Classic ReAct keeps using `buildAgentChart` until its own shape is
49
+ * designed — this builder is Dynamic-only.
50
+ */
51
+ import type { FlowChart } from 'footprintjs';
52
+ import type { AgentChartDeps } from './buildAgentChart.js';
53
+ /**
54
+ * Build the Dynamic-ReAct agent chart from the shared `AgentChartDeps`.
55
+ */
56
+ export declare function buildDynamicAgentChart(deps: AgentChartDeps): FlowChart;
57
+ //# sourceMappingURL=buildDynamicAgentChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDynamicAgentChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildDynamicAgentChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAUzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAgD3D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAkTtE"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * buildMessageApiChart — PROOF of the locked "messageAPI merge-tree" shape
3
+ * (MENTAL_MODEL.md ★ LOCKED DESIGN), LLM-only (no tools subflow yet).
4
+ *
5
+ * This is Step 1 of the agreed build order: prove the Context-selector →
6
+ * slot subflows → messageAPI stage → Call-LLM tree works + renders, BEFORE
7
+ * bringing it to the Agent (Step 2 adds the tools subflow + the loop).
8
+ *
9
+ * Chart shape (LLM-only):
10
+ *
11
+ * Seed
12
+ * → Context (SELECTOR stage — picks which slots to engineer)
13
+ * ├─ sf-system-prompt ┐ (selected branches run in parallel)
14
+ * └─ sf-messages ──────┴─→ messageAPI stage (the join point)
15
+ * → Call-LLM
16
+ *
17
+ * WHY a selector (not a plain fork): "Context = Selector stage" — it RETURNS
18
+ * the list of slot branch ids to engineer this iteration, and `select()`
19
+ * captures evidence (which slots + why). That is what will unify Static and
20
+ * Dynamic agent in ONE chart later: Static picks only `messages` per loop;
21
+ * Dynamic also picks `system-prompt` (and `tools`) when they re-engineer.
22
+ * The picked-set IS the lit/unlit-pill signal. For this LLM-only proof the
23
+ * selector picks BOTH slots (a one-shot call engineers everything once).
24
+ *
25
+ * WHY messageAPI is a REAL stage: it assembles the LLM request bulk that the
26
+ * agent's `callLLM` builds invisibly today (callLLM.ts:132) — `systemPrompt`
27
+ * (separate field) + `messages` (the conversation, incl. tool-results) → the
28
+ * message-API payload. Making it a stage makes that assembly visible +
29
+ * inspectable in Lens/Trace. (Tools is a separate field added at Call-LLM —
30
+ * it joins in Step 2.)
31
+ *
32
+ * Slots are REAL subflows (reused verbatim: buildSystemPromptSlot /
33
+ * buildMessagesSlot) writing the convention INJECTION_KEYS, so ContextRecorder
34
+ * emits context.injected and Lens renders them — no bespoke collapser.
35
+ */
36
+ import type { FlowChart } from 'footprintjs';
37
+ import type { LLMProvider } from '../../adapters/types.js';
38
+ export interface MessageApiChartDeps {
39
+ readonly provider: LLMProvider;
40
+ readonly model: string;
41
+ readonly systemPrompt: string;
42
+ readonly structureRecorders?: readonly import('footprintjs').StructureRecorder[];
43
+ }
44
+ /**
45
+ * Build the LLM-only messageAPI merge-tree chart.
46
+ */
47
+ export declare function buildMessageApiChart(deps: MessageApiChartDeps): FlowChart;
48
+ //# sourceMappingURL=buildMessageApiChart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildMessageApiChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildMessageApiChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAA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