Skip to content

Commit 8079280

Browse files
feat: LAFS default MVI 'standard' → 'minimal' (agent-first protocol)
The LAFS resolveFieldExtraction() now defaults to 'minimal' when no --mvi flag is passed. This is the protocol-level change that makes all CLEO consumers agent-optimized by default. Minimal format uses compact field names: ok (success), r (result), _m (_meta), op (operation), rid (requestId) Users can still get full output with --mvi standard or --mvi full. Verified: local build outputs 1405 bytes vs 1648 bytes for task show (15% envelope savings, more on larger payloads). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 33ad7e0 commit 8079280

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/lafs/src/fieldExtraction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function resolveFieldExtraction(
4949

5050
// 'custom' is server-set (§9.1) — not a client-requestable level
5151
const validMvi = isMVILevel(input.mviFlag) && input.mviFlag !== 'custom';
52-
const mvi: MVILevel = validMvi ? input.mviFlag as MVILevel : 'standard';
52+
const mvi: MVILevel = validMvi ? input.mviFlag as MVILevel : 'minimal';
5353
const mviSource: FieldExtractionResolution['mviSource'] = validMvi ? 'flag' : 'default';
5454

5555
const hasFields = (fields?.length ?? 0) > 0;

0 commit comments

Comments
 (0)