orizu 0.5.19 → 0.5.21
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.
- package/README.md +23 -0
- package/dist/archive-artifacts-cli.d.ts +50 -0
- package/dist/archive-artifacts-cli.d.ts.map +1 -0
- package/dist/artifact-archive.d.ts +48 -0
- package/dist/artifact-archive.d.ts.map +1 -0
- package/dist/artifact-pull.d.ts +22 -0
- package/dist/artifact-pull.d.ts.map +1 -0
- package/dist/banner.d.ts +3 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/connectors-cli.d.ts +31 -0
- package/dist/connectors-cli.d.ts.map +1 -0
- package/dist/credentials.d.ts +46 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/csv.d.ts +49 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/dataset-download.d.ts +6 -0
- package/dist/dataset-download.d.ts.map +1 -0
- package/dist/dataset-edit-rows.d.ts +10 -0
- package/dist/dataset-edit-rows.d.ts.map +1 -0
- package/dist/dataset-upload-snapshot.d.ts +13 -0
- package/dist/dataset-upload-snapshot.d.ts.map +1 -0
- package/dist/daytona-slice-rehearsal.d.ts +89 -0
- package/dist/daytona-slice-rehearsal.d.ts.map +1 -0
- package/dist/daytona-slice.d.ts +106 -0
- package/dist/daytona-slice.d.ts.map +1 -0
- package/dist/deploy-key-merge-core.d.ts +121 -0
- package/dist/deploy-key-merge-core.d.ts.map +1 -0
- package/dist/diff-comments-cli.d.ts +12 -0
- package/dist/diff-comments-cli.d.ts.map +1 -0
- package/dist/diff-comments-cli.js +21 -2
- package/dist/egress-allowlist-cli.d.ts +23 -0
- package/dist/egress-allowlist-cli.d.ts.map +1 -0
- package/dist/egress-policy.d.ts +108 -0
- package/dist/egress-policy.d.ts.map +1 -0
- package/dist/error-response.d.ts +9 -0
- package/dist/error-response.d.ts.map +1 -0
- package/dist/file-parser.d.ts +5 -0
- package/dist/file-parser.d.ts.map +1 -0
- package/dist/gepa-engine-dispatch.d.ts +9 -0
- package/dist/gepa-engine-dispatch.d.ts.map +1 -0
- package/dist/gepa-engine-dispatch.js +307 -0
- package/dist/gepa-python-command.d.ts +6 -0
- package/dist/gepa-python-command.d.ts.map +1 -0
- package/dist/gepa-python-command.js +26 -0
- package/dist/gepa-python-paths.d.ts +6 -0
- package/dist/gepa-python-paths.d.ts.map +1 -0
- package/dist/gepa-python-paths.js +42 -0
- package/dist/git-credential.d.ts +69 -0
- package/dist/git-credential.d.ts.map +1 -0
- package/dist/git-recovery-environment.d.ts +31 -0
- package/dist/git-recovery-environment.d.ts.map +1 -0
- package/dist/github-setup.d.ts +122 -0
- package/dist/github-setup.d.ts.map +1 -0
- package/dist/global-flags.d.ts +12 -0
- package/dist/global-flags.d.ts.map +1 -0
- package/dist/help.d.ts +46 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/help.js +93 -25
- package/dist/hosted-boot.d.ts +273 -0
- package/dist/hosted-boot.d.ts.map +1 -0
- package/dist/hosted-bootstrap-rehearsal.d.ts +86 -0
- package/dist/hosted-bootstrap-rehearsal.d.ts.map +1 -0
- package/dist/hosted-bootstrap.d.ts +188 -0
- package/dist/hosted-bootstrap.d.ts.map +1 -0
- package/dist/hosted-broker-server.d.ts +50 -0
- package/dist/hosted-broker-server.d.ts.map +1 -0
- package/dist/hosted-git-http-server.d.ts +36 -0
- package/dist/hosted-git-http-server.d.ts.map +1 -0
- package/dist/hosted-harness-claude.d.ts +195 -0
- package/dist/hosted-harness-claude.d.ts.map +1 -0
- package/dist/hosted-harness-opencode.d.ts +227 -0
- package/dist/hosted-harness-opencode.d.ts.map +1 -0
- package/dist/hosted-harness.d.ts +118 -0
- package/dist/hosted-harness.d.ts.map +1 -0
- package/dist/hosted-harvest.d.ts +68 -0
- package/dist/hosted-harvest.d.ts.map +1 -0
- package/dist/hosted-headless.d.ts +72 -0
- package/dist/hosted-headless.d.ts.map +1 -0
- package/dist/hosted-loop-lifecycle.d.ts +206 -0
- package/dist/hosted-loop-lifecycle.d.ts.map +1 -0
- package/dist/hosted-loop.d.ts +170 -0
- package/dist/hosted-loop.d.ts.map +1 -0
- package/dist/hosted-run-event-sink.d.ts +222 -0
- package/dist/hosted-run-event-sink.d.ts.map +1 -0
- package/dist/hosted-runtime-assets.d.ts +186 -0
- package/dist/hosted-runtime-assets.d.ts.map +1 -0
- package/dist/hosted-session-cli.d.ts +258 -0
- package/dist/hosted-session-cli.d.ts.map +1 -0
- package/dist/hosted-skill-staging.d.ts +73 -0
- package/dist/hosted-skill-staging.d.ts.map +1 -0
- package/dist/http.d.ts +8 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +119 -129
- package/dist/instruction-set-gepa-launch.d.ts +3 -0
- package/dist/instruction-set-gepa-launch.d.ts.map +1 -0
- package/dist/instruction-set-gepa-launch.js +15 -0
- package/dist/instruction-set-loader.d.ts +6 -0
- package/dist/instruction-set-loader.d.ts.map +1 -0
- package/dist/instruction-set-loader.js +59 -0
- package/dist/instruction-set-manifest.d.ts +14 -0
- package/dist/instruction-set-manifest.d.ts.map +1 -0
- package/dist/instruction-set-manifest.js +162 -0
- package/dist/instruction-sets-cli.d.ts +40 -0
- package/dist/instruction-sets-cli.d.ts.map +1 -0
- package/dist/instruction-sets-cli.js +361 -0
- package/dist/json-response.d.ts +4 -0
- package/dist/json-response.d.ts.map +1 -0
- package/dist/jsonl-stream.d.ts +8 -0
- package/dist/jsonl-stream.d.ts.map +1 -0
- package/dist/kill-switch-cli.d.ts +30 -0
- package/dist/kill-switch-cli.d.ts.map +1 -0
- package/dist/loopback-serve.d.ts +25 -0
- package/dist/loopback-serve.d.ts.map +1 -0
- package/dist/manifests-cli.d.ts +22 -0
- package/dist/manifests-cli.d.ts.map +1 -0
- package/dist/markdown-report-input.d.ts +7 -0
- package/dist/markdown-report-input.d.ts.map +1 -0
- package/dist/markdown-report-input.js +15 -1
- package/dist/merge-job.d.ts +155 -0
- package/dist/merge-job.d.ts.map +1 -0
- package/dist/model-configs-cli.d.ts +19 -0
- package/dist/model-configs-cli.d.ts.map +1 -0
- package/dist/model-configs-cli.js +104 -0
- package/dist/optimization-export-cli.d.ts +19 -0
- package/dist/optimization-export-cli.d.ts.map +1 -0
- package/dist/optimizations-list-cli.d.ts +20 -0
- package/dist/optimizations-list-cli.d.ts.map +1 -0
- package/dist/optimizations-promote-cli.d.ts +8 -0
- package/dist/optimizations-promote-cli.d.ts.map +1 -0
- package/dist/optimizations-promote-cli.js +34 -0
- package/dist/option-validation.d.ts +15 -0
- package/dist/option-validation.d.ts.map +1 -0
- package/dist/preview-runtime.d.ts +63 -0
- package/dist/preview-runtime.d.ts.map +1 -0
- package/dist/prompt-draft-push.d.ts +60 -0
- package/dist/prompt-draft-push.d.ts.map +1 -0
- package/dist/prompt-label-cli.d.ts +11 -0
- package/dist/prompt-label-cli.d.ts.map +1 -0
- package/dist/prompt-label-cli.js +29 -0
- package/dist/prompt-length-wire.d.ts +28 -0
- package/dist/prompt-length-wire.d.ts.map +1 -0
- package/dist/prompt-length-wire.js +2 -2
- package/dist/prompt-report-cli.d.ts +10 -0
- package/dist/prompt-report-cli.d.ts.map +1 -0
- package/dist/prompt-report-cli.js +2 -2
- package/dist/prompt-summary-table.d.ts +15 -0
- package/dist/prompt-summary-table.d.ts.map +1 -0
- package/dist/prompt-summary-table.js +6 -0
- package/dist/registration-tag-warning.d.ts +32 -0
- package/dist/registration-tag-warning.d.ts.map +1 -0
- package/dist/report-comments-cli.d.ts +16 -0
- package/dist/report-comments-cli.d.ts.map +1 -0
- package/dist/report-markdown-blankness.d.ts +2 -0
- package/dist/report-markdown-blankness.d.ts.map +1 -0
- package/dist/report-markdown-blankness.js +6 -0
- package/dist/report-replacement-warning.d.ts +17 -0
- package/dist/report-replacement-warning.d.ts.map +1 -0
- package/dist/report-replacement-warning.js +31 -0
- package/dist/repository-backup-core.d.ts +225 -0
- package/dist/repository-backup-core.d.ts.map +1 -0
- package/dist/repository-recovery-manifest.d.ts +83 -0
- package/dist/repository-recovery-manifest.d.ts.map +1 -0
- package/dist/run-event-digest.d.ts +74 -0
- package/dist/run-event-digest.d.ts.map +1 -0
- package/dist/runner-dir-verify.d.ts +66 -0
- package/dist/runner-dir-verify.d.ts.map +1 -0
- package/dist/runner-instruction-set-contract.d.ts +24 -0
- package/dist/runner-instruction-set-contract.d.ts.map +1 -0
- package/dist/runner-instruction-set-contract.js +50 -0
- package/dist/sandbox-hygiene.d.ts +45 -0
- package/dist/sandbox-hygiene.d.ts.map +1 -0
- package/dist/sandbox-provider.d.ts +193 -0
- package/dist/sandbox-provider.d.ts.map +1 -0
- package/dist/scorer-draft-push.d.ts +50 -0
- package/dist/scorer-draft-push.d.ts.map +1 -0
- package/dist/scorers-cli.d.ts +20 -0
- package/dist/scorers-cli.d.ts.map +1 -0
- package/dist/scorers-cli.js +22 -0
- package/dist/scorers-verify-parity-bridge.d.ts +16 -0
- package/dist/scorers-verify-parity-bridge.d.ts.map +1 -0
- package/dist/scorers-verify-parity-bridge.js +90 -0
- package/dist/scorers-verify-parity.d.ts +81 -0
- package/dist/scorers-verify-parity.d.ts.map +1 -0
- package/dist/scorers-verify-parity.js +502 -0
- package/dist/scores-accept-cli.d.ts +21 -0
- package/dist/scores-accept-cli.d.ts.map +1 -0
- package/dist/secret-redaction.d.ts +47 -0
- package/dist/secret-redaction.d.ts.map +1 -0
- package/dist/session-timeline.d.ts +54 -0
- package/dist/session-timeline.d.ts.map +1 -0
- package/dist/setup-prompt.d.ts +5 -0
- package/dist/setup-prompt.d.ts.map +1 -0
- package/dist/skill-installer.d.ts +68 -0
- package/dist/skill-installer.d.ts.map +1 -0
- package/dist/skilled-proposer-launch.d.ts +7 -0
- package/dist/skilled-proposer-launch.d.ts.map +1 -0
- package/dist/skilled-proposer-launch.js +60 -0
- package/dist/smoke.d.ts +102 -0
- package/dist/smoke.d.ts.map +1 -0
- package/dist/start-intent.d.ts +12 -0
- package/dist/start-intent.d.ts.map +1 -0
- package/dist/task-assignment-manifest.d.ts +15 -0
- package/dist/task-assignment-manifest.d.ts.map +1 -0
- package/dist/task-create-error.d.ts +18 -0
- package/dist/task-create-error.d.ts.map +1 -0
- package/dist/team-connectors-cli.d.ts +29 -0
- package/dist/team-connectors-cli.d.ts.map +1 -0
- package/dist/types.d.ts +39 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/vercel-sandbox-provider.d.ts +156 -0
- package/dist/vercel-sandbox-provider.d.ts.map +1 -0
- package/dist/workbench-cli.d.ts +233 -0
- package/dist/workbench-cli.d.ts.map +1 -0
- package/dist/workspace-sync.d.ts +207 -0
- package/dist/workspace-sync.d.ts.map +1 -0
- package/dist/workspace.d.ts +92 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/zip-draft-push.d.ts +55 -0
- package/dist/zip-draft-push.d.ts.map +1 -0
- package/package.json +15 -2
- package/requirements/README.md +138 -0
- package/requirements/skilled-proposer.in +66 -0
- package/requirements/skilled-proposer.lock +265 -0
- package/scripts/build-cli-dist.mjs +30 -0
- package/scripts/ensure-skilled-proposer-venv.mjs +5 -0
- package/scripts/orizu-source-checkout.d.mts +1 -0
- package/scripts/orizu-source-checkout.mjs +10 -0
- package/scripts/refresh-skilled-proposer-lock.mjs +256 -0
- package/scripts/vendor-gepa-python.mjs +187 -4
- package/src/diff-comments-cli.ts +41 -3
- package/src/gepa-engine-dispatch.ts +340 -0
- package/src/gepa-python-command.ts +31 -0
- package/src/gepa-python-paths.ts +56 -0
- package/src/help.ts +95 -25
- package/src/index.ts +131 -166
- package/src/instruction-set-gepa-launch.ts +28 -0
- package/src/instruction-set-loader.ts +37 -0
- package/src/instruction-set-manifest.ts +120 -0
- package/src/instruction-sets-cli.ts +306 -0
- package/src/markdown-report-input.ts +19 -1
- package/src/model-configs-cli.ts +119 -0
- package/src/optimizations-promote-cli.ts +41 -0
- package/src/prompt-label-cli.ts +55 -0
- package/src/prompt-length-wire.ts +1 -1
- package/src/prompt-report-cli.ts +2 -2
- package/src/prompt-summary-table.ts +12 -0
- package/src/report-markdown-blankness.ts +6 -0
- package/src/report-replacement-warning.ts +35 -0
- package/src/runner-instruction-set-contract.ts +64 -0
- package/src/scorers-cli.ts +40 -0
- package/src/scorers-verify-parity-bridge.ts +90 -0
- package/src/scorers-verify-parity.ts +564 -0
- package/src/skilled-proposer-launch.ts +89 -0
- package/src/skilled-proposer-venv-manager.mjs +757 -0
- package/tsconfig.json +2 -0
- package/vendor/gepa-python/LICENSE +7 -0
- package/vendor/gepa-python/manifest.json +107 -0
- package/vendor/gepa-python/src/gepa/__init__.py +22 -0
- package/vendor/gepa-python/src/gepa/adapters/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/anymaths_adapter/__init__.py +1 -0
- package/vendor/gepa-python/src/gepa/adapters/anymaths_adapter/anymaths_adapter.py +174 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/__init__.py +26 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/confidence_adapter.py +618 -0
- package/vendor/gepa-python/src/gepa/adapters/confidence_adapter/scoring.py +206 -0
- package/vendor/gepa-python/src/gepa/adapters/default_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/default_adapter/default_adapter.py +206 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/dspy_adapter.py +525 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_adapter/instruction_proposal.py +500 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/__init__.py +6 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/dspy_program_proposal_signature.py +137 -0
- package/vendor/gepa-python/src/gepa/adapters/dspy_full_program_adapter/full_program_adapter.py +269 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/__init__.py +56 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/evaluation_metrics.py +226 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/generic_rag_adapter.py +496 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/rag_pipeline.py +238 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_store_interface.py +212 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/__init__.py +2 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/chroma_store.py +196 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/lancedb_store.py +422 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/milvus_store.py +409 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/qdrant_store.py +368 -0
- package/vendor/gepa-python/src/gepa/adapters/generic_rag_adapter/vector_stores/weaviate_store.py +418 -0
- package/vendor/gepa-python/src/gepa/adapters/langchain_adapter/__init__.py +11 -0
- package/vendor/gepa-python/src/gepa/adapters/langchain_adapter/langchain_adapter.py +261 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/__init__.py +37 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/mcp_adapter.py +693 -0
- package/vendor/gepa-python/src/gepa/adapters/mcp_adapter/mcp_client.py +364 -0
- package/vendor/gepa-python/src/gepa/adapters/optimize_anything_adapter/optimize_anything_adapter.py +879 -0
- package/vendor/gepa-python/src/gepa/adapters/terminal_bench_adapter/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/adapters/terminal_bench_adapter/terminal_bench_adapter.py +217 -0
- package/vendor/gepa-python/src/gepa/api.py +468 -0
- package/vendor/gepa-python/src/gepa/core/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/core/adapter.py +227 -0
- package/vendor/gepa-python/src/gepa/core/callbacks.py +551 -0
- package/vendor/gepa-python/src/gepa/core/data_loader.py +74 -0
- package/vendor/gepa-python/src/gepa/core/engine.py +1025 -0
- package/vendor/gepa-python/src/gepa/core/result.py +271 -0
- package/vendor/gepa-python/src/gepa/core/state.py +706 -0
- package/vendor/gepa-python/src/gepa/examples/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/examples/aime.py +24 -0
- package/vendor/gepa-python/src/gepa/examples/anymaths-bench/eval_default.py +111 -0
- package/vendor/gepa-python/src/gepa/examples/anymaths-bench/train_anymaths.py +177 -0
- package/vendor/gepa-python/src/gepa/examples/mcp_adapter/__init__.py +4 -0
- package/vendor/gepa-python/src/gepa/examples/mcp_adapter/mcp_optimization_example.py +456 -0
- package/vendor/gepa-python/src/gepa/examples/rag_adapter/__init__.py +9 -0
- package/vendor/gepa-python/src/gepa/examples/rag_adapter/rag_optimization.py +824 -0
- package/vendor/gepa-python/src/gepa/examples/terminal-bench/train_terminus.py +161 -0
- package/vendor/gepa-python/src/gepa/gepa_utils.py +117 -0
- package/vendor/gepa-python/src/gepa/gskill/__init__.py +1 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/cost_tracker.py +194 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/claude_code.py +1117 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/claude_code_skills.py +613 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/evaluate/mini_swe_agent.py +440 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/experiment_logger.py +367 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/swe_fitness_fn.py +209 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/swe_harness.py +352 -0
- package/vendor/gepa-python/src/gepa/gskill/gskill/train_optimize_anything.py +830 -0
- package/vendor/gepa-python/src/gepa/image.py +104 -0
- package/vendor/gepa-python/src/gepa/lm.py +261 -0
- package/vendor/gepa-python/src/gepa/logging/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/logging/experiment_tracker.py +457 -0
- package/vendor/gepa-python/src/gepa/logging/logger.py +75 -0
- package/vendor/gepa-python/src/gepa/logging/utils.py +130 -0
- package/vendor/gepa-python/src/gepa/optimize_anything.py +1701 -0
- package/vendor/gepa-python/src/gepa/proposer/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/proposer/base.py +53 -0
- package/vendor/gepa-python/src/gepa/proposer/merge.py +403 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/base.py +64 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/reflection_lm.py +178 -0
- package/vendor/gepa-python/src/gepa/proposer/reflective_mutation/reflective_mutation.py +641 -0
- package/vendor/gepa-python/src/gepa/py.typed +0 -0
- package/vendor/gepa-python/src/gepa/strategies/__init__.py +0 -0
- package/vendor/gepa-python/src/gepa/strategies/acceptance.py +66 -0
- package/vendor/gepa-python/src/gepa/strategies/batch_sampler.py +103 -0
- package/vendor/gepa-python/src/gepa/strategies/candidate_selector.py +82 -0
- package/vendor/gepa-python/src/gepa/strategies/component_selector.py +36 -0
- package/vendor/gepa-python/src/gepa/strategies/eval_policy.py +64 -0
- package/vendor/gepa-python/src/gepa/strategies/instruction_proposal.py +153 -0
- package/vendor/gepa-python/src/gepa/strategies/proposal_sampling.py +128 -0
- package/vendor/gepa-python/src/gepa/strategies/proposal_selection.py +84 -0
- package/vendor/gepa-python/src/gepa/utils/__init__.py +63 -0
- package/vendor/gepa-python/src/gepa/utils/code_execution.py +626 -0
- package/vendor/gepa-python/src/gepa/utils/stdio_capture.py +145 -0
- package/vendor/gepa-python/src/gepa/utils/stop_condition.py +230 -0
- package/vendor/gepa-python/src/gepa/visualization.py +359 -0
- package/vendor/orizu-gepa/pyproject.toml +18 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/__init__.py +9 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/__main__.py +5 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/adapter.py +138 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/callbacks.py +666 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/cli.py +7 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/engine.py +269 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/instruction_set_loader.py +52 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/preflight.py +64 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/reflection.py +186 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/runtime.py +721 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/skilled_proposer_bridge.py +381 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/stop_conditions.py +55 -0
- package/vendor/orizu-gepa/src/orizu_gepa_connector/translator.py +203 -0
- package/vendor/orizu-gepa-python/pyproject.toml +1 -1
- package/vendor/orizu-gepa-python/src/orizu_gepa/cli.py +1 -0
- package/vendor/orizu-gepa-python/src/orizu_gepa/client.py +52 -7
- package/vendor/orizu-gepa-python/src/orizu_gepa/local_log.py +52 -0
- package/vendor/orizu-gepa-python/src/orizu_gepa/optimizer.py +10 -5
- package/vendor/orizu-gepa-python/src/orizu_gepa/reflection.py +323 -68
- package/vendor/orizu-gepa-python/src/orizu_gepa/runner.py +207 -13
- package/vendor/skills/orizu-cli/SKILL.md +3 -1
- package/vendor/skills/orizu-cli/references/cli-reference.md +85 -1
- package/vendor/skills/orizu-cli/references/migrate-existing-gepa-setup.md +303 -0
- package/vendor/skills/orizu-cli/references/optimization-reports.md +1 -1
- package/vendor/skills/orizu-cli/references/optimization-with-gepa.md +26 -1
- package/vendor/skills/orizu-cli/references/prompt-control-plane.md +113 -10
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace session/run visibility commands (ALI-902 CLI half).
|
|
3
|
+
*
|
|
4
|
+
* Pure logic + injected HTTP: command functions do not parse process.argv and
|
|
5
|
+
* do not print. The thin `workbenchCommand` entry point owns CLI argument
|
|
6
|
+
* parsing and human/JSON output.
|
|
7
|
+
*/
|
|
8
|
+
import { type StartIntentIdGenerator } from './start-intent.js';
|
|
9
|
+
export interface WorkbenchFetcher {
|
|
10
|
+
(path: string, init?: RequestInit): Promise<Response>;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkbenchSleep {
|
|
13
|
+
(ms: number): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export interface WorkbenchRunCosts {
|
|
16
|
+
modelCostUsd?: number | null;
|
|
17
|
+
tokensInput?: number | null;
|
|
18
|
+
tokensOutput?: number | null;
|
|
19
|
+
tokensCacheRead?: number | null;
|
|
20
|
+
tokensCacheWrite?: number | null;
|
|
21
|
+
tokensReasoning?: number | null;
|
|
22
|
+
costUpdatedAt?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface WorkbenchRunSummary extends WorkbenchRunCosts {
|
|
25
|
+
id: string;
|
|
26
|
+
status: string;
|
|
27
|
+
}
|
|
28
|
+
export interface WorkbenchSession {
|
|
29
|
+
id: string;
|
|
30
|
+
workspaceId?: string;
|
|
31
|
+
projectId?: string | null;
|
|
32
|
+
actorUserId?: string;
|
|
33
|
+
actorType?: string;
|
|
34
|
+
status: string;
|
|
35
|
+
clientInfo?: Record<string, unknown>;
|
|
36
|
+
startedAt?: string | null;
|
|
37
|
+
endedAt?: string | null;
|
|
38
|
+
createdAt?: string;
|
|
39
|
+
updatedAt?: string;
|
|
40
|
+
runs?: WorkbenchRunSummary[];
|
|
41
|
+
/** Session rollup: sum of the runs' server-aggregated cost totals (ALI-1089). */
|
|
42
|
+
costs?: WorkbenchRunCosts;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface WorkbenchRun extends WorkbenchRunCosts {
|
|
46
|
+
id: string;
|
|
47
|
+
workspaceSessionId?: string;
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
projectId?: string | null;
|
|
50
|
+
actorUserId?: string;
|
|
51
|
+
actorType?: string;
|
|
52
|
+
title?: string;
|
|
53
|
+
status: string;
|
|
54
|
+
evidence?: Record<string, unknown>;
|
|
55
|
+
summary?: Record<string, unknown>;
|
|
56
|
+
latestSequence?: number;
|
|
57
|
+
startedAt?: string | null;
|
|
58
|
+
finishedAt?: string | null;
|
|
59
|
+
createdAt?: string;
|
|
60
|
+
updatedAt?: string;
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
export interface WorkbenchRunEvent {
|
|
64
|
+
sequence: number;
|
|
65
|
+
eventId: string;
|
|
66
|
+
eventType: string;
|
|
67
|
+
occurredAt?: string | null;
|
|
68
|
+
payload?: Record<string, unknown>;
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export interface CommonWorkbenchOptions {
|
|
72
|
+
fetcher?: WorkbenchFetcher;
|
|
73
|
+
cwd?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface SessionGitResult {
|
|
76
|
+
status: number;
|
|
77
|
+
stdout: string;
|
|
78
|
+
stderr: string;
|
|
79
|
+
}
|
|
80
|
+
/** Injectable git seam (tests use a recording fake; prod spawns git). */
|
|
81
|
+
export type SessionGitRunner = (args: string[], opts?: {
|
|
82
|
+
cwd?: string;
|
|
83
|
+
}) => SessionGitResult;
|
|
84
|
+
export interface SessionCheckout {
|
|
85
|
+
branch: string;
|
|
86
|
+
state: 'checked-out' | 'skipped';
|
|
87
|
+
detail: string;
|
|
88
|
+
}
|
|
89
|
+
export interface SessionBranchSync {
|
|
90
|
+
branch: string;
|
|
91
|
+
/** Local-only commit count vs origin/<branch>; null when not computable. */
|
|
92
|
+
ahead: number | null;
|
|
93
|
+
/** origin/<branch>-only commit count; null when not computable. */
|
|
94
|
+
behind: number | null;
|
|
95
|
+
}
|
|
96
|
+
export interface SessionStartOptions extends CommonWorkbenchOptions {
|
|
97
|
+
workspaceId?: string | null;
|
|
98
|
+
projectSlug?: string | null;
|
|
99
|
+
clientInfo?: Record<string, unknown>;
|
|
100
|
+
git?: SessionGitRunner;
|
|
101
|
+
/**
|
|
102
|
+
* Opt-in local ergonomics (ALI-1028): fetch + check out the session branch
|
|
103
|
+
* when cwd is the workbench clone. Off by default so library callers (e.g.
|
|
104
|
+
* smoke) never mutate the local checkout; the human CLI path turns it on.
|
|
105
|
+
*/
|
|
106
|
+
localCheckout?: boolean;
|
|
107
|
+
/** Injectable bounded repository-readiness delay for tests. */
|
|
108
|
+
sleep?: WorkbenchSleep;
|
|
109
|
+
/** Injectable UUIDv4 generator; one value is replayed for every retry. */
|
|
110
|
+
generateStartIntentId?: StartIntentIdGenerator;
|
|
111
|
+
/** Existing immutable intent when resuming a bounded pending start. */
|
|
112
|
+
startIntentId?: string | null;
|
|
113
|
+
/** Existing session bound to startIntentId when resuming provisioning. */
|
|
114
|
+
reconcileSessionId?: string | null;
|
|
115
|
+
}
|
|
116
|
+
export interface SessionStatusOptions extends CommonWorkbenchOptions {
|
|
117
|
+
workspaceId?: string | null;
|
|
118
|
+
sessionId?: string | null;
|
|
119
|
+
status?: string | null;
|
|
120
|
+
git?: SessionGitRunner;
|
|
121
|
+
}
|
|
122
|
+
export interface SessionEndOptions {
|
|
123
|
+
fetcher?: WorkbenchFetcher;
|
|
124
|
+
sessionId: string;
|
|
125
|
+
}
|
|
126
|
+
export interface SessionFinishOptions {
|
|
127
|
+
fetcher?: WorkbenchFetcher;
|
|
128
|
+
sessionId: string;
|
|
129
|
+
projectSlug?: string | null;
|
|
130
|
+
cwd?: string;
|
|
131
|
+
git?: SessionGitRunner;
|
|
132
|
+
/** Opt-in: stage/commit/push local session-branch work before finishing. */
|
|
133
|
+
push?: boolean;
|
|
134
|
+
/** Commit message for --push; a default is used when omitted. */
|
|
135
|
+
message?: string | null;
|
|
136
|
+
}
|
|
137
|
+
export interface SessionFinishResult {
|
|
138
|
+
outcome: string;
|
|
139
|
+
branch?: string;
|
|
140
|
+
branchDeleted?: boolean;
|
|
141
|
+
manifest?: Record<string, unknown>;
|
|
142
|
+
/** Local uncommitted/unpushed work detected at finish time (ALI-1028). */
|
|
143
|
+
localWarnings?: string[];
|
|
144
|
+
/** True when --push staged/committed/pushed local work before finishing. */
|
|
145
|
+
pushed?: boolean;
|
|
146
|
+
}
|
|
147
|
+
export interface SessionStartResult {
|
|
148
|
+
session: WorkbenchSession;
|
|
149
|
+
/** Local checkout attempt for the session branch; null when the session has no branch. */
|
|
150
|
+
checkout?: SessionCheckout | null;
|
|
151
|
+
}
|
|
152
|
+
/** A bounded repository wait exhausted without losing the immutable identity
|
|
153
|
+
* needed to resume safely. CLI callers can show the command; library callers
|
|
154
|
+
* can use the structured fields directly. */
|
|
155
|
+
export declare class SessionRepositoryPendingError extends Error {
|
|
156
|
+
readonly sessionId: string;
|
|
157
|
+
readonly startIntentId: string;
|
|
158
|
+
readonly resumeCommand: string;
|
|
159
|
+
constructor(input: {
|
|
160
|
+
readonly sessionId: string;
|
|
161
|
+
readonly startIntentId: string;
|
|
162
|
+
readonly projectSlug: string | null;
|
|
163
|
+
readonly workspaceDirectory: string | null;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
export interface SessionStatusResult {
|
|
167
|
+
session?: WorkbenchSession;
|
|
168
|
+
sessions?: WorkbenchSession[];
|
|
169
|
+
/** Local ahead/behind vs the remote session branch (single-session status only). */
|
|
170
|
+
branchSync?: SessionBranchSync | null;
|
|
171
|
+
}
|
|
172
|
+
export interface SessionEndResult {
|
|
173
|
+
session: WorkbenchSession;
|
|
174
|
+
branchStatus?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface WorkbenchRunStartOptions {
|
|
177
|
+
fetcher?: WorkbenchFetcher;
|
|
178
|
+
sessionId: string;
|
|
179
|
+
title: string;
|
|
180
|
+
projectSlug?: string | null;
|
|
181
|
+
}
|
|
182
|
+
export interface WorkbenchRunStatusOptions {
|
|
183
|
+
fetcher?: WorkbenchFetcher;
|
|
184
|
+
runId: string;
|
|
185
|
+
}
|
|
186
|
+
export interface WorkbenchRunTerminalOptions {
|
|
187
|
+
fetcher?: WorkbenchFetcher;
|
|
188
|
+
runId: string;
|
|
189
|
+
status: string;
|
|
190
|
+
summary?: string | null;
|
|
191
|
+
evidence?: Record<string, unknown> | null;
|
|
192
|
+
}
|
|
193
|
+
export interface WorkbenchRunResult {
|
|
194
|
+
run: WorkbenchRun;
|
|
195
|
+
}
|
|
196
|
+
export interface TailOnceResult {
|
|
197
|
+
events: WorkbenchRunEvent[];
|
|
198
|
+
cursor: number;
|
|
199
|
+
runStatus: string;
|
|
200
|
+
}
|
|
201
|
+
export interface TailWorkbenchRunOptions {
|
|
202
|
+
fetcher?: WorkbenchFetcher;
|
|
203
|
+
runId: string;
|
|
204
|
+
after?: number;
|
|
205
|
+
limit?: number;
|
|
206
|
+
intervalSeconds?: number;
|
|
207
|
+
once?: boolean;
|
|
208
|
+
sleep?: WorkbenchSleep;
|
|
209
|
+
onEvent?: (event: WorkbenchRunEvent) => void;
|
|
210
|
+
}
|
|
211
|
+
export interface WorkbenchCommandIo {
|
|
212
|
+
json: boolean;
|
|
213
|
+
print: (line: string) => void;
|
|
214
|
+
fetcher?: WorkbenchFetcher;
|
|
215
|
+
sleep?: WorkbenchSleep;
|
|
216
|
+
/** Injectable git for the session-branch ergonomics (ALI-1028). */
|
|
217
|
+
git?: SessionGitRunner;
|
|
218
|
+
/** Test seam for the session-start idempotency UUID. */
|
|
219
|
+
generateStartIntentId?: StartIntentIdGenerator;
|
|
220
|
+
}
|
|
221
|
+
export declare const SESSION_REPOSITORY_PENDING_RETRY_MS = 2000;
|
|
222
|
+
export declare const SESSION_REPOSITORY_PENDING_MAX_RETRIES = 30;
|
|
223
|
+
export declare function runSessionStart(opts?: SessionStartOptions): Promise<SessionStartResult>;
|
|
224
|
+
export declare function runSessionStatus(opts?: SessionStatusOptions): Promise<SessionStatusResult>;
|
|
225
|
+
export declare function runSessionEnd(opts: SessionEndOptions): Promise<SessionEndResult>;
|
|
226
|
+
export declare function runSessionFinish(opts: SessionFinishOptions): Promise<SessionFinishResult>;
|
|
227
|
+
export declare function runWorkbenchRunStart(opts: WorkbenchRunStartOptions): Promise<WorkbenchRunResult>;
|
|
228
|
+
export declare function runWorkbenchRunStatus(opts: WorkbenchRunStatusOptions): Promise<WorkbenchRunResult>;
|
|
229
|
+
export declare function runWorkbenchRunTerminal(opts: WorkbenchRunTerminalOptions): Promise<WorkbenchRunResult>;
|
|
230
|
+
export declare function tailOnce(fetcher: WorkbenchFetcher, runId: string, cursor: number, limit?: number): Promise<TailOnceResult>;
|
|
231
|
+
export declare function tailWorkbenchRun(opts: TailWorkbenchRunOptions): Promise<TailOnceResult>;
|
|
232
|
+
export declare function workbenchCommand(args: string[], io: WorkbenchCommandIo): Promise<number>;
|
|
233
|
+
//# sourceMappingURL=workbench-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench-cli.d.ts","sourceRoot":"","sources":["../src/workbench-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,mBAAmB,CAAA;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5B;AAKD,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IA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
4
|
+
* Pure logic + injected HTTP: no process.argv parsing and no printing live in
|
|
5
|
+
* the command functions (the thin `workspaceSyncCommand` entry point prints).
|
|
6
|
+
* This module implements the client side of the ALI-933 sync semantics:
|
|
7
|
+
*
|
|
8
|
+
* - Inventory: walk the durable workspace contract (manifests + instruction/
|
|
9
|
+
* memory/readme files) and compute each tracked file's content sha256.
|
|
10
|
+
* `.orizu/**` is cache-only by definition (spec §6) and never inventoried.
|
|
11
|
+
* Symlinked plain files hash the LINK TARGET PATH string (spec §3.1), so
|
|
12
|
+
* editing `AGENTS.md` never falsely dirties a symlinked `CLAUDE.md`;
|
|
13
|
+
* pointer files (no-symlinks mode) hash their own bytes.
|
|
14
|
+
* - Missing/untracked visibility (spec §3.2): cache-known paths absent from
|
|
15
|
+
* the inventory are reported `missing` locally and sent to sync as
|
|
16
|
+
* `{path, missing: true}` (the server echoes without touching stored
|
|
17
|
+
* truth). Files under managed primitive dirs covered by no manifest are
|
|
18
|
+
* reported `untracked` in LOCAL status only — never sent to sync.
|
|
19
|
+
* - Cache snapshots: last-sync `base` hashes stored under
|
|
20
|
+
* `.orizu/cache/sync/<sha256-of-path>.json`. Filenames are path-hashed so
|
|
21
|
+
* the cache never mirrors the workspace directory structure. Cache is
|
|
22
|
+
* gitignored and safely deletable (spec §6); it is `local`/`cache`, never a
|
|
23
|
+
* contract.
|
|
24
|
+
* - Commands: `status` (local three-way against the cache; `--remote`
|
|
25
|
+
* performs the SAME server-side reconciliation as `sync` — it registers
|
|
26
|
+
* and updates tracked-resource records; there is no read-only remote
|
|
27
|
+
* status in v0, spec §3.1 — but never writes local cache), `sync`
|
|
28
|
+
* (metadata-first; cache base advances ONLY on a `clean`
|
|
29
|
+
* convergence-confirmation), `pull` (metadata fast-forward, only when the
|
|
30
|
+
* server carries real truth), and `apply` (repo → server promotion;
|
|
31
|
+
* refuses DB-native owners, conflicts, and remote-newer via server 409s).
|
|
32
|
+
*
|
|
33
|
+
* v0 boundary: `pull` reconciles the manifest canonical block + cache only,
|
|
34
|
+
* and ONLY from server-carried truth (serverSha256/serverVersionId) — never
|
|
35
|
+
* from local bytes. It does not materialize bulk primitive content — source
|
|
36
|
+
* files converge through Git, and DB-native/object bytes materialize through
|
|
37
|
+
* the primitive-specific commands (e.g. `orizu prompts pull`,
|
|
38
|
+
* `orizu datasets download`). Full bulk-content pull is deferred (spec §8).
|
|
39
|
+
*
|
|
40
|
+
* Apply identity (spec §3.1): strictly the sync-recorded tracked-resource ROW
|
|
41
|
+
* id from the cache snapshot (`resourceId`). There is NO fallback to the
|
|
42
|
+
* manifest's `canonical.serviceId` (informational/legacy). Without a recorded
|
|
43
|
+
* row id the command directs the user to run `orizu workspace sync` first.
|
|
44
|
+
* On any apply 409 (owner refusal, conflicted, remote-newer, CAS loss) the
|
|
45
|
+
* recovery loop is: re-sync, converge per the reported status, retry.
|
|
46
|
+
*/
|
|
47
|
+
import { type CanonicalOwner, type RepoState } from './workspace.js';
|
|
48
|
+
export declare const TRACKED_RESOURCE_KINDS: readonly ["team_manifest", "project_manifest", "instruction_file", "memory_file", "readme", "dataset", "app", "task", "prompt", "scorer", "optimization", "other"];
|
|
49
|
+
export type TrackedResourceKind = (typeof TRACKED_RESOURCE_KINDS)[number];
|
|
50
|
+
export type WorkspaceSyncFetcher = (path: string, init?: RequestInit) => Promise<Response>;
|
|
51
|
+
export interface InventoryEntry {
|
|
52
|
+
path: string;
|
|
53
|
+
absPath: string;
|
|
54
|
+
kind: TrackedResourceKind;
|
|
55
|
+
owner: CanonicalOwner;
|
|
56
|
+
repoState: RepoState;
|
|
57
|
+
projectSlug: string | null;
|
|
58
|
+
serviceResourceId: string | null;
|
|
59
|
+
versionId: string | null;
|
|
60
|
+
contentSha256: string;
|
|
61
|
+
manifestPath: string | null;
|
|
62
|
+
isManifest: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface CacheSnapshot {
|
|
65
|
+
path: string;
|
|
66
|
+
baseSha256: string | null;
|
|
67
|
+
versionId: string | null;
|
|
68
|
+
lastSyncedAt: string | null;
|
|
69
|
+
/** Server tracked-resource ROW id — the ONLY apply identity (spec §3.1). */
|
|
70
|
+
resourceId?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Metadata-only-pull guard (spec §3.3): set when a `pull` advanced this
|
|
73
|
+
* repo-owned resource's base to a server hash the working content does not
|
|
74
|
+
* yet match — i.e. the base moved without the bytes being delivered. While
|
|
75
|
+
* set, `apply` MUST refuse (a CAS apply would pass and silently revert the
|
|
76
|
+
* pulled version). Absent/false means not pending (backward-compatible with
|
|
77
|
+
* pre-guard snapshots that lack the field).
|
|
78
|
+
*/
|
|
79
|
+
contentPending?: boolean;
|
|
80
|
+
/** The pulled base hash the working content must reconcile to before apply. */
|
|
81
|
+
pendingBaseSha256?: string | null;
|
|
82
|
+
}
|
|
83
|
+
export interface CommonOptions {
|
|
84
|
+
cwd?: string;
|
|
85
|
+
fetcher?: WorkspaceSyncFetcher;
|
|
86
|
+
workspaceId?: string | null;
|
|
87
|
+
}
|
|
88
|
+
export declare function sha256Hex(value: string | Buffer): string;
|
|
89
|
+
export declare function readCanonical(manifest: Record<string, unknown> | null): Record<string, unknown>;
|
|
90
|
+
export declare function stringOrNull(value: unknown): string | null;
|
|
91
|
+
/** Walk the durable workspace contract and return one entry per tracked file. */
|
|
92
|
+
export declare function collectInventory(cwd?: string): InventoryEntry[];
|
|
93
|
+
/**
|
|
94
|
+
* Files present under managed primitive dirs that no inventory rule covers
|
|
95
|
+
* (spec §3.2 `untracked`). A file is covered when an inventoried manifest
|
|
96
|
+
* lives in its directory or any ancestor within the managed dir — body files
|
|
97
|
+
* adjacent to their manifest belong to that resource and converge via Git.
|
|
98
|
+
* Reported in LOCAL status only; never sent to sync.
|
|
99
|
+
*/
|
|
100
|
+
export declare function collectUntrackedPaths(cwd: string, inventory: InventoryEntry[]): string[];
|
|
101
|
+
export declare function cacheSnapshotPath(cwd: string, relPath: string): string;
|
|
102
|
+
export declare function readCacheSnapshot(cwd: string, relPath: string): CacheSnapshot | null;
|
|
103
|
+
export declare function writeCacheSnapshot(cwd: string, snapshot: CacheSnapshot): void;
|
|
104
|
+
interface SyncResourceResult {
|
|
105
|
+
/** Server tracked-resource ROW id (null for untracked — no row exists). */
|
|
106
|
+
id: string | null;
|
|
107
|
+
path: string;
|
|
108
|
+
status: string;
|
|
109
|
+
serverVersionId: string | null;
|
|
110
|
+
serverSha256: string | null;
|
|
111
|
+
lastSyncedAt: string | null;
|
|
112
|
+
}
|
|
113
|
+
export declare function attachedWorkspaceId(root: string): string | null;
|
|
114
|
+
export interface StatusResourceLine {
|
|
115
|
+
path: string;
|
|
116
|
+
kind: TrackedResourceKind | null;
|
|
117
|
+
owner: CanonicalOwner | null;
|
|
118
|
+
repoState: RepoState | null;
|
|
119
|
+
localSha: string | null;
|
|
120
|
+
baseSha: string | null;
|
|
121
|
+
dirty: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Metadata-only-pull guard (spec §3.3): the base was pulled ahead of the
|
|
124
|
+
* working content, so `apply` will refuse until the bytes are delivered.
|
|
125
|
+
*/
|
|
126
|
+
contentPending?: boolean;
|
|
127
|
+
/** Definitional local statuses: cache-known-but-deleted / rule-less files. */
|
|
128
|
+
localStatus?: 'missing' | 'untracked';
|
|
129
|
+
remoteStatus?: string;
|
|
130
|
+
serverVersionId?: string | null;
|
|
131
|
+
}
|
|
132
|
+
/** Resolves a git ref (e.g. `origin/main`) to a SHA; null when absent/non-git. */
|
|
133
|
+
export type GitRefReader = (cwd: string, ref: string) => string | null;
|
|
134
|
+
/**
|
|
135
|
+
* "repo moved since your last pull" — the server's recorded DEFAULT-branch push
|
|
136
|
+
* SHA differs from what the LOCAL repo knows the default branch to be. Compared
|
|
137
|
+
* against the default-branch ref (never bare HEAD) so being on a feature branch
|
|
138
|
+
* or carrying local commits never triggers a false positive.
|
|
139
|
+
*/
|
|
140
|
+
export interface FreshnessSignal {
|
|
141
|
+
serverSha: string;
|
|
142
|
+
branch: string | null;
|
|
143
|
+
pushedAt: string | null;
|
|
144
|
+
localDefaultSha: string;
|
|
145
|
+
}
|
|
146
|
+
/** A session branch worth reporting: an old active session or an ended, unmerged one. */
|
|
147
|
+
export interface StaleSessionBranch {
|
|
148
|
+
sessionId: string;
|
|
149
|
+
branch: string;
|
|
150
|
+
startedAt: string | null;
|
|
151
|
+
reason: 'active-stale' | 'unmerged';
|
|
152
|
+
}
|
|
153
|
+
export interface StatusResult {
|
|
154
|
+
root: string;
|
|
155
|
+
workspaceId: string | null;
|
|
156
|
+
remote: boolean;
|
|
157
|
+
resources: StatusResourceLine[];
|
|
158
|
+
/** Set only when the hosted repo's default branch moved past the local ref (ALI-996). */
|
|
159
|
+
freshness?: FreshnessSignal | null;
|
|
160
|
+
/** Branched sessions worth attention; empty for local-only workspaces (ALI-972). */
|
|
161
|
+
staleSessionBranches?: StaleSessionBranch[];
|
|
162
|
+
}
|
|
163
|
+
export declare function runWorkspaceStatus(opts?: CommonOptions & {
|
|
164
|
+
remote?: boolean;
|
|
165
|
+
gitRef?: GitRefReader;
|
|
166
|
+
now?: () => number;
|
|
167
|
+
}): Promise<StatusResult>;
|
|
168
|
+
export interface SyncResultLine extends SyncResourceResult {
|
|
169
|
+
cacheAdvanced: boolean;
|
|
170
|
+
}
|
|
171
|
+
export interface SyncResult {
|
|
172
|
+
root: string;
|
|
173
|
+
workspaceId: string;
|
|
174
|
+
resources: SyncResultLine[];
|
|
175
|
+
}
|
|
176
|
+
export declare function runWorkspaceSync(opts?: CommonOptions): Promise<SyncResult>;
|
|
177
|
+
export interface PullResult {
|
|
178
|
+
path: string;
|
|
179
|
+
status: 'converged' | 'refused' | 'noop';
|
|
180
|
+
remoteStatus: string | null;
|
|
181
|
+
reason?: string;
|
|
182
|
+
note?: string;
|
|
183
|
+
manifestUpdated: boolean;
|
|
184
|
+
cacheAdvanced: boolean;
|
|
185
|
+
}
|
|
186
|
+
export declare function runWorkspacePull(targetPath: string, opts?: CommonOptions): Promise<PullResult>;
|
|
187
|
+
export interface ApplyResult {
|
|
188
|
+
path: string;
|
|
189
|
+
status: 'applied' | 'refused' | 'noop';
|
|
190
|
+
reason?: string;
|
|
191
|
+
/** Recovery guidance for server 409 refusals (re-sync, then re-drive). */
|
|
192
|
+
hint?: string;
|
|
193
|
+
versionId?: string | null;
|
|
194
|
+
contentSha256?: string | null;
|
|
195
|
+
lastSyncedAt?: string | null;
|
|
196
|
+
manifestUpdated: boolean;
|
|
197
|
+
cacheAdvanced: boolean;
|
|
198
|
+
}
|
|
199
|
+
export declare function runWorkspaceApply(targetPath: string, opts?: CommonOptions): Promise<ApplyResult>;
|
|
200
|
+
export interface WorkspaceSyncIo {
|
|
201
|
+
json: boolean;
|
|
202
|
+
print: (line: string) => void;
|
|
203
|
+
fetcher?: WorkspaceSyncFetcher;
|
|
204
|
+
}
|
|
205
|
+
export declare function workspaceSyncCommand(args: string[], io: WorkspaceSyncIo): Promise<number>;
|
|
206
|
+
export {};
|
|
207
|
+
//# sourceMappingURL=workspace-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-sync.d.ts","sourceRoot":"","sources":["../src/workspace-sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAQH,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,sBAAsB,oKAazB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAazE,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAE1F,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,mBAAmB,CAAA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AO,CAAC,MAAM,CAAC,CAsD/F"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const WORKSPACE_DIR_NAME = ".orizu";
|
|
2
|
+
export declare const WORKSPACE_SCHEMA_VERSION = "orizu.workspace.v0";
|
|
3
|
+
export declare const WORKSPACE_SETUP_VERSION = "0.1.0";
|
|
4
|
+
export declare const WORKSPACE_ROOT_FILES: readonly ["README.md", "orizu.team.json", "AGENTS.md", "CLAUDE.md", "Memory.md", ".gitignore"];
|
|
5
|
+
export declare const WORKSPACE_ROOT_DIRS: readonly [".orizu", "source-repos", "projects", "sessions"];
|
|
6
|
+
export declare const PROJECT_ROOT_FILES: readonly ["README.md", "memory.md", "orizu.project.json", ".gitignore"];
|
|
7
|
+
export declare const PROJECT_PRIMITIVE_DIRS: readonly ["datasets", "apps", "tasks", "prompts", "judges", "scorers", "runners", "optimizations"];
|
|
8
|
+
export declare const REPO_STATES: readonly ["source", "draft", "snapshot", "mirror", "cache", "object_ref_only"];
|
|
9
|
+
export declare const CANONICAL_OWNERS: readonly ["repo", "orizu-db", "object-storage", "local"];
|
|
10
|
+
export type RepoState = typeof REPO_STATES[number];
|
|
11
|
+
export type CanonicalOwner = typeof CANONICAL_OWNERS[number];
|
|
12
|
+
export type WorkspaceOperationAction = 'create_file' | 'create_dir' | 'append_gitignore' | 'create_symlink' | 'write_pointer_file' | 'rename_file' | 'replace_file' | 'replace_symlink';
|
|
13
|
+
export interface WorkspaceOperation {
|
|
14
|
+
action: WorkspaceOperationAction;
|
|
15
|
+
path: string;
|
|
16
|
+
safe: boolean;
|
|
17
|
+
reason: string;
|
|
18
|
+
content?: string;
|
|
19
|
+
entries?: string[];
|
|
20
|
+
sourcePath?: string;
|
|
21
|
+
target?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface WorkspaceProjectSeed {
|
|
24
|
+
slug: string;
|
|
25
|
+
id?: string | null;
|
|
26
|
+
name?: string | null;
|
|
27
|
+
}
|
|
28
|
+
export type WorkspaceFindingSeverity = 'error' | 'warning' | 'info';
|
|
29
|
+
export interface WorkspaceFinding {
|
|
30
|
+
severity: WorkspaceFindingSeverity;
|
|
31
|
+
code: string;
|
|
32
|
+
path?: string;
|
|
33
|
+
message: string;
|
|
34
|
+
fixable: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface WorkspaceInitOptions {
|
|
37
|
+
cwd?: string;
|
|
38
|
+
workspaceRoot?: string;
|
|
39
|
+
teamSlug?: string | null;
|
|
40
|
+
teamId?: string | null;
|
|
41
|
+
projectSlug?: string | null;
|
|
42
|
+
projects?: WorkspaceProjectSeed[];
|
|
43
|
+
baseUrl?: string | null;
|
|
44
|
+
serviceOrigin?: string | null;
|
|
45
|
+
attachWorkspaceId?: string | null;
|
|
46
|
+
cliVersion?: string | null;
|
|
47
|
+
dryRun?: boolean;
|
|
48
|
+
validateOnly?: boolean;
|
|
49
|
+
fix?: boolean;
|
|
50
|
+
noSymlinks?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface WorkspaceInitResult {
|
|
53
|
+
root: string;
|
|
54
|
+
state: 'created' | 'exists' | 'would-create' | 'validated' | 'invalid' | 'repaired';
|
|
55
|
+
gitignoreUpdated: boolean;
|
|
56
|
+
actions: string[];
|
|
57
|
+
operations: WorkspaceOperation[];
|
|
58
|
+
findings: WorkspaceFinding[];
|
|
59
|
+
}
|
|
60
|
+
interface WorkspaceSetupPlan {
|
|
61
|
+
root: string;
|
|
62
|
+
teamSlug: string;
|
|
63
|
+
projects: WorkspaceProjectSeed[];
|
|
64
|
+
operations: WorkspaceOperation[];
|
|
65
|
+
findings: WorkspaceFinding[];
|
|
66
|
+
exists: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare function getWorkspaceRoot(cwd?: string): string;
|
|
69
|
+
export declare function workspaceExists(cwd?: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* `orizu setup`'s hosted path clones the workbench repo into the resolved
|
|
72
|
+
* workspace root; `git clone` refuses to write into ANY non-empty directory —
|
|
73
|
+
* including one holding only macOS `.DS_Store` cruft — and fails late with a
|
|
74
|
+
* raw git error (ALI QA: founder ran `orizu setup` from an existing folder).
|
|
75
|
+
* Call this right before the hosted clone so the failure is immediate and
|
|
76
|
+
* actionable instead of surfacing mid-clone.
|
|
77
|
+
*
|
|
78
|
+
* A directory is usable only when it doesn't exist yet, is STRICTLY empty
|
|
79
|
+
* (`readdirSync(...).length === 0` — no `.DS_Store` allowance, since git itself
|
|
80
|
+
* grants none), or is already a recognized Orizu workspace for a re-run
|
|
81
|
+
* (`workspaceExists`, i.e. it has `orizu.team.json`) — the legitimate
|
|
82
|
+
* idempotent-setup case, which must proceed. Symlinks are followed (a symlink
|
|
83
|
+
* to an empty dir is fine); a file, an unreadable dir, and a non-empty dir each
|
|
84
|
+
* get a distinct, friendly message.
|
|
85
|
+
*/
|
|
86
|
+
export declare function assertWorkspaceDirUsable(root: string): void;
|
|
87
|
+
export declare function planWorkspaceSetup(options?: WorkspaceInitOptions): WorkspaceSetupPlan;
|
|
88
|
+
export declare function readJsonManifest(path: string): Record<string, unknown> | null;
|
|
89
|
+
export declare function validateWorkspaceContract(options?: WorkspaceInitOptions): WorkspaceFinding[];
|
|
90
|
+
export declare function initOrizuWorkspace(options?: WorkspaceInitOptions): WorkspaceInitResult;
|
|
91
|
+
export {};
|
|
92
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAC1C,eAAO,MAAM,wBAAwB,uBAAuB,CAAA;AAC5D,eAAO,MAAM,uBAAuB,UAAU,CAAA;AAE9C,eAAO,MAAM,oBAAoB,gGAOvB,CAAA;AAEV,eAAO,MAAM,mBAAmB,6DAKtB,CAAA;AAEV,eAAO,MAAM,kBAAkB,yEAKrB,CAAA;AAEV,eAAO,MAAM,sBAAsB,oGASzB,CAAA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IAAI,CA2C3D;AAsZD,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,kBAAkB,CAErF;AA+JD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAU7E;AAmND,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,gBAAgB,EAAE,CA6C5F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,mBAAmB,CAkDtF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADR-007 P5 (ALI-1074): the session-scoped, commit-first runner/optimizer
|
|
3
|
+
* push.
|
|
4
|
+
*
|
|
5
|
+
* `orizu runners|optimizers push --session <id>` sends the SAME deterministic
|
|
6
|
+
* zip as the legacy push to POST /api/cli/{runners|optimizers}/drafts: the
|
|
7
|
+
* server unpacks the zip's file set and commits it to the session's
|
|
8
|
+
* `orizu/session-*` branch (one Git Data API commit; binary entries travel
|
|
9
|
+
* base64), keeps uploading the zip to storage (dual-write until ALI-1046),
|
|
10
|
+
* and writes a DRAFT row pinning repo_path/content_sha/commit_sha. The draft
|
|
11
|
+
* seals — and gets its version number — when the session branch merges via
|
|
12
|
+
* `orizu session finish` + promotion-manifest apply.
|
|
13
|
+
*
|
|
14
|
+
* Labels cannot ride a draft push (`--label` with `--session` is an error at
|
|
15
|
+
* the command layer): labels address sealed versions only.
|
|
16
|
+
*
|
|
17
|
+
* Lives outside index.ts per the CLI line ratchet (ALI-976); mirrors
|
|
18
|
+
* prompt-draft-push.ts.
|
|
19
|
+
*/
|
|
20
|
+
/** index.ts helpers injected by the command dispatcher (report-comments-cli
|
|
21
|
+
* precedent: command modules receive a ctx instead of importing the CLI
|
|
22
|
+
* entrypoint). */
|
|
23
|
+
export interface ZipArtifactPushContext {
|
|
24
|
+
getArg: (name: string) => string | null;
|
|
25
|
+
getPositionalArg: (index: number) => string | null;
|
|
26
|
+
resolveProjectSlug: (projectArg: string | null) => Promise<string>;
|
|
27
|
+
readManifestFile: (dirArg: string) => Record<string, unknown>;
|
|
28
|
+
expandHomePath: (path: string) => string;
|
|
29
|
+
hasJsonFlag: () => boolean;
|
|
30
|
+
printJson: (value: Record<string, unknown>) => void;
|
|
31
|
+
printLine: (message?: string) => void;
|
|
32
|
+
parseJsonResponse: (response: Response, label: string) => Promise<Record<string, unknown>>;
|
|
33
|
+
}
|
|
34
|
+
/** The full `orizu runners|optimizers push` command (moved out of index.ts
|
|
35
|
+
* for the CLI line ratchet): --session takes the ADR-007 P5 commit-first
|
|
36
|
+
* draft path, sessionless stays on the legacy zip-only endpoint. */
|
|
37
|
+
export declare function runZipArtifactPush(kind: 'runner' | 'optimizer', ctx: ZipArtifactPushContext): Promise<void>;
|
|
38
|
+
export interface PushZipDraftInput {
|
|
39
|
+
kind: 'runner' | 'optimizer';
|
|
40
|
+
project: string;
|
|
41
|
+
sessionId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
manifest: Record<string, unknown>;
|
|
45
|
+
zipBase64: string;
|
|
46
|
+
contentSha256: string;
|
|
47
|
+
/** Test seam; defaults to the authenticated CLI fetcher. */
|
|
48
|
+
fetcher?: (path: string, init?: RequestInit) => Promise<Response>;
|
|
49
|
+
}
|
|
50
|
+
export interface PushZipDraftResult {
|
|
51
|
+
data: Record<string, unknown>;
|
|
52
|
+
message: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function pushZipDraft(input: PushZipDraftInput): Promise<PushZipDraftResult>;
|
|
55
|
+
//# sourceMappingURL=zip-draft-push.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip-draft-push.d.ts","sourceRoot":"","sources":["../src/zip-draft-push.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;kBAEkB;AAClB,MAAM,WAAW,sBAA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CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CAClE;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAwCxF"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orizu",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./instruction-set-loader": {
|
|
14
|
+
"types": "./dist/instruction-set-loader.d.ts",
|
|
15
|
+
"default": "./dist/instruction-set-loader.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
6
18
|
"bin": {
|
|
7
19
|
"orizu": "dist/index.js"
|
|
8
20
|
},
|
|
9
21
|
"files": [
|
|
10
22
|
"README.md",
|
|
11
23
|
"dist",
|
|
24
|
+
"requirements",
|
|
12
25
|
"scripts",
|
|
13
26
|
"src",
|
|
14
27
|
"tsconfig.json",
|
|
@@ -16,7 +29,7 @@
|
|
|
16
29
|
],
|
|
17
30
|
"scripts": {
|
|
18
31
|
"build": "tsc -p tsconfig.json",
|
|
19
|
-
"prepack": "node scripts/vendor-gepa-python.mjs && node scripts/vendor-orizu-skill.mjs",
|
|
32
|
+
"prepack": "node scripts/build-cli-dist.mjs && node scripts/vendor-gepa-python.mjs && node scripts/vendor-orizu-skill.mjs",
|
|
20
33
|
"postpack": "node scripts/vendor-gepa-python.mjs --clean && node scripts/vendor-orizu-skill.mjs --clean"
|
|
21
34
|
},
|
|
22
35
|
"dependencies": {
|