@directive-run/ai 0.8.6 → 0.8.8

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 (64) hide show
  1. package/README.md +7 -0
  2. package/dist/anthropic.cjs +2 -3
  3. package/dist/anthropic.cjs.map +1 -1
  4. package/dist/anthropic.d.cts +1 -1
  5. package/dist/anthropic.d.ts +1 -1
  6. package/dist/anthropic.js +2 -3
  7. package/dist/anthropic.js.map +1 -1
  8. package/dist/chunk-265ZKXYE.js +3 -0
  9. package/dist/chunk-265ZKXYE.js.map +1 -0
  10. package/dist/chunk-7EJPXKDP.js +50 -0
  11. package/dist/chunk-7EJPXKDP.js.map +1 -0
  12. package/dist/chunk-B4ATEGA2.cjs +50 -0
  13. package/dist/chunk-B4ATEGA2.cjs.map +1 -0
  14. package/dist/chunk-MNYANBNX.js +14 -0
  15. package/dist/chunk-MNYANBNX.js.map +1 -0
  16. package/dist/chunk-QXMXSHYS.cjs +3 -0
  17. package/dist/chunk-QXMXSHYS.cjs.map +1 -0
  18. package/dist/chunk-W6MVJKWN.cjs +3 -0
  19. package/dist/chunk-W6MVJKWN.cjs.map +1 -0
  20. package/dist/chunk-W6WZBQER.js +3 -0
  21. package/dist/chunk-W6WZBQER.js.map +1 -0
  22. package/dist/chunk-WCJFIC22.cjs +14 -0
  23. package/dist/chunk-WCJFIC22.cjs.map +1 -0
  24. package/dist/gemini.cjs +2 -3
  25. package/dist/gemini.cjs.map +1 -1
  26. package/dist/gemini.d.cts +1 -1
  27. package/dist/gemini.d.ts +1 -1
  28. package/dist/gemini.js +2 -3
  29. package/dist/gemini.js.map +1 -1
  30. package/dist/index.cjs +30 -89
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +194 -27
  33. package/dist/index.d.ts +194 -27
  34. package/dist/index.js +30 -89
  35. package/dist/index.js.map +1 -1
  36. package/dist/multi-agent-orchestrator-FEHVHZXA.js +2 -0
  37. package/dist/multi-agent-orchestrator-FEHVHZXA.js.map +1 -0
  38. package/dist/multi-agent-orchestrator-QWJNM4EZ.cjs +2 -0
  39. package/dist/multi-agent-orchestrator-QWJNM4EZ.cjs.map +1 -0
  40. package/dist/ollama.cjs +2 -2
  41. package/dist/ollama.cjs.map +1 -1
  42. package/dist/ollama.d.cts +1 -1
  43. package/dist/ollama.d.ts +1 -1
  44. package/dist/ollama.js +2 -2
  45. package/dist/ollama.js.map +1 -1
  46. package/dist/openai.cjs +2 -3
  47. package/dist/openai.cjs.map +1 -1
  48. package/dist/openai.d.cts +2 -2
  49. package/dist/openai.d.ts +2 -2
  50. package/dist/openai.js +2 -3
  51. package/dist/openai.js.map +1 -1
  52. package/dist/{multi-agent-orchestrator-DHp8gHXi.d.ts → orchestrator-types-DryFJyW9.d.ts} +6 -142
  53. package/dist/{multi-agent-orchestrator-C3VKkLzg.d.cts → orchestrator-types-tATJCBi5.d.cts} +6 -142
  54. package/dist/{semantic-cache-F0psCRuz.d.cts → semantic-cache-nBpQqILc.d.cts} +5 -5
  55. package/dist/{semantic-cache-F0psCRuz.d.ts → semantic-cache-nBpQqILc.d.ts} +5 -5
  56. package/dist/testing.cjs +1 -48
  57. package/dist/testing.cjs.map +1 -1
  58. package/dist/testing.d.cts +2 -2
  59. package/dist/testing.d.ts +2 -2
  60. package/dist/testing.js +1 -48
  61. package/dist/testing.js.map +1 -1
  62. package/dist/{types-BM-6xZf_.d.cts → types-CRmwFnVk.d.cts} +1 -1
  63. package/dist/{types-BM-6xZf_.d.ts → types-CRmwFnVk.d.ts} +1 -1
  64. package/package.json +3 -3
@@ -1453,4 +1453,4 @@ interface CheckpointDiff {
1453
1453
  nodesCompleted?: string[];
1454
1454
  }
1455
1455
 
1456
- export { type CrossAgentDerivationFn as $, type AgentLike as A, type BreakpointState as B, type BreakpointContext as C, type DagNode as D, type BreakpointHitEvent as E, type BreakpointModifications as F, type GuardrailFn as G, type BreakpointRequest as H, type InputGuardrailData as I, type BreakpointResumedEvent as J, type BreakpointState$1 as K, type BreakpointType as L, type Message as M, type Checkpoint as N, type OutputGuardrailData as O, type PatternCheckpointConfig as P, type CheckpointContext as Q, type RelaxationTier as R, type SchemaValidator as S, type ToolCallGuardrailData as T, type CheckpointDiff as U, type CheckpointLocalState as V, type CheckpointProgress as W, type CheckpointRestoreEvent as X, type CheckpointSaveEvent as Y, type CheckpointStore as Z, type ConstraintEvaluateEvent as _, type AdapterHooks as a, type TaskProgressEvent as a$, type CrossAgentSnapshot as a0, type DagCheckpointState as a1, type DagNodeStatus as a2, type DagNodeUpdateEvent as a3, type DebateCheckpointState as a4, type DebateRoundEvent as a5, type DebugEventBase as a6, type DebugEventType as a7, type DerivationUpdateEvent as a8, type GoalCheckpointConfig as a9, type PatternCheckpointState as aA, type PatternCompleteEvent as aB, type PatternStartEvent as aC, type RaceCancelledEvent as aD, type RaceStartEvent as aE, type RaceWinnerEvent as aF, type ReflectCheckpointState as aG, type ReflectionIterationEvent as aH, type RejectedRequest as aI, type RelaxationContext as aJ, type RelaxationRecord as aK, type RelaxationStrategy as aL, type RerouteDebugEvent as aM, type RerouteEvent as aN, type ResolverCompleteEvent as aO, type ResolverErrorEvent as aP, type ResolverStartEvent as aQ, type SchemaValidationResult as aR, type Scratchpad as aS, type ScratchpadUpdateEvent as aT, type SelfHealingConfig as aU, type SequentialCheckpointState as aV, type SingleAgentCheckpointLocalState as aW, type StreamingCallbackRunner as aX, type SupervisorCheckpointState as aY, type TaskCompleteEvent as aZ, type TaskErrorEvent as a_, type GoalCheckpointState as aa, type GoalStepMetrics as ab, type GuardrailCheckEvent as ac, type GuardrailContext as ad, GuardrailError as ae, type GuardrailErrorCode as af, type GuardrailResult as ag, type GuardrailRetryConfig as ah, type GuardrailsConfig as ai, type HandoffCompleteEvent as aj, type HandoffStartEvent as ak, type HealthMonitorConfig as al, InMemoryCheckpointStore as am, type InMemoryCheckpointStoreOptions as an, MAX_BREAKPOINT_HISTORY as ao, type MultiAgentBreakpointType as ap, type MultiAgentCheckpointLocalState as aq, type MultiAgentLifecycleHooks as ar, type MultiAgentSelfHealingConfig as as, type NamedGuardrail as at, type OrchestratorDebugConfig as au, type OrchestratorLifecycleHooks as av, type OrchestratorResolver as aw, type OrchestratorResolverContext as ax, type OrchestratorState as ay, type PatternCheckpointBase as az, type AgentRunner as b, type TaskStartEvent as b0, type TokenUsage as b1, type ToolCall as b2, createBreakpointId as b3, createCheckpointId as b4, createInitialBreakpointState as b5, isGuardrailError as b6, matchBreakpoint as b7, validateCheckpoint as b8, type ApprovalState as c, type AgentState as d, type AgentSelectionStrategy as e, type DagExecutionContext as f, type DagPattern as g, type GoalNode as h, type GoalMetrics as i, type GoalPattern as j, type RunResult as k, type OrchestratorConstraint as l, type RunOptions as m, type DebugEvent as n, type GoalResult as o, type AgentCircuitBreakerConfig as p, type AgentCompleteEvent as q, type AgentErrorEvent as r, type AgentHealthState as s, type AgentRetryConfig as t, type AgentRetryEvent as u, type AgentStartEvent as v, type ApprovalRequest as w, type ApprovalRequestEvent as x, type ApprovalResponseEvent as y, type BreakpointConfig as z };
1456
+ export { type ConstraintEvaluateEvent as $, type AgentLike as A, type BreakpointState as B, type CheckpointDiff as C, type DagNode as D, type ApprovalRequestEvent as E, type ApprovalResponseEvent as F, type GuardrailFn as G, type BreakpointConfig as H, type InputGuardrailData as I, type BreakpointContext as J, type BreakpointHitEvent as K, type BreakpointModifications as L, type Message as M, type BreakpointRequest as N, type OutputGuardrailData as O, type PatternCheckpointState as P, type BreakpointResumedEvent as Q, type RelaxationTier as R, type SchemaValidator as S, type ToolCallGuardrailData as T, type BreakpointState$1 as U, type BreakpointType as V, type Checkpoint as W, type CheckpointContext as X, type CheckpointLocalState as Y, type CheckpointRestoreEvent as Z, type CheckpointSaveEvent as _, type AdapterHooks as a, type TaskProgressEvent as a$, type CrossAgentDerivationFn as a0, type CrossAgentSnapshot as a1, type DagCheckpointState as a2, type DagNodeStatus as a3, type DagNodeUpdateEvent as a4, type DebateCheckpointState as a5, type DebateRoundEvent as a6, type DebugEventBase as a7, type DebugEventType as a8, type DerivationUpdateEvent as a9, type PatternCheckpointBase as aA, type PatternCompleteEvent as aB, type PatternStartEvent as aC, type RaceCancelledEvent as aD, type RaceStartEvent as aE, type RaceWinnerEvent as aF, type ReflectCheckpointState as aG, type ReflectionIterationEvent as aH, type RejectedRequest as aI, type RelaxationContext as aJ, type RelaxationRecord as aK, type RelaxationStrategy as aL, type RerouteDebugEvent as aM, type RerouteEvent as aN, type ResolverCompleteEvent as aO, type ResolverErrorEvent as aP, type ResolverStartEvent as aQ, type SchemaValidationResult as aR, type Scratchpad as aS, type ScratchpadUpdateEvent as aT, type SelfHealingConfig as aU, type SequentialCheckpointState as aV, type SingleAgentCheckpointLocalState as aW, type StreamingCallbackRunner as aX, type SupervisorCheckpointState as aY, type TaskCompleteEvent as aZ, type TaskErrorEvent as a_, type GoalCheckpointConfig as aa, type GoalCheckpointState as ab, type GoalStepMetrics as ac, type GuardrailCheckEvent as ad, type GuardrailContext as ae, GuardrailError as af, type GuardrailErrorCode as ag, type GuardrailResult as ah, type GuardrailRetryConfig as ai, type GuardrailsConfig as aj, type HandoffCompleteEvent as ak, type HandoffStartEvent as al, type HealthMonitorConfig as am, InMemoryCheckpointStore as an, type InMemoryCheckpointStoreOptions as ao, MAX_BREAKPOINT_HISTORY as ap, type MultiAgentBreakpointType as aq, type MultiAgentCheckpointLocalState as ar, type MultiAgentLifecycleHooks as as, type MultiAgentSelfHealingConfig as at, type NamedGuardrail as au, type OrchestratorDebugConfig as av, type OrchestratorLifecycleHooks as aw, type OrchestratorResolver as ax, type OrchestratorResolverContext as ay, type OrchestratorState as az, type AgentRunner as b, type TaskStartEvent as b0, type TokenUsage as b1, type ToolCall as b2, createBreakpointId as b3, createCheckpointId as b4, createInitialBreakpointState as b5, isGuardrailError as b6, matchBreakpoint as b7, validateCheckpoint as b8, type ApprovalState as c, type AgentState as d, type CheckpointStore as e, type CheckpointProgress as f, type AgentSelectionStrategy as g, type DagExecutionContext as h, type DagPattern as i, type GoalNode as j, type GoalMetrics as k, type PatternCheckpointConfig as l, type GoalPattern as m, type RunResult as n, type OrchestratorConstraint as o, type RunOptions as p, type DebugEvent as q, type GoalResult as r, type AgentCircuitBreakerConfig as s, type AgentCompleteEvent as t, type AgentErrorEvent as u, type AgentHealthState as v, type AgentRetryConfig as w, type AgentRetryEvent as x, type AgentStartEvent as y, type ApprovalRequest as z };
@@ -1453,4 +1453,4 @@ interface CheckpointDiff {
1453
1453
  nodesCompleted?: string[];
1454
1454
  }
1455
1455
 
1456
- export { type CrossAgentDerivationFn as $, type AgentLike as A, type BreakpointState as B, type BreakpointContext as C, type DagNode as D, type BreakpointHitEvent as E, type BreakpointModifications as F, type GuardrailFn as G, type BreakpointRequest as H, type InputGuardrailData as I, type BreakpointResumedEvent as J, type BreakpointState$1 as K, type BreakpointType as L, type Message as M, type Checkpoint as N, type OutputGuardrailData as O, type PatternCheckpointConfig as P, type CheckpointContext as Q, type RelaxationTier as R, type SchemaValidator as S, type ToolCallGuardrailData as T, type CheckpointDiff as U, type CheckpointLocalState as V, type CheckpointProgress as W, type CheckpointRestoreEvent as X, type CheckpointSaveEvent as Y, type CheckpointStore as Z, type ConstraintEvaluateEvent as _, type AdapterHooks as a, type TaskProgressEvent as a$, type CrossAgentSnapshot as a0, type DagCheckpointState as a1, type DagNodeStatus as a2, type DagNodeUpdateEvent as a3, type DebateCheckpointState as a4, type DebateRoundEvent as a5, type DebugEventBase as a6, type DebugEventType as a7, type DerivationUpdateEvent as a8, type GoalCheckpointConfig as a9, type PatternCheckpointState as aA, type PatternCompleteEvent as aB, type PatternStartEvent as aC, type RaceCancelledEvent as aD, type RaceStartEvent as aE, type RaceWinnerEvent as aF, type ReflectCheckpointState as aG, type ReflectionIterationEvent as aH, type RejectedRequest as aI, type RelaxationContext as aJ, type RelaxationRecord as aK, type RelaxationStrategy as aL, type RerouteDebugEvent as aM, type RerouteEvent as aN, type ResolverCompleteEvent as aO, type ResolverErrorEvent as aP, type ResolverStartEvent as aQ, type SchemaValidationResult as aR, type Scratchpad as aS, type ScratchpadUpdateEvent as aT, type SelfHealingConfig as aU, type SequentialCheckpointState as aV, type SingleAgentCheckpointLocalState as aW, type StreamingCallbackRunner as aX, type SupervisorCheckpointState as aY, type TaskCompleteEvent as aZ, type TaskErrorEvent as a_, type GoalCheckpointState as aa, type GoalStepMetrics as ab, type GuardrailCheckEvent as ac, type GuardrailContext as ad, GuardrailError as ae, type GuardrailErrorCode as af, type GuardrailResult as ag, type GuardrailRetryConfig as ah, type GuardrailsConfig as ai, type HandoffCompleteEvent as aj, type HandoffStartEvent as ak, type HealthMonitorConfig as al, InMemoryCheckpointStore as am, type InMemoryCheckpointStoreOptions as an, MAX_BREAKPOINT_HISTORY as ao, type MultiAgentBreakpointType as ap, type MultiAgentCheckpointLocalState as aq, type MultiAgentLifecycleHooks as ar, type MultiAgentSelfHealingConfig as as, type NamedGuardrail as at, type OrchestratorDebugConfig as au, type OrchestratorLifecycleHooks as av, type OrchestratorResolver as aw, type OrchestratorResolverContext as ax, type OrchestratorState as ay, type PatternCheckpointBase as az, type AgentRunner as b, type TaskStartEvent as b0, type TokenUsage as b1, type ToolCall as b2, createBreakpointId as b3, createCheckpointId as b4, createInitialBreakpointState as b5, isGuardrailError as b6, matchBreakpoint as b7, validateCheckpoint as b8, type ApprovalState as c, type AgentState as d, type AgentSelectionStrategy as e, type DagExecutionContext as f, type DagPattern as g, type GoalNode as h, type GoalMetrics as i, type GoalPattern as j, type RunResult as k, type OrchestratorConstraint as l, type RunOptions as m, type DebugEvent as n, type GoalResult as o, type AgentCircuitBreakerConfig as p, type AgentCompleteEvent as q, type AgentErrorEvent as r, type AgentHealthState as s, type AgentRetryConfig as t, type AgentRetryEvent as u, type AgentStartEvent as v, type ApprovalRequest as w, type ApprovalRequestEvent as x, type ApprovalResponseEvent as y, type BreakpointConfig as z };
1456
+ export { type ConstraintEvaluateEvent as $, type AgentLike as A, type BreakpointState as B, type CheckpointDiff as C, type DagNode as D, type ApprovalRequestEvent as E, type ApprovalResponseEvent as F, type GuardrailFn as G, type BreakpointConfig as H, type InputGuardrailData as I, type BreakpointContext as J, type BreakpointHitEvent as K, type BreakpointModifications as L, type Message as M, type BreakpointRequest as N, type OutputGuardrailData as O, type PatternCheckpointState as P, type BreakpointResumedEvent as Q, type RelaxationTier as R, type SchemaValidator as S, type ToolCallGuardrailData as T, type BreakpointState$1 as U, type BreakpointType as V, type Checkpoint as W, type CheckpointContext as X, type CheckpointLocalState as Y, type CheckpointRestoreEvent as Z, type CheckpointSaveEvent as _, type AdapterHooks as a, type TaskProgressEvent as a$, type CrossAgentDerivationFn as a0, type CrossAgentSnapshot as a1, type DagCheckpointState as a2, type DagNodeStatus as a3, type DagNodeUpdateEvent as a4, type DebateCheckpointState as a5, type DebateRoundEvent as a6, type DebugEventBase as a7, type DebugEventType as a8, type DerivationUpdateEvent as a9, type PatternCheckpointBase as aA, type PatternCompleteEvent as aB, type PatternStartEvent as aC, type RaceCancelledEvent as aD, type RaceStartEvent as aE, type RaceWinnerEvent as aF, type ReflectCheckpointState as aG, type ReflectionIterationEvent as aH, type RejectedRequest as aI, type RelaxationContext as aJ, type RelaxationRecord as aK, type RelaxationStrategy as aL, type RerouteDebugEvent as aM, type RerouteEvent as aN, type ResolverCompleteEvent as aO, type ResolverErrorEvent as aP, type ResolverStartEvent as aQ, type SchemaValidationResult as aR, type Scratchpad as aS, type ScratchpadUpdateEvent as aT, type SelfHealingConfig as aU, type SequentialCheckpointState as aV, type SingleAgentCheckpointLocalState as aW, type StreamingCallbackRunner as aX, type SupervisorCheckpointState as aY, type TaskCompleteEvent as aZ, type TaskErrorEvent as a_, type GoalCheckpointConfig as aa, type GoalCheckpointState as ab, type GoalStepMetrics as ac, type GuardrailCheckEvent as ad, type GuardrailContext as ae, GuardrailError as af, type GuardrailErrorCode as ag, type GuardrailResult as ah, type GuardrailRetryConfig as ai, type GuardrailsConfig as aj, type HandoffCompleteEvent as ak, type HandoffStartEvent as al, type HealthMonitorConfig as am, InMemoryCheckpointStore as an, type InMemoryCheckpointStoreOptions as ao, MAX_BREAKPOINT_HISTORY as ap, type MultiAgentBreakpointType as aq, type MultiAgentCheckpointLocalState as ar, type MultiAgentLifecycleHooks as as, type MultiAgentSelfHealingConfig as at, type NamedGuardrail as au, type OrchestratorDebugConfig as av, type OrchestratorLifecycleHooks as aw, type OrchestratorResolver as ax, type OrchestratorResolverContext as ay, type OrchestratorState as az, type AgentRunner as b, type TaskStartEvent as b0, type TokenUsage as b1, type ToolCall as b2, createBreakpointId as b3, createCheckpointId as b4, createInitialBreakpointState as b5, isGuardrailError as b6, matchBreakpoint as b7, validateCheckpoint as b8, type ApprovalState as c, type AgentState as d, type CheckpointStore as e, type CheckpointProgress as f, type AgentSelectionStrategy as g, type DagExecutionContext as h, type DagPattern as i, type GoalNode as j, type GoalMetrics as k, type PatternCheckpointConfig as l, type GoalPattern as m, type RunResult as n, type OrchestratorConstraint as o, type RunOptions as p, type DebugEvent as q, type GoalResult as r, type AgentCircuitBreakerConfig as s, type AgentCompleteEvent as t, type AgentErrorEvent as u, type AgentHealthState as v, type AgentRetryConfig as w, type AgentRetryEvent as x, type AgentStartEvent as y, type ApprovalRequest as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@directive-run/ai",
3
- "version": "0.8.6",
4
- "description": "AI guardrails and orchestration for TypeScript. Prompt injection, PII detection, cost tracking, multi-agent patterns. Zero SDK dependencies.",
3
+ "version": "0.8.8",
4
+ "description": "AI guardrails and orchestration for Directive. Prompt injection, PII detection, cost tracking, multi-agent patterns.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "author": "Jason Comes",
7
7
  "repository": {
@@ -85,7 +85,7 @@
85
85
  "@types/node": "^25.2.0",
86
86
  "tsup": "^8.3.5",
87
87
  "typescript": "^5.7.2",
88
- "@directive-run/core": "0.8.6"
88
+ "@directive-run/core": "0.8.8"
89
89
  },
90
90
  "scripts": {
91
91
  "build": "tsup",