opsveritas-sdk 0.3.1 → 0.3.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/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +57 -57
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,8 @@ interface ExecutionPayload {
|
|
|
56
56
|
error_message?: string | null;
|
|
57
57
|
user_id?: string;
|
|
58
58
|
output_summary?: string;
|
|
59
|
+
/** Set automatically by the SDK so the server can identify SDK vs raw-webhook ingestion. Not user-configurable. */
|
|
60
|
+
source?: 'sdk';
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
declare const OpsVeritas: {
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ interface ExecutionPayload {
|
|
|
56
56
|
error_message?: string | null;
|
|
57
57
|
user_id?: string;
|
|
58
58
|
output_summary?: string;
|
|
59
|
+
/** Set automatically by the SDK so the server can identify SDK vs raw-webhook ingestion. Not user-configurable. */
|
|
60
|
+
source?: 'sdk';
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
declare const OpsVeritas: {
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,8 @@ async function sendExecution(payload) {
|
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
const { apiKey, endpoint, metadataOnly } = cfg;
|
|
120
|
-
const
|
|
120
|
+
const base = metadataOnly ? scrubForMetadataOnly(payload) : payload;
|
|
121
|
+
const body = { ...base, source: "sdk" };
|
|
121
122
|
void flush(endpoint, apiKey);
|
|
122
123
|
const ok = await deliver(endpoint, apiKey, body);
|
|
123
124
|
if (!ok) enqueue(body);
|
package/dist/index.mjs
CHANGED
|
@@ -85,7 +85,8 @@ async function sendExecution(payload) {
|
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
const { apiKey, endpoint, metadataOnly } = cfg;
|
|
88
|
-
const
|
|
88
|
+
const base = metadataOnly ? scrubForMetadataOnly(payload) : payload;
|
|
89
|
+
const body = { ...base, source: "sdk" };
|
|
89
90
|
void flush(endpoint, apiKey);
|
|
90
91
|
const ok = await deliver(endpoint, apiKey, body);
|
|
91
92
|
if (!ok) enqueue(body);
|
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "opsveritas-sdk",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Monitor your AI agents in 3 lines of code — tokens, cost, latency, and silent failures",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
20
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
21
|
-
"test": "jest"
|
|
22
|
-
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/jest": "^29.5.12",
|
|
25
|
-
"@types/node": "^20.14.0",
|
|
26
|
-
"jest": "^29.7.0",
|
|
27
|
-
"ts-jest": "^29.1.5",
|
|
28
|
-
"tsup": "^8.1.0",
|
|
29
|
-
"typescript": "^5.4.5"
|
|
30
|
-
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"@anthropic-ai/sdk": ">=0.20.0",
|
|
33
|
-
"@langchain/core": ">=0.2.0",
|
|
34
|
-
"openai": ">=4.0.0"
|
|
35
|
-
},
|
|
36
|
-
"peerDependenciesMeta": {
|
|
37
|
-
"@anthropic-ai/sdk": {
|
|
38
|
-
"optional": true
|
|
39
|
-
},
|
|
40
|
-
"@langchain/core": {
|
|
41
|
-
"optional": true
|
|
42
|
-
},
|
|
43
|
-
"openai": {
|
|
44
|
-
"optional": true
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"keywords": [
|
|
48
|
-
"ai",
|
|
49
|
-
"agents",
|
|
50
|
-
"monitoring",
|
|
51
|
-
"observability",
|
|
52
|
-
"openai",
|
|
53
|
-
"anthropic",
|
|
54
|
-
"langchain"
|
|
55
|
-
],
|
|
56
|
-
"license": "MIT"
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "opsveritas-sdk",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "Monitor your AI agents in 3 lines of code — tokens, cost, latency, and silent failures",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
20
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
21
|
+
"test": "jest"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/jest": "^29.5.12",
|
|
25
|
+
"@types/node": "^20.14.0",
|
|
26
|
+
"jest": "^29.7.0",
|
|
27
|
+
"ts-jest": "^29.1.5",
|
|
28
|
+
"tsup": "^8.1.0",
|
|
29
|
+
"typescript": "^5.4.5"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@anthropic-ai/sdk": ">=0.20.0",
|
|
33
|
+
"@langchain/core": ">=0.2.0",
|
|
34
|
+
"openai": ">=4.0.0"
|
|
35
|
+
},
|
|
36
|
+
"peerDependenciesMeta": {
|
|
37
|
+
"@anthropic-ai/sdk": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
"@langchain/core": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"openai": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"ai",
|
|
49
|
+
"agents",
|
|
50
|
+
"monitoring",
|
|
51
|
+
"observability",
|
|
52
|
+
"openai",
|
|
53
|
+
"anthropic",
|
|
54
|
+
"langchain"
|
|
55
|
+
],
|
|
56
|
+
"license": "MIT"
|
|
57
|
+
}
|