amsd-pipeline-shared 0.4.0 → 0.4.2
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/docs/gateway-files.txt
CHANGED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Model prices in USD per 1M tokens. EDIT THIS FILE to update a price — no code change and no rebuild. Update asOf when you check them against the providers. Used by the CLI cost display; the pipeline ledger records what the provider itself reports. A model with null prices is a KNOWN unknown: present so the gap is visible, never filled with a guess.",
|
|
3
|
+
"asOf": "2026-08",
|
|
4
|
+
"models": {
|
|
5
|
+
"claude-opus-4-6": {
|
|
6
|
+
"inputPerMillion": 15,
|
|
7
|
+
"outputPerMillion": 75
|
|
8
|
+
},
|
|
9
|
+
"claude-opus-4-5": {
|
|
10
|
+
"inputPerMillion": 15,
|
|
11
|
+
"outputPerMillion": 75
|
|
12
|
+
},
|
|
13
|
+
"claude-opus-4-6-fast": {
|
|
14
|
+
"inputPerMillion": 15,
|
|
15
|
+
"outputPerMillion": 75
|
|
16
|
+
},
|
|
17
|
+
"claude-sonnet-4-6": {
|
|
18
|
+
"inputPerMillion": 3,
|
|
19
|
+
"outputPerMillion": 15
|
|
20
|
+
},
|
|
21
|
+
"claude-sonnet-4-5": {
|
|
22
|
+
"inputPerMillion": 3,
|
|
23
|
+
"outputPerMillion": 15
|
|
24
|
+
},
|
|
25
|
+
"claude-sonnet-4": {
|
|
26
|
+
"inputPerMillion": 3,
|
|
27
|
+
"outputPerMillion": 15
|
|
28
|
+
},
|
|
29
|
+
"claude-3-7-sonnet-20250219": {
|
|
30
|
+
"inputPerMillion": 3,
|
|
31
|
+
"outputPerMillion": 15
|
|
32
|
+
},
|
|
33
|
+
"claude-3-5-sonnet-20241022": {
|
|
34
|
+
"inputPerMillion": 3,
|
|
35
|
+
"outputPerMillion": 15
|
|
36
|
+
},
|
|
37
|
+
"claude-haiku-4-5": {
|
|
38
|
+
"inputPerMillion": 0.8,
|
|
39
|
+
"outputPerMillion": 4
|
|
40
|
+
},
|
|
41
|
+
"claude-haiku-4-5-20251001": {
|
|
42
|
+
"inputPerMillion": 0.8,
|
|
43
|
+
"outputPerMillion": 4
|
|
44
|
+
},
|
|
45
|
+
"claude-3-5-haiku-20241022": {
|
|
46
|
+
"inputPerMillion": 0.8,
|
|
47
|
+
"outputPerMillion": 4
|
|
48
|
+
},
|
|
49
|
+
"gpt-4o": {
|
|
50
|
+
"inputPerMillion": 2.5,
|
|
51
|
+
"outputPerMillion": 10
|
|
52
|
+
},
|
|
53
|
+
"gpt-4o-mini": {
|
|
54
|
+
"inputPerMillion": 0.15,
|
|
55
|
+
"outputPerMillion": 0.6
|
|
56
|
+
},
|
|
57
|
+
"gpt-4-turbo": {
|
|
58
|
+
"inputPerMillion": 10,
|
|
59
|
+
"outputPerMillion": 30
|
|
60
|
+
},
|
|
61
|
+
"gpt-4.1": {
|
|
62
|
+
"inputPerMillion": 2,
|
|
63
|
+
"outputPerMillion": 8
|
|
64
|
+
},
|
|
65
|
+
"gpt-4.1-mini": {
|
|
66
|
+
"inputPerMillion": 0.4,
|
|
67
|
+
"outputPerMillion": 1.6
|
|
68
|
+
},
|
|
69
|
+
"gpt-4.1-nano": {
|
|
70
|
+
"inputPerMillion": 0.1,
|
|
71
|
+
"outputPerMillion": 0.4
|
|
72
|
+
},
|
|
73
|
+
"gpt-5": {
|
|
74
|
+
"inputPerMillion": 10,
|
|
75
|
+
"outputPerMillion": 40
|
|
76
|
+
},
|
|
77
|
+
"gpt-5-mini": {
|
|
78
|
+
"inputPerMillion": 0.15,
|
|
79
|
+
"outputPerMillion": 0.6
|
|
80
|
+
},
|
|
81
|
+
"o1": {
|
|
82
|
+
"inputPerMillion": 15,
|
|
83
|
+
"outputPerMillion": 60
|
|
84
|
+
},
|
|
85
|
+
"o1-mini": {
|
|
86
|
+
"inputPerMillion": 3,
|
|
87
|
+
"outputPerMillion": 12
|
|
88
|
+
},
|
|
89
|
+
"o3": {
|
|
90
|
+
"inputPerMillion": 10,
|
|
91
|
+
"outputPerMillion": 40
|
|
92
|
+
},
|
|
93
|
+
"o3-mini": {
|
|
94
|
+
"inputPerMillion": 1.1,
|
|
95
|
+
"outputPerMillion": 4.4
|
|
96
|
+
},
|
|
97
|
+
"o4-mini": {
|
|
98
|
+
"inputPerMillion": 1.1,
|
|
99
|
+
"outputPerMillion": 4.4
|
|
100
|
+
},
|
|
101
|
+
"gpt-5-codex": {
|
|
102
|
+
"inputPerMillion": 0,
|
|
103
|
+
"outputPerMillion": 0
|
|
104
|
+
},
|
|
105
|
+
"gpt-5.1": {
|
|
106
|
+
"inputPerMillion": 0,
|
|
107
|
+
"outputPerMillion": 0
|
|
108
|
+
},
|
|
109
|
+
"gpt-5.1-codex": {
|
|
110
|
+
"inputPerMillion": 0,
|
|
111
|
+
"outputPerMillion": 0
|
|
112
|
+
},
|
|
113
|
+
"gpt-5.1-codex-max": {
|
|
114
|
+
"inputPerMillion": 0,
|
|
115
|
+
"outputPerMillion": 0
|
|
116
|
+
},
|
|
117
|
+
"gpt-5.1-codex-mini": {
|
|
118
|
+
"inputPerMillion": 0,
|
|
119
|
+
"outputPerMillion": 0
|
|
120
|
+
},
|
|
121
|
+
"gpt-5.2": {
|
|
122
|
+
"inputPerMillion": 0,
|
|
123
|
+
"outputPerMillion": 0
|
|
124
|
+
},
|
|
125
|
+
"gpt-5.2-codex": {
|
|
126
|
+
"inputPerMillion": 0,
|
|
127
|
+
"outputPerMillion": 0
|
|
128
|
+
},
|
|
129
|
+
"gpt-5.3-codex": {
|
|
130
|
+
"inputPerMillion": 0,
|
|
131
|
+
"outputPerMillion": 0
|
|
132
|
+
},
|
|
133
|
+
"gemini-2.5-pro": {
|
|
134
|
+
"inputPerMillion": 1.25,
|
|
135
|
+
"outputPerMillion": 5
|
|
136
|
+
},
|
|
137
|
+
"gemini-2.5-flash": {
|
|
138
|
+
"inputPerMillion": 0.15,
|
|
139
|
+
"outputPerMillion": 0.6
|
|
140
|
+
},
|
|
141
|
+
"gemini-2.0-flash": {
|
|
142
|
+
"inputPerMillion": 0.1,
|
|
143
|
+
"outputPerMillion": 0.4
|
|
144
|
+
},
|
|
145
|
+
"gemini-2.0-flash-lite": {
|
|
146
|
+
"inputPerMillion": 0.075,
|
|
147
|
+
"outputPerMillion": 0.3
|
|
148
|
+
},
|
|
149
|
+
"gemini-2.0-flash-thinking": {
|
|
150
|
+
"inputPerMillion": 0.15,
|
|
151
|
+
"outputPerMillion": 0.6
|
|
152
|
+
},
|
|
153
|
+
"gemini-1.5-pro": {
|
|
154
|
+
"inputPerMillion": 1.25,
|
|
155
|
+
"outputPerMillion": 5
|
|
156
|
+
},
|
|
157
|
+
"gemini-1.5-flash": {
|
|
158
|
+
"inputPerMillion": 0.075,
|
|
159
|
+
"outputPerMillion": 0.3
|
|
160
|
+
},
|
|
161
|
+
"gemini-1.5-flash-8b": {
|
|
162
|
+
"inputPerMillion": 0.0375,
|
|
163
|
+
"outputPerMillion": 0.15
|
|
164
|
+
},
|
|
165
|
+
"gemini-3-pro-preview": {
|
|
166
|
+
"inputPerMillion": 1.25,
|
|
167
|
+
"outputPerMillion": 5
|
|
168
|
+
},
|
|
169
|
+
"deepseek/deepseek-r1": {
|
|
170
|
+
"inputPerMillion": 0.55,
|
|
171
|
+
"outputPerMillion": 2.19
|
|
172
|
+
},
|
|
173
|
+
"deepseek/deepseek-chat": {
|
|
174
|
+
"inputPerMillion": 0.27,
|
|
175
|
+
"outputPerMillion": 1.1
|
|
176
|
+
},
|
|
177
|
+
"meta-llama/llama-3.3-70b-instruct": {
|
|
178
|
+
"inputPerMillion": 0.12,
|
|
179
|
+
"outputPerMillion": 0.12
|
|
180
|
+
},
|
|
181
|
+
"meta-llama/llama-4-scout": {
|
|
182
|
+
"inputPerMillion": 0.17,
|
|
183
|
+
"outputPerMillion": 0.17
|
|
184
|
+
},
|
|
185
|
+
"mistral/mistral-large-2411": {
|
|
186
|
+
"inputPerMillion": 2,
|
|
187
|
+
"outputPerMillion": 6
|
|
188
|
+
},
|
|
189
|
+
"mistral/mistral-small-3.1": {
|
|
190
|
+
"inputPerMillion": 0.1,
|
|
191
|
+
"outputPerMillion": 0.3
|
|
192
|
+
},
|
|
193
|
+
"moonshotai/kimi-k2": {
|
|
194
|
+
"inputPerMillion": 0.57,
|
|
195
|
+
"outputPerMillion": 2.3
|
|
196
|
+
},
|
|
197
|
+
"z-ai/glm-5.2": {
|
|
198
|
+
"inputPerMillion": 0.93,
|
|
199
|
+
"outputPerMillion": 3
|
|
200
|
+
},
|
|
201
|
+
"z-ai/glm-5.1": {
|
|
202
|
+
"inputPerMillion": 0.966,
|
|
203
|
+
"outputPerMillion": 3.036
|
|
204
|
+
},
|
|
205
|
+
"z-ai/glm-4.7": {
|
|
206
|
+
"inputPerMillion": 0.4,
|
|
207
|
+
"outputPerMillion": 1.75
|
|
208
|
+
},
|
|
209
|
+
"MiniMax-M3": {
|
|
210
|
+
"inputPerMillion": 0.3,
|
|
211
|
+
"outputPerMillion": 1.2,
|
|
212
|
+
"standardTierMaxInputTokens": 524288
|
|
213
|
+
},
|
|
214
|
+
"MiniMax-M2.7": {
|
|
215
|
+
"inputPerMillion": 0.25,
|
|
216
|
+
"outputPerMillion": 1
|
|
217
|
+
},
|
|
218
|
+
"MiniMax-M2.7-highspeed": {
|
|
219
|
+
"inputPerMillion": 0.6,
|
|
220
|
+
"outputPerMillion": 2.4
|
|
221
|
+
},
|
|
222
|
+
"MiniMax-M2.5": {
|
|
223
|
+
"inputPerMillion": 0.15,
|
|
224
|
+
"outputPerMillion": 0.9
|
|
225
|
+
},
|
|
226
|
+
"MiniMax-M2.1": {
|
|
227
|
+
"inputPerMillion": 0.29,
|
|
228
|
+
"outputPerMillion": 0.95
|
|
229
|
+
},
|
|
230
|
+
"MiniMax-M2": {
|
|
231
|
+
"inputPerMillion": 0.26,
|
|
232
|
+
"outputPerMillion": 1
|
|
233
|
+
},
|
|
234
|
+
"zhipuai/glm-z1-9b": {
|
|
235
|
+
"inputPerMillion": null,
|
|
236
|
+
"outputPerMillion": null,
|
|
237
|
+
"note": "PRICE NOT CHECKED. Listed because a configured ladder can escalate to this model. Left null deliberately rather than guessed — an invented price is worse than a visible gap."
|
|
238
|
+
},
|
|
239
|
+
"zhipuai/glm-z1-32b": {
|
|
240
|
+
"inputPerMillion": null,
|
|
241
|
+
"outputPerMillion": null,
|
|
242
|
+
"note": "PRICE NOT CHECKED. Listed because a configured ladder can escalate to this model. Left null deliberately rather than guessed — an invented price is worse than a visible gap."
|
|
243
|
+
},
|
|
244
|
+
"moonshotai/kimi-k2.5": {
|
|
245
|
+
"inputPerMillion": null,
|
|
246
|
+
"outputPerMillion": null,
|
|
247
|
+
"note": "PRICE NOT CHECKED. Listed because a configured ladder can escalate to this model. Left null deliberately rather than guessed — an invented price is worse than a visible gap."
|
|
248
|
+
},
|
|
249
|
+
"moonshotai/kimi-k3": {
|
|
250
|
+
"inputPerMillion": null,
|
|
251
|
+
"outputPerMillion": null,
|
|
252
|
+
"note": "PRICE NOT CHECKED. Listed because a configured ladder can escalate to this model. Left null deliberately rather than guessed — an invented price is worse than a visible gap."
|
|
253
|
+
},
|
|
254
|
+
"claude-sonnet-5": {
|
|
255
|
+
"inputPerMillion": 2,
|
|
256
|
+
"outputPerMillion": 10,
|
|
257
|
+
"cacheReadPerMillion": 0.2,
|
|
258
|
+
"cacheWrite5mPerMillion": 2.5,
|
|
259
|
+
"cacheWrite1hPerMillion": 4,
|
|
260
|
+
"$why": "Checked against the vendor: https://platform.claude.com/docs/en/about-claude/pricing (read 2026-10-19) — $2 input / $10 output per MTok, the standard price (the launch price, kept; the scheduled rise to $3/$15 will not occur). Cache: $2.50 5-minute write, $4 1-hour write, $0.20 hit."
|
|
261
|
+
},
|
|
262
|
+
"claude-opus-5": {
|
|
263
|
+
"inputPerMillion": null,
|
|
264
|
+
"outputPerMillion": null,
|
|
265
|
+
"$why": "On a declared ladder rung but not yet checked against the vendor. Null is a KNOWN unknown per this file: a guessed price is worse than a visible gap."
|
|
266
|
+
},
|
|
267
|
+
"claude-opus-5-5": {
|
|
268
|
+
"inputPerMillion": 4,
|
|
269
|
+
"outputPerMillion": 20,
|
|
270
|
+
"cacheReadPerMillion": 0.2,
|
|
271
|
+
"cacheWrite5mPerMillion": 5,
|
|
272
|
+
"cacheWrite1hPerMillion": 8,
|
|
273
|
+
"$why": "Checked against the vendor: https://platform.claude.com/docs/en/about-claude/pricing (read 2026-10-19) — $4 input / $20 output per MTok. Cache: $5 5-minute write, $8 1-hour write, $0.20 hit (0.05x base)."
|
|
274
|
+
},
|
|
275
|
+
"claude-opus-4-8": {
|
|
276
|
+
"inputPerMillion": null,
|
|
277
|
+
"outputPerMillion": null,
|
|
278
|
+
"$why": "On a declared ladder rung but not yet checked against the vendor. Null is a KNOWN unknown per this file: a guessed price is worse than a visible gap."
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"$tierComment": "standardTierMaxInputTokens: largest per-REQUEST input still billed at the base rate. MiniMax-M3 doubles above 512K (to a 1M ceiling). Absent means UNCAPPED for that model, never a default — a ceiling we invented would throttle a model whose real limit is higher. Add one only when checked against the vendor's published tiers."
|
|
282
|
+
}
|
|
@@ -256,7 +256,8 @@ function prelaunch(o) {
|
|
|
256
256
|
if (o.preflight !== false) results.push(preflight(o));
|
|
257
257
|
results.push(langfuse({ install: o.install, env: o.env, runId: o.runId, outDir: o.outDir }));
|
|
258
258
|
if (o.ticket) results.push(seed({ install: o.install, project: o.project, ticket: o.ticket, runsRoots: o.runsRoots || [] }));
|
|
259
|
-
|
|
259
|
+
// the variant (brownfield) is the run's, from the env the launch hands over — not this process's own environment
|
|
260
|
+
if (o.codeline) results.push(cache({ install: o.install, project: o.project, codeline: o.codeline, variant: (o.env || {}).EPAM_BROWNFIELD === '1' ? 'brownfield' : '' }));
|
|
260
261
|
results.push(cost({ install: o.install, set: o.set || o.env.EPAM_PROVIDER_SET || 'claude', tmpDir: o.outDir }));
|
|
261
262
|
results.push(alone({ install: o.install }));
|
|
262
263
|
results.push(memory({ needMb: Number(o.needMb || 4096) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amsd-pipeline-shared",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "The AMSD pipeline's shared components, one source for the bash pipeline and its Claude workflows: the model-call gateway (llm-handler.sh — retry, ladder, self-heal, cost) and the libraries it runs.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|