Skip to content

Add list files metadata endpoint support across SDKs#9

Merged
jcrosby merged 8 commits intomainfrom
file-list-metadata
Feb 24, 2026
Merged

Add list files metadata endpoint support across SDKs#9
jcrosby merged 8 commits intomainfrom
file-list-metadata

Conversation

@jcrosby
Copy link
Contributor

@jcrosby jcrosby commented Feb 24, 2026

This adds list files metadata endpoint support across SDKs, along with some minor code cleanup.

@jcrosby jcrosby marked this pull request as ready for review February 24, 2026 22:57
@jcrosby jcrosby requested review from Copilot, fat and imownbey February 24, 2026 22:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 listFilesWithMetadata method to all three SDKs with consistent API signatures
  • Added ephemeral flag support to listFiles across 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.

@jcrosby jcrosby merged commit a494209 into main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants