beads/internal/formula
obsidian 001a6aebc0 fix: accept simple string vars in TOML [vars] section
Add UnmarshalTOML method to VarDef to handle both simple string
assignments and full table definitions:

  [vars]
  wisp_type = "patrol"           # simple string -> Default = "patrol"

  [vars.component]               # table with full definition
  description = "Component name"
  required = true

Fixes bd-8l59: Formula parser rejects simple string vars in [vars] section

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:13:13 -08:00
..
advice.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
advice_test.go fix: Prevent aspect self-matching infinite recursion (gt-8tmz.16) 2025-12-25 12:21:23 -08:00
condition.go fix: Address code review issues in condition evaluator 2025-12-25 14:00:56 -08:00
condition_test.go fix: Address code review issues in condition evaluator 2025-12-25 14:00:56 -08:00
controlflow.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
controlflow_test.go Implement computed range expansion for loops (gt-8tmz.27) 2025-12-25 17:48:35 -08:00
expand.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
expand_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
parser.go refactor: remove Gas Town references from codebase 2025-12-30 14:13:32 -08:00
parser_test.go fix: accept simple string vars in TOML [vars] section 2026-02-03 14:13:13 -08:00
range.go Implement computed range expansion for loops (gt-8tmz.27) 2025-12-25 17:48:35 -08:00
range_test.go Add edge case tests for expression evaluator (code review) 2025-12-25 17:55:42 -08:00
stepcondition.go feat: add negation support for step conditions (!{{var}}) 2025-12-31 00:37:59 -08:00
stepcondition_test.go feat: add negation support for step conditions (!{{var}}) 2025-12-31 00:37:59 -08:00
types.go fix: accept simple string vars in TOML [vars] section 2026-02-03 14:13:13 -08:00