agentfootprint 14.1.1 → 14.2.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.
- package/CAPABILITIES.md +2 -0
- package/dist/context-bisect/ablation.js +29 -4
- package/dist/context-bisect/ablation.js.map +1 -1
- package/dist/context-bisect/bisect.js +30 -8
- package/dist/context-bisect/bisect.js.map +1 -1
- package/dist/context-bisect/conclusion.js +228 -0
- package/dist/context-bisect/conclusion.js.map +1 -0
- package/dist/context-bisect/conclusionTypes.js +6 -0
- package/dist/context-bisect/conclusionTypes.js.map +1 -0
- package/dist/context-bisect/format.js +98 -0
- package/dist/context-bisect/format.js.map +1 -0
- package/dist/context-bisect/index.js.map +1 -1
- package/dist/context-bisect/localize.js +25 -96
- package/dist/context-bisect/localize.js.map +1 -1
- package/dist/context-bisect/toBacktrackTrace.js +6 -1
- package/dist/context-bisect/toBacktrackTrace.js.map +1 -1
- package/dist/context-bisect/types.js +4 -0
- package/dist/context-bisect/types.js.map +1 -1
- package/dist/core/agent/arguments/ask/constants.js +30 -0
- package/dist/core/agent/arguments/ask/constants.js.map +1 -0
- package/dist/core/agent/arguments/ask/context.js +120 -0
- package/dist/core/agent/arguments/ask/context.js.map +1 -0
- package/dist/core/agent/arguments/ask/fields.js +307 -0
- package/dist/core/agent/arguments/ask/fields.js.map +1 -0
- package/dist/core/agent/arguments/ask/replyFields.js +48 -0
- package/dist/core/agent/arguments/ask/replyFields.js.map +1 -0
- package/dist/core/agent/arguments/ask/types.js +3 -0
- package/dist/core/agent/arguments/ask/types.js.map +1 -0
- package/dist/core/agent/arguments/ask/validation.js +195 -0
- package/dist/core/agent/arguments/ask/validation.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding/answer.js +84 -0
- package/dist/core/agent/arguments/ask/windowBinding/answer.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding/editedZone.js +29 -0
- package/dist/core/agent/arguments/ask/windowBinding/editedZone.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding/fills.js +85 -0
- package/dist/core/agent/arguments/ask/windowBinding/fills.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding/question.js +44 -0
- package/dist/core/agent/arguments/ask/windowBinding/question.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding/types.js +3 -0
- package/dist/core/agent/arguments/ask/windowBinding/types.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowBinding.js +9 -0
- package/dist/core/agent/arguments/ask/windowBinding.js.map +1 -0
- package/dist/core/agent/arguments/ask/windowReply.js +69 -0
- package/dist/core/agent/arguments/ask/windowReply.js.map +1 -0
- package/dist/core/agent/arguments/ask.js +48 -898
- package/dist/core/agent/arguments/ask.js.map +1 -1
- package/dist/core/agent/arguments/dispatch.js +3 -3
- package/dist/core/agent/arguments/pendingPrivateAsk.js +3 -1
- package/dist/core/agent/arguments/pendingPrivateAsk.js.map +1 -1
- package/dist/core/agent/arguments/serve/assumed.js +110 -0
- package/dist/core/agent/arguments/serve/assumed.js.map +1 -0
- package/dist/core/agent/arguments/serve/clock.js +169 -0
- package/dist/core/agent/arguments/serve/clock.js.map +1 -0
- package/dist/core/agent/arguments/serve/fills.js +113 -0
- package/dist/core/agent/arguments/serve/fills.js.map +1 -0
- package/dist/core/agent/arguments/serve/refusals.js +158 -0
- package/dist/core/agent/arguments/serve/refusals.js.map +1 -0
- package/dist/core/agent/arguments/serve/schema.js +124 -0
- package/dist/core/agent/arguments/serve/schema.js.map +1 -0
- package/dist/core/agent/arguments/serve/values.js +21 -0
- package/dist/core/agent/arguments/serve/values.js.map +1 -0
- package/dist/core/agent/arguments/serve/windows.js +328 -0
- package/dist/core/agent/arguments/serve/windows.js.map +1 -0
- package/dist/core/agent/arguments/serve.js +32 -984
- package/dist/core/agent/arguments/serve.js.map +1 -1
- package/dist/core/agent/assessment/compose.js +2 -2
- package/dist/core/agent/assessment/compose.js.map +1 -1
- package/dist/core/agent/assessment/stage.js +1 -1
- package/dist/core/agent/buildAgentChart.js +1 -1
- package/dist/core/agent/findings/types.js.map +1 -1
- package/dist/core/agent/middleware/rewrites.js +2 -2
- package/dist/core/agent/middleware/rewrites.js.map +1 -1
- package/dist/core/agent/stages/answerCoverage.js +1 -1
- package/dist/core/agent/stages/argumentAsk.js +4 -3
- package/dist/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/core/agent/stages/callLLM.js +1 -1
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/prepareFinal.js +1 -1
- package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js +1 -1
- package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/helpers/sourceNote.js +1 -1
- package/dist/core/slots/buildToolsSlot.js +2 -2
- package/dist/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/debug.js.map +1 -1
- package/dist/esm/context-bisect/ablation.d.ts +8 -0
- package/dist/esm/context-bisect/ablation.js +24 -3
- package/dist/esm/context-bisect/ablation.js.map +1 -1
- package/dist/esm/context-bisect/bisect.d.ts +15 -15
- package/dist/esm/context-bisect/bisect.js +27 -5
- package/dist/esm/context-bisect/bisect.js.map +1 -1
- package/dist/esm/context-bisect/conclusion.d.ts +51 -0
- package/dist/esm/context-bisect/conclusion.js +223 -0
- package/dist/esm/context-bisect/conclusion.js.map +1 -0
- package/dist/esm/context-bisect/conclusionTypes.d.ts +75 -0
- package/dist/esm/context-bisect/conclusionTypes.js +5 -0
- package/dist/esm/context-bisect/conclusionTypes.js.map +1 -0
- package/dist/esm/context-bisect/format.d.ts +10 -0
- package/dist/esm/context-bisect/format.js +94 -0
- package/dist/esm/context-bisect/format.js.map +1 -0
- package/dist/esm/context-bisect/index.d.ts +1 -1
- package/dist/esm/context-bisect/index.js.map +1 -1
- package/dist/esm/context-bisect/localize.d.ts +8 -10
- package/dist/esm/context-bisect/localize.js +24 -94
- package/dist/esm/context-bisect/localize.js.map +1 -1
- package/dist/esm/context-bisect/toBacktrackTrace.js +6 -1
- package/dist/esm/context-bisect/toBacktrackTrace.js.map +1 -1
- package/dist/esm/context-bisect/types.d.ts +33 -4
- package/dist/esm/context-bisect/types.js +4 -0
- package/dist/esm/context-bisect/types.js.map +1 -1
- package/dist/esm/core/agent/arguments/ask/constants.d.ts +16 -0
- package/dist/esm/core/agent/arguments/ask/constants.js +27 -0
- package/dist/esm/core/agent/arguments/ask/constants.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/context.d.ts +23 -0
- package/dist/esm/core/agent/arguments/ask/context.js +115 -0
- package/dist/esm/core/agent/arguments/ask/context.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/fields.d.ts +42 -0
- package/dist/esm/core/agent/arguments/ask/fields.js +300 -0
- package/dist/esm/core/agent/arguments/ask/fields.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/replyFields.d.ts +9 -0
- package/dist/esm/core/agent/arguments/ask/replyFields.js +42 -0
- package/dist/esm/core/agent/arguments/ask/replyFields.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/types.d.ts +195 -0
- package/dist/esm/core/agent/arguments/ask/types.js +2 -0
- package/dist/esm/core/agent/arguments/ask/types.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/validation.d.ts +42 -0
- package/dist/esm/core/agent/arguments/ask/validation.js +188 -0
- package/dist/esm/core/agent/arguments/ask/validation.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/answer.d.ts +17 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/answer.js +80 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/answer.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.d.ts +11 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.js +25 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/editedZone.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/fills.d.ts +18 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/fills.js +81 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/fills.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/question.d.ts +6 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/question.js +40 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/question.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/types.d.ts +35 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/types.js +2 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding/types.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding.d.ts +4 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding.js +4 -0
- package/dist/esm/core/agent/arguments/ask/windowBinding.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask/windowReply.d.ts +11 -0
- package/dist/esm/core/agent/arguments/ask/windowReply.js +65 -0
- package/dist/esm/core/agent/arguments/ask/windowReply.js.map +1 -0
- package/dist/esm/core/agent/arguments/ask.d.ts +9 -259
- package/dist/esm/core/agent/arguments/ask.js +20 -885
- package/dist/esm/core/agent/arguments/ask.js.map +1 -1
- package/dist/esm/core/agent/arguments/dispatch.d.ts +4 -4
- package/dist/esm/core/agent/arguments/dispatch.js +4 -4
- package/dist/esm/core/agent/arguments/pendingPrivateAsk.d.ts +1 -1
- package/dist/esm/core/agent/arguments/pendingPrivateAsk.js +3 -1
- package/dist/esm/core/agent/arguments/pendingPrivateAsk.js.map +1 -1
- package/dist/esm/core/agent/arguments/serve/assumed.d.ts +63 -0
- package/dist/esm/core/agent/arguments/serve/assumed.js +112 -0
- package/dist/esm/core/agent/arguments/serve/assumed.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/clock.d.ts +104 -0
- package/dist/esm/core/agent/arguments/serve/clock.js +162 -0
- package/dist/esm/core/agent/arguments/serve/clock.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/fills.d.ts +65 -0
- package/dist/esm/core/agent/arguments/serve/fills.js +109 -0
- package/dist/esm/core/agent/arguments/serve/fills.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/refusals.d.ts +67 -0
- package/dist/esm/core/agent/arguments/serve/refusals.js +148 -0
- package/dist/esm/core/agent/arguments/serve/refusals.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/schema.d.ts +67 -0
- package/dist/esm/core/agent/arguments/serve/schema.js +119 -0
- package/dist/esm/core/agent/arguments/serve/schema.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/values.d.ts +11 -0
- package/dist/esm/core/agent/arguments/serve/values.js +16 -0
- package/dist/esm/core/agent/arguments/serve/values.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve/windows.d.ts +60 -0
- package/dist/esm/core/agent/arguments/serve/windows.js +324 -0
- package/dist/esm/core/agent/arguments/serve/windows.js.map +1 -0
- package/dist/esm/core/agent/arguments/serve.d.ts +12 -417
- package/dist/esm/core/agent/arguments/serve.js +7 -973
- package/dist/esm/core/agent/arguments/serve.js.map +1 -1
- package/dist/esm/core/agent/assessment/compose.d.ts +2 -2
- package/dist/esm/core/agent/assessment/compose.js +2 -2
- package/dist/esm/core/agent/assessment/compose.js.map +1 -1
- package/dist/esm/core/agent/assessment/stage.js +1 -1
- package/dist/esm/core/agent/buildAgentChart.d.ts +1 -1
- package/dist/esm/core/agent/buildAgentChart.js +1 -1
- package/dist/esm/core/agent/evidence/figures.d.ts +1 -1
- package/dist/esm/core/agent/evidence/figures.js +1 -1
- package/dist/esm/core/agent/findings/types.d.ts +2 -2
- package/dist/esm/core/agent/findings/types.js.map +1 -1
- package/dist/esm/core/agent/middleware/rewrites.d.ts +1 -1
- package/dist/esm/core/agent/middleware/rewrites.js +2 -2
- package/dist/esm/core/agent/middleware/rewrites.js.map +1 -1
- package/dist/esm/core/agent/stages/answerCoverage.d.ts +1 -1
- package/dist/esm/core/agent/stages/answerCoverage.js +1 -1
- package/dist/esm/core/agent/stages/argumentAsk.d.ts +1 -1
- package/dist/esm/core/agent/stages/argumentAsk.js +4 -3
- package/dist/esm/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM.js +1 -1
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/prepareFinal.d.ts +1 -1
- package/dist/esm/core/agent/stages/prepareFinal.js +1 -1
- package/dist/esm/core/agent/stages/seed.d.ts +2 -2
- package/dist/esm/core/agent/stages/toolCalls/contracts/access.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.js +1 -1
- package/dist/esm/core/agent/types.d.ts +1 -1
- package/dist/esm/core/slots/buildToolsSlot.d.ts +4 -4
- package/dist/esm/core/slots/buildToolsSlot.js +2 -2
- package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/esm/debug.d.ts +1 -1
- package/dist/esm/debug.js.map +1 -1
- package/dist/esm/events/payloads/agent.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/lib/saidByPerson.d.ts +2 -2
- package/dist/esm/lib/saidByPerson.js +2 -2
- package/dist/esm/locales/timeAsk.d.ts +2 -2
- package/dist/esm/locales/timeAsk.js +3 -1
- package/dist/esm/locales/timeAsk.js.map +1 -1
- package/dist/esm/semantics/coverage/answer.d.ts +3 -3
- package/dist/esm/semantics/coverage/answer.js +2 -2
- package/dist/esm/semantics/coverage/period.d.ts +1 -1
- package/dist/esm/semantics/coverage/period.js +1 -1
- package/dist/esm/semantics/coverage/timeLimitFacts.d.ts +1 -1
- package/dist/esm/semantics/coverage/timeLimitFacts.js +1 -1
- package/dist/esm/semantics/coverage/timeLimits.d.ts +1 -1
- package/dist/esm/semantics/coverage/timeLimits.js +1 -1
- package/dist/esm/time/ask.d.ts +8 -3
- package/dist/esm/time/ask.js +7 -0
- package/dist/esm/time/ask.js.map +1 -1
- package/dist/esm/time/forms.js +2 -2
- package/dist/esm/time/forms.js.map +1 -1
- package/dist/esm/time/readers/english/atoms.d.ts +3 -0
- package/dist/esm/time/readers/english/atoms.js +164 -0
- package/dist/esm/time/readers/english/atoms.js.map +1 -0
- package/dist/esm/time/readers/english/grammar.d.ts +49 -0
- package/dist/esm/time/readers/english/grammar.js +128 -0
- package/dist/esm/time/readers/english/grammar.js.map +1 -0
- package/dist/esm/time/readers/english/types.d.ts +11 -0
- package/dist/esm/time/readers/english/types.js +2 -0
- package/dist/esm/time/readers/english/types.js.map +1 -0
- package/dist/esm/time/readers/english/zones.d.ts +13 -0
- package/dist/esm/time/readers/english/zones.js +116 -0
- package/dist/esm/time/readers/english/zones.js.map +1 -0
- package/dist/esm/time/readers/english.d.ts +6 -13
- package/dist/esm/time/readers/english.js +10 -327
- package/dist/esm/time/readers/english.js.map +1 -1
- package/dist/esm/time/readingAsk.d.ts +1 -1
- package/dist/esm/time/readingAsk.js +11 -3
- package/dist/esm/time/readingAsk.js.map +1 -1
- package/dist/esm/time/reply/classify.d.ts +2 -0
- package/dist/esm/time/reply/classify.js +28 -0
- package/dist/esm/time/reply/classify.js.map +1 -0
- package/dist/esm/time/reply/decision.d.ts +2 -0
- package/dist/esm/time/reply/decision.js +28 -0
- package/dist/esm/time/reply/decision.js.map +1 -0
- package/dist/esm/time/reply/decode.d.ts +3 -0
- package/dist/esm/time/reply/decode.js +25 -0
- package/dist/esm/time/reply/decode.js.map +1 -0
- package/dist/esm/time/reply/project.d.ts +5 -0
- package/dist/esm/time/reply/project.js +36 -0
- package/dist/esm/time/reply/project.js.map +1 -0
- package/dist/esm/time/reply/resolve.d.ts +4 -0
- package/dist/esm/time/reply/resolve.js +63 -0
- package/dist/esm/time/reply/resolve.js.map +1 -0
- package/dist/esm/time/reply/types.d.ts +71 -0
- package/dist/esm/time/reply/types.js +14 -0
- package/dist/esm/time/reply/types.js.map +1 -0
- package/dist/esm/time/reply.d.ts +3 -0
- package/dist/esm/time/reply.js +3 -0
- package/dist/esm/time/reply.js.map +1 -0
- package/dist/esm/time/replyForm/bindings.d.ts +22 -0
- package/dist/esm/time/replyForm/bindings.js +55 -0
- package/dist/esm/time/replyForm/bindings.js.map +1 -0
- package/dist/esm/time/replyForm.d.ts +3 -0
- package/dist/esm/time/replyForm.js +3 -0
- package/dist/esm/time/replyForm.js.map +1 -0
- package/dist/esm/time/replyRecord.d.ts +8 -0
- package/dist/esm/time/replyRecord.js +26 -0
- package/dist/esm/time/replyRecord.js.map +1 -0
- package/dist/esm/time/resolve/agreement.d.ts +6 -0
- package/dist/esm/time/resolve/agreement.js +26 -0
- package/dist/esm/time/resolve/agreement.js.map +1 -0
- package/dist/esm/time/resolve/calendar.d.ts +22 -0
- package/dist/esm/time/resolve/calendar.js +145 -0
- package/dist/esm/time/resolve/calendar.js.map +1 -0
- package/dist/esm/time/resolve/lookback.d.ts +6 -0
- package/dist/esm/time/resolve/lookback.js +51 -0
- package/dist/esm/time/resolve/lookback.js.map +1 -0
- package/dist/esm/time/resolve/points.d.ts +24 -0
- package/dist/esm/time/resolve/points.js +97 -0
- package/dist/esm/time/resolve/points.js.map +1 -0
- package/dist/esm/time/resolve/types.d.ts +11 -0
- package/dist/esm/time/resolve/types.js +2 -0
- package/dist/esm/time/resolve/types.js.map +1 -0
- package/dist/esm/time/resolve/wallClock.d.ts +28 -0
- package/dist/esm/time/resolve/wallClock.js +70 -0
- package/dist/esm/time/resolve/wallClock.js.map +1 -0
- package/dist/esm/time/resolve/zones.d.ts +57 -0
- package/dist/esm/time/resolve/zones.js +147 -0
- package/dist/esm/time/resolve/zones.js.map +1 -0
- package/dist/esm/time/resolve.d.ts +2 -13
- package/dist/esm/time/resolve.js +28 -492
- package/dist/esm/time/resolve.js.map +1 -1
- package/dist/esm/time/resolveRecord.d.ts +6 -1
- package/dist/esm/time/resolveRecord.js +2 -0
- package/dist/esm/time/resolveRecord.js.map +1 -1
- package/dist/esm/time/rows/meaning.d.ts +2 -0
- package/dist/esm/time/rows/meaning.js +27 -0
- package/dist/esm/time/rows/meaning.js.map +1 -0
- package/dist/esm/time/rows/types.d.ts +225 -0
- package/dist/esm/time/rows/types.js +2 -0
- package/dist/esm/time/rows/types.js.map +1 -0
- package/dist/esm/time/rows.d.ts +9 -210
- package/dist/esm/time/rows.js +19 -6
- package/dist/esm/time/rows.js.map +1 -1
- package/dist/esm/time/windows.d.ts +2 -0
- package/dist/esm/time/windows.js +3 -2
- package/dist/esm/time/windows.js.map +1 -1
- package/dist/esm/tools/declare.d.ts +1 -1
- package/dist/esm/tools/declare.js +1 -1
- package/dist/esm/tools/inputRequest/data.d.ts +4 -0
- package/dist/esm/tools/inputRequest/data.js +27 -0
- package/dist/esm/tools/inputRequest/data.js.map +1 -0
- package/dist/esm/tools/inputRequest/response.d.ts +36 -0
- package/dist/esm/tools/inputRequest/response.js +65 -0
- package/dist/esm/tools/inputRequest/response.js.map +1 -0
- package/dist/esm/tools/inputRequest.d.ts +3 -11
- package/dist/esm/tools/inputRequest.js +5 -90
- package/dist/esm/tools/inputRequest.js.map +1 -1
- package/dist/lib/saidByPerson.js +2 -2
- package/dist/locales/timeAsk.js +3 -1
- package/dist/locales/timeAsk.js.map +1 -1
- package/dist/semantics/coverage/answer.js +2 -2
- package/dist/semantics/coverage/period.js +1 -1
- package/dist/semantics/coverage/timeLimitFacts.js +1 -1
- package/dist/semantics/coverage/timeLimits.js +1 -1
- package/dist/time/ask.js +8 -1
- package/dist/time/ask.js.map +1 -1
- package/dist/time/forms.js +2 -2
- package/dist/time/forms.js.map +1 -1
- package/dist/time/readers/english/atoms.js +168 -0
- package/dist/time/readers/english/atoms.js.map +1 -0
- package/dist/time/readers/english/grammar.js +132 -0
- package/dist/time/readers/english/grammar.js.map +1 -0
- package/dist/time/readers/english/types.js +3 -0
- package/dist/time/readers/english/types.js.map +1 -0
- package/dist/time/readers/english/zones.js +121 -0
- package/dist/time/readers/english/zones.js.map +1 -0
- package/dist/time/readers/english.js +24 -336
- package/dist/time/readers/english.js.map +1 -1
- package/dist/time/readingAsk.js +10 -2
- package/dist/time/readingAsk.js.map +1 -1
- package/dist/time/reply/classify.js +32 -0
- package/dist/time/reply/classify.js.map +1 -0
- package/dist/time/reply/decision.js +32 -0
- package/dist/time/reply/decision.js.map +1 -0
- package/dist/time/reply/decode.js +29 -0
- package/dist/time/reply/decode.js.map +1 -0
- package/dist/time/reply/project.js +41 -0
- package/dist/time/reply/project.js.map +1 -0
- package/dist/time/reply/resolve.js +67 -0
- package/dist/time/reply/resolve.js.map +1 -0
- package/dist/time/reply/types.js +18 -0
- package/dist/time/reply/types.js.map +1 -0
- package/dist/time/reply.js +7 -0
- package/dist/time/reply.js.map +1 -0
- package/dist/time/replyForm/bindings.js +60 -0
- package/dist/time/replyForm/bindings.js.map +1 -0
- package/dist/time/replyForm.js +8 -0
- package/dist/time/replyForm.js.map +1 -0
- package/dist/time/replyRecord.js +30 -0
- package/dist/time/replyRecord.js.map +1 -0
- package/dist/time/resolve/agreement.js +31 -0
- package/dist/time/resolve/agreement.js.map +1 -0
- package/dist/time/resolve/calendar.js +151 -0
- package/dist/time/resolve/calendar.js.map +1 -0
- package/dist/time/resolve/lookback.js +55 -0
- package/dist/time/resolve/lookback.js.map +1 -0
- package/dist/time/resolve/points.js +101 -0
- package/dist/time/resolve/points.js.map +1 -0
- package/dist/time/resolve/types.js +3 -0
- package/dist/time/resolve/types.js.map +1 -0
- package/dist/time/resolve/wallClock.js +78 -0
- package/dist/time/resolve/wallClock.js.map +1 -0
- package/dist/time/resolve/zones.js +154 -0
- package/dist/time/resolve/zones.js.map +1 -0
- package/dist/time/resolve.js +34 -498
- package/dist/time/resolve.js.map +1 -1
- package/dist/time/resolveRecord.js +2 -0
- package/dist/time/resolveRecord.js.map +1 -1
- package/dist/time/rows/meaning.js +31 -0
- package/dist/time/rows/meaning.js.map +1 -0
- package/dist/time/rows/types.js +3 -0
- package/dist/time/rows/types.js.map +1 -0
- package/dist/time/rows.js +20 -6
- package/dist/time/rows.js.map +1 -1
- package/dist/time/windows.js +3 -2
- package/dist/time/windows.js.map +1 -1
- package/dist/tools/declare.js +1 -1
- package/dist/tools/inputRequest/data.js +34 -0
- package/dist/tools/inputRequest/data.js.map +1 -0
- package/dist/tools/inputRequest/response.js +71 -0
- package/dist/tools/inputRequest/response.js.map +1 -0
- package/dist/tools/inputRequest.js +31 -116
- package/dist/tools/inputRequest.js.map +1 -1
- package/dist/types/context-bisect/ablation.d.ts +8 -0
- package/dist/types/context-bisect/ablation.d.ts.map +1 -1
- package/dist/types/context-bisect/bisect.d.ts +15 -15
- package/dist/types/context-bisect/bisect.d.ts.map +1 -1
- package/dist/types/context-bisect/conclusion.d.ts +52 -0
- package/dist/types/context-bisect/conclusion.d.ts.map +1 -0
- package/dist/types/context-bisect/conclusionTypes.d.ts +76 -0
- package/dist/types/context-bisect/conclusionTypes.d.ts.map +1 -0
- package/dist/types/context-bisect/format.d.ts +11 -0
- package/dist/types/context-bisect/format.d.ts.map +1 -0
- package/dist/types/context-bisect/index.d.ts +1 -1
- package/dist/types/context-bisect/index.d.ts.map +1 -1
- package/dist/types/context-bisect/localize.d.ts +8 -10
- package/dist/types/context-bisect/localize.d.ts.map +1 -1
- package/dist/types/context-bisect/toBacktrackTrace.d.ts.map +1 -1
- package/dist/types/context-bisect/types.d.ts +33 -4
- package/dist/types/context-bisect/types.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/ask/constants.d.ts +17 -0
- package/dist/types/core/agent/arguments/ask/constants.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/context.d.ts +24 -0
- package/dist/types/core/agent/arguments/ask/context.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/fields.d.ts +43 -0
- package/dist/types/core/agent/arguments/ask/fields.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/replyFields.d.ts +10 -0
- package/dist/types/core/agent/arguments/ask/replyFields.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/types.d.ts +196 -0
- package/dist/types/core/agent/arguments/ask/types.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/validation.d.ts +43 -0
- package/dist/types/core/agent/arguments/ask/validation.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/answer.d.ts +18 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/answer.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/editedZone.d.ts +12 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/editedZone.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/fills.d.ts +19 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/fills.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/question.d.ts +7 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/question.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/types.d.ts +36 -0
- package/dist/types/core/agent/arguments/ask/windowBinding/types.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowBinding.d.ts +5 -0
- package/dist/types/core/agent/arguments/ask/windowBinding.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask/windowReply.d.ts +12 -0
- package/dist/types/core/agent/arguments/ask/windowReply.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/ask.d.ts +9 -259
- package/dist/types/core/agent/arguments/ask.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/dispatch.d.ts +4 -4
- package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts +1 -1
- package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/serve/assumed.d.ts +64 -0
- package/dist/types/core/agent/arguments/serve/assumed.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/clock.d.ts +105 -0
- package/dist/types/core/agent/arguments/serve/clock.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/fills.d.ts +66 -0
- package/dist/types/core/agent/arguments/serve/fills.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/refusals.d.ts +68 -0
- package/dist/types/core/agent/arguments/serve/refusals.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/schema.d.ts +68 -0
- package/dist/types/core/agent/arguments/serve/schema.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/values.d.ts +12 -0
- package/dist/types/core/agent/arguments/serve/values.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve/windows.d.ts +61 -0
- package/dist/types/core/agent/arguments/serve/windows.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/serve.d.ts +12 -417
- package/dist/types/core/agent/arguments/serve.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/compose.d.ts +2 -2
- package/dist/types/core/agent/buildAgentChart.d.ts +1 -1
- package/dist/types/core/agent/evidence/figures.d.ts +1 -1
- package/dist/types/core/agent/findings/types.d.ts +2 -2
- package/dist/types/core/agent/findings/types.d.ts.map +1 -1
- package/dist/types/core/agent/middleware/rewrites.d.ts +1 -1
- package/dist/types/core/agent/stages/answerCoverage.d.ts +1 -1
- package/dist/types/core/agent/stages/argumentAsk.d.ts +1 -1
- package/dist/types/core/agent/stages/argumentAsk.d.ts.map +1 -1
- package/dist/types/core/agent/stages/prepareFinal.d.ts +1 -1
- package/dist/types/core/agent/stages/seed.d.ts +2 -2
- package/dist/types/core/agent/stages/toolCalls/contracts/access.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +1 -1
- package/dist/types/core/agent/types.d.ts +1 -1
- package/dist/types/core/slots/buildToolsSlot.d.ts +4 -4
- package/dist/types/debug.d.ts +1 -1
- package/dist/types/debug.d.ts.map +1 -1
- package/dist/types/events/payloads/agent.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/saidByPerson.d.ts +2 -2
- package/dist/types/locales/timeAsk.d.ts +2 -2
- package/dist/types/locales/timeAsk.d.ts.map +1 -1
- package/dist/types/semantics/coverage/answer.d.ts +3 -3
- package/dist/types/semantics/coverage/period.d.ts +1 -1
- package/dist/types/semantics/coverage/timeLimitFacts.d.ts +1 -1
- package/dist/types/semantics/coverage/timeLimits.d.ts +1 -1
- package/dist/types/time/ask.d.ts +8 -3
- package/dist/types/time/ask.d.ts.map +1 -1
- package/dist/types/time/readers/english/atoms.d.ts +4 -0
- package/dist/types/time/readers/english/atoms.d.ts.map +1 -0
- package/dist/types/time/readers/english/grammar.d.ts +50 -0
- package/dist/types/time/readers/english/grammar.d.ts.map +1 -0
- package/dist/types/time/readers/english/types.d.ts +12 -0
- package/dist/types/time/readers/english/types.d.ts.map +1 -0
- package/dist/types/time/readers/english/zones.d.ts +14 -0
- package/dist/types/time/readers/english/zones.d.ts.map +1 -0
- package/dist/types/time/readers/english.d.ts +6 -13
- package/dist/types/time/readers/english.d.ts.map +1 -1
- package/dist/types/time/readingAsk.d.ts +1 -1
- package/dist/types/time/readingAsk.d.ts.map +1 -1
- package/dist/types/time/reply/classify.d.ts +3 -0
- package/dist/types/time/reply/classify.d.ts.map +1 -0
- package/dist/types/time/reply/decision.d.ts +3 -0
- package/dist/types/time/reply/decision.d.ts.map +1 -0
- package/dist/types/time/reply/decode.d.ts +4 -0
- package/dist/types/time/reply/decode.d.ts.map +1 -0
- package/dist/types/time/reply/project.d.ts +6 -0
- package/dist/types/time/reply/project.d.ts.map +1 -0
- package/dist/types/time/reply/resolve.d.ts +5 -0
- package/dist/types/time/reply/resolve.d.ts.map +1 -0
- package/dist/types/time/reply/types.d.ts +72 -0
- package/dist/types/time/reply/types.d.ts.map +1 -0
- package/dist/types/time/reply.d.ts +4 -0
- package/dist/types/time/reply.d.ts.map +1 -0
- package/dist/types/time/replyForm/bindings.d.ts +23 -0
- package/dist/types/time/replyForm/bindings.d.ts.map +1 -0
- package/dist/types/time/replyForm.d.ts +4 -0
- package/dist/types/time/replyForm.d.ts.map +1 -0
- package/dist/types/time/replyRecord.d.ts +9 -0
- package/dist/types/time/replyRecord.d.ts.map +1 -0
- package/dist/types/time/resolve/agreement.d.ts +7 -0
- package/dist/types/time/resolve/agreement.d.ts.map +1 -0
- package/dist/types/time/resolve/calendar.d.ts +23 -0
- package/dist/types/time/resolve/calendar.d.ts.map +1 -0
- package/dist/types/time/resolve/lookback.d.ts +7 -0
- package/dist/types/time/resolve/lookback.d.ts.map +1 -0
- package/dist/types/time/resolve/points.d.ts +25 -0
- package/dist/types/time/resolve/points.d.ts.map +1 -0
- package/dist/types/time/resolve/types.d.ts +12 -0
- package/dist/types/time/resolve/types.d.ts.map +1 -0
- package/dist/types/time/resolve/wallClock.d.ts +29 -0
- package/dist/types/time/resolve/wallClock.d.ts.map +1 -0
- package/dist/types/time/resolve/zones.d.ts +58 -0
- package/dist/types/time/resolve/zones.d.ts.map +1 -0
- package/dist/types/time/resolve.d.ts +2 -13
- package/dist/types/time/resolve.d.ts.map +1 -1
- package/dist/types/time/resolveRecord.d.ts +6 -1
- package/dist/types/time/resolveRecord.d.ts.map +1 -1
- package/dist/types/time/rows/meaning.d.ts +3 -0
- package/dist/types/time/rows/meaning.d.ts.map +1 -0
- package/dist/types/time/rows/types.d.ts +226 -0
- package/dist/types/time/rows/types.d.ts.map +1 -0
- package/dist/types/time/rows.d.ts +9 -210
- package/dist/types/time/rows.d.ts.map +1 -1
- package/dist/types/time/windows.d.ts +2 -0
- package/dist/types/time/windows.d.ts.map +1 -1
- package/dist/types/tools/declare.d.ts +1 -1
- package/dist/types/tools/inputRequest/data.d.ts +5 -0
- package/dist/types/tools/inputRequest/data.d.ts.map +1 -0
- package/dist/types/tools/inputRequest/response.d.ts +37 -0
- package/dist/types/tools/inputRequest/response.d.ts.map +1 -0
- package/dist/types/tools/inputRequest.d.ts +3 -11
- package/dist/types/tools/inputRequest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { carriesArgumentView } from '../../../toolShownArgs.js';
|
|
2
|
+
import { isRefused, rulesOf } from '../../../../tools/declare.js';
|
|
3
|
+
import { assumeSentence } from './values.js';
|
|
4
|
+
const isPlainObject = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
5
|
+
// LENS · tool-description · persistent-history
|
|
6
|
+
// reads: the tool's own `ask` rule — nothing about the call, the model or the person
|
|
7
|
+
// law: says what the model may do and what the record keeps; promises no outcome (the call may still
|
|
8
|
+
// be denied by permission, refused, or asked about again).
|
|
9
|
+
/**
|
|
10
|
+
* The sentence a ruled `ask` property carries in the served schema: the rule
|
|
11
|
+
* asks the person for the value, so the model may leave it out — and should,
|
|
12
|
+
* unless the person gave it. No value is printed: an `ask` rule has no default.
|
|
13
|
+
*/
|
|
14
|
+
export const ASK_SENTENCE = "The tool's rule asks the person for this value; leave it out unless the person gave it.";
|
|
15
|
+
// LENS · tool-description · persistent-history
|
|
16
|
+
// reads: the tool's own `ask` rule and the declared-sources arm — nothing about the call, the model or
|
|
17
|
+
// the person
|
|
18
|
+
// law: says what the model may do and where it declares it; promises no outcome (the call may still be
|
|
19
|
+
// denied by permission, refused, or asked about again).
|
|
20
|
+
/**
|
|
21
|
+
* The sentence a ruled `ask` property carries under DECLARED SOURCES
|
|
22
|
+
* (`.findings({ argumentSources: true })`, `.inputsLayer({ argumentSources:
|
|
23
|
+
* true })`) in place of `ASK_SENTENCE`: the same rule, and — at the place the
|
|
24
|
+
* model decides whether to send the value — where it says the person gave it.
|
|
25
|
+
* Under the arm a present value with no traced source is asked of the person
|
|
26
|
+
* (`resolve.ts`), so "leave it out unless the person gave it" alone told the
|
|
27
|
+
* model that SENDING the value was the whole of its statement: in the paid
|
|
28
|
+
* step-5 run (`bench/inputs/runs/haiku45-step5`) it left the period out on 32
|
|
29
|
+
* of 32 calls where the person gave none — and a period the person HAD given
|
|
30
|
+
* was traced to their words, unasked, on 7 of 88 calls.
|
|
31
|
+
*/
|
|
32
|
+
export const ASK_SOURCES_SENTENCE = "The tool's rule asks the person for this value; leave it out unless the person gave it, and " +
|
|
33
|
+
'then quote their words for it in `_findings.from`.';
|
|
34
|
+
function withSentence(property, sentence) {
|
|
35
|
+
const description = property.description;
|
|
36
|
+
const text = typeof description === 'string' && description.trim() !== ''
|
|
37
|
+
? `${description.trimEnd()} ${sentence}`
|
|
38
|
+
: sentence;
|
|
39
|
+
return { ...property, description: text };
|
|
40
|
+
}
|
|
41
|
+
// FOLD · the one owner of how a ruled tool's schema is SERVED
|
|
42
|
+
// consumers read this and never re-derive it: core/slots/buildToolsSlot.ts · commitWire (the one
|
|
43
|
+
// decoration site, through `rulesOnWire`) and core/agent/stages/seed.ts (its static twin), each
|
|
44
|
+
// loading this module through `import()` under the arm; servedView rebuilds from the committed
|
|
45
|
+
// list, so the decoration is a pure function of (schema, tool).
|
|
46
|
+
/**
|
|
47
|
+
* The served copy of a ruled tool's schema: every argument an `assume` or an
|
|
48
|
+
* `ask` rule governs leaves `required` (the library fills it, or asks the
|
|
49
|
+
* person for it, when the call leaves it out) and its property's description
|
|
50
|
+
* gains the rule's sentence (an `ask` rule's names `_findings.from` under the
|
|
51
|
+
* sources arm, `options.sources`). A rebuilt copy — the registry schema, which
|
|
52
|
+
* `validateToolArgs` judges and `mcpServe` serves, is never edited. The SAME
|
|
53
|
+
* reference back for a tool with no rules, rules that cannot be read (the
|
|
54
|
+
* dispatch re-read refuses its calls) or no tool at all (a chart with no
|
|
55
|
+
* claimant record) — so an agent whose tools declare nothing serves the bytes
|
|
56
|
+
* it always did.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* withArgumentRules(searchLogs.schema, searchLogs).inputSchema.required; // ['service']
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export function withArgumentRules(schema, tool, options) {
|
|
64
|
+
const rules = rulesOf(tool);
|
|
65
|
+
if (rules === undefined || isRefused(rules))
|
|
66
|
+
return schema;
|
|
67
|
+
const served = rules.ruled.filter((r) => (r.rule === 'assume' && r.assume !== undefined) || (r.rule === 'ask' && r.ask !== undefined));
|
|
68
|
+
if (served.length === 0)
|
|
69
|
+
return schema;
|
|
70
|
+
const input = schema.inputSchema;
|
|
71
|
+
const properties = isPlainObject(input.properties) ? { ...input.properties } : {};
|
|
72
|
+
for (const r of served) {
|
|
73
|
+
const property = properties[r.argument];
|
|
74
|
+
if (!isPlainObject(property))
|
|
75
|
+
continue;
|
|
76
|
+
if (r.rule === 'ask') {
|
|
77
|
+
const sentence = options?.sources === true ? ASK_SOURCES_SENTENCE : ASK_SENTENCE;
|
|
78
|
+
properties[r.argument] = withSentence(property, sentence);
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const value = r.assume;
|
|
82
|
+
properties[r.argument] = withSentence(property, assumeSentence(value, carriesArgumentView(tool)));
|
|
83
|
+
}
|
|
84
|
+
const ruledNames = new Set(served.map((r) => r.argument));
|
|
85
|
+
const required = Array.isArray(input.required)
|
|
86
|
+
? input.required.filter((name) => !(typeof name === 'string' && ruledNames.has(name)))
|
|
87
|
+
: undefined;
|
|
88
|
+
const { required: _required, ...rest } = input;
|
|
89
|
+
void _required;
|
|
90
|
+
return {
|
|
91
|
+
...schema,
|
|
92
|
+
inputSchema: {
|
|
93
|
+
...rest,
|
|
94
|
+
properties,
|
|
95
|
+
...(required !== undefined && required.length > 0 && { required }),
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The served list with each ruled tool's schema decorated (`withArgumentRules`,
|
|
101
|
+
* from the rules of the implementation that WINS each name), or the SAME list
|
|
102
|
+
* when no served schema changed — so an armed agent whose wire carries no
|
|
103
|
+
* ruled tool commits the bytes it always did. The tools slot's one decoration
|
|
104
|
+
* site (`core/slots/buildToolsSlot.ts` · `commitWire`) calls it under the arm.
|
|
105
|
+
* `optionsOf` gives each schema its own `ServeOptions`: under declared sources
|
|
106
|
+
* one wire can hold a tool that carries `_findings.from` beside a provider's
|
|
107
|
+
* tool whose author owns `_findings`, which does not.
|
|
108
|
+
*/
|
|
109
|
+
export function rulesOnWire(served, winningTools, optionsOf) {
|
|
110
|
+
let changed = false;
|
|
111
|
+
const decorated = served.map((schema) => {
|
|
112
|
+
const next = withArgumentRules(schema, winningTools.get(schema.name), optionsOf?.(schema));
|
|
113
|
+
if (next !== schema)
|
|
114
|
+
changed = true;
|
|
115
|
+
return next;
|
|
116
|
+
});
|
|
117
|
+
return changed ? decorated : served;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../src/core/agent/arguments/serve/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAsB,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE,CAC7D,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvE,+CAA+C;AAC/C,qFAAqF;AACrF,qGAAqG;AACrG,2DAA2D;AAC3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB,yFAAyF,CAAC;AAE5F,+CAA+C;AAC/C,uGAAuG;AACvG,oBAAoB;AACpB,uGAAuG;AACvG,wDAAwD;AACxD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAC/B,8FAA8F;IAC9F,oDAAoD,CAAC;AAmBvD,SAAS,YAAY,CAAC,QAAqB,EAAE,QAAgB;IAC3D,MAAM,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;IACzC,MAAM,IAAI,GACR,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE;Q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YAAgD,EAChD,SAA+D;IAE/D,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACtC,MAAM,IAAI,GAAG,iBAAiB,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3F,IAAI,IAAI,KAAK,MAAM;YAAE,OAAO,GAAG,IAAI,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Lens leaf: the unchanged value and assumption sentence spellings. */
|
|
2
|
+
import type { InputValue } from '../../../../tools/inputRequest.js';
|
|
3
|
+
/** A declared value as a sentence prints it: a string quoted, a number or boolean bare. */
|
|
4
|
+
export declare function printedValue(value: InputValue): string;
|
|
5
|
+
/**
|
|
6
|
+
* The sentence a ruled `assume` property carries in the served schema: what the
|
|
7
|
+
* library does when the call leaves the argument out, and what the record
|
|
8
|
+
* keeps. It promises nothing a later path can break — not that the call runs
|
|
9
|
+
* (permission may deny it), only what fills a value that is left out.
|
|
10
|
+
*/
|
|
11
|
+
export declare function assumeSentence(value: InputValue, hidden: boolean): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** A declared value as a sentence prints it: a string quoted, a number or boolean bare. */
|
|
2
|
+
export function printedValue(value) {
|
|
3
|
+
return typeof value === 'string' ? JSON.stringify(value) : String(value);
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The sentence a ruled `assume` property carries in the served schema: what the
|
|
7
|
+
* library does when the call leaves the argument out, and what the record
|
|
8
|
+
* keeps. It promises nothing a later path can break — not that the call runs
|
|
9
|
+
* (permission may deny it), only what fills a value that is left out.
|
|
10
|
+
*/
|
|
11
|
+
export function assumeSentence(value, hidden) {
|
|
12
|
+
return hidden
|
|
13
|
+
? "If left out, the tool's rule fills a declared value (hidden by the tool's view), recorded as assumed."
|
|
14
|
+
: `If left out, the tool's rule fills ${printedValue(value)}, recorded as assumed.`;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../../../../src/core/agent/arguments/serve/values.ts"],"names":[],"mappings":"AAGA,2FAA2F;AAC3F,MAAM,UAAU,YAAY,CAAC,KAAiB;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAiB,EAAE,MAAe;IAC/D,OAAO,MAAM;QACX,CAAC,CAAC,uGAAuG;QACzG,CAAC,CAAC,sCAAsC,YAAY,CAAC,KAAK,CAAC,wBAAwB,CAAC;AACxF,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Lens: the late line over the person's windows and tool forms. */
|
|
2
|
+
import type { LLMToolSchema } from '../../../../provider-contract/types.js';
|
|
3
|
+
import { type RuledToolLike } from '../../../../tools/declare.js';
|
|
4
|
+
import type { ReaderWindows } from '../../../../time/bind.js';
|
|
5
|
+
import type { ZoneName } from '../../../../time/zone.js';
|
|
6
|
+
/**
|
|
7
|
+
* What the served line reads: the turn's SETTLED windows of the person's
|
|
8
|
+
* words (`time/windows.ts` · `readerWindowsOf` — each mention's quote and
|
|
9
|
+
* its one window: the one the person confirmed or gave in the time ask, or a
|
|
10
|
+
* `model` reader's reading), the quotes still PENDING (a proposal the person
|
|
11
|
+
* has not answered, a zone to name, or words the library could not read —
|
|
12
|
+
* `pendingUnread`), the turn's clock, and the app's `.time({ zone })`.
|
|
13
|
+
*/
|
|
14
|
+
export interface ServedWindows extends ReaderWindows {
|
|
15
|
+
readonly appZone?: ZoneName;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The ONE served time line (TQ13; step T6b's serving placement): one
|
|
19
|
+
* request-only `user` line appended LAST to the request, at the decision
|
|
20
|
+
* point — composed at the tools slot's one decoration site
|
|
21
|
+
* (`core/slots/buildToolsSlot.ts` · `commitWire`) from the tools it really
|
|
22
|
+
* serves, carried to `callLLM` on `timeLine`, and rebuilt by
|
|
23
|
+
* `time-travel/servedView.ts` from the same committed key. Four parts:
|
|
24
|
+
*
|
|
25
|
+
* - SETTLED — each window the person confirmed or gave in the time ask (or a
|
|
26
|
+
* `model` reader's reading), in the person's zone, WHOSE it is, and each
|
|
27
|
+
* served period tool's values for it — the exact conversion, else the wider
|
|
28
|
+
* one the fill would use (said so); a value the tool's view hides is named
|
|
29
|
+
* hidden. So the model never re-derives a window from words, and the answer
|
|
30
|
+
* states the window it was built on.
|
|
31
|
+
* - CONTROL — the window the person set in the app's time control, in
|
|
32
|
+
* their zone, with each served period tool's values for it; with none
|
|
33
|
+
* (no period tool served, or none can read it) the window alone (G14).
|
|
34
|
+
* - REFUSED — a window of the person's a served period tool refused before
|
|
35
|
+
* dispatch this turn: the refusal's reason in the result's own words, then
|
|
36
|
+
* what an answer states. That quote is no longer pending for that tool.
|
|
37
|
+
* - PENDING — a proposal the person has not answered is no window yet, and a
|
|
38
|
+
* call that writes its own window runs as sent, unconfirmed (§ 7.3). The
|
|
39
|
+
* line names the next step — the call with the period arguments left out,
|
|
40
|
+
* so the library's own form confirms the window with the person — and the
|
|
41
|
+
* two moves that are not it (a question about the time in the reply, a
|
|
42
|
+
* written window). Once a call of the turn already ran on a written window
|
|
43
|
+
* (`ranUnconfirmed`), it names the limit an answer states instead.
|
|
44
|
+
*
|
|
45
|
+
* `undefined` when no part has anything to say — a turn with no time words
|
|
46
|
+
* and no control window serves no line at all; with no served period tool
|
|
47
|
+
* only the control half can speak. The halves carry no opening: {@link timeLine} composes the served line and
|
|
48
|
+
* opens it, once, with {@link TIME_LINE_SOURCE}.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* timeWindowsLine(served, winningTools, { now, windows: [], pending: ['yesterday'] });
|
|
53
|
+
* // 'The window for “yesterday” is not settled yet: the person confirms it in the library's own
|
|
54
|
+
* // form, which shows its reading of those words with the zone and opens when client_activity
|
|
55
|
+
* // is called with start_time, end_time left out (or the call is refused with the reason). So
|
|
56
|
+
* // the next step is that call — not a question about the time in the reply, and not a window
|
|
57
|
+
* // written into the call, which would run unconfirmed.'
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function timeWindowsLine(served: readonly LLMToolSchema[], winningTools: ReadonlyMap<string, RuledToolLike>, windows: ServedWindows): string | undefined;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { carriesArgumentView } from '../../../toolShownArgs.js';
|
|
2
|
+
import { isRefused, periodFactsOf, periodFormsOf, rulesOf, } from '../../../../tools/declare.js';
|
|
3
|
+
import { convertForTool, formArguments, granularityMsOf, toolFacts, } from '../../../../time/convert.js';
|
|
4
|
+
import { windowToConvert } from '../../../../time/windows.js';
|
|
5
|
+
import { presentRange } from '../../../../time/present.js';
|
|
6
|
+
import { printedValue } from './values.js';
|
|
7
|
+
import { UNKNOWN_ZONE_CLAUSE } from './clock.js';
|
|
8
|
+
import { refusalReason } from './refusals.js';
|
|
9
|
+
/** A converted value as the line prints it — an object form's as JSON. */
|
|
10
|
+
function printedArgument(value) {
|
|
11
|
+
return typeof value === 'object' && value !== null
|
|
12
|
+
? JSON.stringify(value)
|
|
13
|
+
: printedValue(value);
|
|
14
|
+
}
|
|
15
|
+
/** The served tools (in served order) whose winning implementation declares period forms. */
|
|
16
|
+
function periodToolsOf(served, winningTools) {
|
|
17
|
+
const out = [];
|
|
18
|
+
for (const schema of served) {
|
|
19
|
+
const tool = winningTools.get(schema.name);
|
|
20
|
+
const rules = rulesOf(tool);
|
|
21
|
+
if (tool === undefined || rules === undefined || isRefused(rules))
|
|
22
|
+
continue;
|
|
23
|
+
const forms = periodFormsOf(rules.period);
|
|
24
|
+
if (forms.length === 0)
|
|
25
|
+
continue;
|
|
26
|
+
out.push({ name: schema.name, tool, forms, facts: periodFactsOf(rules.period) });
|
|
27
|
+
}
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
/** Whose one window of the person's words is — the line's source clause. */
|
|
31
|
+
function whoseWindow(w) {
|
|
32
|
+
if (w.source === 'answered') {
|
|
33
|
+
return w.answer === 'edited'
|
|
34
|
+
? 'the window the person gave when asked what their words meant'
|
|
35
|
+
: 'the window the person confirmed when asked what their words meant';
|
|
36
|
+
}
|
|
37
|
+
return "a reading of the person's words they have not confirmed, not their words";
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A window for a person, in its zone, to the minute with its end AS SAID — the last minute inside
|
|
41
|
+
* the half-open range (`time/present.ts` · `presentRange`); the ISO interval if it cannot be.
|
|
42
|
+
*/
|
|
43
|
+
function presentedWindow(w) {
|
|
44
|
+
try {
|
|
45
|
+
return presentRange(w.range, { zone: w.zone }, 'minute');
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return `${w.range.from}/${w.range.to}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/** One tool's values for one settled window — exact, else the wider read the fill would use, said so. */
|
|
52
|
+
function toolValues(pt, w, windows) {
|
|
53
|
+
const ctx = {
|
|
54
|
+
now: windows.now,
|
|
55
|
+
zone: w.zone,
|
|
56
|
+
...(windows.appZone !== undefined && { appZone: windows.appZone }),
|
|
57
|
+
granularityMs: granularityMsOf(pt.facts),
|
|
58
|
+
};
|
|
59
|
+
// The one answer (`convertForTool`) over the one input (`windowToConvert`) the fill and the time
|
|
60
|
+
// ask's answer also use: the values named here are the values the call is handed, and a window
|
|
61
|
+
// the tool would refuse is named for no tool.
|
|
62
|
+
const read = convertForTool(windowToConvert(w), pt.forms, pt.facts, ctx);
|
|
63
|
+
if ('refused' in read)
|
|
64
|
+
return undefined;
|
|
65
|
+
const conversion = read.conversion;
|
|
66
|
+
const values = Object.entries(conversion.values).map(([argument, value]) => carriesArgumentView(pt.tool)
|
|
67
|
+
? `${argument} (hidden by the tool's view)`
|
|
68
|
+
: `${argument} ${printedArgument(value)}`);
|
|
69
|
+
const wider = 'sent' in conversion ? ' (a wider read than the words named)' : '';
|
|
70
|
+
return `${pt.name} ${values.join(', ')}${wider}`;
|
|
71
|
+
}
|
|
72
|
+
/** The settled half: each window, whose it is, and each tool's values for it. */
|
|
73
|
+
function settledSentence(tools, windows) {
|
|
74
|
+
const clauses = [];
|
|
75
|
+
for (const w of windows.windows) {
|
|
76
|
+
if (w.quote === undefined && w.corrected !== true)
|
|
77
|
+
continue;
|
|
78
|
+
const values = tools.flatMap((pt) => toolValues(pt, w, windows) ?? []);
|
|
79
|
+
if (values.length === 0)
|
|
80
|
+
continue;
|
|
81
|
+
const subject = w.corrected === true ? 'The corrected window' : `“${w.quote}”`;
|
|
82
|
+
clauses.push(`${subject} is ${presentedWindow(w)}, ${whoseWindow(w)} — ${values.join('; ')}`);
|
|
83
|
+
}
|
|
84
|
+
if (clauses.length === 0)
|
|
85
|
+
return undefined;
|
|
86
|
+
const these = clauses.length === 1 ? 'that window' : 'those windows';
|
|
87
|
+
return (`The person's time words, as the library holds them: ${clauses.join('. ')}. ` +
|
|
88
|
+
`A call may pass these values as written; an answer built on them states ${these}.`);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The control half: the window the person set in the app's time control (the run's `time.window`,
|
|
92
|
+
* `source: 'control'`, TQ26) — the person's own, like an answer — in their zone, with each served
|
|
93
|
+
* period tool's values for it, the same conversion the fill uses. So an app never writes its own
|
|
94
|
+
* prompt text for a window it set from a UI. The window is a fact about the person's TURN, not
|
|
95
|
+
* about a tool (G14): with no served period tool that can read it, the sentence still names it —
|
|
96
|
+
* without values, and without a permission to pass any.
|
|
97
|
+
*/
|
|
98
|
+
function controlSentence(tools, windows) {
|
|
99
|
+
const w = windows.control;
|
|
100
|
+
if (w === undefined)
|
|
101
|
+
return undefined;
|
|
102
|
+
const values = tools.flatMap((pt) => toolValues(pt, w, windows) ?? []);
|
|
103
|
+
// Under an unknown zone (G15) the window is spelled in UTC — the zone the presented window
|
|
104
|
+
// already names — and the line says why, once.
|
|
105
|
+
const unknown = windows.zoneUnknown === true ? ` (${UNKNOWN_ZONE_CLAUSE})` : '';
|
|
106
|
+
const named = `The window the person set in the app's time control is ${presentedWindow(w)}${unknown}`;
|
|
107
|
+
if (values.length === 0)
|
|
108
|
+
return `${named}. An answer built on it states that window.`;
|
|
109
|
+
return (`${named} — ${values.join('; ')}. A call may pass these values as written; an answer built ` +
|
|
110
|
+
'on them states that window.');
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The pending half: the quotes no one has confirmed. Before any call ran on a window of the
|
|
114
|
+
* model's own, the one move that asks the person — the call with the period left out — named as
|
|
115
|
+
* the next step, with the two moves that do not (a question in the reply, a written window).
|
|
116
|
+
* After one did, the limit the answer states instead, as a CONCLUSION about the results in hand:
|
|
117
|
+
* whose reading their window is and what the answer names — never a story of the call that ran
|
|
118
|
+
* and never a negation of a confirmation. Measured twice: "the person has not confirmed it" drew
|
|
119
|
+
* "You're right… I apologize" on 37/37 answers (T6b round 1); "the call that ran carried a window
|
|
120
|
+
* written into the call, not one the person confirmed", under the library's opening, still drew it
|
|
121
|
+
* on 7/10 (`bench/time/runs/haiku45-t6b-r2`, stopped) — a past-tense account of the call reads as
|
|
122
|
+
* the person's complaint, whoever the opening says is talking.
|
|
123
|
+
*/
|
|
124
|
+
function pendingSentence(allTools, windows) {
|
|
125
|
+
// A tool that refused a quote cannot confirm it: the quote is pending only for the tools that
|
|
126
|
+
// did not, and one every served period tool refused is the refused half's alone.
|
|
127
|
+
const pending = (windows.pending ?? []).filter((q) => allTools.some((t) => !refusedFor(windows, q, t.name)));
|
|
128
|
+
if (pending.length === 0)
|
|
129
|
+
return undefined;
|
|
130
|
+
const tools = allTools.filter((t) => pending.some((q) => !refusedFor(windows, q, t.name)));
|
|
131
|
+
const quotes = pending.map((q) => `“${q}”`).join(', ');
|
|
132
|
+
if (windows.ranUnconfirmed === true) {
|
|
133
|
+
return (`The results for ${quotes} cover the window written into the call — the assistant's own ` +
|
|
134
|
+
`reading of those words. So the answer gives those results and names that window as the ` +
|
|
135
|
+
`assistant's reading of ${quotes}.`);
|
|
136
|
+
}
|
|
137
|
+
const leftOut = tools.flatMap((pt) => {
|
|
138
|
+
const args = [...new Set(pt.forms.flatMap((f) => formArguments(f).map((a) => a.argument)))];
|
|
139
|
+
return args.length === 0 ? [] : [{ name: pt.name, args: args.join(', ') }];
|
|
140
|
+
});
|
|
141
|
+
if (leftOut.length === 0)
|
|
142
|
+
return undefined;
|
|
143
|
+
const unread = (windows.pendingUnread ?? []).filter((q) => pending.includes(q));
|
|
144
|
+
if (unread.length > 0) {
|
|
145
|
+
return unreadSentence(pending, windows.pendingZones ?? [], unread, leftOut.map((c) => `${c.name} with ${c.args} left out`).join(', or '));
|
|
146
|
+
}
|
|
147
|
+
const calls = leftOut.map((c) => `${c.name} is called with ${c.args} left out`);
|
|
148
|
+
return (`The window for ${quotes} is not settled yet: ${formClause(pending, windows.pendingZones)} ` +
|
|
149
|
+
`${calls.join(', or ')} (or the call is refused with the reason). So the next step is that ` +
|
|
150
|
+
'call — not a question about the time in the reply, and not a window written into the call, ' +
|
|
151
|
+
'which would run unconfirmed.');
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* What the library's own form does for the pending quotes, up to "opens when": it shows its
|
|
155
|
+
* reading to confirm — or, for a quote it holds no reading of (`ReaderWindows.pendingZones`: a
|
|
156
|
+
* zone it cannot resolve), it asks which time zone the words name and shows no reading. Words it
|
|
157
|
+
* could not read at all (`ReaderWindows.pendingUnread`) are {@link unreadSentence}'s.
|
|
158
|
+
*/
|
|
159
|
+
function formClause(pending, zones = []) {
|
|
160
|
+
const zoned = pending.filter((q) => zones.includes(q));
|
|
161
|
+
const read = pending.filter((q) => !zones.includes(q));
|
|
162
|
+
if (zoned.length === 0) {
|
|
163
|
+
return ("the person confirms it in the library's own form, which shows its reading of those " +
|
|
164
|
+
'words with the zone and opens when');
|
|
165
|
+
}
|
|
166
|
+
const zq = zoned.map((q) => `“${q}”`).join(', ');
|
|
167
|
+
if (read.length === 0) {
|
|
168
|
+
return ('the library holds no reading of those words until it knows which time zone they name, ' +
|
|
169
|
+
'so its own form asks the person for that zone, and it opens when');
|
|
170
|
+
}
|
|
171
|
+
const rq = read.map((q) => `“${q}”`).join(', ');
|
|
172
|
+
return (`the person confirms ${rq} in the library's own form, which shows its reading of those ` +
|
|
173
|
+
`words with the zone, and names the time zone of ${zq}, which the library holds no reading ` +
|
|
174
|
+
'of until it knows it; the form opens when');
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The pending half when some of the person's words were not read at all
|
|
178
|
+
* (`ReaderWindows.pendingUnread`): the library's CONCLUSION and the ONE next step, in that order —
|
|
179
|
+
* it could not read those words, so the next step is the call with the period left out, which
|
|
180
|
+
* opens its own form (asking which time they meant, nothing filled in; beside it, a reading to
|
|
181
|
+
* confirm and a zone to name, each quote with what the form does for it) — then the two moves
|
|
182
|
+
* that are not it, said as what not to do.
|
|
183
|
+
*
|
|
184
|
+
* WHY THIS SHAPE. The line before it opened "The window for … is not settled yet: the library
|
|
185
|
+
* could not read those words, so its own form asks the person which time they meant … So the next
|
|
186
|
+
* step is that call — not a question about the time in the reply". Haiku 4.5 answered it with a
|
|
187
|
+
* question in prose and no call on 15/15 `yesterday-morning` runs of the T6b bench
|
|
188
|
+
* (`bench/time/runs/haiku45-t6b-v2`), and again in the 2026-10-01 demo video ("which clients had
|
|
189
|
+
* slow operations yesterday morning"): "could not read" read as permission to ask, and the next
|
|
190
|
+
* step came last. So the step comes first, as the conclusion of what the library could not read,
|
|
191
|
+
* and the reply's question is named as the move NOT to make (`bench/time/RULE-unread.md`).
|
|
192
|
+
*/
|
|
193
|
+
function unreadSentence(pending, zones, unread, leftOut) {
|
|
194
|
+
const listed = (qs) => qs.map((q) => `“${q}”`).join(', ');
|
|
195
|
+
const zoned = pending.filter((q) => zones.includes(q) && !unread.includes(q));
|
|
196
|
+
const read = pending.filter((q) => !zones.includes(q) && !unread.includes(q));
|
|
197
|
+
const alone = zoned.length === 0 && read.length === 0;
|
|
198
|
+
const does = [
|
|
199
|
+
alone
|
|
200
|
+
? 'asks the person which time they meant, with nothing filled in'
|
|
201
|
+
: `asks the person which time ${listed(unread)} meant, with nothing filled in`,
|
|
202
|
+
...(read.length > 0
|
|
203
|
+
? [`shows its reading of ${listed(read)} with the zone for the person to confirm`]
|
|
204
|
+
: []),
|
|
205
|
+
...(zoned.length > 0
|
|
206
|
+
? [
|
|
207
|
+
`asks the time zone of ${listed(zoned)}, which the library holds no reading of until it knows it`,
|
|
208
|
+
]
|
|
209
|
+
: []),
|
|
210
|
+
];
|
|
211
|
+
const doing = does.length === 1
|
|
212
|
+
? does[0]
|
|
213
|
+
: `${does.slice(0, -1).join(', ')}, and ${does[does.length - 1]}`;
|
|
214
|
+
return (`The library could not read ${listed(unread)}, so the next step is to call ${leftOut}: ` +
|
|
215
|
+
`that call opens the library's own form, which ${doing} (or the call is refused with the ` +
|
|
216
|
+
'reason). Do not ask about the time in the reply — the form asks it — and do not write a ' +
|
|
217
|
+
'window into the call, which would run unconfirmed.');
|
|
218
|
+
}
|
|
219
|
+
// LENS · late-line · request-ephemeral
|
|
220
|
+
// reads: the person's windows a SERVED period tool refused this turn before dispatch (`time/windows.ts` ·
|
|
221
|
+
// `readerWindowsOf`, `refused`: the quote, the tool and the reason code) and that tool's
|
|
222
|
+
// declared facts
|
|
223
|
+
// law: the library's CONCLUSION about a call that did not run: past tense for the refusal, the
|
|
224
|
+
// reason in the tool's declared facts only (the one text `timeRefusal` also serves — never the
|
|
225
|
+
// window's value), then what an answer states; it names no next move for that window.
|
|
226
|
+
/**
|
|
227
|
+
* The refused half of the served time line: each window of the person's a
|
|
228
|
+
* served period tool refused before dispatch — the call's reason in the same
|
|
229
|
+
* words its result read ({@link timeRefusal}), then the conclusion an answer
|
|
230
|
+
* states. A refused window is not a pending one to ask about again: the T6b
|
|
231
|
+
* bench's future case asked the same refused call five times and ran out of
|
|
232
|
+
* budget while the pending half kept naming that call as the next step.
|
|
233
|
+
* `undefined` when nothing was refused.
|
|
234
|
+
*/
|
|
235
|
+
function refusedSentence(tools, windows) {
|
|
236
|
+
const byName = new Map(tools.map((t) => [t.name, t]));
|
|
237
|
+
const refused = (windows.refused ?? []).filter((r) => byName.has(r.toolName));
|
|
238
|
+
if (refused.length === 0)
|
|
239
|
+
return undefined;
|
|
240
|
+
const clauses = refused.map((r) => {
|
|
241
|
+
// The person's window was refused before a form was chosen: the tool's facts (`toolFacts`).
|
|
242
|
+
const pt = byName.get(r.toolName);
|
|
243
|
+
const facts = toolFacts(pt.forms, pt.facts);
|
|
244
|
+
return `${r.toolName} was not run for “${r.quote}”: ${refusalReason(r.refused, facts, r.argument)}.`;
|
|
245
|
+
});
|
|
246
|
+
const names = [...new Set(refused.map((r) => r.toolName))];
|
|
247
|
+
const conclusion = refused.length === 1
|
|
248
|
+
? `So the answer tells the person that ${names[0]} could not read that time, and claims ` +
|
|
249
|
+
`nothing about it from ${names[0]}.`
|
|
250
|
+
: 'So the answer tells the person which of those times each tool could not read, and ' +
|
|
251
|
+
'claims nothing about them from that tool.';
|
|
252
|
+
return `${clauses.join(' ')} ${conclusion}`;
|
|
253
|
+
}
|
|
254
|
+
/** Whether `tool` refused the person's window for `quote` this turn. */
|
|
255
|
+
const refusedFor = (windows, quote, tool) => (windows.refused ?? []).some((r) => r.quote === quote && r.toolName === tool);
|
|
256
|
+
// LENS · late-line · request-ephemeral
|
|
257
|
+
// reads: the turn's settled windows of the person's words (each mention's quote, its one window and
|
|
258
|
+
// WHOSE it is — the person's answer in the time ask, or a model reader's reading), the
|
|
259
|
+
// quotes still pending (a rule reading the person has not answered — `bind.ts` ·
|
|
260
|
+
// `pendingQuotesOf`), the turn's clock, and the SERVED tools' declared period forms and
|
|
261
|
+
// facts — converted by the one owner (`time/convert.ts`)
|
|
262
|
+
// law: the library's CONCLUSION, never raw facts: a settled window is named with its source (a
|
|
263
|
+
// reading is never called the person's words) and the values each tool takes, as a
|
|
264
|
+
// permission ("may pass"); a pending quote names no window and no reading (a proposal is not
|
|
265
|
+
// a fact the model may pass) — only that it is not confirmed and the one move that asks the
|
|
266
|
+
// person. Whether a call is filled, bound or refused is decided at dispatch and recorded there.
|
|
267
|
+
/**
|
|
268
|
+
* The ONE served time line (TQ13; step T6b's serving placement): one
|
|
269
|
+
* request-only `user` line appended LAST to the request, at the decision
|
|
270
|
+
* point — composed at the tools slot's one decoration site
|
|
271
|
+
* (`core/slots/buildToolsSlot.ts` · `commitWire`) from the tools it really
|
|
272
|
+
* serves, carried to `callLLM` on `timeLine`, and rebuilt by
|
|
273
|
+
* `time-travel/servedView.ts` from the same committed key. Four parts:
|
|
274
|
+
*
|
|
275
|
+
* - SETTLED — each window the person confirmed or gave in the time ask (or a
|
|
276
|
+
* `model` reader's reading), in the person's zone, WHOSE it is, and each
|
|
277
|
+
* served period tool's values for it — the exact conversion, else the wider
|
|
278
|
+
* one the fill would use (said so); a value the tool's view hides is named
|
|
279
|
+
* hidden. So the model never re-derives a window from words, and the answer
|
|
280
|
+
* states the window it was built on.
|
|
281
|
+
* - CONTROL — the window the person set in the app's time control, in
|
|
282
|
+
* their zone, with each served period tool's values for it; with none
|
|
283
|
+
* (no period tool served, or none can read it) the window alone (G14).
|
|
284
|
+
* - REFUSED — a window of the person's a served period tool refused before
|
|
285
|
+
* dispatch this turn: the refusal's reason in the result's own words, then
|
|
286
|
+
* what an answer states. That quote is no longer pending for that tool.
|
|
287
|
+
* - PENDING — a proposal the person has not answered is no window yet, and a
|
|
288
|
+
* call that writes its own window runs as sent, unconfirmed (§ 7.3). The
|
|
289
|
+
* line names the next step — the call with the period arguments left out,
|
|
290
|
+
* so the library's own form confirms the window with the person — and the
|
|
291
|
+
* two moves that are not it (a question about the time in the reply, a
|
|
292
|
+
* written window). Once a call of the turn already ran on a written window
|
|
293
|
+
* (`ranUnconfirmed`), it names the limit an answer states instead.
|
|
294
|
+
*
|
|
295
|
+
* `undefined` when no part has anything to say — a turn with no time words
|
|
296
|
+
* and no control window serves no line at all; with no served period tool
|
|
297
|
+
* only the control half can speak. The halves carry no opening: {@link timeLine} composes the served line and
|
|
298
|
+
* opens it, once, with {@link TIME_LINE_SOURCE}.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```ts
|
|
302
|
+
* timeWindowsLine(served, winningTools, { now, windows: [], pending: ['yesterday'] });
|
|
303
|
+
* // 'The window for “yesterday” is not settled yet: the person confirms it in the library's own
|
|
304
|
+
* // form, which shows its reading of those words with the zone and opens when client_activity
|
|
305
|
+
* // is called with start_time, end_time left out (or the call is refused with the reason). So
|
|
306
|
+
* // the next step is that call — not a question about the time in the reply, and not a window
|
|
307
|
+
* // written into the call, which would run unconfirmed.'
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
export function timeWindowsLine(served, winningTools, windows) {
|
|
311
|
+
const tools = periodToolsOf(served, winningTools);
|
|
312
|
+
// The control window is the person's turn's, served whether or not a period tool is (G14); the
|
|
313
|
+
// other halves speak about period tools only.
|
|
314
|
+
if (tools.length === 0)
|
|
315
|
+
return controlSentence(tools, windows);
|
|
316
|
+
const halves = [
|
|
317
|
+
settledSentence(tools, windows),
|
|
318
|
+
controlSentence(tools, windows),
|
|
319
|
+
refusedSentence(tools, windows),
|
|
320
|
+
pendingSentence(tools, windows),
|
|
321
|
+
].filter((h) => h !== undefined);
|
|
322
|
+
return halves.length === 0 ? undefined : halves.join(' ');
|
|
323
|
+
}
|
|
324
|
+
//# sourceMappingURL=windows.js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