@memnexus-ai/mx-agent-cli 0.1.89 → 0.1.90

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=template-budget.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-budget.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/template-budget.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { readFileSync } from 'fs';
3
+ import { join } from 'path';
4
+ const TEMPLATE_PATH = join(__dirname, '..', '..', '..', 'agent-config', 'CLAUDE.md.template');
5
+ const MAX_LINES = 200;
6
+ describe('CLAUDE.md template budget', () => {
7
+ it(`must be ≤${MAX_LINES} lines (loaded every session across all teams)`, () => {
8
+ const content = readFileSync(TEMPLATE_PATH, 'utf-8');
9
+ const lineCount = content.split('\n').length;
10
+ if (lineCount > MAX_LINES) {
11
+ throw new Error(`CLAUDE.md template is ${lineCount} lines — exceeds the ${MAX_LINES}-line budget.\n` +
12
+ `Every line costs tokens × sessions × teams. To fix:\n` +
13
+ ` 1. Move reference material to \`mx agent-help\` (CLI help)\n` +
14
+ ` 2. Move team-specific content to roleguides or .ai/ instructions\n` +
15
+ ` 3. Shorten code examples\n` +
16
+ ` 4. Consolidate overlapping sections\n` +
17
+ `See: product/dev-log/platform-team/v1.57-claude-md-re-shrinkage.md`);
18
+ }
19
+ expect(lineCount).toBeLessThanOrEqual(MAX_LINES);
20
+ });
21
+ it('template file exists and is not empty', () => {
22
+ const content = readFileSync(TEMPLATE_PATH, 'utf-8');
23
+ expect(content.length).toBeGreaterThan(0);
24
+ expect(content.split('\n').length).toBeGreaterThan(10);
25
+ });
26
+ });
27
+ //# sourceMappingURL=template-budget.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-budget.test.js","sourceRoot":"","sources":["../../src/__tests__/template-budget.test.ts"],"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;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memnexus-ai/mx-agent-cli",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "description": "CLI for creating and managing AI agent teams",
5
5
  "type": "module",
6
6
  "bin": {