-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Summary
Improve data directory resolution for development environments
Problem
The current data directory resolution logic is not flexible enough for development workflows. When running locally with cargo run, the binary is located in target/debug/ or target/release/, which makes the current ../ parent traversal logic unreliable.
Proposed Solution
- Add support for
PAYMENT_SKILL_DATA_DIRenvironment variable to allow explicit override - Improve detection between:
- Installed skill layout (
<skill-root>/scripts/<binary>) - Local cargo development (
target/{debug,release}/<binary>)
- Installed skill layout (
- Fall back to current working directory for local development
Affected Files
payment-common/src/lib.rs- Core directory resolution logicREADME.md- Documentation updatesCLAUDE.md- Project structure documentation
Acceptance Criteria
-
PAYMENT_SKILL_DATA_DIRenvironment variable is respected - Installed skill layout works as before
-
cargo runuses current working directory - All existing tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels