generic-ml-wrapper 0.5.0__tar.gz → 0.6.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.
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/CHANGELOG.md +37 -1
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/PKG-INFO +1 -1
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/ROADMAP.md +77 -13
- generic_ml_wrapper-0.6.0/VERSION +1 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/CLI.md +64 -7
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/WORKFLOWS.md +22 -5
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/pyproject.toml +1 -1
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/__init__.py +1 -1
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/app.py +155 -5
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/index.py +1 -0
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_guided_chooser.py +53 -0
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_workflow_chooser.py +53 -0
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/adapter/outbound/status/claude_status_parser.py +125 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/status/cursor_status_parser.py +8 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/workflow/filesystem_workflow_source.py +71 -2
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/client_status.py +15 -1
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/application/domain/model/draft.py +27 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/statusline_renderer.py +39 -1
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/edit_workflow.py +3 -0
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/application/port/inbound/new_workflow.py +87 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/workflow_source.py +54 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/edit_workflow.py +16 -3
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/application/usecase/new_workflow.py +172 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/wiring/composition.py +20 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/paths.py +5 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/i18n/en.json +14 -2
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/i18n/fr.json +14 -2
- generic_ml_wrapper-0.6.0/src/generic_ml_wrapper/resources/workflows/create-workflow/guided.md +60 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/workflows/create-workflow/workflow.md +20 -8
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_authoring_separation.py +3 -2
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_cli.py +166 -9
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_edit_workflow_usecase.py +25 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_filesystem_workflow_source.py +45 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_list_workflows_usecase.py +13 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_model_invariants.py +5 -0
- generic_ml_wrapper-0.6.0/tests/test_new_workflow_usecase.py +229 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_start_job_usecase.py +13 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_statusline.py +53 -6
- generic_ml_wrapper-0.6.0/tests/test_tty_guided_chooser.py +50 -0
- generic_ml_wrapper-0.6.0/tests/test_tty_workflow_chooser.py +59 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/uv.lock +1 -1
- generic_ml_wrapper-0.5.0/VERSION +0 -1
- generic_ml_wrapper-0.5.0/src/generic_ml_wrapper/adapter/outbound/status/claude_status_parser.py +0 -76
- generic_ml_wrapper-0.5.0/src/generic_ml_wrapper/application/port/inbound/new_workflow.py +0 -48
- generic_ml_wrapper-0.5.0/src/generic_ml_wrapper/application/usecase/new_workflow.py +0 -111
- generic_ml_wrapper-0.5.0/tests/test_new_workflow_usecase.py +0 -122
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.coveragerc +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.gitattributes +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.github/workflows/ci.yml +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.github/workflows/pr-hygiene.yml +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.github/workflows/release.yml +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.github/workflows/sonar.yml +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.gitignore +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.importlinter +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/.pre-commit-config.yaml +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/AGENTS.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/CODE_OF_CONDUCT.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/CONTRIBUTING.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/GOVERNANCE.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/LICENSE +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/NOTICE +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/README.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/RELEASE.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/SECURITY.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/CLIENTS.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/CONFIGURATION.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/DESIGN.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/TROUBLESHOOTING.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/USER_GUIDE.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/images/gmlw-favicon.svg +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/images/gmlw-lockup-dark.svg +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/images/gmlw-lockup.svg +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/images/gmlw-statusline.gif +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/images/gmlw-usage.gif +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/tapes/README.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/tapes/render.sh +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/tapes/seed.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/tapes/statusline.tape +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/docs/tapes/usage.tape +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/hatch_build.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/noxfile.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/pyrightconfig.json +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/sonar-project.properties +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/banner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/help_topics.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/inbound/cli/hints.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/filesystem_layout_migrator.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/filesystem_layout_seeder.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/http_client_versions.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/path_client_detector.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/subprocess_command_runner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/system_clipboard.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_client_setup.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_language_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_persona_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_prompt.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/bootstrap/tty_text_prompt.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/claude_cli_caller.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/codex_cli_caller.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/context_file.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/context_opening.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/cursor_cli_caller.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/default_provider.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/loader.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/status_line_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/vibe_cli_caller.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/caller/vibe_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/compress/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/compress/cache_backed_compressor.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/config/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/config/tomlkit_config_writer.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/credentials/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/credentials/filesystem_credentials_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/gateway/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/gateway/anthropic_sse.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/gateway/openai_chat.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/gateway/openai_responses.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/gateway/relay.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/hook/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/hook/session_logger.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/interceptor/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/interceptor/size_logger.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/persona/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/persona/filesystem_persona_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/plugin/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/plugin/filesystem_plugin_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/status/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/filesystem_transcript_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/ledger.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/sqlite_per_turn_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/sqlite_session_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/store/sqlite_usage_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/workflow/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/workspace/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/adapter/outbound/workspace/local_workspace_inspector.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/client_catalog.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/context_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/identifiers.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/learned.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/migration.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/persona.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/plugin.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/rules.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/run.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/session.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/turn_usage.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/model/workspace.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/greeting.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/hook.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/hook_runner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/interceptor.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/interceptor_chain.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/persona_parser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/rule_cleaner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/domain/service/session_naming.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/bootstrap.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/check_client_ready.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/config_commands.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/export_usage.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/init.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/list_jobs.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/list_personas.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/list_plugins.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/list_sessions.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/list_workflows.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/migrate_layout.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/render_greeting.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/render_statusline.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/set_credential.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/inbound/start_job.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/cli_caller.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/client_detector.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/client_setup.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/client_status.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/client_version.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/clipboard.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/command_runner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/config_writer.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/context_compressor.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/credentials_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/hook.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/interceptor.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/language_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/layout_migrator.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/layout_seeder.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/per_turn_metering.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/persona_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/persona_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/plugin_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/session_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/text_prompt.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/transcript.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/usage_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/port/outbound/workspace.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/bootstrap.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/check_client_ready.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/export_usage.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/init.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/launch.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/list_jobs.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/list_personas.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/list_plugins.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/list_sessions.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/list_workflows.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/migrate_layout.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/render_greeting.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/render_statusline.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/set_credential.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/start_job.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/usecase/update_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/application/wiring/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/__init__.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/i18n.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/log.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/settings_registry.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/common/spec_loader.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/py.typed +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/_floor.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/butler.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/companion.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/mentor.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/plain.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/personas/terse.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/src/generic_ml_wrapper/resources/workflows/_common/base.md +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/_conformance.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/conftest.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_anthropic_sse.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_banner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_bootstrap.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_cache_backed_compressor.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_caller_loader.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_callers.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_check_client_ready.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_client_catalog.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_client_versions.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_context_file.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_context_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_credentials_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_cursor_status_parser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_docs_consistency.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_exit_handling.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_export_usage_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_filesystem_persona_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_filesystem_plugin_source.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_filesystem_transcript_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_greeting.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_hook_runner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_i18n.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_identifiers.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_init_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_interceptor_chain.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_layout_migrator.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_learned.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_list_jobs_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_list_personas_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_list_plugins_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_list_sessions_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_local_workspace_inspector.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_log.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_migrate_layout_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_openai_chat.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_openai_responses.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_path_client_detector.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_persona_parser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_relay.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_render_greeting_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_rule_cleaner.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_session_logger.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_session_naming.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_settings_registry.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_size_logger.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_smoke.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_sqlite_per_turn_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_sqlite_session_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_sqlite_usage_store.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_status_line_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_store_conformance.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_tty_client_setup.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_tty_language_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_tty_persona_chooser.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_tty_prompt.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_tty_text_prompt.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_update_config_usecase.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_version.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tests/test_vibe_config.py +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tools/hooks/check-commit-msg.sh +0 -0
- {generic_ml_wrapper-0.5.0 → generic_ml_wrapper-0.6.0}/tools/hooks/guard-branch.sh +0 -0
|
@@ -6,6 +6,41 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.6.0] - 2026-07-19
|
|
10
|
+
|
|
11
|
+
The workflow, made first-class — a direct way to run one, name-at-the-end authoring, and
|
|
12
|
+
a guided authoring experience — plus a truthful context meter on the status line.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`run <workflow>`.** Launch a workflow directly: the job is named after the workflow
|
|
16
|
+
and its sessions accumulate there — the recurring-procedure counterpart to `start`
|
|
17
|
+
(which enters a job you return to), equivalent to `gmlw start <workflow> -w <workflow>`.
|
|
18
|
+
With no workflow given, a trigger-gated pre-launch chooser offers the authored ones at a
|
|
19
|
+
terminal and echoes the equivalent one-liner so interactive use teaches the fast path;
|
|
20
|
+
full argv never prompts, and a non-interactive run degrades cleanly.
|
|
21
|
+
- **`workflow new` decides the name at the end.** The name is optional and proposed at the
|
|
22
|
+
end of the interview, not demanded up front. Authoring runs in a private draft folder
|
|
23
|
+
under `~/.gmlw/drafts/` (sessions accumulate under `create-workflow`); on a finished
|
|
24
|
+
marker, gmlw atomically deploys the draft into `~/.gmlw/workflows/<name>/`, so a
|
|
25
|
+
half-authored workflow never appears in `workflow list` or `run`. A name given up front
|
|
26
|
+
is a seed that fails fast on a collision; a name taken at deploy, or an unfinished
|
|
27
|
+
session, keeps the draft and points at `workflow edit`.
|
|
28
|
+
- **Guided authoring.** `workflow new` / `edit` offer a richer, facilitative guide — a
|
|
29
|
+
parking lot for tangents, a diverge→converge rhythm, process-leveling ("a step, or its
|
|
30
|
+
own workflow?"), proposing the upstream/downstream stages you left out, with
|
|
31
|
+
anti-railroading and consent-gate guardrails, and distilled-state files (`draft.md`,
|
|
32
|
+
`parking-lot.md`) so a long session survives context compaction. The choice is asked on
|
|
33
|
+
every interactive run (Enter takes guided); `--guided` / `--quick` answer up front, and a
|
|
34
|
+
non-interactive run defaults to quick. The guide is injected only when chosen, so quick
|
|
35
|
+
is genuinely cheaper.
|
|
36
|
+
- **Status line: a truthful context meter.** The claude status line now shows the
|
|
37
|
+
denominator — `ctx 155.6k/200k (78%)` instead of a bare percentage — so a window
|
|
38
|
+
under-reported behind the metering relay (which looks like a gateway, capping the
|
|
39
|
+
reported window at 200k) is visible. Rate-limit windows also render their time-to-reset
|
|
40
|
+
(`5h 90% (↻ 12m) · wk 40% (↻ 3d)`) from `resets_at`, since a percentage without a reset
|
|
41
|
+
time is not actionable. Both degrade to the previous output when a client omits the
|
|
42
|
+
fields; the cursor parser reads the same context shape.
|
|
43
|
+
|
|
9
44
|
## [0.5.0] - 2026-07-19
|
|
10
45
|
|
|
11
46
|
Discoverability and progressive disclosure — shortening time-to-first-session and
|
|
@@ -223,7 +258,8 @@ First public release — a metering wrapper around ML coding CLIs.
|
|
|
223
258
|
over `src` and `tests`; `nox` gates mirrored by CI across Python 3.11–3.14; a
|
|
224
259
|
server-side no-AI-attribution check and branch protection.
|
|
225
260
|
|
|
226
|
-
[Unreleased]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.
|
|
261
|
+
[Unreleased]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.6.0...HEAD
|
|
262
|
+
[0.6.0]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.5.0...v0.6.0
|
|
227
263
|
[0.5.0]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.4.0...v0.5.0
|
|
228
264
|
[0.4.0]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.3.0...v0.4.0
|
|
229
265
|
[0.3.0]: https://github.com/danielslobozian/generic-ml-wrapper/compare/v0.2.0...v0.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: generic-ml-wrapper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A wrapper around an ML coding CLI: enter at a job, get a named resumable session, optionally driven by a workflow.
|
|
5
5
|
Project-URL: Homepage, https://github.com/danielslobozian/generic-ml-wrapper
|
|
6
6
|
Project-URL: Repository, https://github.com/danielslobozian/generic-ml-wrapper
|
|
@@ -148,9 +148,9 @@ costume and makeup, briefs the director, then cedes the screen ([[wrapper-not-st
|
|
|
148
148
|
|
|
149
149
|
Deferred but homed: a detached model call to synthesise a `role.md` for an unfamiliar role
|
|
150
150
|
(e.g. product owner) is a natural future consumer of the 0.3.0 `pre-launch` seam — parked,
|
|
151
|
-
not built. **Persona *previews* moved to 0.
|
|
151
|
+
not built. **Persona *previews* moved to 0.8.0** — sample lines are only worth shipping once
|
|
152
152
|
the personas behind them are proven to actually differ, and doing them in French requires
|
|
153
|
-
localising persona content, which is the same job (see 0.
|
|
153
|
+
localising persona content, which is the same job (see 0.8.0).
|
|
154
154
|
|
|
155
155
|
### 0.5.0 — discoverability & progressive disclosure
|
|
156
156
|
Reframed around the real metric for a new user: **time to a first live session**, and then
|
|
@@ -219,14 +219,68 @@ model of their own process.
|
|
|
219
219
|
against railroading a novice and a **consent gate** on anything personal. Authoring
|
|
220
220
|
keeps distilled state (a draft plus the parking lot) as files in the workflow folder,
|
|
221
221
|
so it survives context compaction.
|
|
222
|
-
- **Per-workflow persona, composed as voice over method** — a workflow can carry its own
|
|
223
|
-
persona instead of the single global tone. Persona is **manner**; the authoring
|
|
224
|
-
behavior above is **method**. They compose by layer: the method lives in the mode
|
|
225
|
-
floor (guaranteed, persona-independent), and the persona colors delivery on top — it
|
|
226
|
-
can voice the invariants but not break them. Personas carry an **authoring-friendliness**
|
|
227
|
-
expectation, so a voice built around brutal efficiency can't sabotage the facilitation.
|
|
228
222
|
|
|
229
|
-
|
|
223
|
+
#### Statusline — render the data Claude Code already hands us
|
|
224
|
+
A separate, self-contained thread riding in this release: the status payload gmlw
|
|
225
|
+
receives already carries more than it displays, and two of those fields are parsed out
|
|
226
|
+
and dropped. No new plumbing — the data arrives at the status parser today; the fix is to
|
|
227
|
+
keep it and render it. Claude-first (the cursor parser shares the context shape and
|
|
228
|
+
benefits where the fields overlap); codex and vibe pipe no status payload, so this
|
|
229
|
+
degrades honestly rather than fabricating a denominator.
|
|
230
|
+
|
|
231
|
+
- **Show the denominator** — today gmlw renders a bare `78%` against an *unstated*
|
|
232
|
+
window size. The payload also carries `context_window_size` (200k default, 1M for
|
|
233
|
+
extended-context models), so render `155.6k/200k (78%)` instead. This is what makes the
|
|
234
|
+
percentage falsifiable: a Max user who sees `/200k` knows the window is being
|
|
235
|
+
under-reported (the metering relay looks like a gateway, so Claude Code can't verify 1M
|
|
236
|
+
support and budgets 200k) and can act on it themselves. Extend the client status with
|
|
237
|
+
`context_window_size` and `context_tokens`.
|
|
238
|
+
- **Quota: time-to-reset, not just percentage** — `5h 90%` is unactionable without
|
|
239
|
+
knowing whether reset is in 10 minutes or 4 hours. The payload carries `resets_at`
|
|
240
|
+
(epoch seconds) per window; render it as a relative duration — `5h 90% (↻12m) · wk 40%
|
|
241
|
+
(↻3d)`. Each window may be independently absent (subscriber-only, appears after the
|
|
242
|
+
first response), so tolerate a missing reset per field exactly as the percentage
|
|
243
|
+
already is. The single most decision-relevant pair a metering wrapper can show.
|
|
244
|
+
- **Baseline & drift (candidate)** — a session that opens at 26% full looks identical to
|
|
245
|
+
one at 5% until it's too late. A pre-launch / first-turn line surfacing the baseline
|
|
246
|
+
cost (tools · mcp · skills), and a note when the baseline drifts upward across a client
|
|
247
|
+
auto-update. Softer than the two above; carried as a candidate, not a commitment.
|
|
248
|
+
|
|
249
|
+
### 0.7.0 — TUI refactoring: the terminal UX as one system
|
|
250
|
+
The discoverability surfaces landed piecemeal across 0.4.0–0.6.0 — the first-run chooser, the
|
|
251
|
+
bare-`gmlw` index, `help` topics, `config list`, the exit receipt, the ambient card, the
|
|
252
|
+
pre-launch workflow chooser. Each was built when its feature needed it. This release stops
|
|
253
|
+
adding surfaces and makes the ones that exist read as **one system**: a consistency and
|
|
254
|
+
quality pass over the terminal UX, from the design deliverable in `generic-ml-wrapper-030-ui-concepts.md`.
|
|
255
|
+
|
|
256
|
+
**Not a TUI app.** The curses/full-screen "Hub" (that doc's Concept 3) stays **dropped** — it
|
|
257
|
+
carries the only real dependency bill, and a persistent full-screen surface pulls against
|
|
258
|
+
[[wrapper-not-standalone]]. "TUI refactoring" here means refactoring the *text* UX gmlw already
|
|
259
|
+
owns, not adopting a widget toolkit. gmlw's UI lives only on the five legal surfaces and never
|
|
260
|
+
as a persistent UI over a live session.
|
|
261
|
+
|
|
262
|
+
- **The five surfaces, made consistent** — utility commands (S1), pre-launch (S2), the handoff
|
|
263
|
+
(S3), ambient in-client greeting/statusline (S4), and **the return** (S5). Audit each for the
|
|
264
|
+
house rules the codebase already implies: chrome to stderr so stdout stays clean for `--json`,
|
|
265
|
+
non-TTY degrades to silent/scriptable, and anything shown at the handoff (S3, instantly wiped)
|
|
266
|
+
is duplicated at S4/S5 so nothing is lost.
|
|
267
|
+
- **Next-action footers everywhere** — the core mechanic of the enriched CLI: every
|
|
268
|
+
run-and-return command ends with 1–2 contextual next commands, so discovery rides on commands
|
|
269
|
+
the user already runs. Make it uniform across *all* listings/inspections, not just the ones
|
|
270
|
+
that happen to have it.
|
|
271
|
+
- **The chooser teaches the fast path** — the pre-launch chooser always echoes the equivalent
|
|
272
|
+
one-liner before handoff, and `?` at any prompt prints the relevant `help` topic inline then
|
|
273
|
+
re-prompts, so interactive use graduates the user out of the chooser. Full argv still means
|
|
274
|
+
zero interaction, always.
|
|
275
|
+
- **Receipt / card parity** — the exit receipt (S5) and the ambient capability card (S4) must
|
|
276
|
+
describe the same command surface in the same vocabulary, so "what can gmlw do" gets the same
|
|
277
|
+
answer whether asked mid-session or read on the return. One suppressible, usage-driven tip per
|
|
278
|
+
return, rotated, never off-TTY.
|
|
279
|
+
- **A visual-consistency pass** — shared alignment, colour/emphasis conventions, and the
|
|
280
|
+
status-of vs manual split (statusline = ambient *state*; card = ambient *manual*) applied
|
|
281
|
+
uniformly, so the surfaces look like one product rather than several sittings.
|
|
282
|
+
|
|
283
|
+
### 0.8.0 — personas, proven (and multilingual)
|
|
230
284
|
Today "personas shape tone" is an **untested claim**. A persona ships a tone block, but
|
|
231
285
|
nothing demonstrates that `mentor` and `terse` actually answer differently — and the tone
|
|
232
286
|
block is injected *on top of* each client's own system prompt, which may simply swamp it.
|
|
@@ -249,6 +303,15 @@ is an evaluation loop, not a feature.
|
|
|
249
303
|
block, re-run, watch the matrix separate. The honest possible outcome is that personas must
|
|
250
304
|
become **bolder** to survive a client's own voice — or that they differentiate on some
|
|
251
305
|
clients and not others. That finding is a deliverable, not a failure.
|
|
306
|
+
- **Per-workflow persona, composed as voice over method** — a workflow can carry its own
|
|
307
|
+
persona instead of the single global tone. Persona is **manner**; the facilitative +
|
|
308
|
+
constructive authoring behavior (0.6.0) is **method**. They compose by layer: the method
|
|
309
|
+
lives in the mode floor (guaranteed, persona-independent), and the persona colors delivery
|
|
310
|
+
on top — it can voice the invariants but not break them. Personas carry an
|
|
311
|
+
**authoring-friendliness** expectation, so a voice built around brutal efficiency can't
|
|
312
|
+
sabotage the facilitation. *Landed here, after the harness proves the personas actually
|
|
313
|
+
differ* — layering per-workflow persona on top of personas that collapse would build on
|
|
314
|
+
sand, so composition follows the proof rather than preceding it.
|
|
252
315
|
- **Persona content becomes multilingual** — required for previews in French, and a real gap
|
|
253
316
|
today: only the *prompt header* is localised, so a French user gets an English description
|
|
254
317
|
and an **English greeting at every launch**. This is not a strings port: French carries a
|
|
@@ -267,10 +330,11 @@ is an evaluation loop, not a feature.
|
|
|
267
330
|
the full side-by-side behind `gmlw persona preview`. Samples are labelled as indicative:
|
|
268
331
|
they come from one model at authoring time, and the user's client may differ.
|
|
269
332
|
|
|
270
|
-
**Sequencing
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
333
|
+
**Sequencing, resolved:** *per-workflow persona* used to sit in 0.6.0, ahead of the release
|
|
334
|
+
that proves personas are distinct at all — building composition on an unproven foundation. It
|
|
335
|
+
now lives here in 0.8.0, after the harness and the tuning, so the composition follows the
|
|
336
|
+
proof. If the matrix shows personas collapse even after tuning, per-workflow persona is
|
|
337
|
+
reconsidered in place rather than shipped on sand.
|
|
274
338
|
|
|
275
339
|
## Parked
|
|
276
340
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.6.0
|
|
@@ -11,11 +11,12 @@ and flag. For deeper behaviour, follow the cross-links to [CONFIGURATION.md](CON
|
|
|
11
11
|
gmlw init # forced first-run setup (auto-runs when needed)
|
|
12
12
|
gmlw <job> # shorthand for: gmlw start <job>
|
|
13
13
|
gmlw start [job] [--client X] [--resume-latest] [--workflow|-w NAME]
|
|
14
|
+
gmlw run [workflow] [--client X] # run a workflow directly (job named after it)
|
|
14
15
|
gmlw jobs [--json]
|
|
15
16
|
gmlw sessions <job> [--json]
|
|
16
17
|
gmlw export <job> [--json]
|
|
17
18
|
gmlw statusline # called by the client, not by hand
|
|
18
|
-
gmlw workflow new
|
|
19
|
+
gmlw workflow new [name] [--client X] [--guided|--quick] # name optional; asks depth if unset
|
|
19
20
|
gmlw workflow list [--json]
|
|
20
21
|
gmlw persona list [--json]
|
|
21
22
|
gmlw plugins list [--json]
|
|
@@ -113,6 +114,35 @@ Example:
|
|
|
113
114
|
gmlw start billing-api --client claude -w tidy-review --resume-latest
|
|
114
115
|
```
|
|
115
116
|
|
|
117
|
+
## run
|
|
118
|
+
|
|
119
|
+
Run a workflow directly. The job is named after the workflow and its sessions accumulate
|
|
120
|
+
there, so `run` is the counterpart to `start` for a *recurring procedure* — where `start`
|
|
121
|
+
enters a job you return to, `run` launches a repeatable workflow. It is equivalent to
|
|
122
|
+
`gmlw start <workflow> -w <workflow>`.
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
gmlw run [workflow] [--client CLIENT]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
- `workflow` (optional positional) — the workflow to run. With no workflow given, `run`
|
|
129
|
+
offers a chooser at an interactive terminal and, once you pick, echoes the equivalent
|
|
130
|
+
one-liner (`gmlw run <workflow>`) so the interactive path teaches the fast one. Off a
|
|
131
|
+
terminal (piped/scripted), or when you decline, it prints a guide and exits 2 rather
|
|
132
|
+
than blocking. Full argv (`gmlw run <workflow>`) never prompts. With no workflows
|
|
133
|
+
authored yet, it points you at `gmlw workflow new <name>`.
|
|
134
|
+
- `--client CLIENT` — which client to wrap (`claude`, `cursor`, `codex`, `vibe`).
|
|
135
|
+
Defaults to the configured default client, or `claude`. See [CLIENTS.md](CLIENTS.md).
|
|
136
|
+
|
|
137
|
+
Like `start`, `run` preflights the working directory and the client before launching, and
|
|
138
|
+
reports an unknown workflow cleanly. See [WORKFLOWS.md](WORKFLOWS.md).
|
|
139
|
+
|
|
140
|
+
Example:
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
gmlw run nightly-etl
|
|
144
|
+
```
|
|
145
|
+
|
|
116
146
|
## jobs
|
|
117
147
|
|
|
118
148
|
List the jobs with recorded activity. Authoring sessions (`workflow new`) are hidden.
|
|
@@ -182,24 +212,49 @@ status line is installed and parsed.
|
|
|
182
212
|
Author and list workflows. Invoked with no action, prints its own help.
|
|
183
213
|
|
|
184
214
|
```
|
|
185
|
-
gmlw workflow new
|
|
186
|
-
gmlw workflow edit <name> [--client CLIENT]
|
|
215
|
+
gmlw workflow new [name] [--client CLIENT] [--guided | --quick]
|
|
216
|
+
gmlw workflow edit <name> [--client CLIENT] [--guided | --quick]
|
|
187
217
|
gmlw workflow list [--json]
|
|
188
218
|
```
|
|
189
219
|
|
|
190
220
|
### workflow new
|
|
191
221
|
|
|
192
222
|
Author a new workflow by running the shipped `create-workflow` meta-workflow as a
|
|
193
|
-
metered authoring session (no job — it is hidden from `gmlw jobs
|
|
194
|
-
|
|
195
|
-
|
|
223
|
+
metered authoring session (no job — it is hidden from `gmlw jobs`; sessions accumulate
|
|
224
|
+
under `create-workflow`).
|
|
225
|
+
|
|
226
|
+
The workflow's name is decided at the **end** of the interview, not the start — forcing a
|
|
227
|
+
name up front presumes you already know the shape. So authoring happens in a private draft
|
|
228
|
+
folder under `~/.gmlw/drafts/`, and when the session marks the workflow finished, gmlw
|
|
229
|
+
deploys the draft into `~/.gmlw/workflows/<name>/` (an atomic move). A half-authored
|
|
230
|
+
workflow never appears in `workflow list` or `run`.
|
|
231
|
+
|
|
232
|
+
- `name` (positional, **optional**) — a suggested name. Omit it and the authoring session
|
|
233
|
+
proposes one at convergence. When given, it is only a seed (the session may rename it),
|
|
234
|
+
but it lets a known name **fail fast** on a collision before any work is done.
|
|
196
235
|
- `--client CLIENT` — which client to wrap; defaults to the configured default, or
|
|
197
236
|
`claude`.
|
|
237
|
+
- `--guided` / `--quick` — the authoring depth. **Guided** adds a facilitative
|
|
238
|
+
consultant layer (a parking lot for tangents, diverge→converge, process-leveling,
|
|
239
|
+
proposing the stages you left out) and keeps distilled state on disk so a long session
|
|
240
|
+
survives compaction — richer, and it costs a bit more. **Quick** is the lean interview.
|
|
241
|
+
With neither flag, an interactive run **asks** (Enter takes guided); a non-interactive
|
|
242
|
+
run defaults to quick. Passing a flag skips the prompt.
|
|
243
|
+
|
|
244
|
+
On the return, gmlw reports how the draft resolved:
|
|
245
|
+
|
|
246
|
+
- **deployed** — the workflow was named, finished, and moved into place; run it with
|
|
247
|
+
`gmlw run <name>`.
|
|
248
|
+
- **name already taken** — the draft is kept under `~/.gmlw/drafts/`; change the existing
|
|
249
|
+
workflow with `gmlw workflow edit <name>` instead.
|
|
250
|
+
- **not finished** — the session left no finished marker; the draft is kept so nothing is
|
|
251
|
+
lost.
|
|
198
252
|
|
|
199
253
|
Example:
|
|
200
254
|
|
|
201
255
|
```
|
|
202
|
-
gmlw workflow new
|
|
256
|
+
gmlw workflow new # interview, name it at the end, gmlw deploys it
|
|
257
|
+
gmlw workflow new tidy-review # same, but seed the name (fails fast if it exists)
|
|
203
258
|
```
|
|
204
259
|
|
|
205
260
|
### workflow edit
|
|
@@ -211,6 +266,8 @@ its `workflow.md`. An unknown workflow exits non-zero with guidance.
|
|
|
211
266
|
- `name` (positional, required) — the workflow to edit.
|
|
212
267
|
- `--client CLIENT` — which client to wrap; defaults to the configured default, or
|
|
213
268
|
`claude`.
|
|
269
|
+
- `--guided` / `--quick` — the authoring depth, exactly as for `workflow new` (an
|
|
270
|
+
interactive run asks when neither is given).
|
|
214
271
|
|
|
215
272
|
Example:
|
|
216
273
|
|
|
@@ -12,11 +12,25 @@ If you have never authored one, you can ignore this file entirely and use
|
|
|
12
12
|
|
|
13
13
|
## Creating one
|
|
14
14
|
|
|
15
|
-
gmlw workflow new
|
|
15
|
+
gmlw workflow new # name it at the end
|
|
16
|
+
gmlw workflow new <name> # or seed a name up front (optional)
|
|
16
17
|
|
|
17
18
|
This runs the shipped `create-workflow` meta-workflow as a metered **authoring**
|
|
18
|
-
session (kind `authoring`, so it stays hidden from `gmlw jobs
|
|
19
|
-
|
|
19
|
+
session (kind `authoring`, so it stays hidden from `gmlw jobs`; sessions accumulate
|
|
20
|
+
under `create-workflow`). The name is decided at the **end** of the interview, not the
|
|
21
|
+
start — a name given up front is only a seed you can change (though it lets a known name
|
|
22
|
+
fail fast if it is already taken). It is a warm, one-question-at-a-time interview, not a
|
|
23
|
+
form.
|
|
24
|
+
|
|
25
|
+
**Guided or quick.** Creating a workflow well is the part that pays off — a well-shaped
|
|
26
|
+
one makes every future run smoother — so at the start you choose the depth: **guided**
|
|
27
|
+
adds a facilitative consultant (a parking lot for tangents, a diverge→converge rhythm,
|
|
28
|
+
process-leveling on "is this a step or its own workflow?", and proposing the stages you
|
|
29
|
+
left out), keeping a `draft.md` and `parking-lot.md` on disk so a long session survives
|
|
30
|
+
compaction — richer, and a bit costlier. **quick** is the lean interview. An interactive
|
|
31
|
+
run asks (Enter takes guided); `--guided` / `--quick` answer up front, and a
|
|
32
|
+
non-interactive run defaults to quick. The steps below are the quick core; guided layers
|
|
33
|
+
on top of them. It:
|
|
20
34
|
|
|
21
35
|
1. **Interviews you** about a task you do repeatedly — what it's for, how you do it
|
|
22
36
|
today start to finish, what "done" looks like, and what you always check. It keeps
|
|
@@ -32,8 +46,11 @@ one-question-at-a-time interview, not a form. It:
|
|
|
32
46
|
approve each one; a scripted step then becomes "run `scripts/<name>`" instead of
|
|
33
47
|
re-reasoning it every run — faster, cheaper, reliable. Judgment steps stay with
|
|
34
48
|
the model.
|
|
35
|
-
4. **
|
|
36
|
-
it.
|
|
49
|
+
4. **Names it and writes `workflow.md`** into a private draft folder
|
|
50
|
+
(`~/.gmlw/drafts/`), then proposes the workflow's name and marks it finished. gmlw
|
|
51
|
+
deploys the finished draft into `~/.gmlw/workflows/<name>/` (an atomic move) and tells
|
|
52
|
+
you how to run it. A half-authored workflow never appears in `workflow list` or `run`;
|
|
53
|
+
if the name is taken, the draft is kept and you are pointed at `gmlw workflow edit`.
|
|
37
54
|
|
|
38
55
|
You can pass `--client X` to author under a specific client. See [CLI.md](CLI.md) for
|
|
39
56
|
the full command surface.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "generic-ml-wrapper"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.6.0"
|
|
8
8
|
description = "A wrapper around an ML coding CLI: enter at a job, get a named resumable session, optionally driven by a workflow."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -27,6 +27,7 @@ from generic_ml_wrapper.adapter.inbound.cli.help_topics import (
|
|
|
27
27
|
)
|
|
28
28
|
from generic_ml_wrapper.adapter.inbound.cli.hints import next_hint
|
|
29
29
|
from generic_ml_wrapper.adapter.inbound.cli.index import render_index
|
|
30
|
+
from generic_ml_wrapper.adapter.outbound.bootstrap.tty_guided_chooser import GUIDED
|
|
30
31
|
from generic_ml_wrapper.adapter.outbound.caller.status_line_config import SettingsUnreadableError
|
|
31
32
|
from generic_ml_wrapper.adapter.outbound.credentials.filesystem_credentials_store import (
|
|
32
33
|
CredentialsUnreadableError,
|
|
@@ -57,8 +58,10 @@ from generic_ml_wrapper.application.port.inbound.list_jobs import JobSummary
|
|
|
57
58
|
from generic_ml_wrapper.application.port.inbound.list_sessions import SessionSummary
|
|
58
59
|
from generic_ml_wrapper.application.port.inbound.new_workflow import (
|
|
59
60
|
NewWorkflowCommand,
|
|
61
|
+
NewWorkflowResult,
|
|
60
62
|
WorkflowExistsError,
|
|
61
63
|
WorkflowNameError,
|
|
64
|
+
WorkflowOutcome,
|
|
62
65
|
)
|
|
63
66
|
from generic_ml_wrapper.application.port.inbound.set_credential import SetCredentialCommand
|
|
64
67
|
from generic_ml_wrapper.application.port.inbound.start_job import (
|
|
@@ -73,6 +76,7 @@ from generic_ml_wrapper.application.wiring.composition import (
|
|
|
73
76
|
build_config_commands,
|
|
74
77
|
build_edit_workflow,
|
|
75
78
|
build_export_usage,
|
|
79
|
+
build_guided_chooser,
|
|
76
80
|
build_init,
|
|
77
81
|
build_list_jobs,
|
|
78
82
|
build_list_personas,
|
|
@@ -85,6 +89,7 @@ from generic_ml_wrapper.application.wiring.composition import (
|
|
|
85
89
|
build_render_statusline,
|
|
86
90
|
build_set_credential,
|
|
87
91
|
build_start_job,
|
|
92
|
+
build_workflow_chooser,
|
|
88
93
|
)
|
|
89
94
|
from generic_ml_wrapper.common import config, i18n, paths, settings_registry
|
|
90
95
|
from generic_ml_wrapper.common.log import configure as configure_logging
|
|
@@ -102,6 +107,25 @@ def _add_json_flag(parser: argparse.ArgumentParser) -> None:
|
|
|
102
107
|
parser.add_argument("--json", action="store_true", help="output as JSON instead of text")
|
|
103
108
|
|
|
104
109
|
|
|
110
|
+
def _add_guided_flags(parser: argparse.ArgumentParser) -> None:
|
|
111
|
+
"""Add the mutually-exclusive ``--guided`` / ``--quick`` authoring-depth flags.
|
|
112
|
+
|
|
113
|
+
With neither, an interactive authoring command prompts for the choice; either flag
|
|
114
|
+
answers it up front, so full argv never prompts.
|
|
115
|
+
"""
|
|
116
|
+
group = parser.add_mutually_exclusive_group()
|
|
117
|
+
group.add_argument(
|
|
118
|
+
"--guided",
|
|
119
|
+
action="store_true",
|
|
120
|
+
help="use the guided authoring experience (a facilitative guide; costs more)",
|
|
121
|
+
)
|
|
122
|
+
group.add_argument(
|
|
123
|
+
"--quick",
|
|
124
|
+
action="store_true",
|
|
125
|
+
help="use the lean interview (skip the guided experience)",
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
|
|
105
129
|
# The top-level subcommands. A first argv token that is none of these (and not a flag)
|
|
106
130
|
# is treated as a job name — `gmlw <job>` is shorthand for `gmlw start <job>`. Kept in
|
|
107
131
|
# sync with build_parser by a test.
|
|
@@ -109,6 +133,7 @@ _COMMANDS = frozenset(
|
|
|
109
133
|
{
|
|
110
134
|
"init",
|
|
111
135
|
"start",
|
|
136
|
+
"run",
|
|
112
137
|
"jobs",
|
|
113
138
|
"sessions",
|
|
114
139
|
"export",
|
|
@@ -227,6 +252,19 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
227
252
|
help="run a workflow on the job (see: gmlw workflow list)",
|
|
228
253
|
)
|
|
229
254
|
|
|
255
|
+
run = sub.add_parser("run", help="run a workflow directly (the job is named after it)")
|
|
256
|
+
run.add_argument(
|
|
257
|
+
"workflow",
|
|
258
|
+
nargs="?",
|
|
259
|
+
default=None,
|
|
260
|
+
help="the workflow to run (omit to choose one; see: gmlw workflow list)",
|
|
261
|
+
)
|
|
262
|
+
run.add_argument(
|
|
263
|
+
"--client",
|
|
264
|
+
default=None,
|
|
265
|
+
help="which client to wrap (default: the configured default, or claude)",
|
|
266
|
+
)
|
|
267
|
+
|
|
230
268
|
jobs = sub.add_parser("jobs", help="list the jobs with recorded activity")
|
|
231
269
|
_add_json_flag(jobs)
|
|
232
270
|
|
|
@@ -243,12 +281,18 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
243
281
|
workflow = sub.add_parser("workflow", help="author/list workflows")
|
|
244
282
|
workflow_sub = workflow.add_subparsers(dest="workflow_command", metavar="<action>")
|
|
245
283
|
new = workflow_sub.add_parser("new", help="author a new workflow (no job)")
|
|
246
|
-
new.add_argument(
|
|
284
|
+
new.add_argument(
|
|
285
|
+
"name",
|
|
286
|
+
nargs="?",
|
|
287
|
+
default=None,
|
|
288
|
+
help="a suggested name (optional; the session proposes one at the end)",
|
|
289
|
+
)
|
|
247
290
|
new.add_argument(
|
|
248
291
|
"--client",
|
|
249
292
|
default=None,
|
|
250
293
|
help="which client to wrap (default: the configured default, or claude)",
|
|
251
294
|
)
|
|
295
|
+
_add_guided_flags(new)
|
|
252
296
|
edit = workflow_sub.add_parser("edit", help="edit an existing workflow (no job)")
|
|
253
297
|
edit.add_argument("name", help="the workflow to edit")
|
|
254
298
|
edit.add_argument(
|
|
@@ -256,6 +300,7 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
256
300
|
default=None,
|
|
257
301
|
help="which client to wrap (default: the configured default, or claude)",
|
|
258
302
|
)
|
|
303
|
+
_add_guided_flags(edit)
|
|
259
304
|
workflow_list = workflow_sub.add_parser("list", help="list the runnable workflows")
|
|
260
305
|
_add_json_flag(workflow_list)
|
|
261
306
|
|
|
@@ -547,6 +592,8 @@ def _dispatch(resolved: list[str]) -> int: # noqa: PLR0911, PLR0912 (a per-com
|
|
|
547
592
|
return 0
|
|
548
593
|
if args.command == "start":
|
|
549
594
|
return _start(args)
|
|
595
|
+
if args.command == "run":
|
|
596
|
+
return _run(args)
|
|
550
597
|
if args.command == "statusline":
|
|
551
598
|
return _statusline()
|
|
552
599
|
if args.command == "workflow":
|
|
@@ -911,6 +958,67 @@ def _start(args: argparse.Namespace) -> int:
|
|
|
911
958
|
return result.exit_code
|
|
912
959
|
|
|
913
960
|
|
|
961
|
+
def _run(args: argparse.Namespace) -> int:
|
|
962
|
+
"""Run a workflow directly: the job is named after it and its sessions accumulate.
|
|
963
|
+
|
|
964
|
+
``gmlw run <workflow>`` is the recurring-procedure counterpart to ``gmlw start`` —
|
|
965
|
+
equivalent to ``gmlw start <workflow> -w <workflow>``. With no workflow given it
|
|
966
|
+
offers a chooser at a terminal (never off one), then echoes the one-liner so the
|
|
967
|
+
interactive path teaches the fast one; full argv never prompts.
|
|
968
|
+
"""
|
|
969
|
+
workflow = _resolve_workflow(args.workflow)
|
|
970
|
+
if workflow is None:
|
|
971
|
+
return 2
|
|
972
|
+
client = _client(args.client)
|
|
973
|
+
command = StartJobCommand(
|
|
974
|
+
job=JobId(workflow),
|
|
975
|
+
client=client,
|
|
976
|
+
resume_latest=False,
|
|
977
|
+
workflow=workflow,
|
|
978
|
+
)
|
|
979
|
+
if not _preflight_cwd(): # deleted working directory — the client would crash on getcwd
|
|
980
|
+
return 2
|
|
981
|
+
if not _preflight_client(client): # client not installed — guide, don't launch
|
|
982
|
+
return 2
|
|
983
|
+
with _client_owns_interrupts():
|
|
984
|
+
try:
|
|
985
|
+
result = build_start_job().execute(command)
|
|
986
|
+
except _Terminated:
|
|
987
|
+
return 143 # 128 + SIGTERM: terminated, but teardown ran
|
|
988
|
+
except (UnknownWorkflowError, ResumeNotSupportedError) as error:
|
|
989
|
+
print(i18n.t("error.generic", error=error))
|
|
990
|
+
return 2
|
|
991
|
+
farewell = _farewell()
|
|
992
|
+
if farewell:
|
|
993
|
+
print(farewell, file=sys.stderr)
|
|
994
|
+
_print_exit_receipt(result)
|
|
995
|
+
return result.exit_code
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
def _resolve_workflow(given: str | None) -> str | None:
|
|
999
|
+
"""Resolve the workflow to run: the given name, else an interactive choice.
|
|
1000
|
+
|
|
1001
|
+
Args:
|
|
1002
|
+
given: The workflow named on the command line, or ``None``.
|
|
1003
|
+
|
|
1004
|
+
Returns:
|
|
1005
|
+
The workflow name to run, or ``None`` when it could not be resolved (with
|
|
1006
|
+
guidance already printed to stderr).
|
|
1007
|
+
"""
|
|
1008
|
+
if given is not None:
|
|
1009
|
+
return str(given)
|
|
1010
|
+
names = build_list_workflows().execute()
|
|
1011
|
+
if not names: # nothing to run yet — point at authoring, not a picker with no options
|
|
1012
|
+
print(i18n.t("run.no_workflows"), file=sys.stderr)
|
|
1013
|
+
return None
|
|
1014
|
+
chosen = build_workflow_chooser().choose(names)
|
|
1015
|
+
if chosen is None: # declined, or no terminal to prompt on
|
|
1016
|
+
print(i18n.t("run.needs_workflow"), file=sys.stderr)
|
|
1017
|
+
return None
|
|
1018
|
+
print(i18n.t("run.echo", workflow=chosen), file=sys.stderr) # teach the fast path
|
|
1019
|
+
return chosen
|
|
1020
|
+
|
|
1021
|
+
|
|
914
1022
|
def _print_exit_receipt(result: StartJobResult) -> None:
|
|
915
1023
|
"""Print the exit receipt to stderr: this session's and the job's cost, then next steps.
|
|
916
1024
|
|
|
@@ -1092,15 +1200,42 @@ def _workflow(args: argparse.Namespace) -> int:
|
|
|
1092
1200
|
|
|
1093
1201
|
|
|
1094
1202
|
def _workflow_new(args: argparse.Namespace) -> int:
|
|
1095
|
-
"""Author a new workflow (guide instead of launching when the client isn't ready).
|
|
1203
|
+
"""Author a new workflow (guide instead of launching when the client isn't ready).
|
|
1204
|
+
|
|
1205
|
+
The name is optional — omit it and the authoring session proposes one at the end,
|
|
1206
|
+
after which gmlw deploys the draft. A name given up front is a seed that fails fast
|
|
1207
|
+
on a collision. The draft's fate on the return is reported from the result.
|
|
1208
|
+
"""
|
|
1096
1209
|
client = _client(args.client)
|
|
1097
1210
|
if not _preflight_client(client):
|
|
1098
1211
|
return 2
|
|
1212
|
+
name = None if args.name is None else str(args.name)
|
|
1213
|
+
guided = _resolve_guided(args)
|
|
1099
1214
|
try:
|
|
1100
|
-
|
|
1101
|
-
|
|
1215
|
+
result = build_new_workflow().execute(
|
|
1216
|
+
NewWorkflowCommand(name=name, client=client, guided=guided)
|
|
1217
|
+
)
|
|
1218
|
+
except WorkflowExistsError: # a seed name that already exists — point at editing it
|
|
1219
|
+
print(i18n.t("workflow.new.exists", name=name), file=sys.stderr)
|
|
1220
|
+
return 2
|
|
1221
|
+
except WorkflowNameError as error:
|
|
1102
1222
|
print(i18n.t("error.generic", error=error))
|
|
1103
1223
|
return 2
|
|
1224
|
+
_announce_new_workflow(result)
|
|
1225
|
+
return result.exit_code
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
def _announce_new_workflow(result: NewWorkflowResult) -> None:
|
|
1229
|
+
"""Report how an authoring session's draft resolved, on the return (to stderr)."""
|
|
1230
|
+
if result.outcome is WorkflowOutcome.DEPLOYED:
|
|
1231
|
+
print(i18n.t("workflow.new.deployed", name=result.name), file=sys.stderr)
|
|
1232
|
+
elif result.outcome is WorkflowOutcome.COLLISION:
|
|
1233
|
+
print(
|
|
1234
|
+
i18n.t("workflow.new.collision", name=result.name, draft=result.draft_path),
|
|
1235
|
+
file=sys.stderr,
|
|
1236
|
+
)
|
|
1237
|
+
else: # INCOMPLETE — no finished marker; the draft is kept so nothing is lost
|
|
1238
|
+
print(i18n.t("workflow.new.incomplete", draft=result.draft_path), file=sys.stderr)
|
|
1104
1239
|
|
|
1105
1240
|
|
|
1106
1241
|
def _workflow_edit(args: argparse.Namespace) -> int:
|
|
@@ -1108,14 +1243,29 @@ def _workflow_edit(args: argparse.Namespace) -> int:
|
|
|
1108
1243
|
client = _client(args.client)
|
|
1109
1244
|
if not _preflight_client(client):
|
|
1110
1245
|
return 2
|
|
1246
|
+
guided = _resolve_guided(args)
|
|
1111
1247
|
try:
|
|
1112
|
-
command = EditWorkflowCommand(name=str(args.name), client=client)
|
|
1248
|
+
command = EditWorkflowCommand(name=str(args.name), client=client, guided=guided)
|
|
1113
1249
|
return build_edit_workflow().execute(command)
|
|
1114
1250
|
except (WorkflowNameError, WorkflowNotFoundError) as error:
|
|
1115
1251
|
print(i18n.t("error.generic", error=error))
|
|
1116
1252
|
return 2
|
|
1117
1253
|
|
|
1118
1254
|
|
|
1255
|
+
def _resolve_guided(args: argparse.Namespace) -> bool:
|
|
1256
|
+
"""Resolve the authoring depth: the flag if given, else an interactive prompt.
|
|
1257
|
+
|
|
1258
|
+
``--guided`` / ``--quick`` answer up front (full argv never prompts). With neither, an
|
|
1259
|
+
interactive terminal is asked; off a terminal the chooser declines and we fall back to
|
|
1260
|
+
the lean interview.
|
|
1261
|
+
"""
|
|
1262
|
+
if args.guided:
|
|
1263
|
+
return True
|
|
1264
|
+
if args.quick:
|
|
1265
|
+
return False
|
|
1266
|
+
return build_guided_chooser().choose() == GUIDED # None (no TTY) → lean
|
|
1267
|
+
|
|
1268
|
+
|
|
1119
1269
|
def _persona(args: argparse.Namespace) -> int:
|
|
1120
1270
|
if args.persona_command == "list":
|
|
1121
1271
|
personas = build_list_personas().execute()
|
|
@@ -25,6 +25,7 @@ _GROUPS: tuple[tuple[str, tuple[tuple[str, str], ...]], ...] = (
|
|
|
25
25
|
("gmlw <job>", "index.desc.job"),
|
|
26
26
|
("gmlw start <job>", "index.desc.start"),
|
|
27
27
|
("gmlw start <job> -w <workflow>", "index.desc.run_workflow"),
|
|
28
|
+
("gmlw run <workflow>", "index.desc.run"),
|
|
28
29
|
),
|
|
29
30
|
),
|
|
30
31
|
(
|