@ngocsangairvds/vsaf 3.2.16 → 4.0.1
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 +638 -302
- package/package.json +51 -13
- package/packages/cli/dist/commands/doctor.d.ts +9 -0
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor.js +49 -0
- package/packages/cli/dist/commands/doctor.js.map +1 -0
- package/packages/cli/dist/commands/init.d.ts +6 -0
- package/packages/cli/dist/commands/init.d.ts.map +1 -0
- package/packages/cli/dist/commands/init.js +66 -0
- package/packages/cli/dist/commands/init.js.map +1 -0
- package/packages/cli/dist/commands/install.d.ts +38 -0
- package/packages/cli/dist/commands/install.d.ts.map +1 -0
- package/packages/cli/dist/commands/install.js +246 -0
- package/packages/cli/dist/commands/install.js.map +1 -0
- package/packages/cli/dist/commands/list.d.ts +7 -0
- package/packages/cli/dist/commands/list.d.ts.map +1 -0
- package/packages/cli/dist/commands/list.js +40 -0
- package/packages/cli/dist/commands/list.js.map +1 -0
- package/packages/cli/dist/commands/mcp.d.ts +2 -0
- package/packages/cli/dist/commands/mcp.d.ts.map +1 -0
- package/packages/cli/dist/commands/mcp.js +8 -0
- package/packages/cli/dist/commands/mcp.js.map +1 -0
- package/packages/cli/dist/commands/run.d.ts +13 -0
- package/packages/cli/dist/commands/run.d.ts.map +1 -0
- package/packages/cli/dist/commands/run.js +90 -0
- package/packages/cli/dist/commands/run.js.map +1 -0
- package/packages/cli/dist/commands/serve.d.ts +6 -0
- package/packages/cli/dist/commands/serve.d.ts.map +1 -0
- package/packages/cli/dist/commands/serve.js +28 -0
- package/packages/cli/dist/commands/serve.js.map +1 -0
- package/packages/cli/dist/commands/skill.d.ts +48 -0
- package/packages/cli/dist/commands/skill.d.ts.map +1 -0
- package/packages/cli/dist/commands/skill.js +283 -0
- package/packages/cli/dist/commands/skill.js.map +1 -0
- package/packages/cli/dist/commands/status.d.ts +4 -0
- package/packages/cli/dist/commands/status.d.ts.map +1 -0
- package/packages/cli/dist/commands/status.js +21 -0
- package/packages/cli/dist/commands/status.js.map +1 -0
- package/packages/cli/dist/index.d.ts +3 -0
- package/packages/cli/dist/index.d.ts.map +1 -0
- package/packages/cli/dist/index.js +218 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/dist/mcp/server.d.ts +40 -0
- package/packages/cli/dist/mcp/server.d.ts.map +1 -0
- package/packages/cli/dist/mcp/server.js +219 -0
- package/packages/cli/dist/mcp/server.js.map +1 -0
- package/packages/cli/dist/server/app.d.ts +8 -0
- package/packages/cli/dist/server/app.d.ts.map +1 -0
- package/packages/cli/dist/server/app.js +29 -0
- package/packages/cli/dist/server/app.js.map +1 -0
- package/packages/cli/dist/server/routes/health.d.ts +3 -0
- package/packages/cli/dist/server/routes/health.d.ts.map +1 -0
- package/packages/cli/dist/server/routes/health.js +13 -0
- package/packages/cli/dist/server/routes/health.js.map +1 -0
- package/packages/cli/dist/server/routes/runs.d.ts +9 -0
- package/packages/cli/dist/server/routes/runs.d.ts.map +1 -0
- package/packages/cli/dist/server/routes/runs.js +57 -0
- package/packages/cli/dist/server/routes/runs.js.map +1 -0
- package/packages/cli/dist/server/routes/workflows.d.ts +5 -0
- package/packages/cli/dist/server/routes/workflows.d.ts.map +1 -0
- package/packages/cli/dist/server/routes/workflows.js +56 -0
- package/packages/cli/dist/server/routes/workflows.js.map +1 -0
- package/packages/cli/dist/server/services/execution-manager.d.ts +15 -0
- package/packages/cli/dist/server/services/execution-manager.d.ts.map +1 -0
- package/packages/cli/dist/server/services/execution-manager.js +78 -0
- package/packages/cli/dist/server/services/execution-manager.js.map +1 -0
- package/packages/cli/dist/server/services/sse-manager.d.ts +9 -0
- package/packages/cli/dist/server/services/sse-manager.d.ts.map +1 -0
- package/packages/cli/dist/server/services/sse-manager.js +41 -0
- package/packages/cli/dist/server/services/sse-manager.js.map +1 -0
- package/packages/cli/dist/server/static.d.ts +3 -0
- package/packages/cli/dist/server/static.d.ts.map +1 -0
- package/packages/cli/dist/server/static.js +30 -0
- package/packages/cli/dist/server/static.js.map +1 -0
- package/packages/cli/dist/ui/progress.d.ts +3 -0
- package/packages/cli/dist/ui/progress.d.ts.map +1 -0
- package/packages/cli/dist/ui/progress.js +27 -0
- package/packages/cli/dist/ui/progress.js.map +1 -0
- package/packages/core/dist/commands/command-loader.d.ts +9 -0
- package/packages/core/dist/commands/command-loader.d.ts.map +1 -0
- package/packages/core/dist/commands/command-loader.js +32 -0
- package/packages/core/dist/commands/command-loader.js.map +1 -0
- package/packages/core/dist/commands/prompt-builder.d.ts +3 -0
- package/packages/core/dist/commands/prompt-builder.d.ts.map +1 -0
- package/packages/core/dist/commands/prompt-builder.js +9 -0
- package/packages/core/dist/commands/prompt-builder.js.map +1 -0
- package/packages/core/dist/config/config-loader.d.ts +13 -0
- package/packages/core/dist/config/config-loader.d.ts.map +1 -0
- package/packages/core/dist/config/config-loader.js +40 -0
- package/packages/core/dist/config/config-loader.js.map +1 -0
- package/packages/core/dist/engine/condition-evaluator.d.ts +7 -0
- package/packages/core/dist/engine/condition-evaluator.d.ts.map +1 -0
- package/packages/core/dist/engine/condition-evaluator.js +37 -0
- package/packages/core/dist/engine/condition-evaluator.js.map +1 -0
- package/packages/core/dist/engine/contract-validator.d.ts +2 -0
- package/packages/core/dist/engine/contract-validator.d.ts.map +1 -0
- package/packages/core/dist/engine/contract-validator.js +8 -0
- package/packages/core/dist/engine/contract-validator.js.map +1 -0
- package/packages/core/dist/engine/cycle-detector.d.ts +4 -0
- package/packages/core/dist/engine/cycle-detector.d.ts.map +1 -0
- package/packages/core/dist/engine/cycle-detector.js +39 -0
- package/packages/core/dist/engine/cycle-detector.js.map +1 -0
- package/packages/core/dist/engine/dag-executor.d.ts +58 -0
- package/packages/core/dist/engine/dag-executor.d.ts.map +1 -0
- package/packages/core/dist/engine/dag-executor.js +262 -0
- package/packages/core/dist/engine/dag-executor.js.map +1 -0
- package/packages/core/dist/engine/dag-parser.d.ts +3 -0
- package/packages/core/dist/engine/dag-parser.d.ts.map +1 -0
- package/packages/core/dist/engine/dag-parser.js +83 -0
- package/packages/core/dist/engine/dag-parser.js.map +1 -0
- package/packages/core/dist/engine/node-runner.d.ts +16 -0
- package/packages/core/dist/engine/node-runner.d.ts.map +1 -0
- package/packages/core/dist/engine/node-runner.js +54 -0
- package/packages/core/dist/engine/node-runner.js.map +1 -0
- package/packages/core/dist/engine/variable-resolver.d.ts +10 -0
- package/packages/core/dist/engine/variable-resolver.d.ts.map +1 -0
- package/packages/core/dist/engine/variable-resolver.js +25 -0
- package/packages/core/dist/engine/variable-resolver.js.map +1 -0
- package/packages/core/dist/index.d.ts +20 -0
- package/packages/core/dist/index.d.ts.map +1 -0
- package/packages/core/dist/index.js +55 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/isolation/artifact-store.d.ts +9 -0
- package/packages/core/dist/isolation/artifact-store.d.ts.map +1 -0
- package/packages/core/dist/isolation/artifact-store.js +30 -0
- package/packages/core/dist/isolation/artifact-store.js.map +1 -0
- package/packages/core/dist/isolation/workspace-manager.d.ts +36 -0
- package/packages/core/dist/isolation/workspace-manager.d.ts.map +1 -0
- package/packages/core/dist/isolation/workspace-manager.js +189 -0
- package/packages/core/dist/isolation/workspace-manager.js.map +1 -0
- package/packages/core/dist/providers/provider-registry.d.ts +8 -0
- package/packages/core/dist/providers/provider-registry.d.ts.map +1 -0
- package/packages/core/dist/providers/provider-registry.js +21 -0
- package/packages/core/dist/providers/provider-registry.js.map +1 -0
- package/packages/core/dist/schema/ajv-instance.d.ts +3 -0
- package/packages/core/dist/schema/ajv-instance.d.ts.map +1 -0
- package/packages/core/dist/schema/ajv-instance.js +12 -0
- package/packages/core/dist/schema/ajv-instance.js.map +1 -0
- package/packages/core/dist/schema/validators.d.ts +11 -0
- package/packages/core/dist/schema/validators.d.ts.map +1 -0
- package/packages/core/dist/schema/validators.js +68 -0
- package/packages/core/dist/schema/validators.js.map +1 -0
- package/packages/core/dist/schema/workflow-schema.d.ts +158 -0
- package/packages/core/dist/schema/workflow-schema.d.ts.map +1 -0
- package/packages/core/dist/schema/workflow-schema.js +84 -0
- package/packages/core/dist/schema/workflow-schema.js.map +1 -0
- package/packages/core/dist/skills/skill-loader.d.ts +9 -0
- package/packages/core/dist/skills/skill-loader.d.ts.map +1 -0
- package/packages/core/dist/skills/skill-loader.js +37 -0
- package/packages/core/dist/skills/skill-loader.js.map +1 -0
- package/packages/core/dist/store/event-log.d.ts +8 -0
- package/packages/core/dist/store/event-log.d.ts.map +1 -0
- package/packages/core/dist/store/event-log.js +30 -0
- package/packages/core/dist/store/event-log.js.map +1 -0
- package/packages/core/dist/store/run-store.d.ts +20 -0
- package/packages/core/dist/store/run-store.d.ts.map +1 -0
- package/packages/core/dist/store/run-store.js +113 -0
- package/packages/core/dist/store/run-store.js.map +1 -0
- package/packages/core/dist/store/types.d.ts +30 -0
- package/packages/core/dist/store/types.d.ts.map +1 -0
- package/packages/core/dist/store/types.js +3 -0
- package/packages/core/dist/store/types.js.map +1 -0
- package/packages/core/dist/types/dag.d.ts +36 -0
- package/packages/core/dist/types/dag.d.ts.map +1 -0
- package/packages/core/dist/types/dag.js +3 -0
- package/packages/core/dist/types/dag.js.map +1 -0
- package/packages/core/dist/types/index.d.ts +4 -0
- package/packages/core/dist/types/index.d.ts.map +1 -0
- package/packages/core/dist/types/index.js +20 -0
- package/packages/core/dist/types/index.js.map +1 -0
- package/packages/core/dist/types/provider.d.ts +19 -0
- package/packages/core/dist/types/provider.d.ts.map +1 -0
- package/packages/core/dist/types/provider.js +3 -0
- package/packages/core/dist/types/provider.js.map +1 -0
- package/packages/core/dist/types/workflow.d.ts +47 -0
- package/packages/core/dist/types/workflow.d.ts.map +1 -0
- package/packages/core/dist/types/workflow.js +3 -0
- package/packages/core/dist/types/workflow.js.map +1 -0
- package/skills/sdlc/architecture/SKILL.md +202 -0
- package/skills/sdlc/diagnose/SKILL.md +117 -0
- package/skills/sdlc/discovery/SKILL.md +182 -0
- package/skills/sdlc/feature-complete/SKILL.md +159 -0
- package/skills/sdlc/grill-me/SKILL.md +10 -0
- package/skills/sdlc/hotfix-analyze/SKILL.md +174 -0
- package/skills/sdlc/hotfix-green/SKILL.md +101 -0
- package/skills/sdlc/hotfix-red/SKILL.md +96 -0
- package/skills/sdlc/hotfix-review/SKILL.md +151 -0
- package/skills/sdlc/implement/SKILL.md +234 -0
- package/skills/sdlc/improve-codebase-architecture/SKILL.md +70 -0
- package/skills/sdlc/init/SKILL.md +195 -0
- package/skills/sdlc/install-deps.mjs +139 -0
- package/skills/sdlc/onboard-code/SKILL.md +193 -0
- package/skills/sdlc/onboard-docs/SKILL.md +121 -0
- package/skills/sdlc/pack.yaml +59 -0
- package/skills/sdlc/prd/SKILL.md +163 -0
- package/skills/sdlc/review/SKILL.md +229 -0
- package/skills/sdlc/sdlc-health/SKILL.md +165 -0
- package/skills/sdlc/setup/SKILL.md +162 -0
- package/skills/sdlc/ship/SKILL.md +279 -0
- package/skills/sdlc/srs/SKILL.md +135 -0
- package/skills/sdlc/tdd/SKILL.md +107 -0
- package/skills/sdlc/test-design/SKILL.md +126 -0
- package/skills/sdlc/workflows/hotfix-tdd.yaml +20 -0
- package/skills/sdlc/workflows/hotfix.yaml +34 -0
- package/skills/sdlc/workflows/master-sdlc.yaml +45 -0
- package/skills/sdlc/workflows/onboarding.yaml +9 -0
- package/skills/sdlc/workflows/sdlc-build.yaml +16 -0
- package/skills/sdlc/workflows/sdlc-design.yaml +12 -0
- package/skills/sdlc/workflows/sdlc-qa.yaml +17 -0
- package/skills/sdlc/workflows/sdlc-testcase.yaml +7 -0
- package/skills/sdlc/workflows/sdlc-thinking.yaml +12 -0
- package/skills/sdlc/zoom-out/SKILL.md +7 -0
- package/assets/templates/.claude/settings.json +0 -48
- package/assets/templates/.codex/instructions.md +0 -143
- package/assets/templates/CLAUDE.md +0 -161
- package/bin/vsaf.js +0 -142
- package/src/config.js +0 -167
- package/src/global.js +0 -261
- package/src/project.js +0 -191
- package/src/status.js +0 -91
- package/src/utils.js +0 -126
- package/src/workflow.js +0 -106
- package/tools/bmad/_config/agent-manifest.csv +0 -7
- package/tools/bmad/_config/bmad-help.csv +0 -44
- package/tools/bmad/_config/files-manifest.csv +0 -261
- package/tools/bmad/_config/manifest.yaml +0 -21
- package/tools/bmad/_config/skill-manifest.csv +0 -42
- package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-feature-template.md +0 -669
- package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-system-template.md +0 -430
- package/tools/bmad/bmm/config.yaml +0 -20
- package/tools/bmad/bmm/module-help.csv +0 -33
- package/tools/bmad/core/config.yaml +0 -9
- package/tools/bmad/core/module-help.csv +0 -12
- package/tools/skills/bmad-agent-architect/SKILL.md +0 -54
- package/tools/skills/bmad-agent-architect/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-dev/SKILL.md +0 -69
- package/tools/skills/bmad-agent-dev/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-pm/SKILL.md +0 -59
- package/tools/skills/bmad-agent-pm/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-tech-writer/SKILL.md +0 -57
- package/tools/skills/bmad-agent-tech-writer/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-tech-writer/explain-concept.md +0 -20
- package/tools/skills/bmad-agent-tech-writer/mermaid-gen.md +0 -20
- package/tools/skills/bmad-agent-tech-writer/validate-doc.md +0 -19
- package/tools/skills/bmad-agent-tech-writer/write-document.md +0 -20
- package/tools/skills/bmad-agent-ux-designer/SKILL.md +0 -55
- package/tools/skills/bmad-agent-ux-designer/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-checkpoint-preview/SKILL.md +0 -29
- package/tools/skills/bmad-checkpoint-preview/generate-trail.md +0 -38
- package/tools/skills/bmad-checkpoint-preview/step-01-orientation.md +0 -105
- package/tools/skills/bmad-checkpoint-preview/step-02-walkthrough.md +0 -89
- package/tools/skills/bmad-checkpoint-preview/step-03-detail-pass.md +0 -106
- package/tools/skills/bmad-checkpoint-preview/step-04-testing.md +0 -74
- package/tools/skills/bmad-checkpoint-preview/step-05-wrapup.md +0 -24
- package/tools/skills/bmad-correct-course/SKILL.md +0 -6
- package/tools/skills/bmad-correct-course/checklist.md +0 -288
- package/tools/skills/bmad-correct-course/workflow.md +0 -267
- package/tools/skills/bmad-create-story/SKILL.md +0 -6
- package/tools/skills/bmad-create-story/checklist.md +0 -357
- package/tools/skills/bmad-create-story/discover-inputs.md +0 -88
- package/tools/skills/bmad-create-story/template.md +0 -49
- package/tools/skills/bmad-create-story/workflow.md +0 -380
- package/tools/skills/bmad-create-ux-design/SKILL.md +0 -6
- package/tools/skills/bmad-create-ux-design/steps/step-01-init.md +0 -135
- package/tools/skills/bmad-create-ux-design/steps/step-01b-continue.md +0 -127
- package/tools/skills/bmad-create-ux-design/steps/step-02-discovery.md +0 -190
- package/tools/skills/bmad-create-ux-design/steps/step-03-core-experience.md +0 -217
- package/tools/skills/bmad-create-ux-design/steps/step-04-emotional-response.md +0 -220
- package/tools/skills/bmad-create-ux-design/steps/step-05-inspiration.md +0 -235
- package/tools/skills/bmad-create-ux-design/steps/step-06-design-system.md +0 -253
- package/tools/skills/bmad-create-ux-design/steps/step-07-defining-experience.md +0 -255
- package/tools/skills/bmad-create-ux-design/steps/step-08-visual-foundation.md +0 -225
- package/tools/skills/bmad-create-ux-design/steps/step-09-design-directions.md +0 -225
- package/tools/skills/bmad-create-ux-design/steps/step-10-user-journeys.md +0 -242
- package/tools/skills/bmad-create-ux-design/steps/step-11-component-strategy.md +0 -249
- package/tools/skills/bmad-create-ux-design/steps/step-12-ux-patterns.md +0 -238
- package/tools/skills/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +0 -265
- package/tools/skills/bmad-create-ux-design/steps/step-14-complete.md +0 -171
- package/tools/skills/bmad-create-ux-design/ux-design-template.md +0 -13
- package/tools/skills/bmad-create-ux-design/workflow.md +0 -35
- package/tools/skills/bmad-dev-story/SKILL.md +0 -6
- package/tools/skills/bmad-dev-story/checklist.md +0 -80
- package/tools/skills/bmad-dev-story/workflow.md +0 -450
- package/tools/skills/bmad-distillator/SKILL.md +0 -177
- package/tools/skills/bmad-distillator/agents/distillate-compressor.md +0 -116
- package/tools/skills/bmad-distillator/agents/round-trip-reconstructor.md +0 -68
- package/tools/skills/bmad-distillator/resources/compression-rules.md +0 -51
- package/tools/skills/bmad-distillator/resources/distillate-format-reference.md +0 -227
- package/tools/skills/bmad-distillator/resources/splitting-strategy.md +0 -78
- package/tools/skills/bmad-distillator/scripts/analyze_sources.py +0 -300
- package/tools/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +0 -204
- package/tools/skills/bmad-document-project/SKILL.md +0 -6
- package/tools/skills/bmad-document-project/checklist.md +0 -245
- package/tools/skills/bmad-document-project/documentation-requirements.csv +0 -12
- package/tools/skills/bmad-document-project/instructions.md +0 -128
- package/tools/skills/bmad-document-project/templates/deep-dive-template.md +0 -345
- package/tools/skills/bmad-document-project/templates/index-template.md +0 -169
- package/tools/skills/bmad-document-project/templates/project-overview-template.md +0 -103
- package/tools/skills/bmad-document-project/templates/project-scan-report-schema.json +0 -160
- package/tools/skills/bmad-document-project/templates/source-tree-template.md +0 -135
- package/tools/skills/bmad-document-project/workflow.md +0 -25
- package/tools/skills/bmad-document-project/workflows/deep-dive-instructions.md +0 -299
- package/tools/skills/bmad-document-project/workflows/deep-dive-workflow.md +0 -34
- package/tools/skills/bmad-document-project/workflows/full-scan-instructions.md +0 -1107
- package/tools/skills/bmad-document-project/workflows/full-scan-workflow.md +0 -34
- package/tools/skills/bmad-edit-prd/SKILL.md +0 -6
- package/tools/skills/bmad-edit-prd/steps-e/step-e-01-discovery.md +0 -242
- package/tools/skills/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +0 -204
- package/tools/skills/bmad-edit-prd/steps-e/step-e-02-review.md +0 -245
- package/tools/skills/bmad-edit-prd/steps-e/step-e-03-edit.md +0 -250
- package/tools/skills/bmad-edit-prd/steps-e/step-e-04-complete.md +0 -163
- package/tools/skills/bmad-edit-prd/workflow.md +0 -62
- package/tools/skills/bmad-editorial-review-prose/SKILL.md +0 -86
- package/tools/skills/bmad-editorial-review-structure/SKILL.md +0 -179
- package/tools/skills/bmad-generate-project-context/SKILL.md +0 -6
- package/tools/skills/bmad-generate-project-context/project-context-template.md +0 -21
- package/tools/skills/bmad-generate-project-context/steps/step-01-discover.md +0 -186
- package/tools/skills/bmad-generate-project-context/steps/step-02-generate.md +0 -321
- package/tools/skills/bmad-generate-project-context/steps/step-03-complete.md +0 -278
- package/tools/skills/bmad-generate-project-context/workflow.md +0 -39
- package/tools/skills/bmad-help/SKILL.md +0 -75
- package/tools/skills/bmad-index-docs/SKILL.md +0 -66
- package/tools/skills/bmad-market-research/SKILL.md +0 -6
- package/tools/skills/bmad-market-research/research.template.md +0 -29
- package/tools/skills/bmad-market-research/steps/step-01-init.md +0 -184
- package/tools/skills/bmad-market-research/steps/step-02-customer-behavior.md +0 -239
- package/tools/skills/bmad-market-research/steps/step-03-customer-pain-points.md +0 -251
- package/tools/skills/bmad-market-research/steps/step-04-customer-decisions.md +0 -261
- package/tools/skills/bmad-market-research/steps/step-05-competitive-analysis.md +0 -173
- package/tools/skills/bmad-market-research/steps/step-06-research-completion.md +0 -478
- package/tools/skills/bmad-market-research/workflow.md +0 -51
- package/tools/skills/bmad-product-brief/SKILL.md +0 -82
- package/tools/skills/bmad-product-brief/agents/artifact-analyzer.md +0 -60
- package/tools/skills/bmad-product-brief/agents/opportunity-reviewer.md +0 -44
- package/tools/skills/bmad-product-brief/agents/skeptic-reviewer.md +0 -44
- package/tools/skills/bmad-product-brief/agents/web-researcher.md +0 -49
- package/tools/skills/bmad-product-brief/bmad-manifest.json +0 -17
- package/tools/skills/bmad-product-brief/prompts/contextual-discovery.md +0 -57
- package/tools/skills/bmad-product-brief/prompts/draft-and-review.md +0 -86
- package/tools/skills/bmad-product-brief/prompts/finalize.md +0 -75
- package/tools/skills/bmad-product-brief/prompts/guided-elicitation.md +0 -70
- package/tools/skills/bmad-product-brief/resources/brief-template.md +0 -60
- package/tools/skills/bmad-quick-dev/SKILL.md +0 -6
- package/tools/skills/bmad-quick-dev/compile-epic-context.md +0 -62
- package/tools/skills/bmad-quick-dev/spec-template.md +0 -88
- package/tools/skills/bmad-quick-dev/step-01-clarify-and-route.md +0 -91
- package/tools/skills/bmad-quick-dev/step-02-plan.md +0 -47
- package/tools/skills/bmad-quick-dev/step-03-implement.md +0 -39
- package/tools/skills/bmad-quick-dev/step-04-review.md +0 -49
- package/tools/skills/bmad-quick-dev/step-05-present.md +0 -63
- package/tools/skills/bmad-quick-dev/step-oneshot.md +0 -61
- package/tools/skills/bmad-quick-dev/workflow.md +0 -75
- package/tools/skills/bmad-retrospective/SKILL.md +0 -6
- package/tools/skills/bmad-retrospective/workflow.md +0 -1479
- package/tools/skills/bmad-shard-doc/SKILL.md +0 -105
- package/tools/skills/bmad-sprint-planning/SKILL.md +0 -6
- package/tools/skills/bmad-sprint-planning/checklist.md +0 -33
- package/tools/skills/bmad-sprint-planning/sprint-status-template.yaml +0 -56
- package/tools/skills/bmad-sprint-planning/workflow.md +0 -263
- package/tools/skills/bmad-sprint-status/SKILL.md +0 -6
- package/tools/skills/bmad-sprint-status/workflow.md +0 -261
- package/tools/skills/bmad-technical-research/SKILL.md +0 -6
- package/tools/skills/bmad-technical-research/research.template.md +0 -29
- package/tools/skills/bmad-technical-research/technical-steps/step-01-init.md +0 -137
- package/tools/skills/bmad-technical-research/technical-steps/step-02-technical-overview.md +0 -239
- package/tools/skills/bmad-technical-research/technical-steps/step-03-integration-patterns.md +0 -248
- package/tools/skills/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +0 -202
- package/tools/skills/bmad-technical-research/technical-steps/step-05-implementation-research.md +0 -233
- package/tools/skills/bmad-technical-research/technical-steps/step-06-research-synthesis.md +0 -487
- package/tools/skills/bmad-technical-research/workflow.md +0 -52
- package/tools/skills/bmad-validate-prd/data/prd-purpose.md +0 -197
- package/tools/skills/gitnexus/gitnexus-cli/SKILL.md +0 -82
- package/tools/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
- package/tools/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
- package/tools/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
- package/tools/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
- package/tools/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
- package/tools/skills/vds-scripts-skill/.openskills.json +0 -6
- package/tools/skills/vds-scripts-skill/QUALITY.md +0 -44
- package/tools/skills/vds-scripts-skill/SKILL.md +0 -127
- package/tools/skills/vds-scripts-skill/references/audit-commands.md +0 -171
- package/tools/skills/vds-scripts-skill/references/capability-index.md +0 -34
- package/tools/skills/vds-scripts-skill/references/development-commands.md +0 -12
- package/tools/skills/vds-scripts-skill/references/google-sheets.md +0 -71
- package/tools/skills/vds-scripts-skill/references/integration-commands.md +0 -17
- package/tools/skills/vds-scripts-skill/references/platform-bootstrap.md +0 -31
- package/tools/skills/vds-scripts-skill/references/specialist-routing.md +0 -14
- package/tools/skills/vds-scripts-skill/references/validation-commands.md +0 -15
- package/tools/skills/vsaf-build/SKILL.md +0 -146
- package/tools/skills/vsaf-discover/SKILL.md +0 -92
- package/tools/skills/vsaf-doc/SKILL.md +0 -22
- package/tools/skills/vsaf-doc-prd/SKILL.md +0 -58
- package/tools/skills/vsaf-doc-srs/SKILL.md +0 -170
- package/tools/skills/vsaf-docs/SKILL.md +0 -81
- package/tools/skills/vsaf-onboard/SKILL.md +0 -81
- package/tools/skills/vsaf-plan/SKILL.md +0 -101
- package/tools/skills/vsaf-push-prd/SKILL.md +0 -154
- package/tools/skills/vsaf-push-srs/SKILL.md +0 -166
- package/tools/skills/vsaf-retro/SKILL.md +0 -94
- package/tools/skills/vsaf-ship/SKILL.md +0 -142
- package/tools/skills/vsaf-sprint/SKILL.md +0 -111
- package/tools/skills/vsaf-test/SKILL.md +0 -207
- package/tools/vds-scripts/.claude/phase7-CLOSURE.md +0 -100
- package/tools/vds-scripts/.dockerignore +0 -62
- package/tools/vds-scripts/.github/ISSUE_TEMPLATE/cli-change.md +0 -92
- package/tools/vds-scripts/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -48
- package/tools/vds-scripts/.github/workflows/chaos-smoke.yml +0 -266
- package/tools/vds-scripts/.github/workflows/confluence-sync.yml +0 -44
- package/tools/vds-scripts/.github/workflows/docs-confluence-evidence.yml +0 -170
- package/tools/vds-scripts/.github/workflows/docs-quality.yml +0 -59
- package/tools/vds-scripts/.github/workflows/lint-and-test.yml +0 -90
- package/tools/vds-scripts/.github/workflows/scheduler-load-smoke.yml +0 -104
- package/tools/vds-scripts/.github/workflows/telegram-bridge-ci.yml +0 -131
- package/tools/vds-scripts/.graphifyignore +0 -29
- package/tools/vds-scripts/.importlinter +0 -86
- package/tools/vds-scripts/.mcp.json +0 -11
- package/tools/vds-scripts/.pre-commit-config.yaml +0 -62
- package/tools/vds-scripts/.ruffignore +0 -3
- package/tools/vds-scripts/.secrets.baseline +0 -133
- package/tools/vds-scripts/AGENTS.md +0 -250
- package/tools/vds-scripts/AGENTS.vi.md +0 -92
- package/tools/vds-scripts/Makefile +0 -97
- package/tools/vds-scripts/README.md +0 -103
- package/tools/vds-scripts/bitbucket_manifest_mapping.toml +0 -34
- package/tools/vds-scripts/bitbucket_orchestrator/ARCHITECTURE_ANALYSIS.md +0 -258
- package/tools/vds-scripts/bitbucket_orchestrator/BITBUCKET_API_PRACTICES.md +0 -393
- package/tools/vds-scripts/bitbucket_orchestrator/EVALUATION_REPORT.md +0 -61
- package/tools/vds-scripts/bitbucket_orchestrator/FEATURES.md +0 -908
- package/tools/vds-scripts/bitbucket_orchestrator/README.md +0 -817
- package/tools/vds-scripts/bitbucket_orchestrator/pyproject.toml +0 -49
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/__init__.py +0 -50
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/async_client.py +0 -641
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/cli.py +0 -2271
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/client.py +0 -2693
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/config.py +0 -186
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/factory.py +0 -185
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/parsers.py +0 -113
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/protocols.py +0 -244
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/repo_ops.py +0 -325
- package/tools/vds-scripts/bitbucket_orchestrator/tests/__init__.py +0 -8
- package/tools/vds-scripts/bitbucket_orchestrator/tests/conftest.py +0 -65
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_advanced_search.py +0 -155
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_async_client.py +0 -505
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_branch_permissions.py +0 -172
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli.py +0 -113
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_archive.py +0 -122
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_clone.py +0 -131
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client.py +0 -207
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_archive.py +0 -73
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_branch_conditions.py +0 -101
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_advanced.py +0 -180
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_file.py +0 -33
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_deployment_environments.py +0 -193
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_issues.py +0 -163
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pipelines_advanced.py +0 -171
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pr_blockers.py +0 -118
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_repository_variables.py +0 -155
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code.py +0 -98
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_advanced.py +0 -279
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_insights.py +0 -334
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_conditions.py +0 -149
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_config.py +0 -297
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_deployment_env.py +0 -352
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_errors.py +0 -67
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_factory.py +0 -352
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_fork_operations.py +0 -203
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_issue_cli.py +0 -262
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pipeline_advanced.py +0 -265
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pr_blocker.py +0 -206
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_protocols.py +0 -336
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_archive.py +0 -169
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_clone.py +0 -115
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_parsing.py +0 -149
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_settings.py +0 -336
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_variables.py +0 -266
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_webhooks.py +0 -188
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_workspace.py +0 -234
- package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/test_parsers.py +0 -254
- package/tools/vds-scripts/code/code_evidence_pack.json +0 -435
- package/tools/vds-scripts/confluence_orchestrator/Dockerfile +0 -19
- package/tools/vds-scripts/confluence_orchestrator/README.md +0 -479
- package/tools/vds-scripts/confluence_orchestrator/SYNC_SCRIPTS.md +0 -127
- package/tools/vds-scripts/confluence_orchestrator/SYNC_STANDARDIZATION.md +0 -108
- package/tools/vds-scripts/confluence_orchestrator/pyproject.toml +0 -50
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/__init__.py +0 -56
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/async_client.py +0 -100
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/cli.py +0 -3160
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/config.py +0 -215
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content.py +0 -368
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content_v2.py +0 -144
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/crawl_tree.py +0 -1833
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/errors.py +0 -44
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/eventing.py +0 -111
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/http.py +0 -1850
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/orchestration.py +0 -166
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/protocols.py +0 -61
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/reporting.py +0 -78
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree.py +0 -122
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree_copier.py +0 -431
- package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_from_markdown.py +0 -203
- package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_to_confluence.py +0 -299
- package/tools/vds-scripts/confluence_orchestrator/sync_png_attachments.py +0 -299
- package/tools/vds-scripts/confluence_orchestrator/tests/conftest.py +0 -46
- package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_content.py +0 -252
- package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_search.py +0 -193
- package/tools/vds-scripts/confluence_orchestrator/tests/test_async_client.py +0 -104
- package/tools/vds-scripts/confluence_orchestrator/tests/test_cache_management.py +0 -246
- package/tools/vds-scripts/confluence_orchestrator/tests/test_cli.py +0 -716
- package/tools/vds-scripts/confluence_orchestrator/tests/test_config.py +0 -130
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content.py +0 -192
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content_flags.py +0 -27
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content_labels.py +0 -94
- package/tools/vds-scripts/confluence_orchestrator/tests/test_crawl_tree.py +0 -2252
- package/tools/vds-scripts/confluence_orchestrator/tests/test_degraded_write_safety.py +0 -176
- package/tools/vds-scripts/confluence_orchestrator/tests/test_draft_management.py +0 -225
- package/tools/vds-scripts/confluence_orchestrator/tests/test_errors.py +0 -75
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing.py +0 -73
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_chaos.py +0 -37
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_rate_limit.py +0 -44
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_timeout.py +0 -49
- package/tools/vds-scripts/confluence_orchestrator/tests/test_export.py +0 -231
- package/tools/vds-scripts/confluence_orchestrator/tests/test_history.py +0 -217
- package/tools/vds-scripts/confluence_orchestrator/tests/test_http.py +0 -375
- package/tools/vds-scripts/confluence_orchestrator/tests/test_orchestration.py +0 -93
- package/tools/vds-scripts/confluence_orchestrator/tests/test_protocols.py +0 -23
- package/tools/vds-scripts/confluence_orchestrator/tests/test_reporting.py +0 -24
- package/tools/vds-scripts/confluence_orchestrator/tests/test_search_cql.py +0 -36
- package/tools/vds-scripts/confluence_orchestrator/tests/test_space_management.py +0 -236
- package/tools/vds-scripts/confluence_orchestrator/tests/test_space_permissions.py +0 -384
- package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier.py +0 -644
- package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier_remap.py +0 -289
- package/tools/vds-scripts/confluence_orchestrator/tests/test_user_group_management.py +0 -387
- package/tools/vds-scripts/db_query_orchestrator/Dockerfile +0 -64
- package/tools/vds-scripts/db_query_orchestrator/README.md +0 -105
- package/tools/vds-scripts/db_query_orchestrator/pyproject.toml +0 -67
- package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/cli.py +0 -545
- package/tools/vds-scripts/db_query_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/db_query_orchestrator/tests/test_cli.py +0 -171
- package/tools/vds-scripts/docker/.dockerignore +0 -38
- package/tools/vds-scripts/docker/ADR.md +0 -392
- package/tools/vds-scripts/docker/Dockerfile +0 -68
- package/tools/vds-scripts/docker/MIGRATION.md +0 -453
- package/tools/vds-scripts/docker/README.md +0 -347
- package/tools/vds-scripts/docker/ROLLBACK.md +0 -596
- package/tools/vds-scripts/docker/docker-compose.cli.yml +0 -90
- package/tools/vds-scripts/docker/docker-compose.infra.yml +0 -276
- package/tools/vds-scripts/docker/docker-compose.services.yml +0 -386
- package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -143
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +0 -71
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt +0 -50
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt.template +0 -36
- package/tools/vds-scripts/docs/.confluence-evidence/.gitkeep +0 -0
- package/tools/vds-scripts/docs/.confluence-evidence/PREFLIGHT.md +0 -132
- package/tools/vds-scripts/docs/.confluence-evidence/README.md +0 -84
- package/tools/vds-scripts/docs/.confluence.yaml +0 -157
- package/tools/vds-scripts/docs/.freshness.yaml +0 -54
- package/tools/vds-scripts/docs/README.md +0 -235
- package/tools/vds-scripts/docs/agents/README.md +0 -33
- package/tools/vds-scripts/docs/agents/explanation/data-flow.md +0 -132
- package/tools/vds-scripts/docs/agents/explanation/development-roadmap.md +0 -49
- package/tools/vds-scripts/docs/agents/explanation/features-overview.md +0 -62
- package/tools/vds-scripts/docs/agents/explanation/index.md +0 -36
- package/tools/vds-scripts/docs/agents/explanation/runtime-verification-and-gap-reporting.md +0 -127
- package/tools/vds-scripts/docs/agents/explanation/system-architecture.md +0 -139
- package/tools/vds-scripts/docs/agents/explanation/whats-new.md +0 -75
- package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-introduction.md +0 -65
- package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-model.md +0 -41
- package/tools/vds-scripts/docs/agents/how-to/02-using-vds-ai-memory.md +0 -98
- package/tools/vds-scripts/docs/agents/how-to/03-memory-cross-agent.md +0 -241
- package/tools/vds-scripts/docs/agents/how-to/04-using-progress-reports.md +0 -240
- package/tools/vds-scripts/docs/agents/how-to/08-semantic-search.md +0 -46
- package/tools/vds-scripts/docs/agents/how-to/apply-phase3-migration.md +0 -148
- package/tools/vds-scripts/docs/agents/how-to/choose-the-right-command-or-skill.md +0 -34
- package/tools/vds-scripts/docs/agents/how-to/contribute-new-orchestrator.md +0 -149
- package/tools/vds-scripts/docs/agents/how-to/decision-tree.md +0 -63
- package/tools/vds-scripts/docs/agents/how-to/first-audit-run.md +0 -83
- package/tools/vds-scripts/docs/agents/how-to/index.md +0 -49
- package/tools/vds-scripts/docs/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -314
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -165
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -138
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -130
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -142
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -140
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -135
- package/tools/vds-scripts/docs/agents/how-to/phase131-all-project-preparation.md +0 -211
- package/tools/vds-scripts/docs/agents/how-to/phase131-bounded-parallel-analysis.md +0 -123
- package/tools/vds-scripts/docs/agents/how-to/phase131-confluence-upload-recovery.md +0 -204
- package/tools/vds-scripts/docs/agents/how-to/phase132-department-preparation.md +0 -144
- package/tools/vds-scripts/docs/agents/how-to/run-ecosystem-daily-report.md +0 -213
- package/tools/vds-scripts/docs/agents/how-to/tips-and-tricks.md +0 -138
- package/tools/vds-scripts/docs/agents/how-to/troubleshooting-guide.md +0 -221
- package/tools/vds-scripts/docs/agents/reference/agent-operational-contract.md +0 -162
- package/tools/vds-scripts/docs/agents/reference/alignment-phase179-report.md +0 -144
- package/tools/vds-scripts/docs/agents/reference/audit-triage-playbook.md +0 -256
- package/tools/vds-scripts/docs/agents/reference/backup-restore.md +0 -132
- package/tools/vds-scripts/docs/agents/reference/bitbucket-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/brd-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/capability-coverage-review.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/ci-workflows.md +0 -98
- package/tools/vds-scripts/docs/agents/reference/circular-dependency-orchestrator.md +0 -55
- package/tools/vds-scripts/docs/agents/reference/cli-commands.md +0 -583
- package/tools/vds-scripts/docs/agents/reference/cli-development-standards.md +0 -41
- package/tools/vds-scripts/docs/agents/reference/cli-help-matrix.md +0 -84
- package/tools/vds-scripts/docs/agents/reference/common-errors.md +0 -126
- package/tools/vds-scripts/docs/agents/reference/configuration-reference.md +0 -128
- package/tools/vds-scripts/docs/agents/reference/confluence-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/confluence-sync-target.md +0 -111
- package/tools/vds-scripts/docs/agents/reference/confluence-sync.md +0 -46
- package/tools/vds-scripts/docs/agents/reference/db-query-orchestrator.md +0 -93
- package/tools/vds-scripts/docs/agents/reference/diagrams-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/ecosystem-daily-report.md +0 -229
- package/tools/vds-scripts/docs/agents/reference/elastic-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/env-git-helper.md +0 -216
- package/tools/vds-scripts/docs/agents/reference/evolution-orchestrator.md +0 -113
- package/tools/vds-scripts/docs/agents/reference/excel-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/git-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/agents/reference/google-sheets-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/grafana-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/hexagonal-orchestrator.md +0 -64
- package/tools/vds-scripts/docs/agents/reference/index.md +0 -36
- package/tools/vds-scripts/docs/agents/reference/infrastructure-v2.15.md +0 -67
- package/tools/vds-scripts/docs/agents/reference/intellij-orchestrator.md +0 -50
- package/tools/vds-scripts/docs/agents/reference/jira-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/agents/reference/links-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/lint-cli.md +0 -99
- package/tools/vds-scripts/docs/agents/reference/lsp-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/markdown-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/mcp-orchestrator.md +0 -88
- package/tools/vds-scripts/docs/agents/reference/memory-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/metabase-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/migration-playbook.md +0 -71
- package/tools/vds-scripts/docs/agents/reference/multi-agent-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/openapi-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/orchestrator-architecture.md +0 -194
- package/tools/vds-scripts/docs/agents/reference/orchestrator-comparison-matrix.md +0 -79
- package/tools/vds-scripts/docs/agents/reference/orchestrator-index.md +0 -73
- package/tools/vds-scripts/docs/agents/reference/pdf-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/portable-paths-and-config.md +0 -0
- package/tools/vds-scripts/docs/agents/reference/portable-paths-validation-matrix.md +0 -129
- package/tools/vds-scripts/docs/agents/reference/progress-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/progress-report-cli.md +0 -215
- package/tools/vds-scripts/docs/agents/reference/public-interface-orchestrator.md +0 -73
- package/tools/vds-scripts/docs/agents/reference/research-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/schema-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/search-tools.md +0 -34
- package/tools/vds-scripts/docs/agents/reference/skills-commands.md +0 -256
- package/tools/vds-scripts/docs/agents/reference/skills-reference.md +0 -32
- package/tools/vds-scripts/docs/agents/reference/sonarqube-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/agents/reference/spec-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/structure-orchestrator.md +0 -69
- package/tools/vds-scripts/docs/agents/reference/system-requirements.md +0 -76
- package/tools/vds-scripts/docs/agents/reference/tasks-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/validation-and-sync-notes.md +0 -54
- package/tools/vds-scripts/docs/agents/reference/vds-ai-memory-api.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/vds-cli-reference.md +0 -34
- package/tools/vds-scripts/docs/agents/reference/who-capability-inventory.md +0 -96
- package/tools/vds-scripts/docs/agents/reference/who-capability-routing-matrix.md +0 -14
- package/tools/vds-scripts/docs/agents/tutorials/feature-progression-guide.md +0 -112
- package/tools/vds-scripts/docs/agents/tutorials/index.md +0 -36
- package/tools/vds-scripts/docs/agents/tutorials/quick-start.md +0 -50
- package/tools/vds-scripts/docs/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -47
- package/tools/vds-scripts/docs/agents/tutorials/zero-to-productive-developer.md +0 -339
- package/tools/vds-scripts/docs/confluence/IMPLEMENTATION-SUMMARY.md +0 -78
- package/tools/vds-scripts/docs/confluence/SYNC-GUIDE.md +0 -47
- package/tools/vds-scripts/docs/deployment/offline-docker-image-load.md +0 -59
- package/tools/vds-scripts/docs/evolution-auto-run-rollout.md +0 -325
- package/tools/vds-scripts/docs/evolution-loop-deep-integration.md +0 -496
- package/tools/vds-scripts/docs/evolution-loop-integration-guide.md +0 -359
- package/tools/vds-scripts/docs/openspace-schema-snapshot.md +0 -73
- package/tools/vds-scripts/docs/operations/sla-mttr-policy.md +0 -44
- package/tools/vds-scripts/docs/p0-closure-evidence/SUMMARY.md +0 -58
- package/tools/vds-scripts/docs/p4-closure-evidence/.gitkeep +0 -0
- package/tools/vds-scripts/docs/p4-closure-evidence/smoke-20260427T024137Z-b95b586b.json +0 -15
- package/tools/vds-scripts/docs/p8-preflight-evidence/alembic-and-runtime-advisory-locks.md +0 -45
- package/tools/vds-scripts/docs/p8-preflight-evidence/dbos-listen-notify.md +0 -54
- package/tools/vds-scripts/docs/p8-preflight-evidence/pgbouncer-search-path-empirical.md +0 -110
- package/tools/vds-scripts/docs/p8-preflight-evidence/pgvector-set-local-audit.md +0 -51
- package/tools/vds-scripts/docs/p8-preflight-evidence/topology-decision-session-mode.md +0 -57
- package/tools/vds-scripts/docs/phases/CHANGELOG.md +0 -103
- package/tools/vds-scripts/docs/phases/PHASE_125_COMPLETION_AND_MERGE.md +0 -212
- package/tools/vds-scripts/docs/phases/phase125/IMPLEMENTATION_REPORT.md +0 -227
- package/tools/vds-scripts/docs/phases/phase125/TSK-125.10-11-implementation-summary.md +0 -196
- package/tools/vds-scripts/docs/phases/phase125/profile-patch-ollama-local-anthropic.md +0 -122
- package/tools/vds-scripts/docs/phases/phase125_completion_summary.md +0 -369
- package/tools/vds-scripts/docs/phases/phase125_llm_analysis_skill.md +0 -164
- package/tools/vds-scripts/docs/phases/phase125_merge_complete.md +0 -147
- package/tools/vds-scripts/docs/phases/phase125_skill_runtime_closure_20260321.md +0 -91
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/closure-handoff-summary-2026-03-23.md +0 -290
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/remaining-risk-register-2026-03-25.md +0 -143
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/verification-evidence-2026-03-23.md +0 -135
- package/tools/vds-scripts/docs/v0-sunset-known-issues.md +0 -88
- package/tools/vds-scripts/docs/vi/TRANSLATION-BACKLOG.md +0 -72
- package/tools/vds-scripts/docs/vi/agents/README.md +0 -41
- package/tools/vds-scripts/docs/vi/agents/explanation/features-overview.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/explanation/index.md +0 -14
- package/tools/vds-scripts/docs/vi/agents/explanation/runtime-verification-and-gap-reporting.md +0 -129
- package/tools/vds-scripts/docs/vi/agents/explanation/whats-new.md +0 -37
- package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-introduction.md +0 -21
- package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-model.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/how-to/02-using-vds-ai-memory.md +0 -100
- package/tools/vds-scripts/docs/vi/agents/how-to/03-memory-cross-agent.md +0 -243
- package/tools/vds-scripts/docs/vi/agents/how-to/04-using-progress-reports.md +0 -242
- package/tools/vds-scripts/docs/vi/agents/how-to/08-semantic-search.md +0 -16
- package/tools/vds-scripts/docs/vi/agents/how-to/choose-the-right-command-or-skill.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/how-to/decision-tree.md +0 -77
- package/tools/vds-scripts/docs/vi/agents/how-to/first-audit-run.md +0 -85
- package/tools/vds-scripts/docs/vi/agents/how-to/index.md +0 -21
- package/tools/vds-scripts/docs/vi/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -156
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -174
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -147
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -139
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -151
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -149
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -144
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-all-project-preparation.md +0 -213
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-bounded-parallel-analysis.md +0 -125
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-confluence-upload-recovery.md +0 -206
- package/tools/vds-scripts/docs/vi/agents/how-to/phase132-department-preparation.md +0 -146
- package/tools/vds-scripts/docs/vi/agents/how-to/tips-and-tricks.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/how-to/troubleshooting-guide.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/reference/agent-operational-contract.md +0 -98
- package/tools/vds-scripts/docs/vi/agents/reference/audit-triage-playbook.md +0 -258
- package/tools/vds-scripts/docs/vi/agents/reference/bitbucket-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/brd-orchestrator.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/reference/capability-coverage-review.md +0 -46
- package/tools/vds-scripts/docs/vi/agents/reference/circular-dependency-orchestrator.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/reference/cli-commands.md +0 -409
- package/tools/vds-scripts/docs/vi/agents/reference/cli-development-standards.md +0 -19
- package/tools/vds-scripts/docs/vi/agents/reference/cli-help-matrix.md +0 -71
- package/tools/vds-scripts/docs/vi/agents/reference/common-errors.md +0 -133
- package/tools/vds-scripts/docs/vi/agents/reference/configuration-reference.md +0 -25
- package/tools/vds-scripts/docs/vi/agents/reference/confluence-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/db-query-orchestrator.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/diagrams-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/elastic-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/evolution-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/excel-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/git-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/google-sheets-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/grafana-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/hexagonal-orchestrator.md +0 -73
- package/tools/vds-scripts/docs/vi/agents/reference/index.md +0 -25
- package/tools/vds-scripts/docs/vi/agents/reference/intellij-orchestrator.md +0 -59
- package/tools/vds-scripts/docs/vi/agents/reference/jira-orchestrator.md +0 -32
- package/tools/vds-scripts/docs/vi/agents/reference/links-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/lsp-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/markdown-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/vi/agents/reference/mcp-orchestrator.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/memory-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/metabase-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/multi-agent-orchestrator.md +0 -61
- package/tools/vds-scripts/docs/vi/agents/reference/openapi-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-architecture.md +0 -24
- package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-index.md +0 -73
- package/tools/vds-scripts/docs/vi/agents/reference/pdf-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-and-config.md +0 -123
- package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-validation-matrix.md +0 -131
- package/tools/vds-scripts/docs/vi/agents/reference/progress-orchestrator.md +0 -43
- package/tools/vds-scripts/docs/vi/agents/reference/progress-report-cli.md +0 -217
- package/tools/vds-scripts/docs/vi/agents/reference/public-interface-orchestrator.md +0 -82
- package/tools/vds-scripts/docs/vi/agents/reference/research-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/schema-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/search-tools.md +0 -19
- package/tools/vds-scripts/docs/vi/agents/reference/skills-reference.md +0 -27
- package/tools/vds-scripts/docs/vi/agents/reference/sonarqube-orchestrator.md +0 -71
- package/tools/vds-scripts/docs/vi/agents/reference/spec-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/vi/agents/reference/structure-orchestrator.md +0 -78
- package/tools/vds-scripts/docs/vi/agents/reference/system-requirements.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/tasks-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/validation-and-sync-notes.md +0 -26
- package/tools/vds-scripts/docs/vi/agents/reference/vds-ai-memory-api.md +0 -53
- package/tools/vds-scripts/docs/vi/agents/reference/vds-cli-reference.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/who-capability-inventory.md +0 -98
- package/tools/vds-scripts/docs/vi/agents/reference/who-capability-routing-matrix.md +0 -16
- package/tools/vds-scripts/docs/vi/agents/tutorials/feature-progression-guide.md +0 -124
- package/tools/vds-scripts/docs/vi/agents/tutorials/index.md +0 -13
- package/tools/vds-scripts/docs/vi/agents/tutorials/quick-start.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -42
- package/tools/vds-scripts/docs/vi/agents/tutorials/zero-to-productive-developer.md +0 -137
- package/tools/vds-scripts/elastic_orchestrator/README.md +0 -450
- package/tools/vds-scripts/elastic_orchestrator/pyproject.toml +0 -97
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/__init__.py +0 -81
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/cli.py +0 -652
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/client.py +0 -743
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/config.py +0 -208
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/py.typed +0 -0
- package/tools/vds-scripts/elastic_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/elastic_orchestrator/tests/conftest.py +0 -227
- package/tools/vds-scripts/elastic_orchestrator/tests/test_client.py +0 -990
- package/tools/vds-scripts/elastic_orchestrator/tests/test_config.py +0 -268
- package/tools/vds-scripts/elastic_orchestrator/tests/test_e2e_verification.py +0 -272
- package/tools/vds-scripts/elastic_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/git_orchestrator/ENHANCEMENT_SUMMARY.md +0 -119
- package/tools/vds-scripts/git_orchestrator/README.md +0 -286
- package/tools/vds-scripts/git_orchestrator/VERIFICATION_REPORT.md +0 -152
- package/tools/vds-scripts/git_orchestrator/pyproject.toml +0 -37
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__init__.py +0 -30
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__main__.py +0 -4
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/branch_probe.py +0 -271
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/cli.py +0 -892
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/logging_config.py +0 -63
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/manifest.py +0 -249
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/orchestrator.py +0 -1647
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/protocols.py +0 -35
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/reporting.py +0 -55
- package/tools/vds-scripts/git_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/git_orchestrator/tests/test_cli_settings.py +0 -19
- package/tools/vds-scripts/git_orchestrator/tests/test_integration.py +0 -79
- package/tools/vds-scripts/git_orchestrator/tests/test_manifest.py +0 -79
- package/tools/vds-scripts/git_orchestrator/tests/test_orchestrator.py +0 -207
- package/tools/vds-scripts/git_orchestrator/tests/test_public_api.py +0 -235
- package/tools/vds-scripts/git_orchestrator/tests/test_resilience.py +0 -343
- package/tools/vds-scripts/git_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/git_orchestrator/tests/unit/test_branch_probe.py +0 -327
- package/tools/vds-scripts/git_orchestrator/tests/unit/test_protocols.py +0 -132
- package/tools/vds-scripts/google_sheets_orchestrator/README.md +0 -241
- package/tools/vds-scripts/google_sheets_orchestrator/pyproject.toml +0 -45
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/__init__.py +0 -69
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/cli.py +0 -568
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/client.py +0 -186
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/config.py +0 -46
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/errors.py +0 -41
- package/tools/vds-scripts/google_sheets_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/conftest.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_cli.py +0 -212
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_client.py +0 -24
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_config.py +0 -16
- package/tools/vds-scripts/grafana_orchestrator/README.md +0 -572
- package/tools/vds-scripts/grafana_orchestrator/pyproject.toml +0 -102
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/__init__.py +0 -78
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/cli.py +0 -455
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/client.py +0 -700
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/config.py +0 -243
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/py.typed +0 -1
- package/tools/vds-scripts/grafana_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/grafana_orchestrator/tests/conftest.py +0 -308
- package/tools/vds-scripts/grafana_orchestrator/tests/test_client.py +0 -458
- package/tools/vds-scripts/grafana_orchestrator/tests/test_config.py +0 -203
- package/tools/vds-scripts/grafana_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/jira_orchestrator/README.md +0 -864
- package/tools/vds-scripts/jira_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/__init__.py +0 -65
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/adapter.py +0 -1685
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/cli.py +0 -2806
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/config.py +0 -168
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/reporting.py +0 -66
- package/tools/vds-scripts/jira_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/jira_orchestrator/tests/conftest.py +0 -86
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_bulk_operations.py +0 -91
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_components.py +0 -56
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_createmeta.py +0 -45
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_dashboard.py +0 -119
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_issue_properties.py +0 -53
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_permissions_compat.py +0 -41
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_reindex.py +0 -42
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_remote_links.py +0 -75
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_transitions.py +0 -90
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_user_management.py +0 -116
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_version_management.py +0 -181
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_watchers.py +0 -43
- package/tools/vds-scripts/jira_orchestrator/tests/test_advanced_search.py +0 -179
- package/tools/vds-scripts/jira_orchestrator/tests/test_agile.py +0 -304
- package/tools/vds-scripts/jira_orchestrator/tests/test_application_properties.py +0 -243
- package/tools/vds-scripts/jira_orchestrator/tests/test_backlog.py +0 -91
- package/tools/vds-scripts/jira_orchestrator/tests/test_bulk_operations.py +0 -403
- package/tools/vds-scripts/jira_orchestrator/tests/test_cli.py +0 -108
- package/tools/vds-scripts/jira_orchestrator/tests/test_components.py +0 -119
- package/tools/vds-scripts/jira_orchestrator/tests/test_config.py +0 -166
- package/tools/vds-scripts/jira_orchestrator/tests/test_dashboard.py +0 -122
- package/tools/vds-scripts/jira_orchestrator/tests/test_discover_fields.py +0 -207
- package/tools/vds-scripts/jira_orchestrator/tests/test_errors.py +0 -72
- package/tools/vds-scripts/jira_orchestrator/tests/test_filter_management.py +0 -411
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_archiving.py +0 -179
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_links.py +0 -257
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_properties.py +0 -189
- package/tools/vds-scripts/jira_orchestrator/tests/test_link_types.py +0 -407
- package/tools/vds-scripts/jira_orchestrator/tests/test_parse_set.py +0 -37
- package/tools/vds-scripts/jira_orchestrator/tests/test_permissions.py +0 -343
- package/tools/vds-scripts/jira_orchestrator/tests/test_reindex.py +0 -81
- package/tools/vds-scripts/jira_orchestrator/tests/test_remote_links.py +0 -269
- package/tools/vds-scripts/jira_orchestrator/tests/test_security_schemes.py +0 -202
- package/tools/vds-scripts/jira_orchestrator/tests/test_transitions_changelog.py +0 -109
- package/tools/vds-scripts/jira_orchestrator/tests/test_user_management.py +0 -246
- package/tools/vds-scripts/jira_orchestrator/tests/test_version_management.py +0 -503
- package/tools/vds-scripts/jira_orchestrator/tests/test_watchers.py +0 -116
- package/tools/vds-scripts/jira_orchestrator/tests/test_worklog.py +0 -243
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/README.md +0 -864
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/__init__.py +0 -65
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/adapter.py +0 -1689
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/cli.py +0 -2799
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/config.py +0 -137
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/reporting.py +0 -65
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/conftest.py +0 -86
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_bulk_operations.py +0 -101
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_components.py +0 -64
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_createmeta.py +0 -45
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_dashboard.py +0 -135
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_issue_properties.py +0 -63
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_permissions_compat.py +0 -42
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_reindex.py +0 -42
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_remote_links.py +0 -89
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_transitions.py +0 -91
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_user_management.py +0 -130
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_version_management.py +0 -189
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_watchers.py +0 -49
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_advanced_search.py +0 -213
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_agile.py +0 -334
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_application_properties.py +0 -261
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_backlog.py +0 -91
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_bulk_operations.py +0 -443
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_cli.py +0 -106
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_components.py +0 -133
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_config.py +0 -166
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_dashboard.py +0 -130
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_discover_fields.py +0 -207
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_errors.py +0 -61
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_filter_management.py +0 -478
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_archiving.py +0 -181
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_links.py +0 -257
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_properties.py +0 -203
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_link_types.py +0 -426
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_parse_set.py +0 -37
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_permissions.py +0 -358
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_reindex.py +0 -81
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_remote_links.py +0 -292
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_security_schemes.py +0 -218
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_transitions_changelog.py +0 -121
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_user_management.py +0 -283
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_version_management.py +0 -561
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_watchers.py +0 -128
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_worklog.py +0 -265
- package/tools/vds-scripts/llms.txt +0 -159
- package/tools/vds-scripts/mcp_server/Dockerfile +0 -63
- package/tools/vds-scripts/mcp_server/README.md +0 -140
- package/tools/vds-scripts/mcp_server/pyproject.toml +0 -41
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/__init__.py +0 -3
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/config.py +0 -36
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/server.py +0 -111
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/__init__.py +0 -15
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/bitbucket_tools.py +0 -47
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/confluence_tools.py +0 -53
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/git_tools.py +0 -71
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/jira_tools.py +0 -63
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/vidp_tools.py +0 -64
- package/tools/vds-scripts/mcp_server/tests/__init__.py +0 -1
- package/tools/vds-scripts/mcp_server/tests/conftest.py +0 -31
- package/tools/vds-scripts/mcp_server/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/mcp_server/tests/unit/test_bitbucket_tools.py +0 -28
- package/tools/vds-scripts/mcp_server/tests/unit/test_confluence_tools.py +0 -28
- package/tools/vds-scripts/mcp_server/tests/unit/test_git_tools.py +0 -35
- package/tools/vds-scripts/mcp_server/tests/unit/test_jira_tools.py +0 -35
- package/tools/vds-scripts/mcp_server/tests/verification/__init__.py +0 -6
- package/tools/vds-scripts/mcp_server/tests/verification/conftest.py +0 -51
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_confluence_tools.py +0 -40
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_jira_tools.py +0 -39
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_tool_registration.py +0 -50
- package/tools/vds-scripts/memory_orchestrator/.env.example +0 -109
- package/tools/vds-scripts/memory_orchestrator/Dockerfile +0 -103
- package/tools/vds-scripts/memory_orchestrator/README.md +0 -203
- package/tools/vds-scripts/memory_orchestrator/alembic/env.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0001_add_team_id_to_vector_search_history.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0002_nullable_query_text_vector_search_history.py +0 -47
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0003_create_memory_vectors_if_missing.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0004_create_memory_duplicate_groups_and_members.py +0 -61
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0005_create_search_queries_if_missing.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0006_create_export_import_jobs_if_missing.py +0 -52
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0007_create_remaining_orm_tables.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0008_alter_export_import_jobs_user_id_to_varchar.py +0 -55
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0009_create_core_tables_if_missing.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0010_create_service_accounts.py +0 -75
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0011_create_users_table.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0012_audit_log_v3.py +0 -107
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0042_memory_dedup_resolutions.py +0 -67
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0043_memory_records_tombstones.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0044_memory_evolution_shadow_soak_state.py +0 -69
- package/tools/vds-scripts/memory_orchestrator/alembic.ini +0 -65
- package/tools/vds-scripts/memory_orchestrator/conftest.py +0 -42
- package/tools/vds-scripts/memory_orchestrator/create_analytics_tables.sql +0 -289
- package/tools/vds-scripts/memory_orchestrator/create_memory_evolution_tables.sql +0 -104
- package/tools/vds-scripts/memory_orchestrator/create_memory_vectors_table.sql +0 -26
- package/tools/vds-scripts/memory_orchestrator/init-db-simple.sql +0 -16
- package/tools/vds-scripts/memory_orchestrator/pyproject.toml +0 -169
- package/tools/vds-scripts/memory_orchestrator/scripts/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/scripts/deploy.sh +0 -112
- package/tools/vds-scripts/memory_orchestrator/scripts/entrypoint.sh +0 -130
- package/tools/vds-scripts/memory_orchestrator/scripts/mint_memory_client_service_token.py +0 -179
- package/tools/vds-scripts/memory_orchestrator/scripts/recover_with_infer_false.py +0 -224
- package/tools/vds-scripts/memory_orchestrator/scripts/soak-stalled-rate.sh +0 -95
- package/tools/vds-scripts/memory_orchestrator/scripts/verify-track-alpha.sh +0 -110
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/__init__.py +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/_model_factory.py +0 -37
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/consolidation.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/extraction.py +0 -56
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/intent.py +0 -40
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/cli.py +0 -1457
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/client.py +0 -204
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/memory_evolution.toml +0 -20
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/storage_rules.yaml +0 -281
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/session_templates.json +0 -63
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/__init__.py +0 -10
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/alembic_filters.py +0 -66
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/formatters.py +0 -82
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/__init__.py +0 -25
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/ai_memory_api.py +0 -1172
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/mcp_api.py +0 -854
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/openapi_config.py +0 -426
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/status_mapping.py +0 -91
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/analytics.py +0 -1406
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/auth.py +0 -409
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/authorization.py +0 -474
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cache.py +0 -51
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cleanup.py +0 -286
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/deduplication.py +0 -546
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/dependencies.py +0 -349
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/embedding.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/export_import.py +0 -596
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/health.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/hooks.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/maintenance.py +0 -653
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/promotion.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/reconciliation.py +0 -102
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/sharing.py +0 -674
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/tasks.py +0 -72
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/versioning.py +0 -483
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/memory_manager.py +0 -914
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/research_analyzer.py +0 -839
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/vds_brain_agent.py +0 -1120
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/config/memory_dedup.toml +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/ai_memory_exceptions.py +0 -225
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/audit_log_writer.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/auth.py +0 -350
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/config.py +0 -836
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/exceptions.py +0 -203
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/identity.py +0 -175
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/input_validation.py +0 -785
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/legacy_claim_normalizer.py +0 -142
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rate_limit.py +0 -587
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rbac_decorators.py +0 -531
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/redis.py +0 -446
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/scope_validator.py +0 -125
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security.py +0 -109
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security_middleware.py +0 -535
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/test_input_validation.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/analytics_repository.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/postgres_manager.py +0 -1897
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/rbac_migration.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/redis_manager.py +0 -617
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/user.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/storage_strategy_hook.py +0 -465
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/memory_transformer.py +0 -827
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/main.py +0 -491
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/__init__.py +0 -20
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/env_config_parser.py +0 -188
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/official_mcp_client.py +0 -1574
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/working_mcp_interface.py +0 -340
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/__init__.py +0 -125
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/ai_memory_models.py +0 -1587
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/analytics_models.py +0 -766
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/auth_models.py +0 -460
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/database.py +0 -841
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/deduplication_models.py +0 -354
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/export_import_models.py +0 -353
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/rbac.py +0 -9
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/resource_ownership.py +0 -282
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models.py +0 -427
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models_additional.py +0 -322
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/sharing_models.py +0 -366
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/perf/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/dev_mode_user_repository.py +0 -194
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/postgres_user_repository.py +0 -280
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/service_account_repository.py +0 -330
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/user_repository.py +0 -77
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ai_memory_service.py +0 -2754
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_events.py +0 -104
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_service.py +0 -2825
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/auth.py +0 -207
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/embedding_service.py +0 -51
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/entity_backfill_service.py +0 -343
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/fallback_search_service.py +0 -327
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/health_check.py +0 -1556
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mcp_integration_service.py +0 -224
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_adapter.py +0 -796
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_client.py +0 -48
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_sync_service.py +0 -484
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_admin_service.py +0 -1011
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_crud_service.py +0 -1469
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_deduplication.py +0 -1761
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/__init__.py +0 -17
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_app.py +0 -70
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_entrypoint.py +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/config_loader.py +0 -275
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/consolidation_executor.py +0 -309
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/processor.py +0 -574
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/rules.py +0 -136
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/shadow_soak.py +0 -161
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/sweeper.py +0 -216
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/tracker.py +0 -265
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/worker.py +0 -780
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_export_import.py +0 -1403
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_search_service.py +0 -1164
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_sharing.py +0 -741
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_versioning.py +0 -592
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ownership_service.py +0 -798
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/promotion_service.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/query_router_service.py +0 -523
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/rbac_service.py +0 -711
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/semantic_cache_service.py +0 -605
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/session_template_service.py +0 -76
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/__init__.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/consolidation_worker.py +0 -384
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/content_analyzer.py +0 -482
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/pattern_matcher.py +0 -363
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/rule_engine.py +0 -447
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/storage_engine.py +0 -299
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/tool_registry_service.py +0 -544
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/triage_service.py +0 -250
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/vector_search_service.py +0 -497
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/create_user_use_case.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/exceptions.py +0 -94
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/login_use_case.py +0 -217
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/policies.py +0 -102
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/refresh_token_use_case.py +0 -86
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/data_transformer.py +0 -28
- package/tools/vds-scripts/memory_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/auth/__init__.py +0 -6
- package/tools/vds-scripts/memory_orchestrator/tests/auth/conftest.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_acquire_jwt_token_deprecation.py +0 -176
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0010_migration.py +0 -193
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0011_users_migration.py +0 -234
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0012_audit_log_v3_migration.py +0 -184
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_analytics_stream_machine_hint.py +0 -149
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_identity_fields.py +0 -369
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_v3_schema.py +0 -186
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_auth_api_endpoints.py +0 -264
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_authenticators.py +0 -343
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_conftest_factory.py +0 -108
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_create_user_use_case.py +0 -246
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dependencies.py +0 -232
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_claim_fidelity.py +0 -87
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_parity.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_user_repository.py +0 -271
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_get_current_identity.py +0 -403
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_identity.py +0 -272
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_jwt_auth.py +0 -658
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_callers_smoke.py +0 -141
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_compat.py +0 -234
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_normalizer.py +0 -315
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lockout_policy.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_login_use_case.py +0 -455
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lsp_regression_contracts.py +0 -259
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_machine_context_detection.py +0 -160
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_me_endpoint_no_deprecation.py +0 -199
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_mint_service_token.py +0 -244
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_service_account_repository.py +0 -222
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_user_repository.py +0 -302
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_refresh_token_use_case.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_scope_validator.py +0 -249
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_security.py +0 -158
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_entity.py +0 -146
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_repository_protocol.py +0 -60
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_token_precedence.py +0 -205
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_entity.py +0 -217
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_repository_protocol.py +0 -141
- package/tools/vds-scripts/memory_orchestrator/tests/cli/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/tests/cli/test_memory_create_user.py +0 -208
- package/tools/vds-scripts/memory_orchestrator/tests/conftest.py +0 -184
- package/tools/vds-scripts/memory_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_auth_login_e2e.py +0 -425
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_health_strict_json.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_async_mode_status.py +0 -192
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_vami020_dual_correctness.py +0 -218
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_worktree_compose.py +0 -257
- package/tools/vds-scripts/memory_orchestrator/tests/service/TEST_DOCUMENTATION.md +0 -467
- package/tools/vds-scripts/memory_orchestrator/tests/service/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/service/conftest.py +0 -1040
- package/tools/vds-scripts/memory_orchestrator/tests/service/conftest_root.py +0 -63
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/Local Environment.postman_environment.json +0 -46
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/README.md +0 -302
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/VDS Analytics API.postman_collection.json +0 -562
- package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.integration.ini +0 -21
- package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.unit.ini +0 -21
- package/tools/vds-scripts/memory_orchestrator/tests/service/services/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/service/services/test_health_aggregation.py +0 -370
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_api.py +0 -797
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service.py +0 -1661
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service_routing.py +0 -165
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_alerts.py +0 -89
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_api_integration.py +0 -604
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_bi.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboard_e2e.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboards.py +0 -127
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_enhanced.py +0 -575
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_external.py +0 -44
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_performance_metrics.py +0 -60
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_realtime.py +0 -63
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_reports.py +0 -138
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_service.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_stream_cli.py +0 -305
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_websocket.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_basic.py +0 -29
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warm_endpoint.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_simple.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_validation.py +0 -378
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_circuit_breaker_integration.py +0 -336
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cleanup_endpoint.py +0 -126
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_concurrent_load.py +0 -603
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cors_origins_validator.py +0 -48
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_drain_evolution.py +0 -130
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_lifecycle.py +0 -34
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_migration.py +0 -167
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_protocol_shape.py +0 -84
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_routes_w9.py +0 -340
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_service.py +0 -291
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_entity_backfill.py +0 -248
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_metrics.py +0 -582
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_search.py +0 -397
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_hooks.py +0 -149
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_include_internal_filter.py +0 -301
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_input_validation.py +0 -713
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_load_batch_endpoint.py +0 -300
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_maintenance_endpoints.py +0 -576
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mcp_integration_service.py +0 -99
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_cloud.py +0 -111
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_dual_mode.py +0 -112
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_hybrid.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_return_shape.py +0 -188
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_crud_integration.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_fix.py +0 -349
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_service_resolver.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_client_maintenance.py +0 -121
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_consolidation_executor.py +0 -47
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_deduplication_service.py +0 -1275
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_phase232.py +0 -427
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_processor.py +0 -110
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_rules.py +0 -29
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_sweeper.py +0 -17
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_tracker.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_export_import.py +0 -79
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_sharing_service.py +0 -121
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_versioning.py +0 -155
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ollama_gating.py +0 -58
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ownership_integration.py +0 -678
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_phase175_health_probe_and_get_event_guard.py +0 -131
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_pool_settings.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_query_metrics.py +0 -28
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_update_cas.py +0 -86
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_rate_limit.py +0 -551
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_rbac.py +0 -661
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_recover_with_infer_false.py +0 -210
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_remote_endpoints.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_schema_migration.py +0 -267
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_search_service_unwrap.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_integration.py +0 -699
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_middleware.py +0 -532
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_semantic_cache_telemetry.py +0 -300
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_endpoints.py +0 -99
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_service.py +0 -77
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_sharing_api.py +0 -202
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_storage_strategy.py +0 -46
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_tasks_endpoint.py +0 -80
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_temporal_filters.py +0 -653
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_topic_clustering_benchmark.py +0 -657
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_triage.py +0 -346
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_unit_comprehensive.py +0 -1054
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_versioning_api.py +0 -81
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave2a_reconciliation.py +0 -422
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave3_stall_metrics.py +0 -578
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_websocket_auth.py +0 -227
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_writeback_classification.py +0 -55
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_consolidation_agent.py +0 -128
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_extraction_agent.py +0 -140
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_intent_agent.py +0 -120
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_model_factory.py +0 -85
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_wiring.py +0 -267
- package/tools/vds-scripts/memory_orchestrator/tests/test_alembic_migrations_phase229.py +0 -433
- package/tools/vds-scripts/memory_orchestrator/tests/test_async_compat_lint.py +0 -178
- package/tools/vds-scripts/memory_orchestrator/tests/test_cache_metrics_status.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/test_cli.py +0 -517
- package/tools/vds-scripts/memory_orchestrator/tests/test_cli_health.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/tests/test_client.py +0 -434
- package/tools/vds-scripts/memory_orchestrator/tests/test_config_lazy_validation.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/tests/test_log_hygiene.py +0 -148
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter.py +0 -810
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter_dual_inversion.py +0 -185
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_event_resolver.py +0 -158
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_synced_subscriber.py +0 -294
- package/tools/vds-scripts/memory_orchestrator/tests/test_postgres_vector_search_warning.py +0 -176
- package/tools/vds-scripts/memory_orchestrator/tests/test_processor_adapter_diagnostic_phase216.py +0 -71
- package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_cli.py +0 -218
- package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_service.py +0 -322
- package/tools/vds-scripts/memory_orchestrator/tests/test_status_endpoint.py +0 -193
- package/tools/vds-scripts/memory_orchestrator/tests/test_worker_status_emission.py +0 -150
- package/tools/vds-scripts/memory_orchestrator/tests/verification/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/verification/conftest.py +0 -33
- package/tools/vds-scripts/memory_orchestrator/tests/verification/test_live_api.py +0 -98
- package/tools/vds-scripts/memory_orchestrator/uv.lock +0 -8875
- package/tools/vds-scripts/metabase_orchestrator/pyproject.toml +0 -40
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/cli.py +0 -519
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/client.py +0 -417
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/config.py +0 -172
- package/tools/vds-scripts/metabase_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/platform_core/pyproject.toml +0 -49
- package/tools/vds-scripts/platform_core/src/vds_platform_core/__init__.py +0 -16
- package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/__init__.py +0 -18
- package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/runtime.py +0 -139
- package/tools/vds-scripts/platform_core/src/vds_platform_core/config.py +0 -88
- package/tools/vds-scripts/platform_core/src/vds_platform_core/credentials.py +0 -40
- package/tools/vds-scripts/platform_core/src/vds_platform_core/env.py +0 -24
- package/tools/vds-scripts/platform_core/src/vds_platform_core/errors.py +0 -127
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/__init__.py +0 -18
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/auth.py +0 -32
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/errors.py +0 -47
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/pagination.py +0 -65
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/retry.py +0 -62
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/stack.py +0 -61
- package/tools/vds-scripts/platform_core/src/vds_platform_core/logging.py +0 -132
- package/tools/vds-scripts/platform_core/src/vds_platform_core/protocols.py +0 -77
- package/tools/vds-scripts/platform_core/src/vds_platform_core/serialization.py +0 -80
- package/tools/vds-scripts/platform_core/src/vds_platform_core/severity.py +0 -175
- package/tools/vds-scripts/platform_core/tests/__init__.py +0 -0
- package/tools/vds-scripts/platform_core/tests/conftest.py +0 -1
- package/tools/vds-scripts/platform_core/tests/test_alembic_runtime.py +0 -300
- package/tools/vds-scripts/platform_core/tests/test_auth.py +0 -84
- package/tools/vds-scripts/platform_core/tests/test_config.py +0 -83
- package/tools/vds-scripts/platform_core/tests/test_credentials.py +0 -73
- package/tools/vds-scripts/platform_core/tests/test_env.py +0 -56
- package/tools/vds-scripts/platform_core/tests/test_errors.py +0 -201
- package/tools/vds-scripts/platform_core/tests/test_errors_http.py +0 -74
- package/tools/vds-scripts/platform_core/tests/test_http_settings.py +0 -116
- package/tools/vds-scripts/platform_core/tests/test_logging.py +0 -148
- package/tools/vds-scripts/platform_core/tests/test_pagination.py +0 -153
- package/tools/vds-scripts/platform_core/tests/test_protocols.py +0 -132
- package/tools/vds-scripts/platform_core/tests/test_retry.py +0 -151
- package/tools/vds-scripts/platform_core/tests/test_serialization.py +0 -92
- package/tools/vds-scripts/platform_core/tests/test_severity.py +0 -178
- package/tools/vds-scripts/platform_core/tests/test_stack.py +0 -130
- package/tools/vds-scripts/platform_core/uv.lock +0 -341
- package/tools/vds-scripts/pyproject.toml +0 -153
- package/tools/vds-scripts/pyrightconfig.json +0 -82
- package/tools/vds-scripts/repo-manifest.yaml +0 -380
- package/tools/vds-scripts/repo-manifest.yaml.example +0 -25
- package/tools/vds-scripts/ruff.toml +0 -103
- package/tools/vds-scripts/scheduler_orchestrator/CLOSURE-v2.0.18.md +0 -99
- package/tools/vds-scripts/scheduler_orchestrator/DEPLOYMENT-RUNBOOK.md +0 -655
- package/tools/vds-scripts/scheduler_orchestrator/Dockerfile +0 -110
- package/tools/vds-scripts/scheduler_orchestrator/GV-VERIFICATION.md +0 -81
- package/tools/vds-scripts/scheduler_orchestrator/README.md +0 -96
- package/tools/vds-scripts/scheduler_orchestrator/WAVE-2-GUARDRAILS.md +0 -89
- package/tools/vds-scripts/scheduler_orchestrator/alembic/env.py +0 -41
- package/tools/vds-scripts/scheduler_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/0001_create_sched_schema.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_04f7169497f6_create_domain_tables.py +0 -166
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_a1b2c3d4e5f6_add_overlap_policy_to_schedules.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_b2c3d4e5f6a7_add_dispatcher_state_machine.py +0 -100
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_c3d4e5f6a7b8_add_audit_log.py +0 -141
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_d4e5f6a7b8c9_celery_retirement.py +0 -161
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_e5f6a7b8c9d0_add_udf_enqueue.py +0 -154
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260426_f6a7b8c9d0e1_add_owner_orchestrator_to_chain_definitions.py +0 -62
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260427_a1b2c3d4e5f7_ecosystem_report_runs.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260428_a1b2c3d4e5f8_add_phase2_report_columns.py +0 -95
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260430_b2c3d4e5f8a9_add_phase3_report_columns.py +0 -199
- package/tools/vds-scripts/scheduler_orchestrator/alembic.ini +0 -70
- package/tools/vds-scripts/scheduler_orchestrator/config/llm_pricing.yaml +0 -51
- package/tools/vds-scripts/scheduler_orchestrator/config/prometheus-alerts.yaml +0 -277
- package/tools/vds-scripts/scheduler_orchestrator/dashboards/slo-dashboard.json +0 -665
- package/tools/vds-scripts/scheduler_orchestrator/design-notes/dedupe-design.md +0 -324
- package/tools/vds-scripts/scheduler_orchestrator/docs/Q3-2026-GAME-DAY-PREFLIGHT.md +0 -217
- package/tools/vds-scripts/scheduler_orchestrator/docs/authoring-workflows.md +0 -302
- package/tools/vds-scripts/scheduler_orchestrator/docs/autoscaling-k8s-hpa.yaml +0 -193
- package/tools/vds-scripts/scheduler_orchestrator/docs/capability-red-team.md +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/docs/celery-migration-procedure.md +0 -151
- package/tools/vds-scripts/scheduler_orchestrator/docs/celery-retirement-checklist.md +0 -144
- package/tools/vds-scripts/scheduler_orchestrator/docs/chaos-runbook.md +0 -395
- package/tools/vds-scripts/scheduler_orchestrator/docs/conductor-decision.md +0 -232
- package/tools/vds-scripts/scheduler_orchestrator/docs/cross-orchestrator-rollout-checklist.md +0 -223
- package/tools/vds-scripts/scheduler_orchestrator/docs/dr-drill-report.md +0 -173
- package/tools/vds-scripts/scheduler_orchestrator/docs/ecosystem-daily-report-runbook.md +0 -344
- package/tools/vds-scripts/scheduler_orchestrator/docs/error-budget-policy.md +0 -228
- package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-daemon-retirement.md +0 -214
- package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-retirement-files.md +0 -171
- package/tools/vds-scripts/scheduler_orchestrator/docs/game-day-phase2.md +0 -243
- package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-governance-review.md +0 -250
- package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-scheduler-surface.md +0 -317
- package/tools/vds-scripts/scheduler_orchestrator/docs/performance-baseline.md +0 -343
- package/tools/vds-scripts/scheduler_orchestrator/docs/pitr-drill-protocol.md +0 -162
- package/tools/vds-scripts/scheduler_orchestrator/docs/quarterly-game-day.md +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/dr-postgres-restore.md +0 -268
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/evolution-auto-promote-runbook.md +0 -194
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-dispatcher-stalled.md +0 -188
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-postgres-unavailable.md +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-secret-leaked-in-event.md +0 -170
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-workflow-backlog.md +0 -201
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/orphan-reconciliation-alert.md +0 -140
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/postmortem-template.md +0 -156
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/rollback-deploy.md +0 -209
- package/tools/vds-scripts/scheduler_orchestrator/docs/scaling-decision-phase4.md +0 -176
- package/tools/vds-scripts/scheduler_orchestrator/docs/secret-rotation-drill.md +0 -202
- package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-decision.md +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-implementation-plan.md +0 -189
- package/tools/vds-scripts/scheduler_orchestrator/docs/udf-enqueue-benchmark.md +0 -209
- package/tools/vds-scripts/scheduler_orchestrator/docs/udf-trigger-demo-plan.md +0 -273
- package/tools/vds-scripts/scheduler_orchestrator/pyproject.toml +0 -129
- package/tools/vds-scripts/scheduler_orchestrator/scripts/autoscale/scale-compose.sh +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/scripts/backfill_last_run_at_from_dbos.py +0 -105
- package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/phase4-sharding-remeasure.sh +0 -244
- package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/udf-vs-dispatcher.sh +0 -157
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c1-api-kill.sh +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c2-executor-kill.sh +0 -243
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c3-dispatcher-kill.sh +0 -314
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c4-postgres-failover.sh +0 -288
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c5-network-partition.sh +0 -351
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c6-outbox-storm.sh +0 -403
- package/tools/vds-scripts/scheduler_orchestrator/scripts/collector-diagnostics.py +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/scripts/dr/pitr-drill.sh +0 -363
- package/tools/vds-scripts/scheduler_orchestrator/scripts/entrypoint.sh +0 -100
- package/tools/vds-scripts/scheduler_orchestrator/scripts/generate-report.py +0 -96
- package/tools/vds-scripts/scheduler_orchestrator/scripts/mint_scheduler_service_token.py +0 -76
- package/tools/vds-scripts/scheduler_orchestrator/scripts/verify-phase3-live.py +0 -158
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/__init__.py +0 -21
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/__init__.py +0 -5
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/chains.py +0 -131
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/events.py +0 -106
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/health.py +0 -101
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/router.py +0 -34
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/schedules.py +0 -241
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/workflows.py +0 -189
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/app.py +0 -429
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/registry.py +0 -397
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/resolver.py +0 -144
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/triggers.py +0 -626
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/cli.py +0 -1112
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/config.py +0 -394
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/ecosystem-scheduler.json +0 -550
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/alembic_filters.py +0 -52
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/models.py +0 -428
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/__init__.py +0 -10
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/bus.py +0 -161
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/dispatcher.py +0 -501
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/outbox.py +0 -213
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/retention.py +0 -224
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/schema.py +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/ws_server.py +0 -328
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/__init__.py +0 -26
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/auth.py +0 -184
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/server.py +0 -146
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/tools_readonly.py +0 -259
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/__init__.py +0 -15
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/logging.py +0 -196
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/metrics.py +0 -347
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/slo.py +0 -217
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/workflow_trace_context.py +0 -149
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/backfill.py +0 -160
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/models.py +0 -88
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/schedules.py +0 -927
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_pg.py +0 -55
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_ports.py +0 -23
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/writeback.py +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/audit_log.py +0 -238
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/auth.py +0 -49
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/capabilities.py +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/middleware.py +0 -54
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/secret_scanner.py +0 -126
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/agent_step.py +0 -30
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/anomaly.py +0 -67
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/autoscale.py +0 -452
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collector_registry.py +0 -89
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/__init__.py +0 -12
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/dora_metrics.py +0 -520
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/infra_health_collector.py +0 -378
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/llm_usage.py +0 -475
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/memory_collector.py +0 -101
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/phase1_adapters.py +0 -181
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/prometheus_collector.py +0 -442
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/protocol.py +0 -94
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/security_advisory.py +0 -399
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/spec_phase_collector.py +0 -137
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/test_suite_collector.py +0 -231
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/trend_forecast.py +0 -417
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/worktree_collector.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/discovery.py +0 -97
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/ecosystem_report.py +0 -1406
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/envelope.py +0 -210
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/auto_promote.py +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/health_score.py +0 -112
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/__init__.py +0 -69
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/auto_resolve.py +0 -139
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/tombstone_purge.py +0 -128
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/__init__.py +0 -146
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/dispatch.py +0 -140
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/replay_dlq.py +0 -123
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_local_only.py +0 -129
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_stalled.py +0 -123
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/resolve_pending_ids.py +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/sweep.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/provider.py +0 -83
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/queues.py +0 -225
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/registry.py +0 -351
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/report_formatter.py +0 -743
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/slack_formatter.py +0 -110
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/udf_trigger.py +0 -186
- package/tools/vds-scripts/scheduler_orchestrator/tests/__init__.py +0 -8
- package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/__init__.py +0 -28
- package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/llm_mock.py +0 -322
- package/tools/vds-scripts/scheduler_orchestrator/tests/conftest.py +0 -339
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_agent_step.py +0 -400
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_auth.py +0 -424
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_reads.py +0 -579
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_writes.py +0 -609
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_drift_scan.py +0 -205
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_log_grants.py +0 -231
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_capability_red_team.py +0 -266
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chain_triggers_integration.py +0 -365
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chaos_smoke.py +0 -871
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_http_contract.py +0 -262
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_schedule_roundtrip.py +0 -297
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_integration.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_phase3_integration.py +0 -686
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_fairness.py +0 -373
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_full_ecosystem.py +0 -638
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_multi_day_workflow.py +0 -563
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_outbox_listen.py +0 -327
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_priority_queues.py +0 -288
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_queues_rate_limit.py +0 -272
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_retention_smoke.py +0 -259
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_secret_rotation_drill.py +0 -215
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_tier1_collectors_live.py +0 -270
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/__init__.py +0 -29
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/capture_pg_metrics.py +0 -198
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/common.py +0 -163
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/nfr_check.py +0 -235
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/run_baselines.sh +0 -167
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s1_baseline.py +0 -68
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s2_phase1.py +0 -71
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s3_phase2.py +0 -108
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s4_event_storm.py +0 -131
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s5_chain_fanout.py +0 -105
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/smoke.py +0 -69
- package/tools/vds-scripts/scheduler_orchestrator/tests/test_alembic_downgrade.py +0 -297
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_alembic_include_name.py +0 -82
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_anomaly.py +0 -135
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_health.py +0 -102
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_memory_evolution_bootstrap.py +0 -65
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_audit_log_writer.py +0 -321
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_auth_brute_force_middleware.py +0 -175
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers.py +0 -91
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers_deep.py +0 -271
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill.py +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill_coverage.py +0 -219
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_capabilities.py +0 -175
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_celery_migration_workflows.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_branches.py +0 -387
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_registry.py +0 -504
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_complete.py +0 -800
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_event.py +0 -649
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_branches.py +0 -396
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_capability_attach.py +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_schedules.py +0 -540
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_collector_protocol.py +0 -180
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_config.py +0 -62
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_decimal_json_and_phase3_columns.py +0 -372
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dispatcher.py +0 -376
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dockerfile_phase213_patch.py +0 -74
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dora_metrics_collector.py +0 -740
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_config.py +0 -159
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_coverage.py +0 -1891
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_envelope.py +0 -256
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_error_budget_policy_signoff.py +0 -95
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_branches.py +0 -664
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_outbox.py +0 -364
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_retention.py +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_schema.py +0 -279
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_evolution_auto_promote.py +0 -340
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_redact.py +0 -64
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_score.py +0 -240
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_last_run_at_writeback.py +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_llm_usage_collector.py +0 -1095
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_auth.py +0 -204
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_readonly_gate.py +0 -273
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_tools_readonly.py +0 -382
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_memory_evolution_branches.py +0 -422
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_metrics.py +0 -318
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_observability_and_step_branches.py +0 -247
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_prometheus_collector_sli.py +0 -186
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_queues_config.py +0 -203
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_reconcile_dbos_schedules.py +0 -300
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_remaining_coverage.py +0 -666
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_report_formatter.py +0 -388
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_scheduled_workflow_signatures.py +0 -136
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules.py +0 -552
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules_branches.py +0 -772
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_secret_scanner.py +0 -81
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_advisory_collector.py +0 -495
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_auth_dep.py +0 -182
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slack_notification.py +0 -356
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slo_metrics.py +0 -204
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier1_collectors.py +0 -717
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier2_collectors.py +0 -867
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier3_collectors.py +0 -185
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_trend_forecast_collector.py +0 -617
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_udf_trigger.py +0 -180
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_discovery.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_http_refactor_phase217.py +0 -309
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry.py +0 -398
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry_branches.py +0 -126
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_trace_context.py +0 -295
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_writeback.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ws_server.py +0 -291
- package/tools/vds-scripts/scripts/BRD-Validation-API.postman_collection.json +0 -706
- package/tools/vds-scripts/scripts/BRD-Validation-README.md +0 -308
- package/tools/vds-scripts/scripts/README.md +0 -271
- package/tools/vds-scripts/scripts/_validate_alias_phase2.py +0 -137
- package/tools/vds-scripts/scripts/audit-cli-patterns.sh +0 -135
- package/tools/vds-scripts/scripts/audit-dashboard.sh +0 -525
- package/tools/vds-scripts/scripts/backup.sh +0 -123
- package/tools/vds-scripts/scripts/bootstrap_uv.sh +0 -69
- package/tools/vds-scripts/scripts/brd-validation-environment.json +0 -51
- package/tools/vds-scripts/scripts/brd-validation-test-results.json +0 -13023
- package/tools/vds-scripts/scripts/brd_coverage_report.json +0 -276
- package/tools/vds-scripts/scripts/check-future-annotations.py +0 -22
- package/tools/vds-scripts/scripts/check-invalid-symlinks.py +0 -183
- package/tools/vds-scripts/scripts/check-no-debug-markers.py +0 -21
- package/tools/vds-scripts/scripts/check-no-unittest.py +0 -21
- package/tools/vds-scripts/scripts/ci/assert_no_openspace_commits.sh +0 -37
- package/tools/vds-scripts/scripts/ci/verify_branch_protection.sh +0 -64
- package/tools/vds-scripts/scripts/closure/phase1_check.sh +0 -483
- package/tools/vds-scripts/scripts/closure/phase2_check.sh +0 -500
- package/tools/vds-scripts/scripts/create_memory_session.py +0 -36
- package/tools/vds-scripts/scripts/deploy-bootstrap.sh +0 -201
- package/tools/vds-scripts/scripts/deployment/load_docker_images_offline.sh +0 -90
- package/tools/vds-scripts/scripts/dev/cli_smoke.sh +0 -259
- package/tools/vds-scripts/scripts/final_completion_report.md +0 -139
- package/tools/vds-scripts/scripts/folder_structure_report.json +0 -321
- package/tools/vds-scripts/scripts/generate_completion_report.py +0 -132
- package/tools/vds-scripts/scripts/generate_intellij_modules.py +0 -154
- package/tools/vds-scripts/scripts/init-pgbouncer-userlist.sh +0 -154
- package/tools/vds-scripts/scripts/link_integrity_report.json +0 -807
- package/tools/vds-scripts/scripts/move_audit_artifact_pages.py +0 -252
- package/tools/vds-scripts/scripts/move_audit_artifact_pages_rest.py +0 -165
- package/tools/vds-scripts/scripts/move_wrong_dept_pages.py +0 -235
- package/tools/vds-scripts/scripts/openspace_bootstrap.sh +0 -56
- package/tools/vds-scripts/scripts/openspace_common.sh +0 -75
- package/tools/vds-scripts/scripts/openspace_doctor.sh +0 -61
- package/tools/vds-scripts/scripts/openspace_sync_shadow.sh +0 -65
- package/tools/vds-scripts/scripts/phase7-baseline.sh +0 -77
- package/tools/vds-scripts/scripts/preflight/env_check.sh +0 -102
- package/tools/vds-scripts/scripts/repair_autopay_reports.sh +0 -173
- package/tools/vds-scripts/scripts/rollback_drill.sh +0 -659
- package/tools/vds-scripts/scripts/run-audit-in-tmux.sh +0 -286
- package/tools/vds-scripts/scripts/run-department-audit.sh +0 -495
- package/tools/vds-scripts/scripts/run-project-audit.sh +0 -267
- package/tools/vds-scripts/scripts/save_intellij_memories.py +0 -112
- package/tools/vds-scripts/scripts/save_memories_to_vds_ai.py +0 -81
- package/tools/vds-scripts/scripts/save_memories_vds_style.py +0 -133
- package/tools/vds-scripts/scripts/search_intellij_memories.py +0 -48
- package/tools/vds-scripts/scripts/setup_intellij_workspace.py +0 -71
- package/tools/vds-scripts/scripts/smoke-test-deploy.sh +0 -137
- package/tools/vds-scripts/scripts/smoke_deploy_lib.py +0 -205
- package/tools/vds-scripts/scripts/target-state-automation/README.md +0 -89
- package/tools/vds-scripts/scripts/target-state-automation/confluence_sync_coordinator.sh +0 -27
- package/tools/vds-scripts/scripts/target-state-automation/coordination.sh +0 -114
- package/tools/vds-scripts/scripts/target-state-automation/diagram_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/docs_root.sh +0 -22
- package/tools/vds-scripts/scripts/target-state-automation/generate_diagrams.sh +0 -22
- package/tools/vds-scripts/scripts/target-state-automation/markdown_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/progress_dashboard.sh +0 -17
- package/tools/vds-scripts/scripts/target-state-automation/schema_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/sync_confluence.sh +0 -30
- package/tools/vds-scripts/scripts/target-state-automation/update_dependencies.sh +0 -19
- package/tools/vds-scripts/scripts/target-state-automation/validate_links.sh +0 -86
- package/tools/vds-scripts/scripts/target-state-automation/validate_markdown.sh +0 -52
- package/tools/vds-scripts/scripts/target-state-automation/validate_schemas.sh +0 -26
- package/tools/vds-scripts/scripts/target-state-automation/validate_structure.sh +0 -98
- package/tools/vds-scripts/scripts/tests/__init__.py +0 -1
- package/tools/vds-scripts/scripts/tests/test_dockerfile_correctness.py +0 -815
- package/tools/vds-scripts/scripts/tests/test_makefile_loadouts.py +0 -560
- package/tools/vds-scripts/scripts/tests/test_smoke_deploy.py +0 -313
- package/tools/vds-scripts/scripts/tests/test_verify_alembic.py +0 -581
- package/tools/vds-scripts/scripts/tests/test_verify_infra_topology.py +0 -254
- package/tools/vds-scripts/scripts/update_modules_xml.py +0 -194
- package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-03-25.md +0 -128
- package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-04-18.md +0 -100
- package/tools/vds-scripts/scripts/validate-cli-standardization.sh +0 -188
- package/tools/vds-scripts/scripts/validate_brd_coverage.py +0 -197
- package/tools/vds-scripts/scripts/validate_folder_structure.py +0 -234
- package/tools/vds-scripts/scripts/validate_link_integrity.py +0 -274
- package/tools/vds-scripts/scripts/vami017-caller-compat-report.md +0 -62
- package/tools/vds-scripts/scripts/vami017-phase-b-scaffold-notes.md +0 -79
- package/tools/vds-scripts/scripts/vds_sh_helpers.sh +0 -180
- package/tools/vds-scripts/scripts/verification/phase2_portable_paths_ubuntu_docker.sh +0 -26
- package/tools/vds-scripts/scripts/verify-infra-topology.py +0 -868
- package/tools/vds-scripts/scripts/verify-memory-cli-e2e.sh +0 -598
- package/tools/vds-scripts/scripts/verify-worktree-features.sh +0 -306
- package/tools/vds-scripts/scripts/worktree-add.sh +0 -128
- package/tools/vds-scripts/scripts/worktree-remove.sh +0 -112
- package/tools/vds-scripts/scripts/worktree_compose.sh +0 -269
- package/tools/vds-scripts/scripts/worktree_uv.sh +0 -77
- package/tools/vds-scripts/setup-icloud-nosync.sh +0 -91
- package/tools/vds-scripts/sonarqube_orchestrator/IMPLEMENTATION_AUDIT.md +0 -376
- package/tools/vds-scripts/sonarqube_orchestrator/README.md +0 -507
- package/tools/vds-scripts/sonarqube_orchestrator/pyproject.toml +0 -106
- package/tools/vds-scripts/sonarqube_orchestrator/scripts/ensure_symlink.sh +0 -38
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/__init__.py +0 -164
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/batch.py +0 -212
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/cli.py +0 -1407
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/client.py +0 -608
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/config.py +0 -260
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/diff.py +0 -220
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/external_sca.py +0 -932
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/portfolio.py +0 -225
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/pr.py +0 -505
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/reports.py +0 -342
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/scanner.py +0 -351
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/webhooks.py +0 -269
- package/tools/vds-scripts/sonarqube_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/sonarqube_orchestrator/tests/conftest.py +0 -134
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_batch.py +0 -419
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_config.py +0 -145
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_external_sca.py +0 -466
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_pr.py +0 -471
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_reports.py +0 -511
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_webhooks.py +0 -660
- package/tools/vds-scripts/telegram_bridge/Dockerfile +0 -44
- package/tools/vds-scripts/telegram_bridge/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/alembic/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/alembic/env.py +0 -63
- package/tools/vds-scripts/telegram_bridge/alembic/script.py.mako +0 -24
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0001_telegram_bridge_init.py +0 -193
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0002_polling_state.py +0 -48
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0003_claude_session_store.py +0 -62
- package/tools/vds-scripts/telegram_bridge/alembic.ini +0 -47
- package/tools/vds-scripts/telegram_bridge/cli.py +0 -708
- package/tools/vds-scripts/telegram_bridge/daemon/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/daemon/__main__.py +0 -351
- package/tools/vds-scripts/telegram_bridge/daemon/alembic_head_check.py +0 -116
- package/tools/vds-scripts/telegram_bridge/daemon/audit.py +0 -255
- package/tools/vds-scripts/telegram_bridge/daemon/bot.py +0 -52
- package/tools/vds-scripts/telegram_bridge/daemon/bot_gateway.py +0 -114
- package/tools/vds-scripts/telegram_bridge/daemon/bus.py +0 -106
- package/tools/vds-scripts/telegram_bridge/daemon/commands.py +0 -457
- package/tools/vds-scripts/telegram_bridge/daemon/config.py +0 -129
- package/tools/vds-scripts/telegram_bridge/daemon/dispatcher.py +0 -107
- package/tools/vds-scripts/telegram_bridge/daemon/health_server.py +0 -130
- package/tools/vds-scripts/telegram_bridge/daemon/job_scheduler.py +0 -213
- package/tools/vds-scripts/telegram_bridge/daemon/lifecycle.py +0 -100
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/allowlist.py +0 -70
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/offset_tracker.py +0 -49
- package/tools/vds-scripts/telegram_bridge/daemon/pg.py +0 -53
- package/tools/vds-scripts/telegram_bridge/daemon/pg_outage_watchdog.py +0 -180
- package/tools/vds-scripts/telegram_bridge/daemon/polling_state.py +0 -64
- package/tools/vds-scripts/telegram_bridge/daemon/preflight.py +0 -106
- package/tools/vds-scripts/telegram_bridge/daemon/registry_loader.py +0 -79
- package/tools/vds-scripts/telegram_bridge/daemon/runner_orchestrator.py +0 -371
- package/tools/vds-scripts/telegram_bridge/daemon/session_registry.py +0 -188
- package/tools/vds-scripts/telegram_bridge/daemon/shim_server.py +0 -331
- package/tools/vds-scripts/telegram_bridge/daemon/throttler.py +0 -501
- package/tools/vds-scripts/telegram_bridge/daemon/topic_promoter.py +0 -343
- package/tools/vds-scripts/telegram_bridge/daemon/uploads.py +0 -165
- package/tools/vds-scripts/telegram_bridge/docker-compose.server.yml +0 -37
- package/tools/vds-scripts/telegram_bridge/docker-compose.telegram.yml +0 -65
- package/tools/vds-scripts/telegram_bridge/jobs/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/jobs/archive_topics.py +0 -161
- package/tools/vds-scripts/telegram_bridge/jobs/rotate_audit.py +0 -264
- package/tools/vds-scripts/telegram_bridge/models/__init__.py +0 -27
- package/tools/vds-scripts/telegram_bridge/models/events.py +0 -123
- package/tools/vds-scripts/telegram_bridge/models/sessions.py +0 -52
- package/tools/vds-scripts/telegram_bridge/models/topics.py +0 -41
- package/tools/vds-scripts/telegram_bridge/pyproject.toml +0 -97
- package/tools/vds-scripts/telegram_bridge/registry.yaml +0 -81
- package/tools/vds-scripts/telegram_bridge/runners/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/runners/_base/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/runners/_base/protocol.py +0 -192
- package/tools/vds-scripts/telegram_bridge/runners/_base/runner.py +0 -245
- package/tools/vds-scripts/telegram_bridge/runners/_base/secret_patterns.py +0 -130
- package/tools/vds-scripts/telegram_bridge/runners/acp/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/acp/__main__.py +0 -56
- package/tools/vds-scripts/telegram_bridge/runners/acp/adapter.py +0 -272
- package/tools/vds-scripts/telegram_bridge/runners/claude/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/claude/__main__.py +0 -61
- package/tools/vds-scripts/telegram_bridge/runners/claude/adapter.py +0 -267
- package/tools/vds-scripts/telegram_bridge/runners/claude/session_store.py +0 -191
- package/tools/vds-scripts/telegram_bridge/runners/claude/upload_tool.py +0 -83
- package/tools/vds-scripts/telegram_bridge/runners/codex/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/codex/__main__.py +0 -50
- package/tools/vds-scripts/telegram_bridge/scripts/verify-tier1.sh +0 -54
- package/tools/vds-scripts/telegram_bridge/scripts/verify-tier3-smoke.sh +0 -145
- package/tools/vds-scripts/telegram_bridge/shim.py +0 -220
- package/tools/vds-scripts/telegram_bridge/skill_content/QUALITY.md +0 -47
- package/tools/vds-scripts/telegram_bridge/skill_content/SKILL.md +0 -99
- package/tools/vds-scripts/telegram_bridge/skill_content/references/CHANGELOG.md +0 -47
- package/tools/vds-scripts/telegram_bridge/skill_content/references/agent-onboarding.md +0 -84
- package/tools/vds-scripts/telegram_bridge/skill_content/references/architecture.md +0 -116
- package/tools/vds-scripts/telegram_bridge/skill_content/references/audit-queries.md +0 -123
- package/tools/vds-scripts/telegram_bridge/skill_content/references/commands.md +0 -84
- package/tools/vds-scripts/telegram_bridge/skill_content/references/setup.md +0 -132
- package/tools/vds-scripts/telegram_bridge/skill_content/references/troubleshooting.md +0 -162
- package/tools/vds-scripts/telegram_bridge/skill_content/references/verification.md +0 -312
- package/tools/vds-scripts/telegram_bridge/skill_content/references/wave-0-spike-results.md +0 -559
- package/tools/vds-scripts/telegram_bridge/tests/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/conftest.py +0 -381
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_01_first_run_setup.py +0 -47
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_02_notifier_approver.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_03_mobile_remote_control.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_04_handoff_continuity.py +0 -88
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_05_multi_agent.py +0 -132
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_06_subagent_topic_promotion.py +0 -150
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_07_subscribe_immediate_promote.py +0 -116
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_08_file_upload_in.py +0 -215
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_09_long_block_spill.py +0 -121
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_10_streaming_throttle.py +0 -90
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_11_audit_invariant.py +0 -156
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_12_pg_outage_strict.py +0 -171
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_13_redaction_in_blob.py +0 -146
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_14_cli_status_full.py +0 -184
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_15_allowlist_drop_counter.py +0 -84
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_16_topic_title_128_cap.py +0 -73
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_17_idle_timeout_ends.py +0 -110
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_18_hang_watchdog.py +0 -102
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_19_topic_creation_race.py +0 -91
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_20_acp_resource_link.py +0 -121
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_21_softcap_archive.py +0 -247
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_22_daemon_restart_continuity.py +0 -47
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_23_audit_query_cli.py +0 -39
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_24_cold_rotation.py +0 -38
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_25_advisory_lock_failfast.py +0 -35
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_26_token_bucket_fairness.py +0 -34
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_27_silent_degradation.py +0 -36
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_28_jsonl_secondary_sink.py +0 -35
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_29_ro_mount.py +0 -33
- package/tools/vds-scripts/telegram_bridge/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/integration/conftest.py +0 -196
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_10_audit_forensic_query.py +0 -253
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_11_cold_rotation_roundtrip.py +0 -204
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_25_append_only_trigger.py +0 -188
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_archive_jobs.py +0 -265
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_audit_writer_invariant.py +0 -310
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_claude_session_store.py +0 -202
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_migration_roundtrip.py +0 -231
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_offset_persistence.py +0 -210
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_polling_singleton_constraint.py +0 -81
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_subscriptions.py +0 -194
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_topics_fk_chain.py +0 -216
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_uploads_cas_dedup.py +0 -265
- package/tools/vds-scripts/telegram_bridge/tests/spikes/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/spikes/conftest.py +0 -5
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_10_acp_schema_drift.py +0 -259
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_11_telegram_general_topic_api.py +0 -63
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_12_last_processed_offset.py +0 -56
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_13_resume_corrupted.py +0 -77
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_1_telegram_forum_smoke.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_2_telegram_file_smoke.py +0 -38
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_3_telegram_permission_smoke.py +0 -40
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_4_claude_sdk_hooks_mcp_smoke.py +0 -45
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_5_session_store_conformance.py +0 -37
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_6_claude_lock_jsonl_smoke.py +0 -51
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_7_codex_acp_smoke.py +0 -58
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_8_generic_acp_smoke.py +0 -57
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_9_daemon_restart_vs_container.py +0 -55
- package/tools/vds-scripts/telegram_bridge/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_adapter_full.py +0 -567
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_runner_translate.py +0 -140
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_allowlist_middleware.py +0 -101
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_archive_topics.py +0 -134
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_postgres_unavailable.py +0 -151
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_redact_existing.py +0 -134
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_factory.py +0 -98
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_gateway.py +0 -201
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bus.py +0 -84
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_claude_adapter.py +0 -580
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_commands.py +0 -459
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_restart.py +0 -65
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_commands.py +0 -641
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_daemon_boot.py +0 -431
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_dispatcher.py +0 -198
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_health_server.py +0 -521
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_job_scheduler.py +0 -226
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_lifecycle_extra.py +0 -149
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_migration_check.py +0 -201
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_events.py +0 -72
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_sessions.py +0 -34
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_offset_tracker.py +0 -200
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_outage_watchdog.py +0 -207
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_pool.py +0 -124
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_preflight.py +0 -188
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_redaction.py +0 -193
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry.py +0 -71
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry_loader.py +0 -133
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit.py +0 -416
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit_paths.py +0 -57
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_entrypoints.py +0 -309
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_internals.py +0 -327
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_lifecycle.py +0 -309
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator.py +0 -895
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator_translate.py +0 -162
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_protocol.py +0 -156
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_reconnect.py +0 -184
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store.py +0 -264
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store_resume_validator.py +0 -109
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim.py +0 -52
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_full.py +0 -413
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_server.py +0 -498
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler.py +0 -208
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler_spill.py +0 -176
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_topic_promoter.py +0 -229
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_upload_tool.py +0 -227
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads.py +0 -337
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads_meta.py +0 -91
- package/tools/vds-scripts/uv.lock +0 -6603
- package/tools/vds-scripts/vds-evolution-mono.sh +0 -59
- package/tools/vds-scripts/vds-mail/SKILL.md +0 -185
- package/tools/vds-scripts/vds-mail/scripts/fetch_mail.py +0 -116
- package/tools/vds-scripts/vds-mail/scripts/search_mail.py +0 -131
- package/tools/vds-scripts/vds-mail/scripts/send_mail.py +0 -150
- package/tools/vds-scripts/vds_agent_core/CHANGELOG.md +0 -36
- package/tools/vds-scripts/vds_agent_core/README.md +0 -453
- package/tools/vds-scripts/vds_agent_core/docs/PHASE9A_ASSESSMENT.md +0 -50
- package/tools/vds-scripts/vds_agent_core/docs/embedding.md +0 -468
- package/tools/vds-scripts/vds_agent_core/pyproject.toml +0 -51
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/__init__.py +0 -29
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/__init__.py +0 -26
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/hooks.py +0 -119
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/loop.py +0 -864
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/tools.py +0 -41
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/config.py +0 -252
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/__init__.py +0 -55
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/_cascade.py +0 -143
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/budget.py +0 -353
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/cache.py +0 -373
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/embedding.py +0 -815
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/provider.py +0 -173
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/schemas.py +0 -45
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/__init__.py +0 -77
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/decorators.py +0 -258
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/jsonl_exporter.py +0 -236
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/tracer.py +0 -497
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/profiles.py +0 -2015
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/agent_id.py +0 -60
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/__init__.py +0 -13
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/credentials.py +0 -106
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/__init__.py +0 -1
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/executor.py +0 -238
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/manager.py +0 -381
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/policy.py +0 -568
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/__init__.py +0 -19
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/langgraph_runner.py +0 -102
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/protocols.py +0 -81
- package/tools/vds-scripts/vds_agent_core/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/conftest.py +0 -62
- package/tools/vds-scripts/vds_agent_core/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_loop_hooks_integration.py +0 -135
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_observability_integration.py +0 -246
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_public_api_stability.py +0 -91
- package/tools/vds-scripts/vds_agent_core/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_call_site_parallelism.py +0 -30
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_dimension_guardrail.py +0 -25
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_drop_in_provider_extensibility.py +0 -76
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding.py +0 -393
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_cache.py +0 -302
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_extra.py +0 -696
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_subclass.py +0 -49
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_no_provider_leakage_in_env.py +0 -34
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_provider_auto_route.py +0 -48
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_runtime_log_clean.py +0 -111
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_w7_logic_fixes.py +0 -219
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_embedding_block_parser.py +0 -194
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_env_resolver_allowlist.py +0 -141
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profile_authorization.py +0 -158
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profiles_w3_extra.py +0 -547
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_real_audit_profile_compat.py +0 -129
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_for_agent.py +0 -337
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_w9_cascade_edges.py +0 -369
- package/tools/vds-scripts/vds_agent_core/tests/unit/security/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/security/test_credentials.py +0 -132
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop.py +0 -663
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop_coverage.py +0 -429
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agents_hooks_defaults.py +0 -22
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget.py +0 -155
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_coverage.py +0 -264
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_tracking_only.py +0 -71
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache.py +0 -251
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache_context.py +0 -62
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_config.py +0 -155
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner.py +0 -45
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner_coverage.py +0 -98
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_llm_cache_deep.py +0 -113
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_decorators.py +0 -697
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_hooks.py +0 -217
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_exporter.py +0 -542
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_wiring.py +0 -313
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_tracer.py +0 -896
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles.py +0 -1571
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles_coverage.py +0 -444
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_provider.py +0 -316
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_schemas.py +0 -63
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_executor.py +0 -297
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager.py +0 -370
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager_coverage.py +0 -364
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_policy.py +0 -402
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_rubric.py +0 -47
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_tools.py +0 -51
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_workflow_protocols.py +0 -136
- package/tools/vds-scripts/vds_cli/README.md +0 -201
- package/tools/vds-scripts/vds_cli/VERIFICATION_REPORT.md +0 -41
- package/tools/vds-scripts/vds_cli/pyproject.toml +0 -53
- package/tools/vds-scripts/vds_cli/src/vds_cli/__init__.py +0 -3
- package/tools/vds-scripts/vds_cli/src/vds_cli/assets/git-credential-helper.py +0 -235
- package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +0 -1166
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/__init__.py +0 -1
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +0 -370
- package/tools/vds-scripts/vds_cli/src/vds_cli/confluence_sync.py +0 -846
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/__init__.py +0 -7
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/funnel.py +0 -105
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/scanner.py +0 -211
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/freshness/report.py +0 -90
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/types.py +0 -27
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_cmd.py +0 -672
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_metrics.py +0 -75
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_sync.py +0 -1171
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/__init__.py +0 -39
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/report.py +0 -439
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem_docs.py +0 -164
- package/tools/vds-scripts/vds_cli/src/vds_cli/env.py +0 -111
- package/tools/vds-scripts/vds_cli/src/vds_cli/env_git_helper.py +0 -281
- package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/google_sheets_orchestrator.py +0 -173
- package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -258
- package/tools/vds-scripts/vds_cli/src/vds_cli/skills_cmd.py +0 -274
- package/tools/vds-scripts/vds_cli/src/vds_cli/sync_api.py +0 -613
- package/tools/vds-scripts/vds_cli/src/vds_cli/sync_service.py +0 -283
- package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -60
- package/tools/vds-scripts/vds_cli/tests/test_env_git_helper_lifecycle.py +0 -261
- package/tools/vds-scripts/vds_cli/tests/test_git_credential_helper.py +0 -240
- package/tools/vds-scripts/vds_cli/tests/test_router_help_proxy.py +0 -43
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -245
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli_DOC004.py +0 -110
- package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync.py +0 -315
- package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync_wave7.py +0 -375
- package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_funnel.py +0 -106
- package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_scanner.py +0 -144
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd.py +0 -89
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd_wave8.py +0 -161
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_metrics.py +0 -16
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_quality_score.py +0 -61
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_sync.py +0 -417
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard.py +0 -667
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard_rendering.py +0 -143
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_docs.py +0 -63
- package/tools/vds-scripts/vds_cli/tests/unit/test_env.py +0 -85
- package/tools/vds-scripts/vds_cli/tests/unit/test_freshness_report.py +0 -125
- package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +0 -224
- package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -135
- package/tools/vds-scripts/vds_cli/tests/unit/test_skills_cmd.py +0 -419
- package/tools/vds-scripts/vds_cli/tests/unit/test_sync_api.py +0 -357
- package/tools/vds-scripts/vds_cli/tests/unit/test_sync_service.py +0 -170
- package/tools/vds-scripts/vds_cli/tests/verification/conftest.py +0 -51
- package/tools/vds-scripts/vds_cli/tests/verification/test_bitbucket_real.py +0 -32
- package/tools/vds-scripts/vds_cli/tests/verification/test_confluence_real.py +0 -32
- package/tools/vds-scripts/vds_cli/tests/verification/test_jira_real.py +0 -40
- package/tools/vds-scripts/vds_cli_common/README.md +0 -190
- package/tools/vds-scripts/vds_cli_common/pyproject.toml +0 -96
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/__init__.py +0 -36
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/app.py +0 -55
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/completers.py +0 -139
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/context.py +0 -201
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/env.py +0 -163
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/errors.py +0 -440
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/output.py +0 -284
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/paths.py +0 -78
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/testing.py +0 -211
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/version.py +0 -85
- package/tools/vds-scripts/vds_cli_common/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_cli_common/tests/test_app.py +0 -126
- package/tools/vds-scripts/vds_cli_common/tests/test_completers.py +0 -148
- package/tools/vds-scripts/vds_cli_common/tests/test_context.py +0 -192
- package/tools/vds-scripts/vds_cli_common/tests/test_env.py +0 -235
- package/tools/vds-scripts/vds_cli_common/tests/test_errors.py +0 -275
- package/tools/vds-scripts/vds_cli_common/tests/test_output.py +0 -229
- package/tools/vds-scripts/vds_cli_common/tests/test_paths.py +0 -61
- package/tools/vds-scripts/vds_cli_common/tests/test_testing.py +0 -138
- package/tools/vds-scripts/vds_cli_common/tests/test_version.py +0 -64
- package/tools/vds-scripts/vds_evolution/README.md +0 -123
- package/tools/vds-scripts/vds_evolution/collaboration/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
- package/tools/vds-scripts/vds_evolution/pyproject.toml +0 -66
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/__init__.py +0 -26
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/audit.py +0 -210
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/auto_promote.py +0 -220
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/branch_guard.py +0 -522
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/classifier.py +0 -181
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/cli.py +0 -831
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/__init__.py +0 -3
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/capability_registry.py +0 -191
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/cross_skill_detector.py +0 -180
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/integration_pattern_gen.py +0 -154
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/propagator.py +0 -99
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/router_integration.py +0 -72
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/schemas/tool-decision-matrix-schema.json +0 -50
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/skill_graph_indexer.py +0 -46
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_cross_skill_detector.py +0 -131
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_integration_pattern_gen.py +0 -94
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_propagator.py +0 -94
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_router_integration.py +0 -63
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_skill_graph_indexer.py +0 -31
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_tool_decision_matrix.py +0 -100
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.py +0 -142
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.yaml +0 -82
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/__init__.py +0 -40
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/behavioral.py +0 -232
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/ensemble_judge.py +0 -461
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/calibration-manifest.schema.json +0 -49
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/test-dataset.schema.json +0 -43
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/semantic.py +0 -290
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/structural.py +0 -297
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/hmac_binding.py +0 -233
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/models.py +0 -381
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/openspace_integration.py +0 -1300
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/promote.py +0 -327
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/reconciler.py +0 -880
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/router.py +0 -435
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/shadow.py +0 -156
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/switch.py +0 -154
- package/tools/vds-scripts/vds_evolution/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/integration/test_killswitch_cycle_boundary.py +0 -837
- package/tools/vds-scripts/vds_evolution/tests/integration/test_openspace_integration.py +0 -1342
- package/tools/vds-scripts/vds_evolution/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/unit/test_classifier.py +0 -110
- package/tools/vds-scripts/vds_evolution/tests/unit/test_cli_openspace_runtime.py +0 -43
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate1.py +0 -216
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate2.py +0 -178
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate3.py +0 -221
- package/tools/vds-scripts/vds_evolution/tests/unit/test_models.py +0 -340
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_auto_promote.py +0 -44
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_ensemble_judge.py +0 -79
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_hmac_binding.py +0 -86
- package/tools/vds-scripts/vds_evolution/tests/unit/test_reconciler.py +0 -315
- package/tools/vds-scripts/vds_evolution/tests/unit/test_router.py +0 -90
- package/tools/vds-scripts/vds_evolution/uv.lock +0 -797
- package/tools/vds-scripts/vds_memory_client/pyproject.toml +0 -61
- package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/__init__.py +0 -7
- package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/client.py +0 -876
- package/tools/vds-scripts/vds_memory_client/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_memory_client/tests/test_client.py +0 -821
- package/tools/vds-scripts/vds_memory_client/tests/test_dedup_threshold_phase216.py +0 -69
- package/tools/vds-scripts/vds_memory_client/tests/test_maintenance_methods_phase217.py +0 -403
- package/tools/vds-scripts/vds_memory_client/tests/test_warm_cache.py +0 -70
- package/tools/vds-scripts/vds_sync_orchestrator/pyproject.toml +0 -65
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/__init__.py +0 -22
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/discovery.py +0 -60
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/executor.py +0 -226
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/facade.py +0 -103
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/models.py +0 -103
- package/tools/vds-scripts/vds_sync_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_discovery.py +0 -115
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_executor.py +0 -259
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_facade.py +0 -181
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_isolation.py +0 -58
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_models.py +0 -172
- package/tools/vds-scripts/vidp_orchestrator/README.md +0 -31
- package/tools/vds-scripts/vidp_orchestrator/pyproject.toml +0 -50
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/__init__.py +0 -26
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/cli.py +0 -246
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/client.py +0 -104
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/config.py +0 -82
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.json +0 -3
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.py +0 -130
- /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/methods.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/bmad-skill-manifest.yaml +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/brain-methods.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01-session-setup.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02a-user-selected.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02b-ai-recommended.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02c-random-selection.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02d-progressive-flow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-03-technique-execution.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-04-idea-organization.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-04-ux-alignment.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-06-final-assessment.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/templates/readiness-report-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-01-gather-context.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-02-review.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-03-triage.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-04-present.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/architecture-decision-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/domain-complexity.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-02-context.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-03-starter.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-04-decisions.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-05-patterns.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-06-structure.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-07-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-08-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/templates/epics-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/domain-complexity.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/prd-purpose.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02b-vision.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02c-executive-summary.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-03-success.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-04-journeys.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-05-domain.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-06-innovation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-07-project-type.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-08-scoping.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-09-functional.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-10-nonfunctional.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-11-polish.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-12-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/templates/prd-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-02-domain-analysis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-05-technical-trends.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-06-research-synthesis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/research.template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-party-mode/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/artifact-analyzer.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/web-researcher.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/assets/prfaq-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/bmad-manifest.json +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/customer-faq.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/internal-faq.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/press-release.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/verdict.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/checklist.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-review-adversarial-general/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-review-edge-case-hunter/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/domain-complexity.csv +0 -0
- /package/{tools/skills/bmad-edit-prd → skills/sdlc/bmad-validate-prd}/data/prd-purpose.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-01-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02-format-detection.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-03-density-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-13-report-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/workflow.md +0 -0
|
@@ -1,1647 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import asyncio
|
|
4
|
-
import logging
|
|
5
|
-
import os
|
|
6
|
-
import shutil
|
|
7
|
-
import time
|
|
8
|
-
from base64 import b64encode
|
|
9
|
-
from dataclasses import dataclass
|
|
10
|
-
from enum import StrEnum
|
|
11
|
-
from pathlib import Path
|
|
12
|
-
|
|
13
|
-
from .manifest import Manifest, ManifestFilters, Repository
|
|
14
|
-
|
|
15
|
-
logger = logging.getLogger(__name__)
|
|
16
|
-
|
|
17
|
-
# Canonical fallback branch order for clone/pull when the primary branch is missing.
|
|
18
|
-
_FALLBACK_BRANCHES = ("release", "master", "main", "staging")
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
async def _run_hook(repo: Repository, command: str) -> tuple[int, str, str]:
|
|
22
|
-
process = await asyncio.create_subprocess_shell(
|
|
23
|
-
command,
|
|
24
|
-
cwd=str(repo.absolute_path),
|
|
25
|
-
stdout=asyncio.subprocess.PIPE,
|
|
26
|
-
stderr=asyncio.subprocess.PIPE,
|
|
27
|
-
)
|
|
28
|
-
stdout, stderr = await process.communicate()
|
|
29
|
-
return process.returncode or 0, stdout.decode(), stderr.decode()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class GitOperation(StrEnum):
|
|
33
|
-
FETCH = "fetch"
|
|
34
|
-
PULL = "pull"
|
|
35
|
-
STATUS = "status"
|
|
36
|
-
CLONE = "clone"
|
|
37
|
-
BRANCH = "branch"
|
|
38
|
-
CHECKOUT = "checkout"
|
|
39
|
-
ADD = "add"
|
|
40
|
-
COMMIT = "commit"
|
|
41
|
-
PUSH = "push"
|
|
42
|
-
LOG = "log"
|
|
43
|
-
DIFF = "diff"
|
|
44
|
-
STASH = "stash"
|
|
45
|
-
TAG = "tag"
|
|
46
|
-
REMOTE = "remote"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@dataclass
|
|
50
|
-
class RepoResult:
|
|
51
|
-
repo: Repository
|
|
52
|
-
success: bool
|
|
53
|
-
updated: bool = False
|
|
54
|
-
message: str | None = None
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
@dataclass
|
|
58
|
-
class RunSummary:
|
|
59
|
-
total: int
|
|
60
|
-
successes: int
|
|
61
|
-
updates: int
|
|
62
|
-
failures: int
|
|
63
|
-
results: dict[str, RepoResult]
|
|
64
|
-
serial_retries: int = 0
|
|
65
|
-
|
|
66
|
-
@classmethod
|
|
67
|
-
def from_results(cls, results: dict[str, RepoResult], serial_retries: int = 0) -> RunSummary:
|
|
68
|
-
successes = sum(1 for result in results.values() if result.success)
|
|
69
|
-
updates = sum(1 for result in results.values() if result.updated)
|
|
70
|
-
failures = len(results) - successes
|
|
71
|
-
return cls(
|
|
72
|
-
total=len(results),
|
|
73
|
-
successes=successes,
|
|
74
|
-
updates=updates,
|
|
75
|
-
failures=failures,
|
|
76
|
-
results=results,
|
|
77
|
-
serial_retries=serial_retries,
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
def to_dict(self) -> dict:
|
|
81
|
-
return {
|
|
82
|
-
"total": self.total,
|
|
83
|
-
"successes": self.successes,
|
|
84
|
-
"updates": self.updates,
|
|
85
|
-
"failures": self.failures,
|
|
86
|
-
"serial_retries": self.serial_retries,
|
|
87
|
-
"results": {
|
|
88
|
-
name: {
|
|
89
|
-
"project": result.repo.project,
|
|
90
|
-
"path": str(result.repo.absolute_path),
|
|
91
|
-
"branch": result.repo.branch,
|
|
92
|
-
"success": result.success,
|
|
93
|
-
"updated": result.updated,
|
|
94
|
-
"message": result.message,
|
|
95
|
-
}
|
|
96
|
-
for name, result in self.results.items()
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
def _is_corruption_error(message: str) -> bool:
|
|
102
|
-
"""Check if the git error message indicates repository corruption."""
|
|
103
|
-
lowered = message.lower()
|
|
104
|
-
patterns = (
|
|
105
|
-
"bad object",
|
|
106
|
-
"invalid index-pack output",
|
|
107
|
-
"pack has", # matches "pack has X unresolved deltas" (necessary regex context)
|
|
108
|
-
"did not send all necessary objects",
|
|
109
|
-
"reference is not a tree",
|
|
110
|
-
"object file is empty",
|
|
111
|
-
"loose object", # matches "loose object ... is corrupt" (necessary regex context)
|
|
112
|
-
"missing necessary objects",
|
|
113
|
-
"fatal: fetch-pack: invalid index-pack output",
|
|
114
|
-
"could not parse commit",
|
|
115
|
-
"index file corrupt",
|
|
116
|
-
"broken link",
|
|
117
|
-
"directory exists but is not a git repository",
|
|
118
|
-
)
|
|
119
|
-
return any(pattern in lowered for pattern in patterns)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def _is_local_workspace_repo(repo: Repository) -> bool:
|
|
123
|
-
"""Return True when the repo comes from --local sync source."""
|
|
124
|
-
if repo.project == "local":
|
|
125
|
-
return True
|
|
126
|
-
return "local" in repo.tags
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
def _is_remote_ref_conflict_error(message: str) -> bool:
|
|
130
|
-
"""Detect remote-tracking ref conflicts caused by stale local refs."""
|
|
131
|
-
lowered = message.lower()
|
|
132
|
-
if "cannot lock ref 'refs/remotes/origin/" not in lowered:
|
|
133
|
-
return False
|
|
134
|
-
return "exists; cannot create" in lowered or (" is at " in lowered and " but expected " in lowered)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
async def _recover_repo(repo: Repository, run_id: str) -> tuple[bool, str]:
|
|
138
|
-
"""Perform destructive recovery (move to backup + re-clone)."""
|
|
139
|
-
timestamp = int(time.time())
|
|
140
|
-
base_backup_path = repo.absolute_path.parent / f"{repo.name}.corrupted.{timestamp}"
|
|
141
|
-
backup_path = base_backup_path
|
|
142
|
-
if backup_path.exists():
|
|
143
|
-
suffix = 1
|
|
144
|
-
while backup_path.exists():
|
|
145
|
-
backup_path = repo.absolute_path.parent / f"{base_backup_path.name}.{suffix}"
|
|
146
|
-
suffix += 1
|
|
147
|
-
|
|
148
|
-
logger.warning(
|
|
149
|
-
"corruption-recovery-start",
|
|
150
|
-
extra={
|
|
151
|
-
"repo": repo.name,
|
|
152
|
-
"project": repo.project,
|
|
153
|
-
"backup_path": str(backup_path),
|
|
154
|
-
"run_id": run_id,
|
|
155
|
-
},
|
|
156
|
-
)
|
|
157
|
-
|
|
158
|
-
try:
|
|
159
|
-
if repo.absolute_path.exists():
|
|
160
|
-
shutil.move(str(repo.absolute_path), str(backup_path))
|
|
161
|
-
except Exception as e:
|
|
162
|
-
return False, f"Could not move corrupted repo: {e}"
|
|
163
|
-
|
|
164
|
-
# Auto-clone (Logic: ensure_repo checks existence, if missing it clones)
|
|
165
|
-
return await _ensure_repo_directory(repo)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
def _get_git_config_value(_key: str, default: str, env_key: str | None = None) -> str:
|
|
169
|
-
"""Get git config value from environment variable or use default.
|
|
170
|
-
|
|
171
|
-
Environment variables are loaded through the shared VDS env path/config layer.
|
|
172
|
-
"""
|
|
173
|
-
if env_key:
|
|
174
|
-
env_value = os.environ.get(env_key)
|
|
175
|
-
if env_value:
|
|
176
|
-
return env_value
|
|
177
|
-
return default
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
def _build_git_command(_repo: Repository, args: list[str]) -> list[str]:
|
|
181
|
-
"""Build git command with authentication and network configuration.
|
|
182
|
-
|
|
183
|
-
All network settings are configurable via environment variables in the shared VDS env file:
|
|
184
|
-
- VDS_GIT_HTTP_TIMEOUT: HTTP timeout in seconds (default: 300)
|
|
185
|
-
- VDS_GIT_HTTP_POST_BUFFER: POST buffer size in bytes (default: 524288000 = 500MB)
|
|
186
|
-
- VDS_GIT_HTTP_LOW_SPEED_LIMIT: Minimum speed in bytes/sec (default: 1000 = 1KB/s)
|
|
187
|
-
- VDS_GIT_HTTP_LOW_SPEED_TIME: Time at low speed before abort in seconds (default: 300)
|
|
188
|
-
"""
|
|
189
|
-
cmd = ["git"]
|
|
190
|
-
username = os.environ.get("VDS_USERNAME")
|
|
191
|
-
password = os.environ.get("VDS_PASSWORD")
|
|
192
|
-
if username and password:
|
|
193
|
-
token = b64encode(f"{username}:{password}".encode()).decode()
|
|
194
|
-
header = f"Authorization: Basic {token}"
|
|
195
|
-
cmd.extend(["-c", f"http.extraHeader={header}"])
|
|
196
|
-
|
|
197
|
-
# Network timeout and retry settings (all configurable via environment variables)
|
|
198
|
-
http_timeout = _get_git_config_value("http.timeout", "300", "VDS_GIT_HTTP_TIMEOUT")
|
|
199
|
-
http_post_buffer = _get_git_config_value("http.postBuffer", "524288000", "VDS_GIT_HTTP_POST_BUFFER")
|
|
200
|
-
http_low_speed_limit = _get_git_config_value("http.lowSpeedLimit", "1000", "VDS_GIT_HTTP_LOW_SPEED_LIMIT")
|
|
201
|
-
http_low_speed_time = _get_git_config_value("http.lowSpeedTime", "300", "VDS_GIT_HTTP_LOW_SPEED_TIME")
|
|
202
|
-
|
|
203
|
-
cmd.extend(["-c", f"http.timeout={http_timeout}"])
|
|
204
|
-
cmd.extend(["-c", f"http.postBuffer={http_post_buffer}"])
|
|
205
|
-
cmd.extend(["-c", f"http.lowSpeedLimit={http_low_speed_limit}"])
|
|
206
|
-
cmd.extend(["-c", f"http.lowSpeedTime={http_low_speed_time}"])
|
|
207
|
-
cmd.extend(args)
|
|
208
|
-
return cmd
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
async def _ensure_repo_directory(repo: Repository) -> tuple[bool, str]:
|
|
212
|
-
"""
|
|
213
|
-
Ensure the repository directory exists. If it doesn't, attempt to clone it.
|
|
214
|
-
|
|
215
|
-
Returns:
|
|
216
|
-
tuple[bool, str]: (success, message)
|
|
217
|
-
"""
|
|
218
|
-
if repo.absolute_path.exists():
|
|
219
|
-
# Check if it's actually a git repository
|
|
220
|
-
if (repo.absolute_path / ".git").exists():
|
|
221
|
-
return True, "exists"
|
|
222
|
-
# Directory exists but not a git repo - this is an error state
|
|
223
|
-
return False, f"Directory exists but is not a git repository: {repo.absolute_path}"
|
|
224
|
-
|
|
225
|
-
# Directory doesn't exist - try to clone it
|
|
226
|
-
logger.info(
|
|
227
|
-
"auto-clone",
|
|
228
|
-
extra={"repo": repo.name, "project": repo.project, "path": str(repo.absolute_path)},
|
|
229
|
-
)
|
|
230
|
-
|
|
231
|
-
# Create parent directories (must exist before running git clone)
|
|
232
|
-
try:
|
|
233
|
-
repo.absolute_path.parent.mkdir(parents=True, exist_ok=True)
|
|
234
|
-
# Ensure parent directory actually exists (check after creation)
|
|
235
|
-
if not repo.absolute_path.parent.exists():
|
|
236
|
-
return False, f"Failed to create parent directory: {repo.absolute_path.parent}"
|
|
237
|
-
except Exception as e:
|
|
238
|
-
return False, f"Failed to create parent directory: {e}"
|
|
239
|
-
|
|
240
|
-
# Attempt to clone
|
|
241
|
-
remote = _remote_url(repo)
|
|
242
|
-
branch_args = ["--branch", repo.branch] if repo.branch else []
|
|
243
|
-
command = _build_git_command(repo, ["clone", *branch_args, remote, str(repo.absolute_path)])
|
|
244
|
-
returncode, stdout, stderr = await _run_process(command, repo.absolute_path.parent)
|
|
245
|
-
|
|
246
|
-
if returncode != 0 and branch_args:
|
|
247
|
-
# If branch-specific clone failed, try without branch (clone default branch)
|
|
248
|
-
logger.warning(
|
|
249
|
-
"clone-with-branch-failed",
|
|
250
|
-
extra={
|
|
251
|
-
"repo": repo.name,
|
|
252
|
-
"project": repo.project,
|
|
253
|
-
"branch": repo.branch,
|
|
254
|
-
"stderr": stderr,
|
|
255
|
-
},
|
|
256
|
-
)
|
|
257
|
-
command = _build_git_command(repo, ["clone", remote, str(repo.absolute_path)])
|
|
258
|
-
returncode, stdout, stderr = await _run_process(command, repo.absolute_path.parent)
|
|
259
|
-
|
|
260
|
-
if returncode == 0:
|
|
261
|
-
return True, "auto-cloned"
|
|
262
|
-
return False, f"Auto-clone failed: {stderr or stdout}"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
async def _run_git(repo: Repository, args: list[str]) -> tuple[int, str, str]:
|
|
266
|
-
"""
|
|
267
|
-
Run a git command for the given repository with VDS defaults applied.
|
|
268
|
-
|
|
269
|
-
This helper also contains targeted self-healing for common failure modes
|
|
270
|
-
that are safe to fix automatically:
|
|
271
|
-
|
|
272
|
-
- Missing repository directories: automatically attempts to clone the repo
|
|
273
|
-
- Stale `.git/index.lock` files left behind by crashed git processes:
|
|
274
|
-
we delete the lock file inside the repo and retry the command once.
|
|
275
|
-
"""
|
|
276
|
-
# Ensure the repository directory exists (auto-clone if missing)
|
|
277
|
-
if not repo.absolute_path.exists() or not (repo.absolute_path / ".git").exists():
|
|
278
|
-
success, message = await _ensure_repo_directory(repo)
|
|
279
|
-
if not success:
|
|
280
|
-
# Return error if auto-clone failed
|
|
281
|
-
return 1, "", message
|
|
282
|
-
|
|
283
|
-
command = _build_git_command(repo, args)
|
|
284
|
-
returncode, stdout, stderr = await _run_process(command, repo.absolute_path)
|
|
285
|
-
|
|
286
|
-
# Handle stale index.lock left by a crashed git process.
|
|
287
|
-
# Example stderr:
|
|
288
|
-
# error: Unable to create '/path/to/repo/.git/index.lock': File exists.
|
|
289
|
-
# Another git process seems to be running in this repository...
|
|
290
|
-
text = (stderr or "") + (stdout or "")
|
|
291
|
-
if returncode != 0 and ".git/index.lock" in text and "File exists" in text:
|
|
292
|
-
lock_path = repo.absolute_path / ".git" / "index.lock"
|
|
293
|
-
try:
|
|
294
|
-
if lock_path.exists():
|
|
295
|
-
logger.warning(
|
|
296
|
-
"Removing stale index.lock",
|
|
297
|
-
extra={
|
|
298
|
-
"repo": repo.name,
|
|
299
|
-
"project": repo.project,
|
|
300
|
-
"lock_path": str(lock_path),
|
|
301
|
-
},
|
|
302
|
-
)
|
|
303
|
-
lock_path.unlink()
|
|
304
|
-
except Exception:
|
|
305
|
-
# If we cannot safely remove the lock, surface the original error.
|
|
306
|
-
return returncode, stdout, stderr
|
|
307
|
-
|
|
308
|
-
# Retry the exact same git command once after removing the lock.
|
|
309
|
-
return await _run_process(command, repo.absolute_path)
|
|
310
|
-
|
|
311
|
-
# Handle stale/conflicting remote-tracking refs:
|
|
312
|
-
# fatal: cannot lock ref 'refs/remotes/origin/<...>': '<...>' exists; cannot create '<...>'
|
|
313
|
-
if returncode != 0 and args and args[0] in {"fetch", "pull"} and _is_remote_ref_conflict_error(text):
|
|
314
|
-
logger.warning(
|
|
315
|
-
"remote-ref-conflict-detected",
|
|
316
|
-
extra={
|
|
317
|
-
"repo": repo.name,
|
|
318
|
-
"project": repo.project,
|
|
319
|
-
"args": args,
|
|
320
|
-
"error": text.strip(),
|
|
321
|
-
},
|
|
322
|
-
)
|
|
323
|
-
prune_command = _build_git_command(repo, ["remote", "prune", "origin"])
|
|
324
|
-
prune_rc, prune_stdout, prune_stderr = await _run_process(prune_command, repo.absolute_path)
|
|
325
|
-
if prune_rc == 0:
|
|
326
|
-
logger.info(
|
|
327
|
-
"remote-ref-conflict-pruned",
|
|
328
|
-
extra={"repo": repo.name, "project": repo.project},
|
|
329
|
-
)
|
|
330
|
-
return await _run_process(command, repo.absolute_path)
|
|
331
|
-
logger.warning(
|
|
332
|
-
"remote-ref-conflict-prune-failed",
|
|
333
|
-
extra={
|
|
334
|
-
"repo": repo.name,
|
|
335
|
-
"project": repo.project,
|
|
336
|
-
"stdout": prune_stdout.strip(),
|
|
337
|
-
"stderr": prune_stderr.strip(),
|
|
338
|
-
},
|
|
339
|
-
)
|
|
340
|
-
|
|
341
|
-
return returncode, stdout, stderr
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
async def _run_process(command: list[str], cwd: os.PathLike[str]) -> tuple[int, str, str]:
|
|
345
|
-
"""
|
|
346
|
-
Run a process with the given command and working directory.
|
|
347
|
-
|
|
348
|
-
Note: The cwd directory must exist before calling this function.
|
|
349
|
-
"""
|
|
350
|
-
cwd_path = Path(cwd)
|
|
351
|
-
if not cwd_path.exists():
|
|
352
|
-
return (
|
|
353
|
-
1,
|
|
354
|
-
"",
|
|
355
|
-
f"Working directory does not exist: {cwd_path}",
|
|
356
|
-
)
|
|
357
|
-
|
|
358
|
-
process = await asyncio.create_subprocess_exec(
|
|
359
|
-
*command,
|
|
360
|
-
cwd=str(cwd),
|
|
361
|
-
stdout=asyncio.subprocess.PIPE,
|
|
362
|
-
stderr=asyncio.subprocess.PIPE,
|
|
363
|
-
)
|
|
364
|
-
stdout, stderr = await process.communicate()
|
|
365
|
-
return process.returncode or 0, stdout.decode(), stderr.decode()
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
def _remote_base() -> str:
|
|
369
|
-
"""Get Bitbucket base URL from environment or use default.
|
|
370
|
-
|
|
371
|
-
Default: http://bitbucket.digital.vn/
|
|
372
|
-
|
|
373
|
-
Environment variable priority (FR-21.1.1):
|
|
374
|
-
1. VDS_BITBUCKET_URL (primary - recommended)
|
|
375
|
-
2. VDS_BITBUCKET_HTTP_BASE (legacy alias)
|
|
376
|
-
3. BITBUCKET_BASE_URL (legacy alias)
|
|
377
|
-
|
|
378
|
-
Can be configured via the shared VDS env file
|
|
379
|
-
"""
|
|
380
|
-
# Check env vars in priority order
|
|
381
|
-
base = (
|
|
382
|
-
os.environ.get("VDS_BITBUCKET_URL")
|
|
383
|
-
or os.environ.get("VDS_BITBUCKET_HTTP_BASE")
|
|
384
|
-
or os.environ.get("BITBUCKET_BASE_URL")
|
|
385
|
-
or "http://bitbucket.digital.vn/"
|
|
386
|
-
).rstrip("/")
|
|
387
|
-
# Ensure base doesn't end with /scm (we add that in _remote_url)
|
|
388
|
-
if base.endswith("/scm"):
|
|
389
|
-
base = base[:-4]
|
|
390
|
-
return base
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
def _remote_url(repo: Repository) -> str:
|
|
394
|
-
"""Construct git remote URL from base URL, project, and repo name.
|
|
395
|
-
|
|
396
|
-
Format: {base}/scm/{project}/{repo}.git
|
|
397
|
-
Example: http://bitbucket.digital.vn/scm/insurance/insurance-policy-business.git
|
|
398
|
-
"""
|
|
399
|
-
base = _remote_base()
|
|
400
|
-
return f"{base}/scm/{repo.project}/{repo.name}.git"
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
async def _pull_repo(
|
|
404
|
-
repo: Repository,
|
|
405
|
-
dry_run: bool,
|
|
406
|
-
run_id: str,
|
|
407
|
-
overwrite_local_with_remote: bool = False,
|
|
408
|
-
allow_recovery: bool = True,
|
|
409
|
-
recovery_tracker: dict[str, bool] | None = None,
|
|
410
|
-
) -> RepoResult:
|
|
411
|
-
if dry_run:
|
|
412
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
413
|
-
|
|
414
|
-
logger.info("pull", extra={"repo": repo.name, "project": repo.project, "run_id": run_id})
|
|
415
|
-
|
|
416
|
-
if overwrite_local_with_remote:
|
|
417
|
-
return await _pull_repo_overwrite_local_with_remote(repo, run_id=run_id)
|
|
418
|
-
|
|
419
|
-
# Fix upstream tracking if it differs from the manifest branch.
|
|
420
|
-
# Handles repos cloned tracking `master` when the remote default changed to `release` (or vice-versa).
|
|
421
|
-
upstream_rc, upstream_out, _ = await _run_git(repo, ["rev-parse", "--abbrev-ref", "@{upstream}"])
|
|
422
|
-
if upstream_rc == 0:
|
|
423
|
-
current_upstream = upstream_out.strip() # e.g. "origin/master"
|
|
424
|
-
expected_upstream = f"origin/{repo.branch}"
|
|
425
|
-
if current_upstream and current_upstream != expected_upstream:
|
|
426
|
-
logger.info(
|
|
427
|
-
"fix-upstream-tracking",
|
|
428
|
-
extra={
|
|
429
|
-
"repo": repo.name,
|
|
430
|
-
"run_id": run_id,
|
|
431
|
-
"from": current_upstream,
|
|
432
|
-
"to": expected_upstream,
|
|
433
|
-
},
|
|
434
|
-
)
|
|
435
|
-
await _run_git(repo, ["branch", f"--set-upstream-to={expected_upstream}"])
|
|
436
|
-
|
|
437
|
-
returncode, stdout, stderr = await _run_git(repo, ["pull", "--ff-only"])
|
|
438
|
-
|
|
439
|
-
# Success on first attempt – standard fast‑forward pull.
|
|
440
|
-
if returncode == 0:
|
|
441
|
-
updated = any(line for line in stdout.splitlines() if "Fast-forward" in line)
|
|
442
|
-
return RepoResult(repo=repo, success=True, updated=updated, message=stdout.strip())
|
|
443
|
-
|
|
444
|
-
message = (stderr.strip() or stdout.strip() or "").strip()
|
|
445
|
-
|
|
446
|
-
# Detect branch-not-found errors that warrant a fallback attempt.
|
|
447
|
-
msg_lower = message.lower()
|
|
448
|
-
branch_missing = (
|
|
449
|
-
("no such ref was fetched" in message)
|
|
450
|
-
or ("couldn't find remote ref" in msg_lower)
|
|
451
|
-
or ("remote ref did not resolve" in msg_lower)
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
if branch_missing:
|
|
455
|
-
# Build fallback candidates: every branch in the canonical list that
|
|
456
|
-
# differs from the manifest branch (which already failed).
|
|
457
|
-
fallback_candidates = [b for b in _FALLBACK_BRANCHES if b != repo.branch]
|
|
458
|
-
|
|
459
|
-
for fb_branch in fallback_candidates:
|
|
460
|
-
logger.info(
|
|
461
|
-
"pull-fallback-trying",
|
|
462
|
-
extra={
|
|
463
|
-
"repo": repo.name,
|
|
464
|
-
"project": repo.project,
|
|
465
|
-
"run_id": run_id,
|
|
466
|
-
"primary_branch": repo.branch,
|
|
467
|
-
"branch": fb_branch,
|
|
468
|
-
},
|
|
469
|
-
)
|
|
470
|
-
fb_code, fb_stdout, _fb_stderr = await _run_git(repo, ["pull", "--ff-only", "origin", fb_branch])
|
|
471
|
-
|
|
472
|
-
if fb_code == 0:
|
|
473
|
-
fb_updated = any(line for line in fb_stdout.splitlines() if "Fast-forward" in line)
|
|
474
|
-
return RepoResult(
|
|
475
|
-
repo=repo,
|
|
476
|
-
success=True,
|
|
477
|
-
updated=fb_updated,
|
|
478
|
-
message=(fb_stdout.strip() or f"pulled from origin/{fb_branch}"),
|
|
479
|
-
)
|
|
480
|
-
|
|
481
|
-
# All fallback branches exhausted — report last error.
|
|
482
|
-
return RepoResult(repo=repo, success=False, message=message)
|
|
483
|
-
|
|
484
|
-
# Unhandled failure – surface the original git error.
|
|
485
|
-
# Check for corruption and attempt recovery once
|
|
486
|
-
allow_recovery = allow_recovery and not (recovery_tracker or {}).get("attempted", False)
|
|
487
|
-
if allow_recovery and _is_corruption_error(message) and not _is_local_workspace_repo(repo):
|
|
488
|
-
logger.warning(
|
|
489
|
-
"corruption-detected",
|
|
490
|
-
extra={"repo": repo.name, "run_id": run_id, "error": message},
|
|
491
|
-
)
|
|
492
|
-
if not dry_run:
|
|
493
|
-
if recovery_tracker is not None:
|
|
494
|
-
recovery_tracker["attempted"] = True
|
|
495
|
-
recovered, rec_msg = await _recover_repo(repo, run_id)
|
|
496
|
-
if recovered:
|
|
497
|
-
# Retry pull on fresh clone (disable further recovery to prevent loop)
|
|
498
|
-
return await _pull_repo(repo, dry_run, run_id, allow_recovery=False, recovery_tracker=recovery_tracker)
|
|
499
|
-
else:
|
|
500
|
-
message = f"{message} | Recovery failed: {rec_msg}"
|
|
501
|
-
|
|
502
|
-
return RepoResult(repo=repo, success=False, message=message)
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
async def _resolve_remote_branch(repo: Repository) -> tuple[str | None, str | None]:
|
|
506
|
-
"""Resolve the best available origin branch (manifest branch first, then fallbacks)."""
|
|
507
|
-
candidates: list[str] = []
|
|
508
|
-
if repo.branch:
|
|
509
|
-
candidates.append(repo.branch)
|
|
510
|
-
for fallback in _FALLBACK_BRANCHES:
|
|
511
|
-
if fallback not in candidates:
|
|
512
|
-
candidates.append(fallback)
|
|
513
|
-
|
|
514
|
-
last_error = ""
|
|
515
|
-
for candidate in candidates:
|
|
516
|
-
returncode, stdout, stderr = await _run_git(
|
|
517
|
-
repo,
|
|
518
|
-
["show-ref", "--verify", f"refs/remotes/origin/{candidate}"],
|
|
519
|
-
)
|
|
520
|
-
if returncode == 0:
|
|
521
|
-
return candidate, None
|
|
522
|
-
last_error = (stderr.strip() or stdout.strip() or last_error).strip()
|
|
523
|
-
|
|
524
|
-
if not candidates:
|
|
525
|
-
return None, "No candidate branches available for remote resolution."
|
|
526
|
-
suffix = f" ({last_error})" if last_error else ""
|
|
527
|
-
return None, f"No matching remote branch found in origin for candidates: {', '.join(candidates)}{suffix}"
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
async def _pull_repo_overwrite_local_with_remote(repo: Repository, run_id: str) -> RepoResult:
|
|
531
|
-
"""Force local working branch to match remote branch by hard-resetting to origin/<branch>."""
|
|
532
|
-
logger.info(
|
|
533
|
-
"pull-overwrite-local-enabled",
|
|
534
|
-
extra={"repo": repo.name, "project": repo.project, "run_id": run_id, "manifest_branch": repo.branch},
|
|
535
|
-
)
|
|
536
|
-
|
|
537
|
-
fetch_rc, fetch_stdout, fetch_stderr = await _run_git(repo, ["fetch", "--all", "--prune"])
|
|
538
|
-
if fetch_rc != 0:
|
|
539
|
-
fetch_message = (fetch_stderr.strip() or fetch_stdout.strip() or "git fetch failed").strip()
|
|
540
|
-
return RepoResult(repo=repo, success=False, message=fetch_message)
|
|
541
|
-
|
|
542
|
-
target_branch, branch_error = await _resolve_remote_branch(repo)
|
|
543
|
-
if not target_branch:
|
|
544
|
-
return RepoResult(repo=repo, success=False, message=branch_error or "Unable to resolve origin branch.")
|
|
545
|
-
|
|
546
|
-
before_sha = ""
|
|
547
|
-
before_rc, before_stdout, _ = await _run_git(repo, ["rev-parse", "HEAD"])
|
|
548
|
-
if before_rc == 0:
|
|
549
|
-
before_sha = before_stdout.strip()
|
|
550
|
-
|
|
551
|
-
checkout_rc, checkout_stdout, checkout_stderr = await _run_git(
|
|
552
|
-
repo,
|
|
553
|
-
["checkout", "-B", target_branch, f"origin/{target_branch}"],
|
|
554
|
-
)
|
|
555
|
-
if checkout_rc != 0:
|
|
556
|
-
checkout_message = (checkout_stderr.strip() or checkout_stdout.strip() or "git checkout failed").strip()
|
|
557
|
-
return RepoResult(repo=repo, success=False, message=checkout_message)
|
|
558
|
-
|
|
559
|
-
reset_rc, reset_stdout, reset_stderr = await _run_git(repo, ["reset", "--hard", f"origin/{target_branch}"])
|
|
560
|
-
if reset_rc != 0:
|
|
561
|
-
reset_message = (reset_stderr.strip() or reset_stdout.strip() or "git reset --hard failed").strip()
|
|
562
|
-
return RepoResult(repo=repo, success=False, message=reset_message)
|
|
563
|
-
|
|
564
|
-
after_sha = ""
|
|
565
|
-
after_rc, after_stdout, _ = await _run_git(repo, ["rev-parse", "HEAD"])
|
|
566
|
-
if after_rc == 0:
|
|
567
|
-
after_sha = after_stdout.strip()
|
|
568
|
-
|
|
569
|
-
updated = bool(before_sha and after_sha and before_sha != after_sha)
|
|
570
|
-
message_parts = [f"synced local branch to origin/{target_branch} (overwrite-local enabled)"]
|
|
571
|
-
if repo.branch != target_branch:
|
|
572
|
-
message_parts.append(f"manifest branch '{repo.branch}' not found on origin; used '{target_branch}'")
|
|
573
|
-
reset_message = reset_stdout.strip()
|
|
574
|
-
if reset_message:
|
|
575
|
-
message_parts.append(reset_message)
|
|
576
|
-
return RepoResult(repo=repo, success=True, updated=updated, message=" | ".join(message_parts))
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
async def _fetch_repo(
|
|
580
|
-
repo: Repository,
|
|
581
|
-
dry_run: bool,
|
|
582
|
-
run_id: str,
|
|
583
|
-
allow_recovery: bool = True,
|
|
584
|
-
recovery_tracker: dict[str, bool] | None = None,
|
|
585
|
-
) -> RepoResult:
|
|
586
|
-
if dry_run:
|
|
587
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
588
|
-
|
|
589
|
-
logger.info("fetch", extra={"repo": repo.name, "project": repo.project, "run_id": run_id})
|
|
590
|
-
returncode, stdout, stderr = await _run_git(repo, ["fetch", "--all", "--prune"])
|
|
591
|
-
|
|
592
|
-
if returncode == 0:
|
|
593
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
594
|
-
|
|
595
|
-
message = (stderr.strip() or stdout.strip() or "").strip()
|
|
596
|
-
|
|
597
|
-
allow_recovery = allow_recovery and not (recovery_tracker or {}).get("attempted", False)
|
|
598
|
-
if allow_recovery and _is_corruption_error(message) and not _is_local_workspace_repo(repo):
|
|
599
|
-
logger.warning(
|
|
600
|
-
"corruption-detected",
|
|
601
|
-
extra={"repo": repo.name, "run_id": run_id, "error": message},
|
|
602
|
-
)
|
|
603
|
-
if not dry_run:
|
|
604
|
-
if recovery_tracker is not None:
|
|
605
|
-
recovery_tracker["attempted"] = True
|
|
606
|
-
recovered, rec_msg = await _recover_repo(repo, run_id)
|
|
607
|
-
if recovered:
|
|
608
|
-
# Retry fetch on fresh clone
|
|
609
|
-
return await _fetch_repo(repo, dry_run, run_id, allow_recovery=False, recovery_tracker=recovery_tracker)
|
|
610
|
-
else:
|
|
611
|
-
message = f"{message} | Recovery failed: {rec_msg}"
|
|
612
|
-
|
|
613
|
-
return RepoResult(repo=repo, success=False, message=message)
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
async def _status_repo(repo: Repository, _run_id: str) -> RepoResult:
|
|
617
|
-
returncode, stdout, stderr = await _run_git(repo, ["status", "--short"])
|
|
618
|
-
if returncode == 0:
|
|
619
|
-
message = stdout.strip() or "clean"
|
|
620
|
-
updated = bool(stdout.strip())
|
|
621
|
-
return RepoResult(repo=repo, success=True, updated=updated, message=message)
|
|
622
|
-
|
|
623
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
async def _clone_repo(repo: Repository, dry_run: bool, run_id: str) -> RepoResult:
|
|
627
|
-
if dry_run:
|
|
628
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
629
|
-
|
|
630
|
-
if repo.absolute_path.exists():
|
|
631
|
-
return RepoResult(repo=repo, success=True, updated=False, message="exists")
|
|
632
|
-
|
|
633
|
-
repo.absolute_path.parent.mkdir(parents=True, exist_ok=True)
|
|
634
|
-
|
|
635
|
-
logger.info("clone", extra={"repo": repo.name, "project": repo.project, "run_id": run_id})
|
|
636
|
-
|
|
637
|
-
remote = _remote_url(repo)
|
|
638
|
-
|
|
639
|
-
# Build ordered list: primary branch first, then fallback candidates (skipping duplicates).
|
|
640
|
-
branches_to_try: list[str] = []
|
|
641
|
-
if repo.branch:
|
|
642
|
-
branches_to_try.append(repo.branch)
|
|
643
|
-
for fb in _FALLBACK_BRANCHES:
|
|
644
|
-
if fb not in branches_to_try:
|
|
645
|
-
branches_to_try.append(fb)
|
|
646
|
-
|
|
647
|
-
last_error = ""
|
|
648
|
-
for branch in branches_to_try:
|
|
649
|
-
# Clean up any partial clone left by a previous attempt
|
|
650
|
-
if repo.absolute_path.exists():
|
|
651
|
-
shutil.rmtree(repo.absolute_path, ignore_errors=True)
|
|
652
|
-
|
|
653
|
-
if branch != branches_to_try[0]:
|
|
654
|
-
logger.info(
|
|
655
|
-
"clone-fallback-trying",
|
|
656
|
-
extra={
|
|
657
|
-
"repo": repo.name,
|
|
658
|
-
"project": repo.project,
|
|
659
|
-
"run_id": run_id,
|
|
660
|
-
"branch": branch,
|
|
661
|
-
"primary_branch": branches_to_try[0],
|
|
662
|
-
},
|
|
663
|
-
)
|
|
664
|
-
|
|
665
|
-
command = _build_git_command(repo, ["clone", "--branch", branch, remote, str(repo.absolute_path)])
|
|
666
|
-
returncode, stdout, stderr = await _run_process(command, repo.absolute_path.parent)
|
|
667
|
-
|
|
668
|
-
if returncode == 0:
|
|
669
|
-
msg = f"cloned (branch={branch})" if branch != branches_to_try[0] else "cloned"
|
|
670
|
-
return RepoResult(repo=repo, success=True, updated=True, message=msg)
|
|
671
|
-
|
|
672
|
-
last_error = (stderr.strip() or stdout.strip() or "").strip()
|
|
673
|
-
|
|
674
|
-
# All named branches exhausted — last resort: clone without --branch (remote HEAD).
|
|
675
|
-
if repo.absolute_path.exists():
|
|
676
|
-
shutil.rmtree(repo.absolute_path, ignore_errors=True)
|
|
677
|
-
|
|
678
|
-
logger.info(
|
|
679
|
-
"clone-fallback-default-branch",
|
|
680
|
-
extra={"repo": repo.name, "project": repo.project, "run_id": run_id},
|
|
681
|
-
)
|
|
682
|
-
command = _build_git_command(repo, ["clone", remote, str(repo.absolute_path)])
|
|
683
|
-
returncode, stdout, stderr = await _run_process(command, repo.absolute_path.parent)
|
|
684
|
-
|
|
685
|
-
if returncode == 0:
|
|
686
|
-
return RepoResult(repo=repo, success=True, updated=True, message="cloned (default branch)")
|
|
687
|
-
|
|
688
|
-
return RepoResult(repo=repo, success=False, message=last_error or stderr.strip() or stdout.strip())
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
async def _branch_repo(
|
|
692
|
-
repo: Repository,
|
|
693
|
-
action: str,
|
|
694
|
-
branch_name: str | None,
|
|
695
|
-
dry_run: bool,
|
|
696
|
-
run_id: str,
|
|
697
|
-
) -> RepoResult:
|
|
698
|
-
if dry_run:
|
|
699
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
700
|
-
|
|
701
|
-
logger.info(
|
|
702
|
-
"branch",
|
|
703
|
-
extra={
|
|
704
|
-
"repo": repo.name,
|
|
705
|
-
"project": repo.project,
|
|
706
|
-
"action": action,
|
|
707
|
-
"run_id": run_id,
|
|
708
|
-
},
|
|
709
|
-
)
|
|
710
|
-
|
|
711
|
-
if action == "list":
|
|
712
|
-
returncode, stdout, stderr = await _run_git(repo, ["branch", "-a"])
|
|
713
|
-
elif action == "create" and branch_name:
|
|
714
|
-
returncode, stdout, stderr = await _run_git(repo, ["branch", branch_name])
|
|
715
|
-
elif action == "delete" and branch_name:
|
|
716
|
-
returncode, stdout, stderr = await _run_git(repo, ["branch", "-d", branch_name])
|
|
717
|
-
else:
|
|
718
|
-
return RepoResult(repo=repo, success=False, message=f"Invalid branch action: {action}")
|
|
719
|
-
|
|
720
|
-
if returncode == 0:
|
|
721
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
722
|
-
|
|
723
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
async def _checkout_repo(
|
|
727
|
-
repo: Repository,
|
|
728
|
-
branch_or_path: str,
|
|
729
|
-
create: bool,
|
|
730
|
-
dry_run: bool,
|
|
731
|
-
run_id: str,
|
|
732
|
-
) -> RepoResult:
|
|
733
|
-
if dry_run:
|
|
734
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
735
|
-
|
|
736
|
-
logger.info(
|
|
737
|
-
"checkout",
|
|
738
|
-
extra={
|
|
739
|
-
"repo": repo.name,
|
|
740
|
-
"project": repo.project,
|
|
741
|
-
"target": branch_or_path,
|
|
742
|
-
"run_id": run_id,
|
|
743
|
-
},
|
|
744
|
-
)
|
|
745
|
-
|
|
746
|
-
args = ["checkout"]
|
|
747
|
-
if create:
|
|
748
|
-
args.append("-b")
|
|
749
|
-
args.append(branch_or_path)
|
|
750
|
-
|
|
751
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
752
|
-
|
|
753
|
-
if returncode == 0:
|
|
754
|
-
return RepoResult(repo=repo, success=True, updated=True, message=stdout.strip())
|
|
755
|
-
|
|
756
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
async def _add_repo(
|
|
760
|
-
repo: Repository,
|
|
761
|
-
paths: list[str],
|
|
762
|
-
all_files: bool,
|
|
763
|
-
dry_run: bool,
|
|
764
|
-
run_id: str,
|
|
765
|
-
) -> RepoResult:
|
|
766
|
-
if dry_run:
|
|
767
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
768
|
-
|
|
769
|
-
logger.info(
|
|
770
|
-
"add",
|
|
771
|
-
extra={"repo": repo.name, "project": repo.project, "run_id": run_id},
|
|
772
|
-
)
|
|
773
|
-
|
|
774
|
-
args = ["add"]
|
|
775
|
-
if all_files:
|
|
776
|
-
args.append(".")
|
|
777
|
-
else:
|
|
778
|
-
args.extend(paths)
|
|
779
|
-
|
|
780
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
781
|
-
|
|
782
|
-
if returncode == 0:
|
|
783
|
-
return RepoResult(repo=repo, success=True, updated=True, message=stdout.strip())
|
|
784
|
-
|
|
785
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
async def _commit_repo(
|
|
789
|
-
repo: Repository,
|
|
790
|
-
message: str,
|
|
791
|
-
dry_run: bool,
|
|
792
|
-
run_id: str,
|
|
793
|
-
) -> RepoResult:
|
|
794
|
-
if dry_run:
|
|
795
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
796
|
-
|
|
797
|
-
logger.info(
|
|
798
|
-
"commit",
|
|
799
|
-
extra={"repo": repo.name, "project": repo.project, "run_id": run_id},
|
|
800
|
-
)
|
|
801
|
-
|
|
802
|
-
returncode, stdout, stderr = await _run_git(repo, ["commit", "-m", message])
|
|
803
|
-
|
|
804
|
-
if returncode == 0:
|
|
805
|
-
return RepoResult(repo=repo, success=True, updated=True, message=stdout.strip())
|
|
806
|
-
|
|
807
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
async def _push_repo(
|
|
811
|
-
repo: Repository,
|
|
812
|
-
branch: str | None,
|
|
813
|
-
remote: str | None,
|
|
814
|
-
dry_run: bool,
|
|
815
|
-
run_id: str,
|
|
816
|
-
) -> RepoResult:
|
|
817
|
-
if dry_run:
|
|
818
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
819
|
-
|
|
820
|
-
logger.info(
|
|
821
|
-
"push",
|
|
822
|
-
extra={
|
|
823
|
-
"repo": repo.name,
|
|
824
|
-
"project": repo.project,
|
|
825
|
-
"branch": branch,
|
|
826
|
-
"run_id": run_id,
|
|
827
|
-
},
|
|
828
|
-
)
|
|
829
|
-
|
|
830
|
-
args = ["push"]
|
|
831
|
-
if remote:
|
|
832
|
-
args.append(remote)
|
|
833
|
-
if branch:
|
|
834
|
-
args.append(branch)
|
|
835
|
-
|
|
836
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
837
|
-
|
|
838
|
-
if returncode == 0:
|
|
839
|
-
return RepoResult(repo=repo, success=True, updated=True, message=stdout.strip())
|
|
840
|
-
|
|
841
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
async def _log_repo(
|
|
845
|
-
repo: Repository,
|
|
846
|
-
limit: int | None,
|
|
847
|
-
oneline: bool,
|
|
848
|
-
run_id: str,
|
|
849
|
-
) -> RepoResult:
|
|
850
|
-
logger.info("log", extra={"repo": repo.name, "project": repo.project, "run_id": run_id})
|
|
851
|
-
|
|
852
|
-
args = ["log"]
|
|
853
|
-
if oneline:
|
|
854
|
-
args.append("--oneline")
|
|
855
|
-
if limit:
|
|
856
|
-
args.extend(["-n", str(limit)])
|
|
857
|
-
|
|
858
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
859
|
-
|
|
860
|
-
if returncode == 0:
|
|
861
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
862
|
-
|
|
863
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
async def _diff_repo(
|
|
867
|
-
repo: Repository,
|
|
868
|
-
paths: list[str],
|
|
869
|
-
staged: bool,
|
|
870
|
-
run_id: str,
|
|
871
|
-
) -> RepoResult:
|
|
872
|
-
logger.info("diff", extra={"repo": repo.name, "project": repo.project, "run_id": run_id})
|
|
873
|
-
|
|
874
|
-
args = ["diff"]
|
|
875
|
-
if staged:
|
|
876
|
-
args.append("--staged")
|
|
877
|
-
args.extend(paths)
|
|
878
|
-
|
|
879
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
880
|
-
|
|
881
|
-
if returncode == 0:
|
|
882
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
883
|
-
|
|
884
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
async def _stash_repo(
|
|
888
|
-
repo: Repository,
|
|
889
|
-
action: str,
|
|
890
|
-
message: str | None,
|
|
891
|
-
dry_run: bool,
|
|
892
|
-
run_id: str,
|
|
893
|
-
) -> RepoResult:
|
|
894
|
-
if dry_run:
|
|
895
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
896
|
-
|
|
897
|
-
logger.info(
|
|
898
|
-
"stash",
|
|
899
|
-
extra={
|
|
900
|
-
"repo": repo.name,
|
|
901
|
-
"project": repo.project,
|
|
902
|
-
"action": action,
|
|
903
|
-
"run_id": run_id,
|
|
904
|
-
},
|
|
905
|
-
)
|
|
906
|
-
|
|
907
|
-
args = ["stash"]
|
|
908
|
-
if action == "list":
|
|
909
|
-
args.append("list")
|
|
910
|
-
elif action == "save" and message:
|
|
911
|
-
args.extend(["save", message])
|
|
912
|
-
elif action == "pop":
|
|
913
|
-
args.append("pop")
|
|
914
|
-
elif action == "apply":
|
|
915
|
-
args.append("apply")
|
|
916
|
-
elif action == "drop":
|
|
917
|
-
args.append("drop")
|
|
918
|
-
else:
|
|
919
|
-
return RepoResult(repo=repo, success=False, message=f"Invalid stash action: {action}")
|
|
920
|
-
|
|
921
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
922
|
-
|
|
923
|
-
if returncode == 0:
|
|
924
|
-
updated = action in ("pop", "apply", "drop")
|
|
925
|
-
return RepoResult(repo=repo, success=True, updated=updated, message=stdout.strip())
|
|
926
|
-
|
|
927
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
async def _tag_repo(
|
|
931
|
-
repo: Repository,
|
|
932
|
-
action: str,
|
|
933
|
-
tag_name: str | None,
|
|
934
|
-
message: str | None,
|
|
935
|
-
dry_run: bool,
|
|
936
|
-
run_id: str,
|
|
937
|
-
) -> RepoResult:
|
|
938
|
-
if dry_run:
|
|
939
|
-
return RepoResult(repo=repo, success=True, updated=False, message="dry-run")
|
|
940
|
-
|
|
941
|
-
logger.info(
|
|
942
|
-
"tag",
|
|
943
|
-
extra={
|
|
944
|
-
"repo": repo.name,
|
|
945
|
-
"project": repo.project,
|
|
946
|
-
"action": action,
|
|
947
|
-
"run_id": run_id,
|
|
948
|
-
},
|
|
949
|
-
)
|
|
950
|
-
|
|
951
|
-
if action == "list":
|
|
952
|
-
returncode, stdout, stderr = await _run_git(repo, ["tag", "-l"])
|
|
953
|
-
elif action == "create" and tag_name:
|
|
954
|
-
args = ["tag"]
|
|
955
|
-
if message:
|
|
956
|
-
args.extend(["-a", tag_name, "-m", message])
|
|
957
|
-
else:
|
|
958
|
-
args.append(tag_name)
|
|
959
|
-
returncode, stdout, stderr = await _run_git(repo, args)
|
|
960
|
-
elif action == "delete" and tag_name:
|
|
961
|
-
returncode, stdout, stderr = await _run_git(repo, ["tag", "-d", tag_name])
|
|
962
|
-
else:
|
|
963
|
-
return RepoResult(repo=repo, success=False, message=f"Invalid tag action: {action}")
|
|
964
|
-
|
|
965
|
-
if returncode == 0:
|
|
966
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
967
|
-
|
|
968
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
async def _remote_repo(
|
|
972
|
-
repo: Repository,
|
|
973
|
-
action: str,
|
|
974
|
-
name: str | None,
|
|
975
|
-
url: str | None,
|
|
976
|
-
run_id: str,
|
|
977
|
-
) -> RepoResult:
|
|
978
|
-
logger.info(
|
|
979
|
-
"remote",
|
|
980
|
-
extra={
|
|
981
|
-
"repo": repo.name,
|
|
982
|
-
"project": repo.project,
|
|
983
|
-
"action": action,
|
|
984
|
-
"run_id": run_id,
|
|
985
|
-
},
|
|
986
|
-
)
|
|
987
|
-
|
|
988
|
-
if action == "list":
|
|
989
|
-
returncode, stdout, stderr = await _run_git(repo, ["remote", "-v"])
|
|
990
|
-
elif action == "add" and name and url:
|
|
991
|
-
returncode, stdout, stderr = await _run_git(repo, ["remote", "add", name, url])
|
|
992
|
-
elif action == "remove" and name:
|
|
993
|
-
returncode, stdout, stderr = await _run_git(repo, ["remote", "remove", name])
|
|
994
|
-
else:
|
|
995
|
-
return RepoResult(repo=repo, success=False, message=f"Invalid remote action: {action}")
|
|
996
|
-
|
|
997
|
-
if returncode == 0:
|
|
998
|
-
return RepoResult(repo=repo, success=True, updated=False, message=stdout.strip())
|
|
999
|
-
|
|
1000
|
-
return RepoResult(repo=repo, success=False, message=stderr.strip() or stdout.strip())
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
async def _operate_repo(
|
|
1004
|
-
repo: Repository,
|
|
1005
|
-
operation: GitOperation,
|
|
1006
|
-
dry_run: bool,
|
|
1007
|
-
run_id: str,
|
|
1008
|
-
**kwargs,
|
|
1009
|
-
) -> RepoResult:
|
|
1010
|
-
if operation == GitOperation.PULL:
|
|
1011
|
-
return await _pull_repo(
|
|
1012
|
-
repo,
|
|
1013
|
-
dry_run=dry_run,
|
|
1014
|
-
run_id=run_id,
|
|
1015
|
-
overwrite_local_with_remote=bool(kwargs.get("overwrite_local_with_remote", False)),
|
|
1016
|
-
recovery_tracker=kwargs.get("recovery_tracker"),
|
|
1017
|
-
)
|
|
1018
|
-
if operation == GitOperation.FETCH:
|
|
1019
|
-
return await _fetch_repo(
|
|
1020
|
-
repo,
|
|
1021
|
-
dry_run=dry_run,
|
|
1022
|
-
run_id=run_id,
|
|
1023
|
-
recovery_tracker=kwargs.get("recovery_tracker"),
|
|
1024
|
-
)
|
|
1025
|
-
if operation == GitOperation.STATUS:
|
|
1026
|
-
return await _status_repo(repo, run_id=run_id)
|
|
1027
|
-
if operation == GitOperation.CLONE:
|
|
1028
|
-
return await _clone_repo(repo, dry_run=dry_run, run_id=run_id)
|
|
1029
|
-
if operation == GitOperation.BRANCH:
|
|
1030
|
-
return await _branch_repo(
|
|
1031
|
-
repo,
|
|
1032
|
-
kwargs.get("action", "list"),
|
|
1033
|
-
kwargs.get("branch_name"),
|
|
1034
|
-
dry_run=dry_run,
|
|
1035
|
-
run_id=run_id,
|
|
1036
|
-
)
|
|
1037
|
-
if operation == GitOperation.CHECKOUT:
|
|
1038
|
-
return await _checkout_repo(
|
|
1039
|
-
repo,
|
|
1040
|
-
kwargs.get("branch_or_path", "main"),
|
|
1041
|
-
kwargs.get("create", False),
|
|
1042
|
-
dry_run=dry_run,
|
|
1043
|
-
run_id=run_id,
|
|
1044
|
-
)
|
|
1045
|
-
if operation == GitOperation.ADD:
|
|
1046
|
-
return await _add_repo(
|
|
1047
|
-
repo,
|
|
1048
|
-
kwargs.get("paths", []),
|
|
1049
|
-
kwargs.get("all_files", False),
|
|
1050
|
-
dry_run=dry_run,
|
|
1051
|
-
run_id=run_id,
|
|
1052
|
-
)
|
|
1053
|
-
if operation == GitOperation.COMMIT:
|
|
1054
|
-
return await _commit_repo(
|
|
1055
|
-
repo,
|
|
1056
|
-
kwargs.get("message", ""),
|
|
1057
|
-
dry_run=dry_run,
|
|
1058
|
-
run_id=run_id,
|
|
1059
|
-
)
|
|
1060
|
-
if operation == GitOperation.PUSH:
|
|
1061
|
-
return await _push_repo(
|
|
1062
|
-
repo,
|
|
1063
|
-
kwargs.get("branch"),
|
|
1064
|
-
kwargs.get("remote"),
|
|
1065
|
-
dry_run=dry_run,
|
|
1066
|
-
run_id=run_id,
|
|
1067
|
-
)
|
|
1068
|
-
if operation == GitOperation.LOG:
|
|
1069
|
-
return await _log_repo(
|
|
1070
|
-
repo,
|
|
1071
|
-
kwargs.get("limit"),
|
|
1072
|
-
kwargs.get("oneline", False),
|
|
1073
|
-
run_id=run_id,
|
|
1074
|
-
)
|
|
1075
|
-
if operation == GitOperation.DIFF:
|
|
1076
|
-
return await _diff_repo(
|
|
1077
|
-
repo,
|
|
1078
|
-
kwargs.get("paths", []),
|
|
1079
|
-
kwargs.get("staged", False),
|
|
1080
|
-
run_id=run_id,
|
|
1081
|
-
)
|
|
1082
|
-
if operation == GitOperation.STASH:
|
|
1083
|
-
return await _stash_repo(
|
|
1084
|
-
repo,
|
|
1085
|
-
kwargs.get("action", "list"),
|
|
1086
|
-
kwargs.get("message"),
|
|
1087
|
-
dry_run=dry_run,
|
|
1088
|
-
run_id=run_id,
|
|
1089
|
-
)
|
|
1090
|
-
if operation == GitOperation.TAG:
|
|
1091
|
-
return await _tag_repo(
|
|
1092
|
-
repo,
|
|
1093
|
-
kwargs.get("action", "list"),
|
|
1094
|
-
kwargs.get("tag_name"),
|
|
1095
|
-
kwargs.get("message"),
|
|
1096
|
-
dry_run=dry_run,
|
|
1097
|
-
run_id=run_id,
|
|
1098
|
-
)
|
|
1099
|
-
if operation == GitOperation.REMOTE:
|
|
1100
|
-
return await _remote_repo(
|
|
1101
|
-
repo,
|
|
1102
|
-
kwargs.get("action", "list"),
|
|
1103
|
-
kwargs.get("name"),
|
|
1104
|
-
kwargs.get("url"),
|
|
1105
|
-
run_id=run_id,
|
|
1106
|
-
)
|
|
1107
|
-
raise ValueError(f"Unsupported operation: {operation}")
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
async def _find_repo_by_remote_url(repo: Repository, search_root: Path) -> Path | None:
|
|
1111
|
-
"""Find if a repository exists at a different path by checking remote URLs.
|
|
1112
|
-
|
|
1113
|
-
This handles cases where repos were renamed or moved to different folders.
|
|
1114
|
-
Returns the path if found, None otherwise.
|
|
1115
|
-
"""
|
|
1116
|
-
remote_url = _remote_url(repo)
|
|
1117
|
-
|
|
1118
|
-
# Search in common project directories
|
|
1119
|
-
project_dirs = [
|
|
1120
|
-
search_root / f"{repo.project.upper()}-project",
|
|
1121
|
-
search_root / repo.project.upper(),
|
|
1122
|
-
search_root / repo.project,
|
|
1123
|
-
]
|
|
1124
|
-
|
|
1125
|
-
for project_dir in project_dirs:
|
|
1126
|
-
if not project_dir.exists():
|
|
1127
|
-
continue
|
|
1128
|
-
|
|
1129
|
-
# Search recursively for .git directories
|
|
1130
|
-
for git_dir in project_dir.rglob(".git"):
|
|
1131
|
-
if not git_dir.is_dir():
|
|
1132
|
-
continue
|
|
1133
|
-
|
|
1134
|
-
repo_path = git_dir.parent
|
|
1135
|
-
# Check if this is a git repo and has the same remote URL
|
|
1136
|
-
try:
|
|
1137
|
-
# Use basic git command (no need for full _build_git_command here)
|
|
1138
|
-
command = ["git", "remote", "get-url", "origin"]
|
|
1139
|
-
returncode, stdout, _ = await _run_process(command, repo_path)
|
|
1140
|
-
if returncode == 0 and remote_url.strip() in stdout.strip():
|
|
1141
|
-
return repo_path
|
|
1142
|
-
except Exception:
|
|
1143
|
-
continue
|
|
1144
|
-
|
|
1145
|
-
return None
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
async def _ensure_all_repos_cloned(
|
|
1149
|
-
repositories: list[Repository],
|
|
1150
|
-
concurrency: int,
|
|
1151
|
-
dry_run: bool,
|
|
1152
|
-
run_id: str,
|
|
1153
|
-
) -> dict[str, RepoResult]:
|
|
1154
|
-
"""
|
|
1155
|
-
Ensure all repositories from the manifest are cloned locally.
|
|
1156
|
-
|
|
1157
|
-
This runs before git operations to ensure local directories match remote repo list.
|
|
1158
|
-
Handles:
|
|
1159
|
-
- New repositories (clone if missing)
|
|
1160
|
-
- Renamed/moved repositories (detect by remote URL, clone at new path)
|
|
1161
|
-
- Ensures local folders match remote project structure
|
|
1162
|
-
"""
|
|
1163
|
-
if dry_run:
|
|
1164
|
-
return {}
|
|
1165
|
-
|
|
1166
|
-
results: dict[str, RepoResult] = {}
|
|
1167
|
-
semaphore = asyncio.Semaphore(concurrency)
|
|
1168
|
-
|
|
1169
|
-
# Determine search root (VDS root directory where project folders are)
|
|
1170
|
-
# Use the first repo's path to infer the VDS root
|
|
1171
|
-
search_root = Path("/")
|
|
1172
|
-
if repositories:
|
|
1173
|
-
first_repo = repositories[0]
|
|
1174
|
-
repo_path = first_repo.absolute_path
|
|
1175
|
-
# Walk up from repo path to find VDS root (contains project directories)
|
|
1176
|
-
current = repo_path
|
|
1177
|
-
for _ in range(10): # Limit depth to avoid infinite loops
|
|
1178
|
-
if current.exists():
|
|
1179
|
-
# Check if this looks like VDS root (has project directories)
|
|
1180
|
-
if any((current / f"{p.upper()}-project").exists() for p in ["lep", "insurance", "saving", "ekyc"]):
|
|
1181
|
-
search_root = current
|
|
1182
|
-
break
|
|
1183
|
-
# Also check if we're at a known project directory level
|
|
1184
|
-
if current.name.endswith("-project") and current.parent.exists():
|
|
1185
|
-
search_root = current.parent
|
|
1186
|
-
break
|
|
1187
|
-
if current.parent == current: # Reached filesystem root
|
|
1188
|
-
break
|
|
1189
|
-
current = current.parent
|
|
1190
|
-
|
|
1191
|
-
async def clone_if_needed(repo: Repository) -> None:
|
|
1192
|
-
async with semaphore:
|
|
1193
|
-
# Check if repo exists at expected path and is already a valid git repository.
|
|
1194
|
-
# Accept both standard `.git/` directories and gitdir pointer files so
|
|
1195
|
-
# worktrees and alternate checkout layouts are not treated as missing.
|
|
1196
|
-
git_marker = repo.absolute_path / ".git"
|
|
1197
|
-
if repo.absolute_path.exists() and (git_marker.is_dir() or git_marker.is_file()):
|
|
1198
|
-
return # Already cloned at correct location
|
|
1199
|
-
|
|
1200
|
-
# Check if repo exists at a different path (renamed/moved)
|
|
1201
|
-
existing_path = await _find_repo_by_remote_url(repo, search_root)
|
|
1202
|
-
if existing_path and existing_path != repo.absolute_path:
|
|
1203
|
-
logger.warning(
|
|
1204
|
-
"repo-moved",
|
|
1205
|
-
extra={
|
|
1206
|
-
"repo": repo.name,
|
|
1207
|
-
"project": repo.project,
|
|
1208
|
-
"old_path": str(existing_path),
|
|
1209
|
-
"new_path": str(repo.absolute_path),
|
|
1210
|
-
"run_id": run_id,
|
|
1211
|
-
},
|
|
1212
|
-
)
|
|
1213
|
-
# Note: We don't move repos automatically - user should handle this manually
|
|
1214
|
-
# But we'll clone at the new location if needed
|
|
1215
|
-
# The old location will remain (orphaned) until manually cleaned up
|
|
1216
|
-
|
|
1217
|
-
# Attempt to clone at the expected path
|
|
1218
|
-
logger.info(
|
|
1219
|
-
"pre-clone",
|
|
1220
|
-
extra={
|
|
1221
|
-
"repo": repo.name,
|
|
1222
|
-
"project": repo.project,
|
|
1223
|
-
"path": str(repo.absolute_path),
|
|
1224
|
-
"run_id": run_id,
|
|
1225
|
-
},
|
|
1226
|
-
)
|
|
1227
|
-
result = await _clone_repo(repo, dry_run=False, run_id=run_id)
|
|
1228
|
-
results[repo.name] = result
|
|
1229
|
-
|
|
1230
|
-
# Clone all missing repos in parallel
|
|
1231
|
-
await asyncio.gather(*[clone_if_needed(repo) for repo in repositories])
|
|
1232
|
-
return results
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
async def _check_network_connectivity(base_url: str, timeout: float = 5.0) -> tuple[bool, str]:
|
|
1236
|
-
"""Check network connectivity to Bitbucket server.
|
|
1237
|
-
|
|
1238
|
-
Args:
|
|
1239
|
-
base_url: Base URL for Bitbucket (e.g., "http://bitbucket.digital.vn")
|
|
1240
|
-
timeout: Timeout in seconds for the connectivity check
|
|
1241
|
-
|
|
1242
|
-
Returns:
|
|
1243
|
-
Tuple of (is_connected, message)
|
|
1244
|
-
"""
|
|
1245
|
-
try:
|
|
1246
|
-
# Extract hostname from URL
|
|
1247
|
-
if "://" in base_url:
|
|
1248
|
-
hostname = base_url.split("://")[1].split("/", maxsplit=1)[0]
|
|
1249
|
-
else:
|
|
1250
|
-
hostname = base_url.split("/", maxsplit=1)[0]
|
|
1251
|
-
|
|
1252
|
-
# Use asyncio to create a connection test
|
|
1253
|
-
# Try to connect to port 80 (HTTP) or 443 (HTTPS)
|
|
1254
|
-
port = 443 if base_url.startswith("https://") else 80
|
|
1255
|
-
|
|
1256
|
-
logger.info(
|
|
1257
|
-
"network-check-start",
|
|
1258
|
-
extra={
|
|
1259
|
-
"hostname": hostname,
|
|
1260
|
-
"port": port,
|
|
1261
|
-
"base_url": base_url,
|
|
1262
|
-
},
|
|
1263
|
-
)
|
|
1264
|
-
|
|
1265
|
-
# Create a simple TCP connection test
|
|
1266
|
-
try:
|
|
1267
|
-
_reader, writer = await asyncio.wait_for(
|
|
1268
|
-
asyncio.open_connection(hostname, port),
|
|
1269
|
-
timeout=timeout,
|
|
1270
|
-
)
|
|
1271
|
-
writer.close()
|
|
1272
|
-
await writer.wait_closed()
|
|
1273
|
-
|
|
1274
|
-
logger.info(
|
|
1275
|
-
"network-check-success",
|
|
1276
|
-
extra={
|
|
1277
|
-
"hostname": hostname,
|
|
1278
|
-
"port": port,
|
|
1279
|
-
"base_url": base_url,
|
|
1280
|
-
},
|
|
1281
|
-
)
|
|
1282
|
-
return True, f"Successfully connected to {hostname}:{port}"
|
|
1283
|
-
except TimeoutError:
|
|
1284
|
-
logger.warning(
|
|
1285
|
-
"network-check-timeout",
|
|
1286
|
-
extra={
|
|
1287
|
-
"hostname": hostname,
|
|
1288
|
-
"port": port,
|
|
1289
|
-
"timeout": timeout,
|
|
1290
|
-
"base_url": base_url,
|
|
1291
|
-
},
|
|
1292
|
-
)
|
|
1293
|
-
return False, f"Connection timeout to {hostname}:{port} (timeout: {timeout}s)"
|
|
1294
|
-
except OSError as e:
|
|
1295
|
-
logger.warning(
|
|
1296
|
-
"network-check-failed",
|
|
1297
|
-
extra={
|
|
1298
|
-
"hostname": hostname,
|
|
1299
|
-
"port": port,
|
|
1300
|
-
"error": str(e),
|
|
1301
|
-
"base_url": base_url,
|
|
1302
|
-
},
|
|
1303
|
-
)
|
|
1304
|
-
return False, f"Failed to connect to {hostname}:{port}: {e}"
|
|
1305
|
-
except Exception as e:
|
|
1306
|
-
logger.exception(
|
|
1307
|
-
"network-check-error",
|
|
1308
|
-
extra={
|
|
1309
|
-
"base_url": base_url,
|
|
1310
|
-
"error": str(e),
|
|
1311
|
-
},
|
|
1312
|
-
)
|
|
1313
|
-
return False, f"Network check error: {e}"
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
def _get_retry_config() -> tuple[int, float]:
|
|
1317
|
-
"""Get retry configuration from environment variables or use defaults.
|
|
1318
|
-
|
|
1319
|
-
Returns:
|
|
1320
|
-
tuple[int, float]: (retries, backoff_multiplier)
|
|
1321
|
-
|
|
1322
|
-
Environment variables (from the shared VDS env file):
|
|
1323
|
-
- VDS_GIT_RETRIES: Number of retries (default: 2)
|
|
1324
|
-
- VDS_GIT_BACKOFF: Backoff multiplier (default: 1.5)
|
|
1325
|
-
"""
|
|
1326
|
-
retries = 2
|
|
1327
|
-
backoff = 1.5
|
|
1328
|
-
|
|
1329
|
-
retries_env = os.environ.get("VDS_GIT_RETRIES")
|
|
1330
|
-
if retries_env:
|
|
1331
|
-
try:
|
|
1332
|
-
retries = int(retries_env)
|
|
1333
|
-
retries = max(retries, 0)
|
|
1334
|
-
except ValueError:
|
|
1335
|
-
pass
|
|
1336
|
-
|
|
1337
|
-
backoff_env = os.environ.get("VDS_GIT_BACKOFF")
|
|
1338
|
-
if backoff_env:
|
|
1339
|
-
try:
|
|
1340
|
-
backoff = float(backoff_env)
|
|
1341
|
-
backoff = max(backoff, 1.0)
|
|
1342
|
-
except ValueError:
|
|
1343
|
-
pass
|
|
1344
|
-
|
|
1345
|
-
return retries, backoff
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
async def _verify_credentials(repo: Repository) -> None:
|
|
1349
|
-
"""Verify git credentials by attempting a lightweight ls-remote.
|
|
1350
|
-
|
|
1351
|
-
Raises:
|
|
1352
|
-
RuntimeError: If authentication fails (401/403).
|
|
1353
|
-
"""
|
|
1354
|
-
remote = _remote_url(repo)
|
|
1355
|
-
# Check HEAD ref - lightweight, doesn't download objects
|
|
1356
|
-
command = _build_git_command(repo, ["ls-remote", remote, "HEAD"])
|
|
1357
|
-
|
|
1358
|
-
# Run with a short timeout to fail fast
|
|
1359
|
-
try:
|
|
1360
|
-
process = await asyncio.create_subprocess_exec(
|
|
1361
|
-
*command,
|
|
1362
|
-
stdout=asyncio.subprocess.PIPE,
|
|
1363
|
-
stderr=asyncio.subprocess.PIPE,
|
|
1364
|
-
)
|
|
1365
|
-
_, stderr = await asyncio.wait_for(process.communicate(), timeout=10.0)
|
|
1366
|
-
|
|
1367
|
-
if process.returncode != 0:
|
|
1368
|
-
err_msg = stderr.decode().lower()
|
|
1369
|
-
if "401" in err_msg or "403" in err_msg or "authentication failed" in err_msg:
|
|
1370
|
-
raise RuntimeError(
|
|
1371
|
-
f"Authentication failed for {remote}. Check VDS_USERNAME/VDS_PASSWORD in the shared VDS env file"
|
|
1372
|
-
)
|
|
1373
|
-
# Other errors (e.g. repo not found) might not be global auth issues,
|
|
1374
|
-
# so we log warning but don't abort everything.
|
|
1375
|
-
logger.warning(
|
|
1376
|
-
"auth-check-warning",
|
|
1377
|
-
extra={"repo": repo.name, "error": stderr.decode().strip()},
|
|
1378
|
-
)
|
|
1379
|
-
|
|
1380
|
-
except TimeoutError:
|
|
1381
|
-
logger.warning("auth-check-timeout", extra={"repo": repo.name})
|
|
1382
|
-
except RuntimeError:
|
|
1383
|
-
raise
|
|
1384
|
-
except Exception as e:
|
|
1385
|
-
# Don't block everything if the check itself crashes unexpectedly
|
|
1386
|
-
logger.warning("auth-check-error", extra={"error": str(e)})
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
async def orchestrate_repositories(
|
|
1390
|
-
manifest: Manifest,
|
|
1391
|
-
operation: GitOperation,
|
|
1392
|
-
filters: ManifestFilters,
|
|
1393
|
-
concurrency: int,
|
|
1394
|
-
dry_run: bool,
|
|
1395
|
-
run_id: str,
|
|
1396
|
-
retries: int | None = None,
|
|
1397
|
-
backoff: float | None = None,
|
|
1398
|
-
allow_serial_recovery: bool = True,
|
|
1399
|
-
**operation_kwargs,
|
|
1400
|
-
) -> RunSummary:
|
|
1401
|
-
"""Orchestrate git operations across multiple repositories.
|
|
1402
|
-
|
|
1403
|
-
Args:
|
|
1404
|
-
retries: Number of retries (default: from VDS_GIT_RETRIES env var or 2)
|
|
1405
|
-
backoff: Backoff multiplier (default: from VDS_GIT_BACKOFF env var or 1.5)
|
|
1406
|
-
"""
|
|
1407
|
-
# Get retry configuration from environment or use provided/default values
|
|
1408
|
-
if retries is None or backoff is None:
|
|
1409
|
-
env_retries, env_backoff = _get_retry_config()
|
|
1410
|
-
retries = retries if retries is not None else env_retries
|
|
1411
|
-
backoff = backoff if backoff is not None else env_backoff
|
|
1412
|
-
|
|
1413
|
-
repositories = manifest.filter(filters)
|
|
1414
|
-
|
|
1415
|
-
# Log operation start with configuration
|
|
1416
|
-
logger.info(
|
|
1417
|
-
"operation-start",
|
|
1418
|
-
extra={
|
|
1419
|
-
"operation": operation.value,
|
|
1420
|
-
"repo_count": len(repositories),
|
|
1421
|
-
"concurrency": concurrency,
|
|
1422
|
-
"retries": retries,
|
|
1423
|
-
"backoff": backoff,
|
|
1424
|
-
"dry_run": dry_run,
|
|
1425
|
-
"run_id": run_id,
|
|
1426
|
-
"filters": {
|
|
1427
|
-
"project": filters.project,
|
|
1428
|
-
"name_match": filters.name_match,
|
|
1429
|
-
"include_tags": sorted(filters.include_tags) if filters.include_tags else [],
|
|
1430
|
-
"exclude_tags": sorted(filters.exclude_tags) if filters.exclude_tags else [],
|
|
1431
|
-
},
|
|
1432
|
-
},
|
|
1433
|
-
)
|
|
1434
|
-
|
|
1435
|
-
# Check network connectivity before proceeding (only for operations that need network)
|
|
1436
|
-
network_required_operations = {
|
|
1437
|
-
GitOperation.PULL,
|
|
1438
|
-
GitOperation.FETCH,
|
|
1439
|
-
GitOperation.CLONE,
|
|
1440
|
-
GitOperation.PUSH,
|
|
1441
|
-
}
|
|
1442
|
-
if not dry_run and operation in network_required_operations and repositories:
|
|
1443
|
-
base_url = _remote_base()
|
|
1444
|
-
is_connected, message = await _check_network_connectivity(base_url, timeout=5.0)
|
|
1445
|
-
if not is_connected:
|
|
1446
|
-
logger.warning(
|
|
1447
|
-
"network-check-failed-proceeding",
|
|
1448
|
-
extra={
|
|
1449
|
-
"base_url": base_url,
|
|
1450
|
-
"connectivity_message": message,
|
|
1451
|
-
"operation": operation.value,
|
|
1452
|
-
"repo_count": len(repositories),
|
|
1453
|
-
"run_id": run_id,
|
|
1454
|
-
"note": "Proceeding with operations despite connectivity check failure. Individual operations will retry.",
|
|
1455
|
-
},
|
|
1456
|
-
)
|
|
1457
|
-
else:
|
|
1458
|
-
logger.info(
|
|
1459
|
-
"network-check-passed",
|
|
1460
|
-
extra={
|
|
1461
|
-
"base_url": base_url,
|
|
1462
|
-
"connectivity_message": message,
|
|
1463
|
-
"operation": operation.value,
|
|
1464
|
-
"run_id": run_id,
|
|
1465
|
-
},
|
|
1466
|
-
)
|
|
1467
|
-
|
|
1468
|
-
# Pre-flight Auth Check (TSK-004)
|
|
1469
|
-
# Verify credentials using the first repository to fail fast if auth is broken
|
|
1470
|
-
if repositories:
|
|
1471
|
-
logger.info("auth-check-start", extra={"run_id": run_id})
|
|
1472
|
-
try:
|
|
1473
|
-
await _verify_credentials(repositories[0])
|
|
1474
|
-
logger.info("auth-check-passed", extra={"run_id": run_id})
|
|
1475
|
-
except RuntimeError as e:
|
|
1476
|
-
logger.exception("auth-check-failed", extra={"error": str(e), "run_id": run_id})
|
|
1477
|
-
# Re-raise to abort the operation
|
|
1478
|
-
raise
|
|
1479
|
-
|
|
1480
|
-
# Step 1: Ensure all repos from manifest are cloned locally
|
|
1481
|
-
# This ensures local folders match remote repo list before starting operations
|
|
1482
|
-
if operation != GitOperation.CLONE: # Skip pre-clone if operation is clone itself
|
|
1483
|
-
logger.info(
|
|
1484
|
-
"pre-clone-check",
|
|
1485
|
-
extra={
|
|
1486
|
-
"repo_count": len(repositories),
|
|
1487
|
-
"run_id": run_id,
|
|
1488
|
-
"operation": operation.value,
|
|
1489
|
-
},
|
|
1490
|
-
)
|
|
1491
|
-
pre_clone_results = await _ensure_all_repos_cloned(repositories, concurrency, dry_run, run_id)
|
|
1492
|
-
# Log pre-clone results but don't fail the operation if some clones fail
|
|
1493
|
-
# (they'll be handled by auto-clone in _run_git if needed)
|
|
1494
|
-
cloned_count = sum(1 for r in pre_clone_results.values() if r.success)
|
|
1495
|
-
failed_count = len(pre_clone_results) - cloned_count
|
|
1496
|
-
if cloned_count > 0 or failed_count > 0:
|
|
1497
|
-
logger.info(
|
|
1498
|
-
"pre-clone-complete",
|
|
1499
|
-
extra={
|
|
1500
|
-
"cloned": cloned_count,
|
|
1501
|
-
"failed": failed_count,
|
|
1502
|
-
"total": len(repositories),
|
|
1503
|
-
"run_id": run_id,
|
|
1504
|
-
"operation": operation.value,
|
|
1505
|
-
},
|
|
1506
|
-
)
|
|
1507
|
-
|
|
1508
|
-
results: dict[str, RepoResult] = {}
|
|
1509
|
-
|
|
1510
|
-
semaphore = asyncio.Semaphore(concurrency)
|
|
1511
|
-
serial_retries = 0
|
|
1512
|
-
|
|
1513
|
-
async def worker(repo: Repository) -> None:
|
|
1514
|
-
async with semaphore:
|
|
1515
|
-
attempt = 0
|
|
1516
|
-
delay = 1.0
|
|
1517
|
-
result: RepoResult
|
|
1518
|
-
recovery_tracker = {"attempted": False}
|
|
1519
|
-
while True:
|
|
1520
|
-
attempt += 1
|
|
1521
|
-
try:
|
|
1522
|
-
# pre hooks
|
|
1523
|
-
if not dry_run:
|
|
1524
|
-
pre_key = {
|
|
1525
|
-
GitOperation.PULL: "pre_pull",
|
|
1526
|
-
GitOperation.FETCH: "pre_fetch",
|
|
1527
|
-
GitOperation.STATUS: "pre_status",
|
|
1528
|
-
GitOperation.BRANCH: "pre_branch",
|
|
1529
|
-
GitOperation.CHECKOUT: "pre_checkout",
|
|
1530
|
-
GitOperation.ADD: "pre_add",
|
|
1531
|
-
GitOperation.COMMIT: "pre_commit",
|
|
1532
|
-
GitOperation.PUSH: "pre_push",
|
|
1533
|
-
GitOperation.STASH: "pre_stash",
|
|
1534
|
-
GitOperation.TAG: "pre_tag",
|
|
1535
|
-
}.get(operation)
|
|
1536
|
-
if pre_key:
|
|
1537
|
-
for command in repo.hooks.get(pre_key, []):
|
|
1538
|
-
rc, h_stdout, h_stderr = await _run_hook(repo, command)
|
|
1539
|
-
if rc != 0:
|
|
1540
|
-
results[repo.name] = RepoResult(
|
|
1541
|
-
repo=repo,
|
|
1542
|
-
success=False,
|
|
1543
|
-
message=h_stderr.strip() or h_stdout.strip() or f"hook failed: {command}",
|
|
1544
|
-
)
|
|
1545
|
-
return
|
|
1546
|
-
result = await _operate_repo(
|
|
1547
|
-
repo,
|
|
1548
|
-
operation=operation,
|
|
1549
|
-
dry_run=dry_run,
|
|
1550
|
-
run_id=run_id,
|
|
1551
|
-
recovery_tracker=recovery_tracker,
|
|
1552
|
-
**operation_kwargs,
|
|
1553
|
-
)
|
|
1554
|
-
except Exception as exc: # pragma: no cover - fallback safety
|
|
1555
|
-
logger.exception("operation-failed", extra={"repo": repo.name, "run_id": run_id})
|
|
1556
|
-
result = RepoResult(repo=repo, success=False, message=str(exc))
|
|
1557
|
-
|
|
1558
|
-
if result.success or attempt > retries:
|
|
1559
|
-
results[repo.name] = result
|
|
1560
|
-
if result.success and not dry_run:
|
|
1561
|
-
post_key = {
|
|
1562
|
-
GitOperation.PULL: "post_pull",
|
|
1563
|
-
GitOperation.FETCH: "post_fetch",
|
|
1564
|
-
GitOperation.STATUS: "post_status",
|
|
1565
|
-
GitOperation.BRANCH: "post_branch",
|
|
1566
|
-
GitOperation.CHECKOUT: "post_checkout",
|
|
1567
|
-
GitOperation.ADD: "post_add",
|
|
1568
|
-
GitOperation.COMMIT: "post_commit",
|
|
1569
|
-
GitOperation.PUSH: "post_push",
|
|
1570
|
-
GitOperation.STASH: "post_stash",
|
|
1571
|
-
GitOperation.TAG: "post_tag",
|
|
1572
|
-
}.get(operation)
|
|
1573
|
-
if post_key:
|
|
1574
|
-
for command in repo.hooks.get(post_key, []):
|
|
1575
|
-
rc, h_stdout, h_stderr = await _run_hook(repo, command)
|
|
1576
|
-
if rc != 0:
|
|
1577
|
-
logger.warning(
|
|
1578
|
-
"hook-failed",
|
|
1579
|
-
extra={
|
|
1580
|
-
"repo": repo.name,
|
|
1581
|
-
"hook": command,
|
|
1582
|
-
"run_id": run_id,
|
|
1583
|
-
},
|
|
1584
|
-
)
|
|
1585
|
-
break
|
|
1586
|
-
|
|
1587
|
-
logger.warning(
|
|
1588
|
-
"retrying",
|
|
1589
|
-
extra={
|
|
1590
|
-
"repo": repo.name,
|
|
1591
|
-
"project": repo.project,
|
|
1592
|
-
"run_id": run_id,
|
|
1593
|
-
"attempt": attempt,
|
|
1594
|
-
},
|
|
1595
|
-
)
|
|
1596
|
-
await asyncio.sleep(delay)
|
|
1597
|
-
delay *= backoff
|
|
1598
|
-
|
|
1599
|
-
async with asyncio.TaskGroup() as tg:
|
|
1600
|
-
for repo in repositories:
|
|
1601
|
-
tg.create_task(worker(repo))
|
|
1602
|
-
|
|
1603
|
-
if allow_serial_recovery and not dry_run and concurrency > 1:
|
|
1604
|
-
fallback_repos = [
|
|
1605
|
-
repo
|
|
1606
|
-
for repo in repositories
|
|
1607
|
-
if not results[repo.name].success and _is_network_error(results[repo.name].message or "")
|
|
1608
|
-
]
|
|
1609
|
-
if fallback_repos:
|
|
1610
|
-
logger.warning(
|
|
1611
|
-
"serial-retry",
|
|
1612
|
-
extra={
|
|
1613
|
-
"run_id": run_id,
|
|
1614
|
-
"repos": [r.name for r in fallback_repos],
|
|
1615
|
-
},
|
|
1616
|
-
)
|
|
1617
|
-
serial_retries = len(fallback_repos)
|
|
1618
|
-
fallback_manifest = Manifest(fallback_repos)
|
|
1619
|
-
fallback_summary = await orchestrate_repositories(
|
|
1620
|
-
manifest=fallback_manifest,
|
|
1621
|
-
operation=operation,
|
|
1622
|
-
filters=ManifestFilters(),
|
|
1623
|
-
concurrency=1,
|
|
1624
|
-
dry_run=False,
|
|
1625
|
-
run_id=run_id,
|
|
1626
|
-
retries=retries,
|
|
1627
|
-
backoff=backoff,
|
|
1628
|
-
allow_serial_recovery=False,
|
|
1629
|
-
**operation_kwargs,
|
|
1630
|
-
)
|
|
1631
|
-
results.update(fallback_summary.results)
|
|
1632
|
-
|
|
1633
|
-
return RunSummary.from_results(results, serial_retries=serial_retries)
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
def _is_network_error(message: str) -> bool:
|
|
1637
|
-
lowered = message.lower()
|
|
1638
|
-
patterns = (
|
|
1639
|
-
"failed to connect",
|
|
1640
|
-
"couldn't connect",
|
|
1641
|
-
"could not connect",
|
|
1642
|
-
"timeout",
|
|
1643
|
-
"timed out",
|
|
1644
|
-
"connection refused",
|
|
1645
|
-
"could not resolve host",
|
|
1646
|
-
)
|
|
1647
|
-
return any(pattern in lowered for pattern in patterns)
|