tribunal-kit 9.0.1 → 9.0.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/README.md +1 -1
- package/bin/adapter-install.js +1 -1
- package/dist/tui/banner.js +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +176 -176
- package/plugin.json +1 -1
- package/scripts/apply-version.js +57 -0
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<img src="https://img.shields.io/badge/License-MIT-1a1a1f?style=for-the-badge&color=2d2d30" alt="License" />
|
|
32
32
|
</a>
|
|
33
33
|
<a href="CHANGELOG.md">
|
|
34
|
-
<img src="https://img.shields.io/badge/Release-v9.0.
|
|
34
|
+
<img src="https://img.shields.io/badge/Release-v9.0.2-ff3300?style=for-the-badge&color=111111&logo=github&logoColor=ff3300" alt="Release Version" />
|
|
35
35
|
</a>
|
|
36
36
|
<a href="package.json">
|
|
37
37
|
<img src="https://img.shields.io/badge/Dependencies-0-ff3300?style=for-the-badge&color=111111&logoColor=ff3300" alt="Zero Dependencies" />
|
package/bin/adapter-install.js
CHANGED
|
@@ -204,7 +204,7 @@ function main() {
|
|
|
204
204
|
console.log('');
|
|
205
205
|
console.log('┌─────────────────────────────────────────────┐');
|
|
206
206
|
console.log('│ 🔱 Tribunal Kit — Universal Agent Adapter │');
|
|
207
|
-
console.log('│ v9.0.
|
|
207
|
+
console.log('│ v9.0.2 · 52 specialists · 185 skills │');
|
|
208
208
|
console.log('└─────────────────────────────────────────────┘');
|
|
209
209
|
console.log('');
|
|
210
210
|
|
package/dist/tui/banner.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const { isTTY, hasColor, hasTrueColor, RGB, GLYPHS, color, bold, getColumns } = require('./theme');
|
|
9
9
|
|
|
10
|
-
function renderBanner(version = '
|
|
10
|
+
function renderBanner(version = '9.0.2', quiet = false) {
|
|
11
11
|
if (quiet) return;
|
|
12
12
|
if (!isTTY && !hasColor) {
|
|
13
13
|
console.error(`TRIBUNAL-KIT v${version} — Anti-Hallucination Governance Layer`);
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
3
|
"description": "Enterprise-grade governance layer and anti-hallucination engine: 52 specialists, 28 parallel reviewers, Rust core, and SDD workflows.",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.2",
|
|
5
5
|
"contextFileName": ".agent/rules/GEMINI.md"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tribunal-kit",
|
|
3
|
-
"version": "9.0.
|
|
4
|
-
"description": "Your AI writes code that doesn't exist. Tribunal Kit stops it. The governance layer for AI coding agents — 52 specialists, 28 parallel reviewers, 185 skills, Rust core, MCP server. Works with Cursor, VSCode, Windsurf, Claude Code, and Aider.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"ai",
|
|
7
|
-
"ai-agent",
|
|
8
|
-
"long-running-agents",
|
|
9
|
-
"agent",
|
|
10
|
-
"agents",
|
|
11
|
-
"multi-agent",
|
|
12
|
-
"agentic",
|
|
13
|
-
"swarm",
|
|
14
|
-
"orchestration",
|
|
15
|
-
"llm",
|
|
16
|
-
"anti-hallucination",
|
|
17
|
-
"hallucination",
|
|
18
|
-
"code-review",
|
|
19
|
-
"code-quality",
|
|
20
|
-
"cursor",
|
|
21
|
-
"cursor-rules",
|
|
22
|
-
"cursorrules",
|
|
23
|
-
"windsurf",
|
|
24
|
-
"copilot",
|
|
25
|
-
"cline",
|
|
26
|
-
"gemini",
|
|
27
|
-
"antigravity",
|
|
28
|
-
"tribunal",
|
|
29
|
-
"mcp",
|
|
30
|
-
"model-context-protocol",
|
|
31
|
-
"cli",
|
|
32
|
-
"devtools",
|
|
33
|
-
"ai-coding",
|
|
34
|
-
"autonomous-agents",
|
|
35
|
-
"coding-assistant",
|
|
36
|
-
"automation",
|
|
37
|
-
"model-context-protocol-server",
|
|
38
|
-
"mcp-server",
|
|
39
|
-
"claude-code",
|
|
40
|
-
"aider",
|
|
41
|
-
"cursor-rules-generator",
|
|
42
|
-
"agentic-ai",
|
|
43
|
-
"ai-code-reviewer",
|
|
44
|
-
"hallucination-mitigation",
|
|
45
|
-
"autonomous-workflows",
|
|
46
|
-
"code-correctness",
|
|
47
|
-
"claude-code-plugin",
|
|
48
|
-
"claude-plugin"
|
|
49
|
-
],
|
|
50
|
-
"homepage": "https://github.com/Harmitx7/tribunal-kit",
|
|
51
|
-
"repository": {
|
|
52
|
-
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/Harmitx7/tribunal-kit.git"
|
|
54
|
-
},
|
|
55
|
-
"bugs": {
|
|
56
|
-
"url": "https://github.com/Harmitx7/tribunal-kit/issues"
|
|
57
|
-
},
|
|
58
|
-
"author": "Harmitx7",
|
|
59
|
-
"license": "MIT",
|
|
60
|
-
"types": "dist/index.d.ts",
|
|
61
|
-
"main": "dist/cli.js",
|
|
62
|
-
"exports": {
|
|
63
|
-
".": {
|
|
64
|
-
"types": "./dist/index.d.ts",
|
|
65
|
-
"import": "./dist/esm/index.mjs",
|
|
66
|
-
"require": "./dist/cli.js"
|
|
67
|
-
},
|
|
68
|
-
"./package.json": "./package.json"
|
|
69
|
-
},
|
|
70
|
-
"bin": {
|
|
71
|
-
"tribunal-kit": "bin/wrapper.js",
|
|
72
|
-
"tk": "bin/wrapper.js",
|
|
73
|
-
"tk-proxy": "bin/tk-proxy.js",
|
|
74
|
-
"tk-adapt": "bin/adapter-install.js"
|
|
75
|
-
},
|
|
76
|
-
"files": [
|
|
77
|
-
"bin/",
|
|
78
|
-
"dist/",
|
|
79
|
-
"scripts/",
|
|
80
|
-
"hooks/",
|
|
81
|
-
".claude-plugin/",
|
|
82
|
-
".cursor-plugin/",
|
|
83
|
-
".codex-plugin/",
|
|
84
|
-
".devin-plugin/",
|
|
85
|
-
".hermes-plugin/",
|
|
86
|
-
".kimi-plugin/",
|
|
87
|
-
".opencode/",
|
|
88
|
-
".agents/",
|
|
89
|
-
".pi/",
|
|
90
|
-
"gemini-extension.json",
|
|
91
|
-
".agent/",
|
|
92
|
-
".claude/CLAUDE.md",
|
|
93
|
-
"CLAUDE.md",
|
|
94
|
-
"AGENTS.md",
|
|
95
|
-
"skills/",
|
|
96
|
-
"marketplace.json",
|
|
97
|
-
"plugin.json",
|
|
98
|
-
"README.md",
|
|
99
|
-
"LICENSE",
|
|
100
|
-
"SECURITY.md",
|
|
101
|
-
"CONTRIBUTING.md",
|
|
102
|
-
"mcp_config.json",
|
|
103
|
-
".agent/config/plugin.json",
|
|
104
|
-
".agent/config/system-prompt.md",
|
|
105
|
-
".agent/config/slash-commands.json",
|
|
106
|
-
".agent/config/specialist-registry.json"
|
|
107
|
-
],
|
|
108
|
-
"pi": {
|
|
109
|
-
"extensions": [
|
|
110
|
-
"./.pi/extensions/tribunal.ts"
|
|
111
|
-
],
|
|
112
|
-
"skills": [
|
|
113
|
-
"./.agent/skills"
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
"engines": {
|
|
117
|
-
"node": ">=18.0.0"
|
|
118
|
-
},
|
|
119
|
-
"scripts": {
|
|
120
|
-
"test": "npm run validate-payload && jest --runInBand --coverage --forceExit",
|
|
121
|
-
"test:unit": "jest test/unit --coverage --forceExit",
|
|
122
|
-
"test:integration": "jest test/integration --coverage --forceExit",
|
|
123
|
-
"preversion": "node scripts/sync-version.js",
|
|
124
|
-
"version": "node scripts/changelog.js && git add CHANGELOG.md",
|
|
125
|
-
"changelog": "node scripts/changelog.js",
|
|
126
|
-
"changelog:preview": "node scripts/changelog.js --preview",
|
|
127
|
-
"sync": "node scripts/sync-version.js",
|
|
128
|
-
"validate-payload": "node scripts/validate-payload.js",
|
|
129
|
-
"skills:enhance": "node scripts/skill_enhancement_engine.js",
|
|
130
|
-
"skills:sync": "node scripts/sync-skills.js",
|
|
131
|
-
"benchmark": "node scripts/benchmark.js",
|
|
132
|
-
"benchmark:stress": "node scripts/stress_benchmark.js",
|
|
133
|
-
"benchmark:rust": "cargo build --release && node scripts/benchmark.js",
|
|
134
|
-
"build:rust": "cargo build --release",
|
|
135
|
-
"build:core": "cargo build --release --manifest-path crates/core/Cargo.toml",
|
|
136
|
-
"test:rust": "cargo test --manifest-path crates/core/Cargo.toml",
|
|
137
|
-
"test:all": "npm run validate-payload && npm run test:rust && jest --runInBand --coverage --forceExit",
|
|
138
|
-
"lint": "eslint .",
|
|
139
|
-
"typecheck": "tsc --noEmit",
|
|
140
|
-
"clean:pycache": "node scripts/clean-pycache.js",
|
|
141
|
-
"prepack": "npm run clean:pycache",
|
|
142
|
-
"format": "prettier --write .",
|
|
143
|
-
"format:check": "prettier --check .",
|
|
144
|
-
"build": "npm run build:rust"
|
|
145
|
-
},
|
|
146
|
-
"devDependencies": {
|
|
147
|
-
"eslint": "^9.1.1",
|
|
148
|
-
"jest": "^30.4.2",
|
|
149
|
-
"prettier": "^3.2.5",
|
|
150
|
-
"typescript": "^5.4.5",
|
|
151
|
-
"ws": "^8.21.3"
|
|
152
|
-
},
|
|
153
|
-
"optionalDependencies": {
|
|
154
|
-
"@tribunal-kit/core-darwin-arm64": "^9.0.
|
|
155
|
-
"@tribunal-kit/core-darwin-x64": "^9.0.
|
|
156
|
-
"@tribunal-kit/core-linux-arm64": "^9.0.
|
|
157
|
-
"@tribunal-kit/core-linux-x64": "^9.0.
|
|
158
|
-
"@tribunal-kit/core-win32-arm64": "^9.0.
|
|
159
|
-
"@tribunal-kit/core-win32-x64": "^9.0.
|
|
160
|
-
},
|
|
161
|
-
"jest": {
|
|
162
|
-
"testMatch": [
|
|
163
|
-
"**/test/**/*.test.js"
|
|
164
|
-
],
|
|
165
|
-
"testEnvironment": "node",
|
|
166
|
-
"coverageDirectory": "coverage",
|
|
167
|
-
"collectCoverageFrom": [
|
|
168
|
-
"bin/**/*.js",
|
|
169
|
-
".agent/scripts/**/*.js",
|
|
170
|
-
"dist/**/*.js"
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"dependencies": {
|
|
174
|
-
"zod": "^4.5.4"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tribunal-kit",
|
|
3
|
+
"version": "9.0.2",
|
|
4
|
+
"description": "Your AI writes code that doesn't exist. Tribunal Kit stops it. The governance layer for AI coding agents — 52 specialists, 28 parallel reviewers, 185 skills, Rust core, MCP server. Works with Cursor, VSCode, Windsurf, Claude Code, and Aider.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"ai-agent",
|
|
8
|
+
"long-running-agents",
|
|
9
|
+
"agent",
|
|
10
|
+
"agents",
|
|
11
|
+
"multi-agent",
|
|
12
|
+
"agentic",
|
|
13
|
+
"swarm",
|
|
14
|
+
"orchestration",
|
|
15
|
+
"llm",
|
|
16
|
+
"anti-hallucination",
|
|
17
|
+
"hallucination",
|
|
18
|
+
"code-review",
|
|
19
|
+
"code-quality",
|
|
20
|
+
"cursor",
|
|
21
|
+
"cursor-rules",
|
|
22
|
+
"cursorrules",
|
|
23
|
+
"windsurf",
|
|
24
|
+
"copilot",
|
|
25
|
+
"cline",
|
|
26
|
+
"gemini",
|
|
27
|
+
"antigravity",
|
|
28
|
+
"tribunal",
|
|
29
|
+
"mcp",
|
|
30
|
+
"model-context-protocol",
|
|
31
|
+
"cli",
|
|
32
|
+
"devtools",
|
|
33
|
+
"ai-coding",
|
|
34
|
+
"autonomous-agents",
|
|
35
|
+
"coding-assistant",
|
|
36
|
+
"automation",
|
|
37
|
+
"model-context-protocol-server",
|
|
38
|
+
"mcp-server",
|
|
39
|
+
"claude-code",
|
|
40
|
+
"aider",
|
|
41
|
+
"cursor-rules-generator",
|
|
42
|
+
"agentic-ai",
|
|
43
|
+
"ai-code-reviewer",
|
|
44
|
+
"hallucination-mitigation",
|
|
45
|
+
"autonomous-workflows",
|
|
46
|
+
"code-correctness",
|
|
47
|
+
"claude-code-plugin",
|
|
48
|
+
"claude-plugin"
|
|
49
|
+
],
|
|
50
|
+
"homepage": "https://github.com/Harmitx7/tribunal-kit",
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/Harmitx7/tribunal-kit.git"
|
|
54
|
+
},
|
|
55
|
+
"bugs": {
|
|
56
|
+
"url": "https://github.com/Harmitx7/tribunal-kit/issues"
|
|
57
|
+
},
|
|
58
|
+
"author": "Harmitx7",
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"types": "dist/index.d.ts",
|
|
61
|
+
"main": "dist/cli.js",
|
|
62
|
+
"exports": {
|
|
63
|
+
".": {
|
|
64
|
+
"types": "./dist/index.d.ts",
|
|
65
|
+
"import": "./dist/esm/index.mjs",
|
|
66
|
+
"require": "./dist/cli.js"
|
|
67
|
+
},
|
|
68
|
+
"./package.json": "./package.json"
|
|
69
|
+
},
|
|
70
|
+
"bin": {
|
|
71
|
+
"tribunal-kit": "bin/wrapper.js",
|
|
72
|
+
"tk": "bin/wrapper.js",
|
|
73
|
+
"tk-proxy": "bin/tk-proxy.js",
|
|
74
|
+
"tk-adapt": "bin/adapter-install.js"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"bin/",
|
|
78
|
+
"dist/",
|
|
79
|
+
"scripts/",
|
|
80
|
+
"hooks/",
|
|
81
|
+
".claude-plugin/",
|
|
82
|
+
".cursor-plugin/",
|
|
83
|
+
".codex-plugin/",
|
|
84
|
+
".devin-plugin/",
|
|
85
|
+
".hermes-plugin/",
|
|
86
|
+
".kimi-plugin/",
|
|
87
|
+
".opencode/",
|
|
88
|
+
".agents/",
|
|
89
|
+
".pi/",
|
|
90
|
+
"gemini-extension.json",
|
|
91
|
+
".agent/",
|
|
92
|
+
".claude/CLAUDE.md",
|
|
93
|
+
"CLAUDE.md",
|
|
94
|
+
"AGENTS.md",
|
|
95
|
+
"skills/",
|
|
96
|
+
"marketplace.json",
|
|
97
|
+
"plugin.json",
|
|
98
|
+
"README.md",
|
|
99
|
+
"LICENSE",
|
|
100
|
+
"SECURITY.md",
|
|
101
|
+
"CONTRIBUTING.md",
|
|
102
|
+
"mcp_config.json",
|
|
103
|
+
".agent/config/plugin.json",
|
|
104
|
+
".agent/config/system-prompt.md",
|
|
105
|
+
".agent/config/slash-commands.json",
|
|
106
|
+
".agent/config/specialist-registry.json"
|
|
107
|
+
],
|
|
108
|
+
"pi": {
|
|
109
|
+
"extensions": [
|
|
110
|
+
"./.pi/extensions/tribunal.ts"
|
|
111
|
+
],
|
|
112
|
+
"skills": [
|
|
113
|
+
"./.agent/skills"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"engines": {
|
|
117
|
+
"node": ">=18.0.0"
|
|
118
|
+
},
|
|
119
|
+
"scripts": {
|
|
120
|
+
"test": "npm run validate-payload && jest --runInBand --coverage --forceExit",
|
|
121
|
+
"test:unit": "jest test/unit --coverage --forceExit",
|
|
122
|
+
"test:integration": "jest test/integration --coverage --forceExit",
|
|
123
|
+
"preversion": "node scripts/sync-version.js",
|
|
124
|
+
"version": "node scripts/apply-version.js && cargo build --release && node scripts/changelog.js && git add CHANGELOG.md plugin.json gemini-extension.json npm/core-template/package.json README.md crates/core/Cargo.toml Cargo.lock bin/adapter-install.js dist/tui/banner.js scripts/apply-version.js",
|
|
125
|
+
"changelog": "node scripts/changelog.js",
|
|
126
|
+
"changelog:preview": "node scripts/changelog.js --preview",
|
|
127
|
+
"sync": "node scripts/sync-version.js",
|
|
128
|
+
"validate-payload": "node scripts/validate-payload.js",
|
|
129
|
+
"skills:enhance": "node scripts/skill_enhancement_engine.js",
|
|
130
|
+
"skills:sync": "node scripts/sync-skills.js",
|
|
131
|
+
"benchmark": "node scripts/benchmark.js",
|
|
132
|
+
"benchmark:stress": "node scripts/stress_benchmark.js",
|
|
133
|
+
"benchmark:rust": "cargo build --release && node scripts/benchmark.js",
|
|
134
|
+
"build:rust": "cargo build --release",
|
|
135
|
+
"build:core": "cargo build --release --manifest-path crates/core/Cargo.toml",
|
|
136
|
+
"test:rust": "cargo test --manifest-path crates/core/Cargo.toml",
|
|
137
|
+
"test:all": "npm run validate-payload && npm run test:rust && jest --runInBand --coverage --forceExit",
|
|
138
|
+
"lint": "eslint .",
|
|
139
|
+
"typecheck": "tsc --noEmit",
|
|
140
|
+
"clean:pycache": "node scripts/clean-pycache.js",
|
|
141
|
+
"prepack": "npm run clean:pycache",
|
|
142
|
+
"format": "prettier --write .",
|
|
143
|
+
"format:check": "prettier --check .",
|
|
144
|
+
"build": "npm run build:rust"
|
|
145
|
+
},
|
|
146
|
+
"devDependencies": {
|
|
147
|
+
"eslint": "^9.1.1",
|
|
148
|
+
"jest": "^30.4.2",
|
|
149
|
+
"prettier": "^3.2.5",
|
|
150
|
+
"typescript": "^5.4.5",
|
|
151
|
+
"ws": "^8.21.3"
|
|
152
|
+
},
|
|
153
|
+
"optionalDependencies": {
|
|
154
|
+
"@tribunal-kit/core-darwin-arm64": "^9.0.2",
|
|
155
|
+
"@tribunal-kit/core-darwin-x64": "^9.0.2",
|
|
156
|
+
"@tribunal-kit/core-linux-arm64": "^9.0.2",
|
|
157
|
+
"@tribunal-kit/core-linux-x64": "^9.0.2",
|
|
158
|
+
"@tribunal-kit/core-win32-arm64": "^9.0.2",
|
|
159
|
+
"@tribunal-kit/core-win32-x64": "^9.0.2"
|
|
160
|
+
},
|
|
161
|
+
"jest": {
|
|
162
|
+
"testMatch": [
|
|
163
|
+
"**/test/**/*.test.js"
|
|
164
|
+
],
|
|
165
|
+
"testEnvironment": "node",
|
|
166
|
+
"coverageDirectory": "coverage",
|
|
167
|
+
"collectCoverageFrom": [
|
|
168
|
+
"bin/**/*.js",
|
|
169
|
+
".agent/scripts/**/*.js",
|
|
170
|
+
"dist/**/*.js"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"dependencies": {
|
|
174
|
+
"zod": "^4.5.4"
|
|
175
|
+
}
|
|
176
|
+
}
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
3
|
"description": "Enterprise-grade governance layer and anti-hallucination engine for AI coding agents: 52 specialists, 28 parallel reviewers, Rust core, Subagent-Driven Development (SDD), and strict TDD workflows.",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Harmitx7",
|
|
7
7
|
"email": "harmit@tribunalkit.com"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const ROOT = path.resolve(__dirname, '..');
|
|
5
|
+
const PKG_PATH = path.join(ROOT, 'package.json');
|
|
6
|
+
const PKG = JSON.parse(fs.readFileSync(PKG_PATH, 'utf8'));
|
|
7
|
+
const VERSION = PKG.version;
|
|
8
|
+
|
|
9
|
+
function updateFiles() {
|
|
10
|
+
const filesToUpdate = [
|
|
11
|
+
'plugin.json',
|
|
12
|
+
'gemini-extension.json',
|
|
13
|
+
'npm/core-template/package.json',
|
|
14
|
+
'README.md',
|
|
15
|
+
'crates/core/Cargo.toml',
|
|
16
|
+
'bin/adapter-install.js',
|
|
17
|
+
'dist/tui/banner.js'
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
for (const relPath of filesToUpdate) {
|
|
21
|
+
const fullPath = path.join(ROOT, relPath);
|
|
22
|
+
if (fs.existsSync(fullPath)) {
|
|
23
|
+
let content = fs.readFileSync(fullPath, 'utf8');
|
|
24
|
+
|
|
25
|
+
if (relPath.endsWith('.json')) {
|
|
26
|
+
const json = JSON.parse(content);
|
|
27
|
+
if (json.version) {
|
|
28
|
+
json.version = VERSION;
|
|
29
|
+
}
|
|
30
|
+
fs.writeFileSync(fullPath, JSON.stringify(json, null, 2) + '\n');
|
|
31
|
+
} else if (relPath === 'crates/core/Cargo.toml') {
|
|
32
|
+
content = content.replace(/^version\s*=\s*"[^"]+"/m, `version = "${VERSION}"`);
|
|
33
|
+
fs.writeFileSync(fullPath, content);
|
|
34
|
+
} else if (relPath === 'README.md') {
|
|
35
|
+
content = content.replace(/Release-v([0-9]+\.[0-9]+\.[0-9]+)/g, `Release-v${VERSION}`);
|
|
36
|
+
fs.writeFileSync(fullPath, content);
|
|
37
|
+
} else if (relPath === 'bin/adapter-install.js' || relPath === 'dist/tui/banner.js') {
|
|
38
|
+
content = content.replace(/v\d+\.\d+\.\d+/g, `v${VERSION}`);
|
|
39
|
+
content = content.replace(/version = '\d+\.\d+\.\d+'/g, `version = '${VERSION}'`);
|
|
40
|
+
fs.writeFileSync(fullPath, content);
|
|
41
|
+
}
|
|
42
|
+
console.log(`Updated ${relPath} to ${VERSION}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Update optionalDependencies in package.json
|
|
47
|
+
if (PKG.optionalDependencies) {
|
|
48
|
+
for (const key of Object.keys(PKG.optionalDependencies)) {
|
|
49
|
+
PKG.optionalDependencies[key] = `^${VERSION}`;
|
|
50
|
+
}
|
|
51
|
+
fs.writeFileSync(PKG_PATH, JSON.stringify(PKG, null, 2) + '\n');
|
|
52
|
+
console.log(`Updated package.json optionalDependencies to ^${VERSION}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
updateFiles();
|
|
57
|
+
console.log('Applied version update across repository successfully.');
|