@mindot/will 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +87 -22
  2. package/dist/channels/discord.d.ts +1 -1
  3. package/dist/channels/whatsapp.d.ts +1 -1
  4. package/dist/cli.js +10823 -10454
  5. package/dist/cli.js.map +1 -1
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +562 -226
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp/effectors.d.ts +1 -1
  10. package/dist/{will-DAW0l-lY.d.ts → will-cS6k4uiJ.d.ts} +470 -84
  11. package/package.json +1 -1
  12. package/src/cognition/agency/engines/action.selector.ts +2 -1
  13. package/src/cognition/agency/engines/reafference.engine.ts +12 -2
  14. package/src/cognition/agency/reconcile.learning.ts +16 -2
  15. package/src/cognition/agency/schemas/repertoire.ts +12 -5
  16. package/src/cognition/config.mirror.entities.ts +1 -1
  17. package/src/cognition/faculties/executive.engine/engine.ts +136 -58
  18. package/src/cognition/faculties/executive.engine/facet.ts +10 -2
  19. package/src/cognition/faculties/executive.engine/prompt.factory.ts +2 -1
  20. package/src/cognition/index.ts +4 -0
  21. package/src/cognition/memory/vector.embedder.ts +9 -5
  22. package/src/cognition/utilities/token.tracker.ts +191 -96
  23. package/src/host/boot.ts +78 -22
  24. package/src/index.ts +35 -0
  25. package/src/llm/index.ts +397 -96
  26. package/src/llm/routing.ts +198 -0
  27. package/src/llm/summarizer.ts +5 -1
  28. package/src/runners/thin-shim.runner.ts +18 -6
  29. package/src/sdk/will.ts +82 -16
  30. package/src/stem/guards/identity.coherence.ts +17 -6
  31. package/src/stem/index.ts +3 -3
  32. package/src/stem/mind.ts +155 -24
  33. package/src/stem/policy/arbiter.ts +49 -14
  34. package/src/stem/policy/rule.table.ts +2 -2
  35. package/src/stem/tracts/effector.controller.ts +56 -9
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OutboundEnvelope, A as AckResult, a as ExternalTransport, I as InboundEnvelope, T as TransportStatus, S as SimulationContext, b as SeededPRNG, c as SimulationEntity, d as Timestamp, e as SimulationEvent, f as StateManager, g as Tick, h as SimulationState, R as RestoreOptions, i as StateCommands, j as ReasoningFootprint, k as ReadonlySimulationState, C as ConflictReport, l as ConflictStrategy, m as ConflictResolution } from './will-DAW0l-lY.js';
2
- export { n as AckEnvelope, o as ActionRequest, p as ActionResult, q as ActionSelector, r as ActivityEnvelope, s as ActivityEvent, t as ActivityEventHandler, u as AestheticEvaluator, v as AestheticEvaluatorConfig, w as AffectiveBlender, x as AffectiveBlenderConfig, y as AffordanceSynthesizer, z as AsyncEngine, B as AsyncEngineConfig, D as AttachmentEvaluator, F as AttachmentEvaluatorConfig, G as AttentionAllocator, H as AttentionAllocatorConfig, J as AuditionEngine, K as AutobiographicalNarrator, L as AutobiographicalNarratorConfig, M as BehavioralProbeResult, N as BiasDetector, P as BiasDetectorConfig, Q as BunStorageAdapter, U as ChunkEnvelope, V as CircadianConfig, X as CircadianOscillator, Y as ClockConfig, Z as Cognition, _ as CognitiveHealth, $ as ConfidenceCalibrator, a0 as ConfidenceCalibratorConfig, a1 as Coordinates, a2 as CreateWillOptions, a3 as DefaultEventBus, a4 as DefaultMetricCollector, a5 as DefaultOrchestrator, a6 as DefaultReplayRecorder, a7 as DefaultReplaySession, a8 as DefaultScenario, a9 as DefaultSerializer, aa as DefaultSimulation, ab as DefaultSimulationClock, ac as DefaultStateManager, ad as DefaultVectorMemoryAdapter, ae as DeliberationEngine, af as DeltaEncoder, ag as DeltaSnapshot, ah as DreamSimulator, ai as DreamSimulatorConfig, aj as Duration, ak as EffectorDeclaration, al as EffectorEntry, E as EffectorHandler, am as EffectorResult, an as EffectorSpec, ao as EmbeddingProvider, ap as EmpathySimulator, aq as EmpathySimulatorConfig, ar as EnergyRegulator, as as EnergyRegulatorConfig, at as EngineRegistry, au as EngineResult, av as Envelope, aw as EpisodicConsolidator, ax as EpisodicConsolidatorConfig, ay as EventBus, az as EventBusConfig, aA as EventFilter, aB as EventHandler, aC as EventPayload, aD as ExecutiveEngine, aE as ExecutiveEngineConfig, aF as Exteroception, aG as ExteroceptionConfig, aH as ForgettingCurve, aI as ForgettingCurveConfig, aJ as FrustrationEvaluator, aK as FrustrationEvaluatorConfig, aL as GoalManager, aM as GoalManagerConfig, aN as GustationEngine, aO as InboundMessageEnvelope, aP as InboundPerceptEnvelope, aQ as InhibitionController, aR as InhibitionControllerConfig, aS as Interoception, aT as InteroceptionConfig, aU as IntrospectionEngine, aV as IntrospectionEngineConfig, aW as KnownEntityTracker, aX as KnownEntityTrackerConfig, aY as LLMCompletionRecord, aZ as LLMCompletionSink, a_ as LossEvaluator, a$ as LossEvaluatorConfig, b0 as MessageEnvelope, b1 as MetricCollector, b2 as MetricPoint, b3 as MinimalContext, b4 as MockEmbedder, b5 as MoralEvaluator, b6 as MoralEvaluatorConfig, b7 as MotorSchemaExecutor, b8 as NoveltyDetector, b9 as NoveltyDetectorConfig, ba as OlfactionEngine, bb as OpenAICompatibleEmbedder, bc as Orchestrator, bd as OrchestratorConfig, be as OutboxMessage, bf as PMABehavioral, bg as PMABelief, bh as PMAEmotionalBaseline, bi as PMAEvalHarness, bj as PMAGoal, bk as PMAIdentity, bl as PMAProbe, bm as PMASnapshot, bn as PerceptEnvelope, bo as PersonaConsolidator, bp as PersonaConsolidatorConfig, bq as PlanningEngine, br as PlanningEngineConfig, bs as ReafferenceEngine, bt as ReconstructionFidelityReport, bu as ReconstructionFidelityScores, bv as RecordUsageInput, bw as ReplayComparison, bx as ReplayConfig, by as ReplayDifference, bz as ReplayManager, bA as ReplayMetadata, bB as ReplayRecord, bC as ReplayRecorder, bD as ReplaySession, bE as ReplyEnvelope, bF as ReputationTracker, bG as ReputationTrackerConfig, bH as RewardEvaluator, bI as RewardEvaluatorConfig, bJ as Scenario, bK as ScenarioConfig, bL as ScenarioValidationResult, bM as SchemaPrecondition, bN as SelfModelUpdater, bO as SelfModelUpdaterConfig, bP as SemanticIntegrator, bQ as SemanticIntegratorConfig, bR as SensoryInput, bS as SerializationConfig, bT as SerializationFormat, bU as SerializedEntity, bV as SerializedState, bW as Serializer, bX as SessionLogEnvelope, bY as Simulation, bZ as SimulationClock, b_ as SimulationConfig, b$ as SimulationEngine, c0 as SimulationEventBase, c1 as SimulationEventListener, c2 as SleepPressureConfig, c3 as SleepPressureRegulator, c4 as SocialPerception, c5 as SocialPerceptionConfig, c6 as SomatosensationEngine, c7 as SpacedRepetition, c8 as SpacedRepetitionConfig, c9 as StateSnapshot, ca as Stimulus, cb as StorageAdapter, cc as StressRegulator, cd as StressRegulatorConfig, ce as TaskSwitcher, cf as TaskSwitcherConfig, cg as TextMessage, ch as TheoryOfMind, ci as TheoryOfMindConfig, cj as ThreatEvaluator, ck as ThreatEvaluatorConfig, cl as TickListener, cm as TokenLedgerRecord, cn as TokenReportEnvelope, co as TokenTracker, cp as TokenTrackerConfig, cq as TokenUsage, cr as VectorIndex, cs as VectorMemoryAdapter, ct as VectorMemoryConfig, cu as VectorQueryFilter, cv as VectorQueryResult, cw as VectorRecord, cx as VisionEngine, cy as VoiceChunk, W as Will, cz as WillAffect, cA as WillConfig, cB as WillEffectorAct, cC as WillInstance, cD as WillMessage, cE as WillStateSummary, cF as WillStatus, cG as WillStem, cH as WillSummary, cI as WorkingMemory, cJ as WorkingMemoryConfig, cK as WorldEntity, cL as WorldInterface, cM as assembleMind, cN as clearCompletionRecorder, cO as effectorInvocation, cP as effectorInvocationEnvelope, cQ as getCompletionRecorder, cR as resolvePricing, cS as setCompletionRecorder } from './will-DAW0l-lY.js';
1
+ import { O as OutboundEnvelope, A as AckResult, a as ExternalTransport, I as InboundEnvelope, T as TransportStatus, S as SimulationContext, b as SeededPRNG, c as SimulationEntity, d as Timestamp, e as SimulationEvent, f as StateManager, g as Tick, h as SimulationState, R as RestoreOptions, i as StateCommands, j as ReasoningFootprint, k as ReadonlySimulationState, C as ConflictReport, l as ConflictStrategy, m as ConflictResolution } from './will-cS6k4uiJ.js';
2
+ export { n as AckEnvelope, o as ActionRequest, p as ActionResult, q as ActionSelector, r as ActivityEnvelope, s as ActivityEvent, t as ActivityEventHandler, u as AestheticEvaluator, v as AestheticEvaluatorConfig, w as AffectiveBlender, x as AffectiveBlenderConfig, y as AffordanceSynthesizer, z as AsyncEngine, B as AsyncEngineConfig, D as AttachmentEvaluator, F as AttachmentEvaluatorConfig, G as AttentionAllocator, H as AttentionAllocatorConfig, J as AuditionEngine, K as AutobiographicalNarrator, L as AutobiographicalNarratorConfig, M as BACKGROUND_DEMAND, N as BehavioralProbeResult, P as BiasDetector, Q as BiasDetectorConfig, U as BunStorageAdapter, V as ChunkEnvelope, X as CircadianConfig, Y as CircadianOscillator, Z as ClockConfig, _ as Cognition, $ as CognitiveHealth, a0 as ConfidenceCalibrator, a1 as ConfidenceCalibratorConfig, a2 as Coordinates, a3 as CreateWillOptions, a4 as DefaultEventBus, a5 as DefaultMetricCollector, a6 as DefaultOrchestrator, a7 as DefaultReplayRecorder, a8 as DefaultReplaySession, a9 as DefaultScenario, aa as DefaultSerializer, ab as DefaultSimulation, ac as DefaultSimulationClock, ad as DefaultStateManager, ae as DefaultVectorMemoryAdapter, af as DeliberationEngine, ag as DeltaEncoder, ah as DeltaSnapshot, ai as DreamSimulator, aj as DreamSimulatorConfig, ak as Duration, al as ESCALATION_DEMAND, am as EffectorDeclaration, an as EffectorEntry, E as EffectorHandler, ao as EffectorResult, ap as EffectorSpec, aq as EmbeddingProvider, ar as EmpathySimulator, as as EmpathySimulatorConfig, at as EnergyRegulator, au as EnergyRegulatorConfig, av as EngineRegistry, aw as EngineResult, ax as Envelope, ay as EpisodicConsolidator, az as EpisodicConsolidatorConfig, aA as EventBus, aB as EventBusConfig, aC as EventFilter, aD as EventHandler, aE as EventPayload, aF as ExecutiveEngine, aG as ExecutiveEngineConfig, aH as Exteroception, aI as ExteroceptionConfig, aJ as ForgettingCurve, aK as ForgettingCurveConfig, aL as FrustrationEvaluator, aM as FrustrationEvaluatorConfig, aN as GoalManager, aO as GoalManagerConfig, aP as GustationEngine, aQ as InboundMessageEnvelope, aR as InboundPerceptEnvelope, aS as InhibitionController, aT as InhibitionControllerConfig, aU as Interoception, aV as InteroceptionConfig, aW as IntrospectionEngine, aX as IntrospectionEngineConfig, aY as KNOWN_PROVIDERS, aZ as KnownEntityTracker, a_ as KnownEntityTrackerConfig, a$ as KnownProvider, b0 as LLMCallMeta, b1 as LLMCompletionRecord, b2 as LLMCompletionSink, b3 as LLMProvider, b4 as LLMWire, b5 as LossEvaluator, b6 as LossEvaluatorConfig, b7 as MessageEnvelope, b8 as MetricCollector, b9 as MetricPoint, ba as MinimalContext, bb as MockEmbedder, bc as ModelPrice, bd as ModelRoute, be as ModelRouter, bf as MoralEvaluator, bg as MoralEvaluatorConfig, bh as MotorSchemaExecutor, bi as NULL_ROUTER, bj as NoveltyDetector, bk as NoveltyDetectorConfig, bl as OlfactionEngine, bm as OpenAICompatibleEmbedder, bn as Orchestrator, bo as OrchestratorConfig, bp as OutboxMessage, bq as PMABehavioral, br as PMABelief, bs as PMAEmotionalBaseline, bt as PMAEvalHarness, bu as PMAGoal, bv as PMAIdentity, bw as PMAProbe, bx as PMASnapshot, by as PerceptEnvelope, bz as PersonaConsolidator, bA as PersonaConsolidatorConfig, bB as PlanningEngine, bC as PlanningEngineConfig, bD as PriceTable, bE as ProviderCredential, bF as ReafferenceEngine, bG as ReconstructionFidelityReport, bH as ReconstructionFidelityScores, bI as RecordUsageInput, bJ as ReplayComparison, bK as ReplayConfig, bL as ReplayDifference, bM as ReplayManager, bN as ReplayMetadata, bO as ReplayRecord, bP as ReplayRecorder, bQ as ReplaySession, bR as ReplyEnvelope, bS as ReputationTracker, bT as ReputationTrackerConfig, bU as RewardEvaluator, bV as RewardEvaluatorConfig, bW as RoutingRule, bX as Scenario, bY as ScenarioConfig, bZ as ScenarioValidationResult, b_ as SchemaPrecondition, b$ as SelfModelUpdater, c0 as SelfModelUpdaterConfig, c1 as SemanticIntegrator, c2 as SemanticIntegratorConfig, c3 as SensoryInput, c4 as SerializationConfig, c5 as SerializationFormat, c6 as SerializedEntity, c7 as SerializedState, c8 as Serializer, c9 as SessionLogEnvelope, ca as Simulation, cb as SimulationClock, cc as SimulationConfig, cd as SimulationEngine, ce as SimulationEventBase, cf as SimulationEventListener, cg as SleepPressureConfig, ch as SleepPressureRegulator, ci as SocialPerception, cj as SocialPerceptionConfig, ck as SomatosensationEngine, cl as SpacedRepetition, cm as SpacedRepetitionConfig, cn as StateSnapshot, co as Stimulus, cp as StorageAdapter, cq as StressRegulator, cr as StressRegulatorConfig, cs as TableRouter, ct as TaskSwitcher, cu as TaskSwitcherConfig, cv as TextMessage, cw as TheoryOfMind, cx as TheoryOfMindConfig, cy as ThreatEvaluator, cz as ThreatEvaluatorConfig, cA as TickListener, cB as TokenLedgerRecord, cC as TokenReportEnvelope, cD as TokenTracker, cE as TokenTrackerConfig, cF as TokenUsage, cG as VectorIndex, cH as VectorMemoryAdapter, cI as VectorMemoryConfig, cJ as VectorQueryFilter, cK as VectorQueryResult, cL as VectorRecord, cM as VisionEngine, cN as VoiceChunk, W as Will, cO as WillAffect, cP as WillConfig, cQ as WillEffectorAct, cR as WillInstance, cS as WillMessage, cT as WillStateSummary, cU as WillStatus, cV as WillStem, cW as WillSummary, cX as WorkingMemory, cY as WorkingMemoryConfig, cZ as WorldEntity, c_ as WorldInterface, c$ as assembleMind, d0 as chainRouters, d1 as clearCompletionRecorder, d2 as defaultBaseFor, d3 as effectorInvocation, d4 as effectorInvocationEnvelope, d5 as getCompletionRecorder, d6 as isNullRouter, d7 as knownWireFor, d8 as resolvePricing, d9 as setCompletionRecorder } from './will-cS6k4uiJ.js';
3
3
 
4
4
  /** Decides how emit() resolves an ack for a given envelope. Default: acked via callback. */
5
5
  type AckPolicy = (env: OutboundEnvelope) => AckResult;