@token2chat/t2c 0.2.0-beta.1
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 +188 -0
- package/dist/adapters/aider.d.ts +5 -0
- package/dist/adapters/aider.js +29 -0
- package/dist/adapters/cline.d.ts +5 -0
- package/dist/adapters/cline.js +32 -0
- package/dist/adapters/continue.d.ts +5 -0
- package/dist/adapters/continue.js +45 -0
- package/dist/adapters/cursor.d.ts +5 -0
- package/dist/adapters/cursor.js +23 -0
- package/dist/adapters/env.d.ts +5 -0
- package/dist/adapters/env.js +25 -0
- package/dist/adapters/index.d.ts +6 -0
- package/dist/adapters/index.js +6 -0
- package/dist/adapters/openclaw.d.ts +2 -0
- package/dist/adapters/openclaw.js +167 -0
- package/dist/cashu-store.d.ts +52 -0
- package/dist/cashu-store.js +201 -0
- package/dist/commands/audit.d.ts +6 -0
- package/dist/commands/audit.js +340 -0
- package/dist/commands/balance.d.ts +5 -0
- package/dist/commands/balance.js +29 -0
- package/dist/commands/config.d.ts +5 -0
- package/dist/commands/config.js +62 -0
- package/dist/commands/connect.d.ts +1 -0
- package/dist/commands/connect.js +43 -0
- package/dist/commands/doctor.d.ts +1 -0
- package/dist/commands/doctor.js +178 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.js +50 -0
- package/dist/commands/mint.d.ts +5 -0
- package/dist/commands/mint.js +168 -0
- package/dist/commands/recover.d.ts +1 -0
- package/dist/commands/recover.js +61 -0
- package/dist/commands/service.d.ts +7 -0
- package/dist/commands/service.js +378 -0
- package/dist/commands/setup.d.ts +1 -0
- package/dist/commands/setup.js +128 -0
- package/dist/commands/status.d.ts +5 -0
- package/dist/commands/status.js +87 -0
- package/dist/config.d.ts +83 -0
- package/dist/config.js +224 -0
- package/dist/connectors/cursor.d.ts +2 -0
- package/dist/connectors/cursor.js +28 -0
- package/dist/connectors/env.d.ts +2 -0
- package/dist/connectors/env.js +38 -0
- package/dist/connectors/index.d.ts +26 -0
- package/dist/connectors/index.js +30 -0
- package/dist/connectors/interface.d.ts +20 -0
- package/dist/connectors/interface.js +1 -0
- package/dist/connectors/openclaw.d.ts +2 -0
- package/dist/connectors/openclaw.js +202 -0
- package/dist/gate-discovery.d.ts +49 -0
- package/dist/gate-discovery.js +142 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +177 -0
- package/dist/proxy.d.ts +11 -0
- package/dist/proxy.js +352 -0
- package/package.json +84 -0
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@token2chat/t2c",
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "t2c - Pay-per-request LLM access via Cashu ecash",
|
|
7
|
+
"author": "Token2Chat",
|
|
8
|
+
"homepage": "https://github.com/TokenisAllAgentNeed/t2c#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/TokenisAllAgentNeed/t2c.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/TokenisAllAgentNeed/t2c/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"llm",
|
|
18
|
+
"ai",
|
|
19
|
+
"cashu",
|
|
20
|
+
"ecash",
|
|
21
|
+
"bitcoin",
|
|
22
|
+
"pay-per-request",
|
|
23
|
+
"openai",
|
|
24
|
+
"claude",
|
|
25
|
+
"gpt",
|
|
26
|
+
"proxy",
|
|
27
|
+
"cli"
|
|
28
|
+
],
|
|
29
|
+
"bin": {
|
|
30
|
+
"t2c": "./dist/index.js"
|
|
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
|
+
"./config": {
|
|
40
|
+
"types": "./dist/config.d.ts",
|
|
41
|
+
"import": "./dist/config.js"
|
|
42
|
+
},
|
|
43
|
+
"./cashu-store": {
|
|
44
|
+
"types": "./dist/cashu-store.d.ts",
|
|
45
|
+
"import": "./dist/cashu-store.js"
|
|
46
|
+
},
|
|
47
|
+
"./proxy": {
|
|
48
|
+
"types": "./dist/proxy.d.ts",
|
|
49
|
+
"import": "./dist/proxy.js"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"dist/",
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
],
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsc",
|
|
59
|
+
"dev": "tsc --watch",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:watch": "vitest",
|
|
62
|
+
"test:coverage": "vitest run --coverage",
|
|
63
|
+
"lint": "tsc --noEmit",
|
|
64
|
+
"prepublishOnly": "npm run build && npm test && rm -f dist/commands/debug.js dist/commands/debug.d.ts dist/commands/debug.js.map dist/commands/debug.d.ts.map",
|
|
65
|
+
"clean": "rm -rf dist"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@cashu/cashu-ts": "^2.5.0",
|
|
69
|
+
"@cashu/crypto": "^0.3.4",
|
|
70
|
+
"commander": "^14.0.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/node": "^25.1.0",
|
|
74
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
75
|
+
"typescript": "^5.9.3",
|
|
76
|
+
"vitest": "^3.2.4"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=20"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
}
|
|
84
|
+
}
|