Skip to content

Commit 87f487c

Browse files
docs(parser): add WASM-only virtual filesystem functions to spec (#39533)
1 parent e306fe0 commit 87f487c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/parser/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ Inline skills are secondary skill definitions embedded in the same markdown file
198198
| `GetBuiltinFrontmatterCache` | `func(path string) (*FrontmatterResult, bool)` | Gets cached frontmatter parse results for built-in virtual files |
199199
| `SetBuiltinFrontmatterCache` | `func(path string, result *FrontmatterResult) *FrontmatterResult` | Stores a frontmatter parse result in the built-in cache |
200200
| `ReadFile` | `func(path string) ([]byte, error)` | Reads file content through parser virtual/builtin-aware file resolution |
201+
| `SetVirtualFiles` | `func(files map[string][]byte)` | *(WASM only — `//go:build js \|\| wasm`)* Populates the in-memory virtual filesystem used by the WASM runtime; keys are workspace-relative file paths |
202+
| `ClearVirtualFiles` | `func()` | *(WASM only)* Removes all entries from the in-memory virtual filesystem |
203+
| `VirtualFileExists` | `func(path string) bool` | *(WASM only)* Returns whether a path is present in the in-memory virtual filesystem |
201204
| `MergeTools` | `func(base, additional map[string]any) (map[string]any, error)` | Merges two tool configuration maps with MCP-aware conflict handling |
202205
| `UpdateWorkflowFrontmatter` | `func(workflowPath string, updateFunc func(frontmatter map[string]any) error, verbose bool) error` | Reads, updates, and rewrites workflow frontmatter with a callback |
203206
| `ReconstructWorkflowFile` | `func(frontmatterYAML, markdownContent string) (string, error)` | Reconstructs a complete workflow file string from frontmatter YAML and markdown content |

0 commit comments

Comments
 (0)