@fleettools/server 0.1.0 โ 0.1.1
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 +1 -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/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/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,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Lifecycle Management Methods
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This file previously contained a partially-copied implementation with
|
|
5
|
-
* broken syntax that prevented `tsc` from building the monorepo.
|
|
6
|
-
*
|
|
7
|
-
* For now we keep only a minimal, compilable helper class. The real lifecycle
|
|
8
|
-
* behavior should live alongside AgentSpawner with proper unit/integration tests.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export class AgentLifecycleManager {
|
|
12
|
-
// Placeholder to preserve import surface, if any.
|
|
13
|
-
}
|
|
@@ -1,479 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
/**
|
|
3
|
-
* FleetTools Agent Runner
|
|
4
|
-
*
|
|
5
|
-
* Bootstrap script for spawning and managing individual agents
|
|
6
|
-
* Handles agent lifecycle, communication, and coordination
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { randomUUID } from 'node:crypto';
|
|
10
|
-
import path from 'node:path';
|
|
11
|
-
|
|
12
|
-
interface AgentConfig {
|
|
13
|
-
agentId: string;
|
|
14
|
-
agentType: string;
|
|
15
|
-
mailboxId: string;
|
|
16
|
-
task?: string;
|
|
17
|
-
timeout?: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
class AgentRunner {
|
|
21
|
-
private config: AgentConfig;
|
|
22
|
-
private isRunning = false;
|
|
23
|
-
private heartbeatInterval?: ReturnType<typeof setInterval>;
|
|
24
|
-
private taskProgress = 0;
|
|
25
|
-
private startTime = Date.now();
|
|
26
|
-
|
|
27
|
-
constructor(config: AgentConfig) {
|
|
28
|
-
this.config = config;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Start the agent runner
|
|
33
|
-
*/
|
|
34
|
-
async start(): Promise<void> {
|
|
35
|
-
console.log(`๐ Starting agent runner for ${this.config.agentId} (${this.config.agentType})`);
|
|
36
|
-
|
|
37
|
-
this.isRunning = true;
|
|
38
|
-
this.startTime = Date.now();
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
// Start heartbeat mechanism
|
|
42
|
-
this.startHeartbeat();
|
|
43
|
-
|
|
44
|
-
// Initialize agent based on type
|
|
45
|
-
await this.initializeAgent();
|
|
46
|
-
|
|
47
|
-
// Execute task if provided
|
|
48
|
-
if (this.config.task) {
|
|
49
|
-
await this.executeTask(this.config.task);
|
|
50
|
-
} else {
|
|
51
|
-
await this.runDefaultBehavior();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
console.log(`โ
Agent ${this.config.agentId} completed successfully`);
|
|
55
|
-
process.exit(0);
|
|
56
|
-
} catch (error: any) {
|
|
57
|
-
console.error(`โ Agent ${this.config.agentId} failed:`, error.message);
|
|
58
|
-
process.exit(1);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Initialize agent based on type
|
|
64
|
-
*/
|
|
65
|
-
private async initializeAgent(): Promise<void> {
|
|
66
|
-
console.log(`๐ง Initializing ${this.config.agentType} agent...`);
|
|
67
|
-
|
|
68
|
-
switch (this.config.agentType) {
|
|
69
|
-
case 'frontend':
|
|
70
|
-
await this.initializeFrontendAgent();
|
|
71
|
-
break;
|
|
72
|
-
case 'backend':
|
|
73
|
-
await this.initializeBackendAgent();
|
|
74
|
-
break;
|
|
75
|
-
case 'testing':
|
|
76
|
-
await this.initializeTestingAgent();
|
|
77
|
-
break;
|
|
78
|
-
case 'documentation':
|
|
79
|
-
await this.initializeDocumentationAgent();
|
|
80
|
-
break;
|
|
81
|
-
case 'security':
|
|
82
|
-
await this.initializeSecurityAgent();
|
|
83
|
-
break;
|
|
84
|
-
case 'performance':
|
|
85
|
-
await this.initializePerformanceAgent();
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
throw new Error(`Unknown agent type: ${this.config.agentType}`);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
console.log(`โ
${this.config.agentType} agent initialized`);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Execute a specific task
|
|
96
|
-
*/
|
|
97
|
-
private async executeTask(task: string): Promise<void> {
|
|
98
|
-
console.log(`๐ Executing task: ${task}`);
|
|
99
|
-
|
|
100
|
-
// Simulate task execution with progress updates
|
|
101
|
-
const steps = this.getTaskSteps(task);
|
|
102
|
-
|
|
103
|
-
for (let i = 0; i < steps.length; i++) {
|
|
104
|
-
if (!this.isRunning) break;
|
|
105
|
-
|
|
106
|
-
const step = steps[i];
|
|
107
|
-
this.taskProgress = Math.round(((i + 1) / steps.length) * 100);
|
|
108
|
-
|
|
109
|
-
console.log(`โก [${this.taskProgress}%] ${step}`);
|
|
110
|
-
|
|
111
|
-
// Simulate work
|
|
112
|
-
await this.simulateWork(2000, 5000);
|
|
113
|
-
|
|
114
|
-
// Send progress update
|
|
115
|
-
await this.sendProgressUpdate(step, this.taskProgress);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Run default behavior when no specific task is provided
|
|
121
|
-
*/
|
|
122
|
-
private async runDefaultBehavior(): Promise<void> {
|
|
123
|
-
console.log(`๐ Running default behavior for ${this.config.agentType} agent`);
|
|
124
|
-
|
|
125
|
-
while (this.isRunning) {
|
|
126
|
-
await this.simulateWork(5000, 10000);
|
|
127
|
-
|
|
128
|
-
// Simulate some activity
|
|
129
|
-
const activities = this.getDefaultActivities();
|
|
130
|
-
const activity = activities[Math.floor(Math.random() * activities.length)];
|
|
131
|
-
|
|
132
|
-
console.log(`๐ผ ${activity}`);
|
|
133
|
-
await this.sendProgressUpdate(activity, this.taskProgress);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Start heartbeat mechanism
|
|
139
|
-
*/
|
|
140
|
-
private startHeartbeat(): void {
|
|
141
|
-
this.heartbeatInterval = setInterval(async () => {
|
|
142
|
-
if (!this.isRunning) return;
|
|
143
|
-
|
|
144
|
-
try {
|
|
145
|
-
await this.sendHeartbeat();
|
|
146
|
-
} catch (error) {
|
|
147
|
-
console.warn(`Failed to send heartbeat:`, error);
|
|
148
|
-
}
|
|
149
|
-
}, 15000); // Send heartbeat every 15 seconds
|
|
150
|
-
|
|
151
|
-
console.log(`๐ Heartbeat started for agent ${this.config.agentId}`);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Send heartbeat to coordinator
|
|
156
|
-
*/
|
|
157
|
-
private async sendHeartbeat(): Promise<void> {
|
|
158
|
-
const uptime = Date.now() - this.startTime;
|
|
159
|
-
const resourceUsage = this.getResourceUsage();
|
|
160
|
-
|
|
161
|
-
const heartbeat = {
|
|
162
|
-
timestamp: new Date().toISOString(),
|
|
163
|
-
uptime: Math.floor(uptime / 1000),
|
|
164
|
-
resourceUsage,
|
|
165
|
-
status: 'running'
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// Send to coordinator API
|
|
169
|
-
try {
|
|
170
|
-
const response = await fetch(`http://localhost:3001/api/v1/agents/${this.config.agentId}/heartbeat`, {
|
|
171
|
-
method: 'POST',
|
|
172
|
-
headers: { 'Content-Type': 'application/json' },
|
|
173
|
-
body: JSON.stringify(heartbeat)
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
if (!response.ok) {
|
|
177
|
-
console.warn(`Heartbeat failed: ${response.status}`);
|
|
178
|
-
}
|
|
179
|
-
} catch (error) {
|
|
180
|
-
console.warn(`Heartbeat network error:`, error);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Send progress update
|
|
186
|
-
*/
|
|
187
|
-
private async sendProgressUpdate(message: string, progress: number): Promise<void> {
|
|
188
|
-
try {
|
|
189
|
-
const response = await fetch(`http://localhost:3001/api/v1/agents/${this.config.agentId}/progress`, {
|
|
190
|
-
method: 'POST',
|
|
191
|
-
headers: { 'Content-Type': 'application/json' },
|
|
192
|
-
body: JSON.stringify({
|
|
193
|
-
status: 'busy',
|
|
194
|
-
progress,
|
|
195
|
-
message
|
|
196
|
-
})
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
if (!response.ok) {
|
|
200
|
-
console.warn(`Progress update failed: ${response.status}`);
|
|
201
|
-
}
|
|
202
|
-
} catch (error) {
|
|
203
|
-
console.warn(`Progress update network error:`, error);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Get mock resource usage
|
|
209
|
-
*/
|
|
210
|
-
private getResourceUsage(): { memory: number; cpu: number } {
|
|
211
|
-
return {
|
|
212
|
-
memory: Math.floor(Math.random() * 150) + 50,
|
|
213
|
-
cpu: Math.floor(Math.random() * 40) + 10
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Simulate work with random delay
|
|
219
|
-
*/
|
|
220
|
-
private async simulateWork(minMs: number, maxMs: number): Promise<void> {
|
|
221
|
-
const delay = Math.floor(Math.random() * (maxMs - minMs)) + minMs;
|
|
222
|
-
await new Promise(resolve => setTimeout(resolve, delay));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Get task steps based on task description
|
|
227
|
-
*/
|
|
228
|
-
private getTaskSteps(task: string): string[] {
|
|
229
|
-
const taskLower = task.toLowerCase();
|
|
230
|
-
|
|
231
|
-
if (taskLower.includes('implement') || taskLower.includes('build')) {
|
|
232
|
-
return [
|
|
233
|
-
'Analyzing requirements',
|
|
234
|
-
'Designing solution',
|
|
235
|
-
'Implementing core functionality',
|
|
236
|
-
'Adding tests',
|
|
237
|
-
'Documentation',
|
|
238
|
-
'Code review',
|
|
239
|
-
'Deployment preparation'
|
|
240
|
-
];
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (taskLower.includes('test') || taskLower.includes('testing')) {
|
|
244
|
-
return [
|
|
245
|
-
'Setting up test environment',
|
|
246
|
-
'Writing unit tests',
|
|
247
|
-
'Writing integration tests',
|
|
248
|
-
'Running test suite',
|
|
249
|
-
'Analyzing coverage',
|
|
250
|
-
'Reporting results'
|
|
251
|
-
];
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
if (taskLower.includes('document') || taskLower.includes('docs')) {
|
|
255
|
-
return [
|
|
256
|
-
'Analyzing codebase',
|
|
257
|
-
'Generating documentation',
|
|
258
|
-
'Creating examples',
|
|
259
|
-
'Reviewing documentation',
|
|
260
|
-
'Publishing docs'
|
|
261
|
-
];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
if (taskLower.includes('security') || taskLower.includes('audit')) {
|
|
265
|
-
return [
|
|
266
|
-
'Scanning dependencies',
|
|
267
|
-
'Analyzing code for vulnerabilities',
|
|
268
|
-
'Checking configurations',
|
|
269
|
-
'Generating security report',
|
|
270
|
-
'Providing remediation steps'
|
|
271
|
-
];
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
if (taskLower.includes('performance') || taskLower.includes('optimize')) {
|
|
275
|
-
return [
|
|
276
|
-
'Profiling application',
|
|
277
|
-
'Identifying bottlenecks',
|
|
278
|
-
'Implementing optimizations',
|
|
279
|
-
'Measuring improvements',
|
|
280
|
-
'Creating performance report'
|
|
281
|
-
];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// Default steps
|
|
285
|
-
return [
|
|
286
|
-
'Understanding task',
|
|
287
|
-
'Planning approach',
|
|
288
|
-
'Executing task',
|
|
289
|
-
'Validating results',
|
|
290
|
-
'Completing task'
|
|
291
|
-
];
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Get default activities for agent type
|
|
296
|
-
*/
|
|
297
|
-
private getDefaultActivities(): string[] {
|
|
298
|
-
switch (this.config.agentType) {
|
|
299
|
-
case 'frontend':
|
|
300
|
-
return [
|
|
301
|
-
'Reviewing UI components',
|
|
302
|
-
'Optimizing user experience',
|
|
303
|
-
'Updating styles',
|
|
304
|
-
'Testing responsive design'
|
|
305
|
-
];
|
|
306
|
-
case 'backend':
|
|
307
|
-
return [
|
|
308
|
-
'Monitoring API performance',
|
|
309
|
-
'Optimizing database queries',
|
|
310
|
-
'Reviewing server logs',
|
|
311
|
-
'Validating data integrity'
|
|
312
|
-
];
|
|
313
|
-
case 'testing':
|
|
314
|
-
return [
|
|
315
|
-
'Running automated tests',
|
|
316
|
-
'Updating test cases',
|
|
317
|
-
'Analyzing test results',
|
|
318
|
-
'Improving test coverage'
|
|
319
|
-
];
|
|
320
|
-
case 'documentation':
|
|
321
|
-
return [
|
|
322
|
-
'Updating API documentation',
|
|
323
|
-
'Creating user guides',
|
|
324
|
-
'Reviewing documentation',
|
|
325
|
-
'Publishing updates'
|
|
326
|
-
];
|
|
327
|
-
case 'security':
|
|
328
|
-
return [
|
|
329
|
-
'Scanning for vulnerabilities',
|
|
330
|
-
'Reviewing security policies',
|
|
331
|
-
'Analyzing access logs',
|
|
332
|
-
'Updating security measures'
|
|
333
|
-
];
|
|
334
|
-
case 'performance':
|
|
335
|
-
return [
|
|
336
|
-
'Monitoring system metrics',
|
|
337
|
-
'Analyzing performance data',
|
|
338
|
-
'Optimizing resource usage',
|
|
339
|
-
'Generating reports'
|
|
340
|
-
];
|
|
341
|
-
default:
|
|
342
|
-
return ['Processing requests', 'Maintaining systems', 'Performing routine checks'];
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Agent type-specific initializers
|
|
348
|
-
*/
|
|
349
|
-
private async initializeFrontendAgent(): Promise<void> {
|
|
350
|
-
console.log('๐จ Initializing frontend development environment');
|
|
351
|
-
// Simulate frontend-specific setup
|
|
352
|
-
await this.simulateWork(1000, 3000);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
private async initializeBackendAgent(): Promise<void> {
|
|
356
|
-
console.log('โ๏ธ Initializing backend development environment');
|
|
357
|
-
// Simulate backend-specific setup
|
|
358
|
-
await this.simulateWork(1000, 3000);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
private async initializeTestingAgent(): Promise<void> {
|
|
362
|
-
console.log('๐งช Initializing testing environment');
|
|
363
|
-
// Simulate testing-specific setup
|
|
364
|
-
await this.simulateWork(1000, 3000);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
private async initializeDocumentationAgent(): Promise<void> {
|
|
368
|
-
console.log('๐ Initializing documentation environment');
|
|
369
|
-
// Simulate documentation-specific setup
|
|
370
|
-
await this.simulateWork(1000, 3000);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
private async initializeSecurityAgent(): Promise<void> {
|
|
374
|
-
console.log('๐ Initializing security environment');
|
|
375
|
-
// Simulate security-specific setup
|
|
376
|
-
await this.simulateWork(1000, 3000);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
private async initializePerformanceAgent(): Promise<void> {
|
|
380
|
-
console.log('๐ Initializing performance monitoring');
|
|
381
|
-
// Simulate performance-specific setup
|
|
382
|
-
await this.simulateWork(1000, 3000);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Cleanup on shutdown
|
|
387
|
-
*/
|
|
388
|
-
cleanup(): void {
|
|
389
|
-
this.isRunning = false;
|
|
390
|
-
|
|
391
|
-
if (this.heartbeatInterval) {
|
|
392
|
-
clearInterval(this.heartbeatInterval);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
console.log(`๐งน Agent runner ${this.config.agentId} cleaned up`);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Parse command line arguments
|
|
401
|
-
*/
|
|
402
|
-
function parseArgs(): AgentConfig {
|
|
403
|
-
const args = process.argv.slice(2);
|
|
404
|
-
|
|
405
|
-
const config: Partial<AgentConfig> = {};
|
|
406
|
-
|
|
407
|
-
for (let i = 0; i < args.length; i += 2) {
|
|
408
|
-
const flag = args[i];
|
|
409
|
-
const value = args[i + 1];
|
|
410
|
-
|
|
411
|
-
switch (flag) {
|
|
412
|
-
case '--agent-id':
|
|
413
|
-
config.agentId = value;
|
|
414
|
-
break;
|
|
415
|
-
case '--agent-type':
|
|
416
|
-
config.agentType = value;
|
|
417
|
-
break;
|
|
418
|
-
case '--mailbox-id':
|
|
419
|
-
config.mailboxId = value;
|
|
420
|
-
break;
|
|
421
|
-
case '--task':
|
|
422
|
-
config.task = value;
|
|
423
|
-
break;
|
|
424
|
-
case '--timeout':
|
|
425
|
-
config.timeout = parseInt(value);
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
if (!config.agentId || !config.agentType || !config.mailboxId) {
|
|
431
|
-
console.error('Missing required arguments');
|
|
432
|
-
console.log('Usage: bun agent-runner.js --agent-id <id> --agent-type <type> --mailbox-id <id> [--task <task>] [--timeout <ms>]');
|
|
433
|
-
process.exit(1);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
return config as AgentConfig;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Main execution
|
|
441
|
-
*/
|
|
442
|
-
async function main(): Promise<void> {
|
|
443
|
-
const config = parseArgs();
|
|
444
|
-
const runner = new AgentRunner(config);
|
|
445
|
-
|
|
446
|
-
// Handle graceful shutdown
|
|
447
|
-
process.on('SIGINT', () => {
|
|
448
|
-
console.log('\n๐ Received SIGINT, shutting down gracefully...');
|
|
449
|
-
runner.cleanup();
|
|
450
|
-
process.exit(0);
|
|
451
|
-
});
|
|
452
|
-
|
|
453
|
-
process.on('SIGTERM', () => {
|
|
454
|
-
console.log('\n๐ Received SIGTERM, shutting down gracefully...');
|
|
455
|
-
runner.cleanup();
|
|
456
|
-
process.exit(0);
|
|
457
|
-
});
|
|
458
|
-
|
|
459
|
-
// Handle timeout
|
|
460
|
-
if (config.timeout) {
|
|
461
|
-
setTimeout(() => {
|
|
462
|
-
console.log(`โฐ Agent timeout reached (${config.timeout}ms)`);
|
|
463
|
-
runner.cleanup();
|
|
464
|
-
process.exit(1);
|
|
465
|
-
}, config.timeout);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
try {
|
|
469
|
-
await runner.start();
|
|
470
|
-
} catch (error: any) {
|
|
471
|
-
console.error('Agent runner failed:', error.message);
|
|
472
|
-
process.exit(1);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// Run the agent
|
|
477
|
-
if (import.meta.main) {
|
|
478
|
-
main();
|
|
479
|
-
}
|