@asyra/ai-agent-runtime 0.5.1 → 0.6.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 (262) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +9 -5
  3. package/dist/action-batch.d.ts.map +1 -1
  4. package/dist/action-batch.js.map +1 -1
  5. package/dist/action-registry.d.ts +2 -2
  6. package/dist/action-registry.d.ts.map +1 -1
  7. package/dist/action-registry.js +100 -65
  8. package/dist/action-registry.js.map +1 -1
  9. package/dist/audit.d.ts.map +1 -1
  10. package/dist/audit.js.map +1 -1
  11. package/dist/batch-exchange-types.d.ts +21 -0
  12. package/dist/batch-exchange-types.d.ts.map +1 -0
  13. package/dist/batch-exchange-types.js +2 -0
  14. package/dist/batch-exchange-types.js.map +1 -0
  15. package/dist/capability-search.d.ts +46 -0
  16. package/dist/capability-search.d.ts.map +1 -0
  17. package/dist/capability-search.js +210 -0
  18. package/dist/capability-search.js.map +1 -0
  19. package/dist/index.d.ts +37 -4
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +28 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/invocation.d.ts +46 -0
  24. package/dist/invocation.d.ts.map +1 -0
  25. package/dist/invocation.js +71 -0
  26. package/dist/invocation.js.map +1 -0
  27. package/dist/json-value.d.ts +3 -0
  28. package/dist/json-value.d.ts.map +1 -0
  29. package/dist/json-value.js +50 -0
  30. package/dist/json-value.js.map +1 -0
  31. package/dist/knowledge-types.d.ts +81 -0
  32. package/dist/knowledge-types.d.ts.map +1 -0
  33. package/dist/knowledge-types.js +2 -0
  34. package/dist/knowledge-types.js.map +1 -0
  35. package/dist/knowledge.d.ts +17 -0
  36. package/dist/knowledge.d.ts.map +1 -0
  37. package/dist/knowledge.js +585 -0
  38. package/dist/knowledge.js.map +1 -0
  39. package/dist/named-result-inputs.d.ts +9 -0
  40. package/dist/named-result-inputs.d.ts.map +1 -0
  41. package/dist/named-result-inputs.js +94 -0
  42. package/dist/named-result-inputs.js.map +1 -0
  43. package/dist/node/action-observation.d.ts +15 -0
  44. package/dist/node/action-observation.d.ts.map +1 -0
  45. package/dist/node/action-observation.js +126 -0
  46. package/dist/node/action-observation.js.map +1 -0
  47. package/dist/node/batch-exchange.d.ts +19 -0
  48. package/dist/node/batch-exchange.d.ts.map +1 -0
  49. package/dist/node/batch-exchange.js +105 -0
  50. package/dist/node/batch-exchange.js.map +1 -0
  51. package/dist/node/file-record-collector.d.ts +11 -0
  52. package/dist/node/file-record-collector.d.ts.map +1 -0
  53. package/dist/node/file-record-collector.js +142 -0
  54. package/dist/node/file-record-collector.js.map +1 -0
  55. package/dist/node/index.d.ts +22 -0
  56. package/dist/node/index.d.ts.map +1 -0
  57. package/dist/node/index.js +22 -0
  58. package/dist/node/index.js.map +1 -0
  59. package/dist/node/information-delivery.d.ts +90 -0
  60. package/dist/node/information-delivery.d.ts.map +1 -0
  61. package/dist/node/information-delivery.js +144 -0
  62. package/dist/node/information-delivery.js.map +1 -0
  63. package/dist/node/knowledge-file.d.ts +22 -0
  64. package/dist/node/knowledge-file.d.ts.map +1 -0
  65. package/dist/node/knowledge-file.js +106 -0
  66. package/dist/node/knowledge-file.js.map +1 -0
  67. package/dist/node/native-provider-config.d.ts +12 -0
  68. package/dist/node/native-provider-config.d.ts.map +1 -0
  69. package/dist/node/native-provider-config.js +58 -0
  70. package/dist/node/native-provider-config.js.map +1 -0
  71. package/dist/node/native-provider.d.ts +36 -0
  72. package/dist/node/native-provider.d.ts.map +1 -0
  73. package/dist/node/native-provider.js +209 -0
  74. package/dist/node/native-provider.js.map +1 -0
  75. package/dist/node/native-rpc-transport.d.ts +39 -0
  76. package/dist/node/native-rpc-transport.d.ts.map +1 -0
  77. package/dist/node/native-rpc-transport.js +171 -0
  78. package/dist/node/native-rpc-transport.js.map +1 -0
  79. package/dist/node/native-session.d.ts +50 -0
  80. package/dist/node/native-session.d.ts.map +1 -0
  81. package/dist/node/native-session.js +200 -0
  82. package/dist/node/native-session.js.map +1 -0
  83. package/dist/node/payload.d.ts +12 -0
  84. package/dist/node/payload.d.ts.map +1 -0
  85. package/dist/node/payload.js +69 -0
  86. package/dist/node/payload.js.map +1 -0
  87. package/dist/node/provider-content.d.ts +9 -0
  88. package/dist/node/provider-content.d.ts.map +1 -0
  89. package/dist/node/provider-content.js +2 -0
  90. package/dist/node/provider-content.js.map +1 -0
  91. package/dist/node/provider-conversations.d.ts +21 -0
  92. package/dist/node/provider-conversations.d.ts.map +1 -0
  93. package/dist/node/provider-conversations.js +98 -0
  94. package/dist/node/provider-conversations.js.map +1 -0
  95. package/dist/node/record-collector.d.ts +27 -0
  96. package/dist/node/record-collector.d.ts.map +1 -0
  97. package/dist/node/record-collector.js +175 -0
  98. package/dist/node/record-collector.js.map +1 -0
  99. package/dist/node/record-sink.d.ts +4 -0
  100. package/dist/node/record-sink.d.ts.map +1 -0
  101. package/dist/node/record-sink.js +218 -0
  102. package/dist/node/record-sink.js.map +1 -0
  103. package/dist/node/report-cli.d.ts +21 -0
  104. package/dist/node/report-cli.d.ts.map +1 -0
  105. package/dist/node/report-cli.js +285 -0
  106. package/dist/node/report-cli.js.map +1 -0
  107. package/dist/node/responses-provider.d.ts +53 -0
  108. package/dist/node/responses-provider.d.ts.map +1 -0
  109. package/dist/node/responses-provider.js +542 -0
  110. package/dist/node/responses-provider.js.map +1 -0
  111. package/dist/node/responses-tool-search.d.ts +74 -0
  112. package/dist/node/responses-tool-search.d.ts.map +1 -0
  113. package/dist/node/responses-tool-search.js +100 -0
  114. package/dist/node/responses-tool-search.js.map +1 -0
  115. package/dist/node/source-identity.d.ts +10 -0
  116. package/dist/node/source-identity.d.ts.map +1 -0
  117. package/dist/node/source-identity.js +85 -0
  118. package/dist/node/source-identity.js.map +1 -0
  119. package/dist/node/sqlite-tool-store.d.ts +18 -0
  120. package/dist/node/sqlite-tool-store.d.ts.map +1 -0
  121. package/dist/node/sqlite-tool-store.js +198 -0
  122. package/dist/node/sqlite-tool-store.js.map +1 -0
  123. package/dist/node/tool-host-library.d.ts +97 -0
  124. package/dist/node/tool-host-library.d.ts.map +1 -0
  125. package/dist/node/tool-host-library.js +368 -0
  126. package/dist/node/tool-host-library.js.map +1 -0
  127. package/dist/node/tool-provider.d.ts +65 -0
  128. package/dist/node/tool-provider.d.ts.map +1 -0
  129. package/dist/node/tool-provider.js +2 -0
  130. package/dist/node/tool-provider.js.map +1 -0
  131. package/dist/profiler/assessment.d.ts +30 -0
  132. package/dist/profiler/assessment.d.ts.map +1 -0
  133. package/dist/profiler/assessment.js +111 -0
  134. package/dist/profiler/assessment.js.map +1 -0
  135. package/dist/profiler/evaluation.d.ts +288 -0
  136. package/dist/profiler/evaluation.d.ts.map +1 -0
  137. package/dist/profiler/evaluation.js +513 -0
  138. package/dist/profiler/evaluation.js.map +1 -0
  139. package/dist/profiler/record-delivery.d.ts +20 -0
  140. package/dist/profiler/record-delivery.d.ts.map +1 -0
  141. package/dist/profiler/record-delivery.js +279 -0
  142. package/dist/profiler/record-delivery.js.map +1 -0
  143. package/dist/profiler/record-outbox.d.ts +48 -0
  144. package/dist/profiler/record-outbox.d.ts.map +1 -0
  145. package/dist/profiler/record-outbox.js +126 -0
  146. package/dist/profiler/record-outbox.js.map +1 -0
  147. package/dist/profiler/recorder.d.ts +35 -0
  148. package/dist/profiler/recorder.d.ts.map +1 -0
  149. package/dist/profiler/recorder.js +864 -0
  150. package/dist/profiler/recorder.js.map +1 -0
  151. package/dist/profiler/records.d.ts +89 -0
  152. package/dist/profiler/records.d.ts.map +1 -0
  153. package/dist/profiler/records.js +216 -0
  154. package/dist/profiler/records.js.map +1 -0
  155. package/dist/profiler/timing.d.ts +21 -0
  156. package/dist/profiler/timing.d.ts.map +1 -0
  157. package/dist/profiler/timing.js +197 -0
  158. package/dist/profiler/timing.js.map +1 -0
  159. package/dist/profiler/trace.d.ts +31 -0
  160. package/dist/profiler/trace.d.ts.map +1 -0
  161. package/dist/profiler/trace.js +66 -0
  162. package/dist/profiler/trace.js.map +1 -0
  163. package/dist/provider-retry.d.ts.map +1 -1
  164. package/dist/provider-retry.js +1 -0
  165. package/dist/provider-retry.js.map +1 -1
  166. package/dist/provider.d.ts +46 -1
  167. package/dist/provider.d.ts.map +1 -1
  168. package/dist/provider.js +34 -0
  169. package/dist/provider.js.map +1 -1
  170. package/dist/providers/exchange-provider.d.ts +32 -0
  171. package/dist/providers/exchange-provider.d.ts.map +1 -0
  172. package/dist/providers/exchange-provider.js +348 -0
  173. package/dist/providers/exchange-provider.js.map +1 -0
  174. package/dist/providers/generic-http.d.ts +2 -1
  175. package/dist/providers/generic-http.d.ts.map +1 -1
  176. package/dist/providers/generic-http.js +12 -5
  177. package/dist/providers/generic-http.js.map +1 -1
  178. package/dist/recipe-admission.d.ts +5 -0
  179. package/dist/recipe-admission.d.ts.map +1 -0
  180. package/dist/recipe-admission.js +533 -0
  181. package/dist/recipe-admission.js.map +1 -0
  182. package/dist/recipe-execution.d.ts +93 -0
  183. package/dist/recipe-execution.d.ts.map +1 -0
  184. package/dist/recipe-execution.js +562 -0
  185. package/dist/recipe-execution.js.map +1 -0
  186. package/dist/recipe-format.d.ts +18 -0
  187. package/dist/recipe-format.d.ts.map +1 -0
  188. package/dist/recipe-format.js +94 -0
  189. package/dist/recipe-format.js.map +1 -0
  190. package/dist/recipe-schema.d.ts +67 -0
  191. package/dist/recipe-schema.d.ts.map +1 -0
  192. package/dist/recipe-schema.js +959 -0
  193. package/dist/recipe-schema.js.map +1 -0
  194. package/dist/recipe-types.d.ts +86 -0
  195. package/dist/recipe-types.d.ts.map +1 -0
  196. package/dist/recipe-types.js +2 -0
  197. package/dist/recipe-types.js.map +1 -0
  198. package/dist/redaction.d.ts.map +1 -1
  199. package/dist/redaction.js.map +1 -1
  200. package/dist/result-context.d.ts +70 -0
  201. package/dist/result-context.d.ts.map +1 -0
  202. package/dist/result-context.js +186 -0
  203. package/dist/result-context.js.map +1 -0
  204. package/dist/result-delivery.d.ts +64 -0
  205. package/dist/result-delivery.d.ts.map +1 -0
  206. package/dist/result-delivery.js +212 -0
  207. package/dist/result-delivery.js.map +1 -0
  208. package/dist/result-media.d.ts +8 -0
  209. package/dist/result-media.d.ts.map +1 -0
  210. package/dist/result-media.js +14 -0
  211. package/dist/result-media.js.map +1 -0
  212. package/dist/runtime.d.ts +70 -10
  213. package/dist/runtime.d.ts.map +1 -1
  214. package/dist/runtime.js +811 -162
  215. package/dist/runtime.js.map +1 -1
  216. package/dist/schema/index.d.ts +6 -0
  217. package/dist/schema/index.d.ts.map +1 -0
  218. package/dist/schema/index.js +6 -0
  219. package/dist/schema/index.js.map +1 -0
  220. package/dist/schema/native-input.d.ts +2 -0
  221. package/dist/schema/native-input.d.ts.map +1 -0
  222. package/dist/schema/native-input.js +170 -0
  223. package/dist/schema/native-input.js.map +1 -0
  224. package/dist/schema/owner-invocation.d.ts +19 -0
  225. package/dist/schema/owner-invocation.d.ts.map +1 -0
  226. package/dist/schema/owner-invocation.js +40 -0
  227. package/dist/schema/owner-invocation.js.map +1 -0
  228. package/dist/schema/result-delivery.d.ts +57 -0
  229. package/dist/schema/result-delivery.d.ts.map +1 -0
  230. package/dist/schema/result-delivery.js +380 -0
  231. package/dist/schema/result-delivery.js.map +1 -0
  232. package/dist/schema/tool-leases.d.ts +63 -0
  233. package/dist/schema/tool-leases.d.ts.map +1 -0
  234. package/dist/schema/tool-leases.js +439 -0
  235. package/dist/schema/tool-leases.js.map +1 -0
  236. package/dist/schema/validation.d.ts +19 -0
  237. package/dist/schema/validation.d.ts.map +1 -0
  238. package/dist/schema/validation.js +502 -0
  239. package/dist/schema/validation.js.map +1 -0
  240. package/dist/tool-contract.d.ts +105 -0
  241. package/dist/tool-contract.d.ts.map +1 -0
  242. package/dist/tool-contract.js +318 -0
  243. package/dist/tool-contract.js.map +1 -0
  244. package/dist/tool-input-error.d.ts +8 -0
  245. package/dist/tool-input-error.d.ts.map +1 -0
  246. package/dist/tool-input-error.js +10 -0
  247. package/dist/tool-input-error.js.map +1 -0
  248. package/dist/tool-library.d.ts +43 -0
  249. package/dist/tool-library.d.ts.map +1 -0
  250. package/dist/tool-library.js +204 -0
  251. package/dist/tool-library.js.map +1 -0
  252. package/dist/tool-scheduler.d.ts +10 -0
  253. package/dist/tool-scheduler.d.ts.map +1 -0
  254. package/dist/tool-scheduler.js +46 -0
  255. package/dist/tool-scheduler.js.map +1 -0
  256. package/dist/tool-store.d.ts +109 -0
  257. package/dist/tool-store.d.ts.map +1 -0
  258. package/dist/tool-store.js +536 -0
  259. package/dist/tool-store.js.map +1 -0
  260. package/dist/types.d.ts +45 -8
  261. package/dist/types.d.ts.map +1 -1
  262. package/package.json +33 -3
@@ -0,0 +1,288 @@
1
+ export interface ExecutionReportPolicy {
2
+ readTools?: readonly string[];
3
+ reviewTool?: string;
4
+ validateEvidenceTool?: string;
5
+ }
6
+ import { parseExecutionRecord } from './records.js';
7
+ type ParsedExecution = ReturnType<typeof parseExecutionRecord>;
8
+ export interface ExecutionFinding {
9
+ requestId: string | null;
10
+ sequence: number | null;
11
+ callId: string | null;
12
+ relatedCallIds?: string[];
13
+ repeatedFields?: string[];
14
+ kind: 'tool-failure' | 'incomplete-step' | 'protocol-rejection' | 'unavailable-result' | 'repeat-query-candidate' | 'input-echo-candidate';
15
+ confidence: 'observed' | 'candidate';
16
+ observation: string;
17
+ possibleRemedy: string;
18
+ }
19
+ /** A read-only projection; timings rank investigation targets, not product quality. */
20
+ export declare const evaluateExecution: (run: ParsedExecution, options?: {
21
+ feedback?: string;
22
+ policy?: ExecutionReportPolicy;
23
+ }) => {
24
+ requestId: string | null;
25
+ metadata: Record<string, unknown>;
26
+ complete: boolean;
27
+ outcome: string;
28
+ issues: string[];
29
+ timing: {
30
+ durationMs: number;
31
+ breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
32
+ owners: {
33
+ providerMs: number;
34
+ toolMs: number;
35
+ appMs: number;
36
+ recordingGapMs: number;
37
+ };
38
+ callDurations: {
39
+ callId: string;
40
+ kind: "lifecycle" | "provider" | "tool" | "action" | "research";
41
+ tool: string | null;
42
+ inclusiveMs: number;
43
+ ownMs: number;
44
+ }[];
45
+ appCallGaps: {
46
+ breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
47
+ startMs: number;
48
+ endMs: number;
49
+ durationMs: number;
50
+ beforeTool: string | null;
51
+ afterTool: string | null;
52
+ }[];
53
+ observedToolAndResearchMs: number;
54
+ outsideToolAndResearchMs: number;
55
+ unattributedMs: number;
56
+ };
57
+ usage: {} | null;
58
+ usageStatus: {};
59
+ transport: {} | null;
60
+ findings: ExecutionFinding[];
61
+ toolCalls: {
62
+ execution: {
63
+ status: "failed" | "partial" | "unknown" | "usable" | "rejected";
64
+ stage: string | null;
65
+ code: string | null;
66
+ settlement: string | null;
67
+ };
68
+ tool: string | null;
69
+ phase: string | null;
70
+ selectors: unknown;
71
+ diagnostics: {
72
+ input?: unknown;
73
+ output?: unknown;
74
+ attribution?: unknown;
75
+ };
76
+ status: "completed" | "failed" | "incomplete";
77
+ durationMs: number | null;
78
+ queueMs: number | null;
79
+ executionMs: number | null;
80
+ responseTextBytes: number | null;
81
+ code: string | null;
82
+ ownerTiming: Record<string, unknown>;
83
+ requestId: string | null;
84
+ sequence: number | null;
85
+ callId: string;
86
+ }[];
87
+ toolOutcomes: {
88
+ usable: number;
89
+ partial: number;
90
+ rejected: number;
91
+ failed: number;
92
+ unknown: number;
93
+ };
94
+ actions: {
95
+ callId: string;
96
+ tool: string | null;
97
+ status: "completed" | "failed" | "incomplete";
98
+ exchangeStartedMs: number | null;
99
+ exchangeEndedMs: number | null;
100
+ handlerMs: number | null;
101
+ diagnostics: {
102
+ input?: unknown;
103
+ output?: unknown;
104
+ attribution?: unknown;
105
+ };
106
+ }[];
107
+ orchestration: {
108
+ modelRoundCount: null;
109
+ programChildLinks: "unavailable";
110
+ reason: string;
111
+ nativeTurnIds: string[];
112
+ programs: {
113
+ callId: string;
114
+ tool: string | null;
115
+ startedMs: number | null;
116
+ endedMs: number | null;
117
+ status: "completed" | "failed" | "incomplete";
118
+ }[];
119
+ };
120
+ modelReview: {
121
+ status: string;
122
+ current: boolean;
123
+ certifiesVisuals: boolean;
124
+ callId: string | null;
125
+ sequence: number | null;
126
+ criteria: {} | null;
127
+ detailRequired: {} | null;
128
+ inspectionIds: {} | null;
129
+ checks: {} | null;
130
+ accepted: {} | null;
131
+ };
132
+ userFeedback: string | null;
133
+ };
134
+ export declare const createExecutionPeriodReport: (records: ParsedExecution[], options?: {
135
+ from?: string;
136
+ to?: string;
137
+ now?: Date;
138
+ feedback?: Record<string, string>;
139
+ policy?: ExecutionReportPolicy;
140
+ }) => {
141
+ from: string;
142
+ to: string;
143
+ runs: {
144
+ requestId: string | null;
145
+ metadata: Record<string, unknown>;
146
+ complete: boolean;
147
+ outcome: string;
148
+ issues: string[];
149
+ timing: {
150
+ durationMs: number;
151
+ breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
152
+ owners: {
153
+ providerMs: number;
154
+ toolMs: number;
155
+ appMs: number;
156
+ recordingGapMs: number;
157
+ };
158
+ callDurations: {
159
+ callId: string;
160
+ kind: "lifecycle" | "provider" | "tool" | "action" | "research";
161
+ tool: string | null;
162
+ inclusiveMs: number;
163
+ ownMs: number;
164
+ }[];
165
+ appCallGaps: {
166
+ breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
167
+ startMs: number;
168
+ endMs: number;
169
+ durationMs: number;
170
+ beforeTool: string | null;
171
+ afterTool: string | null;
172
+ }[];
173
+ observedToolAndResearchMs: number;
174
+ outsideToolAndResearchMs: number;
175
+ unattributedMs: number;
176
+ };
177
+ usage: {} | null;
178
+ usageStatus: {};
179
+ transport: {} | null;
180
+ findings: ExecutionFinding[];
181
+ toolCalls: {
182
+ execution: {
183
+ status: "failed" | "partial" | "unknown" | "usable" | "rejected";
184
+ stage: string | null;
185
+ code: string | null;
186
+ settlement: string | null;
187
+ };
188
+ tool: string | null;
189
+ phase: string | null;
190
+ selectors: unknown;
191
+ diagnostics: {
192
+ input?: unknown;
193
+ output?: unknown;
194
+ attribution?: unknown;
195
+ };
196
+ status: "completed" | "failed" | "incomplete";
197
+ durationMs: number | null;
198
+ queueMs: number | null;
199
+ executionMs: number | null;
200
+ responseTextBytes: number | null;
201
+ code: string | null;
202
+ ownerTiming: Record<string, unknown>;
203
+ requestId: string | null;
204
+ sequence: number | null;
205
+ callId: string;
206
+ }[];
207
+ toolOutcomes: {
208
+ usable: number;
209
+ partial: number;
210
+ rejected: number;
211
+ failed: number;
212
+ unknown: number;
213
+ };
214
+ actions: {
215
+ callId: string;
216
+ tool: string | null;
217
+ status: "completed" | "failed" | "incomplete";
218
+ exchangeStartedMs: number | null;
219
+ exchangeEndedMs: number | null;
220
+ handlerMs: number | null;
221
+ diagnostics: {
222
+ input?: unknown;
223
+ output?: unknown;
224
+ attribution?: unknown;
225
+ };
226
+ }[];
227
+ orchestration: {
228
+ modelRoundCount: null;
229
+ programChildLinks: "unavailable";
230
+ reason: string;
231
+ nativeTurnIds: string[];
232
+ programs: {
233
+ callId: string;
234
+ tool: string | null;
235
+ startedMs: number | null;
236
+ endedMs: number | null;
237
+ status: "completed" | "failed" | "incomplete";
238
+ }[];
239
+ };
240
+ modelReview: {
241
+ status: string;
242
+ current: boolean;
243
+ certifiesVisuals: boolean;
244
+ callId: string | null;
245
+ sequence: number | null;
246
+ criteria: {} | null;
247
+ detailRequired: {} | null;
248
+ inspectionIds: {} | null;
249
+ checks: {} | null;
250
+ accepted: {} | null;
251
+ };
252
+ userFeedback: string | null;
253
+ }[];
254
+ groups: {
255
+ configuration: Record<string, string | null>;
256
+ requestIds: string[];
257
+ }[];
258
+ investigationTargets: {
259
+ requestIds: string[];
260
+ configuration: Record<string, string | null>;
261
+ tool: string | null;
262
+ phase: string | null;
263
+ code: string | null;
264
+ kind: ExecutionFinding["kind"];
265
+ confidence: ExecutionFinding["confidence"];
266
+ occurrences: number;
267
+ evidence: {
268
+ requestId: string | null;
269
+ callId: string | null;
270
+ sequence: number | null;
271
+ }[];
272
+ possibleRemedy: string;
273
+ }[];
274
+ excluded: {
275
+ requestId: string | null;
276
+ reason: string;
277
+ }[];
278
+ outsidePeriod: number;
279
+ partialRuns: number;
280
+ frequencies: {
281
+ requestIds: string[];
282
+ kind: string;
283
+ occurrences: number;
284
+ }[];
285
+ limitations: string[];
286
+ };
287
+ export {};
288
+ //# sourceMappingURL=evaluation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation.d.ts","sourceRoot":"","sources":["../../src/profiler/evaluation.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAGD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEnD,KAAK,eAAe,GAAG,UAAU,CAAC,O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