Skip to content

feat: complete Fusion expression IntelliSense - #19

Merged
DiegoV71 merged 2 commits into
mainfrom
codex/fusion-expression-intellisense
Nov 8, 2026
Merged

DiegoV71 merged 2 commits into
mainfrom
codex/fusion-expression-intellisense

Conversation

@DiegoV71

@DiegoV71 DiegoV71 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The editor previously offered ten functions and the planner rejected many valid Fusion expressions. Share the complete documented catalog across the editor and Python planner, with English metadata and conservative diagnostics.

expression_catalog.json
  -> typed completion, highlighting, nested Signature Help
  -> Python function contracts and safe evaluation
  -> catalog-driven tests and packaged runtime

Adds 26 documented functions, four constants, logical operators, active argument tracking, parenthesis reuse, narrow-palette styling, and incomplete-draft guards. Extends arithmetic, dimensional intermediates, conditionals, and native preference-sensitive evaluation. random() remains available through native Quick Calculator and explicitly cannot promise stable Preview/Apply.

Evidence

  • Before: ten hardcoded completions; duplicated builtin lists; unsupported powers, inverse/hyperbolic functions, constants, and logic; no signature help.
    After: 379 Python tests plus 22 subtests, 160 frontend tests, and 47 IntelliSense tests pass. Ruff 0.17.3, Prettier, ESLint, TypeScript/Vite, compilation, reproducible ZIP/catalog, SHA-256, and release-contract checks pass locally.
  • Actual macOS Fusion 2706.1.17: 29 catalog-example parameters created, all 25 deterministic function results compared, 30 calculator calls, relative edits, dependencies, and stable-random refusal passed. F3D export/reopen preserved 31 parameters and a variant.
  • Installed test ZIP in a 361px native Fusion Palette: completion insertion, nested signatures/active arguments, dark-theme contrast, Apply (16), and inline constant edit (2 * PI) passed. User documents were preserved.
  • English reference, acceptance record, and 1.6.0 release notes included. Existing CI/GitVersion publication is retained; new shipped TypeScript inputs are added to the release allowlist.

Merge Danger

Door: two-way

Runtime changes can be reverted; the normal automatic release remains immutable. No command IDs, manifest UUID, user documents, or versioning mechanism changed. Security review retained bounded AST evaluation, no dynamic code evaluation, read-only native fallback, and pre-write Fusion checks.

Blast Radius: expressions

Final batch quantities remain length, angle, unitless, or text. Other physical units and fractional dimensions fail explicitly; diagnostics cover only provable local cases. Windows Fusion, light-theme native UI, cloud Save, and full add-in stop/restart were not tested. The existing reported restart crash is not claimed fixed. See docs/EXPRESSION_ACCEPTANCE.md and docs/EXPRESSION_REFERENCE.md.

@DiegoV71
DiegoV71 merged commit f1ecc51 into main Nov 8, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant