agentfootprint 19.1.0 → 20.0.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.
- package/CAPABILITIES.md +1 -0
- package/README.md +3 -10
- package/dist/adapters/observability/auditShapes/events/decisions.js +26 -0
- package/dist/adapters/observability/auditShapes/events/decisions.js.map +1 -1
- package/dist/answer-account/facts/understood.js +3 -1
- package/dist/answer-account/facts/understood.js.map +1 -1
- package/dist/core/agent/assistantReplay.js +10 -6
- package/dist/core/agent/assistantReplay.js.map +1 -1
- package/dist/core/agent/buildToolRegistry.js +21 -2
- package/dist/core/agent/buildToolRegistry.js.map +1 -1
- package/dist/core/agent/runtime/catalog/buildCatalog.js +6 -1
- package/dist/core/agent/runtime/catalog/buildCatalog.js.map +1 -1
- package/dist/core/agent/runtime/chart/chartDependencies.js +1 -0
- package/dist/core/agent/runtime/chart/chartDependencies.js.map +1 -1
- package/dist/core/agent/runtime/chart/owner.js +7 -1
- package/dist/core/agent/runtime/chart/owner.js.map +1 -1
- package/dist/core/agent/runtime/configuration/configure.js +2 -0
- package/dist/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/core/agent/runtime/configuration/values.js.map +1 -1
- package/dist/core/agent/runtime/conversation/owner.js +2 -1
- package/dist/core/agent/runtime/conversation/owner.js.map +1 -1
- package/dist/core/agent/runtime/request/factory.js +4 -0
- package/dist/core/agent/runtime/request/factory.js.map +1 -1
- package/dist/core/agent/runtime/skills/owner.js +14 -5
- package/dist/core/agent/runtime/skills/owner.js.map +1 -1
- package/dist/core/agent/runtime/slots/buildSlots.js +9 -0
- package/dist/core/agent/runtime/slots/buildSlots.js.map +1 -1
- package/dist/core/agent/runtime/toolCalls/factory.js +4 -0
- package/dist/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/core/agent/skillContext/apply.js +45 -0
- package/dist/core/agent/skillContext/apply.js.map +1 -0
- package/dist/core/agent/skillContext/bodies.js +42 -0
- package/dist/core/agent/skillContext/bodies.js.map +1 -0
- package/dist/core/agent/skillContext/decide.js +88 -0
- package/dist/core/agent/skillContext/decide.js.map +1 -0
- package/dist/core/agent/skillContext/gate.js +42 -0
- package/dist/core/agent/skillContext/gate.js.map +1 -0
- package/dist/core/agent/skillContext/honestyView.js +37 -0
- package/dist/core/agent/skillContext/honestyView.js.map +1 -0
- package/dist/core/agent/stages/callLLM/prepareCall.js +2 -0
- package/dist/core/agent/stages/callLLM/prepareCall.js.map +1 -1
- package/dist/core/agent/stages/prepareFinal.js +35 -33
- package/dist/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/core/agent/stages/route.js +2 -2
- package/dist/core/agent/stages/route.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/evidence/towers.js +5 -1
- package/dist/core/agent/stages/toolCalls/evidence/towers.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/callStart.js +7 -1
- package/dist/core/agent/stages/toolCalls/execution/callStart.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/catalogOperations.js +1 -4
- package/dist/core/agent/stages/toolCalls/execution/catalogOperations.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js +2 -0
- package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/finalizeCallResult.js +28 -2
- package/dist/core/agent/stages/toolCalls/execution/finalizeCallResult.js.map +1 -1
- package/dist/core/agent/stages/window.js +9 -0
- package/dist/core/agent/stages/window.js.map +1 -1
- package/dist/core/agent/types/skillContext.js +7 -0
- package/dist/core/agent/types/skillContext.js.map +1 -0
- package/dist/core/agent/types.js +0 -1
- package/dist/core/agent/types.js.map +1 -1
- package/dist/core/agent/window/turns.js +3 -0
- package/dist/core/agent/window/turns.js.map +1 -1
- package/dist/core/slots/buildMessagesSlot.js +11 -1
- package/dist/core/slots/buildMessagesSlot.js.map +1 -1
- package/dist/core/slots/buildToolsSlot.js +1 -4
- package/dist/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/core/slots/composeSkillCatalog.js +23 -1
- package/dist/core/slots/composeSkillCatalog.js.map +1 -1
- package/dist/esm/adapters/observability/auditShapes/events/decisions.js +26 -0
- package/dist/esm/adapters/observability/auditShapes/events/decisions.js.map +1 -1
- package/dist/esm/answer-account/facts/understood.js +3 -1
- package/dist/esm/answer-account/facts/understood.js.map +1 -1
- package/dist/esm/core/agent/assistantReplay.d.ts +8 -4
- package/dist/esm/core/agent/assistantReplay.js +10 -6
- package/dist/esm/core/agent/assistantReplay.js.map +1 -1
- package/dist/esm/core/agent/buildToolRegistry.d.ts +13 -0
- package/dist/esm/core/agent/buildToolRegistry.js +21 -2
- package/dist/esm/core/agent/buildToolRegistry.js.map +1 -1
- package/dist/esm/core/agent/chartContract.d.ts +2 -0
- package/dist/esm/core/agent/evidence/types.d.ts +8 -0
- package/dist/esm/core/agent/runtime/catalog/buildCatalog.d.ts +1 -0
- package/dist/esm/core/agent/runtime/catalog/buildCatalog.js +6 -1
- package/dist/esm/core/agent/runtime/catalog/buildCatalog.js.map +1 -1
- package/dist/esm/core/agent/runtime/chart/chartDependencies.d.ts +1 -0
- package/dist/esm/core/agent/runtime/chart/chartDependencies.js +1 -0
- package/dist/esm/core/agent/runtime/chart/chartDependencies.js.map +1 -1
- package/dist/esm/core/agent/runtime/chart/owner.js +7 -1
- package/dist/esm/core/agent/runtime/chart/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/configuration/configure.js +2 -0
- package/dist/esm/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/esm/core/agent/runtime/configuration/model.d.ts +2 -0
- package/dist/esm/core/agent/runtime/configuration/values.d.ts +1 -0
- package/dist/esm/core/agent/runtime/configuration/values.js.map +1 -1
- package/dist/esm/core/agent/runtime/conversation/owner.js +2 -1
- package/dist/esm/core/agent/runtime/conversation/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/request/factory.js +4 -0
- package/dist/esm/core/agent/runtime/request/factory.js.map +1 -1
- package/dist/esm/core/agent/runtime/skills/owner.js +14 -5
- package/dist/esm/core/agent/runtime/skills/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/slots/buildSlots.js +9 -0
- package/dist/esm/core/agent/runtime/slots/buildSlots.js.map +1 -1
- package/dist/esm/core/agent/runtime/toolCalls/factory.d.ts +1 -0
- package/dist/esm/core/agent/runtime/toolCalls/factory.js +4 -0
- package/dist/esm/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/esm/core/agent/skillContext/apply.d.ts +39 -0
- package/dist/esm/core/agent/skillContext/apply.js +40 -0
- package/dist/esm/core/agent/skillContext/apply.js.map +1 -0
- package/dist/esm/core/agent/skillContext/bodies.d.ts +25 -0
- package/dist/esm/core/agent/skillContext/bodies.js +36 -0
- package/dist/esm/core/agent/skillContext/bodies.js.map +1 -0
- package/dist/esm/core/agent/skillContext/decide.d.ts +33 -0
- package/dist/esm/core/agent/skillContext/decide.js +84 -0
- package/dist/esm/core/agent/skillContext/decide.js.map +1 -0
- package/dist/esm/core/agent/skillContext/gate.d.ts +32 -0
- package/dist/esm/core/agent/skillContext/gate.js +37 -0
- package/dist/esm/core/agent/skillContext/gate.js.map +1 -0
- package/dist/esm/core/agent/skillContext/honestyView.d.ts +6 -0
- package/dist/esm/core/agent/skillContext/honestyView.js +33 -0
- package/dist/esm/core/agent/skillContext/honestyView.js.map +1 -0
- package/dist/esm/core/agent/stages/callLLM/prepareCall.js +2 -0
- package/dist/esm/core/agent/stages/callLLM/prepareCall.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM/types.d.ts +7 -0
- package/dist/esm/core/agent/stages/finalStageContract.d.ts +14 -0
- package/dist/esm/core/agent/stages/prepareFinal.d.ts +3 -9
- package/dist/esm/core/agent/stages/prepareFinal.js +35 -33
- package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/esm/core/agent/stages/route.js +2 -2
- package/dist/esm/core/agent/stages/route.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/contracts/catalog.d.ts +9 -0
- package/dist/esm/core/agent/stages/toolCalls/evidence/towers.js +5 -1
- package/dist/esm/core/agent/stages/toolCalls/evidence/towers.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/callStart.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/callStart.js +7 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/callStart.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/catalogOperations.js +2 -5
- package/dist/esm/core/agent/stages/toolCalls/execution/catalogOperations.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js +2 -0
- package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts +7 -0
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.js +28 -2
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.js.map +1 -1
- package/dist/esm/core/agent/stages/window.d.ts +6 -0
- package/dist/esm/core/agent/stages/window.js +9 -0
- package/dist/esm/core/agent/stages/window.js.map +1 -1
- package/dist/esm/core/agent/types/skillContext.d.ts +31 -0
- package/dist/esm/core/agent/types/skillContext.js +6 -0
- package/dist/esm/core/agent/types/skillContext.js.map +1 -0
- package/dist/esm/core/agent/types.d.ts +2 -2
- package/dist/esm/core/agent/types.js +0 -1
- package/dist/esm/core/agent/types.js.map +1 -1
- package/dist/esm/core/agent/window/turns.d.ts +6 -0
- package/dist/esm/core/agent/window/turns.js +3 -0
- package/dist/esm/core/agent/window/turns.js.map +1 -1
- package/dist/esm/core/agent/window/types.d.ts +7 -0
- package/dist/esm/core/slots/buildMessagesSlot.d.ts +7 -0
- package/dist/esm/core/slots/buildMessagesSlot.js +11 -1
- package/dist/esm/core/slots/buildMessagesSlot.js.map +1 -1
- package/dist/esm/core/slots/buildToolsSlot.d.ts +2 -0
- package/dist/esm/core/slots/buildToolsSlot.js +1 -4
- package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/esm/core/slots/composeSkillCatalog.d.ts +10 -1
- package/dist/esm/core/slots/composeSkillCatalog.js +23 -1
- package/dist/esm/core/slots/composeSkillCatalog.js.map +1 -1
- package/dist/esm/events/payloads/skillContext.d.ts +39 -0
- package/dist/esm/events/payloads/skillContext.js +8 -0
- package/dist/esm/events/payloads/skillContext.js.map +1 -0
- package/dist/esm/events/payloads/stream.d.ts +9 -0
- package/dist/esm/events/payloads.d.ts +1 -0
- package/dist/esm/injection-engine/skillContext.d.ts +92 -0
- package/dist/esm/injection-engine/skillContext.js +90 -0
- package/dist/esm/injection-engine/skillContext.js.map +1 -0
- package/dist/esm/injection-engine/skillToolDescriptors.js +9 -3
- package/dist/esm/injection-engine/skillToolDescriptors.js.map +1 -1
- package/dist/esm/injection-engine/skillTools.d.ts +7 -0
- package/dist/esm/injection-engine/skillTools.js +14 -1
- package/dist/esm/injection-engine/skillTools.js.map +1 -1
- package/dist/esm/injection-engine/types.d.ts +1 -1
- package/dist/esm/injection-engine/types.js +6 -6
- package/dist/esm/injection-engine/types.js.map +1 -1
- package/dist/esm/lib/spokenIds.d.ts +11 -0
- package/dist/esm/lib/spokenIds.js +13 -0
- package/dist/esm/lib/spokenIds.js.map +1 -1
- package/dist/esm/llm-ledger/calls.d.ts +30 -0
- package/dist/esm/llm-ledger/calls.js +244 -0
- package/dist/esm/llm-ledger/calls.js.map +1 -0
- package/dist/esm/llm-ledger/ledger.d.ts +61 -0
- package/dist/esm/llm-ledger/ledger.js +48 -0
- package/dist/esm/llm-ledger/ledger.js.map +1 -0
- package/dist/esm/llm-ledger/limits.d.ts +12 -0
- package/dist/esm/llm-ledger/limits.js +12 -0
- package/dist/esm/llm-ledger/limits.js.map +1 -1
- package/dist/esm/llm-ledger/queue.d.ts +7 -0
- package/dist/esm/llm-ledger/queue.js +36 -0
- package/dist/esm/llm-ledger/queue.js.map +1 -0
- package/dist/esm/llm-ledger/reader.d.ts +29 -0
- package/dist/esm/llm-ledger/reader.js +47 -0
- package/dist/esm/llm-ledger/reader.js.map +1 -0
- package/dist/esm/llm-ledger/report.d.ts +82 -0
- package/dist/esm/llm-ledger/report.js +162 -0
- package/dist/esm/llm-ledger/report.js.map +1 -0
- package/dist/esm/llm-ledger/rules/cited.d.ts +10 -0
- package/dist/esm/llm-ledger/rules/cited.js +12 -0
- package/dist/esm/llm-ledger/rules/cited.js.map +1 -0
- package/dist/esm/llm-ledger/rules/port.d.ts +98 -0
- package/dist/esm/llm-ledger/rules/port.js +252 -0
- package/dist/esm/llm-ledger/rules/port.js.map +1 -0
- package/dist/esm/llm-ledger/rules/timeWindow.d.ts +2 -0
- package/dist/esm/llm-ledger/rules/timeWindow.js +94 -0
- package/dist/esm/llm-ledger/rules/timeWindow.js.map +1 -0
- package/dist/esm/llm-ledger/rules/traceableValues.d.ts +6 -0
- package/dist/esm/llm-ledger/rules/traceableValues.js +103 -0
- package/dist/esm/llm-ledger/rules/traceableValues.js.map +1 -0
- package/dist/esm/llm-ledger/serve.d.ts +21 -0
- package/dist/esm/llm-ledger/serve.js +105 -0
- package/dist/esm/llm-ledger/serve.js.map +1 -0
- package/dist/esm/llm-ledger/stages.d.ts +134 -0
- package/dist/esm/llm-ledger/stages.js +479 -0
- package/dist/esm/llm-ledger/stages.js.map +1 -0
- package/dist/esm/redaction/knownStrings/fields-0.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/fields-0.js +1 -1
- package/dist/esm/redaction/knownStrings/fields-0.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.d.ts +6 -6
- package/dist/esm/redaction/knownStrings/fields-1.js +6 -6
- package/dist/esm/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-2.d.ts +7 -0
- package/dist/esm/redaction/knownStrings/fields-2.js +7 -0
- package/dist/esm/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-0.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/words-0.js +1 -1
- package/dist/esm/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-1.d.ts +2 -2
- package/dist/esm/redaction/knownStrings/words-1.js +2 -2
- package/dist/esm/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-2.d.ts +3 -0
- package/dist/esm/redaction/knownStrings/words-2.js +3 -0
- package/dist/esm/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/events/payloads/skillContext.js +9 -0
- package/dist/events/payloads/skillContext.js.map +1 -0
- package/dist/injection-engine/skillContext.js +96 -0
- package/dist/injection-engine/skillContext.js.map +1 -0
- package/dist/injection-engine/skillToolDescriptors.js +9 -3
- package/dist/injection-engine/skillToolDescriptors.js.map +1 -1
- package/dist/injection-engine/skillTools.js +16 -2
- package/dist/injection-engine/skillTools.js.map +1 -1
- package/dist/injection-engine/types.js +6 -6
- package/dist/injection-engine/types.js.map +1 -1
- package/dist/lib/spokenIds.js +15 -1
- package/dist/lib/spokenIds.js.map +1 -1
- package/dist/llm-ledger/calls.js +248 -0
- package/dist/llm-ledger/calls.js.map +1 -0
- package/dist/llm-ledger/ledger.js +52 -0
- package/dist/llm-ledger/ledger.js.map +1 -0
- package/dist/llm-ledger/limits.js +12 -0
- package/dist/llm-ledger/limits.js.map +1 -1
- package/dist/llm-ledger/queue.js +40 -0
- package/dist/llm-ledger/queue.js.map +1 -0
- package/dist/llm-ledger/reader.js +51 -0
- package/dist/llm-ledger/reader.js.map +1 -0
- package/dist/llm-ledger/report.js +166 -0
- package/dist/llm-ledger/report.js.map +1 -0
- package/dist/llm-ledger/rules/cited.js +15 -0
- package/dist/llm-ledger/rules/cited.js.map +1 -0
- package/dist/llm-ledger/rules/port.js +261 -0
- package/dist/llm-ledger/rules/port.js.map +1 -0
- package/dist/llm-ledger/rules/timeWindow.js +97 -0
- package/dist/llm-ledger/rules/timeWindow.js.map +1 -0
- package/dist/llm-ledger/rules/traceableValues.js +107 -0
- package/dist/llm-ledger/rules/traceableValues.js.map +1 -0
- package/dist/llm-ledger/serve.js +111 -0
- package/dist/llm-ledger/serve.js.map +1 -0
- package/dist/llm-ledger/stages.js +497 -0
- package/dist/llm-ledger/stages.js.map +1 -0
- package/dist/redaction/knownStrings/fields-0.js +1 -1
- package/dist/redaction/knownStrings/fields-0.js.map +1 -1
- package/dist/redaction/knownStrings/fields-1.js +6 -6
- package/dist/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/redaction/knownStrings/fields-2.js +7 -0
- package/dist/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/redaction/knownStrings/words-0.js +1 -1
- package/dist/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/redaction/knownStrings/words-1.js +2 -2
- package/dist/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/redaction/knownStrings/words-2.js +3 -0
- package/dist/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/types/adapters/observability/auditShapes/events/decisions.d.ts.map +1 -1
- package/dist/types/core/agent/assistantReplay.d.ts +8 -4
- package/dist/types/core/agent/assistantReplay.d.ts.map +1 -1
- package/dist/types/core/agent/buildToolRegistry.d.ts +13 -0
- package/dist/types/core/agent/buildToolRegistry.d.ts.map +1 -1
- package/dist/types/core/agent/chartContract.d.ts +2 -0
- package/dist/types/core/agent/chartContract.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/types.d.ts +8 -0
- package/dist/types/core/agent/evidence/types.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/catalog/buildCatalog.d.ts +1 -0
- package/dist/types/core/agent/runtime/catalog/buildCatalog.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/chart/chartDependencies.d.ts +1 -0
- package/dist/types/core/agent/runtime/chart/chartDependencies.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/chart/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/configure.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/model.d.ts +2 -0
- package/dist/types/core/agent/runtime/configuration/model.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/values.d.ts +1 -0
- package/dist/types/core/agent/runtime/configuration/values.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/conversation/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/request/factory.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/skills/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/slots/buildSlots.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/toolCalls/factory.d.ts +1 -0
- package/dist/types/core/agent/runtime/toolCalls/factory.d.ts.map +1 -1
- package/dist/types/core/agent/skillContext/apply.d.ts +40 -0
- package/dist/types/core/agent/skillContext/apply.d.ts.map +1 -0
- package/dist/types/core/agent/skillContext/bodies.d.ts +26 -0
- package/dist/types/core/agent/skillContext/bodies.d.ts.map +1 -0
- package/dist/types/core/agent/skillContext/decide.d.ts +34 -0
- package/dist/types/core/agent/skillContext/decide.d.ts.map +1 -0
- package/dist/types/core/agent/skillContext/gate.d.ts +33 -0
- package/dist/types/core/agent/skillContext/gate.d.ts.map +1 -0
- package/dist/types/core/agent/skillContext/honestyView.d.ts +7 -0
- package/dist/types/core/agent/skillContext/honestyView.d.ts.map +1 -0
- package/dist/types/core/agent/stages/callLLM/prepareCall.d.ts.map +1 -1
- package/dist/types/core/agent/stages/callLLM/types.d.ts +7 -0
- package/dist/types/core/agent/stages/callLLM/types.d.ts.map +1 -1
- package/dist/types/core/agent/stages/finalStageContract.d.ts +14 -0
- package/dist/types/core/agent/stages/finalStageContract.d.ts.map +1 -1
- package/dist/types/core/agent/stages/prepareFinal.d.ts +3 -9
- package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -1
- package/dist/types/core/agent/stages/route.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/catalog.d.ts +9 -0
- package/dist/types/core/agent/stages/toolCalls/contracts/catalog.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/evidence/towers.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/callStart.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/callStart.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/catalogOperations.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/dispatchCall.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts +7 -0
- package/dist/types/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts.map +1 -1
- package/dist/types/core/agent/stages/window.d.ts +6 -0
- package/dist/types/core/agent/stages/window.d.ts.map +1 -1
- package/dist/types/core/agent/types/skillContext.d.ts +32 -0
- package/dist/types/core/agent/types/skillContext.d.ts.map +1 -0
- package/dist/types/core/agent/types.d.ts +2 -2
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/agent/window/turns.d.ts +6 -0
- package/dist/types/core/agent/window/turns.d.ts.map +1 -1
- package/dist/types/core/agent/window/types.d.ts +7 -0
- package/dist/types/core/agent/window/types.d.ts.map +1 -1
- package/dist/types/core/slots/buildMessagesSlot.d.ts +7 -0
- package/dist/types/core/slots/buildMessagesSlot.d.ts.map +1 -1
- package/dist/types/core/slots/buildToolsSlot.d.ts +2 -0
- package/dist/types/core/slots/buildToolsSlot.d.ts.map +1 -1
- package/dist/types/core/slots/composeSkillCatalog.d.ts +10 -1
- package/dist/types/core/slots/composeSkillCatalog.d.ts.map +1 -1
- package/dist/types/events/payloads/skillContext.d.ts +40 -0
- package/dist/types/events/payloads/skillContext.d.ts.map +1 -0
- package/dist/types/events/payloads/stream.d.ts +9 -0
- package/dist/types/events/payloads/stream.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +1 -0
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/injection-engine/skillContext.d.ts +93 -0
- package/dist/types/injection-engine/skillContext.d.ts.map +1 -0
- package/dist/types/injection-engine/skillToolDescriptors.d.ts.map +1 -1
- package/dist/types/injection-engine/skillTools.d.ts +7 -0
- package/dist/types/injection-engine/skillTools.d.ts.map +1 -1
- package/dist/types/injection-engine/types.d.ts +1 -1
- package/dist/types/injection-engine/types.d.ts.map +1 -1
- package/dist/types/lib/spokenIds.d.ts +11 -0
- package/dist/types/lib/spokenIds.d.ts.map +1 -1
- package/dist/types/llm-ledger/calls.d.ts +31 -0
- package/dist/types/llm-ledger/calls.d.ts.map +1 -0
- package/dist/types/llm-ledger/ledger.d.ts +62 -0
- package/dist/types/llm-ledger/ledger.d.ts.map +1 -0
- package/dist/types/llm-ledger/limits.d.ts +12 -0
- package/dist/types/llm-ledger/limits.d.ts.map +1 -1
- package/dist/types/llm-ledger/queue.d.ts +8 -0
- package/dist/types/llm-ledger/queue.d.ts.map +1 -0
- package/dist/types/llm-ledger/reader.d.ts +30 -0
- package/dist/types/llm-ledger/reader.d.ts.map +1 -0
- package/dist/types/llm-ledger/report.d.ts +83 -0
- package/dist/types/llm-ledger/report.d.ts.map +1 -0
- package/dist/types/llm-ledger/rules/cited.d.ts +11 -0
- package/dist/types/llm-ledger/rules/cited.d.ts.map +1 -0
- package/dist/types/llm-ledger/rules/port.d.ts +99 -0
- package/dist/types/llm-ledger/rules/port.d.ts.map +1 -0
- package/dist/types/llm-ledger/rules/timeWindow.d.ts +3 -0
- package/dist/types/llm-ledger/rules/timeWindow.d.ts.map +1 -0
- package/dist/types/llm-ledger/rules/traceableValues.d.ts +7 -0
- package/dist/types/llm-ledger/rules/traceableValues.d.ts.map +1 -0
- package/dist/types/llm-ledger/serve.d.ts +22 -0
- package/dist/types/llm-ledger/serve.d.ts.map +1 -0
- package/dist/types/llm-ledger/stages.d.ts +135 -0
- package/dist/types/llm-ledger/stages.d.ts.map +1 -0
- package/dist/types/redaction/knownStrings/fields-0.d.ts +1 -1
- package/dist/types/redaction/knownStrings/fields-1.d.ts +6 -6
- package/dist/types/redaction/knownStrings/fields-2.d.ts +7 -0
- package/dist/types/redaction/knownStrings/fields-2.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings/words-0.d.ts +1 -1
- package/dist/types/redaction/knownStrings/words-1.d.ts +2 -2
- package/dist/types/redaction/knownStrings/words-2.d.ts +3 -0
- package/dist/types/redaction/knownStrings/words-2.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { LedgerReader } from './reader.js';
|
|
2
|
+
import type { LedgerCheckCounts } from './rules/port.js';
|
|
3
|
+
import type { LedgerCheckWhy, LedgerDisposition, LedgerVerdict } from './types.js';
|
|
4
|
+
/** The report's standing, in AgentFootprint's words. */
|
|
5
|
+
export type LedgerStanding = 'ask' | 'not-sure' | 'consistent' | 'not-assessed';
|
|
6
|
+
/** Why a standing is not `consistent`. `report-withheld` and `delivery-differs` are new (§10.1). */
|
|
7
|
+
export type LedgerReason = 'asked' | 'value-unsupported' | 'claim-unsettled' | 'check-unreachable' | 'report-withheld' | 'delivery-differs';
|
|
8
|
+
/** One check as the fold reads it: a stored `check` entry, or a dry run's finding. */
|
|
9
|
+
export interface LedgerCheckView {
|
|
10
|
+
readonly subject: {
|
|
11
|
+
readonly note: number;
|
|
12
|
+
} | {
|
|
13
|
+
readonly draft: true;
|
|
14
|
+
};
|
|
15
|
+
readonly rule: string;
|
|
16
|
+
readonly disposition: LedgerDisposition;
|
|
17
|
+
readonly verdict?: LedgerVerdict;
|
|
18
|
+
readonly restsOn: readonly number[];
|
|
19
|
+
readonly counts: LedgerCheckCounts;
|
|
20
|
+
readonly missing?: readonly string[];
|
|
21
|
+
readonly why?: LedgerCheckWhy;
|
|
22
|
+
}
|
|
23
|
+
/** One subject's line in the report. */
|
|
24
|
+
export interface LedgerSubjectReport {
|
|
25
|
+
readonly verdict?: LedgerVerdict;
|
|
26
|
+
readonly reason?: 'claim-unsettled' | 'check-unreachable';
|
|
27
|
+
readonly checks: readonly LedgerCheckView[];
|
|
28
|
+
/** Tokens no receipt holds, the first ones each check kept. */
|
|
29
|
+
readonly missing: readonly string[];
|
|
30
|
+
/** Whether what it rests on was observed, only reported, or nothing. */
|
|
31
|
+
readonly restsOn: 'observed' | 'reported' | 'nothing';
|
|
32
|
+
}
|
|
33
|
+
/** A named claim (or ruled-out note) in the report. */
|
|
34
|
+
export interface LedgerClaimReport extends LedgerSubjectReport {
|
|
35
|
+
readonly note: number;
|
|
36
|
+
readonly kind: 'claim' | 'ruled-out';
|
|
37
|
+
/** The agent's own words: served only through `serve.ts`. */
|
|
38
|
+
readonly text: string;
|
|
39
|
+
}
|
|
40
|
+
/** The fold's result. Holds real values: serve it through `serve.ts` only. */
|
|
41
|
+
export interface LedgerReport {
|
|
42
|
+
readonly standing: LedgerStanding;
|
|
43
|
+
readonly reasons: readonly LedgerReason[];
|
|
44
|
+
readonly submit: number | null;
|
|
45
|
+
readonly draftDigest?: string;
|
|
46
|
+
readonly preview: boolean;
|
|
47
|
+
readonly claims: readonly LedgerClaimReport[];
|
|
48
|
+
readonly draft?: LedgerSubjectReport;
|
|
49
|
+
/** Kept apart, never summed. */
|
|
50
|
+
readonly counts: {
|
|
51
|
+
readonly verified: number;
|
|
52
|
+
readonly consistentWithReported: number;
|
|
53
|
+
readonly unsupported: number;
|
|
54
|
+
readonly open: number;
|
|
55
|
+
readonly notAssessed: number;
|
|
56
|
+
};
|
|
57
|
+
readonly receipts: {
|
|
58
|
+
readonly observed: number;
|
|
59
|
+
readonly reported: number;
|
|
60
|
+
readonly incomplete: readonly number[];
|
|
61
|
+
};
|
|
62
|
+
readonly withdrawnAfterCheck: readonly {
|
|
63
|
+
readonly note: number;
|
|
64
|
+
readonly verdict?: LedgerVerdict;
|
|
65
|
+
}[];
|
|
66
|
+
/** Live claim and ruled-out notes the last submit did not name. */
|
|
67
|
+
readonly notChecked: readonly number[];
|
|
68
|
+
readonly openQuestions: readonly number[];
|
|
69
|
+
readonly delivery: 'not-compared' | 'matches' | 'differs';
|
|
70
|
+
readonly release: 'not-asked' | 'waiting' | 'released' | 'withheld' | 'no-person-channel';
|
|
71
|
+
readonly full: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** The two sentences every report carries. */
|
|
74
|
+
export declare const REPORT_SENTENCES: readonly string[];
|
|
75
|
+
/**
|
|
76
|
+
* The report of `reader`'s last submit. `preview` gives the findings of a dry run over `claims`
|
|
77
|
+
* instead (nothing appended): the report then reads them, and says `preview: true`.
|
|
78
|
+
*/
|
|
79
|
+
export declare function foldReport(reader: LedgerReader, preview?: {
|
|
80
|
+
readonly claims: readonly number[];
|
|
81
|
+
readonly checks: readonly LedgerCheckView[];
|
|
82
|
+
}): LedgerReport;
|
|
83
|
+
//# sourceMappingURL=report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/llm-ledger/report.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAc,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/F,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,GAAG,cAAc,CAAC;AAEhF,oGAAoG;AACpG,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,sFAAsF;AACtF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;KAAE,CAAC;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;IACjC,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|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* llm-ledger/rules/cited — `cited@1`: a claim or a ruled-out note cites a receipt of this session.
|
|
3
|
+
*
|
|
4
|
+
* Pattern: a table rule (`rules/port.ts`). One fact, `cites`; one row.
|
|
5
|
+
* Role: the weakest check there is: it sees the note's `cites`, never whether a receipt is
|
|
6
|
+
* about the claim. Its finding rests on the cited receipts.
|
|
7
|
+
* Emits: N/A.
|
|
8
|
+
*/
|
|
9
|
+
import type { LedgerTableRule } from './port.js';
|
|
10
|
+
export declare const cited: LedgerTableRule;
|
|
11
|
+
//# sourceMappingURL=cited.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cited.d.ts","sourceRoot":"","sources":["../../../../src/llm-ledger/rules/cited.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,eAAO,MAAM,KAAK,EAAE,eAUnB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { DecideRule, DecisionRecord } from 'footprintjs';
|
|
2
|
+
import type { LedgerCheckWhy, LedgerDisposition, LedgerNote, LedgerReceipt, LedgerSupplied, LedgerVerdict } from '../types.js';
|
|
3
|
+
/** What a rule can be about. */
|
|
4
|
+
export type LedgerSubjectKind = 'claim' | 'ruled-out' | 'draft';
|
|
5
|
+
/** The subject of one check: a note (a claim or a ruled-out), or the draft's text. */
|
|
6
|
+
export type LedgerRuleSubject = {
|
|
7
|
+
readonly kind: 'claim' | 'ruled-out';
|
|
8
|
+
readonly note: LedgerNote;
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'draft';
|
|
11
|
+
readonly text: string;
|
|
12
|
+
};
|
|
13
|
+
/** What a rule reads: real values, frozen. */
|
|
14
|
+
export interface LedgerRuleInput {
|
|
15
|
+
readonly subject: LedgerRuleSubject;
|
|
16
|
+
/** The cited receipts for a note; every receipt of the session for the draft. */
|
|
17
|
+
readonly receipts: readonly LedgerReceipt[];
|
|
18
|
+
readonly supplied: readonly LedgerSupplied[];
|
|
19
|
+
}
|
|
20
|
+
/** What a check counts. Every rule reports these four; a rule that counts nothing reports zeros. */
|
|
21
|
+
export interface LedgerCheckCounts {
|
|
22
|
+
readonly visible: number;
|
|
23
|
+
readonly missing: number;
|
|
24
|
+
readonly supplied: number;
|
|
25
|
+
readonly incomplete: number;
|
|
26
|
+
}
|
|
27
|
+
/** What a table rule's `facts` gives: flat facts for its table, and the receipts its finding rests on. */
|
|
28
|
+
export interface LedgerRuleFacts {
|
|
29
|
+
readonly facts: Readonly<Record<string, number | boolean | string>>;
|
|
30
|
+
readonly restsOn: readonly number[];
|
|
31
|
+
readonly counts?: LedgerCheckCounts;
|
|
32
|
+
/** Tokens no receipt holds; the check stores the first `maxMissing`. */
|
|
33
|
+
readonly missing?: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
interface LedgerRuleBase {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly version: number;
|
|
38
|
+
readonly appliesTo: readonly LedgerSubjectKind[];
|
|
39
|
+
}
|
|
40
|
+
/** A rule that states facts and lets a `decide()` table choose its disposition. */
|
|
41
|
+
export interface LedgerTableRule extends LedgerRuleBase {
|
|
42
|
+
facts(input: LedgerRuleInput): LedgerRuleFacts | Promise<LedgerRuleFacts>;
|
|
43
|
+
readonly table: readonly DecideRule<Record<string, unknown>>[];
|
|
44
|
+
readonly default: {
|
|
45
|
+
readonly branch: LedgerDisposition;
|
|
46
|
+
readonly label?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/** A rule that decides with its own code. Its record is `fixedRecord(outcome, label, 'app')`. */
|
|
50
|
+
export interface LedgerCodeRule extends LedgerRuleBase {
|
|
51
|
+
decide(input: LedgerRuleInput): LedgerCodeOutcome | Promise<LedgerCodeOutcome>;
|
|
52
|
+
}
|
|
53
|
+
/** A code rule's answer. */
|
|
54
|
+
export interface LedgerCodeOutcome {
|
|
55
|
+
readonly outcome: LedgerDisposition;
|
|
56
|
+
readonly label?: string;
|
|
57
|
+
readonly restsOn: readonly number[];
|
|
58
|
+
}
|
|
59
|
+
/** Either form. */
|
|
60
|
+
export type LedgerRule = LedgerTableRule | LedgerCodeRule;
|
|
61
|
+
/** What one rule found on one subject: what a `check` entry stores, before its stamp. */
|
|
62
|
+
export interface LedgerFinding {
|
|
63
|
+
readonly rule: string;
|
|
64
|
+
readonly disposition: LedgerDisposition;
|
|
65
|
+
readonly verdict?: LedgerVerdict;
|
|
66
|
+
readonly restsOn: readonly number[];
|
|
67
|
+
readonly decision?: DecisionRecord;
|
|
68
|
+
readonly counts: LedgerCheckCounts;
|
|
69
|
+
readonly missing?: readonly string[];
|
|
70
|
+
readonly why?: LedgerCheckWhy;
|
|
71
|
+
}
|
|
72
|
+
/** Why a registration was refused: a fixed word, never a value. */
|
|
73
|
+
export type LedgerRuleProblem = 'bad-id' | 'bad-version' | 'duplicate' | 'bad-applies-to' | 'bad-branch' | 'function-rule' | 'too-many-rules' | 'too-many-facts' | 'bad-rule';
|
|
74
|
+
/** Thrown by `createLedger` when a rule cannot be registered. Its message is the problem word. */
|
|
75
|
+
export declare class LedgerRuleError extends Error {
|
|
76
|
+
readonly problem: LedgerRuleProblem;
|
|
77
|
+
constructor(problem: LedgerRuleProblem);
|
|
78
|
+
}
|
|
79
|
+
/** `id@version`: what a check record and `opened.rules` store. */
|
|
80
|
+
export declare const ruleKey: (rule: LedgerRule) => string;
|
|
81
|
+
/**
|
|
82
|
+
* The rules one ledger runs, by `id@version`: the built-ins, then the host's. Throws
|
|
83
|
+
* `LedgerRuleError` on the first rule it cannot register.
|
|
84
|
+
*/
|
|
85
|
+
export declare function registerRules(builtIns: readonly LedgerRule[], host?: readonly LedgerRule[]): ReadonlyMap<string, LedgerRule>;
|
|
86
|
+
/**
|
|
87
|
+
* The verdict a disposition gives: a pass is `verified` only when it rests on receipts and every
|
|
88
|
+
* one of them is observed; otherwise `consistent-with-reported` (chosen here: a pass that rests on
|
|
89
|
+
* nothing is no observation).
|
|
90
|
+
*/
|
|
91
|
+
export declare function verdictOf(disposition: LedgerDisposition, restsOn: readonly number[], how: (seq: number) => 'observed' | 'reported' | undefined): LedgerVerdict | undefined;
|
|
92
|
+
/** The weakest verdict wins: `unsupported`, then `open`, then `consistent-with-reported`, then `verified`. */
|
|
93
|
+
export declare const VERDICT_ORDER: readonly LedgerVerdict[];
|
|
94
|
+
/** The weakest of `verdicts`, or `undefined` when there are none. */
|
|
95
|
+
export declare function weakest(verdicts: readonly (LedgerVerdict | undefined)[]): LedgerVerdict | undefined;
|
|
96
|
+
/** Runs one rule on one subject, never throwing. */
|
|
97
|
+
export declare function runRule(rule: LedgerRule, input: LedgerRuleInput): Promise<LedgerFinding>;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=port.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"port.d.ts","sourceRoot":"","sources":["../../../../src/llm-ledger/rules/port.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,aAAa,CAAC;AAErB,gCAAgC;AAChC,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,CAAC;AAEhE,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B,QA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MAAM,OAAO,SAAU,UAAU,KAAG,MAAsC,CAAC;AA0ClF;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,SAAS,UAAU,EAAE,EAC/B,IAAI,GAAE,SAAS,UAAU,EAAO,GAC/B,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAgBjC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,UAAU,GAAG,UAAU,GAAG,SAAS,GACxD,aAAa,GAAG,SAAS,CAO3B;AAED,8GAA8G;AAC9G,eAAO,MAAM,aAAa,EAAE,SAAS,aAAa,EAKhD,CAAC;AAEH,qEAAqE;AACrE,wBAAgB,OAAO,CACrB,QAAQ,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,EAAE,GAC/C,aAAa,GAAG,SAAS,CAI3B;AA2CD,oDAAoD;AACpD,wBAAsB,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CA8D9F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeWindow.d.ts","sourceRoot":"","sources":["../../../../src/llm-ledger/rules/timeWindow.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AA2BjD,eAAO,MAAM,UAAU,EAAE,eA4DxB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LedgerTableRule } from './port.js';
|
|
2
|
+
/** The value law's key. It runs in every session, whatever the session pins (`withValueLaw`). */
|
|
3
|
+
export declare const VALUE_LAW = "traceable-values@1";
|
|
4
|
+
/** `keys` with the value law among them: pinning may add rules, never remove this one. */
|
|
5
|
+
export declare const withValueLaw: (keys: readonly string[]) => string[];
|
|
6
|
+
export declare const traceableValues: LedgerTableRule;
|
|
7
|
+
//# sourceMappingURL=traceableValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceableValues.d.ts","sourceRoot":"","sources":["../../../../src/llm-ledger/rules/traceableValues.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,iGAAiG;AACjG,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAE9C,0FAA0F;AAC1F,eAAO,MAAM,YAAY,SAAU,SAAS,MAAM,EAAE,KAAG,MAAM,EACA,CAAC;AAE9D,eAAO,MAAM,eAAe,EAAE,eA6E7B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LedgerReader } from './reader.js';
|
|
2
|
+
import type { LedgerReport } from './report.js';
|
|
3
|
+
import type { LedgerRefusal } from './types.js';
|
|
4
|
+
/** What every served value is: JSON. */
|
|
5
|
+
export type LedgerServed = string | number | boolean | null | readonly LedgerServed[] | {
|
|
6
|
+
readonly [key: string]: LedgerServed;
|
|
7
|
+
};
|
|
8
|
+
/** How to serve: masked or quoted, and the text spans are counted in. */
|
|
9
|
+
export interface LedgerServeOptions {
|
|
10
|
+
readonly redact: boolean;
|
|
11
|
+
/** The draft of the call being answered, when it has one: spans of its missing tokens. */
|
|
12
|
+
readonly draft?: string;
|
|
13
|
+
}
|
|
14
|
+
/** The placeholder a masked string is served as. */
|
|
15
|
+
export declare const SERVED_PLACEHOLDER = "[REDACTED]";
|
|
16
|
+
/** The served report. */
|
|
17
|
+
export declare function serveReport(report: LedgerReport, o: LedgerServeOptions): LedgerServed;
|
|
18
|
+
/** The newest receipts `ask` lists: facts about each read, never its tokens or query. */
|
|
19
|
+
export declare function serveReceipts(reader: LedgerReader): LedgerServed;
|
|
20
|
+
/** A refusal: its word, and a store's code with `store-refused`. Never a value. */
|
|
21
|
+
export declare function serveRefusal(word: LedgerRefusal, store?: string): LedgerServed;
|
|
22
|
+
//# sourceMappingURL=serve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../src/llm-ledger/serve.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAmB,YAAY,EAAuB,MAAM,aAAa,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,wCAAwC;AACxC,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,YAAY,EAAE,GACvB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAE7C,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,oDAAoD;AACpD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAsC/C,yBAAyB;AACzB,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,kBAAkB,GAAG,YAAY,CA4BrF;AAED,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAchE;AAED,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,CAE9E"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { DecisionRecord, TypedScope } from 'footprintjs';
|
|
2
|
+
import type { LedgerReader } from './reader.js';
|
|
3
|
+
import type { LedgerCheckView, LedgerReport } from './report.js';
|
|
4
|
+
import type { LedgerFinding, LedgerRule } from './rules/port.js';
|
|
5
|
+
import type { LedgerServed } from './serve.js';
|
|
6
|
+
import type { LedgerStore } from './store.js';
|
|
7
|
+
import type { LedgerEntry, LedgerRefusal } from './types.js';
|
|
8
|
+
/** The call kinds: the host's and the agent's. */
|
|
9
|
+
export type LedgerCallKind = 'open' | 'record' | 'supply' | 'deliver' | 'report' | 'note' | 'withdraw' | 'ask' | 'submit';
|
|
10
|
+
/** Run state: names, numbers, verdict words and decision records only. */
|
|
11
|
+
export interface CallState {
|
|
12
|
+
attempt: number;
|
|
13
|
+
seq: number;
|
|
14
|
+
opened: boolean;
|
|
15
|
+
confirm: boolean;
|
|
16
|
+
askRunsRules: boolean;
|
|
17
|
+
inputRefusal: string;
|
|
18
|
+
storeRefused: boolean;
|
|
19
|
+
noSession: boolean;
|
|
20
|
+
sessionExists: boolean;
|
|
21
|
+
unknownRule: boolean;
|
|
22
|
+
full: boolean;
|
|
23
|
+
unknownReceipt: boolean;
|
|
24
|
+
notAReceipt: boolean;
|
|
25
|
+
unknownNote: boolean;
|
|
26
|
+
notANote: boolean;
|
|
27
|
+
notAClaim: boolean;
|
|
28
|
+
withdrawnNote: boolean;
|
|
29
|
+
alreadyWithdrawn: boolean;
|
|
30
|
+
ruleNotLoaded: boolean;
|
|
31
|
+
refused: string;
|
|
32
|
+
outcome: string;
|
|
33
|
+
appendedSeq: number;
|
|
34
|
+
checks: {
|
|
35
|
+
rule: string;
|
|
36
|
+
subject: {
|
|
37
|
+
note: number;
|
|
38
|
+
} | {
|
|
39
|
+
draft: true;
|
|
40
|
+
};
|
|
41
|
+
disposition: string;
|
|
42
|
+
verdict?: string;
|
|
43
|
+
decision?: DecisionRecord;
|
|
44
|
+
}[];
|
|
45
|
+
hasSubmit: boolean;
|
|
46
|
+
matches: boolean;
|
|
47
|
+
answer: string;
|
|
48
|
+
answerWhy: string;
|
|
49
|
+
}
|
|
50
|
+
/** The call's closure: everything a stage needs that must not be run state. */
|
|
51
|
+
export interface CallFrame {
|
|
52
|
+
readonly kind: LedgerCallKind;
|
|
53
|
+
readonly session: string;
|
|
54
|
+
readonly store: LedgerStore;
|
|
55
|
+
readonly rules: ReadonlyMap<string, LedgerRule>;
|
|
56
|
+
readonly clock: () => string;
|
|
57
|
+
/** The call's input, as handed in. */
|
|
58
|
+
readonly input: Record<string, unknown>;
|
|
59
|
+
/** What `read-call` built: an entry with a provisional stamp, or a refusal word. */
|
|
60
|
+
built?: LedgerEntry;
|
|
61
|
+
/** This attempt's reader. */
|
|
62
|
+
reader?: LedgerReader;
|
|
63
|
+
/** The findings of this attempt's checks, by subject. */
|
|
64
|
+
findings?: readonly (LedgerFinding & {
|
|
65
|
+
readonly subject: LedgerCheckView['subject'];
|
|
66
|
+
})[];
|
|
67
|
+
/** Builds this attempt's batch, given the seq of its first entry. */
|
|
68
|
+
batchAt?: (first: number) => LedgerEntry[];
|
|
69
|
+
/** The log as this call left it (the attempt's entries and the call's appends). */
|
|
70
|
+
after?: readonly LedgerEntry[];
|
|
71
|
+
report?: LedgerReport;
|
|
72
|
+
refusal?: {
|
|
73
|
+
readonly word: LedgerRefusal;
|
|
74
|
+
readonly store?: string;
|
|
75
|
+
};
|
|
76
|
+
reply?: LedgerServed;
|
|
77
|
+
/** Store loads made, for audits and the "each attempt loads once" property. */
|
|
78
|
+
loads: number;
|
|
79
|
+
}
|
|
80
|
+
type Scope = TypedScope<CallState>;
|
|
81
|
+
/** Every word `admit` can branch to: the input's, then the table's. */
|
|
82
|
+
export declare const ADMIT_WORDS: readonly LedgerRefusal[];
|
|
83
|
+
/** `load-log`: this attempt's one load, into the frame. Scope gets the seq and the session's options. */
|
|
84
|
+
export declare function loadLog(frame: CallFrame): (s: Scope) => Promise<void>;
|
|
85
|
+
/** `admit`: flat facts into scope, then one `decide()`: the first refusal wins, else `go`. */
|
|
86
|
+
export declare function admit(frame: CallFrame): (s: Scope) => import("footprintjs").DecisionResult;
|
|
87
|
+
/** A refusal branch: the word into scope, the reply into the frame (with `submit`, when its batch
|
|
88
|
+
* stands), and the run ends. */
|
|
89
|
+
export declare function refuse(frame: CallFrame, word: LedgerRefusal, submit?: number): (s: Scope) => void;
|
|
90
|
+
/** `extract-tokens` (record, supply), and the plain stamping stage of note, withdraw, open, deliver. */
|
|
91
|
+
export declare function stampBuilt(frame: CallFrame): () => void;
|
|
92
|
+
/** `check-claims`: the session's rules on each named claim, against its cited receipts. */
|
|
93
|
+
export declare function checkClaims(frame: CallFrame): (s: Scope) => Promise<void>;
|
|
94
|
+
/** `check-draft`: the session's draft rules on the whole draft, against every receipt. */
|
|
95
|
+
export declare function checkDraft(frame: CallFrame): (s: Scope) => Promise<void>;
|
|
96
|
+
/** `fold`: the report, over the log as this call leaves it (a dry `ask` folds its findings instead). */
|
|
97
|
+
export declare function fold(frame: CallFrame): () => void;
|
|
98
|
+
/** `compare` (deliver): does the delivered text match the last submit's draft? */
|
|
99
|
+
export declare function compare(frame: CallFrame): (s: Scope) => import("footprintjs").DecisionResult;
|
|
100
|
+
/** The `deliver` entry, stamped with the comparison `compare` made. */
|
|
101
|
+
export declare function stampDelivered(frame: CallFrame): (s: Scope) => void;
|
|
102
|
+
/** `append`: the attempt's one batch, at the seq this attempt loaded. */
|
|
103
|
+
export declare function append(frame: CallFrame): (s: Scope) => Promise<void>;
|
|
104
|
+
/** `after-append`: appended, refused, `busy` after the last attempt, or `conflict` (loop to `load-log`). */
|
|
105
|
+
export declare function afterAppend(): (s: Scope) => import("footprintjs").DecisionResult;
|
|
106
|
+
/** The `append-refused` branch: the store's word, from the frame. */
|
|
107
|
+
export declare function refuseAppend(frame: CallFrame): (s: Scope) => void;
|
|
108
|
+
/** `release` (submit): a session opened with `confirm` waits for a person. */
|
|
109
|
+
export declare function release(): (s: Scope) => import("footprintjs").DecisionResult;
|
|
110
|
+
/** `await-person`: pauses with `{ submit, standing, counts }` — no values — and takes the answer. */
|
|
111
|
+
export declare function awaitPerson(frame: CallFrame): {
|
|
112
|
+
execute: (s: Scope) => {
|
|
113
|
+
submit: number;
|
|
114
|
+
standing: import("./report.js").LedgerStanding;
|
|
115
|
+
counts: {
|
|
116
|
+
verified?: number | undefined;
|
|
117
|
+
consistentWithReported?: number | undefined;
|
|
118
|
+
unsupported?: number | undefined;
|
|
119
|
+
open?: number | undefined;
|
|
120
|
+
notAssessed?: number | undefined;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
resume: (s: Scope, input: unknown) => void;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* `append-released`: the person's answer, after the submit's batch. A conflict reloads and retries
|
|
127
|
+
* (at most `maxAttempts`, then `busy`); a store refusal is `store-refused` with its code (a
|
|
128
|
+
* `lock-lost` reloads once and stands only if the entry is there). No path replies `ok` unless the
|
|
129
|
+
* entry is in the log; otherwise the report still, truthfully, reads waiting for a person, and the
|
|
130
|
+
* refusal carries the submit's seq: its batch stands, so the caller asks the person again, never
|
|
131
|
+
* submits again.
|
|
132
|
+
*/
|
|
133
|
+
export declare function appendReleased(frame: CallFrame): (s: Scope) => Promise<void>;
|
|
134
|
+
export {};
|
|
135
|
+
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../src/llm-ledger/stages.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAc,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAM1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGjE,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EAGX,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAA6B,aAAa,EAAE,MAAM,YAAY,CAAC;AAExF,kDAAkD;AAClD,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,QAAQ,G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6 +68,7 @@ export declare const fields0: {
|
|
|
68
68
|
readonly blockCount: true;
|
|
69
69
|
readonly blockIndex: true;
|
|
70
70
|
readonly blocks: true;
|
|
71
|
+
readonly body: true;
|
|
71
72
|
readonly bold: true;
|
|
72
73
|
readonly brain: true;
|
|
73
74
|
readonly branch: true;
|
|
@@ -298,6 +299,5 @@ export declare const fields0: {
|
|
|
298
299
|
readonly language: true;
|
|
299
300
|
readonly lastError: true;
|
|
300
301
|
readonly lastFiredAt: true;
|
|
301
|
-
readonly lastIndexOf: true;
|
|
302
302
|
};
|
|
303
303
|
//# sourceMappingURL=fields-0.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const fields1: {
|
|
2
|
+
readonly lastIndexOf: true;
|
|
2
3
|
readonly latencyMs: true;
|
|
3
4
|
readonly layer: true;
|
|
4
5
|
readonly layout: true;
|
|
@@ -28,6 +29,7 @@ export declare const fields1: {
|
|
|
28
29
|
readonly mayHaveRun: true;
|
|
29
30
|
readonly measuredAt: true;
|
|
30
31
|
readonly measured_at: true;
|
|
32
|
+
readonly measurement: true;
|
|
31
33
|
readonly mediaType: true;
|
|
32
34
|
readonly memories: true;
|
|
33
35
|
readonly memory: true;
|
|
@@ -149,6 +151,7 @@ export declare const fields1: {
|
|
|
149
151
|
readonly readAt: true;
|
|
150
152
|
readonly read_at: true;
|
|
151
153
|
readonly reading: true;
|
|
154
|
+
readonly reads: true;
|
|
152
155
|
readonly reason: true;
|
|
153
156
|
readonly reasons: true;
|
|
154
157
|
readonly recipes: true;
|
|
@@ -204,6 +207,7 @@ export declare const fields1: {
|
|
|
204
207
|
readonly rows: true;
|
|
205
208
|
readonly rowset: true;
|
|
206
209
|
readonly rule: true;
|
|
210
|
+
readonly run: true;
|
|
207
211
|
readonly runId: true;
|
|
208
212
|
readonly runnerId: true;
|
|
209
213
|
readonly runnerUp: true;
|
|
@@ -217,6 +221,7 @@ export declare const fields1: {
|
|
|
217
221
|
readonly scoreEvidence: true;
|
|
218
222
|
readonly scorer: true;
|
|
219
223
|
readonly scores: true;
|
|
224
|
+
readonly script: true;
|
|
220
225
|
readonly scripts: true;
|
|
221
226
|
readonly scriptsDropped: true;
|
|
222
227
|
readonly seam: true;
|
|
@@ -241,6 +246,7 @@ export declare const fields1: {
|
|
|
241
246
|
readonly sizeChars: true;
|
|
242
247
|
readonly skill: true;
|
|
243
248
|
readonly skillCatalog: true;
|
|
249
|
+
readonly skillContext: true;
|
|
244
250
|
readonly skillGraph: true;
|
|
245
251
|
readonly skillId: true;
|
|
246
252
|
readonly skippedCount: true;
|
|
@@ -293,11 +299,5 @@ export declare const fields1: {
|
|
|
293
299
|
readonly summary: true;
|
|
294
300
|
readonly sup: true;
|
|
295
301
|
readonly supersededBy: true;
|
|
296
|
-
readonly supersededIds: true;
|
|
297
|
-
readonly survivalMs: true;
|
|
298
|
-
readonly synthetic: true;
|
|
299
|
-
readonly system: true;
|
|
300
|
-
readonly systemPromptChars: true;
|
|
301
|
-
readonly systemPromptText: true;
|
|
302
302
|
};
|
|
303
303
|
//# sourceMappingURL=fields-1.d.ts.map
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare const fields2: {
|
|
2
|
+
readonly supersededIds: true;
|
|
3
|
+
readonly survivalMs: true;
|
|
4
|
+
readonly synthetic: true;
|
|
5
|
+
readonly system: true;
|
|
6
|
+
readonly systemPromptChars: true;
|
|
7
|
+
readonly systemPromptText: true;
|
|
2
8
|
readonly t: true;
|
|
3
9
|
readonly target: true;
|
|
4
10
|
readonly targetRef: true;
|
|
@@ -87,6 +93,7 @@ export declare const fields2: {
|
|
|
87
93
|
readonly via: true;
|
|
88
94
|
readonly viaProtocol: true;
|
|
89
95
|
readonly volunteeredId: true;
|
|
96
|
+
readonly voucher: true;
|
|
90
97
|
readonly waitMs: true;
|
|
91
98
|
readonly what: true;
|
|
92
99
|
readonly why: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields-2.d.ts","sourceRoot":"","sources":["../../../../src/redaction/knownStrings/fields-2.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"fields-2.d.ts","sourceRoot":"","sources":["../../../../src/redaction/knownStrings/fields-2.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkHV,CAAC"}
|
|
@@ -253,6 +253,7 @@ export declare const words0: {
|
|
|
253
253
|
readonly decider: true;
|
|
254
254
|
readonly declaration: true;
|
|
255
255
|
readonly 'declaration-overclaimed': true;
|
|
256
|
+
readonly declared: true;
|
|
256
257
|
readonly 'declared-absence': true;
|
|
257
258
|
readonly 'declared-absent': true;
|
|
258
259
|
readonly default: true;
|
|
@@ -298,6 +299,5 @@ export declare const words0: {
|
|
|
298
299
|
readonly extract: true;
|
|
299
300
|
readonly fact: true;
|
|
300
301
|
readonly 'fact-extraction': true;
|
|
301
|
-
readonly failed: true;
|
|
302
302
|
};
|
|
303
303
|
//# sourceMappingURL=words-0.d.ts.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const words1: {
|
|
2
|
+
readonly failed: true;
|
|
2
3
|
readonly failure: true;
|
|
3
4
|
readonly fallback: true;
|
|
4
5
|
readonly filter: true;
|
|
5
6
|
readonly final: true;
|
|
6
7
|
readonly findings: true;
|
|
8
|
+
readonly fixed: true;
|
|
7
9
|
readonly flagged: true;
|
|
8
10
|
readonly fn: true;
|
|
9
11
|
readonly framework: true;
|
|
@@ -297,7 +299,5 @@ export declare const words1: {
|
|
|
297
299
|
readonly stale: true;
|
|
298
300
|
readonly 'stale-tools': true;
|
|
299
301
|
readonly stay: true;
|
|
300
|
-
readonly steering: true;
|
|
301
|
-
readonly 'step-nudge': true;
|
|
302
302
|
};
|
|
303
303
|
//# sourceMappingURL=words-1.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const words2: {
|
|
2
|
+
readonly steering: true;
|
|
3
|
+
readonly 'step-nudge': true;
|
|
2
4
|
readonly 'step-skipped': true;
|
|
3
5
|
readonly 'steps-unfinished': true;
|
|
4
6
|
readonly stop: true;
|
|
@@ -45,6 +47,7 @@ export declare const words2: {
|
|
|
45
47
|
readonly ttl: true;
|
|
46
48
|
readonly turn: true;
|
|
47
49
|
readonly unavailable: true;
|
|
50
|
+
readonly unbound: true;
|
|
48
51
|
readonly unchanged: true;
|
|
49
52
|
readonly uncheckable: true;
|
|
50
53
|
readonly unchecked: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"words-2.d.ts","sourceRoot":"","sources":["../../../../src/redaction/knownStrings/words-2.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"words-2.d.ts","sourceRoot":"","sources":["../../../../src/redaction/knownStrings/words-2.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "The explainable agent framework \u2014 backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"@modelcontextprotocol/sdk": "*",
|
|
397
397
|
"@opentelemetry/api": "*",
|
|
398
398
|
"@yarflam/potion-base-8m": "*",
|
|
399
|
-
"footprintjs": "^14.
|
|
399
|
+
"footprintjs": "^14.3.0",
|
|
400
400
|
"google-auth-library": "*",
|
|
401
401
|
"ioredis": "*",
|
|
402
402
|
"jose": "*",
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
"eslint": "^8.57.1",
|
|
513
513
|
"eslint-config-prettier": "^6.15.0",
|
|
514
514
|
"eslint-plugin-import": "^2.32.0",
|
|
515
|
-
"footprintjs": "^14.
|
|
515
|
+
"footprintjs": "^14.3.0",
|
|
516
516
|
"github-slugger": "^2.0.0",
|
|
517
517
|
"google-auth-library": "^11.0.1",
|
|
518
518
|
"jose": "^6.2.7",
|