Add list files metadata endpoint support across SDKs#9
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds support for a new listFilesWithMetadata endpoint across all three SDK implementations (TypeScript, Python, and Go). The endpoint provides file listings with additional metadata including file mode, size, last commit SHA, and associated commit information (author, date, message). The PR also adds ephemeral flag support to the existing listFiles endpoint and includes minor test improvements (path validation in Go tests).
Changes:
- Added
listFilesWithMetadatamethod to all three SDKs with consistent API signatures - Added ephemeral flag support to
listFilesacross all SDKs - Added comprehensive test coverage for the new functionality including TTL and ephemeral flag tests
- Cleaned up cache files that should not be committed
- Enhanced Go tests with path validation checks
Reviewed changes
Copilot reviewed 38 out of 38 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/code-storage-typescript/tests/index.test.ts | Added tests for listFilesWithMetadata with ephemeral flag, date parsing, and TTL support |
| packages/code-storage-typescript/src/types.ts | Added type definitions for ListFilesWithMetadataOptions, FileWithMetadata, CommitMetadata, and result types |
| packages/code-storage-typescript/src/schemas.ts | Added Zod schemas for validating list files with metadata API responses |
| packages/code-storage-typescript/src/index.ts | Implemented listFilesWithMetadata method with transformation logic for camelCase conversion and date parsing |
| packages/code-storage-typescript/README.md | Added documentation and usage examples for listFilesWithMetadata |
| packages/code-storage-python/tests/test_repo.py | Added comprehensive tests including ephemeral flag, invalid date fallback, TTL, and agent header validation |
| packages/code-storage-python/pierre_storage/types.py | Added TypedDict definitions for FileWithMetadata, CommitMetadata, and ListFilesWithMetadataResult |
| packages/code-storage-python/pierre_storage/repo.py | Implemented list_files_with_metadata with error handling for invalid dates |
| packages/code-storage-python/pierre_storage/init.py | Exported new types for public API |
| packages/code-storage-python/README.md | Added documentation for the new endpoint |
| packages/code-storage-go/types.go | Added Go struct definitions for ListFilesWithMetadataOptions, FileWithMetadata, CommitMetadata, and result types |
| packages/code-storage-go/responses.go | Added internal response structs for JSON unmarshaling |
| packages/code-storage-go/repo_test.go | Added tests and improved existing tests with path validation checks |
| packages/code-storage-go/repo.go | Implemented ListFilesWithMetadata method with date parsing |
| packages/code-storage-go/README.md | Added usage example for the new endpoint |
| .moon/cache/* | Removed cache files that should not be committed |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
imownbey
approved these changes
Feb 24, 2026
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.
This adds list files metadata endpoint support across SDKs, along with some minor code cleanup.