@openplan/dsh-fuse 0.1.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/LICENSE +21 -0
- package/README.md +214 -0
- package/cordis.patch.yml +29 -0
- package/dist/budget-tool.d.ts +66 -0
- package/dist/budget-tool.js +108 -0
- package/dist/config.d.ts +155 -0
- package/dist/config.js +125 -0
- package/dist/fuse.d.ts +59 -0
- package/dist/fuse.js +83 -0
- package/dist/harness.d.ts +48 -0
- package/dist/harness.js +773 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +55 -0
- package/dist/meter.d.ts +71 -0
- package/dist/meter.js +73 -0
- package/dist/pricing.d.ts +193 -0
- package/dist/pricing.js +450 -0
- package/dist/router.d.ts +30 -0
- package/dist/router.js +34 -0
- package/dist/store.d.ts +168 -0
- package/dist/store.js +412 -0
- package/dist/sync.d.ts +70 -0
- package/dist/sync.js +153 -0
- package/dist/wire.d.ts +52 -0
- package/dist/wire.js +15 -0
- package/package.json +64 -0
package/dist/wire.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plugin's outbound wire contract.
|
|
3
|
+
*
|
|
4
|
+
* These types are the plugin's OWN because the plugin is distributed
|
|
5
|
+
* standalone (`dsh plugin add`, npm/tarball) and therefore cannot depend on a
|
|
6
|
+
* workspace package that is never published. The SaaS declares the same pair
|
|
7
|
+
* in `apps/dsh/shared` for its own routes; the two are the same wire format,
|
|
8
|
+
* so a change here is a change there — the api's ingest route is the consumer
|
|
9
|
+
* and validates every field it reads.
|
|
10
|
+
*
|
|
11
|
+
* Only metrics travel: model, provider, tokens, cost, timing and the HASHED
|
|
12
|
+
* session identity. No prompt, message, tool argument or result ever crosses
|
|
13
|
+
* this boundary.
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openplan/dsh-fuse",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Cost policy for the DeepSeek Harness: per-call metering plus a local fuse that enforces budget, model and reasoning-effort limits before any token is spent.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"cordis.patch.yml",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"dsh",
|
|
29
|
+
"dsh-plugin",
|
|
30
|
+
"llm",
|
|
31
|
+
"budget",
|
|
32
|
+
"cost",
|
|
33
|
+
"enforcement",
|
|
34
|
+
"cordis"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsc -p tsconfig.build.json",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"prepublishOnly": "pnpm build"
|
|
41
|
+
},
|
|
42
|
+
"dsh": {
|
|
43
|
+
"bundle": {
|
|
44
|
+
"patch": "./cordis.patch.yml"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@deepseek-ai/schemastery": "3.18.2",
|
|
49
|
+
"@libsql/client": "^0.17.4"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@deepseek-ai/cordis": "4.0.1"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
56
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
60
|
+
"@types/node": "^22.0.0",
|
|
61
|
+
"typescript": "^5.9.0",
|
|
62
|
+
"vitest": "^3.1.0"
|
|
63
|
+
}
|
|
64
|
+
}
|