feat: peek grep mode + get_issues filtering/read-one (ctxpeek 1.0) - #32
Merged
Conversation
peek: - grep mode (`query`, literal or `regex`) returns every match in a named file with `context` lines around it — deterministic, single-file, no vectors - per-line cap (`max_line_length`) and match cap (`max_matches`) - binary / empty files reported not dumped; no-match returns a note, not an error; `~tokens` reflects the returned payload - logic extracted to pure, unit-tested format/peekText.ts get_issues: - filters: labels, author, assignee, since, sort/order (REST + GraphQL share one query builder in fetch/issueQuery.ts) - read-one mode (`number`) returns full body + top comments via new GithubRestClient.getIssue / getIssueComments Tool surface stays at 10. Adds 31 unit tests; lint/typecheck/build green. Changeset bumps ctxpeek 0.1.3 -> 1.0.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cuts ctxpeek 1.0 and lands two feature areas plus stabilization. Tool surface stays at 10 tools.
peek— grep mode + limits + edge casesqueryto find every match inside a named file and get each back withcontextlines around it. Literal by default;regex: truefor patterns;ignore_case(default true). Overlapping windows merge into single chunks. Deterministic, single-file grep — no vectors, so it stays inside the project's stated "no semantic search" philosophy.max_line_lengthtruncates over-long lines (both modes) so a minified/data line can't blow the context window;max_matchescaps grep results with an explicit "+N more" note;n(head mode) is capped.~tokensreflects the returned payload.format/peekText.ts.get_issues— filtering + read-onelabels,author,assignee,since,sort/order(updated/created/comments) on top of existingstate/type. REST + GraphQL now share one query builder (fetch/issueQuery.ts) so filtering behaves identically on both paths.numberto fetch a single issue/PR's full body plus its firstcommentscomments, via newGithubRestClient.getIssue/getIssueComments.Stabilization
docs/reference/tools.md,README.md,docs/internals/architecture.md.Release
Changeset bumps
ctxpeek0.1.3 → 1.0.0 (major). On merge, the changesets action opens a "version packages" PR; merging that publishesctxpeek@1.0.0to npm via trusted publishing (OIDC provenance).🤖 Generated with Claude Code