@mondaydotcomorg/atp-compiler 0.17.16 → 0.18.4-rc.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/__tests__/unit/default-compiler.test.ts +259 -0
- package/__tests__/unit/plugin-system.test.ts +401 -0
- package/dist/atp-compiler/src/index.d.ts +8 -0
- package/dist/atp-compiler/src/index.d.ts.map +1 -1
- package/dist/atp-compiler/src/index.js +9 -0
- package/dist/atp-compiler/src/index.js.map +1 -1
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.d.ts +40 -0
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.js +40 -0
- package/dist/atp-compiler/src/plugin-system/create-default-compiler.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.d.ts +18 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.js +45 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/array-transformer-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.d.ts +17 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.js +33 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/detection-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.d.ts +11 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.js +11 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/index.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.d.ts +17 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.js +36 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/loop-transformer-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.d.ts +19 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.js +49 -0
- package/dist/atp-compiler/src/plugin-system/default-plugins/promise-transformer-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.d.ts +31 -0
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.js +60 -0
- package/dist/atp-compiler/src/plugin-system/examples/loop-transformer-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.d.ts +48 -0
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.js +108 -0
- package/dist/atp-compiler/src/plugin-system/examples/security-validator-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.d.ts +53 -0
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.js +106 -0
- package/dist/atp-compiler/src/plugin-system/examples/timeout-plugin.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/index.d.ts +14 -0
- package/dist/atp-compiler/src/plugin-system/index.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/index.js +16 -0
- package/dist/atp-compiler/src/plugin-system/index.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.d.ts +102 -0
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.js +280 -0
- package/dist/atp-compiler/src/plugin-system/pluggable-compiler.js.map +1 -0
- package/dist/atp-compiler/src/plugin-system/plugin-api.d.ts +165 -0
- package/dist/atp-compiler/src/plugin-system/plugin-api.d.ts.map +1 -0
- package/dist/atp-compiler/src/plugin-system/plugin-api.js +180 -0
- package/dist/atp-compiler/src/plugin-system/plugin-api.js.map +1 -0
- package/dist/atp-compiler/src/transformer/array-transformer-utils.d.ts +2 -2
- package/dist/atp-compiler/src/transformer/array-transformer-utils.d.ts.map +1 -1
- package/dist/atp-compiler/src/transformer/array-transformer-utils.js +2 -2
- package/dist/atp-compiler/src/transformer/array-transformer-utils.js.map +1 -1
- package/dist/atp-compiler/src/transformer/index.d.ts +15 -1
- package/dist/atp-compiler/src/transformer/index.d.ts.map +1 -1
- package/dist/atp-compiler/src/transformer/index.js +17 -0
- package/dist/atp-compiler/src/transformer/index.js.map +1 -1
- package/dist/atp-compiler/src/transformer/loop-transformer.d.ts +0 -4
- package/dist/atp-compiler/src/transformer/loop-transformer.d.ts.map +1 -1
- package/dist/atp-compiler/src/transformer/loop-transformer.js +5 -60
- package/dist/atp-compiler/src/transformer/loop-transformer.js.map +1 -1
- package/dist/atp-compiler/src/transformer/utils.d.ts +4 -0
- package/dist/atp-compiler/src/transformer/utils.d.ts.map +1 -1
- package/dist/atp-compiler/src/transformer/utils.js +15 -0
- package/dist/atp-compiler/src/transformer/utils.js.map +1 -1
- package/dist/atp-compiler/src/types/compiler-interface.d.ts +61 -0
- package/dist/atp-compiler/src/types/compiler-interface.d.ts.map +1 -0
- package/dist/atp-compiler/src/types/compiler-interface.js +18 -0
- package/dist/atp-compiler/src/types/compiler-interface.js.map +1 -0
- package/dist/runtime/src/approval/index.js +2 -1
- package/dist/runtime/src/approval/index.js.map +1 -1
- package/dist/runtime/src/index.d.ts +1 -1
- package/dist/runtime/src/index.d.ts.map +1 -1
- package/dist/runtime/src/index.js +1 -1
- package/dist/runtime/src/index.js.map +1 -1
- package/dist/runtime/src/llm/index.d.ts +1 -1
- package/dist/runtime/src/llm/index.d.ts.map +1 -1
- package/dist/runtime/src/llm/index.js +1 -1
- package/dist/runtime/src/llm/index.js.map +1 -1
- package/dist/runtime/src/llm/replay.d.ts +75 -0
- package/dist/runtime/src/llm/replay.d.ts.map +1 -1
- package/dist/runtime/src/llm/replay.js +187 -5
- package/dist/runtime/src/llm/replay.js.map +1 -1
- package/dist/runtime/src/metadata/generated.d.ts.map +1 -1
- package/dist/runtime/src/metadata/generated.js +189 -189
- package/dist/runtime/src/metadata/generated.js.map +1 -1
- package/dist/runtime/src/metadata/index.js +2 -2
- package/dist/runtime/src/metadata/index.js.map +1 -1
- package/dist/runtime/src/metadata/types.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +14 -5
- package/project.json +1 -3
- package/src/index.ts +26 -0
- package/src/plugin-system/create-default-compiler.ts +57 -0
- package/src/plugin-system/default-plugins/array-transformer-plugin.ts +57 -0
- package/src/plugin-system/default-plugins/detection-plugin.ts +41 -0
- package/src/plugin-system/default-plugins/index.ts +12 -0
- package/src/plugin-system/default-plugins/loop-transformer-plugin.ts +47 -0
- package/src/plugin-system/default-plugins/promise-transformer-plugin.ts +63 -0
- package/src/plugin-system/examples/loop-transformer-plugin.ts +76 -0
- package/src/plugin-system/examples/security-validator-plugin.ts +168 -0
- package/src/plugin-system/examples/timeout-plugin.ts +158 -0
- package/src/plugin-system/index.ts +19 -0
- package/src/plugin-system/pluggable-compiler.ts +318 -0
- package/src/plugin-system/plugin-api.ts +330 -0
- package/src/transformer/array-transformer-utils.ts +3 -7
- package/src/transformer/index.ts +21 -1
- package/src/transformer/loop-transformer.ts +5 -66
- package/src/transformer/utils.ts +14 -0
- package/src/types/compiler-interface.ts +79 -0
|
@@ -30,7 +30,8 @@ export function clearCurrentExecutionId() {
|
|
|
30
30
|
currentExecutionId = null;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Gets the current execution state
|
|
33
|
+
* Gets the current execution state
|
|
34
|
+
* Note: State must be initialized before calling this. Use initializeExecutionState() first.
|
|
34
35
|
*/
|
|
35
36
|
function getCurrentState() {
|
|
36
37
|
let executionId = currentExecutionId;
|
|
@@ -40,17 +41,60 @@ function getCurrentState() {
|
|
|
40
41
|
if (!executionId) {
|
|
41
42
|
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before runtime API calls.');
|
|
42
43
|
}
|
|
44
|
+
console.log(`[STATE] getCurrentState: executionId=${executionId}, hasState=${executionStates.has(executionId)}, totalStates=${executionStates.size}, stateKeys=${Array.from(executionStates.keys())}`);
|
|
43
45
|
let state = executionStates.get(executionId);
|
|
44
46
|
if (!state) {
|
|
47
|
+
// State should have been initialized explicitly at execution start
|
|
48
|
+
// Create it now with a safe default to prevent crashes
|
|
49
|
+
console.warn('[STATE] State not initialized, creating with default. This should not happen.', { executionId });
|
|
45
50
|
state = {
|
|
46
51
|
shouldPauseForClient: false,
|
|
47
52
|
replayResults: undefined,
|
|
48
53
|
callSequenceNumber: 0,
|
|
54
|
+
apiCallResults: [],
|
|
55
|
+
apiResultCache: undefined,
|
|
56
|
+
createdAt: Date.now(),
|
|
49
57
|
};
|
|
50
58
|
executionStates.set(executionId, state);
|
|
51
59
|
}
|
|
60
|
+
else {
|
|
61
|
+
console.log(`[STATE] Found existing state: shouldPause=${state.shouldPauseForClient}, hasReplay=${!!state.replayResults}, seqNum=${state.callSequenceNumber}`);
|
|
62
|
+
}
|
|
52
63
|
return state;
|
|
53
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Initialize execution state with correct values at execution start
|
|
67
|
+
* This must be called before any state access to ensure correct pause mode
|
|
68
|
+
*/
|
|
69
|
+
export function initializeExecutionState(shouldPause) {
|
|
70
|
+
const executionId = currentExecutionId || executionContext.getStore();
|
|
71
|
+
if (!executionId) {
|
|
72
|
+
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before initializeExecutionState().');
|
|
73
|
+
}
|
|
74
|
+
console.log(`[INIT] initializeExecutionState called: executionId=${executionId}, shouldPause=${shouldPause}, existingState=${executionStates.has(executionId)}`);
|
|
75
|
+
const existingState = executionStates.get(executionId);
|
|
76
|
+
if (existingState) {
|
|
77
|
+
existingState.shouldPauseForClient = shouldPause;
|
|
78
|
+
if (!existingState.apiCallResults) {
|
|
79
|
+
existingState.apiCallResults = [];
|
|
80
|
+
}
|
|
81
|
+
if (!existingState.apiResultCache) {
|
|
82
|
+
existingState.apiResultCache = undefined;
|
|
83
|
+
}
|
|
84
|
+
console.log(`[INIT] Preserving existing state: replaySize=${existingState.replayResults?.size || 0}, counter=${existingState.callSequenceNumber}`);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const state = {
|
|
88
|
+
shouldPauseForClient: shouldPause,
|
|
89
|
+
replayResults: undefined,
|
|
90
|
+
callSequenceNumber: 0,
|
|
91
|
+
apiCallResults: [],
|
|
92
|
+
apiResultCache: undefined,
|
|
93
|
+
createdAt: Date.now(),
|
|
94
|
+
};
|
|
95
|
+
console.log(`[INIT] Creating new state: shouldPause=${shouldPause}`);
|
|
96
|
+
executionStates.set(executionId, state);
|
|
97
|
+
}
|
|
54
98
|
/**
|
|
55
99
|
* Runs a function within an execution context
|
|
56
100
|
* @param executionId - Unique ID for this execution
|
|
@@ -64,45 +108,77 @@ export function runInExecutionContext(executionId, fn) {
|
|
|
64
108
|
* @param pause - If true, throws PauseExecutionError instead of calling callback
|
|
65
109
|
*/
|
|
66
110
|
export function setPauseForClient(pause) {
|
|
67
|
-
|
|
111
|
+
const executionId = currentExecutionId || executionContext.getStore();
|
|
112
|
+
if (!executionId) {
|
|
113
|
+
throw new Error('No execution context set. Executor must call setCurrentExecutionId() before setPauseForClient().');
|
|
114
|
+
}
|
|
115
|
+
const state = executionStates.get(executionId);
|
|
116
|
+
if (!state) {
|
|
117
|
+
throw new Error('Execution state not initialized. Call initializeExecutionState() first.');
|
|
118
|
+
}
|
|
119
|
+
state.shouldPauseForClient = pause;
|
|
68
120
|
}
|
|
69
121
|
/**
|
|
70
122
|
* Checks if should pause for client
|
|
71
123
|
*/
|
|
72
124
|
export function shouldPauseForClient() {
|
|
73
|
-
|
|
125
|
+
const state = getCurrentState();
|
|
126
|
+
return state.shouldPauseForClient;
|
|
74
127
|
}
|
|
75
128
|
/**
|
|
76
129
|
* Sets up replay mode for resumption
|
|
77
130
|
* @param results - Map of sequence number to result for replaying callbacks
|
|
78
131
|
*/
|
|
79
132
|
export function setReplayMode(results) {
|
|
133
|
+
const executionId = currentExecutionId || executionContext.getStore();
|
|
134
|
+
console.log(`[REPLAY] setReplayMode called: executionId=${executionId}, replaySize=${results?.size || 0}, replayKeys=${results ? Array.from(results.keys()) : []}`);
|
|
80
135
|
const state = getCurrentState();
|
|
136
|
+
// Store replay results
|
|
137
|
+
const oldSize = state.replayResults?.size || 0;
|
|
81
138
|
state.replayResults = results;
|
|
139
|
+
// Always reset counter when setting replay mode
|
|
140
|
+
// - When entering replay mode with cached results: start from 0 to match first call
|
|
141
|
+
// - When clearing replay mode (results=undefined): reset to 0 for clean state
|
|
142
|
+
const oldCounter = state.callSequenceNumber;
|
|
82
143
|
state.callSequenceNumber = 0;
|
|
144
|
+
if (results && results.size > 0) {
|
|
145
|
+
console.log(`[REPLAY] Entering replay mode: ${oldCounter} -> 0 (have ${results.size} cached results)`);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
console.log(`[REPLAY] Clearing replay mode: ${oldCounter} -> 0`);
|
|
149
|
+
}
|
|
150
|
+
console.log(`[REPLAY] setReplayMode completed: oldSize=${oldSize}, newSize=${state.replayResults?.size || 0}, callSequenceNumber=${state.callSequenceNumber}`);
|
|
83
151
|
}
|
|
84
152
|
/**
|
|
85
153
|
* Gets current call sequence number
|
|
86
154
|
*/
|
|
87
155
|
export function getCallSequenceNumber() {
|
|
88
|
-
|
|
156
|
+
const state = getCurrentState();
|
|
157
|
+
console.log(`[GET_SEQ] getCallSequenceNumber called: returning ${state.callSequenceNumber}, hasReplay=${!!state.replayResults}, replaySize=${state.replayResults?.size || 0}`);
|
|
158
|
+
return state.callSequenceNumber;
|
|
89
159
|
}
|
|
90
160
|
/**
|
|
91
161
|
* Increments and returns the next sequence number
|
|
92
162
|
*/
|
|
93
163
|
export function nextSequenceNumber() {
|
|
94
164
|
const state = getCurrentState();
|
|
95
|
-
|
|
165
|
+
const current = state.callSequenceNumber;
|
|
166
|
+
state.callSequenceNumber++;
|
|
167
|
+
console.log(`[SEQUENCE] nextSequenceNumber: returning ${current}, next will be ${state.callSequenceNumber}, isReplay=${state.replayResults !== undefined}, replaySize=${state.replayResults?.size || 0}`);
|
|
168
|
+
return current;
|
|
96
169
|
}
|
|
97
170
|
/**
|
|
98
171
|
* Check if we have a cached result for the current sequence
|
|
99
172
|
*/
|
|
100
173
|
export function getCachedResult(sequenceNumber) {
|
|
101
174
|
const state = getCurrentState();
|
|
175
|
+
console.log(`[CACHE] getCachedResult(${sequenceNumber}): hasReplayResults=${!!state.replayResults}, replayKeys=${state.replayResults ? Array.from(state.replayResults.keys()) : []}`);
|
|
102
176
|
if (state.replayResults && state.replayResults.has(sequenceNumber)) {
|
|
103
177
|
const result = state.replayResults.get(sequenceNumber);
|
|
178
|
+
console.log(`[CACHE] Found cached result for sequence ${sequenceNumber}:`, JSON.stringify(result));
|
|
104
179
|
return result;
|
|
105
180
|
}
|
|
181
|
+
console.log(`[CACHE] No cached result for sequence ${sequenceNumber}`);
|
|
106
182
|
return undefined;
|
|
107
183
|
}
|
|
108
184
|
/**
|
|
@@ -111,4 +187,110 @@ export function getCachedResult(sequenceNumber) {
|
|
|
111
187
|
export function isReplayMode() {
|
|
112
188
|
return getCurrentState().replayResults !== undefined;
|
|
113
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Store an API call result during execution
|
|
192
|
+
* This is used to track server-side API calls so they can be cached on resume
|
|
193
|
+
*/
|
|
194
|
+
export function storeAPICallResult(record) {
|
|
195
|
+
const state = getCurrentState();
|
|
196
|
+
state.apiCallResults.push(record);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Get all API call results tracked during this execution
|
|
200
|
+
* Used when building callback history on pause
|
|
201
|
+
*/
|
|
202
|
+
export function getAPICallResults() {
|
|
203
|
+
const state = getCurrentState();
|
|
204
|
+
return state.apiCallResults;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Clear API call results (used when execution completes or fails)
|
|
208
|
+
*/
|
|
209
|
+
export function clearAPICallResults() {
|
|
210
|
+
const state = getCurrentState();
|
|
211
|
+
state.apiCallResults = [];
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Set up API result cache for resume (operation-based, not sequence-based)
|
|
215
|
+
* This allows API calls to find their cached results even if execution order changes
|
|
216
|
+
*/
|
|
217
|
+
export function setAPIResultCache(cache) {
|
|
218
|
+
const state = getCurrentState();
|
|
219
|
+
state.apiResultCache = cache;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get API result from cache by operation name
|
|
223
|
+
*/
|
|
224
|
+
export function getAPIResultFromCache(operation) {
|
|
225
|
+
const state = getCurrentState();
|
|
226
|
+
return state.apiResultCache?.get(operation);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Store API result in cache by operation name (for initial execution)
|
|
230
|
+
*/
|
|
231
|
+
export function storeAPIResultInCache(operation, result) {
|
|
232
|
+
const state = getCurrentState();
|
|
233
|
+
if (!state.apiResultCache) {
|
|
234
|
+
state.apiResultCache = new Map();
|
|
235
|
+
}
|
|
236
|
+
state.apiResultCache.set(operation, result);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Cleanup a specific execution's state
|
|
240
|
+
* This should be called when an execution completes, fails, or is no longer needed
|
|
241
|
+
*/
|
|
242
|
+
export function cleanupExecutionState(executionId) {
|
|
243
|
+
executionStates.delete(executionId);
|
|
244
|
+
if (currentExecutionId === executionId) {
|
|
245
|
+
currentExecutionId = null;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Cleanup old execution states to prevent memory leaks
|
|
250
|
+
* Removes states older than the specified max age (default: 1 hour)
|
|
251
|
+
*/
|
|
252
|
+
export function cleanupOldExecutionStates(maxAgeMs = 3600000) {
|
|
253
|
+
const now = Date.now();
|
|
254
|
+
let cleaned = 0;
|
|
255
|
+
for (const [executionId, state] of executionStates.entries()) {
|
|
256
|
+
const age = now - state.createdAt;
|
|
257
|
+
if (age > maxAgeMs) {
|
|
258
|
+
executionStates.delete(executionId);
|
|
259
|
+
cleaned++;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return cleaned;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Reset ALL execution state - for testing purposes only
|
|
266
|
+
* WARNING: This will clear all execution states, breaking any in-flight executions
|
|
267
|
+
*/
|
|
268
|
+
export function resetAllExecutionState() {
|
|
269
|
+
executionStates.clear();
|
|
270
|
+
currentExecutionId = null;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Get execution state statistics - for monitoring/debugging
|
|
274
|
+
*/
|
|
275
|
+
export function getExecutionStateStats() {
|
|
276
|
+
const now = Date.now();
|
|
277
|
+
const executionIds = Array.from(executionStates.keys());
|
|
278
|
+
let oldestAge = null;
|
|
279
|
+
let newestAge = null;
|
|
280
|
+
for (const state of executionStates.values()) {
|
|
281
|
+
const age = now - state.createdAt;
|
|
282
|
+
if (oldestAge === null || age > oldestAge) {
|
|
283
|
+
oldestAge = age;
|
|
284
|
+
}
|
|
285
|
+
if (newestAge === null || age < newestAge) {
|
|
286
|
+
newestAge = age;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
totalStates: executionStates.size,
|
|
291
|
+
oldestStateAge: oldestAge,
|
|
292
|
+
newestStateAge: newestAge,
|
|
293
|
+
executionIds,
|
|
294
|
+
};
|
|
295
|
+
}
|
|
114
296
|
//# sourceMappingURL=replay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.js","sourceRoot":"","sources":["../../../../../runtime/src/llm/replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"replay.js","sourceRoot":"","sources":["../../../../../runtime/src/llm/replay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAuBhD;;;GAGG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,EAA0B,CAAC;AAE1D;;;GAGG;AACH,MAAM,gBAAgB,GAAG,IAAI,iBAAiB,EAAU,CAAC;AAEzD;;;;GAIG;AACH,IAAI,kBAAkB,GAAkB,IAAI,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACxD,kBAAkB,GAAG,WAAW,CAAC;AAClC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACtC,kBAAkB,GAAG,IAAI,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe;IACvB,IAAI,WAAW,GAAG,kBAAkB,CAAC;IAErC,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,WAAW,GAAG,gBAAgB,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC;IACnD,CAAC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACd,gGAAgG,CAChG,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,wCAAwC,WAAW,cAAc,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,iBAAiB,eAAe,CAAC,IAAI,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IAEvM,IAAI,KAAK,GAAG,eAAe,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,mEAAmE;Q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IAAI,GAAG,GAAG,SAAS,EAAE,CAAC;YAC3C,SAAS,GAAG,GAAG,CAAC;QACjB,CAAC;IACF,CAAC;IAED,OAAO;QACN,WAAW,EAAE,eAAe,CAAC,IAAI;QACjC,cAAc,EAAE,SAAS;QACzB,cAAc,EAAE,SAAS;QACzB,YAAY;KACZ,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/metadata/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/metadata/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,kBAAkB,EAAE,kBAAkB,EAwPlD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,GAAG,UAAU,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,aAAa;;;GAoCzB,CAAC"}
|