Files
personamanagmentlayer__pcl/tests/simple-test.mjs
ANGX dcf5e14efa feat: complete persona body property extraction
- Update extractProperties() to handle depth and verbosity properties
- Update extractPersonaConfig() to extract depth and verbosity from AST
- Add depth/verbosity to codegen property extraction interface
- Test parsing and extraction of complete persona syntax

Parsing now correctly handles:
- intent/tone/depth/verbosity properties
- skills/constraints/tags blocks

Status: Parser + Codegen + Runtime integration COMPLETE
2026-01-16 07:54:41 +01:00

11 lines
374 B
JavaScript

import { parse } from '../dist/index.js';
const result = parse('persona SEC { intent: "test" }');
console.log('Parse result:', result.ok ? 'SUCCESS' : 'FAILED');
if (result.ok) {
console.log('Statements:', result.value.program.statements.length);
} else {
console.log('Errors:', result.error.length);
result.error.forEach((err) => console.log(' -', err.message));
}