Skip to content

Restore Zig 0.16 support for extension and MCP config scanners #44

@jusso-dev

Description

@jusso-dev

The Zig 0.16 build fix temporarily changed these collectors to return empty payload lists:

  • agent/src/collectors/extensions.zig
  • agent/src/collectors/mcp_config.zig

Why:

  • Both scanners still contain old filesystem APIs such as std.fs.openDirAbsolute, std.fs.openFileAbsolute, old Dir method signatures, and old file reading helpers.
  • Those code paths prevented zig build from completing under Zig 0.16.

Expected fix:

  • Port both scanners to std.Io.Dir with explicit std.Io arguments.
  • Preserve extension discovery for editor/browser extensions.
  • Preserve MCP config discovery and sanitization behavior.
  • Add tests/fixtures for common config and extension layouts.
  • Remove the temporary empty-result implementations.

Acceptance criteria:

  • zig build passes.
  • The extension scanner emits events from supported extension directories.
  • The MCP scanner emits sanitized config events and does not leak env values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions