pflow-cli 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pflow_cli-0.8.0/.gitignore +190 -0
- pflow_cli-0.8.0/CHANGELOG.md +29 -0
- pflow_cli-0.8.0/LICENSE +70 -0
- pflow_cli-0.8.0/NOTICE +45 -0
- pflow_cli-0.8.0/PKG-INFO +315 -0
- pflow_cli-0.8.0/README.md +207 -0
- pflow_cli-0.8.0/pyproject.toml +189 -0
- pflow_cli-0.8.0/src/pflow/__init__.py +0 -0
- pflow_cli-0.8.0/src/pflow/cli/__init__.py +13 -0
- pflow_cli-0.8.0/src/pflow/cli/cli_output.py +72 -0
- pflow_cli-0.8.0/src/pflow/cli/commands/settings.py +603 -0
- pflow_cli-0.8.0/src/pflow/cli/commands/workflow.py +448 -0
- pflow_cli-0.8.0/src/pflow/cli/discovery_errors.py +67 -0
- pflow_cli-0.8.0/src/pflow/cli/instructions.py +186 -0
- pflow_cli-0.8.0/src/pflow/cli/logging_config.py +57 -0
- pflow_cli-0.8.0/src/pflow/cli/main.py +3994 -0
- pflow_cli-0.8.0/src/pflow/cli/main_wrapper.py +118 -0
- pflow_cli-0.8.0/src/pflow/cli/mcp.py +681 -0
- pflow_cli-0.8.0/src/pflow/cli/read_fields.py +81 -0
- pflow_cli-0.8.0/src/pflow/cli/registry.py +850 -0
- pflow_cli-0.8.0/src/pflow/cli/registry_run.py +395 -0
- pflow_cli-0.8.0/src/pflow/cli/repair_save_handlers.py +174 -0
- pflow_cli-0.8.0/src/pflow/cli/rerun_display.py +151 -0
- pflow_cli-0.8.0/src/pflow/cli/resources/cli-agent-instructions.md +1935 -0
- pflow_cli-0.8.0/src/pflow/cli/resources/cli-basic-usage.md +167 -0
- pflow_cli-0.8.0/src/pflow/cli/skills.py +297 -0
- pflow_cli-0.8.0/src/pflow/core/__init__.py +42 -0
- pflow_cli-0.8.0/src/pflow/core/exceptions.py +46 -0
- pflow_cli-0.8.0/src/pflow/core/execution_cache.py +193 -0
- pflow_cli-0.8.0/src/pflow/core/ir_schema.py +630 -0
- pflow_cli-0.8.0/src/pflow/core/json_utils.py +109 -0
- pflow_cli-0.8.0/src/pflow/core/llm_config.py +465 -0
- pflow_cli-0.8.0/src/pflow/core/llm_pricing.py +219 -0
- pflow_cli-0.8.0/src/pflow/core/markdown_parser.py +801 -0
- pflow_cli-0.8.0/src/pflow/core/metrics.py +324 -0
- pflow_cli-0.8.0/src/pflow/core/output_controller.py +286 -0
- pflow_cli-0.8.0/src/pflow/core/param_coercion.py +294 -0
- pflow_cli-0.8.0/src/pflow/core/security_utils.py +75 -0
- pflow_cli-0.8.0/src/pflow/core/settings.py +478 -0
- pflow_cli-0.8.0/src/pflow/core/shell_integration.py +348 -0
- pflow_cli-0.8.0/src/pflow/core/skill_service.py +428 -0
- pflow_cli-0.8.0/src/pflow/core/smart_filter.py +355 -0
- pflow_cli-0.8.0/src/pflow/core/suggestion_utils.py +134 -0
- pflow_cli-0.8.0/src/pflow/core/user_errors.py +121 -0
- pflow_cli-0.8.0/src/pflow/core/validation_utils.py +122 -0
- pflow_cli-0.8.0/src/pflow/core/workflow_data_flow.py +227 -0
- pflow_cli-0.8.0/src/pflow/core/workflow_manager.py +501 -0
- pflow_cli-0.8.0/src/pflow/core/workflow_save_service.py +420 -0
- pflow_cli-0.8.0/src/pflow/core/workflow_status.py +21 -0
- pflow_cli-0.8.0/src/pflow/core/workflow_validator.py +504 -0
- pflow_cli-0.8.0/src/pflow/execution/__init__.py +12 -0
- pflow_cli-0.8.0/src/pflow/execution/display_manager.py +112 -0
- pflow_cli-0.8.0/src/pflow/execution/execution_state.py +168 -0
- pflow_cli-0.8.0/src/pflow/execution/executor_service.py +790 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/__init__.py +8 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/discovery_formatter.py +230 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/error_formatter.py +119 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/field_output_formatter.py +47 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/history_formatter.py +349 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/node_output_formatter.py +943 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/registry_list_formatter.py +156 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/registry_run_formatter.py +132 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/registry_search_formatter.py +112 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/success_formatter.py +437 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/validation_formatter.py +104 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/workflow_describe_formatter.py +178 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/workflow_list_formatter.py +77 -0
- pflow_cli-0.8.0/src/pflow/execution/formatters/workflow_save_formatter.py +222 -0
- pflow_cli-0.8.0/src/pflow/execution/null_output.py +37 -0
- pflow_cli-0.8.0/src/pflow/execution/output_interface.py +71 -0
- pflow_cli-0.8.0/src/pflow/execution/repair_service.py +771 -0
- pflow_cli-0.8.0/src/pflow/execution/workflow_diff.py +104 -0
- pflow_cli-0.8.0/src/pflow/execution/workflow_execution.py +641 -0
- pflow_cli-0.8.0/src/pflow/mcp/__init__.py +7 -0
- pflow_cli-0.8.0/src/pflow/mcp/auth_utils.py +274 -0
- pflow_cli-0.8.0/src/pflow/mcp/discovery.py +357 -0
- pflow_cli-0.8.0/src/pflow/mcp/manager.py +718 -0
- pflow_cli-0.8.0/src/pflow/mcp/registrar.py +311 -0
- pflow_cli-0.8.0/src/pflow/mcp/types.py +95 -0
- pflow_cli-0.8.0/src/pflow/mcp/utils.py +99 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/__init__.py +9 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/main.py +131 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/resources/__init__.py +9 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/resources/instruction_resources.py +340 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/resources/instructions/mcp-agent-instructions.md +1972 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/resources/instructions/mcp-sandbox-agent-instructions.md +1971 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/server.py +72 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/__init__.py +21 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/base_service.py +76 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/discovery_service.py +137 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/execution_service.py +688 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/field_service.py +90 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/registry_service.py +114 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/settings_service.py +136 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/services/workflow_service.py +113 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/__init__.py +28 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/discovery_tools.py +115 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/execution_tools.py +331 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/registry_tools.py +131 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/settings_tools.py +173 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/test_tools.py +146 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/tools/workflow_tools.py +120 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/utils/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/utils/errors.py +63 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/utils/resolver.py +149 -0
- pflow_cli-0.8.0/src/pflow/mcp_server/utils/validation.py +135 -0
- pflow_cli-0.8.0/src/pflow/nodes/__init__.py +1 -0
- pflow_cli-0.8.0/src/pflow/nodes/claude/AUTHENTICATION.md +195 -0
- pflow_cli-0.8.0/src/pflow/nodes/claude/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/claude/claude_code.py +1034 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/__init__.py +17 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/copy_file.py +224 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/delete_file.py +169 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/exceptions.py +11 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/move_file.py +237 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/read_file.py +223 -0
- pflow_cli-0.8.0/src/pflow/nodes/file/write_file.py +309 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/__init__.py +15 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/checkout.py +488 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/commit.py +208 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/get_latest_tag.py +203 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/log.py +288 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/push.py +205 -0
- pflow_cli-0.8.0/src/pflow/nodes/git/status.py +232 -0
- pflow_cli-0.8.0/src/pflow/nodes/github/__init__.py +13 -0
- pflow_cli-0.8.0/src/pflow/nodes/github/create_pr.py +209 -0
- pflow_cli-0.8.0/src/pflow/nodes/github/get_issue.py +155 -0
- pflow_cli-0.8.0/src/pflow/nodes/github/list_issues.py +275 -0
- pflow_cli-0.8.0/src/pflow/nodes/github/list_prs.py +165 -0
- pflow_cli-0.8.0/src/pflow/nodes/http/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/http/http.py +213 -0
- pflow_cli-0.8.0/src/pflow/nodes/llm/README.md +164 -0
- pflow_cli-0.8.0/src/pflow/nodes/llm/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/llm/llm.py +259 -0
- pflow_cli-0.8.0/src/pflow/nodes/mcp/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/mcp/node.py +828 -0
- pflow_cli-0.8.0/src/pflow/nodes/python/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/python/python_code.py +439 -0
- pflow_cli-0.8.0/src/pflow/nodes/shell/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/shell/shell.py +736 -0
- pflow_cli-0.8.0/src/pflow/nodes/test/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/nodes/test/echo.py +120 -0
- pflow_cli-0.8.0/src/pflow/nodes/test_node.py +62 -0
- pflow_cli-0.8.0/src/pflow/nodes/test_node_retry.py +53 -0
- pflow_cli-0.8.0/src/pflow/nodes/test_node_structured.py +56 -0
- pflow_cli-0.8.0/src/pflow/planning/__init__.py +34 -0
- pflow_cli-0.8.0/src/pflow/planning/context_blocks.py +458 -0
- pflow_cli-0.8.0/src/pflow/planning/context_builder.py +1391 -0
- pflow_cli-0.8.0/src/pflow/planning/debug.py +790 -0
- pflow_cli-0.8.0/src/pflow/planning/error_handler.py +323 -0
- pflow_cli-0.8.0/src/pflow/planning/flow.py +284 -0
- pflow_cli-0.8.0/src/pflow/planning/ir_models.py +119 -0
- pflow_cli-0.8.0/src/pflow/planning/nodes.py +3378 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/README.md +249 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/archive/README.md +24 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/archive/workflow_generator.md +270 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/component_browsing.md +141 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/discovery.md +134 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/loader.py +99 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/metadata_generation.md +83 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/parameter_discovery.md +135 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/parameter_mapping.md +134 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/planning_instructions.md +85 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/requirements_analysis.md +99 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/sections/iteration_handling.md +58 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/workflow_generator_instructions.md +69 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/workflow_generator_retry.md +66 -0
- pflow_cli-0.8.0/src/pflow/planning/prompts/workflow_system_overview.md +292 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/__init__.py +1 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/anthropic_llm_model.py +299 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/anthropic_structured_client.py +423 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/llm_helpers.py +113 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/prompt_cache_helper.py +66 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/registry_helper.py +52 -0
- pflow_cli-0.8.0/src/pflow/planning/utils/workflow_loader.py +35 -0
- pflow_cli-0.8.0/src/pflow/pocketflow/LICENSE +21 -0
- pflow_cli-0.8.0/src/pflow/pocketflow/PFLOW_MODIFICATIONS.md +67 -0
- pflow_cli-0.8.0/src/pflow/pocketflow/__init__.py +204 -0
- pflow_cli-0.8.0/src/pflow/registry/__init__.py +6 -0
- pflow_cli-0.8.0/src/pflow/registry/metadata_extractor.py +606 -0
- pflow_cli-0.8.0/src/pflow/registry/registry.py +476 -0
- pflow_cli-0.8.0/src/pflow/registry/scanner.py +263 -0
- pflow_cli-0.8.0/src/pflow/runtime/__init__.py +5 -0
- pflow_cli-0.8.0/src/pflow/runtime/batch_node.py +849 -0
- pflow_cli-0.8.0/src/pflow/runtime/compiler.py +1281 -0
- pflow_cli-0.8.0/src/pflow/runtime/error_context.py +92 -0
- pflow_cli-0.8.0/src/pflow/runtime/instrumented_wrapper.py +1218 -0
- pflow_cli-0.8.0/src/pflow/runtime/namespaced_store.py +183 -0
- pflow_cli-0.8.0/src/pflow/runtime/namespaced_wrapper.py +94 -0
- pflow_cli-0.8.0/src/pflow/runtime/node_wrapper.py +1006 -0
- pflow_cli-0.8.0/src/pflow/runtime/output_resolver.py +72 -0
- pflow_cli-0.8.0/src/pflow/runtime/template_resolver.py +650 -0
- pflow_cli-0.8.0/src/pflow/runtime/template_validator.py +1787 -0
- pflow_cli-0.8.0/src/pflow/runtime/type_checker.py +257 -0
- pflow_cli-0.8.0/src/pflow/runtime/workflow_executor.py +335 -0
- pflow_cli-0.8.0/src/pflow/runtime/workflow_trace.py +609 -0
- pflow_cli-0.8.0/src/pflow/runtime/workflow_validator.py +286 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
docs/source
|
|
2
|
+
|
|
3
|
+
# Trace analysis output
|
|
4
|
+
scripts/analyze-trace/output/
|
|
5
|
+
|
|
6
|
+
# From https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
|
|
7
|
+
|
|
8
|
+
# Byte-compiled / optimized / DLL files
|
|
9
|
+
__pycache__/
|
|
10
|
+
*.py[cod]
|
|
11
|
+
*$py.class
|
|
12
|
+
|
|
13
|
+
# C extensions
|
|
14
|
+
*.so
|
|
15
|
+
|
|
16
|
+
# Distribution / packaging
|
|
17
|
+
.Python
|
|
18
|
+
build/
|
|
19
|
+
develop-eggs/
|
|
20
|
+
dist/
|
|
21
|
+
downloads/
|
|
22
|
+
eggs/
|
|
23
|
+
.eggs/
|
|
24
|
+
lib/
|
|
25
|
+
lib64/
|
|
26
|
+
parts/
|
|
27
|
+
sdist/
|
|
28
|
+
var/
|
|
29
|
+
wheels/
|
|
30
|
+
share/python-wheels/
|
|
31
|
+
*.egg-info/
|
|
32
|
+
.installed.cfg
|
|
33
|
+
*.egg
|
|
34
|
+
MANIFEST
|
|
35
|
+
|
|
36
|
+
# PyInstaller
|
|
37
|
+
# Usually these files are written by a python script from a template
|
|
38
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
39
|
+
*.manifest
|
|
40
|
+
*.spec
|
|
41
|
+
|
|
42
|
+
# Installer logs
|
|
43
|
+
pip-log.txt
|
|
44
|
+
pip-delete-this-directory.txt
|
|
45
|
+
|
|
46
|
+
# Unit test / coverage reports
|
|
47
|
+
htmlcov/
|
|
48
|
+
.tox/
|
|
49
|
+
.nox/
|
|
50
|
+
.coverage
|
|
51
|
+
.coverage.*
|
|
52
|
+
.cache
|
|
53
|
+
nosetests.xml
|
|
54
|
+
coverage.xml
|
|
55
|
+
*.cover
|
|
56
|
+
*.py,cover
|
|
57
|
+
.hypothesis/
|
|
58
|
+
.pytest_cache/
|
|
59
|
+
cover/
|
|
60
|
+
|
|
61
|
+
# Translations
|
|
62
|
+
*.mo
|
|
63
|
+
*.pot
|
|
64
|
+
|
|
65
|
+
# Django stuff:
|
|
66
|
+
*.log
|
|
67
|
+
local_settings.py
|
|
68
|
+
db.sqlite3
|
|
69
|
+
db.sqlite3-journal
|
|
70
|
+
|
|
71
|
+
# Flask stuff:
|
|
72
|
+
instance/
|
|
73
|
+
.webassets-cache
|
|
74
|
+
|
|
75
|
+
# Scrapy stuff:
|
|
76
|
+
.scrapy
|
|
77
|
+
|
|
78
|
+
# Sphinx documentation
|
|
79
|
+
docs/_build/
|
|
80
|
+
|
|
81
|
+
# PyBuilder
|
|
82
|
+
.pybuilder/
|
|
83
|
+
target/
|
|
84
|
+
|
|
85
|
+
# Jupyter Notebook
|
|
86
|
+
.ipynb_checkpoints
|
|
87
|
+
|
|
88
|
+
# IPython
|
|
89
|
+
profile_default/
|
|
90
|
+
ipython_config.py
|
|
91
|
+
|
|
92
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
93
|
+
__pypackages__/
|
|
94
|
+
|
|
95
|
+
# Celery stuff
|
|
96
|
+
celerybeat-schedule
|
|
97
|
+
celerybeat.pid
|
|
98
|
+
|
|
99
|
+
# SageMath parsed files
|
|
100
|
+
*.sage.py
|
|
101
|
+
|
|
102
|
+
# Environments
|
|
103
|
+
.env
|
|
104
|
+
.venv
|
|
105
|
+
env/
|
|
106
|
+
venv/
|
|
107
|
+
ENV/
|
|
108
|
+
env.bak/
|
|
109
|
+
venv.bak/
|
|
110
|
+
|
|
111
|
+
# Spyder project settings
|
|
112
|
+
.spyderproject
|
|
113
|
+
.spyproject
|
|
114
|
+
|
|
115
|
+
# Rope project settings
|
|
116
|
+
.ropeproject
|
|
117
|
+
|
|
118
|
+
# mkdocs documentation
|
|
119
|
+
/site
|
|
120
|
+
|
|
121
|
+
# mypy
|
|
122
|
+
.mypy_cache/
|
|
123
|
+
.dmypy.json
|
|
124
|
+
dmypy.json
|
|
125
|
+
|
|
126
|
+
# Pyre type checker
|
|
127
|
+
.pyre/
|
|
128
|
+
|
|
129
|
+
# pytype static type analyzer
|
|
130
|
+
.pytype/
|
|
131
|
+
|
|
132
|
+
# Cython debug symbols
|
|
133
|
+
cython_debug/
|
|
134
|
+
|
|
135
|
+
# Vscode config files
|
|
136
|
+
.vscode/
|
|
137
|
+
|
|
138
|
+
# Intellij IDEA
|
|
139
|
+
.idea/
|
|
140
|
+
|
|
141
|
+
# Cursor IDE config with API keys (keep rules, ignore sensitive config)
|
|
142
|
+
.cursor/mcp.json
|
|
143
|
+
|
|
144
|
+
.temp/
|
|
145
|
+
.archive/
|
|
146
|
+
|
|
147
|
+
# Added by Task Master AI
|
|
148
|
+
# Logs
|
|
149
|
+
logs
|
|
150
|
+
npm-debug.log*
|
|
151
|
+
yarn-debug.log*
|
|
152
|
+
yarn-error.log*
|
|
153
|
+
dev-debug.log
|
|
154
|
+
# Dependency directories
|
|
155
|
+
node_modules/
|
|
156
|
+
# Environment variables
|
|
157
|
+
# Editor directories and files
|
|
158
|
+
.idea
|
|
159
|
+
.vscode
|
|
160
|
+
*.suo
|
|
161
|
+
*.ntvs*
|
|
162
|
+
*.njsproj
|
|
163
|
+
*.sln
|
|
164
|
+
*.sw?
|
|
165
|
+
# OS specific
|
|
166
|
+
.DS_Store
|
|
167
|
+
|
|
168
|
+
# Task files ?
|
|
169
|
+
# .taskmaster/
|
|
170
|
+
# tasks.json
|
|
171
|
+
# tasks/
|
|
172
|
+
|
|
173
|
+
# Scratchpads
|
|
174
|
+
# scratchpads/
|
|
175
|
+
|
|
176
|
+
# Claude data and logs
|
|
177
|
+
.claude/data/
|
|
178
|
+
|
|
179
|
+
# MCP servers
|
|
180
|
+
.mcp-servers/
|
|
181
|
+
|
|
182
|
+
# External docs
|
|
183
|
+
.research-and-marketing/
|
|
184
|
+
|
|
185
|
+
# User data directory (workflows, settings, traces)
|
|
186
|
+
.pflow/
|
|
187
|
+
|
|
188
|
+
# Demo recordings
|
|
189
|
+
assets/demo.cast
|
|
190
|
+
assets/README.md
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.8.0 (2026-02-10)
|
|
4
|
+
|
|
5
|
+
First public release on PyPI. Install with `uv tool install pflow-cli` or `pipx install pflow-cli`.
|
|
6
|
+
|
|
7
|
+
- Changed PyPI package name to `pflow-cli` (`pflow` was already taken on PyPI).
|
|
8
|
+
- Changed LLM node output to always return raw strings, preventing silent data loss when prose contains JSON code blocks. JSON fields remain accessible via dot notation (`${node.response.field}`).
|
|
9
|
+
- Added `pflow skill` command group to publish workflows as AI agent skills for Claude Code, Cursor, Codex, and Copilot [#81](https://github.com/spinje/pflow/pull/81) ([Task 119](.taskmaster/tasks/task_119/task-review.md))
|
|
10
|
+
- Added `pflow workflow history` command to view execution logs and previous inputs [#81](https://github.com/spinje/pflow/pull/81)
|
|
11
|
+
- Added execution duration tracking (last run and running average) to workflow metadata.
|
|
12
|
+
- Fixed CLI parameter parsing to respect declared input types, preventing numeric strings (e.g., Discord IDs) from being coerced to integers [#84](https://github.com/spinje/pflow/pull/84)
|
|
13
|
+
- Fixed contradictory validation error messages when accessing outputs from batch processing nodes [#86](https://github.com/spinje/pflow/pull/86)
|
|
14
|
+
- Fixed environment variable expansion in MCP server configurations to correctly resolve `${VAR}` in URLs and `settings.json` references.
|
|
15
|
+
- Fixed code node runtime errors to display workflow file line numbers instead of code-block relative lines.
|
|
16
|
+
- Improved workflow discovery matching accuracy by including node IDs and input names in the LLM context.
|
|
17
|
+
- Improved markdown parser error messages to identify nested backticks as the likely cause of untagged code blocks.
|
|
18
|
+
|
|
19
|
+
## v0.7.0 (2026-02-04)
|
|
20
|
+
|
|
21
|
+
- Removed `--description` and `--generate-metadata` flags from `workflow save` command [#80](https://github.com/spinje/pflow/pull/80)
|
|
22
|
+
- Removed legacy `${stdin}` shared store pattern in favor of explicit input routing [#73](https://github.com/spinje/pflow/pull/73)
|
|
23
|
+
- Replaced JSON workflow format with a new Markdown-based format (`.pflow.md`) that treats workflows as executable documentation [#80](https://github.com/spinje/pflow/pull/80) ([Task 107](.taskmaster/tasks/task_107/task-review.md))
|
|
24
|
+
- Added Python code node (`"type": "code"`) for in-process data transformation with native object inputs and AST-based type validation [#75](https://github.com/spinje/pflow/pull/75) ([Task 104](.taskmaster/tasks/task_104/task-review.md))
|
|
25
|
+
- Added automatic stdin routing via `"stdin": true` input property to support Unix-style workflow chaining [#73](https://github.com/spinje/pflow/pull/73) ([Task 115](.taskmaster/tasks/task_115/task-review.md))
|
|
26
|
+
- Added `disallowed_tools` parameter to `claude-code` node to block specific tools via allowlist patterns [#78](https://github.com/spinje/pflow/pull/78)
|
|
27
|
+
- Fixed pre-execution validation logic to ensure `--validate-only` catches unknown node types without tracebacks [#67](https://github.com/spinje/pflow/pull/67)
|
|
28
|
+
- Fixed template validation error when using nested dot-notation variables inside array brackets
|
|
29
|
+
- Improved validation to detect and reject JSON strings containing embedded template variables [#69](https://github.com/spinje/pflow/pull/69)
|
pflow_cli-0.8.0/LICENSE
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Andreas Falcone
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
|
|
20
|
+
|
|
21
|
+
### License Grant
|
|
22
|
+
|
|
23
|
+
Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
|
|
24
|
+
|
|
25
|
+
### Permitted Purpose
|
|
26
|
+
|
|
27
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
|
|
28
|
+
|
|
29
|
+
1. substitutes for the Software;
|
|
30
|
+
2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
|
|
31
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
32
|
+
|
|
33
|
+
Permitted Purposes specifically include using the Software:
|
|
34
|
+
|
|
35
|
+
1. for your internal use and access;
|
|
36
|
+
2. for non-commercial education;
|
|
37
|
+
3. for non-commercial research; and
|
|
38
|
+
4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
|
|
39
|
+
|
|
40
|
+
### Patents
|
|
41
|
+
|
|
42
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
|
|
43
|
+
|
|
44
|
+
### Redistribution
|
|
45
|
+
|
|
46
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
|
|
47
|
+
|
|
48
|
+
If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
|
|
49
|
+
|
|
50
|
+
### Disclaimer
|
|
51
|
+
|
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
53
|
+
|
|
54
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
55
|
+
|
|
56
|
+
### Trademarks
|
|
57
|
+
|
|
58
|
+
Except for displaying the License Details and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
|
|
59
|
+
|
|
60
|
+
## Grant of Future License
|
|
61
|
+
|
|
62
|
+
We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:
|
|
63
|
+
|
|
64
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
65
|
+
|
|
66
|
+
You may obtain a copy of the License at
|
|
67
|
+
|
|
68
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
69
|
+
|
|
70
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
pflow_cli-0.8.0/NOTICE
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
pflow includes the following third-party software:
|
|
2
|
+
|
|
3
|
+
llm (https://github.com/simonw/llm)
|
|
4
|
+
Copyright (c) Simon Willison
|
|
5
|
+
Licensed under Apache License 2.0
|
|
6
|
+
|
|
7
|
+
llm-anthropic (https://github.com/simonw/llm-anthropic)
|
|
8
|
+
Copyright (c) Simon Willison
|
|
9
|
+
Licensed under Apache License 2.0
|
|
10
|
+
|
|
11
|
+
anthropic (https://github.com/anthropics/anthropic-sdk-python)
|
|
12
|
+
Copyright (c) Anthropic, PBC
|
|
13
|
+
Licensed under MIT License
|
|
14
|
+
|
|
15
|
+
click (https://github.com/pallets/click)
|
|
16
|
+
Copyright (c) Pallets
|
|
17
|
+
Licensed under BSD-3-Clause
|
|
18
|
+
|
|
19
|
+
pydantic (https://github.com/pydantic/pydantic)
|
|
20
|
+
Copyright (c) Samuel Colvin
|
|
21
|
+
Licensed under MIT License
|
|
22
|
+
|
|
23
|
+
jsonschema (https://github.com/python-jsonschema/jsonschema)
|
|
24
|
+
Copyright (c) Julian Berman
|
|
25
|
+
Licensed under MIT License
|
|
26
|
+
|
|
27
|
+
mcp (https://github.com/modelcontextprotocol/python-sdk)
|
|
28
|
+
Copyright (c) Anthropic, PBC
|
|
29
|
+
Licensed under MIT License
|
|
30
|
+
|
|
31
|
+
requests (https://github.com/psf/requests)
|
|
32
|
+
Copyright (c) Kenneth Reitz
|
|
33
|
+
Licensed under Apache License 2.0
|
|
34
|
+
|
|
35
|
+
claude-agent-sdk (https://github.com/anthropics/claude-agent-sdk-python)
|
|
36
|
+
Copyright (c) Anthropic, PBC
|
|
37
|
+
Licensed under MIT License
|
|
38
|
+
|
|
39
|
+
PocketFlow (https://github.com/The-Pocket/PocketFlow) - EMBEDDED COMPONENT
|
|
40
|
+
Copyright (c) 2024 Zachary Huang
|
|
41
|
+
Licensed under MIT License
|
|
42
|
+
Embedded in this distribution under src/pflow/pocketflow/
|
|
43
|
+
See src/pflow/pocketflow/LICENSE for full license text.
|
|
44
|
+
|
|
45
|
+
For full license texts, see the respective project repositories.
|
pflow_cli-0.8.0/PKG-INFO
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pflow-cli
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Reusable CLI workflows from shell, LLM, HTTP, and MCP nodes
|
|
5
|
+
Project-URL: Homepage, https://pflow.run
|
|
6
|
+
Project-URL: Repository, https://github.com/spinje/pflow
|
|
7
|
+
Project-URL: Documentation, https://docs.pflow.run
|
|
8
|
+
Author-email: Andreas Falcone <andreas@pflow.run>
|
|
9
|
+
License: # Functional Source License, Version 1.1, ALv2 Future License
|
|
10
|
+
|
|
11
|
+
## Abbreviation
|
|
12
|
+
|
|
13
|
+
FSL-1.1-ALv2
|
|
14
|
+
|
|
15
|
+
## Notice
|
|
16
|
+
|
|
17
|
+
Copyright 2026 Andreas Falcone
|
|
18
|
+
|
|
19
|
+
## Terms and Conditions
|
|
20
|
+
|
|
21
|
+
### Licensor ("We")
|
|
22
|
+
|
|
23
|
+
The party offering the Software under these Terms and Conditions.
|
|
24
|
+
|
|
25
|
+
### The Software
|
|
26
|
+
|
|
27
|
+
The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
|
|
28
|
+
|
|
29
|
+
### License Grant
|
|
30
|
+
|
|
31
|
+
Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
|
|
32
|
+
|
|
33
|
+
### Permitted Purpose
|
|
34
|
+
|
|
35
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
|
|
36
|
+
|
|
37
|
+
1. substitutes for the Software;
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
|
|
39
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
40
|
+
|
|
41
|
+
Permitted Purposes specifically include using the Software:
|
|
42
|
+
|
|
43
|
+
1. for your internal use and access;
|
|
44
|
+
2. for non-commercial education;
|
|
45
|
+
3. for non-commercial research; and
|
|
46
|
+
4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
|
|
47
|
+
|
|
48
|
+
### Patents
|
|
49
|
+
|
|
50
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
|
|
51
|
+
|
|
52
|
+
### Redistribution
|
|
53
|
+
|
|
54
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
|
|
55
|
+
|
|
56
|
+
If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
|
|
57
|
+
|
|
58
|
+
### Disclaimer
|
|
59
|
+
|
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
61
|
+
|
|
62
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
63
|
+
|
|
64
|
+
### Trademarks
|
|
65
|
+
|
|
66
|
+
Except for displaying the License Details and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
|
|
67
|
+
|
|
68
|
+
## Grant of Future License
|
|
69
|
+
|
|
70
|
+
We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:
|
|
71
|
+
|
|
72
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
73
|
+
|
|
74
|
+
You may obtain a copy of the License at
|
|
75
|
+
|
|
76
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
77
|
+
|
|
78
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
79
|
+
License-File: LICENSE
|
|
80
|
+
License-File: NOTICE
|
|
81
|
+
Keywords: agent-skill,ai-agent,automation,cli,llm,mcp,workflow
|
|
82
|
+
Classifier: Environment :: Console
|
|
83
|
+
Classifier: Intended Audience :: Developers
|
|
84
|
+
Classifier: Operating System :: MacOS
|
|
85
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
86
|
+
Classifier: Programming Language :: Python
|
|
87
|
+
Classifier: Programming Language :: Python :: 3
|
|
88
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
89
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
90
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
91
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
92
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
93
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
94
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
95
|
+
Requires-Python: <4.0,>=3.10
|
|
96
|
+
Requires-Dist: anthropic>=0.75
|
|
97
|
+
Requires-Dist: claude-agent-sdk>=0.1.17
|
|
98
|
+
Requires-Dist: click
|
|
99
|
+
Requires-Dist: jsonschema>=4.20.0
|
|
100
|
+
Requires-Dist: llm-anthropic==0.23
|
|
101
|
+
Requires-Dist: llm-gemini>=0.28.1
|
|
102
|
+
Requires-Dist: llm>=0.28
|
|
103
|
+
Requires-Dist: mcp[cli]>=1.17.0
|
|
104
|
+
Requires-Dist: pydantic
|
|
105
|
+
Requires-Dist: pyyaml>=6.0.0
|
|
106
|
+
Requires-Dist: requests>=2.32.5
|
|
107
|
+
Description-Content-Type: text/markdown
|
|
108
|
+
|
|
109
|
+
<table>
|
|
110
|
+
<tr>
|
|
111
|
+
<td><img src="assets/logo.png" alt="pflow" width="120"></td>
|
|
112
|
+
<td>
|
|
113
|
+
<h1>pflow</h1>
|
|
114
|
+
<p>
|
|
115
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-FSL--1.1--ALv2-blue.svg" alt="License"></a>
|
|
116
|
+
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.10+-blue.svg" alt="Python 3.10+"></a>
|
|
117
|
+
<a href="https://github.com/spinje/pflow/actions/workflows/main.yml"><img src="https://github.com/spinje/pflow/actions/workflows/main.yml/badge.svg" alt="CI"></a>
|
|
118
|
+
<a href="https://docs.pflow.run"><img src="https://img.shields.io/badge/docs-docs.pflow.run-blue" alt="Docs"></a>
|
|
119
|
+
</p>
|
|
120
|
+
</td>
|
|
121
|
+
</tr>
|
|
122
|
+
</table>
|
|
123
|
+
|
|
124
|
+
pflow helps your agent build workflows it can reuse. It composes pre-built nodes — LLM calls, shell commands, HTTP requests, MCP tools — into a `.pflow.md` file. Save it, and it becomes a command that runs the same process every time.
|
|
125
|
+
|
|
126
|
+
Saved workflows can be published as Skills with `pflow skill save`, making them available across Claude Code, Cursor, and other platforms.
|
|
127
|
+
|
|
128
|
+

|
|
129
|
+
|
|
130
|
+
## What a workflow looks like
|
|
131
|
+
|
|
132
|
+
I use pflow for my own releases. This workflow analyzes git commits since the last tag, classifies each one with an LLM (70 concurrent calls), and generates a CHANGELOG.md entry, a Mintlify docs update, and a release context file. It runs in about a minute.
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
pflow generate-changelog since_tag=v0.5.0
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The whole thing is a `.pflow.md` file — markdown that renders as documentation on GitHub and executes as a CLI command. Here are a few steps from the [full workflow](examples/real-workflows/generate-changelog/workflow.pflow.md):
|
|
139
|
+
|
|
140
|
+
````markdown
|
|
141
|
+
### get-latest-tag
|
|
142
|
+
|
|
143
|
+
Detect the most recent git tag to use as the changelog baseline.
|
|
144
|
+
|
|
145
|
+
- type: shell
|
|
146
|
+
|
|
147
|
+
```shell command
|
|
148
|
+
git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0'
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### resolve-tag
|
|
152
|
+
|
|
153
|
+
Pick the starting tag: either user-provided or auto-detected.
|
|
154
|
+
|
|
155
|
+
- type: code
|
|
156
|
+
- inputs:
|
|
157
|
+
since_tag: ${since_tag}
|
|
158
|
+
latest_tag: ${get-latest-tag.stdout}
|
|
159
|
+
|
|
160
|
+
```python code
|
|
161
|
+
since_tag: str
|
|
162
|
+
latest_tag: str
|
|
163
|
+
|
|
164
|
+
result: str = since_tag.strip() if since_tag.strip() else latest_tag.strip()
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### analyze-commits
|
|
168
|
+
|
|
169
|
+
Classify each commit as user-facing or internal. Runs in parallel.
|
|
170
|
+
|
|
171
|
+
- type: llm
|
|
172
|
+
|
|
173
|
+
```yaml batch
|
|
174
|
+
items: ${get-commits-enriched.result}
|
|
175
|
+
parallel: true
|
|
176
|
+
max_concurrent: 70
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### notify-slack
|
|
180
|
+
|
|
181
|
+
Post the release summary to Slack.
|
|
182
|
+
|
|
183
|
+
- type: mcp-composio-slack-SLACK_SEND_MESSAGE
|
|
184
|
+
- channel: ${slack_channel}
|
|
185
|
+
- markdown_text: ${create-summary.result}
|
|
186
|
+
````
|
|
187
|
+
|
|
188
|
+
Data flows between steps through template variables — `${get-latest-tag.stdout}` feeds one step's output into the next.
|
|
189
|
+
|
|
190
|
+
Four node types in one workflow: a shell command, inline Python, 70 parallel LLM calls, and a Slack message via MCP in three lines.
|
|
191
|
+
|
|
192
|
+
More examples: [release announcements](examples/real-workflows/release-announcements/), [webpage to markdown](examples/real-workflows/webpage-to-markdown/)
|
|
193
|
+
|
|
194
|
+
Once saved, this runs the same way every time — same steps, same order, same data flow between them.
|
|
195
|
+
|
|
196
|
+
## How your agent uses pflow
|
|
197
|
+
|
|
198
|
+
pflow has 8 node types: `shell`, `code` (Python), `http`, file operations, `llm` calls, `mcp` tools, and a `claude-code` node for delegating to another agent.
|
|
199
|
+
|
|
200
|
+
Before anything runs, validation catches errors — wrong template references, missing inputs, type mismatches. Your agent handles the whole lifecycle:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Check if a workflow already exists
|
|
204
|
+
pflow workflow discover "generate changelog from git history"
|
|
205
|
+
|
|
206
|
+
# Nothing fits — get a step-by-step creation guide
|
|
207
|
+
pflow instructions create
|
|
208
|
+
|
|
209
|
+
# Find building blocks for the workflow
|
|
210
|
+
pflow registry discover "analyze git commits, classify with llm, post to slack"
|
|
211
|
+
|
|
212
|
+
# Build, run, iterate (validation runs automatically)
|
|
213
|
+
pflow workflow.pflow.md since_tag=v0.5.0
|
|
214
|
+
|
|
215
|
+
# Save to your library
|
|
216
|
+
pflow workflow save ./workflow.pflow.md --name generate-changelog
|
|
217
|
+
|
|
218
|
+
# Publish frequently-used workflows as Skills
|
|
219
|
+
pflow skill save generate-changelog
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Workflows can call other workflows — the changelog you build today becomes a building block for a release workflow tomorrow.
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# JSON output works with standard tools
|
|
226
|
+
pflow --output-format json generate-changelog \
|
|
227
|
+
| jq -r '.result.version' | xargs git tag
|
|
228
|
+
|
|
229
|
+
# Chain workflows together
|
|
230
|
+
pflow -p generate-changelog | pflow -p release-announcements
|
|
231
|
+
|
|
232
|
+
# Schedule workflows like any command
|
|
233
|
+
0 9 * * MON pflow generate-changelog
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Built for agents
|
|
237
|
+
|
|
238
|
+
When something goes wrong, pflow tells the agent what to do:
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
✗ Static validation failed:
|
|
242
|
+
• Node 'fetch-data' (type: http) does not output 'email'
|
|
243
|
+
|
|
244
|
+
Available outputs from 'fetch-data':
|
|
245
|
+
✓ ${fetch-data.response} (dict|str)
|
|
246
|
+
✓ ${fetch-data.status_code} (int)
|
|
247
|
+
✓ ${fetch-data.response_headers} (dict)
|
|
248
|
+
✓ ${fetch-data.response_time} (float)
|
|
249
|
+
✓ ${fetch-data.error} (str)
|
|
250
|
+
|
|
251
|
+
Tip: Try using ${fetch-data.response} instead
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
The agent sees what went wrong, sees every available output with its type, and gets a suggested fix. No stack traces, no guessing. ([source](src/pflow/runtime/template_validator.py))
|
|
255
|
+
|
|
256
|
+
I develop pflow by having agents build workflows and identifying where they get stuck. These error messages are a direct result.
|
|
257
|
+
|
|
258
|
+
pflow is CLI-first because agents in Claude Code, Cursor, and similar tools always have bash. No MCP configuration needed — just run commands. (MCP server mode is available too if you need it.)
|
|
259
|
+
|
|
260
|
+
## Honest scope
|
|
261
|
+
|
|
262
|
+
pflow is for workflows where you know the steps — tasks your agent figured out once and you want to capture. If you're exploring or need your agent to adapt on the fly, let it. pflow captures the path after you've found it.
|
|
263
|
+
|
|
264
|
+
## Getting started
|
|
265
|
+
|
|
266
|
+
Requires Python 3.10+, macOS or Linux (Windows is untested). See the [quickstart](https://docs.pflow.run/quickstart) for API key setup and detailed configuration.
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
# Recommended
|
|
270
|
+
uv tool install pflow-cli
|
|
271
|
+
|
|
272
|
+
# Or with pipx
|
|
273
|
+
pipx install pflow-cli
|
|
274
|
+
|
|
275
|
+
# Or with pip
|
|
276
|
+
pip install pflow-cli
|
|
277
|
+
|
|
278
|
+
# Verify
|
|
279
|
+
pflow --version
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Tell your agent to run `pflow instructions usage` — it gets everything it needs to discover, run, and build workflows.
|
|
283
|
+
|
|
284
|
+
Or configure pflow as an MCP server for environments without terminal access:
|
|
285
|
+
|
|
286
|
+
```json
|
|
287
|
+
{
|
|
288
|
+
"mcpServers": {
|
|
289
|
+
"pflow": {
|
|
290
|
+
"command": "pflow",
|
|
291
|
+
"args": ["mcp", "serve"]
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Full documentation at [docs.pflow.run](https://docs.pflow.run).
|
|
298
|
+
|
|
299
|
+
## I want your feedback
|
|
300
|
+
|
|
301
|
+
I've been building pflow since mid-2025. The thesis I'm testing: agents are more effective when they can compose known building blocks into reusable workflows, rather than writing code from scratch each time.
|
|
302
|
+
|
|
303
|
+
I might be wrong. Try it and tell me:
|
|
304
|
+
|
|
305
|
+
- Is the `.pflow.md` format helpful, or would you rather just read/write Python?
|
|
306
|
+
- After trying it — would you rather just let your agent handle the whole task from scratch each time? Write scripts? Use some other framework?
|
|
307
|
+
- What's the first workflow you'd build?
|
|
308
|
+
|
|
309
|
+
Open a [discussion](https://github.com/spinje/pflow/discussions) or file an [issue](https://github.com/spinje/pflow/issues).
|
|
310
|
+
|
|
311
|
+
Or get started → [Get started](https://docs.pflow.run/quickstart)
|
|
312
|
+
|
|
313
|
+
## License
|
|
314
|
+
|
|
315
|
+
[Functional Source License (FSL-1.1-ALv2)](LICENSE) — free for all use except offering pflow as a competing cloud hosted service. Becomes Apache-2.0 after 2 years.
|