@ngocsangairvds/vsaf 3.2.16 → 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 -142
- package/src/config.js +0 -167
- package/src/global.js +0 -261
- package/src/project.js +0 -191
- package/src/status.js +0 -91
- package/src/utils.js +0 -126
- package/src/workflow.js +0 -106
- package/tools/bmad/_config/agent-manifest.csv +0 -7
- package/tools/bmad/_config/bmad-help.csv +0 -44
- package/tools/bmad/_config/files-manifest.csv +0 -261
- package/tools/bmad/_config/manifest.yaml +0 -21
- package/tools/bmad/_config/skill-manifest.csv +0 -42
- package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-feature-template.md +0 -669
- package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-system-template.md +0 -430
- package/tools/bmad/bmm/config.yaml +0 -20
- package/tools/bmad/bmm/module-help.csv +0 -33
- package/tools/bmad/core/config.yaml +0 -9
- package/tools/bmad/core/module-help.csv +0 -12
- package/tools/skills/bmad-agent-architect/SKILL.md +0 -54
- package/tools/skills/bmad-agent-architect/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-dev/SKILL.md +0 -69
- package/tools/skills/bmad-agent-dev/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-pm/SKILL.md +0 -59
- package/tools/skills/bmad-agent-pm/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-tech-writer/SKILL.md +0 -57
- package/tools/skills/bmad-agent-tech-writer/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-agent-tech-writer/explain-concept.md +0 -20
- package/tools/skills/bmad-agent-tech-writer/mermaid-gen.md +0 -20
- package/tools/skills/bmad-agent-tech-writer/validate-doc.md +0 -19
- package/tools/skills/bmad-agent-tech-writer/write-document.md +0 -20
- package/tools/skills/bmad-agent-ux-designer/SKILL.md +0 -55
- package/tools/skills/bmad-agent-ux-designer/bmad-skill-manifest.yaml +0 -11
- package/tools/skills/bmad-checkpoint-preview/SKILL.md +0 -29
- package/tools/skills/bmad-checkpoint-preview/generate-trail.md +0 -38
- package/tools/skills/bmad-checkpoint-preview/step-01-orientation.md +0 -105
- package/tools/skills/bmad-checkpoint-preview/step-02-walkthrough.md +0 -89
- package/tools/skills/bmad-checkpoint-preview/step-03-detail-pass.md +0 -106
- package/tools/skills/bmad-checkpoint-preview/step-04-testing.md +0 -74
- package/tools/skills/bmad-checkpoint-preview/step-05-wrapup.md +0 -24
- package/tools/skills/bmad-correct-course/SKILL.md +0 -6
- package/tools/skills/bmad-correct-course/checklist.md +0 -288
- package/tools/skills/bmad-correct-course/workflow.md +0 -267
- package/tools/skills/bmad-create-story/SKILL.md +0 -6
- package/tools/skills/bmad-create-story/checklist.md +0 -357
- package/tools/skills/bmad-create-story/discover-inputs.md +0 -88
- package/tools/skills/bmad-create-story/template.md +0 -49
- package/tools/skills/bmad-create-story/workflow.md +0 -380
- package/tools/skills/bmad-create-ux-design/SKILL.md +0 -6
- package/tools/skills/bmad-create-ux-design/steps/step-01-init.md +0 -135
- package/tools/skills/bmad-create-ux-design/steps/step-01b-continue.md +0 -127
- package/tools/skills/bmad-create-ux-design/steps/step-02-discovery.md +0 -190
- package/tools/skills/bmad-create-ux-design/steps/step-03-core-experience.md +0 -217
- package/tools/skills/bmad-create-ux-design/steps/step-04-emotional-response.md +0 -220
- package/tools/skills/bmad-create-ux-design/steps/step-05-inspiration.md +0 -235
- package/tools/skills/bmad-create-ux-design/steps/step-06-design-system.md +0 -253
- package/tools/skills/bmad-create-ux-design/steps/step-07-defining-experience.md +0 -255
- package/tools/skills/bmad-create-ux-design/steps/step-08-visual-foundation.md +0 -225
- package/tools/skills/bmad-create-ux-design/steps/step-09-design-directions.md +0 -225
- package/tools/skills/bmad-create-ux-design/steps/step-10-user-journeys.md +0 -242
- package/tools/skills/bmad-create-ux-design/steps/step-11-component-strategy.md +0 -249
- package/tools/skills/bmad-create-ux-design/steps/step-12-ux-patterns.md +0 -238
- package/tools/skills/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +0 -265
- package/tools/skills/bmad-create-ux-design/steps/step-14-complete.md +0 -171
- package/tools/skills/bmad-create-ux-design/ux-design-template.md +0 -13
- package/tools/skills/bmad-create-ux-design/workflow.md +0 -35
- package/tools/skills/bmad-dev-story/SKILL.md +0 -6
- package/tools/skills/bmad-dev-story/checklist.md +0 -80
- package/tools/skills/bmad-dev-story/workflow.md +0 -450
- package/tools/skills/bmad-distillator/SKILL.md +0 -177
- package/tools/skills/bmad-distillator/agents/distillate-compressor.md +0 -116
- package/tools/skills/bmad-distillator/agents/round-trip-reconstructor.md +0 -68
- package/tools/skills/bmad-distillator/resources/compression-rules.md +0 -51
- package/tools/skills/bmad-distillator/resources/distillate-format-reference.md +0 -227
- package/tools/skills/bmad-distillator/resources/splitting-strategy.md +0 -78
- package/tools/skills/bmad-distillator/scripts/analyze_sources.py +0 -300
- package/tools/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +0 -204
- package/tools/skills/bmad-document-project/SKILL.md +0 -6
- package/tools/skills/bmad-document-project/checklist.md +0 -245
- package/tools/skills/bmad-document-project/documentation-requirements.csv +0 -12
- package/tools/skills/bmad-document-project/instructions.md +0 -128
- package/tools/skills/bmad-document-project/templates/deep-dive-template.md +0 -345
- package/tools/skills/bmad-document-project/templates/index-template.md +0 -169
- package/tools/skills/bmad-document-project/templates/project-overview-template.md +0 -103
- package/tools/skills/bmad-document-project/templates/project-scan-report-schema.json +0 -160
- package/tools/skills/bmad-document-project/templates/source-tree-template.md +0 -135
- package/tools/skills/bmad-document-project/workflow.md +0 -25
- package/tools/skills/bmad-document-project/workflows/deep-dive-instructions.md +0 -299
- package/tools/skills/bmad-document-project/workflows/deep-dive-workflow.md +0 -34
- package/tools/skills/bmad-document-project/workflows/full-scan-instructions.md +0 -1107
- package/tools/skills/bmad-document-project/workflows/full-scan-workflow.md +0 -34
- package/tools/skills/bmad-edit-prd/SKILL.md +0 -6
- package/tools/skills/bmad-edit-prd/steps-e/step-e-01-discovery.md +0 -242
- package/tools/skills/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +0 -204
- package/tools/skills/bmad-edit-prd/steps-e/step-e-02-review.md +0 -245
- package/tools/skills/bmad-edit-prd/steps-e/step-e-03-edit.md +0 -250
- package/tools/skills/bmad-edit-prd/steps-e/step-e-04-complete.md +0 -163
- package/tools/skills/bmad-edit-prd/workflow.md +0 -62
- package/tools/skills/bmad-editorial-review-prose/SKILL.md +0 -86
- package/tools/skills/bmad-editorial-review-structure/SKILL.md +0 -179
- package/tools/skills/bmad-generate-project-context/SKILL.md +0 -6
- package/tools/skills/bmad-generate-project-context/project-context-template.md +0 -21
- package/tools/skills/bmad-generate-project-context/steps/step-01-discover.md +0 -186
- package/tools/skills/bmad-generate-project-context/steps/step-02-generate.md +0 -321
- package/tools/skills/bmad-generate-project-context/steps/step-03-complete.md +0 -278
- package/tools/skills/bmad-generate-project-context/workflow.md +0 -39
- package/tools/skills/bmad-help/SKILL.md +0 -75
- package/tools/skills/bmad-index-docs/SKILL.md +0 -66
- package/tools/skills/bmad-market-research/SKILL.md +0 -6
- package/tools/skills/bmad-market-research/research.template.md +0 -29
- package/tools/skills/bmad-market-research/steps/step-01-init.md +0 -184
- package/tools/skills/bmad-market-research/steps/step-02-customer-behavior.md +0 -239
- package/tools/skills/bmad-market-research/steps/step-03-customer-pain-points.md +0 -251
- package/tools/skills/bmad-market-research/steps/step-04-customer-decisions.md +0 -261
- package/tools/skills/bmad-market-research/steps/step-05-competitive-analysis.md +0 -173
- package/tools/skills/bmad-market-research/steps/step-06-research-completion.md +0 -478
- package/tools/skills/bmad-market-research/workflow.md +0 -51
- package/tools/skills/bmad-product-brief/SKILL.md +0 -82
- package/tools/skills/bmad-product-brief/agents/artifact-analyzer.md +0 -60
- package/tools/skills/bmad-product-brief/agents/opportunity-reviewer.md +0 -44
- package/tools/skills/bmad-product-brief/agents/skeptic-reviewer.md +0 -44
- package/tools/skills/bmad-product-brief/agents/web-researcher.md +0 -49
- package/tools/skills/bmad-product-brief/bmad-manifest.json +0 -17
- package/tools/skills/bmad-product-brief/prompts/contextual-discovery.md +0 -57
- package/tools/skills/bmad-product-brief/prompts/draft-and-review.md +0 -86
- package/tools/skills/bmad-product-brief/prompts/finalize.md +0 -75
- package/tools/skills/bmad-product-brief/prompts/guided-elicitation.md +0 -70
- package/tools/skills/bmad-product-brief/resources/brief-template.md +0 -60
- package/tools/skills/bmad-quick-dev/SKILL.md +0 -6
- package/tools/skills/bmad-quick-dev/compile-epic-context.md +0 -62
- package/tools/skills/bmad-quick-dev/spec-template.md +0 -88
- package/tools/skills/bmad-quick-dev/step-01-clarify-and-route.md +0 -91
- package/tools/skills/bmad-quick-dev/step-02-plan.md +0 -47
- package/tools/skills/bmad-quick-dev/step-03-implement.md +0 -39
- package/tools/skills/bmad-quick-dev/step-04-review.md +0 -49
- package/tools/skills/bmad-quick-dev/step-05-present.md +0 -63
- package/tools/skills/bmad-quick-dev/step-oneshot.md +0 -61
- package/tools/skills/bmad-quick-dev/workflow.md +0 -75
- package/tools/skills/bmad-retrospective/SKILL.md +0 -6
- package/tools/skills/bmad-retrospective/workflow.md +0 -1479
- package/tools/skills/bmad-shard-doc/SKILL.md +0 -105
- package/tools/skills/bmad-sprint-planning/SKILL.md +0 -6
- package/tools/skills/bmad-sprint-planning/checklist.md +0 -33
- package/tools/skills/bmad-sprint-planning/sprint-status-template.yaml +0 -56
- package/tools/skills/bmad-sprint-planning/workflow.md +0 -263
- package/tools/skills/bmad-sprint-status/SKILL.md +0 -6
- package/tools/skills/bmad-sprint-status/workflow.md +0 -261
- package/tools/skills/bmad-technical-research/SKILL.md +0 -6
- package/tools/skills/bmad-technical-research/research.template.md +0 -29
- package/tools/skills/bmad-technical-research/technical-steps/step-01-init.md +0 -137
- package/tools/skills/bmad-technical-research/technical-steps/step-02-technical-overview.md +0 -239
- package/tools/skills/bmad-technical-research/technical-steps/step-03-integration-patterns.md +0 -248
- package/tools/skills/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +0 -202
- package/tools/skills/bmad-technical-research/technical-steps/step-05-implementation-research.md +0 -233
- package/tools/skills/bmad-technical-research/technical-steps/step-06-research-synthesis.md +0 -487
- package/tools/skills/bmad-technical-research/workflow.md +0 -52
- package/tools/skills/bmad-validate-prd/data/prd-purpose.md +0 -197
- package/tools/skills/gitnexus/gitnexus-cli/SKILL.md +0 -82
- package/tools/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
- package/tools/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
- package/tools/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
- package/tools/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
- package/tools/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
- package/tools/skills/vds-scripts-skill/.openskills.json +0 -6
- package/tools/skills/vds-scripts-skill/QUALITY.md +0 -44
- package/tools/skills/vds-scripts-skill/SKILL.md +0 -127
- package/tools/skills/vds-scripts-skill/references/audit-commands.md +0 -171
- package/tools/skills/vds-scripts-skill/references/capability-index.md +0 -34
- package/tools/skills/vds-scripts-skill/references/development-commands.md +0 -12
- package/tools/skills/vds-scripts-skill/references/google-sheets.md +0 -71
- package/tools/skills/vds-scripts-skill/references/integration-commands.md +0 -17
- package/tools/skills/vds-scripts-skill/references/platform-bootstrap.md +0 -31
- package/tools/skills/vds-scripts-skill/references/specialist-routing.md +0 -14
- package/tools/skills/vds-scripts-skill/references/validation-commands.md +0 -15
- package/tools/skills/vsaf-build/SKILL.md +0 -146
- package/tools/skills/vsaf-discover/SKILL.md +0 -92
- package/tools/skills/vsaf-doc/SKILL.md +0 -22
- package/tools/skills/vsaf-doc-prd/SKILL.md +0 -58
- package/tools/skills/vsaf-doc-srs/SKILL.md +0 -170
- package/tools/skills/vsaf-docs/SKILL.md +0 -81
- package/tools/skills/vsaf-onboard/SKILL.md +0 -81
- package/tools/skills/vsaf-plan/SKILL.md +0 -101
- package/tools/skills/vsaf-push-prd/SKILL.md +0 -154
- package/tools/skills/vsaf-push-srs/SKILL.md +0 -166
- package/tools/skills/vsaf-retro/SKILL.md +0 -94
- package/tools/skills/vsaf-ship/SKILL.md +0 -142
- package/tools/skills/vsaf-sprint/SKILL.md +0 -111
- package/tools/skills/vsaf-test/SKILL.md +0 -207
- package/tools/vds-scripts/.claude/phase7-CLOSURE.md +0 -100
- package/tools/vds-scripts/.dockerignore +0 -62
- package/tools/vds-scripts/.github/ISSUE_TEMPLATE/cli-change.md +0 -92
- package/tools/vds-scripts/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -48
- package/tools/vds-scripts/.github/workflows/chaos-smoke.yml +0 -266
- package/tools/vds-scripts/.github/workflows/confluence-sync.yml +0 -44
- package/tools/vds-scripts/.github/workflows/docs-confluence-evidence.yml +0 -170
- package/tools/vds-scripts/.github/workflows/docs-quality.yml +0 -59
- package/tools/vds-scripts/.github/workflows/lint-and-test.yml +0 -90
- package/tools/vds-scripts/.github/workflows/scheduler-load-smoke.yml +0 -104
- package/tools/vds-scripts/.github/workflows/telegram-bridge-ci.yml +0 -131
- package/tools/vds-scripts/.graphifyignore +0 -29
- package/tools/vds-scripts/.importlinter +0 -86
- package/tools/vds-scripts/.mcp.json +0 -11
- package/tools/vds-scripts/.pre-commit-config.yaml +0 -62
- package/tools/vds-scripts/.ruffignore +0 -3
- package/tools/vds-scripts/.secrets.baseline +0 -133
- package/tools/vds-scripts/AGENTS.md +0 -250
- package/tools/vds-scripts/AGENTS.vi.md +0 -92
- package/tools/vds-scripts/Makefile +0 -97
- package/tools/vds-scripts/README.md +0 -103
- package/tools/vds-scripts/bitbucket_manifest_mapping.toml +0 -34
- package/tools/vds-scripts/bitbucket_orchestrator/ARCHITECTURE_ANALYSIS.md +0 -258
- package/tools/vds-scripts/bitbucket_orchestrator/BITBUCKET_API_PRACTICES.md +0 -393
- package/tools/vds-scripts/bitbucket_orchestrator/EVALUATION_REPORT.md +0 -61
- package/tools/vds-scripts/bitbucket_orchestrator/FEATURES.md +0 -908
- package/tools/vds-scripts/bitbucket_orchestrator/README.md +0 -817
- package/tools/vds-scripts/bitbucket_orchestrator/pyproject.toml +0 -49
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/__init__.py +0 -50
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/async_client.py +0 -641
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/cli.py +0 -2271
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/client.py +0 -2693
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/config.py +0 -186
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/factory.py +0 -185
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/parsers.py +0 -113
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/protocols.py +0 -244
- package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/repo_ops.py +0 -325
- package/tools/vds-scripts/bitbucket_orchestrator/tests/__init__.py +0 -8
- package/tools/vds-scripts/bitbucket_orchestrator/tests/conftest.py +0 -65
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_advanced_search.py +0 -155
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_async_client.py +0 -505
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_branch_permissions.py +0 -172
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli.py +0 -113
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_archive.py +0 -122
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_clone.py +0 -131
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client.py +0 -207
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_archive.py +0 -73
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_branch_conditions.py +0 -101
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_advanced.py +0 -180
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_file.py +0 -33
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_deployment_environments.py +0 -193
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_issues.py +0 -163
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pipelines_advanced.py +0 -171
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pr_blockers.py +0 -118
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_repository_variables.py +0 -155
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code.py +0 -98
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_advanced.py +0 -279
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_insights.py +0 -334
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_conditions.py +0 -149
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_config.py +0 -297
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_deployment_env.py +0 -352
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_errors.py +0 -67
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_factory.py +0 -352
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_fork_operations.py +0 -203
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_issue_cli.py +0 -262
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pipeline_advanced.py +0 -265
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pr_blocker.py +0 -206
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_protocols.py +0 -336
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_archive.py +0 -169
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_clone.py +0 -115
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_parsing.py +0 -149
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_settings.py +0 -336
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_variables.py +0 -266
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_webhooks.py +0 -188
- package/tools/vds-scripts/bitbucket_orchestrator/tests/test_workspace.py +0 -234
- package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/test_parsers.py +0 -254
- package/tools/vds-scripts/code/code_evidence_pack.json +0 -435
- package/tools/vds-scripts/confluence_orchestrator/Dockerfile +0 -19
- package/tools/vds-scripts/confluence_orchestrator/README.md +0 -479
- package/tools/vds-scripts/confluence_orchestrator/SYNC_SCRIPTS.md +0 -127
- package/tools/vds-scripts/confluence_orchestrator/SYNC_STANDARDIZATION.md +0 -108
- package/tools/vds-scripts/confluence_orchestrator/pyproject.toml +0 -50
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/__init__.py +0 -56
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/async_client.py +0 -100
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/cli.py +0 -3160
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/config.py +0 -215
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content.py +0 -368
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content_v2.py +0 -144
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/crawl_tree.py +0 -1833
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/errors.py +0 -44
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/eventing.py +0 -111
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/http.py +0 -1850
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/orchestration.py +0 -166
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/protocols.py +0 -61
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/reporting.py +0 -78
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree.py +0 -122
- package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree_copier.py +0 -431
- package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_from_markdown.py +0 -203
- package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_to_confluence.py +0 -299
- package/tools/vds-scripts/confluence_orchestrator/sync_png_attachments.py +0 -299
- package/tools/vds-scripts/confluence_orchestrator/tests/conftest.py +0 -46
- package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_content.py +0 -252
- package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_search.py +0 -193
- package/tools/vds-scripts/confluence_orchestrator/tests/test_async_client.py +0 -104
- package/tools/vds-scripts/confluence_orchestrator/tests/test_cache_management.py +0 -246
- package/tools/vds-scripts/confluence_orchestrator/tests/test_cli.py +0 -716
- package/tools/vds-scripts/confluence_orchestrator/tests/test_config.py +0 -130
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content.py +0 -192
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content_flags.py +0 -27
- package/tools/vds-scripts/confluence_orchestrator/tests/test_content_labels.py +0 -94
- package/tools/vds-scripts/confluence_orchestrator/tests/test_crawl_tree.py +0 -2252
- package/tools/vds-scripts/confluence_orchestrator/tests/test_degraded_write_safety.py +0 -176
- package/tools/vds-scripts/confluence_orchestrator/tests/test_draft_management.py +0 -225
- package/tools/vds-scripts/confluence_orchestrator/tests/test_errors.py +0 -75
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing.py +0 -73
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_chaos.py +0 -37
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_rate_limit.py +0 -44
- package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_timeout.py +0 -49
- package/tools/vds-scripts/confluence_orchestrator/tests/test_export.py +0 -231
- package/tools/vds-scripts/confluence_orchestrator/tests/test_history.py +0 -217
- package/tools/vds-scripts/confluence_orchestrator/tests/test_http.py +0 -375
- package/tools/vds-scripts/confluence_orchestrator/tests/test_orchestration.py +0 -93
- package/tools/vds-scripts/confluence_orchestrator/tests/test_protocols.py +0 -23
- package/tools/vds-scripts/confluence_orchestrator/tests/test_reporting.py +0 -24
- package/tools/vds-scripts/confluence_orchestrator/tests/test_search_cql.py +0 -36
- package/tools/vds-scripts/confluence_orchestrator/tests/test_space_management.py +0 -236
- package/tools/vds-scripts/confluence_orchestrator/tests/test_space_permissions.py +0 -384
- package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier.py +0 -644
- package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier_remap.py +0 -289
- package/tools/vds-scripts/confluence_orchestrator/tests/test_user_group_management.py +0 -387
- package/tools/vds-scripts/db_query_orchestrator/Dockerfile +0 -64
- package/tools/vds-scripts/db_query_orchestrator/README.md +0 -105
- package/tools/vds-scripts/db_query_orchestrator/pyproject.toml +0 -67
- package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/cli.py +0 -545
- package/tools/vds-scripts/db_query_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/db_query_orchestrator/tests/test_cli.py +0 -171
- package/tools/vds-scripts/docker/.dockerignore +0 -38
- package/tools/vds-scripts/docker/ADR.md +0 -392
- package/tools/vds-scripts/docker/Dockerfile +0 -68
- package/tools/vds-scripts/docker/MIGRATION.md +0 -453
- package/tools/vds-scripts/docker/README.md +0 -347
- package/tools/vds-scripts/docker/ROLLBACK.md +0 -596
- package/tools/vds-scripts/docker/docker-compose.cli.yml +0 -90
- package/tools/vds-scripts/docker/docker-compose.infra.yml +0 -276
- package/tools/vds-scripts/docker/docker-compose.services.yml +0 -386
- package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -143
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +0 -71
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt +0 -50
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt.template +0 -36
- package/tools/vds-scripts/docs/.confluence-evidence/.gitkeep +0 -0
- package/tools/vds-scripts/docs/.confluence-evidence/PREFLIGHT.md +0 -132
- package/tools/vds-scripts/docs/.confluence-evidence/README.md +0 -84
- package/tools/vds-scripts/docs/.confluence.yaml +0 -157
- package/tools/vds-scripts/docs/.freshness.yaml +0 -54
- package/tools/vds-scripts/docs/README.md +0 -235
- package/tools/vds-scripts/docs/agents/README.md +0 -33
- package/tools/vds-scripts/docs/agents/explanation/data-flow.md +0 -132
- package/tools/vds-scripts/docs/agents/explanation/development-roadmap.md +0 -49
- package/tools/vds-scripts/docs/agents/explanation/features-overview.md +0 -62
- package/tools/vds-scripts/docs/agents/explanation/index.md +0 -36
- package/tools/vds-scripts/docs/agents/explanation/runtime-verification-and-gap-reporting.md +0 -127
- package/tools/vds-scripts/docs/agents/explanation/system-architecture.md +0 -139
- package/tools/vds-scripts/docs/agents/explanation/whats-new.md +0 -75
- package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-introduction.md +0 -65
- package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-model.md +0 -41
- package/tools/vds-scripts/docs/agents/how-to/02-using-vds-ai-memory.md +0 -98
- package/tools/vds-scripts/docs/agents/how-to/03-memory-cross-agent.md +0 -241
- package/tools/vds-scripts/docs/agents/how-to/04-using-progress-reports.md +0 -240
- package/tools/vds-scripts/docs/agents/how-to/08-semantic-search.md +0 -46
- package/tools/vds-scripts/docs/agents/how-to/apply-phase3-migration.md +0 -148
- package/tools/vds-scripts/docs/agents/how-to/choose-the-right-command-or-skill.md +0 -34
- package/tools/vds-scripts/docs/agents/how-to/contribute-new-orchestrator.md +0 -149
- package/tools/vds-scripts/docs/agents/how-to/decision-tree.md +0 -63
- package/tools/vds-scripts/docs/agents/how-to/first-audit-run.md +0 -83
- package/tools/vds-scripts/docs/agents/how-to/index.md +0 -49
- package/tools/vds-scripts/docs/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -314
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -165
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -138
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -130
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -142
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -140
- package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -135
- package/tools/vds-scripts/docs/agents/how-to/phase131-all-project-preparation.md +0 -211
- package/tools/vds-scripts/docs/agents/how-to/phase131-bounded-parallel-analysis.md +0 -123
- package/tools/vds-scripts/docs/agents/how-to/phase131-confluence-upload-recovery.md +0 -204
- package/tools/vds-scripts/docs/agents/how-to/phase132-department-preparation.md +0 -144
- package/tools/vds-scripts/docs/agents/how-to/run-ecosystem-daily-report.md +0 -213
- package/tools/vds-scripts/docs/agents/how-to/tips-and-tricks.md +0 -138
- package/tools/vds-scripts/docs/agents/how-to/troubleshooting-guide.md +0 -221
- package/tools/vds-scripts/docs/agents/reference/agent-operational-contract.md +0 -162
- package/tools/vds-scripts/docs/agents/reference/alignment-phase179-report.md +0 -144
- package/tools/vds-scripts/docs/agents/reference/audit-triage-playbook.md +0 -256
- package/tools/vds-scripts/docs/agents/reference/backup-restore.md +0 -132
- package/tools/vds-scripts/docs/agents/reference/bitbucket-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/brd-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/capability-coverage-review.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/ci-workflows.md +0 -98
- package/tools/vds-scripts/docs/agents/reference/circular-dependency-orchestrator.md +0 -55
- package/tools/vds-scripts/docs/agents/reference/cli-commands.md +0 -583
- package/tools/vds-scripts/docs/agents/reference/cli-development-standards.md +0 -41
- package/tools/vds-scripts/docs/agents/reference/cli-help-matrix.md +0 -84
- package/tools/vds-scripts/docs/agents/reference/common-errors.md +0 -126
- package/tools/vds-scripts/docs/agents/reference/configuration-reference.md +0 -128
- package/tools/vds-scripts/docs/agents/reference/confluence-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/confluence-sync-target.md +0 -111
- package/tools/vds-scripts/docs/agents/reference/confluence-sync.md +0 -46
- package/tools/vds-scripts/docs/agents/reference/db-query-orchestrator.md +0 -93
- package/tools/vds-scripts/docs/agents/reference/diagrams-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/ecosystem-daily-report.md +0 -229
- package/tools/vds-scripts/docs/agents/reference/elastic-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/env-git-helper.md +0 -216
- package/tools/vds-scripts/docs/agents/reference/evolution-orchestrator.md +0 -113
- package/tools/vds-scripts/docs/agents/reference/excel-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/git-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/agents/reference/google-sheets-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/grafana-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/hexagonal-orchestrator.md +0 -64
- package/tools/vds-scripts/docs/agents/reference/index.md +0 -36
- package/tools/vds-scripts/docs/agents/reference/infrastructure-v2.15.md +0 -67
- package/tools/vds-scripts/docs/agents/reference/intellij-orchestrator.md +0 -50
- package/tools/vds-scripts/docs/agents/reference/jira-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/agents/reference/links-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/lint-cli.md +0 -99
- package/tools/vds-scripts/docs/agents/reference/lsp-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/markdown-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/mcp-orchestrator.md +0 -88
- package/tools/vds-scripts/docs/agents/reference/memory-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/metabase-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/migration-playbook.md +0 -71
- package/tools/vds-scripts/docs/agents/reference/multi-agent-orchestrator.md +0 -52
- package/tools/vds-scripts/docs/agents/reference/openapi-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/orchestrator-architecture.md +0 -194
- package/tools/vds-scripts/docs/agents/reference/orchestrator-comparison-matrix.md +0 -79
- package/tools/vds-scripts/docs/agents/reference/orchestrator-index.md +0 -73
- package/tools/vds-scripts/docs/agents/reference/pdf-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/portable-paths-and-config.md +0 -0
- package/tools/vds-scripts/docs/agents/reference/portable-paths-validation-matrix.md +0 -129
- package/tools/vds-scripts/docs/agents/reference/progress-orchestrator.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/progress-report-cli.md +0 -215
- package/tools/vds-scripts/docs/agents/reference/public-interface-orchestrator.md +0 -73
- package/tools/vds-scripts/docs/agents/reference/research-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/schema-orchestrator.md +0 -57
- package/tools/vds-scripts/docs/agents/reference/search-tools.md +0 -34
- package/tools/vds-scripts/docs/agents/reference/skills-commands.md +0 -256
- package/tools/vds-scripts/docs/agents/reference/skills-reference.md +0 -32
- package/tools/vds-scripts/docs/agents/reference/sonarqube-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/agents/reference/spec-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/agents/reference/structure-orchestrator.md +0 -69
- package/tools/vds-scripts/docs/agents/reference/system-requirements.md +0 -76
- package/tools/vds-scripts/docs/agents/reference/tasks-orchestrator.md +0 -53
- package/tools/vds-scripts/docs/agents/reference/validation-and-sync-notes.md +0 -54
- package/tools/vds-scripts/docs/agents/reference/vds-ai-memory-api.md +0 -51
- package/tools/vds-scripts/docs/agents/reference/vds-cli-reference.md +0 -34
- package/tools/vds-scripts/docs/agents/reference/who-capability-inventory.md +0 -96
- package/tools/vds-scripts/docs/agents/reference/who-capability-routing-matrix.md +0 -14
- package/tools/vds-scripts/docs/agents/tutorials/feature-progression-guide.md +0 -112
- package/tools/vds-scripts/docs/agents/tutorials/index.md +0 -36
- package/tools/vds-scripts/docs/agents/tutorials/quick-start.md +0 -50
- package/tools/vds-scripts/docs/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -47
- package/tools/vds-scripts/docs/agents/tutorials/zero-to-productive-developer.md +0 -339
- package/tools/vds-scripts/docs/confluence/IMPLEMENTATION-SUMMARY.md +0 -78
- package/tools/vds-scripts/docs/confluence/SYNC-GUIDE.md +0 -47
- package/tools/vds-scripts/docs/deployment/offline-docker-image-load.md +0 -59
- package/tools/vds-scripts/docs/evolution-auto-run-rollout.md +0 -325
- package/tools/vds-scripts/docs/evolution-loop-deep-integration.md +0 -496
- package/tools/vds-scripts/docs/evolution-loop-integration-guide.md +0 -359
- package/tools/vds-scripts/docs/openspace-schema-snapshot.md +0 -73
- package/tools/vds-scripts/docs/operations/sla-mttr-policy.md +0 -44
- package/tools/vds-scripts/docs/p0-closure-evidence/SUMMARY.md +0 -58
- package/tools/vds-scripts/docs/p4-closure-evidence/.gitkeep +0 -0
- package/tools/vds-scripts/docs/p4-closure-evidence/smoke-20260427T024137Z-b95b586b.json +0 -15
- package/tools/vds-scripts/docs/p8-preflight-evidence/alembic-and-runtime-advisory-locks.md +0 -45
- package/tools/vds-scripts/docs/p8-preflight-evidence/dbos-listen-notify.md +0 -54
- package/tools/vds-scripts/docs/p8-preflight-evidence/pgbouncer-search-path-empirical.md +0 -110
- package/tools/vds-scripts/docs/p8-preflight-evidence/pgvector-set-local-audit.md +0 -51
- package/tools/vds-scripts/docs/p8-preflight-evidence/topology-decision-session-mode.md +0 -57
- package/tools/vds-scripts/docs/phases/CHANGELOG.md +0 -103
- package/tools/vds-scripts/docs/phases/PHASE_125_COMPLETION_AND_MERGE.md +0 -212
- package/tools/vds-scripts/docs/phases/phase125/IMPLEMENTATION_REPORT.md +0 -227
- package/tools/vds-scripts/docs/phases/phase125/TSK-125.10-11-implementation-summary.md +0 -196
- package/tools/vds-scripts/docs/phases/phase125/profile-patch-ollama-local-anthropic.md +0 -122
- package/tools/vds-scripts/docs/phases/phase125_completion_summary.md +0 -369
- package/tools/vds-scripts/docs/phases/phase125_llm_analysis_skill.md +0 -164
- package/tools/vds-scripts/docs/phases/phase125_merge_complete.md +0 -147
- package/tools/vds-scripts/docs/phases/phase125_skill_runtime_closure_20260321.md +0 -91
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/closure-handoff-summary-2026-03-23.md +0 -290
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/remaining-risk-register-2026-03-25.md +0 -143
- package/tools/vds-scripts/docs/phases/phase2-portable-paths/verification-evidence-2026-03-23.md +0 -135
- package/tools/vds-scripts/docs/v0-sunset-known-issues.md +0 -88
- package/tools/vds-scripts/docs/vi/TRANSLATION-BACKLOG.md +0 -72
- package/tools/vds-scripts/docs/vi/agents/README.md +0 -41
- package/tools/vds-scripts/docs/vi/agents/explanation/features-overview.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/explanation/index.md +0 -14
- package/tools/vds-scripts/docs/vi/agents/explanation/runtime-verification-and-gap-reporting.md +0 -129
- package/tools/vds-scripts/docs/vi/agents/explanation/whats-new.md +0 -37
- package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-introduction.md +0 -21
- package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-model.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/how-to/02-using-vds-ai-memory.md +0 -100
- package/tools/vds-scripts/docs/vi/agents/how-to/03-memory-cross-agent.md +0 -243
- package/tools/vds-scripts/docs/vi/agents/how-to/04-using-progress-reports.md +0 -242
- package/tools/vds-scripts/docs/vi/agents/how-to/08-semantic-search.md +0 -16
- package/tools/vds-scripts/docs/vi/agents/how-to/choose-the-right-command-or-skill.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/how-to/decision-tree.md +0 -77
- package/tools/vds-scripts/docs/vi/agents/how-to/first-audit-run.md +0 -85
- package/tools/vds-scripts/docs/vi/agents/how-to/index.md +0 -21
- package/tools/vds-scripts/docs/vi/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -156
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -174
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -147
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -139
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -151
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -149
- package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -144
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-all-project-preparation.md +0 -213
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-bounded-parallel-analysis.md +0 -125
- package/tools/vds-scripts/docs/vi/agents/how-to/phase131-confluence-upload-recovery.md +0 -206
- package/tools/vds-scripts/docs/vi/agents/how-to/phase132-department-preparation.md +0 -146
- package/tools/vds-scripts/docs/vi/agents/how-to/tips-and-tricks.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/how-to/troubleshooting-guide.md +0 -36
- package/tools/vds-scripts/docs/vi/agents/reference/agent-operational-contract.md +0 -98
- package/tools/vds-scripts/docs/vi/agents/reference/audit-triage-playbook.md +0 -258
- package/tools/vds-scripts/docs/vi/agents/reference/bitbucket-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/brd-orchestrator.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/reference/capability-coverage-review.md +0 -46
- package/tools/vds-scripts/docs/vi/agents/reference/circular-dependency-orchestrator.md +0 -29
- package/tools/vds-scripts/docs/vi/agents/reference/cli-commands.md +0 -409
- package/tools/vds-scripts/docs/vi/agents/reference/cli-development-standards.md +0 -19
- package/tools/vds-scripts/docs/vi/agents/reference/cli-help-matrix.md +0 -71
- package/tools/vds-scripts/docs/vi/agents/reference/common-errors.md +0 -133
- package/tools/vds-scripts/docs/vi/agents/reference/configuration-reference.md +0 -25
- package/tools/vds-scripts/docs/vi/agents/reference/confluence-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/db-query-orchestrator.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/diagrams-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/elastic-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/evolution-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/excel-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/git-orchestrator.md +0 -31
- package/tools/vds-scripts/docs/vi/agents/reference/google-sheets-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/grafana-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/hexagonal-orchestrator.md +0 -73
- package/tools/vds-scripts/docs/vi/agents/reference/index.md +0 -25
- package/tools/vds-scripts/docs/vi/agents/reference/intellij-orchestrator.md +0 -59
- package/tools/vds-scripts/docs/vi/agents/reference/jira-orchestrator.md +0 -32
- package/tools/vds-scripts/docs/vi/agents/reference/links-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/lsp-orchestrator.md +0 -60
- package/tools/vds-scripts/docs/vi/agents/reference/markdown-orchestrator.md +0 -62
- package/tools/vds-scripts/docs/vi/agents/reference/mcp-orchestrator.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/memory-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/metabase-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/multi-agent-orchestrator.md +0 -61
- package/tools/vds-scripts/docs/vi/agents/reference/openapi-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-architecture.md +0 -24
- package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-index.md +0 -73
- package/tools/vds-scripts/docs/vi/agents/reference/pdf-orchestrator.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-and-config.md +0 -123
- package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-validation-matrix.md +0 -131
- package/tools/vds-scripts/docs/vi/agents/reference/progress-orchestrator.md +0 -43
- package/tools/vds-scripts/docs/vi/agents/reference/progress-report-cli.md +0 -217
- package/tools/vds-scripts/docs/vi/agents/reference/public-interface-orchestrator.md +0 -82
- package/tools/vds-scripts/docs/vi/agents/reference/research-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/schema-orchestrator.md +0 -66
- package/tools/vds-scripts/docs/vi/agents/reference/search-tools.md +0 -19
- package/tools/vds-scripts/docs/vi/agents/reference/skills-reference.md +0 -27
- package/tools/vds-scripts/docs/vi/agents/reference/sonarqube-orchestrator.md +0 -71
- package/tools/vds-scripts/docs/vi/agents/reference/spec-orchestrator.md +0 -56
- package/tools/vds-scripts/docs/vi/agents/reference/structure-orchestrator.md +0 -78
- package/tools/vds-scripts/docs/vi/agents/reference/system-requirements.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/reference/tasks-orchestrator.md +0 -45
- package/tools/vds-scripts/docs/vi/agents/reference/validation-and-sync-notes.md +0 -26
- package/tools/vds-scripts/docs/vi/agents/reference/vds-ai-memory-api.md +0 -53
- package/tools/vds-scripts/docs/vi/agents/reference/vds-cli-reference.md +0 -34
- package/tools/vds-scripts/docs/vi/agents/reference/who-capability-inventory.md +0 -98
- package/tools/vds-scripts/docs/vi/agents/reference/who-capability-routing-matrix.md +0 -16
- package/tools/vds-scripts/docs/vi/agents/tutorials/feature-progression-guide.md +0 -124
- package/tools/vds-scripts/docs/vi/agents/tutorials/index.md +0 -13
- package/tools/vds-scripts/docs/vi/agents/tutorials/quick-start.md +0 -30
- package/tools/vds-scripts/docs/vi/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -42
- package/tools/vds-scripts/docs/vi/agents/tutorials/zero-to-productive-developer.md +0 -137
- package/tools/vds-scripts/elastic_orchestrator/README.md +0 -450
- package/tools/vds-scripts/elastic_orchestrator/pyproject.toml +0 -97
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/__init__.py +0 -81
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/cli.py +0 -652
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/client.py +0 -743
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/config.py +0 -208
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/py.typed +0 -0
- package/tools/vds-scripts/elastic_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/elastic_orchestrator/tests/conftest.py +0 -227
- package/tools/vds-scripts/elastic_orchestrator/tests/test_client.py +0 -990
- package/tools/vds-scripts/elastic_orchestrator/tests/test_config.py +0 -268
- package/tools/vds-scripts/elastic_orchestrator/tests/test_e2e_verification.py +0 -272
- package/tools/vds-scripts/elastic_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/git_orchestrator/ENHANCEMENT_SUMMARY.md +0 -119
- package/tools/vds-scripts/git_orchestrator/README.md +0 -286
- package/tools/vds-scripts/git_orchestrator/VERIFICATION_REPORT.md +0 -152
- package/tools/vds-scripts/git_orchestrator/pyproject.toml +0 -37
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__init__.py +0 -30
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__main__.py +0 -4
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/branch_probe.py +0 -271
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/cli.py +0 -892
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/logging_config.py +0 -63
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/manifest.py +0 -249
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/orchestrator.py +0 -1647
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/protocols.py +0 -35
- package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/reporting.py +0 -55
- package/tools/vds-scripts/git_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/git_orchestrator/tests/test_cli_settings.py +0 -19
- package/tools/vds-scripts/git_orchestrator/tests/test_integration.py +0 -79
- package/tools/vds-scripts/git_orchestrator/tests/test_manifest.py +0 -79
- package/tools/vds-scripts/git_orchestrator/tests/test_orchestrator.py +0 -207
- package/tools/vds-scripts/git_orchestrator/tests/test_public_api.py +0 -235
- package/tools/vds-scripts/git_orchestrator/tests/test_resilience.py +0 -343
- package/tools/vds-scripts/git_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/git_orchestrator/tests/unit/test_branch_probe.py +0 -327
- package/tools/vds-scripts/git_orchestrator/tests/unit/test_protocols.py +0 -132
- package/tools/vds-scripts/google_sheets_orchestrator/README.md +0 -241
- package/tools/vds-scripts/google_sheets_orchestrator/pyproject.toml +0 -45
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/__init__.py +0 -69
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/cli.py +0 -568
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/client.py +0 -186
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/config.py +0 -46
- package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/errors.py +0 -41
- package/tools/vds-scripts/google_sheets_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/conftest.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_cli.py +0 -212
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_client.py +0 -24
- package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_config.py +0 -16
- package/tools/vds-scripts/grafana_orchestrator/README.md +0 -572
- package/tools/vds-scripts/grafana_orchestrator/pyproject.toml +0 -102
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/__init__.py +0 -78
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/cli.py +0 -455
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/client.py +0 -700
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/config.py +0 -243
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/py.typed +0 -1
- package/tools/vds-scripts/grafana_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/grafana_orchestrator/tests/conftest.py +0 -308
- package/tools/vds-scripts/grafana_orchestrator/tests/test_client.py +0 -458
- package/tools/vds-scripts/grafana_orchestrator/tests/test_config.py +0 -203
- package/tools/vds-scripts/grafana_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/jira_orchestrator/README.md +0 -864
- package/tools/vds-scripts/jira_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/__init__.py +0 -65
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/adapter.py +0 -1685
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/cli.py +0 -2806
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/config.py +0 -168
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/reporting.py +0 -66
- package/tools/vds-scripts/jira_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/jira_orchestrator/tests/conftest.py +0 -86
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_bulk_operations.py +0 -91
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_components.py +0 -56
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_createmeta.py +0 -45
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_dashboard.py +0 -119
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_issue_properties.py +0 -53
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_permissions_compat.py +0 -41
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_reindex.py +0 -42
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_remote_links.py +0 -75
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_transitions.py +0 -90
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_user_management.py +0 -116
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_version_management.py +0 -181
- package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_watchers.py +0 -43
- package/tools/vds-scripts/jira_orchestrator/tests/test_advanced_search.py +0 -179
- package/tools/vds-scripts/jira_orchestrator/tests/test_agile.py +0 -304
- package/tools/vds-scripts/jira_orchestrator/tests/test_application_properties.py +0 -243
- package/tools/vds-scripts/jira_orchestrator/tests/test_backlog.py +0 -91
- package/tools/vds-scripts/jira_orchestrator/tests/test_bulk_operations.py +0 -403
- package/tools/vds-scripts/jira_orchestrator/tests/test_cli.py +0 -108
- package/tools/vds-scripts/jira_orchestrator/tests/test_components.py +0 -119
- package/tools/vds-scripts/jira_orchestrator/tests/test_config.py +0 -166
- package/tools/vds-scripts/jira_orchestrator/tests/test_dashboard.py +0 -122
- package/tools/vds-scripts/jira_orchestrator/tests/test_discover_fields.py +0 -207
- package/tools/vds-scripts/jira_orchestrator/tests/test_errors.py +0 -72
- package/tools/vds-scripts/jira_orchestrator/tests/test_filter_management.py +0 -411
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_archiving.py +0 -179
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_links.py +0 -257
- package/tools/vds-scripts/jira_orchestrator/tests/test_issue_properties.py +0 -189
- package/tools/vds-scripts/jira_orchestrator/tests/test_link_types.py +0 -407
- package/tools/vds-scripts/jira_orchestrator/tests/test_parse_set.py +0 -37
- package/tools/vds-scripts/jira_orchestrator/tests/test_permissions.py +0 -343
- package/tools/vds-scripts/jira_orchestrator/tests/test_reindex.py +0 -81
- package/tools/vds-scripts/jira_orchestrator/tests/test_remote_links.py +0 -269
- package/tools/vds-scripts/jira_orchestrator/tests/test_security_schemes.py +0 -202
- package/tools/vds-scripts/jira_orchestrator/tests/test_transitions_changelog.py +0 -109
- package/tools/vds-scripts/jira_orchestrator/tests/test_user_management.py +0 -246
- package/tools/vds-scripts/jira_orchestrator/tests/test_version_management.py +0 -503
- package/tools/vds-scripts/jira_orchestrator/tests/test_watchers.py +0 -116
- package/tools/vds-scripts/jira_orchestrator/tests/test_worklog.py +0 -243
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/README.md +0 -864
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/__init__.py +0 -65
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/adapter.py +0 -1689
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/cli.py +0 -2799
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/config.py +0 -137
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/reporting.py +0 -65
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/conftest.py +0 -86
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_bulk_operations.py +0 -101
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_components.py +0 -64
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_createmeta.py +0 -45
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_dashboard.py +0 -135
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_issue_properties.py +0 -63
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_permissions_compat.py +0 -42
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_reindex.py +0 -42
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_remote_links.py +0 -89
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_transitions.py +0 -91
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_user_management.py +0 -130
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_version_management.py +0 -189
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_watchers.py +0 -49
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_advanced_search.py +0 -213
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_agile.py +0 -334
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_application_properties.py +0 -261
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_backlog.py +0 -91
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_bulk_operations.py +0 -443
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_cli.py +0 -106
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_components.py +0 -133
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_config.py +0 -166
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_dashboard.py +0 -130
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_discover_fields.py +0 -207
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_errors.py +0 -61
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_filter_management.py +0 -478
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_archiving.py +0 -181
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_links.py +0 -257
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_properties.py +0 -203
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_link_types.py +0 -426
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_parse_set.py +0 -37
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_permissions.py +0 -358
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_reindex.py +0 -81
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_remote_links.py +0 -292
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_security_schemes.py +0 -218
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_transitions_changelog.py +0 -121
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_user_management.py +0 -283
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_version_management.py +0 -561
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_watchers.py +0 -128
- package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_worklog.py +0 -265
- package/tools/vds-scripts/llms.txt +0 -159
- package/tools/vds-scripts/mcp_server/Dockerfile +0 -63
- package/tools/vds-scripts/mcp_server/README.md +0 -140
- package/tools/vds-scripts/mcp_server/pyproject.toml +0 -41
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/__init__.py +0 -3
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/config.py +0 -36
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/server.py +0 -111
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/__init__.py +0 -15
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/bitbucket_tools.py +0 -47
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/confluence_tools.py +0 -53
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/git_tools.py +0 -71
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/jira_tools.py +0 -63
- package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/vidp_tools.py +0 -64
- package/tools/vds-scripts/mcp_server/tests/__init__.py +0 -1
- package/tools/vds-scripts/mcp_server/tests/conftest.py +0 -31
- package/tools/vds-scripts/mcp_server/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/mcp_server/tests/unit/test_bitbucket_tools.py +0 -28
- package/tools/vds-scripts/mcp_server/tests/unit/test_confluence_tools.py +0 -28
- package/tools/vds-scripts/mcp_server/tests/unit/test_git_tools.py +0 -35
- package/tools/vds-scripts/mcp_server/tests/unit/test_jira_tools.py +0 -35
- package/tools/vds-scripts/mcp_server/tests/verification/__init__.py +0 -6
- package/tools/vds-scripts/mcp_server/tests/verification/conftest.py +0 -51
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_confluence_tools.py +0 -40
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_jira_tools.py +0 -39
- package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_tool_registration.py +0 -50
- package/tools/vds-scripts/memory_orchestrator/.env.example +0 -109
- package/tools/vds-scripts/memory_orchestrator/Dockerfile +0 -103
- package/tools/vds-scripts/memory_orchestrator/README.md +0 -203
- package/tools/vds-scripts/memory_orchestrator/alembic/env.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0001_add_team_id_to_vector_search_history.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0002_nullable_query_text_vector_search_history.py +0 -47
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0003_create_memory_vectors_if_missing.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0004_create_memory_duplicate_groups_and_members.py +0 -61
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0005_create_search_queries_if_missing.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0006_create_export_import_jobs_if_missing.py +0 -52
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0007_create_remaining_orm_tables.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0008_alter_export_import_jobs_user_id_to_varchar.py +0 -55
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0009_create_core_tables_if_missing.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0010_create_service_accounts.py +0 -75
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0011_create_users_table.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0012_audit_log_v3.py +0 -107
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0042_memory_dedup_resolutions.py +0 -67
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0043_memory_records_tombstones.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/alembic/versions/0044_memory_evolution_shadow_soak_state.py +0 -69
- package/tools/vds-scripts/memory_orchestrator/alembic.ini +0 -65
- package/tools/vds-scripts/memory_orchestrator/conftest.py +0 -42
- package/tools/vds-scripts/memory_orchestrator/create_analytics_tables.sql +0 -289
- package/tools/vds-scripts/memory_orchestrator/create_memory_evolution_tables.sql +0 -104
- package/tools/vds-scripts/memory_orchestrator/create_memory_vectors_table.sql +0 -26
- package/tools/vds-scripts/memory_orchestrator/init-db-simple.sql +0 -16
- package/tools/vds-scripts/memory_orchestrator/pyproject.toml +0 -169
- package/tools/vds-scripts/memory_orchestrator/scripts/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/scripts/deploy.sh +0 -112
- package/tools/vds-scripts/memory_orchestrator/scripts/entrypoint.sh +0 -130
- package/tools/vds-scripts/memory_orchestrator/scripts/mint_memory_client_service_token.py +0 -179
- package/tools/vds-scripts/memory_orchestrator/scripts/recover_with_infer_false.py +0 -224
- package/tools/vds-scripts/memory_orchestrator/scripts/soak-stalled-rate.sh +0 -95
- package/tools/vds-scripts/memory_orchestrator/scripts/verify-track-alpha.sh +0 -110
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/__init__.py +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/_model_factory.py +0 -37
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/consolidation.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/extraction.py +0 -56
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/intent.py +0 -40
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/cli.py +0 -1457
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/client.py +0 -204
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/memory_evolution.toml +0 -20
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/storage_rules.yaml +0 -281
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/session_templates.json +0 -63
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/__init__.py +0 -10
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/alembic_filters.py +0 -66
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/formatters.py +0 -82
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/__init__.py +0 -25
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/ai_memory_api.py +0 -1172
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/mcp_api.py +0 -854
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/openapi_config.py +0 -426
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/status_mapping.py +0 -91
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/analytics.py +0 -1406
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/auth.py +0 -409
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/authorization.py +0 -474
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cache.py +0 -51
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cleanup.py +0 -286
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/deduplication.py +0 -546
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/dependencies.py +0 -349
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/embedding.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/export_import.py +0 -596
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/health.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/hooks.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/maintenance.py +0 -653
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/promotion.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/reconciliation.py +0 -102
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/sharing.py +0 -674
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/tasks.py +0 -72
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/versioning.py +0 -483
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/memory_manager.py +0 -914
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/research_analyzer.py +0 -839
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/vds_brain_agent.py +0 -1120
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/config/memory_dedup.toml +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/ai_memory_exceptions.py +0 -225
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/audit_log_writer.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/auth.py +0 -350
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/config.py +0 -836
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/exceptions.py +0 -203
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/identity.py +0 -175
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/input_validation.py +0 -785
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/legacy_claim_normalizer.py +0 -142
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rate_limit.py +0 -587
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rbac_decorators.py +0 -531
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/redis.py +0 -446
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/scope_validator.py +0 -125
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security.py +0 -109
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security_middleware.py +0 -535
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/test_input_validation.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/analytics_repository.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/postgres_manager.py +0 -1897
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/rbac_migration.py +0 -57
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/redis_manager.py +0 -617
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/user.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/storage_strategy_hook.py +0 -465
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/memory_transformer.py +0 -827
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/main.py +0 -491
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/__init__.py +0 -20
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/env_config_parser.py +0 -188
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/official_mcp_client.py +0 -1574
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/working_mcp_interface.py +0 -340
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/__init__.py +0 -125
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/ai_memory_models.py +0 -1587
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/analytics_models.py +0 -766
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/auth_models.py +0 -460
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/database.py +0 -841
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/deduplication_models.py +0 -354
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/export_import_models.py +0 -353
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/rbac.py +0 -9
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/resource_ownership.py +0 -282
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models.py +0 -427
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models_additional.py +0 -322
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/sharing_models.py +0 -366
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/perf/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/dev_mode_user_repository.py +0 -194
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/postgres_user_repository.py +0 -280
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/service_account_repository.py +0 -330
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/user_repository.py +0 -77
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ai_memory_service.py +0 -2754
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_events.py +0 -104
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_service.py +0 -2825
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/auth.py +0 -207
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/embedding_service.py +0 -51
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/entity_backfill_service.py +0 -343
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/fallback_search_service.py +0 -327
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/health_check.py +0 -1556
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mcp_integration_service.py +0 -224
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_adapter.py +0 -796
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_client.py +0 -48
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_sync_service.py +0 -484
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_admin_service.py +0 -1011
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_crud_service.py +0 -1469
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_deduplication.py +0 -1761
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/__init__.py +0 -17
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_app.py +0 -70
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_entrypoint.py +0 -15
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/config_loader.py +0 -275
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/consolidation_executor.py +0 -309
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/processor.py +0 -574
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/rules.py +0 -136
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/shadow_soak.py +0 -161
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/sweeper.py +0 -216
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/tracker.py +0 -265
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/worker.py +0 -780
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_export_import.py +0 -1403
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_search_service.py +0 -1164
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_sharing.py +0 -741
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_versioning.py +0 -592
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ownership_service.py +0 -798
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/promotion_service.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/query_router_service.py +0 -523
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/rbac_service.py +0 -711
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/semantic_cache_service.py +0 -605
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/session_template_service.py +0 -76
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/__init__.py +0 -35
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/consolidation_worker.py +0 -384
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/content_analyzer.py +0 -482
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/pattern_matcher.py +0 -363
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/rule_engine.py +0 -447
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/storage_engine.py +0 -299
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/tool_registry_service.py +0 -544
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/triage_service.py +0 -250
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/vector_search_service.py +0 -497
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/create_user_use_case.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/exceptions.py +0 -94
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/login_use_case.py +0 -217
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/policies.py +0 -102
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/refresh_token_use_case.py +0 -86
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/data_transformer.py +0 -28
- package/tools/vds-scripts/memory_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/auth/__init__.py +0 -6
- package/tools/vds-scripts/memory_orchestrator/tests/auth/conftest.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_acquire_jwt_token_deprecation.py +0 -176
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0010_migration.py +0 -193
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0011_users_migration.py +0 -234
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0012_audit_log_v3_migration.py +0 -184
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_analytics_stream_machine_hint.py +0 -149
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_identity_fields.py +0 -369
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_v3_schema.py +0 -186
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_auth_api_endpoints.py +0 -264
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_authenticators.py +0 -343
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_conftest_factory.py +0 -108
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_create_user_use_case.py +0 -246
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dependencies.py +0 -232
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_claim_fidelity.py +0 -87
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_parity.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_user_repository.py +0 -271
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_get_current_identity.py +0 -403
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_identity.py +0 -272
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_jwt_auth.py +0 -658
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_callers_smoke.py +0 -141
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_compat.py +0 -234
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_normalizer.py +0 -315
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lockout_policy.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_login_use_case.py +0 -455
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lsp_regression_contracts.py +0 -259
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_machine_context_detection.py +0 -160
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_me_endpoint_no_deprecation.py +0 -199
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_mint_service_token.py +0 -244
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_service_account_repository.py +0 -222
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_user_repository.py +0 -302
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_refresh_token_use_case.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_scope_validator.py +0 -249
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_security.py +0 -158
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_entity.py +0 -146
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_repository_protocol.py +0 -60
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_token_precedence.py +0 -205
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_entity.py +0 -217
- package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_repository_protocol.py +0 -141
- package/tools/vds-scripts/memory_orchestrator/tests/cli/__init__.py +0 -1
- package/tools/vds-scripts/memory_orchestrator/tests/cli/test_memory_create_user.py +0 -208
- package/tools/vds-scripts/memory_orchestrator/tests/conftest.py +0 -184
- package/tools/vds-scripts/memory_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_auth_login_e2e.py +0 -425
- package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_health_strict_json.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_async_mode_status.py +0 -192
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_vami020_dual_correctness.py +0 -218
- package/tools/vds-scripts/memory_orchestrator/tests/integration/test_worktree_compose.py +0 -257
- package/tools/vds-scripts/memory_orchestrator/tests/service/TEST_DOCUMENTATION.md +0 -467
- package/tools/vds-scripts/memory_orchestrator/tests/service/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/service/conftest.py +0 -1040
- package/tools/vds-scripts/memory_orchestrator/tests/service/conftest_root.py +0 -63
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/Local Environment.postman_environment.json +0 -46
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/README.md +0 -302
- package/tools/vds-scripts/memory_orchestrator/tests/service/postman/VDS Analytics API.postman_collection.json +0 -562
- package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.integration.ini +0 -21
- package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.unit.ini +0 -21
- package/tools/vds-scripts/memory_orchestrator/tests/service/services/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/service/services/test_health_aggregation.py +0 -370
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_api.py +0 -797
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service.py +0 -1661
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service_routing.py +0 -165
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_alerts.py +0 -89
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_api_integration.py +0 -604
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_bi.py +0 -49
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboard_e2e.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboards.py +0 -127
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_enhanced.py +0 -575
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_external.py +0 -44
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_performance_metrics.py +0 -60
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_realtime.py +0 -63
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_reports.py +0 -138
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_service.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_stream_cli.py +0 -305
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_websocket.py +0 -145
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_basic.py +0 -29
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warm_endpoint.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_simple.py +0 -197
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_validation.py +0 -378
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_circuit_breaker_integration.py +0 -336
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cleanup_endpoint.py +0 -126
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_concurrent_load.py +0 -603
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_cors_origins_validator.py +0 -48
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_drain_evolution.py +0 -130
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_lifecycle.py +0 -34
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_migration.py +0 -167
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_protocol_shape.py +0 -84
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_routes_w9.py +0 -340
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_service.py +0 -291
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_entity_backfill.py +0 -248
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_metrics.py +0 -582
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_search.py +0 -397
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_hooks.py +0 -149
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_include_internal_filter.py +0 -301
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_input_validation.py +0 -713
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_load_batch_endpoint.py +0 -300
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_maintenance_endpoints.py +0 -576
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mcp_integration_service.py +0 -99
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_cloud.py +0 -111
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_dual_mode.py +0 -112
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_hybrid.py +0 -187
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_return_shape.py +0 -188
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_crud_integration.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_fix.py +0 -349
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_service_resolver.py +0 -106
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_client_maintenance.py +0 -121
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_consolidation_executor.py +0 -47
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_deduplication_service.py +0 -1275
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_phase232.py +0 -427
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_processor.py +0 -110
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_rules.py +0 -29
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_sweeper.py +0 -17
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_tracker.py +0 -190
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_export_import.py +0 -79
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_sharing_service.py +0 -121
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_versioning.py +0 -155
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ollama_gating.py +0 -58
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_ownership_integration.py +0 -678
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_phase175_health_probe_and_get_event_guard.py +0 -131
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_pool_settings.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_query_metrics.py +0 -28
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_update_cas.py +0 -86
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_rate_limit.py +0 -551
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_rbac.py +0 -661
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_recover_with_infer_false.py +0 -210
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_remote_endpoints.py +0 -59
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_schema_migration.py +0 -267
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_search_service_unwrap.py +0 -38
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_integration.py +0 -699
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_middleware.py +0 -532
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_semantic_cache_telemetry.py +0 -300
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_endpoints.py +0 -99
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_service.py +0 -77
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_sharing_api.py +0 -202
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_storage_strategy.py +0 -46
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_tasks_endpoint.py +0 -80
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_temporal_filters.py +0 -653
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_topic_clustering_benchmark.py +0 -657
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_triage.py +0 -346
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_unit_comprehensive.py +0 -1054
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_versioning_api.py +0 -81
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave2a_reconciliation.py +0 -422
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave3_stall_metrics.py +0 -578
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_websocket_auth.py +0 -227
- package/tools/vds-scripts/memory_orchestrator/tests/service/test_writeback_classification.py +0 -55
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_consolidation_agent.py +0 -128
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_extraction_agent.py +0 -140
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_intent_agent.py +0 -120
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_model_factory.py +0 -85
- package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_wiring.py +0 -267
- package/tools/vds-scripts/memory_orchestrator/tests/test_alembic_migrations_phase229.py +0 -433
- package/tools/vds-scripts/memory_orchestrator/tests/test_async_compat_lint.py +0 -178
- package/tools/vds-scripts/memory_orchestrator/tests/test_cache_metrics_status.py +0 -124
- package/tools/vds-scripts/memory_orchestrator/tests/test_cli.py +0 -517
- package/tools/vds-scripts/memory_orchestrator/tests/test_cli_health.py +0 -68
- package/tools/vds-scripts/memory_orchestrator/tests/test_client.py +0 -434
- package/tools/vds-scripts/memory_orchestrator/tests/test_config_lazy_validation.py +0 -96
- package/tools/vds-scripts/memory_orchestrator/tests/test_log_hygiene.py +0 -148
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter.py +0 -810
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter_dual_inversion.py +0 -185
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_event_resolver.py +0 -158
- package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_synced_subscriber.py +0 -294
- package/tools/vds-scripts/memory_orchestrator/tests/test_postgres_vector_search_warning.py +0 -176
- package/tools/vds-scripts/memory_orchestrator/tests/test_processor_adapter_diagnostic_phase216.py +0 -71
- package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_cli.py +0 -218
- package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_service.py +0 -322
- package/tools/vds-scripts/memory_orchestrator/tests/test_status_endpoint.py +0 -193
- package/tools/vds-scripts/memory_orchestrator/tests/test_worker_status_emission.py +0 -150
- package/tools/vds-scripts/memory_orchestrator/tests/verification/__init__.py +0 -0
- package/tools/vds-scripts/memory_orchestrator/tests/verification/conftest.py +0 -33
- package/tools/vds-scripts/memory_orchestrator/tests/verification/test_live_api.py +0 -98
- package/tools/vds-scripts/memory_orchestrator/uv.lock +0 -8875
- package/tools/vds-scripts/metabase_orchestrator/pyproject.toml +0 -40
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/cli.py +0 -519
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/client.py +0 -417
- package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/config.py +0 -172
- package/tools/vds-scripts/metabase_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/platform_core/pyproject.toml +0 -49
- package/tools/vds-scripts/platform_core/src/vds_platform_core/__init__.py +0 -16
- package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/__init__.py +0 -18
- package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/runtime.py +0 -139
- package/tools/vds-scripts/platform_core/src/vds_platform_core/config.py +0 -88
- package/tools/vds-scripts/platform_core/src/vds_platform_core/credentials.py +0 -40
- package/tools/vds-scripts/platform_core/src/vds_platform_core/env.py +0 -24
- package/tools/vds-scripts/platform_core/src/vds_platform_core/errors.py +0 -127
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/__init__.py +0 -18
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/auth.py +0 -32
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/errors.py +0 -47
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/pagination.py +0 -65
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/retry.py +0 -62
- package/tools/vds-scripts/platform_core/src/vds_platform_core/http/stack.py +0 -61
- package/tools/vds-scripts/platform_core/src/vds_platform_core/logging.py +0 -132
- package/tools/vds-scripts/platform_core/src/vds_platform_core/protocols.py +0 -77
- package/tools/vds-scripts/platform_core/src/vds_platform_core/serialization.py +0 -80
- package/tools/vds-scripts/platform_core/src/vds_platform_core/severity.py +0 -175
- package/tools/vds-scripts/platform_core/tests/__init__.py +0 -0
- package/tools/vds-scripts/platform_core/tests/conftest.py +0 -1
- package/tools/vds-scripts/platform_core/tests/test_alembic_runtime.py +0 -300
- package/tools/vds-scripts/platform_core/tests/test_auth.py +0 -84
- package/tools/vds-scripts/platform_core/tests/test_config.py +0 -83
- package/tools/vds-scripts/platform_core/tests/test_credentials.py +0 -73
- package/tools/vds-scripts/platform_core/tests/test_env.py +0 -56
- package/tools/vds-scripts/platform_core/tests/test_errors.py +0 -201
- package/tools/vds-scripts/platform_core/tests/test_errors_http.py +0 -74
- package/tools/vds-scripts/platform_core/tests/test_http_settings.py +0 -116
- package/tools/vds-scripts/platform_core/tests/test_logging.py +0 -148
- package/tools/vds-scripts/platform_core/tests/test_pagination.py +0 -153
- package/tools/vds-scripts/platform_core/tests/test_protocols.py +0 -132
- package/tools/vds-scripts/platform_core/tests/test_retry.py +0 -151
- package/tools/vds-scripts/platform_core/tests/test_serialization.py +0 -92
- package/tools/vds-scripts/platform_core/tests/test_severity.py +0 -178
- package/tools/vds-scripts/platform_core/tests/test_stack.py +0 -130
- package/tools/vds-scripts/platform_core/uv.lock +0 -341
- package/tools/vds-scripts/pyproject.toml +0 -153
- package/tools/vds-scripts/pyrightconfig.json +0 -82
- package/tools/vds-scripts/repo-manifest.yaml +0 -380
- package/tools/vds-scripts/repo-manifest.yaml.example +0 -25
- package/tools/vds-scripts/ruff.toml +0 -103
- package/tools/vds-scripts/scheduler_orchestrator/CLOSURE-v2.0.18.md +0 -99
- package/tools/vds-scripts/scheduler_orchestrator/DEPLOYMENT-RUNBOOK.md +0 -655
- package/tools/vds-scripts/scheduler_orchestrator/Dockerfile +0 -110
- package/tools/vds-scripts/scheduler_orchestrator/GV-VERIFICATION.md +0 -81
- package/tools/vds-scripts/scheduler_orchestrator/README.md +0 -96
- package/tools/vds-scripts/scheduler_orchestrator/WAVE-2-GUARDRAILS.md +0 -89
- package/tools/vds-scripts/scheduler_orchestrator/alembic/env.py +0 -41
- package/tools/vds-scripts/scheduler_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/0001_create_sched_schema.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_04f7169497f6_create_domain_tables.py +0 -166
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_a1b2c3d4e5f6_add_overlap_policy_to_schedules.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_b2c3d4e5f6a7_add_dispatcher_state_machine.py +0 -100
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_c3d4e5f6a7b8_add_audit_log.py +0 -141
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_d4e5f6a7b8c9_celery_retirement.py +0 -161
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_e5f6a7b8c9d0_add_udf_enqueue.py +0 -154
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260426_f6a7b8c9d0e1_add_owner_orchestrator_to_chain_definitions.py +0 -62
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260427_a1b2c3d4e5f7_ecosystem_report_runs.py +0 -57
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260428_a1b2c3d4e5f8_add_phase2_report_columns.py +0 -95
- package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260430_b2c3d4e5f8a9_add_phase3_report_columns.py +0 -199
- package/tools/vds-scripts/scheduler_orchestrator/alembic.ini +0 -70
- package/tools/vds-scripts/scheduler_orchestrator/config/llm_pricing.yaml +0 -51
- package/tools/vds-scripts/scheduler_orchestrator/config/prometheus-alerts.yaml +0 -277
- package/tools/vds-scripts/scheduler_orchestrator/dashboards/slo-dashboard.json +0 -665
- package/tools/vds-scripts/scheduler_orchestrator/design-notes/dedupe-design.md +0 -324
- package/tools/vds-scripts/scheduler_orchestrator/docs/Q3-2026-GAME-DAY-PREFLIGHT.md +0 -217
- package/tools/vds-scripts/scheduler_orchestrator/docs/authoring-workflows.md +0 -302
- package/tools/vds-scripts/scheduler_orchestrator/docs/autoscaling-k8s-hpa.yaml +0 -193
- package/tools/vds-scripts/scheduler_orchestrator/docs/capability-red-team.md +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/docs/celery-migration-procedure.md +0 -151
- package/tools/vds-scripts/scheduler_orchestrator/docs/celery-retirement-checklist.md +0 -144
- package/tools/vds-scripts/scheduler_orchestrator/docs/chaos-runbook.md +0 -395
- package/tools/vds-scripts/scheduler_orchestrator/docs/conductor-decision.md +0 -232
- package/tools/vds-scripts/scheduler_orchestrator/docs/cross-orchestrator-rollout-checklist.md +0 -223
- package/tools/vds-scripts/scheduler_orchestrator/docs/dr-drill-report.md +0 -173
- package/tools/vds-scripts/scheduler_orchestrator/docs/ecosystem-daily-report-runbook.md +0 -344
- package/tools/vds-scripts/scheduler_orchestrator/docs/error-budget-policy.md +0 -228
- package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-daemon-retirement.md +0 -214
- package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-retirement-files.md +0 -171
- package/tools/vds-scripts/scheduler_orchestrator/docs/game-day-phase2.md +0 -243
- package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-governance-review.md +0 -250
- package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-scheduler-surface.md +0 -317
- package/tools/vds-scripts/scheduler_orchestrator/docs/performance-baseline.md +0 -343
- package/tools/vds-scripts/scheduler_orchestrator/docs/pitr-drill-protocol.md +0 -162
- package/tools/vds-scripts/scheduler_orchestrator/docs/quarterly-game-day.md +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/dr-postgres-restore.md +0 -268
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/evolution-auto-promote-runbook.md +0 -194
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-dispatcher-stalled.md +0 -188
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-postgres-unavailable.md +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-secret-leaked-in-event.md +0 -170
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-workflow-backlog.md +0 -201
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/orphan-reconciliation-alert.md +0 -140
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/postmortem-template.md +0 -156
- package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/rollback-deploy.md +0 -209
- package/tools/vds-scripts/scheduler_orchestrator/docs/scaling-decision-phase4.md +0 -176
- package/tools/vds-scripts/scheduler_orchestrator/docs/secret-rotation-drill.md +0 -202
- package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-decision.md +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-implementation-plan.md +0 -189
- package/tools/vds-scripts/scheduler_orchestrator/docs/udf-enqueue-benchmark.md +0 -209
- package/tools/vds-scripts/scheduler_orchestrator/docs/udf-trigger-demo-plan.md +0 -273
- package/tools/vds-scripts/scheduler_orchestrator/pyproject.toml +0 -129
- package/tools/vds-scripts/scheduler_orchestrator/scripts/autoscale/scale-compose.sh +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/scripts/backfill_last_run_at_from_dbos.py +0 -105
- package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/phase4-sharding-remeasure.sh +0 -244
- package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/udf-vs-dispatcher.sh +0 -157
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c1-api-kill.sh +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c2-executor-kill.sh +0 -243
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c3-dispatcher-kill.sh +0 -314
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c4-postgres-failover.sh +0 -288
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c5-network-partition.sh +0 -351
- package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c6-outbox-storm.sh +0 -403
- package/tools/vds-scripts/scheduler_orchestrator/scripts/collector-diagnostics.py +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/scripts/dr/pitr-drill.sh +0 -363
- package/tools/vds-scripts/scheduler_orchestrator/scripts/entrypoint.sh +0 -100
- package/tools/vds-scripts/scheduler_orchestrator/scripts/generate-report.py +0 -96
- package/tools/vds-scripts/scheduler_orchestrator/scripts/mint_scheduler_service_token.py +0 -76
- package/tools/vds-scripts/scheduler_orchestrator/scripts/verify-phase3-live.py +0 -158
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/__init__.py +0 -21
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/__init__.py +0 -5
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/chains.py +0 -131
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/events.py +0 -106
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/health.py +0 -101
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/router.py +0 -34
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/schedules.py +0 -241
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/workflows.py +0 -189
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/app.py +0 -429
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/registry.py +0 -397
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/resolver.py +0 -144
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/triggers.py +0 -626
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/cli.py +0 -1112
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/config.py +0 -394
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/ecosystem-scheduler.json +0 -550
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/alembic_filters.py +0 -52
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/models.py +0 -428
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/__init__.py +0 -10
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/bus.py +0 -161
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/dispatcher.py +0 -501
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/outbox.py +0 -213
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/retention.py +0 -224
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/schema.py +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/ws_server.py +0 -328
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/__init__.py +0 -26
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/auth.py +0 -184
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/server.py +0 -146
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/tools_readonly.py +0 -259
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/__init__.py +0 -15
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/logging.py +0 -196
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/metrics.py +0 -347
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/slo.py +0 -217
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/workflow_trace_context.py +0 -149
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/backfill.py +0 -160
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/models.py +0 -88
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/schedules.py +0 -927
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_pg.py +0 -55
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_ports.py +0 -23
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/writeback.py +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/audit_log.py +0 -238
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/auth.py +0 -49
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/capabilities.py +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/middleware.py +0 -54
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/secret_scanner.py +0 -126
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/agent_step.py +0 -30
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/anomaly.py +0 -67
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/autoscale.py +0 -452
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collector_registry.py +0 -89
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/__init__.py +0 -12
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/dora_metrics.py +0 -520
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/infra_health_collector.py +0 -378
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/llm_usage.py +0 -475
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/memory_collector.py +0 -101
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/phase1_adapters.py +0 -181
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/prometheus_collector.py +0 -442
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/protocol.py +0 -94
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/security_advisory.py +0 -399
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/spec_phase_collector.py +0 -137
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/test_suite_collector.py +0 -231
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/trend_forecast.py +0 -417
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/worktree_collector.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/discovery.py +0 -97
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/ecosystem_report.py +0 -1406
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/envelope.py +0 -210
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/auto_promote.py +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/health_score.py +0 -112
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/__init__.py +0 -69
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/auto_resolve.py +0 -139
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/tombstone_purge.py +0 -128
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/__init__.py +0 -146
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/dispatch.py +0 -140
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/replay_dlq.py +0 -123
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_local_only.py +0 -129
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_stalled.py +0 -123
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/resolve_pending_ids.py +0 -125
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/sweep.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/provider.py +0 -83
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/queues.py +0 -225
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/registry.py +0 -351
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/report_formatter.py +0 -743
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/slack_formatter.py +0 -110
- package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/udf_trigger.py +0 -186
- package/tools/vds-scripts/scheduler_orchestrator/tests/__init__.py +0 -8
- package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/__init__.py +0 -28
- package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/llm_mock.py +0 -322
- package/tools/vds-scripts/scheduler_orchestrator/tests/conftest.py +0 -339
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_agent_step.py +0 -400
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_auth.py +0 -424
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_reads.py +0 -579
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_writes.py +0 -609
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_drift_scan.py +0 -205
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_log_grants.py +0 -231
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_capability_red_team.py +0 -266
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chain_triggers_integration.py +0 -365
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chaos_smoke.py +0 -871
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_http_contract.py +0 -262
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_schedule_roundtrip.py +0 -297
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_integration.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_phase3_integration.py +0 -686
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_fairness.py +0 -373
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_full_ecosystem.py +0 -638
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_multi_day_workflow.py +0 -563
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_outbox_listen.py +0 -327
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_priority_queues.py +0 -288
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_queues_rate_limit.py +0 -272
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_retention_smoke.py +0 -259
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_secret_rotation_drill.py +0 -215
- package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_tier1_collectors_live.py +0 -270
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/__init__.py +0 -29
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/capture_pg_metrics.py +0 -198
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/common.py +0 -163
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/nfr_check.py +0 -235
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/run_baselines.sh +0 -167
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s1_baseline.py +0 -68
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s2_phase1.py +0 -71
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s3_phase2.py +0 -108
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s4_event_storm.py +0 -131
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/s5_chain_fanout.py +0 -105
- package/tools/vds-scripts/scheduler_orchestrator/tests/load/smoke.py +0 -69
- package/tools/vds-scripts/scheduler_orchestrator/tests/test_alembic_downgrade.py +0 -297
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/__init__.py +0 -1
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_alembic_include_name.py +0 -82
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_anomaly.py +0 -135
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_health.py +0 -102
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_memory_evolution_bootstrap.py +0 -65
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_audit_log_writer.py +0 -321
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_auth_brute_force_middleware.py +0 -175
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers.py +0 -91
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers_deep.py +0 -271
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill.py +0 -153
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill_coverage.py +0 -219
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_capabilities.py +0 -175
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_celery_migration_workflows.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_branches.py +0 -387
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_registry.py +0 -504
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_complete.py +0 -800
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_event.py +0 -649
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_branches.py +0 -396
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_capability_attach.py +0 -111
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_schedules.py +0 -540
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_collector_protocol.py +0 -180
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_config.py +0 -62
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_decimal_json_and_phase3_columns.py +0 -372
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dispatcher.py +0 -376
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dockerfile_phase213_patch.py +0 -74
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dora_metrics_collector.py +0 -740
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_config.py +0 -159
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_coverage.py +0 -1891
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_envelope.py +0 -256
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_error_budget_policy_signoff.py +0 -95
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_branches.py +0 -664
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_outbox.py +0 -364
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_retention.py +0 -206
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_schema.py +0 -279
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_evolution_auto_promote.py +0 -340
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_redact.py +0 -64
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_score.py +0 -240
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_last_run_at_writeback.py +0 -226
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_llm_usage_collector.py +0 -1095
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_auth.py +0 -204
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_readonly_gate.py +0 -273
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_tools_readonly.py +0 -382
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_memory_evolution_branches.py +0 -422
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_metrics.py +0 -318
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_observability_and_step_branches.py +0 -247
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_prometheus_collector_sli.py +0 -186
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_queues_config.py +0 -203
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_reconcile_dbos_schedules.py +0 -300
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_remaining_coverage.py +0 -666
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_report_formatter.py +0 -388
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_scheduled_workflow_signatures.py +0 -136
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules.py +0 -552
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules_branches.py +0 -772
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_secret_scanner.py +0 -81
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_advisory_collector.py +0 -495
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_auth_dep.py +0 -182
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slack_notification.py +0 -356
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slo_metrics.py +0 -204
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier1_collectors.py +0 -717
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier2_collectors.py +0 -867
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier3_collectors.py +0 -185
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_trend_forecast_collector.py +0 -617
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_udf_trigger.py +0 -180
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_discovery.py +0 -121
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_http_refactor_phase217.py +0 -309
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry.py +0 -398
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry_branches.py +0 -126
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_trace_context.py +0 -295
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_writeback.py +0 -461
- package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ws_server.py +0 -291
- package/tools/vds-scripts/scripts/BRD-Validation-API.postman_collection.json +0 -706
- package/tools/vds-scripts/scripts/BRD-Validation-README.md +0 -308
- package/tools/vds-scripts/scripts/README.md +0 -271
- package/tools/vds-scripts/scripts/_validate_alias_phase2.py +0 -137
- package/tools/vds-scripts/scripts/audit-cli-patterns.sh +0 -135
- package/tools/vds-scripts/scripts/audit-dashboard.sh +0 -525
- package/tools/vds-scripts/scripts/backup.sh +0 -123
- package/tools/vds-scripts/scripts/bootstrap_uv.sh +0 -69
- package/tools/vds-scripts/scripts/brd-validation-environment.json +0 -51
- package/tools/vds-scripts/scripts/brd-validation-test-results.json +0 -13023
- package/tools/vds-scripts/scripts/brd_coverage_report.json +0 -276
- package/tools/vds-scripts/scripts/check-future-annotations.py +0 -22
- package/tools/vds-scripts/scripts/check-invalid-symlinks.py +0 -183
- package/tools/vds-scripts/scripts/check-no-debug-markers.py +0 -21
- package/tools/vds-scripts/scripts/check-no-unittest.py +0 -21
- package/tools/vds-scripts/scripts/ci/assert_no_openspace_commits.sh +0 -37
- package/tools/vds-scripts/scripts/ci/verify_branch_protection.sh +0 -64
- package/tools/vds-scripts/scripts/closure/phase1_check.sh +0 -483
- package/tools/vds-scripts/scripts/closure/phase2_check.sh +0 -500
- package/tools/vds-scripts/scripts/create_memory_session.py +0 -36
- package/tools/vds-scripts/scripts/deploy-bootstrap.sh +0 -201
- package/tools/vds-scripts/scripts/deployment/load_docker_images_offline.sh +0 -90
- package/tools/vds-scripts/scripts/dev/cli_smoke.sh +0 -259
- package/tools/vds-scripts/scripts/final_completion_report.md +0 -139
- package/tools/vds-scripts/scripts/folder_structure_report.json +0 -321
- package/tools/vds-scripts/scripts/generate_completion_report.py +0 -132
- package/tools/vds-scripts/scripts/generate_intellij_modules.py +0 -154
- package/tools/vds-scripts/scripts/init-pgbouncer-userlist.sh +0 -154
- package/tools/vds-scripts/scripts/link_integrity_report.json +0 -807
- package/tools/vds-scripts/scripts/move_audit_artifact_pages.py +0 -252
- package/tools/vds-scripts/scripts/move_audit_artifact_pages_rest.py +0 -165
- package/tools/vds-scripts/scripts/move_wrong_dept_pages.py +0 -235
- package/tools/vds-scripts/scripts/openspace_bootstrap.sh +0 -56
- package/tools/vds-scripts/scripts/openspace_common.sh +0 -75
- package/tools/vds-scripts/scripts/openspace_doctor.sh +0 -61
- package/tools/vds-scripts/scripts/openspace_sync_shadow.sh +0 -65
- package/tools/vds-scripts/scripts/phase7-baseline.sh +0 -77
- package/tools/vds-scripts/scripts/preflight/env_check.sh +0 -102
- package/tools/vds-scripts/scripts/repair_autopay_reports.sh +0 -173
- package/tools/vds-scripts/scripts/rollback_drill.sh +0 -659
- package/tools/vds-scripts/scripts/run-audit-in-tmux.sh +0 -286
- package/tools/vds-scripts/scripts/run-department-audit.sh +0 -495
- package/tools/vds-scripts/scripts/run-project-audit.sh +0 -267
- package/tools/vds-scripts/scripts/save_intellij_memories.py +0 -112
- package/tools/vds-scripts/scripts/save_memories_to_vds_ai.py +0 -81
- package/tools/vds-scripts/scripts/save_memories_vds_style.py +0 -133
- package/tools/vds-scripts/scripts/search_intellij_memories.py +0 -48
- package/tools/vds-scripts/scripts/setup_intellij_workspace.py +0 -71
- package/tools/vds-scripts/scripts/smoke-test-deploy.sh +0 -137
- package/tools/vds-scripts/scripts/smoke_deploy_lib.py +0 -205
- package/tools/vds-scripts/scripts/target-state-automation/README.md +0 -89
- package/tools/vds-scripts/scripts/target-state-automation/confluence_sync_coordinator.sh +0 -27
- package/tools/vds-scripts/scripts/target-state-automation/coordination.sh +0 -114
- package/tools/vds-scripts/scripts/target-state-automation/diagram_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/docs_root.sh +0 -22
- package/tools/vds-scripts/scripts/target-state-automation/generate_diagrams.sh +0 -22
- package/tools/vds-scripts/scripts/target-state-automation/markdown_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/progress_dashboard.sh +0 -17
- package/tools/vds-scripts/scripts/target-state-automation/schema_coordinator.sh +0 -25
- package/tools/vds-scripts/scripts/target-state-automation/sync_confluence.sh +0 -30
- package/tools/vds-scripts/scripts/target-state-automation/update_dependencies.sh +0 -19
- package/tools/vds-scripts/scripts/target-state-automation/validate_links.sh +0 -86
- package/tools/vds-scripts/scripts/target-state-automation/validate_markdown.sh +0 -52
- package/tools/vds-scripts/scripts/target-state-automation/validate_schemas.sh +0 -26
- package/tools/vds-scripts/scripts/target-state-automation/validate_structure.sh +0 -98
- package/tools/vds-scripts/scripts/tests/__init__.py +0 -1
- package/tools/vds-scripts/scripts/tests/test_dockerfile_correctness.py +0 -815
- package/tools/vds-scripts/scripts/tests/test_makefile_loadouts.py +0 -560
- package/tools/vds-scripts/scripts/tests/test_smoke_deploy.py +0 -313
- package/tools/vds-scripts/scripts/tests/test_verify_alembic.py +0 -581
- package/tools/vds-scripts/scripts/tests/test_verify_infra_topology.py +0 -254
- package/tools/vds-scripts/scripts/update_modules_xml.py +0 -194
- package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-03-25.md +0 -128
- package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-04-18.md +0 -100
- package/tools/vds-scripts/scripts/validate-cli-standardization.sh +0 -188
- package/tools/vds-scripts/scripts/validate_brd_coverage.py +0 -197
- package/tools/vds-scripts/scripts/validate_folder_structure.py +0 -234
- package/tools/vds-scripts/scripts/validate_link_integrity.py +0 -274
- package/tools/vds-scripts/scripts/vami017-caller-compat-report.md +0 -62
- package/tools/vds-scripts/scripts/vami017-phase-b-scaffold-notes.md +0 -79
- package/tools/vds-scripts/scripts/vds_sh_helpers.sh +0 -180
- package/tools/vds-scripts/scripts/verification/phase2_portable_paths_ubuntu_docker.sh +0 -26
- package/tools/vds-scripts/scripts/verify-infra-topology.py +0 -868
- package/tools/vds-scripts/scripts/verify-memory-cli-e2e.sh +0 -598
- package/tools/vds-scripts/scripts/verify-worktree-features.sh +0 -306
- package/tools/vds-scripts/scripts/worktree-add.sh +0 -128
- package/tools/vds-scripts/scripts/worktree-remove.sh +0 -112
- package/tools/vds-scripts/scripts/worktree_compose.sh +0 -269
- package/tools/vds-scripts/scripts/worktree_uv.sh +0 -77
- package/tools/vds-scripts/setup-icloud-nosync.sh +0 -91
- package/tools/vds-scripts/sonarqube_orchestrator/IMPLEMENTATION_AUDIT.md +0 -376
- package/tools/vds-scripts/sonarqube_orchestrator/README.md +0 -507
- package/tools/vds-scripts/sonarqube_orchestrator/pyproject.toml +0 -106
- package/tools/vds-scripts/sonarqube_orchestrator/scripts/ensure_symlink.sh +0 -38
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/__init__.py +0 -164
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/batch.py +0 -212
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/cli.py +0 -1407
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/client.py +0 -608
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/config.py +0 -260
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/diff.py +0 -220
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/errors.py +0 -34
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/external_sca.py +0 -932
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/portfolio.py +0 -225
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/pr.py +0 -505
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/reports.py +0 -342
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/scanner.py +0 -351
- package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/webhooks.py +0 -269
- package/tools/vds-scripts/sonarqube_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/sonarqube_orchestrator/tests/conftest.py +0 -134
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_batch.py +0 -419
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_config.py +0 -145
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_errors.py +0 -78
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_external_sca.py +0 -466
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_pr.py +0 -471
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_reports.py +0 -511
- package/tools/vds-scripts/sonarqube_orchestrator/tests/test_webhooks.py +0 -660
- package/tools/vds-scripts/telegram_bridge/Dockerfile +0 -44
- package/tools/vds-scripts/telegram_bridge/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/alembic/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/alembic/env.py +0 -63
- package/tools/vds-scripts/telegram_bridge/alembic/script.py.mako +0 -24
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0001_telegram_bridge_init.py +0 -193
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0002_polling_state.py +0 -48
- package/tools/vds-scripts/telegram_bridge/alembic/versions/0003_claude_session_store.py +0 -62
- package/tools/vds-scripts/telegram_bridge/alembic.ini +0 -47
- package/tools/vds-scripts/telegram_bridge/cli.py +0 -708
- package/tools/vds-scripts/telegram_bridge/daemon/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/daemon/__main__.py +0 -351
- package/tools/vds-scripts/telegram_bridge/daemon/alembic_head_check.py +0 -116
- package/tools/vds-scripts/telegram_bridge/daemon/audit.py +0 -255
- package/tools/vds-scripts/telegram_bridge/daemon/bot.py +0 -52
- package/tools/vds-scripts/telegram_bridge/daemon/bot_gateway.py +0 -114
- package/tools/vds-scripts/telegram_bridge/daemon/bus.py +0 -106
- package/tools/vds-scripts/telegram_bridge/daemon/commands.py +0 -457
- package/tools/vds-scripts/telegram_bridge/daemon/config.py +0 -129
- package/tools/vds-scripts/telegram_bridge/daemon/dispatcher.py +0 -107
- package/tools/vds-scripts/telegram_bridge/daemon/health_server.py +0 -130
- package/tools/vds-scripts/telegram_bridge/daemon/job_scheduler.py +0 -213
- package/tools/vds-scripts/telegram_bridge/daemon/lifecycle.py +0 -100
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/allowlist.py +0 -70
- package/tools/vds-scripts/telegram_bridge/daemon/middleware/offset_tracker.py +0 -49
- package/tools/vds-scripts/telegram_bridge/daemon/pg.py +0 -53
- package/tools/vds-scripts/telegram_bridge/daemon/pg_outage_watchdog.py +0 -180
- package/tools/vds-scripts/telegram_bridge/daemon/polling_state.py +0 -64
- package/tools/vds-scripts/telegram_bridge/daemon/preflight.py +0 -106
- package/tools/vds-scripts/telegram_bridge/daemon/registry_loader.py +0 -79
- package/tools/vds-scripts/telegram_bridge/daemon/runner_orchestrator.py +0 -371
- package/tools/vds-scripts/telegram_bridge/daemon/session_registry.py +0 -188
- package/tools/vds-scripts/telegram_bridge/daemon/shim_server.py +0 -331
- package/tools/vds-scripts/telegram_bridge/daemon/throttler.py +0 -501
- package/tools/vds-scripts/telegram_bridge/daemon/topic_promoter.py +0 -343
- package/tools/vds-scripts/telegram_bridge/daemon/uploads.py +0 -165
- package/tools/vds-scripts/telegram_bridge/docker-compose.server.yml +0 -37
- package/tools/vds-scripts/telegram_bridge/docker-compose.telegram.yml +0 -65
- package/tools/vds-scripts/telegram_bridge/jobs/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/jobs/archive_topics.py +0 -161
- package/tools/vds-scripts/telegram_bridge/jobs/rotate_audit.py +0 -264
- package/tools/vds-scripts/telegram_bridge/models/__init__.py +0 -27
- package/tools/vds-scripts/telegram_bridge/models/events.py +0 -123
- package/tools/vds-scripts/telegram_bridge/models/sessions.py +0 -52
- package/tools/vds-scripts/telegram_bridge/models/topics.py +0 -41
- package/tools/vds-scripts/telegram_bridge/pyproject.toml +0 -97
- package/tools/vds-scripts/telegram_bridge/registry.yaml +0 -81
- package/tools/vds-scripts/telegram_bridge/runners/__init__.py +0 -6
- package/tools/vds-scripts/telegram_bridge/runners/_base/__init__.py +0 -1
- package/tools/vds-scripts/telegram_bridge/runners/_base/protocol.py +0 -192
- package/tools/vds-scripts/telegram_bridge/runners/_base/runner.py +0 -245
- package/tools/vds-scripts/telegram_bridge/runners/_base/secret_patterns.py +0 -130
- package/tools/vds-scripts/telegram_bridge/runners/acp/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/acp/__main__.py +0 -56
- package/tools/vds-scripts/telegram_bridge/runners/acp/adapter.py +0 -272
- package/tools/vds-scripts/telegram_bridge/runners/claude/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/claude/__main__.py +0 -61
- package/tools/vds-scripts/telegram_bridge/runners/claude/adapter.py +0 -267
- package/tools/vds-scripts/telegram_bridge/runners/claude/session_store.py +0 -191
- package/tools/vds-scripts/telegram_bridge/runners/claude/upload_tool.py +0 -83
- package/tools/vds-scripts/telegram_bridge/runners/codex/__init__.py +0 -7
- package/tools/vds-scripts/telegram_bridge/runners/codex/__main__.py +0 -50
- package/tools/vds-scripts/telegram_bridge/scripts/verify-tier1.sh +0 -54
- package/tools/vds-scripts/telegram_bridge/scripts/verify-tier3-smoke.sh +0 -145
- package/tools/vds-scripts/telegram_bridge/shim.py +0 -220
- package/tools/vds-scripts/telegram_bridge/skill_content/QUALITY.md +0 -47
- package/tools/vds-scripts/telegram_bridge/skill_content/SKILL.md +0 -99
- package/tools/vds-scripts/telegram_bridge/skill_content/references/CHANGELOG.md +0 -47
- package/tools/vds-scripts/telegram_bridge/skill_content/references/agent-onboarding.md +0 -84
- package/tools/vds-scripts/telegram_bridge/skill_content/references/architecture.md +0 -116
- package/tools/vds-scripts/telegram_bridge/skill_content/references/audit-queries.md +0 -123
- package/tools/vds-scripts/telegram_bridge/skill_content/references/commands.md +0 -84
- package/tools/vds-scripts/telegram_bridge/skill_content/references/setup.md +0 -132
- package/tools/vds-scripts/telegram_bridge/skill_content/references/troubleshooting.md +0 -162
- package/tools/vds-scripts/telegram_bridge/skill_content/references/verification.md +0 -312
- package/tools/vds-scripts/telegram_bridge/skill_content/references/wave-0-spike-results.md +0 -559
- package/tools/vds-scripts/telegram_bridge/tests/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/conftest.py +0 -381
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_01_first_run_setup.py +0 -47
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_02_notifier_approver.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_03_mobile_remote_control.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_04_handoff_continuity.py +0 -88
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_05_multi_agent.py +0 -132
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_06_subagent_topic_promotion.py +0 -150
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_07_subscribe_immediate_promote.py +0 -116
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_08_file_upload_in.py +0 -215
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_09_long_block_spill.py +0 -121
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_10_streaming_throttle.py +0 -90
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_11_audit_invariant.py +0 -156
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_12_pg_outage_strict.py +0 -171
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_13_redaction_in_blob.py +0 -146
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_14_cli_status_full.py +0 -184
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_15_allowlist_drop_counter.py +0 -84
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_16_topic_title_128_cap.py +0 -73
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_17_idle_timeout_ends.py +0 -110
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_18_hang_watchdog.py +0 -102
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_19_topic_creation_race.py +0 -91
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_20_acp_resource_link.py +0 -121
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_21_softcap_archive.py +0 -247
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_22_daemon_restart_continuity.py +0 -47
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_23_audit_query_cli.py +0 -39
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_24_cold_rotation.py +0 -38
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_25_advisory_lock_failfast.py +0 -35
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_26_token_bucket_fairness.py +0 -34
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_27_silent_degradation.py +0 -36
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_28_jsonl_secondary_sink.py +0 -35
- package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_29_ro_mount.py +0 -33
- package/tools/vds-scripts/telegram_bridge/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/integration/conftest.py +0 -196
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_10_audit_forensic_query.py +0 -253
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_11_cold_rotation_roundtrip.py +0 -204
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_25_append_only_trigger.py +0 -188
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_archive_jobs.py +0 -265
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_audit_writer_invariant.py +0 -310
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_claude_session_store.py +0 -202
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_migration_roundtrip.py +0 -231
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_offset_persistence.py +0 -210
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_polling_singleton_constraint.py +0 -81
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_subscriptions.py +0 -194
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_topics_fk_chain.py +0 -216
- package/tools/vds-scripts/telegram_bridge/tests/integration/test_uploads_cas_dedup.py +0 -265
- package/tools/vds-scripts/telegram_bridge/tests/spikes/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/spikes/conftest.py +0 -5
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_10_acp_schema_drift.py +0 -259
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_11_telegram_general_topic_api.py +0 -63
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_12_last_processed_offset.py +0 -56
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_13_resume_corrupted.py +0 -77
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_1_telegram_forum_smoke.py +0 -42
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_2_telegram_file_smoke.py +0 -38
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_3_telegram_permission_smoke.py +0 -40
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_4_claude_sdk_hooks_mcp_smoke.py +0 -45
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_5_session_store_conformance.py +0 -37
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_6_claude_lock_jsonl_smoke.py +0 -51
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_7_codex_acp_smoke.py +0 -58
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_8_generic_acp_smoke.py +0 -57
- package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_9_daemon_restart_vs_container.py +0 -55
- package/tools/vds-scripts/telegram_bridge/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_adapter_full.py +0 -567
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_runner_translate.py +0 -140
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_allowlist_middleware.py +0 -101
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_archive_topics.py +0 -134
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_postgres_unavailable.py +0 -151
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_redact_existing.py +0 -134
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_factory.py +0 -98
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_gateway.py +0 -201
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_bus.py +0 -84
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_claude_adapter.py +0 -580
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_commands.py +0 -459
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_restart.py +0 -65
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_commands.py +0 -641
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_daemon_boot.py +0 -431
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_dispatcher.py +0 -198
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_health_server.py +0 -521
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_job_scheduler.py +0 -226
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_lifecycle_extra.py +0 -149
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_migration_check.py +0 -201
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_events.py +0 -72
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_sessions.py +0 -34
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_offset_tracker.py +0 -200
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_outage_watchdog.py +0 -207
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_pool.py +0 -124
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_preflight.py +0 -188
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_redaction.py +0 -193
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry.py +0 -71
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry_loader.py +0 -133
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit.py +0 -416
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit_paths.py +0 -57
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_entrypoints.py +0 -309
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_internals.py +0 -327
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_lifecycle.py +0 -309
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator.py +0 -895
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator_translate.py +0 -162
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_protocol.py +0 -156
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_reconnect.py +0 -184
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store.py +0 -264
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store_resume_validator.py +0 -109
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim.py +0 -52
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_full.py +0 -413
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_server.py +0 -498
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler.py +0 -208
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler_spill.py +0 -176
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_topic_promoter.py +0 -229
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_upload_tool.py +0 -227
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads.py +0 -337
- package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads_meta.py +0 -91
- package/tools/vds-scripts/uv.lock +0 -6603
- package/tools/vds-scripts/vds-evolution-mono.sh +0 -59
- package/tools/vds-scripts/vds-mail/SKILL.md +0 -185
- package/tools/vds-scripts/vds-mail/scripts/fetch_mail.py +0 -116
- package/tools/vds-scripts/vds-mail/scripts/search_mail.py +0 -131
- package/tools/vds-scripts/vds-mail/scripts/send_mail.py +0 -150
- package/tools/vds-scripts/vds_agent_core/CHANGELOG.md +0 -36
- package/tools/vds-scripts/vds_agent_core/README.md +0 -453
- package/tools/vds-scripts/vds_agent_core/docs/PHASE9A_ASSESSMENT.md +0 -50
- package/tools/vds-scripts/vds_agent_core/docs/embedding.md +0 -468
- package/tools/vds-scripts/vds_agent_core/pyproject.toml +0 -51
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/__init__.py +0 -29
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/__init__.py +0 -26
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/hooks.py +0 -119
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/loop.py +0 -864
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/tools.py +0 -41
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/config.py +0 -252
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/__init__.py +0 -55
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/_cascade.py +0 -143
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/budget.py +0 -353
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/cache.py +0 -373
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/embedding.py +0 -815
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/provider.py +0 -173
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/schemas.py +0 -45
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/__init__.py +0 -77
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/decorators.py +0 -258
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/jsonl_exporter.py +0 -236
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/tracer.py +0 -497
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/profiles.py +0 -2015
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/agent_id.py +0 -60
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/__init__.py +0 -13
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/credentials.py +0 -106
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/__init__.py +0 -1
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/executor.py +0 -238
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/manager.py +0 -381
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/policy.py +0 -568
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/__init__.py +0 -19
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/langgraph_runner.py +0 -102
- package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/protocols.py +0 -81
- package/tools/vds-scripts/vds_agent_core/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/conftest.py +0 -62
- package/tools/vds-scripts/vds_agent_core/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_loop_hooks_integration.py +0 -135
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_observability_integration.py +0 -246
- package/tools/vds-scripts/vds_agent_core/tests/integration/test_public_api_stability.py +0 -91
- package/tools/vds-scripts/vds_agent_core/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_call_site_parallelism.py +0 -30
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_dimension_guardrail.py +0 -25
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_drop_in_provider_extensibility.py +0 -76
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding.py +0 -393
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_cache.py +0 -302
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_extra.py +0 -696
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_subclass.py +0 -49
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_no_provider_leakage_in_env.py +0 -34
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_provider_auto_route.py +0 -48
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_runtime_log_clean.py +0 -111
- package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_w7_logic_fixes.py +0 -219
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_embedding_block_parser.py +0 -194
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_env_resolver_allowlist.py +0 -141
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profile_authorization.py +0 -158
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profiles_w3_extra.py +0 -547
- package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_real_audit_profile_compat.py +0 -129
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_for_agent.py +0 -337
- package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_w9_cascade_edges.py +0 -369
- package/tools/vds-scripts/vds_agent_core/tests/unit/security/__init__.py +0 -0
- package/tools/vds-scripts/vds_agent_core/tests/unit/security/test_credentials.py +0 -132
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop.py +0 -663
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop_coverage.py +0 -429
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_agents_hooks_defaults.py +0 -22
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget.py +0 -155
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_coverage.py +0 -264
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_tracking_only.py +0 -71
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache.py +0 -251
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache_context.py +0 -62
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_config.py +0 -155
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner.py +0 -45
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner_coverage.py +0 -98
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_llm_cache_deep.py +0 -113
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_decorators.py +0 -697
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_hooks.py +0 -217
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_exporter.py +0 -542
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_wiring.py +0 -313
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_tracer.py +0 -896
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles.py +0 -1571
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles_coverage.py +0 -444
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_provider.py +0 -316
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_schemas.py +0 -63
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_executor.py +0 -297
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager.py +0 -370
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager_coverage.py +0 -364
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_policy.py +0 -402
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_rubric.py +0 -47
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_tools.py +0 -51
- package/tools/vds-scripts/vds_agent_core/tests/unit/test_workflow_protocols.py +0 -136
- package/tools/vds-scripts/vds_cli/README.md +0 -201
- package/tools/vds-scripts/vds_cli/VERIFICATION_REPORT.md +0 -41
- package/tools/vds-scripts/vds_cli/pyproject.toml +0 -53
- package/tools/vds-scripts/vds_cli/src/vds_cli/__init__.py +0 -3
- package/tools/vds-scripts/vds_cli/src/vds_cli/assets/git-credential-helper.py +0 -235
- package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +0 -1166
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/__init__.py +0 -1
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +0 -370
- package/tools/vds-scripts/vds_cli/src/vds_cli/confluence_sync.py +0 -846
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/__init__.py +0 -7
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/funnel.py +0 -105
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/scanner.py +0 -211
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/freshness/report.py +0 -90
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs/types.py +0 -27
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_cmd.py +0 -672
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_metrics.py +0 -75
- package/tools/vds-scripts/vds_cli/src/vds_cli/docs_sync.py +0 -1171
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/__init__.py +0 -39
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/report.py +0 -439
- package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem_docs.py +0 -164
- package/tools/vds-scripts/vds_cli/src/vds_cli/env.py +0 -111
- package/tools/vds-scripts/vds_cli/src/vds_cli/env_git_helper.py +0 -281
- package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/google_sheets_orchestrator.py +0 -173
- package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -258
- package/tools/vds-scripts/vds_cli/src/vds_cli/skills_cmd.py +0 -274
- package/tools/vds-scripts/vds_cli/src/vds_cli/sync_api.py +0 -613
- package/tools/vds-scripts/vds_cli/src/vds_cli/sync_service.py +0 -283
- package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -60
- package/tools/vds-scripts/vds_cli/tests/test_env_git_helper_lifecycle.py +0 -261
- package/tools/vds-scripts/vds_cli/tests/test_git_credential_helper.py +0 -240
- package/tools/vds-scripts/vds_cli/tests/test_router_help_proxy.py +0 -43
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -245
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli_DOC004.py +0 -110
- package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync.py +0 -315
- package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync_wave7.py +0 -375
- package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_funnel.py +0 -106
- package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_scanner.py +0 -144
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd.py +0 -89
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd_wave8.py +0 -161
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_metrics.py +0 -16
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_quality_score.py +0 -61
- package/tools/vds-scripts/vds_cli/tests/unit/test_docs_sync.py +0 -417
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard.py +0 -667
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard_rendering.py +0 -143
- package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_docs.py +0 -63
- package/tools/vds-scripts/vds_cli/tests/unit/test_env.py +0 -85
- package/tools/vds-scripts/vds_cli/tests/unit/test_freshness_report.py +0 -125
- package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +0 -224
- package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -135
- package/tools/vds-scripts/vds_cli/tests/unit/test_skills_cmd.py +0 -419
- package/tools/vds-scripts/vds_cli/tests/unit/test_sync_api.py +0 -357
- package/tools/vds-scripts/vds_cli/tests/unit/test_sync_service.py +0 -170
- package/tools/vds-scripts/vds_cli/tests/verification/conftest.py +0 -51
- package/tools/vds-scripts/vds_cli/tests/verification/test_bitbucket_real.py +0 -32
- package/tools/vds-scripts/vds_cli/tests/verification/test_confluence_real.py +0 -32
- package/tools/vds-scripts/vds_cli/tests/verification/test_jira_real.py +0 -40
- package/tools/vds-scripts/vds_cli_common/README.md +0 -190
- package/tools/vds-scripts/vds_cli_common/pyproject.toml +0 -96
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/__init__.py +0 -36
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/app.py +0 -55
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/completers.py +0 -139
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/context.py +0 -201
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/env.py +0 -163
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/errors.py +0 -440
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/output.py +0 -284
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/paths.py +0 -78
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/testing.py +0 -211
- package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/version.py +0 -85
- package/tools/vds-scripts/vds_cli_common/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_cli_common/tests/test_app.py +0 -126
- package/tools/vds-scripts/vds_cli_common/tests/test_completers.py +0 -148
- package/tools/vds-scripts/vds_cli_common/tests/test_context.py +0 -192
- package/tools/vds-scripts/vds_cli_common/tests/test_env.py +0 -235
- package/tools/vds-scripts/vds_cli_common/tests/test_errors.py +0 -275
- package/tools/vds-scripts/vds_cli_common/tests/test_output.py +0 -229
- package/tools/vds-scripts/vds_cli_common/tests/test_paths.py +0 -61
- package/tools/vds-scripts/vds_cli_common/tests/test_testing.py +0 -138
- package/tools/vds-scripts/vds_cli_common/tests/test_version.py +0 -64
- package/tools/vds-scripts/vds_evolution/README.md +0 -123
- package/tools/vds-scripts/vds_evolution/collaboration/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
- package/tools/vds-scripts/vds_evolution/pyproject.toml +0 -66
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/__init__.py +0 -26
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/audit.py +0 -210
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/auto_promote.py +0 -220
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/branch_guard.py +0 -522
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/classifier.py +0 -181
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/cli.py +0 -831
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/__init__.py +0 -3
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/capability_registry.py +0 -191
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/cross_skill_detector.py +0 -180
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/integration_pattern_gen.py +0 -154
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/propagator.py +0 -99
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/router_integration.py +0 -72
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/schemas/tool-decision-matrix-schema.json +0 -50
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/skill_graph_indexer.py +0 -46
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_cross_skill_detector.py +0 -131
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_integration_pattern_gen.py +0 -94
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_propagator.py +0 -94
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_router_integration.py +0 -63
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_skill_graph_indexer.py +0 -31
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_tool_decision_matrix.py +0 -100
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.py +0 -142
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.yaml +0 -82
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/__init__.py +0 -40
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/behavioral.py +0 -232
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/ensemble_judge.py +0 -461
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/calibration-manifest.schema.json +0 -49
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/test-dataset.schema.json +0 -43
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/semantic.py +0 -290
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/structural.py +0 -297
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/hmac_binding.py +0 -233
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/models.py +0 -381
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/openspace_integration.py +0 -1300
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/promote.py +0 -327
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/reconciler.py +0 -880
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/router.py +0 -435
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/shadow.py +0 -156
- package/tools/vds-scripts/vds_evolution/src/vds_evolution/switch.py +0 -154
- package/tools/vds-scripts/vds_evolution/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/integration/test_killswitch_cycle_boundary.py +0 -837
- package/tools/vds-scripts/vds_evolution/tests/integration/test_openspace_integration.py +0 -1342
- package/tools/vds-scripts/vds_evolution/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/unit/test_classifier.py +0 -110
- package/tools/vds-scripts/vds_evolution/tests/unit/test_cli_openspace_runtime.py +0 -43
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate1.py +0 -216
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate2.py +0 -178
- package/tools/vds-scripts/vds_evolution/tests/unit/test_gate3.py +0 -221
- package/tools/vds-scripts/vds_evolution/tests/unit/test_models.py +0 -340
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/__init__.py +0 -0
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_auto_promote.py +0 -44
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_ensemble_judge.py +0 -79
- package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_hmac_binding.py +0 -86
- package/tools/vds-scripts/vds_evolution/tests/unit/test_reconciler.py +0 -315
- package/tools/vds-scripts/vds_evolution/tests/unit/test_router.py +0 -90
- package/tools/vds-scripts/vds_evolution/uv.lock +0 -797
- package/tools/vds-scripts/vds_memory_client/pyproject.toml +0 -61
- package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/__init__.py +0 -7
- package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/client.py +0 -876
- package/tools/vds-scripts/vds_memory_client/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_memory_client/tests/test_client.py +0 -821
- package/tools/vds-scripts/vds_memory_client/tests/test_dedup_threshold_phase216.py +0 -69
- package/tools/vds-scripts/vds_memory_client/tests/test_maintenance_methods_phase217.py +0 -403
- package/tools/vds-scripts/vds_memory_client/tests/test_warm_cache.py +0 -70
- package/tools/vds-scripts/vds_sync_orchestrator/pyproject.toml +0 -65
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/__init__.py +0 -22
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/discovery.py +0 -60
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/executor.py +0 -226
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/facade.py +0 -103
- package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/models.py +0 -103
- package/tools/vds-scripts/vds_sync_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_discovery.py +0 -115
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_executor.py +0 -259
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_facade.py +0 -181
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_isolation.py +0 -58
- package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_models.py +0 -172
- package/tools/vds-scripts/vidp_orchestrator/README.md +0 -31
- package/tools/vds-scripts/vidp_orchestrator/pyproject.toml +0 -50
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/__init__.py +0 -26
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/cli.py +0 -246
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/client.py +0 -104
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/config.py +0 -82
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.json +0 -3
- package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.py +0 -130
- /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/methods.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/bmad-skill-manifest.yaml +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/brain-methods.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01-session-setup.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02a-user-selected.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02b-ai-recommended.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02c-random-selection.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02d-progressive-flow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-03-technique-execution.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-04-idea-organization.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-brainstorming/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-04-ux-alignment.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-06-final-assessment.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/templates/readiness-report-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-01-gather-context.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-02-review.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-03-triage.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-04-present.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-code-review/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/architecture-decision-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/domain-complexity.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-02-context.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-03-starter.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-04-decisions.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-05-patterns.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-06-structure.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-07-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-08-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-architecture/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/templates/epics-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/domain-complexity.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/prd-purpose.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01b-continue.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02b-vision.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02c-executive-summary.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-03-success.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-04-journeys.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-05-domain.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-06-innovation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-07-project-type.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-08-scoping.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-09-functional.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-10-nonfunctional.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-11-polish.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-12-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/templates/prd-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-create-prd/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-01-init.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-02-domain-analysis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-05-technical-trends.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-06-research-synthesis.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/research.template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-domain-research/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-party-mode/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/artifact-analyzer.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/web-researcher.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/assets/prfaq-template.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/bmad-manifest.json +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/customer-faq.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/internal-faq.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/press-release.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/verdict.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/checklist.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/workflow.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-review-adversarial-general/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-review-edge-case-hunter/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/SKILL.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/domain-complexity.csv +0 -0
- /package/{tools/skills/bmad-edit-prd → skills/sdlc/bmad-validate-prd}/data/prd-purpose.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/project-types.csv +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-01-discovery.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02-format-detection.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-03-density-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-13-report-complete.md +0 -0
- /package/{tools/skills → skills/sdlc}/bmad-validate-prd/workflow.md +0 -0
|
@@ -1,1833 +0,0 @@
|
|
|
1
|
-
"""Confluence tree crawling and on-disk export helpers.
|
|
2
|
-
|
|
3
|
-
This module is intentionally dependency-light (std lib + BeautifulSoup) so the output
|
|
4
|
-
can be used as input for downstream LLM/document analysis pipelines.
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from __future__ import annotations
|
|
8
|
-
|
|
9
|
-
import contextlib
|
|
10
|
-
import hashlib
|
|
11
|
-
import json
|
|
12
|
-
import re
|
|
13
|
-
import time
|
|
14
|
-
import zipfile
|
|
15
|
-
from collections.abc import Callable
|
|
16
|
-
from concurrent.futures import Future, ThreadPoolExecutor
|
|
17
|
-
from dataclasses import dataclass, field
|
|
18
|
-
from datetime import UTC, datetime, timedelta
|
|
19
|
-
from pathlib import Path
|
|
20
|
-
from typing import TYPE_CHECKING, Any
|
|
21
|
-
from urllib.parse import parse_qs, unquote, urlparse
|
|
22
|
-
|
|
23
|
-
from bs4 import BeautifulSoup
|
|
24
|
-
|
|
25
|
-
if TYPE_CHECKING:
|
|
26
|
-
from .http import ConfluenceClient
|
|
27
|
-
|
|
28
|
-
_JIRA_KEY_RE = re.compile(r"\b[A-Z][A-Z0-9]+-\d+\b")
|
|
29
|
-
_MIME_SUFFIX_MAP: dict[str, str] = {
|
|
30
|
-
"application/json": ".json",
|
|
31
|
-
"application/msword": ".doc",
|
|
32
|
-
"application/pdf": ".pdf",
|
|
33
|
-
"application/vnd.jgraph.mxfile": ".drawio",
|
|
34
|
-
"application/vnd.ms-excel": ".xls",
|
|
35
|
-
"application/vnd.ms-powerpoint": ".ppt",
|
|
36
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": ".pptx",
|
|
37
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ".xlsx",
|
|
38
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": ".docx",
|
|
39
|
-
"image/gif": ".gif",
|
|
40
|
-
"image/jpeg": ".jpg",
|
|
41
|
-
"image/png": ".png",
|
|
42
|
-
"image/svg+xml": ".svg",
|
|
43
|
-
"text/csv": ".csv",
|
|
44
|
-
"text/plain": ".txt",
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def _now_iso() -> str:
|
|
49
|
-
return datetime.now(UTC).isoformat()
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
def _sha256_bytes(data: bytes) -> str:
|
|
53
|
-
return hashlib.sha256(data).hexdigest()
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def _sha256_text(text: str) -> str:
|
|
57
|
-
return _sha256_bytes(text.encode("utf-8"))
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
def _parse_iso_timestamp(value: str | None) -> datetime | None:
|
|
61
|
-
if not value:
|
|
62
|
-
return None
|
|
63
|
-
cleaned = value.strip()
|
|
64
|
-
if not cleaned:
|
|
65
|
-
return None
|
|
66
|
-
if cleaned.endswith("Z"):
|
|
67
|
-
cleaned = f"{cleaned[:-1]}+00:00"
|
|
68
|
-
try:
|
|
69
|
-
parsed = datetime.fromisoformat(cleaned)
|
|
70
|
-
except ValueError:
|
|
71
|
-
return None
|
|
72
|
-
if parsed.tzinfo is None:
|
|
73
|
-
return parsed.replace(tzinfo=UTC)
|
|
74
|
-
return parsed.astimezone(UTC)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
def _safe_filename(name: str) -> str:
|
|
78
|
-
# Preserve unicode for VN titles, but remove path separators + control chars.
|
|
79
|
-
cleaned = name.replace("/", "-").replace("\\", "-").replace("\0", "")
|
|
80
|
-
cleaned = re.sub(r"[\r\n\t]+", " ", cleaned).strip()
|
|
81
|
-
return cleaned or "untitled"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
def _normalise_suffix(value: str) -> str:
|
|
85
|
-
cleaned = (value or "").strip().lower()
|
|
86
|
-
if not cleaned:
|
|
87
|
-
return ""
|
|
88
|
-
return cleaned if cleaned.startswith(".") else f".{cleaned}"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
def _guess_attachment_suffix(attachment: dict[str, Any]) -> str | None:
|
|
92
|
-
extensions = attachment.get("extensions") or {}
|
|
93
|
-
metadata = attachment.get("metadata") or {}
|
|
94
|
-
|
|
95
|
-
if isinstance(extensions, dict):
|
|
96
|
-
ext = extensions.get("fileExtension") or extensions.get("file_extension")
|
|
97
|
-
if isinstance(ext, str) and ext.strip():
|
|
98
|
-
normalised = _normalise_suffix(ext)
|
|
99
|
-
return normalised if normalised else None
|
|
100
|
-
|
|
101
|
-
media_type = None
|
|
102
|
-
if isinstance(extensions, dict):
|
|
103
|
-
media_type = extensions.get("mediaType") or extensions.get("media_type")
|
|
104
|
-
if not media_type and isinstance(metadata, dict):
|
|
105
|
-
media_type = metadata.get("mediaType") or metadata.get("media_type")
|
|
106
|
-
|
|
107
|
-
if isinstance(media_type, str) and media_type.strip():
|
|
108
|
-
mapped = _MIME_SUFFIX_MAP.get(media_type.strip().lower())
|
|
109
|
-
if mapped:
|
|
110
|
-
return mapped
|
|
111
|
-
return None
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
def _safe_attachment_filename(attachment_id: str, title: str, *, fallback_suffix: str | None = None) -> str:
|
|
115
|
-
safe_title = _safe_filename(title)
|
|
116
|
-
path = Path(safe_title)
|
|
117
|
-
stem = path.stem or "attachment"
|
|
118
|
-
suffix = path.suffix
|
|
119
|
-
if not suffix and fallback_suffix:
|
|
120
|
-
suffix = _normalise_suffix(fallback_suffix)
|
|
121
|
-
|
|
122
|
-
# Keep filenames under typical filesystem limits (255 bytes). We preserve the
|
|
123
|
-
# attachment id prefix for stability and trim the human title if needed.
|
|
124
|
-
max_stem_length = 180
|
|
125
|
-
if len(stem) > max_stem_length:
|
|
126
|
-
stem = stem[:max_stem_length].rstrip()
|
|
127
|
-
safe_title = f"{stem}{suffix}"
|
|
128
|
-
return f"{attachment_id}_{safe_title}"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
def _escape_cql(value: str) -> str:
|
|
132
|
-
return value.replace("\\", "\\\\").replace('"', '\\"')
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
def resolve_page_ref(page_ref: str, http: ConfluenceClient) -> str:
|
|
136
|
-
"""Resolve a page reference to a numeric page ID.
|
|
137
|
-
|
|
138
|
-
Supported forms:
|
|
139
|
-
- numeric ID: "74014717"
|
|
140
|
-
- viewpage: ".../pages/viewpage.action?pageId=74014717"
|
|
141
|
-
- display URL: ".../display/TDOV/13.02.10.+BRD"
|
|
142
|
-
"""
|
|
143
|
-
page_ref = (page_ref or "").strip()
|
|
144
|
-
if not page_ref:
|
|
145
|
-
raise ValueError("page_ref is empty")
|
|
146
|
-
|
|
147
|
-
if page_ref.isdigit():
|
|
148
|
-
return page_ref
|
|
149
|
-
|
|
150
|
-
parsed = urlparse(page_ref)
|
|
151
|
-
if parsed.query:
|
|
152
|
-
qs = parse_qs(parsed.query)
|
|
153
|
-
page_ids = qs.get("pageId") or qs.get("pageid")
|
|
154
|
-
if page_ids and page_ids[0].isdigit():
|
|
155
|
-
return page_ids[0]
|
|
156
|
-
|
|
157
|
-
# /display/<SPACE>/<TITLE>
|
|
158
|
-
match = re.search(r"/display/([^/]+)/(.+)$", parsed.path or "")
|
|
159
|
-
if match:
|
|
160
|
-
space = unquote(match.group(1))
|
|
161
|
-
# Confluence "display" URLs often encode spaces as '+'
|
|
162
|
-
title = unquote(match.group(2)).replace("+", " ").strip()
|
|
163
|
-
cql = f'space="{_escape_cql(space)}" and title="{_escape_cql(title)}" and type=page'
|
|
164
|
-
result = http.search_cql(cql, limit=5)
|
|
165
|
-
results = result.get("results", []) if isinstance(result, dict) else []
|
|
166
|
-
for item in results:
|
|
167
|
-
if not isinstance(item, dict):
|
|
168
|
-
continue
|
|
169
|
-
# Confluence CQL results usually wrap content under `content`.
|
|
170
|
-
raw_id = item.get("id")
|
|
171
|
-
if raw_id is None and isinstance(item.get("content"), dict):
|
|
172
|
-
raw_id = item["content"].get("id")
|
|
173
|
-
if raw_id is not None and str(raw_id).isdigit():
|
|
174
|
-
return str(raw_id)
|
|
175
|
-
|
|
176
|
-
raise ValueError(f"Unable to resolve display URL to page ID (space={space!r}, title={title!r})")
|
|
177
|
-
|
|
178
|
-
raise ValueError(f"Unsupported page reference: {page_ref}")
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
@dataclass(slots=True)
|
|
182
|
-
class CrawlOptions:
|
|
183
|
-
max_depth: int = 3
|
|
184
|
-
include_attachments: bool = True
|
|
185
|
-
emit_corpus: bool = False
|
|
186
|
-
emit_link_graph: bool = False
|
|
187
|
-
emit_tables: bool = False
|
|
188
|
-
emit_mentions: bool = False
|
|
189
|
-
body_format: str = "view"
|
|
190
|
-
chunk_max_chars: int | None = 4000
|
|
191
|
-
resume: bool = False
|
|
192
|
-
max_nodes: int | None = 500
|
|
193
|
-
bundle: bool = False
|
|
194
|
-
page_concurrency: int = 5
|
|
195
|
-
staged_mode: str = "off"
|
|
196
|
-
incremental_cql: bool = True
|
|
197
|
-
incremental_overlap_minutes: int = 5
|
|
198
|
-
full_reconciliation_interval_days: int = 7
|
|
199
|
-
rate_limit_budget: int = 50_000
|
|
200
|
-
runtime_event_sink: Callable[[str, dict[str, Any]], None] | None = None
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
def _emit_runtime_event(options: CrawlOptions, event: str, **payload: Any) -> None:
|
|
204
|
-
if not callable(options.runtime_event_sink):
|
|
205
|
-
return
|
|
206
|
-
try:
|
|
207
|
-
options.runtime_event_sink(event, payload)
|
|
208
|
-
except Exception:
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
def _create_bundle_zip(output_dir: Path, root_page_id: str, manifest_path: Path) -> Path:
|
|
213
|
-
"""Create a zip bundle of all crawl artifacts for offline handoff (TSK-189)."""
|
|
214
|
-
timestamp = datetime.now(UTC).strftime("%Y%m%d_%H%M%S")
|
|
215
|
-
bundle_name = f"crawl_bundle_{root_page_id}_{timestamp}.zip"
|
|
216
|
-
bundle_path = output_dir / bundle_name
|
|
217
|
-
|
|
218
|
-
with zipfile.ZipFile(bundle_path, "w", zipfile.ZIP_DEFLATED) as zf:
|
|
219
|
-
# Add all HTML files
|
|
220
|
-
for html_file in output_dir.glob("*.html"):
|
|
221
|
-
zf.write(html_file, html_file.name)
|
|
222
|
-
|
|
223
|
-
# Add attachments directory
|
|
224
|
-
attachments_dir = output_dir / "attachments"
|
|
225
|
-
if attachments_dir.exists():
|
|
226
|
-
for att_file in attachments_dir.iterdir():
|
|
227
|
-
if att_file.is_file():
|
|
228
|
-
zf.write(att_file, f"attachments/{att_file.name}")
|
|
229
|
-
|
|
230
|
-
# Add artifact files
|
|
231
|
-
artifact_files = [
|
|
232
|
-
"corpus.jsonl",
|
|
233
|
-
"link-graph.json",
|
|
234
|
-
"tables.jsonl",
|
|
235
|
-
"mentions.jsonl",
|
|
236
|
-
"crawl_state.json",
|
|
237
|
-
]
|
|
238
|
-
for artifact_name in artifact_files:
|
|
239
|
-
artifact_path = output_dir / artifact_name
|
|
240
|
-
if artifact_path.exists():
|
|
241
|
-
zf.write(artifact_path, artifact_name)
|
|
242
|
-
|
|
243
|
-
# Add manifest
|
|
244
|
-
if manifest_path.exists():
|
|
245
|
-
zf.write(manifest_path, manifest_path.name)
|
|
246
|
-
|
|
247
|
-
return bundle_path
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
@dataclass(slots=True)
|
|
251
|
-
class CrawlState:
|
|
252
|
-
"""Persistent crawl state for resume/incremental crawling (TSK-188)."""
|
|
253
|
-
|
|
254
|
-
root_page_id: str
|
|
255
|
-
body_format: str
|
|
256
|
-
visited_pages: dict[str, dict[str, Any]] # page_id -> {version, html_sha256, visited_at}
|
|
257
|
-
pending_queue: list[tuple[str, str | None, int]] # [(page_id, parent_id, depth), ...]
|
|
258
|
-
started_at: str
|
|
259
|
-
last_updated_at: str
|
|
260
|
-
completed: bool = False
|
|
261
|
-
last_sync_timestamp: str | None = None
|
|
262
|
-
last_full_reconciliation_timestamp: str | None = None
|
|
263
|
-
run_diagnostics: dict[str, Any] = field(default_factory=dict)
|
|
264
|
-
|
|
265
|
-
def to_dict(self) -> dict[str, Any]:
|
|
266
|
-
"""Serialize state to JSON-compatible dict."""
|
|
267
|
-
return {
|
|
268
|
-
"root_page_id": self.root_page_id,
|
|
269
|
-
"body_format": self.body_format,
|
|
270
|
-
"visited_pages": self.visited_pages,
|
|
271
|
-
"pending_queue": [list(item) for item in self.pending_queue],
|
|
272
|
-
"started_at": self.started_at,
|
|
273
|
-
"last_updated_at": self.last_updated_at,
|
|
274
|
-
"completed": self.completed,
|
|
275
|
-
"last_sync_timestamp": self.last_sync_timestamp,
|
|
276
|
-
"last_full_reconciliation_timestamp": self.last_full_reconciliation_timestamp,
|
|
277
|
-
"run_diagnostics": self.run_diagnostics,
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@classmethod
|
|
281
|
-
def from_dict(cls, data: dict[str, Any]) -> CrawlState:
|
|
282
|
-
"""Deserialize state from JSON-compatible dict."""
|
|
283
|
-
return cls(
|
|
284
|
-
root_page_id=data["root_page_id"],
|
|
285
|
-
body_format=data.get("body_format", "view"),
|
|
286
|
-
visited_pages=data.get("visited_pages", {}),
|
|
287
|
-
pending_queue=[tuple(item) for item in data.get("pending_queue", [])],
|
|
288
|
-
started_at=data.get("started_at", _now_iso()),
|
|
289
|
-
last_updated_at=data.get("last_updated_at", _now_iso()),
|
|
290
|
-
completed=data.get("completed", False),
|
|
291
|
-
last_sync_timestamp=data.get("last_sync_timestamp"),
|
|
292
|
-
last_full_reconciliation_timestamp=data.get("last_full_reconciliation_timestamp"),
|
|
293
|
-
run_diagnostics=data.get("run_diagnostics", {}),
|
|
294
|
-
)
|
|
295
|
-
|
|
296
|
-
def is_page_unchanged(self, page_id: str, version: int | None, html_sha256: str | None) -> bool:
|
|
297
|
-
"""Check if a page is unchanged since last crawl."""
|
|
298
|
-
if page_id not in self.visited_pages:
|
|
299
|
-
return False
|
|
300
|
-
prev = self.visited_pages[page_id]
|
|
301
|
-
prev_version = prev.get("version")
|
|
302
|
-
prev_hash = prev.get("html_sha256")
|
|
303
|
-
# If both version and hash match, page is unchanged
|
|
304
|
-
if prev_version is not None and version is not None and prev_version == version:
|
|
305
|
-
return True
|
|
306
|
-
return bool(prev_hash is not None and html_sha256 is not None and prev_hash == html_sha256)
|
|
307
|
-
|
|
308
|
-
def record_page(self, page_id: str, version: int | None, html_sha256: str | None) -> None:
|
|
309
|
-
"""Record a visited page."""
|
|
310
|
-
self.visited_pages[page_id] = {
|
|
311
|
-
"version": version,
|
|
312
|
-
"html_sha256": html_sha256,
|
|
313
|
-
"visited_at": _now_iso(),
|
|
314
|
-
}
|
|
315
|
-
self.last_updated_at = _now_iso()
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
@dataclass(slots=True)
|
|
319
|
-
class _FetchedPage:
|
|
320
|
-
page_id: str
|
|
321
|
-
parent_id: str | None
|
|
322
|
-
depth: int
|
|
323
|
-
status: str # fetched|unchanged|error
|
|
324
|
-
page_payload: dict[str, Any] | None = None
|
|
325
|
-
version_payload: dict[str, Any] | None = None
|
|
326
|
-
children: list[tuple[str, str | None, int]] = field(default_factory=list)
|
|
327
|
-
error: str | None = None
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
def _load_crawl_state(state_path: Path) -> CrawlState | None:
|
|
331
|
-
"""Load crawl state from disk if it exists."""
|
|
332
|
-
if not state_path.exists():
|
|
333
|
-
return None
|
|
334
|
-
try:
|
|
335
|
-
data = json.loads(state_path.read_text(encoding="utf-8"))
|
|
336
|
-
return CrawlState.from_dict(data)
|
|
337
|
-
except (json.JSONDecodeError, KeyError, TypeError):
|
|
338
|
-
return None
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
def _save_crawl_state(state: CrawlState, state_path: Path) -> None:
|
|
342
|
-
"""Persist crawl state to disk."""
|
|
343
|
-
state.last_updated_at = _now_iso()
|
|
344
|
-
state_path.write_text(json.dumps(state.to_dict(), ensure_ascii=False, indent=2), encoding="utf-8")
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
def _normalise_body_format(value: str | None) -> str:
|
|
348
|
-
normalised = (value or "view").strip().lower().replace("-", "_")
|
|
349
|
-
if normalised in {"view", "storage", "export_view"}:
|
|
350
|
-
return normalised
|
|
351
|
-
raise ValueError(f"Unsupported body format: {value!r} (expected: view|export_view|storage)")
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
def _normalise_page_concurrency(value: int | None) -> int:
|
|
355
|
-
if value is None:
|
|
356
|
-
return 5
|
|
357
|
-
return max(1, int(value))
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
def _normalise_staged_mode(value: str | None) -> str:
|
|
361
|
-
normalised = (value or "off").strip().lower().replace("-", "_")
|
|
362
|
-
if normalised in {"off", "structure_first"}:
|
|
363
|
-
return normalised
|
|
364
|
-
raise ValueError(f"Unsupported staged mode: {value!r} (expected: off|structure_first)")
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
def _split_text_preserving_words(text: str, max_chars: int) -> list[str]:
|
|
368
|
-
"""Split a long string into <= max_chars chunks, preferring whitespace boundaries."""
|
|
369
|
-
stripped = (text or "").strip()
|
|
370
|
-
if not stripped:
|
|
371
|
-
return []
|
|
372
|
-
if max_chars <= 0:
|
|
373
|
-
return [stripped]
|
|
374
|
-
if len(stripped) <= max_chars:
|
|
375
|
-
return [stripped]
|
|
376
|
-
|
|
377
|
-
words = stripped.split()
|
|
378
|
-
parts: list[str] = []
|
|
379
|
-
current: list[str] = []
|
|
380
|
-
current_len = 0
|
|
381
|
-
|
|
382
|
-
def flush() -> None:
|
|
383
|
-
nonlocal current, current_len
|
|
384
|
-
if not current:
|
|
385
|
-
return
|
|
386
|
-
parts.append(" ".join(current))
|
|
387
|
-
current = []
|
|
388
|
-
current_len = 0
|
|
389
|
-
|
|
390
|
-
for word in words:
|
|
391
|
-
if not current:
|
|
392
|
-
current = [word]
|
|
393
|
-
current_len = len(word)
|
|
394
|
-
elif current_len + 1 + len(word) <= max_chars:
|
|
395
|
-
current.append(word)
|
|
396
|
-
current_len += 1 + len(word)
|
|
397
|
-
else:
|
|
398
|
-
flush()
|
|
399
|
-
if len(word) <= max_chars:
|
|
400
|
-
current = [word]
|
|
401
|
-
current_len = len(word)
|
|
402
|
-
else:
|
|
403
|
-
# Pathological case: a single token exceeds max_chars; hard-split.
|
|
404
|
-
for offset in range(0, len(word), max_chars):
|
|
405
|
-
parts.append(word[offset : offset + max_chars])
|
|
406
|
-
|
|
407
|
-
flush()
|
|
408
|
-
return parts
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
def _pack_segments(segments: list[str], max_chars: int) -> list[str]:
|
|
412
|
-
if max_chars <= 0:
|
|
413
|
-
joined = "\n".join([seg for seg in segments if seg.strip()]).strip()
|
|
414
|
-
return [joined] if joined else []
|
|
415
|
-
|
|
416
|
-
packed: list[str] = []
|
|
417
|
-
current: list[str] = []
|
|
418
|
-
current_len = 0
|
|
419
|
-
|
|
420
|
-
def flush() -> None:
|
|
421
|
-
nonlocal current, current_len
|
|
422
|
-
if not current:
|
|
423
|
-
return
|
|
424
|
-
packed.append("\n".join(current).strip())
|
|
425
|
-
current = []
|
|
426
|
-
current_len = 0
|
|
427
|
-
|
|
428
|
-
for seg in segments:
|
|
429
|
-
seg = (seg or "").strip()
|
|
430
|
-
if not seg:
|
|
431
|
-
continue
|
|
432
|
-
sep_len = 1 if current else 0 # newline
|
|
433
|
-
if not current or current_len + sep_len + len(seg) <= max_chars:
|
|
434
|
-
if current:
|
|
435
|
-
current_len += 1
|
|
436
|
-
current.append(seg)
|
|
437
|
-
current_len += len(seg)
|
|
438
|
-
continue
|
|
439
|
-
|
|
440
|
-
flush()
|
|
441
|
-
current = [seg]
|
|
442
|
-
current_len = len(seg)
|
|
443
|
-
|
|
444
|
-
flush()
|
|
445
|
-
return [chunk for chunk in packed if chunk.strip()]
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
def _extract_target_page_id(target_url: str | None) -> str | None:
|
|
449
|
-
if not target_url:
|
|
450
|
-
return None
|
|
451
|
-
|
|
452
|
-
parsed = urlparse(target_url)
|
|
453
|
-
if parsed.query:
|
|
454
|
-
qs = parse_qs(parsed.query)
|
|
455
|
-
for key, values in qs.items():
|
|
456
|
-
if key.lower() != "pageid" or not values:
|
|
457
|
-
continue
|
|
458
|
-
candidate = values[0]
|
|
459
|
-
if isinstance(candidate, str) and candidate.isdigit():
|
|
460
|
-
return candidate
|
|
461
|
-
|
|
462
|
-
match = re.search(r"/pages/(\d+)(?:/|$)", parsed.path or "")
|
|
463
|
-
if match:
|
|
464
|
-
return match.group(1)
|
|
465
|
-
return None
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
def _classify_target_type(target_url: str | None) -> str | None:
|
|
469
|
-
if not target_url:
|
|
470
|
-
return None
|
|
471
|
-
|
|
472
|
-
url = target_url.strip()
|
|
473
|
-
if not url:
|
|
474
|
-
return None
|
|
475
|
-
if url.startswith("mailto:"):
|
|
476
|
-
return "email"
|
|
477
|
-
|
|
478
|
-
parsed = urlparse(url)
|
|
479
|
-
host = (parsed.netloc or "").lower()
|
|
480
|
-
path = parsed.path or ""
|
|
481
|
-
|
|
482
|
-
if "/display/" in path or "viewpage.action" in path or re.search(r"/pages/\d+(?:/|$)", path):
|
|
483
|
-
return "confluence_page"
|
|
484
|
-
if "jira" in host or "/browse/" in path:
|
|
485
|
-
return "jira"
|
|
486
|
-
if "bitbucket" in host or "/scm/" in path:
|
|
487
|
-
return "bitbucket"
|
|
488
|
-
if parsed.scheme in {"http", "https"}:
|
|
489
|
-
return "external"
|
|
490
|
-
return "external"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
def _extract_jira_key_from_url(url: str) -> str | None:
|
|
494
|
-
parsed = urlparse(url)
|
|
495
|
-
match = re.search(r"/browse/([A-Z][A-Z0-9]+-\d+)", parsed.path or "")
|
|
496
|
-
if match:
|
|
497
|
-
return match.group(1)
|
|
498
|
-
return None
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
def _extract_links(html: str, *, base_url: str | None = None) -> list[dict[str, Any]]:
|
|
502
|
-
soup = BeautifulSoup(html, "html.parser")
|
|
503
|
-
links: list[dict[str, Any]] = []
|
|
504
|
-
for a in soup.find_all("a"):
|
|
505
|
-
href = a.get("href")
|
|
506
|
-
if not href:
|
|
507
|
-
continue
|
|
508
|
-
href = str(href).strip()
|
|
509
|
-
if not href:
|
|
510
|
-
continue
|
|
511
|
-
text = a.get_text(" ", strip=True) or None
|
|
512
|
-
links.append({"href": href, "text": text})
|
|
513
|
-
if not base_url:
|
|
514
|
-
return links
|
|
515
|
-
|
|
516
|
-
normalized: list[dict[str, Any]] = []
|
|
517
|
-
base = base_url.rstrip("/")
|
|
518
|
-
for entry in links:
|
|
519
|
-
href = entry["href"]
|
|
520
|
-
if href.startswith("#"):
|
|
521
|
-
continue
|
|
522
|
-
if href.startswith(("http://", "https://")):
|
|
523
|
-
url = href
|
|
524
|
-
elif href.startswith("/"):
|
|
525
|
-
url = f"{base}{href}"
|
|
526
|
-
else:
|
|
527
|
-
# best-effort: keep as-is (could be relative to current page)
|
|
528
|
-
url = href
|
|
529
|
-
# Drop fragments for canonicalization
|
|
530
|
-
parsed = urlparse(url)
|
|
531
|
-
url = parsed._replace(fragment="").geturl()
|
|
532
|
-
normalized.append({"url": url, "text": entry.get("text")})
|
|
533
|
-
return normalized
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
def _chunk_html_by_headings(html: str, *, max_chars: int | None = None) -> list[dict[str, Any]]:
|
|
537
|
-
"""Chunk HTML into heading-scoped blocks for JSONL corpus output."""
|
|
538
|
-
soup = BeautifulSoup(html, "html.parser")
|
|
539
|
-
|
|
540
|
-
chunks: list[dict[str, Any]] = []
|
|
541
|
-
heading_stack: list[str] = []
|
|
542
|
-
buffer: list[str] = []
|
|
543
|
-
|
|
544
|
-
def flush() -> None:
|
|
545
|
-
nonlocal buffer
|
|
546
|
-
lines = [line for line in buffer if line.strip()]
|
|
547
|
-
buffer = []
|
|
548
|
-
if not lines:
|
|
549
|
-
return
|
|
550
|
-
|
|
551
|
-
segments: list[str] = []
|
|
552
|
-
max_limit = max_chars if isinstance(max_chars, int) and max_chars > 0 else None
|
|
553
|
-
for line in lines:
|
|
554
|
-
if max_limit and len(line) > max_limit:
|
|
555
|
-
segments.extend(_split_text_preserving_words(line, max_limit))
|
|
556
|
-
else:
|
|
557
|
-
segments.append(line.strip())
|
|
558
|
-
|
|
559
|
-
if max_limit is None:
|
|
560
|
-
text = "\n".join([seg for seg in segments if seg.strip()]).strip()
|
|
561
|
-
if text:
|
|
562
|
-
chunks.append({"heading_path": list(heading_stack), "text": text, "ordinal": 0})
|
|
563
|
-
return
|
|
564
|
-
|
|
565
|
-
for ordinal, text in enumerate(_pack_segments(segments, max_limit)):
|
|
566
|
-
chunks.append({"heading_path": list(heading_stack), "text": text, "ordinal": ordinal})
|
|
567
|
-
|
|
568
|
-
for el in soup.find_all(["h1", "h2", "h3", "h4", "h5", "h6", "p", "li", "pre"]):
|
|
569
|
-
name = el.name.lower()
|
|
570
|
-
if name.startswith("h"):
|
|
571
|
-
flush()
|
|
572
|
-
level = int(name[1])
|
|
573
|
-
title = el.get_text(" ", strip=True)
|
|
574
|
-
if not title:
|
|
575
|
-
continue
|
|
576
|
-
heading_stack[:] = heading_stack[: max(0, level - 1)]
|
|
577
|
-
heading_stack.append(title)
|
|
578
|
-
continue
|
|
579
|
-
|
|
580
|
-
text = el.get_text(" ", strip=True)
|
|
581
|
-
if not text:
|
|
582
|
-
continue
|
|
583
|
-
buffer.append(text)
|
|
584
|
-
|
|
585
|
-
flush()
|
|
586
|
-
return chunks
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
def _extract_tables(html: str) -> list[dict[str, Any]]:
|
|
590
|
-
soup = BeautifulSoup(html, "html.parser")
|
|
591
|
-
extracted: list[dict[str, Any]] = []
|
|
592
|
-
|
|
593
|
-
for index, table in enumerate(soup.find_all("table")):
|
|
594
|
-
headers: list[str] | None = None
|
|
595
|
-
rows: list[list[str]] = []
|
|
596
|
-
|
|
597
|
-
# Prefer explicit <thead> headers when present.
|
|
598
|
-
thead = table.find("thead")
|
|
599
|
-
if thead:
|
|
600
|
-
head_row = thead.find("tr")
|
|
601
|
-
if head_row:
|
|
602
|
-
header_cells = head_row.find_all(["th", "td"])
|
|
603
|
-
header_texts = [cell.get_text(" ", strip=True) for cell in header_cells]
|
|
604
|
-
headers = [h for h in header_texts if h]
|
|
605
|
-
|
|
606
|
-
# Extract all row cells.
|
|
607
|
-
for tr in table.find_all("tr"):
|
|
608
|
-
cells = tr.find_all(["th", "td"])
|
|
609
|
-
if not cells:
|
|
610
|
-
continue
|
|
611
|
-
row = [cell.get_text(" ", strip=True) for cell in cells]
|
|
612
|
-
row = [cell for cell in row if cell]
|
|
613
|
-
if row:
|
|
614
|
-
rows.append(row)
|
|
615
|
-
|
|
616
|
-
# If we did not find a <thead>, treat the first row with <th> as headers.
|
|
617
|
-
if headers is None and rows:
|
|
618
|
-
first_tr = table.find("tr")
|
|
619
|
-
if first_tr and first_tr.find("th"):
|
|
620
|
-
headers = rows[0]
|
|
621
|
-
rows = rows[1:]
|
|
622
|
-
|
|
623
|
-
extracted.append(
|
|
624
|
-
{
|
|
625
|
-
"table_index": index,
|
|
626
|
-
"headers": headers,
|
|
627
|
-
"rows": rows,
|
|
628
|
-
"row_count": len(rows),
|
|
629
|
-
"col_count": max((len(row) for row in rows), default=0),
|
|
630
|
-
}
|
|
631
|
-
)
|
|
632
|
-
|
|
633
|
-
return extracted
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
def _extract_mentions(html: str, *, base_url: str | None = None) -> list[dict[str, Any]]:
|
|
637
|
-
soup = BeautifulSoup(html, "html.parser")
|
|
638
|
-
extracted: list[dict[str, Any]] = []
|
|
639
|
-
|
|
640
|
-
# 1) Link-based mentions (already normalized by base_url when provided).
|
|
641
|
-
for link in _extract_links(html, base_url=base_url):
|
|
642
|
-
url = str(link.get("url") or "").strip()
|
|
643
|
-
if not url:
|
|
644
|
-
continue
|
|
645
|
-
|
|
646
|
-
mention_type = _classify_target_type(url)
|
|
647
|
-
if mention_type == "confluence_page":
|
|
648
|
-
value = _extract_target_page_id(url) or url
|
|
649
|
-
elif mention_type == "jira":
|
|
650
|
-
value = _extract_jira_key_from_url(url) or url
|
|
651
|
-
elif mention_type == "email":
|
|
652
|
-
value = url.removeprefix("mailto:").strip() or url
|
|
653
|
-
else:
|
|
654
|
-
value = url
|
|
655
|
-
|
|
656
|
-
extracted.append(
|
|
657
|
-
{
|
|
658
|
-
"type": mention_type or "external",
|
|
659
|
-
"value": value,
|
|
660
|
-
"url": url,
|
|
661
|
-
"anchor_text": link.get("text"),
|
|
662
|
-
"source": "link",
|
|
663
|
-
}
|
|
664
|
-
)
|
|
665
|
-
|
|
666
|
-
# 2) Plain-text Jira keys (best-effort).
|
|
667
|
-
plain_text = soup.get_text(" ", strip=True)
|
|
668
|
-
for key in sorted(set(_JIRA_KEY_RE.findall(plain_text or ""))):
|
|
669
|
-
extracted.append(
|
|
670
|
-
{
|
|
671
|
-
"type": "jira_key",
|
|
672
|
-
"value": key,
|
|
673
|
-
"url": None,
|
|
674
|
-
"anchor_text": None,
|
|
675
|
-
"source": "text",
|
|
676
|
-
}
|
|
677
|
-
)
|
|
678
|
-
|
|
679
|
-
# Deduplicate mentions by stable key and keep deterministic ordering.
|
|
680
|
-
seen: set[tuple[str, str, str | None]] = set()
|
|
681
|
-
unique: list[dict[str, Any]] = []
|
|
682
|
-
for entry in extracted:
|
|
683
|
-
mention_type = str(entry.get("type") or "").strip() or "external"
|
|
684
|
-
value = str(entry.get("value") or "").strip()
|
|
685
|
-
url = entry.get("url")
|
|
686
|
-
url = str(url).strip() if isinstance(url, str) else None
|
|
687
|
-
if not value:
|
|
688
|
-
continue
|
|
689
|
-
key = (mention_type, value, url)
|
|
690
|
-
if key in seen:
|
|
691
|
-
continue
|
|
692
|
-
seen.add(key)
|
|
693
|
-
unique.append({**entry, "type": mention_type, "value": value, "url": url})
|
|
694
|
-
|
|
695
|
-
unique.sort(key=lambda m: (m.get("type") or "", m.get("value") or "", m.get("url") or ""))
|
|
696
|
-
return unique
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
def crawl_tree_to_disk(
|
|
700
|
-
*,
|
|
701
|
-
http: ConfluenceClient,
|
|
702
|
-
root_ref: str,
|
|
703
|
-
output_dir: Path,
|
|
704
|
-
options: CrawlOptions,
|
|
705
|
-
manifest_path: Path | None = None,
|
|
706
|
-
) -> dict[str, Any]:
|
|
707
|
-
"""Crawl a Confluence page tree and download content/attachments to disk.
|
|
708
|
-
|
|
709
|
-
Supports resume/incremental crawling (TSK-188):
|
|
710
|
-
- resume=True: Load state from previous run, skip unchanged pages
|
|
711
|
-
- max_nodes: Limit total pages processed (safety for large trees)
|
|
712
|
-
"""
|
|
713
|
-
body_format = _normalise_body_format(options.body_format)
|
|
714
|
-
page_concurrency = _normalise_page_concurrency(options.page_concurrency)
|
|
715
|
-
staged_mode = _normalise_staged_mode(options.staged_mode)
|
|
716
|
-
use_structure_first = staged_mode == "structure_first"
|
|
717
|
-
chunk_max_chars = options.chunk_max_chars if isinstance(options.chunk_max_chars, int) else None
|
|
718
|
-
resolved_root_id = resolve_page_ref(root_ref, http)
|
|
719
|
-
output_dir = output_dir.resolve()
|
|
720
|
-
output_dir.mkdir(parents=True, exist_ok=True)
|
|
721
|
-
attachments_dir = output_dir / "attachments"
|
|
722
|
-
attachments_dir.mkdir(exist_ok=True)
|
|
723
|
-
resolved_manifest_path = manifest_path or (output_dir / "crawl_manifest.json")
|
|
724
|
-
|
|
725
|
-
def _meta_from_existing_html(
|
|
726
|
-
*,
|
|
727
|
-
page_id: str,
|
|
728
|
-
parent_id: str | None,
|
|
729
|
-
depth: int,
|
|
730
|
-
page_payload: dict[str, Any] | None,
|
|
731
|
-
) -> dict[str, Any]:
|
|
732
|
-
html_candidates = sorted(output_dir.glob(f"{page_id}_*.html"))
|
|
733
|
-
html_path = html_candidates[0] if html_candidates else None
|
|
734
|
-
title = None
|
|
735
|
-
page_url = None
|
|
736
|
-
page_version = None
|
|
737
|
-
page_updated = None
|
|
738
|
-
space_key = None
|
|
739
|
-
if isinstance(page_payload, dict):
|
|
740
|
-
raw_title = page_payload.get("title")
|
|
741
|
-
if raw_title:
|
|
742
|
-
title = str(raw_title)
|
|
743
|
-
links = page_payload.get("_links")
|
|
744
|
-
if isinstance(links, dict):
|
|
745
|
-
base_url = str(links.get("base") or "")
|
|
746
|
-
web_ui = str(links.get("webui") or "")
|
|
747
|
-
page_url = f"{base_url}{web_ui}" if base_url and web_ui else None
|
|
748
|
-
version = page_payload.get("version")
|
|
749
|
-
if isinstance(version, dict):
|
|
750
|
-
page_version = version.get("number")
|
|
751
|
-
page_updated = version.get("when")
|
|
752
|
-
space = page_payload.get("space")
|
|
753
|
-
if isinstance(space, dict):
|
|
754
|
-
raw_space = space.get("key")
|
|
755
|
-
if raw_space:
|
|
756
|
-
space_key = str(raw_space)
|
|
757
|
-
if title is None and html_path is not None:
|
|
758
|
-
title = html_path.stem.split("_", 1)[1] if "_" in html_path.stem else html_path.stem
|
|
759
|
-
|
|
760
|
-
meta: dict[str, Any] = {
|
|
761
|
-
"page_id": page_id,
|
|
762
|
-
"title": title,
|
|
763
|
-
"page_url": page_url,
|
|
764
|
-
"parent_id": parent_id,
|
|
765
|
-
"depth": depth,
|
|
766
|
-
"status": "downloaded" if html_path is not None else "unchanged",
|
|
767
|
-
"html_path": str(html_path) if html_path is not None else None,
|
|
768
|
-
"html_sha256": None,
|
|
769
|
-
"html_size_bytes": None,
|
|
770
|
-
"source_format": "html-view",
|
|
771
|
-
"space_key": space_key,
|
|
772
|
-
"page_version": page_version,
|
|
773
|
-
"page_updated": page_updated,
|
|
774
|
-
"ancestor_ids": [],
|
|
775
|
-
"ancestor_titles": [],
|
|
776
|
-
"error": None,
|
|
777
|
-
}
|
|
778
|
-
if html_path is not None and html_path.exists():
|
|
779
|
-
html_bytes = html_path.read_bytes()
|
|
780
|
-
meta["html_sha256"] = _sha256_bytes(html_bytes)
|
|
781
|
-
meta["html_size_bytes"] = html_path.stat().st_size
|
|
782
|
-
return meta
|
|
783
|
-
|
|
784
|
-
previous_page_meta_by_id: dict[str, dict[str, Any]] = {}
|
|
785
|
-
previous_attachments_by_page: dict[str, list[dict[str, Any]]] = {}
|
|
786
|
-
if options.resume and resolved_manifest_path.exists():
|
|
787
|
-
try:
|
|
788
|
-
loaded = json.loads(resolved_manifest_path.read_text(encoding="utf-8"))
|
|
789
|
-
if isinstance(loaded, dict):
|
|
790
|
-
root_meta = loaded.get("page")
|
|
791
|
-
if isinstance(root_meta, dict):
|
|
792
|
-
root_id = root_meta.get("page_id")
|
|
793
|
-
if root_id:
|
|
794
|
-
previous_page_meta_by_id[str(root_id)] = root_meta
|
|
795
|
-
raw_children = loaded.get("child_pages")
|
|
796
|
-
if isinstance(raw_children, list):
|
|
797
|
-
for child in raw_children:
|
|
798
|
-
if not isinstance(child, dict):
|
|
799
|
-
continue
|
|
800
|
-
child_id = child.get("page_id")
|
|
801
|
-
if child_id:
|
|
802
|
-
previous_page_meta_by_id[str(child_id)] = child
|
|
803
|
-
raw_attachments = loaded.get("attachments")
|
|
804
|
-
if isinstance(raw_attachments, list):
|
|
805
|
-
for attachment in raw_attachments:
|
|
806
|
-
if not isinstance(attachment, dict):
|
|
807
|
-
continue
|
|
808
|
-
page_id = attachment.get("page_id")
|
|
809
|
-
if page_id is None:
|
|
810
|
-
continue
|
|
811
|
-
previous_attachments_by_page.setdefault(str(page_id), []).append(attachment)
|
|
812
|
-
except Exception:
|
|
813
|
-
previous_page_meta_by_id = {}
|
|
814
|
-
previous_attachments_by_page = {}
|
|
815
|
-
|
|
816
|
-
previous_corpus_chunks_by_page: dict[str, list[dict[str, Any]]] = {}
|
|
817
|
-
if options.resume and options.emit_corpus:
|
|
818
|
-
previous_corpus_path = output_dir / "corpus.jsonl"
|
|
819
|
-
if previous_corpus_path.exists():
|
|
820
|
-
try:
|
|
821
|
-
with previous_corpus_path.open("r", encoding="utf-8") as previous_corpus_fp:
|
|
822
|
-
for raw_line in previous_corpus_fp:
|
|
823
|
-
line = raw_line.strip()
|
|
824
|
-
if not line:
|
|
825
|
-
continue
|
|
826
|
-
try:
|
|
827
|
-
payload = json.loads(line)
|
|
828
|
-
except json.JSONDecodeError:
|
|
829
|
-
continue
|
|
830
|
-
if not isinstance(payload, dict):
|
|
831
|
-
continue
|
|
832
|
-
page_id = str(payload.get("page_id") or "").strip()
|
|
833
|
-
if not page_id:
|
|
834
|
-
continue
|
|
835
|
-
previous_corpus_chunks_by_page.setdefault(page_id, []).append(payload)
|
|
836
|
-
except Exception:
|
|
837
|
-
previous_corpus_chunks_by_page = {}
|
|
838
|
-
|
|
839
|
-
# State file for resume support (TSK-188)
|
|
840
|
-
state_path = output_dir / "crawl_state.json"
|
|
841
|
-
crawl_state: CrawlState | None = None
|
|
842
|
-
skipped_unchanged: int = 0
|
|
843
|
-
skipped_already_visited: int = 0
|
|
844
|
-
nodes_processed: int = 0
|
|
845
|
-
pages_fetched: int = 0
|
|
846
|
-
pages_failed: int = 0
|
|
847
|
-
termination_reason = "queue_exhausted"
|
|
848
|
-
unchanged_page_ids: set[str] = set()
|
|
849
|
-
|
|
850
|
-
# Track previously visited pages for skip-unchanged logic (separate from current run)
|
|
851
|
-
previous_visited: dict[str, dict[str, Any]] = {}
|
|
852
|
-
|
|
853
|
-
if options.resume:
|
|
854
|
-
crawl_state = _load_crawl_state(state_path)
|
|
855
|
-
if crawl_state is not None:
|
|
856
|
-
# Validate state matches current crawl parameters
|
|
857
|
-
if crawl_state.root_page_id != resolved_root_id:
|
|
858
|
-
# Root changed, start fresh
|
|
859
|
-
crawl_state = None
|
|
860
|
-
elif crawl_state.body_format != body_format:
|
|
861
|
-
# Format changed, start fresh
|
|
862
|
-
crawl_state = None
|
|
863
|
-
elif crawl_state.completed:
|
|
864
|
-
# Previous crawl completed - keep visited_pages for skip-unchanged checks
|
|
865
|
-
# but reset queue to re-crawl from root
|
|
866
|
-
previous_visited = dict(crawl_state.visited_pages)
|
|
867
|
-
previous_sync_timestamp = crawl_state.last_sync_timestamp
|
|
868
|
-
previous_full_reconciliation_timestamp = crawl_state.last_full_reconciliation_timestamp
|
|
869
|
-
crawl_state = CrawlState(
|
|
870
|
-
root_page_id=resolved_root_id,
|
|
871
|
-
body_format=body_format,
|
|
872
|
-
visited_pages=previous_visited, # Keep for version checks
|
|
873
|
-
pending_queue=[(resolved_root_id, None, 0)],
|
|
874
|
-
started_at=_now_iso(),
|
|
875
|
-
last_updated_at=_now_iso(),
|
|
876
|
-
completed=False,
|
|
877
|
-
last_sync_timestamp=previous_sync_timestamp,
|
|
878
|
-
last_full_reconciliation_timestamp=previous_full_reconciliation_timestamp,
|
|
879
|
-
)
|
|
880
|
-
else:
|
|
881
|
-
# Incomplete crawl - restore visited pages for skip logic
|
|
882
|
-
previous_visited = dict(crawl_state.visited_pages)
|
|
883
|
-
|
|
884
|
-
# Initialize state if needed
|
|
885
|
-
if crawl_state is None:
|
|
886
|
-
crawl_state = CrawlState(
|
|
887
|
-
root_page_id=resolved_root_id,
|
|
888
|
-
body_format=body_format,
|
|
889
|
-
visited_pages={},
|
|
890
|
-
pending_queue=[(resolved_root_id, None, 0)],
|
|
891
|
-
started_at=_now_iso(),
|
|
892
|
-
last_updated_at=_now_iso(),
|
|
893
|
-
completed=False,
|
|
894
|
-
)
|
|
895
|
-
|
|
896
|
-
# For resume mode, track pages visited in current session to avoid re-processing
|
|
897
|
-
visited_pages: set[str] = set()
|
|
898
|
-
downloaded_attachments: set[str] = set()
|
|
899
|
-
|
|
900
|
-
queue: list[tuple[str, str | None, int]] = list(crawl_state.pending_queue)
|
|
901
|
-
discovered_page_ids: set[str] = {resolved_root_id}
|
|
902
|
-
for queued_page_id, _, _ in queue:
|
|
903
|
-
discovered_page_ids.add(queued_page_id)
|
|
904
|
-
|
|
905
|
-
root_meta: dict[str, Any] | None = None
|
|
906
|
-
child_pages: list[dict[str, Any]] = []
|
|
907
|
-
attachments: list[dict[str, Any]] = []
|
|
908
|
-
link_edges: list[dict[str, Any]] = []
|
|
909
|
-
corpus_chunks: list[dict[str, Any]] = []
|
|
910
|
-
tables: list[dict[str, Any]] = []
|
|
911
|
-
mentions: list[dict[str, Any]] = []
|
|
912
|
-
telemetry_getter = getattr(http, "get_runtime_telemetry", None)
|
|
913
|
-
configure_rate_limit_budget = getattr(http, "configure_rate_limit_budget", None)
|
|
914
|
-
if callable(configure_rate_limit_budget):
|
|
915
|
-
with contextlib.suppress(Exception):
|
|
916
|
-
configure_rate_limit_budget(int(options.rate_limit_budget))
|
|
917
|
-
|
|
918
|
-
def _children_for(page_id: str, depth: int) -> list[tuple[str, str | None, int]]:
|
|
919
|
-
if options.max_depth >= 0 and depth >= options.max_depth:
|
|
920
|
-
return []
|
|
921
|
-
try:
|
|
922
|
-
child_payload = http.get_child_pages(page_id)
|
|
923
|
-
except Exception:
|
|
924
|
-
return []
|
|
925
|
-
collected: list[tuple[str, str | None, int]] = []
|
|
926
|
-
for child in child_payload:
|
|
927
|
-
if not isinstance(child, dict):
|
|
928
|
-
continue
|
|
929
|
-
child_id = child.get("id")
|
|
930
|
-
if child_id is None:
|
|
931
|
-
continue
|
|
932
|
-
collected.append((str(child_id), page_id, depth + 1))
|
|
933
|
-
return collected
|
|
934
|
-
|
|
935
|
-
body_expands: list[str]
|
|
936
|
-
if body_format == "export_view":
|
|
937
|
-
body_expands = ["body.export_view", "body.view", "body.storage"]
|
|
938
|
-
elif body_format == "storage":
|
|
939
|
-
body_expands = ["body.storage", "body.view"]
|
|
940
|
-
else:
|
|
941
|
-
body_expands = ["body.view", "body.storage"]
|
|
942
|
-
|
|
943
|
-
def _fetch_page(node: tuple[str, str | None, int]) -> _FetchedPage:
|
|
944
|
-
page_id, parent_id, depth = node
|
|
945
|
-
children: list[tuple[str, str | None, int]] = []
|
|
946
|
-
children_future: Future[list[tuple[str, str | None, int]]] | None = None
|
|
947
|
-
children_executor: ThreadPoolExecutor | None = None
|
|
948
|
-
if not use_structure_first and (options.max_depth < 0 or depth < options.max_depth):
|
|
949
|
-
children_executor = ThreadPoolExecutor(max_workers=1)
|
|
950
|
-
children_future = children_executor.submit(_children_for, page_id, depth)
|
|
951
|
-
|
|
952
|
-
try:
|
|
953
|
-
if options.resume and page_id in crawl_state.visited_pages:
|
|
954
|
-
try:
|
|
955
|
-
version_check = http.get_page(page_id, expand=["version"])
|
|
956
|
-
except Exception as exc:
|
|
957
|
-
if children_future is not None:
|
|
958
|
-
children = children_future.result()
|
|
959
|
-
return _FetchedPage(
|
|
960
|
-
page_id=page_id,
|
|
961
|
-
parent_id=parent_id,
|
|
962
|
-
depth=depth,
|
|
963
|
-
status="error",
|
|
964
|
-
error=str(exc),
|
|
965
|
-
children=children,
|
|
966
|
-
)
|
|
967
|
-
check_version = (version_check.get("version") or {}).get("number")
|
|
968
|
-
if crawl_state.is_page_unchanged(page_id, check_version, None):
|
|
969
|
-
if children_future is not None:
|
|
970
|
-
children = children_future.result()
|
|
971
|
-
return _FetchedPage(
|
|
972
|
-
page_id=page_id,
|
|
973
|
-
parent_id=parent_id,
|
|
974
|
-
depth=depth,
|
|
975
|
-
status="unchanged",
|
|
976
|
-
version_payload=version_check,
|
|
977
|
-
children=children,
|
|
978
|
-
)
|
|
979
|
-
|
|
980
|
-
try:
|
|
981
|
-
page_payload = http.get_page(page_id, expand=[*body_expands, "version", "space", "ancestors"])
|
|
982
|
-
except Exception as exc:
|
|
983
|
-
if children_future is not None:
|
|
984
|
-
children = children_future.result()
|
|
985
|
-
return _FetchedPage(
|
|
986
|
-
page_id=page_id,
|
|
987
|
-
parent_id=parent_id,
|
|
988
|
-
depth=depth,
|
|
989
|
-
status="error",
|
|
990
|
-
error=str(exc),
|
|
991
|
-
children=children,
|
|
992
|
-
)
|
|
993
|
-
|
|
994
|
-
if children_future is not None:
|
|
995
|
-
children = children_future.result()
|
|
996
|
-
|
|
997
|
-
return _FetchedPage(
|
|
998
|
-
page_id=page_id,
|
|
999
|
-
parent_id=parent_id,
|
|
1000
|
-
depth=depth,
|
|
1001
|
-
status="fetched",
|
|
1002
|
-
page_payload=page_payload,
|
|
1003
|
-
children=children,
|
|
1004
|
-
)
|
|
1005
|
-
finally:
|
|
1006
|
-
if children_executor is not None:
|
|
1007
|
-
children_executor.shutdown(wait=True)
|
|
1008
|
-
|
|
1009
|
-
def _extract_page_id_from_search_item(item: Any) -> str | None:
|
|
1010
|
-
if not isinstance(item, dict):
|
|
1011
|
-
return None
|
|
1012
|
-
raw_id = item.get("id")
|
|
1013
|
-
if raw_id is None and isinstance(item.get("content"), dict):
|
|
1014
|
-
raw_id = item["content"].get("id")
|
|
1015
|
-
if raw_id is None:
|
|
1016
|
-
return None
|
|
1017
|
-
page_id = str(raw_id).strip()
|
|
1018
|
-
return page_id if page_id.isdigit() else None
|
|
1019
|
-
|
|
1020
|
-
search_by_space_and_type = getattr(http, "search_by_space_and_type", None)
|
|
1021
|
-
|
|
1022
|
-
def _search_space_page_ids(
|
|
1023
|
-
*,
|
|
1024
|
-
space_key: str,
|
|
1025
|
-
last_modified_after: datetime | None = None,
|
|
1026
|
-
overlap_minutes: int = 0,
|
|
1027
|
-
) -> tuple[set[str], bool]:
|
|
1028
|
-
if not callable(search_by_space_and_type):
|
|
1029
|
-
return set(), False
|
|
1030
|
-
|
|
1031
|
-
page_ids: set[str] = set()
|
|
1032
|
-
start = 0
|
|
1033
|
-
limit = 100
|
|
1034
|
-
successful = False
|
|
1035
|
-
max_pages = 500
|
|
1036
|
-
|
|
1037
|
-
for _ in range(max_pages):
|
|
1038
|
-
response = search_by_space_and_type(
|
|
1039
|
-
space_key=space_key,
|
|
1040
|
-
content_type="page",
|
|
1041
|
-
limit=limit,
|
|
1042
|
-
start=start,
|
|
1043
|
-
expand=["version"],
|
|
1044
|
-
last_modified_after=last_modified_after,
|
|
1045
|
-
overlap_minutes=overlap_minutes,
|
|
1046
|
-
)
|
|
1047
|
-
if not isinstance(response, dict):
|
|
1048
|
-
break
|
|
1049
|
-
successful = True
|
|
1050
|
-
results = response.get("results")
|
|
1051
|
-
if not isinstance(results, list) or not results:
|
|
1052
|
-
break
|
|
1053
|
-
for item in results:
|
|
1054
|
-
page_id = _extract_page_id_from_search_item(item)
|
|
1055
|
-
if page_id:
|
|
1056
|
-
page_ids.add(page_id)
|
|
1057
|
-
if len(results) < limit:
|
|
1058
|
-
break
|
|
1059
|
-
start += limit
|
|
1060
|
-
|
|
1061
|
-
return page_ids, successful
|
|
1062
|
-
|
|
1063
|
-
def _resolve_known_space_key() -> str | None:
|
|
1064
|
-
root_meta = previous_page_meta_by_id.get(resolved_root_id)
|
|
1065
|
-
if not isinstance(root_meta, dict):
|
|
1066
|
-
return None
|
|
1067
|
-
raw_space_key = root_meta.get("space_key")
|
|
1068
|
-
if not isinstance(raw_space_key, str):
|
|
1069
|
-
return None
|
|
1070
|
-
space_key = raw_space_key.strip()
|
|
1071
|
-
return space_key or None
|
|
1072
|
-
|
|
1073
|
-
def _discover_structure_first_tree(
|
|
1074
|
-
initial_queue: list[tuple[str, str | None, int]],
|
|
1075
|
-
) -> tuple[list[tuple[str, str | None, int]], list[tuple[str, str | None, int]], set[str]]:
|
|
1076
|
-
ordered: list[tuple[str, str | None, int]] = []
|
|
1077
|
-
pending: list[tuple[str, str | None, int]] = []
|
|
1078
|
-
discovered: set[str] = set()
|
|
1079
|
-
pending_ids: set[str] = set()
|
|
1080
|
-
seen: set[str] = set()
|
|
1081
|
-
current_level: list[tuple[str, str | None, int]] = list(initial_queue)
|
|
1082
|
-
for page_id, _, _ in current_level:
|
|
1083
|
-
discovered.add(page_id)
|
|
1084
|
-
|
|
1085
|
-
while current_level:
|
|
1086
|
-
level_nodes: list[tuple[str, str | None, int]] = []
|
|
1087
|
-
for page_id, parent_id, depth in current_level:
|
|
1088
|
-
if page_id in seen:
|
|
1089
|
-
continue
|
|
1090
|
-
if options.max_nodes is not None and len(ordered) >= options.max_nodes:
|
|
1091
|
-
if page_id not in pending_ids:
|
|
1092
|
-
pending.append((page_id, parent_id, depth))
|
|
1093
|
-
pending_ids.add(page_id)
|
|
1094
|
-
continue
|
|
1095
|
-
seen.add(page_id)
|
|
1096
|
-
ordered.append((page_id, parent_id, depth))
|
|
1097
|
-
level_nodes.append((page_id, parent_id, depth))
|
|
1098
|
-
|
|
1099
|
-
if options.max_nodes is not None and len(ordered) >= options.max_nodes:
|
|
1100
|
-
for page_id, parent_id, depth in current_level:
|
|
1101
|
-
if page_id in seen or page_id in pending_ids:
|
|
1102
|
-
continue
|
|
1103
|
-
pending.append((page_id, parent_id, depth))
|
|
1104
|
-
pending_ids.add(page_id)
|
|
1105
|
-
break
|
|
1106
|
-
|
|
1107
|
-
parents_for_children: list[tuple[str, int]] = []
|
|
1108
|
-
for page_id, _, depth in level_nodes:
|
|
1109
|
-
if options.max_depth >= 0 and depth >= options.max_depth:
|
|
1110
|
-
continue
|
|
1111
|
-
parents_for_children.append((page_id, depth))
|
|
1112
|
-
|
|
1113
|
-
if not parents_for_children:
|
|
1114
|
-
current_level = []
|
|
1115
|
-
continue
|
|
1116
|
-
|
|
1117
|
-
child_batches: list[list[tuple[str, str | None, int]]]
|
|
1118
|
-
if len(parents_for_children) == 1:
|
|
1119
|
-
parent_id, parent_depth = parents_for_children[0]
|
|
1120
|
-
child_batches = [_children_for(parent_id, parent_depth)]
|
|
1121
|
-
else:
|
|
1122
|
-
max_workers = min(page_concurrency, len(parents_for_children))
|
|
1123
|
-
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
1124
|
-
futures: list[Future[list[tuple[str, str | None, int]]]] = [
|
|
1125
|
-
executor.submit(_children_for, parent_id, parent_depth)
|
|
1126
|
-
for parent_id, parent_depth in parents_for_children
|
|
1127
|
-
]
|
|
1128
|
-
child_batches = [future.result() for future in futures]
|
|
1129
|
-
|
|
1130
|
-
next_level: list[tuple[str, str | None, int]] = []
|
|
1131
|
-
next_level_ids: set[str] = set()
|
|
1132
|
-
for children in child_batches:
|
|
1133
|
-
for child_id, child_parent, child_depth in children:
|
|
1134
|
-
if child_id in seen or child_id in next_level_ids:
|
|
1135
|
-
continue
|
|
1136
|
-
discovered.add(child_id)
|
|
1137
|
-
next_level_ids.add(child_id)
|
|
1138
|
-
next_level.append((child_id, child_parent, child_depth))
|
|
1139
|
-
current_level = next_level
|
|
1140
|
-
|
|
1141
|
-
return ordered, pending, discovered
|
|
1142
|
-
|
|
1143
|
-
incremental_candidate_ids: set[str] = set()
|
|
1144
|
-
incremental_high_water_mark_ran = False
|
|
1145
|
-
incremental_high_water_mark_skipped = False
|
|
1146
|
-
incremental_high_water_mark_skip_reason: str | None = None
|
|
1147
|
-
incremental_known_page_count = 0
|
|
1148
|
-
full_reconciliation_deleted_ids: list[str] = []
|
|
1149
|
-
full_reconciliation_ran = False
|
|
1150
|
-
full_reconciliation_skipped = False
|
|
1151
|
-
full_reconciliation_skip_reason: str | None = None
|
|
1152
|
-
full_reconciliation_known_page_count = 0
|
|
1153
|
-
space_key_for_incremental = _resolve_known_space_key()
|
|
1154
|
-
if options.resume and options.incremental_cql and callable(search_by_space_and_type):
|
|
1155
|
-
known_page_ids = set(crawl_state.visited_pages.keys())
|
|
1156
|
-
incremental_known_page_count = len(known_page_ids)
|
|
1157
|
-
last_sync_dt = _parse_iso_timestamp(crawl_state.last_sync_timestamp)
|
|
1158
|
-
if space_key_for_incremental and last_sync_dt is not None:
|
|
1159
|
-
if incremental_known_page_count <= 1:
|
|
1160
|
-
incremental_high_water_mark_skipped = True
|
|
1161
|
-
incremental_high_water_mark_skip_reason = "known_pages_lte_1"
|
|
1162
|
-
else:
|
|
1163
|
-
incremental_high_water_mark_ran = True
|
|
1164
|
-
try:
|
|
1165
|
-
incremental_ids, incremental_ok = _search_space_page_ids(
|
|
1166
|
-
space_key=space_key_for_incremental,
|
|
1167
|
-
last_modified_after=last_sync_dt,
|
|
1168
|
-
overlap_minutes=max(0, int(options.incremental_overlap_minutes)),
|
|
1169
|
-
)
|
|
1170
|
-
except Exception:
|
|
1171
|
-
incremental_ids, incremental_ok = set(), False
|
|
1172
|
-
if incremental_ok:
|
|
1173
|
-
incremental_candidate_ids = {page_id for page_id in incremental_ids if page_id in known_page_ids}
|
|
1174
|
-
if incremental_candidate_ids:
|
|
1175
|
-
queued_ids = {queued_page_id for queued_page_id, _, _ in queue}
|
|
1176
|
-
for page_id in sorted(incremental_candidate_ids):
|
|
1177
|
-
if page_id in queued_ids:
|
|
1178
|
-
continue
|
|
1179
|
-
previous_meta = previous_page_meta_by_id.get(page_id) or {}
|
|
1180
|
-
parent_id = previous_meta.get("parent_id")
|
|
1181
|
-
if parent_id is not None:
|
|
1182
|
-
parent_id = str(parent_id)
|
|
1183
|
-
depth = previous_meta.get("depth")
|
|
1184
|
-
if not isinstance(depth, int) or depth < 0:
|
|
1185
|
-
depth = 0
|
|
1186
|
-
queue.append((page_id, parent_id, depth))
|
|
1187
|
-
queued_ids.add(page_id)
|
|
1188
|
-
discovered_page_ids.add(page_id)
|
|
1189
|
-
|
|
1190
|
-
full_reconciliation_due = False
|
|
1191
|
-
last_full_reconciliation_dt = _parse_iso_timestamp(crawl_state.last_full_reconciliation_timestamp)
|
|
1192
|
-
if last_full_reconciliation_dt is None:
|
|
1193
|
-
full_reconciliation_due = True
|
|
1194
|
-
else:
|
|
1195
|
-
full_reconciliation_due = datetime.now(UTC) - last_full_reconciliation_dt >= timedelta(
|
|
1196
|
-
days=max(1, int(options.full_reconciliation_interval_days))
|
|
1197
|
-
)
|
|
1198
|
-
|
|
1199
|
-
if space_key_for_incremental and full_reconciliation_due:
|
|
1200
|
-
known_page_ids = set(crawl_state.visited_pages.keys())
|
|
1201
|
-
full_reconciliation_known_page_count = len(known_page_ids)
|
|
1202
|
-
reconciliation_marker_timestamp = _now_iso()
|
|
1203
|
-
if full_reconciliation_known_page_count <= 1:
|
|
1204
|
-
full_reconciliation_skipped = True
|
|
1205
|
-
full_reconciliation_skip_reason = "known_pages_lte_1"
|
|
1206
|
-
crawl_state.last_full_reconciliation_timestamp = reconciliation_marker_timestamp
|
|
1207
|
-
else:
|
|
1208
|
-
try:
|
|
1209
|
-
remote_page_ids, reconciliation_ok = _search_space_page_ids(space_key=space_key_for_incremental)
|
|
1210
|
-
except Exception:
|
|
1211
|
-
remote_page_ids, reconciliation_ok = set(), False
|
|
1212
|
-
if reconciliation_ok:
|
|
1213
|
-
full_reconciliation_ran = True
|
|
1214
|
-
full_reconciliation_deleted_ids = sorted(known_page_ids - remote_page_ids)
|
|
1215
|
-
if full_reconciliation_deleted_ids:
|
|
1216
|
-
for page_id in full_reconciliation_deleted_ids:
|
|
1217
|
-
crawl_state.visited_pages.pop(page_id, None)
|
|
1218
|
-
previous_visited.pop(page_id, None)
|
|
1219
|
-
previous_page_meta_by_id.pop(page_id, None)
|
|
1220
|
-
previous_attachments_by_page.pop(page_id, None)
|
|
1221
|
-
discovered_page_ids.discard(page_id)
|
|
1222
|
-
_emit_runtime_event(
|
|
1223
|
-
options,
|
|
1224
|
-
"pages_deleted",
|
|
1225
|
-
root_page_id=resolved_root_id,
|
|
1226
|
-
deleted_count=len(full_reconciliation_deleted_ids),
|
|
1227
|
-
page_ids=full_reconciliation_deleted_ids,
|
|
1228
|
-
)
|
|
1229
|
-
crawl_state.last_full_reconciliation_timestamp = reconciliation_marker_timestamp
|
|
1230
|
-
|
|
1231
|
-
structure_first_pending_queue: list[tuple[str, str | None, int]] = []
|
|
1232
|
-
structure_pre_discovered_nodes = 0
|
|
1233
|
-
if use_structure_first:
|
|
1234
|
-
queue, structure_first_pending_queue, structure_discovered_ids = _discover_structure_first_tree(queue)
|
|
1235
|
-
structure_pre_discovered_nodes = len(queue) + len(structure_first_pending_queue)
|
|
1236
|
-
discovered_page_ids.update(structure_discovered_ids)
|
|
1237
|
-
|
|
1238
|
-
crawl_started_at = time.perf_counter()
|
|
1239
|
-
max_inflight_workers = 0
|
|
1240
|
-
effective_page_concurrency = page_concurrency
|
|
1241
|
-
effective_concurrency_signal: float | None = None
|
|
1242
|
-
throttle_pressure_score: float | None = None
|
|
1243
|
-
|
|
1244
|
-
while queue:
|
|
1245
|
-
if options.max_nodes is not None and nodes_processed >= options.max_nodes:
|
|
1246
|
-
termination_reason = "max_nodes_reached"
|
|
1247
|
-
break
|
|
1248
|
-
|
|
1249
|
-
if options.max_nodes is None:
|
|
1250
|
-
remaining = len(queue)
|
|
1251
|
-
else:
|
|
1252
|
-
remaining = min(len(queue), options.max_nodes - nodes_processed)
|
|
1253
|
-
if remaining <= 0:
|
|
1254
|
-
termination_reason = "max_nodes_reached"
|
|
1255
|
-
break
|
|
1256
|
-
runtime_page_concurrency = page_concurrency
|
|
1257
|
-
if callable(telemetry_getter):
|
|
1258
|
-
try:
|
|
1259
|
-
telemetry_snapshot = telemetry_getter()
|
|
1260
|
-
except Exception:
|
|
1261
|
-
telemetry_snapshot = None
|
|
1262
|
-
if isinstance(telemetry_snapshot, dict):
|
|
1263
|
-
throttle = telemetry_snapshot.get("adaptive_throttle")
|
|
1264
|
-
if isinstance(throttle, dict):
|
|
1265
|
-
signal = throttle.get("effective_concurrency_signal")
|
|
1266
|
-
if isinstance(signal, (float, int)):
|
|
1267
|
-
effective_concurrency_signal = float(signal)
|
|
1268
|
-
scaled = round(page_concurrency * float(signal))
|
|
1269
|
-
runtime_page_concurrency = max(1, min(page_concurrency, scaled))
|
|
1270
|
-
pressure_score = throttle.get("pressure_score")
|
|
1271
|
-
if isinstance(pressure_score, (float, int)):
|
|
1272
|
-
throttle_pressure_score = float(pressure_score)
|
|
1273
|
-
effective_page_concurrency = runtime_page_concurrency
|
|
1274
|
-
batch_size = min(runtime_page_concurrency, remaining)
|
|
1275
|
-
max_inflight_workers = max(max_inflight_workers, batch_size)
|
|
1276
|
-
|
|
1277
|
-
batch: list[tuple[str, str | None, int]] = []
|
|
1278
|
-
while queue and len(batch) < batch_size:
|
|
1279
|
-
page_id, parent_id, depth = queue.pop(0)
|
|
1280
|
-
if page_id in visited_pages:
|
|
1281
|
-
skipped_already_visited += 1
|
|
1282
|
-
continue
|
|
1283
|
-
visited_pages.add(page_id)
|
|
1284
|
-
nodes_processed += 1
|
|
1285
|
-
batch.append((page_id, parent_id, depth))
|
|
1286
|
-
|
|
1287
|
-
crawl_state.pending_queue = list(queue)
|
|
1288
|
-
if not batch:
|
|
1289
|
-
continue
|
|
1290
|
-
|
|
1291
|
-
fetched: list[_FetchedPage] = []
|
|
1292
|
-
if batch_size == 1:
|
|
1293
|
-
fetched = [_fetch_page(node) for node in batch]
|
|
1294
|
-
else:
|
|
1295
|
-
with ThreadPoolExecutor(max_workers=batch_size) as executor:
|
|
1296
|
-
futures: dict[Future[_FetchedPage], int] = {
|
|
1297
|
-
executor.submit(_fetch_page, node): idx for idx, node in enumerate(batch)
|
|
1298
|
-
}
|
|
1299
|
-
fetched_by_index: dict[int, _FetchedPage] = {}
|
|
1300
|
-
for future, idx in futures.items():
|
|
1301
|
-
fetched_by_index[idx] = future.result()
|
|
1302
|
-
fetched = [fetched_by_index[idx] for idx in range(len(batch))]
|
|
1303
|
-
|
|
1304
|
-
for result in fetched:
|
|
1305
|
-
page_id = result.page_id
|
|
1306
|
-
parent_id = result.parent_id
|
|
1307
|
-
depth = result.depth
|
|
1308
|
-
|
|
1309
|
-
if result.status == "unchanged":
|
|
1310
|
-
skipped_unchanged += 1
|
|
1311
|
-
unchanged_page_ids.add(page_id)
|
|
1312
|
-
previous_meta = previous_page_meta_by_id.get(page_id)
|
|
1313
|
-
if previous_meta is None:
|
|
1314
|
-
previous_meta = _meta_from_existing_html(
|
|
1315
|
-
page_id=page_id,
|
|
1316
|
-
parent_id=parent_id,
|
|
1317
|
-
depth=depth,
|
|
1318
|
-
page_payload=result.version_payload if isinstance(result.version_payload, dict) else None,
|
|
1319
|
-
)
|
|
1320
|
-
if previous_meta is not None:
|
|
1321
|
-
if depth == 0:
|
|
1322
|
-
root_meta = previous_meta
|
|
1323
|
-
else:
|
|
1324
|
-
child_pages.append(previous_meta)
|
|
1325
|
-
if options.include_attachments:
|
|
1326
|
-
for previous_attachment in previous_attachments_by_page.get(page_id, []):
|
|
1327
|
-
attachment_id = previous_attachment.get("attachment_id")
|
|
1328
|
-
if attachment_id is not None:
|
|
1329
|
-
downloaded_attachments.add(str(attachment_id))
|
|
1330
|
-
attachments.append(previous_attachment)
|
|
1331
|
-
for child_id, child_parent, child_depth in result.children:
|
|
1332
|
-
if child_id in visited_pages:
|
|
1333
|
-
continue
|
|
1334
|
-
discovered_page_ids.add(child_id)
|
|
1335
|
-
queue.append((child_id, child_parent, child_depth))
|
|
1336
|
-
continue
|
|
1337
|
-
|
|
1338
|
-
if result.status == "error":
|
|
1339
|
-
pages_failed += 1
|
|
1340
|
-
meta = {
|
|
1341
|
-
"page_id": page_id,
|
|
1342
|
-
"title": None,
|
|
1343
|
-
"page_url": None,
|
|
1344
|
-
"parent_id": parent_id,
|
|
1345
|
-
"depth": depth,
|
|
1346
|
-
"status": "error",
|
|
1347
|
-
"error": result.error,
|
|
1348
|
-
}
|
|
1349
|
-
if depth == 0:
|
|
1350
|
-
root_meta = meta
|
|
1351
|
-
else:
|
|
1352
|
-
child_pages.append(meta)
|
|
1353
|
-
continue
|
|
1354
|
-
|
|
1355
|
-
pages_fetched += 1
|
|
1356
|
-
page = result.page_payload if isinstance(result.page_payload, dict) else {}
|
|
1357
|
-
title = str(page.get("title") or "untitled")
|
|
1358
|
-
safe_title = _safe_filename(title)
|
|
1359
|
-
body_obj = page.get("body") or {}
|
|
1360
|
-
view_html = (body_obj.get("view") or {}).get("value", "")
|
|
1361
|
-
export_html = (body_obj.get("export_view") or {}).get("value", "")
|
|
1362
|
-
storage_html = (body_obj.get("storage") or {}).get("value", "")
|
|
1363
|
-
candidates = {
|
|
1364
|
-
"view": view_html if isinstance(view_html, str) else "",
|
|
1365
|
-
"export_view": export_html if isinstance(export_html, str) else "",
|
|
1366
|
-
"storage": storage_html if isinstance(storage_html, str) else "",
|
|
1367
|
-
}
|
|
1368
|
-
chosen_html = candidates.get(body_format, "") or ""
|
|
1369
|
-
chosen_format = body_format
|
|
1370
|
-
if not chosen_html.strip():
|
|
1371
|
-
fallback_order = (
|
|
1372
|
-
["view", "storage", "export_view"]
|
|
1373
|
-
if body_format == "view"
|
|
1374
|
-
else ["storage", "view", "export_view"]
|
|
1375
|
-
if body_format == "storage"
|
|
1376
|
-
else ["export_view", "view", "storage"]
|
|
1377
|
-
)
|
|
1378
|
-
for fmt in fallback_order:
|
|
1379
|
-
candidate = candidates.get(fmt, "") or ""
|
|
1380
|
-
if isinstance(candidate, str) and candidate.strip():
|
|
1381
|
-
chosen_html = candidate
|
|
1382
|
-
chosen_format = fmt
|
|
1383
|
-
break
|
|
1384
|
-
|
|
1385
|
-
html = chosen_html if isinstance(chosen_html, str) else ""
|
|
1386
|
-
source_format = f"html-{chosen_format.replace('_', '-')}"
|
|
1387
|
-
|
|
1388
|
-
links = page.get("_links", {}) if isinstance(page.get("_links"), dict) else {}
|
|
1389
|
-
base_url = str(links.get("base") or "")
|
|
1390
|
-
web_ui = str(links.get("webui") or "")
|
|
1391
|
-
page_url = f"{base_url}{web_ui}" if base_url and web_ui else None
|
|
1392
|
-
|
|
1393
|
-
version = page.get("version") or {}
|
|
1394
|
-
page_version = version.get("number") if isinstance(version, dict) else None
|
|
1395
|
-
page_updated = version.get("when") if isinstance(version, dict) else None
|
|
1396
|
-
space_key = (page.get("space") or {}).get("key") if isinstance(page.get("space"), dict) else None
|
|
1397
|
-
|
|
1398
|
-
ancestors = page.get("ancestors") or []
|
|
1399
|
-
ancestor_ids: list[str] = []
|
|
1400
|
-
ancestor_titles: list[str] = []
|
|
1401
|
-
if isinstance(ancestors, list):
|
|
1402
|
-
for entry in ancestors:
|
|
1403
|
-
if not isinstance(entry, dict):
|
|
1404
|
-
continue
|
|
1405
|
-
if entry.get("id") is not None:
|
|
1406
|
-
ancestor_ids.append(str(entry["id"]))
|
|
1407
|
-
if entry.get("title"):
|
|
1408
|
-
ancestor_titles.append(str(entry["title"]))
|
|
1409
|
-
|
|
1410
|
-
html_path = output_dir / f"{page_id}_{safe_title}.html"
|
|
1411
|
-
html_path.write_text(html, encoding="utf-8")
|
|
1412
|
-
html_bytes = html.encode("utf-8")
|
|
1413
|
-
html_sha256 = _sha256_bytes(html_bytes)
|
|
1414
|
-
crawl_state.record_page(page_id, page_version, html_sha256)
|
|
1415
|
-
|
|
1416
|
-
meta = {
|
|
1417
|
-
"page_id": page_id,
|
|
1418
|
-
"title": title,
|
|
1419
|
-
"page_url": page_url,
|
|
1420
|
-
"parent_id": parent_id,
|
|
1421
|
-
"depth": depth,
|
|
1422
|
-
"status": "downloaded",
|
|
1423
|
-
"html_path": str(html_path),
|
|
1424
|
-
"html_sha256": html_sha256,
|
|
1425
|
-
"html_size_bytes": html_path.stat().st_size,
|
|
1426
|
-
"source_format": source_format,
|
|
1427
|
-
"space_key": space_key,
|
|
1428
|
-
"page_version": page_version,
|
|
1429
|
-
"page_updated": page_updated,
|
|
1430
|
-
"ancestor_ids": ancestor_ids,
|
|
1431
|
-
"ancestor_titles": ancestor_titles,
|
|
1432
|
-
"error": None,
|
|
1433
|
-
}
|
|
1434
|
-
if depth == 0:
|
|
1435
|
-
root_meta = meta
|
|
1436
|
-
else:
|
|
1437
|
-
child_pages.append(meta)
|
|
1438
|
-
|
|
1439
|
-
if options.emit_link_graph:
|
|
1440
|
-
for link in _extract_links(html, base_url=base_url):
|
|
1441
|
-
target_url = link.get("url")
|
|
1442
|
-
target_type = _classify_target_type(str(target_url)) if target_url else None
|
|
1443
|
-
target_page_id = _extract_target_page_id(str(target_url)) if target_url else None
|
|
1444
|
-
edge: dict[str, Any] = {
|
|
1445
|
-
"source_page_id": page_id,
|
|
1446
|
-
"source_page_url": page_url,
|
|
1447
|
-
"target_url": target_url,
|
|
1448
|
-
"anchor_text": link.get("text"),
|
|
1449
|
-
}
|
|
1450
|
-
if target_type:
|
|
1451
|
-
edge["target_type"] = target_type
|
|
1452
|
-
if target_type == "confluence_page" and target_page_id:
|
|
1453
|
-
edge["target_page_id"] = target_page_id
|
|
1454
|
-
link_edges.append(edge)
|
|
1455
|
-
|
|
1456
|
-
if options.emit_corpus:
|
|
1457
|
-
for chunk in _chunk_html_by_headings(html, max_chars=chunk_max_chars):
|
|
1458
|
-
heading_path = chunk.get("heading_path") or []
|
|
1459
|
-
ordinal = chunk.get("ordinal") if isinstance(chunk.get("ordinal"), int) else 0
|
|
1460
|
-
base_key = f"{page_id}|{'/'.join(heading_path)}"
|
|
1461
|
-
key = base_key if ordinal == 0 else f"{base_key}|{ordinal}"
|
|
1462
|
-
corpus_chunks.append(
|
|
1463
|
-
{
|
|
1464
|
-
"chunk_id": _sha256_text(key)[:16],
|
|
1465
|
-
"page_id": page_id,
|
|
1466
|
-
"page_url": page_url,
|
|
1467
|
-
"title": title,
|
|
1468
|
-
"depth": depth,
|
|
1469
|
-
"parent_id": parent_id,
|
|
1470
|
-
"ancestors": ancestor_ids,
|
|
1471
|
-
"ancestor_ids": ancestor_ids,
|
|
1472
|
-
"space_key": space_key,
|
|
1473
|
-
"page_version": page_version,
|
|
1474
|
-
"page_updated": page_updated,
|
|
1475
|
-
"ancestor_titles": ancestor_titles,
|
|
1476
|
-
"heading_path": heading_path,
|
|
1477
|
-
"chunk_ordinal": ordinal,
|
|
1478
|
-
"text": chunk.get("text"),
|
|
1479
|
-
"source_type": "confluence",
|
|
1480
|
-
"doc_class": "canonical_doc",
|
|
1481
|
-
"generated_flag": False,
|
|
1482
|
-
"historical_flag": False,
|
|
1483
|
-
"discovery": "confluence_crawl_page",
|
|
1484
|
-
}
|
|
1485
|
-
)
|
|
1486
|
-
|
|
1487
|
-
if options.emit_tables:
|
|
1488
|
-
for table in _extract_tables(html):
|
|
1489
|
-
key = f"{page_id}|table|{table.get('table_index')}"
|
|
1490
|
-
tables.append(
|
|
1491
|
-
{
|
|
1492
|
-
"table_id": _sha256_text(key)[:16],
|
|
1493
|
-
"page_id": page_id,
|
|
1494
|
-
"page_url": page_url,
|
|
1495
|
-
"title": title,
|
|
1496
|
-
"depth": depth,
|
|
1497
|
-
"parent_id": parent_id,
|
|
1498
|
-
"space_key": space_key,
|
|
1499
|
-
"page_version": page_version,
|
|
1500
|
-
"page_updated": page_updated,
|
|
1501
|
-
"ancestor_titles": ancestor_titles,
|
|
1502
|
-
"table_index": table.get("table_index"),
|
|
1503
|
-
"headers": table.get("headers"),
|
|
1504
|
-
"rows": table.get("rows"),
|
|
1505
|
-
"row_count": table.get("row_count"),
|
|
1506
|
-
"col_count": table.get("col_count"),
|
|
1507
|
-
}
|
|
1508
|
-
)
|
|
1509
|
-
|
|
1510
|
-
if options.emit_mentions:
|
|
1511
|
-
for index, mention in enumerate(_extract_mentions(html, base_url=base_url)):
|
|
1512
|
-
key = f"{page_id}|mention|{mention.get('type')}|{mention.get('value')}|{mention.get('url') or ''}"
|
|
1513
|
-
mentions.append(
|
|
1514
|
-
{
|
|
1515
|
-
"mention_id": _sha256_text(key)[:16],
|
|
1516
|
-
"page_id": page_id,
|
|
1517
|
-
"page_url": page_url,
|
|
1518
|
-
"title": title,
|
|
1519
|
-
"depth": depth,
|
|
1520
|
-
"parent_id": parent_id,
|
|
1521
|
-
"space_key": space_key,
|
|
1522
|
-
"page_version": page_version,
|
|
1523
|
-
"page_updated": page_updated,
|
|
1524
|
-
"ancestor_titles": ancestor_titles,
|
|
1525
|
-
"mention_index": index,
|
|
1526
|
-
**mention,
|
|
1527
|
-
}
|
|
1528
|
-
)
|
|
1529
|
-
|
|
1530
|
-
if options.include_attachments:
|
|
1531
|
-
try:
|
|
1532
|
-
attachment_results = http.get_attachments(page_id)
|
|
1533
|
-
except Exception as exc:
|
|
1534
|
-
attachments.append(
|
|
1535
|
-
{
|
|
1536
|
-
"attachment_id": None,
|
|
1537
|
-
"page_id": page_id,
|
|
1538
|
-
"title": None,
|
|
1539
|
-
"status": "error",
|
|
1540
|
-
"error": str(exc),
|
|
1541
|
-
}
|
|
1542
|
-
)
|
|
1543
|
-
attachment_results = []
|
|
1544
|
-
|
|
1545
|
-
for att in attachment_results:
|
|
1546
|
-
if not isinstance(att, dict):
|
|
1547
|
-
continue
|
|
1548
|
-
attachment_id = att.get("id") or att.get("attachment_id")
|
|
1549
|
-
if attachment_id is None:
|
|
1550
|
-
continue
|
|
1551
|
-
attachment_id = str(attachment_id)
|
|
1552
|
-
if attachment_id in downloaded_attachments:
|
|
1553
|
-
continue
|
|
1554
|
-
downloaded_attachments.add(attachment_id)
|
|
1555
|
-
|
|
1556
|
-
att_title = str(att.get("title") or att.get("name") or f"attachment_{attachment_id}")
|
|
1557
|
-
out_path = attachments_dir / _safe_attachment_filename(
|
|
1558
|
-
attachment_id, att_title, fallback_suffix=_guess_attachment_suffix(att)
|
|
1559
|
-
)
|
|
1560
|
-
|
|
1561
|
-
try:
|
|
1562
|
-
content = http.get_attachment_content(attachment_id)
|
|
1563
|
-
out_path.write_bytes(content)
|
|
1564
|
-
file_sha256 = _sha256_bytes(content)
|
|
1565
|
-
status = "downloaded"
|
|
1566
|
-
error = None
|
|
1567
|
-
except Exception as exc:
|
|
1568
|
-
file_sha256 = None
|
|
1569
|
-
status = "error"
|
|
1570
|
-
error = str(exc)
|
|
1571
|
-
|
|
1572
|
-
version_obj = att.get("version") or {}
|
|
1573
|
-
attachment_version = version_obj.get("number") if isinstance(version_obj, dict) else None
|
|
1574
|
-
extensions = att.get("extensions") or {}
|
|
1575
|
-
attachment_size = None
|
|
1576
|
-
if isinstance(extensions, dict):
|
|
1577
|
-
attachment_size = extensions.get("fileSize") or extensions.get("size")
|
|
1578
|
-
|
|
1579
|
-
attachments.append(
|
|
1580
|
-
{
|
|
1581
|
-
"attachment_id": attachment_id,
|
|
1582
|
-
"page_id": page_id,
|
|
1583
|
-
"title": att_title,
|
|
1584
|
-
"status": status,
|
|
1585
|
-
"file_path": str(out_path) if status == "downloaded" else None,
|
|
1586
|
-
"file_sha256": file_sha256,
|
|
1587
|
-
"file_size_bytes": out_path.stat().st_size
|
|
1588
|
-
if status == "downloaded" and out_path.exists()
|
|
1589
|
-
else None,
|
|
1590
|
-
"attachment_version": attachment_version,
|
|
1591
|
-
"attachment_size": attachment_size,
|
|
1592
|
-
"error": error,
|
|
1593
|
-
}
|
|
1594
|
-
)
|
|
1595
|
-
|
|
1596
|
-
for child_id, child_parent, child_depth in result.children:
|
|
1597
|
-
if child_id in visited_pages:
|
|
1598
|
-
continue
|
|
1599
|
-
discovered_page_ids.add(child_id)
|
|
1600
|
-
queue.append((child_id, child_parent, child_depth))
|
|
1601
|
-
|
|
1602
|
-
_emit_runtime_event(
|
|
1603
|
-
options,
|
|
1604
|
-
"crawl_progress",
|
|
1605
|
-
root_page_id=resolved_root_id,
|
|
1606
|
-
pages_discovered=len(discovered_page_ids),
|
|
1607
|
-
pages_fetched=pages_fetched,
|
|
1608
|
-
pages_failed=pages_failed,
|
|
1609
|
-
pages_skipped_unchanged=skipped_unchanged,
|
|
1610
|
-
pages_skipped_total=skipped_unchanged + skipped_already_visited,
|
|
1611
|
-
pending_queue_size=len(queue),
|
|
1612
|
-
effective_page_concurrency=effective_page_concurrency,
|
|
1613
|
-
effective_concurrency_signal=effective_concurrency_signal,
|
|
1614
|
-
throttle_pressure_score=throttle_pressure_score,
|
|
1615
|
-
)
|
|
1616
|
-
|
|
1617
|
-
if options.emit_corpus and previous_corpus_chunks_by_page:
|
|
1618
|
-
should_merge_unchanged_corpus = pages_fetched > 0 or bool(full_reconciliation_deleted_ids)
|
|
1619
|
-
if should_merge_unchanged_corpus:
|
|
1620
|
-
emitted_chunk_ids = {
|
|
1621
|
-
str(chunk.get("chunk_id") or "").strip()
|
|
1622
|
-
for chunk in corpus_chunks
|
|
1623
|
-
if isinstance(chunk, dict) and str(chunk.get("chunk_id") or "").strip()
|
|
1624
|
-
}
|
|
1625
|
-
for page_id in sorted(unchanged_page_ids):
|
|
1626
|
-
for previous_chunk in previous_corpus_chunks_by_page.get(page_id, []):
|
|
1627
|
-
if not isinstance(previous_chunk, dict):
|
|
1628
|
-
continue
|
|
1629
|
-
chunk_id = str(previous_chunk.get("chunk_id") or "").strip()
|
|
1630
|
-
if chunk_id and chunk_id in emitted_chunk_ids:
|
|
1631
|
-
continue
|
|
1632
|
-
corpus_chunks.append(dict(previous_chunk))
|
|
1633
|
-
if chunk_id:
|
|
1634
|
-
emitted_chunk_ids.add(chunk_id)
|
|
1635
|
-
|
|
1636
|
-
if structure_first_pending_queue:
|
|
1637
|
-
queued_page_ids = {queued_page_id for queued_page_id, _, _ in queue}
|
|
1638
|
-
for pending_page_id, pending_parent_id, pending_depth in structure_first_pending_queue:
|
|
1639
|
-
if pending_page_id in visited_pages or pending_page_id in queued_page_ids:
|
|
1640
|
-
continue
|
|
1641
|
-
queue.append((pending_page_id, pending_parent_id, pending_depth))
|
|
1642
|
-
queued_page_ids.add(pending_page_id)
|
|
1643
|
-
if queue:
|
|
1644
|
-
termination_reason = "max_nodes_reached"
|
|
1645
|
-
|
|
1646
|
-
# Update and save crawl state (TSK-188)
|
|
1647
|
-
http_telemetry: dict[str, Any] | None = None
|
|
1648
|
-
if callable(telemetry_getter):
|
|
1649
|
-
try:
|
|
1650
|
-
telemetry_payload = telemetry_getter()
|
|
1651
|
-
if isinstance(telemetry_payload, dict):
|
|
1652
|
-
http_telemetry = telemetry_payload
|
|
1653
|
-
except Exception:
|
|
1654
|
-
http_telemetry = None
|
|
1655
|
-
if http_telemetry is None:
|
|
1656
|
-
http_telemetry = {}
|
|
1657
|
-
|
|
1658
|
-
elapsed_seconds = max(0.001, time.perf_counter() - crawl_started_at)
|
|
1659
|
-
throughput_pages_per_second = round(nodes_processed / elapsed_seconds, 3)
|
|
1660
|
-
latency_metrics = http_telemetry.get("latency_ms") if isinstance(http_telemetry, dict) else None
|
|
1661
|
-
p95_page_latency_ms = None
|
|
1662
|
-
if isinstance(latency_metrics, dict):
|
|
1663
|
-
operation_latency = latency_metrics.get("operation")
|
|
1664
|
-
if isinstance(operation_latency, dict):
|
|
1665
|
-
p95_value = operation_latency.get("p95")
|
|
1666
|
-
if isinstance(p95_value, (float, int)):
|
|
1667
|
-
p95_page_latency_ms = round(float(p95_value), 3)
|
|
1668
|
-
|
|
1669
|
-
retry_events_total = None
|
|
1670
|
-
if isinstance(http_telemetry, dict):
|
|
1671
|
-
retry_events_list = http_telemetry.get("recent_retry_events")
|
|
1672
|
-
if isinstance(retry_events_list, list):
|
|
1673
|
-
retry_events_total = len(retry_events_list)
|
|
1674
|
-
|
|
1675
|
-
if isinstance(http_telemetry, dict):
|
|
1676
|
-
http_telemetry["inflight_workers"] = max_inflight_workers
|
|
1677
|
-
http_telemetry["queue_depth"] = len(queue)
|
|
1678
|
-
http_telemetry["pages_per_second"] = throughput_pages_per_second
|
|
1679
|
-
http_telemetry["retry_events"] = retry_events_total
|
|
1680
|
-
http_telemetry["p95_page_latency_ms"] = p95_page_latency_ms
|
|
1681
|
-
adaptive_throttle = http_telemetry.get("adaptive_throttle")
|
|
1682
|
-
if isinstance(adaptive_throttle, dict):
|
|
1683
|
-
signal_value = adaptive_throttle.get("effective_concurrency_signal")
|
|
1684
|
-
if isinstance(signal_value, (float, int)):
|
|
1685
|
-
effective_concurrency_signal = float(signal_value)
|
|
1686
|
-
pressure_value = adaptive_throttle.get("pressure_score")
|
|
1687
|
-
if isinstance(pressure_value, (float, int)):
|
|
1688
|
-
throttle_pressure_score = float(pressure_value)
|
|
1689
|
-
|
|
1690
|
-
crawl_state.last_sync_timestamp = _now_iso()
|
|
1691
|
-
pages_skipped = skipped_unchanged + skipped_already_visited
|
|
1692
|
-
progress_event = {
|
|
1693
|
-
"pages_discovered": len(discovered_page_ids),
|
|
1694
|
-
"pages_fetched": pages_fetched,
|
|
1695
|
-
"pages_failed": pages_failed,
|
|
1696
|
-
"pages_skipped": pages_skipped,
|
|
1697
|
-
"pages_skipped_unchanged": skipped_unchanged,
|
|
1698
|
-
"throttle": {
|
|
1699
|
-
"configured_page_concurrency": page_concurrency,
|
|
1700
|
-
"effective_page_concurrency": effective_page_concurrency,
|
|
1701
|
-
"effective_concurrency_signal": effective_concurrency_signal,
|
|
1702
|
-
"pressure_score": throttle_pressure_score,
|
|
1703
|
-
},
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
crawl_state.pending_queue = list(queue)
|
|
1707
|
-
crawl_state.completed = len(queue) == 0
|
|
1708
|
-
if crawl_state.completed:
|
|
1709
|
-
termination_reason = "queue_exhausted"
|
|
1710
|
-
crawl_state.run_diagnostics = {
|
|
1711
|
-
"termination_reason": termination_reason,
|
|
1712
|
-
"nodes_processed": nodes_processed,
|
|
1713
|
-
"skipped_unchanged": skipped_unchanged,
|
|
1714
|
-
"skipped_already_visited": skipped_already_visited,
|
|
1715
|
-
"pages_fetched": pages_fetched,
|
|
1716
|
-
"pages_failed": pages_failed,
|
|
1717
|
-
"pages_discovered": len(discovered_page_ids),
|
|
1718
|
-
"pages_skipped": pages_skipped,
|
|
1719
|
-
"pending_queue_size": len(queue),
|
|
1720
|
-
"page_concurrency": page_concurrency,
|
|
1721
|
-
"staged_mode": staged_mode,
|
|
1722
|
-
"incremental_cql": bool(options.incremental_cql),
|
|
1723
|
-
"rate_limit_budget": int(options.rate_limit_budget),
|
|
1724
|
-
"full_reconciliation_interval_days": max(1, int(options.full_reconciliation_interval_days)),
|
|
1725
|
-
"last_sync_timestamp": crawl_state.last_sync_timestamp,
|
|
1726
|
-
"last_full_reconciliation_timestamp": crawl_state.last_full_reconciliation_timestamp,
|
|
1727
|
-
"incremental_overlap_minutes": max(0, int(options.incremental_overlap_minutes)),
|
|
1728
|
-
"incremental_known_page_count": incremental_known_page_count,
|
|
1729
|
-
"incremental_candidate_count": len(incremental_candidate_ids),
|
|
1730
|
-
"incremental_high_water_mark_ran": incremental_high_water_mark_ran,
|
|
1731
|
-
"incremental_high_water_mark_skipped": incremental_high_water_mark_skipped,
|
|
1732
|
-
"incremental_high_water_mark_skip_reason": incremental_high_water_mark_skip_reason,
|
|
1733
|
-
"full_reconciliation_ran": full_reconciliation_ran,
|
|
1734
|
-
"full_reconciliation_deleted_ids": full_reconciliation_deleted_ids,
|
|
1735
|
-
"full_reconciliation_skipped": full_reconciliation_skipped,
|
|
1736
|
-
"full_reconciliation_skip_reason": full_reconciliation_skip_reason,
|
|
1737
|
-
"full_reconciliation_known_page_count": full_reconciliation_known_page_count,
|
|
1738
|
-
"structure_pre_discovered_nodes": structure_pre_discovered_nodes if use_structure_first else None,
|
|
1739
|
-
"progress_event": progress_event,
|
|
1740
|
-
"telemetry": http_telemetry,
|
|
1741
|
-
"http_telemetry": http_telemetry,
|
|
1742
|
-
}
|
|
1743
|
-
_save_crawl_state(crawl_state, state_path)
|
|
1744
|
-
|
|
1745
|
-
payload: dict[str, Any] = {
|
|
1746
|
-
"root_ref": root_ref,
|
|
1747
|
-
"root_page_id": resolved_root_id,
|
|
1748
|
-
"out_dir": str(output_dir),
|
|
1749
|
-
"generated_at": _now_iso(),
|
|
1750
|
-
"body_format": body_format,
|
|
1751
|
-
"chunk_max_chars": chunk_max_chars,
|
|
1752
|
-
"crawl_mode": {
|
|
1753
|
-
"page_concurrency": page_concurrency,
|
|
1754
|
-
"staged_mode": staged_mode,
|
|
1755
|
-
"incremental_cql": bool(options.incremental_cql),
|
|
1756
|
-
"rate_limit_budget": int(options.rate_limit_budget),
|
|
1757
|
-
"incremental_overlap_minutes": max(0, int(options.incremental_overlap_minutes)),
|
|
1758
|
-
"full_reconciliation_interval_days": max(1, int(options.full_reconciliation_interval_days)),
|
|
1759
|
-
},
|
|
1760
|
-
"page": root_meta,
|
|
1761
|
-
"child_pages": child_pages,
|
|
1762
|
-
"attachments": attachments,
|
|
1763
|
-
"corpus_path": None,
|
|
1764
|
-
"link_graph_path": None,
|
|
1765
|
-
"tables_path": None,
|
|
1766
|
-
"mentions_path": None,
|
|
1767
|
-
"progress_event": progress_event,
|
|
1768
|
-
"resume_state": {
|
|
1769
|
-
"skipped_unchanged": skipped_unchanged,
|
|
1770
|
-
"skipped_already_visited": skipped_already_visited,
|
|
1771
|
-
"pages_fetched": pages_fetched,
|
|
1772
|
-
"pages_failed": pages_failed,
|
|
1773
|
-
"pages_discovered": len(discovered_page_ids),
|
|
1774
|
-
"pages_skipped": pages_skipped,
|
|
1775
|
-
"pages_skipped_unchanged": skipped_unchanged,
|
|
1776
|
-
"nodes_processed": nodes_processed,
|
|
1777
|
-
"completed": crawl_state.completed,
|
|
1778
|
-
"termination_reason": termination_reason,
|
|
1779
|
-
"pending_queue_size": len(queue),
|
|
1780
|
-
"state_path": str(state_path),
|
|
1781
|
-
"page_concurrency": page_concurrency,
|
|
1782
|
-
"staged_mode": staged_mode,
|
|
1783
|
-
"last_sync_timestamp": crawl_state.last_sync_timestamp,
|
|
1784
|
-
"last_full_reconciliation_timestamp": crawl_state.last_full_reconciliation_timestamp,
|
|
1785
|
-
},
|
|
1786
|
-
"telemetry": http_telemetry,
|
|
1787
|
-
"http_telemetry": http_telemetry,
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
if options.emit_corpus:
|
|
1791
|
-
corpus_path = output_dir / "corpus.jsonl"
|
|
1792
|
-
if corpus_chunks or not (options.resume and corpus_path.exists()):
|
|
1793
|
-
with corpus_path.open("w", encoding="utf-8") as fp:
|
|
1794
|
-
for item in corpus_chunks:
|
|
1795
|
-
fp.write(json.dumps(item, ensure_ascii=False) + "\n")
|
|
1796
|
-
payload["corpus_path"] = str(corpus_path)
|
|
1797
|
-
|
|
1798
|
-
if options.emit_link_graph:
|
|
1799
|
-
graph_path = output_dir / "link-graph.json"
|
|
1800
|
-
if link_edges or not (options.resume and graph_path.exists()):
|
|
1801
|
-
graph_payload = {
|
|
1802
|
-
"generated_at": payload["generated_at"],
|
|
1803
|
-
"root_page_id": resolved_root_id,
|
|
1804
|
-
"edges": [edge for edge in link_edges if edge.get("target_url")],
|
|
1805
|
-
}
|
|
1806
|
-
graph_path.write_text(json.dumps(graph_payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
|
1807
|
-
payload["link_graph_path"] = str(graph_path)
|
|
1808
|
-
|
|
1809
|
-
if options.emit_tables:
|
|
1810
|
-
tables_path = output_dir / "tables.jsonl"
|
|
1811
|
-
if tables or not (options.resume and tables_path.exists()):
|
|
1812
|
-
with tables_path.open("w", encoding="utf-8") as fp:
|
|
1813
|
-
for item in tables:
|
|
1814
|
-
fp.write(json.dumps(item, ensure_ascii=False) + "\n")
|
|
1815
|
-
payload["tables_path"] = str(tables_path)
|
|
1816
|
-
|
|
1817
|
-
if options.emit_mentions:
|
|
1818
|
-
mentions_path = output_dir / "mentions.jsonl"
|
|
1819
|
-
if mentions or not (options.resume and mentions_path.exists()):
|
|
1820
|
-
with mentions_path.open("w", encoding="utf-8") as fp:
|
|
1821
|
-
for item in mentions:
|
|
1822
|
-
fp.write(json.dumps(item, ensure_ascii=False) + "\n")
|
|
1823
|
-
payload["mentions_path"] = str(mentions_path)
|
|
1824
|
-
|
|
1825
|
-
resolved_manifest_path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
|
1826
|
-
payload["manifest_path"] = str(resolved_manifest_path)
|
|
1827
|
-
|
|
1828
|
-
# Create bundle zip if requested (TSK-189)
|
|
1829
|
-
if options.bundle:
|
|
1830
|
-
bundle_path = _create_bundle_zip(output_dir, resolved_root_id, resolved_manifest_path)
|
|
1831
|
-
payload["bundle_path"] = str(bundle_path)
|
|
1832
|
-
|
|
1833
|
-
return payload
|