opsveritas-sdk 0.1.3 → 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
@@ -163,26 +167,48 @@ var PRICING = {
163
167
  // ── Meta Llama 4 (Groq / Together) ────────────────────────────────────────
164
168
  "llama-4-maverick": [0.5, 0.77],
165
169
  "llama-4-scout": [0.11, 0.34],
170
+ // ── Moonshot (Groq) ────────────────────────────────────────────────────────
171
+ "kimi-k2": [1, 3],
166
172
  // ── Mistral ────────────────────────────────────────────────────────────────
173
+ "pixtral-large": [2, 6],
174
+ "ministral-3b": [0.04, 0.04],
167
175
  "mistral-large": [2, 6],
168
176
  "mistral-small": [0.1, 0.3],
177
+ "devstral": [0.1, 0.3],
169
178
  "codestral": [0.2, 0.6],
170
179
  "mistral-7b": [0.25, 0.25],
171
180
  "mixtral-8x22b": [0.9, 0.9],
172
181
  // ── DeepSeek ───────────────────────────────────────────────────────────────
182
+ "deepseek-v4-flash": [0.14, 0.28],
183
+ "deepseek-v4-pro": [0.435, 0.87],
173
184
  "deepseek-reasoner": [0.55, 2.19],
185
+ "deepseek-r1": [0.55, 2.19],
174
186
  "deepseek-chat": [0.27, 1.1],
175
187
  "deepseek-coder": [0.27, 1.1],
176
188
  // ── Cohere ─────────────────────────────────────────────────────────────────
189
+ "command-a": [2.5, 10],
177
190
  "command-r-plus": [2.5, 10],
178
191
  "command-r": [0.15, 0.6],
179
192
  "command": [0.15, 0.6],
180
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],
181
199
  "qwen-2.5-72b": [0.9, 0.9],
182
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],
183
205
  // ── Google Gemini ──────────────────────────────────────────────────────────
206
+ "gemini-3.5-flash": [1.5, 9],
207
+ "gemini-3.1-pro": [2, 12],
184
208
  "gemini-2.5-pro": [1.25, 10],
209
+ "gemini-2.5-flash-lite": [0.075, 0.3],
185
210
  "gemini-2.5-flash": [0.15, 0.6],
211
+ "gemini-2.0-flash-lite": [0.075, 0.3],
186
212
  "gemini-2.0-flash": [0.1, 0.4],
187
213
  "gemini-1.5-pro": [1.25, 5],
188
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
@@ -132,26 +136,48 @@ var PRICING = {
132
136
  // ── Meta Llama 4 (Groq / Together) ────────────────────────────────────────
133
137
  "llama-4-maverick": [0.5, 0.77],
134
138
  "llama-4-scout": [0.11, 0.34],
139
+ // ── Moonshot (Groq) ────────────────────────────────────────────────────────
140
+ "kimi-k2": [1, 3],
135
141
  // ── Mistral ────────────────────────────────────────────────────────────────
142
+ "pixtral-large": [2, 6],
143
+ "ministral-3b": [0.04, 0.04],
136
144
  "mistral-large": [2, 6],
137
145
  "mistral-small": [0.1, 0.3],
146
+ "devstral": [0.1, 0.3],
138
147
  "codestral": [0.2, 0.6],
139
148
  "mistral-7b": [0.25, 0.25],
140
149
  "mixtral-8x22b": [0.9, 0.9],
141
150
  // ── DeepSeek ───────────────────────────────────────────────────────────────
151
+ "deepseek-v4-flash": [0.14, 0.28],
152
+ "deepseek-v4-pro": [0.435, 0.87],
142
153
  "deepseek-reasoner": [0.55, 2.19],
154
+ "deepseek-r1": [0.55, 2.19],
143
155
  "deepseek-chat": [0.27, 1.1],
144
156
  "deepseek-coder": [0.27, 1.1],
145
157
  // ── Cohere ─────────────────────────────────────────────────────────────────
158
+ "command-a": [2.5, 10],
146
159
  "command-r-plus": [2.5, 10],
147
160
  "command-r": [0.15, 0.6],
148
161
  "command": [0.15, 0.6],
149
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],
150
168
  "qwen-2.5-72b": [0.9, 0.9],
151
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],
152
174
  // ── Google Gemini ──────────────────────────────────────────────────────────
175
+ "gemini-3.5-flash": [1.5, 9],
176
+ "gemini-3.1-pro": [2, 12],
153
177
  "gemini-2.5-pro": [1.25, 10],
178
+ "gemini-2.5-flash-lite": [0.075, 0.3],
154
179
  "gemini-2.5-flash": [0.15, 0.6],
180
+ "gemini-2.0-flash-lite": [0.075, 0.3],
155
181
  "gemini-2.0-flash": [0.1, 0.4],
156
182
  "gemini-1.5-pro": [1.25, 5],
157
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.3",
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
  }