@ngocsangairvds/vsaf 3.2.15 → 4.0.0
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 -141
- package/src/config.js +0 -167
- package/src/global.js +0 -261
- package/src/project.js +0 -190
- 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,1850 +0,0 @@
|
|
|
1
|
-
"""Confluence client wrapper using atlassian-python-api for consistency."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import inspect
|
|
6
|
-
import time
|
|
7
|
-
from collections.abc import Callable
|
|
8
|
-
from datetime import UTC, datetime, timedelta
|
|
9
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
10
|
-
from urllib.parse import parse_qs, urlparse
|
|
11
|
-
|
|
12
|
-
import httpx
|
|
13
|
-
import structlog
|
|
14
|
-
from vds_platform_core.credentials import resolve_secret
|
|
15
|
-
|
|
16
|
-
try: # Prefer new-style Atlassian clients when available
|
|
17
|
-
from atlassian.confluence import ConfluenceCloud as AtlassianConfluenceCloud # type: ignore[attr-defined]
|
|
18
|
-
from atlassian.confluence import ConfluenceServer as AtlassianConfluenceServer # type: ignore[attr-defined]
|
|
19
|
-
except ImportError: # Fall back to legacy class
|
|
20
|
-
from atlassian import Confluence as AtlassianConfluenceCloud # type: ignore
|
|
21
|
-
|
|
22
|
-
AtlassianConfluenceServer = AtlassianConfluenceCloud
|
|
23
|
-
|
|
24
|
-
from .errors import (
|
|
25
|
-
AuthError,
|
|
26
|
-
ClientPermissionError,
|
|
27
|
-
ConflictError,
|
|
28
|
-
ConfluenceDegradedWriteError,
|
|
29
|
-
RateLimitError,
|
|
30
|
-
ResponseError,
|
|
31
|
-
RetryError,
|
|
32
|
-
TransportError,
|
|
33
|
-
VDSClientError,
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
if TYPE_CHECKING:
|
|
37
|
-
from .config import ConfluenceSettings
|
|
38
|
-
|
|
39
|
-
T = TypeVar("T")
|
|
40
|
-
|
|
41
|
-
# Write operations blocked when the client is in degraded mode.
|
|
42
|
-
_WRITE_OPS: frozenset[str] = frozenset(
|
|
43
|
-
{
|
|
44
|
-
"create_page",
|
|
45
|
-
"update_page",
|
|
46
|
-
"delete_page",
|
|
47
|
-
"upload_attachment",
|
|
48
|
-
"update_attachment",
|
|
49
|
-
"delete_attachment",
|
|
50
|
-
"add_attachment",
|
|
51
|
-
"add_comment",
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def _escape_cql_literal(value: str) -> str:
|
|
57
|
-
return value.replace("\\", "\\\\").replace('"', '\\"')
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def _coerce_utc_datetime(value: datetime | str) -> datetime:
|
|
61
|
-
if isinstance(value, datetime):
|
|
62
|
-
dt_value = value
|
|
63
|
-
else:
|
|
64
|
-
normalized = value.strip()
|
|
65
|
-
if normalized.endswith("Z"):
|
|
66
|
-
normalized = normalized[:-1] + "+00:00"
|
|
67
|
-
try:
|
|
68
|
-
dt_value = datetime.fromisoformat(normalized)
|
|
69
|
-
except ValueError as exc:
|
|
70
|
-
raise VDSClientError(
|
|
71
|
-
"Invalid incremental high-water-mark timestamp",
|
|
72
|
-
context={"value": value},
|
|
73
|
-
) from exc
|
|
74
|
-
if dt_value.tzinfo is None:
|
|
75
|
-
return dt_value.replace(tzinfo=UTC)
|
|
76
|
-
return dt_value.astimezone(UTC)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
def _build_lastmodified_cql_clause(
|
|
80
|
-
last_modified_after: datetime | str | None,
|
|
81
|
-
*,
|
|
82
|
-
overlap_minutes: int = 0,
|
|
83
|
-
) -> str | None:
|
|
84
|
-
if last_modified_after is None:
|
|
85
|
-
return None
|
|
86
|
-
overlap = max(int(overlap_minutes), 0)
|
|
87
|
-
cursor = _coerce_utc_datetime(last_modified_after)
|
|
88
|
-
if overlap:
|
|
89
|
-
cursor = cursor - timedelta(minutes=overlap)
|
|
90
|
-
return f'lastmodified >= "{cursor.strftime("%Y-%m-%d %H:%M")}"'
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
def _build_space_type_lastmodified_cql(
|
|
94
|
-
*,
|
|
95
|
-
space_key: str | None = None,
|
|
96
|
-
content_type: str | None = None,
|
|
97
|
-
last_modified_after: datetime | str | None = None,
|
|
98
|
-
overlap_minutes: int = 0,
|
|
99
|
-
) -> str:
|
|
100
|
-
cql_parts: list[str] = []
|
|
101
|
-
if space_key:
|
|
102
|
-
cql_parts.append(f'space = "{_escape_cql_literal(space_key)}"')
|
|
103
|
-
if content_type:
|
|
104
|
-
cql_parts.append(f'type = "{_escape_cql_literal(content_type)}"')
|
|
105
|
-
last_modified_clause = _build_lastmodified_cql_clause(
|
|
106
|
-
last_modified_after,
|
|
107
|
-
overlap_minutes=overlap_minutes,
|
|
108
|
-
)
|
|
109
|
-
if last_modified_clause:
|
|
110
|
-
cql_parts.append(last_modified_clause)
|
|
111
|
-
if not cql_parts:
|
|
112
|
-
raise VDSClientError(
|
|
113
|
-
"At least one of space_key, content_type, or last_modified_after must be provided",
|
|
114
|
-
context={},
|
|
115
|
-
)
|
|
116
|
-
query = " AND ".join(cql_parts)
|
|
117
|
-
if last_modified_clause:
|
|
118
|
-
query = f"{query} ORDER BY lastmodified ASC"
|
|
119
|
-
return query
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
class ConfluenceHttpClient:
|
|
123
|
-
def __init__(
|
|
124
|
-
self,
|
|
125
|
-
settings: ConfluenceSettings,
|
|
126
|
-
*,
|
|
127
|
-
server: str = "internal",
|
|
128
|
-
client: httpx.Client | None = None,
|
|
129
|
-
) -> None:
|
|
130
|
-
token = settings.token_for(server)
|
|
131
|
-
if not token:
|
|
132
|
-
raise AuthError(
|
|
133
|
-
f"Token for server '{server}' is missing.",
|
|
134
|
-
context={"server": server},
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
self._settings = settings
|
|
138
|
-
self._server = server
|
|
139
|
-
self._token = token
|
|
140
|
-
if client is None:
|
|
141
|
-
base_url = str(settings.url_for(server))
|
|
142
|
-
client = httpx.Client(
|
|
143
|
-
base_url=base_url,
|
|
144
|
-
headers={
|
|
145
|
-
"Authorization": f"Bearer {token}",
|
|
146
|
-
"Accept": "application/json",
|
|
147
|
-
},
|
|
148
|
-
timeout=30,
|
|
149
|
-
)
|
|
150
|
-
self._client = client
|
|
151
|
-
|
|
152
|
-
def close(self) -> None:
|
|
153
|
-
self._client.close()
|
|
154
|
-
|
|
155
|
-
def __enter__(self) -> ConfluenceHttpClient:
|
|
156
|
-
return self
|
|
157
|
-
|
|
158
|
-
def __exit__(self, exc_type, exc, tb) -> None: # type: ignore[override]
|
|
159
|
-
self.close()
|
|
160
|
-
|
|
161
|
-
def get_runtime_telemetry(self) -> dict[str, Any]:
|
|
162
|
-
"""Return telemetry snapshot (stub for crawl_tree compatibility).
|
|
163
|
-
|
|
164
|
-
ConfluenceClient operates in degraded-mode (read-only) or normal mode.
|
|
165
|
-
This stub provides a compatible interface for telemetry consumers.
|
|
166
|
-
Actual retry/telemetry instrumentation would require adopting
|
|
167
|
-
platform_core.with_retry (httpx.AsyncClient), which is a larger
|
|
168
|
-
refactor beyond Phase 7 scope.
|
|
169
|
-
"""
|
|
170
|
-
return {
|
|
171
|
-
"adaptive_throttle": None,
|
|
172
|
-
"recent_retry_events": [],
|
|
173
|
-
"latency_ms": None,
|
|
174
|
-
"mode": "degraded" if self._degraded else "normal",
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
def request(self, method: str, path: str, **kwargs: Any) -> httpx.Response:
|
|
178
|
-
try:
|
|
179
|
-
response = self._client.request(method, path, **kwargs)
|
|
180
|
-
except httpx.HTTPError as exc: # pragma: no cover - network errors
|
|
181
|
-
raise TransportError(f"HTTP transport error: {exc}") from exc
|
|
182
|
-
|
|
183
|
-
if response.status_code < 400:
|
|
184
|
-
return response
|
|
185
|
-
|
|
186
|
-
if response.status_code in {401, 403}:
|
|
187
|
-
raise AuthError(
|
|
188
|
-
"Authentication failed",
|
|
189
|
-
context={"status_code": response.status_code},
|
|
190
|
-
)
|
|
191
|
-
if response.status_code == 409:
|
|
192
|
-
raise ConflictError(
|
|
193
|
-
"Request conflicted with existing state",
|
|
194
|
-
context={"status_code": response.status_code},
|
|
195
|
-
)
|
|
196
|
-
raise ResponseError(
|
|
197
|
-
f"Unexpected status {response.status_code}",
|
|
198
|
-
status_code=response.status_code,
|
|
199
|
-
context={"status_code": response.status_code, "body": response.text[:256]},
|
|
200
|
-
)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
class ConfluenceClient:
|
|
204
|
-
"""Confluence client wrapper using atlassian-python-api SDK."""
|
|
205
|
-
|
|
206
|
-
def __init__(
|
|
207
|
-
self,
|
|
208
|
-
settings: ConfluenceSettings,
|
|
209
|
-
*,
|
|
210
|
-
server: str | None = None,
|
|
211
|
-
timeout: int | None = None,
|
|
212
|
-
) -> None:
|
|
213
|
-
self._settings = settings
|
|
214
|
-
self._server = server or settings.default_server
|
|
215
|
-
self._timeout = timeout or settings.http_timeout
|
|
216
|
-
|
|
217
|
-
base_url = str(settings.url_for(self._server))
|
|
218
|
-
token = settings.token_for(self._server)
|
|
219
|
-
|
|
220
|
-
# Decide whether this endpoint should be treated as Cloud (v2) or Server (v1)
|
|
221
|
-
self._is_cloud = self._looks_like_cloud(base_url)
|
|
222
|
-
client_cls = AtlassianConfluenceCloud if self._is_cloud else AtlassianConfluenceServer
|
|
223
|
-
|
|
224
|
-
# Configure authentication based on available credentials
|
|
225
|
-
# Token (Bearer/PAT) takes priority over username+password to avoid 401s
|
|
226
|
-
# when Basic auth is disabled on the server.
|
|
227
|
-
auth_kwargs: dict[str, Any] = {"url": base_url, "timeout": self._timeout}
|
|
228
|
-
if self._is_cloud:
|
|
229
|
-
if token:
|
|
230
|
-
auth_kwargs["token"] = token
|
|
231
|
-
elif settings.username and settings.password:
|
|
232
|
-
auth_kwargs["username"] = settings.username
|
|
233
|
-
auth_kwargs["password"] = resolve_secret(settings.password)
|
|
234
|
-
else:
|
|
235
|
-
raise AuthError(
|
|
236
|
-
f"No credentials available for cloud server '{self._server}'. "
|
|
237
|
-
"Provide an API token or VDS_USERNAME+VDS_PASSWORD.",
|
|
238
|
-
context={"server": self._server},
|
|
239
|
-
)
|
|
240
|
-
elif token:
|
|
241
|
-
# PATs supported on Confluence Server/Data Center
|
|
242
|
-
auth_kwargs["token"] = token
|
|
243
|
-
elif settings.username and settings.password:
|
|
244
|
-
auth_kwargs["username"] = settings.username
|
|
245
|
-
auth_kwargs["password"] = resolve_secret(settings.password)
|
|
246
|
-
else:
|
|
247
|
-
raise AuthError(
|
|
248
|
-
f"No credentials available for server '{self._server}'. "
|
|
249
|
-
"Provide a CONFLUENCE token or VDS_USERNAME+VDS_PASSWORD.",
|
|
250
|
-
context={"server": self._server},
|
|
251
|
-
)
|
|
252
|
-
client_params = set(self._safe_signature_params(client_cls))
|
|
253
|
-
supports_kwargs = False
|
|
254
|
-
try:
|
|
255
|
-
signature = inspect.signature(client_cls)
|
|
256
|
-
supports_kwargs = any(
|
|
257
|
-
param.kind is inspect.Parameter.VAR_KEYWORD for param in signature.parameters.values()
|
|
258
|
-
)
|
|
259
|
-
except (TypeError, ValueError):
|
|
260
|
-
supports_kwargs = False
|
|
261
|
-
if "cloud" in client_params or supports_kwargs:
|
|
262
|
-
# Legacy Confluence() requires explicit cloud flag when URL already includes /wiki.
|
|
263
|
-
auth_kwargs["cloud"] = self._is_cloud
|
|
264
|
-
|
|
265
|
-
try:
|
|
266
|
-
self._client = client_cls(**auth_kwargs)
|
|
267
|
-
except Exception as exc:
|
|
268
|
-
raise TransportError(
|
|
269
|
-
f"Failed to initialize Confluence client: {exc}", context={"server": self._server, "base_url": base_url}
|
|
270
|
-
) from exc
|
|
271
|
-
|
|
272
|
-
self._log = structlog.get_logger(__name__).bind(server=self._server, base_url=base_url)
|
|
273
|
-
|
|
274
|
-
# Store retry settings
|
|
275
|
-
self._max_retries = settings.max_retries
|
|
276
|
-
self._retry_backoff_factor = settings.retry_backoff_factor
|
|
277
|
-
self._retry_max_wait = 30.0
|
|
278
|
-
self._create_params = set(self._safe_signature_params(self._client.create_page))
|
|
279
|
-
self._update_params = set(self._safe_signature_params(self._client.update_page))
|
|
280
|
-
# FR-172: degraded mode — set True on transport errors to block writes.
|
|
281
|
-
self._degraded: bool = False
|
|
282
|
-
|
|
283
|
-
# ------------------------------------------------------------------
|
|
284
|
-
# FR-172: Degraded mode API
|
|
285
|
-
# ------------------------------------------------------------------
|
|
286
|
-
|
|
287
|
-
@property
|
|
288
|
-
def is_degraded(self) -> bool:
|
|
289
|
-
"""True when the client has been marked degraded due to transport errors."""
|
|
290
|
-
return self._degraded
|
|
291
|
-
|
|
292
|
-
def mark_degraded(self) -> None:
|
|
293
|
-
"""Mark the client as degraded, blocking all subsequent write operations."""
|
|
294
|
-
self._degraded = True
|
|
295
|
-
|
|
296
|
-
def get_runtime_telemetry(self) -> dict[str, Any]:
|
|
297
|
-
"""Return telemetry snapshot (stub for crawl_tree compatibility).
|
|
298
|
-
|
|
299
|
-
ConfluenceClient operates in degraded-mode (read-only) or normal mode.
|
|
300
|
-
This stub provides a compatible interface for telemetry consumers.
|
|
301
|
-
Actual retry/telemetry instrumentation would require adopting
|
|
302
|
-
platform_core.with_retry (httpx.AsyncClient), which is a larger
|
|
303
|
-
refactor beyond Phase 7 scope.
|
|
304
|
-
"""
|
|
305
|
-
return {
|
|
306
|
-
"adaptive_throttle": None,
|
|
307
|
-
"recent_retry_events": [],
|
|
308
|
-
"latency_ms": None,
|
|
309
|
-
"mode": "degraded" if self._degraded else "normal",
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
def supports_api_version(self, version: str) -> bool:
|
|
313
|
-
version = (version or "v1").lower()
|
|
314
|
-
if version == "v1":
|
|
315
|
-
return True
|
|
316
|
-
if version == "v2":
|
|
317
|
-
return self._is_cloud
|
|
318
|
-
return False
|
|
319
|
-
|
|
320
|
-
@staticmethod
|
|
321
|
-
def _looks_like_cloud(base_url: str) -> bool:
|
|
322
|
-
lowered = base_url.lower()
|
|
323
|
-
return any(indicator in lowered for indicator in ("atlassian.net", "atlassian.com"))
|
|
324
|
-
|
|
325
|
-
@staticmethod
|
|
326
|
-
def _safe_signature_params(method) -> list[str]:
|
|
327
|
-
try:
|
|
328
|
-
return list(inspect.signature(method).parameters.keys())
|
|
329
|
-
except (TypeError, ValueError):
|
|
330
|
-
return []
|
|
331
|
-
|
|
332
|
-
@staticmethod
|
|
333
|
-
def _extract_pagination_marker(payload: dict[str, Any]) -> tuple[int | None, str | None]:
|
|
334
|
-
"""Extract pagination start/token markers from SDK payloads."""
|
|
335
|
-
next_start: int | None = None
|
|
336
|
-
next_token: str | None = None
|
|
337
|
-
|
|
338
|
-
links = payload.get("_links")
|
|
339
|
-
next_link: str | None = None
|
|
340
|
-
if isinstance(links, dict) and isinstance(links.get("next"), str):
|
|
341
|
-
next_link = links["next"]
|
|
342
|
-
elif isinstance(payload.get("next"), str):
|
|
343
|
-
next_link = payload["next"]
|
|
344
|
-
|
|
345
|
-
if next_link:
|
|
346
|
-
next_token = next_link
|
|
347
|
-
query = urlparse(next_link).query
|
|
348
|
-
if not query and "=" in next_link and "?" not in next_link:
|
|
349
|
-
query = next_link
|
|
350
|
-
params = parse_qs(query)
|
|
351
|
-
start_values = params.get("start")
|
|
352
|
-
if start_values:
|
|
353
|
-
try:
|
|
354
|
-
next_start = int(start_values[0])
|
|
355
|
-
except (TypeError, ValueError):
|
|
356
|
-
next_start = None
|
|
357
|
-
cursor_values = params.get("cursor")
|
|
358
|
-
if cursor_values and cursor_values[0]:
|
|
359
|
-
next_token = cursor_values[0]
|
|
360
|
-
|
|
361
|
-
for key in ("nextCursor", "next_cursor", "cursor"):
|
|
362
|
-
value = payload.get(key)
|
|
363
|
-
if isinstance(value, str) and value.strip():
|
|
364
|
-
next_token = value.strip()
|
|
365
|
-
break
|
|
366
|
-
|
|
367
|
-
raw_start = payload.get("start")
|
|
368
|
-
if next_start is None and isinstance(raw_start, int):
|
|
369
|
-
next_start = raw_start
|
|
370
|
-
|
|
371
|
-
return next_start, next_token
|
|
372
|
-
|
|
373
|
-
@staticmethod
|
|
374
|
-
def _require_dict(value: Any, operation: str) -> dict[str, Any]:
|
|
375
|
-
if isinstance(value, dict):
|
|
376
|
-
return value
|
|
377
|
-
raise VDSClientError(
|
|
378
|
-
f"{operation} returned unexpected payload type",
|
|
379
|
-
context={"operation": operation, "payload_type": type(value).__name__},
|
|
380
|
-
)
|
|
381
|
-
|
|
382
|
-
@staticmethod
|
|
383
|
-
def _coerce_dict(value: Any) -> dict[str, Any]:
|
|
384
|
-
if isinstance(value, dict):
|
|
385
|
-
return value
|
|
386
|
-
return {"value": value}
|
|
387
|
-
|
|
388
|
-
@staticmethod
|
|
389
|
-
def _coerce_list_of_dicts(value: Any) -> list[dict[str, Any]]:
|
|
390
|
-
if isinstance(value, list):
|
|
391
|
-
return [item for item in value if isinstance(item, dict)]
|
|
392
|
-
return []
|
|
393
|
-
|
|
394
|
-
@staticmethod
|
|
395
|
-
def _coerce_bytes(value: Any) -> bytes:
|
|
396
|
-
if isinstance(value, bytes):
|
|
397
|
-
return value
|
|
398
|
-
if isinstance(value, str):
|
|
399
|
-
return value.encode("utf-8")
|
|
400
|
-
raise VDSClientError(
|
|
401
|
-
"Unexpected binary payload type",
|
|
402
|
-
context={"payload_type": type(value).__name__},
|
|
403
|
-
)
|
|
404
|
-
|
|
405
|
-
@staticmethod
|
|
406
|
-
def _coerce_str(value: Any) -> str:
|
|
407
|
-
if isinstance(value, str):
|
|
408
|
-
return value
|
|
409
|
-
return str(value)
|
|
410
|
-
|
|
411
|
-
def _handle_api_error(self, error: Exception, operation: str) -> None:
|
|
412
|
-
"""Convert atlassian-python-api errors to our standardized errors."""
|
|
413
|
-
error_str = str(error).lower()
|
|
414
|
-
|
|
415
|
-
if "unauthorized" in error_str or "authentication" in error_str or "401" in error_str:
|
|
416
|
-
raise AuthError(f"Authentication failed during {operation}", context={"error": str(error)})
|
|
417
|
-
elif "forbidden" in error_str or "403" in error_str:
|
|
418
|
-
raise AuthError(f"Access forbidden during {operation}", context={"error": str(error)})
|
|
419
|
-
elif "rate limit" in error_str or "429" in error_str:
|
|
420
|
-
raise RateLimitError(
|
|
421
|
-
f"Rate limited during {operation}",
|
|
422
|
-
retry_after=None,
|
|
423
|
-
context={"error": str(error)},
|
|
424
|
-
)
|
|
425
|
-
elif "conflict" in error_str or "409" in error_str:
|
|
426
|
-
raise ConflictError(f"Conflict during {operation}", context={"error": str(error)})
|
|
427
|
-
elif "server error" in error_str or "500" in error_str:
|
|
428
|
-
raise ResponseError(
|
|
429
|
-
f"Server error during {operation}",
|
|
430
|
-
status_code=500,
|
|
431
|
-
context={"error": str(error)},
|
|
432
|
-
)
|
|
433
|
-
else:
|
|
434
|
-
raise VDSClientError(f"API error during {operation}: {error}", context={"error": str(error)})
|
|
435
|
-
|
|
436
|
-
def _with_retry(self, operation: Callable[[], T], operation_name: str) -> T:
|
|
437
|
-
"""Execute an operation with retry logic using instance settings."""
|
|
438
|
-
op_base = (operation_name or "").strip().lower().split(" ", 1)[0]
|
|
439
|
-
if self._degraded and op_base in _WRITE_OPS:
|
|
440
|
-
raise ConfluenceDegradedWriteError(operation_name)
|
|
441
|
-
for attempt in range(self._max_retries + 1):
|
|
442
|
-
try:
|
|
443
|
-
return operation()
|
|
444
|
-
except Exception as exc:
|
|
445
|
-
try:
|
|
446
|
-
self._handle_api_error(exc, operation_name)
|
|
447
|
-
except (TransportError, RateLimitError) as retry_exc:
|
|
448
|
-
if attempt == self._max_retries:
|
|
449
|
-
self._log.error(
|
|
450
|
-
"retry_attempts_exhausted",
|
|
451
|
-
operation=operation_name,
|
|
452
|
-
attempts=self._max_retries,
|
|
453
|
-
final_error=str(retry_exc),
|
|
454
|
-
)
|
|
455
|
-
raise RetryError(
|
|
456
|
-
f"Retry attempts exhausted: {retry_exc}",
|
|
457
|
-
attempts=self._max_retries,
|
|
458
|
-
context={"original_error": str(retry_exc), "operation": operation_name},
|
|
459
|
-
) from retry_exc
|
|
460
|
-
|
|
461
|
-
wait_time = min(
|
|
462
|
-
max(self._retry_backoff_factor, 0.0) * (2**attempt),
|
|
463
|
-
self._retry_max_wait,
|
|
464
|
-
)
|
|
465
|
-
self._log.warning(
|
|
466
|
-
"retry_attempt",
|
|
467
|
-
operation=operation_name,
|
|
468
|
-
attempt=attempt + 1,
|
|
469
|
-
max_retries=self._max_retries,
|
|
470
|
-
wait_time=wait_time,
|
|
471
|
-
error=str(retry_exc),
|
|
472
|
-
)
|
|
473
|
-
time.sleep(wait_time)
|
|
474
|
-
except VDSClientError:
|
|
475
|
-
raise
|
|
476
|
-
raise VDSClientError(
|
|
477
|
-
"Retry loop exited without returning result",
|
|
478
|
-
context={"operation": operation_name},
|
|
479
|
-
)
|
|
480
|
-
|
|
481
|
-
def get_page(self, page_id: str, expand: list[str] | None = None) -> dict[str, Any]:
|
|
482
|
-
"""Get a page by ID."""
|
|
483
|
-
|
|
484
|
-
def operation() -> dict[str, Any]:
|
|
485
|
-
params = {}
|
|
486
|
-
if expand:
|
|
487
|
-
params["expand"] = ",".join(expand)
|
|
488
|
-
result = self._client.get_page_by_id(page_id, expand=",".join(expand) if expand else None)
|
|
489
|
-
self._log.debug("page_retrieved", page_id=page_id)
|
|
490
|
-
return self._require_dict(result, "get_page")
|
|
491
|
-
|
|
492
|
-
return self._with_retry(operation, f"get_page {page_id}")
|
|
493
|
-
|
|
494
|
-
def search_cql(
|
|
495
|
-
self, cql: str, limit: int = 25, start: int = 0, expand: list[str] | None = None, **kwargs: Any
|
|
496
|
-
) -> dict[str, Any]:
|
|
497
|
-
"""Search using CQL.
|
|
498
|
-
|
|
499
|
-
Bypasses the ``atlassian`` SDK's ``cql()`` method entirely because it
|
|
500
|
-
uses ``if start:`` which is falsy for ``start=0``, causing the param to
|
|
501
|
-
be omitted. Instead we call ``rest/api/search`` directly with an
|
|
502
|
-
explicit ``params`` dict that always includes ``start``.
|
|
503
|
-
|
|
504
|
-
Without ``start`` in the request, some Confluence Server versions respond
|
|
505
|
-
with ``java.lang.IllegalArgumentException: parameters should not be empty``.
|
|
506
|
-
"""
|
|
507
|
-
|
|
508
|
-
def operation() -> dict[str, Any]:
|
|
509
|
-
params: dict[str, Any] = {"cql": cql, "start": int(start)}
|
|
510
|
-
if limit is not None:
|
|
511
|
-
params["limit"] = int(limit)
|
|
512
|
-
if expand:
|
|
513
|
-
params["expand"] = ",".join(expand)
|
|
514
|
-
params.update(kwargs)
|
|
515
|
-
result = self._client.get("rest/api/search", params=params)
|
|
516
|
-
self._log.debug("cql_search_completed", cql=cql, limit=limit, start=start)
|
|
517
|
-
return self._require_dict(result, "search_cql")
|
|
518
|
-
|
|
519
|
-
return self._with_retry(operation, f"cql_search {cql}")
|
|
520
|
-
|
|
521
|
-
def probe_reachable(self) -> dict[str, Any]:
|
|
522
|
-
"""Run a minimal SDK-backed reachability probe against the selected base URL.
|
|
523
|
-
|
|
524
|
-
The probe intentionally uses the same REST search path as normal CQL
|
|
525
|
-
reads so Phase 153's explicit ``start=0`` handling stays exercised.
|
|
526
|
-
Callers should treat success as "the configured Confluence base URL
|
|
527
|
-
answered an authenticated SDK request", not as a guarantee that every
|
|
528
|
-
later content operation will be fast.
|
|
529
|
-
"""
|
|
530
|
-
|
|
531
|
-
return self.search_cql("type=page", limit=1, start=0)
|
|
532
|
-
|
|
533
|
-
def cql_advanced(
|
|
534
|
-
self,
|
|
535
|
-
cql: str,
|
|
536
|
-
*,
|
|
537
|
-
limit: int = 25,
|
|
538
|
-
start: int = 0,
|
|
539
|
-
expand: list[str] | None = None,
|
|
540
|
-
excerpt: str | None = None,
|
|
541
|
-
**kwargs: Any,
|
|
542
|
-
) -> dict[str, Any]:
|
|
543
|
-
"""Advanced CQL search with additional options.
|
|
544
|
-
|
|
545
|
-
Args:
|
|
546
|
-
cql: CQL query string
|
|
547
|
-
limit: Maximum number of results (default: 25)
|
|
548
|
-
start: Start index for pagination (default: 0)
|
|
549
|
-
expand: Optional list of fields to expand
|
|
550
|
-
excerpt: Optional excerpt strategy (e.g., "highlighted", "indexed")
|
|
551
|
-
**kwargs: Additional options passed to SDK cql() method
|
|
552
|
-
"""
|
|
553
|
-
|
|
554
|
-
def operation() -> dict[str, Any]:
|
|
555
|
-
# Bypass self._client.cql() which has `if start:` falsy check.
|
|
556
|
-
params: dict[str, Any] = {"cql": cql, "start": int(start)}
|
|
557
|
-
if limit is not None:
|
|
558
|
-
params["limit"] = int(limit)
|
|
559
|
-
expand_str = ",".join(expand) if expand else None
|
|
560
|
-
if expand_str:
|
|
561
|
-
params["expand"] = expand_str
|
|
562
|
-
if excerpt:
|
|
563
|
-
params["excerpt"] = excerpt
|
|
564
|
-
params.update(kwargs)
|
|
565
|
-
result = self._client.get("rest/api/search", params=params)
|
|
566
|
-
self._log.debug("cql_advanced_search_completed", cql=cql, limit=limit, start=start)
|
|
567
|
-
return self._require_dict(result, "cql_advanced")
|
|
568
|
-
|
|
569
|
-
return self._with_retry(operation, f"cql_advanced_search {cql}")
|
|
570
|
-
|
|
571
|
-
def search_by_space_and_type(
|
|
572
|
-
self,
|
|
573
|
-
space_key: str | None = None,
|
|
574
|
-
content_type: str | None = None,
|
|
575
|
-
*,
|
|
576
|
-
limit: int = 25,
|
|
577
|
-
start: int = 0,
|
|
578
|
-
expand: list[str] | None = None,
|
|
579
|
-
last_modified_after: datetime | str | None = None,
|
|
580
|
-
overlap_minutes: int = 0,
|
|
581
|
-
**kwargs: Any,
|
|
582
|
-
) -> dict[str, Any]:
|
|
583
|
-
"""Search by space and content type (helper method that builds CQL).
|
|
584
|
-
|
|
585
|
-
Args:
|
|
586
|
-
space_key: Optional space key to filter by
|
|
587
|
-
content_type: Optional content type (e.g., "page", "blogpost", "comment")
|
|
588
|
-
limit: Maximum number of results (default: 25)
|
|
589
|
-
start: Start index for pagination (default: 0)
|
|
590
|
-
expand: Optional list of fields to expand
|
|
591
|
-
last_modified_after: Optional high-water-mark timestamp for incremental crawl
|
|
592
|
-
overlap_minutes: Optional overlap buffer minutes for high-water-mark queries
|
|
593
|
-
**kwargs: Additional options passed to CQL search
|
|
594
|
-
"""
|
|
595
|
-
cql = _build_space_type_lastmodified_cql(
|
|
596
|
-
space_key=space_key,
|
|
597
|
-
content_type=content_type,
|
|
598
|
-
last_modified_after=last_modified_after,
|
|
599
|
-
overlap_minutes=overlap_minutes,
|
|
600
|
-
)
|
|
601
|
-
return self.cql_advanced(cql, limit=limit, start=start, expand=expand, **kwargs)
|
|
602
|
-
|
|
603
|
-
def create_page(
|
|
604
|
-
self, space_key: str, title: str, body: str, parent_id: str | None = None, **kwargs: Any
|
|
605
|
-
) -> dict[str, Any]:
|
|
606
|
-
"""Create a new page."""
|
|
607
|
-
|
|
608
|
-
def operation() -> dict[str, Any]:
|
|
609
|
-
call_kwargs: dict[str, Any] = {}
|
|
610
|
-
if parent_id is not None:
|
|
611
|
-
call_kwargs["parent_id"] = parent_id
|
|
612
|
-
for key, value in kwargs.items():
|
|
613
|
-
if key in self._create_params and value is not None:
|
|
614
|
-
call_kwargs[key] = value
|
|
615
|
-
result = self._client.create_page(space=space_key, title=title, body=body, **call_kwargs)
|
|
616
|
-
payload = self._require_dict(result, "create_page")
|
|
617
|
-
self._log.info("page_created", space_key=space_key, title=title, page_id=payload.get("id"))
|
|
618
|
-
return payload
|
|
619
|
-
|
|
620
|
-
return self._with_retry(operation, f"create_page {title}")
|
|
621
|
-
|
|
622
|
-
def update_page(
|
|
623
|
-
self,
|
|
624
|
-
page_id: str,
|
|
625
|
-
title: str,
|
|
626
|
-
body: str | None = None,
|
|
627
|
-
version: int | None = None,
|
|
628
|
-
parent_id: str | None = None,
|
|
629
|
-
**kwargs: Any,
|
|
630
|
-
) -> dict[str, Any]:
|
|
631
|
-
"""Update an existing page."""
|
|
632
|
-
|
|
633
|
-
def operation() -> dict[str, Any]:
|
|
634
|
-
call_kwargs: dict[str, Any] = {}
|
|
635
|
-
for key, value in kwargs.items():
|
|
636
|
-
if key in self._update_params and value is not None:
|
|
637
|
-
call_kwargs[key] = value
|
|
638
|
-
if version is not None and "version" in self._update_params:
|
|
639
|
-
call_kwargs["version"] = version
|
|
640
|
-
if parent_id is not None and "parent_id" in self._update_params:
|
|
641
|
-
call_kwargs["parent_id"] = parent_id
|
|
642
|
-
result = self._client.update_page(page_id, title, body, **call_kwargs)
|
|
643
|
-
self._log.info("page_updated", page_id=page_id, title=title)
|
|
644
|
-
return self._require_dict(result, "update_page")
|
|
645
|
-
|
|
646
|
-
return self._with_retry(operation, f"update_page {page_id}")
|
|
647
|
-
|
|
648
|
-
def delete_page(self, page_id: str) -> None:
|
|
649
|
-
"""Delete a page."""
|
|
650
|
-
if self._degraded:
|
|
651
|
-
raise ConfluenceDegradedWriteError(f"delete_page {page_id}")
|
|
652
|
-
try:
|
|
653
|
-
# Use remove_page method from atlassian library
|
|
654
|
-
self._client.remove_page(page_id=page_id)
|
|
655
|
-
self._log.info("page_deleted", page_id=page_id)
|
|
656
|
-
|
|
657
|
-
except Exception as exc:
|
|
658
|
-
# Check if it's a permission issue
|
|
659
|
-
if "Unable to trash content" in str(exc) or "Unable to purge content" in str(exc):
|
|
660
|
-
self._log.warning("page_delete_permission_denied", page_id=page_id, error=str(exc))
|
|
661
|
-
raise ClientPermissionError(
|
|
662
|
-
f"Permission denied when deleting page {page_id}. The page may be restricted or you may not have delete permissions.",
|
|
663
|
-
context={"page_id": page_id, "original_error": str(exc)},
|
|
664
|
-
) from exc
|
|
665
|
-
else:
|
|
666
|
-
self._handle_api_error(exc, f"delete_page {page_id}")
|
|
667
|
-
|
|
668
|
-
def request(self, method: str, path: str, **kwargs: Any) -> Any:
|
|
669
|
-
"""Make a raw HTTP request using the atlassian client."""
|
|
670
|
-
try:
|
|
671
|
-
# Use the underlying request method from atlassian library
|
|
672
|
-
response = self._client.request(method=method, path=path, **kwargs)
|
|
673
|
-
self._log.debug("http_request", method=method, path=path)
|
|
674
|
-
return response
|
|
675
|
-
|
|
676
|
-
except Exception as exc:
|
|
677
|
-
self._handle_api_error(exc, f"request {method} {path}")
|
|
678
|
-
raise
|
|
679
|
-
|
|
680
|
-
def add_attachment(
|
|
681
|
-
self,
|
|
682
|
-
page_id: str,
|
|
683
|
-
filename: str,
|
|
684
|
-
content: bytes,
|
|
685
|
-
content_type: str | None = None,
|
|
686
|
-
*,
|
|
687
|
-
comment: str | None = None,
|
|
688
|
-
) -> dict[str, Any]:
|
|
689
|
-
"""Add an attachment to a page.
|
|
690
|
-
|
|
691
|
-
According to atlassian-python-api docs, attach_content automatically updates
|
|
692
|
-
if the file exists, versioning the new file and keeping the old one.
|
|
693
|
-
See: https://atlassian-python-api.readthedocs.io/confluence.html#
|
|
694
|
-
"""
|
|
695
|
-
|
|
696
|
-
def operation() -> dict[str, Any]:
|
|
697
|
-
# Use attach_content from the official SDK (handles create vs update internally)
|
|
698
|
-
result = self._client.attach_content(
|
|
699
|
-
content=content,
|
|
700
|
-
name=filename,
|
|
701
|
-
content_type=content_type or "application/octet-stream",
|
|
702
|
-
page_id=page_id,
|
|
703
|
-
comment=comment,
|
|
704
|
-
)
|
|
705
|
-
self._log.info("attachment_added", page_id=page_id, filename=filename)
|
|
706
|
-
return self._coerce_dict(result)
|
|
707
|
-
|
|
708
|
-
return self._with_retry(operation, f"add_attachment {filename}")
|
|
709
|
-
|
|
710
|
-
def get_space(self, space_key: str) -> dict[str, Any]:
|
|
711
|
-
"""Get space information."""
|
|
712
|
-
try:
|
|
713
|
-
result = self._client.get_space(space_key)
|
|
714
|
-
self._log.debug("space_retrieved", space_key=space_key)
|
|
715
|
-
return self._require_dict(result, "get_space")
|
|
716
|
-
|
|
717
|
-
except Exception as exc:
|
|
718
|
-
self._handle_api_error(exc, f"get_space {space_key}")
|
|
719
|
-
raise
|
|
720
|
-
|
|
721
|
-
def get_space_permissions(self, space_key: str) -> dict[str, Any]:
|
|
722
|
-
"""Get all permissions configured for a space."""
|
|
723
|
-
|
|
724
|
-
def operation() -> dict[str, Any]:
|
|
725
|
-
result = self._client.get_space_permissions(space_key)
|
|
726
|
-
count = len(result) if isinstance(result, (list, tuple)) else len(result or {})
|
|
727
|
-
self._log.debug("space_permissions_retrieved", space_key=space_key, count=count)
|
|
728
|
-
return self._coerce_dict(result)
|
|
729
|
-
|
|
730
|
-
return self._with_retry(operation, f"get_space_permissions {space_key}")
|
|
731
|
-
|
|
732
|
-
def set_permissions_to_user_for_space(
|
|
733
|
-
self,
|
|
734
|
-
space_key: str,
|
|
735
|
-
user_key: str,
|
|
736
|
-
*,
|
|
737
|
-
operations: list[str] | None = None,
|
|
738
|
-
) -> dict[str, Any]:
|
|
739
|
-
"""Grant permissions to a specific user for a space."""
|
|
740
|
-
|
|
741
|
-
def operation() -> dict[str, Any]:
|
|
742
|
-
result = self._client.set_permissions_to_user_for_space(
|
|
743
|
-
space_key,
|
|
744
|
-
user_key,
|
|
745
|
-
operations=operations,
|
|
746
|
-
)
|
|
747
|
-
self._log.info(
|
|
748
|
-
"space_permissions_user_set",
|
|
749
|
-
space_key=space_key,
|
|
750
|
-
user_key=user_key,
|
|
751
|
-
operations=operations or [],
|
|
752
|
-
)
|
|
753
|
-
return self._coerce_dict(result)
|
|
754
|
-
|
|
755
|
-
return self._with_retry(operation, f"set_permissions_to_user_for_space {space_key} {user_key}")
|
|
756
|
-
|
|
757
|
-
def set_permissions_to_group_for_space(
|
|
758
|
-
self,
|
|
759
|
-
space_key: str,
|
|
760
|
-
group_name: str,
|
|
761
|
-
*,
|
|
762
|
-
operations: list[str] | None = None,
|
|
763
|
-
) -> dict[str, Any]:
|
|
764
|
-
"""Grant permissions to a group for a space."""
|
|
765
|
-
|
|
766
|
-
def operation() -> dict[str, Any]:
|
|
767
|
-
result = self._client.set_permissions_to_group_for_space(
|
|
768
|
-
space_key,
|
|
769
|
-
group_name,
|
|
770
|
-
operations=operations,
|
|
771
|
-
)
|
|
772
|
-
self._log.info(
|
|
773
|
-
"space_permissions_group_set",
|
|
774
|
-
space_key=space_key,
|
|
775
|
-
group_name=group_name,
|
|
776
|
-
operations=operations or [],
|
|
777
|
-
)
|
|
778
|
-
return self._coerce_dict(result)
|
|
779
|
-
|
|
780
|
-
return self._with_retry(operation, f"set_permissions_to_group_for_space {space_key} {group_name}")
|
|
781
|
-
|
|
782
|
-
def set_permissions_to_anonymous_for_space(
|
|
783
|
-
self,
|
|
784
|
-
space_key: str,
|
|
785
|
-
*,
|
|
786
|
-
operations: list[str] | None = None,
|
|
787
|
-
) -> dict[str, Any]:
|
|
788
|
-
"""Grant permissions to anonymous users for a space."""
|
|
789
|
-
|
|
790
|
-
def operation() -> dict[str, Any]:
|
|
791
|
-
result = self._client.set_permissions_to_anonymous_for_space(space_key, operations=operations)
|
|
792
|
-
self._log.info(
|
|
793
|
-
"space_permissions_anonymous_set",
|
|
794
|
-
space_key=space_key,
|
|
795
|
-
operations=operations or [],
|
|
796
|
-
)
|
|
797
|
-
return self._coerce_dict(result)
|
|
798
|
-
|
|
799
|
-
return self._with_retry(operation, f"set_permissions_to_anonymous_for_space {space_key}")
|
|
800
|
-
|
|
801
|
-
def set_permissions_to_multiple_items_for_space(
|
|
802
|
-
self,
|
|
803
|
-
space_key: str,
|
|
804
|
-
items: list[dict[str, Any]],
|
|
805
|
-
) -> dict[str, Any]:
|
|
806
|
-
"""Grant permissions to multiple users/groups in a single request."""
|
|
807
|
-
|
|
808
|
-
if not items:
|
|
809
|
-
raise VDSClientError(
|
|
810
|
-
"Bulk permissions payload is empty",
|
|
811
|
-
context={"space_key": space_key},
|
|
812
|
-
)
|
|
813
|
-
|
|
814
|
-
def _normalize_item(item: dict[str, Any], index: int) -> tuple[str, str | None, list[str]]:
|
|
815
|
-
raw_operations = item.get("operations")
|
|
816
|
-
if raw_operations is None:
|
|
817
|
-
operations: list[str] = []
|
|
818
|
-
elif isinstance(raw_operations, list) and all(isinstance(op, str) for op in raw_operations):
|
|
819
|
-
operations = [op.strip() for op in raw_operations if op.strip()]
|
|
820
|
-
else:
|
|
821
|
-
raise VDSClientError(
|
|
822
|
-
"Invalid operations in bulk permissions item",
|
|
823
|
-
context={"space_key": space_key, "index": index},
|
|
824
|
-
)
|
|
825
|
-
|
|
826
|
-
target_type: str | None = None
|
|
827
|
-
target_value: str | None = None
|
|
828
|
-
|
|
829
|
-
target = item.get("target")
|
|
830
|
-
if isinstance(target, dict):
|
|
831
|
-
raw_type = target.get("type")
|
|
832
|
-
if isinstance(raw_type, str):
|
|
833
|
-
target_type = raw_type.strip().lower()
|
|
834
|
-
raw_value = target.get("value")
|
|
835
|
-
if raw_value is None:
|
|
836
|
-
raw_value = target.get("key")
|
|
837
|
-
if raw_value is None:
|
|
838
|
-
raw_value = target.get("name")
|
|
839
|
-
if raw_value is not None:
|
|
840
|
-
target_value = str(raw_value).strip()
|
|
841
|
-
|
|
842
|
-
if target_type is None and isinstance(item.get("target_type"), str):
|
|
843
|
-
target_type = str(item["target_type"]).strip().lower()
|
|
844
|
-
if target_type is None and isinstance(item.get("user_key"), str):
|
|
845
|
-
target_type = "user"
|
|
846
|
-
target_value = item["user_key"].strip()
|
|
847
|
-
if target_type is None and isinstance(item.get("group_name"), str):
|
|
848
|
-
target_type = "group"
|
|
849
|
-
target_value = item["group_name"].strip()
|
|
850
|
-
if target_type is None and item.get("anonymous") is True:
|
|
851
|
-
target_type = "anonymous"
|
|
852
|
-
|
|
853
|
-
if target_type not in {"user", "group", "anonymous"}:
|
|
854
|
-
raise VDSClientError(
|
|
855
|
-
"Bulk permission item target is invalid",
|
|
856
|
-
context={"space_key": space_key, "index": index},
|
|
857
|
-
)
|
|
858
|
-
if target_type in {"user", "group"} and not target_value:
|
|
859
|
-
raise VDSClientError(
|
|
860
|
-
"Bulk permission item requires target value for user/group",
|
|
861
|
-
context={"space_key": space_key, "index": index, "target_type": target_type},
|
|
862
|
-
)
|
|
863
|
-
|
|
864
|
-
return target_type, target_value, operations
|
|
865
|
-
|
|
866
|
-
normalized_items = [_normalize_item(item, index) for index, item in enumerate(items)]
|
|
867
|
-
|
|
868
|
-
def operation() -> dict[str, Any]:
|
|
869
|
-
bulk_method = getattr(self._client, "set_permissions_to_multiple_items_for_space", None)
|
|
870
|
-
bulk_params = set(self._safe_signature_params(bulk_method)) if callable(bulk_method) else set()
|
|
871
|
-
|
|
872
|
-
mode: str
|
|
873
|
-
if callable(bulk_method) and "items" in bulk_params:
|
|
874
|
-
result = bulk_method(space_key, items=items)
|
|
875
|
-
mode = "native-items"
|
|
876
|
-
elif callable(bulk_method) and ("user_key" in bulk_params or "group_name" in bulk_params):
|
|
877
|
-
compat_results: list[dict[str, Any]] = []
|
|
878
|
-
for target_type, target_value, operations in normalized_items:
|
|
879
|
-
kwargs: dict[str, Any] = {"operations": operations}
|
|
880
|
-
if target_type == "user":
|
|
881
|
-
kwargs["user_key"] = target_value
|
|
882
|
-
elif target_type == "group":
|
|
883
|
-
kwargs["group_name"] = target_value
|
|
884
|
-
compat_results.append(self._coerce_dict(bulk_method(space_key, **kwargs)))
|
|
885
|
-
result = {
|
|
886
|
-
"mode": "legacy-bulk",
|
|
887
|
-
"items_processed": len(normalized_items),
|
|
888
|
-
"results": compat_results,
|
|
889
|
-
}
|
|
890
|
-
mode = "legacy-bulk"
|
|
891
|
-
else:
|
|
892
|
-
compat_results = []
|
|
893
|
-
for target_type, target_value, operations in normalized_items:
|
|
894
|
-
if target_type == "user":
|
|
895
|
-
compat_results.append(
|
|
896
|
-
self._coerce_dict(
|
|
897
|
-
self._client.set_permissions_to_user_for_space( # type: ignore[attr-defined]
|
|
898
|
-
space_key,
|
|
899
|
-
target_value,
|
|
900
|
-
operations=operations,
|
|
901
|
-
)
|
|
902
|
-
)
|
|
903
|
-
)
|
|
904
|
-
elif target_type == "group":
|
|
905
|
-
compat_results.append(
|
|
906
|
-
self._coerce_dict(
|
|
907
|
-
self._client.set_permissions_to_group_for_space( # type: ignore[attr-defined]
|
|
908
|
-
space_key,
|
|
909
|
-
target_value,
|
|
910
|
-
operations=operations,
|
|
911
|
-
)
|
|
912
|
-
)
|
|
913
|
-
)
|
|
914
|
-
else:
|
|
915
|
-
compat_results.append(
|
|
916
|
-
self._coerce_dict(
|
|
917
|
-
self._client.set_permissions_to_anonymous_for_space( # type: ignore[attr-defined]
|
|
918
|
-
space_key,
|
|
919
|
-
operations=operations,
|
|
920
|
-
)
|
|
921
|
-
)
|
|
922
|
-
)
|
|
923
|
-
result = {
|
|
924
|
-
"mode": "expanded-fallback",
|
|
925
|
-
"items_processed": len(normalized_items),
|
|
926
|
-
"results": compat_results,
|
|
927
|
-
}
|
|
928
|
-
mode = "expanded-fallback"
|
|
929
|
-
|
|
930
|
-
self._log.info(
|
|
931
|
-
"space_permissions_bulk_set",
|
|
932
|
-
space_key=space_key,
|
|
933
|
-
items=len(normalized_items),
|
|
934
|
-
mode=mode,
|
|
935
|
-
)
|
|
936
|
-
return self._coerce_dict(result)
|
|
937
|
-
|
|
938
|
-
return self._with_retry(operation, f"set_permissions_to_multiple_items_for_space {space_key}")
|
|
939
|
-
|
|
940
|
-
def remove_permissions_from_user_for_space(self, space_key: str, user_key: str) -> dict[str, Any]:
|
|
941
|
-
"""Remove all permissions granted to a user for a space."""
|
|
942
|
-
|
|
943
|
-
def operation() -> dict[str, Any]:
|
|
944
|
-
result = self._client.remove_permissions_from_user_for_space(space_key, user_key)
|
|
945
|
-
self._log.info("space_permissions_user_removed", space_key=space_key, user_key=user_key)
|
|
946
|
-
return self._coerce_dict(result)
|
|
947
|
-
|
|
948
|
-
return self._with_retry(operation, f"remove_permissions_from_user_for_space {space_key} {user_key}")
|
|
949
|
-
|
|
950
|
-
def remove_permissions_from_group_for_space(self, space_key: str, group_name: str) -> dict[str, Any]:
|
|
951
|
-
"""Remove all permissions granted to a group for a space."""
|
|
952
|
-
|
|
953
|
-
def operation() -> dict[str, Any]:
|
|
954
|
-
result = self._client.remove_permissions_from_group_for_space(space_key, group_name)
|
|
955
|
-
self._log.info("space_permissions_group_removed", space_key=space_key, group_name=group_name)
|
|
956
|
-
return self._coerce_dict(result)
|
|
957
|
-
|
|
958
|
-
return self._with_retry(operation, f"remove_permissions_from_group_for_space {space_key} {group_name}")
|
|
959
|
-
|
|
960
|
-
def remove_permissions_from_anonymous_for_space(self, space_key: str) -> dict[str, Any]:
|
|
961
|
-
"""Remove permissions granted to anonymous users for a space."""
|
|
962
|
-
|
|
963
|
-
def operation() -> dict[str, Any]:
|
|
964
|
-
result = self._client.remove_permissions_from_anonymous_for_space(space_key)
|
|
965
|
-
self._log.info("space_permissions_anonymous_removed", space_key=space_key)
|
|
966
|
-
return self._coerce_dict(result)
|
|
967
|
-
|
|
968
|
-
return self._with_retry(operation, f"remove_permissions_from_anonymous_for_space {space_key}")
|
|
969
|
-
|
|
970
|
-
# --- User & Group Management ---
|
|
971
|
-
|
|
972
|
-
def get_all_groups(self, start: int = 0, limit: int = 1000) -> list[dict[str, Any]]:
|
|
973
|
-
"""Get all groups in Confluence."""
|
|
974
|
-
|
|
975
|
-
def operation() -> list[dict[str, Any]]:
|
|
976
|
-
result = self._client.get_all_groups(start=start, limit=limit)
|
|
977
|
-
self._log.debug(
|
|
978
|
-
"groups_retrieved", count=len(result) if isinstance(result, list) else 0, start=start, limit=limit
|
|
979
|
-
)
|
|
980
|
-
return result if isinstance(result, list) else []
|
|
981
|
-
|
|
982
|
-
return self._with_retry(operation, f"get_all_groups start={start} limit={limit}")
|
|
983
|
-
|
|
984
|
-
def get_group_members(self, group_name: str, start: int = 0, limit: int = 1000) -> list[dict[str, Any]]:
|
|
985
|
-
"""Get members of a group."""
|
|
986
|
-
|
|
987
|
-
def operation() -> list[dict[str, Any]]:
|
|
988
|
-
result = self._client.get_group_members(group_name, start=start, limit=limit)
|
|
989
|
-
self._log.debug(
|
|
990
|
-
"group_members_retrieved", group_name=group_name, count=len(result) if isinstance(result, list) else 0
|
|
991
|
-
)
|
|
992
|
-
return result if isinstance(result, list) else []
|
|
993
|
-
|
|
994
|
-
return self._with_retry(operation, f"get_group_members {group_name} start={start} limit={limit}")
|
|
995
|
-
|
|
996
|
-
def get_user_details_by_username(self, username: str, expand: str | None = None) -> dict[str, Any]:
|
|
997
|
-
"""Get user details by username."""
|
|
998
|
-
|
|
999
|
-
def operation() -> dict[str, Any]:
|
|
1000
|
-
result = self._client.get_user_details_by_username(username, expand=expand)
|
|
1001
|
-
self._log.debug("user_retrieved_by_username", username=username)
|
|
1002
|
-
return self._require_dict(result, "get_user_details_by_username")
|
|
1003
|
-
|
|
1004
|
-
return self._with_retry(operation, f"get_user_details_by_username {username}")
|
|
1005
|
-
|
|
1006
|
-
def get_user_details_by_userkey(self, userkey: str, expand: str | None = None) -> dict[str, Any]:
|
|
1007
|
-
"""Get user details by user key."""
|
|
1008
|
-
|
|
1009
|
-
def operation() -> dict[str, Any]:
|
|
1010
|
-
result = self._client.get_user_details_by_userkey(userkey, expand=expand)
|
|
1011
|
-
self._log.debug("user_retrieved_by_userkey", userkey=userkey)
|
|
1012
|
-
return self._require_dict(result, "get_user_details_by_userkey")
|
|
1013
|
-
|
|
1014
|
-
return self._with_retry(operation, f"get_user_details_by_userkey {userkey}")
|
|
1015
|
-
|
|
1016
|
-
def change_user_password(self, username: str, password: str) -> None:
|
|
1017
|
-
"""Change user password."""
|
|
1018
|
-
|
|
1019
|
-
def operation() -> None:
|
|
1020
|
-
self._client.change_user_password(username, password)
|
|
1021
|
-
self._log.info("user_password_changed", username=username)
|
|
1022
|
-
|
|
1023
|
-
return self._with_retry(operation, f"change_user_password {username}")
|
|
1024
|
-
|
|
1025
|
-
def add_user_to_group(self, username: str, group_name: str) -> None:
|
|
1026
|
-
"""Add user to group."""
|
|
1027
|
-
|
|
1028
|
-
def operation() -> None:
|
|
1029
|
-
self._client.add_user_to_group(username, group_name)
|
|
1030
|
-
self._log.info("user_added_to_group", username=username, group_name=group_name)
|
|
1031
|
-
|
|
1032
|
-
return self._with_retry(operation, f"add_user_to_group {username} {group_name}")
|
|
1033
|
-
|
|
1034
|
-
def remove_user_from_group(self, username: str, group_name: str) -> None:
|
|
1035
|
-
"""Remove user from group."""
|
|
1036
|
-
|
|
1037
|
-
def operation():
|
|
1038
|
-
self._client.remove_user_from_group(username, group_name)
|
|
1039
|
-
self._log.info("user_removed_from_group", username=username, group_name=group_name)
|
|
1040
|
-
|
|
1041
|
-
return self._with_retry(operation, f"remove_user_from_group {username} {group_name}")
|
|
1042
|
-
|
|
1043
|
-
# --- Export Operations ---
|
|
1044
|
-
|
|
1045
|
-
def export_page(self, page_id: str, api_version: str | None = None) -> bytes:
|
|
1046
|
-
"""Export page as PDF.
|
|
1047
|
-
|
|
1048
|
-
Note: The SDK auto-detects Cloud/Server mode based on client initialization.
|
|
1049
|
-
The api_version parameter is accepted for CLI compatibility but not passed to SDK.
|
|
1050
|
-
"""
|
|
1051
|
-
|
|
1052
|
-
def operation():
|
|
1053
|
-
# SDK auto-detects Cloud/Server mode, so we don't pass api_version
|
|
1054
|
-
# The parameter is kept for CLI compatibility but ignored here
|
|
1055
|
-
result = self._client.export_page(page_id) # type: ignore[call-arg]
|
|
1056
|
-
detected_mode = "cloud" if self._is_cloud else "server"
|
|
1057
|
-
self._log.info("page_exported", page_id=page_id, detected_mode=detected_mode)
|
|
1058
|
-
# SDK returns bytes or file path; ensure we return bytes
|
|
1059
|
-
if isinstance(result, bytes):
|
|
1060
|
-
return self._coerce_bytes(result)
|
|
1061
|
-
elif isinstance(result, str):
|
|
1062
|
-
# If it's a file path, read it
|
|
1063
|
-
with open(result, "rb") as f:
|
|
1064
|
-
return f.read()
|
|
1065
|
-
else:
|
|
1066
|
-
raise VDSClientError(
|
|
1067
|
-
f"Unexpected export_page return type: {type(result)}", context={"page_id": page_id}
|
|
1068
|
-
)
|
|
1069
|
-
|
|
1070
|
-
return self._with_retry(operation, f"export_page {page_id}")
|
|
1071
|
-
|
|
1072
|
-
def get_space_export(self, space_key: str, export_type: str) -> str:
|
|
1073
|
-
"""Get space export download URL."""
|
|
1074
|
-
|
|
1075
|
-
def operation() -> str:
|
|
1076
|
-
result = self._client.get_space_export(space_key, export_type)
|
|
1077
|
-
self._log.info("space_export_url_retrieved", space_key=space_key, export_type=export_type)
|
|
1078
|
-
return result if isinstance(result, str) else str(result)
|
|
1079
|
-
|
|
1080
|
-
return self._with_retry(operation, f"get_space_export {space_key} {export_type}")
|
|
1081
|
-
|
|
1082
|
-
# --- Draft Management (Server-only) ---
|
|
1083
|
-
|
|
1084
|
-
def get_draft_page_by_id(self, page_id: str) -> dict[str, Any]:
|
|
1085
|
-
"""Get draft page by ID (Server-only)."""
|
|
1086
|
-
if self._is_cloud:
|
|
1087
|
-
raise VDSClientError(
|
|
1088
|
-
"get_draft_page_by_id is only available in Confluence Server/Data Center mode",
|
|
1089
|
-
context={"page_id": page_id},
|
|
1090
|
-
)
|
|
1091
|
-
|
|
1092
|
-
def operation() -> dict[str, Any]:
|
|
1093
|
-
result = self._client.get_draft_page_by_id(page_id) # type: ignore[attr-defined]
|
|
1094
|
-
self._log.debug("draft_page_retrieved", page_id=page_id)
|
|
1095
|
-
return self._require_dict(result, "get_draft_page_by_id")
|
|
1096
|
-
|
|
1097
|
-
return self._with_retry(operation, f"get_draft_page_by_id {page_id}")
|
|
1098
|
-
|
|
1099
|
-
def get_all_draft_pages_from_space(self, space_key: str, limit: int = 25) -> list[dict[str, Any]]:
|
|
1100
|
-
"""Get all draft pages from a space (Server-only)."""
|
|
1101
|
-
if self._is_cloud:
|
|
1102
|
-
raise VDSClientError(
|
|
1103
|
-
"get_all_draft_pages_from_space is only available in Confluence Server/Data Center mode",
|
|
1104
|
-
context={"space_key": space_key},
|
|
1105
|
-
)
|
|
1106
|
-
|
|
1107
|
-
def operation() -> list[dict[str, Any]]:
|
|
1108
|
-
result = self._client.get_all_draft_pages_from_space(space_key, limit=limit) # type: ignore[attr-defined]
|
|
1109
|
-
self._log.debug(
|
|
1110
|
-
"draft_pages_retrieved", space_key=space_key, count=len(result) if isinstance(result, list) else 0
|
|
1111
|
-
)
|
|
1112
|
-
return result if isinstance(result, list) else []
|
|
1113
|
-
|
|
1114
|
-
return self._with_retry(operation, f"get_all_draft_pages_from_space {space_key}")
|
|
1115
|
-
|
|
1116
|
-
def remove_page_as_draft(self, page_id: str) -> None:
|
|
1117
|
-
"""Remove page as draft (Server-only)."""
|
|
1118
|
-
if self._is_cloud:
|
|
1119
|
-
raise VDSClientError(
|
|
1120
|
-
"remove_page_as_draft is only available in Confluence Server/Data Center mode",
|
|
1121
|
-
context={"page_id": page_id},
|
|
1122
|
-
)
|
|
1123
|
-
|
|
1124
|
-
def operation() -> None:
|
|
1125
|
-
self._client.remove_page_as_draft(page_id) # type: ignore[attr-defined]
|
|
1126
|
-
self._log.info("draft_page_removed", page_id=page_id)
|
|
1127
|
-
|
|
1128
|
-
return self._with_retry(operation, f"remove_page_as_draft {page_id}")
|
|
1129
|
-
|
|
1130
|
-
# --- Cache Management (Server-only) ---
|
|
1131
|
-
|
|
1132
|
-
def get_cache_statistics(self) -> dict[str, Any]:
|
|
1133
|
-
"""Get cache statistics (Server-only)."""
|
|
1134
|
-
if self._is_cloud:
|
|
1135
|
-
raise VDSClientError(
|
|
1136
|
-
"get_cache_statistics is only available in Confluence Server/Data Center mode",
|
|
1137
|
-
context={},
|
|
1138
|
-
)
|
|
1139
|
-
|
|
1140
|
-
def operation():
|
|
1141
|
-
# SDK doesn't have get_cache_statistics, use REST API directly
|
|
1142
|
-
# Cache statistics endpoint: /rest/cache/1.0/stats
|
|
1143
|
-
response = self.request(method="GET", path="/rest/cache/1.0/stats")
|
|
1144
|
-
# SDK request method returns response object, extract JSON
|
|
1145
|
-
if hasattr(response, "json"):
|
|
1146
|
-
result = response.json()
|
|
1147
|
-
else:
|
|
1148
|
-
result = response # Already JSON dict
|
|
1149
|
-
self._log.debug("cache_statistics_retrieved")
|
|
1150
|
-
return self._coerce_dict(result)
|
|
1151
|
-
|
|
1152
|
-
return self._with_retry(operation, "get_cache_statistics")
|
|
1153
|
-
|
|
1154
|
-
def flush_cache(self, cache_name: str | None = None) -> None:
|
|
1155
|
-
"""Flush cache (Server-only).
|
|
1156
|
-
|
|
1157
|
-
Args:
|
|
1158
|
-
cache_name: Optional cache name to flush specific cache. If None, flushes all caches.
|
|
1159
|
-
"""
|
|
1160
|
-
if self._is_cloud:
|
|
1161
|
-
raise VDSClientError(
|
|
1162
|
-
"flush_cache is only available in Confluence Server/Data Center mode",
|
|
1163
|
-
context={"cache_name": cache_name},
|
|
1164
|
-
)
|
|
1165
|
-
|
|
1166
|
-
def operation() -> None:
|
|
1167
|
-
if cache_name:
|
|
1168
|
-
# Flush specific cache package
|
|
1169
|
-
self._client.clean_package_cache(cache_name=cache_name) # type: ignore[attr-defined]
|
|
1170
|
-
self._log.info("cache_flushed", cache_name=cache_name)
|
|
1171
|
-
else:
|
|
1172
|
-
# Flush all caches
|
|
1173
|
-
self._client.clean_all_caches() # type: ignore[attr-defined]
|
|
1174
|
-
self._log.info("all_caches_flushed")
|
|
1175
|
-
|
|
1176
|
-
return self._with_retry(operation, f"flush_cache {cache_name or 'all'}")
|
|
1177
|
-
|
|
1178
|
-
def get_cache_size(self) -> dict[str, Any]:
|
|
1179
|
-
"""Get cache size information (Server-only)."""
|
|
1180
|
-
if self._is_cloud:
|
|
1181
|
-
raise VDSClientError(
|
|
1182
|
-
"get_cache_size is only available in Confluence Server/Data Center mode",
|
|
1183
|
-
context={},
|
|
1184
|
-
)
|
|
1185
|
-
|
|
1186
|
-
def operation():
|
|
1187
|
-
# SDK doesn't have get_cache_size, use REST API directly
|
|
1188
|
-
# Cache size endpoint: /rest/cache/1.0/size
|
|
1189
|
-
response = self.request(method="GET", path="/rest/cache/1.0/size")
|
|
1190
|
-
# SDK request method returns response object, extract JSON
|
|
1191
|
-
if hasattr(response, "json"):
|
|
1192
|
-
result = response.json()
|
|
1193
|
-
else:
|
|
1194
|
-
result = response # Already JSON dict
|
|
1195
|
-
self._log.debug("cache_size_retrieved")
|
|
1196
|
-
return self._coerce_dict(result)
|
|
1197
|
-
|
|
1198
|
-
return self._with_retry(operation, "get_cache_size")
|
|
1199
|
-
|
|
1200
|
-
# --- Advanced Content Operations ---
|
|
1201
|
-
|
|
1202
|
-
def get_page_ancestors(self, page_id: str) -> list[dict[str, Any]]:
|
|
1203
|
-
"""Get page ancestors (parent pages)."""
|
|
1204
|
-
|
|
1205
|
-
def operation() -> list[dict[str, Any]]:
|
|
1206
|
-
result = self._client.get_page_ancestors(page_id) # type: ignore[attr-defined]
|
|
1207
|
-
self._log.debug(
|
|
1208
|
-
"page_ancestors_retrieved", page_id=page_id, count=len(result) if isinstance(result, list) else 0
|
|
1209
|
-
)
|
|
1210
|
-
return result if isinstance(result, list) else []
|
|
1211
|
-
|
|
1212
|
-
return self._with_retry(operation, f"get_page_ancestors {page_id}")
|
|
1213
|
-
|
|
1214
|
-
def move_page(
|
|
1215
|
-
self,
|
|
1216
|
-
page_id: str,
|
|
1217
|
-
target_title: str,
|
|
1218
|
-
position: str = "append",
|
|
1219
|
-
*,
|
|
1220
|
-
space_key: str | None = None,
|
|
1221
|
-
) -> dict[str, Any]:
|
|
1222
|
-
"""Move page to a new location."""
|
|
1223
|
-
|
|
1224
|
-
def operation() -> dict[str, Any]:
|
|
1225
|
-
move_page_method = getattr(self._client, "move_page", None)
|
|
1226
|
-
if not callable(move_page_method):
|
|
1227
|
-
raise VDSClientError("SDK does not support move_page")
|
|
1228
|
-
|
|
1229
|
-
move_params = set(self._safe_signature_params(move_page_method))
|
|
1230
|
-
if "space_key" in move_params and "page_id" in move_params:
|
|
1231
|
-
resolved_space_key = space_key
|
|
1232
|
-
if not resolved_space_key and hasattr(self._client, "get_page_space"):
|
|
1233
|
-
raw_space_key = self._client.get_page_space(page_id) # type: ignore[attr-defined]
|
|
1234
|
-
if isinstance(raw_space_key, str) and raw_space_key.strip():
|
|
1235
|
-
resolved_space_key = raw_space_key.strip()
|
|
1236
|
-
if not resolved_space_key:
|
|
1237
|
-
page = self._client.get_page_by_id(page_id, expand="space")
|
|
1238
|
-
if isinstance(page, dict):
|
|
1239
|
-
page_space = page.get("space")
|
|
1240
|
-
if isinstance(page_space, dict):
|
|
1241
|
-
raw_space_key = page_space.get("key")
|
|
1242
|
-
if raw_space_key:
|
|
1243
|
-
resolved_space_key = str(raw_space_key).strip()
|
|
1244
|
-
if not resolved_space_key:
|
|
1245
|
-
raise VDSClientError(
|
|
1246
|
-
"Unable to resolve space key for move_page",
|
|
1247
|
-
context={"page_id": page_id},
|
|
1248
|
-
)
|
|
1249
|
-
|
|
1250
|
-
legacy_position = {"before": "above", "after": "below"}.get(position, position)
|
|
1251
|
-
result = move_page_method(
|
|
1252
|
-
resolved_space_key,
|
|
1253
|
-
page_id,
|
|
1254
|
-
target_title=target_title,
|
|
1255
|
-
position=legacy_position,
|
|
1256
|
-
)
|
|
1257
|
-
self._log.info(
|
|
1258
|
-
"page_moved",
|
|
1259
|
-
page_id=page_id,
|
|
1260
|
-
target_title=target_title,
|
|
1261
|
-
position=position,
|
|
1262
|
-
resolved_position=legacy_position,
|
|
1263
|
-
space_key=resolved_space_key,
|
|
1264
|
-
move_contract="legacy",
|
|
1265
|
-
)
|
|
1266
|
-
return self._coerce_dict(result)
|
|
1267
|
-
|
|
1268
|
-
result = move_page_method(page_id, target_title, position=position)
|
|
1269
|
-
self._log.info(
|
|
1270
|
-
"page_moved",
|
|
1271
|
-
page_id=page_id,
|
|
1272
|
-
target_title=target_title,
|
|
1273
|
-
position=position,
|
|
1274
|
-
move_contract="modern",
|
|
1275
|
-
)
|
|
1276
|
-
return self._coerce_dict(result)
|
|
1277
|
-
|
|
1278
|
-
return self._with_retry(operation, f"move_page {page_id} {target_title}")
|
|
1279
|
-
|
|
1280
|
-
def get_tables_from_page(self, page_id: str) -> list[dict[str, Any]]:
|
|
1281
|
-
"""Extract tables from page."""
|
|
1282
|
-
|
|
1283
|
-
def operation() -> list[dict[str, Any]]:
|
|
1284
|
-
result = self._client.get_tables_from_page(page_id) # type: ignore[attr-defined]
|
|
1285
|
-
self._log.debug("tables_extracted", page_id=page_id, count=len(result) if isinstance(result, list) else 0)
|
|
1286
|
-
return result if isinstance(result, list) else []
|
|
1287
|
-
|
|
1288
|
-
return self._with_retry(operation, f"get_tables_from_page {page_id}")
|
|
1289
|
-
|
|
1290
|
-
def scrap_regex_from_page(self, page_id: str, regex: str) -> list[dict[str, Any]]:
|
|
1291
|
-
"""Extract regex matches from page."""
|
|
1292
|
-
|
|
1293
|
-
def operation() -> list[dict[str, Any]]:
|
|
1294
|
-
result = self._client.scrap_regex_from_page(page_id, regex) # type: ignore[attr-defined]
|
|
1295
|
-
self._log.debug(
|
|
1296
|
-
"regex_matches_extracted",
|
|
1297
|
-
page_id=page_id,
|
|
1298
|
-
pattern=regex,
|
|
1299
|
-
count=len(result) if isinstance(result, list) else 0,
|
|
1300
|
-
)
|
|
1301
|
-
return result if isinstance(result, list) else []
|
|
1302
|
-
|
|
1303
|
-
return self._with_retry(operation, f"scrap_regex_from_page {page_id} {regex}")
|
|
1304
|
-
|
|
1305
|
-
def get_all_restrictions_for_content(self, content_id: str) -> dict[str, Any]:
|
|
1306
|
-
"""Get all restrictions for content."""
|
|
1307
|
-
|
|
1308
|
-
def operation() -> dict[str, Any]:
|
|
1309
|
-
result = self._client.get_all_restrictions_for_content(content_id) # type: ignore[attr-defined]
|
|
1310
|
-
self._log.debug("content_restrictions_retrieved", content_id=content_id)
|
|
1311
|
-
return self._coerce_dict(result)
|
|
1312
|
-
|
|
1313
|
-
return self._with_retry(operation, f"get_all_restrictions_for_content {content_id}")
|
|
1314
|
-
|
|
1315
|
-
# --- History & Versioning ---
|
|
1316
|
-
|
|
1317
|
-
def history(self, page_id: str) -> dict[str, Any]:
|
|
1318
|
-
"""Get page history."""
|
|
1319
|
-
|
|
1320
|
-
def operation() -> dict[str, Any]:
|
|
1321
|
-
result = self._client.history(page_id) # type: ignore[attr-defined]
|
|
1322
|
-
self._log.debug("page_history_retrieved", page_id=page_id)
|
|
1323
|
-
return self._coerce_dict(result)
|
|
1324
|
-
|
|
1325
|
-
return self._with_retry(operation, f"history {page_id}")
|
|
1326
|
-
|
|
1327
|
-
def get_content_history_by_version_number(self, page_id: str, version: int) -> dict[str, Any]:
|
|
1328
|
-
"""Get specific version of content."""
|
|
1329
|
-
|
|
1330
|
-
def operation() -> dict[str, Any]:
|
|
1331
|
-
result = self._client.get_content_history_by_version_number(page_id, version) # type: ignore[attr-defined]
|
|
1332
|
-
self._log.debug("content_version_retrieved", page_id=page_id, version=version)
|
|
1333
|
-
return self._coerce_dict(result)
|
|
1334
|
-
|
|
1335
|
-
return self._with_retry(operation, f"get_content_history_by_version_number {page_id} {version}")
|
|
1336
|
-
|
|
1337
|
-
def remove_content_history(self, page_id: str, version: int) -> None:
|
|
1338
|
-
"""Remove content history (experimental)."""
|
|
1339
|
-
|
|
1340
|
-
def operation():
|
|
1341
|
-
self._client.remove_content_history(page_id, version) # type: ignore[attr-defined]
|
|
1342
|
-
self._log.info("content_history_removed", page_id=page_id, version=version)
|
|
1343
|
-
|
|
1344
|
-
return self._with_retry(operation, f"remove_content_history {page_id} {version}")
|
|
1345
|
-
|
|
1346
|
-
def archive_space(self, space_key: str) -> dict[str, Any]:
|
|
1347
|
-
"""Archive a Confluence space."""
|
|
1348
|
-
|
|
1349
|
-
def operation() -> dict[str, Any]:
|
|
1350
|
-
result = self._client.archive_space(space_key)
|
|
1351
|
-
self._log.info("space_archived", space_key=space_key)
|
|
1352
|
-
return result or {"status": "archived"}
|
|
1353
|
-
|
|
1354
|
-
return self._with_retry(operation, f"archive_space {space_key}")
|
|
1355
|
-
|
|
1356
|
-
def get_trashed_contents_by_space(
|
|
1357
|
-
self,
|
|
1358
|
-
space_key: str,
|
|
1359
|
-
*,
|
|
1360
|
-
cursor: str | None = None,
|
|
1361
|
-
expand: str | None = None,
|
|
1362
|
-
limit: int = 100,
|
|
1363
|
-
) -> dict[str, Any]:
|
|
1364
|
-
"""List trashed content for a space."""
|
|
1365
|
-
|
|
1366
|
-
def operation() -> dict[str, Any]:
|
|
1367
|
-
result = self._client.get_trashed_contents_by_space(
|
|
1368
|
-
space_key,
|
|
1369
|
-
cursor=cursor,
|
|
1370
|
-
expand=expand,
|
|
1371
|
-
limit=limit,
|
|
1372
|
-
)
|
|
1373
|
-
count = len(result.get("results", [])) if isinstance(result, dict) else 0
|
|
1374
|
-
self._log.debug(
|
|
1375
|
-
"space_trash_listed",
|
|
1376
|
-
space_key=space_key,
|
|
1377
|
-
count=count,
|
|
1378
|
-
cursor=cursor,
|
|
1379
|
-
limit=limit,
|
|
1380
|
-
)
|
|
1381
|
-
return self._coerce_dict(result)
|
|
1382
|
-
|
|
1383
|
-
return self._with_retry(operation, f"get_trashed_contents_by_space {space_key}")
|
|
1384
|
-
|
|
1385
|
-
def remove_trashed_contents_by_space(self, space_key: str) -> dict[str, Any]:
|
|
1386
|
-
"""Remove trashed content for a space."""
|
|
1387
|
-
|
|
1388
|
-
def operation() -> dict[str, Any]:
|
|
1389
|
-
result = self._client.remove_trashed_contents_by_space(space_key)
|
|
1390
|
-
self._log.info("space_trash_cleared", space_key=space_key)
|
|
1391
|
-
return result or {"status": "removed"}
|
|
1392
|
-
|
|
1393
|
-
return self._with_retry(operation, f"remove_trashed_contents_by_space {space_key}")
|
|
1394
|
-
|
|
1395
|
-
def get_child_pages(self, page_id: str, expand: list[str] | None = None) -> list[dict[str, Any]]:
|
|
1396
|
-
"""Get child pages of a page.
|
|
1397
|
-
|
|
1398
|
-
Uses the official SDK `get_page_child_by_type()` when available so callers can:
|
|
1399
|
-
- control pagination reliably
|
|
1400
|
-
- request expanded fields (for example `body.storage`) in one round trip
|
|
1401
|
-
"""
|
|
1402
|
-
|
|
1403
|
-
def operation():
|
|
1404
|
-
expand_arg = ",".join(expand) if expand else None
|
|
1405
|
-
|
|
1406
|
-
# `atlassian.Confluence.get_child_pages()` does not expose pagination controls.
|
|
1407
|
-
# Prefer `get_page_child_by_type()` so crawlers don't silently miss children.
|
|
1408
|
-
if hasattr(self._client, "get_page_child_by_type"):
|
|
1409
|
-
start = 0
|
|
1410
|
-
limit = 100
|
|
1411
|
-
collected: list[dict[str, Any]] = []
|
|
1412
|
-
seen_starts: set[int] = set()
|
|
1413
|
-
seen_tokens: set[str] = set()
|
|
1414
|
-
guard_reason: str | None = None
|
|
1415
|
-
|
|
1416
|
-
while True:
|
|
1417
|
-
if start in seen_starts:
|
|
1418
|
-
guard_reason = "repeated_start"
|
|
1419
|
-
break
|
|
1420
|
-
seen_starts.add(start)
|
|
1421
|
-
|
|
1422
|
-
payload = self._client.get_page_child_by_type(
|
|
1423
|
-
page_id,
|
|
1424
|
-
type="page",
|
|
1425
|
-
start=start,
|
|
1426
|
-
limit=limit,
|
|
1427
|
-
expand=expand_arg,
|
|
1428
|
-
)
|
|
1429
|
-
results: list[dict[str, Any]] = []
|
|
1430
|
-
if isinstance(payload, dict):
|
|
1431
|
-
raw = payload.get("results", [])
|
|
1432
|
-
if isinstance(raw, list):
|
|
1433
|
-
results = [item for item in raw if isinstance(item, dict)]
|
|
1434
|
-
elif isinstance(payload, list):
|
|
1435
|
-
results = [item for item in payload if isinstance(item, dict)]
|
|
1436
|
-
else:
|
|
1437
|
-
results = []
|
|
1438
|
-
|
|
1439
|
-
if not results:
|
|
1440
|
-
break
|
|
1441
|
-
|
|
1442
|
-
collected.extend(results)
|
|
1443
|
-
|
|
1444
|
-
next_start: int | None = None
|
|
1445
|
-
next_token: str | None = None
|
|
1446
|
-
if isinstance(payload, dict):
|
|
1447
|
-
next_start, next_token = self._extract_pagination_marker(payload)
|
|
1448
|
-
|
|
1449
|
-
if next_token:
|
|
1450
|
-
if next_token in seen_tokens:
|
|
1451
|
-
guard_reason = "repeated_token"
|
|
1452
|
-
break
|
|
1453
|
-
seen_tokens.add(next_token)
|
|
1454
|
-
|
|
1455
|
-
if next_start is not None:
|
|
1456
|
-
if next_start <= start:
|
|
1457
|
-
guard_reason = "no_progress_start"
|
|
1458
|
-
break
|
|
1459
|
-
start = next_start
|
|
1460
|
-
continue
|
|
1461
|
-
|
|
1462
|
-
if len(results) < limit:
|
|
1463
|
-
break
|
|
1464
|
-
start += limit
|
|
1465
|
-
|
|
1466
|
-
if guard_reason:
|
|
1467
|
-
log_fn = self._log.info if guard_reason == "no_progress_start" else self._log.warning
|
|
1468
|
-
log_fn(
|
|
1469
|
-
"child_pages_pagination_guard_triggered",
|
|
1470
|
-
page_id=page_id,
|
|
1471
|
-
reason=guard_reason,
|
|
1472
|
-
count=len(collected),
|
|
1473
|
-
last_start=start,
|
|
1474
|
-
)
|
|
1475
|
-
|
|
1476
|
-
self._log.debug(
|
|
1477
|
-
"child_pages_retrieved",
|
|
1478
|
-
page_id=page_id,
|
|
1479
|
-
count=len(collected),
|
|
1480
|
-
expand=expand_arg,
|
|
1481
|
-
)
|
|
1482
|
-
return collected
|
|
1483
|
-
|
|
1484
|
-
result = self._client.get_child_pages(page_id)
|
|
1485
|
-
# Convert generator to list if needed.
|
|
1486
|
-
if result is not None and hasattr(result, "__iter__") and not isinstance(result, (list, tuple, dict)):
|
|
1487
|
-
result = list(result)
|
|
1488
|
-
result_list: list[dict[str, Any]] = []
|
|
1489
|
-
if isinstance(result, list):
|
|
1490
|
-
result_list = [item for item in result if isinstance(item, dict)]
|
|
1491
|
-
self._log.debug(
|
|
1492
|
-
"child_pages_retrieved",
|
|
1493
|
-
page_id=page_id,
|
|
1494
|
-
count=len(result_list),
|
|
1495
|
-
expand=expand_arg,
|
|
1496
|
-
)
|
|
1497
|
-
return result_list
|
|
1498
|
-
|
|
1499
|
-
return self._with_retry(operation, f"get_child_pages {page_id}")
|
|
1500
|
-
|
|
1501
|
-
def get_page_by_title(self, space_key: str, title: str) -> dict[str, Any] | None:
|
|
1502
|
-
"""Get a page by space and title."""
|
|
1503
|
-
try:
|
|
1504
|
-
result = self._client.get_page_by_title(space_key, title)
|
|
1505
|
-
self._log.debug("page_retrieved_by_title", space_key=space_key, title=title)
|
|
1506
|
-
if result is None:
|
|
1507
|
-
return None
|
|
1508
|
-
return self._require_dict(result, "get_page_by_title")
|
|
1509
|
-
|
|
1510
|
-
except Exception as exc:
|
|
1511
|
-
self._handle_api_error(exc, f"get_page_by_title {space_key}/{title}")
|
|
1512
|
-
raise
|
|
1513
|
-
|
|
1514
|
-
def get_attachments(self, page_id: str) -> list[dict[str, Any]]:
|
|
1515
|
-
"""Get attachments for a page."""
|
|
1516
|
-
try:
|
|
1517
|
-
start = 0
|
|
1518
|
-
limit = 50
|
|
1519
|
-
collected: list[dict[str, Any]] = []
|
|
1520
|
-
seen_starts: set[int] = set()
|
|
1521
|
-
seen_tokens: set[str] = set()
|
|
1522
|
-
guard_reason: str | None = None
|
|
1523
|
-
|
|
1524
|
-
while True:
|
|
1525
|
-
if start in seen_starts:
|
|
1526
|
-
guard_reason = "repeated_start"
|
|
1527
|
-
break
|
|
1528
|
-
seen_starts.add(start)
|
|
1529
|
-
|
|
1530
|
-
payload = self._client.get_attachments_from_content(page_id, start=start, limit=limit)
|
|
1531
|
-
results: list[dict[str, Any]] = []
|
|
1532
|
-
if isinstance(payload, dict):
|
|
1533
|
-
raw = payload.get("results", [])
|
|
1534
|
-
if isinstance(raw, list):
|
|
1535
|
-
results = [item for item in raw if isinstance(item, dict)]
|
|
1536
|
-
elif isinstance(payload, list):
|
|
1537
|
-
results = [item for item in payload if isinstance(item, dict)]
|
|
1538
|
-
else:
|
|
1539
|
-
results = []
|
|
1540
|
-
|
|
1541
|
-
if not results:
|
|
1542
|
-
break
|
|
1543
|
-
|
|
1544
|
-
collected.extend(results)
|
|
1545
|
-
|
|
1546
|
-
next_start: int | None = None
|
|
1547
|
-
next_token: str | None = None
|
|
1548
|
-
if isinstance(payload, dict):
|
|
1549
|
-
next_start, next_token = self._extract_pagination_marker(payload)
|
|
1550
|
-
|
|
1551
|
-
if next_token:
|
|
1552
|
-
if next_token in seen_tokens:
|
|
1553
|
-
guard_reason = "repeated_token"
|
|
1554
|
-
break
|
|
1555
|
-
seen_tokens.add(next_token)
|
|
1556
|
-
|
|
1557
|
-
if next_start is not None:
|
|
1558
|
-
if next_start <= start:
|
|
1559
|
-
guard_reason = "no_progress_start"
|
|
1560
|
-
break
|
|
1561
|
-
start = next_start
|
|
1562
|
-
continue
|
|
1563
|
-
|
|
1564
|
-
if len(results) < limit:
|
|
1565
|
-
break
|
|
1566
|
-
start += limit
|
|
1567
|
-
|
|
1568
|
-
if guard_reason:
|
|
1569
|
-
log_fn = self._log.info if guard_reason == "no_progress_start" else self._log.warning
|
|
1570
|
-
log_fn(
|
|
1571
|
-
"attachments_pagination_guard_triggered",
|
|
1572
|
-
page_id=page_id,
|
|
1573
|
-
reason=guard_reason,
|
|
1574
|
-
count=len(collected),
|
|
1575
|
-
last_start=start,
|
|
1576
|
-
)
|
|
1577
|
-
|
|
1578
|
-
self._log.debug("attachments_retrieved", page_id=page_id, count=len(collected))
|
|
1579
|
-
return collected
|
|
1580
|
-
|
|
1581
|
-
except Exception as exc:
|
|
1582
|
-
self._handle_api_error(exc, f"get_attachments {page_id}")
|
|
1583
|
-
raise
|
|
1584
|
-
|
|
1585
|
-
def get_attachment_content(self, attachment_id: str) -> bytes:
|
|
1586
|
-
"""Get attachment content by ID."""
|
|
1587
|
-
try:
|
|
1588
|
-
# Cloud SDKs expose `get_attachment_data`, but Server variants may not.
|
|
1589
|
-
get_attachment_data = getattr(self._client, "get_attachment_data", None)
|
|
1590
|
-
if callable(get_attachment_data):
|
|
1591
|
-
result = get_attachment_data(attachment_id)
|
|
1592
|
-
self._log.debug("attachment_content_retrieved", attachment_id=attachment_id, source="sdk")
|
|
1593
|
-
return self._coerce_bytes(result)
|
|
1594
|
-
|
|
1595
|
-
# Fallback for Confluence Server: resolve the attachment metadata, then download via `_links.download`.
|
|
1596
|
-
from urllib.parse import urlparse
|
|
1597
|
-
|
|
1598
|
-
def _raise_for_status(response: Any) -> None:
|
|
1599
|
-
if hasattr(response, "raise_for_status"):
|
|
1600
|
-
response.raise_for_status()
|
|
1601
|
-
return
|
|
1602
|
-
status_code = getattr(response, "status_code", None)
|
|
1603
|
-
if isinstance(status_code, int) and status_code >= 400:
|
|
1604
|
-
raise ResponseError(
|
|
1605
|
-
f"Unexpected status {status_code}",
|
|
1606
|
-
status_code=status_code,
|
|
1607
|
-
context={"status_code": status_code},
|
|
1608
|
-
)
|
|
1609
|
-
|
|
1610
|
-
def _as_path(url_or_path: str) -> str:
|
|
1611
|
-
if url_or_path.startswith(("http://", "https://")):
|
|
1612
|
-
parsed = urlparse(url_or_path)
|
|
1613
|
-
path = parsed.path or "/"
|
|
1614
|
-
if parsed.query:
|
|
1615
|
-
path = f"{path}?{parsed.query}"
|
|
1616
|
-
return path
|
|
1617
|
-
return url_or_path if url_or_path.startswith("/") else f"/{url_or_path}"
|
|
1618
|
-
|
|
1619
|
-
meta_response = self.request(
|
|
1620
|
-
"GET",
|
|
1621
|
-
f"/rest/api/content/{attachment_id}",
|
|
1622
|
-
params={"expand": "version"},
|
|
1623
|
-
)
|
|
1624
|
-
_raise_for_status(meta_response)
|
|
1625
|
-
payload = meta_response.json()
|
|
1626
|
-
download_link = None
|
|
1627
|
-
if isinstance(payload, dict):
|
|
1628
|
-
links = payload.get("_links")
|
|
1629
|
-
if isinstance(links, dict):
|
|
1630
|
-
download_link = links.get("download")
|
|
1631
|
-
if not download_link or not isinstance(download_link, str):
|
|
1632
|
-
raise VDSClientError(
|
|
1633
|
-
"Attachment download link not found in response",
|
|
1634
|
-
context={"attachment_id": attachment_id},
|
|
1635
|
-
)
|
|
1636
|
-
|
|
1637
|
-
download_response = self.request(
|
|
1638
|
-
"GET",
|
|
1639
|
-
_as_path(download_link),
|
|
1640
|
-
headers={"Accept": "*/*"},
|
|
1641
|
-
)
|
|
1642
|
-
_raise_for_status(download_response)
|
|
1643
|
-
content = getattr(download_response, "content", None)
|
|
1644
|
-
if isinstance(content, bytes):
|
|
1645
|
-
self._log.debug("attachment_content_retrieved", attachment_id=attachment_id, source="download_link")
|
|
1646
|
-
return content
|
|
1647
|
-
# Fallback: some clients expose bytes via `read()` or `text`.
|
|
1648
|
-
if hasattr(download_response, "read"):
|
|
1649
|
-
data = download_response.read()
|
|
1650
|
-
if isinstance(data, bytes):
|
|
1651
|
-
self._log.debug(
|
|
1652
|
-
"attachment_content_retrieved", attachment_id=attachment_id, source="download_link_read"
|
|
1653
|
-
)
|
|
1654
|
-
return data
|
|
1655
|
-
text = getattr(download_response, "text", "")
|
|
1656
|
-
self._log.debug("attachment_content_retrieved", attachment_id=attachment_id, source="download_link_text")
|
|
1657
|
-
return (text or "").encode("utf-8")
|
|
1658
|
-
|
|
1659
|
-
except Exception as exc:
|
|
1660
|
-
self._handle_api_error(exc, f"get_attachment_content {attachment_id}")
|
|
1661
|
-
raise
|
|
1662
|
-
|
|
1663
|
-
def update_attachment_data(
|
|
1664
|
-
self,
|
|
1665
|
-
page_id: str,
|
|
1666
|
-
attachment_id: str,
|
|
1667
|
-
filename: str,
|
|
1668
|
-
content: bytes,
|
|
1669
|
-
content_type: str | None = None,
|
|
1670
|
-
*,
|
|
1671
|
-
comment: str | None = None,
|
|
1672
|
-
) -> dict[str, Any]:
|
|
1673
|
-
"""Update an existing attachment.
|
|
1674
|
-
|
|
1675
|
-
According to atlassian-python-api docs, attach_content automatically updates
|
|
1676
|
-
if the file exists, versioning the new file and keeping the old one.
|
|
1677
|
-
"""
|
|
1678
|
-
|
|
1679
|
-
def operation() -> dict[str, Any]:
|
|
1680
|
-
# Use attach_content - it automatically updates if file exists
|
|
1681
|
-
# See: https://atlassian-python-api.readthedocs.io/confluence.html#
|
|
1682
|
-
result = self._client.attach_content(
|
|
1683
|
-
content=content,
|
|
1684
|
-
name=filename,
|
|
1685
|
-
content_type=content_type or "application/octet-stream",
|
|
1686
|
-
page_id=page_id,
|
|
1687
|
-
comment=comment,
|
|
1688
|
-
)
|
|
1689
|
-
self._log.info("attachment_updated", page_id=page_id, attachment_id=attachment_id, filename=filename)
|
|
1690
|
-
return self._coerce_dict(result)
|
|
1691
|
-
|
|
1692
|
-
return self._with_retry(operation, f"update_attachment {attachment_id}")
|
|
1693
|
-
|
|
1694
|
-
def delete_attachment_by_id(self, page_id: str, attachment_id: str, version: int | None = None) -> None:
|
|
1695
|
-
"""Delete an attachment by ID (historic versions only).
|
|
1696
|
-
|
|
1697
|
-
The Atlassian SDK's ``delete_attachment_by_id`` endpoint only removes versions
|
|
1698
|
-
strictly lower than the current one, so callers should provide ``version`` when
|
|
1699
|
-
targeting a specific revision. Cloud docs:
|
|
1700
|
-
https://atlassian-python-api.readthedocs.io/confluence.html#confluence.Confluence.delete_attachment_by_id
|
|
1701
|
-
"""
|
|
1702
|
-
try:
|
|
1703
|
-
versions_payload = self._client.get_attachment_history(attachment_id) or []
|
|
1704
|
-
except Exception: # pragma: no cover - defensive
|
|
1705
|
-
versions_payload = []
|
|
1706
|
-
|
|
1707
|
-
versions = []
|
|
1708
|
-
for item in versions_payload:
|
|
1709
|
-
if isinstance(item, dict):
|
|
1710
|
-
number = item.get("number")
|
|
1711
|
-
if isinstance(number, int):
|
|
1712
|
-
versions.append(number)
|
|
1713
|
-
|
|
1714
|
-
if version is not None:
|
|
1715
|
-
versions = [ver for ver in versions if ver == version]
|
|
1716
|
-
|
|
1717
|
-
if not versions:
|
|
1718
|
-
if version is not None:
|
|
1719
|
-
versions = [version]
|
|
1720
|
-
else:
|
|
1721
|
-
raise VDSClientError(
|
|
1722
|
-
f"No attachment versions found for {attachment_id}. Specify --version explicitly.",
|
|
1723
|
-
context={"attachment_id": attachment_id, "page_id": page_id},
|
|
1724
|
-
)
|
|
1725
|
-
|
|
1726
|
-
for ver in sorted(set(versions), reverse=True):
|
|
1727
|
-
try:
|
|
1728
|
-
self._client.delete_attachment_by_id(attachment_id, ver)
|
|
1729
|
-
self._log.info(
|
|
1730
|
-
"attachment_version_deleted",
|
|
1731
|
-
page_id=page_id,
|
|
1732
|
-
attachment_id=attachment_id,
|
|
1733
|
-
version=ver,
|
|
1734
|
-
)
|
|
1735
|
-
except Exception as exc:
|
|
1736
|
-
self._handle_api_error(exc, f"delete_attachment {attachment_id} (version {ver})")
|
|
1737
|
-
|
|
1738
|
-
def delete_attachment(self, page_id: str, filename: str, version: int | None = None) -> None:
|
|
1739
|
-
"""Delete the latest version of an attachment by filename.
|
|
1740
|
-
|
|
1741
|
-
Mirrors :py:meth:`Confluence.delete_attachment` from the Atlassian SDK.
|
|
1742
|
-
"""
|
|
1743
|
-
|
|
1744
|
-
try:
|
|
1745
|
-
self._client.delete_attachment(page_id, filename, version=version)
|
|
1746
|
-
self._log.info(
|
|
1747
|
-
"attachment_deleted",
|
|
1748
|
-
page_id=page_id,
|
|
1749
|
-
filename=filename,
|
|
1750
|
-
version=version,
|
|
1751
|
-
)
|
|
1752
|
-
except Exception as exc:
|
|
1753
|
-
self._handle_api_error(exc, f"delete_attachment {filename}")
|
|
1754
|
-
|
|
1755
|
-
def add_comment(self, page_id: str, body: str, parent_id: str | None = None) -> dict[str, Any]:
|
|
1756
|
-
"""Add a comment to a page or reply to an existing comment.
|
|
1757
|
-
|
|
1758
|
-
When ``parent_id`` is provided, the comment will be created as a reply
|
|
1759
|
-
to the specified parent comment (threaded reply), mirroring
|
|
1760
|
-
:py:meth:`Confluence.add_comment` from the Atlassian SDK.
|
|
1761
|
-
"""
|
|
1762
|
-
|
|
1763
|
-
comment_params = set(self._safe_signature_params(self._client.add_comment))
|
|
1764
|
-
supports_parent = "parent_id" in comment_params or len(comment_params) >= 4
|
|
1765
|
-
if parent_id is not None and not supports_parent:
|
|
1766
|
-
raise VDSClientError(
|
|
1767
|
-
"Installed atlassian-python-api build does not support parent comment replies",
|
|
1768
|
-
context={"page_id": page_id},
|
|
1769
|
-
)
|
|
1770
|
-
|
|
1771
|
-
def _op() -> dict[str, Any]:
|
|
1772
|
-
if parent_id is not None:
|
|
1773
|
-
result = self._client.add_comment(page_id, body, parent_id) # type: ignore[call-arg]
|
|
1774
|
-
else:
|
|
1775
|
-
result = self._client.add_comment(page_id, body)
|
|
1776
|
-
self._log.info("comment_added", page_id=page_id, parent_id=parent_id)
|
|
1777
|
-
return self._coerce_dict(result)
|
|
1778
|
-
|
|
1779
|
-
return self._with_retry(_op, "add_comment")
|
|
1780
|
-
|
|
1781
|
-
def get_page_history(self, page_id: str) -> dict[str, Any]:
|
|
1782
|
-
"""Get page version history."""
|
|
1783
|
-
try:
|
|
1784
|
-
history_method = getattr(self._client, "get_history", None)
|
|
1785
|
-
if not callable(history_method):
|
|
1786
|
-
history_method = getattr(self._client, "history", None)
|
|
1787
|
-
if not callable(history_method):
|
|
1788
|
-
raise VDSClientError("SDK does not support page history retrieval")
|
|
1789
|
-
result = history_method(page_id)
|
|
1790
|
-
self._log.debug("page_history_retrieved", page_id=page_id)
|
|
1791
|
-
return self._coerce_dict(result)
|
|
1792
|
-
|
|
1793
|
-
except Exception as exc:
|
|
1794
|
-
self._handle_api_error(exc, f"get_page_history {page_id}")
|
|
1795
|
-
raise
|
|
1796
|
-
|
|
1797
|
-
@property
|
|
1798
|
-
def base_url(self) -> str:
|
|
1799
|
-
"""Base URL of the Confluence server (no trailing slash)."""
|
|
1800
|
-
return str(self._settings.url_for(self._server)).rstrip("/")
|
|
1801
|
-
|
|
1802
|
-
# --- Label Operations ---
|
|
1803
|
-
|
|
1804
|
-
def get_page_labels(self, page_id: str) -> list[dict[str, Any]]:
|
|
1805
|
-
"""Return raw label result list for a page."""
|
|
1806
|
-
|
|
1807
|
-
def operation() -> list[dict[str, Any]]:
|
|
1808
|
-
method = getattr(self._client, "get_page_labels", None)
|
|
1809
|
-
if not callable(method):
|
|
1810
|
-
# Fallback: REST endpoint (older SDK versions)
|
|
1811
|
-
resp = self._client.request("GET", f"rest/api/content/{page_id}/label")
|
|
1812
|
-
payload = resp.json() if hasattr(resp, "json") else {}
|
|
1813
|
-
return payload.get("results", []) if isinstance(payload, dict) else []
|
|
1814
|
-
result = method(page_id)
|
|
1815
|
-
if isinstance(result, dict):
|
|
1816
|
-
return result.get("results", [])
|
|
1817
|
-
return list(result) if result else []
|
|
1818
|
-
|
|
1819
|
-
return self._with_retry(operation, f"get_page_labels {page_id}")
|
|
1820
|
-
|
|
1821
|
-
def set_page_label(self, page_id: str, label: str) -> None:
|
|
1822
|
-
"""Add a label to a page."""
|
|
1823
|
-
|
|
1824
|
-
def operation() -> None:
|
|
1825
|
-
method = getattr(self._client, "set_page_label", None)
|
|
1826
|
-
if not callable(method):
|
|
1827
|
-
# Fallback: REST endpoint (older SDK versions)
|
|
1828
|
-
self._client.request(
|
|
1829
|
-
"POST",
|
|
1830
|
-
f"rest/api/content/{page_id}/label",
|
|
1831
|
-
data=[{"prefix": "global", "name": label}],
|
|
1832
|
-
)
|
|
1833
|
-
return
|
|
1834
|
-
method(page_id, label)
|
|
1835
|
-
|
|
1836
|
-
return self._with_retry(operation, f"set_page_label {page_id}")
|
|
1837
|
-
|
|
1838
|
-
def close(self) -> None:
|
|
1839
|
-
"""Close the client (cleanup method for compatibility)."""
|
|
1840
|
-
# atlassian-python-api doesn't require explicit cleanup
|
|
1841
|
-
pass
|
|
1842
|
-
|
|
1843
|
-
def __enter__(self) -> ConfluenceClient:
|
|
1844
|
-
return self
|
|
1845
|
-
|
|
1846
|
-
def __exit__(self, exc_type, exc, tb) -> None:
|
|
1847
|
-
self.close()
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
__all__ = ["ConfluenceClient"]
|