Finder Traversal Surface

Phase 5 adds a compatibility traversal model to packages/api/pkg/sikuli/finder.go without removing the existing Go value/slice API.

What Changed

Finder now supports two additive traversal-preparation methods:

These methods:

The traversal methods operate over the same last-result cache used by:

Compatibility Contract

The Go port intentionally keeps both models:

Additive SikuliX-style traversal

LastMatches Coherence

LastMatches() continues returning the full most-recent match set even after Next() advances the iterator.

This is a deliberate Go-compatibility choice:

Destroy() clears both the traversal cursor and the last-match cache. Reset() rewinds traversal over the current last-match cache.

Scope

This phase does not change the runtime architecture or move traversal semantics into gRPC. The compatibility iterator is an additive pkg/sikuli layer on top of the existing search implementation.