├── .envrc ├── .github └── workflows │ └── docs.yml ├── .gitignore ├── .irbrc ├── CHANGELOG.md ├── COMMITS.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── docs ├── .keep ├── advanced │ ├── custom-keywords.md │ ├── dynamic-directives.md │ ├── performance.md │ └── search-integration.md ├── api │ ├── configuration.md │ ├── directive-processor.md │ ├── prompt-class.md │ └── storage-adapters.md ├── assets │ ├── favicon.ico │ └── logo.svg ├── core-features │ ├── comments.md │ ├── directive-processing.md │ ├── erb-integration.md │ ├── error-handling.md │ ├── parameter-history.md │ ├── parameterized-prompts.md │ └── shell-integration.md ├── development │ ├── architecture.md │ ├── contributing.md │ ├── roadmap.md │ └── testing.md ├── examples.md ├── examples │ ├── advanced.md │ ├── basic.md │ └── real-world.md ├── getting-started │ ├── basic-concepts.md │ ├── installation.md │ └── quick-start.md ├── index.md ├── migration │ ├── v0.9.0.md │ └── v1.0.0.md └── storage │ ├── activerecord-adapter.md │ ├── custom-adapters.md │ ├── filesystem-adapter.md │ └── overview.md ├── examples ├── advanced_integrations.rb ├── directives.rb ├── prompts_dir │ ├── advanced_demo.txt │ ├── directive_example.json │ ├── directive_example.txt │ ├── todo.json │ ├── todo.txt │ └── toy │ │ └── 8-ball.txt ├── rgfzf ├── simple.rb └── using_search_proc.rb ├── improvement_plan.md ├── lib ├── prompt_manager.rb └── prompt_manager │ ├── directive_processor.rb │ ├── prompt.rb │ ├── storage.rb │ ├── storage │ ├── active_record_adapter.rb │ └── file_system_adapter.rb │ └── version.rb ├── mkdocs.yml ├── prompt_manager.gemspec ├── prompt_manager_logo.png └── test ├── prompt_manager ├── directive_processor_test.rb ├── prompt_test.rb ├── storage │ ├── active_record_adapter_test.rb │ ├── file_system_adapter_test.rb │ └── test_removed_keywords_bug.rb └── storage_test.rb ├── prompt_manager_test.rb ├── prompts_dir ├── also_included.txt ├── excluded.txt ├── hello_prompt.txt ├── included.txt ├── new_prompt.json ├── new_prompt.txt ├── test2_prompt.json ├── test2_prompt.txt ├── test_directives.txt ├── test_parameters.txt ├── test_parameters_and_directives.txt ├── test_prompt.json ├── test_prompt.txt ├── todo.json ├── todo.txt └── toy │ └── 8-ball.txt ├── test_helper.rb └── test_prompt_features.rb /.envrc: -------------------------------------------------------------------------------- 1 | # prompt_manager/.envrc 2 | 3 | export RR=`pwd` 4 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/.gitignore -------------------------------------------------------------------------------- /.irbrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/.irbrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /COMMITS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/COMMITS.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/Rakefile -------------------------------------------------------------------------------- /docs/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/advanced/custom-keywords.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/advanced/custom-keywords.md -------------------------------------------------------------------------------- /docs/advanced/dynamic-directives.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/advanced/dynamic-directives.md -------------------------------------------------------------------------------- /docs/advanced/performance.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/advanced/performance.md -------------------------------------------------------------------------------- /docs/advanced/search-integration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/advanced/search-integration.md -------------------------------------------------------------------------------- /docs/api/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/api/configuration.md -------------------------------------------------------------------------------- /docs/api/directive-processor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/api/directive-processor.md -------------------------------------------------------------------------------- /docs/api/prompt-class.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/api/prompt-class.md -------------------------------------------------------------------------------- /docs/api/storage-adapters.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/api/storage-adapters.md -------------------------------------------------------------------------------- /docs/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/assets/favicon.ico -------------------------------------------------------------------------------- /docs/assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/assets/logo.svg -------------------------------------------------------------------------------- /docs/core-features/comments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/comments.md -------------------------------------------------------------------------------- /docs/core-features/directive-processing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/directive-processing.md -------------------------------------------------------------------------------- /docs/core-features/erb-integration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/erb-integration.md -------------------------------------------------------------------------------- /docs/core-features/error-handling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/error-handling.md -------------------------------------------------------------------------------- /docs/core-features/parameter-history.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/parameter-history.md -------------------------------------------------------------------------------- /docs/core-features/parameterized-prompts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/parameterized-prompts.md -------------------------------------------------------------------------------- /docs/core-features/shell-integration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/core-features/shell-integration.md -------------------------------------------------------------------------------- /docs/development/architecture.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/development/architecture.md -------------------------------------------------------------------------------- /docs/development/contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/development/contributing.md -------------------------------------------------------------------------------- /docs/development/roadmap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/development/roadmap.md -------------------------------------------------------------------------------- /docs/development/testing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/development/testing.md -------------------------------------------------------------------------------- /docs/examples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/examples.md -------------------------------------------------------------------------------- /docs/examples/advanced.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/examples/advanced.md -------------------------------------------------------------------------------- /docs/examples/basic.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/examples/basic.md -------------------------------------------------------------------------------- /docs/examples/real-world.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/examples/real-world.md -------------------------------------------------------------------------------- /docs/getting-started/basic-concepts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/getting-started/basic-concepts.md -------------------------------------------------------------------------------- /docs/getting-started/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/getting-started/installation.md -------------------------------------------------------------------------------- /docs/getting-started/quick-start.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/getting-started/quick-start.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/migration/v0.9.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/migration/v0.9.0.md -------------------------------------------------------------------------------- /docs/migration/v1.0.0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/migration/v1.0.0.md -------------------------------------------------------------------------------- /docs/storage/activerecord-adapter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/storage/activerecord-adapter.md -------------------------------------------------------------------------------- /docs/storage/custom-adapters.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/storage/custom-adapters.md -------------------------------------------------------------------------------- /docs/storage/filesystem-adapter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/storage/filesystem-adapter.md -------------------------------------------------------------------------------- /docs/storage/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/docs/storage/overview.md -------------------------------------------------------------------------------- /examples/advanced_integrations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/advanced_integrations.rb -------------------------------------------------------------------------------- /examples/directives.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/directives.rb -------------------------------------------------------------------------------- /examples/prompts_dir/advanced_demo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/prompts_dir/advanced_demo.txt -------------------------------------------------------------------------------- /examples/prompts_dir/directive_example.json: -------------------------------------------------------------------------------- 1 | {"{language}":"French"} -------------------------------------------------------------------------------- /examples/prompts_dir/directive_example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/prompts_dir/directive_example.txt -------------------------------------------------------------------------------- /examples/prompts_dir/todo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/prompts_dir/todo.json -------------------------------------------------------------------------------- /examples/prompts_dir/todo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/prompts_dir/todo.txt -------------------------------------------------------------------------------- /examples/prompts_dir/toy/8-ball.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/prompts_dir/toy/8-ball.txt -------------------------------------------------------------------------------- /examples/rgfzf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/rgfzf -------------------------------------------------------------------------------- /examples/simple.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/simple.rb -------------------------------------------------------------------------------- /examples/using_search_proc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/examples/using_search_proc.rb -------------------------------------------------------------------------------- /improvement_plan.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/improvement_plan.md -------------------------------------------------------------------------------- /lib/prompt_manager.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager.rb -------------------------------------------------------------------------------- /lib/prompt_manager/directive_processor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager/directive_processor.rb -------------------------------------------------------------------------------- /lib/prompt_manager/prompt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager/prompt.rb -------------------------------------------------------------------------------- /lib/prompt_manager/storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager/storage.rb -------------------------------------------------------------------------------- /lib/prompt_manager/storage/active_record_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager/storage/active_record_adapter.rb -------------------------------------------------------------------------------- /lib/prompt_manager/storage/file_system_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/lib/prompt_manager/storage/file_system_adapter.rb -------------------------------------------------------------------------------- /lib/prompt_manager/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module PromptManager 4 | VERSION = "0.5.8" 5 | end 6 | -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /prompt_manager.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/prompt_manager.gemspec -------------------------------------------------------------------------------- /prompt_manager_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/prompt_manager_logo.png -------------------------------------------------------------------------------- /test/prompt_manager/directive_processor_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/directive_processor_test.rb -------------------------------------------------------------------------------- /test/prompt_manager/prompt_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/prompt_test.rb -------------------------------------------------------------------------------- /test/prompt_manager/storage/active_record_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/storage/active_record_adapter_test.rb -------------------------------------------------------------------------------- /test/prompt_manager/storage/file_system_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/storage/file_system_adapter_test.rb -------------------------------------------------------------------------------- /test/prompt_manager/storage/test_removed_keywords_bug.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/storage/test_removed_keywords_bug.rb -------------------------------------------------------------------------------- /test/prompt_manager/storage_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager/storage_test.rb -------------------------------------------------------------------------------- /test/prompt_manager_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompt_manager_test.rb -------------------------------------------------------------------------------- /test/prompts_dir/also_included.txt: -------------------------------------------------------------------------------- 1 | Hello Dolly! 2 | Well HELLO Freddy -------------------------------------------------------------------------------- /test/prompts_dir/excluded.txt: -------------------------------------------------------------------------------- 1 | this does not -------------------------------------------------------------------------------- /test/prompts_dir/hello_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/hello_prompt.txt -------------------------------------------------------------------------------- /test/prompts_dir/included.txt: -------------------------------------------------------------------------------- 1 | this contains hello -------------------------------------------------------------------------------- /test/prompts_dir/new_prompt.json: -------------------------------------------------------------------------------- 1 | {"name":"Rubyist"} -------------------------------------------------------------------------------- /test/prompts_dir/new_prompt.txt: -------------------------------------------------------------------------------- 1 | How are you, [NAME]? -------------------------------------------------------------------------------- /test/prompts_dir/test2_prompt.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test/prompts_dir/test2_prompt.txt: -------------------------------------------------------------------------------- 1 | Hello, how are you? -------------------------------------------------------------------------------- /test/prompts_dir/test_directives.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/test_directives.txt -------------------------------------------------------------------------------- /test/prompts_dir/test_parameters.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/test_parameters.txt -------------------------------------------------------------------------------- /test/prompts_dir/test_parameters_and_directives.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/test_parameters_and_directives.txt -------------------------------------------------------------------------------- /test/prompts_dir/test_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/test_prompt.json -------------------------------------------------------------------------------- /test/prompts_dir/test_prompt.txt: -------------------------------------------------------------------------------- 1 | This is a prompt with [SIZE] and [COLOR]. -------------------------------------------------------------------------------- /test/prompts_dir/todo.json: -------------------------------------------------------------------------------- 1 | {"[LANGUAGE]":"ruby"} -------------------------------------------------------------------------------- /test/prompts_dir/todo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/todo.txt -------------------------------------------------------------------------------- /test/prompts_dir/toy/8-ball.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/prompts_dir/toy/8-ball.txt -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/test_prompt_features.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MadBomber/prompt_manager/HEAD/test/test_prompt_features.rb --------------------------------------------------------------------------------