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.
@@ -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
- /** Enable token-optimized output. */
41
- tokenOptimized?: boolean;
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.0",
4
- "description": "The operating system for AI software engineering governance, memory, review pipelines, and reusable skills for every coding agent. 45 specialist agents, 35 workflows, 21 parallel Tribunal code reviewers, MCP server, Rust core engine, and long-running autonomous agent harness for Cursor, VSCode, Windsurf, Claude Code, and Aider.",
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
- "typescript": "5.4.5"
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.0",
107
- "@tribunal-kit/core-darwin-x64": "^6.0.0",
108
- "@tribunal-kit/core-linux-arm64": "^6.0.0",
109
- "@tribunal-kit/core-linux-x64": "^6.0.0",
110
- "@tribunal-kit/core-win32-arm64": "^6.0.0",
111
- "@tribunal-kit/core-win32-x64": "^6.0.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": [
@@ -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+version\s*=\s*"([^"]+)"/)?.[1];
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
  }