@lotagate/cli 0.1.22 → 0.1.24
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 +7 -7
- package/scripts/install-native.mjs +11 -11
- package/dist/application/agent/agent-history.d.ts +0 -3
- package/dist/application/agent/agent-history.js +0 -81
- package/dist/application/agent/agent-input-context.d.ts +0 -9
- package/dist/application/agent/agent-input-context.js +0 -12
- package/dist/application/agent/agent-limit.d.ts +0 -3
- package/dist/application/agent/agent-limit.js +0 -12
- package/dist/application/agent/agent-run-tracker.d.ts +0 -30
- package/dist/application/agent/agent-run-tracker.js +0 -68
- package/dist/application/agent/agent-session-store.d.ts +0 -19
- package/dist/application/agent/agent-session-store.js +0 -74
- package/dist/application/agent/capability-profile.d.ts +0 -37
- package/dist/application/agent/capability-profile.js +0 -13
- package/dist/application/agent/cli-agent-execution-service.d.ts +0 -81
- package/dist/application/agent/cli-agent-execution-service.js +0 -279
- package/dist/application/agent/context-compaction-persistence.d.ts +0 -8
- package/dist/application/agent/context-compaction-persistence.js +0 -27
- package/dist/application/agent/context-compaction.d.ts +0 -20
- package/dist/application/agent/context-compaction.js +0 -114
- package/dist/application/agent/prompt-data-safety.d.ts +0 -14
- package/dist/application/agent/prompt-data-safety.js +0 -38
- package/dist/application/agent/safe-system-prompt.d.ts +0 -3
- package/dist/application/agent/safe-system-prompt.js +0 -19
- package/dist/application/agent/scoped-tool-executor.d.ts +0 -13
- package/dist/application/agent/scoped-tool-executor.js +0 -32
- package/dist/application/agent/system-prompt-builder.d.ts +0 -14
- package/dist/application/agent/system-prompt-builder.js +0 -199
- package/dist/application/agent/tool-catalog.d.ts +0 -14
- package/dist/application/agent/tool-catalog.js +0 -30
- package/dist/application/agent/tool-display.d.ts +0 -6
- package/dist/application/agent/tool-display.js +0 -59
- package/dist/application/agent/tool-hook-lifecycle.d.ts +0 -19
- package/dist/application/agent/tool-hook-lifecycle.js +0 -85
- package/dist/application/auth/authentication-service.d.ts +0 -20
- package/dist/application/auth/authentication-service.js +0 -44
- package/dist/application/chat/chat-service.d.ts +0 -12
- package/dist/application/chat/chat-service.js +0 -19
- package/dist/application/chat/pending-attachment-store.d.ts +0 -12
- package/dist/application/chat/pending-attachment-store.js +0 -28
- package/dist/application/commands/application-command-executor.d.ts +0 -20
- package/dist/application/commands/application-command-executor.js +0 -66
- package/dist/application/commands/cli-args.d.ts +0 -6
- package/dist/application/commands/cli-args.js +0 -43
- package/dist/application/commands/cli-command-services.d.ts +0 -16
- package/dist/application/commands/cli-command-services.js +0 -405
- package/dist/application/commands/command-catalog.d.ts +0 -6
- package/dist/application/commands/command-catalog.js +0 -159
- package/dist/application/commands/command-contract.d.ts +0 -58
- package/dist/application/commands/command-contract.js +0 -1
- package/dist/application/commands/command-hints.d.ts +0 -9
- package/dist/application/commands/command-hints.js +0 -17
- package/dist/application/commands/command-output.d.ts +0 -4
- package/dist/application/commands/command-output.js +0 -1
- package/dist/application/commands/command-parser.d.ts +0 -10
- package/dist/application/commands/command-parser.js +0 -155
- package/dist/application/commands/command-presentation.d.ts +0 -7
- package/dist/application/commands/command-presentation.js +0 -131
- package/dist/application/commands/command-registry.d.ts +0 -11
- package/dist/application/commands/command-registry.js +0 -64
- package/dist/application/commands/command-runtime.d.ts +0 -2
- package/dist/application/commands/command-runtime.js +0 -3
- package/dist/application/commands/goal-command-handlers.d.ts +0 -3
- package/dist/application/commands/goal-command-handlers.js +0 -120
- package/dist/application/commands/media-command-handlers.d.ts +0 -9
- package/dist/application/commands/media-command-handlers.js +0 -307
- package/dist/application/commands/media-command-output.d.ts +0 -11
- package/dist/application/commands/media-command-output.js +0 -8
- package/dist/application/commands/runtime-command-handlers.d.ts +0 -7
- package/dist/application/commands/runtime-command-handlers.js +0 -177
- package/dist/application/commands/stream-output.d.ts +0 -4
- package/dist/application/commands/stream-output.js +0 -10
- package/dist/application/commands/utility-commands.d.ts +0 -6
- package/dist/application/commands/utility-commands.js +0 -81
- package/dist/application/config/execution-config.d.ts +0 -4
- package/dist/application/config/execution-config.js +0 -6
- package/dist/application/extensions/extension-list-contract.d.ts +0 -13
- package/dist/application/extensions/extension-list-contract.js +0 -1
- package/dist/application/extensions/extension-list-formatters.d.ts +0 -31
- package/dist/application/extensions/extension-list-formatters.js +0 -98
- package/dist/application/extensions/extension-list-output.d.ts +0 -3
- package/dist/application/extensions/extension-list-output.js +0 -7
- package/dist/application/extensions/plugin-contribution-registry.d.ts +0 -15
- package/dist/application/extensions/plugin-contribution-registry.js +0 -80
- package/dist/application/extensions/skill-scope-store.d.ts +0 -23
- package/dist/application/extensions/skill-scope-store.js +0 -33
- package/dist/application/formatting/compact-number.d.ts +0 -2
- package/dist/application/formatting/compact-number.js +0 -18
- package/dist/application/formatting/compact-table.d.ts +0 -22
- package/dist/application/formatting/compact-table.js +0 -49
- package/dist/application/media/video-operation-poller.d.ts +0 -5
- package/dist/application/media/video-operation-poller.js +0 -42
- package/dist/application/model/cached-model-catalog.d.ts +0 -13
- package/dist/application/model/cached-model-catalog.js +0 -31
- package/dist/application/model/initial-model-selection.d.ts +0 -10
- package/dist/application/model/initial-model-selection.js +0 -11
- package/dist/application/model/model-catalog-service.d.ts +0 -6
- package/dist/application/model/model-catalog-service.js +0 -13
- package/dist/application/model/model-context-window.d.ts +0 -3
- package/dist/application/model/model-context-window.js +0 -23
- package/dist/application/orchestration/cli-subagent-service.d.ts +0 -70
- package/dist/application/orchestration/cli-subagent-service.js +0 -328
- package/dist/application/orchestration/cli-turn-event-projector.d.ts +0 -12
- package/dist/application/orchestration/cli-turn-event-projector.js +0 -81
- package/dist/application/orchestration/cli-turn-events.d.ts +0 -76
- package/dist/application/orchestration/cli-turn-events.js +0 -39
- package/dist/application/orchestration/cli-turn-persistence.d.ts +0 -6
- package/dist/application/orchestration/cli-turn-persistence.js +0 -14
- package/dist/application/orchestration/goal-evaluator.d.ts +0 -18
- package/dist/application/orchestration/goal-evaluator.js +0 -88
- package/dist/application/orchestration/goal-input.d.ts +0 -3
- package/dist/application/orchestration/goal-input.js +0 -19
- package/dist/application/orchestration/goal-output.d.ts +0 -2
- package/dist/application/orchestration/goal-output.js +0 -11
- package/dist/application/orchestration/goal-runner.d.ts +0 -22
- package/dist/application/orchestration/goal-runner.js +0 -153
- package/dist/application/orchestration/goal-usage.d.ts +0 -9
- package/dist/application/orchestration/goal-usage.js +0 -19
- package/dist/application/orchestration/headless-agent-turn.d.ts +0 -32
- package/dist/application/orchestration/headless-agent-turn.js +0 -82
- package/dist/application/orchestration/plan-generator.d.ts +0 -7
- package/dist/application/orchestration/plan-generator.js +0 -34
- package/dist/application/orchestration/subagent-coordinator.d.ts +0 -33
- package/dist/application/orchestration/subagent-coordinator.js +0 -28
- package/dist/application/orchestration/subagent-handoff.d.ts +0 -2
- package/dist/application/orchestration/subagent-handoff.js +0 -68
- package/dist/application/orchestration/subagent-tool-executor.d.ts +0 -12
- package/dist/application/orchestration/subagent-tool-executor.js +0 -93
- package/dist/application/orchestration/task-assessment.d.ts +0 -4
- package/dist/application/orchestration/task-assessment.js +0 -35
- package/dist/application/orchestration/task-graph.d.ts +0 -13
- package/dist/application/orchestration/task-graph.js +0 -56
- package/dist/application/orchestration/task-scheduler.d.ts +0 -18
- package/dist/application/orchestration/task-scheduler.js +0 -88
- package/dist/application/project/project-trust-service.d.ts +0 -13
- package/dist/application/project/project-trust-service.js +0 -74
- package/dist/application/protocol/browser-host-tool-executor.d.ts +0 -41
- package/dist/application/protocol/browser-host-tool-executor.js +0 -88
- package/dist/application/protocol/desktop-agent-command.d.ts +0 -9
- package/dist/application/protocol/desktop-agent-command.js +0 -663
- package/dist/application/protocol/desktop-attachment-store.d.ts +0 -16
- package/dist/application/protocol/desktop-attachment-store.js +0 -82
- package/dist/application/protocol/desktop-command-catalog.d.ts +0 -2
- package/dist/application/protocol/desktop-command-catalog.js +0 -19
- package/dist/application/protocol/desktop-command-contract.d.ts +0 -22
- package/dist/application/protocol/desktop-command-contract.js +0 -3
- package/dist/application/protocol/desktop-command-executor.d.ts +0 -16
- package/dist/application/protocol/desktop-command-executor.js +0 -47
- package/dist/application/protocol/desktop-command-output.d.ts +0 -15
- package/dist/application/protocol/desktop-command-output.js +0 -24
- package/dist/application/protocol/desktop-execution-policy.d.ts +0 -17
- package/dist/application/protocol/desktop-execution-policy.js +0 -49
- package/dist/application/protocol/desktop-host-tool-executor.d.ts +0 -57
- package/dist/application/protocol/desktop-host-tool-executor.js +0 -53
- package/dist/application/protocol/desktop-orchestration-events.d.ts +0 -5
- package/dist/application/protocol/desktop-orchestration-events.js +0 -37
- package/dist/application/protocol/json-line-writer.d.ts +0 -9
- package/dist/application/protocol/json-line-writer.js +0 -19
- package/dist/application/protocol/jsonl-agent-command.d.ts +0 -3
- package/dist/application/protocol/jsonl-agent-command.js +0 -97
- package/dist/application/protocol/jsonl-protocol.d.ts +0 -52
- package/dist/application/protocol/jsonl-protocol.js +0 -170
- package/dist/application/security/desktop-tool-scope-policy.d.ts +0 -3
- package/dist/application/security/desktop-tool-scope-policy.js +0 -52
- package/dist/application/security/tool-action-risk-analyzer.d.ts +0 -13
- package/dist/application/security/tool-action-risk-analyzer.js +0 -64
- package/dist/application/security/tool-approval-service.d.ts +0 -35
- package/dist/application/security/tool-approval-service.js +0 -97
- package/dist/application/security/tool-risk-classifier.d.ts +0 -11
- package/dist/application/security/tool-risk-classifier.js +0 -65
- package/dist/application/security/workspace-permission-policy.d.ts +0 -10
- package/dist/application/security/workspace-permission-policy.js +0 -50
- package/dist/application/session/project-session-access.d.ts +0 -8
- package/dist/application/session/project-session-access.js +0 -19
- package/dist/application/session/session-compaction-service.d.ts +0 -10
- package/dist/application/session/session-compaction-service.js +0 -43
- package/dist/application/session/session-turn-lifecycle.d.ts +0 -5
- package/dist/application/session/session-turn-lifecycle.js +0 -31
- package/dist/application/workspace/workspace-file-index.d.ts +0 -15
- package/dist/application/workspace/workspace-file-index.js +0 -60
- package/dist/application/workspace/workspace-file-reference-resolver.d.ts +0 -14
- package/dist/application/workspace/workspace-file-reference-resolver.js +0 -123
- package/dist/application/workspace/workspace-instruction-loader.d.ts +0 -8
- package/dist/application/workspace/workspace-instruction-loader.js +0 -55
- package/dist/bootstrap/composition-root.d.ts +0 -6
- package/dist/bootstrap/composition-root.js +0 -4
- package/dist/bootstrap/global-cli-options.d.ts +0 -6
- package/dist/bootstrap/global-cli-options.js +0 -29
- package/dist/bootstrap/native-devtools-stub.d.ts +0 -10
- package/dist/bootstrap/native-devtools-stub.js +0 -10
- package/dist/bootstrap/native-entry.d.ts +0 -1
- package/dist/bootstrap/native-entry.js +0 -6
- package/dist/bootstrap/native-tiktoken.d.ts +0 -4
- package/dist/bootstrap/native-tiktoken.js +0 -5
- package/dist/bootstrap/runtime-factory.d.ts +0 -35
- package/dist/bootstrap/runtime-factory.js +0 -44
- package/dist/bootstrap/shutdown-manager.d.ts +0 -10
- package/dist/bootstrap/shutdown-manager.js +0 -14
- package/dist/bootstrap/startup-sequence.d.ts +0 -5
- package/dist/bootstrap/startup-sequence.js +0 -10
- package/dist/domain/auth/auth-profile.d.ts +0 -14
- package/dist/domain/auth/auth-profile.js +0 -39
- package/dist/domain/config/config-schema.d.ts +0 -17
- package/dist/domain/config/config-schema.js +0 -105
- package/dist/domain/errors/cli-command-hint.d.ts +0 -5
- package/dist/domain/errors/cli-command-hint.js +0 -1
- package/dist/domain/errors/cli-error.d.ts +0 -35
- package/dist/domain/errors/cli-error.js +0 -129
- package/dist/domain/errors/error-codes.d.ts +0 -46
- package/dist/domain/errors/error-codes.js +0 -45
- package/dist/domain/extensions/extension-scope.d.ts +0 -3
- package/dist/domain/extensions/extension-scope.js +0 -23
- package/dist/domain/extensions/extension-state.d.ts +0 -5
- package/dist/domain/extensions/extension-state.js +0 -11
- package/dist/domain/extensions/hook-manifest.d.ts +0 -10
- package/dist/domain/extensions/hook-manifest.js +0 -23
- package/dist/domain/extensions/mcp-config.d.ts +0 -18
- package/dist/domain/extensions/mcp-config.js +0 -111
- package/dist/domain/extensions/plugin-manifest.d.ts +0 -11
- package/dist/domain/extensions/plugin-manifest.js +0 -43
- package/dist/domain/extensions/skill-manifest.d.ts +0 -10
- package/dist/domain/extensions/skill-manifest.js +0 -51
- package/dist/domain/filesystem/file-change-diff.d.ts +0 -21
- package/dist/domain/filesystem/file-change-diff.js +0 -60
- package/dist/domain/media/gateway-media-contract.d.ts +0 -23
- package/dist/domain/media/gateway-media-contract.js +0 -163
- package/dist/domain/media/media-contract.d.ts +0 -28
- package/dist/domain/media/media-contract.js +0 -1
- package/dist/domain/media/media-execution-policy.d.ts +0 -9
- package/dist/domain/media/media-execution-policy.js +0 -31
- package/dist/domain/orchestration/goal.d.ts +0 -58
- package/dist/domain/orchestration/goal.js +0 -113
- package/dist/domain/orchestration/subagent-identity.d.ts +0 -2
- package/dist/domain/orchestration/subagent-identity.js +0 -8
- package/dist/domain/orchestration/subagent.d.ts +0 -33
- package/dist/domain/orchestration/subagent.js +0 -1
- package/dist/domain/orchestration/task.d.ts +0 -31
- package/dist/domain/orchestration/task.js +0 -1
- package/dist/domain/project/project-identity.d.ts +0 -6
- package/dist/domain/project/project-identity.js +0 -4
- package/dist/domain/runtime/assistant-delta-normalizer.d.ts +0 -11
- package/dist/domain/runtime/assistant-delta-normalizer.js +0 -19
- package/dist/domain/runtime/resource-limits.d.ts +0 -60
- package/dist/domain/runtime/resource-limits.js +0 -60
- package/dist/domain/session/attachment.d.ts +0 -13
- package/dist/domain/session/attachment.js +0 -1
- package/dist/domain/session/session-schema.d.ts +0 -6
- package/dist/domain/session/session-schema.js +0 -28
- package/dist/domain/session/session.d.ts +0 -27
- package/dist/domain/session/session.js +0 -1
- package/dist/domain/settings/settings-document.d.ts +0 -8
- package/dist/domain/settings/settings-document.js +0 -36
- package/dist/domain/validation/record-schema.d.ts +0 -4
- package/dist/domain/validation/record-schema.js +0 -9
- package/dist/domain/workspace/workspace-settings.d.ts +0 -12
- package/dist/domain/workspace/workspace-settings.js +0 -44
- package/dist/infrastructure/agent-sdk/agent-instance-factory.d.ts +0 -22
- package/dist/infrastructure/agent-sdk/agent-instance-factory.js +0 -31
- package/dist/infrastructure/agent-sdk/tool-calling-model-client.d.ts +0 -11
- package/dist/infrastructure/agent-sdk/tool-calling-model-client.js +0 -447
- package/dist/infrastructure/cache/cache-policy.d.ts +0 -7
- package/dist/infrastructure/cache/cache-policy.js +0 -18
- package/dist/infrastructure/cache/file-cache-store.d.ts +0 -17
- package/dist/infrastructure/cache/file-cache-store.js +0 -121
- package/dist/infrastructure/clipboard/clipboard-adapter-factory.d.ts +0 -11
- package/dist/infrastructure/clipboard/clipboard-adapter-factory.js +0 -98
- package/dist/infrastructure/clipboard/clipboard-policy.d.ts +0 -8
- package/dist/infrastructure/clipboard/clipboard-policy.js +0 -19
- package/dist/infrastructure/clipboard/clipboard-text-adapter-factory.d.ts +0 -10
- package/dist/infrastructure/clipboard/clipboard-text-adapter-factory.js +0 -94
- package/dist/infrastructure/clipboard/image-normalizer.d.ts +0 -12
- package/dist/infrastructure/clipboard/image-normalizer.js +0 -78
- package/dist/infrastructure/clipboard/windows-clipboard-adapter.d.ts +0 -7
- package/dist/infrastructure/clipboard/windows-clipboard-adapter.js +0 -66
- package/dist/infrastructure/clipboard/windows-clipboard-text-adapter.d.ts +0 -7
- package/dist/infrastructure/clipboard/windows-clipboard-text-adapter.js +0 -70
- package/dist/infrastructure/config/config-loader.d.ts +0 -19
- package/dist/infrastructure/config/config-loader.js +0 -76
- package/dist/infrastructure/config/environment-values.d.ts +0 -2
- package/dist/infrastructure/config/environment-values.js +0 -7
- package/dist/infrastructure/credentials/composite-credential-store.d.ts +0 -11
- package/dist/infrastructure/credentials/composite-credential-store.js +0 -32
- package/dist/infrastructure/credentials/encrypted-file-credential-store.d.ts +0 -17
- package/dist/infrastructure/credentials/encrypted-file-credential-store.js +0 -181
- package/dist/infrastructure/credentials/environment-credential-store.d.ts +0 -11
- package/dist/infrastructure/credentials/environment-credential-store.js +0 -37
- package/dist/infrastructure/credentials/secret-input.d.ts +0 -7
- package/dist/infrastructure/credentials/secret-input.js +0 -44
- package/dist/infrastructure/extensions/composite-mcp-config-store.d.ts +0 -9
- package/dist/infrastructure/extensions/composite-mcp-config-store.js +0 -10
- package/dist/infrastructure/extensions/extension-directory-reader.d.ts +0 -2
- package/dist/infrastructure/extensions/extension-directory-reader.js +0 -15
- package/dist/infrastructure/extensions/extension-source-resolver.d.ts +0 -6
- package/dist/infrastructure/extensions/extension-source-resolver.js +0 -126
- package/dist/infrastructure/extensions/file-mcp-config-store.d.ts +0 -15
- package/dist/infrastructure/extensions/file-mcp-config-store.js +0 -66
- package/dist/infrastructure/extensions/hook-runtime.d.ts +0 -18
- package/dist/infrastructure/extensions/hook-runtime.js +0 -66
- package/dist/infrastructure/extensions/mcp-runtime.d.ts +0 -12
- package/dist/infrastructure/extensions/mcp-runtime.js +0 -52
- package/dist/infrastructure/extensions/plugin-discovery.d.ts +0 -5
- package/dist/infrastructure/extensions/plugin-discovery.js +0 -52
- package/dist/infrastructure/extensions/plugin-manager.d.ts +0 -26
- package/dist/infrastructure/extensions/plugin-manager.js +0 -139
- package/dist/infrastructure/extensions/skill-discovery.d.ts +0 -4
- package/dist/infrastructure/extensions/skill-discovery.js +0 -29
- package/dist/infrastructure/extensions/skill-installer.d.ts +0 -8
- package/dist/infrastructure/extensions/skill-installer.js +0 -88
- package/dist/infrastructure/extensions/skill-manager.d.ts +0 -22
- package/dist/infrastructure/extensions/skill-manager.js +0 -67
- package/dist/infrastructure/extensions/skill-roots.d.ts +0 -19
- package/dist/infrastructure/extensions/skill-roots.js +0 -25
- package/dist/infrastructure/extensions/skill-tool-executor.d.ts +0 -18
- package/dist/infrastructure/extensions/skill-tool-executor.js +0 -53
- package/dist/infrastructure/filesystem/atomic-file-store.d.ts +0 -12
- package/dist/infrastructure/filesystem/atomic-file-store.js +0 -106
- package/dist/infrastructure/filesystem/bounded-file-reader.d.ts +0 -6
- package/dist/infrastructure/filesystem/bounded-file-reader.js +0 -24
- package/dist/infrastructure/filesystem/bounded-json-reader.d.ts +0 -1
- package/dist/infrastructure/filesystem/bounded-json-reader.js +0 -7
- package/dist/infrastructure/filesystem/fs-errors.d.ts +0 -2
- package/dist/infrastructure/filesystem/fs-errors.js +0 -6
- package/dist/infrastructure/filesystem/gateway-media-input-reader.d.ts +0 -12
- package/dist/infrastructure/filesystem/gateway-media-input-reader.js +0 -49
- package/dist/infrastructure/filesystem/local-filesystem-tool-executor.d.ts +0 -21
- package/dist/infrastructure/filesystem/local-filesystem-tool-executor.js +0 -176
- package/dist/infrastructure/filesystem/path-resolver.d.ts +0 -20
- package/dist/infrastructure/filesystem/path-resolver.js +0 -119
- package/dist/infrastructure/filesystem/workspace-media-artifact-store.d.ts +0 -13
- package/dist/infrastructure/filesystem/workspace-media-artifact-store.js +0 -152
- package/dist/infrastructure/logging/daily-rotating-file-writer.d.ts +0 -20
- package/dist/infrastructure/logging/daily-rotating-file-writer.js +0 -75
- package/dist/infrastructure/logging/log-redactor.d.ts +0 -2
- package/dist/infrastructure/logging/log-redactor.js +0 -26
- package/dist/infrastructure/logging/logging-policy.d.ts +0 -6
- package/dist/infrastructure/logging/logging-policy.js +0 -6
- package/dist/infrastructure/logging/structured-logger.d.ts +0 -24
- package/dist/infrastructure/logging/structured-logger.js +0 -40
- package/dist/infrastructure/network/safe-media-downloader.d.ts +0 -23
- package/dist/infrastructure/network/safe-media-downloader.js +0 -239
- package/dist/infrastructure/platform/host-platform.d.ts +0 -14
- package/dist/infrastructure/platform/host-platform.js +0 -23
- package/dist/infrastructure/platform/host-process.d.ts +0 -17
- package/dist/infrastructure/platform/host-process.js +0 -116
- package/dist/infrastructure/platform/platform-paths.d.ts +0 -25
- package/dist/infrastructure/platform/platform-paths.js +0 -33
- package/dist/infrastructure/project/file-project-trust-store.d.ts +0 -12
- package/dist/infrastructure/project/file-project-trust-store.js +0 -59
- package/dist/infrastructure/sdk/chat-completion-adapter.d.ts +0 -8
- package/dist/infrastructure/sdk/chat-completion-adapter.js +0 -115
- package/dist/infrastructure/sdk/lotagate-client-factory.d.ts +0 -3
- package/dist/infrastructure/sdk/lotagate-client-factory.js +0 -8
- package/dist/infrastructure/sdk/model-catalog-adapter.d.ts +0 -19
- package/dist/infrastructure/sdk/model-catalog-adapter.js +0 -28
- package/dist/infrastructure/sdk/sdk-media-gateway-client.d.ts +0 -20
- package/dist/infrastructure/sdk/sdk-media-gateway-client.js +0 -97
- package/dist/infrastructure/sessions/file-goal-store.d.ts +0 -21
- package/dist/infrastructure/sessions/file-goal-store.js +0 -160
- package/dist/infrastructure/sessions/file-session-store.d.ts +0 -48
- package/dist/infrastructure/sessions/file-session-store.js +0 -525
- package/dist/infrastructure/sessions/project-session-paths.d.ts +0 -17
- package/dist/infrastructure/sessions/project-session-paths.js +0 -41
- package/dist/infrastructure/sessions/session-index.d.ts +0 -16
- package/dist/infrastructure/sessions/session-index.js +0 -84
- package/dist/infrastructure/sessions/session-journal.d.ts +0 -22
- package/dist/infrastructure/sessions/session-journal.js +0 -137
- package/dist/infrastructure/sessions/subagent-journal-store.d.ts +0 -28
- package/dist/infrastructure/sessions/subagent-journal-store.js +0 -30
- package/dist/infrastructure/shell/shell-tool-executor.d.ts +0 -17
- package/dist/infrastructure/shell/shell-tool-executor.js +0 -115
- package/dist/infrastructure/tokens/tiktoken-token-estimator.d.ts +0 -18
- package/dist/infrastructure/tokens/tiktoken-token-estimator.js +0 -48
- package/dist/infrastructure/workspace/workspace-settings-store.d.ts +0 -9
- package/dist/infrastructure/workspace/workspace-settings-store.js +0 -75
- package/dist/main.d.ts +0 -7
- package/dist/main.js +0 -66
- package/dist/ports/cache-store.d.ts +0 -10
- package/dist/ports/cache-store.js +0 -1
- package/dist/ports/chat-model.d.ts +0 -30
- package/dist/ports/chat-model.js +0 -1
- package/dist/ports/clipboard-adapter.d.ts +0 -7
- package/dist/ports/clipboard-adapter.js +0 -1
- package/dist/ports/clipboard-text-adapter.d.ts +0 -3
- package/dist/ports/clipboard-text-adapter.js +0 -1
- package/dist/ports/credential-store.d.ts +0 -7
- package/dist/ports/credential-store.js +0 -1
- package/dist/ports/goal-store.d.ts +0 -12
- package/dist/ports/goal-store.js +0 -1
- package/dist/ports/logger.d.ts +0 -8
- package/dist/ports/logger.js +0 -1
- package/dist/ports/media-gateway-client.d.ts +0 -54
- package/dist/ports/media-gateway-client.js +0 -1
- package/dist/ports/model-diagnostics.d.ts +0 -17
- package/dist/ports/model-diagnostics.js +0 -1
- package/dist/ports/project-trust-store.d.ts +0 -12
- package/dist/ports/project-trust-store.js +0 -1
- package/dist/ports/session-store.d.ts +0 -58
- package/dist/ports/session-store.js +0 -1
- package/dist/ports/subagent-lifecycle.d.ts +0 -31
- package/dist/ports/subagent-lifecycle.js +0 -1
- package/dist/ports/tool-activity.d.ts +0 -13
- package/dist/ports/tool-activity.js +0 -1
- package/dist/presentation/themes/theme.d.ts +0 -19
- package/dist/presentation/themes/theme.js +0 -8
- package/dist/presentation/tui/agent-initialization-renderer.d.ts +0 -4
- package/dist/presentation/tui/agent-initialization-renderer.js +0 -37
- package/dist/presentation/tui/context-display.d.ts +0 -21
- package/dist/presentation/tui/context-display.js +0 -33
- package/dist/presentation/tui/formatters.d.ts +0 -6
- package/dist/presentation/tui/formatters.js +0 -60
- package/dist/presentation/tui/ink/choice-window.d.ts +0 -5
- package/dist/presentation/tui/ink/choice-window.js +0 -5
- package/dist/presentation/tui/ink/components/activity-entry.d.ts +0 -6
- package/dist/presentation/tui/ink/components/activity-entry.js +0 -16
- package/dist/presentation/tui/ink/components/activity-status.d.ts +0 -10
- package/dist/presentation/tui/ink/components/activity-status.js +0 -21
- package/dist/presentation/tui/ink/components/choice-modal.d.ts +0 -11
- package/dist/presentation/tui/ink/components/choice-modal.js +0 -29
- package/dist/presentation/tui/ink/components/composer.d.ts +0 -40
- package/dist/presentation/tui/ink/components/composer.js +0 -271
- package/dist/presentation/tui/ink/components/file-diff.d.ts +0 -6
- package/dist/presentation/tui/ink/components/file-diff.js +0 -34
- package/dist/presentation/tui/ink/components/modal.d.ts +0 -8
- package/dist/presentation/tui/ink/components/modal.js +0 -110
- package/dist/presentation/tui/ink/components/shimmer-text.d.ts +0 -6
- package/dist/presentation/tui/ink/components/shimmer-text.js +0 -9
- package/dist/presentation/tui/ink/components/subagent-activity.d.ts +0 -11
- package/dist/presentation/tui/ink/components/subagent-activity.js +0 -61
- package/dist/presentation/tui/ink/components/transcript.d.ts +0 -39
- package/dist/presentation/tui/ink/components/transcript.js +0 -121
- package/dist/presentation/tui/ink/components/welcome-panel.d.ts +0 -6
- package/dist/presentation/tui/ink/components/welcome-panel.js +0 -20
- package/dist/presentation/tui/ink/lotagate-tui.d.ts +0 -6
- package/dist/presentation/tui/ink/lotagate-tui.js +0 -136
- package/dist/presentation/tui/ink/markdown-inline-renderer.d.ts +0 -4
- package/dist/presentation/tui/ink/markdown-inline-renderer.js +0 -20
- package/dist/presentation/tui/ink/markdown-inline.d.ts +0 -13
- package/dist/presentation/tui/ink/markdown-inline.js +0 -91
- package/dist/presentation/tui/ink/markdown-message.d.ts +0 -6
- package/dist/presentation/tui/ink/markdown-message.js +0 -66
- package/dist/presentation/tui/ink/markdown-table.d.ts +0 -16
- package/dist/presentation/tui/ink/markdown-table.js +0 -77
- package/dist/presentation/tui/ink/tui-bridge.d.ts +0 -195
- package/dist/presentation/tui/ink/tui-bridge.js +0 -289
- package/dist/presentation/tui/terminal-capabilities.d.ts +0 -15
- package/dist/presentation/tui/terminal-capabilities.js +0 -7
- package/dist/presentation/tui/terminal-mouse.d.ts +0 -5
- package/dist/presentation/tui/terminal-mouse.js +0 -19
- package/dist/presentation/tui/terminal-screen.d.ts +0 -10
- package/dist/presentation/tui/terminal-screen.js +0 -23
- package/dist/presentation/tui/tui-agent-event-runner.d.ts +0 -24
- package/dist/presentation/tui/tui-agent-event-runner.js +0 -69
- package/dist/presentation/tui/tui-application-contract.d.ts +0 -10
- package/dist/presentation/tui/tui-application-contract.js +0 -8
- package/dist/presentation/tui/tui-application.d.ts +0 -62
- package/dist/presentation/tui/tui-application.js +0 -675
- package/dist/presentation/tui/tui-attachment-input.d.ts +0 -2
- package/dist/presentation/tui/tui-attachment-input.js +0 -5
- package/dist/presentation/tui/tui-clipboard-paste-handlers.d.ts +0 -11
- package/dist/presentation/tui/tui-clipboard-paste-handlers.js +0 -25
- package/dist/presentation/tui/tui-command-context.d.ts +0 -3
- package/dist/presentation/tui/tui-command-context.js +0 -1
- package/dist/presentation/tui/tui-command-executor.d.ts +0 -38
- package/dist/presentation/tui/tui-command-executor.js +0 -214
- package/dist/presentation/tui/tui-command-host-factory.d.ts +0 -40
- package/dist/presentation/tui/tui-command-host-factory.js +0 -23
- package/dist/presentation/tui/tui-context-compaction.d.ts +0 -5
- package/dist/presentation/tui/tui-context-compaction.js +0 -22
- package/dist/presentation/tui/tui-context-service.d.ts +0 -34
- package/dist/presentation/tui/tui-context-service.js +0 -126
- package/dist/presentation/tui/tui-file-suggestions.d.ts +0 -3
- package/dist/presentation/tui/tui-file-suggestions.js +0 -8
- package/dist/presentation/tui/tui-goal-controller.d.ts +0 -14
- package/dist/presentation/tui/tui-goal-controller.js +0 -52
- package/dist/presentation/tui/tui-initial-model.d.ts +0 -3
- package/dist/presentation/tui/tui-initial-model.js +0 -28
- package/dist/presentation/tui/tui-lifecycle-actions.d.ts +0 -13
- package/dist/presentation/tui/tui-lifecycle-actions.js +0 -45
- package/dist/presentation/tui/tui-manual-compaction.d.ts +0 -18
- package/dist/presentation/tui/tui-manual-compaction.js +0 -31
- package/dist/presentation/tui/tui-media-model-selection.d.ts +0 -12
- package/dist/presentation/tui/tui-media-model-selection.js +0 -38
- package/dist/presentation/tui/tui-prompt-dispatcher.d.ts +0 -16
- package/dist/presentation/tui/tui-prompt-dispatcher.js +0 -38
- package/dist/presentation/tui/tui-skill-controller.d.ts +0 -11
- package/dist/presentation/tui/tui-skill-controller.js +0 -13
- package/dist/presentation/tui/tui-tool-approval.d.ts +0 -22
- package/dist/presentation/tui/tui-tool-approval.js +0 -73
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type SubagentStatus = 'queued' | 'running' | 'completed' | 'completed_with_warning' | 'failed' | 'cancelled';
|
|
2
|
-
export type SubagentLimitReason = 'iteration' | 'timeout' | 'tokens' | 'tool_calls';
|
|
3
|
-
export type SubagentMode = 'research' | 'worker';
|
|
4
|
-
export interface SubagentHandoff {
|
|
5
|
-
readonly summary: string;
|
|
6
|
-
readonly filesInspected: readonly string[];
|
|
7
|
-
readonly filesChanged: readonly string[];
|
|
8
|
-
readonly commandsRun: readonly string[];
|
|
9
|
-
readonly verification: readonly string[];
|
|
10
|
-
readonly warnings: readonly string[];
|
|
11
|
-
}
|
|
12
|
-
export interface SubagentRequest {
|
|
13
|
-
readonly task: string;
|
|
14
|
-
readonly context?: string;
|
|
15
|
-
readonly model?: string;
|
|
16
|
-
readonly mode?: SubagentMode;
|
|
17
|
-
readonly background?: boolean;
|
|
18
|
-
readonly writeScope?: readonly string[];
|
|
19
|
-
}
|
|
20
|
-
export interface SubagentResult {
|
|
21
|
-
readonly id: string;
|
|
22
|
-
readonly displayName: string;
|
|
23
|
-
readonly task: string;
|
|
24
|
-
readonly status: SubagentStatus;
|
|
25
|
-
readonly mode: SubagentMode;
|
|
26
|
-
readonly model: string;
|
|
27
|
-
readonly summary: string;
|
|
28
|
-
readonly handoff: SubagentHandoff;
|
|
29
|
-
readonly toolsUsed: readonly string[];
|
|
30
|
-
readonly estimatedTokens?: number;
|
|
31
|
-
readonly limitReason?: SubagentLimitReason;
|
|
32
|
-
readonly durationMs: number;
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type TaskStatus = 'queued' | 'running' | 'completed' | 'failed' | 'blocked';
|
|
2
|
-
export interface AgentTask {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
dependencies: readonly string[];
|
|
7
|
-
status: TaskStatus;
|
|
8
|
-
assignedAgent?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ExecutionPlan {
|
|
11
|
-
id: string;
|
|
12
|
-
goal: string;
|
|
13
|
-
tasks: readonly AgentTask[];
|
|
14
|
-
requiresApproval: boolean;
|
|
15
|
-
maxConcurrency: number;
|
|
16
|
-
}
|
|
17
|
-
export interface SchedulerLimits {
|
|
18
|
-
maxConcurrency: number;
|
|
19
|
-
maxTasks: number;
|
|
20
|
-
maxDurationMs: number;
|
|
21
|
-
maxTokens?: number;
|
|
22
|
-
}
|
|
23
|
-
export type TaskComplexity = 'simple' | 'moderate' | 'complex';
|
|
24
|
-
export type TaskIntent = 'answer' | 'inspect' | 'change' | 'verify';
|
|
25
|
-
export interface TaskAssessment {
|
|
26
|
-
complexity: TaskComplexity;
|
|
27
|
-
requiresPlan: boolean;
|
|
28
|
-
estimatedTasks: number;
|
|
29
|
-
reasons: readonly string[];
|
|
30
|
-
intents: readonly TaskIntent[];
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Repairs an SSE frame prefix only when a compatibility gateway attaches it
|
|
3
|
-
* directly to preceding assistant text. Prefixes after whitespace or at the
|
|
4
|
-
* beginning of a new line are preserved because they can be intentional text
|
|
5
|
-
* or code.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AssistantDeltaNormalizer {
|
|
8
|
-
private previousCharacter;
|
|
9
|
-
normalize(content: string): string;
|
|
10
|
-
private isAttachedToAssistantText;
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Repairs an SSE frame prefix only when a compatibility gateway attaches it
|
|
3
|
-
* directly to preceding assistant text. Prefixes after whitespace or at the
|
|
4
|
-
* beginning of a new line are preserved because they can be intentional text
|
|
5
|
-
* or code.
|
|
6
|
-
*/
|
|
7
|
-
export class AssistantDeltaNormalizer {
|
|
8
|
-
previousCharacter;
|
|
9
|
-
normalize(content) {
|
|
10
|
-
const normalized = content.replace(/data:\s+/gu, (prefix, offset, source) => (this.isAttachedToAssistantText(source, offset) ? '' : prefix));
|
|
11
|
-
if (normalized.length > 0)
|
|
12
|
-
this.previousCharacter = normalized.at(-1);
|
|
13
|
-
return normalized;
|
|
14
|
-
}
|
|
15
|
-
isAttachedToAssistantText(content, offset) {
|
|
16
|
-
const previousCharacter = offset === 0 ? this.previousCharacter : content.at(offset - 1);
|
|
17
|
-
return previousCharacter !== undefined && !/\s/.test(previousCharacter);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/** Centralized defensive limits for untrusted local, extension, and protocol data. */
|
|
2
|
-
export declare const RESOURCE_LIMITS: {
|
|
3
|
-
readonly configFileBytes: number;
|
|
4
|
-
readonly workspaceSettingsBytes: number;
|
|
5
|
-
readonly mcpConfigBytes: number;
|
|
6
|
-
readonly sessionBundleBytes: number;
|
|
7
|
-
readonly sessionJournalBytes: number;
|
|
8
|
-
readonly sessionEvents: 100000;
|
|
9
|
-
readonly sessionTranscriptEntries: 50000;
|
|
10
|
-
readonly sessionAttachments: 32;
|
|
11
|
-
readonly sessionAttachmentTotalBytes: number;
|
|
12
|
-
readonly sessionTextBytes: number;
|
|
13
|
-
readonly jsonlLineBytes: number;
|
|
14
|
-
readonly desktopAttachmentChunkBytes: number;
|
|
15
|
-
readonly jsonlIdBytes: 256;
|
|
16
|
-
readonly jsonlPromptBytes: number;
|
|
17
|
-
readonly pendingAttachments: 16;
|
|
18
|
-
readonly pendingAttachmentTotalBytes: number;
|
|
19
|
-
readonly maxAttachmentBytes: number;
|
|
20
|
-
readonly clipboardTextBytes: number;
|
|
21
|
-
readonly clipboardTimeoutMs: 15000;
|
|
22
|
-
readonly instructionFileBytes: number;
|
|
23
|
-
readonly instructionTotalBytes: number;
|
|
24
|
-
readonly instructionFiles: 32;
|
|
25
|
-
readonly systemPromptInstructionBytes: number;
|
|
26
|
-
readonly systemPromptInstructionFileBytes: number;
|
|
27
|
-
readonly skillDocumentBytes: number;
|
|
28
|
-
readonly pluginManifestBytes: number;
|
|
29
|
-
readonly subagentTaskBytes: number;
|
|
30
|
-
readonly subagentContextBytes: number;
|
|
31
|
-
readonly subagentMaxWriteScopeItems: 32;
|
|
32
|
-
readonly subagentWriteScopeItemBytes: 512;
|
|
33
|
-
readonly subagentSummaryBytes: number;
|
|
34
|
-
readonly subagentMaxDurationMs: 1800000;
|
|
35
|
-
readonly subagentMaxTokens: 200000;
|
|
36
|
-
readonly subagentMaxConcurrent: 4;
|
|
37
|
-
readonly subagentMaxRetainedJobs: 32;
|
|
38
|
-
readonly subagentMaxIterations: 200;
|
|
39
|
-
readonly subagentMaxToolCallsPerTurn: 100;
|
|
40
|
-
readonly agentMaxIterations: 500;
|
|
41
|
-
readonly agentMaxToolCallsPerTurn: 300;
|
|
42
|
-
readonly subagentToolArgumentBytes: number;
|
|
43
|
-
readonly subagentToolResultBytes: number;
|
|
44
|
-
readonly goalObjectiveBytes: number;
|
|
45
|
-
readonly goalReasonBytes: number;
|
|
46
|
-
readonly goalEvidenceItems: 8;
|
|
47
|
-
readonly goalEvidenceBytes: number;
|
|
48
|
-
readonly goalDefaultMaxTurns: 100;
|
|
49
|
-
readonly goalMaximumMaxTurns: 10000;
|
|
50
|
-
readonly goalMaximumTokenBudget: 10000000;
|
|
51
|
-
readonly goalDefaultMaxDurationMs: number;
|
|
52
|
-
readonly goalMaximumMaxDurationMs: number;
|
|
53
|
-
readonly goalDefaultMaxEvaluatorRuns: 100;
|
|
54
|
-
readonly tuiTranscriptMessages: 2000;
|
|
55
|
-
readonly jsonlMaxInFlight: 4;
|
|
56
|
-
readonly workspaceReferenceCount: 32;
|
|
57
|
-
readonly workspaceReferenceInstructionBytes: number;
|
|
58
|
-
readonly logQueueEntries: 10000;
|
|
59
|
-
readonly logQueueBytes: number;
|
|
60
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/** Centralized defensive limits for untrusted local, extension, and protocol data. */
|
|
2
|
-
export const RESOURCE_LIMITS = {
|
|
3
|
-
configFileBytes: 256 * 1024,
|
|
4
|
-
workspaceSettingsBytes: 256 * 1024,
|
|
5
|
-
mcpConfigBytes: 512 * 1024,
|
|
6
|
-
sessionBundleBytes: 20 * 1024 * 1024,
|
|
7
|
-
sessionJournalBytes: 20 * 1024 * 1024,
|
|
8
|
-
sessionEvents: 100_000,
|
|
9
|
-
sessionTranscriptEntries: 50_000,
|
|
10
|
-
sessionAttachments: 32,
|
|
11
|
-
sessionAttachmentTotalBytes: 50 * 1024 * 1024,
|
|
12
|
-
sessionTextBytes: 512 * 1024,
|
|
13
|
-
jsonlLineBytes: 1024 * 1024,
|
|
14
|
-
desktopAttachmentChunkBytes: 512 * 1024,
|
|
15
|
-
jsonlIdBytes: 256,
|
|
16
|
-
jsonlPromptBytes: 512 * 1024,
|
|
17
|
-
pendingAttachments: 16,
|
|
18
|
-
pendingAttachmentTotalBytes: 50 * 1024 * 1024,
|
|
19
|
-
maxAttachmentBytes: 10 * 1024 * 1024,
|
|
20
|
-
clipboardTextBytes: 10 * 1024 * 1024,
|
|
21
|
-
clipboardTimeoutMs: 15_000,
|
|
22
|
-
instructionFileBytes: 128 * 1024,
|
|
23
|
-
instructionTotalBytes: 256 * 1024,
|
|
24
|
-
instructionFiles: 32,
|
|
25
|
-
systemPromptInstructionBytes: 16 * 1024,
|
|
26
|
-
systemPromptInstructionFileBytes: 8 * 1024,
|
|
27
|
-
skillDocumentBytes: 512 * 1024,
|
|
28
|
-
pluginManifestBytes: 256 * 1024,
|
|
29
|
-
subagentTaskBytes: 16 * 1024,
|
|
30
|
-
subagentContextBytes: 16 * 1024,
|
|
31
|
-
subagentMaxWriteScopeItems: 32,
|
|
32
|
-
subagentWriteScopeItemBytes: 512,
|
|
33
|
-
subagentSummaryBytes: 24 * 1024,
|
|
34
|
-
subagentMaxDurationMs: 1_800_000,
|
|
35
|
-
subagentMaxTokens: 200_000,
|
|
36
|
-
subagentMaxConcurrent: 4,
|
|
37
|
-
subagentMaxRetainedJobs: 32,
|
|
38
|
-
subagentMaxIterations: 200,
|
|
39
|
-
subagentMaxToolCallsPerTurn: 100,
|
|
40
|
-
agentMaxIterations: 500,
|
|
41
|
-
agentMaxToolCallsPerTurn: 300,
|
|
42
|
-
subagentToolArgumentBytes: 64 * 1024,
|
|
43
|
-
subagentToolResultBytes: 256 * 1024,
|
|
44
|
-
goalObjectiveBytes: 16 * 1024,
|
|
45
|
-
goalReasonBytes: 2 * 1024,
|
|
46
|
-
goalEvidenceItems: 8,
|
|
47
|
-
goalEvidenceBytes: 4 * 1024,
|
|
48
|
-
goalDefaultMaxTurns: 100,
|
|
49
|
-
goalMaximumMaxTurns: 10_000,
|
|
50
|
-
goalMaximumTokenBudget: 10_000_000,
|
|
51
|
-
goalDefaultMaxDurationMs: 2 * 60 * 60 * 1000,
|
|
52
|
-
goalMaximumMaxDurationMs: 8 * 60 * 60 * 1000,
|
|
53
|
-
goalDefaultMaxEvaluatorRuns: 100,
|
|
54
|
-
tuiTranscriptMessages: 2_000,
|
|
55
|
-
jsonlMaxInFlight: 4,
|
|
56
|
-
workspaceReferenceCount: 32,
|
|
57
|
-
workspaceReferenceInstructionBytes: 16 * 1024,
|
|
58
|
-
logQueueEntries: 10_000,
|
|
59
|
-
logQueueBytes: 4 * 1024 * 1024,
|
|
60
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type AttachmentSource = 'clipboard' | 'file';
|
|
2
|
-
export interface Attachment {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
mimeType: string;
|
|
6
|
-
sizeBytes: number;
|
|
7
|
-
source: AttachmentSource;
|
|
8
|
-
storagePath?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface AttachmentPayload {
|
|
11
|
-
attachment: Attachment;
|
|
12
|
-
bytes: Uint8Array;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SessionEvent, SessionMetadata, TranscriptEntry } from './session.js';
|
|
2
|
-
/** Runtime validators for session data persisted in JSON files and journals. */
|
|
3
|
-
export declare function isSessionMetadata(value: unknown): value is SessionMetadata;
|
|
4
|
-
export declare function isSessionEvent(value: unknown): value is SessionEvent;
|
|
5
|
-
export declare function isTranscriptEntry(value: unknown): value is TranscriptEntry;
|
|
6
|
-
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** Runtime validators for session data persisted in JSON files and journals. */
|
|
2
|
-
export function isSessionMetadata(value) {
|
|
3
|
-
if (!isRecord(value))
|
|
4
|
-
return false;
|
|
5
|
-
return typeof value['id'] === 'string' && typeof value['projectFingerprint'] === 'string' && typeof value['cwd'] === 'string'
|
|
6
|
-
&& (typeof value['model'] === 'string' || value['model'] === null) && (typeof value['profile'] === 'string' || value['profile'] === null)
|
|
7
|
-
&& (value['status'] === 'active' || value['status'] === 'completed' || value['status'] === 'failed' || value['status'] === 'cancelled')
|
|
8
|
-
&& typeof value['createdAt'] === 'string' && typeof value['updatedAt'] === 'string'
|
|
9
|
-
&& (value['name'] === undefined || typeof value['name'] === 'string');
|
|
10
|
-
}
|
|
11
|
-
export function isSessionEvent(value) {
|
|
12
|
-
if (!isRecord(value))
|
|
13
|
-
return false;
|
|
14
|
-
return typeof value['type'] === 'string' && typeof value['timestamp'] === 'string' && typeof value['sessionId'] === 'string'
|
|
15
|
-
&& (value['runId'] === undefined || typeof value['runId'] === 'string') && (value['turnId'] === undefined || typeof value['turnId'] === 'string')
|
|
16
|
-
&& (value['data'] === undefined || isRecord(value['data']));
|
|
17
|
-
}
|
|
18
|
-
export function isTranscriptEntry(value) {
|
|
19
|
-
if (!isRecord(value) || typeof value['timestamp'] !== 'string' || typeof value['content'] !== 'string')
|
|
20
|
-
return false;
|
|
21
|
-
if (value['type'] !== 'user' && value['type'] !== 'assistant' && value['type'] !== 'system' && value['type'] !== 'tool')
|
|
22
|
-
return false;
|
|
23
|
-
return (value['turnId'] === undefined || typeof value['turnId'] === 'string')
|
|
24
|
-
&& (value['attachmentIds'] === undefined || (Array.isArray(value['attachmentIds']) && value['attachmentIds'].every((id) => typeof id === 'string')));
|
|
25
|
-
}
|
|
26
|
-
export function isRecord(value) {
|
|
27
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
28
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type SessionStatus = 'active' | 'completed' | 'failed' | 'cancelled';
|
|
2
|
-
export interface SessionMetadata {
|
|
3
|
-
id: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
projectFingerprint: string;
|
|
6
|
-
cwd: string;
|
|
7
|
-
model: string | null;
|
|
8
|
-
profile: string | null;
|
|
9
|
-
status: SessionStatus;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
}
|
|
13
|
-
export interface SessionEvent {
|
|
14
|
-
type: string;
|
|
15
|
-
timestamp: string;
|
|
16
|
-
sessionId: string;
|
|
17
|
-
runId?: string;
|
|
18
|
-
turnId?: string;
|
|
19
|
-
data?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
export interface TranscriptEntry {
|
|
22
|
-
type: 'user' | 'assistant' | 'system' | 'tool';
|
|
23
|
-
timestamp: string;
|
|
24
|
-
content: string;
|
|
25
|
-
turnId?: string;
|
|
26
|
-
attachmentIds?: readonly string[];
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type CliConfig } from '../config/config-schema.js';
|
|
2
|
-
import { type WorkspacePermissionPolicy } from '../workspace/workspace-settings.js';
|
|
3
|
-
export interface ValidatedSettingsDocument {
|
|
4
|
-
readonly config: Partial<CliConfig>;
|
|
5
|
-
readonly permissions?: WorkspacePermissionPolicy;
|
|
6
|
-
}
|
|
7
|
-
export declare function validateSettingsDocument(value: unknown): ValidatedSettingsDocument;
|
|
8
|
-
export declare function permissionsFromSettings(document: ValidatedSettingsDocument): WorkspacePermissionPolicy;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { CliError } from '../errors/cli-error.js';
|
|
2
|
-
import { CLI_ERROR_CODES } from '../errors/error-codes.js';
|
|
3
|
-
import { CONFIG_SCHEMA_VERSION, CONFIGURABLE_KEYS, validateConfig, } from '../config/config-schema.js';
|
|
4
|
-
import { DEFAULT_WORKSPACE_SETTINGS, validateWorkspaceSettings, } from '../workspace/workspace-settings.js';
|
|
5
|
-
import { findUnexpectedRecordKey, isRecord } from '../validation/record-schema.js';
|
|
6
|
-
const SETTINGS_KEYS = ['schemaVersion', ...CONFIGURABLE_KEYS, 'permissions'];
|
|
7
|
-
export function validateSettingsDocument(value) {
|
|
8
|
-
if (!isRecord(value))
|
|
9
|
-
throw invalidSettings('Settings must be a JSON object.');
|
|
10
|
-
const unexpectedKey = findUnexpectedRecordKey(value, SETTINGS_KEYS);
|
|
11
|
-
if (unexpectedKey !== undefined) {
|
|
12
|
-
throw invalidSettings(`Unsupported settings field: \`${unexpectedKey}\`.`);
|
|
13
|
-
}
|
|
14
|
-
const configValue = {};
|
|
15
|
-
for (const key of ['schemaVersion', ...CONFIGURABLE_KEYS]) {
|
|
16
|
-
if (value[key] !== undefined)
|
|
17
|
-
configValue[key] = value[key];
|
|
18
|
-
}
|
|
19
|
-
const config = validateConfig(configValue);
|
|
20
|
-
if (value['permissions'] === undefined)
|
|
21
|
-
return { config };
|
|
22
|
-
const workspaceSettings = validateWorkspaceSettings({
|
|
23
|
-
schemaVersion: value['schemaVersion'] ?? CONFIG_SCHEMA_VERSION,
|
|
24
|
-
permissions: value['permissions'],
|
|
25
|
-
});
|
|
26
|
-
return { config, permissions: workspaceSettings.permissions };
|
|
27
|
-
}
|
|
28
|
-
export function permissionsFromSettings(document) {
|
|
29
|
-
return document.permissions ?? DEFAULT_WORKSPACE_SETTINGS.permissions;
|
|
30
|
-
}
|
|
31
|
-
function invalidSettings(message) {
|
|
32
|
-
return new CliError(CLI_ERROR_CODES.CONFIG_SCHEMA_INVALID, message, {
|
|
33
|
-
category: 'config',
|
|
34
|
-
userMessage: `Invalid settings: ${message}`,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Narrows JSON-shaped values before schema-specific validation. */
|
|
2
|
-
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
3
|
-
/** Returns the first unsupported own property in a configuration object. */
|
|
4
|
-
export declare function findUnexpectedRecordKey(value: Record<string, unknown>, allowedKeys: readonly string[]): string | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Narrows JSON-shaped values before schema-specific validation. */
|
|
2
|
-
export function isRecord(value) {
|
|
3
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
4
|
-
}
|
|
5
|
-
/** Returns the first unsupported own property in a configuration object. */
|
|
6
|
-
export function findUnexpectedRecordKey(value, allowedKeys) {
|
|
7
|
-
const allowed = new Set(allowedKeys);
|
|
8
|
-
return Object.keys(value).find((key) => !allowed.has(key));
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const WORKSPACE_SETTINGS_SCHEMA_VERSION = 1;
|
|
2
|
-
export interface WorkspacePermissionPolicy {
|
|
3
|
-
readonly allow: readonly string[];
|
|
4
|
-
readonly ask: readonly string[];
|
|
5
|
-
readonly deny: readonly string[];
|
|
6
|
-
}
|
|
7
|
-
export interface WorkspaceSettings {
|
|
8
|
-
readonly schemaVersion: 1;
|
|
9
|
-
readonly permissions: WorkspacePermissionPolicy;
|
|
10
|
-
}
|
|
11
|
-
export declare const DEFAULT_WORKSPACE_SETTINGS: WorkspaceSettings;
|
|
12
|
-
export declare function validateWorkspaceSettings(value: unknown): WorkspaceSettings;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { CliError } from '../errors/cli-error.js';
|
|
2
|
-
import { CLI_ERROR_CODES } from '../errors/error-codes.js';
|
|
3
|
-
import { findUnexpectedRecordKey, isRecord } from '../validation/record-schema.js';
|
|
4
|
-
export const WORKSPACE_SETTINGS_SCHEMA_VERSION = 1;
|
|
5
|
-
export const DEFAULT_WORKSPACE_SETTINGS = {
|
|
6
|
-
schemaVersion: WORKSPACE_SETTINGS_SCHEMA_VERSION,
|
|
7
|
-
permissions: { allow: [], ask: [], deny: [] },
|
|
8
|
-
};
|
|
9
|
-
export function validateWorkspaceSettings(value) {
|
|
10
|
-
if (!isRecord(value))
|
|
11
|
-
throw invalidSettings('Workspace settings must be a JSON object.');
|
|
12
|
-
assertAllowedKeys(value, ['schemaVersion', 'permissions'], 'workspace settings');
|
|
13
|
-
if (value['schemaVersion'] !== undefined && value['schemaVersion'] !== WORKSPACE_SETTINGS_SCHEMA_VERSION) {
|
|
14
|
-
throw invalidSettings('Unsupported workspace settings schema version.');
|
|
15
|
-
}
|
|
16
|
-
const permissions = value['permissions'] === undefined ? DEFAULT_WORKSPACE_SETTINGS.permissions : parsePermissions(value['permissions']);
|
|
17
|
-
return { schemaVersion: WORKSPACE_SETTINGS_SCHEMA_VERSION, permissions };
|
|
18
|
-
}
|
|
19
|
-
function parsePermissions(value) {
|
|
20
|
-
if (!isRecord(value))
|
|
21
|
-
throw invalidSettings('Workspace permissions must be a JSON object.');
|
|
22
|
-
assertAllowedKeys(value, ['allow', 'ask', 'deny'], 'workspace permissions');
|
|
23
|
-
return {
|
|
24
|
-
allow: parseRules(value['allow'], 'permissions.allow'),
|
|
25
|
-
ask: parseRules(value['ask'], 'permissions.ask'),
|
|
26
|
-
deny: parseRules(value['deny'], 'permissions.deny'),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function parseRules(value, field) {
|
|
30
|
-
if (value === undefined)
|
|
31
|
-
return [];
|
|
32
|
-
if (!Array.isArray(value) || value.some((item) => typeof item !== 'string' || item.trim().length === 0 || item.length > 256)) {
|
|
33
|
-
throw invalidSettings(`${field} must be an array of non-empty strings (max 256 characters each).`);
|
|
34
|
-
}
|
|
35
|
-
return [...new Set(value.map((item) => item.trim()))];
|
|
36
|
-
}
|
|
37
|
-
function invalidSettings(message) {
|
|
38
|
-
return new CliError(CLI_ERROR_CODES.CONFIG_SCHEMA_INVALID, message, { category: 'config', userMessage: `Invalid workspace settings: ${message}` });
|
|
39
|
-
}
|
|
40
|
-
function assertAllowedKeys(value, allowedKeys, label) {
|
|
41
|
-
const unexpectedKey = findUnexpectedRecordKey(value, allowedKeys);
|
|
42
|
-
if (unexpectedKey !== undefined)
|
|
43
|
-
throw invalidSettings(`Unsupported ${label} field: \`${unexpectedKey}\`.`);
|
|
44
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LotaGateAgent, type LotaGateAgentOptions, type ToolAuthorizationRule, type ToolAuthorizationEvent } from '@lotagate/agent-sdk';
|
|
2
|
-
import { type ToolExecutor } from '@lotagate/agent-sdk';
|
|
3
|
-
import type { LotaGate } from '@lotagate/sdk';
|
|
4
|
-
import type { ModelCallSummary } from '../../ports/model-diagnostics.js';
|
|
5
|
-
import type { HostPlatformContext } from '../platform/host-platform.js';
|
|
6
|
-
export interface AgentInstanceOptions extends Omit<LotaGateAgentOptions, 'modelClient'> {
|
|
7
|
-
client: LotaGate;
|
|
8
|
-
onModelComplete?: (summary: ModelCallSummary) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function createAgentInstance(options: AgentInstanceOptions): LotaGateAgent;
|
|
11
|
-
export interface LocalAgentInstanceOptions extends Omit<AgentInstanceOptions, 'toolExecutor'> {
|
|
12
|
-
platform?: HostPlatformContext;
|
|
13
|
-
toolExecutors?: readonly ToolExecutor[];
|
|
14
|
-
allowedTools?: readonly string[];
|
|
15
|
-
deniedTools?: readonly string[];
|
|
16
|
-
requireApproval?: boolean;
|
|
17
|
-
approvalHandler?: NonNullable<LotaGateAgentOptions['toolPolicy']>['approvalHandler'];
|
|
18
|
-
authorizationRules?: readonly ToolAuthorizationRule[];
|
|
19
|
-
authorizationObserver?: (event: ToolAuthorizationEvent) => void | Promise<void>;
|
|
20
|
-
onModelComplete?: (summary: ModelCallSummary) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare function createLocalAgentInstance(options: LocalAgentInstanceOptions): LotaGateAgent;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LotaGateAgent } from '@lotagate/agent-sdk';
|
|
2
|
-
import { CompositeToolExecutor } from '@lotagate/agent-sdk';
|
|
3
|
-
import { LocalFilesystemToolExecutor } from '../filesystem/local-filesystem-tool-executor.js';
|
|
4
|
-
import { ShellToolExecutor } from '../shell/shell-tool-executor.js';
|
|
5
|
-
import { createToolCallingModelClient } from './tool-calling-model-client.js';
|
|
6
|
-
export function createAgentInstance(options) {
|
|
7
|
-
const { client, onModelComplete, ...agentOptions } = options;
|
|
8
|
-
return new LotaGateAgent({
|
|
9
|
-
...agentOptions,
|
|
10
|
-
modelClient: createToolCallingModelClient(client, onModelComplete === undefined ? {} : { onComplete: onModelComplete }),
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export function createLocalAgentInstance(options) {
|
|
14
|
-
const { toolExecutors, platform, allowedTools, deniedTools, requireApproval, approvalHandler, authorizationRules, authorizationObserver, onModelComplete, ...agentOptions } = options;
|
|
15
|
-
const toolExecutor = new CompositeToolExecutor([
|
|
16
|
-
...(toolExecutors ?? [new LocalFilesystemToolExecutor(), new ShellToolExecutor({ ...(platform === undefined ? {} : { platform }) })]),
|
|
17
|
-
]);
|
|
18
|
-
return createAgentInstance({
|
|
19
|
-
...agentOptions,
|
|
20
|
-
...(onModelComplete === undefined ? {} : { onModelComplete }),
|
|
21
|
-
toolExecutor,
|
|
22
|
-
toolPolicy: {
|
|
23
|
-
...(allowedTools === undefined ? {} : { allowedTools }),
|
|
24
|
-
...(deniedTools === undefined ? {} : { deniedTools }),
|
|
25
|
-
...(requireApproval === undefined ? {} : { requireApproval }),
|
|
26
|
-
...(approvalHandler === undefined ? {} : { approvalHandler }),
|
|
27
|
-
...(authorizationRules === undefined ? {} : { authorizationRules }),
|
|
28
|
-
...(authorizationObserver === undefined ? {} : { authorizationObserver }),
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type LotaGate } from '@lotagate/sdk';
|
|
2
|
-
import type { LotaGateAgentOptions } from '@lotagate/agent-sdk';
|
|
3
|
-
import type { ModelCallObserver } from '../../ports/model-diagnostics.js';
|
|
4
|
-
type AgentModelClient = LotaGateAgentOptions['modelClient'];
|
|
5
|
-
/**
|
|
6
|
-
* Adapts the published SDK client to the Agent SDK model port and makes the
|
|
7
|
-
* intended tool-calling mode explicit for gateways that do not infer it from
|
|
8
|
-
* the presence of `tools` alone.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createToolCallingModelClient(client: LotaGate, diagnostics?: ModelCallObserver): AgentModelClient;
|
|
11
|
-
export {};
|