Skip to content

Commit e4de4a4

Browse files
authored
Rename package to readonly-fs-tools and Glancer to Viewer (#21)
* Rename package from glob_grep_glance to readonly_fs_tools - Update package name in pyproject.toml - Update GitHub URLs to reflect new repository name - Update CLAUDE.md documentation * Move source files to new package directory - Rename src/glob_grep_glance/ → src/readonly_fs_tools/ - Update all internal import paths * Rename Glancer to Viewer throughout codebase - Rename Glancer class to Viewer - Update GlanceOutput to ViewOutput - Change method names from glance() to view() - Rename test_glancer_window_behavior.py to test_viewer_window_behavior.py - Update all references in tests and docstrings * Add GitHub workflows for CI and publishing - Add CI workflow with linting, formatting, type checking, and tests - Add publish workflow for PyPI releases triggered on GitHub releases - Use security best practices with SHA-pinned actions * Update uv.lock for package rename * Fix lint errors
1 parent c057c11 commit e4de4a4

23 files changed

+154
-109
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_call:
9+
10+
permissions:
11+
contents: none
812

913
jobs:
1014
ci:
15+
permissions:
16+
contents: read
1117
runs-on: ubuntu-latest
1218
steps:
1319
- name: Checkout code

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
permissions:
8+
contents: none
9+
10+
jobs:
11+
ci:
12+
permissions:
13+
contents: read
14+
uses: .github/workflows/ci.yaml@main
15+
16+
publish:
17+
permissions:
18+
contents: read
19+
environment: release
20+
runs-on: ubuntu-latest
21+
needs: ci
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca
28+
29+
- name: Publish package
30+
run: uv publish

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ uv run pytest tests/test_specific_file.py # Run specific test file
2727

2828
## Project Architecture
2929

30-
This is a Python package called `glob_grep_glance` that provides "three safe tools for agentic code analysis". The package implements three main tools with security-focused sandboxed file operations:
30+
This is a Python package called `readonly_fs_tools` that provides "three safe tools for agentic code analysis". The package implements three main tools with security-focused sandboxed file operations:
3131

3232
### Core Components
3333
- `Globber` - Safe file pattern matching with glob patterns

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
[project]
2-
name = "glob_grep_glance"
2+
name = "readonly_fs_tools"
33
version = "0.1.0"
44
description = "Three safe tools for agentic code analysis"
55
readme = "README.md"
66
requires-python = ">=3.9"
7+
authors = [{name = "Brett Harvey"}]
8+
license = "MIT"
9+
classifiers = []
710
dependencies = [
811
"pydantic>=2.0",
912
]
1013

14+
[project.urls]
15+
Homepage = "https://github.com/rbharvs/readonly-fs-tools"
16+
Changelog = "https://github.com/rbharvs/readonly-fs-tools/releases"
17+
Issues = "https://github.com/rbharvs/readonly-fs-tools/issues"
18+
CI = "https://github.com/rbharvs/readonly-fs-tools/actions"
19+
1120
[dependency-groups]
1221
dev = [
1322
"mypy>=1.16.0",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Glob Grep Glance - Three safe tools for agentic code analysis."""
1+
"""Glob Grep View - Three safe tools for agentic code analysis."""
22

33
from ._budget import OutputBudget
44
from ._sandbox import Sandbox
@@ -9,9 +9,9 @@
99
GlobPattern,
1010
RegexPattern,
1111
)
12-
from .glance import GlanceOutput, Glancer
1312
from .glob import Globber, GlobOutput
1413
from .grep import GrepOutput, Grepper
14+
from .view import Viewer, ViewOutput
1515

1616
__all__ = [
1717
# Base models and types
@@ -28,7 +28,7 @@
2828
# Grep functionality
2929
"Grepper",
3030
"GrepOutput",
31-
# Glance functionality
32-
"Glancer",
33-
"GlanceOutput",
31+
# View functionality
32+
"Viewer",
33+
"ViewOutput",
3434
]

0 commit comments

Comments
 (0)