Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/document-source-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@stackables/bridge": patch
"@stackables/bridge-core": patch
"@stackables/bridge-compiler": patch
"@stackables/bridge-graphql": patch
"@stackables/bridge-parser": patch
---

Move Bridge source metadata onto BridgeDocument.

Parsed documents now retain their original source text automatically, and can
optionally carry a filename from parse time. Runtime execution, compiler
fallbacks, GraphQL execution, and playground formatting now read that metadata
from the document instead of requiring callers to thread source and filename
through execute options.
14 changes: 14 additions & 0 deletions .changeset/runtime-error-tool-formatting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@stackables/bridge": patch
"@stackables/bridge-core": patch
---

Improve formatted runtime errors for missing tools and source underlines.

`No tool found for "..."` and missing registered tool-function errors now carry
Bridge source locations when they originate from authored bridge wires, so
formatted errors include the filename, line, and highlighted source span.
Control-flow throw fallbacks now preserve their own source span, so
`?? throw "..."` highlights only the throw clause instead of the whole wire.
Caret underlines now render the full inclusive source span instead of stopping
one character short.
7 changes: 7 additions & 0 deletions .changeset/safe-path-panic-formatting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@stackables/bridge": patch
"@stackables/bridge-core": patch
"@stackables/bridge-compiler": patch
---

Fix segment-local `?.` traversal so later strict path segments still fail after a guarded null hop, and preserve source formatting for `panic` control-flow errors.
11 changes: 11 additions & 0 deletions .changeset/ternary-condition-source-mapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@stackables/bridge": patch
"@stackables/bridge-core": patch
"@stackables/bridge-compiler": patch
"@stackables/bridge-parser": patch
---

Improve runtime error source mapping for ternary conditions and strict path traversal.

Runtime and compiled execution now preserve clause-level source spans for ternary conditions and branches, so formatted errors can highlight only the failing condition or selected branch instead of the whole wire.
Strict path traversal also now fails consistently on primitive property access in both runtime and AOT execution, keeping error messages and behavior aligned.
Loading
Loading