opsveritas-sdk 0.1.2 → 0.1.4

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/dist/index.js CHANGED
@@ -111,6 +111,10 @@ async function run(agentName, fn, opts) {
111
111
  // src/pricing.ts
112
112
  var PRICING = {
113
113
  // ── OpenAI ─────────────────────────────────────────────────────────────────
114
+ // GPT-5.x family — most-specific-first (5.4-nano before 5.4)
115
+ "gpt-5.5": [5, 30],
116
+ "gpt-5.4-nano": [0.2, 1.25],
117
+ "gpt-5.4": [2.5, 15],
114
118
  // GPT-4.1 family (April 2025) — must be before 'gpt-4' to avoid wrong match
115
119
  "gpt-4.1-nano": [0.1, 0.4],
116
120
  "gpt-4.1-mini": [0.4, 1.6],
@@ -130,9 +134,9 @@ var PRICING = {
130
134
  "o1": [15, 60],
131
135
  // ── Anthropic ──────────────────────────────────────────────────────────────
132
136
  // Claude 4 family (versioned IDs matched by substring, e.g. claude-opus-4-8 → claude-opus-4)
133
- "claude-opus-4": [15, 75],
137
+ "claude-opus-4": [5, 25],
134
138
  "claude-sonnet-4": [3, 15],
135
- "claude-haiku-4": [0.8, 4],
139
+ "claude-haiku-4": [1, 5],
136
140
  // Claude 3.7
137
141
  "claude-3-7-sonnet": [3, 15],
138
142
  // Claude 3.5
@@ -143,8 +147,15 @@ var PRICING = {
143
147
  "claude-3-sonnet": [3, 15],
144
148
  "claude-3-haiku": [0.25, 1.25],
145
149
  // ── Groq ───────────────────────────────────────────────────────────────────
146
- // New naming: llama-3.x-…
150
+ // Llama 3.3
147
151
  "llama-3.3-70b": [0.59, 0.79],
152
+ // Llama 3.2 — must appear before llama-3.1 to avoid wrong substring match
153
+ "llama-3.2-90b": [0.9, 0.9],
154
+ "llama-3.2-11b": [0.18, 0.18],
155
+ "llama-3.2-3b": [0.06, 0.06],
156
+ "llama-3.2-1b": [0.04, 0.04],
157
+ // Llama 3.1
158
+ "llama-3.1-405b": [5, 5],
148
159
  "llama-3.1-70b": [0.59, 0.79],
149
160
  "llama-3.1-8b": [0.05, 0.08],
150
161
  // Legacy naming: llama3-…
@@ -152,9 +163,52 @@ var PRICING = {
152
163
  "llama3-8b": [0.05, 0.08],
153
164
  "mixtral-8x7b": [0.24, 0.24],
154
165
  "gemma2-9b": [0.2, 0.2],
166
+ "gemma-7b": [0.07, 0.07],
167
+ // ── Meta Llama 4 (Groq / Together) ────────────────────────────────────────
168
+ "llama-4-maverick": [0.5, 0.77],
169
+ "llama-4-scout": [0.11, 0.34],
170
+ // ── Moonshot (Groq) ────────────────────────────────────────────────────────
171
+ "kimi-k2": [1, 3],
172
+ // ── Mistral ────────────────────────────────────────────────────────────────
173
+ "pixtral-large": [2, 6],
174
+ "ministral-3b": [0.04, 0.04],
175
+ "mistral-large": [2, 6],
176
+ "mistral-small": [0.1, 0.3],
177
+ "devstral": [0.1, 0.3],
178
+ "codestral": [0.2, 0.6],
179
+ "mistral-7b": [0.25, 0.25],
180
+ "mixtral-8x22b": [0.9, 0.9],
181
+ // ── DeepSeek ───────────────────────────────────────────────────────────────
182
+ "deepseek-v4-flash": [0.14, 0.28],
183
+ "deepseek-v4-pro": [0.435, 0.87],
184
+ "deepseek-reasoner": [0.55, 2.19],
185
+ "deepseek-r1": [0.55, 2.19],
186
+ "deepseek-chat": [0.27, 1.1],
187
+ "deepseek-coder": [0.27, 1.1],
188
+ // ── Cohere ─────────────────────────────────────────────────────────────────
189
+ "command-a": [2.5, 10],
190
+ "command-r-plus": [2.5, 10],
191
+ "command-r": [0.15, 0.6],
192
+ "command": [0.15, 0.6],
193
+ // ── Qwen (Alibaba) ─────────────────────────────────────────────────────────
194
+ "qwen3-235b": [1.2, 6],
195
+ "qwen3-32b": [0.45, 1.8],
196
+ "qwen3-14b": [0.2, 0.8],
197
+ "qwen3-8b": [0.1, 0.4],
198
+ "qwen3-4b": [0.05, 0.2],
199
+ "qwen-2.5-72b": [0.9, 0.9],
200
+ "qwen-2.5-7b": [0.1, 0.1],
201
+ "qwen-flash": [0.05, 0.4],
202
+ "qwen-max": [4, 12],
203
+ "qwen-plus": [0.8, 2],
204
+ "qwen-turbo": [0.2, 0.6],
155
205
  // ── Google Gemini ──────────────────────────────────────────────────────────
206
+ "gemini-3.5-flash": [1.5, 9],
207
+ "gemini-3.1-pro": [2, 12],
156
208
  "gemini-2.5-pro": [1.25, 10],
209
+ "gemini-2.5-flash-lite": [0.075, 0.3],
157
210
  "gemini-2.5-flash": [0.15, 0.6],
211
+ "gemini-2.0-flash-lite": [0.075, 0.3],
158
212
  "gemini-2.0-flash": [0.1, 0.4],
159
213
  "gemini-1.5-pro": [1.25, 5],
160
214
  "gemini-1.5-flash": [0.075, 0.3]
package/dist/index.mjs CHANGED
@@ -80,6 +80,10 @@ async function run(agentName, fn, opts) {
80
80
  // src/pricing.ts
81
81
  var PRICING = {
82
82
  // ── OpenAI ─────────────────────────────────────────────────────────────────
83
+ // GPT-5.x family — most-specific-first (5.4-nano before 5.4)
84
+ "gpt-5.5": [5, 30],
85
+ "gpt-5.4-nano": [0.2, 1.25],
86
+ "gpt-5.4": [2.5, 15],
83
87
  // GPT-4.1 family (April 2025) — must be before 'gpt-4' to avoid wrong match
84
88
  "gpt-4.1-nano": [0.1, 0.4],
85
89
  "gpt-4.1-mini": [0.4, 1.6],
@@ -99,9 +103,9 @@ var PRICING = {
99
103
  "o1": [15, 60],
100
104
  // ── Anthropic ──────────────────────────────────────────────────────────────
101
105
  // Claude 4 family (versioned IDs matched by substring, e.g. claude-opus-4-8 → claude-opus-4)
102
- "claude-opus-4": [15, 75],
106
+ "claude-opus-4": [5, 25],
103
107
  "claude-sonnet-4": [3, 15],
104
- "claude-haiku-4": [0.8, 4],
108
+ "claude-haiku-4": [1, 5],
105
109
  // Claude 3.7
106
110
  "claude-3-7-sonnet": [3, 15],
107
111
  // Claude 3.5
@@ -112,8 +116,15 @@ var PRICING = {
112
116
  "claude-3-sonnet": [3, 15],
113
117
  "claude-3-haiku": [0.25, 1.25],
114
118
  // ── Groq ───────────────────────────────────────────────────────────────────
115
- // New naming: llama-3.x-…
119
+ // Llama 3.3
116
120
  "llama-3.3-70b": [0.59, 0.79],
121
+ // Llama 3.2 — must appear before llama-3.1 to avoid wrong substring match
122
+ "llama-3.2-90b": [0.9, 0.9],
123
+ "llama-3.2-11b": [0.18, 0.18],
124
+ "llama-3.2-3b": [0.06, 0.06],
125
+ "llama-3.2-1b": [0.04, 0.04],
126
+ // Llama 3.1
127
+ "llama-3.1-405b": [5, 5],
117
128
  "llama-3.1-70b": [0.59, 0.79],
118
129
  "llama-3.1-8b": [0.05, 0.08],
119
130
  // Legacy naming: llama3-…
@@ -121,9 +132,52 @@ var PRICING = {
121
132
  "llama3-8b": [0.05, 0.08],
122
133
  "mixtral-8x7b": [0.24, 0.24],
123
134
  "gemma2-9b": [0.2, 0.2],
135
+ "gemma-7b": [0.07, 0.07],
136
+ // ── Meta Llama 4 (Groq / Together) ────────────────────────────────────────
137
+ "llama-4-maverick": [0.5, 0.77],
138
+ "llama-4-scout": [0.11, 0.34],
139
+ // ── Moonshot (Groq) ────────────────────────────────────────────────────────
140
+ "kimi-k2": [1, 3],
141
+ // ── Mistral ────────────────────────────────────────────────────────────────
142
+ "pixtral-large": [2, 6],
143
+ "ministral-3b": [0.04, 0.04],
144
+ "mistral-large": [2, 6],
145
+ "mistral-small": [0.1, 0.3],
146
+ "devstral": [0.1, 0.3],
147
+ "codestral": [0.2, 0.6],
148
+ "mistral-7b": [0.25, 0.25],
149
+ "mixtral-8x22b": [0.9, 0.9],
150
+ // ── DeepSeek ───────────────────────────────────────────────────────────────
151
+ "deepseek-v4-flash": [0.14, 0.28],
152
+ "deepseek-v4-pro": [0.435, 0.87],
153
+ "deepseek-reasoner": [0.55, 2.19],
154
+ "deepseek-r1": [0.55, 2.19],
155
+ "deepseek-chat": [0.27, 1.1],
156
+ "deepseek-coder": [0.27, 1.1],
157
+ // ── Cohere ─────────────────────────────────────────────────────────────────
158
+ "command-a": [2.5, 10],
159
+ "command-r-plus": [2.5, 10],
160
+ "command-r": [0.15, 0.6],
161
+ "command": [0.15, 0.6],
162
+ // ── Qwen (Alibaba) ─────────────────────────────────────────────────────────
163
+ "qwen3-235b": [1.2, 6],
164
+ "qwen3-32b": [0.45, 1.8],
165
+ "qwen3-14b": [0.2, 0.8],
166
+ "qwen3-8b": [0.1, 0.4],
167
+ "qwen3-4b": [0.05, 0.2],
168
+ "qwen-2.5-72b": [0.9, 0.9],
169
+ "qwen-2.5-7b": [0.1, 0.1],
170
+ "qwen-flash": [0.05, 0.4],
171
+ "qwen-max": [4, 12],
172
+ "qwen-plus": [0.8, 2],
173
+ "qwen-turbo": [0.2, 0.6],
124
174
  // ── Google Gemini ──────────────────────────────────────────────────────────
175
+ "gemini-3.5-flash": [1.5, 9],
176
+ "gemini-3.1-pro": [2, 12],
125
177
  "gemini-2.5-pro": [1.25, 10],
178
+ "gemini-2.5-flash-lite": [0.075, 0.3],
126
179
  "gemini-2.5-flash": [0.15, 0.6],
180
+ "gemini-2.0-flash-lite": [0.075, 0.3],
127
181
  "gemini-2.0-flash": [0.1, 0.4],
128
182
  "gemini-1.5-pro": [1.25, 5],
129
183
  "gemini-1.5-flash": [0.075, 0.3]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opsveritas-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Monitor your AI agents with 2 lines of code",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12,7 +12,9 @@
12
12
  "types": "./dist/index.d.ts"
13
13
  }
14
14
  },
15
- "files": ["dist"],
15
+ "files": [
16
+ "dist"
17
+ ],
16
18
  "scripts": {
17
19
  "build": "tsup src/index.ts --format esm,cjs --dts --clean",
18
20
  "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
@@ -31,9 +33,21 @@
31
33
  "openai": ">=4.0.0"
32
34
  },
33
35
  "peerDependenciesMeta": {
34
- "@anthropic-ai/sdk": { "optional": true },
35
- "openai": { "optional": true }
36
+ "@anthropic-ai/sdk": {
37
+ "optional": true
38
+ },
39
+ "openai": {
40
+ "optional": true
41
+ }
36
42
  },
37
- "keywords": ["ai", "agents", "monitoring", "observability", "openai", "anthropic", "langchain"],
43
+ "keywords": [
44
+ "ai",
45
+ "agents",
46
+ "monitoring",
47
+ "observability",
48
+ "openai",
49
+ "anthropic",
50
+ "langchain"
51
+ ],
38
52
  "license": "MIT"
39
53
  }