@ai-setting/roy-agent-cli 1.3.18 → 1.3.22
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 +17 -39
- package/dist/bin/roy +0 -0
- package/dist/bin/roy.js +0 -127298
- package/dist/cli/src/bin/roy.d.ts +0 -6
- package/dist/cli/src/bin/roy.js +0 -10
- package/dist/cli/src/cli.d.ts +0 -5
- package/dist/cli/src/cli.js +0 -96
- package/dist/cli/src/commands/act.d.ts +0 -44
- package/dist/cli/src/commands/act.js +0 -415
- package/dist/cli/src/commands/commands-add.d.ts +0 -17
- package/dist/cli/src/commands/commands-add.js +0 -90
- package/dist/cli/src/commands/commands-dirs.d.ts +0 -12
- package/dist/cli/src/commands/commands-dirs.js +0 -58
- package/dist/cli/src/commands/commands-info.d.ts +0 -12
- package/dist/cli/src/commands/commands-info.js +0 -76
- package/dist/cli/src/commands/commands-list.d.ts +0 -13
- package/dist/cli/src/commands/commands-list.js +0 -132
- package/dist/cli/src/commands/commands-remove.d.ts +0 -14
- package/dist/cli/src/commands/commands-remove.js +0 -136
- package/dist/cli/src/commands/commands.d.ts +0 -27
- package/dist/cli/src/commands/commands.js +0 -39
- package/dist/cli/src/commands/config/config-service.d.ts +0 -70
- package/dist/cli/src/commands/config/config-service.js +0 -233
- package/dist/cli/src/commands/config/deep-merge.d.ts +0 -22
- package/dist/cli/src/commands/config/deep-merge.js +0 -33
- package/dist/cli/src/commands/config/export.d.ts +0 -15
- package/dist/cli/src/commands/config/export.js +0 -83
- package/dist/cli/src/commands/config/import.d.ts +0 -16
- package/dist/cli/src/commands/config/import.js +0 -102
- package/dist/cli/src/commands/config/index.d.ts +0 -13
- package/dist/cli/src/commands/config/index.js +0 -29
- package/dist/cli/src/commands/config/list.d.ts +0 -18
- package/dist/cli/src/commands/config/list.js +0 -233
- package/dist/cli/src/commands/config/types.d.ts +0 -21
- package/dist/cli/src/commands/config/types.js +0 -49
- package/dist/cli/src/commands/debug/index.d.ts +0 -19
- package/dist/cli/src/commands/debug/index.js +0 -34
- package/dist/cli/src/commands/debug/log.d.ts +0 -29
- package/dist/cli/src/commands/debug/log.js +0 -102
- package/dist/cli/src/commands/debug/span.d.ts +0 -24
- package/dist/cli/src/commands/debug/span.js +0 -187
- package/dist/cli/src/commands/debug/trace.d.ts +0 -27
- package/dist/cli/src/commands/debug/trace.js +0 -111
- package/dist/cli/src/commands/eventsource/add.d.ts +0 -19
- package/dist/cli/src/commands/eventsource/add.js +0 -108
- package/dist/cli/src/commands/eventsource/index.d.ts +0 -20
- package/dist/cli/src/commands/eventsource/index.js +0 -35
- package/dist/cli/src/commands/eventsource/list.d.ts +0 -13
- package/dist/cli/src/commands/eventsource/list.js +0 -159
- package/dist/cli/src/commands/eventsource/remove.d.ts +0 -13
- package/dist/cli/src/commands/eventsource/remove.js +0 -74
- package/dist/cli/src/commands/eventsource/start.d.ts +0 -13
- package/dist/cli/src/commands/eventsource/start.js +0 -81
- package/dist/cli/src/commands/eventsource/status.d.ts +0 -13
- package/dist/cli/src/commands/eventsource/status.js +0 -149
- package/dist/cli/src/commands/eventsource/stop.d.ts +0 -13
- package/dist/cli/src/commands/eventsource/stop.js +0 -69
- package/dist/cli/src/commands/index.d.ts +0 -15
- package/dist/cli/src/commands/index.js +0 -14
- package/dist/cli/src/commands/input-handler.d.ts +0 -27
- package/dist/cli/src/commands/input-handler.js +0 -38
- package/dist/cli/src/commands/interactive.d.ts +0 -141
- package/dist/cli/src/commands/interactive.js +0 -854
- package/dist/cli/src/commands/lsp/check.d.ts +0 -9
- package/dist/cli/src/commands/lsp/check.js +0 -79
- package/dist/cli/src/commands/lsp/index.d.ts +0 -12
- package/dist/cli/src/commands/lsp/index.js +0 -26
- package/dist/cli/src/commands/lsp/install.d.ts +0 -9
- package/dist/cli/src/commands/lsp/install.js +0 -114
- package/dist/cli/src/commands/lsp/list.d.ts +0 -9
- package/dist/cli/src/commands/lsp/list.js +0 -53
- package/dist/cli/src/commands/mcp/index.d.ts +0 -11
- package/dist/cli/src/commands/mcp/index.js +0 -23
- package/dist/cli/src/commands/mcp/list.d.ts +0 -14
- package/dist/cli/src/commands/mcp/list.js +0 -100
- package/dist/cli/src/commands/mcp/reload.d.ts +0 -12
- package/dist/cli/src/commands/mcp/reload.js +0 -54
- package/dist/cli/src/commands/mcp/tools.d.ts +0 -15
- package/dist/cli/src/commands/mcp/tools.js +0 -101
- package/dist/cli/src/commands/memory/index.d.ts +0 -11
- package/dist/cli/src/commands/memory/index.js +0 -11
- package/dist/cli/src/commands/memory/memory.d.ts +0 -10
- package/dist/cli/src/commands/memory/memory.js +0 -21
- package/dist/cli/src/commands/memory/organize.d.ts +0 -48
- package/dist/cli/src/commands/memory/organize.js +0 -233
- package/dist/cli/src/commands/memory/recall.d.ts +0 -10
- package/dist/cli/src/commands/memory/recall.js +0 -69
- package/dist/cli/src/commands/memory/record.d.ts +0 -11
- package/dist/cli/src/commands/memory/record.js +0 -268
- package/dist/cli/src/commands/plugin.d.ts +0 -112
- package/dist/cli/src/commands/plugin.js +0 -186
- package/dist/cli/src/commands/sessions/active.d.ts +0 -14
- package/dist/cli/src/commands/sessions/active.js +0 -79
- package/dist/cli/src/commands/sessions/add-message.d.ts +0 -8
- package/dist/cli/src/commands/sessions/add-message.js +0 -78
- package/dist/cli/src/commands/sessions/checkpoints.d.ts +0 -8
- package/dist/cli/src/commands/sessions/checkpoints.js +0 -133
- package/dist/cli/src/commands/sessions/compact.d.ts +0 -16
- package/dist/cli/src/commands/sessions/compact.js +0 -240
- package/dist/cli/src/commands/sessions/delete.d.ts +0 -14
- package/dist/cli/src/commands/sessions/delete.js +0 -214
- package/dist/cli/src/commands/sessions/get.d.ts +0 -8
- package/dist/cli/src/commands/sessions/get.js +0 -129
- package/dist/cli/src/commands/sessions/grep.d.ts +0 -15
- package/dist/cli/src/commands/sessions/grep.js +0 -210
- package/dist/cli/src/commands/sessions/index.d.ts +0 -42
- package/dist/cli/src/commands/sessions/index.js +0 -93
- package/dist/cli/src/commands/sessions/list.d.ts +0 -21
- package/dist/cli/src/commands/sessions/list.js +0 -163
- package/dist/cli/src/commands/sessions/messages.d.ts +0 -8
- package/dist/cli/src/commands/sessions/messages.js +0 -228
- package/dist/cli/src/commands/sessions/mock.d.ts +0 -10
- package/dist/cli/src/commands/sessions/mock.js +0 -172
- package/dist/cli/src/commands/sessions/new.d.ts +0 -16
- package/dist/cli/src/commands/sessions/new.js +0 -66
- package/dist/cli/src/commands/sessions/rename.d.ts +0 -8
- package/dist/cli/src/commands/sessions/rename.js +0 -82
- package/dist/cli/src/commands/shared/event-handler.d.ts +0 -91
- package/dist/cli/src/commands/shared/event-handler.js +0 -167
- package/dist/cli/src/commands/shared/event-message-formatter.d.ts +0 -150
- package/dist/cli/src/commands/shared/event-message-formatter.js +0 -198
- package/dist/cli/src/commands/shared/index.d.ts +0 -10
- package/dist/cli/src/commands/shared/index.js +0 -8
- package/dist/cli/src/commands/shared/query-executor.d.ts +0 -81
- package/dist/cli/src/commands/shared/query-executor.js +0 -254
- package/dist/cli/src/commands/shared/session-manager.d.ts +0 -49
- package/dist/cli/src/commands/shared/session-manager.js +0 -93
- package/dist/cli/src/commands/skills/get.d.ts +0 -14
- package/dist/cli/src/commands/skills/get.js +0 -76
- package/dist/cli/src/commands/skills/index.d.ts +0 -18
- package/dist/cli/src/commands/skills/index.js +0 -36
- package/dist/cli/src/commands/skills/list.d.ts +0 -8
- package/dist/cli/src/commands/skills/list.js +0 -112
- package/dist/cli/src/commands/skills/reload.d.ts +0 -12
- package/dist/cli/src/commands/skills/reload.js +0 -46
- package/dist/cli/src/commands/skills/search.d.ts +0 -15
- package/dist/cli/src/commands/skills/search.js +0 -110
- package/dist/cli/src/commands/skills/show-config.d.ts +0 -12
- package/dist/cli/src/commands/skills/show-config.js +0 -74
- package/dist/cli/src/commands/tasks/complete.d.ts +0 -15
- package/dist/cli/src/commands/tasks/complete.js +0 -72
- package/dist/cli/src/commands/tasks/create.d.ts +0 -19
- package/dist/cli/src/commands/tasks/create.js +0 -93
- package/dist/cli/src/commands/tasks/delete.d.ts +0 -14
- package/dist/cli/src/commands/tasks/delete.js +0 -71
- package/dist/cli/src/commands/tasks/get.d.ts +0 -15
- package/dist/cli/src/commands/tasks/get.js +0 -98
- package/dist/cli/src/commands/tasks/index.d.ts +0 -20
- package/dist/cli/src/commands/tasks/index.js +0 -50
- package/dist/cli/src/commands/tasks/list.d.ts +0 -18
- package/dist/cli/src/commands/tasks/list.js +0 -116
- package/dist/cli/src/commands/tasks/operations.d.ts +0 -8
- package/dist/cli/src/commands/tasks/operations.js +0 -95
- package/dist/cli/src/commands/tasks/update.d.ts +0 -20
- package/dist/cli/src/commands/tasks/update.js +0 -93
- package/dist/cli/src/commands/tools/exec-tool.d.ts +0 -14
- package/dist/cli/src/commands/tools/exec-tool.js +0 -103
- package/dist/cli/src/commands/tools/get.d.ts +0 -14
- package/dist/cli/src/commands/tools/get.js +0 -97
- package/dist/cli/src/commands/tools/index.d.ts +0 -16
- package/dist/cli/src/commands/tools/index.js +0 -30
- package/dist/cli/src/commands/tools/list.d.ts +0 -14
- package/dist/cli/src/commands/tools/list.js +0 -92
- package/dist/cli/src/commands/tools/shared/index.d.ts +0 -7
- package/dist/cli/src/commands/tools/shared/index.js +0 -7
- package/dist/cli/src/commands/tools/shared/schema-helper.d.ts +0 -53
- package/dist/cli/src/commands/tools/shared/schema-helper.js +0 -74
- package/dist/cli/src/commands/workflow/commands/add.d.ts +0 -22
- package/dist/cli/src/commands/workflow/commands/add.js +0 -271
- package/dist/cli/src/commands/workflow/commands/get.d.ts +0 -20
- package/dist/cli/src/commands/workflow/commands/get.js +0 -169
- package/dist/cli/src/commands/workflow/commands/list.d.ts +0 -21
- package/dist/cli/src/commands/workflow/commands/list.js +0 -117
- package/dist/cli/src/commands/workflow/commands/nodes.d.ts +0 -34
- package/dist/cli/src/commands/workflow/commands/nodes.js +0 -465
- package/dist/cli/src/commands/workflow/commands/remove.d.ts +0 -16
- package/dist/cli/src/commands/workflow/commands/remove.js +0 -77
- package/dist/cli/src/commands/workflow/commands/run.d.ts +0 -32
- package/dist/cli/src/commands/workflow/commands/run.js +0 -335
- package/dist/cli/src/commands/workflow/commands/status.d.ts +0 -17
- package/dist/cli/src/commands/workflow/commands/status.js +0 -125
- package/dist/cli/src/commands/workflow/commands/stop.d.ts +0 -15
- package/dist/cli/src/commands/workflow/commands/stop.js +0 -70
- package/dist/cli/src/commands/workflow/commands/update.d.ts +0 -19
- package/dist/cli/src/commands/workflow/commands/update.js +0 -105
- package/dist/cli/src/commands/workflow/commands/validate.d.ts +0 -14
- package/dist/cli/src/commands/workflow/commands/validate.js +0 -118
- package/dist/cli/src/commands/workflow/index.d.ts +0 -28
- package/dist/cli/src/commands/workflow/index.js +0 -44
- package/dist/cli/src/commands/workflow/renderers.d.ts +0 -60
- package/dist/cli/src/commands/workflow/renderers.js +0 -320
- package/dist/cli/src/commands/workflow/validators/index.d.ts +0 -8
- package/dist/cli/src/commands/workflow/validators/index.js +0 -8
- package/dist/cli/src/commands/workflow/validators/node-validator-factory.d.ts +0 -13
- package/dist/cli/src/commands/workflow/validators/node-validator-factory.js +0 -35
- package/dist/cli/src/commands/workflow/validators/node-validator.d.ts +0 -37
- package/dist/cli/src/commands/workflow/validators/node-validator.js +0 -89
- package/dist/cli/src/commands/workflow/validators/nodes/agent-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/agent-node-validator.js +0 -50
- package/dist/cli/src/commands/workflow/validators/nodes/condition-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/condition-node-validator.js +0 -28
- package/dist/cli/src/commands/workflow/validators/nodes/decorator-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/decorator-node-validator.js +0 -38
- package/dist/cli/src/commands/workflow/validators/nodes/merge-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/merge-node-validator.js +0 -41
- package/dist/cli/src/commands/workflow/validators/nodes/skill-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/skill-node-validator.js +0 -27
- package/dist/cli/src/commands/workflow/validators/nodes/tool-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/tool-node-validator.js +0 -45
- package/dist/cli/src/commands/workflow/validators/nodes/workflow-node-validator.d.ts +0 -11
- package/dist/cli/src/commands/workflow/validators/nodes/workflow-node-validator.js +0 -27
- package/dist/cli/src/commands/workflow/validators/types.d.ts +0 -74
- package/dist/cli/src/commands/workflow/validators/types.js +0 -18
- package/dist/cli/src/commands/workflow/validators/workflow-validator.d.ts +0 -37
- package/dist/cli/src/commands/workflow/validators/workflow-validator.js +0 -284
- package/dist/cli/src/index.d.ts +0 -16
- package/dist/cli/src/index.js +0 -18
- package/dist/cli/src/plugin/apply.d.ts +0 -51
- package/dist/cli/src/plugin/apply.js +0 -85
- package/dist/cli/src/plugin/discover.d.ts +0 -29
- package/dist/cli/src/plugin/discover.js +0 -187
- package/dist/cli/src/plugin/index.d.ts +0 -16
- package/dist/cli/src/plugin/index.js +0 -18
- package/dist/cli/src/plugin/registry.d.ts +0 -109
- package/dist/cli/src/plugin/registry.js +0 -226
- package/dist/cli/src/plugin/types.d.ts +0 -145
- package/dist/cli/src/plugin/types.js +0 -7
- package/dist/cli/src/services/context-handler.service.d.ts +0 -72
- package/dist/cli/src/services/context-handler.service.js +0 -312
- package/dist/cli/src/services/environment.service.d.ts +0 -129
- package/dist/cli/src/services/environment.service.js +0 -544
- package/dist/cli/src/services/output.service.d.ts +0 -68
- package/dist/cli/src/services/output.service.js +0 -104
- package/dist/cli/src/services/quiet-mode.service.d.ts +0 -58
- package/dist/cli/src/services/quiet-mode.service.js +0 -74
- package/dist/cli/src/services/stream-output.service.d.ts +0 -116
- package/dist/cli/src/services/stream-output.service.js +0 -242
- package/dist/cli/src/util/which.d.ts +0 -13
- package/dist/cli/src/util/which.js +0 -50
- package/dist/coder-harness/src/index.d.ts +0 -32
- package/dist/coder-harness/src/index.js +0 -36
- package/dist/coder-harness/src/lsp/client.d.ts +0 -104
- package/dist/coder-harness/src/lsp/client.js +0 -490
- package/dist/coder-harness/src/lsp/client.test.d.ts +0 -5
- package/dist/coder-harness/src/lsp/client.test.js +0 -154
- package/dist/coder-harness/src/lsp/language-map.d.ts +0 -42
- package/dist/coder-harness/src/lsp/language-map.js +0 -105
- package/dist/coder-harness/src/lsp/language-map.test.d.ts +0 -5
- package/dist/coder-harness/src/lsp/language-map.test.js +0 -95
- package/dist/coder-harness/src/lsp/manager.d.ts +0 -166
- package/dist/coder-harness/src/lsp/manager.js +0 -457
- package/dist/coder-harness/src/lsp/manager.test.d.ts +0 -11
- package/dist/coder-harness/src/lsp/manager.test.js +0 -121
- package/dist/coder-harness/src/lsp/preload.integration.test.d.ts +0 -5
- package/dist/coder-harness/src/lsp/preload.integration.test.js +0 -125
- package/dist/coder-harness/src/lsp/server.d.ts +0 -72
- package/dist/coder-harness/src/lsp/server.js +0 -271
- package/dist/coder-harness/src/lsp/server.test.d.ts +0 -5
- package/dist/coder-harness/src/lsp/server.test.js +0 -78
- package/dist/coder-harness/src/lsp-deps/config.d.ts +0 -84
- package/dist/coder-harness/src/lsp-deps/config.js +0 -123
- package/dist/coder-harness/src/lsp-deps/index.d.ts +0 -10
- package/dist/coder-harness/src/lsp-deps/index.js +0 -8
- package/dist/coder-harness/src/lsp-deps/installer.d.ts +0 -101
- package/dist/coder-harness/src/lsp-deps/installer.js +0 -207
- package/dist/coder-harness/src/plugins/code-check-manager.d.ts +0 -43
- package/dist/coder-harness/src/plugins/code-check-manager.js +0 -238
- package/dist/coder-harness/src/plugins/code-check-manager.test.d.ts +0 -2
- package/dist/coder-harness/src/plugins/code-check-manager.test.js +0 -45
- package/dist/coder-harness/src/plugins/code-check-plugin.d.ts +0 -79
- package/dist/coder-harness/src/plugins/code-check-plugin.js +0 -181
- package/dist/coder-harness/src/plugins/code-check-plugin.test.d.ts +0 -2
- package/dist/coder-harness/src/plugins/code-check-plugin.test.js +0 -94
- package/dist/coder-harness/src/plugins/lsp-plugin.d.ts +0 -131
- package/dist/coder-harness/src/plugins/lsp-plugin.js +0 -253
- package/dist/coder-harness/src/plugins/lsp-plugin.test.d.ts +0 -9
- package/dist/coder-harness/src/plugins/lsp-plugin.test.js +0 -304
- package/dist/coder-harness/src/plugins/plugin-hook-adapter.d.ts +0 -192
- package/dist/coder-harness/src/plugins/plugin-hook-adapter.js +0 -294
- package/dist/coder-harness/src/plugins/plugin-hook-adapter.test.d.ts +0 -5
- package/dist/coder-harness/src/plugins/plugin-hook-adapter.test.js +0 -312
- package/dist/coder-harness/src/plugins/reminder-plugin.d.ts +0 -69
- package/dist/coder-harness/src/plugins/reminder-plugin.js +0 -92
- package/dist/coder-harness/src/plugins/reminder-plugin.test.d.ts +0 -5
- package/dist/coder-harness/src/plugins/reminder-plugin.test.js +0 -132
- package/dist/coder-harness/src/types/linter.d.ts +0 -263
- package/dist/coder-harness/src/types/linter.js +0 -18
- package/dist/coder-harness/src/util/glob.d.ts +0 -22
- package/dist/coder-harness/src/util/glob.js +0 -31
- package/dist/coder-harness/src/util/glob.test.d.ts +0 -5
- package/dist/coder-harness/src/util/glob.test.js +0 -63
- package/dist/coder-harness/src/util/which.d.ts +0 -13
- package/dist/coder-harness/src/util/which.js +0 -46
- package/dist/core/src/config/config-component.d.ts +0 -323
- package/dist/core/src/config/config-component.js +0 -686
- package/dist/core/src/config/config-component.test.d.ts +0 -2
- package/dist/core/src/config/config-component.test.js +0 -486
- package/dist/core/src/config/config-parser.d.ts +0 -46
- package/dist/core/src/config/config-parser.js +0 -173
- package/dist/core/src/config/config-parser.test.d.ts +0 -2
- package/dist/core/src/config/config-parser.test.js +0 -252
- package/dist/core/src/config/decentralized-config.test.d.ts +0 -2
- package/dist/core/src/config/decentralized-config.test.js +0 -602
- package/dist/core/src/config/env-key.d.ts +0 -93
- package/dist/core/src/config/env-key.js +0 -189
- package/dist/core/src/config/env-source.d.ts +0 -83
- package/dist/core/src/config/env-source.js +0 -240
- package/dist/core/src/config/env-source.test.d.ts +0 -2
- package/dist/core/src/config/env-source.test.js +0 -196
- package/dist/core/src/config/file-source.d.ts +0 -87
- package/dist/core/src/config/file-source.js +0 -349
- package/dist/core/src/config/file-source.test.d.ts +0 -2
- package/dist/core/src/config/file-source.test.js +0 -275
- package/dist/core/src/config/index.d.ts +0 -5
- package/dist/core/src/config/index.js +0 -5
- package/dist/core/src/config/protocol-resolver.d.ts +0 -95
- package/dist/core/src/config/protocol-resolver.js +0 -175
- package/dist/core/src/config/protocol-resolver.test.d.ts +0 -2
- package/dist/core/src/config/protocol-resolver.test.js +0 -167
- package/dist/core/src/env/agent/agent-component.abort.test.d.ts +0 -11
- package/dist/core/src/env/agent/agent-component.abort.test.js +0 -440
- package/dist/core/src/env/agent/agent-component.d.ts +0 -349
- package/dist/core/src/env/agent/agent-component.js +0 -1481
- package/dist/core/src/env/agent/agent-component.record-session.test.d.ts +0 -14
- package/dist/core/src/env/agent/agent-component.record-session.test.js +0 -280
- package/dist/core/src/env/agent/agent-component.test.d.ts +0 -7
- package/dist/core/src/env/agent/agent-component.test.js +0 -1169
- package/dist/core/src/env/agent/agent-component.tool-error.test.d.ts +0 -25
- package/dist/core/src/env/agent/agent-component.tool-error.test.js +0 -272
- package/dist/core/src/env/agent/agent-config-registration.d.ts +0 -19
- package/dist/core/src/env/agent/agent-config-registration.js +0 -41
- package/dist/core/src/env/agent/agent-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/agent/agent-config-registration.test.js +0 -193
- package/dist/core/src/env/agent/agent-reminder-plugin.integration.test.d.ts +0 -7
- package/dist/core/src/env/agent/agent-reminder-plugin.integration.test.js +0 -206
- package/dist/core/src/env/agent/index.d.ts +0 -10
- package/dist/core/src/env/agent/index.js +0 -9
- package/dist/core/src/env/agent/summary-agent.d.ts +0 -101
- package/dist/core/src/env/agent/summary-agent.js +0 -473
- package/dist/core/src/env/agent/summary-agent.parse-hint.test.d.ts +0 -12
- package/dist/core/src/env/agent/summary-agent.parse-hint.test.js +0 -267
- package/dist/core/src/env/agent/types.d.ts +0 -394
- package/dist/core/src/env/agent/types.js +0 -9
- package/dist/core/src/env/commands/commands-component.d.ts +0 -98
- package/dist/core/src/env/commands/commands-component.js +0 -517
- package/dist/core/src/env/commands/commands-component.test.d.ts +0 -2
- package/dist/core/src/env/commands/commands-component.test.js +0 -304
- package/dist/core/src/env/commands/commands-config-registration.d.ts +0 -20
- package/dist/core/src/env/commands/commands-config-registration.js +0 -33
- package/dist/core/src/env/commands/commands-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/commands/commands-config-registration.test.js +0 -164
- package/dist/core/src/env/commands/index.d.ts +0 -8
- package/dist/core/src/env/commands/index.js +0 -8
- package/dist/core/src/env/commands/parser.d.ts +0 -19
- package/dist/core/src/env/commands/parser.js +0 -97
- package/dist/core/src/env/commands/parser.test.d.ts +0 -2
- package/dist/core/src/env/commands/parser.test.js +0 -155
- package/dist/core/src/env/commands/types.d.ts +0 -134
- package/dist/core/src/env/commands/types.js +0 -7
- package/dist/core/src/env/commands-prompt-integration.test.d.ts +0 -2
- package/dist/core/src/env/commands-prompt-integration.test.js +0 -205
- package/dist/core/src/env/component-env.test.d.ts +0 -2
- package/dist/core/src/env/component-env.test.js +0 -101
- package/dist/core/src/env/component.d.ts +0 -187
- package/dist/core/src/env/component.js +0 -160
- package/dist/core/src/env/constants.d.ts +0 -99
- package/dist/core/src/env/constants.js +0 -107
- package/dist/core/src/env/constants.test.d.ts +0 -2
- package/dist/core/src/env/constants.test.js +0 -55
- package/dist/core/src/env/debug/debug-component.d.ts +0 -161
- package/dist/core/src/env/debug/debug-component.js +0 -441
- package/dist/core/src/env/debug/debug-component.test.d.ts +0 -2
- package/dist/core/src/env/debug/debug-component.test.js +0 -89
- package/dist/core/src/env/debug/formatters/index.d.ts +0 -9
- package/dist/core/src/env/debug/formatters/index.js +0 -9
- package/dist/core/src/env/debug/formatters/repl-formatter.d.ts +0 -81
- package/dist/core/src/env/debug/formatters/repl-formatter.js +0 -309
- package/dist/core/src/env/debug/formatters/repl-formatter.test.d.ts +0 -2
- package/dist/core/src/env/debug/formatters/repl-formatter.test.js +0 -119
- package/dist/core/src/env/debug/formatters/trace-formatter.d.ts +0 -44
- package/dist/core/src/env/debug/formatters/trace-formatter.js +0 -157
- package/dist/core/src/env/debug/formatters/trace-formatter.test.d.ts +0 -2
- package/dist/core/src/env/debug/formatters/trace-formatter.test.js +0 -102
- package/dist/core/src/env/debug/formatters/tree-formatter.d.ts +0 -73
- package/dist/core/src/env/debug/formatters/tree-formatter.js +0 -252
- package/dist/core/src/env/debug/formatters/tree-formatter.test.d.ts +0 -2
- package/dist/core/src/env/debug/formatters/tree-formatter.test.js +0 -91
- package/dist/core/src/env/debug/index.d.ts +0 -16
- package/dist/core/src/env/debug/index.js +0 -18
- package/dist/core/src/env/debug/parser/regex-parser.d.ts +0 -50
- package/dist/core/src/env/debug/parser/regex-parser.js +0 -167
- package/dist/core/src/env/debug/parser/regex-parser.test.d.ts +0 -2
- package/dist/core/src/env/debug/parser/regex-parser.test.js +0 -147
- package/dist/core/src/env/debug/parser/span-builder.d.ts +0 -80
- package/dist/core/src/env/debug/parser/span-builder.js +0 -321
- package/dist/core/src/env/debug/parser/span-builder.test.d.ts +0 -2
- package/dist/core/src/env/debug/parser/span-builder.test.js +0 -207
- package/dist/core/src/env/debug/reader/log-reader.d.ts +0 -56
- package/dist/core/src/env/debug/reader/log-reader.js +0 -163
- package/dist/core/src/env/debug/reader/log-reader.test.d.ts +0 -2
- package/dist/core/src/env/debug/reader/log-reader.test.js +0 -132
- package/dist/core/src/env/debug/reader/span-db-reader.d.ts +0 -71
- package/dist/core/src/env/debug/reader/span-db-reader.js +0 -167
- package/dist/core/src/env/debug/reader/span-db-reader.test.d.ts +0 -5
- package/dist/core/src/env/debug/reader/span-db-reader.test.js +0 -96
- package/dist/core/src/env/debug/types.d.ts +0 -146
- package/dist/core/src/env/debug/types.js +0 -7
- package/dist/core/src/env/debug/types.test.d.ts +0 -2
- package/dist/core/src/env/debug/types.test.js +0 -160
- package/dist/core/src/env/environment-init.test.d.ts +0 -2
- package/dist/core/src/env/environment-init.test.js +0 -142
- package/dist/core/src/env/environment-lifecycle.test.d.ts +0 -16
- package/dist/core/src/env/environment-lifecycle.test.js +0 -391
- package/dist/core/src/env/environment-service.test.d.ts +0 -7
- package/dist/core/src/env/environment-service.test.js +0 -265
- package/dist/core/src/env/environment.d.ts +0 -163
- package/dist/core/src/env/environment.handle-query.test.d.ts +0 -5
- package/dist/core/src/env/environment.handle-query.test.js +0 -74
- package/dist/core/src/env/environment.js +0 -607
- package/dist/core/src/env/environment.test.d.ts +0 -5
- package/dist/core/src/env/environment.test.js +0 -188
- package/dist/core/src/env/errors.d.ts +0 -96
- package/dist/core/src/env/errors.js +0 -123
- package/dist/core/src/env/errors.test.d.ts +0 -2
- package/dist/core/src/env/errors.test.js +0 -110
- package/dist/core/src/env/event-source/event-source-agent-handler.d.ts +0 -45
- package/dist/core/src/env/event-source/event-source-agent-handler.js +0 -80
- package/dist/core/src/env/event-source/event-source-agent-handler.test.d.ts +0 -2
- package/dist/core/src/env/event-source/event-source-agent-handler.test.js +0 -165
- package/dist/core/src/env/event-source/event-source-component.d.ts +0 -197
- package/dist/core/src/env/event-source/event-source-component.js +0 -1155
- package/dist/core/src/env/event-source/event-source-component.process-cleanup.test.d.ts +0 -9
- package/dist/core/src/env/event-source/event-source-component.process-cleanup.test.js +0 -207
- package/dist/core/src/env/event-source/event-source-component.stop.test.d.ts +0 -7
- package/dist/core/src/env/event-source/event-source-component.stop.test.js +0 -293
- package/dist/core/src/env/event-source/event-source-component.test.d.ts +0 -2
- package/dist/core/src/env/event-source/event-source-component.test.js +0 -1036
- package/dist/core/src/env/event-source/event-source-config-registration.d.ts +0 -19
- package/dist/core/src/env/event-source/event-source-config-registration.js +0 -32
- package/dist/core/src/env/event-source/event-source-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/event-source/event-source-config-registration.test.js +0 -208
- package/dist/core/src/env/event-source/event-source-integration.test.d.ts +0 -2
- package/dist/core/src/env/event-source/event-source-integration.test.js +0 -275
- package/dist/core/src/env/event-source/event-source-platform.test.d.ts +0 -12
- package/dist/core/src/env/event-source/event-source-platform.test.js +0 -536
- package/dist/core/src/env/event-source/types.d.ts +0 -213
- package/dist/core/src/env/event-source/types.js +0 -57
- package/dist/core/src/env/hook/global-hook-manager.d.ts +0 -74
- package/dist/core/src/env/hook/global-hook-manager.js +0 -126
- package/dist/core/src/env/hook/hook-manager.d.ts +0 -133
- package/dist/core/src/env/hook/hook-manager.js +0 -249
- package/dist/core/src/env/hook/hook-manager.test.d.ts +0 -2
- package/dist/core/src/env/hook/hook-manager.test.js +0 -275
- package/dist/core/src/env/hook/index.d.ts +0 -10
- package/dist/core/src/env/hook/index.js +0 -12
- package/dist/core/src/env/hook/types.d.ts +0 -104
- package/dist/core/src/env/hook/types.js +0 -33
- package/dist/core/src/env/index.d.ts +0 -23
- package/dist/core/src/env/index.js +0 -26
- package/dist/core/src/env/interface.d.ts +0 -156
- package/dist/core/src/env/interface.js +0 -19
- package/dist/core/src/env/llm/hooks.d.ts +0 -151
- package/dist/core/src/env/llm/hooks.js +0 -209
- package/dist/core/src/env/llm/hooks.test.d.ts +0 -2
- package/dist/core/src/env/llm/hooks.test.js +0 -233
- package/dist/core/src/env/llm/index.d.ts +0 -12
- package/dist/core/src/env/llm/index.js +0 -16
- package/dist/core/src/env/llm/invoke-threshold-check.test.d.ts +0 -11
- package/dist/core/src/env/llm/invoke-threshold-check.test.js +0 -76
- package/dist/core/src/env/llm/invoke-timeout.test.d.ts +0 -2
- package/dist/core/src/env/llm/invoke-timeout.test.js +0 -31
- package/dist/core/src/env/llm/invoke.d.ts +0 -118
- package/dist/core/src/env/llm/invoke.js +0 -755
- package/dist/core/src/env/llm/invoke.test.d.ts +0 -2
- package/dist/core/src/env/llm/invoke.test.js +0 -62
- package/dist/core/src/env/llm/llm-config.test.d.ts +0 -2
- package/dist/core/src/env/llm/llm-config.test.js +0 -453
- package/dist/core/src/env/llm/llm.d.ts +0 -164
- package/dist/core/src/env/llm/llm.js +0 -461
- package/dist/core/src/env/llm/llm.test.d.ts +0 -2
- package/dist/core/src/env/llm/llm.test.js +0 -197
- package/dist/core/src/env/llm/provider.d.ts +0 -41
- package/dist/core/src/env/llm/provider.js +0 -90
- package/dist/core/src/env/llm/provider.test.d.ts +0 -2
- package/dist/core/src/env/llm/provider.test.js +0 -152
- package/dist/core/src/env/llm/transform.d.ts +0 -58
- package/dist/core/src/env/llm/transform.js +0 -254
- package/dist/core/src/env/llm/transform.test.d.ts +0 -2
- package/dist/core/src/env/llm/transform.test.js +0 -215
- package/dist/core/src/env/llm/types.d.ts +0 -771
- package/dist/core/src/env/llm/types.js +0 -67
- package/dist/core/src/env/llm/types.test.d.ts +0 -2
- package/dist/core/src/env/llm/types.test.js +0 -520
- package/dist/core/src/env/log-trace/decorator-otel.test.d.ts +0 -7
- package/dist/core/src/env/log-trace/decorator-otel.test.js +0 -204
- package/dist/core/src/env/log-trace/decorator.d.ts +0 -47
- package/dist/core/src/env/log-trace/decorator.js +0 -190
- package/dist/core/src/env/log-trace/index.d.ts +0 -15
- package/dist/core/src/env/log-trace/index.js +0 -20
- package/dist/core/src/env/log-trace/log-trace-component.d.ts +0 -262
- package/dist/core/src/env/log-trace/log-trace-component.js +0 -405
- package/dist/core/src/env/log-trace/log-trace-component.test.d.ts +0 -7
- package/dist/core/src/env/log-trace/log-trace-component.test.js +0 -212
- package/dist/core/src/env/log-trace/log-trace-config-registration.d.ts +0 -20
- package/dist/core/src/env/log-trace/log-trace-config-registration.js +0 -40
- package/dist/core/src/env/log-trace/log-trace-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/log-trace/log-trace-config-registration.test.js +0 -295
- package/dist/core/src/env/log-trace/logger.d.ts +0 -84
- package/dist/core/src/env/log-trace/logger.js +0 -445
- package/dist/core/src/env/log-trace/logger.test.d.ts +0 -2
- package/dist/core/src/env/log-trace/logger.test.js +0 -118
- package/dist/core/src/env/log-trace/opentelemetry/cli-propagation.d.ts +0 -106
- package/dist/core/src/env/log-trace/opentelemetry/cli-propagation.js +0 -149
- package/dist/core/src/env/log-trace/opentelemetry/cli-propagation.test.d.ts +0 -9
- package/dist/core/src/env/log-trace/opentelemetry/cli-propagation.test.js +0 -122
- package/dist/core/src/env/log-trace/opentelemetry/integration.test.d.ts +0 -19
- package/dist/core/src/env/log-trace/opentelemetry/integration.test.js +0 -535
- package/dist/core/src/env/log-trace/opentelemetry/mod.d.ts +0 -25
- package/dist/core/src/env/log-trace/opentelemetry/mod.js +0 -25
- package/dist/core/src/env/log-trace/opentelemetry/propagation-env.d.ts +0 -82
- package/dist/core/src/env/log-trace/opentelemetry/propagation-env.js +0 -109
- package/dist/core/src/env/log-trace/opentelemetry/propagation-env.test.d.ts +0 -9
- package/dist/core/src/env/log-trace/opentelemetry/propagation-env.test.js +0 -143
- package/dist/core/src/env/log-trace/opentelemetry/propagation.d.ts +0 -80
- package/dist/core/src/env/log-trace/opentelemetry/propagation.js +0 -163
- package/dist/core/src/env/log-trace/opentelemetry/propagation.test.d.ts +0 -11
- package/dist/core/src/env/log-trace/opentelemetry/propagation.test.js +0 -197
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider-context.test.d.ts +0 -8
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider-context.test.js +0 -127
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider.d.ts +0 -143
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider.js +0 -451
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider.test.d.ts +0 -11
- package/dist/core/src/env/log-trace/opentelemetry/tracer-provider.test.js +0 -291
- package/dist/core/src/env/log-trace/span-storage.d.ts +0 -38
- package/dist/core/src/env/log-trace/span-storage.js +0 -185
- package/dist/core/src/env/log-trace/span-storage.test.d.ts +0 -5
- package/dist/core/src/env/log-trace/span-storage.test.js +0 -121
- package/dist/core/src/env/log-trace/trace-context.d.ts +0 -29
- package/dist/core/src/env/log-trace/trace-context.js +0 -133
- package/dist/core/src/env/log-trace/trace-context.test.d.ts +0 -2
- package/dist/core/src/env/log-trace/trace-context.test.js +0 -149
- package/dist/core/src/env/log-trace/types.d.ts +0 -128
- package/dist/core/src/env/log-trace/types.js +0 -21
- package/dist/core/src/env/log-trace/types.test.d.ts +0 -2
- package/dist/core/src/env/log-trace/types.test.js +0 -53
- package/dist/core/src/env/mcp/__integration__/mcp-component.integration.test.d.ts +0 -2
- package/dist/core/src/env/mcp/__integration__/mcp-component.integration.test.js +0 -322
- package/dist/core/src/env/mcp/config.d.ts +0 -104
- package/dist/core/src/env/mcp/config.js +0 -65
- package/dist/core/src/env/mcp/config.test.d.ts +0 -2
- package/dist/core/src/env/mcp/config.test.js +0 -56
- package/dist/core/src/env/mcp/index.d.ts +0 -12
- package/dist/core/src/env/mcp/index.js +0 -14
- package/dist/core/src/env/mcp/loader.d.ts +0 -67
- package/dist/core/src/env/mcp/loader.js +0 -163
- package/dist/core/src/env/mcp/loader.test.d.ts +0 -2
- package/dist/core/src/env/mcp/loader.test.js +0 -128
- package/dist/core/src/env/mcp/mcp-component.d.ts +0 -55
- package/dist/core/src/env/mcp/mcp-component.js +0 -296
- package/dist/core/src/env/mcp/mcp-component.test.d.ts +0 -2
- package/dist/core/src/env/mcp/mcp-component.test.js +0 -92
- package/dist/core/src/env/mcp/mcp-config-registration.d.ts +0 -20
- package/dist/core/src/env/mcp/mcp-config-registration.js +0 -45
- package/dist/core/src/env/mcp/mcp-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/mcp/mcp-config-registration.test.js +0 -258
- package/dist/core/src/env/mcp/scanner.d.ts +0 -39
- package/dist/core/src/env/mcp/scanner.js +0 -206
- package/dist/core/src/env/mcp/scanner.test.d.ts +0 -2
- package/dist/core/src/env/mcp/scanner.test.js +0 -115
- package/dist/core/src/env/mcp/tool/adapter.d.ts +0 -33
- package/dist/core/src/env/mcp/tool/adapter.js +0 -413
- package/dist/core/src/env/mcp/tool/adapter.test.d.ts +0 -2
- package/dist/core/src/env/mcp/tool/adapter.test.js +0 -436
- package/dist/core/src/env/mcp/tool/index.d.ts +0 -5
- package/dist/core/src/env/mcp/tool/index.js +0 -5
- package/dist/core/src/env/mcp/types.d.ts +0 -122
- package/dist/core/src/env/mcp/types.js +0 -33
- package/dist/core/src/env/mcp/types.test.d.ts +0 -2
- package/dist/core/src/env/mcp/types.test.js +0 -136
- package/dist/core/src/env/memory/built-in/index.d.ts +0 -42
- package/dist/core/src/env/memory/built-in/index.js +0 -24
- package/dist/core/src/env/memory/built-in/recall-memory.d.ts +0 -30
- package/dist/core/src/env/memory/built-in/recall-memory.js +0 -79
- package/dist/core/src/env/memory/built-in/record-memory.d.ts +0 -45
- package/dist/core/src/env/memory/built-in/record-memory.js +0 -111
- package/dist/core/src/env/memory/index.d.ts +0 -11
- package/dist/core/src/env/memory/index.js +0 -16
- package/dist/core/src/env/memory/memory-component.d.ts +0 -115
- package/dist/core/src/env/memory/memory-component.js +0 -406
- package/dist/core/src/env/memory/memory-component.test.d.ts +0 -5
- package/dist/core/src/env/memory/memory-component.test.js +0 -183
- package/dist/core/src/env/memory/memory-config-registration.d.ts +0 -19
- package/dist/core/src/env/memory/memory-config-registration.js +0 -43
- package/dist/core/src/env/memory/memory-config-registration.test.d.ts +0 -5
- package/dist/core/src/env/memory/memory-config-registration.test.js +0 -48
- package/dist/core/src/env/memory/memory-config.d.ts +0 -19
- package/dist/core/src/env/memory/memory-config.js +0 -41
- package/dist/core/src/env/memory/memory-file.test.d.ts +0 -7
- package/dist/core/src/env/memory/memory-file.test.js +0 -222
- package/dist/core/src/env/memory/plugin/index.d.ts +0 -17
- package/dist/core/src/env/memory/plugin/index.js +0 -17
- package/dist/core/src/env/memory/plugin/memory-agent.d.ts +0 -127
- package/dist/core/src/env/memory/plugin/memory-agent.js +0 -250
- package/dist/core/src/env/memory/plugin/memory-agent.test.d.ts +0 -11
- package/dist/core/src/env/memory/plugin/memory-agent.test.js +0 -207
- package/dist/core/src/env/memory/plugin/memory-manager.d.ts +0 -72
- package/dist/core/src/env/memory/plugin/memory-manager.js +0 -166
- package/dist/core/src/env/memory/plugin/memory-plugin-agent.test.d.ts +0 -7
- package/dist/core/src/env/memory/plugin/memory-plugin-agent.test.js +0 -114
- package/dist/core/src/env/memory/plugin/memory-plugin.d.ts +0 -104
- package/dist/core/src/env/memory/plugin/memory-plugin.js +0 -155
- package/dist/core/src/env/memory/plugin/plugin-simplified.test.d.ts +0 -13
- package/dist/core/src/env/memory/plugin/plugin-simplified.test.js +0 -44
- package/dist/core/src/env/memory/plugin/recall-memory.d.ts +0 -17
- package/dist/core/src/env/memory/plugin/recall-memory.js +0 -44
- package/dist/core/src/env/memory/plugin/recall-memory.test.d.ts +0 -7
- package/dist/core/src/env/memory/plugin/recall-memory.test.js +0 -86
- package/dist/core/src/env/memory/plugin/types.d.ts +0 -76
- package/dist/core/src/env/memory/plugin/types.js +0 -16
- package/dist/core/src/env/memory/tools/memory-agent-tools.d.ts +0 -110
- package/dist/core/src/env/memory/tools/memory-agent-tools.js +0 -157
- package/dist/core/src/env/memory/types.d.ts +0 -81
- package/dist/core/src/env/memory/types.js +0 -25
- package/dist/core/src/env/paths.d.ts +0 -47
- package/dist/core/src/env/paths.js +0 -91
- package/dist/core/src/env/prompt/index.d.ts +0 -8
- package/dist/core/src/env/prompt/index.js +0 -7
- package/dist/core/src/env/prompt/memory-prompts.test.d.ts +0 -7
- package/dist/core/src/env/prompt/memory-prompts.test.js +0 -78
- package/dist/core/src/env/prompt/prompt-component.d.ts +0 -163
- package/dist/core/src/env/prompt/prompt-component.js +0 -489
- package/dist/core/src/env/prompt/prompt-component.test.d.ts +0 -7
- package/dist/core/src/env/prompt/prompt-component.test.js +0 -397
- package/dist/core/src/env/prompt/prompt-config-registration.d.ts +0 -19
- package/dist/core/src/env/prompt/prompt-config-registration.js +0 -34
- package/dist/core/src/env/prompt/prompt-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/prompt/prompt-config-registration.test.js +0 -172
- package/dist/core/src/env/prompt/prompts-index.d.ts +0 -27
- package/dist/core/src/env/prompt/prompts-index.js +0 -498
- package/dist/core/src/env/prompt/renderer.d.ts +0 -22
- package/dist/core/src/env/prompt/renderer.js +0 -47
- package/dist/core/src/env/prompt/types.d.ts +0 -159
- package/dist/core/src/env/prompt/types.js +0 -48
- package/dist/core/src/env/session/hooks.d.ts +0 -15
- package/dist/core/src/env/session/hooks.js +0 -5
- package/dist/core/src/env/session/index.d.ts +0 -19
- package/dist/core/src/env/session/index.js +0 -13
- package/dist/core/src/env/session/search-query-parser.d.ts +0 -42
- package/dist/core/src/env/session/search-query-parser.js +0 -141
- package/dist/core/src/env/session/search-query-parser.test.d.ts +0 -14
- package/dist/core/src/env/session/search-query-parser.test.js +0 -332
- package/dist/core/src/env/session/session-checkpoint.test.d.ts +0 -7
- package/dist/core/src/env/session/session-checkpoint.test.js +0 -455
- package/dist/core/src/env/session/session-component.d.ts +0 -290
- package/dist/core/src/env/session/session-component.extract-recent-messages.test.d.ts +0 -7
- package/dist/core/src/env/session/session-component.extract-recent-messages.test.js +0 -166
- package/dist/core/src/env/session/session-component.js +0 -981
- package/dist/core/src/env/session/session-component.test.d.ts +0 -7
- package/dist/core/src/env/session/session-component.test.js +0 -107
- package/dist/core/src/env/session/session-config-registration.d.ts +0 -19
- package/dist/core/src/env/session/session-config-registration.js +0 -47
- package/dist/core/src/env/session/session-config-registration.test.d.ts +0 -5
- package/dist/core/src/env/session/session-config-registration.test.js +0 -115
- package/dist/core/src/env/session/session-message-converter.d.ts +0 -125
- package/dist/core/src/env/session/session-message-converter.js +0 -354
- package/dist/core/src/env/session/session-message-converter.test.d.ts +0 -8
- package/dist/core/src/env/session/session-message-converter.test.js +0 -623
- package/dist/core/src/env/session/session-message-e2e.test.d.ts +0 -8
- package/dist/core/src/env/session/session-message-e2e.test.js +0 -376
- package/dist/core/src/env/session/session-search.test.d.ts +0 -7
- package/dist/core/src/env/session/session-search.test.js +0 -338
- package/dist/core/src/env/session/session-store.d.ts +0 -103
- package/dist/core/src/env/session/session-store.js +0 -5
- package/dist/core/src/env/session/session-store.test.d.ts +0 -2
- package/dist/core/src/env/session/session-store.test.js +0 -291
- package/dist/core/src/env/session/storage/index.d.ts +0 -6
- package/dist/core/src/env/session/storage/index.js +0 -6
- package/dist/core/src/env/session/storage/memory.d.ts +0 -44
- package/dist/core/src/env/session/storage/memory.js +0 -404
- package/dist/core/src/env/session/storage/sqlite.d.ts +0 -64
- package/dist/core/src/env/session/storage/sqlite.js +0 -616
- package/dist/core/src/env/session/types.d.ts +0 -613
- package/dist/core/src/env/session/types.js +0 -32
- package/dist/core/src/env/skill/config.d.ts +0 -14
- package/dist/core/src/env/skill/config.js +0 -36
- package/dist/core/src/env/skill/index.d.ts +0 -7
- package/dist/core/src/env/skill/index.js +0 -7
- package/dist/core/src/env/skill/parser.d.ts +0 -10
- package/dist/core/src/env/skill/parser.js +0 -64
- package/dist/core/src/env/skill/parser.test.d.ts +0 -2
- package/dist/core/src/env/skill/parser.test.js +0 -92
- package/dist/core/src/env/skill/scanner.d.ts +0 -26
- package/dist/core/src/env/skill/scanner.js +0 -98
- package/dist/core/src/env/skill/scanner.test.d.ts +0 -2
- package/dist/core/src/env/skill/scanner.test.js +0 -166
- package/dist/core/src/env/skill/skill-component.d.ts +0 -90
- package/dist/core/src/env/skill/skill-component.js +0 -266
- package/dist/core/src/env/skill/skill-component.test.d.ts +0 -2
- package/dist/core/src/env/skill/skill-component.test.js +0 -187
- package/dist/core/src/env/skill/skill-config-registration.d.ts +0 -19
- package/dist/core/src/env/skill/skill-config-registration.js +0 -38
- package/dist/core/src/env/skill/skill-config-registration.test.d.ts +0 -5
- package/dist/core/src/env/skill/skill-config-registration.test.js +0 -44
- package/dist/core/src/env/skill/tool/index.d.ts +0 -2
- package/dist/core/src/env/skill/tool/index.js +0 -2
- package/dist/core/src/env/skill/tool/skill-tool.d.ts +0 -16
- package/dist/core/src/env/skill/tool/skill-tool.js +0 -64
- package/dist/core/src/env/skill/tool/skill-tool.test.d.ts +0 -2
- package/dist/core/src/env/skill/tool/skill-tool.test.js +0 -77
- package/dist/core/src/env/skill/types.d.ts +0 -62
- package/dist/core/src/env/skill/types.js +0 -8
- package/dist/core/src/env/task/delegate/delegate-tool.d.ts +0 -141
- package/dist/core/src/env/task/delegate/delegate-tool.js +0 -767
- package/dist/core/src/env/task/delegate/delegate-tool.test.d.ts +0 -7
- package/dist/core/src/env/task/delegate/delegate-tool.test.js +0 -386
- package/dist/core/src/env/task/delegate/index.d.ts +0 -9
- package/dist/core/src/env/task/delegate/index.js +0 -8
- package/dist/core/src/env/task/delegate/stop-tool.d.ts +0 -13
- package/dist/core/src/env/task/delegate/stop-tool.js +0 -108
- package/dist/core/src/env/task/delegate/stop-tool.test.d.ts +0 -7
- package/dist/core/src/env/task/delegate/stop-tool.test.js +0 -103
- package/dist/core/src/env/task/delegate/task-events.d.ts +0 -81
- package/dist/core/src/env/task/delegate/task-events.js +0 -67
- package/dist/core/src/env/task/delegate/task-events.test.d.ts +0 -5
- package/dist/core/src/env/task/delegate/task-events.test.js +0 -149
- package/dist/core/src/env/task/hooks/contexts.d.ts +0 -165
- package/dist/core/src/env/task/hooks/contexts.js +0 -5
- package/dist/core/src/env/task/hooks/contexts.test.d.ts +0 -5
- package/dist/core/src/env/task/hooks/contexts.test.js +0 -73
- package/dist/core/src/env/task/hooks/index.d.ts +0 -8
- package/dist/core/src/env/task/hooks/index.js +0 -8
- package/dist/core/src/env/task/hooks/task-hook-points.d.ts +0 -32
- package/dist/core/src/env/task/hooks/task-hook-points.js +0 -37
- package/dist/core/src/env/task/hooks/task-hook-points.test.d.ts +0 -5
- package/dist/core/src/env/task/hooks/task-hook-points.test.js +0 -28
- package/dist/core/src/env/task/index.d.ts +0 -7
- package/dist/core/src/env/task/index.js +0 -7
- package/dist/core/src/env/task/plugins/index.d.ts +0 -7
- package/dist/core/src/env/task/plugins/index.js +0 -7
- package/dist/core/src/env/task/plugins/task-plugin.d.ts +0 -67
- package/dist/core/src/env/task/plugins/task-plugin.js +0 -40
- package/dist/core/src/env/task/plugins/task-plugin.test.d.ts +0 -5
- package/dist/core/src/env/task/plugins/task-plugin.test.js +0 -60
- package/dist/core/src/env/task/plugins/task-tag-plugin.d.ts +0 -79
- package/dist/core/src/env/task/plugins/task-tag-plugin.js +0 -250
- package/dist/core/src/env/task/plugins/task-tag-plugin.test.d.ts +0 -9
- package/dist/core/src/env/task/plugins/task-tag-plugin.test.js +0 -310
- package/dist/core/src/env/task/plugins/task-workflow-extractor.integration.test.d.ts +0 -5
- package/dist/core/src/env/task/plugins/task-workflow-extractor.integration.test.js +0 -198
- package/dist/core/src/env/task/plugins/workflow-extractor-agent.d.ts +0 -36
- package/dist/core/src/env/task/plugins/workflow-extractor-agent.js +0 -197
- package/dist/core/src/env/task/plugins/workflow-extractor-agent.test.d.ts +0 -8
- package/dist/core/src/env/task/plugins/workflow-extractor-agent.test.js +0 -88
- package/dist/core/src/env/task/storage/index.d.ts +0 -6
- package/dist/core/src/env/task/storage/index.js +0 -6
- package/dist/core/src/env/task/storage/sqlite-task-store.d.ts +0 -127
- package/dist/core/src/env/task/storage/sqlite-task-store.js +0 -718
- package/dist/core/src/env/task/storage/sqlite-task-store.test.d.ts +0 -5
- package/dist/core/src/env/task/storage/sqlite-task-store.test.js +0 -235
- package/dist/core/src/env/task/storage/task-search.test.d.ts +0 -5
- package/dist/core/src/env/task/storage/task-search.test.js +0 -236
- package/dist/core/src/env/task/tag-service.d.ts +0 -139
- package/dist/core/src/env/task/tag-service.js +0 -123
- package/dist/core/src/env/task/tag-service.test.d.ts +0 -5
- package/dist/core/src/env/task/tag-service.test.js +0 -157
- package/dist/core/src/env/task/task-component.d.ts +0 -171
- package/dist/core/src/env/task/task-component.js +0 -519
- package/dist/core/src/env/task/task-component.test.d.ts +0 -5
- package/dist/core/src/env/task/task-component.test.js +0 -163
- package/dist/core/src/env/task/task-config-registration.d.ts +0 -20
- package/dist/core/src/env/task/task-config-registration.js +0 -32
- package/dist/core/src/env/task/task-config-registration.test.d.ts +0 -5
- package/dist/core/src/env/task/task-config-registration.test.js +0 -43
- package/dist/core/src/env/task/task-types.test.d.ts +0 -5
- package/dist/core/src/env/task/task-types.test.js +0 -117
- package/dist/core/src/env/task/tools/complete-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/complete-tool.js +0 -40
- package/dist/core/src/env/task/tools/create-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/create-tool.js +0 -45
- package/dist/core/src/env/task/tools/delete-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/delete-tool.js +0 -39
- package/dist/core/src/env/task/tools/get-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/get-tool.js +0 -57
- package/dist/core/src/env/task/tools/index.d.ts +0 -10
- package/dist/core/src/env/task/tools/index.js +0 -10
- package/dist/core/src/env/task/tools/list-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/list-tool.js +0 -36
- package/dist/core/src/env/task/tools/operation/create-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/operation/create-tool.js +0 -44
- package/dist/core/src/env/task/tools/operation/delete-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/operation/delete-tool.js +0 -39
- package/dist/core/src/env/task/tools/operation/get-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/operation/get-tool.js +0 -39
- package/dist/core/src/env/task/tools/operation/index.d.ts +0 -9
- package/dist/core/src/env/task/tools/operation/index.js +0 -9
- package/dist/core/src/env/task/tools/operation/list-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/operation/list-tool.js +0 -36
- package/dist/core/src/env/task/tools/operation/operation-tools.test.d.ts +0 -5
- package/dist/core/src/env/task/tools/operation/operation-tools.test.js +0 -159
- package/dist/core/src/env/task/tools/operation/operation-types.d.ts +0 -92
- package/dist/core/src/env/task/tools/operation/operation-types.js +0 -58
- package/dist/core/src/env/task/tools/operation/update-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/operation/update-tool.js +0 -42
- package/dist/core/src/env/task/tools/task-tools.test.d.ts +0 -5
- package/dist/core/src/env/task/tools/task-tools.test.js +0 -142
- package/dist/core/src/env/task/tools/task-types.d.ts +0 -114
- package/dist/core/src/env/task/tools/task-types.js +0 -53
- package/dist/core/src/env/task/tools/task-types.test.d.ts +0 -5
- package/dist/core/src/env/task/tools/task-types.test.js +0 -63
- package/dist/core/src/env/task/tools/update-tool.d.ts +0 -7
- package/dist/core/src/env/task/tools/update-tool.js +0 -64
- package/dist/core/src/env/task/types.d.ts +0 -129
- package/dist/core/src/env/task/types.js +0 -39
- package/dist/core/src/env/tool/built-in/bash.d.ts +0 -11
- package/dist/core/src/env/tool/built-in/bash.js +0 -182
- package/dist/core/src/env/tool/built-in/echo.d.ts +0 -8
- package/dist/core/src/env/tool/built-in/echo.js +0 -27
- package/dist/core/src/env/tool/built-in/edit-file.d.ts +0 -7
- package/dist/core/src/env/tool/built-in/edit-file.js +0 -86
- package/dist/core/src/env/tool/built-in/edit-file.test.d.ts +0 -2
- package/dist/core/src/env/tool/built-in/edit-file.test.js +0 -84
- package/dist/core/src/env/tool/built-in/glob.d.ts +0 -7
- package/dist/core/src/env/tool/built-in/glob.js +0 -60
- package/dist/core/src/env/tool/built-in/glob.test.d.ts +0 -2
- package/dist/core/src/env/tool/built-in/glob.test.js +0 -61
- package/dist/core/src/env/tool/built-in/grep.d.ts +0 -7
- package/dist/core/src/env/tool/built-in/grep.js +0 -96
- package/dist/core/src/env/tool/built-in/grep.test.d.ts +0 -2
- package/dist/core/src/env/tool/built-in/grep.test.js +0 -74
- package/dist/core/src/env/tool/built-in/index.d.ts +0 -28
- package/dist/core/src/env/tool/built-in/index.js +0 -41
- package/dist/core/src/env/tool/built-in/read-file.d.ts +0 -6
- package/dist/core/src/env/tool/built-in/read-file.js +0 -73
- package/dist/core/src/env/tool/built-in/read-file.test.d.ts +0 -2
- package/dist/core/src/env/tool/built-in/read-file.test.js +0 -63
- package/dist/core/src/env/tool/built-in/write-file.d.ts +0 -6
- package/dist/core/src/env/tool/built-in/write-file.js +0 -65
- package/dist/core/src/env/tool/built-in/write-file.test.d.ts +0 -2
- package/dist/core/src/env/tool/built-in/write-file.test.js +0 -74
- package/dist/core/src/env/tool/index.d.ts +0 -14
- package/dist/core/src/env/tool/index.js +0 -19
- package/dist/core/src/env/tool/registry.d.ts +0 -62
- package/dist/core/src/env/tool/registry.js +0 -137
- package/dist/core/src/env/tool/registry.test.d.ts +0 -2
- package/dist/core/src/env/tool/registry.test.js +0 -219
- package/dist/core/src/env/tool/tool-component.d.ts +0 -160
- package/dist/core/src/env/tool/tool-component.js +0 -411
- package/dist/core/src/env/tool/tool-component.test.d.ts +0 -2
- package/dist/core/src/env/tool/tool-component.test.js +0 -461
- package/dist/core/src/env/tool/tool-config-registration.d.ts +0 -19
- package/dist/core/src/env/tool/tool-config-registration.js +0 -41
- package/dist/core/src/env/tool/tool-config-registration.test.d.ts +0 -7
- package/dist/core/src/env/tool/tool-config-registration.test.js +0 -202
- package/dist/core/src/env/tool/types.d.ts +0 -226
- package/dist/core/src/env/tool/types.js +0 -2
- package/dist/core/src/env/tool/validator.d.ts +0 -15
- package/dist/core/src/env/tool/validator.js +0 -43
- package/dist/core/src/env/tool/validator.test.d.ts +0 -2
- package/dist/core/src/env/tool/validator.test.js +0 -102
- package/dist/core/src/env/types.d.ts +0 -154
- package/dist/core/src/env/types.js +0 -9
- package/dist/core/src/env/workflow/ask-user-tool-registration.test.d.ts +0 -13
- package/dist/core/src/env/workflow/ask-user-tool-registration.test.js +0 -185
- package/dist/core/src/env/workflow/complex-workflow.integration.test.d.ts +0 -14
- package/dist/core/src/env/workflow/complex-workflow.integration.test.js +0 -1588
- package/dist/core/src/env/workflow/decorators/decorator-node.d.ts +0 -77
- package/dist/core/src/env/workflow/decorators/decorator-node.js +0 -176
- package/dist/core/src/env/workflow/decorators/decorator.test.d.ts +0 -5
- package/dist/core/src/env/workflow/decorators/decorator.test.js +0 -212
- package/dist/core/src/env/workflow/decorators/edge.d.ts +0 -43
- package/dist/core/src/env/workflow/decorators/edge.js +0 -68
- package/dist/core/src/env/workflow/decorators/index.d.ts +0 -14
- package/dist/core/src/env/workflow/decorators/index.js +0 -15
- package/dist/core/src/env/workflow/decorators/node-as.d.ts +0 -41
- package/dist/core/src/env/workflow/decorators/node-as.js +0 -85
- package/dist/core/src/env/workflow/decorators/workflow.d.ts +0 -31
- package/dist/core/src/env/workflow/decorators/workflow.js +0 -49
- package/dist/core/src/env/workflow/engine/dag-manager.d.ts +0 -129
- package/dist/core/src/env/workflow/engine/dag-manager.js +0 -471
- package/dist/core/src/env/workflow/engine/dag-manager.test.d.ts +0 -2
- package/dist/core/src/env/workflow/engine/dag-manager.test.js +0 -488
- package/dist/core/src/env/workflow/engine/engine.d.ts +0 -218
- package/dist/core/src/env/workflow/engine/engine.js +0 -1122
- package/dist/core/src/env/workflow/engine/event-bus.d.ts +0 -55
- package/dist/core/src/env/workflow/engine/event-bus.js +0 -137
- package/dist/core/src/env/workflow/engine/event-bus.test.d.ts +0 -2
- package/dist/core/src/env/workflow/engine/event-bus.test.js +0 -274
- package/dist/core/src/env/workflow/engine/executor-agent-session.test.d.ts +0 -2
- package/dist/core/src/env/workflow/engine/executor-agent-session.test.js +0 -46
- package/dist/core/src/env/workflow/engine/executor.d.ts +0 -106
- package/dist/core/src/env/workflow/engine/executor.js +0 -458
- package/dist/core/src/env/workflow/engine/executor.test.d.ts +0 -11
- package/dist/core/src/env/workflow/engine/executor.test.js +0 -274
- package/dist/core/src/env/workflow/engine/index.d.ts +0 -16
- package/dist/core/src/env/workflow/engine/index.js +0 -10
- package/dist/core/src/env/workflow/engine/node-registry.d.ts +0 -160
- package/dist/core/src/env/workflow/engine/node-registry.js +0 -195
- package/dist/core/src/env/workflow/engine/node-registry.test.d.ts +0 -8
- package/dist/core/src/env/workflow/engine/node-registry.test.js +0 -439
- package/dist/core/src/env/workflow/engine/resume-removed.test.d.ts +0 -2
- package/dist/core/src/env/workflow/engine/resume-removed.test.js +0 -19
- package/dist/core/src/env/workflow/engine/scheduler.d.ts +0 -133
- package/dist/core/src/env/workflow/engine/scheduler.js +0 -253
- package/dist/core/src/env/workflow/engine/scheduler.test.d.ts +0 -2
- package/dist/core/src/env/workflow/engine/scheduler.test.js +0 -575
- package/dist/core/src/env/workflow/engine/workflow-engine.test.d.ts +0 -11
- package/dist/core/src/env/workflow/engine/workflow-engine.test.js +0 -640
- package/dist/core/src/env/workflow/extractor/workflow-converter.d.ts +0 -56
- package/dist/core/src/env/workflow/extractor/workflow-converter.js +0 -252
- package/dist/core/src/env/workflow/fixtures.d.ts +0 -402
- package/dist/core/src/env/workflow/fixtures.js +0 -369
- package/dist/core/src/env/workflow/index.d.ts +0 -31
- package/dist/core/src/env/workflow/index.js +0 -35
- package/dist/core/src/env/workflow/integration/run-resume-unified.test.d.ts +0 -2
- package/dist/core/src/env/workflow/integration/run-resume-unified.test.js +0 -161
- package/dist/core/src/env/workflow/integration/service-integration.test.d.ts +0 -8
- package/dist/core/src/env/workflow/integration/service-integration.test.js +0 -223
- package/dist/core/src/env/workflow/metadata/keys.d.ts +0 -7
- package/dist/core/src/env/workflow/metadata/keys.js +0 -10
- package/dist/core/src/env/workflow/nodes/agent-component-adapter.d.ts +0 -163
- package/dist/core/src/env/workflow/nodes/agent-component-adapter.js +0 -333
- package/dist/core/src/env/workflow/nodes/agent-component-adapter.test.d.ts +0 -2
- package/dist/core/src/env/workflow/nodes/agent-component-adapter.test.js +0 -257
- package/dist/core/src/env/workflow/nodes/agent-node.d.ts +0 -217
- package/dist/core/src/env/workflow/nodes/agent-node.js +0 -419
- package/dist/core/src/env/workflow/nodes/agent-node.test.d.ts +0 -13
- package/dist/core/src/env/workflow/nodes/agent-node.test.js +0 -296
- package/dist/core/src/env/workflow/nodes/ask-user-node.d.ts +0 -69
- package/dist/core/src/env/workflow/nodes/ask-user-node.js +0 -67
- package/dist/core/src/env/workflow/nodes/condition-node.d.ts +0 -48
- package/dist/core/src/env/workflow/nodes/condition-node.js +0 -185
- package/dist/core/src/env/workflow/nodes/index.d.ts +0 -7
- package/dist/core/src/env/workflow/nodes/index.js +0 -5
- package/dist/core/src/env/workflow/nodes/merge-node.d.ts +0 -41
- package/dist/core/src/env/workflow/nodes/merge-node.js +0 -126
- package/dist/core/src/env/workflow/nodes/skill-node.d.ts +0 -118
- package/dist/core/src/env/workflow/nodes/skill-node.js +0 -322
- package/dist/core/src/env/workflow/nodes/skill-node.test.d.ts +0 -2
- package/dist/core/src/env/workflow/nodes/skill-node.test.js +0 -189
- package/dist/core/src/env/workflow/nodes/tool-node.d.ts +0 -121
- package/dist/core/src/env/workflow/nodes/tool-node.js +0 -415
- package/dist/core/src/env/workflow/nodes/tool-node.test.d.ts +0 -2
- package/dist/core/src/env/workflow/nodes/tool-node.test.js +0 -181
- package/dist/core/src/env/workflow/nodes/workflow-llm-history.test.d.ts +0 -7
- package/dist/core/src/env/workflow/nodes/workflow-llm-history.test.js +0 -377
- package/dist/core/src/env/workflow/nodes/workflow-node.d.ts +0 -119
- package/dist/core/src/env/workflow/nodes/workflow-node.js +0 -215
- package/dist/core/src/env/workflow/nodes/workflow-node.test.d.ts +0 -2
- package/dist/core/src/env/workflow/nodes/workflow-node.test.js +0 -255
- package/dist/core/src/env/workflow/service/index.d.ts +0 -10
- package/dist/core/src/env/workflow/service/index.js +0 -8
- package/dist/core/src/env/workflow/service/registry.d.ts +0 -38
- package/dist/core/src/env/workflow/service/registry.js +0 -58
- package/dist/core/src/env/workflow/service/registry.test.d.ts +0 -5
- package/dist/core/src/env/workflow/service/registry.test.js +0 -90
- package/dist/core/src/env/workflow/service/workflow-service.d.ts +0 -162
- package/dist/core/src/env/workflow/service/workflow-service.js +0 -244
- package/dist/core/src/env/workflow/service/workflow-service.test.d.ts +0 -5
- package/dist/core/src/env/workflow/service/workflow-service.test.js +0 -228
- package/dist/core/src/env/workflow/storage/index.d.ts +0 -11
- package/dist/core/src/env/workflow/storage/index.js +0 -13
- package/dist/core/src/env/workflow/storage/mock-repositories.d.ts +0 -89
- package/dist/core/src/env/workflow/storage/mock-repositories.js +0 -286
- package/dist/core/src/env/workflow/storage/sqlite.d.ts +0 -56
- package/dist/core/src/env/workflow/storage/sqlite.js +0 -135
- package/dist/core/src/env/workflow/storage/sqlite.test.d.ts +0 -2
- package/dist/core/src/env/workflow/storage/sqlite.test.js +0 -152
- package/dist/core/src/env/workflow/storage/workflow-repo.d.ts +0 -108
- package/dist/core/src/env/workflow/storage/workflow-repo.js +0 -252
- package/dist/core/src/env/workflow/storage/workflow-repo.test.d.ts +0 -2
- package/dist/core/src/env/workflow/storage/workflow-repo.test.js +0 -447
- package/dist/core/src/env/workflow/tools/ask-user-tool.d.ts +0 -36
- package/dist/core/src/env/workflow/tools/ask-user-tool.js +0 -50
- package/dist/core/src/env/workflow/tools/index.d.ts +0 -8
- package/dist/core/src/env/workflow/tools/index.js +0 -10
- package/dist/core/src/env/workflow/tools/run-workflow.d.ts +0 -61
- package/dist/core/src/env/workflow/tools/run-workflow.js +0 -180
- package/dist/core/src/env/workflow/tools/run-workflow.test.d.ts +0 -5
- package/dist/core/src/env/workflow/tools/run-workflow.test.js +0 -235
- package/dist/core/src/env/workflow/types/context.d.ts +0 -18
- package/dist/core/src/env/workflow/types/context.js +0 -2
- package/dist/core/src/env/workflow/types/decorators-types.d.ts +0 -178
- package/dist/core/src/env/workflow/types/decorators-types.js +0 -9
- package/dist/core/src/env/workflow/types/event.d.ts +0 -864
- package/dist/core/src/env/workflow/types/event.js +0 -154
- package/dist/core/src/env/workflow/types/event.test.d.ts +0 -2
- package/dist/core/src/env/workflow/types/event.test.js +0 -484
- package/dist/core/src/env/workflow/types/index.d.ts +0 -14
- package/dist/core/src/env/workflow/types/index.js +0 -10
- package/dist/core/src/env/workflow/types/run.d.ts +0 -123
- package/dist/core/src/env/workflow/types/run.js +0 -23
- package/dist/core/src/env/workflow/types/run.test.d.ts +0 -2
- package/dist/core/src/env/workflow/types/run.test.js +0 -381
- package/dist/core/src/env/workflow/types/workflow-hil.d.ts +0 -58
- package/dist/core/src/env/workflow/types/workflow-hil.js +0 -76
- package/dist/core/src/env/workflow/types/workflow-message.d.ts +0 -139
- package/dist/core/src/env/workflow/types/workflow-message.js +0 -15
- package/dist/core/src/env/workflow/types/workflow-message.test.d.ts +0 -2
- package/dist/core/src/env/workflow/types/workflow-message.test.js +0 -87
- package/dist/core/src/env/workflow/types/workflow-session.d.ts +0 -18
- package/dist/core/src/env/workflow/types/workflow-session.js +0 -41
- package/dist/core/src/env/workflow/types/workflow-session.test.d.ts +0 -2
- package/dist/core/src/env/workflow/types/workflow-session.test.js +0 -80
- package/dist/core/src/env/workflow/types/workflow.d.ts +0 -387
- package/dist/core/src/env/workflow/types/workflow.js +0 -124
- package/dist/core/src/env/workflow/types/workflow.test.d.ts +0 -2
- package/dist/core/src/env/workflow/types/workflow.test.js +0 -455
- package/dist/core/src/env/workflow/types_compat.d.ts +0 -11
- package/dist/core/src/env/workflow/types_compat.js +0 -8
- package/dist/core/src/env/workflow/utils/create-workflow.d.ts +0 -36
- package/dist/core/src/env/workflow/utils/create-workflow.js +0 -36
- package/dist/core/src/env/workflow/utils/execution-state.d.ts +0 -47
- package/dist/core/src/env/workflow/utils/execution-state.js +0 -228
- package/dist/core/src/env/workflow/utils/index.d.ts +0 -9
- package/dist/core/src/env/workflow/utils/index.js +0 -9
- package/dist/core/src/env/workflow/utils/node-registry-helper.d.ts +0 -37
- package/dist/core/src/env/workflow/utils/node-registry-helper.js +0 -48
- package/dist/core/src/env/workflow/utils/recovery-validator.d.ts +0 -31
- package/dist/core/src/env/workflow/utils/recovery-validator.js +0 -325
- package/dist/core/src/env/workflow/utils/recovery-validator.test.d.ts +0 -2
- package/dist/core/src/env/workflow/utils/recovery-validator.test.js +0 -401
- package/dist/core/src/env/workflow/utils/session-parser.d.ts +0 -22
- package/dist/core/src/env/workflow/utils/session-parser.js +0 -72
- package/dist/core/src/env/workflow/utils/session-parser.test.d.ts +0 -2
- package/dist/core/src/env/workflow/utils/session-parser.test.js +0 -89
- package/dist/core/src/env/workflow/utils/session-recovery.d.ts +0 -62
- package/dist/core/src/env/workflow/utils/session-recovery.js +0 -138
- package/dist/core/src/env/workflow/utils/session-recovery.test.d.ts +0 -2
- package/dist/core/src/env/workflow/utils/session-recovery.test.js +0 -263
- package/dist/core/src/env/workflow/utils/template-resolver.d.ts +0 -161
- package/dist/core/src/env/workflow/utils/template-resolver.js +0 -359
- package/dist/core/src/env/workflow/utils/template-resolver.test.d.ts +0 -2
- package/dist/core/src/env/workflow/utils/template-resolver.test.js +0 -216
- package/dist/core/src/env/workflow/utils/validation-rules.d.ts +0 -104
- package/dist/core/src/env/workflow/utils/validation-rules.js +0 -44
- package/dist/core/src/env/workflow/workflow-component.d.ts +0 -135
- package/dist/core/src/env/workflow/workflow-component.js +0 -376
- package/dist/core/src/index.d.ts +0 -54
- package/dist/core/src/index.js +0 -66
- package/dist/core/src/utils/id.d.ts +0 -12
- package/dist/core/src/utils/id.js +0 -20
- package/dist/roy-agent-darwin-arm64/bin/roy.js +0 -127298
- package/dist/roy-agent-darwin-x64/bin/roy.js +0 -127298
- package/dist/roy-agent-linux-arm64/bin/roy.js +0 -127298
- package/dist/roy-agent-linux-x64/bin/roy.js +0 -127298
- package/dist/roy-agent-windows-x64/bin/roy.js +0 -127298
- package/src/bin/roy.ts +0 -12
- package/src/cli.ts +0 -101
- package/src/commands/act.ts +0 -480
- package/src/commands/commands-add.ts +0 -110
- package/src/commands/commands-dirs.ts +0 -70
- package/src/commands/commands-info.ts +0 -90
- package/src/commands/commands-list.ts +0 -161
- package/src/commands/commands-remove.ts +0 -147
- package/src/commands/commands.ts +0 -55
- package/src/commands/config/config-service.test.ts +0 -449
- package/src/commands/config/config-service.ts +0 -312
- package/src/commands/config/deep-merge.test.ts +0 -168
- package/src/commands/config/deep-merge.ts +0 -63
- package/src/commands/config/export.ts +0 -97
- package/src/commands/config/filter-history-e2e.test.ts +0 -141
- package/src/commands/config/import-preserve-refs.test.ts +0 -212
- package/src/commands/config/import.ts +0 -119
- package/src/commands/config/index.ts +0 -35
- package/src/commands/config/list.ts +0 -281
- package/src/commands/config/roy-config-e2e.test.ts +0 -297
- package/src/commands/config/types.ts +0 -54
- package/src/commands/debug/index.ts +0 -38
- package/src/commands/debug/log.test.ts +0 -233
- package/src/commands/debug/log.ts +0 -123
- package/src/commands/debug/span.test.ts +0 -297
- package/src/commands/debug/span.ts +0 -211
- package/src/commands/debug/trace.test.ts +0 -254
- package/src/commands/debug/trace.ts +0 -140
- package/src/commands/eventsource/add.ts +0 -133
- package/src/commands/eventsource/index.ts +0 -48
- package/src/commands/eventsource/list.ts +0 -194
- package/src/commands/eventsource/remove.ts +0 -95
- package/src/commands/eventsource/start.ts +0 -103
- package/src/commands/eventsource/status.ts +0 -185
- package/src/commands/eventsource/stop.ts +0 -89
- package/src/commands/index.ts +0 -22
- package/src/commands/input-handler.test.ts +0 -76
- package/src/commands/input-handler.ts +0 -43
- package/src/commands/interactive-esc.test.ts +0 -254
- package/src/commands/interactive.shutdown.test.ts +0 -122
- package/src/commands/interactive.test.ts +0 -221
- package/src/commands/interactive.ts +0 -1015
- package/src/commands/lsp/check.ts +0 -92
- package/src/commands/lsp/index.ts +0 -32
- package/src/commands/lsp/install.ts +0 -126
- package/src/commands/lsp/list.ts +0 -64
- package/src/commands/mcp/index.ts +0 -27
- package/src/commands/mcp/list.ts +0 -116
- package/src/commands/mcp/reload.ts +0 -70
- package/src/commands/mcp/tools.ts +0 -121
- package/src/commands/memory/extract-e2e.test.ts +0 -388
- package/src/commands/memory/index.ts +0 -11
- package/src/commands/memory/memory-simplified.test.ts +0 -58
- package/src/commands/memory/memory.ts +0 -25
- package/src/commands/memory/organize.ts +0 -300
- package/src/commands/memory/recall.test.ts +0 -120
- package/src/commands/memory/recall.ts +0 -88
- package/src/commands/memory/record-extract-handle-query.test.ts +0 -385
- package/src/commands/memory/record-prompt-component.test.ts +0 -343
- package/src/commands/memory/record.test.ts +0 -92
- package/src/commands/memory/record.ts +0 -332
- package/src/commands/plugin.test.ts +0 -292
- package/src/commands/plugin.ts +0 -267
- package/src/commands/sessions/active.ts +0 -96
- package/src/commands/sessions/add-message.ts +0 -96
- package/src/commands/sessions/checkpoints.ts +0 -154
- package/src/commands/sessions/compact.test.ts +0 -215
- package/src/commands/sessions/compact.ts +0 -269
- package/src/commands/sessions/delete.ts +0 -236
- package/src/commands/sessions/get.ts +0 -165
- package/src/commands/sessions/grep.ts +0 -233
- package/src/commands/sessions/index.ts +0 -95
- package/src/commands/sessions/list.ts +0 -210
- package/src/commands/sessions/messages.test.ts +0 -333
- package/src/commands/sessions/messages.ts +0 -248
- package/src/commands/sessions/mock.ts +0 -194
- package/src/commands/sessions/new.ts +0 -82
- package/src/commands/sessions/rename.ts +0 -98
- package/src/commands/shared/event-handler.ts +0 -213
- package/src/commands/shared/event-message-formatter.ts +0 -295
- package/src/commands/shared/index.ts +0 -11
- package/src/commands/shared/query-executor.test.ts +0 -434
- package/src/commands/shared/query-executor.ts +0 -324
- package/src/commands/shared/repl-engine.test.ts +0 -354
- package/src/commands/shared/session-manager.test.ts +0 -212
- package/src/commands/shared/session-manager.ts +0 -114
- package/src/commands/skills/get.ts +0 -90
- package/src/commands/skills/index.ts +0 -39
- package/src/commands/skills/list.ts +0 -129
- package/src/commands/skills/reload.ts +0 -59
- package/src/commands/skills/search.ts +0 -132
- package/src/commands/skills/show-config.ts +0 -93
- package/src/commands/tasks/complete.ts +0 -92
- package/src/commands/tasks/create.ts +0 -118
- package/src/commands/tasks/delete.ts +0 -86
- package/src/commands/tasks/get.ts +0 -116
- package/src/commands/tasks/index.ts +0 -53
- package/src/commands/tasks/list.ts +0 -140
- package/src/commands/tasks/operations.ts +0 -120
- package/src/commands/tasks/update.ts +0 -122
- package/src/commands/tools/exec-tool.ts +0 -128
- package/src/commands/tools/get.ts +0 -114
- package/src/commands/tools/index.ts +0 -35
- package/src/commands/tools/list.ts +0 -107
- package/src/commands/tools/shared/index.ts +0 -7
- package/src/commands/tools/shared/schema-helper.ts +0 -111
- package/src/commands/workflow/commands/add.ts +0 -315
- package/src/commands/workflow/commands/get.ts +0 -193
- package/src/commands/workflow/commands/list.ts +0 -137
- package/src/commands/workflow/commands/nodes.ts +0 -528
- package/src/commands/workflow/commands/remove.ts +0 -94
- package/src/commands/workflow/commands/run.ts +0 -398
- package/src/commands/workflow/commands/status.ts +0 -147
- package/src/commands/workflow/commands/stop.ts +0 -91
- package/src/commands/workflow/commands/update.ts +0 -130
- package/src/commands/workflow/commands/validate.ts +0 -139
- package/src/commands/workflow/commands/workflow-cli.test.ts +0 -196
- package/src/commands/workflow/index.ts +0 -65
- package/src/commands/workflow/renderers.ts +0 -358
- package/src/commands/workflow/validators/index.ts +0 -8
- package/src/commands/workflow/validators/node-validator-factory.ts +0 -40
- package/src/commands/workflow/validators/node-validator.ts +0 -125
- package/src/commands/workflow/validators/nodes/agent-node-validator.ts +0 -58
- package/src/commands/workflow/validators/nodes/condition-node-validator.ts +0 -34
- package/src/commands/workflow/validators/nodes/decorator-node-validator.ts +0 -45
- package/src/commands/workflow/validators/nodes/merge-node-validator.ts +0 -46
- package/src/commands/workflow/validators/nodes/skill-node-validator.ts +0 -33
- package/src/commands/workflow/validators/nodes/tool-node-validator.ts +0 -54
- package/src/commands/workflow/validators/nodes/workflow-node-validator.ts +0 -33
- package/src/commands/workflow/validators/types.ts +0 -78
- package/src/commands/workflow/validators/workflow-validator.test.ts +0 -273
- package/src/commands/workflow/validators/workflow-validator.ts +0 -320
- package/src/index.ts +0 -19
- package/src/plugin/apply.ts +0 -103
- package/src/plugin/discover.ts +0 -219
- package/src/plugin/index.ts +0 -45
- package/src/plugin/registry.ts +0 -272
- package/src/plugin/types.ts +0 -165
- package/src/services/context-handler.service.test.ts +0 -501
- package/src/services/context-handler.service.ts +0 -372
- package/src/services/environment.service.commands-prompt.test.ts +0 -167
- package/src/services/environment.service.ts +0 -656
- package/src/services/output.service.test.ts +0 -92
- package/src/services/output.service.ts +0 -122
- package/src/services/quiet-mode.service.test.ts +0 -114
- package/src/services/quiet-mode.service.ts +0 -81
- package/src/services/stream-output.service.test.ts +0 -214
- package/src/services/stream-output.service.ts +0 -323
- package/src/util/which.test.ts +0 -101
- package/src/util/which.ts +0 -55
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview LSP 预加载和生命周期集成测试
|
|
3
|
-
*/
|
|
4
|
-
import { describe, it, expect, afterEach } from "vitest";
|
|
5
|
-
import { LSPManager, createGlobalLSPManager, clearGlobalLSPManager } from "./manager.js";
|
|
6
|
-
// Mock LSPManager 内部组件
|
|
7
|
-
class MockLSPClient {
|
|
8
|
-
disposed = false;
|
|
9
|
-
lastUsed = Date.now();
|
|
10
|
-
async ping() { return true; }
|
|
11
|
-
async getDiagnostics() { return []; }
|
|
12
|
-
getLastUsed() { return this.lastUsed; }
|
|
13
|
-
async dispose() { this.disposed = true; }
|
|
14
|
-
}
|
|
15
|
-
describe("LSP Preload Integration", () => {
|
|
16
|
-
// 测试配置
|
|
17
|
-
const testConfig = {
|
|
18
|
-
idleTimeout: 5000,
|
|
19
|
-
maxConnections: 5,
|
|
20
|
-
autoDownload: false,
|
|
21
|
-
preloadLanguages: ["typescript"],
|
|
22
|
-
};
|
|
23
|
-
// 清理全局状态,避免测试间相互影响
|
|
24
|
-
afterEach(async () => {
|
|
25
|
-
clearGlobalLSPManager();
|
|
26
|
-
});
|
|
27
|
-
describe("Global LSP Manager Lifecycle", () => {
|
|
28
|
-
it("should create global manager with config", () => {
|
|
29
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
30
|
-
expect(manager).toBeDefined();
|
|
31
|
-
expect(typeof manager.dispose).toBe("function");
|
|
32
|
-
expect(typeof manager.prewarm).toBe("function");
|
|
33
|
-
expect(typeof manager.registerShutdownHandler).toBe("function");
|
|
34
|
-
});
|
|
35
|
-
it("should return same instance for multiple calls", () => {
|
|
36
|
-
const manager1 = createGlobalLSPManager(testConfig);
|
|
37
|
-
const manager2 = createGlobalLSPManager();
|
|
38
|
-
expect(manager1).toBe(manager2);
|
|
39
|
-
});
|
|
40
|
-
it("should have shutdown handler registration", () => {
|
|
41
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
42
|
-
expect(typeof manager.registerShutdownHandler).toBe("function");
|
|
43
|
-
// 注册应该不抛出错误
|
|
44
|
-
expect(() => manager.registerShutdownHandler()).not.toThrow();
|
|
45
|
-
});
|
|
46
|
-
it("should dispose all connections", async () => {
|
|
47
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
48
|
-
// 调用 dispose 不应该抛出错误
|
|
49
|
-
try {
|
|
50
|
-
await manager.dispose();
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
expect(error).toBeUndefined();
|
|
54
|
-
}
|
|
55
|
-
// 多次调用应该安全
|
|
56
|
-
try {
|
|
57
|
-
await manager.dispose();
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
expect(error).toBeUndefined();
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
describe("Prewarm functionality", () => {
|
|
65
|
-
it("should have prewarm method", () => {
|
|
66
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
67
|
-
expect(typeof manager.prewarm).toBe("function");
|
|
68
|
-
});
|
|
69
|
-
it("should return promise from prewarm", async () => {
|
|
70
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
71
|
-
const result = manager.prewarm();
|
|
72
|
-
// prewarm 返回 Promise,但可能因为缺少二进制而失败
|
|
73
|
-
expect(result).toBeInstanceOf(Promise);
|
|
74
|
-
// 等待结果
|
|
75
|
-
await result;
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
describe("Connection stats", () => {
|
|
79
|
-
it("should provide connection statistics", () => {
|
|
80
|
-
const manager = createGlobalLSPManager(testConfig);
|
|
81
|
-
const stats = manager.getStats();
|
|
82
|
-
expect(stats).toBeDefined();
|
|
83
|
-
expect(typeof stats.activeConnections).toBe("number");
|
|
84
|
-
expect(typeof stats.prewarmedConnections).toBe("number");
|
|
85
|
-
expect(typeof stats.totalServers).toBe("number");
|
|
86
|
-
expect(Array.isArray(stats.connections)).toBe(true);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
describe("LSP Preload Configuration", () => {
|
|
91
|
-
it("should support preloadLanguages in config", () => {
|
|
92
|
-
const config = {
|
|
93
|
-
idleTimeout: 60000,
|
|
94
|
-
maxConnections: 10,
|
|
95
|
-
autoDownload: false,
|
|
96
|
-
preloadLanguages: ["typescript", "python"],
|
|
97
|
-
};
|
|
98
|
-
const manager = new LSPManager(config);
|
|
99
|
-
expect(manager).toBeDefined();
|
|
100
|
-
manager.dispose();
|
|
101
|
-
});
|
|
102
|
-
it("should support cleanupInterval in config", () => {
|
|
103
|
-
const config = {
|
|
104
|
-
idleTimeout: 60000,
|
|
105
|
-
maxConnections: 5,
|
|
106
|
-
autoDownload: false,
|
|
107
|
-
cleanupInterval: 15000, // 15 秒
|
|
108
|
-
};
|
|
109
|
-
const manager = new LSPManager(config);
|
|
110
|
-
expect(manager).toBeDefined();
|
|
111
|
-
manager.dispose();
|
|
112
|
-
});
|
|
113
|
-
it("should support healthCheckInterval in config", () => {
|
|
114
|
-
const config = {
|
|
115
|
-
idleTimeout: 60000,
|
|
116
|
-
maxConnections: 5,
|
|
117
|
-
autoDownload: false,
|
|
118
|
-
healthCheckInterval: 30000, // 30 秒
|
|
119
|
-
};
|
|
120
|
-
const manager = new LSPManager(config);
|
|
121
|
-
expect(manager).toBeDefined();
|
|
122
|
-
manager.dispose();
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
//# sourceMappingURL=preload.integration.test.js.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview LSP Server 实现
|
|
3
|
-
*
|
|
4
|
-
* 定义 LSP 服务器配置和管理
|
|
5
|
-
*/
|
|
6
|
-
import { LSPClient } from "./client";
|
|
7
|
-
import type { LSPServerInfo, LSPManagerConfig } from "../types/linter";
|
|
8
|
-
/**
|
|
9
|
-
* LSP 服务器类
|
|
10
|
-
*
|
|
11
|
-
* 封装 LSP 服务器的启动和管理
|
|
12
|
-
*/
|
|
13
|
-
export declare class LSPServer {
|
|
14
|
-
private info;
|
|
15
|
-
private config;
|
|
16
|
-
constructor(info: LSPServerInfo, config: LSPManagerConfig);
|
|
17
|
-
/**
|
|
18
|
-
* 获取服务器 ID
|
|
19
|
-
*/
|
|
20
|
-
get id(): string;
|
|
21
|
-
/**
|
|
22
|
-
* 获取支持的扩展名
|
|
23
|
-
*/
|
|
24
|
-
get extensions(): string[];
|
|
25
|
-
/**
|
|
26
|
-
* 查找项目根目录
|
|
27
|
-
*
|
|
28
|
-
* 向上查找 rootPattern 中的文件
|
|
29
|
-
*/
|
|
30
|
-
findRoot(filePath: string, workspaceRoot?: string): Promise<string | null>;
|
|
31
|
-
/**
|
|
32
|
-
* 检查二进制是否存在
|
|
33
|
-
*/
|
|
34
|
-
checkBinary(): Promise<string | null>;
|
|
35
|
-
/**
|
|
36
|
-
* 下载 LSP 服务器二进制
|
|
37
|
-
*
|
|
38
|
-
* 使用 LSPDependencyInstaller 自动下载缺失的包
|
|
39
|
-
*/
|
|
40
|
-
protected downloadBinary(): Promise<string | null>;
|
|
41
|
-
/**
|
|
42
|
-
* 查找全局安装的 TypeScript 包路径
|
|
43
|
-
*/
|
|
44
|
-
private findGlobalTypeScript;
|
|
45
|
-
/**
|
|
46
|
-
* 创建 LSP Client
|
|
47
|
-
*/
|
|
48
|
-
createClient(root: string): Promise<LSPClient | null>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* LSP 服务器注册表
|
|
52
|
-
*/
|
|
53
|
-
export declare class LSPServerRegistry {
|
|
54
|
-
private static servers;
|
|
55
|
-
/**
|
|
56
|
-
* 注册服务器
|
|
57
|
-
*/
|
|
58
|
-
static register(info: LSPServerInfo): void;
|
|
59
|
-
/**
|
|
60
|
-
* 获取服务器
|
|
61
|
-
*/
|
|
62
|
-
static get(id: string): LSPServerInfo | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* 获取所有服务器 ID
|
|
65
|
-
*/
|
|
66
|
-
static getServerIds(): string[];
|
|
67
|
-
/**
|
|
68
|
-
* 创建服务器实例
|
|
69
|
-
*/
|
|
70
|
-
static create(id: string, config: LSPManagerConfig): LSPServer | null;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview LSP Server 实现
|
|
3
|
-
*
|
|
4
|
-
* 定义 LSP 服务器配置和管理
|
|
5
|
-
*/
|
|
6
|
-
import { spawn } from "child_process";
|
|
7
|
-
import path from "path";
|
|
8
|
-
import fs from "fs/promises";
|
|
9
|
-
import { which } from "../util/which.js";
|
|
10
|
-
import { createLSPClient } from "./client.js";
|
|
11
|
-
import { LSPDependencyInstaller, LSP_PACKAGES } from "../lsp-deps/installer.js";
|
|
12
|
-
/**
|
|
13
|
-
* LSP 服务器类
|
|
14
|
-
*
|
|
15
|
-
* 封装 LSP 服务器的启动和管理
|
|
16
|
-
*/
|
|
17
|
-
export class LSPServer {
|
|
18
|
-
info;
|
|
19
|
-
config;
|
|
20
|
-
constructor(info, config) {
|
|
21
|
-
this.info = info;
|
|
22
|
-
this.config = config;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 获取服务器 ID
|
|
26
|
-
*/
|
|
27
|
-
get id() {
|
|
28
|
-
return this.info.id;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* 获取支持的扩展名
|
|
32
|
-
*/
|
|
33
|
-
get extensions() {
|
|
34
|
-
return this.info.extensions;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 查找项目根目录
|
|
38
|
-
*
|
|
39
|
-
* 向上查找 rootPattern 中的文件
|
|
40
|
-
*/
|
|
41
|
-
async findRoot(filePath, workspaceRoot) {
|
|
42
|
-
const stopAt = workspaceRoot ?? path.parse(filePath).root;
|
|
43
|
-
let currentDir = path.dirname(filePath);
|
|
44
|
-
while (currentDir !== stopAt && currentDir !== "/") {
|
|
45
|
-
// 检查排除模式
|
|
46
|
-
if (this.info.excludePattern) {
|
|
47
|
-
for (const pattern of this.info.excludePattern) {
|
|
48
|
-
const excludePath = path.join(currentDir, pattern);
|
|
49
|
-
try {
|
|
50
|
-
await fs.access(excludePath);
|
|
51
|
-
// 找到了排除文件,返回 null
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
catch {
|
|
55
|
-
// 文件不存在,继续向上查找
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// 检查根目录标识文件
|
|
60
|
-
for (const pattern of this.info.rootPattern) {
|
|
61
|
-
const rootFile = path.join(currentDir, pattern);
|
|
62
|
-
try {
|
|
63
|
-
await fs.access(rootFile);
|
|
64
|
-
return currentDir;
|
|
65
|
-
}
|
|
66
|
-
catch {
|
|
67
|
-
// 文件不存在,继续向上查找
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
currentDir = path.dirname(currentDir);
|
|
71
|
-
}
|
|
72
|
-
// 没有找到,返回 workspaceRoot 或文件所在目录
|
|
73
|
-
return workspaceRoot ?? path.dirname(filePath);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* 检查二进制是否存在
|
|
77
|
-
*/
|
|
78
|
-
async checkBinary() {
|
|
79
|
-
const cmd = this.info.command[0];
|
|
80
|
-
const binaryPath = which(cmd);
|
|
81
|
-
if (binaryPath)
|
|
82
|
-
return binaryPath;
|
|
83
|
-
// 如果配置了自动下载,尝试下载
|
|
84
|
-
if (this.config.autoDownload) {
|
|
85
|
-
return this.downloadBinary();
|
|
86
|
-
}
|
|
87
|
-
return null;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* 下载 LSP 服务器二进制
|
|
91
|
-
*
|
|
92
|
-
* 使用 LSPDependencyInstaller 自动下载缺失的包
|
|
93
|
-
*/
|
|
94
|
-
async downloadBinary() {
|
|
95
|
-
try {
|
|
96
|
-
const installer = new LSPDependencyInstaller({
|
|
97
|
-
target: "global",
|
|
98
|
-
installPath: this.config.installPath,
|
|
99
|
-
});
|
|
100
|
-
// 查找对应的包
|
|
101
|
-
const pkg = LSP_PACKAGES.find((p) => p.serverId === this.info.id);
|
|
102
|
-
if (!pkg) {
|
|
103
|
-
console.debug(`[LSPServer] No package registered for server: ${this.info.id}`);
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
// 安装包
|
|
107
|
-
const success = installer.install(this.info.id, { verbose: false });
|
|
108
|
-
if (!success) {
|
|
109
|
-
console.debug(`[LSPServer] Failed to install ${pkg.npmPackage}`);
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
// 返回安装后的二进制路径
|
|
113
|
-
const binaryPath = which(this.info.command[0]);
|
|
114
|
-
return binaryPath;
|
|
115
|
-
}
|
|
116
|
-
catch (error) {
|
|
117
|
-
console.debug(`[LSPServer] Error downloading binary:`, error);
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* 查找全局安装的 TypeScript 包路径
|
|
123
|
-
*/
|
|
124
|
-
findGlobalTypeScript() {
|
|
125
|
-
const fs = require("fs");
|
|
126
|
-
// 尝试从 bun 全局包目录查找
|
|
127
|
-
const bunGlobalPath = path.resolve(process.env.BUN_INSTALL ?? "/home/dzk/.bun", "lib/node_modules/typescript");
|
|
128
|
-
if (fs.existsSync(bunGlobalPath)) {
|
|
129
|
-
return bunGlobalPath;
|
|
130
|
-
}
|
|
131
|
-
// 尝试从 npm 全局包目录查找
|
|
132
|
-
const npmGlobalPath = path.resolve(process.env.NPM_CONFIG_PREFIX ?? "/usr/local", "lib/node_modules/typescript");
|
|
133
|
-
if (fs.existsSync(npmGlobalPath)) {
|
|
134
|
-
return npmGlobalPath;
|
|
135
|
-
}
|
|
136
|
-
// 尝试项目根目录的 node_modules/typescript
|
|
137
|
-
const projectRoot = path.resolve(__dirname, "../../../../"); // 从 dist/lsp 到项目根
|
|
138
|
-
const projectTSPath = path.join(projectRoot, "node_modules/typescript");
|
|
139
|
-
if (fs.existsSync(projectTSPath)) {
|
|
140
|
-
return projectTSPath;
|
|
141
|
-
}
|
|
142
|
-
// 尝试常见的全局包位置
|
|
143
|
-
const commonPaths = [
|
|
144
|
-
"/home/dzk/.bun/lib/node_modules/typescript",
|
|
145
|
-
"/usr/local/lib/node_modules/typescript",
|
|
146
|
-
"/root/.npm-global/lib/node_modules/typescript",
|
|
147
|
-
];
|
|
148
|
-
for (const p of commonPaths) {
|
|
149
|
-
if (fs.existsSync(p)) {
|
|
150
|
-
return p;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return null;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* 创建 LSP Client
|
|
157
|
-
*/
|
|
158
|
-
async createClient(root) {
|
|
159
|
-
// 检查二进制
|
|
160
|
-
const binaryPath = await this.checkBinary();
|
|
161
|
-
if (!binaryPath) {
|
|
162
|
-
console.warn(`LSP server binary not found: ${this.info.command[0]}`);
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
// 启动进程
|
|
166
|
-
const args = this.info.args ?? ["--stdio"];
|
|
167
|
-
// 为 TypeScript 语言服务器配置全局 TypeScript 路径
|
|
168
|
-
const env = { ...process.env };
|
|
169
|
-
if (this.info.id === "typescript") {
|
|
170
|
-
// 查找全局 TypeScript 包路径
|
|
171
|
-
const globalTSPath = this.findGlobalTypeScript();
|
|
172
|
-
if (globalTSPath) {
|
|
173
|
-
// typescript-language-server 使用 TSSERVER_PATH 环境变量
|
|
174
|
-
env.TSSERVER_PATH = globalTSPath;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
const proc = spawn(binaryPath, args, {
|
|
178
|
-
cwd: root,
|
|
179
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
180
|
-
env,
|
|
181
|
-
});
|
|
182
|
-
// 处理进程错误
|
|
183
|
-
proc.on("error", (err) => {
|
|
184
|
-
console.error(`LSP server process error: ${this.info.id} - ${err.message}`);
|
|
185
|
-
});
|
|
186
|
-
// 创建客户端
|
|
187
|
-
try {
|
|
188
|
-
const client = await createLSPClient(proc, this.info, `file://${root}`);
|
|
189
|
-
return client;
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
console.error(`Failed to create LSP client: ${error}`);
|
|
193
|
-
proc.kill();
|
|
194
|
-
return null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* LSP 服务器注册表
|
|
200
|
-
*/
|
|
201
|
-
export class LSPServerRegistry {
|
|
202
|
-
static servers = new Map();
|
|
203
|
-
static {
|
|
204
|
-
// 注册内置服务器
|
|
205
|
-
this.register({
|
|
206
|
-
id: "typescript",
|
|
207
|
-
extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts"],
|
|
208
|
-
rootPattern: ["package-lock.json", "bun.lockb", "bun.lock", "pnpm-lock.yaml", "yarn.lock"],
|
|
209
|
-
excludePattern: ["deno.json", "deno.jsonc"],
|
|
210
|
-
command: ["typescript-language-server", "--stdio"],
|
|
211
|
-
});
|
|
212
|
-
this.register({
|
|
213
|
-
id: "python",
|
|
214
|
-
extensions: [".py"],
|
|
215
|
-
rootPattern: ["pyproject.toml", "requirements.txt", "setup.py", ".python-version", "Pipfile"],
|
|
216
|
-
command: ["pyright-langserver", "--stdio"],
|
|
217
|
-
});
|
|
218
|
-
this.register({
|
|
219
|
-
id: "vue",
|
|
220
|
-
extensions: [".vue"],
|
|
221
|
-
rootPattern: ["package.json"],
|
|
222
|
-
command: ["vue-language-server", "--stdio"],
|
|
223
|
-
});
|
|
224
|
-
this.register({
|
|
225
|
-
id: "css",
|
|
226
|
-
extensions: [".css", ".scss", ".sass", ".less"],
|
|
227
|
-
rootPattern: ["package.json"],
|
|
228
|
-
command: ["vscode-css-language-server", "--stdio"],
|
|
229
|
-
});
|
|
230
|
-
this.register({
|
|
231
|
-
id: "html",
|
|
232
|
-
extensions: [".html", ".htm"],
|
|
233
|
-
rootPattern: ["package.json"],
|
|
234
|
-
command: ["vscode-html-language-server", "--stdio"],
|
|
235
|
-
});
|
|
236
|
-
this.register({
|
|
237
|
-
id: "json",
|
|
238
|
-
extensions: [".json", ".jsonc"],
|
|
239
|
-
rootPattern: ["package.json"],
|
|
240
|
-
command: ["vscode-json-language-server", "--stdio"],
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* 注册服务器
|
|
245
|
-
*/
|
|
246
|
-
static register(info) {
|
|
247
|
-
this.servers.set(info.id, info);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* 获取服务器
|
|
251
|
-
*/
|
|
252
|
-
static get(id) {
|
|
253
|
-
return this.servers.get(id);
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* 获取所有服务器 ID
|
|
257
|
-
*/
|
|
258
|
-
static getServerIds() {
|
|
259
|
-
return Array.from(this.servers.keys());
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* 创建服务器实例
|
|
263
|
-
*/
|
|
264
|
-
static create(id, config) {
|
|
265
|
-
const info = this.get(id);
|
|
266
|
-
if (!info)
|
|
267
|
-
return null;
|
|
268
|
-
return new LSPServer(info, config);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
//# sourceMappingURL=server.js.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview LSPServer 测试
|
|
3
|
-
*/
|
|
4
|
-
import { describe, it, expect } from "vitest";
|
|
5
|
-
import { LSPServerRegistry } from "./server.js";
|
|
6
|
-
describe("LSPServer", () => {
|
|
7
|
-
describe("SERVERS", () => {
|
|
8
|
-
it("should have typescript server defined", () => {
|
|
9
|
-
const server = LSPServerRegistry.get("typescript");
|
|
10
|
-
expect(server).toBeDefined();
|
|
11
|
-
expect(server?.id).toBe("typescript");
|
|
12
|
-
expect(server?.extensions).toContain(".ts");
|
|
13
|
-
});
|
|
14
|
-
it("should have python server defined", () => {
|
|
15
|
-
const server = LSPServerRegistry.get("python");
|
|
16
|
-
expect(server).toBeDefined();
|
|
17
|
-
expect(server?.id).toBe("python");
|
|
18
|
-
expect(server?.extensions).toContain(".py");
|
|
19
|
-
});
|
|
20
|
-
it("should have vue server defined", () => {
|
|
21
|
-
const server = LSPServerRegistry.get("vue");
|
|
22
|
-
expect(server).toBeDefined();
|
|
23
|
-
expect(server?.id).toBe("vue");
|
|
24
|
-
expect(server?.extensions).toContain(".vue");
|
|
25
|
-
});
|
|
26
|
-
it("should have css server defined", () => {
|
|
27
|
-
const server = LSPServerRegistry.get("css");
|
|
28
|
-
expect(server).toBeDefined();
|
|
29
|
-
expect(server?.id).toBe("css");
|
|
30
|
-
expect(server?.extensions).toContain(".css");
|
|
31
|
-
});
|
|
32
|
-
it("should have html server defined", () => {
|
|
33
|
-
const server = LSPServerRegistry.get("html");
|
|
34
|
-
expect(server).toBeDefined();
|
|
35
|
-
expect(server?.id).toBe("html");
|
|
36
|
-
expect(server?.extensions).toContain(".html");
|
|
37
|
-
});
|
|
38
|
-
it("should have json server defined", () => {
|
|
39
|
-
const server = LSPServerRegistry.get("json");
|
|
40
|
-
expect(server).toBeDefined();
|
|
41
|
-
expect(server?.id).toBe("json");
|
|
42
|
-
expect(server?.extensions).toContain(".json");
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
describe("LSPServerRegistry", () => {
|
|
46
|
-
it("should return all server IDs", () => {
|
|
47
|
-
const ids = LSPServerRegistry.getServerIds();
|
|
48
|
-
expect(ids).toContain("typescript");
|
|
49
|
-
expect(ids).toContain("python");
|
|
50
|
-
expect(ids).toContain("vue");
|
|
51
|
-
});
|
|
52
|
-
it("should return undefined for unknown server", () => {
|
|
53
|
-
const server = LSPServerRegistry.get("unknown");
|
|
54
|
-
expect(server).toBeUndefined();
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
describe("findRoot", () => {
|
|
58
|
-
it("should be a function on LSPServer instance", () => {
|
|
59
|
-
const server = LSPServerRegistry.create("typescript", {
|
|
60
|
-
idleTimeout: 60000,
|
|
61
|
-
maxConnections: 5,
|
|
62
|
-
autoDownload: false,
|
|
63
|
-
});
|
|
64
|
-
expect(typeof server?.findRoot).toBe("function");
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
describe("createClient", () => {
|
|
68
|
-
it("should be a function on LSPServer instance", () => {
|
|
69
|
-
const server = LSPServerRegistry.create("typescript", {
|
|
70
|
-
idleTimeout: 60000,
|
|
71
|
-
maxConnections: 5,
|
|
72
|
-
autoDownload: false,
|
|
73
|
-
});
|
|
74
|
-
expect(typeof server?.createClient).toBe("function");
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=server.test.js.map
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview LSP 配置管理
|
|
3
|
-
*
|
|
4
|
-
* 管理 LSP 的安装路径、预加载等配置
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* LSP 配置选项
|
|
8
|
-
*/
|
|
9
|
-
export interface LSPConfigOptions {
|
|
10
|
-
/** 是否启用 LSP 功能 */
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
/** 是否预加载 LSP 服务器 */
|
|
13
|
-
preload?: boolean;
|
|
14
|
-
/** 预加载的语言服务器 ID 列表 */
|
|
15
|
-
preloadLanguages?: string[];
|
|
16
|
-
/** LSP 包安装路径 */
|
|
17
|
-
installPath?: string;
|
|
18
|
-
/** 空闲超时时间 (ms) */
|
|
19
|
-
idleTimeout?: number;
|
|
20
|
-
/** 最大并发连接数 */
|
|
21
|
-
maxConnections?: number;
|
|
22
|
-
/** 是否自动安装缺失的依赖 */
|
|
23
|
-
autoInstall?: boolean;
|
|
24
|
-
/** 跳过 LSP 依赖安装 */
|
|
25
|
-
skipDeps?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* LSP 配置
|
|
29
|
-
*/
|
|
30
|
-
export declare class LSPConfig {
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
preload: boolean;
|
|
33
|
-
preloadLanguages: string[] | undefined;
|
|
34
|
-
installPath: string;
|
|
35
|
-
idleTimeout: number;
|
|
36
|
-
maxConnections: number;
|
|
37
|
-
autoInstall: boolean;
|
|
38
|
-
skipDeps: boolean;
|
|
39
|
-
constructor(options?: LSPConfigOptions);
|
|
40
|
-
/**
|
|
41
|
-
* 获取默认安装路径
|
|
42
|
-
*/
|
|
43
|
-
private getDefaultInstallPath;
|
|
44
|
-
/**
|
|
45
|
-
* 获取全局 bin 路径
|
|
46
|
-
*/
|
|
47
|
-
getGlobalBinPath(): string;
|
|
48
|
-
/**
|
|
49
|
-
* 转换为 JSON 对象
|
|
50
|
-
*/
|
|
51
|
-
toJSON(): LSPConfigOptions;
|
|
52
|
-
/**
|
|
53
|
-
* 从 JSON 对象加载
|
|
54
|
-
*/
|
|
55
|
-
static fromJSON(json: Partial<LSPConfigOptions>): LSPConfig;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* LSP 配置加载器
|
|
59
|
-
*/
|
|
60
|
-
export declare class LSPConfigLoader {
|
|
61
|
-
private configPath;
|
|
62
|
-
constructor(configDir?: string);
|
|
63
|
-
/**
|
|
64
|
-
* 加载配置
|
|
65
|
-
*/
|
|
66
|
-
load(): LSPConfig;
|
|
67
|
-
/**
|
|
68
|
-
* 保存配置
|
|
69
|
-
*/
|
|
70
|
-
save(config: LSPConfig): void;
|
|
71
|
-
/**
|
|
72
|
-
* 获取配置路径
|
|
73
|
-
*/
|
|
74
|
-
getConfigPath(): string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* 获取默认 LSP 配置
|
|
78
|
-
*/
|
|
79
|
-
export declare function getDefaultLSPConfig(): LSPConfig;
|
|
80
|
-
/**
|
|
81
|
-
* 创建 LSP 配置加载器
|
|
82
|
-
*/
|
|
83
|
-
export declare function createLSPConfigLoader(configDir?: string): LSPConfigLoader;
|
|
84
|
-
//# sourceMappingURL=config.d.ts.map
|