Commit Graph

15 Commits

Author SHA1 Message Date
dec79fe9e5 chore(zed): bump extension to v0.3.2, update grammar rev
Updates extension.toml to v0.3.2 with grammar revision pointing to
the definition keyword rename commit.
2026-02-23 20:43:59 +00:00
9c18bfa028 feat(lang): rename concept_comparison to definition (v0.3.2)
Renames the `concept_comparison` keyword to `definition` across the
entire codebase for better readability and conciseness.

Changes:
- Tree-sitter grammar: `concept_comparison` node → `definition`
- Tree-sitter queries: highlights, outline, and indents updated
- Zed extension highlights.scm updated to match
- Lexer: `Token::ConceptComparison` → `Token::Definition`
- Parser: `ConceptComparisonDecl` rule → `DefinitionDecl`
- AST: `Declaration::ConceptComparison` → `Declaration::Definition`,
  `ConceptComparisonDecl` struct → `DefinitionDecl`
- All Rust source files updated (validate, names, convert, references,
  semantic_tokens, symbols, code_actions, hover, completion)
- `validate_concept_comparison_patterns` → `validate_definition_patterns`
- Example file and test corpus updated
- Spec docs: created SBIR-v0.3.2-SPEC.md, updated TYPE-SYSTEM.md,
  README.md, SBIR-CHANGELOG.md, SBIR-v0.3.1-SPEC.md
2026-02-23 20:37:52 +00:00
583cd485b9 fix(zed): restore highlights.scm - Zed requires local query files
Zed extensions do not automatically use queries from fetched grammars.
They require local query files in languages/<lang>/ directory.

Restored highlights.scm by copying from tree-sitter-storybook/queries/.
The regression test ensures this stays in sync with the source of truth.

Also updated grammar revision to 0590c13 (latest remote commit).
2026-02-17 00:11:37 +00:00
87e515098a chore: updating extension
Signed-off-by: Sienna Meridian Satterwhite <sienna@r3t.io>
2026-02-17 00:00:43 +00:00
37793cea0d fix(deps): update dependencies and fix all compilation errors
Updated dependencies to latest versions causing breaking changes:
- logos: 0.14 -> 0.16
- lalrpop: 0.21 -> 0.23
- thiserror: 1.0 -> 2.0
- petgraph: 0.6 -> 0.8
- notify: 6.0 -> 8
- toml: 0.8 -> 1.0.2
- tree-sitter (grammar): 0.20 -> 0.26

Fixed compilation issues:
1. logos 0.16: Added allow_greedy for unbounded repetitions in lexer
2. lalrpop 0.23: Changed from process_current_dir() to process()
3. tree-sitter 0.26: Updated bindings to use &Language reference

Also fixed Zed extension:
- Removed local highlights.scm override that had diverged from source
- Added regression test to prevent future divergence
2026-02-16 23:49:29 +00:00
1951be030e fix(zed): add workspace table to prevent parent workspace inclusion
Added empty [workspace] table to zed-storybook/Cargo.toml to explicitly
tell cargo this package is not part of the parent workspace. This fixes
the Zed extension build error.
2026-02-16 23:10:44 +00:00
aeccebbda1 chore(zed): update grammar revision to 47fafdc
Updated Zed extension to use the latest tree-sitter grammar with
the 'modifies' keyword change. Bumped extension version to 0.3.1.
2026-02-16 23:04:34 +00:00
a9445fd80c chore(zed): update grammar revision to e6d2974 2026-02-14 17:47:01 +00:00
e6d297420c feat(grammar): update tree-sitter grammar to v0.3.0
Updated tree-sitter grammar to match v0.3.0 LALRPOP parser:

Grammar updates:
- Schedule: block-based syntax with extends, override, recurrence
- Life arc: requires clause for field validation
- Template: uses behaviors/schedules syntax
- Behavior: correct keywords (choose/then/repeat with optional params)
- Type system: concept_comparison with any/is_condition
- Removed concept semicolon requirement

Query file updates:
- highlights.scm: updated node names to *_declaration
- outline.scm: updated for new declaration node names
- indents.scm: updated node names, removed concept semicolon

Corpus test updates:
- Created schedules.txt with v0.3.0 syntax tests
- Created highlights.txt for highlighting tests
- Updated type_system.txt for v0.3.0 type syntax
- Updated behaviors.txt for correct expression wrapping
- Updated declarations.txt to use correct node names
- Updated basic.txt to use character_declaration/character_body
- Deleted obsolete v0.2.0 syntax tests

Integration tests:
- Added tree_sitter_integration.rs test suite
- Fixed test_any_type to use correct v0.3.0 syntax
- Fixed test_tree_sitter_grammar_builds to use generate command
2026-02-14 17:43:26 +00:00
0c4994acd2 chore(zed): update grammar revision to f440247
Updated to include the any_type highlighting fix.
2026-02-14 16:43:12 +00:00
f440247537 fix(tree-sitter): correct any_type highlighting in queries
Changed highlights.scm to use (any_type) node type instead of the
string literal "any". The grammar defines any as any_type rule,
not as a bare keyword string.
2026-02-14 16:41:37 +00:00
50b9ee2034 chore(zed): update grammar revision to latest commit
Updated rev to 26bbef58d3 which
includes the fixed span tracking in LALRPOP parser.
2026-02-14 16:33:51 +00:00
26bbef58d3 fix(lsp): correct line numbers in convert species/template tests
The tests were using line: 2 but the character declarations were on
line: 1 (due to the leading newline in the raw string literal). This
caused the cursor position to be outside the character span, making
the code actions fail to trigger.

Fixed by changing line: 2 to line: 1 in both test_convert_species_to_template
and test_convert_template_to_species.
2026-02-14 16:29:22 +00:00
de95332fe1 feat(zed): update extension for v0.3 grammar
Updated extension.toml:
- Version bumped to 0.3.0
- Grammar rev updated to v0.3 tree-sitter commit

Updated Zed highlights.scm with type system support:
- concept, sub_concept, concept_comparison keywords
- any keyword highlighting
- Named field highlights for type system declarations
- Template species reference highlighting
- sub_concept_field property highlighting
2026-02-14 14:30:57 +00:00
16deb5d237 release: Storybook v0.2.0 - Major syntax and features update
BREAKING CHANGES:
- Relationship syntax now requires blocks for all participants
- Removed self/other perspective blocks from relationships
- Replaced 'guard' keyword with 'if' for behavior tree decorators

Language Features:
- Add tree-sitter grammar with improved if/condition disambiguation
- Add comprehensive tutorial and reference documentation
- Add SBIR v0.2.0 binary format specification
- Add resource linking system for behaviors and schedules
- Add year-long schedule patterns (day, season, recurrence)
- Add behavior tree enhancements (named nodes, decorators)

Documentation:
- Complete tutorial series (9 chapters) with baker family examples
- Complete reference documentation for all language features
- SBIR v0.2.0 specification with binary format details
- Added locations and institutions documentation

Examples:
- Convert all examples to baker family scenario
- Add comprehensive working examples

Tooling:
- Zed extension with LSP integration
- Tree-sitter grammar for syntax highlighting
- Build scripts and development tools

Version Updates:
- Main package: 0.1.0 → 0.2.0
- Tree-sitter grammar: 0.1.0 → 0.2.0
- Zed extension: 0.1.0 → 0.2.0
- Storybook editor: 0.1.0 → 0.2.0
2026-02-13 21:52:03 +00:00