mcoda 0.1.2 → 0.1.4
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/CHANGELOG.md +2 -2
- package/README.md +9 -300
- package/dist/bin/McodaEntrypoint.d.ts +5 -0
- package/dist/bin/McodaEntrypoint.d.ts.map +1 -0
- package/dist/bin/McodaEntrypoint.js +175 -0
- package/dist/commands/agents/AgentsCommands.d.ts +4 -0
- package/dist/commands/agents/AgentsCommands.d.ts.map +1 -0
- package/dist/commands/agents/AgentsCommands.js +376 -0
- package/dist/commands/agents/GatewayAgentCommand.d.ts +4 -0
- package/dist/commands/agents/GatewayAgentCommand.d.ts.map +1 -0
- package/dist/commands/agents/GatewayAgentCommand.js +583 -0
- package/dist/commands/agents/TestAgentCommand.d.ts +4 -0
- package/dist/commands/agents/TestAgentCommand.d.ts.map +1 -0
- package/dist/commands/agents/TestAgentCommand.js +57 -0
- package/dist/commands/backlog/BacklogCommands.d.ts +17 -0
- package/dist/commands/backlog/BacklogCommands.d.ts.map +1 -0
- package/dist/commands/backlog/BacklogCommands.js +260 -0
- package/dist/commands/backlog/OrderTasksCommand.d.ts +16 -0
- package/dist/commands/backlog/OrderTasksCommand.d.ts.map +1 -0
- package/dist/commands/backlog/OrderTasksCommand.js +211 -0
- package/dist/commands/backlog/TaskShowCommands.d.ts +16 -0
- package/dist/commands/backlog/TaskShowCommands.d.ts.map +1 -0
- package/dist/commands/backlog/TaskShowCommands.js +275 -0
- package/dist/commands/docs/DocsCommands.d.ts +37 -0
- package/dist/commands/docs/DocsCommands.d.ts.map +1 -0
- package/dist/commands/docs/DocsCommands.js +381 -0
- package/dist/commands/estimate/EstimateCommands.d.ts +24 -0
- package/dist/commands/estimate/EstimateCommands.d.ts.map +1 -0
- package/dist/commands/estimate/EstimateCommands.js +259 -0
- package/dist/commands/jobs/JobsCommands.d.ts +24 -0
- package/dist/commands/jobs/JobsCommands.d.ts.map +1 -0
- package/dist/commands/jobs/JobsCommands.js +535 -0
- package/dist/commands/openapi/OpenapiCommands.d.ts +14 -0
- package/dist/commands/openapi/OpenapiCommands.d.ts.map +1 -0
- package/dist/commands/openapi/OpenapiCommands.js +157 -0
- package/dist/commands/planning/CreateTasksCommand.d.ts +17 -0
- package/dist/commands/planning/CreateTasksCommand.d.ts.map +1 -0
- package/dist/commands/planning/CreateTasksCommand.js +134 -0
- package/dist/commands/planning/MigrateTasksCommand.d.ts +15 -0
- package/dist/commands/planning/MigrateTasksCommand.d.ts.map +1 -0
- package/dist/commands/planning/MigrateTasksCommand.js +95 -0
- package/dist/commands/planning/PlanningCommands.d.ts +3 -0
- package/dist/commands/planning/PlanningCommands.d.ts.map +1 -0
- package/dist/commands/planning/PlanningCommands.js +2 -0
- package/dist/commands/planning/QaTasksCommand.d.ts +30 -0
- package/dist/commands/planning/QaTasksCommand.d.ts.map +1 -0
- package/dist/commands/planning/QaTasksCommand.js +293 -0
- package/dist/commands/planning/RefineTasksCommand.d.ts +30 -0
- package/dist/commands/planning/RefineTasksCommand.d.ts.map +1 -0
- package/dist/commands/planning/RefineTasksCommand.js +365 -0
- package/dist/commands/review/CodeReviewCommand.d.ts +21 -0
- package/dist/commands/review/CodeReviewCommand.d.ts.map +1 -0
- package/dist/commands/review/CodeReviewCommand.js +236 -0
- package/dist/commands/routing/RoutingCommands.d.ts +7 -0
- package/dist/commands/routing/RoutingCommands.d.ts.map +1 -0
- package/dist/commands/routing/RoutingCommands.js +484 -0
- package/dist/commands/telemetry/TelemetryCommands.d.ts +26 -0
- package/dist/commands/telemetry/TelemetryCommands.d.ts.map +1 -0
- package/dist/commands/telemetry/TelemetryCommands.js +313 -0
- package/dist/commands/update/UpdateCommands.d.ts +4 -0
- package/dist/commands/update/UpdateCommands.d.ts.map +1 -0
- package/dist/commands/update/UpdateCommands.js +280 -0
- package/dist/commands/work/WorkOnTasksCommand.d.ts +21 -0
- package/dist/commands/work/WorkOnTasksCommand.d.ts.map +1 -0
- package/dist/commands/work/WorkOnTasksCommand.js +238 -0
- package/dist/commands/workspace/SetWorkspaceCommand.d.ts +9 -0
- package/dist/commands/workspace/SetWorkspaceCommand.d.ts.map +1 -0
- package/dist/commands/workspace/SetWorkspaceCommand.js +128 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +31 -16
- package/.editorconfig +0 -9
- package/.eslintrc.cjs +0 -12
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
- package/.github/workflows/ci.yml +0 -37
- package/.github/workflows/nightly.yml +0 -38
- package/.github/workflows/release-dry-run.yml +0 -40
- package/.github/workflows/release-please.yml +0 -22
- package/.github/workflows/release.yml +0 -139
- package/.prettierrc +0 -5
- package/.release-please-manifest.json +0 -8
- package/CLA.md +0 -42
- package/CONTRIBUTING.md +0 -38
- package/docs/oss_publishing_plan.md +0 -41
- package/docs/pdr/.gitkeep +0 -0
- package/docs/quality_gates.md +0 -32
- package/docs/rfp/.gitkeep +0 -0
- package/docs/sds/sds.md +0 -11963
- package/docs/usage.md +0 -72
- package/openapi/gen-openapi.ts +0 -1
- package/openapi/generated/clients/.gitkeep +0 -0
- package/openapi/generated/types/.gitkeep +0 -0
- package/openapi/generated/types/index.ts +0 -118
- package/openapi/mcoda.yaml +0 -2063
- package/pack-mcoda.sh +0 -88
- package/packages/agents/CHANGELOG.md +0 -7
- package/packages/agents/LICENSE +0 -21
- package/packages/agents/README.md +0 -9
- package/packages/agents/package.json +0 -41
- package/packages/agents/src/AgentService/.gitkeep +0 -0
- package/packages/agents/src/AgentService/AgentService.d.ts +0 -21
- package/packages/agents/src/AgentService/AgentService.d.ts.map +0 -1
- package/packages/agents/src/AgentService/AgentService.js +0 -141
- package/packages/agents/src/AgentService/AgentService.ts +0 -308
- package/packages/agents/src/__tests__/AgentService.test.ts +0 -284
- package/packages/agents/src/adapters/AdapterTypes.d.ts +0 -29
- package/packages/agents/src/adapters/AdapterTypes.d.ts.map +0 -1
- package/packages/agents/src/adapters/AdapterTypes.js +0 -1
- package/packages/agents/src/adapters/AdapterTypes.ts +0 -32
- package/packages/agents/src/adapters/codex/.gitkeep +0 -0
- package/packages/agents/src/adapters/codex/CodexAdapter.d.ts +0 -11
- package/packages/agents/src/adapters/codex/CodexAdapter.d.ts.map +0 -1
- package/packages/agents/src/adapters/codex/CodexAdapter.js +0 -43
- package/packages/agents/src/adapters/codex/CodexAdapter.ts +0 -63
- package/packages/agents/src/adapters/codex/CodexCliRunner.ts +0 -154
- package/packages/agents/src/adapters/gemini/.gitkeep +0 -0
- package/packages/agents/src/adapters/gemini/GeminiAdapter.d.ts +0 -11
- package/packages/agents/src/adapters/gemini/GeminiAdapter.d.ts.map +0 -1
- package/packages/agents/src/adapters/gemini/GeminiAdapter.js +0 -42
- package/packages/agents/src/adapters/gemini/GeminiAdapter.ts +0 -58
- package/packages/agents/src/adapters/gemini/GeminiCliRunner.ts +0 -75
- package/packages/agents/src/adapters/local/.gitkeep +0 -0
- package/packages/agents/src/adapters/local/LocalAdapter.d.ts +0 -11
- package/packages/agents/src/adapters/local/LocalAdapter.d.ts.map +0 -1
- package/packages/agents/src/adapters/local/LocalAdapter.js +0 -38
- package/packages/agents/src/adapters/local/LocalAdapter.ts +0 -43
- package/packages/agents/src/adapters/ollama/OllamaCliAdapter.ts +0 -58
- package/packages/agents/src/adapters/ollama/OllamaCliRunner.ts +0 -70
- package/packages/agents/src/adapters/ollama/OllamaRemoteAdapter.ts +0 -205
- package/packages/agents/src/adapters/openai/.gitkeep +0 -0
- package/packages/agents/src/adapters/openai/OpenAiAdapter.d.ts +0 -11
- package/packages/agents/src/adapters/openai/OpenAiAdapter.d.ts.map +0 -1
- package/packages/agents/src/adapters/openai/OpenAiAdapter.js +0 -51
- package/packages/agents/src/adapters/openai/OpenAiAdapter.ts +0 -56
- package/packages/agents/src/adapters/openai/OpenAiCliAdapter.ts +0 -62
- package/packages/agents/src/adapters/qa/.gitkeep +0 -0
- package/packages/agents/src/adapters/qa/QaAdapter.d.ts +0 -11
- package/packages/agents/src/adapters/qa/QaAdapter.d.ts.map +0 -1
- package/packages/agents/src/adapters/qa/QaAdapter.js +0 -37
- package/packages/agents/src/adapters/qa/QaAdapter.ts +0 -42
- package/packages/agents/src/adapters/zhipu/ZhipuApiAdapter.ts +0 -273
- package/packages/agents/src/index.d.ts +0 -8
- package/packages/agents/src/index.d.ts.map +0 -1
- package/packages/agents/src/index.js +0 -7
- package/packages/agents/src/index.ts +0 -11
- package/packages/agents/tsconfig.json +0 -14
- package/packages/cli/CHANGELOG.md +0 -7
- package/packages/cli/LICENSE +0 -21
- package/packages/cli/README.md +0 -23
- package/packages/cli/package.json +0 -61
- package/packages/cli/src/__tests__/AgentsCommands.test.ts +0 -137
- package/packages/cli/src/__tests__/BacklogCommands.test.ts +0 -40
- package/packages/cli/src/__tests__/CodeReviewCommand.test.ts +0 -594
- package/packages/cli/src/__tests__/CreateTasksCommand.test.ts +0 -40
- package/packages/cli/src/__tests__/DocsCommands.test.ts +0 -41
- package/packages/cli/src/__tests__/EstimateCommands.test.ts +0 -54
- package/packages/cli/src/__tests__/JobsCommands.behavior.test.ts +0 -311
- package/packages/cli/src/__tests__/JobsCommands.test.ts +0 -49
- package/packages/cli/src/__tests__/MigrateTasksCommand.test.ts +0 -36
- package/packages/cli/src/__tests__/OpenapiCommands.test.ts +0 -34
- package/packages/cli/src/__tests__/OrderTasksCommand.test.ts +0 -150
- package/packages/cli/src/__tests__/PlanningCommands.test.ts +0 -9
- package/packages/cli/src/__tests__/QaTasksCommand.test.ts +0 -58
- package/packages/cli/src/__tests__/RefineTasksCommand.test.ts +0 -63
- package/packages/cli/src/__tests__/RoutingCommands.test.ts +0 -302
- package/packages/cli/src/__tests__/SetWorkspaceCommand.test.ts +0 -18
- package/packages/cli/src/__tests__/TaskShowCommands.test.ts +0 -130
- package/packages/cli/src/__tests__/TelemetryCommands.test.ts +0 -35
- package/packages/cli/src/__tests__/TestAgentCommand.test.ts +0 -41
- package/packages/cli/src/__tests__/UpdateCommands.test.ts +0 -292
- package/packages/cli/src/__tests__/WorkOnTasksCommand.test.ts +0 -42
- package/packages/cli/src/bin/.gitkeep +0 -0
- package/packages/cli/src/bin/McodaEntrypoint.ts +0 -180
- package/packages/cli/src/commands/agents/.gitkeep +0 -0
- package/packages/cli/src/commands/agents/AgentsCommands.ts +0 -374
- package/packages/cli/src/commands/agents/GatewayAgentCommand.ts +0 -621
- package/packages/cli/src/commands/agents/TestAgentCommand.ts +0 -63
- package/packages/cli/src/commands/backlog/.gitkeep +0 -0
- package/packages/cli/src/commands/backlog/BacklogCommands.ts +0 -286
- package/packages/cli/src/commands/backlog/OrderTasksCommand.ts +0 -237
- package/packages/cli/src/commands/backlog/TaskShowCommands.ts +0 -289
- package/packages/cli/src/commands/docs/.gitkeep +0 -0
- package/packages/cli/src/commands/docs/DocsCommands.ts +0 -413
- package/packages/cli/src/commands/estimate/EstimateCommands.ts +0 -290
- package/packages/cli/src/commands/jobs/.gitkeep +0 -0
- package/packages/cli/src/commands/jobs/JobsCommands.ts +0 -595
- package/packages/cli/src/commands/openapi/OpenapiCommands.ts +0 -167
- package/packages/cli/src/commands/planning/.gitkeep +0 -0
- package/packages/cli/src/commands/planning/CreateTasksCommand.ts +0 -149
- package/packages/cli/src/commands/planning/MigrateTasksCommand.ts +0 -105
- package/packages/cli/src/commands/planning/PlanningCommands.ts +0 -1
- package/packages/cli/src/commands/planning/QaTasksCommand.ts +0 -320
- package/packages/cli/src/commands/planning/RefineTasksCommand.ts +0 -408
- package/packages/cli/src/commands/review/CodeReviewCommand.ts +0 -262
- package/packages/cli/src/commands/routing/.gitkeep +0 -0
- package/packages/cli/src/commands/routing/RoutingCommands.ts +0 -554
- package/packages/cli/src/commands/telemetry/.gitkeep +0 -0
- package/packages/cli/src/commands/telemetry/TelemetryCommands.ts +0 -348
- package/packages/cli/src/commands/update/.gitkeep +0 -0
- package/packages/cli/src/commands/update/UpdateCommands.ts +0 -301
- package/packages/cli/src/commands/work/WorkOnTasksCommand.ts +0 -264
- package/packages/cli/src/commands/workspace/SetWorkspaceCommand.ts +0 -132
- package/packages/cli/test/packaging_guardrails.test.js +0 -75
- package/packages/cli/tsconfig.json +0 -20
- package/packages/core/CHANGELOG.md +0 -7
- package/packages/core/LICENSE +0 -21
- package/packages/core/README.md +0 -9
- package/packages/core/package.json +0 -45
- package/packages/core/src/__tests__/SmokeClasses.test.ts +0 -32
- package/packages/core/src/api/AgentsApi.ts +0 -219
- package/packages/core/src/api/QaTasksApi.ts +0 -38
- package/packages/core/src/api/TasksApi.ts +0 -35
- package/packages/core/src/api/__tests__/AgentsApi.test.ts +0 -203
- package/packages/core/src/api/__tests__/QaTasksApi.test.ts +0 -51
- package/packages/core/src/api/__tests__/TasksApi.test.ts +0 -56
- package/packages/core/src/config/.gitkeep +0 -0
- package/packages/core/src/config/ConfigService.ts +0 -1
- package/packages/core/src/domain/dependencies/.gitkeep +0 -0
- package/packages/core/src/domain/dependencies/Dependency.ts +0 -1
- package/packages/core/src/domain/epics/.gitkeep +0 -0
- package/packages/core/src/domain/epics/Epic.ts +0 -1
- package/packages/core/src/domain/projects/.gitkeep +0 -0
- package/packages/core/src/domain/projects/Project.ts +0 -1
- package/packages/core/src/domain/tasks/.gitkeep +0 -0
- package/packages/core/src/domain/tasks/Task.ts +0 -1
- package/packages/core/src/domain/userStories/.gitkeep +0 -0
- package/packages/core/src/domain/userStories/UserStory.ts +0 -1
- package/packages/core/src/index.ts +0 -27
- package/packages/core/src/prompts/.gitkeep +0 -0
- package/packages/core/src/prompts/PdrPrompts.ts +0 -23
- package/packages/core/src/prompts/PromptLoader.ts +0 -1
- package/packages/core/src/prompts/SdsPrompts.ts +0 -47
- package/packages/core/src/services/agents/.gitkeep +0 -0
- package/packages/core/src/services/agents/AgentManagementService.ts +0 -1
- package/packages/core/src/services/agents/GatewayAgentService.ts +0 -956
- package/packages/core/src/services/agents/RoutingService.ts +0 -461
- package/packages/core/src/services/agents/__tests__/GatewayAgentService.test.ts +0 -72
- package/packages/core/src/services/agents/__tests__/RoutingService.test.ts +0 -267
- package/packages/core/src/services/agents/generated/RoutingApiClient.ts +0 -89
- package/packages/core/src/services/backlog/.gitkeep +0 -0
- package/packages/core/src/services/backlog/BacklogService.ts +0 -580
- package/packages/core/src/services/backlog/TaskOrderingService.ts +0 -868
- package/packages/core/src/services/backlog/__tests__/BacklogService.test.ts +0 -219
- package/packages/core/src/services/backlog/__tests__/TaskOrderingService.test.ts +0 -268
- package/packages/core/src/services/docs/.gitkeep +0 -0
- package/packages/core/src/services/docs/DocsService.ts +0 -1913
- package/packages/core/src/services/docs/__tests__/DocsService.test.ts +0 -350
- package/packages/core/src/services/estimate/EstimateService.ts +0 -111
- package/packages/core/src/services/estimate/VelocityService.ts +0 -272
- package/packages/core/src/services/estimate/__tests__/VelocityAndEstimate.test.ts +0 -209
- package/packages/core/src/services/estimate/types.ts +0 -41
- package/packages/core/src/services/execution/.gitkeep +0 -0
- package/packages/core/src/services/execution/ExecutionService.ts +0 -1
- package/packages/core/src/services/execution/QaFollowupService.ts +0 -289
- package/packages/core/src/services/execution/QaProfileService.ts +0 -160
- package/packages/core/src/services/execution/QaTasksService.ts +0 -1303
- package/packages/core/src/services/execution/TaskSelectionService.ts +0 -362
- package/packages/core/src/services/execution/TaskStateService.ts +0 -64
- package/packages/core/src/services/execution/WorkOnTasksService.ts +0 -2023
- package/packages/core/src/services/execution/__tests__/QaFollowupService.test.ts +0 -58
- package/packages/core/src/services/execution/__tests__/QaProfileService.test.ts +0 -49
- package/packages/core/src/services/execution/__tests__/QaTasksService.test.ts +0 -157
- package/packages/core/src/services/execution/__tests__/TaskSelectionService.test.ts +0 -179
- package/packages/core/src/services/execution/__tests__/TaskStateService.test.ts +0 -51
- package/packages/core/src/services/execution/__tests__/WorkOnTasksService.test.ts +0 -285
- package/packages/core/src/services/jobs/.gitkeep +0 -0
- package/packages/core/src/services/jobs/JobInsightsService.ts +0 -355
- package/packages/core/src/services/jobs/JobResumeService.ts +0 -119
- package/packages/core/src/services/jobs/JobService.ts +0 -648
- package/packages/core/src/services/jobs/JobsApiClient.ts +0 -113
- package/packages/core/src/services/jobs/__tests__/JobInsightsService.test.ts +0 -17
- package/packages/core/src/services/jobs/__tests__/JobResumeService.test.ts +0 -45
- package/packages/core/src/services/jobs/__tests__/JobService.test.ts +0 -44
- package/packages/core/src/services/openapi/OpenApiService.ts +0 -558
- package/packages/core/src/services/openapi/__tests__/OpenApiService.test.ts +0 -57
- package/packages/core/src/services/planning/.gitkeep +0 -0
- package/packages/core/src/services/planning/CreateTasksService.ts +0 -1280
- package/packages/core/src/services/planning/KeyHelpers.ts +0 -80
- package/packages/core/src/services/planning/PlanningService.ts +0 -1
- package/packages/core/src/services/planning/RefineTasksService.ts +0 -1552
- package/packages/core/src/services/planning/__tests__/CreateTasksService.test.ts +0 -288
- package/packages/core/src/services/planning/__tests__/KeyHelpers.test.ts +0 -16
- package/packages/core/src/services/planning/__tests__/RefineTasksService.test.ts +0 -172
- package/packages/core/src/services/review/CodeReviewService.ts +0 -1386
- package/packages/core/src/services/review/__tests__/CodeReviewService.test.ts +0 -89
- package/packages/core/src/services/system/SystemUpdateService.ts +0 -177
- package/packages/core/src/services/system/__tests__/SystemUpdateService.test.ts +0 -40
- package/packages/core/src/services/tasks/TaskApiResolver.ts +0 -37
- package/packages/core/src/services/tasks/TaskDetailService.ts +0 -494
- package/packages/core/src/services/tasks/__tests__/TaskApiResolver.test.ts +0 -41
- package/packages/core/src/services/tasks/__tests__/TaskDetailService.test.ts +0 -178
- package/packages/core/src/services/telemetry/.gitkeep +0 -0
- package/packages/core/src/services/telemetry/TelemetryService.ts +0 -515
- package/packages/core/src/services/telemetry/__tests__/TelemetryService.test.ts +0 -160
- package/packages/core/src/workspace/.gitkeep +0 -0
- package/packages/core/src/workspace/WorkspaceManager.ts +0 -234
- package/packages/core/tsconfig.json +0 -20
- package/packages/db/CHANGELOG.md +0 -7
- package/packages/db/LICENSE +0 -21
- package/packages/db/README.md +0 -9
- package/packages/db/package.json +0 -42
- package/packages/db/src/__tests__/GlobalRepository.test.ts +0 -109
- package/packages/db/src/__tests__/SchemaAlignment.test.ts +0 -80
- package/packages/db/src/__tests__/WorkspaceRepository.test.ts +0 -19
- package/packages/db/src/index.d.ts +0 -6
- package/packages/db/src/index.d.ts.map +0 -1
- package/packages/db/src/index.js +0 -5
- package/packages/db/src/index.ts +0 -6
- package/packages/db/src/migrations/global/.gitkeep +0 -0
- package/packages/db/src/migrations/global/GlobalMigrations.d.ts +0 -9
- package/packages/db/src/migrations/global/GlobalMigrations.d.ts.map +0 -1
- package/packages/db/src/migrations/global/GlobalMigrations.js +0 -68
- package/packages/db/src/migrations/global/GlobalMigrations.ts +0 -336
- package/packages/db/src/migrations/workspace/.gitkeep +0 -0
- package/packages/db/src/migrations/workspace/WorkspaceMigrations.d.ts +0 -9
- package/packages/db/src/migrations/workspace/WorkspaceMigrations.d.ts.map +0 -1
- package/packages/db/src/migrations/workspace/WorkspaceMigrations.js +0 -251
- package/packages/db/src/migrations/workspace/WorkspaceMigrations.ts +0 -248
- package/packages/db/src/repositories/global/.gitkeep +0 -0
- package/packages/db/src/repositories/global/GlobalRepository.d.ts +0 -30
- package/packages/db/src/repositories/global/GlobalRepository.d.ts.map +0 -1
- package/packages/db/src/repositories/global/GlobalRepository.js +0 -209
- package/packages/db/src/repositories/global/GlobalRepository.ts +0 -492
- package/packages/db/src/repositories/workspace/.gitkeep +0 -0
- package/packages/db/src/repositories/workspace/WorkspaceRepository.d.ts +0 -282
- package/packages/db/src/repositories/workspace/WorkspaceRepository.d.ts.map +0 -1
- package/packages/db/src/repositories/workspace/WorkspaceRepository.js +0 -773
- package/packages/db/src/repositories/workspace/WorkspaceRepository.ts +0 -1511
- package/packages/db/src/sqlite/connection.d.ts +0 -11
- package/packages/db/src/sqlite/connection.d.ts.map +0 -1
- package/packages/db/src/sqlite/connection.js +0 -31
- package/packages/db/src/sqlite/connection.ts +0 -35
- package/packages/db/src/sqlite/pragmas.d.ts +0 -5
- package/packages/db/src/sqlite/pragmas.d.ts.map +0 -1
- package/packages/db/src/sqlite/pragmas.js +0 -6
- package/packages/db/src/sqlite/pragmas.ts +0 -10
- package/packages/db/tsconfig.json +0 -13
- package/packages/generators/package.json +0 -21
- package/packages/generators/src/__tests__/Generators.test.ts +0 -19
- package/packages/generators/src/index.ts +0 -1
- package/packages/generators/src/openapi/generateTypes.ts +0 -1
- package/packages/generators/src/openapi/validateSchema.ts +0 -1
- package/packages/generators/src/scaffolding/docs/.gitkeep +0 -0
- package/packages/generators/src/scaffolding/docs/DocsScaffolder.ts +0 -1
- package/packages/generators/src/scaffolding/global/.gitkeep +0 -0
- package/packages/generators/src/scaffolding/global/GlobalScaffolder.ts +0 -1
- package/packages/generators/src/scaffolding/workspace/.gitkeep +0 -0
- package/packages/generators/src/scaffolding/workspace/WorkspaceScaffolder.ts +0 -1
- package/packages/generators/tsconfig.json +0 -10
- package/packages/integrations/CHANGELOG.md +0 -7
- package/packages/integrations/LICENSE +0 -21
- package/packages/integrations/README.md +0 -9
- package/packages/integrations/package.json +0 -47
- package/packages/integrations/src/docdex/.gitkeep +0 -0
- package/packages/integrations/src/docdex/DocdexClient.d.ts +0 -50
- package/packages/integrations/src/docdex/DocdexClient.d.ts.map +0 -1
- package/packages/integrations/src/docdex/DocdexClient.js +0 -216
- package/packages/integrations/src/docdex/DocdexClient.ts +0 -261
- package/packages/integrations/src/docdex/__tests__/DocdexClient.test.ts +0 -29
- package/packages/integrations/src/index.d.ts +0 -2
- package/packages/integrations/src/index.d.ts.map +0 -1
- package/packages/integrations/src/index.js +0 -4
- package/packages/integrations/src/index.ts +0 -5
- package/packages/integrations/src/issues/.gitkeep +0 -0
- package/packages/integrations/src/issues/IssuesClient.ts +0 -1
- package/packages/integrations/src/issues/__tests__/IssuesClient.test.ts +0 -10
- package/packages/integrations/src/qa/.gitkeep +0 -0
- package/packages/integrations/src/qa/ChromiumQaAdapter.ts +0 -89
- package/packages/integrations/src/qa/CliQaAdapter.ts +0 -95
- package/packages/integrations/src/qa/MaestroQaAdapter.ts +0 -91
- package/packages/integrations/src/qa/QaAdapter.ts +0 -7
- package/packages/integrations/src/qa/QaClient.ts +0 -1
- package/packages/integrations/src/qa/QaTypes.ts +0 -26
- package/packages/integrations/src/qa/__tests__/ChromiumQaAdapter.test.ts +0 -30
- package/packages/integrations/src/qa/__tests__/CliQaAdapter.test.ts +0 -33
- package/packages/integrations/src/qa/__tests__/MaestroQaAdapter.test.ts +0 -30
- package/packages/integrations/src/qa/index.ts +0 -5
- package/packages/integrations/src/system/SystemClient.ts +0 -50
- package/packages/integrations/src/system/__tests__/SystemClient.test.ts +0 -40
- package/packages/integrations/src/telemetry/TelemetryClient.ts +0 -139
- package/packages/integrations/src/telemetry/__tests__/TelemetryClient.test.ts +0 -41
- package/packages/integrations/src/vcs/.gitkeep +0 -0
- package/packages/integrations/src/vcs/VcsClient.ts +0 -211
- package/packages/integrations/src/vcs/__tests__/VcsClient.test.ts +0 -26
- package/packages/integrations/tsconfig.json +0 -14
- package/packages/shared/CHANGELOG.md +0 -7
- package/packages/shared/LICENSE +0 -21
- package/packages/shared/README.md +0 -9
- package/packages/shared/package.json +0 -40
- package/packages/shared/src/__tests__/CommandMetadata.test.ts +0 -15
- package/packages/shared/src/__tests__/ServiceShells.test.ts +0 -16
- package/packages/shared/src/crypto/.gitkeep +0 -0
- package/packages/shared/src/crypto/CryptoHelper.d.ts +0 -15
- package/packages/shared/src/crypto/CryptoHelper.d.ts.map +0 -1
- package/packages/shared/src/crypto/CryptoHelper.js +0 -54
- package/packages/shared/src/crypto/CryptoHelper.ts +0 -57
- package/packages/shared/src/errors/.gitkeep +0 -0
- package/packages/shared/src/errors/ErrorFactory.ts +0 -1
- package/packages/shared/src/index.d.ts +0 -6
- package/packages/shared/src/index.d.ts.map +0 -1
- package/packages/shared/src/index.js +0 -4
- package/packages/shared/src/index.ts +0 -35
- package/packages/shared/src/logging/.gitkeep +0 -0
- package/packages/shared/src/logging/Logger.ts +0 -1
- package/packages/shared/src/metadata/CommandMetadata.ts +0 -165
- package/packages/shared/src/openapi/.gitkeep +0 -0
- package/packages/shared/src/openapi/OpenApiTypes.d.ts +0 -216
- package/packages/shared/src/openapi/OpenApiTypes.d.ts.map +0 -1
- package/packages/shared/src/openapi/OpenApiTypes.js +0 -1
- package/packages/shared/src/openapi/OpenApiTypes.ts +0 -312
- package/packages/shared/src/paths/.gitkeep +0 -0
- package/packages/shared/src/paths/PathHelper.d.ts +0 -12
- package/packages/shared/src/paths/PathHelper.d.ts.map +0 -1
- package/packages/shared/src/paths/PathHelper.js +0 -24
- package/packages/shared/src/paths/PathHelper.ts +0 -29
- package/packages/shared/src/qa/QaProfile.ts +0 -14
- package/packages/shared/src/utils/.gitkeep +0 -0
- package/packages/shared/src/utils/UtilityService.ts +0 -1
- package/packages/shared/tsconfig.json +0 -10
- package/packages/testing/package.json +0 -26
- package/packages/testing/src/__tests__/TestingFakes.test.ts +0 -15
- package/packages/testing/src/cli/e2e/.gitkeep +0 -0
- package/packages/testing/src/cli/e2e/E2eSuite.ts +0 -1
- package/packages/testing/src/fakes/agents/.gitkeep +0 -0
- package/packages/testing/src/fakes/agents/FakeAgents.ts +0 -1
- package/packages/testing/src/fakes/docdex/.gitkeep +0 -0
- package/packages/testing/src/fakes/docdex/FakeDocdexClient.ts +0 -1
- package/packages/testing/src/fakes/qa/.gitkeep +0 -0
- package/packages/testing/src/fakes/qa/FakeQaClient.ts +0 -1
- package/packages/testing/src/fakes/vcs/.gitkeep +0 -0
- package/packages/testing/src/fakes/vcs/FakeVcsClient.ts +0 -1
- package/packages/testing/src/fixtures/db/.gitkeep +0 -0
- package/packages/testing/src/fixtures/db/DbFixtures.ts +0 -1
- package/packages/testing/src/fixtures/workspaces/.gitkeep +0 -0
- package/packages/testing/src/fixtures/workspaces/WorkspaceFixtures.ts +0 -1
- package/packages/testing/src/index.ts +0 -1
- package/packages/testing/tsconfig.json +0 -10
- package/pnpm-workspace.yaml +0 -2
- package/prompts/README.md +0 -5
- package/prompts/code-reviewer.md +0 -23
- package/prompts/code-writer.md +0 -35
- package/prompts/gateway-agent.md +0 -27
- package/prompts/qa-agent.md +0 -21
- package/release-please-config.json +0 -39
- package/scripts/build-all.ts +0 -1
- package/scripts/dev.ts +0 -1
- package/scripts/install-local-cli.sh +0 -28
- package/scripts/pack-npm-tarballs.js +0 -63
- package/scripts/release.ts +0 -1
- package/scripts/run-node-tests.js +0 -37
- package/tests/all.js +0 -127
- package/tests/api/openapi_spec.test.js +0 -21
- package/tests/artifacts.md +0 -31
- package/tests/component/cli_version.test.js +0 -38
- package/tests/integration/workspace_resolver.test.js +0 -44
- package/tests/unit/crypto_helper.test.js +0 -36
- package/tests/unit/path_helper.test.js +0 -20
- package/tsconfig.base.json +0 -32
- /package/{packages/cli/src/index.ts → dist/index.js} +0 -0
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
export type AgentHealthStatus = "healthy" | "degraded" | "unreachable";
|
|
2
|
-
|
|
3
|
-
export interface Agent {
|
|
4
|
-
id: string;
|
|
5
|
-
slug: string;
|
|
6
|
-
adapter: string;
|
|
7
|
-
defaultModel?: string;
|
|
8
|
-
rating?: number;
|
|
9
|
-
reasoningRating?: number;
|
|
10
|
-
bestUsage?: string;
|
|
11
|
-
costPerMillion?: number;
|
|
12
|
-
config?: Record<string, unknown>;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
capabilities?: string[];
|
|
16
|
-
health?: AgentHealth;
|
|
17
|
-
models?: AgentModel[];
|
|
18
|
-
prompts?: AgentPromptManifest;
|
|
19
|
-
auth?: AgentAuthMetadata;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface CreateAgentInput {
|
|
23
|
-
slug: string;
|
|
24
|
-
adapter: string;
|
|
25
|
-
defaultModel?: string;
|
|
26
|
-
rating?: number;
|
|
27
|
-
reasoningRating?: number;
|
|
28
|
-
bestUsage?: string;
|
|
29
|
-
costPerMillion?: number;
|
|
30
|
-
config?: Record<string, unknown>;
|
|
31
|
-
capabilities?: string[];
|
|
32
|
-
prompts?: AgentPromptManifest;
|
|
33
|
-
models?: AgentModel[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface UpdateAgentInput {
|
|
37
|
-
adapter?: string;
|
|
38
|
-
defaultModel?: string;
|
|
39
|
-
rating?: number;
|
|
40
|
-
reasoningRating?: number;
|
|
41
|
-
bestUsage?: string;
|
|
42
|
-
costPerMillion?: number;
|
|
43
|
-
config?: Record<string, unknown>;
|
|
44
|
-
capabilities?: string[];
|
|
45
|
-
prompts?: AgentPromptManifest;
|
|
46
|
-
models?: AgentModel[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface AgentCapability {
|
|
50
|
-
agentId: string;
|
|
51
|
-
capability: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface AgentModel {
|
|
55
|
-
agentId: string;
|
|
56
|
-
modelName: string;
|
|
57
|
-
isDefault?: boolean;
|
|
58
|
-
config?: Record<string, unknown>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface AgentPromptManifest {
|
|
62
|
-
agentId?: string;
|
|
63
|
-
jobPrompt?: string;
|
|
64
|
-
characterPrompt?: string;
|
|
65
|
-
commandPrompts?: Record<string, string>;
|
|
66
|
-
jobPath?: string;
|
|
67
|
-
characterPath?: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface AgentAuthMetadata {
|
|
71
|
-
agentId: string;
|
|
72
|
-
configured: boolean;
|
|
73
|
-
lastUpdatedAt?: string;
|
|
74
|
-
lastVerifiedAt?: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface AgentAuthSecret extends AgentAuthMetadata {
|
|
78
|
-
encryptedSecret: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface AgentAuthRequest {
|
|
82
|
-
secret: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type UpdateChannel = "stable" | "beta" | "nightly";
|
|
86
|
-
|
|
87
|
-
export interface UpdateInfo {
|
|
88
|
-
currentVersion: string;
|
|
89
|
-
latestVersion: string;
|
|
90
|
-
channel: UpdateChannel;
|
|
91
|
-
updateAvailable: boolean;
|
|
92
|
-
notes?: string | null;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface ApplyUpdateResponse {
|
|
96
|
-
status: "started" | "already_up_to_date" | "completed";
|
|
97
|
-
logFile?: string | null;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface AgentHealth {
|
|
101
|
-
agentId: string;
|
|
102
|
-
status: AgentHealthStatus;
|
|
103
|
-
lastCheckedAt: string;
|
|
104
|
-
latencyMs?: number;
|
|
105
|
-
details?: Record<string, unknown>;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface WorkspaceDefault {
|
|
109
|
-
workspaceId: string;
|
|
110
|
-
commandName: string;
|
|
111
|
-
agentId: string;
|
|
112
|
-
qaProfile?: string;
|
|
113
|
-
docdexScope?: string;
|
|
114
|
-
updatedAt?: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type RoutingDefault = WorkspaceDefault;
|
|
118
|
-
export type RoutingDefaults = RoutingDefault[];
|
|
119
|
-
|
|
120
|
-
export type RoutingProvenance = "override" | "workspace_default" | "global_default";
|
|
121
|
-
|
|
122
|
-
export interface RoutingCandidate {
|
|
123
|
-
agent: Agent;
|
|
124
|
-
agentId: string;
|
|
125
|
-
agentSlug?: string;
|
|
126
|
-
source: RoutingProvenance;
|
|
127
|
-
capabilities?: string[];
|
|
128
|
-
health?: AgentHealth;
|
|
129
|
-
missingCapabilities?: string[];
|
|
130
|
-
notes?: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface RoutingPreview {
|
|
134
|
-
workspaceId: string;
|
|
135
|
-
commandName: string;
|
|
136
|
-
resolvedAgent: Agent;
|
|
137
|
-
provenance?: RoutingProvenance;
|
|
138
|
-
requiredCapabilities?: string[];
|
|
139
|
-
qaProfile?: string;
|
|
140
|
-
docdexScope?: string;
|
|
141
|
-
notes?: string;
|
|
142
|
-
candidates?: RoutingCandidate[];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface RoutingDefaultsUpdate {
|
|
146
|
-
set?: Record<string, string>;
|
|
147
|
-
reset?: string[];
|
|
148
|
-
qaProfile?: string;
|
|
149
|
-
docdexScope?: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type VelocitySource = "config" | "empirical" | "mixed";
|
|
153
|
-
|
|
154
|
-
export interface BacklogLaneTotals {
|
|
155
|
-
tasks: number;
|
|
156
|
-
story_points: number;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface BacklogTotals {
|
|
160
|
-
implementation: BacklogLaneTotals;
|
|
161
|
-
review: BacklogLaneTotals;
|
|
162
|
-
qa: BacklogLaneTotals;
|
|
163
|
-
done: BacklogLaneTotals;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface BacklogSummary {
|
|
167
|
-
scope: {
|
|
168
|
-
project?: string;
|
|
169
|
-
epic?: string;
|
|
170
|
-
story?: string;
|
|
171
|
-
assignee?: string;
|
|
172
|
-
};
|
|
173
|
-
totals: BacklogTotals;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface EffectiveVelocity {
|
|
177
|
-
implementationSpPerHour: number;
|
|
178
|
-
reviewSpPerHour: number;
|
|
179
|
-
qaSpPerHour: number;
|
|
180
|
-
source: VelocitySource;
|
|
181
|
-
windowTasks?: 10 | 20 | 50;
|
|
182
|
-
samples?: {
|
|
183
|
-
implementation?: number;
|
|
184
|
-
review?: number;
|
|
185
|
-
qa?: number;
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface EstimateDurations {
|
|
190
|
-
implementationHours: number | null;
|
|
191
|
-
reviewHours: number | null;
|
|
192
|
-
qaHours: number | null;
|
|
193
|
-
totalHours: number | null;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface EstimateEtas {
|
|
197
|
-
readyToReviewEta?: string;
|
|
198
|
-
readyToQaEta?: string;
|
|
199
|
-
completeEta?: string;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface EstimateResult {
|
|
203
|
-
scope: {
|
|
204
|
-
project?: string;
|
|
205
|
-
epic?: string;
|
|
206
|
-
story?: string;
|
|
207
|
-
assignee?: string;
|
|
208
|
-
workspaceId: string;
|
|
209
|
-
};
|
|
210
|
-
backlogTotals: BacklogTotals;
|
|
211
|
-
effectiveVelocity: EffectiveVelocity;
|
|
212
|
-
durationsHours: EstimateDurations;
|
|
213
|
-
etas: EstimateEtas;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export type RefineStrategy = "split" | "merge" | "enrich" | "estimate" | "auto";
|
|
217
|
-
|
|
218
|
-
export interface RefineTasksRequest {
|
|
219
|
-
projectKey: string;
|
|
220
|
-
epicKey?: string;
|
|
221
|
-
userStoryKey?: string;
|
|
222
|
-
taskKeys?: string[];
|
|
223
|
-
statusFilter?: string[];
|
|
224
|
-
strategy?: RefineStrategy;
|
|
225
|
-
maxTasks?: number;
|
|
226
|
-
dryRun?: boolean;
|
|
227
|
-
agentIdOverride?: string;
|
|
228
|
-
planInPath?: string;
|
|
229
|
-
planOutPath?: string;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface UpdateTaskOp {
|
|
233
|
-
op: "update_task";
|
|
234
|
-
taskKey: string;
|
|
235
|
-
updates: {
|
|
236
|
-
title?: string;
|
|
237
|
-
description?: string;
|
|
238
|
-
acceptanceCriteria?: string[];
|
|
239
|
-
type?: string;
|
|
240
|
-
storyPoints?: number | null;
|
|
241
|
-
priority?: number | null;
|
|
242
|
-
metadata?: Record<string, unknown>;
|
|
243
|
-
status?: string;
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface SplitChildTask {
|
|
248
|
-
title: string;
|
|
249
|
-
description?: string;
|
|
250
|
-
acceptanceCriteria?: string[];
|
|
251
|
-
type?: string;
|
|
252
|
-
storyPoints?: number | null;
|
|
253
|
-
priority?: number | null;
|
|
254
|
-
metadata?: Record<string, unknown>;
|
|
255
|
-
dependsOn?: string[];
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface SplitTaskOp {
|
|
259
|
-
op: "split_task";
|
|
260
|
-
taskKey: string;
|
|
261
|
-
keepParent?: boolean;
|
|
262
|
-
parentUpdates?: UpdateTaskOp["updates"];
|
|
263
|
-
children: SplitChildTask[];
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface MergeTasksOp {
|
|
267
|
-
op: "merge_tasks";
|
|
268
|
-
targetTaskKey: string;
|
|
269
|
-
sourceTaskKeys: string[];
|
|
270
|
-
updates?: UpdateTaskOp["updates"];
|
|
271
|
-
cancelSources?: boolean;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface UpdateEstimateOp {
|
|
275
|
-
op: "update_estimate";
|
|
276
|
-
taskKey: string;
|
|
277
|
-
storyPoints?: number | null;
|
|
278
|
-
type?: string;
|
|
279
|
-
priority?: number | null;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export type RefineOperation = UpdateTaskOp | SplitTaskOp | MergeTasksOp | UpdateEstimateOp;
|
|
283
|
-
|
|
284
|
-
export interface RefineTasksPlan {
|
|
285
|
-
strategy?: RefineStrategy;
|
|
286
|
-
operations: RefineOperation[];
|
|
287
|
-
warnings?: string[];
|
|
288
|
-
metadata?: {
|
|
289
|
-
generatedAt: string;
|
|
290
|
-
projectKey: string;
|
|
291
|
-
epicKeys?: string[];
|
|
292
|
-
storyKeys?: string[];
|
|
293
|
-
jobId?: string;
|
|
294
|
-
commandRunId?: string;
|
|
295
|
-
strategy?: RefineStrategy;
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export interface RefineTasksResult {
|
|
300
|
-
jobId: string;
|
|
301
|
-
commandRunId: string;
|
|
302
|
-
plan: RefineTasksPlan;
|
|
303
|
-
applied: boolean;
|
|
304
|
-
createdTasks?: string[];
|
|
305
|
-
updatedTasks?: string[];
|
|
306
|
-
cancelledTasks?: string[];
|
|
307
|
-
summary?: {
|
|
308
|
-
tasksProcessed: number;
|
|
309
|
-
tasksAffected: number;
|
|
310
|
-
storyPointsDelta?: number;
|
|
311
|
-
};
|
|
312
|
-
}
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility helpers for resolving mcoda paths in both global and workspace scopes.
|
|
3
|
-
* The helpers intentionally avoid touching any other layer to keep shared free of deps.
|
|
4
|
-
*/
|
|
5
|
-
export declare class PathHelper {
|
|
6
|
-
static getGlobalMcodaDir(): string;
|
|
7
|
-
static getGlobalDbPath(): string;
|
|
8
|
-
static getWorkspaceDir(cwd?: string): string;
|
|
9
|
-
static getWorkspaceDbPath(cwd?: string): string;
|
|
10
|
-
static ensureDir(dir: string): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=PathHelper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PathHelper.d.ts","sourceRoot":"","sources":["PathHelper.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,qBAAa,UAAU;IACrB,MAAM,CAAC,iBAAiB,IAAI,MAAM;IAIlC,MAAM,CAAC,eAAe,IAAI,MAAM;IAIhC,MAAM,CAAC,eAAe,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM;IAI3D,MAAM,CAAC,kBAAkB,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM;WAIjD,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGnD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import os from "node:os";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { promises as fs } from "node:fs";
|
|
4
|
-
/**
|
|
5
|
-
* Utility helpers for resolving mcoda paths in both global and workspace scopes.
|
|
6
|
-
* The helpers intentionally avoid touching any other layer to keep shared free of deps.
|
|
7
|
-
*/
|
|
8
|
-
export class PathHelper {
|
|
9
|
-
static getGlobalMcodaDir() {
|
|
10
|
-
return path.join(os.homedir(), ".mcoda");
|
|
11
|
-
}
|
|
12
|
-
static getGlobalDbPath() {
|
|
13
|
-
return path.join(this.getGlobalMcodaDir(), "mcoda.db");
|
|
14
|
-
}
|
|
15
|
-
static getWorkspaceDir(cwd = process.cwd()) {
|
|
16
|
-
return path.join(cwd, ".mcoda");
|
|
17
|
-
}
|
|
18
|
-
static getWorkspaceDbPath(cwd = process.cwd()) {
|
|
19
|
-
return path.join(this.getWorkspaceDir(cwd), "mcoda.db");
|
|
20
|
-
}
|
|
21
|
-
static async ensureDir(dir) {
|
|
22
|
-
await fs.mkdir(dir, { recursive: true });
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import os from "node:os";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { promises as fs } from "node:fs";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Utility helpers for resolving mcoda paths in both global and workspace scopes.
|
|
7
|
-
* The helpers intentionally avoid touching any other layer to keep shared free of deps.
|
|
8
|
-
*/
|
|
9
|
-
export class PathHelper {
|
|
10
|
-
static getGlobalMcodaDir(): string {
|
|
11
|
-
return path.join(os.homedir(), ".mcoda");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static getGlobalDbPath(): string {
|
|
15
|
-
return path.join(this.getGlobalMcodaDir(), "mcoda.db");
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static getWorkspaceDir(cwd: string = process.cwd()): string {
|
|
19
|
-
return path.join(cwd, ".mcoda");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
static getWorkspaceDbPath(cwd: string = process.cwd()): string {
|
|
23
|
-
return path.join(this.getWorkspaceDir(cwd), "mcoda.db");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static async ensureDir(dir: string): Promise<void> {
|
|
27
|
-
await fs.mkdir(dir, { recursive: true });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface QaProfile {
|
|
2
|
-
name: string;
|
|
3
|
-
runner?: 'cli' | 'chromium' | 'maestro' | string;
|
|
4
|
-
level?: string;
|
|
5
|
-
test_command?: string;
|
|
6
|
-
working_dir?: string;
|
|
7
|
-
env?: Record<string, string>;
|
|
8
|
-
default?: boolean;
|
|
9
|
-
matcher?: {
|
|
10
|
-
task_types?: string[];
|
|
11
|
-
tags?: string[];
|
|
12
|
-
};
|
|
13
|
-
install_command?: string;
|
|
14
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class UtilityService {}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mcoda/testing",
|
|
3
|
-
"version": "0.1.2",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "Internal testing utilities for mcoda.",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc -p tsconfig.json",
|
|
14
|
-
"lint": "echo \"lint not configured\"",
|
|
15
|
-
"test": "pnpm run build && node ../../scripts/run-node-tests.js dist"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@mcoda/agents": "workspace:*",
|
|
19
|
-
"mcoda": "workspace:*",
|
|
20
|
-
"@mcoda/core": "workspace:*",
|
|
21
|
-
"@mcoda/db": "workspace:*",
|
|
22
|
-
"@mcoda/integrations": "workspace:*",
|
|
23
|
-
"@mcoda/shared": "workspace:*"
|
|
24
|
-
},
|
|
25
|
-
"license": "MIT"
|
|
26
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { describe, it } from "node:test";
|
|
2
|
-
import assert from "node:assert/strict";
|
|
3
|
-
import { FakeAgents } from "../fakes/agents/FakeAgents.js";
|
|
4
|
-
import { FakeQaClient } from "../fakes/qa/FakeQaClient.js";
|
|
5
|
-
import { FakeDocdexClient } from "../fakes/docdex/FakeDocdexClient.js";
|
|
6
|
-
import { FakeVcsClient } from "../fakes/vcs/FakeVcsClient.js";
|
|
7
|
-
|
|
8
|
-
describe("testing fakes", () => {
|
|
9
|
-
it("exports fake client shells", () => {
|
|
10
|
-
assert.ok(new FakeAgents());
|
|
11
|
-
assert.ok(new FakeQaClient());
|
|
12
|
-
assert.ok(new FakeDocdexClient());
|
|
13
|
-
assert.ok(new FakeVcsClient());
|
|
14
|
-
});
|
|
15
|
-
});
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class E2eSuite {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class FakeAgents {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class FakeDocdexClient {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class FakeQaClient {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class FakeVcsClient {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class DbFixtures {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class WorkspaceFixtures {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class Index {}
|
package/pnpm-workspace.yaml
DELETED
package/prompts/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Agent Prompts
|
|
2
|
-
|
|
3
|
-
This directory holds pre-flight prompts for the agents working in this repository. Each prompt is a concise, self-contained briefing that tells an agent how to get oriented, what to inspect before acting, and how to deliver useful outputs.
|
|
4
|
-
|
|
5
|
-
Add new prompts when we introduce a new agent role or workflow. Keep every prompt grounded in the current repo layout (`README.md`, `docs/`, `openapi/`, `packages/`) and prefer clear checklists over vague guidance.
|
package/prompts/code-reviewer.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Code Reviewer Agent Prompt
|
|
2
|
-
|
|
3
|
-
Goal: surface correctness risks, regressions, and missing coverage quickly and clearly.
|
|
4
|
-
|
|
5
|
-
## Prep (before reviewing lines)
|
|
6
|
-
- Docdex usage (required): query docdex with the task key and feature keywords to pull SDS/PDR/RFP/OpenAPI snippets. Use MCP tool `docdex_search` (limit ~4–8) or CLI `docdexd query --repo <repo> --query "<term>" --limit 6 --snippets=false`; fetch `docdex_open` or `/snippet/:doc_id?text_only=true` only for specific hits. If results look stale, reindex (`docdex_index` or `docdexd index --repo <repo>`) then re-run. Extract expected behaviors, contracts, data shapes, acceptance criteria, and non-functional guardrails (offline scope, accessibility, performance). If docdex is unavailable, note that explicitly and fall back to the task’s documentation catalog helpers instead of opening whole docs.
|
|
7
|
-
- Understand intent: read the task request and any linked docs (`docs/pdr/`, `docs/sds/`, `openapi/mcoda.yaml`) to know expected behavior and contracts.
|
|
8
|
-
- Map scope: note which package(s) and files changed, and skim nearby code/tests to see existing patterns.
|
|
9
|
-
- If the task supplies a response format or helper scripts (Plan/Focus/Commands/Notes, repo outline/targeted search/doc catalog/show helpers), adhere to them; favor those helpers over broad repo scans and keep file/range reads narrow.
|
|
10
|
-
- Identify risk zones up front (entry points, data mutations, async flows, security/permissions, migrations).
|
|
11
|
-
- Treat `gpt-creator` as legacy; do not reference or depend on it in reviews or guidance.
|
|
12
|
-
|
|
13
|
-
## Review focus
|
|
14
|
-
- Correctness first: does the change satisfy the intent without breaking callers or data contracts? Check types, null/undefined handling, and async/error paths.
|
|
15
|
-
- Tests: confirm there is coverage for new/changed behavior; call out missing edge cases and propose specific tests.
|
|
16
|
-
- Compatibility and docs: flag API/CLI/schema changes that lack doc updates or migration notes.
|
|
17
|
-
- Quality: prefer existing helpers, avoid dead code, and ensure logging/metrics are consistent with the surrounding code.
|
|
18
|
-
- Avoid style-only nits; center on impact and maintainability.
|
|
19
|
-
|
|
20
|
-
## How to report
|
|
21
|
-
- List findings in severity order with precise references (`path:line`) and a short fix or question. Group duplicates instead of repeating.
|
|
22
|
-
- Note any blocking questions/assumptions separately.
|
|
23
|
-
- Close with a concise summary and the minimal set of actions needed to merge (tests to run, docs to update, follow-up items).
|
package/prompts/code-writer.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Code Writing Agent Prompt
|
|
2
|
-
|
|
3
|
-
Goal: ship the requested change with the smallest, safest diff while matching the repo’s established patterns (language, framework, style, and tooling).
|
|
4
|
-
|
|
5
|
-
## Get oriented first (before editing)
|
|
6
|
-
- Read the task and restate the success criteria in your own words.
|
|
7
|
-
- Skim workspace guides: `README.md`, the main project manifest (to see scripts and tooling), and any package-level docs.
|
|
8
|
-
- Docdex usage (required): before any code search, query docdex with the task key and feature keywords to pull SDS/PDR/RFP/OpenAPI snippets. Preferred paths:
|
|
9
|
-
- MCP client: call `docdex_search` with concise queries (`"bulk complete selection"`), `limit` 4–8; if results are stale, call `docdex_index` (empty `paths` reindexes all) then re-run search. Fetch `docdex_open` only for specific doc_ids to keep payloads small.
|
|
10
|
-
- CLI: `docdexd query --repo <repo> --query "bulk complete selection" --limit 6 --snippets=false` for summaries; call `/snippet/:doc_id?text_only=true` or `docdexd query ... --snippets=true` for a single target doc. If the index is missing/stale, run `docdexd index --repo <repo>` first.
|
|
11
|
-
- Ensure the daemon is running if needed: `docdexd serve --repo <repo> --host 127.0.0.1 --port 46137 --log warn --secure-mode=false` for local use (or use MCP with `docdexd mcp --repo . --log warn --max-results 8`). Keep `.docdex/` out of VCS.
|
|
12
|
-
- Capture constraints: data model fields/enums, offline/online expectations, bulk rules, accessibility/perf requirements, acceptance criteria. If docdex is unavailable, say so and fall back to the task’s documentation catalog helpers (FTS/JSON catalog) instead of opening entire doc files.
|
|
13
|
-
- Map the target area: inspect the relevant folder/package, list likely entry points, and open nearby tests/utilities. Favor existing slices/stores/adapters over creating new ones; note the current data shape (fields, enums, persistence model).
|
|
14
|
-
- Search for prior art with the repo’s code search (e.g., ripgrep) to reuse patterns for validation, errors, logging, and tests.
|
|
15
|
-
- If the task provides a response contract (e.g., headings like Plan/Focus/Commands/Notes or required helper scripts), follow it exactly. Use any provided catalog/outline helpers instead of ad-hoc repo-wide searches; keep file/range reads narrow.
|
|
16
|
-
- Prefer task-provided helpers (repo outline, targeted search, doc catalog/show) before manual `ls`/`rg`; avoid repo-wide scans. Preview narrow ranges before `sed`/`cat` to keep context tight.
|
|
17
|
-
- Treat `gpt-creator` as legacy; do not reference or depend on it in plans, prompts, or code paths.
|
|
18
|
-
|
|
19
|
-
## Plan, then code
|
|
20
|
-
- Write a brief plan (steps/files) before modifying anything; prefer reuse over new abstractions.
|
|
21
|
-
- Match existing conventions: language/framework choices already in the repo, error handling, logging, naming, and file layout. Keep behavior backward-compatible unless told otherwise.
|
|
22
|
-
- Confirm the data/persistence model from docs before coding (e.g., offline/local storage vs. network). Do not invent new APIs or backends if the design is client-only.
|
|
23
|
-
- Extend the current store/state modules instead of bolting on parallel action/reducer files; wire bulk/selection flows through existing selectors/slices and persistence hooks. Use existing action creators/selectors rather than ad-hoc action type strings.
|
|
24
|
-
- Keep data shapes consistent with the documented model and current store (e.g., status enums vs. boolean flags); don’t assume fields that aren’t in the schema.
|
|
25
|
-
- Avoid writing partial/placeholder files—ensure every file has its imports, exports, and compiles in isolation before moving on.
|
|
26
|
-
- If you encounter merge conflicts, resolve them first (clean conflict markers and ensure code compiles) before continuing task work.
|
|
27
|
-
- If a target file does not exist, create it by emitting a new-file unified diff with full content (no placeholder edits to missing paths).
|
|
28
|
-
- Guard inputs and edge cases; avoid silent failure paths; keep changes narrow and testable.
|
|
29
|
-
- Add or update tests alongside code, following the existing style and fixtures.
|
|
30
|
-
- Align tests with the project’s test runner and dependencies; avoid introducing libraries that aren’t already in use or declared, and target real components/modules (not missing files). Update docs/config only when behavior or contracts change (command help, README snippets, specs, runbooks).
|
|
31
|
-
|
|
32
|
-
## Validate and hand off
|
|
33
|
-
- Run the smallest relevant checks using the workspace’s documented scripts or test commands; if you cannot run them, state why and which ones are pending.
|
|
34
|
-
- Self-review for regressions: data shape changes, async/error handling, backward compatibility for callers, and side effects. Verify imports/resolution and that new code actually uses existing slices/persistence instead of dead helpers.
|
|
35
|
-
- Report back with what changed, files touched, checks run (or needed), and any risks or follow-up items.
|
package/prompts/gateway-agent.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
You are the gateway agent. Read the task context and docdex snippets, digest the task, decide what is done vs. remaining, and plan the work.
|
|
2
|
-
You must identify concrete file paths to modify or create before offloading.
|
|
3
|
-
Do not use placeholders like (unknown), TBD, or glob patterns in file paths.
|
|
4
|
-
If docdex returns no results, say so in docdexNotes.
|
|
5
|
-
Do not leave currentState, todo, or understanding blank.
|
|
6
|
-
Put reasoningSummary near the top of the JSON object so it appears early in the stream.
|
|
7
|
-
Do not claim to have read files or performed a repo scan unless explicit file content was provided.
|
|
8
|
-
Do not include fields outside the schema.
|
|
9
|
-
|
|
10
|
-
Return JSON only with the following schema:
|
|
11
|
-
{
|
|
12
|
-
"summary": "1-3 sentence summary of the task and intent",
|
|
13
|
-
"reasoningSummary": "1-2 sentence high-level rationale (no chain-of-thought)",
|
|
14
|
-
"currentState": "short statement of what is already implemented or known to exist",
|
|
15
|
-
"todo": "short statement of what still needs to be done",
|
|
16
|
-
"understanding": "short statement of what success looks like",
|
|
17
|
-
"plan": ["step 1", "step 2", "step 3"],
|
|
18
|
-
"complexity": 1-10,
|
|
19
|
-
"discipline": "backend|frontend|uiux|docs|architecture|qa|planning|ops|other",
|
|
20
|
-
"filesLikelyTouched": ["path/to/file.ext"],
|
|
21
|
-
"filesToCreate": ["path/to/new_file.ext"],
|
|
22
|
-
"assumptions": ["assumption 1"],
|
|
23
|
-
"risks": ["risk 1"],
|
|
24
|
-
"docdexNotes": ["notes about docdex coverage/gaps"]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
If information is missing, keep arrays empty and mention the gap in assumptions or docdexNotes.
|
package/prompts/qa-agent.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# QA Agent Prompt
|
|
2
|
-
|
|
3
|
-
Goal: verify the change meets its acceptance criteria and guard against regressions with clear, reproducible findings.
|
|
4
|
-
|
|
5
|
-
## Orient yourself
|
|
6
|
-
- Docdex usage (required): query docdex with the task key and feature keywords before planning tests. Use MCP `docdex_search` (limit ~4–8) or CLI `docdexd query --repo <repo> --query "<term>" --limit 6 --snippets=false`; pull snippets via `docdex_open` or `/snippet/:doc_id?text_only=true` only for the hits you will test. If results are stale, reindex (`docdex_index` or `docdexd index --repo <repo>`) then re-run. Capture acceptance criteria, data contracts, edge cases, non-functional requirements (performance, accessibility), and environment/setup assumptions. If docdex is unavailable, state that explicitly and fall back to the task’s documentation catalog helpers instead of opening whole docs.
|
|
7
|
-
- Read the task/request and extract explicit acceptance criteria. If unclear, infer from related docs (`docs/pdr/`, `docs/sds/`, `openapi/mcoda.yaml`) and existing behavior in the relevant package.
|
|
8
|
-
- Map the impacted surfaces (CLI flags, API endpoints, background jobs, data stores) and note dependencies/config that must be set before testing.
|
|
9
|
-
- Identify available automation: look for documented test commands in the project manifest or CONTRIBUTING docs, and any focused test files near the touched code.
|
|
10
|
-
- If the task provides a required response shape or helper scripts (e.g., Plan/Focus/Commands/Notes, catalog/outline/targeted search helpers), follow it exactly and use those helpers instead of broad repo scans; keep file/range reads tight.
|
|
11
|
-
- Treat `gpt-creator` as legacy; do not reference or depend on it in plans, tests, or reporting.
|
|
12
|
-
|
|
13
|
-
## Build a focused test plan
|
|
14
|
-
- Cover happy paths, edge/error cases, and nearby regressions for the impacted area only; keep steps minimal and repeatable.
|
|
15
|
-
- Prefer targeted automated checks first; supplement with manual steps when automation is missing.
|
|
16
|
-
- Define expected outcomes up front (inputs, outputs, side effects, logs) so discrepancies are easy to spot.
|
|
17
|
-
|
|
18
|
-
## Execute and report
|
|
19
|
-
- Record commands run (with working directory), data/setup used, and actual outcomes. Attach logs/error snippets when useful.
|
|
20
|
-
- For each issue: provide repro steps, expected vs actual, scope/impact, and a quick fix hint if obvious.
|
|
21
|
-
- If everything passes, state what was covered and call out any gaps that were not exercised.
|