From 8f0c344bd8e9c4176a288245adc7fa5a2aaea422 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 11:32:01 +0000 Subject: [PATCH] docs(parser): add WASM-only virtual filesystem functions to spec Document SetVirtualFiles, ClearVirtualFiles, and VirtualFileExists in the parser package README. These functions are build-constrained to js/wasm and were missing from the specification. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- pkg/parser/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/parser/README.md b/pkg/parser/README.md index d80b776403f..355ecb076b6 100644 --- a/pkg/parser/README.md +++ b/pkg/parser/README.md @@ -198,6 +198,9 @@ Inline skills are secondary skill definitions embedded in the same markdown file | `GetBuiltinFrontmatterCache` | `func(path string) (*FrontmatterResult, bool)` | Gets cached frontmatter parse results for built-in virtual files | | `SetBuiltinFrontmatterCache` | `func(path string, result *FrontmatterResult) *FrontmatterResult` | Stores a frontmatter parse result in the built-in cache | | `ReadFile` | `func(path string) ([]byte, error)` | Reads file content through parser virtual/builtin-aware file resolution | +| `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 | +| `ClearVirtualFiles` | `func()` | *(WASM only)* Removes all entries from the in-memory virtual filesystem | +| `VirtualFileExists` | `func(path string) bool` | *(WASM only)* Returns whether a path is present in the in-memory virtual filesystem | | `MergeTools` | `func(base, additional map[string]any) (map[string]any, error)` | Merges two tool configuration maps with MCP-aware conflict handling | | `UpdateWorkflowFrontmatter` | `func(workflowPath string, updateFunc func(frontmatter map[string]any) error, verbose bool) error` | Reads, updates, and rewrites workflow frontmatter with a callback | | `ReconstructWorkflowFile` | `func(frontmatterYAML, markdownContent string) (string, error)` | Reconstructs a complete workflow file string from frontmatter YAML and markdown content |