repoburg 1.3.86 → 1.3.88
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/backend/dist/src/ai-actions/ai-actions.controller.js +67 -0
- package/backend/dist/src/ai-actions/ai-actions.controller.js.map +1 -1
- package/backend/dist/src/application-state/application-state.controller.js +123 -0
- package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-alibaba-config.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-auto-context-fetch-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-auto-send-to-ai-studio-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-context-token-limit.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-execution-strategy.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js +5 -0
- package/backend/dist/src/application-state/dto/set-followup-token-limit.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-history-compression-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-llm-retry-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-llm-retry-max-attempts.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-manual-llm-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-openrouter-config.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-streaming-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-syntax-validation-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-theme.dto.js +6 -0
- package/backend/dist/src/application-state/dto/set-theme.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-tools-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-websocket-enabled.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js +5 -0
- package/backend/dist/src/application-state/dto/set-yolo-mode-message.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js +4 -0
- package/backend/dist/src/application-state/dto/set-yolo-mode.dto.js.map +1 -1
- package/backend/dist/src/application-state/dto/set-zai-config.dto.js +2 -0
- package/backend/dist/src/application-state/dto/set-zai-config.dto.js.map +1 -1
- package/backend/dist/src/context-snippets/context-snippets.controller.js +38 -0
- package/backend/dist/src/context-snippets/context-snippets.controller.js.map +1 -1
- package/backend/dist/src/context-templates/context-templates.controller.js +104 -0
- package/backend/dist/src/context-templates/context-templates.controller.js.map +1 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.d.ts +1 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.js +44 -1
- package/backend/dist/src/context-templates/dto/context-template.dto.js.map +1 -1
- package/backend/dist/src/core-entities/ai-action.entity.js +73 -0
- package/backend/dist/src/core-entities/ai-action.entity.js.map +1 -1
- package/backend/dist/src/core-entities/base.entity.js +18 -0
- package/backend/dist/src/core-entities/base.entity.js.map +1 -1
- package/backend/dist/src/core-entities/context-snippet.entity.js +12 -0
- package/backend/dist/src/core-entities/context-snippet.entity.js.map +1 -1
- package/backend/dist/src/core-entities/context-template.entity.d.ts +2 -4
- package/backend/dist/src/core-entities/context-template.entity.js +50 -7
- package/backend/dist/src/core-entities/context-template.entity.js.map +1 -1
- package/backend/dist/src/core-entities/custom-snippet.entity.js +16 -0
- package/backend/dist/src/core-entities/custom-snippet.entity.js.map +1 -1
- package/backend/dist/src/core-entities/custom-variable.entity.js +24 -0
- package/backend/dist/src/core-entities/custom-variable.entity.js.map +1 -1
- package/backend/dist/src/core-entities/enums.d.ts +64 -0
- package/backend/dist/src/core-entities/enums.js +77 -0
- package/backend/dist/src/core-entities/enums.js.map +1 -0
- package/backend/dist/src/core-entities/execution-log.entity.js +15 -0
- package/backend/dist/src/core-entities/execution-log.entity.js.map +1 -1
- package/backend/dist/src/core-entities/index.d.ts +1 -2
- package/backend/dist/src/core-entities/index.js +1 -2
- package/backend/dist/src/core-entities/index.js.map +1 -1
- package/backend/dist/src/core-entities/llm-call-log.entity.js +43 -0
- package/backend/dist/src/core-entities/llm-call-log.entity.js.map +1 -1
- package/backend/dist/src/core-entities/mcp-config.entity.js +27 -0
- package/backend/dist/src/core-entities/mcp-config.entity.js.map +1 -1
- package/backend/dist/src/core-entities/mcp-tool.entity.js +26 -0
- package/backend/dist/src/core-entities/mcp-tool.entity.js.map +1 -1
- package/backend/dist/src/core-entities/project.entity.js +13 -0
- package/backend/dist/src/core-entities/project.entity.js.map +1 -1
- package/backend/dist/src/core-entities/session-input.entity.js +94 -0
- package/backend/dist/src/core-entities/session-input.entity.js.map +1 -1
- package/backend/dist/src/core-entities/session.entity.d.ts +1 -1
- package/backend/dist/src/core-entities/session.entity.js +96 -1
- package/backend/dist/src/core-entities/session.entity.js.map +1 -1
- package/backend/dist/src/core-entities/system-prompt.entity.js +29 -0
- package/backend/dist/src/core-entities/system-prompt.entity.js.map +1 -1
- package/backend/dist/src/core-entities/tool-hook.entity.js +21 -0
- package/backend/dist/src/core-entities/tool-hook.entity.js.map +1 -1
- package/backend/dist/src/custom-snippets/custom-snippets.controller.js +48 -0
- package/backend/dist/src/custom-snippets/custom-snippets.controller.js.map +1 -1
- package/backend/dist/src/custom-variables/custom-variables.controller.js +46 -0
- package/backend/dist/src/custom-variables/custom-variables.controller.js.map +1 -1
- package/backend/dist/src/global-config/global-config.controller.js +12 -0
- package/backend/dist/src/global-config/global-config.controller.js.map +1 -1
- package/backend/dist/src/interactive-chat/streaming.controller.js +38 -0
- package/backend/dist/src/interactive-chat/streaming.controller.js.map +1 -1
- package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js +96 -0
- package/backend/dist/src/llm-call-logs/llm-call-logs.controller.js.map +1 -1
- package/backend/dist/src/llm-provider/llm-provider.controller.js +18 -0
- package/backend/dist/src/llm-provider/llm-provider.controller.js.map +1 -1
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js +45 -0
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js.map +1 -1
- package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js +24 -0
- package/backend/dist/src/llm-responses/dto/sync-conversation.dto.js.map +1 -1
- package/backend/dist/src/llm-responses/llm-responses.controller.js +32 -0
- package/backend/dist/src/llm-responses/llm-responses.controller.js.map +1 -1
- package/backend/dist/src/main.js +9 -0
- package/backend/dist/src/main.js.map +1 -1
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js +8 -0
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js.map +1 -1
- package/backend/dist/src/mcp/dto/create-mcp-config.dto.js +5 -0
- package/backend/dist/src/mcp/dto/create-mcp-config.dto.js.map +1 -1
- package/backend/dist/src/mcp/dto/update-mcp-config.dto.js +2 -0
- package/backend/dist/src/mcp/dto/update-mcp-config.dto.js.map +1 -1
- package/backend/dist/src/mcp/mcp.controller.js +21 -0
- package/backend/dist/src/mcp/mcp.controller.js.map +1 -1
- package/backend/dist/src/projects/dto/project.dto.js +14 -0
- package/backend/dist/src/projects/dto/project.dto.js.map +1 -1
- package/backend/dist/src/projects/projects.controller.js +31 -0
- package/backend/dist/src/projects/projects.controller.js.map +1 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.d.ts +12 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.js +103 -1
- package/backend/dist/src/session-inputs/dto/session-input.dto.js.map +1 -1
- package/backend/dist/src/session-inputs/session-input.subscriber.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.controller.d.ts +2 -1
- package/backend/dist/src/session-inputs/session-inputs.controller.js +84 -0
- package/backend/dist/src/session-inputs/session-inputs.controller.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.module.js +1 -0
- package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.service.d.ts +7 -3
- package/backend/dist/src/session-inputs/session-inputs.service.js +51 -4
- package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
- package/backend/dist/src/sessions/dto/session.dto.js +91 -0
- package/backend/dist/src/sessions/dto/session.dto.js.map +1 -1
- package/backend/dist/src/sessions/sessions.controller.js +112 -0
- package/backend/dist/src/sessions/sessions.controller.js.map +1 -1
- package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js +26 -0
- package/backend/dist/src/sub-agents/dto/create-sub-agent.dto.js.map +1 -1
- package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js +22 -0
- package/backend/dist/src/sub-agents/dto/update-sub-agent.dto.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent-run.entity.d.ts +2 -7
- package/backend/dist/src/sub-agents/sub-agent-run.entity.js +63 -9
- package/backend/dist/src/sub-agents/sub-agent-run.entity.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent-runs.controller.js +63 -0
- package/backend/dist/src/sub-agents/sub-agent-runs.controller.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agent.entity.js +47 -0
- package/backend/dist/src/sub-agents/sub-agent.entity.js.map +1 -1
- package/backend/dist/src/sub-agents/sub-agents.controller.js +25 -0
- package/backend/dist/src/sub-agents/sub-agents.controller.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js +9 -0
- package/backend/dist/src/system-prompts/dto/set-enabled-tools.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/system-prompt.dto.js +43 -0
- package/backend/dist/src/system-prompts/dto/system-prompt.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js +5 -0
- package/backend/dist/src/system-prompts/dto/toggle-tool.dto.js.map +1 -1
- package/backend/dist/src/system-prompts/system-prompts.controller.js +80 -0
- package/backend/dist/src/system-prompts/system-prompts.controller.js.map +1 -1
- package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js +14 -0
- package/backend/dist/src/tool-hooks/dto/create-tool-hook.dto.js.map +1 -1
- package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js +11 -0
- package/backend/dist/src/tool-hooks/dto/update-tool-hook.dto.js.map +1 -1
- package/backend/dist/src/tool-hooks/tool-hooks.controller.js +52 -0
- package/backend/dist/src/tool-hooks/tool-hooks.controller.js.map +1 -1
- package/backend/dist/src/visual-editor/visual-editor.controller.js +15 -0
- package/backend/dist/src/visual-editor/visual-editor.controller.js.map +1 -1
- package/backend/dist/src/workspace/workspace.controller.js +41 -0
- package/backend/dist/src/workspace/workspace.controller.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/{daemon/node_modules/undici-types → backend/node_modules/@eslint/eslintrc}/LICENSE +5 -7
- package/backend/node_modules/@eslint/eslintrc/README.md +115 -0
- package/backend/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- package/backend/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4344 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +124 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1151 -0
- package/backend/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- package/backend/node_modules/@eslint/eslintrc/package.json +82 -0
- package/backend/node_modules/@eslint/eslintrc/universal.js +9 -0
- package/backend/package.json +1 -3
- package/package.json +3 -1
- package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -1
- package/backend/node_modules/@types/node/LICENSE +0 -21
- package/backend/node_modules/@types/node/README.md +0 -15
- package/backend/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/backend/node_modules/@types/node/assert.d.ts +0 -1044
- package/backend/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/backend/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/backend/node_modules/@types/node/buffer.d.ts +0 -1932
- package/backend/node_modules/@types/node/child_process.d.ts +0 -1452
- package/backend/node_modules/@types/node/cluster.d.ts +0 -578
- package/backend/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/backend/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/backend/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/backend/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/backend/node_modules/@types/node/console.d.ts +0 -452
- package/backend/node_modules/@types/node/constants.d.ts +0 -21
- package/backend/node_modules/@types/node/crypto.d.ts +0 -4570
- package/backend/node_modules/@types/node/dgram.d.ts +0 -596
- package/backend/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/backend/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/backend/node_modules/@types/node/dns.d.ts +0 -871
- package/backend/node_modules/@types/node/domain.d.ts +0 -170
- package/backend/node_modules/@types/node/events.d.ts +0 -931
- package/backend/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/backend/node_modules/@types/node/fs.d.ts +0 -4362
- package/backend/node_modules/@types/node/globals.d.ts +0 -170
- package/backend/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/backend/node_modules/@types/node/http.d.ts +0 -2031
- package/backend/node_modules/@types/node/http2.d.ts +0 -2623
- package/backend/node_modules/@types/node/https.d.ts +0 -549
- package/backend/node_modules/@types/node/index.d.ts +0 -93
- package/backend/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/backend/node_modules/@types/node/module.d.ts +0 -539
- package/backend/node_modules/@types/node/net.d.ts +0 -1011
- package/backend/node_modules/@types/node/os.d.ts +0 -495
- package/backend/node_modules/@types/node/package.json +0 -140
- package/backend/node_modules/@types/node/path.d.ts +0 -200
- package/backend/node_modules/@types/node/perf_hooks.d.ts +0 -963
- package/backend/node_modules/@types/node/process.d.ts +0 -1956
- package/backend/node_modules/@types/node/punycode.d.ts +0 -117
- package/backend/node_modules/@types/node/querystring.d.ts +0 -152
- package/backend/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/backend/node_modules/@types/node/readline.d.ts +0 -589
- package/backend/node_modules/@types/node/repl.d.ts +0 -430
- package/backend/node_modules/@types/node/sea.d.ts +0 -153
- package/backend/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/backend/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/backend/node_modules/@types/node/stream/web.d.ts +0 -533
- package/backend/node_modules/@types/node/stream.d.ts +0 -1668
- package/backend/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/backend/node_modules/@types/node/test.d.ts +0 -1807
- package/backend/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/backend/node_modules/@types/node/timers.d.ts +0 -286
- package/backend/node_modules/@types/node/tls.d.ts +0 -1231
- package/backend/node_modules/@types/node/trace_events.d.ts +0 -197
- package/backend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/backend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/backend/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/backend/node_modules/@types/node/tty.d.ts +0 -208
- package/backend/node_modules/@types/node/url.d.ts +0 -964
- package/backend/node_modules/@types/node/util.d.ts +0 -2331
- package/backend/node_modules/@types/node/v8.d.ts +0 -808
- package/backend/node_modules/@types/node/vm.d.ts +0 -1030
- package/backend/node_modules/@types/node/wasi.d.ts +0 -181
- package/backend/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/backend/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/backend/node_modules/@types/node/web-globals/events.d.ts +0 -94
- package/backend/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/backend/node_modules/@types/node/worker_threads.d.ts +0 -743
- package/backend/node_modules/@types/node/zlib.d.ts +0 -539
- package/backend/node_modules/debug/LICENSE +0 -20
- package/backend/node_modules/debug/README.md +0 -481
- package/backend/node_modules/debug/package.json +0 -64
- package/backend/node_modules/debug/src/browser.js +0 -272
- package/backend/node_modules/debug/src/common.js +0 -292
- package/backend/node_modules/debug/src/index.js +0 -10
- package/backend/node_modules/debug/src/node.js +0 -263
- package/backend/node_modules/undici-types/LICENSE +0 -21
- package/backend/node_modules/undici-types/README.md +0 -6
- package/backend/node_modules/undici-types/agent.d.ts +0 -31
- package/backend/node_modules/undici-types/api.d.ts +0 -43
- package/backend/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/backend/node_modules/undici-types/cache.d.ts +0 -36
- package/backend/node_modules/undici-types/client.d.ts +0 -108
- package/backend/node_modules/undici-types/connector.d.ts +0 -34
- package/backend/node_modules/undici-types/content-type.d.ts +0 -21
- package/backend/node_modules/undici-types/cookies.d.ts +0 -28
- package/backend/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/backend/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/backend/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/backend/node_modules/undici-types/errors.d.ts +0 -149
- package/backend/node_modules/undici-types/eventsource.d.ts +0 -61
- package/backend/node_modules/undici-types/fetch.d.ts +0 -209
- package/backend/node_modules/undici-types/file.d.ts +0 -39
- package/backend/node_modules/undici-types/filereader.d.ts +0 -54
- package/backend/node_modules/undici-types/formdata.d.ts +0 -108
- package/backend/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/backend/node_modules/undici-types/global-origin.d.ts +0 -7
- package/backend/node_modules/undici-types/handlers.d.ts +0 -15
- package/backend/node_modules/undici-types/header.d.ts +0 -4
- package/backend/node_modules/undici-types/index.d.ts +0 -71
- package/backend/node_modules/undici-types/interceptors.d.ts +0 -17
- package/backend/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/backend/node_modules/undici-types/mock-client.d.ts +0 -25
- package/backend/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/backend/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/backend/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/backend/node_modules/undici-types/package.json +0 -55
- package/backend/node_modules/undici-types/patch.d.ts +0 -33
- package/backend/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/backend/node_modules/undici-types/pool.d.ts +0 -39
- package/backend/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/backend/node_modules/undici-types/readable.d.ts +0 -65
- package/backend/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/backend/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/backend/node_modules/undici-types/util.d.ts +0 -18
- package/backend/node_modules/undici-types/webidl.d.ts +0 -228
- package/backend/node_modules/undici-types/websocket.d.ts +0 -150
- package/daemon/node_modules/@types/node/LICENSE +0 -21
- package/daemon/node_modules/@types/node/README.md +0 -15
- package/daemon/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/daemon/node_modules/@types/node/assert.d.ts +0 -1044
- package/daemon/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/daemon/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/daemon/node_modules/@types/node/buffer.d.ts +0 -1932
- package/daemon/node_modules/@types/node/child_process.d.ts +0 -1452
- package/daemon/node_modules/@types/node/cluster.d.ts +0 -578
- package/daemon/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/daemon/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/daemon/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/daemon/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/daemon/node_modules/@types/node/console.d.ts +0 -452
- package/daemon/node_modules/@types/node/constants.d.ts +0 -21
- package/daemon/node_modules/@types/node/crypto.d.ts +0 -4570
- package/daemon/node_modules/@types/node/dgram.d.ts +0 -596
- package/daemon/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/daemon/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/daemon/node_modules/@types/node/dns.d.ts +0 -871
- package/daemon/node_modules/@types/node/domain.d.ts +0 -170
- package/daemon/node_modules/@types/node/events.d.ts +0 -931
- package/daemon/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/daemon/node_modules/@types/node/fs.d.ts +0 -4362
- package/daemon/node_modules/@types/node/globals.d.ts +0 -170
- package/daemon/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/daemon/node_modules/@types/node/http.d.ts +0 -2031
- package/daemon/node_modules/@types/node/http2.d.ts +0 -2623
- package/daemon/node_modules/@types/node/https.d.ts +0 -549
- package/daemon/node_modules/@types/node/index.d.ts +0 -93
- package/daemon/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/daemon/node_modules/@types/node/module.d.ts +0 -539
- package/daemon/node_modules/@types/node/net.d.ts +0 -1011
- package/daemon/node_modules/@types/node/os.d.ts +0 -495
- package/daemon/node_modules/@types/node/package.json +0 -140
- package/daemon/node_modules/@types/node/path.d.ts +0 -200
- package/daemon/node_modules/@types/node/perf_hooks.d.ts +0 -963
- package/daemon/node_modules/@types/node/process.d.ts +0 -1956
- package/daemon/node_modules/@types/node/punycode.d.ts +0 -117
- package/daemon/node_modules/@types/node/querystring.d.ts +0 -152
- package/daemon/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/daemon/node_modules/@types/node/readline.d.ts +0 -589
- package/daemon/node_modules/@types/node/repl.d.ts +0 -430
- package/daemon/node_modules/@types/node/sea.d.ts +0 -153
- package/daemon/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/daemon/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/daemon/node_modules/@types/node/stream/web.d.ts +0 -533
- package/daemon/node_modules/@types/node/stream.d.ts +0 -1668
- package/daemon/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/daemon/node_modules/@types/node/test.d.ts +0 -1807
- package/daemon/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/daemon/node_modules/@types/node/timers.d.ts +0 -286
- package/daemon/node_modules/@types/node/tls.d.ts +0 -1231
- package/daemon/node_modules/@types/node/trace_events.d.ts +0 -197
- package/daemon/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/daemon/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/daemon/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/daemon/node_modules/@types/node/tty.d.ts +0 -208
- package/daemon/node_modules/@types/node/url.d.ts +0 -964
- package/daemon/node_modules/@types/node/util.d.ts +0 -2331
- package/daemon/node_modules/@types/node/v8.d.ts +0 -808
- package/daemon/node_modules/@types/node/vm.d.ts +0 -1030
- package/daemon/node_modules/@types/node/wasi.d.ts +0 -181
- package/daemon/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/daemon/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/daemon/node_modules/@types/node/web-globals/events.d.ts +0 -94
- package/daemon/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/daemon/node_modules/@types/node/worker_threads.d.ts +0 -743
- package/daemon/node_modules/@types/node/zlib.d.ts +0 -539
- package/daemon/node_modules/undici-types/README.md +0 -6
- package/daemon/node_modules/undici-types/agent.d.ts +0 -31
- package/daemon/node_modules/undici-types/api.d.ts +0 -43
- package/daemon/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/daemon/node_modules/undici-types/cache.d.ts +0 -36
- package/daemon/node_modules/undici-types/client.d.ts +0 -108
- package/daemon/node_modules/undici-types/connector.d.ts +0 -34
- package/daemon/node_modules/undici-types/content-type.d.ts +0 -21
- package/daemon/node_modules/undici-types/cookies.d.ts +0 -28
- package/daemon/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/daemon/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/daemon/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/daemon/node_modules/undici-types/errors.d.ts +0 -149
- package/daemon/node_modules/undici-types/eventsource.d.ts +0 -61
- package/daemon/node_modules/undici-types/fetch.d.ts +0 -209
- package/daemon/node_modules/undici-types/file.d.ts +0 -39
- package/daemon/node_modules/undici-types/filereader.d.ts +0 -54
- package/daemon/node_modules/undici-types/formdata.d.ts +0 -108
- package/daemon/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/daemon/node_modules/undici-types/global-origin.d.ts +0 -7
- package/daemon/node_modules/undici-types/handlers.d.ts +0 -15
- package/daemon/node_modules/undici-types/header.d.ts +0 -4
- package/daemon/node_modules/undici-types/index.d.ts +0 -71
- package/daemon/node_modules/undici-types/interceptors.d.ts +0 -17
- package/daemon/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/daemon/node_modules/undici-types/mock-client.d.ts +0 -25
- package/daemon/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/daemon/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/daemon/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/daemon/node_modules/undici-types/package.json +0 -55
- package/daemon/node_modules/undici-types/patch.d.ts +0 -33
- package/daemon/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/daemon/node_modules/undici-types/pool.d.ts +0 -39
- package/daemon/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/daemon/node_modules/undici-types/readable.d.ts +0 -65
- package/daemon/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/daemon/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/daemon/node_modules/undici-types/util.d.ts +0 -18
- package/daemon/node_modules/undici-types/webidl.d.ts +0 -228
- package/daemon/node_modules/undici-types/websocket.d.ts +0 -150
- package/visual-editor-proxy/node_modules/@types/node/LICENSE +0 -21
- package/visual-editor-proxy/node_modules/@types/node/README.md +0 -15
- package/visual-editor-proxy/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/visual-editor-proxy/node_modules/@types/node/assert.d.ts +0 -1062
- package/visual-editor-proxy/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/visual-editor-proxy/node_modules/@types/node/buffer.buffer.d.ts +0 -462
- package/visual-editor-proxy/node_modules/@types/node/buffer.d.ts +0 -1932
- package/visual-editor-proxy/node_modules/@types/node/child_process.d.ts +0 -1458
- package/visual-editor-proxy/node_modules/@types/node/cluster.d.ts +0 -577
- package/visual-editor-proxy/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/visual-editor-proxy/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/visual-editor-proxy/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/visual-editor-proxy/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/console.d.ts +0 -452
- package/visual-editor-proxy/node_modules/@types/node/constants.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/crypto.d.ts +0 -4570
- package/visual-editor-proxy/node_modules/@types/node/dgram.d.ts +0 -596
- package/visual-editor-proxy/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/visual-editor-proxy/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/visual-editor-proxy/node_modules/@types/node/dns.d.ts +0 -871
- package/visual-editor-proxy/node_modules/@types/node/domain.d.ts +0 -170
- package/visual-editor-proxy/node_modules/@types/node/events.d.ts +0 -977
- package/visual-editor-proxy/node_modules/@types/node/fs/promises.d.ts +0 -1248
- package/visual-editor-proxy/node_modules/@types/node/fs.d.ts +0 -4362
- package/visual-editor-proxy/node_modules/@types/node/globals.d.ts +0 -172
- package/visual-editor-proxy/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/visual-editor-proxy/node_modules/@types/node/http.d.ts +0 -2030
- package/visual-editor-proxy/node_modules/@types/node/http2.d.ts +0 -2624
- package/visual-editor-proxy/node_modules/@types/node/https.d.ts +0 -546
- package/visual-editor-proxy/node_modules/@types/node/index.d.ts +0 -93
- package/visual-editor-proxy/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/visual-editor-proxy/node_modules/@types/node/module.d.ts +0 -539
- package/visual-editor-proxy/node_modules/@types/node/net.d.ts +0 -1011
- package/visual-editor-proxy/node_modules/@types/node/os.d.ts +0 -505
- package/visual-editor-proxy/node_modules/@types/node/package.json +0 -140
- package/visual-editor-proxy/node_modules/@types/node/path.d.ts +0 -200
- package/visual-editor-proxy/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/visual-editor-proxy/node_modules/@types/node/process.d.ts +0 -1944
- package/visual-editor-proxy/node_modules/@types/node/punycode.d.ts +0 -117
- package/visual-editor-proxy/node_modules/@types/node/querystring.d.ts +0 -152
- package/visual-editor-proxy/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/visual-editor-proxy/node_modules/@types/node/readline.d.ts +0 -589
- package/visual-editor-proxy/node_modules/@types/node/repl.d.ts +0 -430
- package/visual-editor-proxy/node_modules/@types/node/sea.d.ts +0 -153
- package/visual-editor-proxy/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/visual-editor-proxy/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/visual-editor-proxy/node_modules/@types/node/stream/web.d.ts +0 -533
- package/visual-editor-proxy/node_modules/@types/node/stream.d.ts +0 -1675
- package/visual-editor-proxy/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/visual-editor-proxy/node_modules/@types/node/test.d.ts +0 -1787
- package/visual-editor-proxy/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/visual-editor-proxy/node_modules/@types/node/timers.d.ts +0 -286
- package/visual-editor-proxy/node_modules/@types/node/tls.d.ts +0 -1231
- package/visual-editor-proxy/node_modules/@types/node/trace_events.d.ts +0 -197
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -460
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/visual-editor-proxy/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/visual-editor-proxy/node_modules/@types/node/tty.d.ts +0 -208
- package/visual-editor-proxy/node_modules/@types/node/url.d.ts +0 -964
- package/visual-editor-proxy/node_modules/@types/node/util.d.ts +0 -2331
- package/visual-editor-proxy/node_modules/@types/node/v8.d.ts +0 -808
- package/visual-editor-proxy/node_modules/@types/node/vm.d.ts +0 -1000
- package/visual-editor-proxy/node_modules/@types/node/wasi.d.ts +0 -181
- package/visual-editor-proxy/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/visual-editor-proxy/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/visual-editor-proxy/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/visual-editor-proxy/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
- package/visual-editor-proxy/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/visual-editor-proxy/node_modules/@types/node/zlib.d.ts +0 -539
- package/visual-editor-proxy/node_modules/undici-types/LICENSE +0 -21
- package/visual-editor-proxy/node_modules/undici-types/README.md +0 -6
- package/visual-editor-proxy/node_modules/undici-types/agent.d.ts +0 -31
- package/visual-editor-proxy/node_modules/undici-types/api.d.ts +0 -43
- package/visual-editor-proxy/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/visual-editor-proxy/node_modules/undici-types/cache.d.ts +0 -36
- package/visual-editor-proxy/node_modules/undici-types/client.d.ts +0 -108
- package/visual-editor-proxy/node_modules/undici-types/connector.d.ts +0 -34
- package/visual-editor-proxy/node_modules/undici-types/content-type.d.ts +0 -21
- package/visual-editor-proxy/node_modules/undici-types/cookies.d.ts +0 -28
- package/visual-editor-proxy/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/visual-editor-proxy/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/visual-editor-proxy/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/visual-editor-proxy/node_modules/undici-types/errors.d.ts +0 -149
- package/visual-editor-proxy/node_modules/undici-types/eventsource.d.ts +0 -61
- package/visual-editor-proxy/node_modules/undici-types/fetch.d.ts +0 -209
- package/visual-editor-proxy/node_modules/undici-types/file.d.ts +0 -39
- package/visual-editor-proxy/node_modules/undici-types/filereader.d.ts +0 -54
- package/visual-editor-proxy/node_modules/undici-types/formdata.d.ts +0 -108
- package/visual-editor-proxy/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/visual-editor-proxy/node_modules/undici-types/global-origin.d.ts +0 -7
- package/visual-editor-proxy/node_modules/undici-types/handlers.d.ts +0 -15
- package/visual-editor-proxy/node_modules/undici-types/header.d.ts +0 -4
- package/visual-editor-proxy/node_modules/undici-types/index.d.ts +0 -71
- package/visual-editor-proxy/node_modules/undici-types/interceptors.d.ts +0 -17
- package/visual-editor-proxy/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/visual-editor-proxy/node_modules/undici-types/mock-client.d.ts +0 -25
- package/visual-editor-proxy/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/visual-editor-proxy/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/visual-editor-proxy/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/visual-editor-proxy/node_modules/undici-types/package.json +0 -55
- package/visual-editor-proxy/node_modules/undici-types/patch.d.ts +0 -33
- package/visual-editor-proxy/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/visual-editor-proxy/node_modules/undici-types/pool.d.ts +0 -39
- package/visual-editor-proxy/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/visual-editor-proxy/node_modules/undici-types/readable.d.ts +0 -65
- package/visual-editor-proxy/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/visual-editor-proxy/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/visual-editor-proxy/node_modules/undici-types/util.d.ts +0 -18
- package/visual-editor-proxy/node_modules/undici-types/webidl.d.ts +0 -228
- package/visual-editor-proxy/node_modules/undici-types/websocket.d.ts +0 -150
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ImportSessionResponseDto = exports.CreateSessionFromContextDto = exports.UpdateSessionDto = exports.CreateSessionDto = exports.SessionStatus = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const llm_provider_interface_1 = require("../../llm-provider/llm-provider.interface");
|
|
15
16
|
var SessionStatus;
|
|
16
17
|
(function (SessionStatus) {
|
|
@@ -23,52 +24,89 @@ class CreateSessionDto {
|
|
|
23
24
|
}
|
|
24
25
|
exports.CreateSessionDto = CreateSessionDto;
|
|
25
26
|
__decorate([
|
|
27
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
28
|
+
description: 'UUID of the associated project',
|
|
29
|
+
format: 'uuid',
|
|
30
|
+
}),
|
|
26
31
|
(0, class_validator_1.IsOptional)(),
|
|
27
32
|
(0, class_validator_1.IsUUID)(),
|
|
28
33
|
__metadata("design:type", String)
|
|
29
34
|
], CreateSessionDto.prototype, "project_id", void 0);
|
|
30
35
|
__decorate([
|
|
36
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Title of the session', maxLength: 255 }),
|
|
31
37
|
(0, class_validator_1.IsOptional)(),
|
|
32
38
|
(0, class_validator_1.IsString)(),
|
|
33
39
|
(0, class_validator_1.MaxLength)(255),
|
|
34
40
|
__metadata("design:type", String)
|
|
35
41
|
], CreateSessionDto.prototype, "session_title", void 0);
|
|
36
42
|
__decorate([
|
|
43
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
44
|
+
description: 'UUID of the system prompt to use',
|
|
45
|
+
format: 'uuid',
|
|
46
|
+
}),
|
|
37
47
|
(0, class_validator_1.IsOptional)(),
|
|
38
48
|
(0, class_validator_1.IsUUID)(),
|
|
39
49
|
__metadata("design:type", String)
|
|
40
50
|
], CreateSessionDto.prototype, "system_prompt_id", void 0);
|
|
41
51
|
__decorate([
|
|
52
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
53
|
+
description: 'UUID of the default initial context template',
|
|
54
|
+
format: 'uuid',
|
|
55
|
+
}),
|
|
42
56
|
(0, class_validator_1.IsOptional)(),
|
|
43
57
|
(0, class_validator_1.IsUUID)(),
|
|
44
58
|
__metadata("design:type", String)
|
|
45
59
|
], CreateSessionDto.prototype, "default_initial_context_template_id", void 0);
|
|
46
60
|
__decorate([
|
|
61
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
62
|
+
description: 'UUID of the default followup context template',
|
|
63
|
+
format: 'uuid',
|
|
64
|
+
}),
|
|
47
65
|
(0, class_validator_1.IsOptional)(),
|
|
48
66
|
(0, class_validator_1.IsUUID)(),
|
|
49
67
|
__metadata("design:type", String)
|
|
50
68
|
], CreateSessionDto.prototype, "default_followup_context_template_id", void 0);
|
|
51
69
|
__decorate([
|
|
70
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
71
|
+
description: 'External URL (e.g., AI Studio or Claude chat URL)',
|
|
72
|
+
example: 'https://claude.ai/chat/abc123',
|
|
73
|
+
}),
|
|
52
74
|
(0, class_validator_1.IsOptional)(),
|
|
53
75
|
(0, class_validator_1.IsUrl)(),
|
|
54
76
|
__metadata("design:type", String)
|
|
55
77
|
], CreateSessionDto.prototype, "url", void 0);
|
|
56
78
|
__decorate([
|
|
79
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
80
|
+
description: 'Model identifier to use for this session',
|
|
81
|
+
example: 'gemini-2.0-flash',
|
|
82
|
+
}),
|
|
57
83
|
(0, class_validator_1.IsOptional)(),
|
|
58
84
|
(0, class_validator_1.IsString)(),
|
|
59
85
|
__metadata("design:type", String)
|
|
60
86
|
], CreateSessionDto.prototype, "model_id", void 0);
|
|
61
87
|
__decorate([
|
|
88
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
89
|
+
description: 'Reasoning effort level',
|
|
90
|
+
enum: llm_provider_interface_1.ReasoningEffort,
|
|
91
|
+
}),
|
|
62
92
|
(0, class_validator_1.IsOptional)(),
|
|
63
93
|
(0, class_validator_1.IsEnum)(llm_provider_interface_1.ReasoningEffort),
|
|
64
94
|
__metadata("design:type", String)
|
|
65
95
|
], CreateSessionDto.prototype, "reasoning_effort", void 0);
|
|
66
96
|
__decorate([
|
|
97
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
98
|
+
description: 'UUID of the sub-agent to use',
|
|
99
|
+
format: 'uuid',
|
|
100
|
+
}),
|
|
67
101
|
(0, class_validator_1.IsOptional)(),
|
|
68
102
|
(0, class_validator_1.IsUUID)(),
|
|
69
103
|
__metadata("design:type", String)
|
|
70
104
|
], CreateSessionDto.prototype, "sub_agent_id", void 0);
|
|
71
105
|
__decorate([
|
|
106
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
107
|
+
description: 'UUID of the parent session (for follow-up sessions)',
|
|
108
|
+
format: 'uuid',
|
|
109
|
+
}),
|
|
72
110
|
(0, class_validator_1.IsOptional)(),
|
|
73
111
|
(0, class_validator_1.IsUUID)(),
|
|
74
112
|
__metadata("design:type", String)
|
|
@@ -77,52 +115,89 @@ class UpdateSessionDto {
|
|
|
77
115
|
}
|
|
78
116
|
exports.UpdateSessionDto = UpdateSessionDto;
|
|
79
117
|
__decorate([
|
|
118
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Title of the session', maxLength: 255 }),
|
|
80
119
|
(0, class_validator_1.IsOptional)(),
|
|
81
120
|
(0, class_validator_1.IsString)(),
|
|
82
121
|
(0, class_validator_1.MaxLength)(255),
|
|
83
122
|
__metadata("design:type", String)
|
|
84
123
|
], UpdateSessionDto.prototype, "session_title", void 0);
|
|
85
124
|
__decorate([
|
|
125
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
126
|
+
description: 'Status of the session',
|
|
127
|
+
enum: SessionStatus,
|
|
128
|
+
}),
|
|
86
129
|
(0, class_validator_1.IsOptional)(),
|
|
87
130
|
(0, class_validator_1.IsEnum)(SessionStatus),
|
|
88
131
|
__metadata("design:type", String)
|
|
89
132
|
], UpdateSessionDto.prototype, "status", void 0);
|
|
90
133
|
__decorate([
|
|
134
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
135
|
+
description: 'UUID of the system prompt to use',
|
|
136
|
+
format: 'uuid',
|
|
137
|
+
}),
|
|
91
138
|
(0, class_validator_1.IsOptional)(),
|
|
92
139
|
(0, class_validator_1.IsUUID)(),
|
|
93
140
|
__metadata("design:type", String)
|
|
94
141
|
], UpdateSessionDto.prototype, "system_prompt_id", void 0);
|
|
95
142
|
__decorate([
|
|
143
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
144
|
+
description: 'UUID of the default initial context template',
|
|
145
|
+
format: 'uuid',
|
|
146
|
+
}),
|
|
96
147
|
(0, class_validator_1.IsOptional)(),
|
|
97
148
|
(0, class_validator_1.IsUUID)(),
|
|
98
149
|
__metadata("design:type", String)
|
|
99
150
|
], UpdateSessionDto.prototype, "default_initial_context_template_id", void 0);
|
|
100
151
|
__decorate([
|
|
152
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
153
|
+
description: 'UUID of the default followup context template',
|
|
154
|
+
format: 'uuid',
|
|
155
|
+
}),
|
|
101
156
|
(0, class_validator_1.IsOptional)(),
|
|
102
157
|
(0, class_validator_1.IsUUID)(),
|
|
103
158
|
__metadata("design:type", String)
|
|
104
159
|
], UpdateSessionDto.prototype, "default_followup_context_template_id", void 0);
|
|
105
160
|
__decorate([
|
|
161
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
162
|
+
description: 'External URL (e.g., AI Studio or Claude chat URL)',
|
|
163
|
+
example: 'https://claude.ai/chat/abc123',
|
|
164
|
+
}),
|
|
106
165
|
(0, class_validator_1.IsOptional)(),
|
|
107
166
|
(0, class_validator_1.IsUrl)(),
|
|
108
167
|
__metadata("design:type", String)
|
|
109
168
|
], UpdateSessionDto.prototype, "url", void 0);
|
|
110
169
|
__decorate([
|
|
170
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
171
|
+
description: 'Model identifier to use for this session',
|
|
172
|
+
example: 'gemini-2.0-flash',
|
|
173
|
+
}),
|
|
111
174
|
(0, class_validator_1.IsOptional)(),
|
|
112
175
|
(0, class_validator_1.IsString)(),
|
|
113
176
|
__metadata("design:type", String)
|
|
114
177
|
], UpdateSessionDto.prototype, "model_id", void 0);
|
|
115
178
|
__decorate([
|
|
179
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
180
|
+
description: 'Reasoning effort level',
|
|
181
|
+
enum: llm_provider_interface_1.ReasoningEffort,
|
|
182
|
+
}),
|
|
116
183
|
(0, class_validator_1.IsOptional)(),
|
|
117
184
|
(0, class_validator_1.IsEnum)(llm_provider_interface_1.ReasoningEffort),
|
|
118
185
|
__metadata("design:type", String)
|
|
119
186
|
], UpdateSessionDto.prototype, "reasoning_effort", void 0);
|
|
120
187
|
__decorate([
|
|
188
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
189
|
+
description: 'UUID of the sub-agent to use',
|
|
190
|
+
format: 'uuid',
|
|
191
|
+
}),
|
|
121
192
|
(0, class_validator_1.IsOptional)(),
|
|
122
193
|
(0, class_validator_1.IsUUID)(),
|
|
123
194
|
__metadata("design:type", String)
|
|
124
195
|
], UpdateSessionDto.prototype, "sub_agent_id", void 0);
|
|
125
196
|
__decorate([
|
|
197
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
198
|
+
description: 'UUID of the parent session (for follow-up sessions)',
|
|
199
|
+
format: 'uuid',
|
|
200
|
+
}),
|
|
126
201
|
(0, class_validator_1.IsOptional)(),
|
|
127
202
|
(0, class_validator_1.IsUUID)(),
|
|
128
203
|
__metadata("design:type", String)
|
|
@@ -131,6 +206,10 @@ class CreateSessionFromContextDto {
|
|
|
131
206
|
}
|
|
132
207
|
exports.CreateSessionFromContextDto = CreateSessionFromContextDto;
|
|
133
208
|
__decorate([
|
|
209
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
210
|
+
description: 'Title for the new session',
|
|
211
|
+
maxLength: 255,
|
|
212
|
+
}),
|
|
134
213
|
(0, class_validator_1.IsOptional)(),
|
|
135
214
|
(0, class_validator_1.IsString)(),
|
|
136
215
|
(0, class_validator_1.MaxLength)(255),
|
|
@@ -139,4 +218,16 @@ __decorate([
|
|
|
139
218
|
class ImportSessionResponseDto {
|
|
140
219
|
}
|
|
141
220
|
exports.ImportSessionResponseDto = ImportSessionResponseDto;
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, swagger_1.ApiProperty)({ description: 'Success message' }),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], ImportSessionResponseDto.prototype, "message", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)({ description: 'UUID of the imported session', format: 'uuid' }),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], ImportSessionResponseDto.prototype, "session_id", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, swagger_1.ApiProperty)({ description: 'Number of messages imported' }),
|
|
231
|
+
__metadata("design:type", Number)
|
|
232
|
+
], ImportSessionResponseDto.prototype, "message_count", void 0);
|
|
142
233
|
//# sourceMappingURL=session.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.dto.js","sourceRoot":"","sources":["../../../../src/sessions/dto/session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,sFAA4E;AAE5E,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"session.dto.js","sourceRoot":"","sources":["../../../../src/sessions/dto/session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,6CAAmE;AACnE,sFAA4E;AAE5E,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,MAAa,gBAAgB;CA8E5B;AA9ED,4CA8EC;AAvEC;IANC,IAAA,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AW,EAAE,6BAA6B,EAAE,CAAC;;+DACtC"}
|
|
@@ -16,8 +16,10 @@ exports.SessionsController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const platform_express_1 = require("@nestjs/platform-express");
|
|
18
18
|
require("multer");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
20
|
const sessions_service_1 = require("./sessions.service");
|
|
20
21
|
const session_dto_1 = require("./dto/session.dto");
|
|
22
|
+
const core_entities_1 = require("../core-entities");
|
|
21
23
|
const session_transfer_service_1 = require("../session-transfer/session-transfer.service");
|
|
22
24
|
const session_followup_service_1 = require("../session-followup/session-followup.service");
|
|
23
25
|
let SessionsController = class SessionsController {
|
|
@@ -89,6 +91,12 @@ let SessionsController = class SessionsController {
|
|
|
89
91
|
exports.SessionsController = SessionsController;
|
|
90
92
|
__decorate([
|
|
91
93
|
(0, common_1.Post)(),
|
|
94
|
+
(0, swagger_1.ApiOperation)({ summary: 'Create a new session' }),
|
|
95
|
+
(0, swagger_1.ApiResponse)({
|
|
96
|
+
status: 201,
|
|
97
|
+
description: 'Session created successfully',
|
|
98
|
+
type: core_entities_1.Session,
|
|
99
|
+
}),
|
|
92
100
|
__param(0, (0, common_1.Body)()),
|
|
93
101
|
__metadata("design:type", Function),
|
|
94
102
|
__metadata("design:paramtypes", [session_dto_1.CreateSessionDto]),
|
|
@@ -97,6 +105,13 @@ __decorate([
|
|
|
97
105
|
__decorate([
|
|
98
106
|
(0, common_1.Post)(':id/set-active'),
|
|
99
107
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
108
|
+
(0, swagger_1.ApiOperation)({ summary: 'Set a session as the active session' }),
|
|
109
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
110
|
+
(0, swagger_1.ApiResponse)({
|
|
111
|
+
status: 200,
|
|
112
|
+
description: 'Session set as active',
|
|
113
|
+
schema: { properties: { success: { type: 'boolean' } } },
|
|
114
|
+
}),
|
|
100
115
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
101
116
|
__metadata("design:type", Function),
|
|
102
117
|
__metadata("design:paramtypes", [String]),
|
|
@@ -104,6 +119,20 @@ __decorate([
|
|
|
104
119
|
], SessionsController.prototype, "setActive", null);
|
|
105
120
|
__decorate([
|
|
106
121
|
(0, common_1.Post)('import'),
|
|
122
|
+
(0, swagger_1.ApiOperation)({ summary: 'Import a session from a JSON file' }),
|
|
123
|
+
(0, swagger_1.ApiConsumes)('multipart/form-data'),
|
|
124
|
+
(0, swagger_1.ApiBody)({
|
|
125
|
+
schema: {
|
|
126
|
+
type: 'object',
|
|
127
|
+
properties: { file: { type: 'string', format: 'binary' } },
|
|
128
|
+
},
|
|
129
|
+
}),
|
|
130
|
+
(0, swagger_1.ApiResponse)({
|
|
131
|
+
status: 201,
|
|
132
|
+
description: 'Session imported successfully',
|
|
133
|
+
type: session_dto_1.ImportSessionResponseDto,
|
|
134
|
+
}),
|
|
135
|
+
(0, swagger_1.ApiResponse)({ status: 400, description: 'Invalid file or missing file' }),
|
|
107
136
|
(0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file')),
|
|
108
137
|
__param(0, (0, common_1.UploadedFile)()),
|
|
109
138
|
__metadata("design:type", Function),
|
|
@@ -113,6 +142,15 @@ __decorate([
|
|
|
113
142
|
__decorate([
|
|
114
143
|
(0, common_1.Post)(':id/create-from-context'),
|
|
115
144
|
(0, common_1.HttpCode)(common_1.HttpStatus.CREATED),
|
|
145
|
+
(0, swagger_1.ApiOperation)({
|
|
146
|
+
summary: 'Create a follow-up session from an existing session context',
|
|
147
|
+
}),
|
|
148
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Parent session UUID', format: 'uuid' }),
|
|
149
|
+
(0, swagger_1.ApiResponse)({
|
|
150
|
+
status: 201,
|
|
151
|
+
description: 'Follow-up session created',
|
|
152
|
+
type: core_entities_1.Session,
|
|
153
|
+
}),
|
|
116
154
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
117
155
|
__param(1, (0, common_1.Body)()),
|
|
118
156
|
__metadata("design:type", Function),
|
|
@@ -121,6 +159,13 @@ __decorate([
|
|
|
121
159
|
], SessionsController.prototype, "createFromContext", null);
|
|
122
160
|
__decorate([
|
|
123
161
|
(0, common_1.Get)('active'),
|
|
162
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get the currently active session' }),
|
|
163
|
+
(0, swagger_1.ApiResponse)({
|
|
164
|
+
status: 200,
|
|
165
|
+
description: 'Active session found',
|
|
166
|
+
type: core_entities_1.Session,
|
|
167
|
+
}),
|
|
168
|
+
(0, swagger_1.ApiResponse)({ status: 204, description: 'No active session' }),
|
|
124
169
|
__param(0, (0, common_1.Res)()),
|
|
125
170
|
__metadata("design:type", Function),
|
|
126
171
|
__metadata("design:paramtypes", [Object]),
|
|
@@ -128,6 +173,17 @@ __decorate([
|
|
|
128
173
|
], SessionsController.prototype, "findActive", null);
|
|
129
174
|
__decorate([
|
|
130
175
|
(0, common_1.Get)(),
|
|
176
|
+
(0, swagger_1.ApiOperation)({ summary: 'List all sessions' }),
|
|
177
|
+
(0, swagger_1.ApiQuery)({
|
|
178
|
+
name: 'filter',
|
|
179
|
+
required: false,
|
|
180
|
+
description: 'Filter sessions by status or other criteria',
|
|
181
|
+
}),
|
|
182
|
+
(0, swagger_1.ApiResponse)({
|
|
183
|
+
status: 200,
|
|
184
|
+
description: 'List of sessions',
|
|
185
|
+
type: [core_entities_1.Session],
|
|
186
|
+
}),
|
|
131
187
|
__param(0, (0, common_1.Query)('filter')),
|
|
132
188
|
__metadata("design:type", Function),
|
|
133
189
|
__metadata("design:paramtypes", [String]),
|
|
@@ -135,6 +191,10 @@ __decorate([
|
|
|
135
191
|
], SessionsController.prototype, "findAll", null);
|
|
136
192
|
__decorate([
|
|
137
193
|
(0, common_1.Get)(':id'),
|
|
194
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get a session by ID' }),
|
|
195
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
196
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Session found', type: core_entities_1.Session }),
|
|
197
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Session not found' }),
|
|
138
198
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
139
199
|
__metadata("design:type", Function),
|
|
140
200
|
__metadata("design:paramtypes", [String]),
|
|
@@ -142,6 +202,13 @@ __decorate([
|
|
|
142
202
|
], SessionsController.prototype, "findOne", null);
|
|
143
203
|
__decorate([
|
|
144
204
|
(0, common_1.Get)(':id/child-sessions'),
|
|
205
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get all child sessions of a session' }),
|
|
206
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Parent session UUID', format: 'uuid' }),
|
|
207
|
+
(0, swagger_1.ApiResponse)({
|
|
208
|
+
status: 200,
|
|
209
|
+
description: 'List of child sessions',
|
|
210
|
+
type: [core_entities_1.Session],
|
|
211
|
+
}),
|
|
145
212
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
146
213
|
__metadata("design:type", Function),
|
|
147
214
|
__metadata("design:paramtypes", [String]),
|
|
@@ -149,6 +216,23 @@ __decorate([
|
|
|
149
216
|
], SessionsController.prototype, "findChildSessions", null);
|
|
150
217
|
__decorate([
|
|
151
218
|
(0, common_1.Get)(':id/file-changes'),
|
|
219
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get file changes made in a session' }),
|
|
220
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
221
|
+
(0, swagger_1.ApiResponse)({
|
|
222
|
+
status: 200,
|
|
223
|
+
description: 'List of file changes',
|
|
224
|
+
schema: {
|
|
225
|
+
type: 'array',
|
|
226
|
+
items: {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {
|
|
229
|
+
file_path: { type: 'string' },
|
|
230
|
+
initial_content: { type: 'string', nullable: true },
|
|
231
|
+
current_content: { type: 'string', nullable: true },
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
}),
|
|
152
236
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
153
237
|
__metadata("design:type", Function),
|
|
154
238
|
__metadata("design:paramtypes", [String]),
|
|
@@ -156,6 +240,9 @@ __decorate([
|
|
|
156
240
|
], SessionsController.prototype, "getFileChanges", null);
|
|
157
241
|
__decorate([
|
|
158
242
|
(0, common_1.Get)(':id/export'),
|
|
243
|
+
(0, swagger_1.ApiOperation)({ summary: 'Export a session to JSON' }),
|
|
244
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
245
|
+
(0, swagger_1.ApiResponse)({ status: 200, description: 'Session exported as JSON file' }),
|
|
159
246
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
160
247
|
__param(1, (0, common_1.Res)()),
|
|
161
248
|
__metadata("design:type", Function),
|
|
@@ -164,6 +251,14 @@ __decorate([
|
|
|
164
251
|
], SessionsController.prototype, "exportSession", null);
|
|
165
252
|
__decorate([
|
|
166
253
|
(0, common_1.Put)(':id'),
|
|
254
|
+
(0, swagger_1.ApiOperation)({ summary: 'Update a session' }),
|
|
255
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
256
|
+
(0, swagger_1.ApiResponse)({
|
|
257
|
+
status: 200,
|
|
258
|
+
description: 'Session updated successfully',
|
|
259
|
+
type: core_entities_1.Session,
|
|
260
|
+
}),
|
|
261
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Session not found' }),
|
|
167
262
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
168
263
|
__param(1, (0, common_1.Body)()),
|
|
169
264
|
__metadata("design:type", Function),
|
|
@@ -173,6 +268,10 @@ __decorate([
|
|
|
173
268
|
__decorate([
|
|
174
269
|
(0, common_1.Delete)(':id'),
|
|
175
270
|
(0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
|
|
271
|
+
(0, swagger_1.ApiOperation)({ summary: 'Delete a session' }),
|
|
272
|
+
(0, swagger_1.ApiParam)({ name: 'id', description: 'Session UUID', format: 'uuid' }),
|
|
273
|
+
(0, swagger_1.ApiResponse)({ status: 204, description: 'Session deleted successfully' }),
|
|
274
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Session not found' }),
|
|
176
275
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
177
276
|
__metadata("design:type", Function),
|
|
178
277
|
__metadata("design:paramtypes", [String]),
|
|
@@ -180,12 +279,25 @@ __decorate([
|
|
|
180
279
|
], SessionsController.prototype, "remove", null);
|
|
181
280
|
__decorate([
|
|
182
281
|
(0, common_1.Post)(':id/clone'),
|
|
282
|
+
(0, swagger_1.ApiOperation)({ summary: 'Clone a session' }),
|
|
283
|
+
(0, swagger_1.ApiParam)({
|
|
284
|
+
name: 'id',
|
|
285
|
+
description: 'Session UUID to clone',
|
|
286
|
+
format: 'uuid',
|
|
287
|
+
}),
|
|
288
|
+
(0, swagger_1.ApiResponse)({
|
|
289
|
+
status: 201,
|
|
290
|
+
description: 'Session cloned successfully',
|
|
291
|
+
type: core_entities_1.Session,
|
|
292
|
+
}),
|
|
293
|
+
(0, swagger_1.ApiResponse)({ status: 404, description: 'Session not found' }),
|
|
183
294
|
__param(0, (0, common_1.Param)('id', common_1.ParseUUIDPipe)),
|
|
184
295
|
__metadata("design:type", Function),
|
|
185
296
|
__metadata("design:paramtypes", [String]),
|
|
186
297
|
__metadata("design:returntype", Promise)
|
|
187
298
|
], SessionsController.prototype, "clone", null);
|
|
188
299
|
exports.SessionsController = SessionsController = __decorate([
|
|
300
|
+
(0, swagger_1.ApiTags)('sessions'),
|
|
189
301
|
(0, common_1.Controller)('sessions'),
|
|
190
302
|
__metadata("design:paramtypes", [sessions_service_1.SessionsService,
|
|
191
303
|
session_transfer_service_1.SessionTransferService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.controller.js","sourceRoot":"","sources":["../../../src/sessions/sessions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAgBwB;AACxB,+DAA2D;AAE3D,kBAAgB;AAChB,yDAAqD;AACrD,mDAK2B;
|
|
1
|
+
{"version":3,"file":"sessions.controller.js","sourceRoot":"","sources":["../../../src/sessions/sessions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAgBwB;AACxB,+DAA2D;AAE3D,kBAAgB;AAChB,6CAQyB;AACzB,yDAAqD;AACrD,mDAK2B;AAC3B,oDAA2C;AAC3C,2FAAsF;AACtF,2FAAsF;AAI/E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,eAAgC,EAChC,sBAA8C,EAC9C,sBAA8C;QAF9C,oBAAe,GAAf,eAAe,CAAiB;QAChC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAC9D,CAAC;IASE,AAAN,KAAK,CAAC,MAAM,CAAS,gBAAkC;QACrD,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IAWK,AAAN,KAAK,CAAC,SAAS,CACe,EAAU;QAEtC,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAkBK,AAAN,KAAK,CAAC,aAAa,CACD,IAAyB;QAEzC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,4BAAmB,CAAC,mBAAmB,CAAC,CAAC;QACrD,CAAC;QACD,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,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|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateSubAgentDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
class CreateSubAgentDto {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateSubAgentDto = CreateSubAgentDto;
|
|
17
18
|
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ description: 'Name of the sub-agent', example: 'Bug Fixer' }),
|
|
18
20
|
(0, class_validator_1.IsString)(),
|
|
19
21
|
__metadata("design:type", String)
|
|
20
22
|
], CreateSubAgentDto.prototype, "name", void 0);
|
|
21
23
|
__decorate([
|
|
24
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
25
|
+
description: 'Description of what this sub-agent does',
|
|
26
|
+
}),
|
|
22
27
|
(0, class_validator_1.IsOptional)(),
|
|
23
28
|
(0, class_validator_1.IsString)(),
|
|
24
29
|
__metadata("design:type", String)
|
|
25
30
|
], CreateSubAgentDto.prototype, "description", void 0);
|
|
26
31
|
__decorate([
|
|
32
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
33
|
+
description: 'UUID of system prompt for this sub-agent',
|
|
34
|
+
format: 'uuid',
|
|
35
|
+
}),
|
|
27
36
|
(0, class_validator_1.IsOptional)(),
|
|
28
37
|
(0, class_validator_1.IsUUID)(),
|
|
29
38
|
__metadata("design:type", String)
|
|
30
39
|
], CreateSubAgentDto.prototype, "system_prompt_id", void 0);
|
|
31
40
|
__decorate([
|
|
41
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
42
|
+
description: 'UUID of context template for initial prompts',
|
|
43
|
+
format: 'uuid',
|
|
44
|
+
}),
|
|
32
45
|
(0, class_validator_1.IsOptional)(),
|
|
33
46
|
(0, class_validator_1.IsUUID)(),
|
|
34
47
|
__metadata("design:type", String)
|
|
35
48
|
], CreateSubAgentDto.prototype, "context_template_id", void 0);
|
|
36
49
|
__decorate([
|
|
50
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
51
|
+
description: 'UUID of context template for follow-up prompts',
|
|
52
|
+
format: 'uuid',
|
|
53
|
+
}),
|
|
37
54
|
(0, class_validator_1.IsOptional)(),
|
|
38
55
|
(0, class_validator_1.IsUUID)(),
|
|
39
56
|
__metadata("design:type", String)
|
|
40
57
|
], CreateSubAgentDto.prototype, "followup_context_template_id", void 0);
|
|
41
58
|
__decorate([
|
|
59
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
60
|
+
description: 'Array of tool names this sub-agent can use',
|
|
61
|
+
example: ['create_file', 'overwrite_file'],
|
|
62
|
+
}),
|
|
42
63
|
(0, class_validator_1.IsOptional)(),
|
|
43
64
|
(0, class_validator_1.IsArray)(),
|
|
44
65
|
(0, class_validator_1.IsString)({ each: true }),
|
|
45
66
|
__metadata("design:type", Array)
|
|
46
67
|
], CreateSubAgentDto.prototype, "enabled_tools", void 0);
|
|
47
68
|
__decorate([
|
|
69
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Whether this sub-agent is active' }),
|
|
48
70
|
(0, class_validator_1.IsOptional)(),
|
|
49
71
|
(0, class_validator_1.IsBoolean)(),
|
|
50
72
|
__metadata("design:type", Boolean)
|
|
51
73
|
], CreateSubAgentDto.prototype, "is_active", void 0);
|
|
52
74
|
__decorate([
|
|
75
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
76
|
+
description: 'Model ID to use for this sub-agent',
|
|
77
|
+
example: 'gemini-2.0-flash',
|
|
78
|
+
}),
|
|
53
79
|
(0, class_validator_1.IsOptional)(),
|
|
54
80
|
(0, class_validator_1.IsString)(),
|
|
55
81
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sub-agent.dto.js","sourceRoot":"","sources":["../../../../src/sub-agents/dto/create-sub-agent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;
|
|
1
|
+
{"version":3,"file":"create-sub-agent.dto.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AAE;;oDACQ;AAQpB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACO"}
|
|
@@ -11,46 +11,68 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateSubAgentDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
class UpdateSubAgentDto {
|
|
15
16
|
}
|
|
16
17
|
exports.UpdateSubAgentDto = UpdateSubAgentDto;
|
|
17
18
|
__decorate([
|
|
19
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Name of the sub-agent' }),
|
|
18
20
|
(0, class_validator_1.IsOptional)(),
|
|
19
21
|
(0, class_validator_1.IsString)(),
|
|
20
22
|
__metadata("design:type", String)
|
|
21
23
|
], UpdateSubAgentDto.prototype, "name", void 0);
|
|
22
24
|
__decorate([
|
|
25
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
26
|
+
description: 'Description of what this sub-agent does',
|
|
27
|
+
}),
|
|
23
28
|
(0, class_validator_1.IsOptional)(),
|
|
24
29
|
(0, class_validator_1.IsString)(),
|
|
25
30
|
__metadata("design:type", String)
|
|
26
31
|
], UpdateSubAgentDto.prototype, "description", void 0);
|
|
27
32
|
__decorate([
|
|
33
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'UUID of system prompt', format: 'uuid' }),
|
|
28
34
|
(0, class_validator_1.IsOptional)(),
|
|
29
35
|
(0, class_validator_1.IsUUID)(),
|
|
30
36
|
__metadata("design:type", String)
|
|
31
37
|
], UpdateSubAgentDto.prototype, "system_prompt_id", void 0);
|
|
32
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
40
|
+
description: 'UUID of context template for initial prompts',
|
|
41
|
+
format: 'uuid',
|
|
42
|
+
}),
|
|
33
43
|
(0, class_validator_1.IsOptional)(),
|
|
34
44
|
(0, class_validator_1.IsUUID)(),
|
|
35
45
|
__metadata("design:type", String)
|
|
36
46
|
], UpdateSubAgentDto.prototype, "context_template_id", void 0);
|
|
37
47
|
__decorate([
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
49
|
+
description: 'UUID of context template for follow-up prompts',
|
|
50
|
+
format: 'uuid',
|
|
51
|
+
}),
|
|
38
52
|
(0, class_validator_1.IsOptional)(),
|
|
39
53
|
(0, class_validator_1.IsUUID)(),
|
|
40
54
|
__metadata("design:type", String)
|
|
41
55
|
], UpdateSubAgentDto.prototype, "followup_context_template_id", void 0);
|
|
42
56
|
__decorate([
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
58
|
+
description: 'Array of tool names this sub-agent can use',
|
|
59
|
+
}),
|
|
43
60
|
(0, class_validator_1.IsOptional)(),
|
|
44
61
|
(0, class_validator_1.IsArray)(),
|
|
45
62
|
(0, class_validator_1.IsString)({ each: true }),
|
|
46
63
|
__metadata("design:type", Array)
|
|
47
64
|
], UpdateSubAgentDto.prototype, "enabled_tools", void 0);
|
|
48
65
|
__decorate([
|
|
66
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Whether this sub-agent is active' }),
|
|
49
67
|
(0, class_validator_1.IsOptional)(),
|
|
50
68
|
(0, class_validator_1.IsBoolean)(),
|
|
51
69
|
__metadata("design:type", Boolean)
|
|
52
70
|
], UpdateSubAgentDto.prototype, "is_active", void 0);
|
|
53
71
|
__decorate([
|
|
72
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
73
|
+
description: 'Model ID to use',
|
|
74
|
+
example: 'gemini-2.0-flash',
|
|
75
|
+
}),
|
|
54
76
|
(0, class_validator_1.IsOptional)(),
|
|
55
77
|
(0, class_validator_1.IsString)(),
|
|
56
78
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sub-agent.dto.js","sourceRoot":"","sources":["../../../../src/sub-agents/dto/update-sub-agent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;
|
|
1
|
+
{"version":3,"file":"update-sub-agent.dto.js","sourceRoot":"","sources":["../../../../src/sub-agents/dto/update-sub-agent.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,6CAAsD;AAEtD,MAAa,iBAAiB;CAsD7B;AAtDD,8CAsDC;AAlDC;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IAC7D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG;AAOd;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,yCAAyC;KACvD,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACU;AAKrB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7E,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACiB;AAQ1B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,8CAA8C;QAC3D,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACoB;AAQ7B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,gDAAgD;QAC7D,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uEAC6B;AAQtC;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,4CAA4C;KAC1D,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACA;AAKzB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IACxE,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACQ;AAQpB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,iBAAiB;QAC9B,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACO"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { BaseEntity } from '../core-entities/base.entity';
|
|
2
2
|
import { Session } from '../core-entities/session.entity';
|
|
3
3
|
import { SubAgent } from './sub-agent.entity';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
COMPLETED = "completed",
|
|
7
|
-
FAILED = "failed",
|
|
8
|
-
TIMEOUT = "timeout",
|
|
9
|
-
CANCELLED = "cancelled"
|
|
10
|
-
}
|
|
4
|
+
import { SubAgentRunStatus } from '../core-entities/enums';
|
|
5
|
+
export { SubAgentRunStatus } from '../core-entities/enums';
|
|
11
6
|
export declare class SubAgentRun extends BaseEntity {
|
|
12
7
|
parent_session_id: string;
|
|
13
8
|
parentSession: Session;
|