tribunal-kit 4.4.3 → 4.4.4
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/scripts/marathon_harness.js +115 -18
- package/.agent/scripts/prompt_compiler.js +54 -23
- package/README.md +113 -242
- package/bin/tribunal-kit.js +2 -2
- package/package.json +1 -1
- package/.agent/scripts/append_flow.js +0 -72
- package/.agent/scripts/colors.js +0 -11
- package/.agent/scripts/compress_skills.js +0 -141
- package/.agent/scripts/consolidate_skills.js +0 -149
- package/.agent/scripts/deep_compress.js +0 -150
- package/.agent/scripts/patch_skills_meta.js +0 -156
- package/.agent/scripts/patch_skills_output.js +0 -244
- package/.agent/scripts/strip_tribunal.js +0 -47
- package/.agent/scripts/utils.js +0 -17
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* strip_tribunal.js
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
const fs = require('fs');
|
|
8
|
-
const path = require('path');
|
|
9
|
-
|
|
10
|
-
function stripBoilerplate(filePath) {
|
|
11
|
-
const original = fs.readFileSync(filePath, 'utf8');
|
|
12
|
-
const originalLen = Buffer.byteLength(original, 'utf8');
|
|
13
|
-
|
|
14
|
-
let content = original;
|
|
15
|
-
content = content.replace(/## 🏛️ Tribunal Integration[\s\S]*?(?=\n# |\Z)/g, '');
|
|
16
|
-
content = content.replace(/## Tribunal Integration[\s\S]*?(?=\n# |\Z)/g, '');
|
|
17
|
-
content = content.replace(/## Cross-Workflow Navigation[\s\S]*?(?=\n# |\Z)/g, '');
|
|
18
|
-
content = content.replace(/## What the Maker Is Not Allowed to Do[\s\S]*?(?=\n# |\Z)/g, '');
|
|
19
|
-
|
|
20
|
-
fs.writeFileSync(filePath, content.trim() + '\n', 'utf8');
|
|
21
|
-
const newLen = Buffer.byteLength(content.trim() + '\n', 'utf8');
|
|
22
|
-
|
|
23
|
-
return [originalLen, newLen];
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function main() {
|
|
27
|
-
const dirsToCheck = ['.agent/agents', '.agent/workflows'];
|
|
28
|
-
let totalStripped = 0;
|
|
29
|
-
|
|
30
|
-
for (const d of dirsToCheck) {
|
|
31
|
-
if (!fs.existsSync(d)) continue;
|
|
32
|
-
const files = fs.readdirSync(d);
|
|
33
|
-
for (const file of files) {
|
|
34
|
-
if (file.endsWith('.md')) {
|
|
35
|
-
const filePath = path.join(d, file);
|
|
36
|
-
const [orig, newL] = stripBoilerplate(filePath);
|
|
37
|
-
totalStripped += (orig - newL);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
console.log(`Stripped ${totalStripped} bytes of repetitive boilerplate.`);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (require.main === module) {
|
|
46
|
-
main();
|
|
47
|
-
}
|
package/.agent/scripts/utils.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* utils.js — Backward-compatible re-export of _utils.js
|
|
3
|
-
* ══════════════════════════════════════════════════════
|
|
4
|
-
* All utilities are defined in _utils.js.
|
|
5
|
-
* This file re-exports them for scripts that import from './utils.js'.
|
|
6
|
-
*
|
|
7
|
-
* New scripts should import from './_utils' directly.
|
|
8
|
-
*/
|
|
9
|
-
'use strict';
|
|
10
|
-
|
|
11
|
-
const _utils = require('./_utils');
|
|
12
|
-
|
|
13
|
-
module.exports = {
|
|
14
|
-
..._utils,
|
|
15
|
-
// Legacy export for compatibility
|
|
16
|
-
ensureUtf8Stdout: function() {},
|
|
17
|
-
};
|