agentfootprint 14.1.1 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (567) hide show
  1. package/CAPABILITIES.md +2 -0
  2. package/dist/context-bisect/ablation.js +29 -4
  3. package/dist/context-bisect/ablation.js.map +1 -1
  4. package/dist/context-bisect/bisect.js +30 -8
  5. package/dist/context-bisect/bisect.js.map +1 -1
  6. package/dist/context-bisect/conclusion.js +228 -0
  7. package/dist/context-bisect/conclusion.js.map +1 -0
  8. package/dist/context-bisect/conclusionTypes.js +6 -0
  9. package/dist/context-bisect/conclusionTypes.js.map +1 -0
  10. package/dist/context-bisect/format.js +98 -0
  11. package/dist/context-bisect/format.js.map +1 -0
  12. package/dist/context-bisect/index.js.map +1 -1
  13. package/dist/context-bisect/localize.js +25 -96
  14. package/dist/context-bisect/localize.js.map +1 -1
  15. package/dist/context-bisect/toBacktrackTrace.js +6 -1
  16. package/dist/context-bisect/toBacktrackTrace.js.map +1 -1
  17. package/dist/context-bisect/types.js +4 -0
  18. package/dist/context-bisect/types.js.map +1 -1
  19. package/dist/core/agent/arguments/ask/constants.js +30 -0
  20. package/dist/core/agent/arguments/ask/constants.js.map +1 -0
  21. package/dist/core/agent/arguments/ask/context.js +120 -0
  22. package/dist/core/agent/arguments/ask/context.js.map +1 -0
  23. package/dist/core/agent/arguments/ask/fields.js +307 -0
  24. package/dist/core/agent/arguments/ask/fields.js.map +1 -0
  25. package/dist/core/agent/arguments/ask/replyFields.js +48 -0
  26. package/dist/core/agent/arguments/ask/replyFields.js.map +1 -0
  27. package/dist/core/agent/arguments/ask/types.js +3 -0
  28. package/dist/core/agent/arguments/ask/types.js.map +1 -0
  29. package/dist/core/agent/arguments/ask/validation.js +195 -0
  30. package/dist/core/agent/arguments/ask/validation.js.map +1 -0
  31. package/dist/core/agent/arguments/ask/windowBinding/answer.js +84 -0
  32. package/dist/core/agent/arguments/ask/windowBinding/answer.js.map +1 -0
  33. package/dist/core/agent/arguments/ask/windowBinding/editedZone.js +29 -0
  34. package/dist/core/agent/arguments/ask/windowBinding/editedZone.js.map +1 -0
  35. package/dist/core/agent/arguments/ask/windowBinding/fills.js +85 -0
  36. package/dist/core/agent/arguments/ask/windowBinding/fills.js.map +1 -0
  37. package/dist/core/agent/arguments/ask/windowBinding/question.js +44 -0
  38. package/dist/core/agent/arguments/ask/windowBinding/question.js.map +1 -0
  39. package/dist/core/agent/arguments/ask/windowBinding/types.js +3 -0
  40. package/dist/core/agent/arguments/ask/windowBinding/types.js.map +1 -0
  41. package/dist/core/agent/arguments/ask/windowBinding.js +9 -0
  42. package/dist/core/agent/arguments/ask/windowBinding.js.map +1 -0
  43. package/dist/core/agent/arguments/ask/windowReply.js +69 -0
  44. package/dist/core/agent/arguments/ask/windowReply.js.map +1 -0
  45. package/dist/core/agent/arguments/ask.js +48 -898
  46. package/dist/core/agent/arguments/ask.js.map +1 -1
  47. package/dist/core/agent/arguments/dispatch.js +3 -3
  48. package/dist/core/agent/arguments/pendingPrivateAsk.js +3 -1
  49. package/dist/core/agent/arguments/pendingPrivateAsk.js.map +1 -1
  50. package/dist/core/agent/arguments/serve/assumed.js +110 -0
  51. package/dist/core/agent/arguments/serve/assumed.js.map +1 -0
  52. package/dist/core/agent/arguments/serve/clock.js +169 -0
  53. package/dist/core/agent/arguments/serve/clock.js.map +1 -0
  54. package/dist/core/agent/arguments/serve/fills.js +113 -0
  55. package/dist/core/agent/arguments/serve/fills.js.map +1 -0
  56. package/dist/core/agent/arguments/serve/refusals.js +158 -0
  57. package/dist/core/agent/arguments/serve/refusals.js.map +1 -0
  58. package/dist/core/agent/arguments/serve/schema.js +124 -0
  59. package/dist/core/agent/arguments/serve/schema.js.map +1 -0
  60. package/dist/core/agent/arguments/serve/values.js +21 -0
  61. package/dist/core/agent/arguments/serve/values.js.map +1 -0
  62. package/dist/core/agent/arguments/serve/windows.js +328 -0
  63. package/dist/core/agent/arguments/serve/windows.js.map +1 -0
  64. package/dist/core/agent/arguments/serve.js +32 -984
  65. package/dist/core/agent/arguments/serve.js.map +1 -1
  66. package/dist/core/agent/assessment/compose.js +2 -2
  67. package/dist/core/agent/assessment/compose.js.map +1 -1
  68. package/dist/core/agent/assessment/stage.js +1 -1
  69. package/dist/core/agent/buildAgentChart.js +1 -1
  70. package/dist/core/agent/findings/types.js.map +1 -1
  71. package/dist/core/agent/middleware/rewrites.js +2 -2
  72. package/dist/core/agent/middleware/rewrites.js.map +1 -1
  73. package/dist/core/agent/stages/answerCoverage.js +1 -1
  74. package/dist/core/agent/stages/argumentAsk.js +4 -3
  75. package/dist/core/agent/stages/argumentAsk.js.map +1 -1
  76. package/dist/core/agent/stages/callLLM.js +1 -1
  77. package/dist/core/agent/stages/callLLM.js.map +1 -1
  78. package/dist/core/agent/stages/prepareFinal.js +1 -1
  79. package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js +1 -1
  80. package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -1
  81. package/dist/core/agent/stages/toolCalls/helpers/sourceNote.js +1 -1
  82. package/dist/core/slots/buildToolsSlot.js +2 -2
  83. package/dist/core/slots/buildToolsSlot.js.map +1 -1
  84. package/dist/debug.js.map +1 -1
  85. package/dist/esm/context-bisect/ablation.d.ts +8 -0
  86. package/dist/esm/context-bisect/ablation.js +24 -3
  87. package/dist/esm/context-bisect/ablation.js.map +1 -1
  88. package/dist/esm/context-bisect/bisect.d.ts +15 -15
  89. package/dist/esm/context-bisect/bisect.js +27 -5
  90. package/dist/esm/context-bisect/bisect.js.map +1 -1
  91. package/dist/esm/context-bisect/conclusion.d.ts +51 -0
  92. package/dist/esm/context-bisect/conclusion.js +223 -0
  93. package/dist/esm/context-bisect/conclusion.js.map +1 -0
  94. package/dist/esm/context-bisect/conclusionTypes.d.ts +75 -0
  95. package/dist/esm/context-bisect/conclusionTypes.js +5 -0
  96. package/dist/esm/context-bisect/conclusionTypes.js.map +1 -0
  97. package/dist/esm/context-bisect/format.d.ts +10 -0
  98. package/dist/esm/context-bisect/format.js +94 -0
  99. package/dist/esm/context-bisect/format.js.map +1 -0
  100. package/dist/esm/context-bisect/index.d.ts +1 -1
  101. package/dist/esm/context-bisect/index.js.map +1 -1
  102. package/dist/esm/context-bisect/localize.d.ts +8 -10
  103. package/dist/esm/context-bisect/localize.js +24 -94
  104. package/dist/esm/context-bisect/localize.js.map +1 -1
  105. package/dist/esm/context-bisect/toBacktrackTrace.js +6 -1
  106. package/dist/esm/context-bisect/toBacktrackTrace.js.map +1 -1
  107. package/dist/esm/context-bisect/types.d.ts +33 -4
  108. package/dist/esm/context-bisect/types.js +4 -0
  109. package/dist/esm/context-bisect/types.js.map +1 -1
  110. package/dist/esm/core/agent/arguments/ask/constants.d.ts +16 -0
  111. package/dist/esm/core/agent/arguments/ask/constants.js +27 -0
  112. package/dist/esm/core/agent/arguments/ask/constants.js.map +1 -0
  113. package/dist/esm/core/agent/arguments/ask/context.d.ts +23 -0
  114. package/dist/esm/core/agent/arguments/ask/context.js +115 -0
  115. package/dist/esm/core/agent/arguments/ask/context.js.map +1 -0
  116. package/dist/esm/core/agent/arguments/ask/fields.d.ts +42 -0
  117. package/dist/esm/core/agent/arguments/ask/fields.js +300 -0
  118. package/dist/esm/core/agent/arguments/ask/fields.js.map +1 -0
  119. package/dist/esm/core/agent/arguments/ask/replyFields.d.ts +9 -0
  120. package/dist/esm/core/agent/arguments/ask/replyFields.js +42 -0
  121. package/dist/esm/core/agent/arguments/ask/replyFields.js.map +1 -0
  122. package/dist/esm/core/agent/arguments/ask/types.d.ts +195 -0
  123. package/dist/esm/core/agent/arguments/ask/types.js +2 -0
  124. package/dist/esm/core/agent/arguments/ask/types.js.map +1 -0
  125. package/dist/esm/core/agent/arguments/ask/validation.d.ts +42 -0
  126. package/dist/esm/core/agent/arguments/ask/validation.js +188 -0
  127. package/dist/esm/core/agent/arguments/ask/validation.js.map +1 -0
  128. package/dist/esm/core/agent/arguments/ask/windowBinding/answer.d.ts +17 -0
  129. package/dist/esm/core/agent/arguments/ask/windowBinding/answer.js +80 -0
  130. package/dist/esm/core/agent/arguments/ask/windowBinding/answer.js.map +1 -0
  131. package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.d.ts +11 -0
  132. package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.js +25 -0
  133. package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.js.map +1 -0
  134. package/dist/esm/core/agent/arguments/ask/windowBinding/fills.d.ts +18 -0
  135. package/dist/esm/core/agent/arguments/ask/windowBinding/fills.js +81 -0
  136. package/dist/esm/core/agent/arguments/ask/windowBinding/fills.js.map +1 -0
  137. package/dist/esm/core/agent/arguments/ask/windowBinding/question.d.ts +6 -0
  138. package/dist/esm/core/agent/arguments/ask/windowBinding/question.js +40 -0
  139. package/dist/esm/core/agent/arguments/ask/windowBinding/question.js.map +1 -0
  140. package/dist/esm/core/agent/arguments/ask/windowBinding/types.d.ts +35 -0
  141. package/dist/esm/core/agent/arguments/ask/windowBinding/types.js +2 -0
  142. package/dist/esm/core/agent/arguments/ask/windowBinding/types.js.map +1 -0
  143. package/dist/esm/core/agent/arguments/ask/windowBinding.d.ts +4 -0
  144. package/dist/esm/core/agent/arguments/ask/windowBinding.js +4 -0
  145. package/dist/esm/core/agent/arguments/ask/windowBinding.js.map +1 -0
  146. package/dist/esm/core/agent/arguments/ask/windowReply.d.ts +11 -0
  147. package/dist/esm/core/agent/arguments/ask/windowReply.js +65 -0
  148. package/dist/esm/core/agent/arguments/ask/windowReply.js.map +1 -0
  149. package/dist/esm/core/agent/arguments/ask.d.ts +9 -259
  150. package/dist/esm/core/agent/arguments/ask.js +20 -885
  151. package/dist/esm/core/agent/arguments/ask.js.map +1 -1
  152. package/dist/esm/core/agent/arguments/dispatch.d.ts +4 -4
  153. package/dist/esm/core/agent/arguments/dispatch.js +4 -4
  154. package/dist/esm/core/agent/arguments/pendingPrivateAsk.d.ts +1 -1
  155. package/dist/esm/core/agent/arguments/pendingPrivateAsk.js +3 -1
  156. package/dist/esm/core/agent/arguments/pendingPrivateAsk.js.map +1 -1
  157. package/dist/esm/core/agent/arguments/serve/assumed.d.ts +63 -0
  158. package/dist/esm/core/agent/arguments/serve/assumed.js +112 -0
  159. package/dist/esm/core/agent/arguments/serve/assumed.js.map +1 -0
  160. package/dist/esm/core/agent/arguments/serve/clock.d.ts +104 -0
  161. package/dist/esm/core/agent/arguments/serve/clock.js +162 -0
  162. package/dist/esm/core/agent/arguments/serve/clock.js.map +1 -0
  163. package/dist/esm/core/agent/arguments/serve/fills.d.ts +65 -0
  164. package/dist/esm/core/agent/arguments/serve/fills.js +109 -0
  165. package/dist/esm/core/agent/arguments/serve/fills.js.map +1 -0
  166. package/dist/esm/core/agent/arguments/serve/refusals.d.ts +67 -0
  167. package/dist/esm/core/agent/arguments/serve/refusals.js +148 -0
  168. package/dist/esm/core/agent/arguments/serve/refusals.js.map +1 -0
  169. package/dist/esm/core/agent/arguments/serve/schema.d.ts +67 -0
  170. package/dist/esm/core/agent/arguments/serve/schema.js +119 -0
  171. package/dist/esm/core/agent/arguments/serve/schema.js.map +1 -0
  172. package/dist/esm/core/agent/arguments/serve/values.d.ts +11 -0
  173. package/dist/esm/core/agent/arguments/serve/values.js +16 -0
  174. package/dist/esm/core/agent/arguments/serve/values.js.map +1 -0
  175. package/dist/esm/core/agent/arguments/serve/windows.d.ts +60 -0
  176. package/dist/esm/core/agent/arguments/serve/windows.js +324 -0
  177. package/dist/esm/core/agent/arguments/serve/windows.js.map +1 -0
  178. package/dist/esm/core/agent/arguments/serve.d.ts +12 -417
  179. package/dist/esm/core/agent/arguments/serve.js +7 -973
  180. package/dist/esm/core/agent/arguments/serve.js.map +1 -1
  181. package/dist/esm/core/agent/assessment/compose.d.ts +2 -2
  182. package/dist/esm/core/agent/assessment/compose.js +2 -2
  183. package/dist/esm/core/agent/assessment/compose.js.map +1 -1
  184. package/dist/esm/core/agent/assessment/stage.js +1 -1
  185. package/dist/esm/core/agent/buildAgentChart.d.ts +1 -1
  186. package/dist/esm/core/agent/buildAgentChart.js +1 -1
  187. package/dist/esm/core/agent/evidence/figures.d.ts +1 -1
  188. package/dist/esm/core/agent/evidence/figures.js +1 -1
  189. package/dist/esm/core/agent/findings/types.d.ts +2 -2
  190. package/dist/esm/core/agent/findings/types.js.map +1 -1
  191. package/dist/esm/core/agent/middleware/rewrites.d.ts +1 -1
  192. package/dist/esm/core/agent/middleware/rewrites.js +2 -2
  193. package/dist/esm/core/agent/middleware/rewrites.js.map +1 -1
  194. package/dist/esm/core/agent/stages/answerCoverage.d.ts +1 -1
  195. package/dist/esm/core/agent/stages/answerCoverage.js +1 -1
  196. package/dist/esm/core/agent/stages/argumentAsk.d.ts +1 -1
  197. package/dist/esm/core/agent/stages/argumentAsk.js +4 -3
  198. package/dist/esm/core/agent/stages/argumentAsk.js.map +1 -1
  199. package/dist/esm/core/agent/stages/callLLM.js +1 -1
  200. package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
  201. package/dist/esm/core/agent/stages/prepareFinal.d.ts +1 -1
  202. package/dist/esm/core/agent/stages/prepareFinal.js +1 -1
  203. package/dist/esm/core/agent/stages/seed.d.ts +2 -2
  204. package/dist/esm/core/agent/stages/toolCalls/contracts/access.d.ts +1 -1
  205. package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js +1 -1
  206. package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -1
  207. package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +1 -1
  208. package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.js +1 -1
  209. package/dist/esm/core/agent/types.d.ts +1 -1
  210. package/dist/esm/core/slots/buildToolsSlot.d.ts +4 -4
  211. package/dist/esm/core/slots/buildToolsSlot.js +2 -2
  212. package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
  213. package/dist/esm/debug.d.ts +1 -1
  214. package/dist/esm/debug.js.map +1 -1
  215. package/dist/esm/events/payloads/agent.d.ts +1 -1
  216. package/dist/esm/index.d.ts +1 -1
  217. package/dist/esm/lib/saidByPerson.d.ts +2 -2
  218. package/dist/esm/lib/saidByPerson.js +2 -2
  219. package/dist/esm/locales/timeAsk.d.ts +2 -2
  220. package/dist/esm/locales/timeAsk.js +3 -1
  221. package/dist/esm/locales/timeAsk.js.map +1 -1
  222. package/dist/esm/semantics/coverage/answer.d.ts +3 -3
  223. package/dist/esm/semantics/coverage/answer.js +2 -2
  224. package/dist/esm/semantics/coverage/period.d.ts +1 -1
  225. package/dist/esm/semantics/coverage/period.js +1 -1
  226. package/dist/esm/semantics/coverage/timeLimitFacts.d.ts +1 -1
  227. package/dist/esm/semantics/coverage/timeLimitFacts.js +1 -1
  228. package/dist/esm/semantics/coverage/timeLimits.d.ts +1 -1
  229. package/dist/esm/semantics/coverage/timeLimits.js +1 -1
  230. package/dist/esm/time/ask.d.ts +8 -3
  231. package/dist/esm/time/ask.js +7 -0
  232. package/dist/esm/time/ask.js.map +1 -1
  233. package/dist/esm/time/forms.js +2 -2
  234. package/dist/esm/time/forms.js.map +1 -1
  235. package/dist/esm/time/readers/english/atoms.d.ts +3 -0
  236. package/dist/esm/time/readers/english/atoms.js +164 -0
  237. package/dist/esm/time/readers/english/atoms.js.map +1 -0
  238. package/dist/esm/time/readers/english/grammar.d.ts +49 -0
  239. package/dist/esm/time/readers/english/grammar.js +128 -0
  240. package/dist/esm/time/readers/english/grammar.js.map +1 -0
  241. package/dist/esm/time/readers/english/types.d.ts +11 -0
  242. package/dist/esm/time/readers/english/types.js +2 -0
  243. package/dist/esm/time/readers/english/types.js.map +1 -0
  244. package/dist/esm/time/readers/english/zones.d.ts +13 -0
  245. package/dist/esm/time/readers/english/zones.js +116 -0
  246. package/dist/esm/time/readers/english/zones.js.map +1 -0
  247. package/dist/esm/time/readers/english.d.ts +6 -13
  248. package/dist/esm/time/readers/english.js +10 -327
  249. package/dist/esm/time/readers/english.js.map +1 -1
  250. package/dist/esm/time/readingAsk.d.ts +1 -1
  251. package/dist/esm/time/readingAsk.js +11 -3
  252. package/dist/esm/time/readingAsk.js.map +1 -1
  253. package/dist/esm/time/reply/classify.d.ts +2 -0
  254. package/dist/esm/time/reply/classify.js +28 -0
  255. package/dist/esm/time/reply/classify.js.map +1 -0
  256. package/dist/esm/time/reply/decision.d.ts +2 -0
  257. package/dist/esm/time/reply/decision.js +28 -0
  258. package/dist/esm/time/reply/decision.js.map +1 -0
  259. package/dist/esm/time/reply/decode.d.ts +3 -0
  260. package/dist/esm/time/reply/decode.js +25 -0
  261. package/dist/esm/time/reply/decode.js.map +1 -0
  262. package/dist/esm/time/reply/project.d.ts +5 -0
  263. package/dist/esm/time/reply/project.js +36 -0
  264. package/dist/esm/time/reply/project.js.map +1 -0
  265. package/dist/esm/time/reply/resolve.d.ts +4 -0
  266. package/dist/esm/time/reply/resolve.js +63 -0
  267. package/dist/esm/time/reply/resolve.js.map +1 -0
  268. package/dist/esm/time/reply/types.d.ts +71 -0
  269. package/dist/esm/time/reply/types.js +14 -0
  270. package/dist/esm/time/reply/types.js.map +1 -0
  271. package/dist/esm/time/reply.d.ts +3 -0
  272. package/dist/esm/time/reply.js +3 -0
  273. package/dist/esm/time/reply.js.map +1 -0
  274. package/dist/esm/time/replyForm/bindings.d.ts +22 -0
  275. package/dist/esm/time/replyForm/bindings.js +55 -0
  276. package/dist/esm/time/replyForm/bindings.js.map +1 -0
  277. package/dist/esm/time/replyForm.d.ts +3 -0
  278. package/dist/esm/time/replyForm.js +3 -0
  279. package/dist/esm/time/replyForm.js.map +1 -0
  280. package/dist/esm/time/replyRecord.d.ts +8 -0
  281. package/dist/esm/time/replyRecord.js +26 -0
  282. package/dist/esm/time/replyRecord.js.map +1 -0
  283. package/dist/esm/time/resolve/agreement.d.ts +6 -0
  284. package/dist/esm/time/resolve/agreement.js +26 -0
  285. package/dist/esm/time/resolve/agreement.js.map +1 -0
  286. package/dist/esm/time/resolve/calendar.d.ts +22 -0
  287. package/dist/esm/time/resolve/calendar.js +145 -0
  288. package/dist/esm/time/resolve/calendar.js.map +1 -0
  289. package/dist/esm/time/resolve/lookback.d.ts +6 -0
  290. package/dist/esm/time/resolve/lookback.js +51 -0
  291. package/dist/esm/time/resolve/lookback.js.map +1 -0
  292. package/dist/esm/time/resolve/points.d.ts +24 -0
  293. package/dist/esm/time/resolve/points.js +97 -0
  294. package/dist/esm/time/resolve/points.js.map +1 -0
  295. package/dist/esm/time/resolve/types.d.ts +11 -0
  296. package/dist/esm/time/resolve/types.js +2 -0
  297. package/dist/esm/time/resolve/types.js.map +1 -0
  298. package/dist/esm/time/resolve/wallClock.d.ts +28 -0
  299. package/dist/esm/time/resolve/wallClock.js +70 -0
  300. package/dist/esm/time/resolve/wallClock.js.map +1 -0
  301. package/dist/esm/time/resolve/zones.d.ts +57 -0
  302. package/dist/esm/time/resolve/zones.js +147 -0
  303. package/dist/esm/time/resolve/zones.js.map +1 -0
  304. package/dist/esm/time/resolve.d.ts +2 -13
  305. package/dist/esm/time/resolve.js +28 -492
  306. package/dist/esm/time/resolve.js.map +1 -1
  307. package/dist/esm/time/resolveRecord.d.ts +6 -1
  308. package/dist/esm/time/resolveRecord.js +2 -0
  309. package/dist/esm/time/resolveRecord.js.map +1 -1
  310. package/dist/esm/time/rows/meaning.d.ts +2 -0
  311. package/dist/esm/time/rows/meaning.js +27 -0
  312. package/dist/esm/time/rows/meaning.js.map +1 -0
  313. package/dist/esm/time/rows/types.d.ts +225 -0
  314. package/dist/esm/time/rows/types.js +2 -0
  315. package/dist/esm/time/rows/types.js.map +1 -0
  316. package/dist/esm/time/rows.d.ts +9 -210
  317. package/dist/esm/time/rows.js +19 -6
  318. package/dist/esm/time/rows.js.map +1 -1
  319. package/dist/esm/time/windows.d.ts +2 -0
  320. package/dist/esm/time/windows.js +3 -2
  321. package/dist/esm/time/windows.js.map +1 -1
  322. package/dist/esm/tools/declare.d.ts +1 -1
  323. package/dist/esm/tools/declare.js +1 -1
  324. package/dist/esm/tools/inputRequest/data.d.ts +4 -0
  325. package/dist/esm/tools/inputRequest/data.js +27 -0
  326. package/dist/esm/tools/inputRequest/data.js.map +1 -0
  327. package/dist/esm/tools/inputRequest/response.d.ts +36 -0
  328. package/dist/esm/tools/inputRequest/response.js +65 -0
  329. package/dist/esm/tools/inputRequest/response.js.map +1 -0
  330. package/dist/esm/tools/inputRequest.d.ts +3 -11
  331. package/dist/esm/tools/inputRequest.js +5 -90
  332. package/dist/esm/tools/inputRequest.js.map +1 -1
  333. package/dist/lib/saidByPerson.js +2 -2
  334. package/dist/locales/timeAsk.js +3 -1
  335. package/dist/locales/timeAsk.js.map +1 -1
  336. package/dist/semantics/coverage/answer.js +2 -2
  337. package/dist/semantics/coverage/period.js +1 -1
  338. package/dist/semantics/coverage/timeLimitFacts.js +1 -1
  339. package/dist/semantics/coverage/timeLimits.js +1 -1
  340. package/dist/time/ask.js +8 -1
  341. package/dist/time/ask.js.map +1 -1
  342. package/dist/time/forms.js +2 -2
  343. package/dist/time/forms.js.map +1 -1
  344. package/dist/time/readers/english/atoms.js +168 -0
  345. package/dist/time/readers/english/atoms.js.map +1 -0
  346. package/dist/time/readers/english/grammar.js +132 -0
  347. package/dist/time/readers/english/grammar.js.map +1 -0
  348. package/dist/time/readers/english/types.js +3 -0
  349. package/dist/time/readers/english/types.js.map +1 -0
  350. package/dist/time/readers/english/zones.js +121 -0
  351. package/dist/time/readers/english/zones.js.map +1 -0
  352. package/dist/time/readers/english.js +24 -336
  353. package/dist/time/readers/english.js.map +1 -1
  354. package/dist/time/readingAsk.js +10 -2
  355. package/dist/time/readingAsk.js.map +1 -1
  356. package/dist/time/reply/classify.js +32 -0
  357. package/dist/time/reply/classify.js.map +1 -0
  358. package/dist/time/reply/decision.js +32 -0
  359. package/dist/time/reply/decision.js.map +1 -0
  360. package/dist/time/reply/decode.js +29 -0
  361. package/dist/time/reply/decode.js.map +1 -0
  362. package/dist/time/reply/project.js +41 -0
  363. package/dist/time/reply/project.js.map +1 -0
  364. package/dist/time/reply/resolve.js +67 -0
  365. package/dist/time/reply/resolve.js.map +1 -0
  366. package/dist/time/reply/types.js +18 -0
  367. package/dist/time/reply/types.js.map +1 -0
  368. package/dist/time/reply.js +7 -0
  369. package/dist/time/reply.js.map +1 -0
  370. package/dist/time/replyForm/bindings.js +60 -0
  371. package/dist/time/replyForm/bindings.js.map +1 -0
  372. package/dist/time/replyForm.js +8 -0
  373. package/dist/time/replyForm.js.map +1 -0
  374. package/dist/time/replyRecord.js +30 -0
  375. package/dist/time/replyRecord.js.map +1 -0
  376. package/dist/time/resolve/agreement.js +31 -0
  377. package/dist/time/resolve/agreement.js.map +1 -0
  378. package/dist/time/resolve/calendar.js +151 -0
  379. package/dist/time/resolve/calendar.js.map +1 -0
  380. package/dist/time/resolve/lookback.js +55 -0
  381. package/dist/time/resolve/lookback.js.map +1 -0
  382. package/dist/time/resolve/points.js +101 -0
  383. package/dist/time/resolve/points.js.map +1 -0
  384. package/dist/time/resolve/types.js +3 -0
  385. package/dist/time/resolve/types.js.map +1 -0
  386. package/dist/time/resolve/wallClock.js +78 -0
  387. package/dist/time/resolve/wallClock.js.map +1 -0
  388. package/dist/time/resolve/zones.js +154 -0
  389. package/dist/time/resolve/zones.js.map +1 -0
  390. package/dist/time/resolve.js +34 -498
  391. package/dist/time/resolve.js.map +1 -1
  392. package/dist/time/resolveRecord.js +2 -0
  393. package/dist/time/resolveRecord.js.map +1 -1
  394. package/dist/time/rows/meaning.js +31 -0
  395. package/dist/time/rows/meaning.js.map +1 -0
  396. package/dist/time/rows/types.js +3 -0
  397. package/dist/time/rows/types.js.map +1 -0
  398. package/dist/time/rows.js +20 -6
  399. package/dist/time/rows.js.map +1 -1
  400. package/dist/time/windows.js +3 -2
  401. package/dist/time/windows.js.map +1 -1
  402. package/dist/tools/declare.js +1 -1
  403. package/dist/tools/inputRequest/data.js +34 -0
  404. package/dist/tools/inputRequest/data.js.map +1 -0
  405. package/dist/tools/inputRequest/response.js +71 -0
  406. package/dist/tools/inputRequest/response.js.map +1 -0
  407. package/dist/tools/inputRequest.js +31 -116
  408. package/dist/tools/inputRequest.js.map +1 -1
  409. package/dist/types/context-bisect/ablation.d.ts +8 -0
  410. package/dist/types/context-bisect/ablation.d.ts.map +1 -1
  411. package/dist/types/context-bisect/bisect.d.ts +15 -15
  412. package/dist/types/context-bisect/bisect.d.ts.map +1 -1
  413. package/dist/types/context-bisect/conclusion.d.ts +52 -0
  414. package/dist/types/context-bisect/conclusion.d.ts.map +1 -0
  415. package/dist/types/context-bisect/conclusionTypes.d.ts +76 -0
  416. package/dist/types/context-bisect/conclusionTypes.d.ts.map +1 -0
  417. package/dist/types/context-bisect/format.d.ts +11 -0
  418. package/dist/types/context-bisect/format.d.ts.map +1 -0
  419. package/dist/types/context-bisect/index.d.ts +1 -1
  420. package/dist/types/context-bisect/index.d.ts.map +1 -1
  421. package/dist/types/context-bisect/localize.d.ts +8 -10
  422. package/dist/types/context-bisect/localize.d.ts.map +1 -1
  423. package/dist/types/context-bisect/toBacktrackTrace.d.ts.map +1 -1
  424. package/dist/types/context-bisect/types.d.ts +33 -4
  425. package/dist/types/context-bisect/types.d.ts.map +1 -1
  426. package/dist/types/core/agent/arguments/ask/constants.d.ts +17 -0
  427. package/dist/types/core/agent/arguments/ask/constants.d.ts.map +1 -0
  428. package/dist/types/core/agent/arguments/ask/context.d.ts +24 -0
  429. package/dist/types/core/agent/arguments/ask/context.d.ts.map +1 -0
  430. package/dist/types/core/agent/arguments/ask/fields.d.ts +43 -0
  431. package/dist/types/core/agent/arguments/ask/fields.d.ts.map +1 -0
  432. package/dist/types/core/agent/arguments/ask/replyFields.d.ts +10 -0
  433. package/dist/types/core/agent/arguments/ask/replyFields.d.ts.map +1 -0
  434. package/dist/types/core/agent/arguments/ask/types.d.ts +196 -0
  435. package/dist/types/core/agent/arguments/ask/types.d.ts.map +1 -0
  436. package/dist/types/core/agent/arguments/ask/validation.d.ts +43 -0
  437. package/dist/types/core/agent/arguments/ask/validation.d.ts.map +1 -0
  438. package/dist/types/core/agent/arguments/ask/windowBinding/answer.d.ts +18 -0
  439. package/dist/types/core/agent/arguments/ask/windowBinding/answer.d.ts.map +1 -0
  440. package/dist/types/core/agent/arguments/ask/windowBinding/editedZone.d.ts +12 -0
  441. package/dist/types/core/agent/arguments/ask/windowBinding/editedZone.d.ts.map +1 -0
  442. package/dist/types/core/agent/arguments/ask/windowBinding/fills.d.ts +19 -0
  443. package/dist/types/core/agent/arguments/ask/windowBinding/fills.d.ts.map +1 -0
  444. package/dist/types/core/agent/arguments/ask/windowBinding/question.d.ts +7 -0
  445. package/dist/types/core/agent/arguments/ask/windowBinding/question.d.ts.map +1 -0
  446. package/dist/types/core/agent/arguments/ask/windowBinding/types.d.ts +36 -0
  447. package/dist/types/core/agent/arguments/ask/windowBinding/types.d.ts.map +1 -0
  448. package/dist/types/core/agent/arguments/ask/windowBinding.d.ts +5 -0
  449. package/dist/types/core/agent/arguments/ask/windowBinding.d.ts.map +1 -0
  450. package/dist/types/core/agent/arguments/ask/windowReply.d.ts +12 -0
  451. package/dist/types/core/agent/arguments/ask/windowReply.d.ts.map +1 -0
  452. package/dist/types/core/agent/arguments/ask.d.ts +9 -259
  453. package/dist/types/core/agent/arguments/ask.d.ts.map +1 -1
  454. package/dist/types/core/agent/arguments/dispatch.d.ts +4 -4
  455. package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts +1 -1
  456. package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts.map +1 -1
  457. package/dist/types/core/agent/arguments/serve/assumed.d.ts +64 -0
  458. package/dist/types/core/agent/arguments/serve/assumed.d.ts.map +1 -0
  459. package/dist/types/core/agent/arguments/serve/clock.d.ts +105 -0
  460. package/dist/types/core/agent/arguments/serve/clock.d.ts.map +1 -0
  461. package/dist/types/core/agent/arguments/serve/fills.d.ts +66 -0
  462. package/dist/types/core/agent/arguments/serve/fills.d.ts.map +1 -0
  463. package/dist/types/core/agent/arguments/serve/refusals.d.ts +68 -0
  464. package/dist/types/core/agent/arguments/serve/refusals.d.ts.map +1 -0
  465. package/dist/types/core/agent/arguments/serve/schema.d.ts +68 -0
  466. package/dist/types/core/agent/arguments/serve/schema.d.ts.map +1 -0
  467. package/dist/types/core/agent/arguments/serve/values.d.ts +12 -0
  468. package/dist/types/core/agent/arguments/serve/values.d.ts.map +1 -0
  469. package/dist/types/core/agent/arguments/serve/windows.d.ts +61 -0
  470. package/dist/types/core/agent/arguments/serve/windows.d.ts.map +1 -0
  471. package/dist/types/core/agent/arguments/serve.d.ts +12 -417
  472. package/dist/types/core/agent/arguments/serve.d.ts.map +1 -1
  473. package/dist/types/core/agent/assessment/compose.d.ts +2 -2
  474. package/dist/types/core/agent/buildAgentChart.d.ts +1 -1
  475. package/dist/types/core/agent/evidence/figures.d.ts +1 -1
  476. package/dist/types/core/agent/findings/types.d.ts +2 -2
  477. package/dist/types/core/agent/findings/types.d.ts.map +1 -1
  478. package/dist/types/core/agent/middleware/rewrites.d.ts +1 -1
  479. package/dist/types/core/agent/stages/answerCoverage.d.ts +1 -1
  480. package/dist/types/core/agent/stages/argumentAsk.d.ts +1 -1
  481. package/dist/types/core/agent/stages/argumentAsk.d.ts.map +1 -1
  482. package/dist/types/core/agent/stages/prepareFinal.d.ts +1 -1
  483. package/dist/types/core/agent/stages/seed.d.ts +2 -2
  484. package/dist/types/core/agent/stages/toolCalls/contracts/access.d.ts +1 -1
  485. package/dist/types/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +1 -1
  486. package/dist/types/core/agent/types.d.ts +1 -1
  487. package/dist/types/core/slots/buildToolsSlot.d.ts +4 -4
  488. package/dist/types/debug.d.ts +1 -1
  489. package/dist/types/debug.d.ts.map +1 -1
  490. package/dist/types/events/payloads/agent.d.ts +1 -1
  491. package/dist/types/index.d.ts +1 -1
  492. package/dist/types/index.d.ts.map +1 -1
  493. package/dist/types/lib/saidByPerson.d.ts +2 -2
  494. package/dist/types/locales/timeAsk.d.ts +2 -2
  495. package/dist/types/locales/timeAsk.d.ts.map +1 -1
  496. package/dist/types/semantics/coverage/answer.d.ts +3 -3
  497. package/dist/types/semantics/coverage/period.d.ts +1 -1
  498. package/dist/types/semantics/coverage/timeLimitFacts.d.ts +1 -1
  499. package/dist/types/semantics/coverage/timeLimits.d.ts +1 -1
  500. package/dist/types/time/ask.d.ts +8 -3
  501. package/dist/types/time/ask.d.ts.map +1 -1
  502. package/dist/types/time/readers/english/atoms.d.ts +4 -0
  503. package/dist/types/time/readers/english/atoms.d.ts.map +1 -0
  504. package/dist/types/time/readers/english/grammar.d.ts +50 -0
  505. package/dist/types/time/readers/english/grammar.d.ts.map +1 -0
  506. package/dist/types/time/readers/english/types.d.ts +12 -0
  507. package/dist/types/time/readers/english/types.d.ts.map +1 -0
  508. package/dist/types/time/readers/english/zones.d.ts +14 -0
  509. package/dist/types/time/readers/english/zones.d.ts.map +1 -0
  510. package/dist/types/time/readers/english.d.ts +6 -13
  511. package/dist/types/time/readers/english.d.ts.map +1 -1
  512. package/dist/types/time/readingAsk.d.ts +1 -1
  513. package/dist/types/time/readingAsk.d.ts.map +1 -1
  514. package/dist/types/time/reply/classify.d.ts +3 -0
  515. package/dist/types/time/reply/classify.d.ts.map +1 -0
  516. package/dist/types/time/reply/decision.d.ts +3 -0
  517. package/dist/types/time/reply/decision.d.ts.map +1 -0
  518. package/dist/types/time/reply/decode.d.ts +4 -0
  519. package/dist/types/time/reply/decode.d.ts.map +1 -0
  520. package/dist/types/time/reply/project.d.ts +6 -0
  521. package/dist/types/time/reply/project.d.ts.map +1 -0
  522. package/dist/types/time/reply/resolve.d.ts +5 -0
  523. package/dist/types/time/reply/resolve.d.ts.map +1 -0
  524. package/dist/types/time/reply/types.d.ts +72 -0
  525. package/dist/types/time/reply/types.d.ts.map +1 -0
  526. package/dist/types/time/reply.d.ts +4 -0
  527. package/dist/types/time/reply.d.ts.map +1 -0
  528. package/dist/types/time/replyForm/bindings.d.ts +23 -0
  529. package/dist/types/time/replyForm/bindings.d.ts.map +1 -0
  530. package/dist/types/time/replyForm.d.ts +4 -0
  531. package/dist/types/time/replyForm.d.ts.map +1 -0
  532. package/dist/types/time/replyRecord.d.ts +9 -0
  533. package/dist/types/time/replyRecord.d.ts.map +1 -0
  534. package/dist/types/time/resolve/agreement.d.ts +7 -0
  535. package/dist/types/time/resolve/agreement.d.ts.map +1 -0
  536. package/dist/types/time/resolve/calendar.d.ts +23 -0
  537. package/dist/types/time/resolve/calendar.d.ts.map +1 -0
  538. package/dist/types/time/resolve/lookback.d.ts +7 -0
  539. package/dist/types/time/resolve/lookback.d.ts.map +1 -0
  540. package/dist/types/time/resolve/points.d.ts +25 -0
  541. package/dist/types/time/resolve/points.d.ts.map +1 -0
  542. package/dist/types/time/resolve/types.d.ts +12 -0
  543. package/dist/types/time/resolve/types.d.ts.map +1 -0
  544. package/dist/types/time/resolve/wallClock.d.ts +29 -0
  545. package/dist/types/time/resolve/wallClock.d.ts.map +1 -0
  546. package/dist/types/time/resolve/zones.d.ts +58 -0
  547. package/dist/types/time/resolve/zones.d.ts.map +1 -0
  548. package/dist/types/time/resolve.d.ts +2 -13
  549. package/dist/types/time/resolve.d.ts.map +1 -1
  550. package/dist/types/time/resolveRecord.d.ts +6 -1
  551. package/dist/types/time/resolveRecord.d.ts.map +1 -1
  552. package/dist/types/time/rows/meaning.d.ts +3 -0
  553. package/dist/types/time/rows/meaning.d.ts.map +1 -0
  554. package/dist/types/time/rows/types.d.ts +226 -0
  555. package/dist/types/time/rows/types.d.ts.map +1 -0
  556. package/dist/types/time/rows.d.ts +9 -210
  557. package/dist/types/time/rows.d.ts.map +1 -1
  558. package/dist/types/time/windows.d.ts +2 -0
  559. package/dist/types/time/windows.d.ts.map +1 -1
  560. package/dist/types/tools/declare.d.ts +1 -1
  561. package/dist/types/tools/inputRequest/data.d.ts +5 -0
  562. package/dist/types/tools/inputRequest/data.d.ts.map +1 -0
  563. package/dist/types/tools/inputRequest/response.d.ts +37 -0
  564. package/dist/types/tools/inputRequest/response.d.ts.map +1 -0
  565. package/dist/types/tools/inputRequest.d.ts +3 -11
  566. package/dist/types/tools/inputRequest.d.ts.map +1 -1
  567. package/package.json +1 -1
@@ -0,0 +1,226 @@
1
+ import type { TimeReplyEvidence } from '../replyRecord.js';
2
+ import type { DurationText } from '../duration.js';
3
+ import type { InstantText } from '../instant.js';
4
+ import type { TimeRange } from '../range.js';
5
+ import type { ZoneName } from '../zone.js';
6
+ import type { ClockChange, TimeClock } from '../clock.js';
7
+ import type { MentionRefusal, TimeParts } from '../reader.js';
8
+ import type { CallWindow, WindowSource } from '../bind.js';
9
+ import type { TimeRefusal } from '../periodForm.js';
10
+ import type { ReadingChoice, TimeCandidate } from '../resolveRecord.js';
11
+ /** A window set in a UI, as the clock row records it. */
12
+ export interface ControlWindow extends TimeRange {
13
+ readonly source: 'control';
14
+ }
15
+ /** The turn's clock stamp — one per turn (time design § 4). */
16
+ export interface ClockRow extends TimeClock {
17
+ readonly kind: 'clock';
18
+ /** `AgentState.turnNumber` when the row was filed — the conversation turn. */
19
+ readonly turn: number;
20
+ /** The iteration seed filed it at (1). */
21
+ readonly iteration: number;
22
+ /** The run's `time.window`, when it passed one. */
23
+ readonly window?: ControlWindow;
24
+ }
25
+ /** A resume passed a `time` that differs from the frozen clock: recorded, not applied (TQ21). */
26
+ export interface ClockOnResumeRow {
27
+ readonly kind: 'clock-on-resume';
28
+ readonly turn: number;
29
+ /** The iteration the paused batch ran in. */
30
+ readonly iteration: number;
31
+ /** What the resume passed, as read (values as written, a `Date` spelled in UTC). */
32
+ readonly passed: ClockChange['passed'];
33
+ /** The frozen clock's values the passed ones would have replaced. */
34
+ readonly kept: ClockChange['kept'];
35
+ }
36
+ /** One dispatched call's wall-clock moment (time design § 4, § 7.4). */
37
+ export interface CallRow {
38
+ readonly kind: 'call';
39
+ readonly turn: number;
40
+ readonly iteration: number;
41
+ readonly toolCallId: string;
42
+ readonly toolName: string;
43
+ /** The wall clock when the library handed the call to the tool — UTC, millisecond precision. */
44
+ readonly dispatchedAt: InstantText;
45
+ /**
46
+ * The clock at dispatch (§ 7.4, step T5b) — present only when the call sent
47
+ * a LOOK-BACK and `dispatchedAt − now` (`byMs`, signed) is more than the
48
+ * tool's step. `redrawn`: the library's own look-back fill was re-sent as
49
+ * the asked range in absolute form `form`; `shifted`: the look-back ran as
50
+ * sent (the model's value, or no absolute form), so the tool read a window
51
+ * shifted by `byMs` — `period-shifted`.
52
+ */
53
+ readonly drift?: CallDrift;
54
+ }
55
+ /** A look-back call's dispatch drift (§ 7.4) — see {@link CallRow.drift}. */
56
+ export type CallDrift = {
57
+ readonly byMs: number;
58
+ readonly outcome: 'redrawn';
59
+ readonly form: number;
60
+ } | {
61
+ readonly byMs: number;
62
+ readonly outcome: 'shifted';
63
+ };
64
+ /** The reader a reading came from, as recorded. */
65
+ export interface TimeReaderStamp {
66
+ readonly id: string;
67
+ readonly version: string;
68
+ readonly kind: 'rule' | 'model';
69
+ readonly locale: string;
70
+ }
71
+ /**
72
+ * One mention the armed reader found in the person's message (time design
73
+ * § 5.2) — or, with `mentions: 0` and no mention fields, the record that the
74
+ * message was read and held none. Read back, never re-read: a resume and a
75
+ * retry of the same turn find these rows and do not call the reader.
76
+ */
77
+ export interface TimeReadingRow {
78
+ readonly kind: 'time-reading';
79
+ readonly turn: number;
80
+ readonly iteration: number;
81
+ readonly reader: TimeReaderStamp;
82
+ /** The tz database the candidates were resolved with (`process.versions.tz`), else `'unknown'`. */
83
+ readonly tzdata: string;
84
+ /** How many mentions the reading held. */
85
+ readonly mentions: number;
86
+ /** This row's mention, 0-based — absent on the `mentions: 0` row. */
87
+ readonly mention?: number;
88
+ /** A verbatim substring of the person's message. */
89
+ readonly quote?: string;
90
+ readonly parses?: readonly TimeParts[];
91
+ readonly problem?: 'unreadable';
92
+ /** Why the mention was refused — its quote was not in the message, or its parts were malformed. It keeps no text. */
93
+ readonly refused?: MentionRefusal;
94
+ /** Every window `resolve.ts` made of the parts. */
95
+ readonly candidates?: readonly TimeCandidate[];
96
+ /** How the reading settled under the policy — `open` waits for the person. */
97
+ readonly choice?: ReadingChoice;
98
+ }
99
+ /**
100
+ * The window the person settled for one mention in the time ask — the ONLY
101
+ * door by which a window of words becomes the person's (the owner's decision
102
+ * "Always confirm", time design TQ29). Filed by the batch ask when a window
103
+ * answer binds (`arguments/ask.ts` · `bindAnswer`); read back by
104
+ * `bind.ts` · `turnWindowsOf`, so the rest of the turn uses it as an
105
+ * `answered` window and the served sentence names it with its source.
106
+ */
107
+ export interface TimeAnswerRow extends TimeRange {
108
+ readonly kind: 'time-answer';
109
+ readonly turn: number;
110
+ readonly iteration: number;
111
+ /** The `time-reading` row's mention the answer settles. */
112
+ readonly mention: number;
113
+ /** The zone the window was answered in — the reading's, or the turn's clock for free entry. */
114
+ readonly zone: ZoneName;
115
+ /**
116
+ * `confirmed`: the person picked a reading the library offered (the
117
+ * pre-filled choice — their click); `edited`: they wrote a window of their
118
+ * own. Both are the person's answer.
119
+ */
120
+ readonly how: 'confirmed' | 'edited';
121
+ /** Canonical corrected meaning; absent preserves the original reading. Never raw words. */
122
+ readonly corrected?: {
123
+ readonly lookback?: DurationText;
124
+ };
125
+ }
126
+ /** One request-bound correction decision, without the raw reply. */
127
+ export interface TimeReplyRow extends TimeReplyEvidence {
128
+ readonly kind: 'time-reply';
129
+ readonly turn: number;
130
+ readonly iteration: number;
131
+ readonly mention: number;
132
+ }
133
+ /** The person's window a `call-window` row names — its range, who gave it, and its mention. */
134
+ export interface PersonWindow extends TimeRange {
135
+ readonly source: WindowSource;
136
+ /** The `time-reading` row's mention index — absent on a `control` window. */
137
+ readonly mention?: number;
138
+ }
139
+ /**
140
+ * Which window one call to a tool that declares period forms carries (time
141
+ * design § 7.3) — one row per such call (two when the time ask filled it, below), filed by the inputs layer beside the
142
+ * call's `argument` rows, before the call dispatches.
143
+ *
144
+ * | `how` | Means |
145
+ * |-------|-------|
146
+ * | `filled` | the model left the period out; the turn's one window (`person`) went into form `form` exactly (`rounded`: an epoch-seconds bound or a look-back's length moved outward) |
147
+ * | `bound` | the sent window IS the person's window `person` — named by the model's quote (`by: 'quote'`) or equal in value (`by: 'value'`) |
148
+ * | `model-chosen` | the sent window (`asked`) differs from the person's (`person`, when one window is theirs): it ran as sent (the v1 law) |
149
+ * | `model` | the sent window, and no window of the person's this turn |
150
+ * | `unread` | a period argument was sent and no form reads the call back as a range |
151
+ * | `not-filled` | the period was left out and nothing was filled (`why`) — the tool's own rule applied (`no-exact-form` is no longer filed: a window no form holds is refused, `no-form-holds`; the word is kept so an older record reads) |
152
+ * | `refused` | refused before dispatch (`refused`: a fact the window breaks, `multi-day`, `no-form-holds`, `dst-gap` with its `argument`; no range at all when an open reading was refused in every reading) — the call did not run |
153
+ *
154
+ * `asked` is the half-open range the call asks for: the person's on a fill,
155
+ * the sent value read back otherwise — what `ctx.time.asked` hands the tool.
156
+ * A WIDENED fill (no form holds the window exactly — § 7.2) carries `sent`,
157
+ * the range the tool reads, and either `differs.extra` (the parts read but
158
+ * not asked — `period-differs-from-asked`) or `trimmedByTool` (the tool
159
+ * declares `filtersToAsked`). `partlyBeyondRetention` marks a window that
160
+ * starts before the source's oldest data and ends after it: it dispatched.
161
+ *
162
+ * A call the time ask filled (the person confirmed or gave the window when
163
+ * asked what their words meant) has TWO rows: `not-filled` / `open-reading`
164
+ * before the ask, then `filled` with `person.source: 'answered'` when the
165
+ * answer is bound (`arguments/ask.ts` · `bindAnswer`). The LATEST row of a
166
+ * call is the window it runs with (`callWindowOfCall`).
167
+ */
168
+ export interface CallWindowRow {
169
+ readonly kind: 'call-window';
170
+ readonly turn: number;
171
+ readonly iteration: number;
172
+ readonly toolCallId: string;
173
+ readonly toolName: string;
174
+ readonly how: CallWindow['how'];
175
+ /** The index of the tool's form the call used (filled into, or read back from). */
176
+ readonly form?: number;
177
+ readonly asked?: TimeRange;
178
+ readonly person?: PersonWindow;
179
+ readonly by?: 'quote' | 'value';
180
+ readonly rounded?: true;
181
+ readonly why?: 'no-window' | 'several-mentions' | 'open-reading' | 'no-exact-form';
182
+ /** A widened fill: the range the tool reads with the sent values. */
183
+ readonly sent?: TimeRange;
184
+ /** A widened fill the tool does not trim: the parts read but not asked. */
185
+ readonly differs?: {
186
+ readonly extra: readonly TimeRange[];
187
+ };
188
+ /** A widened fill to a tool that declares `filtersToAsked`. */
189
+ readonly trimmedByTool?: true;
190
+ readonly partlyBeyondRetention?: true;
191
+ /** Why the call was refused before dispatch. */
192
+ readonly refused?: TimeRefusal;
193
+ /** On a `dst-gap` refusal: the argument whose wall time the zone skips. */
194
+ readonly argument?: string;
195
+ }
196
+ /**
197
+ * The answer's values the library itself spelled from a time reading of this
198
+ * turn (§ 9.5, step T7) — an implied year, an offset, the end-of-grain
199
+ * minute, a value of the served time line. The lineage `derived-from-reading`:
200
+ * the answer's standing reads it as "not sure" at most, never "known", and the
201
+ * gate never calls these invented.
202
+ */
203
+ export interface TimeDerivedRow {
204
+ readonly kind: 'time-derived';
205
+ readonly turn: number;
206
+ readonly iteration: number;
207
+ /** The values as the gate reports them — normalized, clipped, at most `MAX_DERIVED_VALUES`. */
208
+ readonly values: readonly string[];
209
+ }
210
+ /**
211
+ * A wall-clock source (§ 9.6, step T8): the call minted a dataset whose
212
+ * declared time axis (`axis.ts` · `DatasetTimeAxis`, its `zone`) says its rows are
213
+ * wall times in `zone`. One row per call and zone. A period's offset is never
214
+ * read as a clock — only a declared axis zone files this row.
215
+ */
216
+ export interface SourceClockRow {
217
+ readonly kind: 'source-clock';
218
+ readonly turn: number;
219
+ readonly iteration: number;
220
+ readonly toolCallId: string;
221
+ readonly toolName: string;
222
+ readonly zone: ZoneName;
223
+ }
224
+ /** Every time-layer row kind. */
225
+ export type TimeRow = ClockRow | ClockOnResumeRow | CallRow | TimeReadingRow | CallWindowRow | TimeAnswerRow | TimeReplyRow | TimeDerivedRow | SourceClockRow;
226
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/time/rows/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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AAC,EAAE,IAAI,CAAC;IACtC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAC/B,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB;AAED,iCAAiC;AACjC,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,gBAAgB,GAChB,OAAO,GACP,cAAc,GACd,aAAa,GACb,aAAa,GACb,YAAY,GACZ,cAAc,GACd,cAAc,CAAC"}
@@ -19,237 +19,35 @@
19
19
  * precedent: no event field ships without a reader in the same
20
20
  * release). The lens reads the rows.
21
21
  *
22
- * Eight kinds, each filed only while `.time()` is armed:
22
+ * Nine kinds, each filed only while `.time()` is armed:
23
23
  *
24
24
  * | Kind | Filed | Carries |
25
25
  * |------|-------|---------|
26
- * | `clock` | once per turn, by seed | the turn's {@link TimeClock} and, when the run passed one, the `control` window |
26
+ * | `clock` | once per turn, by seed | the turn's {@link ClockRow} and, when the run passed one, the `control` window |
27
27
  * | `clock-on-resume` | first thing in the resumed leg's ToolCalls stage — either pause shape: the pausable resume door, or the stage re-run an `interrupt()` pause makes — when a resume passed a `time` that differs from the kept clock | what was passed and what was kept — the kept clock still rules |
28
28
  * | `call` | once per dispatched call, just before the tool runs | `dispatchedAt`: the wall clock at dispatch (a look-back is evaluated by the TOOL at dispatch, which after a pause is later than `now`); `drift` when a look-back was sent more than the tool's step after `now` — `redrawn` into an absolute form, or `shifted` (§ 7.4, `drift.ts`) |
29
29
  * | `call-window` | by the inputs layer, once per call to a tool that declares period forms, before it dispatches | which window the call carries: filled from the turn's one window (exactly, or wider — with what the read adds), bound to one (by quote or value), the model's own (beside the person's when it differs), unread, not filled and why, or refused before dispatch and why |
30
30
  * | `time-reading` | by seed, once per MENTION the armed reader (`.time({ reader })`) found in the person's message — or ONE row with `mentions: 0` when it found none, so a retry knows the message was read | the quote, the parts, every candidate `resolve.ts` made of them, how the reading settled (`choice` — never settled by the library: every reading is a PROPOSAL, `open` with `confirm`, its candidates `said: []`), the reader's id, version, kind and locale, and the tz database version; a refused mention keeps only why |
31
31
  * | `time-answer` | by the batch ask, once per mention the person settled in the time ask — the only door by which a window of words becomes the person's | the mention, the window and its zone, and `how`: `confirmed` (they picked a reading the library offered — the click) or `edited` (they wrote their own) |
32
+ * | `time-reply` | by the resumed batch ask, once per correction decision | the time-row coordinates, bounded decision and fixed rule label; no raw reply |
32
33
  * | `time-derived` | by the Route decider, once per judged answer that stands, when the evidence gate found values no tool result carried that the library itself spelled from this turn's time readings (§ 9.5, step T7 — `forms.ts` · `timeFormsOf`'s `derived` list) | the values, normalized and clipped as the gate reports them — the lineage `derived-from-reading`: never invented, never the person's |
33
34
  * | `source-clock` | by ToolCalls, once per call and zone, when the call minted a dataset whose declared time axis names a `zone` (§ 9.6, step T8) | the tool, the call and the zone its rows' wall times are in — read by the limits block's `Clocks` lines and `check.ts` · `clocksDiffer` |
34
35
  *
35
36
  * Readers that switch over every row kind must skip one they do not know.
36
37
  */
37
- import { type InstantText } from './instant.js';
38
+ import { type TimeReplyEvidence } from './replyRecord.js';
38
39
  import { type TimeRange } from './range.js';
39
40
  import { type ZoneName } from './zone.js';
40
- import type { ClockChange, TimeClock } from './clock.js';
41
- import { type MentionRefusal, type TimeParts } from './reader.js';
42
- import type { CallWindow, WindowSource } from './bind.js';
43
- import { type TimeRefusal } from './periodForm.js';
44
- import { type ReadingChoice, type TimeCandidate } from './resolveRecord.js';
45
- /** A window set in a UI, as the clock row records it. */
46
- export interface ControlWindow extends TimeRange {
47
- readonly source: 'control';
48
- }
49
- /** The turn's clock stamp — one per turn (time design § 4). */
50
- export interface ClockRow extends TimeClock {
51
- readonly kind: 'clock';
52
- /** `AgentState.turnNumber` when the row was filed — the conversation turn. */
41
+ import type { CallRow, CallWindowRow, ClockRow, SourceClockRow, TimeAnswerRow, TimeDerivedRow, TimeReadingRow, TimeReplyRow, TimeRow } from './rows/types.js';
42
+ export type { ControlWindow, ClockRow, ClockOnResumeRow, CallRow, CallDrift, TimeReaderStamp, TimeReadingRow, TimeAnswerRow, TimeReplyRow, PersonWindow, CallWindowRow, TimeDerivedRow, SourceClockRow, TimeRow, } from './rows/types.js';
43
+ export declare function timeReplyRow(evidence: TimeReplyEvidence, at: {
53
44
  readonly turn: number;
54
- /** The iteration seed filed it at (1). */
55
45
  readonly iteration: number;
56
- /** The run's `time.window`, when it passed one. */
57
- readonly window?: ControlWindow;
58
- }
59
- /** A resume passed a `time` that differs from the frozen clock: recorded, not applied (TQ21). */
60
- export interface ClockOnResumeRow {
61
- readonly kind: 'clock-on-resume';
62
- readonly turn: number;
63
- /** The iteration the paused batch ran in. */
64
- readonly iteration: number;
65
- /** What the resume passed, as read (values as written, a `Date` spelled in UTC). */
66
- readonly passed: ClockChange['passed'];
67
- /** The frozen clock's values the passed ones would have replaced. */
68
- readonly kept: ClockChange['kept'];
69
- }
70
- /** One dispatched call's wall-clock moment (time design § 4, § 7.4). */
71
- export interface CallRow {
72
- readonly kind: 'call';
73
- readonly turn: number;
74
- readonly iteration: number;
75
- readonly toolCallId: string;
76
- readonly toolName: string;
77
- /** The wall clock when the library handed the call to the tool — UTC, millisecond precision. */
78
- readonly dispatchedAt: InstantText;
79
- /**
80
- * The clock at dispatch (§ 7.4, step T5b) — present only when the call sent
81
- * a LOOK-BACK and `dispatchedAt − now` (`byMs`, signed) is more than the
82
- * tool's step. `redrawn`: the library's own look-back fill was re-sent as
83
- * the asked range in absolute form `form`; `shifted`: the look-back ran as
84
- * sent (the model's value, or no absolute form), so the tool read a window
85
- * shifted by `byMs` — `period-shifted`.
86
- */
87
- readonly drift?: CallDrift;
88
- }
89
- /** A look-back call's dispatch drift (§ 7.4) — see {@link CallRow.drift}. */
90
- export type CallDrift = {
91
- readonly byMs: number;
92
- readonly outcome: 'redrawn';
93
- readonly form: number;
94
- } | {
95
- readonly byMs: number;
96
- readonly outcome: 'shifted';
97
- };
98
- /** The reader a reading came from, as recorded. */
99
- export interface TimeReaderStamp {
100
- readonly id: string;
101
- readonly version: string;
102
- readonly kind: 'rule' | 'model';
103
- readonly locale: string;
104
- }
105
- /**
106
- * One mention the armed reader found in the person's message (time design
107
- * § 5.2) — or, with `mentions: 0` and no mention fields, the record that the
108
- * message was read and held none. Read back, never re-read: a resume and a
109
- * retry of the same turn find these rows and do not call the reader.
110
- */
111
- export interface TimeReadingRow {
112
- readonly kind: 'time-reading';
113
- readonly turn: number;
114
- readonly iteration: number;
115
- readonly reader: TimeReaderStamp;
116
- /** The tz database the candidates were resolved with (`process.versions.tz`), else `'unknown'`. */
117
- readonly tzdata: string;
118
- /** How many mentions the reading held. */
119
- readonly mentions: number;
120
- /** This row's mention, 0-based — absent on the `mentions: 0` row. */
121
- readonly mention?: number;
122
- /** A verbatim substring of the person's message. */
123
- readonly quote?: string;
124
- readonly parses?: readonly TimeParts[];
125
- readonly problem?: 'unreadable';
126
- /** Why the mention was refused — its quote was not in the message, or its parts were malformed. It keeps no text. */
127
- readonly refused?: MentionRefusal;
128
- /** Every window `resolve.ts` made of the parts. */
129
- readonly candidates?: readonly TimeCandidate[];
130
- /** How the reading settled under the policy — `open` waits for the person. */
131
- readonly choice?: ReadingChoice;
132
- }
133
- /**
134
- * The window the person settled for one mention in the time ask — the ONLY
135
- * door by which a window of words becomes the person's (the owner's decision
136
- * "Always confirm", time design TQ29). Filed by the batch ask when a window
137
- * answer binds (`arguments/ask.ts` · `bindAnswer`); read back by
138
- * `bind.ts` · `turnWindowsOf`, so the rest of the turn uses it as an
139
- * `answered` window and the served sentence names it with its source.
140
- */
141
- export interface TimeAnswerRow extends TimeRange {
142
- readonly kind: 'time-answer';
143
- readonly turn: number;
144
- readonly iteration: number;
145
- /** The `time-reading` row's mention the answer settles. */
146
- readonly mention: number;
147
- /** The zone the window was answered in — the reading's, or the turn's clock for free entry. */
148
- readonly zone: ZoneName;
149
- /**
150
- * `confirmed`: the person picked a reading the library offered (the
151
- * pre-filled choice — their click); `edited`: they wrote a window of their
152
- * own. Both are the person's answer.
153
- */
154
- readonly how: 'confirmed' | 'edited';
155
- }
156
- /** The person's window a `call-window` row names — its range, who gave it, and its mention. */
157
- export interface PersonWindow extends TimeRange {
158
- readonly source: WindowSource;
159
- /** The `time-reading` row's mention index — absent on a `control` window. */
160
- readonly mention?: number;
161
- }
162
- /**
163
- * Which window one call to a tool that declares period forms carries (time
164
- * design § 7.3) — one row per such call (two when the time ask filled it, below), filed by the inputs layer beside the
165
- * call's `argument` rows, before the call dispatches.
166
- *
167
- * | `how` | Means |
168
- * |-------|-------|
169
- * | `filled` | the model left the period out; the turn's one window (`person`) went into form `form` exactly (`rounded`: an epoch-seconds bound or a look-back's length moved outward) |
170
- * | `bound` | the sent window IS the person's window `person` — named by the model's quote (`by: 'quote'`) or equal in value (`by: 'value'`) |
171
- * | `model-chosen` | the sent window (`asked`) differs from the person's (`person`, when one window is theirs): it ran as sent (the v1 law) |
172
- * | `model` | the sent window, and no window of the person's this turn |
173
- * | `unread` | a period argument was sent and no form reads the call back as a range |
174
- * | `not-filled` | the period was left out and nothing was filled (`why`) — the tool's own rule applied (`no-exact-form` is no longer filed: a window no form holds is refused, `no-form-holds`; the word is kept so an older record reads) |
175
- * | `refused` | refused before dispatch (`refused`: a fact the window breaks, `multi-day`, `no-form-holds`, `dst-gap` with its `argument`; no range at all when an open reading was refused in every reading) — the call did not run |
176
- *
177
- * `asked` is the half-open range the call asks for: the person's on a fill,
178
- * the sent value read back otherwise — what `ctx.time.asked` hands the tool.
179
- * A WIDENED fill (no form holds the window exactly — § 7.2) carries `sent`,
180
- * the range the tool reads, and either `differs.extra` (the parts read but
181
- * not asked — `period-differs-from-asked`) or `trimmedByTool` (the tool
182
- * declares `filtersToAsked`). `partlyBeyondRetention` marks a window that
183
- * starts before the source's oldest data and ends after it: it dispatched.
184
- *
185
- * A call the time ask filled (the person confirmed or gave the window when
186
- * asked what their words meant) has TWO rows: `not-filled` / `open-reading`
187
- * before the ask, then `filled` with `person.source: 'answered'` when the
188
- * answer is bound (`arguments/ask.ts` · `bindAnswer`). The LATEST row of a
189
- * call is the window it runs with (`callWindowOfCall`).
190
- */
191
- export interface CallWindowRow {
192
- readonly kind: 'call-window';
193
- readonly turn: number;
194
- readonly iteration: number;
195
- readonly toolCallId: string;
196
- readonly toolName: string;
197
- readonly how: CallWindow['how'];
198
- /** The index of the tool's form the call used (filled into, or read back from). */
199
- readonly form?: number;
200
- readonly asked?: TimeRange;
201
- readonly person?: PersonWindow;
202
- readonly by?: 'quote' | 'value';
203
- readonly rounded?: true;
204
- readonly why?: 'no-window' | 'several-mentions' | 'open-reading' | 'no-exact-form';
205
- /** A widened fill: the range the tool reads with the sent values. */
206
- readonly sent?: TimeRange;
207
- /** A widened fill the tool does not trim: the parts read but not asked. */
208
- readonly differs?: {
209
- readonly extra: readonly TimeRange[];
210
- };
211
- /** A widened fill to a tool that declares `filtersToAsked`. */
212
- readonly trimmedByTool?: true;
213
- readonly partlyBeyondRetention?: true;
214
- /** Why the call was refused before dispatch. */
215
- readonly refused?: TimeRefusal;
216
- /** On a `dst-gap` refusal: the argument whose wall time the zone skips. */
217
- readonly argument?: string;
218
- }
219
- /**
220
- * The answer's values the library itself spelled from a time reading of this
221
- * turn (§ 9.5, step T7) — an implied year, an offset, the end-of-grain
222
- * minute, a value of the served time line. The lineage `derived-from-reading`:
223
- * the answer's standing reads it as "not sure" at most, never "known", and the
224
- * gate never calls these invented.
225
- */
226
- export interface TimeDerivedRow {
227
- readonly kind: 'time-derived';
228
- readonly turn: number;
229
- readonly iteration: number;
230
- /** The values as the gate reports them — normalized, clipped, at most `MAX_DERIVED_VALUES`. */
231
- readonly values: readonly string[];
232
- }
46
+ }, mention: number): TimeReplyRow;
233
47
  /** The most values one `time-derived` row carries (the gate's report bound). */
234
48
  export declare const MAX_DERIVED_VALUES = 12;
235
49
  /** The longest value a `time-derived` row carries (the gate's clip). */
236
50
  export declare const MAX_DERIVED_VALUE_CHARS = 64;
237
- /**
238
- * A wall-clock source (§ 9.6, step T8): the call minted a dataset whose
239
- * declared time axis (`axis.ts` · `DatasetTimeAxis`, its `zone`) says its rows are
240
- * wall times in `zone`. One row per call and zone. A period's offset is never
241
- * read as a clock — only a declared axis zone files this row.
242
- */
243
- export interface SourceClockRow {
244
- readonly kind: 'source-clock';
245
- readonly turn: number;
246
- readonly iteration: number;
247
- readonly toolCallId: string;
248
- readonly toolName: string;
249
- readonly zone: ZoneName;
250
- }
251
- /** Every time-layer row kind. */
252
- export type TimeRow = ClockRow | ClockOnResumeRow | CallRow | TimeReadingRow | CallWindowRow | TimeAnswerRow | TimeDerivedRow | SourceClockRow;
253
51
  /** This turn's `call-window` row for one call, if the inputs layer filed one — `ctx.time` reads it. */
254
52
  export declare function callWindowOfCall(ledger: readonly unknown[] | undefined, toolCallId: string, turn: number): CallWindowRow | undefined;
255
53
  /** The `time-reading` rows filed for `turn` — read back on a resume or a retry, never re-read. */
@@ -260,6 +58,7 @@ export declare function timeAnswerRow(answer: {
260
58
  readonly range: TimeRange;
261
59
  readonly zone: ZoneName;
262
60
  readonly how: 'confirmed' | 'edited';
61
+ readonly corrected?: TimeAnswerRow['corrected'];
263
62
  }, at: {
264
63
  readonly turn: number;
265
64
  readonly iteration: number;
@@ -1 +1 @@
1
- {"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../src/time/rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAe,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAE5B,yDAAyD;AACzD,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;CAC5B;AAED,+DAA+D;AAC/D,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;CACjC;AAED,iGAAiG;AACjG,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAC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G,SAAS,GAAG,QAAQ,GAAG,SAAS,CAE/F"}
@@ -45,6 +45,8 @@ export interface TurnWindow {
45
45
  readonly mention?: number;
46
46
  /** The person's words it was read from — absent on the `control` window. */
47
47
  readonly quote?: string;
48
+ /** The accepted correction supersedes the original words, which are not quoted as its source. */
49
+ readonly corrected?: true;
48
50
  readonly range: TimeRange;
49
51
  /** The look-back it was said as, when it was one. */
50
52
  readonly lookback?: DurationText;
@@ -1 +1 @@
1
- {"version":3,"file":"windows.d.ts","sourceRoot":"","sources":["../../../src/time/windows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAKL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,sBAAsB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEpF,+FAA+F;AAC/F,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,Y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IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AA2DD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,OAAO,GAAE,SAAS,aAAa,EAAO,GACrC,SAAS,MAAM,EAAE,CASnB;AAgCD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAoCjG"}
@@ -171,7 +171,7 @@ export declare function parsesUnderSpelling(value: unknown, spelling: PeriodSpel
171
171
  * `lookback` ↔ `signed-lookback`, by adding or removing the leading minus.
172
172
  * Nothing is ever turned into a duration; an `iso-range` is never converted.
173
173
  * `undefined` when the value does not parse under `from`. The one owner: the
174
- * batch ask's shared period field (`arguments/ask.ts` · `periodsShareField`) and the
174
+ * batch ask's shared period field (`arguments/ask/fields.ts` · `periodsShareField`) and the
175
175
  * declared-sources check's earlier answer in another spelling (`arguments/checks.ts` ·
176
176
  * `checkSource`, `matched: 'spelling'`) both convert through it.
177
177
  */
@@ -0,0 +1,5 @@
1
+ export declare const own: (o: object, k: PropertyKey) => boolean;
2
+ export declare function object(value: unknown): value is Record<string, unknown>;
3
+ export declare function nonempty(value: unknown): value is string;
4
+ export declare function jsonValue(value: unknown, seen?: Set<object>, depth?: number): boolean;
5
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/tools/inputRequest/data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,MAAO,MAAM,KAAK,WAAW,KAAG,OACJ,CAAC;AAC7C,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOvE;AACD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AACD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,cAAoB,EAAE,KAAK,SAAI,GAAG,OAAO,CAUtF"}
@@ -0,0 +1,37 @@
1
+ import type { AwaitingInput, InputField, InputRefusal, InputValue } from '../inputRequest.js';
2
+ import { type TimeAnswerRefusal, type TimeAskMessages } from '../../time/ask.js';
3
+ import type { ZoneName } from '../../time/zone.js';
4
+ /**
5
+ * What the resume door knows when it checks a time field's answer: the
6
+ * person's zone (the run clock's, under `.time()` — it arms the DST-gap check)
7
+ * and the app's catalog overrides (`.time({ messages })`).
8
+ */
9
+ export interface TimeAnswerContext {
10
+ readonly zone?: ZoneName;
11
+ readonly messages?: Partial<TimeAskMessages>;
12
+ }
13
+ /**
14
+ * The time fields' answers the check refuses, field id → why — in field
15
+ * order. Only a field with a `format` is judged: only a check the app armed
16
+ * can refuse (time design § 6.2, TQ7).
17
+ */
18
+ export declare function refusedTimeAnswers(fields: readonly InputField[], values: Readonly<Record<string, InputValue>>, zone: ZoneName | undefined): [string, TimeAnswerRefusal][];
19
+ /**
20
+ * The same ask, asked again: the refused time answers are not taken (the
21
+ * fields are `missing` again, whether or not they are required — the person
22
+ * tried to answer them), the rest of the reply is kept, and the re-ask
23
+ * carries the 9.127.0 shapes — `refused: { answer, reason }` with the
24
+ * catalog's reason, and the runtime's `repeat: { count }` (the refused
25
+ * answer never reached the record, so there is no `previousAnswer`).
26
+ */
27
+ export declare function reaskRefused(waiting: AwaitingInput, values: Readonly<Record<string, InputValue>>, refused: readonly [string, TimeAnswerRefusal][], time: TimeAnswerContext | undefined): AwaitingInput;
28
+ /**
29
+ * The refusal an ACCEPTED reply leaves standing. A refusal names the answer
30
+ * it turned down (`InputRefusal.answer`); once the person has answered every
31
+ * one of those fields again — and this reply was accepted — the refusal is
32
+ * about an answer that no longer stands, so it is dropped: a UI must not say
33
+ * "your answer was not accepted" beside a field it just took. A refusal that
34
+ * names no answer, or one this reply did not answer again in full, stays.
35
+ */
36
+ export declare function refusalStillStanding(refusal: InputRefusal | undefined, values: Readonly<Record<string, InputValue>>): InputRefusal | undefined;
37
+ //# sourceMappingURL=response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/tools/inputRequest/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAC5C,IAAI,EAAE,QAAQ,GAAG,SAAS,GACzB,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE,CAQ/B;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAC5C,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE,EAC/C,IAAI,EAAE,iBAAiB,GAAG,SAAS,GAClC,aAAa,CA0Bf;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,GAC3C,YAAY,GAAG,SAAS,CAI1B"}
@@ -1,6 +1,7 @@
1
1
  import type { ToolAbsence } from '../semantics/coverage/types.js';
2
- import { type TimeAskMessages, type TimeFormat } from '../time/ask.js';
3
- import type { ZoneName } from '../time/zone.js';
2
+ import { type TimeFormat } from '../time/ask.js';
3
+ import { type TimeAnswerContext } from './inputRequest/response.js';
4
+ export type { TimeAnswerContext } from './inputRequest/response.js';
4
5
  /** Typed missing-input values. Collection is distinct from permission or consent. */
5
6
  export type InputValue = string | number | boolean;
6
7
  export interface InputField {
@@ -179,15 +180,6 @@ export declare function repeatOf(declaration: InputRequestDeclaration, answered:
179
180
  export declare function stampInputRequest(declaration: InputRequestDeclaration, requestId: string, origin: AwaitingInput['origin'], repeat?: InputRepeat): AwaitingInput;
180
181
  /** Read only an explicitly declared, well-shaped input pause; never assistant prose. */
181
182
  export declare function readAwaitingInput(pauseData: unknown): AwaitingInput | undefined;
182
- /**
183
- * What the resume door knows when it checks a time field's answer: the
184
- * person's zone (the run clock's, under `.time()` — it arms the DST-gap check)
185
- * and the app's catalog overrides (`.time({ messages })`).
186
- */
187
- export interface TimeAnswerContext {
188
- readonly zone?: ZoneName;
189
- readonly messages?: Partial<TimeAskMessages>;
190
- }
191
183
  /**
192
184
  * Accept typed fields, or explicit cancellation, without coercing free text.
193
185
  * A time field's answer (`InputField.format`) is checked here too; one the