@animalabs/agent-framework 0.1.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 (212) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +233 -0
  3. package/dist/src/agent.d.ts +130 -0
  4. package/dist/src/agent.d.ts.map +1 -0
  5. package/dist/src/agent.js +406 -0
  6. package/dist/src/agent.js.map +1 -0
  7. package/dist/src/api/mcp-server.d.ts +37 -0
  8. package/dist/src/api/mcp-server.d.ts.map +1 -0
  9. package/dist/src/api/mcp-server.js +598 -0
  10. package/dist/src/api/mcp-server.js.map +1 -0
  11. package/dist/src/api/server.d.ts +83 -0
  12. package/dist/src/api/server.d.ts.map +1 -0
  13. package/dist/src/api/server.js +785 -0
  14. package/dist/src/api/server.js.map +1 -0
  15. package/dist/src/api/types.d.ts +395 -0
  16. package/dist/src/api/types.d.ts.map +1 -0
  17. package/dist/src/api/types.js +5 -0
  18. package/dist/src/api/types.js.map +1 -0
  19. package/dist/src/framework.d.ts +309 -0
  20. package/dist/src/framework.d.ts.map +1 -0
  21. package/dist/src/framework.js +2309 -0
  22. package/dist/src/framework.js.map +1 -0
  23. package/dist/src/gate/event-gate.d.ts +75 -0
  24. package/dist/src/gate/event-gate.d.ts.map +1 -0
  25. package/dist/src/gate/event-gate.js +503 -0
  26. package/dist/src/gate/event-gate.js.map +1 -0
  27. package/dist/src/gate/index.d.ts +3 -0
  28. package/dist/src/gate/index.d.ts.map +1 -0
  29. package/dist/src/gate/index.js +2 -0
  30. package/dist/src/gate/index.js.map +1 -0
  31. package/dist/src/gate/types.d.ts +82 -0
  32. package/dist/src/gate/types.d.ts.map +1 -0
  33. package/dist/src/gate/types.js +9 -0
  34. package/dist/src/gate/types.js.map +1 -0
  35. package/dist/src/index.d.ts +17 -0
  36. package/dist/src/index.d.ts.map +1 -0
  37. package/dist/src/index.js +18 -0
  38. package/dist/src/index.js.map +1 -0
  39. package/dist/src/mcpl/channel-registry.d.ts +141 -0
  40. package/dist/src/mcpl/channel-registry.d.ts.map +1 -0
  41. package/dist/src/mcpl/channel-registry.js +647 -0
  42. package/dist/src/mcpl/channel-registry.js.map +1 -0
  43. package/dist/src/mcpl/checkpoint-manager.d.ts +79 -0
  44. package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -0
  45. package/dist/src/mcpl/checkpoint-manager.js +430 -0
  46. package/dist/src/mcpl/checkpoint-manager.js.map +1 -0
  47. package/dist/src/mcpl/errors.d.ts +52 -0
  48. package/dist/src/mcpl/errors.d.ts.map +1 -0
  49. package/dist/src/mcpl/errors.js +93 -0
  50. package/dist/src/mcpl/errors.js.map +1 -0
  51. package/dist/src/mcpl/feature-set-manager.d.ts +91 -0
  52. package/dist/src/mcpl/feature-set-manager.d.ts.map +1 -0
  53. package/dist/src/mcpl/feature-set-manager.js +250 -0
  54. package/dist/src/mcpl/feature-set-manager.js.map +1 -0
  55. package/dist/src/mcpl/hook-orchestrator.d.ts +51 -0
  56. package/dist/src/mcpl/hook-orchestrator.d.ts.map +1 -0
  57. package/dist/src/mcpl/hook-orchestrator.js +217 -0
  58. package/dist/src/mcpl/hook-orchestrator.js.map +1 -0
  59. package/dist/src/mcpl/index.d.ts +14 -0
  60. package/dist/src/mcpl/index.d.ts.map +1 -0
  61. package/dist/src/mcpl/index.js +21 -0
  62. package/dist/src/mcpl/index.js.map +1 -0
  63. package/dist/src/mcpl/inference-router.d.ts +67 -0
  64. package/dist/src/mcpl/inference-router.d.ts.map +1 -0
  65. package/dist/src/mcpl/inference-router.js +249 -0
  66. package/dist/src/mcpl/inference-router.js.map +1 -0
  67. package/dist/src/mcpl/push-handler.d.ts +60 -0
  68. package/dist/src/mcpl/push-handler.d.ts.map +1 -0
  69. package/dist/src/mcpl/push-handler.js +162 -0
  70. package/dist/src/mcpl/push-handler.js.map +1 -0
  71. package/dist/src/mcpl/scope-manager.d.ts +76 -0
  72. package/dist/src/mcpl/scope-manager.d.ts.map +1 -0
  73. package/dist/src/mcpl/scope-manager.js +213 -0
  74. package/dist/src/mcpl/scope-manager.js.map +1 -0
  75. package/dist/src/mcpl/server-connection.d.ts +174 -0
  76. package/dist/src/mcpl/server-connection.d.ts.map +1 -0
  77. package/dist/src/mcpl/server-connection.js +559 -0
  78. package/dist/src/mcpl/server-connection.js.map +1 -0
  79. package/dist/src/mcpl/server-registry.d.ts +63 -0
  80. package/dist/src/mcpl/server-registry.d.ts.map +1 -0
  81. package/dist/src/mcpl/server-registry.js +119 -0
  82. package/dist/src/mcpl/server-registry.js.map +1 -0
  83. package/dist/src/mcpl/types.d.ts +755 -0
  84. package/dist/src/mcpl/types.d.ts.map +1 -0
  85. package/dist/src/mcpl/types.js +48 -0
  86. package/dist/src/mcpl/types.js.map +1 -0
  87. package/dist/src/module-registry.d.ts +93 -0
  88. package/dist/src/module-registry.d.ts.map +1 -0
  89. package/dist/src/module-registry.js +386 -0
  90. package/dist/src/module-registry.js.map +1 -0
  91. package/dist/src/modules/api/index.d.ts +22 -0
  92. package/dist/src/modules/api/index.d.ts.map +1 -0
  93. package/dist/src/modules/api/index.js +63 -0
  94. package/dist/src/modules/api/index.js.map +1 -0
  95. package/dist/src/modules/discord/discord-js-client.d.ts +58 -0
  96. package/dist/src/modules/discord/discord-js-client.d.ts.map +1 -0
  97. package/dist/src/modules/discord/discord-js-client.js +273 -0
  98. package/dist/src/modules/discord/discord-js-client.js.map +1 -0
  99. package/dist/src/modules/discord/index.d.ts +82 -0
  100. package/dist/src/modules/discord/index.d.ts.map +1 -0
  101. package/dist/src/modules/discord/index.js +959 -0
  102. package/dist/src/modules/discord/index.js.map +1 -0
  103. package/dist/src/modules/discord/types.d.ts +327 -0
  104. package/dist/src/modules/discord/types.d.ts.map +1 -0
  105. package/dist/src/modules/discord/types.js +5 -0
  106. package/dist/src/modules/discord/types.js.map +1 -0
  107. package/dist/src/modules/index.d.ts +11 -0
  108. package/dist/src/modules/index.d.ts.map +1 -0
  109. package/dist/src/modules/index.js +7 -0
  110. package/dist/src/modules/index.js.map +1 -0
  111. package/dist/src/modules/workspace/index.d.ts +59 -0
  112. package/dist/src/modules/workspace/index.d.ts.map +1 -0
  113. package/dist/src/modules/workspace/index.js +831 -0
  114. package/dist/src/modules/workspace/index.js.map +1 -0
  115. package/dist/src/modules/workspace/sync.d.ts +48 -0
  116. package/dist/src/modules/workspace/sync.d.ts.map +1 -0
  117. package/dist/src/modules/workspace/sync.js +253 -0
  118. package/dist/src/modules/workspace/sync.js.map +1 -0
  119. package/dist/src/modules/workspace/types.d.ts +166 -0
  120. package/dist/src/modules/workspace/types.d.ts.map +1 -0
  121. package/dist/src/modules/workspace/types.js +5 -0
  122. package/dist/src/modules/workspace/types.js.map +1 -0
  123. package/dist/src/modules/workspace/watcher.d.ts +43 -0
  124. package/dist/src/modules/workspace/watcher.d.ts.map +1 -0
  125. package/dist/src/modules/workspace/watcher.js +120 -0
  126. package/dist/src/modules/workspace/watcher.js.map +1 -0
  127. package/dist/src/queue.d.ts +50 -0
  128. package/dist/src/queue.d.ts.map +1 -0
  129. package/dist/src/queue.js +95 -0
  130. package/dist/src/queue.js.map +1 -0
  131. package/dist/src/safe-slice.d.ts +8 -0
  132. package/dist/src/safe-slice.d.ts.map +1 -0
  133. package/dist/src/safe-slice.js +18 -0
  134. package/dist/src/safe-slice.js.map +1 -0
  135. package/dist/src/types/agent.d.ts +118 -0
  136. package/dist/src/types/agent.d.ts.map +1 -0
  137. package/dist/src/types/agent.js +2 -0
  138. package/dist/src/types/agent.js.map +1 -0
  139. package/dist/src/types/events.d.ts +220 -0
  140. package/dist/src/types/events.d.ts.map +1 -0
  141. package/dist/src/types/events.js +2 -0
  142. package/dist/src/types/events.js.map +1 -0
  143. package/dist/src/types/framework.d.ts +184 -0
  144. package/dist/src/types/framework.d.ts.map +1 -0
  145. package/dist/src/types/framework.js +2 -0
  146. package/dist/src/types/framework.js.map +1 -0
  147. package/dist/src/types/index.d.ts +7 -0
  148. package/dist/src/types/index.d.ts.map +1 -0
  149. package/dist/src/types/index.js +7 -0
  150. package/dist/src/types/index.js.map +1 -0
  151. package/dist/src/types/inference-log.d.ts +64 -0
  152. package/dist/src/types/inference-log.d.ts.map +1 -0
  153. package/dist/src/types/inference-log.js +5 -0
  154. package/dist/src/types/inference-log.js.map +1 -0
  155. package/dist/src/types/module.d.ts +302 -0
  156. package/dist/src/types/module.d.ts.map +1 -0
  157. package/dist/src/types/module.js +2 -0
  158. package/dist/src/types/module.js.map +1 -0
  159. package/dist/src/types/trace.d.ts +173 -0
  160. package/dist/src/types/trace.d.ts.map +1 -0
  161. package/dist/src/types/trace.js +2 -0
  162. package/dist/src/types/trace.js.map +1 -0
  163. package/dist/test/event-gate.test.d.ts +2 -0
  164. package/dist/test/event-gate.test.d.ts.map +1 -0
  165. package/dist/test/event-gate.test.js +535 -0
  166. package/dist/test/event-gate.test.js.map +1 -0
  167. package/dist/test/framework.test.d.ts +5 -0
  168. package/dist/test/framework.test.d.ts.map +1 -0
  169. package/dist/test/framework.test.js +738 -0
  170. package/dist/test/framework.test.js.map +1 -0
  171. package/dist/tsconfig.tsbuildinfo +1 -0
  172. package/package.json +58 -0
  173. package/src/agent.ts +512 -0
  174. package/src/api/mcp-server.ts +687 -0
  175. package/src/api/server.ts +1023 -0
  176. package/src/api/types.ts +542 -0
  177. package/src/framework.ts +2784 -0
  178. package/src/gate/event-gate.ts +623 -0
  179. package/src/gate/index.ts +12 -0
  180. package/src/gate/types.ts +112 -0
  181. package/src/index.ts +63 -0
  182. package/src/mcpl/channel-registry.ts +824 -0
  183. package/src/mcpl/checkpoint-manager.ts +545 -0
  184. package/src/mcpl/errors.ts +114 -0
  185. package/src/mcpl/feature-set-manager.ts +333 -0
  186. package/src/mcpl/hook-orchestrator.ts +281 -0
  187. package/src/mcpl/index.ts +134 -0
  188. package/src/mcpl/inference-router.ts +335 -0
  189. package/src/mcpl/push-handler.ts +232 -0
  190. package/src/mcpl/scope-manager.ts +262 -0
  191. package/src/mcpl/server-connection.ts +694 -0
  192. package/src/mcpl/server-registry.ts +144 -0
  193. package/src/mcpl/types.ts +991 -0
  194. package/src/module-registry.ts +547 -0
  195. package/src/modules/api/index.ts +94 -0
  196. package/src/modules/discord/discord-js-client.ts +353 -0
  197. package/src/modules/discord/index.ts +1146 -0
  198. package/src/modules/discord/types.ts +465 -0
  199. package/src/modules/index.ts +43 -0
  200. package/src/modules/workspace/index.ts +969 -0
  201. package/src/modules/workspace/sync.ts +314 -0
  202. package/src/modules/workspace/types.ts +202 -0
  203. package/src/modules/workspace/watcher.ts +142 -0
  204. package/src/queue.ts +106 -0
  205. package/src/safe-slice.ts +18 -0
  206. package/src/types/agent.ts +119 -0
  207. package/src/types/events.ts +252 -0
  208. package/src/types/framework.ts +211 -0
  209. package/src/types/index.ts +6 -0
  210. package/src/types/inference-log.ts +64 -0
  211. package/src/types/module.ts +367 -0
  212. package/src/types/trace.ts +196 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/types/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,184 @@
1
+ import type { JsStore } from '@animalabs/chronicle';
2
+ import type { Membrane } from '@animalabs/membrane';
3
+ import type { Module, EventResponse } from './module.js';
4
+ import type { AgentConfig, InferenceRequest } from './agent.js';
5
+ import type { ProcessEvent } from './events.js';
6
+ import type { McplServerConfig, InferenceRoutingPolicy } from '../mcpl/types.js';
7
+ import type { GateOptions } from '../gate/types.js';
8
+ export type { TraceEvent, TraceEventListener } from './trace.js';
9
+ /**
10
+ * A module's response to a process event, tagged with the module name.
11
+ */
12
+ export interface ModuleProcessResponse {
13
+ moduleName: string;
14
+ response: EventResponse;
15
+ }
16
+ /**
17
+ * Configuration for process event logging.
18
+ */
19
+ export interface ProcessLoggingConfig {
20
+ /** Persist process logs to Chronicle (default: false) */
21
+ persist?: boolean;
22
+ /** Broadcast process:completed trace events (default: false) */
23
+ broadcast?: boolean;
24
+ }
25
+ /**
26
+ * Configuration for the agent framework.
27
+ */
28
+ export interface FrameworkConfig {
29
+ /** Path to Chronicle store */
30
+ storePath?: string;
31
+ /** Or existing store (app-owned) */
32
+ store?: JsStore;
33
+ /** Membrane instance for LLM calls */
34
+ membrane: Membrane;
35
+ /** Agent configurations */
36
+ agents: AgentConfig[];
37
+ /** Modules to load */
38
+ modules: Module[];
39
+ /** Custom inference policy */
40
+ inferencePolicy?: InferencePolicy;
41
+ /** Custom error policy */
42
+ errorPolicy?: ErrorPolicy;
43
+ /** Interval for periodic store sync in milliseconds (default: 1000ms, 0 to disable) */
44
+ syncIntervalMs?: number;
45
+ /** Process logging configuration (default: disabled) */
46
+ processLogging?: ProcessLoggingConfig;
47
+ /** MCPL server configurations. If omitted or empty, no MCPL subsystems are created. */
48
+ mcplServers?: McplServerConfig[];
49
+ /** Inference routing policy for server-initiated inference (optional). */
50
+ inferenceRouting?: InferenceRoutingPolicy;
51
+ /** EventGate config. If omitted, all events trigger inference (unchanged default). */
52
+ gate?: GateOptions;
53
+ }
54
+ /**
55
+ * Policy for deciding when to run inference.
56
+ */
57
+ export interface InferencePolicy {
58
+ /**
59
+ * Decide whether to run inference for an agent.
60
+ */
61
+ shouldInfer(agentName: string, requests: InferenceRequest[], state: FrameworkState): boolean;
62
+ }
63
+ /**
64
+ * Policy for handling errors.
65
+ */
66
+ export interface ErrorPolicy {
67
+ /**
68
+ * Handle an inference error.
69
+ */
70
+ onInferenceError(error: Error, agentName: string, attempt: number): ErrorAction;
71
+ /** Maximum retry attempts */
72
+ maxRetries: number;
73
+ }
74
+ /**
75
+ * Action to take after an error.
76
+ */
77
+ export type ErrorAction = {
78
+ retry: true;
79
+ delayMs: number;
80
+ } | {
81
+ retry: false;
82
+ emit?: ProcessEvent;
83
+ };
84
+ /**
85
+ * Framework state exposed to policies.
86
+ */
87
+ export interface FrameworkState {
88
+ /** Get agent status */
89
+ getAgentStatus(name: string): import('./agent.js').AgentState | null;
90
+ /** Get module by name */
91
+ getModule(name: string): Module | null;
92
+ /** Get all pending inference requests */
93
+ getPendingRequests(): InferenceRequest[];
94
+ /** Current queue depth */
95
+ queueDepth: number;
96
+ }
97
+ /**
98
+ * Entry in the inference log.
99
+ */
100
+ export interface InferenceLogEntry {
101
+ timestamp: number;
102
+ agentName: string;
103
+ requestId: string;
104
+ /** Whether inference succeeded */
105
+ success: boolean;
106
+ /** Error message if failed */
107
+ error?: string;
108
+ /** Request data or blob ID if large */
109
+ request: unknown | {
110
+ blobId: string;
111
+ };
112
+ /** Response data or blob ID if large (only if successful) */
113
+ response?: unknown | {
114
+ blobId: string;
115
+ };
116
+ durationMs: number;
117
+ tokenUsage?: {
118
+ input: number;
119
+ output: number;
120
+ cacheCreation?: number;
121
+ cacheRead?: number;
122
+ };
123
+ /** Stop reason from the model */
124
+ stopReason?: string;
125
+ }
126
+ /**
127
+ * Entry in the process log - records a processed event with all module responses.
128
+ */
129
+ export interface ProcessLogEntry {
130
+ timestamp: number;
131
+ /** The process event that was handled */
132
+ processEvent: ProcessEvent;
133
+ /** Responses from all modules, or blob ID if large */
134
+ responses: ModuleProcessResponse[] | {
135
+ blobId: string;
136
+ };
137
+ }
138
+ /**
139
+ * Query options for process logs.
140
+ */
141
+ export interface ProcessLogQuery {
142
+ /** Filter by process event type */
143
+ eventType?: string;
144
+ /** Filter by module name (modules that responded) */
145
+ moduleName?: string;
146
+ /** Max number of logs to return */
147
+ limit?: number;
148
+ /** Skip first N logs (for pagination) */
149
+ offset?: number;
150
+ /** Search pattern for content (regex) */
151
+ pattern?: string;
152
+ }
153
+ /**
154
+ * Result from querying process logs.
155
+ */
156
+ export interface ProcessLogQueryResult {
157
+ entries: ProcessLogEntryWithId[];
158
+ total: number;
159
+ hasMore: boolean;
160
+ }
161
+ /**
162
+ * Process log entry with Chronicle sequence ID.
163
+ */
164
+ export interface ProcessLogEntryWithId {
165
+ sequence: number;
166
+ entry: ProcessLogEntry;
167
+ /** Summary for display without resolving blobs */
168
+ summary?: ProcessLogSummary;
169
+ }
170
+ /**
171
+ * Summary view of a process log (without full responses).
172
+ */
173
+ export interface ProcessLogSummary {
174
+ timestamp: number;
175
+ eventType: string;
176
+ moduleCount: number;
177
+ /** Modules that requested inference */
178
+ modulesRequestingInference: string[];
179
+ /** Modules that added messages */
180
+ modulesAddingMessages: string[];
181
+ /** Whether responses are stored as blob */
182
+ responsesIsBlob: boolean;
183
+ }
184
+ //# sourceMappingURL=framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../../../src/types/framework.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oCAAoC;IACpC,KAA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AmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;IACvB,kDAAkD;IAClD,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,kCAAkC;IAClC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,2CAA2C;IAC3C,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework.js","sourceRoot":"","sources":["../../../src/types/framework.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export * from './events.js';
2
+ export * from './module.js';
3
+ export * from './agent.js';
4
+ export * from './framework.js';
5
+ export * from './trace.js';
6
+ export * from './inference-log.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './events.js';
2
+ export * from './module.js';
3
+ export * from './agent.js';
4
+ export * from './framework.js';
5
+ export * from './trace.js';
6
+ export * from './inference-log.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Types for inference logging - captures raw LLM requests and responses
3
+ */
4
+ export type { InferenceLogEntry } from './framework.js';
5
+ /**
6
+ * Query options for inference logs
7
+ */
8
+ export interface InferenceLogQuery {
9
+ /** Filter by agent name */
10
+ agentName?: string;
11
+ /** Max number of logs to return */
12
+ limit?: number;
13
+ /** Skip first N logs (for pagination) */
14
+ offset?: number;
15
+ /** Search pattern for content (regex) */
16
+ pattern?: string;
17
+ /** Only show failures */
18
+ errorsOnly?: boolean;
19
+ }
20
+ /**
21
+ * Result from querying inference logs
22
+ */
23
+ export interface InferenceLogQueryResult {
24
+ /** Matching entries */
25
+ entries: InferenceLogEntryWithId[];
26
+ /** Total count matching query (before pagination) */
27
+ total: number;
28
+ /** Whether more entries exist beyond limit */
29
+ hasMore: boolean;
30
+ }
31
+ /**
32
+ * Inference log entry with Chronicle sequence ID
33
+ */
34
+ export interface InferenceLogEntryWithId {
35
+ /** Chronicle sequence number (acts as ID) */
36
+ sequence: number;
37
+ /** The log entry data (may contain blob references) */
38
+ entry: import('./framework.js').InferenceLogEntry;
39
+ /** Summary info for display without resolving blobs */
40
+ summary?: InferenceLogSummary;
41
+ }
42
+ /**
43
+ * Summary view of an inference log (without full request/response)
44
+ */
45
+ export interface InferenceLogSummary {
46
+ timestamp: number;
47
+ agentName: string;
48
+ requestId: string;
49
+ success: boolean;
50
+ error?: string;
51
+ durationMs: number;
52
+ tokenUsage?: {
53
+ input: number;
54
+ output: number;
55
+ cacheCreation?: number;
56
+ cacheRead?: number;
57
+ };
58
+ stopReason?: string;
59
+ /** Whether request is stored as blob */
60
+ requestIsBlob: boolean;
61
+ /** Whether response is stored as blob */
62
+ responseIsBlob: boolean;
63
+ }
64
+ //# sourceMappingURL=inference-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference-log.d.ts","sourceRoot":"","sources":["../../../src/types/inference-log.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,uBAAuB;IACvB,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,KAAK,EAAE,OAAO,gBAAgB,EAAE,iBAAiB,CAAC;IAClD,uDAAuD;IACvD,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,aAAa,EAAE,OAAO,CAAC;IACvB,yCAAyC;IACzC,cAAc,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Types for inference logging - captures raw LLM requests and responses
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=inference-log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference-log.js","sourceRoot":"","sources":["../../../src/types/inference-log.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,302 @@
1
+ import type { ContentBlock } from '@animalabs/membrane';
2
+ import type { MessageId, MessageMetadata, StoredMessage, ContextInjection } from '@animalabs/context-manager';
3
+ import type { ProcessEvent, ToolDefinition, ToolCall, ToolResult } from './events.js';
4
+ /**
5
+ * Filter criteria for querying messages.
6
+ * All fields are optional; messages must match all specified criteria.
7
+ */
8
+ export interface MessageQuery {
9
+ /** Filter by external source (e.g., 'discord') */
10
+ source?: string;
11
+ /** Filter by participant name */
12
+ participant?: string;
13
+ /** Filter by metadata fields (shallow match) */
14
+ metadata?: Record<string, unknown>;
15
+ }
16
+ /**
17
+ * Result of a message query.
18
+ */
19
+ export interface MessageQueryResult {
20
+ messages: StoredMessage[];
21
+ totalCount: number;
22
+ }
23
+ /**
24
+ * A pluggable module that provides capabilities to the framework.
25
+ */
26
+ export interface Module {
27
+ /** Unique name, used for tool namespacing and state storage */
28
+ readonly name: string;
29
+ /**
30
+ * Start the module.
31
+ * Called when the framework starts or when the module is added.
32
+ */
33
+ start(ctx: ModuleContext): Promise<void>;
34
+ /**
35
+ * Stop the module.
36
+ * Called when the framework stops or when the module is removed.
37
+ */
38
+ stop(): Promise<void>;
39
+ /**
40
+ * Get currently available tools.
41
+ * Can change over time (e.g., based on connection state).
42
+ */
43
+ getTools(): ToolDefinition[];
44
+ /**
45
+ * Handle a tool call.
46
+ * Tool name is without module prefix.
47
+ */
48
+ handleToolCall(call: ToolCall): Promise<ToolResult>;
49
+ /**
50
+ * Handle a process event from the queue.
51
+ * Return response indicating what actions to take.
52
+ *
53
+ * @param event - The event to process
54
+ * @param state - Read-only state snapshot for accessing module state and lookups
55
+ */
56
+ onProcess(event: ProcessEvent, state: ProcessState): Promise<EventResponse>;
57
+ /**
58
+ * Handle agent speech (if registered as speech handler).
59
+ * Called when an agent produces text output.
60
+ */
61
+ onAgentSpeech?(agentName: string, content: ContentBlock[], context: SpeechContext): Promise<void>;
62
+ /**
63
+ * Gather context injections before agent inference.
64
+ * Called before each inference to collect data (e.g., HUD overlays, game state)
65
+ * that should be injected into the compiled context.
66
+ * Complementary to MCPL push-based hooks — modules pull via gatherContext.
67
+ * Adapted from Anarchid/agent-framework@mcpl-module-proto.
68
+ */
69
+ gatherContext?(agentName: string): Promise<ContextInjection[]>;
70
+ }
71
+ /**
72
+ * Context provided to modules for interacting with the framework.
73
+ */
74
+ export interface ModuleContext {
75
+ /**
76
+ * Get persistent state for this module.
77
+ * State is namespaced to the module.
78
+ */
79
+ getState<T>(): T | null;
80
+ /**
81
+ * Set persistent state for this module.
82
+ */
83
+ setState<T>(state: T): void;
84
+ /**
85
+ * Process queue for pushing events from external listeners.
86
+ * @deprecated Use pushEvent() instead — it also emits process:received traces.
87
+ */
88
+ readonly queue: ProcessQueue;
89
+ /**
90
+ * Push a process event to the queue and emit a process:received trace.
91
+ * Preferred over direct queue.push() for proper observability.
92
+ */
93
+ pushEvent(event: ProcessEvent): void;
94
+ /**
95
+ * Get another module by name.
96
+ */
97
+ getModule<T extends Module>(name: string): T | null;
98
+ /**
99
+ * Add a message to the conversation.
100
+ */
101
+ addMessage(participant: string, content: ContentBlock[], metadata?: MessageMetadata & {
102
+ external?: ExternalIdRef;
103
+ }): MessageId;
104
+ /**
105
+ * Edit a message.
106
+ */
107
+ editMessage(id: MessageId, content: ContentBlock[]): void;
108
+ /**
109
+ * Remove a message.
110
+ */
111
+ removeMessage(id: MessageId): void;
112
+ /**
113
+ * Find a message by external ID.
114
+ */
115
+ findMessageByExternalId(source: string, externalId: string): MessageId | null;
116
+ /**
117
+ * Get a message by ID.
118
+ */
119
+ getMessage(id: MessageId): StoredMessage | null;
120
+ /**
121
+ * Query messages by filter criteria.
122
+ * Useful for finding messages from external sources, by participant, etc.
123
+ */
124
+ queryMessages(filter: MessageQuery): MessageQueryResult;
125
+ /**
126
+ * Get info about all agents.
127
+ */
128
+ getAgents(): AgentInfo[];
129
+ /**
130
+ * Get all currently available tools.
131
+ */
132
+ getActiveTools(): ToolDefinition[];
133
+ /**
134
+ * Whether this is a restart (state existed) vs fresh start.
135
+ */
136
+ readonly isRestart: boolean;
137
+ /**
138
+ * Register this module as a speech handler for agents.
139
+ * @param agents - '*' for all agents, or array of agent names
140
+ * @param options - Speech handler options
141
+ */
142
+ registerSpeechHandler(agents: '*' | string[], options?: SpeechHandlerOptions): void;
143
+ /**
144
+ * Unregister this module as a speech handler.
145
+ */
146
+ unregisterSpeechHandler(): void;
147
+ }
148
+ /**
149
+ * Read-only state snapshot provided to modules during event processing.
150
+ * State writes happen via EventResponse, not through this interface.
151
+ */
152
+ export interface ProcessState {
153
+ /**
154
+ * Get this module's state.
155
+ */
156
+ getState<T>(): T | null;
157
+ /**
158
+ * Get another module's state by name.
159
+ */
160
+ getModuleState<T>(name: string): T | null;
161
+ /**
162
+ * Find a message by external ID.
163
+ */
164
+ findMessageByExternalId(source: string, externalId: string): MessageId | null;
165
+ /**
166
+ * Get info about all agents.
167
+ */
168
+ getAgents(): AgentInfo[];
169
+ /**
170
+ * Get all currently available tools.
171
+ */
172
+ getActiveTools(): ToolDefinition[];
173
+ /**
174
+ * Queue for emitting follow-up events.
175
+ * @deprecated Use pushEvent() instead — it also emits process:received traces.
176
+ */
177
+ readonly queue: ProcessQueue;
178
+ /**
179
+ * Push a process event to the queue and emit a process:received trace.
180
+ * Preferred over direct queue.push() for proper observability.
181
+ */
182
+ pushEvent(event: ProcessEvent): void;
183
+ }
184
+ /**
185
+ * Reference to an external system's ID.
186
+ */
187
+ export interface ExternalIdRef {
188
+ source: string;
189
+ id: string;
190
+ }
191
+ /**
192
+ * Process queue interface for modules.
193
+ */
194
+ export interface ProcessQueue {
195
+ /**
196
+ * Push a process event to the queue.
197
+ */
198
+ push(event: ProcessEvent): void;
199
+ }
200
+ /**
201
+ * Basic info about an agent.
202
+ */
203
+ export interface AgentInfo {
204
+ name: string;
205
+ model: string;
206
+ status: AgentStatus;
207
+ }
208
+ /**
209
+ * Agent execution status.
210
+ */
211
+ export type AgentStatus = 'idle' | 'inferring' | 'streaming' | 'waiting_for_tools' | 'ready';
212
+ /**
213
+ * Response from a module's event handler.
214
+ */
215
+ export interface EventResponse {
216
+ /**
217
+ * Messages to add to the conversation.
218
+ */
219
+ addMessages?: NewMessage[];
220
+ /**
221
+ * Messages to edit.
222
+ */
223
+ editMessages?: MessageEdit[];
224
+ /**
225
+ * Messages to remove.
226
+ */
227
+ removeMessages?: MessageId[];
228
+ /**
229
+ * Request inference.
230
+ * - true: request for all agents
231
+ * - string[]: request for specific agents
232
+ * - false/undefined: no request
233
+ */
234
+ requestInference?: boolean | string[];
235
+ /**
236
+ * Signal that this module's tools have changed.
237
+ */
238
+ toolsChanged?: boolean;
239
+ /**
240
+ * Module state update. Applied atomically with message operations.
241
+ * The framework will call setState() with this value after applying
242
+ * message changes, ensuring consistent state.
243
+ */
244
+ stateUpdate?: unknown;
245
+ }
246
+ /**
247
+ * A new message to add.
248
+ */
249
+ export interface NewMessage {
250
+ participant: string;
251
+ content: ContentBlock[];
252
+ metadata?: MessageMetadata & {
253
+ external?: ExternalIdRef;
254
+ };
255
+ }
256
+ /**
257
+ * An edit to an existing message.
258
+ */
259
+ export interface MessageEdit {
260
+ messageId: MessageId;
261
+ content: ContentBlock[];
262
+ }
263
+ /**
264
+ * Context provided to speech handlers.
265
+ */
266
+ export interface SpeechContext {
267
+ /**
268
+ * Whether this is a complete turn or tool calls are pending.
269
+ * If false, more output may follow after tool results.
270
+ */
271
+ turnComplete: boolean;
272
+ /**
273
+ * The inference request that triggered this speech.
274
+ */
275
+ trigger: {
276
+ reason: string;
277
+ source: string;
278
+ timestamp: number;
279
+ };
280
+ /**
281
+ * Pre-tool preamble text blocks that preceded tool calls.
282
+ * Modules can display these as "thoughts" (e.g. Discord spoiler tags).
283
+ * Empty when no tool calls were made.
284
+ */
285
+ thoughts?: ContentBlock[];
286
+ }
287
+ /**
288
+ * Options for speech handler registration.
289
+ */
290
+ export interface SpeechHandlerOptions {
291
+ /**
292
+ * If true, add to existing handlers rather than replacing.
293
+ * Multiple handlers will all receive speech.
294
+ */
295
+ additive?: boolean;
296
+ /**
297
+ * Priority for handler ordering (higher = called first).
298
+ * Default: 0
299
+ */
300
+ priority?: number;
301
+ }
302
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/types/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtF;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC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;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAMD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/types/module.ts"],"names":[],"mappings":""}