@spendguard/sdk 0.5.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/CHANGELOG.md +190 -0
- package/LICENSE_NOTICES.md +127 -0
- package/README.md +151 -0
- package/dist/adapter-D9T3yEEw.d.ts +3441 -0
- package/dist/cache-DOnw8QtJ.d.ts +1164 -0
- package/dist/cache.d.ts +6 -0
- package/dist/cache.js +74 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.js +4815 -0
- package/dist/errors.d.ts +269 -0
- package/dist/errors.js +148 -0
- package/dist/ids.d.ts +69 -0
- package/dist/ids.js +61 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +5295 -0
- package/dist/otel.d.ts +118 -0
- package/dist/otel.js +84 -0
- package/dist/pricing/demo.d.ts +26 -0
- package/dist/pricing/demo.js +138 -0
- package/dist/pricing.d.ts +70 -0
- package/dist/pricing.js +92 -0
- package/dist/promptHash.d.ts +23 -0
- package/dist/promptHash.js +25 -0
- package/dist/proto.d.ts +609 -0
- package/dist/proto.js +3055 -0
- package/dist/retry.d.ts +121 -0
- package/dist/retry.js +92 -0
- package/dist/runPlan.d.ts +69 -0
- package/dist/runPlan.js +35 -0
- package/fixtures/cross-language/v1.json +327 -0
- package/package.json +123 -0
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spendguard/sdk",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "SpendGuard SDK — runtime safety layer client for AI agent frameworks (TypeScript half; mirror of spendguard-sdk on PyPI). v0.1.0 is the first public release; see CHANGELOG.md.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Michael Chen <m24927605@gmail.com>",
|
|
7
|
+
"homepage": "https://github.com/m24927605/agentic-spendguard",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/m24927605/agentic-spendguard.git",
|
|
11
|
+
"directory": "sdk/typescript"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/m24927605/agentic-spendguard/issues",
|
|
14
|
+
"keywords": ["llm", "agent", "spend", "budget", "spendguard", "asp", "guardrails"],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20.10.0"
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/**/*.js",
|
|
26
|
+
"dist/**/*.d.ts",
|
|
27
|
+
"fixtures/cross-language/v1.json",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE_NOTICES.md",
|
|
30
|
+
"CHANGELOG.md"
|
|
31
|
+
],
|
|
32
|
+
"main": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"import": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./client": {
|
|
40
|
+
"types": "./dist/client.d.ts",
|
|
41
|
+
"import": "./dist/client.js"
|
|
42
|
+
},
|
|
43
|
+
"./errors": {
|
|
44
|
+
"types": "./dist/errors.d.ts",
|
|
45
|
+
"import": "./dist/errors.js"
|
|
46
|
+
},
|
|
47
|
+
"./ids": {
|
|
48
|
+
"types": "./dist/ids.d.ts",
|
|
49
|
+
"import": "./dist/ids.js"
|
|
50
|
+
},
|
|
51
|
+
"./pricing": {
|
|
52
|
+
"types": "./dist/pricing.d.ts",
|
|
53
|
+
"import": "./dist/pricing.js"
|
|
54
|
+
},
|
|
55
|
+
"./pricing/demo": {
|
|
56
|
+
"types": "./dist/pricing/demo.d.ts",
|
|
57
|
+
"import": "./dist/pricing/demo.js"
|
|
58
|
+
},
|
|
59
|
+
"./promptHash": {
|
|
60
|
+
"types": "./dist/promptHash.d.ts",
|
|
61
|
+
"import": "./dist/promptHash.js"
|
|
62
|
+
},
|
|
63
|
+
"./runPlan": {
|
|
64
|
+
"types": "./dist/runPlan.d.ts",
|
|
65
|
+
"import": "./dist/runPlan.js"
|
|
66
|
+
},
|
|
67
|
+
"./otel": {
|
|
68
|
+
"types": "./dist/otel.d.ts",
|
|
69
|
+
"import": "./dist/otel.js"
|
|
70
|
+
},
|
|
71
|
+
"./retry": {
|
|
72
|
+
"types": "./dist/retry.d.ts",
|
|
73
|
+
"import": "./dist/retry.js"
|
|
74
|
+
},
|
|
75
|
+
"./cache": {
|
|
76
|
+
"types": "./dist/cache.d.ts",
|
|
77
|
+
"import": "./dist/cache.js"
|
|
78
|
+
},
|
|
79
|
+
"./proto": {
|
|
80
|
+
"types": "./dist/proto.d.ts",
|
|
81
|
+
"import": "./dist/proto.js"
|
|
82
|
+
},
|
|
83
|
+
"./package.json": "./package.json"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsup",
|
|
87
|
+
"test": "vitest run",
|
|
88
|
+
"test:watch": "vitest",
|
|
89
|
+
"lint": "biome check src tests scripts",
|
|
90
|
+
"format": "biome format --write src tests scripts",
|
|
91
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json --noEmit",
|
|
92
|
+
"size": "bash scripts/size-budget.sh",
|
|
93
|
+
"version-check": "bash scripts/version-check.sh",
|
|
94
|
+
"prepublishOnly": "bash scripts/prepublish.sh",
|
|
95
|
+
"proto:gen": "tsx scripts/proto.ts",
|
|
96
|
+
"proto:check": "tsx scripts/proto.ts --check"
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@grpc/grpc-js": "^1.14.0",
|
|
100
|
+
"@noble/hashes": "^1.4.0",
|
|
101
|
+
"@protobuf-ts/runtime": "^2.9.4",
|
|
102
|
+
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
|
103
|
+
"@protobuf-ts/grpc-transport": "^2.9.4"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"@opentelemetry/api": "^1.9.0"
|
|
107
|
+
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"@opentelemetry/api": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"@biomejs/biome": "^1.9.4",
|
|
115
|
+
"@opentelemetry/api": "^1.9.0",
|
|
116
|
+
"@protobuf-ts/plugin": "^2.9.4",
|
|
117
|
+
"@types/node": "^20.14.0",
|
|
118
|
+
"tsup": "^8.3.0",
|
|
119
|
+
"tsx": "^4.19.0",
|
|
120
|
+
"typescript": "^5.6.0",
|
|
121
|
+
"vitest": "^2.1.0"
|
|
122
|
+
}
|
|
123
|
+
}
|