Skip to content

Support tilde (~) expansion in template paths #663

@mathiusj

Description

@mathiusj

Problem

Currently, the template() method in DSL workflows uses Pathname which does not automatically expand ~ for the user's home directory.

While this is a niche use case, supporting it would allow workflows to reference templates in a user's home directory, which could be useful for shared personal configuration or reusable prompt libraries.

Example

# Currently doesn't work:
chat { template("~/my_prompts/greeting.md.erb", name: "World") }

# Would need to use:
chat { template(File.expand_path("~/my_prompts/greeting.md.erb"), name: "World") }

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions