@fleettools/server 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/tsconfig.json +7 -1
- package/.flightline/checkpoints.db +0 -0
- package/.flightline/ctk/04a5510b-1e09-40c6-91c8-399c22138708.json +0 -9
- package/.flightline/ctk/0ecde721-7827-4039-995a-974e24493cc5.json +0 -9
- package/.flightline/ctk/268bbdbd-ddd7-46b2-845f-56a138aa518a.json +0 -9
- package/.flightline/ctk/6f476f2e-776c-407a-b441-b9365c0bae95.json +0 -9
- package/.flightline/ctk/7e10d0d5-fbc2-4661-af03-53de89e064db.json +0 -9
- package/.flightline/ctk/90783096-b7d4-49c5-8153-3c35018a2e61.json +0 -9
- package/.flightline/ctk/9a3b6d18-8a46-4728-90aa-279800a8e397.json +0 -9
- package/.flightline/ctk/ae30e192-b386-4ee2-899c-93f86785d3f3.json +0 -9
- package/.flightline/ctk/d0e9c49e-10df-413e-8cf7-37232b1838ca.json +0 -9
- package/.flightline/ctk/eae1a12b-2e9d-4c3f-8619-dafbb1346e96.json +0 -9
- package/.flightline/mailboxes/mbx_00dae6ba-0b5e-4a8d-a86d-93c8640872c3/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_05b0bfa9-c4f5-4f68-ba75-6202820f49c3/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_0a6b8fb2-729e-4385-8241-839c36b929d7/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_0abca4ab-8e34-409c-997f-481e80e450dc/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_173e5fb9-8203-418d-93c2-4f8c91f2d842/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_22b62201-0570-4ce8-b0a7-0f4b445f6d9e/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_2724efb1-76e1-4147-9620-4defcc65510f/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_35b8bfcd-5a54-48f1-8759-cb1f8ffe775d/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_3bc5193a-604d-4f52-be00-e56277643358/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_3bd500f3-c111-427a-8cd7-a004125d6dc1/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_45ce9ae8-5299-44dc-a1b5-4d63914a9609/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_4779c645-1efc-4c76-ab21-ff93f973ee8f/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_482237cf-87c8-486e-a24d-0941be2f480d/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_4b7e23c8-5680-4edd-a276-88803dd5fb6f/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_4dd3b945-d846-4c7a-94eb-6eeb25a0dc6b/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_4ec41a62-62bb-4be4-b3ce-282d5a33acce/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_4ff7ee7e-0c8a-43d6-a829-7c62c10af3b0/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_7661e4fb-a919-4af1-86f7-3eaef22f1d81/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_7ca872bb-69ab-4e7d-a7c6-4888ec8e7749/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_7e6d5707-2aa5-4770-a7be-6b1be93d0d87/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_87bef50d-3c59-429b-a995-5872f6278c37/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_88d1ea56-0b69-48c4-9fcf-ce1e1f7527ba/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_8bfb6bd7-07d1-4836-ae9d-3c93668c6dfe/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_93355083-e95b-4341-b625-56fcc1e4fc0c/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_999fd94c-ca56-4fec-8d30-8b677cf40ad6/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_a039fd15-7ee1-4bd6-906d-55dea8d0e489/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_a0b7363f-7cc6-4940-8e29-2dc85793a77d/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_a31e8b61-9643-4c78-939d-d1696d0420d9/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_acc51591-256c-4bed-9a51-514b1811f4cd/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_b1efebd9-5981-49fa-8775-20fa00d0c902/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_ba9d4c61-39a3-4852-95d7-bd34e3605a43/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_c549b60f-65fd-48d5-8cd6-2f053292b112/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_d0f839a5-3ab9-42e2-b438-df5825d049fe/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_d826d57e-9817-4f3c-ab94-2bfafa352f6d/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_da102f37-632c-4c0b-be4c-4270a74c06b9/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_df4506f5-67f2-4cf6-9113-93994b76f39b/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_e038e93b-87ea-4122-9578-6540018697b7/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_e0c171c5-407f-44dc-9ef9-e26e8b99ceac/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_e64770bf-7220-4d0f-848c-d751ea1c7376/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_e7f0edda-0fab-484d-ab4d-d8a8e363cd14/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_ec7d9118-8594-4d79-bf79-f43afdfaf156/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_ee06ec01-03e4-485a-ae2b-d8bdb6e7a3a8/manifest.json +0 -6
- package/.flightline/mailboxes/mbx_fd467681-f9cf-4a54-b06a-836df6de2ccc/manifest.json +0 -6
- package/.flightline/progress.db +0 -0
- package/.flightline/recovery.log +0 -1
- package/.flightline/tasks.db +0 -0
- package/.flightline/tech-orders/to_0c93d981-6b4e-4055-8678-f39c009d1db1.json +0 -11
- package/.flightline/tech-orders/to_1862f8ed-c487-4914-9f1e-528af6d4f053.json +0 -11
- package/.flightline/tech-orders/to_2335a57d-f400-4efa-b108-e13ece57520d.json +0 -11
- package/.flightline/tech-orders/to_2bd8dbdd-ac57-4b84-b977-33a3637d10d1.json +0 -11
- package/.flightline/tech-orders/to_37057c01-39b5-403a-991f-afb186abde95.json +0 -11
- package/.flightline/tech-orders/to_9e7288bb-c0fd-488a-a83d-1e9337bd0f1f.json +0 -11
- package/.flightline/tech-orders/to_aa0fe80b-9de7-40f6-a106-353b5bca10bd.json +0 -11
- package/.flightline/tech-orders/to_c1a0f480-c863-4203-a070-76ad77137845.json +0 -11
- package/.flightline/tech-orders/to_cf1e882a-cf56-45a4-8d19-494925e5f449.json +0 -11
- package/.flightline/work-orders/wo_5a29168d-5fb4-41d7-8dac-1d1151d9248f/manifest.json +0 -15
- package/.flightline/work-orders/wo_6c8c38bb-17a1-4885-ada4-dbfc5cc12d7a/manifest.json +0 -15
- package/.flightline/work-orders/wo_cadeb9b2-ea42-4491-b429-e2d467942b5c/manifest.json +0 -12
- package/.flightline/work-orders/wo_cc7b669c-16c4-4ef7-8a76-d1813219d0be/manifest.json +0 -15
- package/dist/agent-lifecycle.js +0 -148
- package/dist/agent-spawner.js +0 -460
- package/dist/agent-validation.js +0 -111
- package/dist/index.js +0 -255
- package/dist/server/api/src/coordination/agent-lifecycle.d.ts +0 -12
- package/dist/server/api/src/coordination/agent-lifecycle.d.ts.map +0 -1
- package/dist/server/api/src/coordination/agent-lifecycle.js +0 -12
- package/dist/server/api/src/coordination/agent-lifecycle.js.map +0 -1
- package/dist/server/api/src/coordination/agent-runner.d.ts +0 -9
- package/dist/server/api/src/coordination/agent-runner.d.ts.map +0 -1
- package/dist/server/api/src/coordination/agent-runner.js +0 -416
- package/dist/server/api/src/coordination/agent-runner.js.map +0 -1
- package/dist/server/api/src/coordination/agent-spawner-routes.d.ts +0 -7
- package/dist/server/api/src/coordination/agent-spawner-routes.d.ts.map +0 -1
- package/dist/server/api/src/coordination/agent-spawner-routes.js +0 -321
- package/dist/server/api/src/coordination/agent-spawner-routes.js.map +0 -1
- package/dist/server/api/src/coordination/agent-spawner.d.ts +0 -187
- package/dist/server/api/src/coordination/agent-spawner.d.ts.map +0 -1
- package/dist/server/api/src/coordination/agent-spawner.js +0 -712
- package/dist/server/api/src/coordination/agent-spawner.js.map +0 -1
- package/dist/server/api/src/coordination/agents.d.ts +0 -13
- package/dist/server/api/src/coordination/agents.d.ts.map +0 -1
- package/dist/server/api/src/coordination/agents.js +0 -464
- package/dist/server/api/src/coordination/agents.js.map +0 -1
- package/dist/server/api/src/coordination/checkpoint-routes.d.ts +0 -33
- package/dist/server/api/src/coordination/checkpoint-routes.d.ts.map +0 -1
- package/dist/server/api/src/coordination/checkpoint-routes.js +0 -323
- package/dist/server/api/src/coordination/checkpoint-routes.js.map +0 -1
- package/dist/server/api/src/coordination/conflict-resolver.d.ts +0 -152
- package/dist/server/api/src/coordination/conflict-resolver.d.ts.map +0 -1
- package/dist/server/api/src/coordination/conflict-resolver.js +0 -502
- package/dist/server/api/src/coordination/conflict-resolver.js.map +0 -1
- package/dist/server/api/src/coordination/missions.d.ts +0 -9
- package/dist/server/api/src/coordination/missions.d.ts.map +0 -1
- package/dist/server/api/src/coordination/missions.js +0 -148
- package/dist/server/api/src/coordination/missions.js.map +0 -1
- package/dist/server/api/src/coordination/monitor.d.ts +0 -175
- package/dist/server/api/src/coordination/monitor.d.ts.map +0 -1
- package/dist/server/api/src/coordination/monitor.js +0 -410
- package/dist/server/api/src/coordination/monitor.js.map +0 -1
- package/dist/server/api/src/coordination/notifier.d.ts +0 -160
- package/dist/server/api/src/coordination/notifier.d.ts.map +0 -1
- package/dist/server/api/src/coordination/notifier.js +0 -422
- package/dist/server/api/src/coordination/notifier.js.map +0 -1
- package/dist/server/api/src/coordination/progress-tracker.d.ts +0 -98
- package/dist/server/api/src/coordination/progress-tracker.d.ts.map +0 -1
- package/dist/server/api/src/coordination/progress-tracker.js +0 -323
- package/dist/server/api/src/coordination/progress-tracker.js.map +0 -1
- package/dist/server/api/src/coordination/recovery-manager.d.ts +0 -135
- package/dist/server/api/src/coordination/recovery-manager.d.ts.map +0 -1
- package/dist/server/api/src/coordination/recovery-manager.js +0 -435
- package/dist/server/api/src/coordination/recovery-manager.js.map +0 -1
- package/dist/server/api/src/coordination/task-decomposer.d.ts +0 -90
- package/dist/server/api/src/coordination/task-decomposer.d.ts.map +0 -1
- package/dist/server/api/src/coordination/task-decomposer.js +0 -412
- package/dist/server/api/src/coordination/task-decomposer.js.map +0 -1
- package/dist/server/api/src/coordination/task-queue-routes.d.ts +0 -7
- package/dist/server/api/src/coordination/task-queue-routes.d.ts.map +0 -1
- package/dist/server/api/src/coordination/task-queue-routes.js +0 -266
- package/dist/server/api/src/coordination/task-queue-routes.js.map +0 -1
- package/dist/server/api/src/coordination/task-queue.d.ts +0 -104
- package/dist/server/api/src/coordination/task-queue.d.ts.map +0 -1
- package/dist/server/api/src/coordination/task-queue.js +0 -378
- package/dist/server/api/src/coordination/task-queue.js.map +0 -1
- package/dist/server/api/src/coordination/tasks.d.ts +0 -7
- package/dist/server/api/src/coordination/tasks.d.ts.map +0 -1
- package/dist/server/api/src/coordination/tasks.js +0 -59
- package/dist/server/api/src/coordination/tasks.js.map +0 -1
- package/dist/server/api/src/decomposition/cli.d.ts +0 -18
- package/dist/server/api/src/decomposition/cli.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/cli.js +0 -191
- package/dist/server/api/src/decomposition/cli.js.map +0 -1
- package/dist/server/api/src/decomposition/codebase-analyzer.d.ts +0 -59
- package/dist/server/api/src/decomposition/codebase-analyzer.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/codebase-analyzer.js +0 -274
- package/dist/server/api/src/decomposition/codebase-analyzer.js.map +0 -1
- package/dist/server/api/src/decomposition/dependency-resolver.d.ts +0 -68
- package/dist/server/api/src/decomposition/dependency-resolver.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/dependency-resolver.js +0 -261
- package/dist/server/api/src/decomposition/dependency-resolver.js.map +0 -1
- package/dist/server/api/src/decomposition/index.d.ts +0 -17
- package/dist/server/api/src/decomposition/index.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/index.js +0 -19
- package/dist/server/api/src/decomposition/index.js.map +0 -1
- package/dist/server/api/src/decomposition/parallelization.d.ts +0 -40
- package/dist/server/api/src/decomposition/parallelization.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/parallelization.js +0 -144
- package/dist/server/api/src/decomposition/parallelization.js.map +0 -1
- package/dist/server/api/src/decomposition/planner.d.ts +0 -84
- package/dist/server/api/src/decomposition/planner.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/planner.js +0 -415
- package/dist/server/api/src/decomposition/planner.js.map +0 -1
- package/dist/server/api/src/decomposition/routes.d.ts +0 -13
- package/dist/server/api/src/decomposition/routes.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/routes.js +0 -114
- package/dist/server/api/src/decomposition/routes.js.map +0 -1
- package/dist/server/api/src/decomposition/strategies.d.ts +0 -43
- package/dist/server/api/src/decomposition/strategies.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/strategies.js +0 -147
- package/dist/server/api/src/decomposition/strategies.js.map +0 -1
- package/dist/server/api/src/decomposition/types.d.ts +0 -1090
- package/dist/server/api/src/decomposition/types.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/types.js +0 -65
- package/dist/server/api/src/decomposition/types.js.map +0 -1
- package/dist/server/api/src/decomposition/validator.d.ts +0 -84
- package/dist/server/api/src/decomposition/validator.d.ts.map +0 -1
- package/dist/server/api/src/decomposition/validator.js +0 -314
- package/dist/server/api/src/decomposition/validator.js.map +0 -1
- package/dist/server/api/src/flightline/ctk.d.ts +0 -2
- package/dist/server/api/src/flightline/ctk.d.ts.map +0 -1
- package/dist/server/api/src/flightline/ctk.js +0 -114
- package/dist/server/api/src/flightline/ctk.js.map +0 -1
- package/dist/server/api/src/flightline/tech-orders.d.ts +0 -2
- package/dist/server/api/src/flightline/tech-orders.d.ts.map +0 -1
- package/dist/server/api/src/flightline/tech-orders.js +0 -74
- package/dist/server/api/src/flightline/tech-orders.js.map +0 -1
- package/dist/server/api/src/flightline/work-orders.d.ts +0 -2
- package/dist/server/api/src/flightline/work-orders.d.ts.map +0 -1
- package/dist/server/api/src/flightline/work-orders.js +0 -178
- package/dist/server/api/src/flightline/work-orders.js.map +0 -1
- package/dist/server/api/src/index.d.ts +0 -3
- package/dist/server/api/src/index.d.ts.map +0 -1
- package/dist/server/api/src/index.js +0 -192
- package/dist/server/api/src/index.js.map +0 -1
- package/dist/server/api/src/middleware/agent-validation.d.ts +0 -161
- package/dist/server/api/src/middleware/agent-validation.d.ts.map +0 -1
- package/dist/server/api/src/middleware/agent-validation.js +0 -112
- package/dist/server/api/src/middleware/agent-validation.js.map +0 -1
- package/dist/server/api/src/middleware/error-handler.d.ts +0 -8
- package/dist/server/api/src/middleware/error-handler.d.ts.map +0 -1
- package/dist/server/api/src/middleware/error-handler.js +0 -54
- package/dist/server/api/src/middleware/error-handler.js.map +0 -1
- package/dist/server/api/src/middleware/logger.d.ts +0 -8
- package/dist/server/api/src/middleware/logger.d.ts.map +0 -1
- package/dist/server/api/src/middleware/logger.js +0 -31
- package/dist/server/api/src/middleware/logger.js.map +0 -1
- package/dist/server/api/src/middleware/validation.d.ts +0 -322
- package/dist/server/api/src/middleware/validation.d.ts.map +0 -1
- package/dist/server/api/src/middleware/validation.js +0 -189
- package/dist/server/api/src/middleware/validation.js.map +0 -1
- package/dist/server/api/src/squawk/blocker-handler.d.ts +0 -111
- package/dist/server/api/src/squawk/blocker-handler.d.ts.map +0 -1
- package/dist/server/api/src/squawk/blocker-handler.js +0 -262
- package/dist/server/api/src/squawk/blocker-handler.js.map +0 -1
- package/dist/server/api/src/squawk/coordinator.d.ts +0 -2
- package/dist/server/api/src/squawk/coordinator.d.ts.map +0 -1
- package/dist/server/api/src/squawk/coordinator.js +0 -24
- package/dist/server/api/src/squawk/coordinator.js.map +0 -1
- package/dist/server/api/src/squawk/cursor.d.ts +0 -2
- package/dist/server/api/src/squawk/cursor.d.ts.map +0 -1
- package/dist/server/api/src/squawk/cursor.js +0 -55
- package/dist/server/api/src/squawk/cursor.js.map +0 -1
- package/dist/server/api/src/squawk/dependency-resolver.d.ts +0 -107
- package/dist/server/api/src/squawk/dependency-resolver.d.ts.map +0 -1
- package/dist/server/api/src/squawk/dependency-resolver.js +0 -324
- package/dist/server/api/src/squawk/dependency-resolver.js.map +0 -1
- package/dist/server/api/src/squawk/dispatch-orchestrator.d.ts +0 -117
- package/dist/server/api/src/squawk/dispatch-orchestrator.d.ts.map +0 -1
- package/dist/server/api/src/squawk/dispatch-orchestrator.js +0 -296
- package/dist/server/api/src/squawk/dispatch-orchestrator.js.map +0 -1
- package/dist/server/api/src/squawk/lock-coordinator.d.ts +0 -118
- package/dist/server/api/src/squawk/lock-coordinator.d.ts.map +0 -1
- package/dist/server/api/src/squawk/lock-coordinator.js +0 -279
- package/dist/server/api/src/squawk/lock-coordinator.js.map +0 -1
- package/dist/server/api/src/squawk/lock.d.ts +0 -2
- package/dist/server/api/src/squawk/lock.d.ts.map +0 -1
- package/dist/server/api/src/squawk/lock.js +0 -87
- package/dist/server/api/src/squawk/lock.js.map +0 -1
- package/dist/server/api/src/squawk/mailbox.d.ts +0 -2
- package/dist/server/api/src/squawk/mailbox.d.ts.map +0 -1
- package/dist/server/api/src/squawk/mailbox.js +0 -66
- package/dist/server/api/src/squawk/mailbox.js.map +0 -1
- package/dist/server/api/src/squawk/spawning.d.ts +0 -79
- package/dist/server/api/src/squawk/spawning.d.ts.map +0 -1
- package/dist/server/api/src/squawk/spawning.js +0 -226
- package/dist/server/api/src/squawk/spawning.js.map +0 -1
- package/dist/server/api/src/squawk/specialist-tools.d.ts +0 -206
- package/dist/server/api/src/squawk/specialist-tools.d.ts.map +0 -1
- package/dist/server/api/src/squawk/specialist-tools.js +0 -411
- package/dist/server/api/src/squawk/specialist-tools.js.map +0 -1
- package/dist/server/api/src/types/api.d.ts +0 -63
- package/dist/server/api/src/types/api.d.ts.map +0 -1
- package/dist/server/api/src/types/api.js +0 -5
- package/dist/server/api/src/types/api.js.map +0 -1
- package/dist/squawk/src/db/index.d.ts +0 -30
- package/dist/squawk/src/db/index.d.ts.map +0 -1
- package/dist/squawk/src/db/index.js +0 -329
- package/dist/squawk/src/db/index.js.map +0 -1
- package/dist/squawk/src/db/sqlite.d.ts +0 -31
- package/dist/squawk/src/db/sqlite.d.ts.map +0 -1
- package/dist/squawk/src/db/sqlite.js +0 -558
- package/dist/squawk/src/db/sqlite.js.map +0 -1
- package/dist/squawk/src/db/types.d.ts +0 -611
- package/dist/squawk/src/db/types.d.ts.map +0 -1
- package/dist/squawk/src/db/types.js +0 -4
- package/dist/squawk/src/db/types.js.map +0 -1
- package/dist/task-queue.js +0 -377
- package/dist/validation.js +0 -188
- package/e2e-integration.test.ts +0 -290
- package/integration.test.ts +0 -186
- package/phase1-integration.test.ts +0 -455
- package/phase2-verification.test.ts +0 -135
- package/server.log +0 -58
- package/src/agent-runner.js +0 -877
- package/src/coordination/agent-lifecycle.ts +0 -13
- package/src/coordination/agent-runner.ts +0 -479
- package/src/coordination/agent-spawner-routes.ts +0 -340
- package/src/coordination/agent-spawner.ts +0 -885
- package/src/coordination/agents.ts +0 -525
- package/src/coordination/checkpoint-routes.ts +0 -382
- package/src/coordination/conflict-resolver.ts +0 -640
- package/src/coordination/missions.ts +0 -219
- package/src/coordination/monitor.ts +0 -593
- package/src/coordination/notifier.ts +0 -547
- package/src/coordination/progress-tracker.ts +0 -410
- package/src/coordination/recovery-manager.ts +0 -531
- package/src/coordination/task-decomposer.ts +0 -491
- package/src/coordination/task-queue-routes.ts +0 -284
- package/src/coordination/task-queue.ts +0 -480
- package/src/coordination/tasks.ts +0 -72
- package/src/flightline/ctk.ts +0 -131
- package/src/flightline/tech-orders.ts +0 -85
- package/src/flightline/work-orders.ts +0 -202
- package/src/index.ts +0 -211
- package/src/middleware/agent-validation.ts +0 -130
- package/src/middleware/error-handler.ts +0 -59
- package/src/middleware/logger.ts +0 -37
- package/src/middleware/validation.ts +0 -235
- package/src/squawk/coordinator.ts +0 -26
- package/src/squawk/cursor.ts +0 -62
- package/src/squawk/lock.ts +0 -98
- package/src/squawk/mailbox.ts +0 -75
- package/src/types/api.ts +0 -71
- package/test-api.ts +0 -310
- package/test-enhanced-agents.ts +0 -428
|
@@ -1,1090 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FleetTools Phase 4: Task Decomposition - Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Defines the SortieTree schema and related types for LLM-powered task decomposition.
|
|
5
|
-
* These types bridge human intent to actionable work units (Sorties) that can be
|
|
6
|
-
* executed in parallel or sequentially by specialist agents.
|
|
7
|
-
*
|
|
8
|
-
* @since 4.0.0 - Initial implementation
|
|
9
|
-
* @last-updated 2026-01-08
|
|
10
|
-
*/
|
|
11
|
-
import { z } from 'zod';
|
|
12
|
-
/**
|
|
13
|
-
* Mission - High-level task description
|
|
14
|
-
*
|
|
15
|
-
* Represents a user's intent that has been decomposed into parallelizable sorties.
|
|
16
|
-
* A mission is the parent container for all related sorties.
|
|
17
|
-
*/
|
|
18
|
-
export interface Mission {
|
|
19
|
-
/** Unique identifier (format: msn-<uuid8>) */
|
|
20
|
-
id: string;
|
|
21
|
-
/** User-provided task title */
|
|
22
|
-
title: string;
|
|
23
|
-
/** Detailed task description */
|
|
24
|
-
description: string;
|
|
25
|
-
/** Decomposition strategy used */
|
|
26
|
-
strategy: DecompositionStrategy;
|
|
27
|
-
/** Current mission status */
|
|
28
|
-
status: MissionStatus;
|
|
29
|
-
/** Total number of sorties in this mission */
|
|
30
|
-
total_sorties: number;
|
|
31
|
-
/** Estimated effort in hours */
|
|
32
|
-
estimated_effort_hours: number;
|
|
33
|
-
/** When mission was created (ISO 8601) */
|
|
34
|
-
created_at: string;
|
|
35
|
-
/** Optional metadata */
|
|
36
|
-
metadata?: Record<string, unknown>;
|
|
37
|
-
}
|
|
38
|
-
export type MissionStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
39
|
-
export type DecompositionStrategy = 'file-based' | 'feature-based' | 'risk-based' | 'research-based';
|
|
40
|
-
/**
|
|
41
|
-
* Sortie - Atomic work unit
|
|
42
|
-
*
|
|
43
|
-
* Represents a single, parallelizable task that a specialist can execute.
|
|
44
|
-
* Sorties can have dependencies on other sorties.
|
|
45
|
-
*/
|
|
46
|
-
export interface Sortie {
|
|
47
|
-
/** Unique identifier (format: srt-<uuid8>) */
|
|
48
|
-
id: string;
|
|
49
|
-
/** Parent mission ID */
|
|
50
|
-
mission_id: string;
|
|
51
|
-
/** Sortie title */
|
|
52
|
-
title: string;
|
|
53
|
-
/** Detailed description of work to be done */
|
|
54
|
-
description: string;
|
|
55
|
-
/** Scope of work */
|
|
56
|
-
scope: SortieScope;
|
|
57
|
-
/** Complexity level */
|
|
58
|
-
complexity: ComplexityLevel;
|
|
59
|
-
/** Estimated effort in hours */
|
|
60
|
-
estimated_effort_hours: number;
|
|
61
|
-
/** IDs of sorties this depends on */
|
|
62
|
-
dependencies: string[];
|
|
63
|
-
/** Current status */
|
|
64
|
-
status: SortieStatus;
|
|
65
|
-
/** Optional specialist ID assigned to this sortie */
|
|
66
|
-
assigned_to?: string;
|
|
67
|
-
/** Optional metadata */
|
|
68
|
-
metadata?: Record<string, unknown>;
|
|
69
|
-
}
|
|
70
|
-
export type SortieStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
71
|
-
export type ComplexityLevel = 'low' | 'medium' | 'high';
|
|
72
|
-
/**
|
|
73
|
-
* SortieScope - Defines what a sortie will touch
|
|
74
|
-
*/
|
|
75
|
-
export interface SortieScope {
|
|
76
|
-
/** File paths to be modified */
|
|
77
|
-
files: string[];
|
|
78
|
-
/** Component names to be modified */
|
|
79
|
-
components: string[];
|
|
80
|
-
/** Function names to be modified */
|
|
81
|
-
functions: string[];
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* SortieDependency - Explicit dependency relationship
|
|
85
|
-
*/
|
|
86
|
-
export interface SortieDependency {
|
|
87
|
-
/** ID of the sortie that must complete first */
|
|
88
|
-
from_sortie: string;
|
|
89
|
-
/** ID of the sortie that depends on from_sortie */
|
|
90
|
-
to_sortie: string;
|
|
91
|
-
/** Reason for the dependency */
|
|
92
|
-
reason: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* ParallelizationInfo - Analysis of parallelization opportunities
|
|
96
|
-
*/
|
|
97
|
-
export interface ParallelizationInfo {
|
|
98
|
-
/** Groups of sorties that can run in parallel */
|
|
99
|
-
parallel_groups: Sortie[][];
|
|
100
|
-
/** Critical path (longest dependency chain) */
|
|
101
|
-
critical_path: Sortie[];
|
|
102
|
-
/** Estimated total duration in milliseconds */
|
|
103
|
-
estimated_duration_ms: number;
|
|
104
|
-
/** Parallelization potential (0-1) */
|
|
105
|
-
parallelization_potential: number;
|
|
106
|
-
/** Estimated speedup from parallelization */
|
|
107
|
-
estimated_speedup: number;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* SortieTree - Complete decomposition result
|
|
111
|
-
*
|
|
112
|
-
* Contains the mission, all sorties, dependencies, and parallelization analysis.
|
|
113
|
-
* This is the output of the LLM planner and input to the spawning system.
|
|
114
|
-
*/
|
|
115
|
-
export interface SortieTree {
|
|
116
|
-
/** The mission being decomposed */
|
|
117
|
-
mission: Mission;
|
|
118
|
-
/** All sorties in the mission */
|
|
119
|
-
sorties: Sortie[];
|
|
120
|
-
/** Explicit dependencies between sorties */
|
|
121
|
-
dependencies: SortieDependency[];
|
|
122
|
-
/** Parallelization analysis */
|
|
123
|
-
parallelization: ParallelizationInfo;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Zod schemas for runtime validation of decomposition types
|
|
127
|
-
*/
|
|
128
|
-
export declare const MissionSchema: z.ZodObject<{
|
|
129
|
-
id: z.ZodString;
|
|
130
|
-
title: z.ZodString;
|
|
131
|
-
description: z.ZodString;
|
|
132
|
-
strategy: z.ZodEnum<["file-based", "feature-based", "risk-based", "research-based"]>;
|
|
133
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
134
|
-
total_sorties: z.ZodNumber;
|
|
135
|
-
estimated_effort_hours: z.ZodNumber;
|
|
136
|
-
created_at: z.ZodString;
|
|
137
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
total_sorties?: number;
|
|
140
|
-
id?: string;
|
|
141
|
-
created_at?: string;
|
|
142
|
-
metadata?: Record<string, unknown>;
|
|
143
|
-
title?: string;
|
|
144
|
-
description?: string;
|
|
145
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
146
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
147
|
-
estimated_effort_hours?: number;
|
|
148
|
-
}, {
|
|
149
|
-
total_sorties?: number;
|
|
150
|
-
id?: string;
|
|
151
|
-
created_at?: string;
|
|
152
|
-
metadata?: Record<string, unknown>;
|
|
153
|
-
title?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
156
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
157
|
-
estimated_effort_hours?: number;
|
|
158
|
-
}>;
|
|
159
|
-
export declare const SortieScopeSchema: z.ZodObject<{
|
|
160
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
161
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
162
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
files?: string[];
|
|
165
|
-
components?: string[];
|
|
166
|
-
functions?: string[];
|
|
167
|
-
}, {
|
|
168
|
-
files?: string[];
|
|
169
|
-
components?: string[];
|
|
170
|
-
functions?: string[];
|
|
171
|
-
}>;
|
|
172
|
-
export declare const SortieSchema: z.ZodObject<{
|
|
173
|
-
id: z.ZodString;
|
|
174
|
-
mission_id: z.ZodString;
|
|
175
|
-
title: z.ZodString;
|
|
176
|
-
description: z.ZodString;
|
|
177
|
-
scope: z.ZodObject<{
|
|
178
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
179
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
180
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
181
|
-
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
files?: string[];
|
|
183
|
-
components?: string[];
|
|
184
|
-
functions?: string[];
|
|
185
|
-
}, {
|
|
186
|
-
files?: string[];
|
|
187
|
-
components?: string[];
|
|
188
|
-
functions?: string[];
|
|
189
|
-
}>;
|
|
190
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
191
|
-
estimated_effort_hours: z.ZodNumber;
|
|
192
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
193
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
194
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
195
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
id?: string;
|
|
198
|
-
metadata?: Record<string, unknown>;
|
|
199
|
-
title?: string;
|
|
200
|
-
description?: string;
|
|
201
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
202
|
-
estimated_effort_hours?: number;
|
|
203
|
-
mission_id?: string;
|
|
204
|
-
scope?: {
|
|
205
|
-
files?: string[];
|
|
206
|
-
components?: string[];
|
|
207
|
-
functions?: string[];
|
|
208
|
-
};
|
|
209
|
-
complexity?: "low" | "medium" | "high";
|
|
210
|
-
dependencies?: string[];
|
|
211
|
-
assigned_to?: string;
|
|
212
|
-
}, {
|
|
213
|
-
id?: string;
|
|
214
|
-
metadata?: Record<string, unknown>;
|
|
215
|
-
title?: string;
|
|
216
|
-
description?: string;
|
|
217
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
218
|
-
estimated_effort_hours?: number;
|
|
219
|
-
mission_id?: string;
|
|
220
|
-
scope?: {
|
|
221
|
-
files?: string[];
|
|
222
|
-
components?: string[];
|
|
223
|
-
functions?: string[];
|
|
224
|
-
};
|
|
225
|
-
complexity?: "low" | "medium" | "high";
|
|
226
|
-
dependencies?: string[];
|
|
227
|
-
assigned_to?: string;
|
|
228
|
-
}>;
|
|
229
|
-
export declare const SortieDependencySchema: z.ZodObject<{
|
|
230
|
-
from_sortie: z.ZodString;
|
|
231
|
-
to_sortie: z.ZodString;
|
|
232
|
-
reason: z.ZodString;
|
|
233
|
-
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
from_sortie?: string;
|
|
235
|
-
to_sortie?: string;
|
|
236
|
-
reason?: string;
|
|
237
|
-
}, {
|
|
238
|
-
from_sortie?: string;
|
|
239
|
-
to_sortie?: string;
|
|
240
|
-
reason?: string;
|
|
241
|
-
}>;
|
|
242
|
-
export declare const ParallelizationInfoSchema: z.ZodObject<{
|
|
243
|
-
parallel_groups: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
244
|
-
id: z.ZodString;
|
|
245
|
-
mission_id: z.ZodString;
|
|
246
|
-
title: z.ZodString;
|
|
247
|
-
description: z.ZodString;
|
|
248
|
-
scope: z.ZodObject<{
|
|
249
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
250
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
251
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
252
|
-
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
files?: string[];
|
|
254
|
-
components?: string[];
|
|
255
|
-
functions?: string[];
|
|
256
|
-
}, {
|
|
257
|
-
files?: string[];
|
|
258
|
-
components?: string[];
|
|
259
|
-
functions?: string[];
|
|
260
|
-
}>;
|
|
261
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
262
|
-
estimated_effort_hours: z.ZodNumber;
|
|
263
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
264
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
265
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
266
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
id?: string;
|
|
269
|
-
metadata?: Record<string, unknown>;
|
|
270
|
-
title?: string;
|
|
271
|
-
description?: string;
|
|
272
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
273
|
-
estimated_effort_hours?: number;
|
|
274
|
-
mission_id?: string;
|
|
275
|
-
scope?: {
|
|
276
|
-
files?: string[];
|
|
277
|
-
components?: string[];
|
|
278
|
-
functions?: string[];
|
|
279
|
-
};
|
|
280
|
-
complexity?: "low" | "medium" | "high";
|
|
281
|
-
dependencies?: string[];
|
|
282
|
-
assigned_to?: string;
|
|
283
|
-
}, {
|
|
284
|
-
id?: string;
|
|
285
|
-
metadata?: Record<string, unknown>;
|
|
286
|
-
title?: string;
|
|
287
|
-
description?: string;
|
|
288
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
289
|
-
estimated_effort_hours?: number;
|
|
290
|
-
mission_id?: string;
|
|
291
|
-
scope?: {
|
|
292
|
-
files?: string[];
|
|
293
|
-
components?: string[];
|
|
294
|
-
functions?: string[];
|
|
295
|
-
};
|
|
296
|
-
complexity?: "low" | "medium" | "high";
|
|
297
|
-
dependencies?: string[];
|
|
298
|
-
assigned_to?: string;
|
|
299
|
-
}>, "many">, "many">;
|
|
300
|
-
critical_path: z.ZodArray<z.ZodObject<{
|
|
301
|
-
id: z.ZodString;
|
|
302
|
-
mission_id: z.ZodString;
|
|
303
|
-
title: z.ZodString;
|
|
304
|
-
description: z.ZodString;
|
|
305
|
-
scope: z.ZodObject<{
|
|
306
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
307
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
308
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
309
|
-
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
files?: string[];
|
|
311
|
-
components?: string[];
|
|
312
|
-
functions?: string[];
|
|
313
|
-
}, {
|
|
314
|
-
files?: string[];
|
|
315
|
-
components?: string[];
|
|
316
|
-
functions?: string[];
|
|
317
|
-
}>;
|
|
318
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
319
|
-
estimated_effort_hours: z.ZodNumber;
|
|
320
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
321
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
322
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
323
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
324
|
-
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
id?: string;
|
|
326
|
-
metadata?: Record<string, unknown>;
|
|
327
|
-
title?: string;
|
|
328
|
-
description?: string;
|
|
329
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
330
|
-
estimated_effort_hours?: number;
|
|
331
|
-
mission_id?: string;
|
|
332
|
-
scope?: {
|
|
333
|
-
files?: string[];
|
|
334
|
-
components?: string[];
|
|
335
|
-
functions?: string[];
|
|
336
|
-
};
|
|
337
|
-
complexity?: "low" | "medium" | "high";
|
|
338
|
-
dependencies?: string[];
|
|
339
|
-
assigned_to?: string;
|
|
340
|
-
}, {
|
|
341
|
-
id?: string;
|
|
342
|
-
metadata?: Record<string, unknown>;
|
|
343
|
-
title?: string;
|
|
344
|
-
description?: string;
|
|
345
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
346
|
-
estimated_effort_hours?: number;
|
|
347
|
-
mission_id?: string;
|
|
348
|
-
scope?: {
|
|
349
|
-
files?: string[];
|
|
350
|
-
components?: string[];
|
|
351
|
-
functions?: string[];
|
|
352
|
-
};
|
|
353
|
-
complexity?: "low" | "medium" | "high";
|
|
354
|
-
dependencies?: string[];
|
|
355
|
-
assigned_to?: string;
|
|
356
|
-
}>, "many">;
|
|
357
|
-
estimated_duration_ms: z.ZodNumber;
|
|
358
|
-
parallelization_potential: z.ZodNumber;
|
|
359
|
-
estimated_speedup: z.ZodNumber;
|
|
360
|
-
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
parallel_groups?: {
|
|
362
|
-
id?: string;
|
|
363
|
-
metadata?: Record<string, unknown>;
|
|
364
|
-
title?: string;
|
|
365
|
-
description?: string;
|
|
366
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
367
|
-
estimated_effort_hours?: number;
|
|
368
|
-
mission_id?: string;
|
|
369
|
-
scope?: {
|
|
370
|
-
files?: string[];
|
|
371
|
-
components?: string[];
|
|
372
|
-
functions?: string[];
|
|
373
|
-
};
|
|
374
|
-
complexity?: "low" | "medium" | "high";
|
|
375
|
-
dependencies?: string[];
|
|
376
|
-
assigned_to?: string;
|
|
377
|
-
}[][];
|
|
378
|
-
critical_path?: {
|
|
379
|
-
id?: string;
|
|
380
|
-
metadata?: Record<string, unknown>;
|
|
381
|
-
title?: string;
|
|
382
|
-
description?: string;
|
|
383
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
384
|
-
estimated_effort_hours?: number;
|
|
385
|
-
mission_id?: string;
|
|
386
|
-
scope?: {
|
|
387
|
-
files?: string[];
|
|
388
|
-
components?: string[];
|
|
389
|
-
functions?: string[];
|
|
390
|
-
};
|
|
391
|
-
complexity?: "low" | "medium" | "high";
|
|
392
|
-
dependencies?: string[];
|
|
393
|
-
assigned_to?: string;
|
|
394
|
-
}[];
|
|
395
|
-
estimated_duration_ms?: number;
|
|
396
|
-
parallelization_potential?: number;
|
|
397
|
-
estimated_speedup?: number;
|
|
398
|
-
}, {
|
|
399
|
-
parallel_groups?: {
|
|
400
|
-
id?: string;
|
|
401
|
-
metadata?: Record<string, unknown>;
|
|
402
|
-
title?: string;
|
|
403
|
-
description?: string;
|
|
404
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
405
|
-
estimated_effort_hours?: number;
|
|
406
|
-
mission_id?: string;
|
|
407
|
-
scope?: {
|
|
408
|
-
files?: string[];
|
|
409
|
-
components?: string[];
|
|
410
|
-
functions?: string[];
|
|
411
|
-
};
|
|
412
|
-
complexity?: "low" | "medium" | "high";
|
|
413
|
-
dependencies?: string[];
|
|
414
|
-
assigned_to?: string;
|
|
415
|
-
}[][];
|
|
416
|
-
critical_path?: {
|
|
417
|
-
id?: string;
|
|
418
|
-
metadata?: Record<string, unknown>;
|
|
419
|
-
title?: string;
|
|
420
|
-
description?: string;
|
|
421
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
422
|
-
estimated_effort_hours?: number;
|
|
423
|
-
mission_id?: string;
|
|
424
|
-
scope?: {
|
|
425
|
-
files?: string[];
|
|
426
|
-
components?: string[];
|
|
427
|
-
functions?: string[];
|
|
428
|
-
};
|
|
429
|
-
complexity?: "low" | "medium" | "high";
|
|
430
|
-
dependencies?: string[];
|
|
431
|
-
assigned_to?: string;
|
|
432
|
-
}[];
|
|
433
|
-
estimated_duration_ms?: number;
|
|
434
|
-
parallelization_potential?: number;
|
|
435
|
-
estimated_speedup?: number;
|
|
436
|
-
}>;
|
|
437
|
-
export declare const SortieTreeSchema: z.ZodObject<{
|
|
438
|
-
mission: z.ZodObject<{
|
|
439
|
-
id: z.ZodString;
|
|
440
|
-
title: z.ZodString;
|
|
441
|
-
description: z.ZodString;
|
|
442
|
-
strategy: z.ZodEnum<["file-based", "feature-based", "risk-based", "research-based"]>;
|
|
443
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
444
|
-
total_sorties: z.ZodNumber;
|
|
445
|
-
estimated_effort_hours: z.ZodNumber;
|
|
446
|
-
created_at: z.ZodString;
|
|
447
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
448
|
-
}, "strip", z.ZodTypeAny, {
|
|
449
|
-
total_sorties?: number;
|
|
450
|
-
id?: string;
|
|
451
|
-
created_at?: string;
|
|
452
|
-
metadata?: Record<string, unknown>;
|
|
453
|
-
title?: string;
|
|
454
|
-
description?: string;
|
|
455
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
456
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
457
|
-
estimated_effort_hours?: number;
|
|
458
|
-
}, {
|
|
459
|
-
total_sorties?: number;
|
|
460
|
-
id?: string;
|
|
461
|
-
created_at?: string;
|
|
462
|
-
metadata?: Record<string, unknown>;
|
|
463
|
-
title?: string;
|
|
464
|
-
description?: string;
|
|
465
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
466
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
467
|
-
estimated_effort_hours?: number;
|
|
468
|
-
}>;
|
|
469
|
-
sorties: z.ZodArray<z.ZodObject<{
|
|
470
|
-
id: z.ZodString;
|
|
471
|
-
mission_id: z.ZodString;
|
|
472
|
-
title: z.ZodString;
|
|
473
|
-
description: z.ZodString;
|
|
474
|
-
scope: z.ZodObject<{
|
|
475
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
476
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
477
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
478
|
-
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
files?: string[];
|
|
480
|
-
components?: string[];
|
|
481
|
-
functions?: string[];
|
|
482
|
-
}, {
|
|
483
|
-
files?: string[];
|
|
484
|
-
components?: string[];
|
|
485
|
-
functions?: string[];
|
|
486
|
-
}>;
|
|
487
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
488
|
-
estimated_effort_hours: z.ZodNumber;
|
|
489
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
490
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
491
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
492
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
493
|
-
}, "strip", z.ZodTypeAny, {
|
|
494
|
-
id?: string;
|
|
495
|
-
metadata?: Record<string, unknown>;
|
|
496
|
-
title?: string;
|
|
497
|
-
description?: string;
|
|
498
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
499
|
-
estimated_effort_hours?: number;
|
|
500
|
-
mission_id?: string;
|
|
501
|
-
scope?: {
|
|
502
|
-
files?: string[];
|
|
503
|
-
components?: string[];
|
|
504
|
-
functions?: string[];
|
|
505
|
-
};
|
|
506
|
-
complexity?: "low" | "medium" | "high";
|
|
507
|
-
dependencies?: string[];
|
|
508
|
-
assigned_to?: string;
|
|
509
|
-
}, {
|
|
510
|
-
id?: string;
|
|
511
|
-
metadata?: Record<string, unknown>;
|
|
512
|
-
title?: string;
|
|
513
|
-
description?: string;
|
|
514
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
515
|
-
estimated_effort_hours?: number;
|
|
516
|
-
mission_id?: string;
|
|
517
|
-
scope?: {
|
|
518
|
-
files?: string[];
|
|
519
|
-
components?: string[];
|
|
520
|
-
functions?: string[];
|
|
521
|
-
};
|
|
522
|
-
complexity?: "low" | "medium" | "high";
|
|
523
|
-
dependencies?: string[];
|
|
524
|
-
assigned_to?: string;
|
|
525
|
-
}>, "many">;
|
|
526
|
-
dependencies: z.ZodArray<z.ZodObject<{
|
|
527
|
-
from_sortie: z.ZodString;
|
|
528
|
-
to_sortie: z.ZodString;
|
|
529
|
-
reason: z.ZodString;
|
|
530
|
-
}, "strip", z.ZodTypeAny, {
|
|
531
|
-
from_sortie?: string;
|
|
532
|
-
to_sortie?: string;
|
|
533
|
-
reason?: string;
|
|
534
|
-
}, {
|
|
535
|
-
from_sortie?: string;
|
|
536
|
-
to_sortie?: string;
|
|
537
|
-
reason?: string;
|
|
538
|
-
}>, "many">;
|
|
539
|
-
parallelization: z.ZodObject<{
|
|
540
|
-
parallel_groups: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
541
|
-
id: z.ZodString;
|
|
542
|
-
mission_id: z.ZodString;
|
|
543
|
-
title: z.ZodString;
|
|
544
|
-
description: z.ZodString;
|
|
545
|
-
scope: z.ZodObject<{
|
|
546
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
547
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
548
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
549
|
-
}, "strip", z.ZodTypeAny, {
|
|
550
|
-
files?: string[];
|
|
551
|
-
components?: string[];
|
|
552
|
-
functions?: string[];
|
|
553
|
-
}, {
|
|
554
|
-
files?: string[];
|
|
555
|
-
components?: string[];
|
|
556
|
-
functions?: string[];
|
|
557
|
-
}>;
|
|
558
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
559
|
-
estimated_effort_hours: z.ZodNumber;
|
|
560
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
561
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
562
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
563
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
564
|
-
}, "strip", z.ZodTypeAny, {
|
|
565
|
-
id?: string;
|
|
566
|
-
metadata?: Record<string, unknown>;
|
|
567
|
-
title?: string;
|
|
568
|
-
description?: string;
|
|
569
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
570
|
-
estimated_effort_hours?: number;
|
|
571
|
-
mission_id?: string;
|
|
572
|
-
scope?: {
|
|
573
|
-
files?: string[];
|
|
574
|
-
components?: string[];
|
|
575
|
-
functions?: string[];
|
|
576
|
-
};
|
|
577
|
-
complexity?: "low" | "medium" | "high";
|
|
578
|
-
dependencies?: string[];
|
|
579
|
-
assigned_to?: string;
|
|
580
|
-
}, {
|
|
581
|
-
id?: string;
|
|
582
|
-
metadata?: Record<string, unknown>;
|
|
583
|
-
title?: string;
|
|
584
|
-
description?: string;
|
|
585
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
586
|
-
estimated_effort_hours?: number;
|
|
587
|
-
mission_id?: string;
|
|
588
|
-
scope?: {
|
|
589
|
-
files?: string[];
|
|
590
|
-
components?: string[];
|
|
591
|
-
functions?: string[];
|
|
592
|
-
};
|
|
593
|
-
complexity?: "low" | "medium" | "high";
|
|
594
|
-
dependencies?: string[];
|
|
595
|
-
assigned_to?: string;
|
|
596
|
-
}>, "many">, "many">;
|
|
597
|
-
critical_path: z.ZodArray<z.ZodObject<{
|
|
598
|
-
id: z.ZodString;
|
|
599
|
-
mission_id: z.ZodString;
|
|
600
|
-
title: z.ZodString;
|
|
601
|
-
description: z.ZodString;
|
|
602
|
-
scope: z.ZodObject<{
|
|
603
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
604
|
-
components: z.ZodArray<z.ZodString, "many">;
|
|
605
|
-
functions: z.ZodArray<z.ZodString, "many">;
|
|
606
|
-
}, "strip", z.ZodTypeAny, {
|
|
607
|
-
files?: string[];
|
|
608
|
-
components?: string[];
|
|
609
|
-
functions?: string[];
|
|
610
|
-
}, {
|
|
611
|
-
files?: string[];
|
|
612
|
-
components?: string[];
|
|
613
|
-
functions?: string[];
|
|
614
|
-
}>;
|
|
615
|
-
complexity: z.ZodEnum<["low", "medium", "high"]>;
|
|
616
|
-
estimated_effort_hours: z.ZodNumber;
|
|
617
|
-
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
618
|
-
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
619
|
-
assigned_to: z.ZodOptional<z.ZodString>;
|
|
620
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
621
|
-
}, "strip", z.ZodTypeAny, {
|
|
622
|
-
id?: string;
|
|
623
|
-
metadata?: Record<string, unknown>;
|
|
624
|
-
title?: string;
|
|
625
|
-
description?: string;
|
|
626
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
627
|
-
estimated_effort_hours?: number;
|
|
628
|
-
mission_id?: string;
|
|
629
|
-
scope?: {
|
|
630
|
-
files?: string[];
|
|
631
|
-
components?: string[];
|
|
632
|
-
functions?: string[];
|
|
633
|
-
};
|
|
634
|
-
complexity?: "low" | "medium" | "high";
|
|
635
|
-
dependencies?: string[];
|
|
636
|
-
assigned_to?: string;
|
|
637
|
-
}, {
|
|
638
|
-
id?: string;
|
|
639
|
-
metadata?: Record<string, unknown>;
|
|
640
|
-
title?: string;
|
|
641
|
-
description?: string;
|
|
642
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
643
|
-
estimated_effort_hours?: number;
|
|
644
|
-
mission_id?: string;
|
|
645
|
-
scope?: {
|
|
646
|
-
files?: string[];
|
|
647
|
-
components?: string[];
|
|
648
|
-
functions?: string[];
|
|
649
|
-
};
|
|
650
|
-
complexity?: "low" | "medium" | "high";
|
|
651
|
-
dependencies?: string[];
|
|
652
|
-
assigned_to?: string;
|
|
653
|
-
}>, "many">;
|
|
654
|
-
estimated_duration_ms: z.ZodNumber;
|
|
655
|
-
parallelization_potential: z.ZodNumber;
|
|
656
|
-
estimated_speedup: z.ZodNumber;
|
|
657
|
-
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
parallel_groups?: {
|
|
659
|
-
id?: string;
|
|
660
|
-
metadata?: Record<string, unknown>;
|
|
661
|
-
title?: string;
|
|
662
|
-
description?: string;
|
|
663
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
664
|
-
estimated_effort_hours?: number;
|
|
665
|
-
mission_id?: string;
|
|
666
|
-
scope?: {
|
|
667
|
-
files?: string[];
|
|
668
|
-
components?: string[];
|
|
669
|
-
functions?: string[];
|
|
670
|
-
};
|
|
671
|
-
complexity?: "low" | "medium" | "high";
|
|
672
|
-
dependencies?: string[];
|
|
673
|
-
assigned_to?: string;
|
|
674
|
-
}[][];
|
|
675
|
-
critical_path?: {
|
|
676
|
-
id?: string;
|
|
677
|
-
metadata?: Record<string, unknown>;
|
|
678
|
-
title?: string;
|
|
679
|
-
description?: string;
|
|
680
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
681
|
-
estimated_effort_hours?: number;
|
|
682
|
-
mission_id?: string;
|
|
683
|
-
scope?: {
|
|
684
|
-
files?: string[];
|
|
685
|
-
components?: string[];
|
|
686
|
-
functions?: string[];
|
|
687
|
-
};
|
|
688
|
-
complexity?: "low" | "medium" | "high";
|
|
689
|
-
dependencies?: string[];
|
|
690
|
-
assigned_to?: string;
|
|
691
|
-
}[];
|
|
692
|
-
estimated_duration_ms?: number;
|
|
693
|
-
parallelization_potential?: number;
|
|
694
|
-
estimated_speedup?: number;
|
|
695
|
-
}, {
|
|
696
|
-
parallel_groups?: {
|
|
697
|
-
id?: string;
|
|
698
|
-
metadata?: Record<string, unknown>;
|
|
699
|
-
title?: string;
|
|
700
|
-
description?: string;
|
|
701
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
702
|
-
estimated_effort_hours?: number;
|
|
703
|
-
mission_id?: string;
|
|
704
|
-
scope?: {
|
|
705
|
-
files?: string[];
|
|
706
|
-
components?: string[];
|
|
707
|
-
functions?: string[];
|
|
708
|
-
};
|
|
709
|
-
complexity?: "low" | "medium" | "high";
|
|
710
|
-
dependencies?: string[];
|
|
711
|
-
assigned_to?: string;
|
|
712
|
-
}[][];
|
|
713
|
-
critical_path?: {
|
|
714
|
-
id?: string;
|
|
715
|
-
metadata?: Record<string, unknown>;
|
|
716
|
-
title?: string;
|
|
717
|
-
description?: string;
|
|
718
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
719
|
-
estimated_effort_hours?: number;
|
|
720
|
-
mission_id?: string;
|
|
721
|
-
scope?: {
|
|
722
|
-
files?: string[];
|
|
723
|
-
components?: string[];
|
|
724
|
-
functions?: string[];
|
|
725
|
-
};
|
|
726
|
-
complexity?: "low" | "medium" | "high";
|
|
727
|
-
dependencies?: string[];
|
|
728
|
-
assigned_to?: string;
|
|
729
|
-
}[];
|
|
730
|
-
estimated_duration_ms?: number;
|
|
731
|
-
parallelization_potential?: number;
|
|
732
|
-
estimated_speedup?: number;
|
|
733
|
-
}>;
|
|
734
|
-
}, "strip", z.ZodTypeAny, {
|
|
735
|
-
mission?: {
|
|
736
|
-
total_sorties?: number;
|
|
737
|
-
id?: string;
|
|
738
|
-
created_at?: string;
|
|
739
|
-
metadata?: Record<string, unknown>;
|
|
740
|
-
title?: string;
|
|
741
|
-
description?: string;
|
|
742
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
743
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
744
|
-
estimated_effort_hours?: number;
|
|
745
|
-
};
|
|
746
|
-
dependencies?: {
|
|
747
|
-
from_sortie?: string;
|
|
748
|
-
to_sortie?: string;
|
|
749
|
-
reason?: string;
|
|
750
|
-
}[];
|
|
751
|
-
sorties?: {
|
|
752
|
-
id?: string;
|
|
753
|
-
metadata?: Record<string, unknown>;
|
|
754
|
-
title?: string;
|
|
755
|
-
description?: string;
|
|
756
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
757
|
-
estimated_effort_hours?: number;
|
|
758
|
-
mission_id?: string;
|
|
759
|
-
scope?: {
|
|
760
|
-
files?: string[];
|
|
761
|
-
components?: string[];
|
|
762
|
-
functions?: string[];
|
|
763
|
-
};
|
|
764
|
-
complexity?: "low" | "medium" | "high";
|
|
765
|
-
dependencies?: string[];
|
|
766
|
-
assigned_to?: string;
|
|
767
|
-
}[];
|
|
768
|
-
parallelization?: {
|
|
769
|
-
parallel_groups?: {
|
|
770
|
-
id?: string;
|
|
771
|
-
metadata?: Record<string, unknown>;
|
|
772
|
-
title?: string;
|
|
773
|
-
description?: string;
|
|
774
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
775
|
-
estimated_effort_hours?: number;
|
|
776
|
-
mission_id?: string;
|
|
777
|
-
scope?: {
|
|
778
|
-
files?: string[];
|
|
779
|
-
components?: string[];
|
|
780
|
-
functions?: string[];
|
|
781
|
-
};
|
|
782
|
-
complexity?: "low" | "medium" | "high";
|
|
783
|
-
dependencies?: string[];
|
|
784
|
-
assigned_to?: string;
|
|
785
|
-
}[][];
|
|
786
|
-
critical_path?: {
|
|
787
|
-
id?: string;
|
|
788
|
-
metadata?: Record<string, unknown>;
|
|
789
|
-
title?: string;
|
|
790
|
-
description?: string;
|
|
791
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
792
|
-
estimated_effort_hours?: number;
|
|
793
|
-
mission_id?: string;
|
|
794
|
-
scope?: {
|
|
795
|
-
files?: string[];
|
|
796
|
-
components?: string[];
|
|
797
|
-
functions?: string[];
|
|
798
|
-
};
|
|
799
|
-
complexity?: "low" | "medium" | "high";
|
|
800
|
-
dependencies?: string[];
|
|
801
|
-
assigned_to?: string;
|
|
802
|
-
}[];
|
|
803
|
-
estimated_duration_ms?: number;
|
|
804
|
-
parallelization_potential?: number;
|
|
805
|
-
estimated_speedup?: number;
|
|
806
|
-
};
|
|
807
|
-
}, {
|
|
808
|
-
mission?: {
|
|
809
|
-
total_sorties?: number;
|
|
810
|
-
id?: string;
|
|
811
|
-
created_at?: string;
|
|
812
|
-
metadata?: Record<string, unknown>;
|
|
813
|
-
title?: string;
|
|
814
|
-
description?: string;
|
|
815
|
-
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based";
|
|
816
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
817
|
-
estimated_effort_hours?: number;
|
|
818
|
-
};
|
|
819
|
-
dependencies?: {
|
|
820
|
-
from_sortie?: string;
|
|
821
|
-
to_sortie?: string;
|
|
822
|
-
reason?: string;
|
|
823
|
-
}[];
|
|
824
|
-
sorties?: {
|
|
825
|
-
id?: string;
|
|
826
|
-
metadata?: Record<string, unknown>;
|
|
827
|
-
title?: string;
|
|
828
|
-
description?: string;
|
|
829
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
830
|
-
estimated_effort_hours?: number;
|
|
831
|
-
mission_id?: string;
|
|
832
|
-
scope?: {
|
|
833
|
-
files?: string[];
|
|
834
|
-
components?: string[];
|
|
835
|
-
functions?: string[];
|
|
836
|
-
};
|
|
837
|
-
complexity?: "low" | "medium" | "high";
|
|
838
|
-
dependencies?: string[];
|
|
839
|
-
assigned_to?: string;
|
|
840
|
-
}[];
|
|
841
|
-
parallelization?: {
|
|
842
|
-
parallel_groups?: {
|
|
843
|
-
id?: string;
|
|
844
|
-
metadata?: Record<string, unknown>;
|
|
845
|
-
title?: string;
|
|
846
|
-
description?: string;
|
|
847
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
848
|
-
estimated_effort_hours?: number;
|
|
849
|
-
mission_id?: string;
|
|
850
|
-
scope?: {
|
|
851
|
-
files?: string[];
|
|
852
|
-
components?: string[];
|
|
853
|
-
functions?: string[];
|
|
854
|
-
};
|
|
855
|
-
complexity?: "low" | "medium" | "high";
|
|
856
|
-
dependencies?: string[];
|
|
857
|
-
assigned_to?: string;
|
|
858
|
-
}[][];
|
|
859
|
-
critical_path?: {
|
|
860
|
-
id?: string;
|
|
861
|
-
metadata?: Record<string, unknown>;
|
|
862
|
-
title?: string;
|
|
863
|
-
description?: string;
|
|
864
|
-
status?: "pending" | "in_progress" | "completed" | "failed";
|
|
865
|
-
estimated_effort_hours?: number;
|
|
866
|
-
mission_id?: string;
|
|
867
|
-
scope?: {
|
|
868
|
-
files?: string[];
|
|
869
|
-
components?: string[];
|
|
870
|
-
functions?: string[];
|
|
871
|
-
};
|
|
872
|
-
complexity?: "low" | "medium" | "high";
|
|
873
|
-
dependencies?: string[];
|
|
874
|
-
assigned_to?: string;
|
|
875
|
-
}[];
|
|
876
|
-
estimated_duration_ms?: number;
|
|
877
|
-
parallelization_potential?: number;
|
|
878
|
-
estimated_speedup?: number;
|
|
879
|
-
};
|
|
880
|
-
}>;
|
|
881
|
-
/**
|
|
882
|
-
* DecompositionRequest - Input to the decomposition system
|
|
883
|
-
*/
|
|
884
|
-
export interface DecompositionRequest {
|
|
885
|
-
/** User's high-level task description */
|
|
886
|
-
task_description: string;
|
|
887
|
-
/** Optional strategy hint (auto-selected if not provided) */
|
|
888
|
-
strategy?: DecompositionStrategy;
|
|
889
|
-
/** Optional context about the codebase */
|
|
890
|
-
context?: string;
|
|
891
|
-
/** Optional metadata */
|
|
892
|
-
metadata?: Record<string, unknown>;
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* DecompositionResponse - Output from the decomposition system
|
|
896
|
-
*/
|
|
897
|
-
export interface DecompositionResponse {
|
|
898
|
-
/** The generated SortieTree */
|
|
899
|
-
sortie_tree: SortieTree;
|
|
900
|
-
/** Validation errors (if any) */
|
|
901
|
-
validation_errors?: string[];
|
|
902
|
-
/** Warnings (if any) */
|
|
903
|
-
warnings?: string[];
|
|
904
|
-
/** Metadata about the decomposition process */
|
|
905
|
-
metadata?: {
|
|
906
|
-
strategy_selected: DecompositionStrategy;
|
|
907
|
-
llm_model?: string;
|
|
908
|
-
processing_time_ms?: number;
|
|
909
|
-
codebase_files_analyzed?: number;
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* ValidationResult - Result of SortieTree validation
|
|
914
|
-
*/
|
|
915
|
-
export interface ValidationResult {
|
|
916
|
-
/** Whether validation passed */
|
|
917
|
-
valid: boolean;
|
|
918
|
-
/** List of errors found */
|
|
919
|
-
errors: ValidationError[];
|
|
920
|
-
/** List of warnings */
|
|
921
|
-
warnings: ValidationWarning[];
|
|
922
|
-
/** Metrics about the SortieTree */
|
|
923
|
-
metrics?: {
|
|
924
|
-
total_sorties: number;
|
|
925
|
-
total_dependencies: number;
|
|
926
|
-
max_dependency_depth: number;
|
|
927
|
-
parallel_groups_count: number;
|
|
928
|
-
file_overlap_count: number;
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
export interface ValidationError {
|
|
932
|
-
/** Error type */
|
|
933
|
-
type: 'file_overlap' | 'circular_dependency' | 'missing_dependency' | 'invalid_scope' | 'other';
|
|
934
|
-
/** Human-readable error message */
|
|
935
|
-
message: string;
|
|
936
|
-
/** Affected sortie IDs (if applicable) */
|
|
937
|
-
affected_sorties?: string[];
|
|
938
|
-
/** Suggested fix */
|
|
939
|
-
suggestion?: string;
|
|
940
|
-
}
|
|
941
|
-
export interface ValidationWarning {
|
|
942
|
-
/** Warning type */
|
|
943
|
-
type: 'high_complexity' | 'long_dependency_chain' | 'unbalanced_effort' | 'other';
|
|
944
|
-
/** Human-readable warning message */
|
|
945
|
-
message: string;
|
|
946
|
-
/** Affected sortie IDs (if applicable) */
|
|
947
|
-
affected_sorties?: string[];
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* StrategyAnalysis - Result of strategy selection analysis
|
|
951
|
-
*/
|
|
952
|
-
export interface StrategyAnalysis {
|
|
953
|
-
/** Selected strategy */
|
|
954
|
-
selected_strategy: DecompositionStrategy;
|
|
955
|
-
/** Confidence score (0-1) */
|
|
956
|
-
confidence: number;
|
|
957
|
-
/** Scores for each strategy */
|
|
958
|
-
strategy_scores: {
|
|
959
|
-
'file-based': number;
|
|
960
|
-
'feature-based': number;
|
|
961
|
-
'risk-based': number;
|
|
962
|
-
'research-based': number;
|
|
963
|
-
};
|
|
964
|
-
/** Keywords that influenced the selection */
|
|
965
|
-
matched_keywords: string[];
|
|
966
|
-
/** Patterns detected in codebase */
|
|
967
|
-
detected_patterns: string[];
|
|
968
|
-
}
|
|
969
|
-
/**
|
|
970
|
-
* CodebaseAnalysis - Result of codebase analysis
|
|
971
|
-
*/
|
|
972
|
-
export interface CodebaseAnalysis {
|
|
973
|
-
/** Total files analyzed */
|
|
974
|
-
total_files: number;
|
|
975
|
-
/** File groups by type */
|
|
976
|
-
file_groups: FileGroup[];
|
|
977
|
-
/** Detected patterns and conventions */
|
|
978
|
-
patterns: CodebasePattern[];
|
|
979
|
-
/** Relevant Tech Orders */
|
|
980
|
-
tech_orders: TechOrderReference[];
|
|
981
|
-
/** Generated context for LLM */
|
|
982
|
-
context_summary: string;
|
|
983
|
-
/** File structure overview */
|
|
984
|
-
structure_overview: string;
|
|
985
|
-
}
|
|
986
|
-
export interface FileGroup {
|
|
987
|
-
/** Group name (e.g., "components", "services") */
|
|
988
|
-
name: string;
|
|
989
|
-
/** Files in this group */
|
|
990
|
-
files: string[];
|
|
991
|
-
/** Group description */
|
|
992
|
-
description: string;
|
|
993
|
-
}
|
|
994
|
-
export interface CodebasePattern {
|
|
995
|
-
/** Pattern name */
|
|
996
|
-
name: string;
|
|
997
|
-
/** Pattern description */
|
|
998
|
-
description: string;
|
|
999
|
-
/** Examples of this pattern */
|
|
1000
|
-
examples: string[];
|
|
1001
|
-
/** Confidence (0-1) */
|
|
1002
|
-
confidence: number;
|
|
1003
|
-
}
|
|
1004
|
-
export interface TechOrderReference {
|
|
1005
|
-
/** Tech Order ID */
|
|
1006
|
-
id: string;
|
|
1007
|
-
/** Tech Order title */
|
|
1008
|
-
title: string;
|
|
1009
|
-
/** Relevance score (0-1) */
|
|
1010
|
-
relevance: number;
|
|
1011
|
-
/** Key points from the Tech Order */
|
|
1012
|
-
key_points: string[];
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* LLMPlannerInput - Input to the LLM planner
|
|
1016
|
-
*/
|
|
1017
|
-
export interface LLMPlannerInput {
|
|
1018
|
-
/** User's task description */
|
|
1019
|
-
task_description: string;
|
|
1020
|
-
/** Selected decomposition strategy */
|
|
1021
|
-
strategy: DecompositionStrategy;
|
|
1022
|
-
/** Codebase analysis results */
|
|
1023
|
-
codebase_analysis: CodebaseAnalysis;
|
|
1024
|
-
/** Tech Orders context */
|
|
1025
|
-
tech_orders_context: string;
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* LLMPlannerOutput - Raw output from LLM (before validation)
|
|
1029
|
-
*/
|
|
1030
|
-
export interface LLMPlannerOutput {
|
|
1031
|
-
/** Mission details */
|
|
1032
|
-
mission: {
|
|
1033
|
-
title: string;
|
|
1034
|
-
description: string;
|
|
1035
|
-
strategy: DecompositionStrategy;
|
|
1036
|
-
estimated_effort_hours: number;
|
|
1037
|
-
};
|
|
1038
|
-
/** Sorties */
|
|
1039
|
-
sorties: Array<{
|
|
1040
|
-
title: string;
|
|
1041
|
-
description: string;
|
|
1042
|
-
scope: {
|
|
1043
|
-
files: string[];
|
|
1044
|
-
components: string[];
|
|
1045
|
-
functions: string[];
|
|
1046
|
-
};
|
|
1047
|
-
complexity: ComplexityLevel;
|
|
1048
|
-
estimated_effort_hours: number;
|
|
1049
|
-
dependencies: number[];
|
|
1050
|
-
}>;
|
|
1051
|
-
/** Dependencies */
|
|
1052
|
-
parallelization?: {
|
|
1053
|
-
parallel_groups: number[][];
|
|
1054
|
-
critical_path: number[];
|
|
1055
|
-
estimated_duration_ms: number;
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
/**
|
|
1059
|
-
* DependencyResolutionResult - Result of dependency analysis
|
|
1060
|
-
*/
|
|
1061
|
-
export interface DependencyResolutionResult {
|
|
1062
|
-
/** Topologically sorted sorties */
|
|
1063
|
-
sorted_sorties: Sortie[];
|
|
1064
|
-
/** Groups of sorties that can run in parallel */
|
|
1065
|
-
parallel_groups: Sortie[][];
|
|
1066
|
-
/** Critical path (longest dependency chain) */
|
|
1067
|
-
critical_path: Sortie[];
|
|
1068
|
-
/** Estimated total duration */
|
|
1069
|
-
estimated_duration_ms: number;
|
|
1070
|
-
/** Maximum dependency depth */
|
|
1071
|
-
max_depth: number;
|
|
1072
|
-
/** Circular dependencies found (if any) */
|
|
1073
|
-
circular_dependencies?: Array<string[]>;
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* ParallelizationAnalysisResult - Result of parallelization analysis
|
|
1077
|
-
*/
|
|
1078
|
-
export interface ParallelizationAnalysisResult {
|
|
1079
|
-
/** Parallel groups */
|
|
1080
|
-
parallel_groups: Sortie[][];
|
|
1081
|
-
/** Parallelization potential (0-1) */
|
|
1082
|
-
parallelization_potential: number;
|
|
1083
|
-
/** Estimated speedup from parallelization */
|
|
1084
|
-
estimated_speedup: number;
|
|
1085
|
-
/** Recommendations for optimization */
|
|
1086
|
-
recommendations: string[];
|
|
1087
|
-
/** Bottlenecks identified */
|
|
1088
|
-
bottlenecks: string[];
|
|
1089
|
-
}
|
|
1090
|
-
//# sourceMappingURL=types.d.ts.map
|