Skip to main content

Bridge ExecutionPlanIR to Propact markdown and execution

Project description

nlp2cmd-propact

Bridge ExecutionPlanIR → Propact markdown + HybridPlanExecutor.

Propact blocks

target_kind Markdown
shell ```propact:shell `
rest ```propact:rest `
mcp ```propact:mcp `
ws ```propact:ws `
browser, sql, desktop ```propact:delegate ` (wykonanie przez nlp2cmd)

Użycie (Python)

from nlp2cmd_planner import PlanningPipeline
from nlp2cmd_propact import HybridPlanExecutor, plan_to_propact_markdown

plan = PlanningPipeline().run("znajdz pliki *.py w src")
print(plan_to_propact_markdown(plan))

result = HybridPlanExecutor().run(plan, dry_run=False)
print(result.stdout)

CLI

export NLP2CMD_INTEGRATION=1
export LANG=C.UTF-8

nlp2cmd plan "znajdz pliki *.py w src"
nlp2cmd plan "znajdz pliki *.py w src" --explain    # execution_route per step
nlp2cmd plan "znajdz pliki *.py w src" --json       # + execution_routes
nlp2cmd plan "znajdz pliki *.py w src" --execute    # hybrid executor
nlp2cmd plan "znajdz pliki *.py w src" --execute --dry-run

Struktura zapytania (IntentIR): nlp2dsl show "…".

Wykonanie bez Propact

Gdy propact nie jest w PATH, plany shell-only wykonują się przez subprocess (NLP2CMD_PROPACT_FALLBACK=shell, domyślnie). Plany REST/MCP/WS wymagają pip install 'propact[semantic]'.

Instalacja

./scripts/setup-dev.sh   # z katalogu nlp2dsl
pip install -e ../nlp2cmd[integration]

Browser/desktop/canvas → delegacja do legacy nlp2cmd (PipelineRunner).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlp2cmd_propact-0.1.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlp2cmd_propact-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file nlp2cmd_propact-0.1.3.tar.gz.

File metadata

  • Download URL: nlp2cmd_propact-0.1.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nlp2cmd_propact-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1120699aec53f7b77501c2d6183f16411fc408b73c809062091be1741243bb0a
MD5 468cd486a7f5af93287f965da70cb53b
BLAKE2b-256 04bd8a09fef5546539e85843ffc724f4fd74aaed28c15d70a411bd5e4874a046

See more details on using hashes here.

File details

Details for the file nlp2cmd_propact-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nlp2cmd_propact-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 70eb814e190f5003ebe01148ce6f864f12703255eb1d5a97106052a913652d07
MD5 3778262d67b0dba47dd304f255f2d582
BLAKE2b-256 1c393e53b1404088dcc96d3aed90b6f6663e261cb386d63e1f387f8c1d41f400

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page