tribunal-kit 6.0.0 → 6.0.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/.agent/.manifest.json +78 -0
- package/.agent/ARCHITECTURE.md +19 -244
- package/.agent/history/memory/.memory.idx +2185 -1
- package/.agent/history/memory/MEMORY.md +145 -1
- package/.agent/routing_index.json +3 -2
- package/.agent/rules/GEMINI.md +1 -1
- package/.agent/skill_topic_map.json +218 -0
- package/.agent/skills/agentic-workflows-2026/SKILL.md +76 -0
- package/.agent/skills/ai-app-hardening/SKILL.md +58 -0
- package/.agent/skills/context-engineering-pro/SKILL.md +69 -0
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +55 -0
- package/.agent/skills/edge-ai-mobile/SKILL.md +46 -0
- package/.agent/skills/expo-router-v4/SKILL.md +80 -0
- package/.agent/skills/opentelemetry-observability/SKILL.md +58 -0
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +67 -0
- package/.agent/skills/playwright-ai-e2e/SKILL.md +59 -0
- package/.agent/skills/property-based-testing/SKILL.md +60 -0
- package/.agent/skills/vector-search-pgvector/SKILL.md +77 -0
- package/.agent/skills/zero-trust-passkeys/SKILL.md +85 -0
- package/.agent/workflows/tribunal-full.md +13 -13
- package/README.md +79 -57
- package/SECURITY.md +3 -3
- package/bin/mcp-server.js +180 -34
- package/bin/wrapper.js +7 -4
- package/dist/cli.js +20 -0
- package/dist/commands/memory.js +3 -2
- package/dist/commands/native.js +36 -0
- package/dist/esm/index.mjs +32 -0
- package/dist/index.d.ts +50 -2
- package/package.json +15 -12
- package/scripts/sync-version.js +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -108,3 +108,35 @@ export function cmdUninstall(flags, quiet) {
|
|
|
108
108
|
export async function generateIDEBridges(cwd, agentDest, quiet) {
|
|
109
109
|
return loadCommand('../commands/init.js', 'generateIDEBridges', cwd, agentDest, quiet);
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
export async function cmdGuardrail(flags, argv, quiet) {
|
|
113
|
+
return loadCommand('../commands/guardrail.js', 'cmdGuardrail', flags, argv, quiet);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export async function cmdOptimizeSkill(flags, argv, quiet) {
|
|
117
|
+
return loadCommand('../commands/optimize.js', 'cmdOptimizeSkill', flags, argv, quiet);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function cmdMinimal(flags, quiet) {
|
|
121
|
+
return loadCommand('../commands/minimal.js', 'cmdMinimal', flags, quiet);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function cmdValidate(flags, argv, quiet) {
|
|
125
|
+
return loadCommand('../commands/validate.js', 'cmdValidate', flags, argv, quiet);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function cmdMinContext(argv, quiet) {
|
|
129
|
+
return loadCommand('../commands/native.js', 'cmdMinContext', argv, quiet);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function cmdDagSchedule(argv, quiet) {
|
|
133
|
+
return loadCommand('../commands/native.js', 'cmdDagSchedule', argv, quiet);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function cmdContextCompress(argv, quiet) {
|
|
137
|
+
return loadCommand('../commands/native.js', 'cmdContextCompress', argv, quiet);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function cmdOptimizeStep(argv, quiet) {
|
|
141
|
+
return loadCommand('../commands/native.js', 'cmdOptimizeStep', argv, quiet);
|
|
142
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface CliFlags {
|
|
|
37
37
|
log?: string;
|
|
38
38
|
/** Memory mutation strategy: 'balanced' | 'harden' | 'repair-only'. */
|
|
39
39
|
strategy?: string;
|
|
40
|
-
/**
|
|
41
|
-
|
|
40
|
+
/** Install profile: 'full' | 'minimal' | 'web' | 'mobile' | 'backend' | 'ai'. */
|
|
41
|
+
profile?: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/** Parsed CLI arguments returned by the internal arg parser. */
|
|
@@ -145,6 +145,54 @@ export function cmdUninstall(flags: CliFlags, quiet?: boolean): void;
|
|
|
145
145
|
*/
|
|
146
146
|
export function generateIDEBridges(cwd: string, agentDest: string, quiet?: boolean): Promise<void>;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Validate `.agent/` integrity (phantom refs, count mismatches, drift).
|
|
150
|
+
* Equivalent to `npx tribunal-kit guardrail`.
|
|
151
|
+
*/
|
|
152
|
+
export function cmdGuardrail(flags: CliFlags, argv: string[], quiet?: boolean): Promise<void>;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Optimize project skills using SkillOpt validation gates.
|
|
156
|
+
* Equivalent to `npx tribunal-kit optimize-skill`.
|
|
157
|
+
*/
|
|
158
|
+
export function cmdOptimizeSkill(flags: CliFlags, argv: string[], quiet?: boolean): Promise<void>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Show minimal change analysis for the current project.
|
|
162
|
+
* Equivalent to `npx tribunal-kit minimal`.
|
|
163
|
+
*/
|
|
164
|
+
export function cmdMinimal(flags: CliFlags, quiet?: boolean): void;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Validate a JSON payload against a Tribunal schema.
|
|
168
|
+
* Equivalent to `npx tribunal-kit validate`.
|
|
169
|
+
*/
|
|
170
|
+
export function cmdValidate(flags: CliFlags, argv: string[], quiet?: boolean): void;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Remove empty lines from a context file.
|
|
174
|
+
* Equivalent to `npx tribunal-kit min-context`.
|
|
175
|
+
*/
|
|
176
|
+
export function cmdMinContext(argv: string[], quiet?: boolean): void;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Compute parallel execution waves from task dependencies.
|
|
180
|
+
* Equivalent to `npx tribunal-kit dag-schedule`.
|
|
181
|
+
*/
|
|
182
|
+
export function cmdDagSchedule(argv: string[], quiet?: boolean): void;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Compress a context file while retaining VERIFY comments.
|
|
186
|
+
* Equivalent to `npx tribunal-kit context-compress`.
|
|
187
|
+
*/
|
|
188
|
+
export function cmdContextCompress(argv: string[], quiet?: boolean): void;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Apply bounded SkillOpt edits from a JSON payload.
|
|
192
|
+
* Equivalent to `npx tribunal-kit optimize-step`.
|
|
193
|
+
*/
|
|
194
|
+
export function cmdOptimizeStep(argv: string[], quiet?: boolean): void;
|
|
195
|
+
|
|
148
196
|
// ── Logger Utilities ─────────────────────────────────────────────────────────
|
|
149
197
|
|
|
150
198
|
/** ANSI color code map. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
|
-
"version": "6.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
|
+
"description": "Your AI writes code that doesn't exist. Tribunal Kit stops it. The governance layer for AI coding agents — 51 specialists, 27 parallel reviewers, 183 skills, Rust core, MCP server. Works with Cursor, VSCode, Windsurf, Claude Code, and Aider.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"ai-agent",
|
|
@@ -95,20 +95,23 @@
|
|
|
95
95
|
"build:core": "cargo build --release --manifest-path crates/core/Cargo.toml",
|
|
96
96
|
"test:rust": "cargo test --manifest-path crates/core/Cargo.toml",
|
|
97
97
|
"test:all": "npm run validate-payload && npm run test:rust && jest --runInBand --coverage",
|
|
98
|
+
"format": "prettier --write .",
|
|
99
|
+
"format:check": "prettier --check .",
|
|
98
100
|
"build": "npm run build:rust"
|
|
99
101
|
},
|
|
100
102
|
"devDependencies": {
|
|
101
|
-
"eslint": "9.1.1",
|
|
102
|
-
"jest": "30.4.2",
|
|
103
|
-
"
|
|
104
|
-
|
|
103
|
+
"eslint": "^9.1.1",
|
|
104
|
+
"jest": "^30.4.2",
|
|
105
|
+
"prettier": "^3.2.5",
|
|
106
|
+
"typescript": "^5.4.5"
|
|
107
|
+
},
|
|
105
108
|
"optionalDependencies": {
|
|
106
|
-
"@tribunal-kit/core-darwin-arm64": "^6.0.
|
|
107
|
-
"@tribunal-kit/core-darwin-x64": "^6.0.
|
|
108
|
-
"@tribunal-kit/core-linux-arm64": "^6.0.
|
|
109
|
-
"@tribunal-kit/core-linux-x64": "^6.0.
|
|
110
|
-
"@tribunal-kit/core-win32-arm64": "^6.0.
|
|
111
|
-
"@tribunal-kit/core-win32-x64": "^6.0.
|
|
109
|
+
"@tribunal-kit/core-darwin-arm64": "^6.0.1",
|
|
110
|
+
"@tribunal-kit/core-darwin-x64": "^6.0.1",
|
|
111
|
+
"@tribunal-kit/core-linux-arm64": "^6.0.1",
|
|
112
|
+
"@tribunal-kit/core-linux-x64": "^6.0.1",
|
|
113
|
+
"@tribunal-kit/core-win32-arm64": "^6.0.1",
|
|
114
|
+
"@tribunal-kit/core-win32-x64": "^6.0.1"
|
|
112
115
|
},
|
|
113
116
|
"jest": {
|
|
114
117
|
"testMatch": [
|
package/scripts/sync-version.js
CHANGED
|
@@ -80,7 +80,7 @@ function checkVersionMetadata() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
const cargoLock = readText("Cargo.lock");
|
|
83
|
-
const cargoLockVersion = cargoLock.match(/name\s*=\s*"tribunal-core"\s
|
|
83
|
+
const cargoLockVersion = cargoLock.match(/name\s*=\s*"tribunal-core"[\s\S]*?version\s*=\s*"([^"]+)"/)?.[1];
|
|
84
84
|
if (cargoLockVersion !== VERSION) {
|
|
85
85
|
fail(`Cargo.lock tribunal-core version is ${cargoLockVersion || "missing"}, expected ${VERSION}`);
|
|
86
86
|
}
|