Commit Graph

4 Commits

Author SHA1 Message Date
Fran Algaba 001b16258c migrate .spell DSL to brace-delimited syntax (#14)
* migrate .spell DSL from indentation to brace-delimited syntax (SPEC-001)

Replace Python-style 2-space indentation with Rust/Go curly-brace
blocks across the entire codebase. This is a breaking syntax change
that improves agent authorship — LLMs handle braces far better than
whitespace-significant formats.

Tokenizer: remove INDENT/DEDENT tokens, split bracketDepth into
parenDepth (suppresses newlines) and braceDepth (preserves newlines),
remove IndentationError.

Parser: replace all INDENT/DEDENT patterns with LBRACE/RBRACE across
~22 methods. New parseBraceBlock() helper replaces parseStatementBlock().
Two patterns: label blocks (label: { }) and keyword blocks (keyword { }).

AST, transformer, IR generator, and runtime are unchanged — indentation
was purely a lexical/parse concern.

Updated 86 .spell fixture files, 15 test files, 20 documentation files,
README, AGENTS.md, VM spec references, and compiler-pipeline docs.

620 tests pass, 0 fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add changeset

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 14:04:08 +01:00
Fran Algaba 579fc1e267 move packages to @grimoirelabs scope
- rename package names/imports/docs/scripts to @grimoirelabs/*
  - keep CLI bin name as grimoire
  - update publish docs for new scope
  - fix formatting in venue tests
2026-02-03 16:37:39 +01:00
Fran Algaba df1fd8bfb1 add new spell fixtures, test coverage, and fixes for advisory fallbacks and skill auto-select 2026-02-03 11:04:51 +01:00
Fran Algaba c2af926a9c Fix venue adapters, add test runner resilience, update docs
- Aave V3: fix GraphQL field names (sender), split amount formats
  - Morpho Blue: add default Base markets, fix multi-match resolution
  - Across: increase bridge amounts to meet minimums
  - Test runner: add --start-phase, --recover, checkpoint tracking
  - Clean up redundant spell files
2026-02-02 17:10:10 +01:00