@peterwangze/claude-trigger-router 1.0.4 → 1.0.6
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/README.md +332 -296
- package/config/trigger.advanced.yaml +210 -0
- package/config/trigger.example.yaml +3 -190
- package/dist/cli.js +2138 -428
- package/dist/cli.js.map +4 -4
- package/package.json +74 -58
package/package.json
CHANGED
|
@@ -1,58 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@peterwangze/claude-trigger-router",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Intelligent trigger-based router for Claude Code with automatic task type detection and model routing",
|
|
5
|
-
"bin": {
|
|
6
|
-
"ctr": "dist/cli.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"config",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@peterwangze/claude-trigger-router",
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "Intelligent trigger-based router for Claude Code with automatic task type detection and model routing",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ctr": "dist/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"config",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/peterwangze/claude-trigger-router.git"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/peterwangze/claude-trigger-router#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/peterwangze/claude-trigger-router/issues"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node scripts/build.js",
|
|
26
|
+
"dev": "tsx watch src/cli.ts",
|
|
27
|
+
"start": "node dist/cli.js start",
|
|
28
|
+
"test": "vitest --exclude src/e2e/**",
|
|
29
|
+
"test:e2e:cli": "vitest --run src/e2e/cli-e2e.test.ts",
|
|
30
|
+
"test:e2e:acceptance": "vitest --run src/e2e/cli-acceptance.test.ts",
|
|
31
|
+
"verify:package": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/verify-package.ps1",
|
|
32
|
+
"install:local-release": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/install-local-release.ps1",
|
|
33
|
+
"release:verify": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/release-package.ps1 -Action verify",
|
|
34
|
+
"release:stage": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/release-package.ps1 -Action stage",
|
|
35
|
+
"release:clean": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/release-package.ps1 -Action clean",
|
|
36
|
+
"release:publish": "pwsh -NoProfile -ExecutionPolicy Bypass -File scripts/release-package.ps1 -Action publish",
|
|
37
|
+
"prepublishOnly": "npm run build",
|
|
38
|
+
"release": "npm run release:publish"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"claude",
|
|
42
|
+
"code",
|
|
43
|
+
"router",
|
|
44
|
+
"trigger",
|
|
45
|
+
"llm",
|
|
46
|
+
"anthropic",
|
|
47
|
+
"intent",
|
|
48
|
+
"routing"
|
|
49
|
+
],
|
|
50
|
+
"author": "peterwangze",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@fastify/static": "^8.2.0",
|
|
54
|
+
"@musistudio/llms": "^1.0.31",
|
|
55
|
+
"dotenv": "^16.4.7",
|
|
56
|
+
"json5": "^2.2.3",
|
|
57
|
+
"js-yaml": "^4.1.0",
|
|
58
|
+
"openurl": "^1.1.1",
|
|
59
|
+
"rotating-file-stream": "^3.2.7",
|
|
60
|
+
"tiktoken": "^1.0.21",
|
|
61
|
+
"uuid": "^11.1.0",
|
|
62
|
+
"lru-cache": "^10.0.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/js-yaml": "^4.0.9",
|
|
66
|
+
"@types/node": "^24.0.15",
|
|
67
|
+
"esbuild": "^0.25.1",
|
|
68
|
+
"fastify": "^5.4.0",
|
|
69
|
+
"shx": "^0.4.0",
|
|
70
|
+
"tsx": "^4.7.0",
|
|
71
|
+
"typescript": "^5.8.2",
|
|
72
|
+
"vitest": "^1.6.0"
|
|
73
|
+
}
|
|
74
|
+
}
|