octocode-cli 1.2.6 → 1.2.7
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/LICENSE +21 -63
- package/README.md +85 -142
- package/out/octocode-cli.js +7026 -6945
- package/package.json +8 -6
- package/skills/README.md +97 -120
- package/skills/octocode-code-engineer/.claude/settings.local.json +18 -0
- package/skills/octocode-code-engineer/.octocode/rfc/RFC-code-engineer-weakness-fixes.md +255 -0
- package/skills/octocode-code-engineer/.plan/VALIDATED_PLAN.md +223 -0
- package/skills/octocode-code-engineer/README.md +178 -0
- package/skills/octocode-code-engineer/SKILL.md +418 -0
- package/skills/octocode-code-engineer/coverage/architecture.ts.html +7828 -0
- package/skills/octocode-code-engineer/coverage/ast-helpers.ts.html +211 -0
- package/skills/octocode-code-engineer/coverage/ast-search.ts.html +1795 -0
- package/skills/octocode-code-engineer/coverage/base.css +224 -0
- package/skills/octocode-code-engineer/coverage/block-navigation.js +87 -0
- package/skills/octocode-code-engineer/coverage/cache.ts.html +376 -0
- package/skills/octocode-code-engineer/coverage/cli.ts.html +982 -0
- package/skills/octocode-code-engineer/coverage/clover.xml +3217 -0
- package/skills/octocode-code-engineer/coverage/collect-effects.ts.html +664 -0
- package/skills/octocode-code-engineer/coverage/collect-input-sources.ts.html +577 -0
- package/skills/octocode-code-engineer/coverage/collect-performance.ts.html +331 -0
- package/skills/octocode-code-engineer/coverage/collect-prototype-pollution.ts.html +421 -0
- package/skills/octocode-code-engineer/coverage/collect-security.ts.html +604 -0
- package/skills/octocode-code-engineer/coverage/collect-test-profile.ts.html +589 -0
- package/skills/octocode-code-engineer/coverage/coverage-final.json +30 -0
- package/skills/octocode-code-engineer/coverage/dependencies.ts.html +997 -0
- package/skills/octocode-code-engineer/coverage/dependency-summary.ts.html +688 -0
- package/skills/octocode-code-engineer/coverage/discovery.ts.html +322 -0
- package/skills/octocode-code-engineer/coverage/favicon.png +0 -0
- package/skills/octocode-code-engineer/coverage/graph-analytics.ts.html +1510 -0
- package/skills/octocode-code-engineer/coverage/index.html +536 -0
- package/skills/octocode-code-engineer/coverage/index.ts.html +826 -0
- package/skills/octocode-code-engineer/coverage/metrics.ts.html +553 -0
- package/skills/octocode-code-engineer/coverage/pipeline.ts.html +2044 -0
- package/skills/octocode-code-engineer/coverage/prettify.css +1 -0
- package/skills/octocode-code-engineer/coverage/prettify.js +2 -0
- package/skills/octocode-code-engineer/coverage/report-analysis.ts.html +1570 -0
- package/skills/octocode-code-engineer/coverage/report-writer.ts.html +1102 -0
- package/skills/octocode-code-engineer/coverage/security-detectors.ts.html +1747 -0
- package/skills/octocode-code-engineer/coverage/semantic-detectors.ts.html +2152 -0
- package/skills/octocode-code-engineer/coverage/semantic.ts.html +1897 -0
- package/skills/octocode-code-engineer/coverage/sort-arrow-sprite.png +0 -0
- package/skills/octocode-code-engineer/coverage/sorter.js +210 -0
- package/skills/octocode-code-engineer/coverage/summary-md.ts.html +1222 -0
- package/skills/octocode-code-engineer/coverage/test-quality-detectors.ts.html +1039 -0
- package/skills/octocode-code-engineer/coverage/tree-sitter-analyzer.ts.html +955 -0
- package/skills/octocode-code-engineer/coverage/ts-analyzer.ts.html +1213 -0
- package/skills/octocode-code-engineer/coverage/types.ts.html +2473 -0
- package/skills/octocode-code-engineer/coverage/utils.ts.html +820 -0
- package/skills/octocode-code-engineer/eslint.config.mjs +54 -0
- package/skills/octocode-code-engineer/minify-scripts.mjs +32 -0
- package/skills/octocode-code-engineer/package.json +54 -0
- package/skills/octocode-code-engineer/references/agent-ast-reading-rfc.md +95 -0
- package/skills/octocode-code-engineer/references/architecture-techniques.md +121 -0
- package/skills/octocode-code-engineer/references/ast-search.md +210 -0
- package/skills/octocode-code-engineer/references/ast-tree-search.md +151 -0
- package/skills/octocode-code-engineer/references/cli-reference.md +167 -0
- package/skills/octocode-code-engineer/references/concepts.md +107 -0
- package/skills/octocode-code-engineer/references/finding-categories.md +128 -0
- package/skills/octocode-code-engineer/references/improvement-roadmap.md +304 -0
- package/skills/octocode-code-engineer/references/output-files.md +144 -0
- package/skills/octocode-code-engineer/references/playbooks.md +204 -0
- package/skills/octocode-code-engineer/references/present-results.md +136 -0
- package/skills/octocode-code-engineer/references/tool-workflows.md +566 -0
- package/skills/octocode-code-engineer/references/validate-investigate.md +225 -0
- package/skills/octocode-code-engineer/scripts/analysis/dependencies.js +1 -0
- package/skills/octocode-code-engineer/scripts/analysis/dependency-summary.js +1 -0
- package/skills/octocode-code-engineer/scripts/analysis/discovery.js +1 -0
- package/skills/octocode-code-engineer/scripts/analysis/graph-analytics.js +1 -0
- package/skills/octocode-code-engineer/scripts/analysis/semantic.js +1 -0
- package/skills/octocode-code-engineer/scripts/ast/helpers.js +1 -0
- package/skills/octocode-code-engineer/scripts/ast/metrics.js +1 -0
- package/skills/octocode-code-engineer/scripts/ast/search.js +2 -0
- package/skills/octocode-code-engineer/scripts/ast/tree-search.js +2 -0
- package/skills/octocode-code-engineer/scripts/ast/tree-sitter.js +1 -0
- package/skills/octocode-code-engineer/scripts/ast/ts-analyzer.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/chains.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/effects.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/input-sources.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/performance.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/prototype-pollution.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/security.js +1 -0
- package/skills/octocode-code-engineer/scripts/collectors/test-profile.js +1 -0
- package/skills/octocode-code-engineer/scripts/common/is-direct-run.js +1 -0
- package/skills/octocode-code-engineer/scripts/common/utils.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/code-quality.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/cohesion.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/coupling.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/cycle.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/dead-code.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/import-style.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/index.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/security.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/semantic.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/shared.js +1 -0
- package/skills/octocode-code-engineer/scripts/detectors/test-quality.js +1 -0
- package/skills/octocode-code-engineer/scripts/index.js +1 -0
- package/skills/octocode-code-engineer/scripts/pipeline/cache.js +1 -0
- package/skills/octocode-code-engineer/scripts/pipeline/cli.js +1 -0
- package/skills/octocode-code-engineer/scripts/pipeline/main.js +2 -0
- package/skills/octocode-code-engineer/scripts/reporting/analysis.js +1 -0
- package/skills/octocode-code-engineer/scripts/reporting/summary-md.js +1 -0
- package/skills/octocode-code-engineer/scripts/reporting/writer.js +1 -0
- package/skills/octocode-code-engineer/scripts/types/constants.js +1 -0
- package/skills/octocode-code-engineer/scripts/types/index.js +1 -0
- package/skills/octocode-code-engineer/scripts/types/interfaces.js +1 -0
- package/skills/octocode-code-engineer/src/analysis/dependencies.test.ts +545 -0
- package/skills/octocode-code-engineer/src/analysis/dependencies.ts +406 -0
- package/skills/octocode-code-engineer/src/analysis/dependency-summary.test.ts +566 -0
- package/skills/octocode-code-engineer/src/analysis/dependency-summary.ts +257 -0
- package/skills/octocode-code-engineer/src/analysis/discovery.test.ts +420 -0
- package/skills/octocode-code-engineer/src/analysis/discovery.ts +87 -0
- package/skills/octocode-code-engineer/src/analysis/graph-analytics.test.ts +449 -0
- package/skills/octocode-code-engineer/src/analysis/graph-analytics.ts +534 -0
- package/skills/octocode-code-engineer/src/analysis/semantic.test.ts +1533 -0
- package/skills/octocode-code-engineer/src/analysis/semantic.ts +830 -0
- package/skills/octocode-code-engineer/src/ast/helpers.test.ts +185 -0
- package/skills/octocode-code-engineer/src/ast/helpers.ts +62 -0
- package/skills/octocode-code-engineer/src/ast/metrics.test.ts +304 -0
- package/skills/octocode-code-engineer/src/ast/metrics.ts +204 -0
- package/skills/octocode-code-engineer/src/ast/search.test.ts +647 -0
- package/skills/octocode-code-engineer/src/ast/search.ts +648 -0
- package/skills/octocode-code-engineer/src/ast/tree-search.test.ts +199 -0
- package/skills/octocode-code-engineer/src/ast/tree-search.ts +392 -0
- package/skills/octocode-code-engineer/src/ast/tree-sitter.test.ts +407 -0
- package/skills/octocode-code-engineer/src/ast/tree-sitter.ts +402 -0
- package/skills/octocode-code-engineer/src/ast/ts-analyzer.test.ts +1864 -0
- package/skills/octocode-code-engineer/src/ast/ts-analyzer.ts +509 -0
- package/skills/octocode-code-engineer/src/collectors/chains.ts +74 -0
- package/skills/octocode-code-engineer/src/collectors/effects.test.ts +490 -0
- package/skills/octocode-code-engineer/src/collectors/effects.ts +332 -0
- package/skills/octocode-code-engineer/src/collectors/input-sources.test.ts +144 -0
- package/skills/octocode-code-engineer/src/collectors/input-sources.ts +196 -0
- package/skills/octocode-code-engineer/src/collectors/performance.test.ts +82 -0
- package/skills/octocode-code-engineer/src/collectors/performance.ts +141 -0
- package/skills/octocode-code-engineer/src/collectors/prototype-pollution.test.ts +55 -0
- package/skills/octocode-code-engineer/src/collectors/prototype-pollution.ts +162 -0
- package/skills/octocode-code-engineer/src/collectors/security.test.ts +124 -0
- package/skills/octocode-code-engineer/src/collectors/security.ts +309 -0
- package/skills/octocode-code-engineer/src/collectors/test-profile.test.ts +97 -0
- package/skills/octocode-code-engineer/src/collectors/test-profile.ts +269 -0
- package/skills/octocode-code-engineer/src/common/is-direct-run.test.ts +32 -0
- package/skills/octocode-code-engineer/src/common/is-direct-run.ts +13 -0
- package/skills/octocode-code-engineer/src/common/utils.test.ts +463 -0
- package/skills/octocode-code-engineer/src/common/utils.ts +304 -0
- package/skills/octocode-code-engineer/src/detectors/code-quality.ts +966 -0
- package/skills/octocode-code-engineer/src/detectors/cohesion.ts +539 -0
- package/skills/octocode-code-engineer/src/detectors/coupling.ts +323 -0
- package/skills/octocode-code-engineer/src/detectors/cycle.ts +349 -0
- package/skills/octocode-code-engineer/src/detectors/dead-code.ts +320 -0
- package/skills/octocode-code-engineer/src/detectors/import-style.ts +376 -0
- package/skills/octocode-code-engineer/src/detectors/index.test.ts +3061 -0
- package/skills/octocode-code-engineer/src/detectors/index.ts +88 -0
- package/skills/octocode-code-engineer/src/detectors/security.test.ts +882 -0
- package/skills/octocode-code-engineer/src/detectors/security.ts +821 -0
- package/skills/octocode-code-engineer/src/detectors/semantic.ts +758 -0
- package/skills/octocode-code-engineer/src/detectors/shared.ts +49 -0
- package/skills/octocode-code-engineer/src/detectors/test-quality.test.ts +388 -0
- package/skills/octocode-code-engineer/src/detectors/test-quality.ts +367 -0
- package/skills/octocode-code-engineer/src/index.test.ts +4425 -0
- package/skills/octocode-code-engineer/src/index.ts +403 -0
- package/skills/octocode-code-engineer/src/pipeline/cache.test.ts +199 -0
- package/skills/octocode-code-engineer/src/pipeline/cache.ts +130 -0
- package/skills/octocode-code-engineer/src/pipeline/cli.test.ts +493 -0
- package/skills/octocode-code-engineer/src/pipeline/cli.ts +344 -0
- package/skills/octocode-code-engineer/src/pipeline/main.test.ts +174 -0
- package/skills/octocode-code-engineer/src/pipeline/main.ts +1074 -0
- package/skills/octocode-code-engineer/src/pipeline.test.ts +84 -0
- package/skills/octocode-code-engineer/src/reporting/analysis.test.ts +782 -0
- package/skills/octocode-code-engineer/src/reporting/analysis.ts +688 -0
- package/skills/octocode-code-engineer/src/reporting/output-contract.test.ts +463 -0
- package/skills/octocode-code-engineer/src/reporting/summary-md.test.ts +421 -0
- package/skills/octocode-code-engineer/src/reporting/summary-md.ts +714 -0
- package/skills/octocode-code-engineer/src/reporting/writer.ts +430 -0
- package/skills/octocode-code-engineer/src/sanity.test.ts +47 -0
- package/skills/octocode-code-engineer/src/types/constants.ts +248 -0
- package/skills/octocode-code-engineer/src/types/index.ts +80 -0
- package/skills/octocode-code-engineer/src/types/interfaces.ts +682 -0
- package/skills/octocode-code-engineer/tsconfig.json +17 -0
- package/skills/octocode-code-engineer/vitest.config.ts +8 -0
- package/skills/octocode-documentation-writer/README.md +113 -0
- package/skills/octocode-documentation-writer/SKILL.md +886 -0
- package/skills/octocode-documentation-writer/references/agent-discovery-analysis.md +453 -0
- package/skills/octocode-documentation-writer/references/agent-documentation-writer.md +255 -0
- package/skills/octocode-documentation-writer/references/agent-engineer-questions.md +247 -0
- package/skills/octocode-documentation-writer/references/agent-orchestrator.md +370 -0
- package/skills/octocode-documentation-writer/references/agent-qa-validator.md +227 -0
- package/skills/octocode-documentation-writer/references/agent-researcher.md +250 -0
- package/skills/octocode-documentation-writer/schemas/analysis-schema.json +886 -0
- package/skills/octocode-documentation-writer/schemas/discovery-tasks.json +96 -0
- package/skills/octocode-documentation-writer/schemas/documentation-structure.json +373 -0
- package/skills/octocode-documentation-writer/schemas/partial-discovery-schema.json +102 -0
- package/skills/octocode-documentation-writer/schemas/partial-research-schema.json +98 -0
- package/skills/octocode-documentation-writer/schemas/qa-results-schema.json +113 -0
- package/skills/octocode-documentation-writer/schemas/questions-schema.json +228 -0
- package/skills/octocode-documentation-writer/schemas/research-schema.json +104 -0
- package/skills/octocode-documentation-writer/schemas/state-schema.json +222 -0
- package/skills/octocode-documentation-writer/schemas/work-assignments-schema.json +74 -0
- package/skills/octocode-plan/SKILL.md +122 -116
- package/skills/octocode-prompt-optimizer/SKILL.md +617 -0
- package/skills/octocode-pull-request-reviewer/README.md +249 -0
- package/skills/octocode-pull-request-reviewer/SKILL.md +479 -0
- package/skills/octocode-pull-request-reviewer/references/dependency-check.md +74 -0
- package/skills/octocode-pull-request-reviewer/references/domain-reviewers.md +24 -0
- package/skills/octocode-pull-request-reviewer/references/execution-lifecycle.md +441 -0
- package/skills/octocode-pull-request-reviewer/references/flow-analysis-protocol.md +64 -0
- package/skills/octocode-pull-request-reviewer/references/output-template.md +174 -0
- package/skills/octocode-pull-request-reviewer/references/parallel-agent-protocol.md +182 -0
- package/skills/octocode-pull-request-reviewer/references/review-guidelines.md +26 -0
- package/skills/octocode-pull-request-reviewer/references/verification-checklist.md +40 -0
- package/skills/octocode-research/.claude/settings.local.json +46 -0
- package/skills/octocode-research/.octocode/plan/code-review-fixes/plan.md +312 -0
- package/skills/octocode-research/.octocode/plan/code-review-fixes/research.md +212 -0
- package/skills/octocode-research/.octocode/plans/NODE_SERVER_START_PLAN.md +755 -0
- package/skills/octocode-research/.octocode/research/code-review/research.md +371 -0
- package/skills/octocode-research/.octocode/review/IMPROVEMENTS.md +391 -0
- package/skills/octocode-research/.octocode/review/REVIEW_PLAN.md +289 -0
- package/skills/octocode-research/.octocode/review/REVIEW_REPORT.md +356 -0
- package/skills/octocode-research/AGENTS.md +349 -0
- package/skills/octocode-research/README.md +494 -0
- package/skills/octocode-research/SKILL.md +652 -274
- package/skills/octocode-research/docs/API_REFERENCE.md +562 -0
- package/skills/octocode-research/docs/ARCHITECTURE.md +554 -0
- package/skills/octocode-research/docs/FLOWS.md +577 -0
- package/skills/octocode-research/docs/OVERVIEW.md +564 -0
- package/skills/octocode-research/docs/SERVER_FLOWS.md +631 -0
- package/skills/octocode-research/ecosystem.config.cjs +88 -0
- package/skills/octocode-research/eslint.config.mjs +27 -0
- package/skills/octocode-research/package.json +84 -0
- package/skills/octocode-research/references/GUARDRAILS.md +40 -0
- package/skills/octocode-research/references/PARALLEL_AGENT_PROTOCOL.md +178 -0
- package/skills/octocode-research/references/roast-prompt.md +149 -0
- package/skills/octocode-research/scripts/server-init.d.ts +2 -0
- package/skills/octocode-research/scripts/server-init.js +2 -0
- package/skills/octocode-research/scripts/server.d.ts +8 -0
- package/skills/octocode-research/scripts/server.js +445 -0
- package/skills/octocode-research/src/__tests__/integration/circuitBreaker.test.ts +205 -0
- package/skills/octocode-research/src/__tests__/integration/routes.test.ts +374 -0
- package/skills/octocode-research/src/__tests__/unit/circuitBreaker.test.ts +245 -0
- package/skills/octocode-research/src/__tests__/unit/errorHandler.test.ts +183 -0
- package/skills/octocode-research/src/__tests__/unit/httpPreprocess.test.ts +157 -0
- package/skills/octocode-research/src/__tests__/unit/logger.test.ts +143 -0
- package/skills/octocode-research/src/__tests__/unit/queryParser.test.ts +130 -0
- package/skills/octocode-research/src/__tests__/unit/responseBuilder.test.ts +469 -0
- package/skills/octocode-research/src/__tests__/unit/retry.test.ts +205 -0
- package/skills/octocode-research/src/index.ts +186 -0
- package/skills/octocode-research/src/mcpCache.ts +49 -0
- package/skills/octocode-research/src/middleware/errorHandler.ts +65 -0
- package/skills/octocode-research/src/middleware/logger.ts +61 -0
- package/skills/octocode-research/src/middleware/queryParser.ts +115 -0
- package/skills/octocode-research/src/middleware/readiness.ts +17 -0
- package/skills/octocode-research/src/routes/github.ts +197 -0
- package/skills/octocode-research/src/routes/local.ts +175 -0
- package/skills/octocode-research/src/routes/lsp.ts +177 -0
- package/skills/octocode-research/src/routes/package.ts +127 -0
- package/skills/octocode-research/src/routes/prompts.ts +138 -0
- package/skills/octocode-research/src/routes/tools.ts +677 -0
- package/skills/octocode-research/src/server-init.ts +363 -0
- package/skills/octocode-research/src/server.ts +285 -0
- package/skills/octocode-research/src/types/errorGuards.ts +151 -0
- package/skills/octocode-research/src/types/express.d.ts +76 -0
- package/skills/octocode-research/src/types/guards.ts +98 -0
- package/skills/octocode-research/src/types/mcp.ts +119 -0
- package/skills/octocode-research/src/types/responses.ts +199 -0
- package/skills/octocode-research/src/types/toolTypes.ts +33 -0
- package/skills/octocode-research/src/utils/asyncTimeout.ts +116 -0
- package/skills/octocode-research/src/utils/circuitBreaker.ts +492 -0
- package/skills/octocode-research/src/utils/colors.ts +53 -0
- package/skills/octocode-research/src/utils/errorQueue.ts +71 -0
- package/skills/octocode-research/src/utils/logEmoji.ts +103 -0
- package/skills/octocode-research/src/utils/logger.ts +413 -0
- package/skills/octocode-research/src/utils/resilience.ts +169 -0
- package/skills/octocode-research/src/utils/responseBuilder.ts +495 -0
- package/skills/octocode-research/src/utils/responseFactory.ts +100 -0
- package/skills/octocode-research/src/utils/responseParser.ts +272 -0
- package/skills/octocode-research/src/utils/retry.ts +280 -0
- package/skills/octocode-research/src/utils/routeFactory.ts +117 -0
- package/skills/octocode-research/src/utils/url.ts +20 -0
- package/skills/octocode-research/src/validation/httpPreprocess.ts +155 -0
- package/skills/octocode-research/src/validation/index.ts +2 -0
- package/skills/octocode-research/src/validation/schemas.ts +578 -0
- package/skills/octocode-research/src/validation/toolCallSchema.ts +132 -0
- package/skills/octocode-research/tsconfig.json +21 -0
- package/skills/octocode-research/tsdown.config.ts +42 -0
- package/skills/octocode-research/vitest.config.ts +20 -0
- package/skills/octocode-researcher/SKILL.md +461 -0
- package/skills/octocode-researcher/references/fallbacks.md +120 -0
- package/skills/{octocode-local-search → octocode-researcher}/references/tool-reference.md +132 -49
- package/skills/{octocode-local-search → octocode-researcher}/references/workflow-patterns.md +204 -4
- package/skills/octocode-rfc-generator/SKILL.md +223 -0
- package/skills/octocode-rfc-generator/references/rfc-template.md +193 -0
- package/skills/octocode-roast/SKILL.md +63 -21
- package/skills/octocode-implement/SKILL.md +0 -293
- package/skills/octocode-implement/references/execution-phases.md +0 -317
- package/skills/octocode-implement/references/tool-reference.md +0 -403
- package/skills/octocode-implement/references/workflow-patterns.md +0 -385
- package/skills/octocode-local-search/SKILL.md +0 -449
- package/skills/octocode-pr-review/SKILL.md +0 -391
- package/skills/octocode-pr-review/references/domain-reviewers.md +0 -105
- package/skills/octocode-pr-review/references/execution-lifecycle.md +0 -116
- package/skills/octocode-pr-review/references/research-flows.md +0 -75
- package/skills/octocode-research/references/tool-reference.md +0 -304
- package/skills/octocode-research/references/workflow-patterns.md +0 -325
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "discovery-tasks.json",
|
|
4
|
+
"title": "Discovery Tasks Schema",
|
|
5
|
+
"description": "Schema for defining parallel discovery workflow structure with agents and aggregation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"phase": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The phase identifier for this discovery workflow",
|
|
11
|
+
"enum": ["discovery-analysis"]
|
|
12
|
+
},
|
|
13
|
+
"parallel_agents": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"description": "List of agents that run in parallel during discovery",
|
|
16
|
+
"minItems": 1,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Unique identifier for the agent",
|
|
23
|
+
"pattern": "^agent-[0-9]+[a-z]-[a-z]+(-[a-z]+)*$"
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Human-readable description of what this agent discovers"
|
|
28
|
+
},
|
|
29
|
+
"critical": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"description": "Whether this agent's completion is critical for the workflow",
|
|
32
|
+
"default": true
|
|
33
|
+
},
|
|
34
|
+
"subagent_id": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Identifier used to spawn or reference this subagent",
|
|
37
|
+
"pattern": "^[0-9]+[a-z]-[a-z]+(-[a-z]+)*$"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": ["id", "description", "critical", "subagent_id"],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"aggregation": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"description": "Configuration for the aggregation step that combines parallel results",
|
|
47
|
+
"properties": {
|
|
48
|
+
"description": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Human-readable description of the aggregation step"
|
|
51
|
+
},
|
|
52
|
+
"subagent_id": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Identifier for the aggregation subagent"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["description", "subagent_id"],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["phase", "parallel_agents", "aggregation"],
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"default": {
|
|
64
|
+
"phase": "discovery-analysis",
|
|
65
|
+
"parallel_agents": [
|
|
66
|
+
{
|
|
67
|
+
"id": "agent-1a-language",
|
|
68
|
+
"description": "Language & Manifest Discovery",
|
|
69
|
+
"critical": true,
|
|
70
|
+
"subagent_id": "1a-language"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "agent-1b-components",
|
|
74
|
+
"description": "Component Discovery",
|
|
75
|
+
"critical": true,
|
|
76
|
+
"subagent_id": "1b-components"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "agent-1c-dependencies",
|
|
80
|
+
"description": "Dependency Mapping",
|
|
81
|
+
"critical": true,
|
|
82
|
+
"subagent_id": "1c-dependencies"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "agent-1d-flows-apis",
|
|
86
|
+
"description": "Flow & API Discovery",
|
|
87
|
+
"critical": true,
|
|
88
|
+
"subagent_id": "1d-flows-apis"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"aggregation": {
|
|
92
|
+
"description": "Aggregate parallel analysis results",
|
|
93
|
+
"subagent_id": "aggregation"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Documentation Structure Schema",
|
|
4
|
+
"description": "Centralized definition of rigid documentation structure for all octocode-documentation-writer agents and commands",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"structure": {
|
|
7
|
+
"description": "Complete documentation structure with files and folders",
|
|
8
|
+
"core_files": {
|
|
9
|
+
"description": "Required core documentation files (numbered, sequential)",
|
|
10
|
+
"generated_by_default": "documentation-writer",
|
|
11
|
+
"files": [
|
|
12
|
+
{
|
|
13
|
+
"filename": "01-project-overview.md",
|
|
14
|
+
"title": "Project Overview",
|
|
15
|
+
"description": "Project summary, mission, users, what it does",
|
|
16
|
+
"required": true,
|
|
17
|
+
"order": 1,
|
|
18
|
+
"sections": [
|
|
19
|
+
"Project Purpose",
|
|
20
|
+
"Target Users",
|
|
21
|
+
"Key Features",
|
|
22
|
+
"Project Type",
|
|
23
|
+
"Primary Language",
|
|
24
|
+
"Key Flows"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"filename": "02-technical-stack.md",
|
|
29
|
+
"title": "Technical Stack",
|
|
30
|
+
"description": "Complete technology inventory",
|
|
31
|
+
"required": true,
|
|
32
|
+
"order": 2,
|
|
33
|
+
"sections": [
|
|
34
|
+
"Languages",
|
|
35
|
+
"Frameworks",
|
|
36
|
+
"Databases",
|
|
37
|
+
"Message Queues",
|
|
38
|
+
"External Services",
|
|
39
|
+
"Build Tools",
|
|
40
|
+
"Key Dependencies"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"filename": "03-development-setup.md",
|
|
45
|
+
"title": "Development Setup",
|
|
46
|
+
"description": "How to set up development environment",
|
|
47
|
+
"required": true,
|
|
48
|
+
"order": 3,
|
|
49
|
+
"sections": [
|
|
50
|
+
"Prerequisites",
|
|
51
|
+
"Installation Steps",
|
|
52
|
+
"Configuration",
|
|
53
|
+
"Common Commands",
|
|
54
|
+
"Troubleshooting"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"filename": "04-api-reference.md",
|
|
59
|
+
"title": "API Reference",
|
|
60
|
+
"description": "Complete API reference with all endpoints/methods",
|
|
61
|
+
"required": true,
|
|
62
|
+
"order": 4,
|
|
63
|
+
"sections": [
|
|
64
|
+
"API Overview",
|
|
65
|
+
"Authentication",
|
|
66
|
+
"Endpoints",
|
|
67
|
+
"Request/Response Formats",
|
|
68
|
+
"Error Codes",
|
|
69
|
+
"Rate Limiting"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"filename": "05-data-models.md",
|
|
74
|
+
"title": "Data Models",
|
|
75
|
+
"description": "Database schemas, data structures, relationships",
|
|
76
|
+
"required": false,
|
|
77
|
+
"order": 5,
|
|
78
|
+
"sections": [
|
|
79
|
+
"Database Schema",
|
|
80
|
+
"Core Entities",
|
|
81
|
+
"Relationships",
|
|
82
|
+
"Indexes",
|
|
83
|
+
"Migrations"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"filename": "06-deployment.md",
|
|
88
|
+
"title": "Deployment",
|
|
89
|
+
"description": "Deployment processes and infrastructure",
|
|
90
|
+
"required": false,
|
|
91
|
+
"order": 6,
|
|
92
|
+
"sections": [
|
|
93
|
+
"Deployment Process",
|
|
94
|
+
"Infrastructure",
|
|
95
|
+
"Environment Variables",
|
|
96
|
+
"CI/CD Pipeline",
|
|
97
|
+
"Rollback Procedures"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"filename": "07-monitoring-logging.md",
|
|
102
|
+
"title": "Monitoring & Logging",
|
|
103
|
+
"description": "Monitoring, logging, observability",
|
|
104
|
+
"required": false,
|
|
105
|
+
"order": 7,
|
|
106
|
+
"sections": [
|
|
107
|
+
"Logging Strategy",
|
|
108
|
+
"Monitoring Tools",
|
|
109
|
+
"Metrics",
|
|
110
|
+
"Alerting",
|
|
111
|
+
"Debugging"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"filename": "08-design-decisions.md",
|
|
116
|
+
"title": "Design Decisions",
|
|
117
|
+
"description": "Key architectural and design decisions",
|
|
118
|
+
"required": true,
|
|
119
|
+
"order": 8,
|
|
120
|
+
"sections": [
|
|
121
|
+
"Architectural Decisions",
|
|
122
|
+
"Technology Choices",
|
|
123
|
+
"Trade-offs",
|
|
124
|
+
"Future Considerations"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"filename": "09-design-patterns.md",
|
|
129
|
+
"title": "Design Patterns",
|
|
130
|
+
"description": "Maps architectural patterns to implementation",
|
|
131
|
+
"required": false,
|
|
132
|
+
"order": 9,
|
|
133
|
+
"sections": [
|
|
134
|
+
"Architectural Patterns",
|
|
135
|
+
"Creational Patterns",
|
|
136
|
+
"Structural Patterns",
|
|
137
|
+
"Behavioral Patterns",
|
|
138
|
+
"Anti-Patterns Avoided"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"filename": "10-state-management.md",
|
|
143
|
+
"title": "State Management",
|
|
144
|
+
"description": "Data transition, persistence, and lifecycle",
|
|
145
|
+
"required": false,
|
|
146
|
+
"order": 10,
|
|
147
|
+
"sections": [
|
|
148
|
+
"Global State Strategy",
|
|
149
|
+
"Data Persistence",
|
|
150
|
+
"State Machines",
|
|
151
|
+
"Reactive Flows",
|
|
152
|
+
"Cache Invalidation"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"filename": "11-testing-strategy.md",
|
|
157
|
+
"title": "Testing Strategy",
|
|
158
|
+
"description": "Validation logic and testing philosophies",
|
|
159
|
+
"required": false,
|
|
160
|
+
"order": 11,
|
|
161
|
+
"sections": [
|
|
162
|
+
"Testing Pyramid",
|
|
163
|
+
"Unit Testing",
|
|
164
|
+
"Integration Strategy",
|
|
165
|
+
"End-to-End Flows",
|
|
166
|
+
"Mocking Strategy"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"filename": "12-security-compliance.md",
|
|
171
|
+
"title": "Security & Compliance",
|
|
172
|
+
"description": "Threat models, encryption, and data handling",
|
|
173
|
+
"required": false,
|
|
174
|
+
"order": 12,
|
|
175
|
+
"sections": [
|
|
176
|
+
"Threat Model",
|
|
177
|
+
"Authentication & Authorization",
|
|
178
|
+
"Data Encryption",
|
|
179
|
+
"Compliance Standards",
|
|
180
|
+
"Secret Management"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"filename": "13-performance-benchmarks.md",
|
|
185
|
+
"title": "Performance Benchmarks",
|
|
186
|
+
"description": "Latency, throughput, and resource consumption",
|
|
187
|
+
"required": false,
|
|
188
|
+
"order": 13,
|
|
189
|
+
"sections": [
|
|
190
|
+
"Baseline Metrics",
|
|
191
|
+
"Load Testing Results",
|
|
192
|
+
"Resource Consumption",
|
|
193
|
+
"Bottlenecks",
|
|
194
|
+
"Optimization Targets"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"filename": "14-contributing-guide.md",
|
|
199
|
+
"title": "Contributing Guide",
|
|
200
|
+
"description": "Rules of engagement for development",
|
|
201
|
+
"required": false,
|
|
202
|
+
"order": 14,
|
|
203
|
+
"sections": [
|
|
204
|
+
"Code of Conduct",
|
|
205
|
+
"Branching Strategy",
|
|
206
|
+
"Commit Conventions",
|
|
207
|
+
"Pull Request Process",
|
|
208
|
+
"Style Guide"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"filename": "15-roadmap.md",
|
|
213
|
+
"title": "Roadmap",
|
|
214
|
+
"description": "Planned features and technical debt",
|
|
215
|
+
"required": false,
|
|
216
|
+
"order": 15,
|
|
217
|
+
"sections": [
|
|
218
|
+
"Upcoming Features",
|
|
219
|
+
"Known Issues",
|
|
220
|
+
"Technical Debt",
|
|
221
|
+
"Long-term Vision",
|
|
222
|
+
"Deprecation Plan"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"filename": "16-glossary.md",
|
|
227
|
+
"title": "Glossary",
|
|
228
|
+
"description": "Domain-specific terminology definitions",
|
|
229
|
+
"required": false,
|
|
230
|
+
"order": 16,
|
|
231
|
+
"sections": [
|
|
232
|
+
"Domain Terms",
|
|
233
|
+
"Acronyms",
|
|
234
|
+
"System-Specific Concepts",
|
|
235
|
+
"Legacy Terms"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
"supplementary_files": {
|
|
241
|
+
"description": "Optional supplementary documentation files",
|
|
242
|
+
"generated_by_default": "documentation-writer",
|
|
243
|
+
"files": [
|
|
244
|
+
{
|
|
245
|
+
"filename": "index.md",
|
|
246
|
+
"title": "Documentation Index",
|
|
247
|
+
"description": "Navigation hub for all documentation",
|
|
248
|
+
"required": false,
|
|
249
|
+
"generated_by": "documentation-writer"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"filename": "QA-SUMMARY.md",
|
|
253
|
+
"title": "QA Summary",
|
|
254
|
+
"description": "Quality validation report",
|
|
255
|
+
"required": false,
|
|
256
|
+
"generated_by": "qa-validator"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"filename": "AGENT.md",
|
|
260
|
+
"title": "Agent Navigation Guide",
|
|
261
|
+
"description": "Meta-documentation for AI agents explaining how to traverse and understand the documentation structure",
|
|
262
|
+
"required": false,
|
|
263
|
+
"generated_by": "documentation-writer"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"folders": {
|
|
268
|
+
"description": "Documentation folder structure",
|
|
269
|
+
"directories": [
|
|
270
|
+
{
|
|
271
|
+
"name": "components",
|
|
272
|
+
"path": "components/",
|
|
273
|
+
"description": "Component-specific documentation",
|
|
274
|
+
"pattern": "*.md",
|
|
275
|
+
"required": false,
|
|
276
|
+
"purpose": "Detailed documentation for individual components/modules"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "features",
|
|
280
|
+
"path": "features/",
|
|
281
|
+
"description": "Feature-specific documentation",
|
|
282
|
+
"pattern": "*.md",
|
|
283
|
+
"required": false,
|
|
284
|
+
"purpose": "In-depth documentation for major features"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "flows",
|
|
288
|
+
"path": "flows/",
|
|
289
|
+
"description": "Flow documentation with diagrams",
|
|
290
|
+
"pattern": "*.md",
|
|
291
|
+
"required": false,
|
|
292
|
+
"purpose": "Step-by-step flows with Mermaid diagrams"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "diagrams",
|
|
296
|
+
"path": "diagrams/",
|
|
297
|
+
"description": "Standalone diagram files",
|
|
298
|
+
"pattern": "*.md",
|
|
299
|
+
"required": false,
|
|
300
|
+
"purpose": "Mermaid diagrams for architecture, sequences, etc."
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
"file_naming_conventions": {
|
|
305
|
+
"core_files": {
|
|
306
|
+
"pattern": "^\\d{2}-[a-z-]+\\.md$",
|
|
307
|
+
"description": "Two-digit prefix followed by kebab-case name",
|
|
308
|
+
"examples": [
|
|
309
|
+
"01-project-overview.md",
|
|
310
|
+
"02-technical-stack.md"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"component_files": {
|
|
314
|
+
"pattern": "^[a-z-]+\\.md$",
|
|
315
|
+
"description": "Kebab-case filename",
|
|
316
|
+
"examples": [
|
|
317
|
+
"command-builders.md",
|
|
318
|
+
"execution-layer.md"
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"feature_files": {
|
|
322
|
+
"pattern": "^[a-z-]+\\.md$",
|
|
323
|
+
"description": "Kebab-case filename",
|
|
324
|
+
"examples": [
|
|
325
|
+
"binary-analysis.md",
|
|
326
|
+
"caching-layer.md"
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"usage": {
|
|
332
|
+
"description": "How agents and commands should reference this schema",
|
|
333
|
+
"agents": [
|
|
334
|
+
"discovery-analysis",
|
|
335
|
+
"engineer-questions",
|
|
336
|
+
"orchestrator",
|
|
337
|
+
"documentation-writer",
|
|
338
|
+
"qa-validator"
|
|
339
|
+
],
|
|
340
|
+
"commands": [
|
|
341
|
+
"octocode-documentation-writer"
|
|
342
|
+
],
|
|
343
|
+
"reference_example": {
|
|
344
|
+
"description": "Load and use this schema in agents/commands",
|
|
345
|
+
"code": "const docStructure = require('./schemas/documentation-structure.json');\nconst coreFiles = docStructure.structure.core_files.files;\nconst folders = docStructure.structure.folders.directories;"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"validation_rules": {
|
|
349
|
+
"description": "Rules for validating documentation completeness",
|
|
350
|
+
"rules": [
|
|
351
|
+
{
|
|
352
|
+
"rule": "all_core_files_present",
|
|
353
|
+
"description": "All required core files must be present",
|
|
354
|
+
"validation": "Check that all core_files with required=true exist"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"rule": "proper_naming",
|
|
358
|
+
"description": "Files must follow naming conventions",
|
|
359
|
+
"validation": "Match filenames against patterns in file_naming_conventions"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"rule": "folder_structure",
|
|
363
|
+
"description": "Supplementary files organized in correct folders",
|
|
364
|
+
"validation": "Components in components/, features in features/, etc."
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"rule": "generated_by_respected",
|
|
368
|
+
"description": "Files must only be generated by the agent type declared in the structure schema",
|
|
369
|
+
"validation": "Honor generated_by on a file entry, otherwise fall back to generated_by_default for that file group"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://octocode-documentation-writer.v3/partial-discovery.json",
|
|
4
|
+
"title": "Partial Discovery Output",
|
|
5
|
+
"description": "Schema for partial results from discovery sub-agents",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"anyOf": [
|
|
8
|
+
{
|
|
9
|
+
"$comment": "1A: Language & Manifests",
|
|
10
|
+
"required": ["discovery"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"discovery": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["primary_language", "is_monorepo", "project_type"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"primary_language": { "type": "string" },
|
|
17
|
+
"is_monorepo": { "type": "boolean" },
|
|
18
|
+
"project_type": { "type": "string" },
|
|
19
|
+
"language_distribution": { "type": "object" },
|
|
20
|
+
"package_count": { "type": "integer" },
|
|
21
|
+
"packages": { "type": "array" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"$comment": "1B: Components",
|
|
28
|
+
"required": ["discovery"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"discovery": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["components"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"components": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": ["path", "type"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"path": { "type": "string" },
|
|
41
|
+
"name": { "type": "string" },
|
|
42
|
+
"type": { "type": "string" },
|
|
43
|
+
"file_count": { "type": "integer" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"$comment": "1C: Dependencies",
|
|
53
|
+
"required": ["architecture"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"architecture": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"required": ["layers", "dependencies"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"layers": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"internal": { "type": "array" },
|
|
72
|
+
"external": { "type": "array" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"$comment": "1D: Flows & APIs",
|
|
81
|
+
"required": ["flows", "apis"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"flows": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"required": ["strategy", "flows"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"strategy": { "type": "string" },
|
|
88
|
+
"flows": { "type": "array" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"apis": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"required": ["components"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"total_apis": { "type": "integer" },
|
|
96
|
+
"components": { "type": "array" }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://octocode-documentation-writer.v3/partial-research.json",
|
|
4
|
+
"title": "Partial Research Output",
|
|
5
|
+
"description": "Schema for partial research results from parallel research agents",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"metadata",
|
|
9
|
+
"findings"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"metadata": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": [
|
|
15
|
+
"version",
|
|
16
|
+
"generated_at",
|
|
17
|
+
"repository_path",
|
|
18
|
+
"batch_id"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"version": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "3.0"
|
|
24
|
+
},
|
|
25
|
+
"generated_at": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "date-time"
|
|
28
|
+
},
|
|
29
|
+
"repository_path": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"agent": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"const": "researcher"
|
|
35
|
+
},
|
|
36
|
+
"batch_id": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "ID of the research batch (e.g. researcher-0)"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"findings": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": [
|
|
47
|
+
"question_id",
|
|
48
|
+
"status",
|
|
49
|
+
"answer",
|
|
50
|
+
"code_references"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"question_id": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"status": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"answered",
|
|
60
|
+
"partial",
|
|
61
|
+
"not_found",
|
|
62
|
+
"skipped"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"answer": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"code_references": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"required": [
|
|
73
|
+
"file"
|
|
74
|
+
],
|
|
75
|
+
"properties": {
|
|
76
|
+
"file": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"line_start": {
|
|
80
|
+
"type": "integer"
|
|
81
|
+
},
|
|
82
|
+
"line_end": {
|
|
83
|
+
"type": "integer"
|
|
84
|
+
},
|
|
85
|
+
"snippet": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"missing_context": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|