@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
|
@@ -8,283 +8,283 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export const GENERATED_METADATA = [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
name: 'approval',
|
|
12
|
+
description: 'Approval API - Request explicit human approval for sensitive operations',
|
|
13
|
+
methods: [
|
|
14
14
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
name: 'request',
|
|
16
|
+
description: 'Request approval from a human',
|
|
17
|
+
params: [
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
name: 'message',
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The message to display to the user',
|
|
22
|
+
optional: false,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
25
|
+
name: 'context',
|
|
26
|
+
type: 'Record<string, unknown>',
|
|
27
|
+
description: 'Optional context information about what needs approval',
|
|
28
|
+
optional: true,
|
|
29
|
+
},
|
|
30
30
|
],
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
]
|
|
31
|
+
returns: 'Promise<ApprovalResponse>',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
name: 'cache',
|
|
37
|
+
description: 'Cache API - Store and retrieve data with optional TTL',
|
|
38
|
+
methods: [
|
|
39
39
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
name: 'get',
|
|
41
|
+
description: 'Get a value from cache by key',
|
|
42
|
+
params: [
|
|
43
43
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
44
|
+
name: 'key',
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Cache key',
|
|
47
|
+
optional: false,
|
|
48
|
+
},
|
|
49
49
|
],
|
|
50
|
-
|
|
50
|
+
returns: 'Promise<T | null>',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
name: 'set',
|
|
54
|
+
description: 'Set a value in cache with optional TTL',
|
|
55
|
+
params: [
|
|
56
56
|
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
name: 'key',
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'Cache key',
|
|
60
|
+
optional: false,
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
name: 'value',
|
|
64
|
+
type: 'unknown',
|
|
65
|
+
description: 'Value to cache',
|
|
66
|
+
optional: false,
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
69
|
+
name: 'ttl',
|
|
70
|
+
type: 'number',
|
|
71
|
+
description: 'Time to live in seconds',
|
|
72
|
+
optional: true,
|
|
73
|
+
},
|
|
74
74
|
],
|
|
75
|
-
|
|
75
|
+
returns: 'Promise<void>',
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
name: 'delete',
|
|
79
|
+
description: 'Delete a value from cache',
|
|
80
|
+
params: [
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
82
|
+
name: 'key',
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Cache key to delete',
|
|
85
|
+
optional: false,
|
|
86
|
+
},
|
|
87
87
|
],
|
|
88
|
-
|
|
88
|
+
returns: 'Promise<void>',
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
name: 'has',
|
|
92
|
+
description: 'Check if a key exists in cache',
|
|
93
|
+
params: [
|
|
94
94
|
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
95
|
+
name: 'key',
|
|
96
|
+
type: 'string',
|
|
97
|
+
description: 'Cache key to check',
|
|
98
|
+
optional: false,
|
|
99
|
+
},
|
|
100
100
|
],
|
|
101
|
-
|
|
101
|
+
returns: 'Promise<boolean>',
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
]
|
|
104
|
+
name: 'clear',
|
|
105
|
+
description: 'Clear all cache entries',
|
|
106
|
+
params: [],
|
|
107
|
+
returns: 'Promise<void>',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
name: 'embedding',
|
|
113
|
+
description: 'Embedding API - Client-side embedding with server-side vector storage',
|
|
114
|
+
methods: [
|
|
115
115
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
name: 'embed',
|
|
117
|
+
description: 'Request client to generate and store embeddings',
|
|
118
|
+
params: [
|
|
119
119
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
name: 'input',
|
|
121
|
+
type: 'string | string[]',
|
|
122
|
+
description: 'Text(s) to embed',
|
|
123
|
+
optional: false,
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
126
|
+
name: 'metadata',
|
|
127
|
+
type: 'Record<string, unknown>',
|
|
128
|
+
description: 'Optional metadata to store with embeddings',
|
|
129
|
+
optional: true,
|
|
130
|
+
},
|
|
131
131
|
],
|
|
132
|
-
|
|
132
|
+
returns: 'Promise<string | string[]>',
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
name: 'search',
|
|
136
|
+
description: 'Search stored embeddings by similarity',
|
|
137
|
+
params: [
|
|
138
138
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
name: 'query',
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: 'Search query text (will be embedded by client)',
|
|
142
|
+
optional: false,
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
145
|
+
name: 'options',
|
|
146
|
+
type: "Omit<SearchOptions, 'query'>",
|
|
147
|
+
description: 'Search options (topK, minSimilarity, filter)',
|
|
148
|
+
optional: true,
|
|
149
|
+
},
|
|
150
150
|
],
|
|
151
|
-
|
|
151
|
+
returns: 'Promise<SearchResult[]>',
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
name: 'similarity',
|
|
155
|
+
description: 'Calculate cosine similarity between two embedding vectors',
|
|
156
|
+
params: [
|
|
157
157
|
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
name: 'embedding1',
|
|
159
|
+
type: 'number[]',
|
|
160
|
+
description: 'First embedding vector',
|
|
161
|
+
optional: false,
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
164
|
+
name: 'embedding2',
|
|
165
|
+
type: 'number[]',
|
|
166
|
+
description: 'Second embedding vector',
|
|
167
|
+
optional: false,
|
|
168
|
+
},
|
|
169
169
|
],
|
|
170
|
-
|
|
170
|
+
returns: 'number',
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
name: 'getAll',
|
|
174
|
+
description: 'Get all stored embeddings',
|
|
175
|
+
params: [],
|
|
176
|
+
returns: 'EmbeddingRecord[]',
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
]
|
|
179
|
+
name: 'count',
|
|
180
|
+
description: 'Get count of stored embeddings',
|
|
181
|
+
params: [],
|
|
182
|
+
returns: 'number',
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
name: 'llm',
|
|
188
|
+
description: 'LLM API - Large Language Model calls using client-provided LLM (requires client.provideLLM())',
|
|
189
|
+
methods: [
|
|
190
190
|
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
name: 'call',
|
|
192
|
+
description: 'Make an LLM call with a prompt',
|
|
193
|
+
params: [
|
|
194
194
|
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
195
|
+
name: 'options',
|
|
196
|
+
type: 'LLMCallOptions',
|
|
197
|
+
description: 'LLM call options including prompt',
|
|
198
|
+
optional: false,
|
|
199
|
+
},
|
|
200
200
|
],
|
|
201
|
-
|
|
201
|
+
returns: 'Promise<string>',
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
name: 'extract',
|
|
205
|
+
description: 'Extract structured data from text using an LLM',
|
|
206
|
+
params: [
|
|
207
207
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
208
|
+
name: 'options',
|
|
209
|
+
type: 'LLMExtractOptions',
|
|
210
|
+
description: 'Extraction options with JSON schema',
|
|
211
|
+
optional: false,
|
|
212
|
+
},
|
|
213
213
|
],
|
|
214
|
-
|
|
214
|
+
returns: 'Promise<T>',
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
name: 'classify',
|
|
218
|
+
description: 'Classify text into one of the provided categories',
|
|
219
|
+
params: [
|
|
220
220
|
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
221
|
+
name: 'options',
|
|
222
|
+
type: 'LLMClassifyOptions',
|
|
223
|
+
description: 'Classification options with categories',
|
|
224
|
+
optional: false,
|
|
225
|
+
},
|
|
226
226
|
],
|
|
227
|
-
|
|
228
|
-
}
|
|
229
|
-
]
|
|
227
|
+
returns: 'Promise<string>',
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
name: 'progress',
|
|
233
|
+
description: 'Progress API - Report execution progress to clients',
|
|
234
|
+
methods: [
|
|
235
235
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
name: 'report',
|
|
237
|
+
description: 'Report progress with message and completion fraction',
|
|
238
|
+
params: [
|
|
239
239
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
name: 'message',
|
|
241
|
+
type: 'string',
|
|
242
|
+
description: 'Progress message',
|
|
243
|
+
optional: false,
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
246
|
+
name: 'fraction',
|
|
247
|
+
type: 'number',
|
|
248
|
+
description: 'Completion fraction (0-1)',
|
|
249
|
+
optional: false,
|
|
250
|
+
},
|
|
251
251
|
],
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
252
|
+
returns: 'void',
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
256
|
];
|
|
257
257
|
/**
|
|
258
258
|
* Type definitions extracted using ts-json-schema-generator
|
|
259
259
|
*/
|
|
260
260
|
export const TYPE_REGISTRY = [
|
|
261
261
|
{
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
name: 'ApprovalResponse',
|
|
263
|
+
definition: 'export interface ApprovalResponse<T = unknown> {\n\tapproved: boolean;\n\tresponse?: T;\n\ttimestamp: number;\n}',
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
name: 'SearchOptions',
|
|
267
|
+
definition: 'interface SearchOptions {\n query: string;\n topK?: number;\n minSimilarity?: number;\n filter?: Record<string, unknown>;\n}',
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
name: 'SearchResult',
|
|
271
|
+
definition: 'interface SearchResult {\n id: string;\n text: string;\n similarity: number;\n metadata?: Record<string, unknown>;\n}',
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
name: 'EmbeddingRecord',
|
|
275
|
+
definition: 'interface EmbeddingRecord {\n id: string;\n text: string;\n embedding: number[];\n metadata?: Record<string, unknown>;\n}',
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
name: 'LLMCallOptions',
|
|
279
|
+
definition: 'interface LLMCallOptions {\n prompt: string;\n context?: Record<string, unknown>;\n model?: string;\n maxTokens?: number;\n temperature?: number;\n systemPrompt?: string;\n}',
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
name: 'LLMExtractOptions',
|
|
283
|
+
definition: 'interface LLMExtractOptions {\n prompt: string;\n context?: Record<string, unknown>;\n schema: unknown;\n}',
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
286
|
+
name: 'LLMClassifyOptions',
|
|
287
|
+
definition: 'interface LLMClassifyOptions {\n text: string;\n categories: string[];\n context?: Record<string, unknown>;\n}',
|
|
288
|
+
},
|
|
289
289
|
];
|
|
290
290
|
//# sourceMappingURL=generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../../../../runtime/src/metadata/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAyB;
|
|
1
|
+
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../../../../runtime/src/metadata/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAyB;IACvD;QACC,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,yEAAyE;QACtF,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE;oBACP;wBACC,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oCAAoC;wBACjD,QAAQ,EAAE,KAAK;qBACf;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,yBAAyB;wBAC/B,WAAW,EAAE,wDAAwD;wBACrE,QAAQ,EAAE,IAAI;qBACd;iBACD;gBACD,OAAO,EAAE,2BAA2B;aACpC;SACD;KACD;IACD;QACC,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE;oBACP;wBACC,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,WAAW;wBACxB,QAAQ,EAAE,KAAK;qBACf;iBACD;gBACD,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE;oBACP;wBACC,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,WAAW;wBACxB,QAAQ,EAAE,KAAK;qBACf;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,gBAAgB;wBAC7B,QAAQ,EAAE,KAA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T,+GAA+G;KAChH;IACD;QACC,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EACT,mHAAmH;KACpH;CACD,CAAC"}
|
|
@@ -34,10 +34,10 @@ export function generateRuntimeTypes(apis, options) {
|
|
|
34
34
|
const usedTypes = new Set();
|
|
35
35
|
for (const api of filteredApis) {
|
|
36
36
|
for (const method of api.methods) {
|
|
37
|
-
const allTypes = [method.returns, ...method.params.map(p => p.type)].join(' ');
|
|
37
|
+
const allTypes = [method.returns, ...method.params.map((p) => p.type)].join(' ');
|
|
38
38
|
const typeMatches = allTypes.match(/\b[A-Z][a-zA-Z]+\b/g);
|
|
39
39
|
if (typeMatches) {
|
|
40
|
-
typeMatches.forEach(t => usedTypes.add(t));
|
|
40
|
+
typeMatches.forEach((t) => usedTypes.add(t));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../runtime/src/metadata/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAK5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAS/C;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CACnC,IAA0B,EAC1B,OAGC;IAED,IAAI,YAAY,GAAG,IAAI,CAAC;IAExB,IAAI,OAAO,EAAE,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChE,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;QAC3F,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,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AAE,CAAC;YACxC,CAAC,CAAC,CAAC;YAEH,UAAU,IAAI,OAAO,MAAM,CAAC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,OAAO,KAAK,CAAC;YAErF,UAAU,IAAI,IAAI,CAAC;QACpB,CAAC;QAED,UAAU,IAAI,UAAU,CAAC;IAC1B,CAAC;IAED,UAAU,IAAI,QAAQ,CAAC;IAEvB,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Common metadata interface for runtime APIs
|
|
3
3
|
* Each runtime module exports its metadata for the type generator
|
|
4
4
|
*/
|
|
5
|
-
import { RuntimeAPIName } from
|
|
5
|
+
import { RuntimeAPIName } from './generated';
|
|
6
6
|
export interface RuntimeAPIParam {
|
|
7
7
|
name: string;
|
|
8
8
|
type: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../src/index.ts","../src/types.ts","../src/plugin-system/create-default-compiler.ts","../src/plugin-system/index.ts","../src/plugin-system/pluggable-compiler.ts","../src/plugin-system/plugin-api.ts","../src/plugin-system/default-plugins/array-transformer-plugin.ts","../src/plugin-system/default-plugins/detection-plugin.ts","../src/plugin-system/default-plugins/index.ts","../src/plugin-system/default-plugins/loop-transformer-plugin.ts","../src/plugin-system/default-plugins/promise-transformer-plugin.ts","../src/plugin-system/examples/loop-transformer-plugin.ts","../src/plugin-system/examples/security-validator-plugin.ts","../src/plugin-system/examples/timeout-plugin.ts","../src/runtime/batch-parallel.ts","../src/runtime/checkpoint-manager.ts","../src/runtime/context.ts","../src/runtime/errors.ts","../src/runtime/index.ts","../src/runtime/resumable-arrays.ts","../src/runtime/resumable-loops.ts","../src/runtime/resumable-parallel.ts","../src/transformer/array-transformer-batch.ts","../src/transformer/array-transformer-sequential.ts","../src/transformer/array-transformer-utils.ts","../src/transformer/array-transformer-wrappers.ts","../src/transformer/array-transformer.ts","../src/transformer/batch-detector.ts","../src/transformer/batch-optimizer.ts","../src/transformer/detector.ts","../src/transformer/index.ts","../src/transformer/loop-transformer.ts","../src/transformer/promise-transformer.ts","../src/transformer/utils.ts","../src/types/compiler-interface.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/atp-compiler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.4-rc.0",
|
|
4
4
|
"description": "Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/atp-compiler/src/index.js",
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"types": "./dist/atp-compiler/src/index.d.ts",
|
|
11
11
|
"import": "./dist/atp-compiler/src/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./plugin-system": {
|
|
14
|
+
"types": "./dist/atp-compiler/src/plugin-system/index.d.ts",
|
|
15
|
+
"import": "./dist/atp-compiler/src/plugin-system/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./plugin-system/*": {
|
|
18
|
+
"types": "./dist/atp-compiler/src/plugin-system/*.d.ts",
|
|
19
|
+
"import": "./dist/atp-compiler/src/plugin-system/*.js"
|
|
20
|
+
},
|
|
13
21
|
"./*": {
|
|
14
22
|
"types": "./dist/atp-compiler/src/*.d.ts",
|
|
15
23
|
"import": "./dist/atp-compiler/src/*.js"
|
|
@@ -34,6 +42,7 @@
|
|
|
34
42
|
},
|
|
35
43
|
"keywords": [
|
|
36
44
|
"agent-tool-protocol",
|
|
45
|
+
"atp",
|
|
37
46
|
"compiler",
|
|
38
47
|
"resumable",
|
|
39
48
|
"async",
|
|
@@ -46,15 +55,15 @@
|
|
|
46
55
|
"@babel/parser": "^7.26.0",
|
|
47
56
|
"@babel/traverse": "^7.26.0",
|
|
48
57
|
"@babel/types": "^7.26.0",
|
|
49
|
-
"@mondaydotcomorg/atp-protocol": "0.
|
|
50
|
-
"@mondaydotcomorg/atp-runtime": "0.
|
|
58
|
+
"@mondaydotcomorg/atp-protocol": "0.18.4-rc.0",
|
|
59
|
+
"@mondaydotcomorg/atp-runtime": "0.18.4-rc.0",
|
|
51
60
|
"@types/babel__generator": "^7.6.0",
|
|
52
61
|
"@types/babel__traverse": "^7.20.0",
|
|
53
62
|
"nanoid": "^5.0.0"
|
|
54
63
|
},
|
|
55
64
|
"peerDependencies": {
|
|
56
|
-
"@mondaydotcomorg/atp-protocol": "0.
|
|
57
|
-
"@mondaydotcomorg/atp-runtime": "0.
|
|
65
|
+
"@mondaydotcomorg/atp-protocol": "0.18.4-rc.0",
|
|
66
|
+
"@mondaydotcomorg/atp-runtime": "0.18.4-rc.0"
|
|
58
67
|
},
|
|
59
68
|
"devDependencies": {
|
|
60
69
|
"@stryker-mutator/core": "^8.0.0",
|