sudocode 1.1.18-dev.0 → 1.1.18
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 +9 -9
- package/node_modules/@sudocode-ai/cli/README.md +0 -330
- package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.d.ts +0 -53
- package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.js +0 -339
- package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.d.ts +0 -20
- package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.js +0 -145
- package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.d.ts +0 -46
- package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.js +0 -353
- package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.d.ts +0 -42
- package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.js +0 -405
- package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.d.ts +0 -62
- package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.js +0 -595
- package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.d.ts +0 -18
- package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.js +0 -61
- package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.d.ts +0 -22
- package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.js +0 -136
- package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.d.ts +0 -14
- package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.js +0 -83
- package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.d.ts +0 -17
- package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.js +0 -123
- package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.d.ts +0 -38
- package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.js +0 -326
- package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.d.ts +0 -17
- package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.js +0 -131
- package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.d.ts +0 -24
- package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.js +0 -429
- package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.d.ts +0 -16
- package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.js +0 -160
- package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli.d.ts +0 -6
- package/node_modules/@sudocode-ai/cli/dist/cli.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/cli.js +0 -543
- package/node_modules/@sudocode-ai/cli/dist/cli.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/config.d.ts +0 -50
- package/node_modules/@sudocode-ai/cli/dist/config.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/config.js +0 -76
- package/node_modules/@sudocode-ai/cli/dist/config.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/db.d.ts +0 -21
- package/node_modules/@sudocode-ai/cli/dist/db.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/db.js +0 -55
- package/node_modules/@sudocode-ai/cli/dist/db.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/export.d.ts +0 -84
- package/node_modules/@sudocode-ai/cli/dist/export.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/export.js +0 -265
- package/node_modules/@sudocode-ai/cli/dist/export.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/filename-generator.d.ts +0 -31
- package/node_modules/@sudocode-ai/cli/dist/filename-generator.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/filename-generator.js +0 -103
- package/node_modules/@sudocode-ai/cli/dist/filename-generator.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/id-generator.d.ts +0 -63
- package/node_modules/@sudocode-ai/cli/dist/id-generator.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/id-generator.js +0 -196
- package/node_modules/@sudocode-ai/cli/dist/id-generator.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/import.d.ts +0 -134
- package/node_modules/@sudocode-ai/cli/dist/import.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/import.js +0 -751
- package/node_modules/@sudocode-ai/cli/dist/import.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/index.d.ts +0 -15
- package/node_modules/@sudocode-ai/cli/dist/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/index.js +0 -15
- package/node_modules/@sudocode-ai/cli/dist/index.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.d.ts +0 -108
- package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.js +0 -80
- package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.d.ts +0 -62
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.js +0 -69
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.d.ts +0 -75
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.js +0 -129
- package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/index.d.ts +0 -14
- package/node_modules/@sudocode-ai/cli/dist/integrations/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/index.js +0 -20
- package/node_modules/@sudocode-ai/cli/dist/integrations/index.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.d.ts +0 -77
- package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.js +0 -265
- package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/registry.d.ts +0 -67
- package/node_modules/@sudocode-ai/cli/dist/integrations/registry.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/registry.js +0 -77
- package/node_modules/@sudocode-ai/cli/dist/integrations/registry.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.d.ts +0 -191
- package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.js +0 -798
- package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/types.d.ts +0 -142
- package/node_modules/@sudocode-ai/cli/dist/integrations/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/types.js +0 -6
- package/node_modules/@sudocode-ai/cli/dist/integrations/types.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.d.ts +0 -79
- package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.js +0 -106
- package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/jsonl.d.ts +0 -69
- package/node_modules/@sudocode-ai/cli/dist/jsonl.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/jsonl.js +0 -333
- package/node_modules/@sudocode-ai/cli/dist/jsonl.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/markdown.d.ts +0 -146
- package/node_modules/@sudocode-ai/cli/dist/markdown.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/markdown.js +0 -329
- package/node_modules/@sudocode-ai/cli/dist/markdown.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/merge-resolver.d.ts +0 -85
- package/node_modules/@sudocode-ai/cli/dist/merge-resolver.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/merge-resolver.js +0 -301
- package/node_modules/@sudocode-ai/cli/dist/merge-resolver.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/events.d.ts +0 -53
- package/node_modules/@sudocode-ai/cli/dist/operations/events.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/events.js +0 -108
- package/node_modules/@sudocode-ai/cli/dist/operations/events.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/external-links.d.ts +0 -147
- package/node_modules/@sudocode-ai/cli/dist/operations/external-links.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/external-links.js +0 -411
- package/node_modules/@sudocode-ai/cli/dist/operations/external-links.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.d.ts +0 -92
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.js +0 -444
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback.d.ts +0 -94
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback.js +0 -278
- package/node_modules/@sudocode-ai/cli/dist/operations/feedback.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/index.d.ts +0 -11
- package/node_modules/@sudocode-ai/cli/dist/operations/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/index.js +0 -11
- package/node_modules/@sudocode-ai/cli/dist/operations/index.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/issues.d.ts +0 -88
- package/node_modules/@sudocode-ai/cli/dist/operations/issues.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/issues.js +0 -474
- package/node_modules/@sudocode-ai/cli/dist/operations/issues.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/references.d.ts +0 -34
- package/node_modules/@sudocode-ai/cli/dist/operations/references.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/references.js +0 -117
- package/node_modules/@sudocode-ai/cli/dist/operations/references.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/relationships.d.ts +0 -64
- package/node_modules/@sudocode-ai/cli/dist/operations/relationships.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/relationships.js +0 -281
- package/node_modules/@sudocode-ai/cli/dist/operations/relationships.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/specs.d.ts +0 -69
- package/node_modules/@sudocode-ai/cli/dist/operations/specs.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/specs.js +0 -330
- package/node_modules/@sudocode-ai/cli/dist/operations/specs.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/tags.d.ts +0 -42
- package/node_modules/@sudocode-ai/cli/dist/operations/tags.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/tags.js +0 -127
- package/node_modules/@sudocode-ai/cli/dist/operations/tags.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/transactions.d.ts +0 -41
- package/node_modules/@sudocode-ai/cli/dist/operations/transactions.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/operations/transactions.js +0 -111
- package/node_modules/@sudocode-ai/cli/dist/operations/transactions.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/sync.d.ts +0 -47
- package/node_modules/@sudocode-ai/cli/dist/sync.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/sync.js +0 -464
- package/node_modules/@sudocode-ai/cli/dist/sync.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/test-schema.d.ts +0 -5
- package/node_modules/@sudocode-ai/cli/dist/test-schema.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/test-schema.js +0 -46
- package/node_modules/@sudocode-ai/cli/dist/test-schema.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/types.d.ts +0 -7
- package/node_modules/@sudocode-ai/cli/dist/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/types.js +0 -7
- package/node_modules/@sudocode-ai/cli/dist/types.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/update-checker.d.ts +0 -33
- package/node_modules/@sudocode-ai/cli/dist/update-checker.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/update-checker.js +0 -193
- package/node_modules/@sudocode-ai/cli/dist/update-checker.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/validation.d.ts +0 -11
- package/node_modules/@sudocode-ai/cli/dist/validation.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/validation.js +0 -58
- package/node_modules/@sudocode-ai/cli/dist/validation.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/version.d.ts +0 -12
- package/node_modules/@sudocode-ai/cli/dist/version.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/version.js +0 -23
- package/node_modules/@sudocode-ai/cli/dist/version.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/watcher.d.ts +0 -69
- package/node_modules/@sudocode-ai/cli/dist/watcher.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/cli/dist/watcher.js +0 -783
- package/node_modules/@sudocode-ai/cli/dist/watcher.js.map +0 -1
- package/node_modules/@sudocode-ai/cli/package.json +0 -73
- package/node_modules/@sudocode-ai/integration-beads/package.json +0 -44
- package/node_modules/@sudocode-ai/integration-github/package.json +0 -41
- package/node_modules/@sudocode-ai/integration-openspec/package.json +0 -43
- package/node_modules/@sudocode-ai/integration-speckit/package.json +0 -42
- package/node_modules/@sudocode-ai/local-server/README.md +0 -25
- package/node_modules/@sudocode-ai/local-server/dist/cli.d.ts +0 -7
- package/node_modules/@sudocode-ai/local-server/dist/cli.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/cli.js +0 -7
- package/node_modules/@sudocode-ai/local-server/dist/cli.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.d.ts +0 -43
- package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.js +0 -69
- package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.d.ts +0 -63
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.js +0 -83
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.d.ts +0 -67
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.js +0 -183
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.d.ts +0 -30
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.js +0 -110
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.d.ts +0 -94
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.js +0 -163
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.d.ts +0 -48
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.js +0 -125
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.d.ts +0 -66
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.js +0 -121
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.d.ts +0 -29
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.js +0 -49
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.d.ts +0 -102
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.js +0 -205
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.d.ts +0 -95
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.js +0 -163
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.js +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.d.ts +0 -154
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.js +0 -725
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.d.ts +0 -95
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.js +0 -128
- package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.d.ts +0 -174
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.js +0 -436
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.d.ts +0 -90
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.js +0 -153
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.d.ts +0 -15
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.js +0 -13
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.d.ts +0 -108
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.js +0 -321
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.d.ts +0 -421
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.js +0 -22
- package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.d.ts +0 -53
- package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.js +0 -225
- package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.d.ts +0 -119
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.js +0 -208
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.d.ts +0 -10
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.js +0 -10
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.d.ts +0 -74
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.js +0 -104
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.d.ts +0 -146
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.js +0 -282
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.d.ts +0 -176
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.js +0 -234
- package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.d.ts +0 -74
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.js +0 -280
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.d.ts +0 -85
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.js +0 -129
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.d.ts +0 -208
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.js +0 -280
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.d.ts +0 -225
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.js +0 -464
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.d.ts +0 -16
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.js +0 -15
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.d.ts +0 -221
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.js +0 -508
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.d.ts +0 -90
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.js +0 -42
- package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/index.d.ts +0 -6
- package/node_modules/@sudocode-ai/local-server/dist/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/index.js +0 -371
- package/node_modules/@sudocode-ai/local-server/dist/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.d.ts +0 -37
- package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.js +0 -91
- package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-D4AKx6EO.css +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-DorQqwGV.js +0 -927
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-DorQqwGV.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/react-vendor-DoNwlLhy.js +0 -60
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/react-vendor-DoNwlLhy.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/ui-vendor-DlxvBun1.js +0 -54
- package/node_modules/@sudocode-ai/local-server/dist/public/assets/ui-vendor-DlxvBun1.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/public/favicon.ico +0 -0
- package/node_modules/@sudocode-ai/local-server/dist/public/index.html +0 -16
- package/node_modules/@sudocode-ai/local-server/dist/public/logo.png +0 -0
- package/node_modules/@sudocode-ai/local-server/dist/routes/agents.d.ts +0 -3
- package/node_modules/@sudocode-ai/local-server/dist/routes/agents.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/agents.js +0 -62
- package/node_modules/@sudocode-ai/local-server/dist/routes/agents.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/config.d.ts +0 -3
- package/node_modules/@sudocode-ai/local-server/dist/routes/config.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/config.js +0 -116
- package/node_modules/@sudocode-ai/local-server/dist/routes/config.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/editors.d.ts +0 -15
- package/node_modules/@sudocode-ai/local-server/dist/routes/editors.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/editors.js +0 -98
- package/node_modules/@sudocode-ai/local-server/dist/routes/editors.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.d.ts +0 -27
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.js +0 -59
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions.d.ts +0 -18
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions.js +0 -1169
- package/node_modules/@sudocode-ai/local-server/dist/routes/executions.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.js +0 -340
- package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/files.d.ts +0 -18
- package/node_modules/@sudocode-ai/local-server/dist/routes/files.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/files.js +0 -89
- package/node_modules/@sudocode-ai/local-server/dist/routes/files.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/import.d.ts +0 -142
- package/node_modules/@sudocode-ai/local-server/dist/routes/import.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/import.js +0 -896
- package/node_modules/@sudocode-ai/local-server/dist/routes/import.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/issues.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/routes/issues.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/issues.js +0 -419
- package/node_modules/@sudocode-ai/local-server/dist/routes/issues.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.d.ts +0 -34
- package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.js +0 -602
- package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/projects.d.ts +0 -11
- package/node_modules/@sudocode-ai/local-server/dist/routes/projects.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/projects.js +0 -536
- package/node_modules/@sudocode-ai/local-server/dist/routes/projects.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.js +0 -310
- package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.d.ts +0 -3
- package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.js +0 -203
- package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/specs.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/routes/specs.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/specs.js +0 -414
- package/node_modules/@sudocode-ai/local-server/dist/routes/specs.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/update.d.ts +0 -7
- package/node_modules/@sudocode-ai/local-server/dist/routes/update.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/update.js +0 -194
- package/node_modules/@sudocode-ai/local-server/dist/routes/update.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/version.d.ts +0 -3
- package/node_modules/@sudocode-ai/local-server/dist/routes/version.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/version.js +0 -25
- package/node_modules/@sudocode-ai/local-server/dist/routes/version.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.d.ts +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.js +0 -1729
- package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.d.ts +0 -140
- package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.js +0 -272
- package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/db.d.ts +0 -33
- package/node_modules/@sudocode-ai/local-server/dist/services/db.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/db.js +0 -90
- package/node_modules/@sudocode-ai/local-server/dist/services/db.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.d.ts +0 -57
- package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.js +0 -204
- package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.d.ts +0 -110
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.js +0 -710
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.d.ts +0 -73
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.js +0 -82
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.d.ts +0 -145
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.js +0 -392
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.d.ts +0 -88
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.js +0 -137
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.d.ts +0 -252
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.js +0 -379
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.d.ts +0 -280
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.js +0 -1240
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.d.ts +0 -116
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.js +0 -326
- package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/executions.d.ts +0 -63
- package/node_modules/@sudocode-ai/local-server/dist/services/executions.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/executions.js +0 -177
- package/node_modules/@sudocode-ai/local-server/dist/services/executions.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/export.d.ts +0 -32
- package/node_modules/@sudocode-ai/local-server/dist/services/export.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/export.js +0 -114
- package/node_modules/@sudocode-ai/local-server/dist/services/export.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.d.ts +0 -104
- package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.js +0 -520
- package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/feedback.d.ts +0 -56
- package/node_modules/@sudocode-ai/local-server/dist/services/feedback.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/feedback.js +0 -78
- package/node_modules/@sudocode-ai/local-server/dist/services/feedback.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.d.ts +0 -72
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.js +0 -176
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.d.ts +0 -9
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.js +0 -10
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.d.ts +0 -97
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.js +0 -140
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.d.ts +0 -58
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.js +0 -8
- package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.d.ts +0 -185
- package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.js +0 -428
- package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/issues.d.ts +0 -27
- package/node_modules/@sudocode-ai/local-server/dist/services/issues.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/issues.js +0 -35
- package/node_modules/@sudocode-ai/local-server/dist/services/issues.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-context.d.ts +0 -97
- package/node_modules/@sudocode-ai/local-server/dist/services/project-context.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-context.js +0 -170
- package/node_modules/@sudocode-ai/local-server/dist/services/project-context.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.d.ts +0 -102
- package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.js +0 -502
- package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.d.ts +0 -98
- package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.js +0 -289
- package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.d.ts +0 -97
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.js +0 -377
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.d.ts +0 -108
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.js +0 -212
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.d.ts +0 -97
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.js +0 -236
- package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/relationships.d.ts +0 -35
- package/node_modules/@sudocode-ai/local-server/dist/services/relationships.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/relationships.js +0 -42
- package/node_modules/@sudocode-ai/local-server/dist/services/relationships.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.d.ts +0 -33
- package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.js +0 -136
- package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/specs.d.ts +0 -27
- package/node_modules/@sudocode-ai/local-server/dist/services/specs.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/specs.js +0 -35
- package/node_modules/@sudocode-ai/local-server/dist/services/specs.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/version-service.d.ts +0 -14
- package/node_modules/@sudocode-ai/local-server/dist/services/version-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/version-service.js +0 -57
- package/node_modules/@sudocode-ai/local-server/dist/services/version-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/watcher.d.ts +0 -49
- package/node_modules/@sudocode-ai/local-server/dist/services/watcher.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/watcher.js +0 -52
- package/node_modules/@sudocode-ai/local-server/dist/services/watcher.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/websocket.d.ts +0 -179
- package/node_modules/@sudocode-ai/local-server/dist/services/websocket.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/websocket.js +0 -543
- package/node_modules/@sudocode-ai/local-server/dist/services/websocket.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.d.ts +0 -43
- package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.js +0 -155
- package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.d.ts +0 -437
- package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.js +0 -1505
- package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/types/editor.d.ts +0 -49
- package/node_modules/@sudocode-ai/local-server/dist/types/editor.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/types/editor.js +0 -50
- package/node_modules/@sudocode-ai/local-server/dist/types/editor.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/types/project.d.ts +0 -58
- package/node_modules/@sudocode-ai/local-server/dist/types/project.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/types/project.js +0 -10
- package/node_modules/@sudocode-ai/local-server/dist/types/project.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.d.ts +0 -43
- package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.js +0 -53
- package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.d.ts +0 -36
- package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.js +0 -79
- package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.d.ts +0 -6
- package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.js +0 -9
- package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.d.ts +0 -18
- package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.js +0 -340
- package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.d.ts +0 -84
- package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.js +0 -29
- package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.d.ts +0 -186
- package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.js +0 -557
- package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.d.ts +0 -78
- package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.js +0 -264
- package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.d.ts +0 -237
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.js +0 -749
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.d.ts +0 -276
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.js +0 -1110
- package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/index.d.ts +0 -15
- package/node_modules/@sudocode-ai/local-server/dist/workflow/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/index.js +0 -22
- package/node_modules/@sudocode-ai/local-server/dist/workflow/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.d.ts +0 -103
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.js +0 -193
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.d.ts +0 -16
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.js +0 -114
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.d.ts +0 -85
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.js +0 -520
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.d.ts +0 -36
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.js +0 -47
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.d.ts +0 -59
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.js +0 -67
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.d.ts +0 -82
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.js +0 -57
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.d.ts +0 -59
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.js +0 -40
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.d.ts +0 -345
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.js +0 -7
- package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.d.ts +0 -36
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.js +0 -329
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.d.ts +0 -262
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.js +0 -809
- package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.d.ts +0 -221
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.js +0 -94
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.d.ts +0 -278
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.js +0 -259
- package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.js.map +0 -1
- package/node_modules/@sudocode-ai/local-server/package.json +0 -78
- package/node_modules/@sudocode-ai/mcp/README.md +0 -226
- package/node_modules/@sudocode-ai/mcp/dist/client.d.ts +0 -33
- package/node_modules/@sudocode-ai/mcp/dist/client.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/client.js +0 -166
- package/node_modules/@sudocode-ai/mcp/dist/client.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/index.d.ts +0 -6
- package/node_modules/@sudocode-ai/mcp/dist/index.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/index.js +0 -64
- package/node_modules/@sudocode-ai/mcp/dist/index.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/server.d.ts +0 -26
- package/node_modules/@sudocode-ai/mcp/dist/server.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/server.js +0 -577
- package/node_modules/@sudocode-ai/mcp/dist/server.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.d.ts +0 -41
- package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.js +0 -21
- package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.d.ts +0 -21
- package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.js +0 -30
- package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/init.d.ts +0 -17
- package/node_modules/@sudocode-ai/mcp/dist/tools/init.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/init.js +0 -15
- package/node_modules/@sudocode-ai/mcp/dist/tools/init.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/issues.d.ts +0 -44
- package/node_modules/@sudocode-ai/mcp/dist/tools/issues.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/issues.js +0 -109
- package/node_modules/@sudocode-ai/mcp/dist/tools/issues.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/references.d.ts +0 -21
- package/node_modules/@sudocode-ai/mcp/dist/tools/references.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/references.js +0 -49
- package/node_modules/@sudocode-ai/mcp/dist/tools/references.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.d.ts +0 -15
- package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.js +0 -18
- package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/specs.d.ts +0 -35
- package/node_modules/@sudocode-ai/mcp/dist/tools/specs.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/tools/specs.js +0 -85
- package/node_modules/@sudocode-ai/mcp/dist/tools/specs.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/types.d.ts +0 -35
- package/node_modules/@sudocode-ai/mcp/dist/types.d.ts.map +0 -1
- package/node_modules/@sudocode-ai/mcp/dist/types.js +0 -21
- package/node_modules/@sudocode-ai/mcp/dist/types.js.map +0 -1
- package/node_modules/@sudocode-ai/mcp/package.json +0 -67
- package/node_modules/@sudocode-ai/types/README.md +0 -7
- package/node_modules/@sudocode-ai/types/package.json +0 -76
- package/node_modules/@sudocode-ai/types/src/agents.d.ts +0 -278
- package/node_modules/@sudocode-ai/types/src/artifacts.d.ts +0 -66
- package/node_modules/@sudocode-ai/types/src/events.d.ts +0 -70
- package/node_modules/@sudocode-ai/types/src/index.d.ts +0 -452
- package/node_modules/@sudocode-ai/types/src/integrations.d.ts +0 -454
- package/node_modules/@sudocode-ai/types/src/workflows.d.ts +0 -501
- package/node_modules/commander/LICENSE +0 -22
- package/node_modules/commander/Readme.md +0 -1149
- package/node_modules/commander/esm.mjs +0 -16
- package/node_modules/commander/index.js +0 -24
- package/node_modules/commander/lib/argument.js +0 -149
- package/node_modules/commander/lib/command.js +0 -2662
- package/node_modules/commander/lib/error.js +0 -39
- package/node_modules/commander/lib/help.js +0 -709
- package/node_modules/commander/lib/option.js +0 -367
- package/node_modules/commander/lib/suggestSimilar.js +0 -101
- package/node_modules/commander/package-support.json +0 -16
- package/node_modules/commander/package.json +0 -82
- package/node_modules/commander/typings/esm.d.mts +0 -3
- package/node_modules/commander/typings/index.d.ts +0 -1045
- package/node_modules/glob/LICENSE +0 -15
- package/node_modules/glob/README.md +0 -1265
- package/node_modules/glob/package.json +0 -99
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -74
- package/node_modules/isexe/package.json +0 -96
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -51
- package/node_modules/which/bin/which.js +0 -52
- package/node_modules/which/lib/index.js +0 -111
- package/node_modules/which/package.json +0 -52
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WorkflowPromptBuilder
|
|
3
|
-
*
|
|
4
|
-
* Constructs prompts for the orchestrator agent.
|
|
5
|
-
* Builds initial prompts when workflows start and wakeup messages when events occur.
|
|
6
|
-
*/
|
|
7
|
-
// =============================================================================
|
|
8
|
-
// Helper Functions
|
|
9
|
-
// =============================================================================
|
|
10
|
-
/**
|
|
11
|
-
* Format a duration in milliseconds to human-readable string
|
|
12
|
-
*/
|
|
13
|
-
function formatDuration(ms) {
|
|
14
|
-
const seconds = Math.floor(ms / 1000);
|
|
15
|
-
const minutes = Math.floor(seconds / 60);
|
|
16
|
-
const hours = Math.floor(minutes / 60);
|
|
17
|
-
if (hours > 0) {
|
|
18
|
-
const remainingMinutes = minutes % 60;
|
|
19
|
-
return `${hours}h ${remainingMinutes}m`;
|
|
20
|
-
}
|
|
21
|
-
if (minutes > 0) {
|
|
22
|
-
const remainingSeconds = seconds % 60;
|
|
23
|
-
return `${minutes}m ${remainingSeconds}s`;
|
|
24
|
-
}
|
|
25
|
-
return `${seconds}s`;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Parse files_changed JSON string to get count and stats
|
|
29
|
-
*/
|
|
30
|
-
function parseFilesChanged(filesChanged) {
|
|
31
|
-
if (!filesChanged) {
|
|
32
|
-
return { count: 0, additions: 0, deletions: 0 };
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
const files = JSON.parse(filesChanged);
|
|
36
|
-
const additions = files.reduce((sum, f) => sum + (f.additions || 0), 0);
|
|
37
|
-
const deletions = files.reduce((sum, f) => sum + (f.deletions || 0), 0);
|
|
38
|
-
return { count: files.length, additions, deletions };
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
return { count: 0, additions: 0, deletions: 0 };
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Format workflow source for display
|
|
46
|
-
*/
|
|
47
|
-
function formatSource(source) {
|
|
48
|
-
switch (source.type) {
|
|
49
|
-
case "spec":
|
|
50
|
-
return `Implementing spec \`${source.specId}\``;
|
|
51
|
-
case "issues":
|
|
52
|
-
return `Executing ${source.issueIds.length} issues: ${source.issueIds.join(", ")}`;
|
|
53
|
-
case "root_issue":
|
|
54
|
-
return `Completing issue \`${source.issueId}\` and its blockers`;
|
|
55
|
-
case "goal":
|
|
56
|
-
return `Goal: ${source.goal}`;
|
|
57
|
-
default:
|
|
58
|
-
return "Unknown source";
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Format config for display
|
|
63
|
-
*/
|
|
64
|
-
function formatConfig(config) {
|
|
65
|
-
const lines = [];
|
|
66
|
-
lines.push(`- **Autonomy Level**: ${config.autonomyLevel === "full_auto" ? "Full Auto (no user intervention)" : "Human-in-the-Loop"}`);
|
|
67
|
-
lines.push(`- **On Failure**: ${config.onFailure}`);
|
|
68
|
-
lines.push(`- **Default Agent**: ${config.defaultAgentType}`);
|
|
69
|
-
if (config.orchestratorModel) {
|
|
70
|
-
lines.push(`- **Model**: ${config.orchestratorModel}`);
|
|
71
|
-
}
|
|
72
|
-
if (config.executionTimeoutMs) {
|
|
73
|
-
lines.push(`- **Execution Timeout**: ${formatDuration(config.executionTimeoutMs)}`);
|
|
74
|
-
}
|
|
75
|
-
return lines.join("\n");
|
|
76
|
-
}
|
|
77
|
-
// =============================================================================
|
|
78
|
-
// WorkflowPromptBuilder
|
|
79
|
-
// =============================================================================
|
|
80
|
-
/**
|
|
81
|
-
* Builds prompts and messages for the orchestrator agent.
|
|
82
|
-
*/
|
|
83
|
-
export class WorkflowPromptBuilder {
|
|
84
|
-
/**
|
|
85
|
-
* Build the initial prompt for the orchestrator when workflow starts.
|
|
86
|
-
* Includes: workflow source, config, available issues, relationships.
|
|
87
|
-
*/
|
|
88
|
-
buildInitialPrompt(workflow, issues) {
|
|
89
|
-
const sections = [];
|
|
90
|
-
// Header
|
|
91
|
-
sections.push("# Workflow Orchestration");
|
|
92
|
-
sections.push("");
|
|
93
|
-
sections.push(`You are orchestrating workflow \`${workflow.id}\`: **${workflow.title}**`);
|
|
94
|
-
sections.push("");
|
|
95
|
-
// Source
|
|
96
|
-
sections.push("## Objective");
|
|
97
|
-
sections.push("");
|
|
98
|
-
sections.push(formatSource(workflow.source));
|
|
99
|
-
sections.push("");
|
|
100
|
-
// Configuration
|
|
101
|
-
sections.push("## Configuration");
|
|
102
|
-
sections.push("");
|
|
103
|
-
sections.push(formatConfig(workflow.config));
|
|
104
|
-
sections.push("");
|
|
105
|
-
// Available Tools
|
|
106
|
-
sections.push("## Available Tools");
|
|
107
|
-
sections.push("");
|
|
108
|
-
sections.push("You have access to workflow orchestration tools:");
|
|
109
|
-
sections.push("");
|
|
110
|
-
sections.push("| Tool | Purpose |");
|
|
111
|
-
sections.push("|------|---------|");
|
|
112
|
-
sections.push("| `workflow_status` | Get current workflow state, active executions, ready issues |");
|
|
113
|
-
sections.push("| `execute_issue` | Start an agent execution for an issue |");
|
|
114
|
-
sections.push("| `execution_status` | Check status of a running/completed execution |");
|
|
115
|
-
sections.push("| `execution_cancel` | Cancel a running execution |");
|
|
116
|
-
sections.push("| `execution_trajectory` | Get summarized trajectory (tool calls, decisions) |");
|
|
117
|
-
sections.push("| `execution_changes` | Get file changes from an execution |");
|
|
118
|
-
sections.push("| `escalate_to_user` | Request user input (async - response via wakeup) |");
|
|
119
|
-
sections.push("| `notify_user` | Send notification without blocking |");
|
|
120
|
-
sections.push("| `workflow_complete` | Mark workflow as complete |");
|
|
121
|
-
sections.push("");
|
|
122
|
-
sections.push("You also have access to sudocode tools (`ready`, `show_issue`, `upsert_issue`, `link`, etc.) for managing issues and specs.");
|
|
123
|
-
sections.push("");
|
|
124
|
-
// Issues
|
|
125
|
-
if (issues.length > 0) {
|
|
126
|
-
sections.push("## Issues to Execute");
|
|
127
|
-
sections.push("");
|
|
128
|
-
for (const issue of issues) {
|
|
129
|
-
const priority = issue.priority !== undefined ? ` (P${issue.priority})` : "";
|
|
130
|
-
sections.push(`### ${issue.id}: ${issue.title}${priority}`);
|
|
131
|
-
sections.push("");
|
|
132
|
-
sections.push(`Status: ${issue.status}`);
|
|
133
|
-
if (issue.content) {
|
|
134
|
-
// Truncate long content
|
|
135
|
-
const content = issue.content.length > 500
|
|
136
|
-
? issue.content.slice(0, 500) + "..."
|
|
137
|
-
: issue.content;
|
|
138
|
-
sections.push("");
|
|
139
|
-
sections.push(content);
|
|
140
|
-
}
|
|
141
|
-
sections.push("");
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
else if (workflow.source.type === "goal") {
|
|
145
|
-
sections.push("## Getting Started");
|
|
146
|
-
sections.push("");
|
|
147
|
-
sections.push("This is a goal-based workflow. No issues have been created yet.");
|
|
148
|
-
sections.push("Use `upsert_issue` to create issues and `link` to establish dependencies.");
|
|
149
|
-
sections.push("Then use `execute_issue` to run agents on the issues.");
|
|
150
|
-
sections.push("");
|
|
151
|
-
}
|
|
152
|
-
// Instructions
|
|
153
|
-
sections.push("## Instructions");
|
|
154
|
-
sections.push("");
|
|
155
|
-
sections.push("1. Review the issues and their dependencies");
|
|
156
|
-
sections.push("2. Use `execute_issue` to start agents on ready issues");
|
|
157
|
-
sections.push("3. You will receive wakeup messages when executions complete or fail");
|
|
158
|
-
sections.push("4. Inspect results with `execution_trajectory` and `execution_changes`");
|
|
159
|
-
sections.push("5. Handle failures by retrying, creating fix issues, or escalating");
|
|
160
|
-
sections.push("6. When all work is done, call `workflow_complete` with a summary");
|
|
161
|
-
sections.push("");
|
|
162
|
-
sections.push("Begin by reviewing the current state and starting the first execution.");
|
|
163
|
-
return sections.join("\n");
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Build a wakeup message from workflow events.
|
|
167
|
-
* Summarizes what happened since last orchestrator interaction.
|
|
168
|
-
*
|
|
169
|
-
* @param events - Unprocessed workflow events
|
|
170
|
-
* @param executions - Map of execution ID to execution data
|
|
171
|
-
* @param resolvedAwait - Optional resolved await context (if woken from await_events)
|
|
172
|
-
*/
|
|
173
|
-
buildWakeupMessage(events, executions, resolvedAwait) {
|
|
174
|
-
const sections = [];
|
|
175
|
-
sections.push("[Workflow Event]");
|
|
176
|
-
sections.push("");
|
|
177
|
-
// If woken from await, explain what triggered it
|
|
178
|
-
if (resolvedAwait) {
|
|
179
|
-
sections.push("=== AWAIT RESOLVED ===");
|
|
180
|
-
sections.push(`You were waiting for: ${resolvedAwait.eventTypes.join(", ")}`);
|
|
181
|
-
sections.push(`Triggered by: ${resolvedAwait.resolvedBy}`);
|
|
182
|
-
if (resolvedAwait.message) {
|
|
183
|
-
sections.push(`Context: ${resolvedAwait.message}`);
|
|
184
|
-
}
|
|
185
|
-
if (resolvedAwait.executionIds && resolvedAwait.executionIds.length > 0) {
|
|
186
|
-
sections.push(`Filtered executions: ${resolvedAwait.executionIds.join(", ")}`);
|
|
187
|
-
}
|
|
188
|
-
sections.push("");
|
|
189
|
-
}
|
|
190
|
-
if (events.length === 0) {
|
|
191
|
-
if (resolvedAwait) {
|
|
192
|
-
// If we have a resolved await but no events, it was likely a timeout
|
|
193
|
-
sections.push("No new events - this is likely a timeout wakeup.");
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
sections.push("No new events since last update.");
|
|
197
|
-
}
|
|
198
|
-
sections.push("");
|
|
199
|
-
sections.push("What would you like to do next?");
|
|
200
|
-
return sections.join("\n");
|
|
201
|
-
}
|
|
202
|
-
// Group events by type
|
|
203
|
-
const executionEvents = events.filter((e) => e.type === "step_completed" ||
|
|
204
|
-
e.type === "step_failed" ||
|
|
205
|
-
e.type === "step_started");
|
|
206
|
-
const escalationEvents = events.filter((e) => e.type === "escalation_resolved" || e.type === "user_response");
|
|
207
|
-
const lifecycleEvents = events.filter((e) => e.type === "workflow_paused" ||
|
|
208
|
-
e.type === "workflow_resumed");
|
|
209
|
-
// Execution updates
|
|
210
|
-
if (executionEvents.length > 0) {
|
|
211
|
-
sections.push("Executions changed since last update:");
|
|
212
|
-
sections.push("");
|
|
213
|
-
for (const event of executionEvents) {
|
|
214
|
-
const execution = event.executionId
|
|
215
|
-
? executions.get(event.executionId)
|
|
216
|
-
: undefined;
|
|
217
|
-
if (execution) {
|
|
218
|
-
sections.push(this.summarizeExecution(execution));
|
|
219
|
-
sections.push("");
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
// Fallback if execution not found
|
|
223
|
-
const issueId = event.payload.issueId || "unknown";
|
|
224
|
-
sections.push(`## ${issueId}`);
|
|
225
|
-
sections.push(`- Event: ${event.type}`);
|
|
226
|
-
if (event.payload) {
|
|
227
|
-
sections.push(`- Details: ${JSON.stringify(event.payload)}`);
|
|
228
|
-
}
|
|
229
|
-
sections.push("");
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
// Escalation responses
|
|
234
|
-
if (escalationEvents.length > 0) {
|
|
235
|
-
sections.push("User responses:");
|
|
236
|
-
sections.push("");
|
|
237
|
-
for (const event of escalationEvents) {
|
|
238
|
-
const payload = event.payload;
|
|
239
|
-
sections.push(`- **Action**: ${payload.action || "unknown"}`);
|
|
240
|
-
if (payload.message) {
|
|
241
|
-
sections.push(` Message: "${payload.message}"`);
|
|
242
|
-
}
|
|
243
|
-
sections.push("");
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
// Lifecycle events
|
|
247
|
-
if (lifecycleEvents.length > 0) {
|
|
248
|
-
for (const event of lifecycleEvents) {
|
|
249
|
-
if (event.type === "workflow_paused") {
|
|
250
|
-
sections.push("⚠️ Workflow was paused by user.");
|
|
251
|
-
sections.push("");
|
|
252
|
-
}
|
|
253
|
-
else if (event.type === "workflow_resumed") {
|
|
254
|
-
sections.push("✓ Workflow resumed.");
|
|
255
|
-
sections.push("");
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
sections.push("---");
|
|
260
|
-
sections.push("");
|
|
261
|
-
sections.push("Use `execution_trajectory` or `execution_changes` for details.");
|
|
262
|
-
sections.push("What would you like to do next?");
|
|
263
|
-
return sections.join("\n");
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Create a compact summary of an execution result.
|
|
267
|
-
*/
|
|
268
|
-
summarizeExecution(execution) {
|
|
269
|
-
const lines = [];
|
|
270
|
-
// Header with issue ID and title (from issue_id if available)
|
|
271
|
-
const issueId = execution.issue_id || "unknown";
|
|
272
|
-
lines.push(`## ${issueId}`);
|
|
273
|
-
// Status
|
|
274
|
-
const statusEmoji = this.getStatusEmoji(execution.status);
|
|
275
|
-
lines.push(`- Status: ${statusEmoji} ${execution.status.toUpperCase()}`);
|
|
276
|
-
// Duration
|
|
277
|
-
if (execution.started_at && execution.completed_at) {
|
|
278
|
-
const startTime = new Date(execution.started_at).getTime();
|
|
279
|
-
const endTime = new Date(execution.completed_at).getTime();
|
|
280
|
-
const duration = endTime - startTime;
|
|
281
|
-
lines.push(`- Duration: ${formatDuration(duration)}`);
|
|
282
|
-
}
|
|
283
|
-
// Files changed
|
|
284
|
-
const { count, additions, deletions } = parseFilesChanged(execution.files_changed);
|
|
285
|
-
if (count > 0) {
|
|
286
|
-
lines.push(`- Files changed: ${count} (+${additions}, -${deletions})`);
|
|
287
|
-
}
|
|
288
|
-
// For completed executions, show summary
|
|
289
|
-
if (execution.status === "completed" && execution.summary) {
|
|
290
|
-
const summary = execution.summary.length > 200
|
|
291
|
-
? execution.summary.slice(0, 200) + "..."
|
|
292
|
-
: execution.summary;
|
|
293
|
-
lines.push(`- Summary: "${summary}"`);
|
|
294
|
-
}
|
|
295
|
-
// For failed executions, show error
|
|
296
|
-
if (execution.status === "failed") {
|
|
297
|
-
if (execution.exit_code !== null) {
|
|
298
|
-
lines.push(`- Exit code: ${execution.exit_code}`);
|
|
299
|
-
}
|
|
300
|
-
if (execution.error_message) {
|
|
301
|
-
const error = execution.error_message.length > 200
|
|
302
|
-
? execution.error_message.slice(0, 200) + "..."
|
|
303
|
-
: execution.error_message;
|
|
304
|
-
lines.push(`- Error: "${error}"`);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
return lines.join("\n");
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Get emoji for execution status
|
|
311
|
-
*/
|
|
312
|
-
getStatusEmoji(status) {
|
|
313
|
-
switch (status) {
|
|
314
|
-
case "completed":
|
|
315
|
-
return "✓";
|
|
316
|
-
case "failed":
|
|
317
|
-
return "✗";
|
|
318
|
-
case "running":
|
|
319
|
-
return "⏳";
|
|
320
|
-
case "stopped":
|
|
321
|
-
return "⏹";
|
|
322
|
-
case "pending":
|
|
323
|
-
return "○";
|
|
324
|
-
default:
|
|
325
|
-
return "•";
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
//# sourceMappingURL=prompt-builder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
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CAAC;QAED,oCAAoC;QACpC,IAAI,SAAS,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAClC,IAAI,SAAS,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;gBACjC,KAAK,CAAC,IAAI,CAAC,gBAAgB,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC;YACpD,CAAC;YACD,IAAI,SAAS,CAAC,aAAa,EAAE,CAAC;gBAC5B,MAAM,KAAK,GACT,SAAS,CAAC,aAAa,CAAC,MAAM,GAAG,GAAG;oBAClC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;oBAC/C,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC;gBAC9B,KAAK,CAAC,IAAI,CAAC,aAAa,KAAK,GAAG,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACK,cAAc,CAAC,MAAc;QACnC,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,WAAW;gBACd,OAAO,GAAG,CAAC;YACb,KAAK,QAAQ;gBACX,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb;gBACE,OAAO,GAAG,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WorkflowWakeupService
|
|
3
|
-
*
|
|
4
|
-
* Handles event recording and orchestrator wakeups.
|
|
5
|
-
* Events are batched within a configurable window before triggering wakeups.
|
|
6
|
-
*/
|
|
7
|
-
import type Database from "better-sqlite3";
|
|
8
|
-
import type { WorkflowEvent, WorkflowEventType } from "@sudocode-ai/types";
|
|
9
|
-
import type { AwaitableEventType } from "../mcp/types.js";
|
|
10
|
-
import type { ExecutionService } from "../../services/execution-service.js";
|
|
11
|
-
import type { WorkflowEventEmitter } from "../workflow-event-emitter.js";
|
|
12
|
-
import { WorkflowPromptBuilder } from "./prompt-builder.js";
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for wakeup behavior
|
|
15
|
-
*/
|
|
16
|
-
export interface WakeupConfig {
|
|
17
|
-
/** Batch window in ms - events within this window are batched into one wakeup */
|
|
18
|
-
batchWindowMs: number;
|
|
19
|
-
/** Optional: wake orchestrator if idle for this long */
|
|
20
|
-
idleTimeoutMs?: number;
|
|
21
|
-
/** Optional: wake orchestrator if execution takes longer than this */
|
|
22
|
-
executionTimeoutMs?: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Default wakeup configuration
|
|
26
|
-
*/
|
|
27
|
-
export declare const DEFAULT_WAKEUP_CONFIG: WakeupConfig;
|
|
28
|
-
/**
|
|
29
|
-
* Event to record
|
|
30
|
-
*/
|
|
31
|
-
export interface RecordEventParams {
|
|
32
|
-
workflowId: string;
|
|
33
|
-
type: WorkflowEventType;
|
|
34
|
-
executionId?: string;
|
|
35
|
-
stepId?: string;
|
|
36
|
-
payload: Record<string, unknown>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Internal structure for tracking pending await conditions.
|
|
40
|
-
* Stored in-memory, not persisted to database.
|
|
41
|
-
*/
|
|
42
|
-
export interface PendingAwait {
|
|
43
|
-
id: string;
|
|
44
|
-
workflowId: string;
|
|
45
|
-
eventTypes: AwaitableEventType[];
|
|
46
|
-
executionIds?: string[];
|
|
47
|
-
timeoutAt?: string;
|
|
48
|
-
message?: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Resolved await with trigger information
|
|
53
|
-
*/
|
|
54
|
-
export interface ResolvedAwait extends PendingAwait {
|
|
55
|
-
resolvedBy: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Parameters for registering an await condition
|
|
59
|
-
*/
|
|
60
|
-
export interface RegisterAwaitParams {
|
|
61
|
-
workflowId: string;
|
|
62
|
-
eventTypes: AwaitableEventType[];
|
|
63
|
-
executionIds?: string[];
|
|
64
|
-
timeoutSeconds?: number;
|
|
65
|
-
message?: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Service for recording workflow events and triggering orchestrator wakeups.
|
|
69
|
-
*
|
|
70
|
-
* Events are batched within a configurable window. When the window expires,
|
|
71
|
-
* a wakeup is triggered by creating a follow-up execution for the orchestrator.
|
|
72
|
-
*/
|
|
73
|
-
export declare class WorkflowWakeupService {
|
|
74
|
-
private db;
|
|
75
|
-
private executionService;
|
|
76
|
-
private promptBuilder;
|
|
77
|
-
private eventEmitter;
|
|
78
|
-
private config;
|
|
79
|
-
/** Pending wakeup timers by workflow ID */
|
|
80
|
-
private pendingWakeups;
|
|
81
|
-
/** Active execution timeout timers by execution ID */
|
|
82
|
-
private executionTimeouts;
|
|
83
|
-
/** Pending await conditions by workflow ID */
|
|
84
|
-
private pendingAwaits;
|
|
85
|
-
/** Await timeout timers by await ID */
|
|
86
|
-
private awaitTimeouts;
|
|
87
|
-
/** Last resolved await for each workflow (for wakeup message context) */
|
|
88
|
-
private resolvedAwaits;
|
|
89
|
-
/** Whether the service is running (for timeout monitoring) */
|
|
90
|
-
private _isRunning;
|
|
91
|
-
/** Check if the service is running */
|
|
92
|
-
get isRunning(): boolean;
|
|
93
|
-
constructor(deps: {
|
|
94
|
-
db: Database.Database;
|
|
95
|
-
executionService: ExecutionService;
|
|
96
|
-
promptBuilder: WorkflowPromptBuilder;
|
|
97
|
-
eventEmitter: WorkflowEventEmitter;
|
|
98
|
-
config?: Partial<WakeupConfig>;
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* Record a workflow event.
|
|
102
|
-
* Automatically schedules a wakeup after the batch window.
|
|
103
|
-
* If an await condition is satisfied, triggers immediate wakeup.
|
|
104
|
-
*/
|
|
105
|
-
recordEvent(params: RecordEventParams): Promise<void>;
|
|
106
|
-
/**
|
|
107
|
-
* Get all unprocessed events for a workflow.
|
|
108
|
-
*/
|
|
109
|
-
getUnprocessedEvents(workflowId: string): WorkflowEvent[];
|
|
110
|
-
/**
|
|
111
|
-
* Mark events as processed.
|
|
112
|
-
*/
|
|
113
|
-
markEventsProcessed(eventIds: string[]): void;
|
|
114
|
-
/**
|
|
115
|
-
* Schedule a wakeup for a workflow.
|
|
116
|
-
* Debounced within the batch window - multiple events will be batched.
|
|
117
|
-
*/
|
|
118
|
-
scheduleWakeup(workflowId: string): void;
|
|
119
|
-
/**
|
|
120
|
-
* Cancel a pending wakeup for a workflow.
|
|
121
|
-
*/
|
|
122
|
-
cancelPendingWakeup(workflowId: string): void;
|
|
123
|
-
/**
|
|
124
|
-
* Start a timeout for an execution.
|
|
125
|
-
*
|
|
126
|
-
* When the timeout fires, the execution is cancelled and a step_failed
|
|
127
|
-
* event is recorded with reason "timeout".
|
|
128
|
-
*
|
|
129
|
-
* The timeout deadline is persisted to the database so it can be recovered
|
|
130
|
-
* after server restart.
|
|
131
|
-
*
|
|
132
|
-
* @param executionId - The execution to track
|
|
133
|
-
* @param workflowId - The workflow the execution belongs to
|
|
134
|
-
* @param stepId - The workflow step ID
|
|
135
|
-
* @param timeoutMs - Timeout duration in milliseconds
|
|
136
|
-
*/
|
|
137
|
-
startExecutionTimeout(executionId: string, workflowId: string, stepId: string, timeoutMs: number): void;
|
|
138
|
-
/**
|
|
139
|
-
* Clear timeout for an execution.
|
|
140
|
-
*
|
|
141
|
-
* Call this when an execution completes normally to prevent
|
|
142
|
-
* the timeout from firing. Also marks the persisted timeout
|
|
143
|
-
* event as processed in the database.
|
|
144
|
-
*
|
|
145
|
-
* @param executionId - The execution to clear timeout for
|
|
146
|
-
*/
|
|
147
|
-
clearExecutionTimeout(executionId: string): void;
|
|
148
|
-
/**
|
|
149
|
-
* Handle an execution timeout.
|
|
150
|
-
*
|
|
151
|
-
* Cancels the execution and records a step_failed event.
|
|
152
|
-
*
|
|
153
|
-
* @param executionId - The timed-out execution
|
|
154
|
-
* @param workflowId - The workflow containing the execution
|
|
155
|
-
* @param stepId - The workflow step that timed out
|
|
156
|
-
*/
|
|
157
|
-
private handleExecutionTimeout;
|
|
158
|
-
/**
|
|
159
|
-
* Trigger an immediate wakeup for a workflow.
|
|
160
|
-
* Collects unprocessed events, builds a wakeup message, and creates
|
|
161
|
-
* a follow-up execution for the orchestrator.
|
|
162
|
-
*/
|
|
163
|
-
triggerWakeup(workflowId: string): Promise<void>;
|
|
164
|
-
/**
|
|
165
|
-
* Start the wakeup service (enables timeout monitoring).
|
|
166
|
-
*/
|
|
167
|
-
start(): void;
|
|
168
|
-
/**
|
|
169
|
-
* Recover state from the database after server restart.
|
|
170
|
-
*
|
|
171
|
-
* This method:
|
|
172
|
-
* 1. Recovers pending await conditions from workflow_events
|
|
173
|
-
* 2. Reschedules await timeouts (calculating remaining time)
|
|
174
|
-
* 3. Triggers immediate wakeup for expired awaits
|
|
175
|
-
* 4. Schedules wakeups for workflows with unprocessed events
|
|
176
|
-
* 5. Recovers execution timeout timers
|
|
177
|
-
*
|
|
178
|
-
* Should be called during server startup after the service is constructed.
|
|
179
|
-
*/
|
|
180
|
-
recoverState(): Promise<void>;
|
|
181
|
-
/**
|
|
182
|
-
* Recover pending await conditions from the database.
|
|
183
|
-
*/
|
|
184
|
-
private recoverPendingAwaits;
|
|
185
|
-
/**
|
|
186
|
-
* Schedule wakeups for workflows with unprocessed events.
|
|
187
|
-
*/
|
|
188
|
-
private recoverPendingWakeups;
|
|
189
|
-
/**
|
|
190
|
-
* Recover execution timeout timers from the database.
|
|
191
|
-
*
|
|
192
|
-
* Finds unprocessed execution_timeout events and reschedules the timers
|
|
193
|
-
* with the remaining time. If the timeout has already expired, handles
|
|
194
|
-
* the timeout immediately.
|
|
195
|
-
*/
|
|
196
|
-
private recoverExecutionTimeouts;
|
|
197
|
-
/**
|
|
198
|
-
* Stop the wakeup service.
|
|
199
|
-
* Cancels all pending wakeups, execution timeouts, and await conditions.
|
|
200
|
-
*/
|
|
201
|
-
stop(): void;
|
|
202
|
-
/**
|
|
203
|
-
* Register a new await condition.
|
|
204
|
-
* Called by the await-events API endpoint.
|
|
205
|
-
*
|
|
206
|
-
* Persists the await to workflow_events for recovery after server restart.
|
|
207
|
-
*/
|
|
208
|
-
registerAwait(params: RegisterAwaitParams): {
|
|
209
|
-
id: string;
|
|
210
|
-
timeoutAt?: string;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Check if an event satisfies the pending await for a workflow.
|
|
214
|
-
* Called internally when recording events.
|
|
215
|
-
*/
|
|
216
|
-
private checkAwaitCondition;
|
|
217
|
-
/**
|
|
218
|
-
* Map workflow event type to awaitable event type.
|
|
219
|
-
*/
|
|
220
|
-
private mapToAwaitableEventType;
|
|
221
|
-
/**
|
|
222
|
-
* Resolve an await condition (internal).
|
|
223
|
-
*
|
|
224
|
-
* Marks the await event as processed in the database for recovery tracking.
|
|
225
|
-
*/
|
|
226
|
-
private resolveAwait;
|
|
227
|
-
/**
|
|
228
|
-
* Schedule timeout for an await.
|
|
229
|
-
*/
|
|
230
|
-
private scheduleAwaitTimeout;
|
|
231
|
-
/**
|
|
232
|
-
* Get the last resolved await for a workflow (for wakeup message).
|
|
233
|
-
* Clears after retrieval.
|
|
234
|
-
*/
|
|
235
|
-
getAndClearResolvedAwait(workflowId: string): ResolvedAwait | undefined;
|
|
236
|
-
/**
|
|
237
|
-
* Clear all await state for a workflow (on cancel/complete).
|
|
238
|
-
* Marks any pending await events as processed in the database.
|
|
239
|
-
*/
|
|
240
|
-
clearAwaitState(workflowId: string): void;
|
|
241
|
-
/**
|
|
242
|
-
* Check if a workflow has a pending await condition.
|
|
243
|
-
*/
|
|
244
|
-
hasPendingAwait(workflowId: string): boolean;
|
|
245
|
-
/**
|
|
246
|
-
* Get the pending await for a workflow (if any).
|
|
247
|
-
*/
|
|
248
|
-
getPendingAwait(workflowId: string): PendingAwait | undefined;
|
|
249
|
-
/**
|
|
250
|
-
* Get a workflow by ID.
|
|
251
|
-
*/
|
|
252
|
-
private getWorkflow;
|
|
253
|
-
/**
|
|
254
|
-
* Get executions referenced by events.
|
|
255
|
-
*/
|
|
256
|
-
private getExecutionsForEvents;
|
|
257
|
-
/**
|
|
258
|
-
* Update the workflow's orchestrator execution ID.
|
|
259
|
-
*/
|
|
260
|
-
private updateOrchestratorExecution;
|
|
261
|
-
}
|
|
262
|
-
//# sourceMappingURL=wakeup-service.d.ts.map
|
package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wakeup-service.d.ts","sourceRoot":"","sources":["../../../src/workflow/services/wakeup-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EAGlB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAM5D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,aAAa,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAEnC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,C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