create-leafmesh 2.1.1__tar.gz → 2.2.3__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.
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/PKG-INFO +2 -1
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh/__init__.py +1 -1
- create_leafmesh-2.2.3/create_leafmesh/cli.py +555 -0
- create_leafmesh-2.2.3/create_leafmesh/create.py +403 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/README.md +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/_inspire/_REFERENCE_ONLY.md +48 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/greeter_agent.py +14 -2
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/processor_agent.py +33 -3
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/researcher_agent.py +15 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/configs/config.yaml +176 -22
- create_leafmesh-2.2.3/create_leafmesh/templates/_inspire/skills/data-handling/SKILL.md +39 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/_inspire/skills/data-handling/examples.json +49 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/_inspire/skills/tone-rules.md +39 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/_registry.yaml +390 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/README.md +11 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/_shared/audit_logger.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/compliance_reviewer_agent.py +48 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/past_proposal_retriever_agent.py +30 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/pricing_configurator_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/rfp_ingester_agent.py +31 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/section_drafter_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/agency/win_loss_analyzer_agent.py +39 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/configs/config.yaml +471 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/docker-compose.yml +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/tests/test_agent_logic.py +62 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bd-proposals/tests/test_config_shape.py +38 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/README.md +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/_shared/audit_logger.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/allocation_planner_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/capacity_forecaster_agent.py +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/career_path_recommender_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/idle_detector_agent.py +19 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/reskilling_recommender_agent.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/skills_matcher_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/agency/weekly_bench_sweep_agent.py +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/configs/config.yaml +441 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/docker-compose.yml +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/env +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/tests/test_agent_logic.py +31 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/bench-management/tests/test_config_shape.py +43 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh/templates/claude_skills/leafmesh/SKILL.md +510 -5
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh/templates/claude_skills/leafmesh/agent-config-fields.md +283 -3
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh/templates/claude_skills/leafmesh/examples.md +217 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh/templates/claude_skills/leafmesh/reference.md +105 -14
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/Dockerfile +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/README.md +188 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/__init__.py +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/_shared/audit_logger.py +72 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/exec_alignment_agent.py +69 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/health_score_agent.py +85 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/health_score_explainer_agent.py +50 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/health_sweep_orchestrator_agent.py +38 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/playbook_trigger_agent.py +86 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/qbr_drafter_agent.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/renewal_forecaster_agent.py +79 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/renewal_window_monitor_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/risk_detector_agent.py +110 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/agency/save_play_agent.py +74 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/configs/config.yaml +1115 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/dockerignore +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/env +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/main.py +116 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/pytest.ini +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/requirements-dev.txt +4 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/requirements.txt +4 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/tests/conftest.py +29 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/tests/test_agent_logic.py +220 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-success/tests/test_config_shape.py +160 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/README.md +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/kb_gap_filler_agent.py +46 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/knowledge_agent.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/qa_agent.py +74 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/response_agent.py +41 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/sentiment_agent.py +48 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/sla_watchdog_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/ticket_intake_agent.py +49 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/agency/triage_agent.py +82 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/configs/config.yaml +748 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/main.py +58 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/tests/conftest.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/tests/test_agent_logic.py +124 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/customer-support/tests/test_config_shape.py +96 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/README.md +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/code_reviewer_agent.py +71 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/junior_engineer_agent.py +50 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/oncall_alert_triager_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/refactor_agent.py +33 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/security_scanner_agent.py +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/spec_agent.py +59 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/agency/test_engineer_agent.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/configs/config.yaml +628 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/env +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/main.py +58 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/tests/conftest.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/tests/test_agent_logic.py +92 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/engineering-sdlc/tests/test_config_shape.py +70 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/Dockerfile +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/README.md +188 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/__init__.py +10 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/_shared/__init__.py +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/_shared/audit_logger.py +91 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/_shared/erp_poster.py +61 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/approval_router_agent.py +83 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/close_cycle_orchestrator_agent.py +46 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/erp_poster_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/exception_drafter_agent.py +56 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/extraction_agent.py +80 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/fraud_check_agent.py +81 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/gl_coding_agent.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/invoice_intake_agent.py +75 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/po_match_agent.py +73 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/reconciliation_agent.py +59 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/agency/vendor_query_handler_agent.py +77 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/configs/config.yaml +1035 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/dockerignore +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/env +37 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/main.py +152 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/pytest.ini +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/requirements-dev.txt +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/requirements.txt +7 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/tests/conftest.py +31 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/tests/test_agent_logic.py +171 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/finance-ops/tests/test_config_shape.py +192 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/README.md +11 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/_shared/audit_logger.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/commitment_utilisation_agent.py +35 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/cost_anomaly_agent.py +46 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/cost_tuner_agent.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/iac_drift_agent.py +21 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/reserved_capacity_planner_agent.py +18 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/agency/right_sizer_agent.py +33 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/configs/config.yaml +390 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/docker-compose.yml +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/tests/test_agent_logic.py +51 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/infra-cost-ops/tests/test_config_shape.py +40 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/Dockerfile +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/README.md +188 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/_shared/audit_logger.py +72 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/attribution_agent.py +55 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/audience_intelligence_agent.py +48 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/brief_intake_agent.py +42 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/campaign_orchestrator_agent.py +39 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/campaign_strategist_agent.py +62 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/competitor_intel_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/compliance_reviewer_agent.py +73 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/copywriter_agent.py +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/crisis_responder_agent.py +76 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/marketing_audit_logger_agent.py +71 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/performance_analyzer_agent.py +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/publisher_agent.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/agency/visual_briefer_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/configs/config.yaml +629 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/dockerignore +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/env +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/main.py +116 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/pytest.ini +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/requirements-dev.txt +4 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/requirements.txt +4 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/tests/conftest.py +29 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/tests/test_agent_logic.py +173 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/marketing-ops/tests/test_config_shape.py +150 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/README.md +17 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/condition_sensor_agent.py +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/dispatcher_agent.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/failure_predictor_agent.py +55 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/parts_requestor_agent.py +22 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/recurrence_watchdog_agent.py +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/spare_parts_forecaster_agent.py +40 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/agency/work_order_scheduler_agent.py +42 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/configs/config.yaml +415 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/main.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/tests/conftest.py +22 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/tests/test_agent_logic.py +41 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/predictive-maintenance/tests/test_config_shape.py +41 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/README.md +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/capacity_model_agent.py +36 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/constraint_flagger_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/demand_sensor_agent.py +33 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/release_agent.py +22 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/rolling_reopt_orchestrator_agent.py +16 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/scheduler_agent.py +56 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/agency/supplier_signal_agent.py +49 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/configs/config.yaml +496 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/main.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/tests/conftest.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/tests/test_agent_logic.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/production-planning/tests/test_config_shape.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/README.md +10 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/_shared/audit_logger.py +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/batch_traceability_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/corrective_action_drafter_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/defect_detector_agent.py +61 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/inspection_intake_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/root_cause_analyzer_agent.py +48 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/agency/spc_monitor_agent.py +16 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/configs/config.yaml +438 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/tests/conftest.py +22 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/tests/test_agent_logic.py +56 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quality-yield/tests/test_config_shape.py +46 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/README.md +11 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/_shared/audit_logger.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/approval_router_agent.py +39 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/bundle_recommender_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/competitor_watch_agent.py +11 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/cost_calculator_agent.py +33 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/discount_policy_agent.py +51 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/quote_drafter_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/agency/rfq_ingester_agent.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/configs/config.yaml +471 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/docker-compose.yml +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/env +16 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/tests/test_agent_logic.py +42 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/quote-to-cash/tests/test_config_shape.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/README.md +11 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/_shared/audit_logger.py +47 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/offer_drafter_agent.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/outreach_drafter_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/pipeline_health_agent.py +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/rejection_letter_drafter_agent.py +55 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/req_intake_agent.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/resume_screener_agent.py +43 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/scheduling_agent.py +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/agency/sourcing_agent.py +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/configs/config.yaml +496 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/docker-compose.yml +27 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/tests/test_agent_logic.py +21 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/recruiting-ops/tests/test_config_shape.py +41 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/README.md +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/_shared/audit_logger.py +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/lead_intake_agent.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/lead_revival_agent.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/lead_scorer_agent.py +65 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/personalisation_agent.py +36 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/pipeline_health_agent.py +18 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/agency/sequence_orchestrator_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/configs/config.yaml +452 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/main.py +45 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/tests/conftest.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/tests/test_agent_logic.py +58 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/sales-orchestration/tests/test_config_shape.py +40 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/Dockerfile +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/README.md +59 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/analysis_agent.py +70 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/brief_intake_agent.py +49 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/citation_agent.py +63 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/context_agent.py +44 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/delivery_router_agent.py +42 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/draft_agent.py +60 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/engagement_status_drafter_agent.py +52 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/qa_agent.py +67 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/research_agent.py +54 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/agency/status_sweep_orchestrator_agent.py +31 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/configs/config.yaml +1065 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/dockerignore +14 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/env +16 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/main.py +67 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/pytest.ini +6 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/requirements-dev.txt +4 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/tests/conftest.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/tests/test_agent_logic.py +152 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/services-delivery/tests/test_config_shape.py +137 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/Dockerfile +9 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/README.md +37 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/_prompts.json +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/_shared/__init__.py +1 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/_shared/audit_logger.py +53 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/allocation_agent.py +40 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/carrier_selector_agent.py +66 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/cycle_count_orchestrator_agent.py +22 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/exception_agent.py +62 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/humanoid_status_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/inspection_humanoid.py +19 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/inventory_agent.py +29 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/loader_humanoid.py +21 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/packer_humanoid.py +20 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/picker_humanoid.py +26 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/returns_handler_agent.py +18 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/agency/routing_agent.py +24 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/configs/config.yaml +519 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/docker-compose.yml +34 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/dockerignore +13 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/env +12 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/gitignore +15 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/main.py +57 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/pytest.ini +5 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/requirements-dev.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/requirements.txt +3 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/tests/__init__.py +0 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/tests/conftest.py +28 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/tests/test_agent_logic.py +32 -0
- create_leafmesh-2.2.3/create_leafmesh/templates/warehouse-supply-chain/tests/test_config_shape.py +53 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh.egg-info/PKG-INFO +2 -1
- create_leafmesh-2.2.3/create_leafmesh.egg-info/SOURCES.txt +475 -0
- create_leafmesh-2.2.3/create_leafmesh.egg-info/requires.txt +1 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/pyproject.toml +4 -2
- create_leafmesh-2.1.1/create_leafmesh/cli.py +0 -252
- create_leafmesh-2.1.1/create_leafmesh/create.py +0 -106
- create_leafmesh-2.1.1/create_leafmesh.egg-info/SOURCES.txt +0 -33
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/README.md +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/Dockerfile +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/__init__.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/advisor_agent.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/external_agents.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/fallback_researcher_agent.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/scheduler_agent.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/agency/tools.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/docker-compose.yml +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/dockerignore +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/env +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/gitignore +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/hitl_stub_receiver.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/main.py +0 -0
- {create_leafmesh-2.1.1/create_leafmesh/templates → create_leafmesh-2.2.3/create_leafmesh/templates/_inspire}/requirements.txt +0 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh.egg-info/dependency_links.txt +0 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh.egg-info/entry_points.txt +0 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/create_leafmesh.egg-info/top_level.txt +0 -0
- {create_leafmesh-2.1.1 → create_leafmesh-2.2.3}/setup.cfg +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: create-leafmesh
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: Project scaffolding tool for LeafMesh
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: questionary<3,>=2.0
|
|
8
9
|
|
|
9
10
|
# create-leafmesh
|
|
10
11
|
|
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
"""CLI entry point for create-leafmesh."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import re
|
|
5
|
+
import sys
|
|
6
|
+
import time
|
|
7
|
+
|
|
8
|
+
from create_leafmesh import __version__
|
|
9
|
+
from create_leafmesh.create import (
|
|
10
|
+
create_project,
|
|
11
|
+
get_template,
|
|
12
|
+
get_template_prompts,
|
|
13
|
+
list_templates,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
# ---------------------------------------------------------------------------
|
|
17
|
+
# ANSI helpers (graceful fallback on terminals that don't support color)
|
|
18
|
+
# ---------------------------------------------------------------------------
|
|
19
|
+
_CYAN = "\033[36m"
|
|
20
|
+
_GREEN = "\033[32m"
|
|
21
|
+
_WHITE = "\033[97m"
|
|
22
|
+
_DIM = "\033[2m"
|
|
23
|
+
_BOLD = "\033[1m"
|
|
24
|
+
_RESET = "\033[0m"
|
|
25
|
+
|
|
26
|
+
def _c(code: str, text: str) -> str:
|
|
27
|
+
"""Wrap text in an ANSI code, reset after."""
|
|
28
|
+
return f"{code}{text}{_RESET}"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# ---------------------------------------------------------------------------
|
|
32
|
+
# ASCII art — block letters for LEAFMESH
|
|
33
|
+
# ---------------------------------------------------------------------------
|
|
34
|
+
BANNER = r"""
|
|
35
|
+
██╗ ███████╗ █████╗ ███████╗███╗ ███╗███████╗███████╗██╗ ██╗
|
|
36
|
+
██║ ██╔════╝██╔══██╗██╔════╝████╗ ████║██╔════╝██╔════╝██║ ██║
|
|
37
|
+
██║ █████╗ ███████║█████╗ ██╔████╔██║█████╗ ███████╗███████║
|
|
38
|
+
██║ ██╔══╝ ██╔══██║██╔══╝ ██║╚██╔╝██║██╔══╝ ╚════██║██╔══██║
|
|
39
|
+
███████╗███████╗██║ ██║██║ ██║ ╚═╝ ██║███████╗███████║██║ ██║
|
|
40
|
+
╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def print_banner(version: str) -> None:
|
|
44
|
+
print()
|
|
45
|
+
print(_c(_CYAN, BANNER), end="")
|
|
46
|
+
pad = " " * 2
|
|
47
|
+
print(f"{pad} create-leafmesh {_c(_DIM, 'v' + version)} "
|
|
48
|
+
f"{_c(_DIM, 'Agent mesh scaffolding tool')}")
|
|
49
|
+
print(f"{pad} " + "-" * 55)
|
|
50
|
+
print()
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# ---------------------------------------------------------------------------
|
|
54
|
+
# Step progress printer
|
|
55
|
+
# ---------------------------------------------------------------------------
|
|
56
|
+
def step(n: int, total: int, label: str, done: bool = False) -> None:
|
|
57
|
+
status = _c(_GREEN, "[ OK ]") if done else _c(_DIM, "[ ]")
|
|
58
|
+
print(f" {status} [{n}/{total}] {label}")
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def step_done(n: int, total: int, label: str) -> None:
|
|
62
|
+
print(f"\033[1A\r {_c(_GREEN, '[ OK ]')} [{n}/{total}] {label}")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# ---------------------------------------------------------------------------
|
|
66
|
+
# Next-steps box
|
|
67
|
+
# ---------------------------------------------------------------------------
|
|
68
|
+
def print_success_box(project_name: str, template_slug: str, missing_keys: list[str]) -> None:
|
|
69
|
+
w = 58
|
|
70
|
+
|
|
71
|
+
def row(text: str = "") -> str:
|
|
72
|
+
return f" | {text:<{w - 4}}|"
|
|
73
|
+
|
|
74
|
+
def div() -> str:
|
|
75
|
+
return " +" + "-" * (w - 2) + "+"
|
|
76
|
+
|
|
77
|
+
def header(text: str) -> str:
|
|
78
|
+
return " | " + _c(_GREEN, _c(_BOLD, f"{text:<{w - 4}}")) + "|"
|
|
79
|
+
|
|
80
|
+
print()
|
|
81
|
+
print(div())
|
|
82
|
+
print(header(f"Project ready: {project_name}"))
|
|
83
|
+
print(div())
|
|
84
|
+
print(row())
|
|
85
|
+
print(row(f" template: {template_slug}"))
|
|
86
|
+
print(row())
|
|
87
|
+
print(row(f" cd {project_name}"))
|
|
88
|
+
print(row(f" pip install -r requirements.txt"))
|
|
89
|
+
if missing_keys:
|
|
90
|
+
print(row())
|
|
91
|
+
print(row(f" # Add to .env before starting:"))
|
|
92
|
+
for k in missing_keys:
|
|
93
|
+
print(row(f" # {k}=<your-key>"))
|
|
94
|
+
print(row())
|
|
95
|
+
print(row(f" See README.md for the run instructions"))
|
|
96
|
+
print(row(f" specific to this template."))
|
|
97
|
+
print(row())
|
|
98
|
+
print(div())
|
|
99
|
+
print(row(f" Docs: https://leafcraft.ai/docs"))
|
|
100
|
+
print(div())
|
|
101
|
+
print()
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# ---------------------------------------------------------------------------
|
|
105
|
+
# Validation / prompts
|
|
106
|
+
# ---------------------------------------------------------------------------
|
|
107
|
+
def validate_project_name(name: str) -> str:
|
|
108
|
+
if not re.match(r"^[a-zA-Z][a-zA-Z0-9_-]*$", name):
|
|
109
|
+
raise argparse.ArgumentTypeError(
|
|
110
|
+
f"Invalid project name '{name}'. "
|
|
111
|
+
"Must start with a letter and contain only alphanumeric characters, "
|
|
112
|
+
"hyphens, or underscores."
|
|
113
|
+
)
|
|
114
|
+
return name
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def prompt_project_name() -> str:
|
|
118
|
+
while True:
|
|
119
|
+
name = input(" Project name: ").strip()
|
|
120
|
+
if not name:
|
|
121
|
+
print(" Name cannot be empty.")
|
|
122
|
+
continue
|
|
123
|
+
if not re.match(r"^[a-zA-Z][a-zA-Z0-9_-]*$", name):
|
|
124
|
+
print(" Must start with a letter, letters/numbers/hyphens/underscores only.")
|
|
125
|
+
continue
|
|
126
|
+
return name
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# ---------------------------------------------------------------------------
|
|
130
|
+
# Template selection
|
|
131
|
+
# ---------------------------------------------------------------------------
|
|
132
|
+
def print_template_list(include_planned: bool = True) -> None:
|
|
133
|
+
"""Print the available templates (--list output)."""
|
|
134
|
+
ready = list_templates(include_planned=False)
|
|
135
|
+
planned = [t for t in list_templates(include_planned=True)
|
|
136
|
+
if t.get("status") != "ready"] if include_planned else []
|
|
137
|
+
|
|
138
|
+
print()
|
|
139
|
+
print(_c(_BOLD, " Available templates:"))
|
|
140
|
+
print()
|
|
141
|
+
for t in ready:
|
|
142
|
+
slug = t["slug"]
|
|
143
|
+
short = t.get("short_name", "")
|
|
144
|
+
one_line = t.get("one_line", "")
|
|
145
|
+
print(f" {_c(_BOLD, slug):<35s}")
|
|
146
|
+
print(f" {_c(_DIM, ' ' + short)}")
|
|
147
|
+
print(f" {_c(_DIM, ' ' + one_line)}")
|
|
148
|
+
print()
|
|
149
|
+
|
|
150
|
+
if planned:
|
|
151
|
+
print(_c(_DIM, " Planned (not yet available):"))
|
|
152
|
+
for t in planned:
|
|
153
|
+
slug = t["slug"]
|
|
154
|
+
short = t.get("short_name", "")
|
|
155
|
+
print(f" {_c(_DIM, slug):<35s} {_c(_DIM, short)}")
|
|
156
|
+
print()
|
|
157
|
+
|
|
158
|
+
print(_c(_DIM, " Use: create-leafmesh <project_name> --template <slug>"))
|
|
159
|
+
print()
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
# Display order for the grouped picker — first group at top, last at bottom.
|
|
163
|
+
# Templates without a recognised `category` fall into "Other" at the end.
|
|
164
|
+
_CATEGORY_ORDER = (
|
|
165
|
+
"Finance & back-office",
|
|
166
|
+
"Customer & growth",
|
|
167
|
+
"Engineering & platform",
|
|
168
|
+
"People operations",
|
|
169
|
+
"Services & delivery",
|
|
170
|
+
"Production & supply",
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def _grouped_templates() -> list[tuple[str, list[dict]]]:
|
|
175
|
+
"""Return [(category, [template, …]), …] in display order."""
|
|
176
|
+
ready = list_templates(include_planned=False)
|
|
177
|
+
grouped: dict[str, list[dict]] = {}
|
|
178
|
+
for t in ready:
|
|
179
|
+
cat = t.get("category") or "Other"
|
|
180
|
+
grouped.setdefault(cat, []).append(t)
|
|
181
|
+
|
|
182
|
+
display: list[tuple[str, list[dict]]] = []
|
|
183
|
+
seen: set[str] = set()
|
|
184
|
+
for cat in _CATEGORY_ORDER:
|
|
185
|
+
if cat in grouped:
|
|
186
|
+
display.append((cat, grouped[cat]))
|
|
187
|
+
seen.add(cat)
|
|
188
|
+
for cat, items in grouped.items():
|
|
189
|
+
if cat not in seen and cat != "Other":
|
|
190
|
+
display.append((cat, items))
|
|
191
|
+
seen.add(cat)
|
|
192
|
+
if "Other" in grouped:
|
|
193
|
+
display.append(("Other", grouped["Other"]))
|
|
194
|
+
return display
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
def _prompt_template_choice_interactive() -> str:
|
|
198
|
+
"""Arrow-key TUI picker — cascading category → template selection.
|
|
199
|
+
|
|
200
|
+
Uses `questionary` for arrow-key navigation. Two stages:
|
|
201
|
+
1. Pick a business category
|
|
202
|
+
2. Pick a template within that category (with 'Back' option)
|
|
203
|
+
|
|
204
|
+
Loops until a template is chosen or user cancels.
|
|
205
|
+
"""
|
|
206
|
+
import questionary
|
|
207
|
+
from questionary import Style
|
|
208
|
+
|
|
209
|
+
style = Style([
|
|
210
|
+
("qmark", "fg:#00d7ff bold"),
|
|
211
|
+
("question", "bold"),
|
|
212
|
+
("answer", "fg:#5fff5f bold"),
|
|
213
|
+
("pointer", "fg:#00d7ff bold"),
|
|
214
|
+
("highlighted", "fg:#00d7ff bold"),
|
|
215
|
+
("selected", "fg:#5fff5f"),
|
|
216
|
+
("separator", "fg:#6c6c6c"),
|
|
217
|
+
("instruction", "fg:#6c6c6c"),
|
|
218
|
+
])
|
|
219
|
+
|
|
220
|
+
display = _grouped_templates()
|
|
221
|
+
if not display:
|
|
222
|
+
print(" No templates available. Reinstall create-leafmesh.")
|
|
223
|
+
sys.exit(2)
|
|
224
|
+
|
|
225
|
+
cat_to_items = dict(display)
|
|
226
|
+
|
|
227
|
+
while True:
|
|
228
|
+
# ── Step 1: pick a category ──────────────────────────────────
|
|
229
|
+
cat_choices = []
|
|
230
|
+
for cat, items in display:
|
|
231
|
+
n = len(items)
|
|
232
|
+
label = f"{cat} ({n} template{'s' if n != 1 else ''})"
|
|
233
|
+
cat_choices.append(questionary.Choice(title=label, value=cat))
|
|
234
|
+
cat_choices.append(questionary.Separator())
|
|
235
|
+
cat_choices.append(questionary.Choice(title="Quit", value=None))
|
|
236
|
+
|
|
237
|
+
chosen_cat = questionary.select(
|
|
238
|
+
"Choose a business area:",
|
|
239
|
+
choices=cat_choices,
|
|
240
|
+
style=style,
|
|
241
|
+
instruction="(↑/↓ to move, Enter to select)",
|
|
242
|
+
use_indicator=True,
|
|
243
|
+
).ask()
|
|
244
|
+
|
|
245
|
+
if chosen_cat is None:
|
|
246
|
+
print("\n Cancelled.\n")
|
|
247
|
+
sys.exit(0)
|
|
248
|
+
|
|
249
|
+
# ── Step 2: pick a template in that category ─────────────────
|
|
250
|
+
items = cat_to_items[chosen_cat]
|
|
251
|
+
# Pad short_names so the one-liner column aligns nicely.
|
|
252
|
+
name_w = max((len(t.get("short_name", t["slug"])) for t in items), default=12) + 2
|
|
253
|
+
|
|
254
|
+
tpl_choices = []
|
|
255
|
+
for t in items:
|
|
256
|
+
short = t.get("short_name", t["slug"])
|
|
257
|
+
one = t.get("one_line", "")
|
|
258
|
+
label = f"{short.ljust(name_w)} — {one}"
|
|
259
|
+
tpl_choices.append(questionary.Choice(title=label, value=t["slug"]))
|
|
260
|
+
tpl_choices.append(questionary.Separator())
|
|
261
|
+
tpl_choices.append(questionary.Choice(title="← Back to categories",
|
|
262
|
+
value="__back__"))
|
|
263
|
+
tpl_choices.append(questionary.Choice(title="Quit", value=None))
|
|
264
|
+
|
|
265
|
+
chosen = questionary.select(
|
|
266
|
+
f"Template in {chosen_cat}:",
|
|
267
|
+
choices=tpl_choices,
|
|
268
|
+
style=style,
|
|
269
|
+
instruction="(↑/↓ to move, Enter to select)",
|
|
270
|
+
use_indicator=True,
|
|
271
|
+
).ask()
|
|
272
|
+
|
|
273
|
+
if chosen is None:
|
|
274
|
+
print("\n Cancelled.\n")
|
|
275
|
+
sys.exit(0)
|
|
276
|
+
if chosen == "__back__":
|
|
277
|
+
continue
|
|
278
|
+
return chosen
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def _prompt_template_choice_fallback() -> str:
|
|
282
|
+
"""Numbered-list fallback for non-TTY terminals (CI, piped input)."""
|
|
283
|
+
display = _grouped_templates()
|
|
284
|
+
ready = [t for _, items in display for t in items]
|
|
285
|
+
if not ready:
|
|
286
|
+
print(" No templates available. Reinstall create-leafmesh.")
|
|
287
|
+
sys.exit(2)
|
|
288
|
+
|
|
289
|
+
valid_slugs = {t["slug"]: t["slug"] for t in ready}
|
|
290
|
+
valid_indexes: dict[str, str] = {}
|
|
291
|
+
idx = 1
|
|
292
|
+
for _cat, items in display:
|
|
293
|
+
for t in items:
|
|
294
|
+
valid_indexes[str(idx)] = t["slug"]
|
|
295
|
+
idx += 1
|
|
296
|
+
|
|
297
|
+
sep_w = 60
|
|
298
|
+
print()
|
|
299
|
+
print(" " + "─" * sep_w)
|
|
300
|
+
print(f" {'Choose a template':^{sep_w}}")
|
|
301
|
+
print(" " + "─" * sep_w)
|
|
302
|
+
longest = max(len(t.get("short_name", t["slug"])) for t in ready)
|
|
303
|
+
name_w = max(longest + 2, 22)
|
|
304
|
+
n = 1
|
|
305
|
+
for cat, items in display:
|
|
306
|
+
print()
|
|
307
|
+
print(f" {_c(_BOLD, cat.upper())}")
|
|
308
|
+
for t in items:
|
|
309
|
+
short = t.get("short_name", t["slug"])
|
|
310
|
+
one = t.get("one_line", "")
|
|
311
|
+
print(
|
|
312
|
+
f" {_c(_BOLD, str(n).rjust(2))}) "
|
|
313
|
+
f"{_c(_BOLD, short.ljust(name_w))}"
|
|
314
|
+
f"{_c(_DIM, one)}"
|
|
315
|
+
)
|
|
316
|
+
n += 1
|
|
317
|
+
print()
|
|
318
|
+
print(_c(_DIM, f" Type 1–{len(ready)}, a slug, or 'q' to quit."))
|
|
319
|
+
while True:
|
|
320
|
+
try:
|
|
321
|
+
raw = input(" > ").strip().lower()
|
|
322
|
+
except EOFError:
|
|
323
|
+
print()
|
|
324
|
+
sys.exit(0)
|
|
325
|
+
if not raw:
|
|
326
|
+
continue
|
|
327
|
+
if raw in ("q", "quit", "exit"):
|
|
328
|
+
print("\n Cancelled.\n")
|
|
329
|
+
sys.exit(0)
|
|
330
|
+
if raw in valid_indexes:
|
|
331
|
+
return valid_indexes[raw]
|
|
332
|
+
if raw in valid_slugs:
|
|
333
|
+
return raw
|
|
334
|
+
print(f" Invalid choice. Type 1–{len(ready)}, a slug, or 'q'.")
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
def prompt_template_choice() -> str:
|
|
338
|
+
"""Pick the right picker for the environment.
|
|
339
|
+
|
|
340
|
+
On a real terminal: arrow-key cascading TUI (category → template).
|
|
341
|
+
On CI / piped input / dumb terminals: numbered-list fallback.
|
|
342
|
+
"""
|
|
343
|
+
is_tty = sys.stdin.isatty() and sys.stdout.isatty()
|
|
344
|
+
if is_tty:
|
|
345
|
+
try:
|
|
346
|
+
return _prompt_template_choice_interactive()
|
|
347
|
+
except KeyboardInterrupt:
|
|
348
|
+
print("\n\n Cancelled.\n")
|
|
349
|
+
sys.exit(0)
|
|
350
|
+
except ImportError:
|
|
351
|
+
# questionary missing → fall through to text picker
|
|
352
|
+
pass
|
|
353
|
+
return _prompt_template_choice_fallback()
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
def prompt_env_vars(prompts: list[dict]) -> dict:
|
|
357
|
+
"""Ask the user for each env var the template declares.
|
|
358
|
+
|
|
359
|
+
`prompts` is the list from `get_template_prompts(slug)` — each entry has
|
|
360
|
+
`key`, `label`, `signup_url`, `required`, `note`. Empty input skips a
|
|
361
|
+
field (the BRD calls this "Never block, always document").
|
|
362
|
+
"""
|
|
363
|
+
w = 55
|
|
364
|
+
print()
|
|
365
|
+
print(" " + "-" * w)
|
|
366
|
+
print(f" {'Environment setup':^{w}}")
|
|
367
|
+
print(f" {'(press Enter to skip any field)':^{w}}")
|
|
368
|
+
print(" " + "-" * w)
|
|
369
|
+
print()
|
|
370
|
+
|
|
371
|
+
env_vars: dict = {}
|
|
372
|
+
|
|
373
|
+
for p in prompts:
|
|
374
|
+
label = p["label"]
|
|
375
|
+
signup = p.get("signup_url", "")
|
|
376
|
+
required = p.get("required", False)
|
|
377
|
+
note = p.get("note", "")
|
|
378
|
+
tag = "required" if required else "optional"
|
|
379
|
+
|
|
380
|
+
# Inline single-line prompt: note + signup on dim lines above,
|
|
381
|
+
# then `Label (required): ` with the cursor on the same line.
|
|
382
|
+
if note:
|
|
383
|
+
print(f" {_c(_DIM, note)}")
|
|
384
|
+
if signup:
|
|
385
|
+
print(f" {_c(_DIM, 'Sign up: ' + signup)}")
|
|
386
|
+
prompt_text = f" {label} {_c(_DIM, '(' + tag + ')')}: "
|
|
387
|
+
try:
|
|
388
|
+
val = input(prompt_text).strip()
|
|
389
|
+
except EOFError:
|
|
390
|
+
val = ""
|
|
391
|
+
if val:
|
|
392
|
+
env_vars[p["key"]] = val
|
|
393
|
+
print()
|
|
394
|
+
|
|
395
|
+
return env_vars
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
# ---------------------------------------------------------------------------
|
|
399
|
+
# Main create flow
|
|
400
|
+
# ---------------------------------------------------------------------------
|
|
401
|
+
def _run_create(
|
|
402
|
+
project_name: str | None,
|
|
403
|
+
output_dir: str,
|
|
404
|
+
no_git: bool,
|
|
405
|
+
template_slug: str | None,
|
|
406
|
+
) -> int:
|
|
407
|
+
print_banner(__version__)
|
|
408
|
+
|
|
409
|
+
if project_name is None:
|
|
410
|
+
project_name = prompt_project_name()
|
|
411
|
+
print()
|
|
412
|
+
else:
|
|
413
|
+
try:
|
|
414
|
+
project_name = validate_project_name(project_name)
|
|
415
|
+
except argparse.ArgumentTypeError as e:
|
|
416
|
+
print(f" Error: {e}")
|
|
417
|
+
return 1
|
|
418
|
+
|
|
419
|
+
# Resolve the template — flag wins; otherwise interactive picker.
|
|
420
|
+
if template_slug is None:
|
|
421
|
+
template_slug = prompt_template_choice()
|
|
422
|
+
print(f" Selected: {_c(_BOLD, template_slug)}")
|
|
423
|
+
print()
|
|
424
|
+
else:
|
|
425
|
+
# Validate the slug
|
|
426
|
+
t = get_template(template_slug)
|
|
427
|
+
if t is None:
|
|
428
|
+
valid = ", ".join(x["slug"] for x in list_templates())
|
|
429
|
+
print(f"\n Error: Unknown template '{template_slug}'.")
|
|
430
|
+
print(f" Available: {valid}")
|
|
431
|
+
print(f" Run 'create-leafmesh --list' for descriptions.\n")
|
|
432
|
+
return 2
|
|
433
|
+
if t.get("status") != "ready":
|
|
434
|
+
print(f"\n Error: Template '{template_slug}' is "
|
|
435
|
+
f"{t.get('status', 'unknown')}, not ready.\n")
|
|
436
|
+
return 2
|
|
437
|
+
|
|
438
|
+
# Per-template env-var prompts — each template declares its own keys.
|
|
439
|
+
prompts = get_template_prompts(template_slug)
|
|
440
|
+
env_vars = prompt_env_vars(prompts)
|
|
441
|
+
|
|
442
|
+
# Hand off to create_project, passing our step-printer so it can report progress
|
|
443
|
+
print(f" Creating {_c(_BOLD, project_name + '/')} from template "
|
|
444
|
+
f"{_c(_BOLD, template_slug)}")
|
|
445
|
+
print()
|
|
446
|
+
|
|
447
|
+
result = create_project(
|
|
448
|
+
project_name,
|
|
449
|
+
output_dir,
|
|
450
|
+
template_slug=template_slug,
|
|
451
|
+
init_git=not no_git,
|
|
452
|
+
env_vars=env_vars,
|
|
453
|
+
step_fn=step,
|
|
454
|
+
step_done_fn=step_done,
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
if result != 0:
|
|
458
|
+
return result
|
|
459
|
+
|
|
460
|
+
# Success box — flag any *required* template key the user skipped.
|
|
461
|
+
missing = [p["key"] for p in prompts if p.get("required") and p["key"] not in env_vars]
|
|
462
|
+
print_success_box(project_name, template_slug, missing)
|
|
463
|
+
|
|
464
|
+
return 0
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
# ---------------------------------------------------------------------------
|
|
468
|
+
# CLI entry point
|
|
469
|
+
# ---------------------------------------------------------------------------
|
|
470
|
+
def _print_template_describe(slug: str) -> int:
|
|
471
|
+
"""Print the full registry entry for a single template."""
|
|
472
|
+
t = get_template(slug)
|
|
473
|
+
if t is None:
|
|
474
|
+
valid = ", ".join(x["slug"] for x in list_templates(include_planned=True))
|
|
475
|
+
print(f"\n Error: Unknown template '{slug}'.")
|
|
476
|
+
print(f" Available: {valid}\n")
|
|
477
|
+
return 2
|
|
478
|
+
|
|
479
|
+
print()
|
|
480
|
+
print(_c(_BOLD, f" {t.get('full_name', t['slug'])}"))
|
|
481
|
+
print(f" {_c(_DIM, 'slug: ' + t['slug'])}")
|
|
482
|
+
print(f" {_c(_DIM, 'status: ' + t.get('status', '?'))}")
|
|
483
|
+
if t.get("one_line"):
|
|
484
|
+
print(f" {_c(_DIM, 'summary: ' + t['one_line'])}")
|
|
485
|
+
if t.get("complexity"):
|
|
486
|
+
print(f" {_c(_DIM, 'complexity: ' + t['complexity'])}")
|
|
487
|
+
if t.get("trust_lead"):
|
|
488
|
+
print(f" {_c(_DIM, 'trust: ' + t['trust_lead'])}")
|
|
489
|
+
if t.get("agent_count"):
|
|
490
|
+
print(f" {_c(_DIM, 'agents: ' + str(t['agent_count']))}")
|
|
491
|
+
if t.get("description"):
|
|
492
|
+
print()
|
|
493
|
+
print(f" {t['description']}")
|
|
494
|
+
print()
|
|
495
|
+
return 0
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
def main(argv: list[str] | None = None) -> int:
|
|
499
|
+
parser = argparse.ArgumentParser(
|
|
500
|
+
prog="create-leafmesh",
|
|
501
|
+
description="Project scaffolding tool for LeafMesh",
|
|
502
|
+
epilog="""
|
|
503
|
+
examples:
|
|
504
|
+
create-leafmesh my-project --template incident-triage Create with explicit template
|
|
505
|
+
create-leafmesh my-project Interactive picker
|
|
506
|
+
create-leafmesh --list Show available templates
|
|
507
|
+
create-leafmesh --describe payment-authorization Show template details
|
|
508
|
+
""",
|
|
509
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
510
|
+
)
|
|
511
|
+
parser.add_argument("--version", action="version", version=f"create-leafmesh {__version__}")
|
|
512
|
+
parser.add_argument("project_name", nargs="?", default=None, help="Project name")
|
|
513
|
+
parser.add_argument("-o", "--output-dir", default=".", help="Output directory (default: current)")
|
|
514
|
+
parser.add_argument("--no-git", action="store_true", help="Skip git init")
|
|
515
|
+
parser.add_argument(
|
|
516
|
+
"-t", "--template", default=None, metavar="SLUG",
|
|
517
|
+
help="Template slug (e.g. incident-triage, payment-authorization). "
|
|
518
|
+
"Run --list to see all options.",
|
|
519
|
+
)
|
|
520
|
+
parser.add_argument(
|
|
521
|
+
"--list", dest="list_templates", action="store_true",
|
|
522
|
+
help="List available templates and exit",
|
|
523
|
+
)
|
|
524
|
+
parser.add_argument(
|
|
525
|
+
"--describe", default=None, metavar="SLUG",
|
|
526
|
+
help="Show details for one template and exit",
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
args = parser.parse_args(argv)
|
|
530
|
+
|
|
531
|
+
# Informational flags — short-circuit before any prompting.
|
|
532
|
+
if args.list_templates:
|
|
533
|
+
print_template_list()
|
|
534
|
+
return 0
|
|
535
|
+
if args.describe:
|
|
536
|
+
return _print_template_describe(args.describe)
|
|
537
|
+
|
|
538
|
+
try:
|
|
539
|
+
return _run_create(
|
|
540
|
+
args.project_name,
|
|
541
|
+
args.output_dir,
|
|
542
|
+
args.no_git,
|
|
543
|
+
args.template,
|
|
544
|
+
)
|
|
545
|
+
except KeyboardInterrupt:
|
|
546
|
+
print("\n\n Cancelled.\n")
|
|
547
|
+
return 0
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
if __name__ == "__main__":
|
|
551
|
+
try:
|
|
552
|
+
sys.exit(main())
|
|
553
|
+
except KeyboardInterrupt:
|
|
554
|
+
print("\n\n Cancelled.\n")
|
|
555
|
+
sys.exit(0)
|