@otto-assistant/bridge 0.4.92
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/bin.js +2 -0
- package/dist/agent-model.e2e.test.js +755 -0
- package/dist/ai-tool-to-genai.js +233 -0
- package/dist/ai-tool-to-genai.test.js +267 -0
- package/dist/ai-tool.js +6 -0
- package/dist/anthropic-auth-plugin.js +728 -0
- package/dist/anthropic-auth-plugin.test.js +125 -0
- package/dist/anthropic-auth-state.js +231 -0
- package/dist/bin.js +90 -0
- package/dist/channel-management.js +227 -0
- package/dist/cli-parsing.test.js +137 -0
- package/dist/cli-send-thread.e2e.test.js +356 -0
- package/dist/cli.js +3276 -0
- package/dist/commands/abort.js +65 -0
- package/dist/commands/action-buttons.js +245 -0
- package/dist/commands/add-project.js +113 -0
- package/dist/commands/agent.js +335 -0
- package/dist/commands/ask-question.js +274 -0
- package/dist/commands/btw.js +116 -0
- package/dist/commands/compact.js +120 -0
- package/dist/commands/context-usage.js +140 -0
- package/dist/commands/create-new-project.js +130 -0
- package/dist/commands/diff.js +63 -0
- package/dist/commands/file-upload.js +275 -0
- package/dist/commands/fork.js +220 -0
- package/dist/commands/gemini-apikey.js +70 -0
- package/dist/commands/login.js +885 -0
- package/dist/commands/mcp.js +239 -0
- package/dist/commands/memory-snapshot.js +24 -0
- package/dist/commands/mention-mode.js +44 -0
- package/dist/commands/merge-worktree.js +159 -0
- package/dist/commands/model-variant.js +364 -0
- package/dist/commands/model.js +776 -0
- package/dist/commands/new-worktree.js +366 -0
- package/dist/commands/paginated-select.js +57 -0
- package/dist/commands/permissions.js +274 -0
- package/dist/commands/queue.js +206 -0
- package/dist/commands/remove-project.js +115 -0
- package/dist/commands/restart-opencode-server.js +127 -0
- package/dist/commands/resume.js +149 -0
- package/dist/commands/run-command.js +79 -0
- package/dist/commands/screenshare.js +303 -0
- package/dist/commands/screenshare.test.js +20 -0
- package/dist/commands/session-id.js +78 -0
- package/dist/commands/session.js +176 -0
- package/dist/commands/share.js +80 -0
- package/dist/commands/tasks.js +205 -0
- package/dist/commands/types.js +2 -0
- package/dist/commands/undo-redo.js +305 -0
- package/dist/commands/unset-model.js +138 -0
- package/dist/commands/upgrade.js +42 -0
- package/dist/commands/user-command.js +155 -0
- package/dist/commands/verbosity.js +125 -0
- package/dist/commands/worktree-settings.js +43 -0
- package/dist/commands/worktrees.js +410 -0
- package/dist/condense-memory.js +33 -0
- package/dist/config.js +94 -0
- package/dist/context-awareness-plugin.js +363 -0
- package/dist/context-awareness-plugin.test.js +124 -0
- package/dist/critique-utils.js +95 -0
- package/dist/database.js +1310 -0
- package/dist/db.js +251 -0
- package/dist/db.test.js +138 -0
- package/dist/debounce-timeout.js +28 -0
- package/dist/debounced-process-flush.js +77 -0
- package/dist/discord-bot.js +1008 -0
- package/dist/discord-command-registration.js +524 -0
- package/dist/discord-urls.js +81 -0
- package/dist/discord-utils.js +591 -0
- package/dist/discord-utils.test.js +134 -0
- package/dist/errors.js +157 -0
- package/dist/escape-backticks.test.js +429 -0
- package/dist/event-stream-real-capture.e2e.test.js +533 -0
- package/dist/eventsource-parser.test.js +327 -0
- package/dist/exec-async.js +26 -0
- package/dist/external-opencode-sync.js +480 -0
- package/dist/format-tables.js +302 -0
- package/dist/format-tables.test.js +308 -0
- package/dist/forum-sync/config.js +79 -0
- package/dist/forum-sync/discord-operations.js +154 -0
- package/dist/forum-sync/index.js +5 -0
- package/dist/forum-sync/markdown.js +113 -0
- package/dist/forum-sync/sync-to-discord.js +417 -0
- package/dist/forum-sync/sync-to-files.js +190 -0
- package/dist/forum-sync/types.js +53 -0
- package/dist/forum-sync/watchers.js +307 -0
- package/dist/gateway-proxy-reconnect.e2e.test.js +394 -0
- package/dist/gateway-proxy.e2e.test.js +483 -0
- package/dist/genai-worker-wrapper.js +111 -0
- package/dist/genai-worker.js +311 -0
- package/dist/genai.js +232 -0
- package/dist/generated/browser.js +17 -0
- package/dist/generated/client.js +37 -0
- package/dist/generated/commonInputTypes.js +10 -0
- package/dist/generated/enums.js +52 -0
- package/dist/generated/internal/class.js +49 -0
- package/dist/generated/internal/prismaNamespace.js +253 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js +223 -0
- package/dist/generated/models/bot_api_keys.js +1 -0
- package/dist/generated/models/bot_tokens.js +1 -0
- package/dist/generated/models/channel_agents.js +1 -0
- package/dist/generated/models/channel_directories.js +1 -0
- package/dist/generated/models/channel_mention_mode.js +1 -0
- package/dist/generated/models/channel_models.js +1 -0
- package/dist/generated/models/channel_verbosity.js +1 -0
- package/dist/generated/models/channel_worktrees.js +1 -0
- package/dist/generated/models/forum_sync_configs.js +1 -0
- package/dist/generated/models/global_models.js +1 -0
- package/dist/generated/models/ipc_requests.js +1 -0
- package/dist/generated/models/part_messages.js +1 -0
- package/dist/generated/models/scheduled_tasks.js +1 -0
- package/dist/generated/models/session_agents.js +1 -0
- package/dist/generated/models/session_events.js +1 -0
- package/dist/generated/models/session_models.js +1 -0
- package/dist/generated/models/session_start_sources.js +1 -0
- package/dist/generated/models/thread_sessions.js +1 -0
- package/dist/generated/models/thread_worktrees.js +1 -0
- package/dist/generated/models.js +1 -0
- package/dist/heap-monitor.js +122 -0
- package/dist/hrana-server.js +263 -0
- package/dist/hrana-server.test.js +370 -0
- package/dist/html-actions.js +123 -0
- package/dist/html-actions.test.js +70 -0
- package/dist/html-components.js +117 -0
- package/dist/html-components.test.js +34 -0
- package/dist/image-optimizer-plugin.js +153 -0
- package/dist/image-utils.js +112 -0
- package/dist/interaction-handler.js +397 -0
- package/dist/ipc-polling.js +252 -0
- package/dist/ipc-tools-plugin.js +193 -0
- package/dist/kimaki-digital-twin.e2e.test.js +161 -0
- package/dist/kimaki-opencode-plugin-loading.e2e.test.js +87 -0
- package/dist/kimaki-opencode-plugin.js +17 -0
- package/dist/kimaki-opencode-plugin.test.js +98 -0
- package/dist/limit-heading-depth.js +25 -0
- package/dist/limit-heading-depth.test.js +105 -0
- package/dist/logger.js +165 -0
- package/dist/markdown.js +342 -0
- package/dist/markdown.test.js +257 -0
- package/dist/message-finish-field.e2e.test.js +165 -0
- package/dist/message-formatting.js +413 -0
- package/dist/message-formatting.test.js +73 -0
- package/dist/message-preprocessing.js +330 -0
- package/dist/onboarding-tutorial.js +172 -0
- package/dist/onboarding-welcome.js +37 -0
- package/dist/openai-realtime.js +224 -0
- package/dist/opencode-command-detection.js +65 -0
- package/dist/opencode-command-detection.test.js +240 -0
- package/dist/opencode-command.js +129 -0
- package/dist/opencode-command.test.js +48 -0
- package/dist/opencode-interrupt-plugin.js +361 -0
- package/dist/opencode-interrupt-plugin.test.js +458 -0
- package/dist/opencode.js +861 -0
- package/dist/otto/branding.js +22 -0
- package/dist/otto/index.js +21 -0
- package/dist/parse-permission-rules.test.js +117 -0
- package/dist/patch-text-parser.js +97 -0
- package/dist/plugin-logger.js +59 -0
- package/dist/privacy-sanitizer.js +105 -0
- package/dist/queue-advanced-abort.e2e.test.js +293 -0
- package/dist/queue-advanced-action-buttons.e2e.test.js +206 -0
- package/dist/queue-advanced-e2e-setup.js +786 -0
- package/dist/queue-advanced-footer.e2e.test.js +472 -0
- package/dist/queue-advanced-model-switch.e2e.test.js +299 -0
- package/dist/queue-advanced-permissions-typing.e2e.test.js +180 -0
- package/dist/queue-advanced-question.e2e.test.js +261 -0
- package/dist/queue-advanced-typing-interrupt.e2e.test.js +114 -0
- package/dist/queue-advanced-typing.e2e.test.js +153 -0
- package/dist/queue-drain-after-interactive-ui.e2e.test.js +119 -0
- package/dist/queue-interrupt-drain.e2e.test.js +135 -0
- package/dist/queue-question-select-drain.e2e.test.js +120 -0
- package/dist/runtime-idle-sweeper.js +52 -0
- package/dist/runtime-lifecycle.e2e.test.js +508 -0
- package/dist/sentry.js +23 -0
- package/dist/session-handler/agent-utils.js +67 -0
- package/dist/session-handler/event-stream-state.js +420 -0
- package/dist/session-handler/event-stream-state.test.js +563 -0
- package/dist/session-handler/model-utils.js +124 -0
- package/dist/session-handler/opencode-session-event-log.js +94 -0
- package/dist/session-handler/thread-runtime-state.js +104 -0
- package/dist/session-handler/thread-session-runtime.js +3258 -0
- package/dist/session-handler.js +9 -0
- package/dist/session-search.js +100 -0
- package/dist/session-search.test.js +40 -0
- package/dist/session-title-rename.test.js +80 -0
- package/dist/startup-service.js +153 -0
- package/dist/startup-time.e2e.test.js +296 -0
- package/dist/store.js +17 -0
- package/dist/system-message.js +613 -0
- package/dist/system-message.test.js +602 -0
- package/dist/task-runner.js +295 -0
- package/dist/task-schedule.js +209 -0
- package/dist/task-schedule.test.js +71 -0
- package/dist/test-utils.js +299 -0
- package/dist/thinking-utils.js +35 -0
- package/dist/thread-message-queue.e2e.test.js +999 -0
- package/dist/tools.js +357 -0
- package/dist/undo-redo.e2e.test.js +161 -0
- package/dist/unnest-code-blocks.js +146 -0
- package/dist/unnest-code-blocks.test.js +673 -0
- package/dist/upgrade.js +114 -0
- package/dist/utils.js +144 -0
- package/dist/voice-attachment.js +34 -0
- package/dist/voice-handler.js +646 -0
- package/dist/voice-message.e2e.test.js +1021 -0
- package/dist/voice.js +447 -0
- package/dist/voice.test.js +235 -0
- package/dist/wait-session.js +94 -0
- package/dist/websockify.js +69 -0
- package/dist/worker-types.js +4 -0
- package/dist/worktree-lifecycle.e2e.test.js +308 -0
- package/dist/worktree-utils.js +3 -0
- package/dist/worktrees.js +929 -0
- package/dist/worktrees.test.js +189 -0
- package/dist/xml.js +92 -0
- package/dist/xml.test.js +32 -0
- package/package.json +98 -0
- package/schema.prisma +295 -0
- package/skills/batch/SKILL.md +87 -0
- package/skills/critique/SKILL.md +112 -0
- package/skills/egaki/SKILL.md +100 -0
- package/skills/errore/SKILL.md +647 -0
- package/skills/event-sourcing-state/SKILL.md +252 -0
- package/skills/gitchamber/SKILL.md +93 -0
- package/skills/goke/SKILL.md +644 -0
- package/skills/jitter/EDITOR.md +219 -0
- package/skills/jitter/EXPORT-INTERNALS.md +309 -0
- package/skills/jitter/SKILL.md +158 -0
- package/skills/jitter/jitter-clipboard.json +1042 -0
- package/skills/jitter/package.json +14 -0
- package/skills/jitter/tsconfig.json +15 -0
- package/skills/jitter/utils/actions.ts +212 -0
- package/skills/jitter/utils/export.ts +114 -0
- package/skills/jitter/utils/index.ts +141 -0
- package/skills/jitter/utils/snapshot.ts +154 -0
- package/skills/jitter/utils/traverse.ts +246 -0
- package/skills/jitter/utils/types.ts +279 -0
- package/skills/jitter/utils/wait.ts +133 -0
- package/skills/lintcn/SKILL.md +873 -0
- package/skills/new-skill/SKILL.md +211 -0
- package/skills/npm-package/SKILL.md +239 -0
- package/skills/playwriter/SKILL.md +35 -0
- package/skills/proxyman/SKILL.md +215 -0
- package/skills/security-review/SKILL.md +208 -0
- package/skills/simplify/SKILL.md +58 -0
- package/skills/spiceflow/SKILL.md +14 -0
- package/skills/termcast/SKILL.md +945 -0
- package/skills/tuistory/SKILL.md +250 -0
- package/skills/usecomputer/SKILL.md +264 -0
- package/skills/x-articles/SKILL.md +554 -0
- package/skills/zele/SKILL.md +112 -0
- package/skills/zustand-centralized-state/SKILL.md +1004 -0
- package/src/agent-model.e2e.test.ts +976 -0
- package/src/ai-tool-to-genai.test.ts +296 -0
- package/src/ai-tool-to-genai.ts +283 -0
- package/src/ai-tool.ts +39 -0
- package/src/anthropic-auth-plugin.test.ts +159 -0
- package/src/anthropic-auth-plugin.ts +861 -0
- package/src/anthropic-auth-state.ts +282 -0
- package/src/bin.ts +111 -0
- package/src/channel-management.ts +334 -0
- package/src/cli-parsing.test.ts +195 -0
- package/src/cli-send-thread.e2e.test.ts +464 -0
- package/src/cli.ts +4581 -0
- package/src/commands/abort.ts +89 -0
- package/src/commands/action-buttons.ts +364 -0
- package/src/commands/add-project.ts +149 -0
- package/src/commands/agent.ts +473 -0
- package/src/commands/ask-question.ts +390 -0
- package/src/commands/btw.ts +164 -0
- package/src/commands/compact.ts +157 -0
- package/src/commands/context-usage.ts +199 -0
- package/src/commands/create-new-project.ts +190 -0
- package/src/commands/diff.ts +91 -0
- package/src/commands/file-upload.ts +389 -0
- package/src/commands/fork.ts +321 -0
- package/src/commands/gemini-apikey.ts +104 -0
- package/src/commands/login.ts +1173 -0
- package/src/commands/mcp.ts +307 -0
- package/src/commands/memory-snapshot.ts +30 -0
- package/src/commands/mention-mode.ts +68 -0
- package/src/commands/merge-worktree.ts +223 -0
- package/src/commands/model-variant.ts +483 -0
- package/src/commands/model.ts +1053 -0
- package/src/commands/new-worktree.ts +510 -0
- package/src/commands/paginated-select.ts +81 -0
- package/src/commands/permissions.ts +397 -0
- package/src/commands/queue.ts +271 -0
- package/src/commands/remove-project.ts +155 -0
- package/src/commands/restart-opencode-server.ts +162 -0
- package/src/commands/resume.ts +230 -0
- package/src/commands/run-command.ts +123 -0
- package/src/commands/screenshare.test.ts +30 -0
- package/src/commands/screenshare.ts +366 -0
- package/src/commands/session-id.ts +109 -0
- package/src/commands/session.ts +227 -0
- package/src/commands/share.ts +106 -0
- package/src/commands/tasks.ts +293 -0
- package/src/commands/types.ts +25 -0
- package/src/commands/undo-redo.ts +386 -0
- package/src/commands/unset-model.ts +173 -0
- package/src/commands/upgrade.ts +52 -0
- package/src/commands/user-command.ts +198 -0
- package/src/commands/verbosity.ts +173 -0
- package/src/commands/worktree-settings.ts +70 -0
- package/src/commands/worktrees.ts +552 -0
- package/src/condense-memory.ts +36 -0
- package/src/config.ts +111 -0
- package/src/context-awareness-plugin.test.ts +142 -0
- package/src/context-awareness-plugin.ts +510 -0
- package/src/critique-utils.ts +139 -0
- package/src/database.ts +1876 -0
- package/src/db.test.ts +162 -0
- package/src/db.ts +286 -0
- package/src/debounce-timeout.ts +43 -0
- package/src/debounced-process-flush.ts +104 -0
- package/src/discord-bot.ts +1330 -0
- package/src/discord-command-registration.ts +693 -0
- package/src/discord-urls.ts +88 -0
- package/src/discord-utils.test.ts +153 -0
- package/src/discord-utils.ts +800 -0
- package/src/errors.ts +201 -0
- package/src/escape-backticks.test.ts +469 -0
- package/src/event-stream-real-capture.e2e.test.ts +692 -0
- package/src/eventsource-parser.test.ts +351 -0
- package/src/exec-async.ts +35 -0
- package/src/external-opencode-sync.ts +685 -0
- package/src/format-tables.test.ts +335 -0
- package/src/format-tables.ts +445 -0
- package/src/forum-sync/config.ts +92 -0
- package/src/forum-sync/discord-operations.ts +241 -0
- package/src/forum-sync/index.ts +9 -0
- package/src/forum-sync/markdown.ts +172 -0
- package/src/forum-sync/sync-to-discord.ts +595 -0
- package/src/forum-sync/sync-to-files.ts +294 -0
- package/src/forum-sync/types.ts +175 -0
- package/src/forum-sync/watchers.ts +454 -0
- package/src/gateway-proxy-reconnect.e2e.test.ts +523 -0
- package/src/gateway-proxy.e2e.test.ts +640 -0
- package/src/genai-worker-wrapper.ts +164 -0
- package/src/genai-worker.ts +386 -0
- package/src/genai.ts +321 -0
- package/src/generated/browser.ts +114 -0
- package/src/generated/client.ts +138 -0
- package/src/generated/commonInputTypes.ts +736 -0
- package/src/generated/enums.ts +88 -0
- package/src/generated/internal/class.ts +384 -0
- package/src/generated/internal/prismaNamespace.ts +2386 -0
- package/src/generated/internal/prismaNamespaceBrowser.ts +326 -0
- package/src/generated/models/bot_api_keys.ts +1288 -0
- package/src/generated/models/bot_tokens.ts +1656 -0
- package/src/generated/models/channel_agents.ts +1256 -0
- package/src/generated/models/channel_directories.ts +1859 -0
- package/src/generated/models/channel_mention_mode.ts +1300 -0
- package/src/generated/models/channel_models.ts +1288 -0
- package/src/generated/models/channel_verbosity.ts +1228 -0
- package/src/generated/models/channel_worktrees.ts +1300 -0
- package/src/generated/models/forum_sync_configs.ts +1452 -0
- package/src/generated/models/global_models.ts +1288 -0
- package/src/generated/models/ipc_requests.ts +1485 -0
- package/src/generated/models/part_messages.ts +1302 -0
- package/src/generated/models/scheduled_tasks.ts +2320 -0
- package/src/generated/models/session_agents.ts +1086 -0
- package/src/generated/models/session_events.ts +1439 -0
- package/src/generated/models/session_models.ts +1114 -0
- package/src/generated/models/session_start_sources.ts +1408 -0
- package/src/generated/models/thread_sessions.ts +1781 -0
- package/src/generated/models/thread_worktrees.ts +1356 -0
- package/src/generated/models.ts +30 -0
- package/src/heap-monitor.ts +152 -0
- package/src/hrana-server.test.ts +434 -0
- package/src/hrana-server.ts +314 -0
- package/src/html-actions.test.ts +87 -0
- package/src/html-actions.ts +174 -0
- package/src/html-components.test.ts +38 -0
- package/src/html-components.ts +181 -0
- package/src/image-optimizer-plugin.ts +194 -0
- package/src/image-utils.ts +149 -0
- package/src/interaction-handler.ts +576 -0
- package/src/ipc-polling.ts +326 -0
- package/src/ipc-tools-plugin.ts +236 -0
- package/src/kimaki-digital-twin.e2e.test.ts +199 -0
- package/src/kimaki-opencode-plugin-loading.e2e.test.ts +109 -0
- package/src/kimaki-opencode-plugin.test.ts +108 -0
- package/src/kimaki-opencode-plugin.ts +18 -0
- package/src/limit-heading-depth.test.ts +116 -0
- package/src/limit-heading-depth.ts +26 -0
- package/src/logger.ts +208 -0
- package/src/markdown.test.ts +308 -0
- package/src/markdown.ts +410 -0
- package/src/message-finish-field.e2e.test.ts +192 -0
- package/src/message-formatting.test.ts +81 -0
- package/src/message-formatting.ts +533 -0
- package/src/message-preprocessing.ts +455 -0
- package/src/onboarding-tutorial.ts +176 -0
- package/src/onboarding-welcome.ts +49 -0
- package/src/openai-realtime.ts +358 -0
- package/src/opencode-command-detection.test.ts +307 -0
- package/src/opencode-command-detection.ts +76 -0
- package/src/opencode-command.test.ts +70 -0
- package/src/opencode-command.ts +188 -0
- package/src/opencode-interrupt-plugin.test.ts +677 -0
- package/src/opencode-interrupt-plugin.ts +477 -0
- package/src/opencode.ts +1110 -0
- package/src/otto/branding.ts +23 -0
- package/src/otto/index.ts +22 -0
- package/src/parse-permission-rules.test.ts +127 -0
- package/src/patch-text-parser.ts +107 -0
- package/src/plugin-logger.ts +68 -0
- package/src/privacy-sanitizer.ts +142 -0
- package/src/queue-advanced-abort.e2e.test.ts +382 -0
- package/src/queue-advanced-action-buttons.e2e.test.ts +268 -0
- package/src/queue-advanced-e2e-setup.ts +873 -0
- package/src/queue-advanced-footer.e2e.test.ts +576 -0
- package/src/queue-advanced-model-switch.e2e.test.ts +383 -0
- package/src/queue-advanced-permissions-typing.e2e.test.ts +245 -0
- package/src/queue-advanced-question.e2e.test.ts +316 -0
- package/src/queue-advanced-typing-interrupt.e2e.test.ts +146 -0
- package/src/queue-advanced-typing.e2e.test.ts +199 -0
- package/src/queue-drain-after-interactive-ui.e2e.test.ts +151 -0
- package/src/queue-interrupt-drain.e2e.test.ts +166 -0
- package/src/queue-question-select-drain.e2e.test.ts +152 -0
- package/src/runtime-idle-sweeper.ts +76 -0
- package/src/runtime-lifecycle.e2e.test.ts +641 -0
- package/src/schema.sql +173 -0
- package/src/sentry.ts +26 -0
- package/src/session-handler/agent-utils.ts +97 -0
- package/src/session-handler/event-stream-fixtures/real-session-action-buttons.jsonl +45 -0
- package/src/session-handler/event-stream-fixtures/real-session-footer-suppressed-on-pre-idle-interrupt.jsonl +40 -0
- package/src/session-handler/event-stream-fixtures/real-session-permission-external-file.jsonl +23 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-normal.jsonl +22 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-three-parallel-sleeps.jsonl +277 -0
- package/src/session-handler/event-stream-fixtures/real-session-task-user-interruption.jsonl +46 -0
- package/src/session-handler/event-stream-fixtures/session-abort-after-idle-race.jsonl +21 -0
- package/src/session-handler/event-stream-fixtures/session-concurrent-messages-serialized.jsonl +56 -0
- package/src/session-handler/event-stream-fixtures/session-explicit-abort.jsonl +44 -0
- package/src/session-handler/event-stream-fixtures/session-normal-completion.jsonl +29 -0
- package/src/session-handler/event-stream-fixtures/session-tool-call-noisy-stream.jsonl +29 -0
- package/src/session-handler/event-stream-fixtures/session-two-completions-same-session.jsonl +50 -0
- package/src/session-handler/event-stream-fixtures/session-user-interruption.jsonl +59 -0
- package/src/session-handler/event-stream-fixtures/session-voice-queued-followup.jsonl +52 -0
- package/src/session-handler/event-stream-state.test.ts +645 -0
- package/src/session-handler/event-stream-state.ts +608 -0
- package/src/session-handler/model-utils.ts +183 -0
- package/src/session-handler/opencode-session-event-log.ts +130 -0
- package/src/session-handler/thread-runtime-state.ts +212 -0
- package/src/session-handler/thread-session-runtime.ts +4281 -0
- package/src/session-handler.ts +15 -0
- package/src/session-search.test.ts +50 -0
- package/src/session-search.ts +148 -0
- package/src/session-title-rename.test.ts +112 -0
- package/src/startup-service.ts +200 -0
- package/src/startup-time.e2e.test.ts +373 -0
- package/src/store.ts +122 -0
- package/src/system-message.test.ts +612 -0
- package/src/system-message.ts +723 -0
- package/src/task-runner.ts +421 -0
- package/src/task-schedule.test.ts +84 -0
- package/src/task-schedule.ts +311 -0
- package/src/test-utils.ts +435 -0
- package/src/thinking-utils.ts +61 -0
- package/src/thread-message-queue.e2e.test.ts +1219 -0
- package/src/tools.ts +430 -0
- package/src/undici.d.ts +12 -0
- package/src/undo-redo.e2e.test.ts +209 -0
- package/src/unnest-code-blocks.test.ts +713 -0
- package/src/unnest-code-blocks.ts +185 -0
- package/src/upgrade.ts +127 -0
- package/src/utils.ts +212 -0
- package/src/voice-attachment.ts +51 -0
- package/src/voice-handler.ts +908 -0
- package/src/voice-message.e2e.test.ts +1255 -0
- package/src/voice.test.ts +281 -0
- package/src/voice.ts +627 -0
- package/src/wait-session.ts +147 -0
- package/src/websockify.ts +101 -0
- package/src/worker-types.ts +64 -0
- package/src/worktree-lifecycle.e2e.test.ts +391 -0
- package/src/worktree-utils.ts +4 -0
- package/src/worktrees.test.ts +223 -0
- package/src/worktrees.ts +1294 -0
- package/src/xml.test.ts +38 -0
- package/src/xml.ts +121 -0
|
@@ -0,0 +1,1356 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `thread_worktrees` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums.js"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model thread_worktrees
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type thread_worktreesModel = runtime.Types.Result.DefaultSelection<Prisma.$thread_worktreesPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateThread_worktrees = {
|
|
22
|
+
_count: Thread_worktreesCountAggregateOutputType | null
|
|
23
|
+
_min: Thread_worktreesMinAggregateOutputType | null
|
|
24
|
+
_max: Thread_worktreesMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Thread_worktreesMinAggregateOutputType = {
|
|
28
|
+
thread_id: string | null
|
|
29
|
+
worktree_name: string | null
|
|
30
|
+
worktree_directory: string | null
|
|
31
|
+
project_directory: string | null
|
|
32
|
+
status: $Enums.WorktreeStatus | null
|
|
33
|
+
error_message: string | null
|
|
34
|
+
created_at: Date | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Thread_worktreesMaxAggregateOutputType = {
|
|
38
|
+
thread_id: string | null
|
|
39
|
+
worktree_name: string | null
|
|
40
|
+
worktree_directory: string | null
|
|
41
|
+
project_directory: string | null
|
|
42
|
+
status: $Enums.WorktreeStatus | null
|
|
43
|
+
error_message: string | null
|
|
44
|
+
created_at: Date | null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Thread_worktreesCountAggregateOutputType = {
|
|
48
|
+
thread_id: number
|
|
49
|
+
worktree_name: number
|
|
50
|
+
worktree_directory: number
|
|
51
|
+
project_directory: number
|
|
52
|
+
status: number
|
|
53
|
+
error_message: number
|
|
54
|
+
created_at: number
|
|
55
|
+
_all: number
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
export type Thread_worktreesMinAggregateInputType = {
|
|
60
|
+
thread_id?: true
|
|
61
|
+
worktree_name?: true
|
|
62
|
+
worktree_directory?: true
|
|
63
|
+
project_directory?: true
|
|
64
|
+
status?: true
|
|
65
|
+
error_message?: true
|
|
66
|
+
created_at?: true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Thread_worktreesMaxAggregateInputType = {
|
|
70
|
+
thread_id?: true
|
|
71
|
+
worktree_name?: true
|
|
72
|
+
worktree_directory?: true
|
|
73
|
+
project_directory?: true
|
|
74
|
+
status?: true
|
|
75
|
+
error_message?: true
|
|
76
|
+
created_at?: true
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type Thread_worktreesCountAggregateInputType = {
|
|
80
|
+
thread_id?: true
|
|
81
|
+
worktree_name?: true
|
|
82
|
+
worktree_directory?: true
|
|
83
|
+
project_directory?: true
|
|
84
|
+
status?: true
|
|
85
|
+
error_message?: true
|
|
86
|
+
created_at?: true
|
|
87
|
+
_all?: true
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type Thread_worktreesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
91
|
+
/**
|
|
92
|
+
* Filter which thread_worktrees to aggregate.
|
|
93
|
+
*/
|
|
94
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
97
|
+
*
|
|
98
|
+
* Determine the order of thread_worktrees to fetch.
|
|
99
|
+
*/
|
|
100
|
+
orderBy?: Prisma.thread_worktreesOrderByWithRelationInput | Prisma.thread_worktreesOrderByWithRelationInput[]
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
103
|
+
*
|
|
104
|
+
* Sets the start position
|
|
105
|
+
*/
|
|
106
|
+
cursor?: Prisma.thread_worktreesWhereUniqueInput
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
109
|
+
*
|
|
110
|
+
* Take `±n` thread_worktrees from the position of the cursor.
|
|
111
|
+
*/
|
|
112
|
+
take?: number
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
115
|
+
*
|
|
116
|
+
* Skip the first `n` thread_worktrees.
|
|
117
|
+
*/
|
|
118
|
+
skip?: number
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Count returned thread_worktrees
|
|
123
|
+
**/
|
|
124
|
+
_count?: true | Thread_worktreesCountAggregateInputType
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
127
|
+
*
|
|
128
|
+
* Select which fields to find the minimum value
|
|
129
|
+
**/
|
|
130
|
+
_min?: Thread_worktreesMinAggregateInputType
|
|
131
|
+
/**
|
|
132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
133
|
+
*
|
|
134
|
+
* Select which fields to find the maximum value
|
|
135
|
+
**/
|
|
136
|
+
_max?: Thread_worktreesMaxAggregateInputType
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetThread_worktreesAggregateType<T extends Thread_worktreesAggregateArgs> = {
|
|
140
|
+
[P in keyof T & keyof AggregateThread_worktrees]: P extends '_count' | 'count'
|
|
141
|
+
? T[P] extends true
|
|
142
|
+
? number
|
|
143
|
+
: Prisma.GetScalarType<T[P], AggregateThread_worktrees[P]>
|
|
144
|
+
: Prisma.GetScalarType<T[P], AggregateThread_worktrees[P]>
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
export type thread_worktreesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
151
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
152
|
+
orderBy?: Prisma.thread_worktreesOrderByWithAggregationInput | Prisma.thread_worktreesOrderByWithAggregationInput[]
|
|
153
|
+
by: Prisma.Thread_worktreesScalarFieldEnum[] | Prisma.Thread_worktreesScalarFieldEnum
|
|
154
|
+
having?: Prisma.thread_worktreesScalarWhereWithAggregatesInput
|
|
155
|
+
take?: number
|
|
156
|
+
skip?: number
|
|
157
|
+
_count?: Thread_worktreesCountAggregateInputType | true
|
|
158
|
+
_min?: Thread_worktreesMinAggregateInputType
|
|
159
|
+
_max?: Thread_worktreesMaxAggregateInputType
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export type Thread_worktreesGroupByOutputType = {
|
|
163
|
+
thread_id: string
|
|
164
|
+
worktree_name: string
|
|
165
|
+
worktree_directory: string | null
|
|
166
|
+
project_directory: string
|
|
167
|
+
status: $Enums.WorktreeStatus
|
|
168
|
+
error_message: string | null
|
|
169
|
+
created_at: Date | null
|
|
170
|
+
_count: Thread_worktreesCountAggregateOutputType | null
|
|
171
|
+
_min: Thread_worktreesMinAggregateOutputType | null
|
|
172
|
+
_max: Thread_worktreesMaxAggregateOutputType | null
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type GetThread_worktreesGroupByPayload<T extends thread_worktreesGroupByArgs> = Prisma.PrismaPromise<
|
|
176
|
+
Array<
|
|
177
|
+
Prisma.PickEnumerable<Thread_worktreesGroupByOutputType, T['by']> &
|
|
178
|
+
{
|
|
179
|
+
[P in ((keyof T) & (keyof Thread_worktreesGroupByOutputType))]: P extends '_count'
|
|
180
|
+
? T[P] extends boolean
|
|
181
|
+
? number
|
|
182
|
+
: Prisma.GetScalarType<T[P], Thread_worktreesGroupByOutputType[P]>
|
|
183
|
+
: Prisma.GetScalarType<T[P], Thread_worktreesGroupByOutputType[P]>
|
|
184
|
+
}
|
|
185
|
+
>
|
|
186
|
+
>
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
export type thread_worktreesWhereInput = {
|
|
191
|
+
AND?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
|
|
192
|
+
OR?: Prisma.thread_worktreesWhereInput[]
|
|
193
|
+
NOT?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
|
|
194
|
+
thread_id?: Prisma.StringFilter<"thread_worktrees"> | string
|
|
195
|
+
worktree_name?: Prisma.StringFilter<"thread_worktrees"> | string
|
|
196
|
+
worktree_directory?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
|
|
197
|
+
project_directory?: Prisma.StringFilter<"thread_worktrees"> | string
|
|
198
|
+
status?: Prisma.EnumWorktreeStatusFilter<"thread_worktrees"> | $Enums.WorktreeStatus
|
|
199
|
+
error_message?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
|
|
200
|
+
created_at?: Prisma.DateTimeNullableFilter<"thread_worktrees"> | Date | string | null
|
|
201
|
+
thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type thread_worktreesOrderByWithRelationInput = {
|
|
205
|
+
thread_id?: Prisma.SortOrder
|
|
206
|
+
worktree_name?: Prisma.SortOrder
|
|
207
|
+
worktree_directory?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
208
|
+
project_directory?: Prisma.SortOrder
|
|
209
|
+
status?: Prisma.SortOrder
|
|
210
|
+
error_message?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
211
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
212
|
+
thread?: Prisma.thread_sessionsOrderByWithRelationInput
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type thread_worktreesWhereUniqueInput = Prisma.AtLeast<{
|
|
216
|
+
thread_id?: string
|
|
217
|
+
AND?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
|
|
218
|
+
OR?: Prisma.thread_worktreesWhereInput[]
|
|
219
|
+
NOT?: Prisma.thread_worktreesWhereInput | Prisma.thread_worktreesWhereInput[]
|
|
220
|
+
worktree_name?: Prisma.StringFilter<"thread_worktrees"> | string
|
|
221
|
+
worktree_directory?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
|
|
222
|
+
project_directory?: Prisma.StringFilter<"thread_worktrees"> | string
|
|
223
|
+
status?: Prisma.EnumWorktreeStatusFilter<"thread_worktrees"> | $Enums.WorktreeStatus
|
|
224
|
+
error_message?: Prisma.StringNullableFilter<"thread_worktrees"> | string | null
|
|
225
|
+
created_at?: Prisma.DateTimeNullableFilter<"thread_worktrees"> | Date | string | null
|
|
226
|
+
thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
|
|
227
|
+
}, "thread_id">
|
|
228
|
+
|
|
229
|
+
export type thread_worktreesOrderByWithAggregationInput = {
|
|
230
|
+
thread_id?: Prisma.SortOrder
|
|
231
|
+
worktree_name?: Prisma.SortOrder
|
|
232
|
+
worktree_directory?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
233
|
+
project_directory?: Prisma.SortOrder
|
|
234
|
+
status?: Prisma.SortOrder
|
|
235
|
+
error_message?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
236
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
237
|
+
_count?: Prisma.thread_worktreesCountOrderByAggregateInput
|
|
238
|
+
_max?: Prisma.thread_worktreesMaxOrderByAggregateInput
|
|
239
|
+
_min?: Prisma.thread_worktreesMinOrderByAggregateInput
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type thread_worktreesScalarWhereWithAggregatesInput = {
|
|
243
|
+
AND?: Prisma.thread_worktreesScalarWhereWithAggregatesInput | Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
|
|
244
|
+
OR?: Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
|
|
245
|
+
NOT?: Prisma.thread_worktreesScalarWhereWithAggregatesInput | Prisma.thread_worktreesScalarWhereWithAggregatesInput[]
|
|
246
|
+
thread_id?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
|
|
247
|
+
worktree_name?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
|
|
248
|
+
worktree_directory?: Prisma.StringNullableWithAggregatesFilter<"thread_worktrees"> | string | null
|
|
249
|
+
project_directory?: Prisma.StringWithAggregatesFilter<"thread_worktrees"> | string
|
|
250
|
+
status?: Prisma.EnumWorktreeStatusWithAggregatesFilter<"thread_worktrees"> | $Enums.WorktreeStatus
|
|
251
|
+
error_message?: Prisma.StringNullableWithAggregatesFilter<"thread_worktrees"> | string | null
|
|
252
|
+
created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"thread_worktrees"> | Date | string | null
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type thread_worktreesCreateInput = {
|
|
256
|
+
worktree_name: string
|
|
257
|
+
worktree_directory?: string | null
|
|
258
|
+
project_directory: string
|
|
259
|
+
status?: $Enums.WorktreeStatus
|
|
260
|
+
error_message?: string | null
|
|
261
|
+
created_at?: Date | string | null
|
|
262
|
+
thread: Prisma.thread_sessionsCreateNestedOneWithoutThread_worktreeInput
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type thread_worktreesUncheckedCreateInput = {
|
|
266
|
+
thread_id: string
|
|
267
|
+
worktree_name: string
|
|
268
|
+
worktree_directory?: string | null
|
|
269
|
+
project_directory: string
|
|
270
|
+
status?: $Enums.WorktreeStatus
|
|
271
|
+
error_message?: string | null
|
|
272
|
+
created_at?: Date | string | null
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type thread_worktreesUpdateInput = {
|
|
276
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
277
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
278
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
279
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
280
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
281
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
282
|
+
thread?: Prisma.thread_sessionsUpdateOneRequiredWithoutThread_worktreeNestedInput
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type thread_worktreesUncheckedUpdateInput = {
|
|
286
|
+
thread_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
287
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
288
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
289
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
291
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
292
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type thread_worktreesCreateManyInput = {
|
|
296
|
+
thread_id: string
|
|
297
|
+
worktree_name: string
|
|
298
|
+
worktree_directory?: string | null
|
|
299
|
+
project_directory: string
|
|
300
|
+
status?: $Enums.WorktreeStatus
|
|
301
|
+
error_message?: string | null
|
|
302
|
+
created_at?: Date | string | null
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type thread_worktreesUpdateManyMutationInput = {
|
|
306
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
307
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
308
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
309
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
310
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
311
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type thread_worktreesUncheckedUpdateManyInput = {
|
|
315
|
+
thread_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
316
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
317
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
318
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
319
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
320
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
321
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type Thread_worktreesNullableScalarRelationFilter = {
|
|
325
|
+
is?: Prisma.thread_worktreesWhereInput | null
|
|
326
|
+
isNot?: Prisma.thread_worktreesWhereInput | null
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type thread_worktreesCountOrderByAggregateInput = {
|
|
330
|
+
thread_id?: Prisma.SortOrder
|
|
331
|
+
worktree_name?: Prisma.SortOrder
|
|
332
|
+
worktree_directory?: Prisma.SortOrder
|
|
333
|
+
project_directory?: Prisma.SortOrder
|
|
334
|
+
status?: Prisma.SortOrder
|
|
335
|
+
error_message?: Prisma.SortOrder
|
|
336
|
+
created_at?: Prisma.SortOrder
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type thread_worktreesMaxOrderByAggregateInput = {
|
|
340
|
+
thread_id?: Prisma.SortOrder
|
|
341
|
+
worktree_name?: Prisma.SortOrder
|
|
342
|
+
worktree_directory?: Prisma.SortOrder
|
|
343
|
+
project_directory?: Prisma.SortOrder
|
|
344
|
+
status?: Prisma.SortOrder
|
|
345
|
+
error_message?: Prisma.SortOrder
|
|
346
|
+
created_at?: Prisma.SortOrder
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type thread_worktreesMinOrderByAggregateInput = {
|
|
350
|
+
thread_id?: Prisma.SortOrder
|
|
351
|
+
worktree_name?: Prisma.SortOrder
|
|
352
|
+
worktree_directory?: Prisma.SortOrder
|
|
353
|
+
project_directory?: Prisma.SortOrder
|
|
354
|
+
status?: Prisma.SortOrder
|
|
355
|
+
error_message?: Prisma.SortOrder
|
|
356
|
+
created_at?: Prisma.SortOrder
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type thread_worktreesCreateNestedOneWithoutThreadInput = {
|
|
360
|
+
create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
361
|
+
connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
|
|
362
|
+
connect?: Prisma.thread_worktreesWhereUniqueInput
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type thread_worktreesUncheckedCreateNestedOneWithoutThreadInput = {
|
|
366
|
+
create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
367
|
+
connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
|
|
368
|
+
connect?: Prisma.thread_worktreesWhereUniqueInput
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type thread_worktreesUpdateOneWithoutThreadNestedInput = {
|
|
372
|
+
create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
373
|
+
connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
|
|
374
|
+
upsert?: Prisma.thread_worktreesUpsertWithoutThreadInput
|
|
375
|
+
disconnect?: Prisma.thread_worktreesWhereInput | boolean
|
|
376
|
+
delete?: Prisma.thread_worktreesWhereInput | boolean
|
|
377
|
+
connect?: Prisma.thread_worktreesWhereUniqueInput
|
|
378
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.thread_worktreesUpdateToOneWithWhereWithoutThreadInput, Prisma.thread_worktreesUpdateWithoutThreadInput>, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput = {
|
|
382
|
+
create?: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
383
|
+
connectOrCreate?: Prisma.thread_worktreesCreateOrConnectWithoutThreadInput
|
|
384
|
+
upsert?: Prisma.thread_worktreesUpsertWithoutThreadInput
|
|
385
|
+
disconnect?: Prisma.thread_worktreesWhereInput | boolean
|
|
386
|
+
delete?: Prisma.thread_worktreesWhereInput | boolean
|
|
387
|
+
connect?: Prisma.thread_worktreesWhereUniqueInput
|
|
388
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.thread_worktreesUpdateToOneWithWhereWithoutThreadInput, Prisma.thread_worktreesUpdateWithoutThreadInput>, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export type EnumWorktreeStatusFieldUpdateOperationsInput = {
|
|
392
|
+
set?: $Enums.WorktreeStatus
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type thread_worktreesCreateWithoutThreadInput = {
|
|
396
|
+
worktree_name: string
|
|
397
|
+
worktree_directory?: string | null
|
|
398
|
+
project_directory: string
|
|
399
|
+
status?: $Enums.WorktreeStatus
|
|
400
|
+
error_message?: string | null
|
|
401
|
+
created_at?: Date | string | null
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type thread_worktreesUncheckedCreateWithoutThreadInput = {
|
|
405
|
+
worktree_name: string
|
|
406
|
+
worktree_directory?: string | null
|
|
407
|
+
project_directory: string
|
|
408
|
+
status?: $Enums.WorktreeStatus
|
|
409
|
+
error_message?: string | null
|
|
410
|
+
created_at?: Date | string | null
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export type thread_worktreesCreateOrConnectWithoutThreadInput = {
|
|
414
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
415
|
+
create: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export type thread_worktreesUpsertWithoutThreadInput = {
|
|
419
|
+
update: Prisma.XOR<Prisma.thread_worktreesUpdateWithoutThreadInput, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
|
|
420
|
+
create: Prisma.XOR<Prisma.thread_worktreesCreateWithoutThreadInput, Prisma.thread_worktreesUncheckedCreateWithoutThreadInput>
|
|
421
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export type thread_worktreesUpdateToOneWithWhereWithoutThreadInput = {
|
|
425
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
426
|
+
data: Prisma.XOR<Prisma.thread_worktreesUpdateWithoutThreadInput, Prisma.thread_worktreesUncheckedUpdateWithoutThreadInput>
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export type thread_worktreesUpdateWithoutThreadInput = {
|
|
430
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
431
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
432
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
433
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
434
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
435
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export type thread_worktreesUncheckedUpdateWithoutThreadInput = {
|
|
439
|
+
worktree_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
440
|
+
worktree_directory?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
441
|
+
project_directory?: Prisma.StringFieldUpdateOperationsInput | string
|
|
442
|
+
status?: Prisma.EnumWorktreeStatusFieldUpdateOperationsInput | $Enums.WorktreeStatus
|
|
443
|
+
error_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
444
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
export type thread_worktreesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
450
|
+
thread_id?: boolean
|
|
451
|
+
worktree_name?: boolean
|
|
452
|
+
worktree_directory?: boolean
|
|
453
|
+
project_directory?: boolean
|
|
454
|
+
status?: boolean
|
|
455
|
+
error_message?: boolean
|
|
456
|
+
created_at?: boolean
|
|
457
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
458
|
+
}, ExtArgs["result"]["thread_worktrees"]>
|
|
459
|
+
|
|
460
|
+
export type thread_worktreesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
461
|
+
thread_id?: boolean
|
|
462
|
+
worktree_name?: boolean
|
|
463
|
+
worktree_directory?: boolean
|
|
464
|
+
project_directory?: boolean
|
|
465
|
+
status?: boolean
|
|
466
|
+
error_message?: boolean
|
|
467
|
+
created_at?: boolean
|
|
468
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
469
|
+
}, ExtArgs["result"]["thread_worktrees"]>
|
|
470
|
+
|
|
471
|
+
export type thread_worktreesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
472
|
+
thread_id?: boolean
|
|
473
|
+
worktree_name?: boolean
|
|
474
|
+
worktree_directory?: boolean
|
|
475
|
+
project_directory?: boolean
|
|
476
|
+
status?: boolean
|
|
477
|
+
error_message?: boolean
|
|
478
|
+
created_at?: boolean
|
|
479
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
480
|
+
}, ExtArgs["result"]["thread_worktrees"]>
|
|
481
|
+
|
|
482
|
+
export type thread_worktreesSelectScalar = {
|
|
483
|
+
thread_id?: boolean
|
|
484
|
+
worktree_name?: boolean
|
|
485
|
+
worktree_directory?: boolean
|
|
486
|
+
project_directory?: boolean
|
|
487
|
+
status?: boolean
|
|
488
|
+
error_message?: boolean
|
|
489
|
+
created_at?: boolean
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export type thread_worktreesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"thread_id" | "worktree_name" | "worktree_directory" | "project_directory" | "status" | "error_message" | "created_at", ExtArgs["result"]["thread_worktrees"]>
|
|
493
|
+
export type thread_worktreesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
494
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
495
|
+
}
|
|
496
|
+
export type thread_worktreesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
497
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
498
|
+
}
|
|
499
|
+
export type thread_worktreesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
500
|
+
thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export type $thread_worktreesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
504
|
+
name: "thread_worktrees"
|
|
505
|
+
objects: {
|
|
506
|
+
thread: Prisma.$thread_sessionsPayload<ExtArgs>
|
|
507
|
+
}
|
|
508
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
509
|
+
thread_id: string
|
|
510
|
+
worktree_name: string
|
|
511
|
+
worktree_directory: string | null
|
|
512
|
+
project_directory: string
|
|
513
|
+
status: $Enums.WorktreeStatus
|
|
514
|
+
error_message: string | null
|
|
515
|
+
created_at: Date | null
|
|
516
|
+
}, ExtArgs["result"]["thread_worktrees"]>
|
|
517
|
+
composites: {}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export type thread_worktreesGetPayload<S extends boolean | null | undefined | thread_worktreesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload, S>
|
|
521
|
+
|
|
522
|
+
export type thread_worktreesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
523
|
+
Omit<thread_worktreesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
524
|
+
select?: Thread_worktreesCountAggregateInputType | true
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export interface thread_worktreesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
528
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['thread_worktrees'], meta: { name: 'thread_worktrees' } }
|
|
529
|
+
/**
|
|
530
|
+
* Find zero or one Thread_worktrees that matches the filter.
|
|
531
|
+
* @param {thread_worktreesFindUniqueArgs} args - Arguments to find a Thread_worktrees
|
|
532
|
+
* @example
|
|
533
|
+
* // Get one Thread_worktrees
|
|
534
|
+
* const thread_worktrees = await prisma.thread_worktrees.findUnique({
|
|
535
|
+
* where: {
|
|
536
|
+
* // ... provide filter here
|
|
537
|
+
* }
|
|
538
|
+
* })
|
|
539
|
+
*/
|
|
540
|
+
findUnique<T extends thread_worktreesFindUniqueArgs>(args: Prisma.SelectSubset<T, thread_worktreesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Find one Thread_worktrees that matches the filter or throw an error with `error.code='P2025'`
|
|
544
|
+
* if no matches were found.
|
|
545
|
+
* @param {thread_worktreesFindUniqueOrThrowArgs} args - Arguments to find a Thread_worktrees
|
|
546
|
+
* @example
|
|
547
|
+
* // Get one Thread_worktrees
|
|
548
|
+
* const thread_worktrees = await prisma.thread_worktrees.findUniqueOrThrow({
|
|
549
|
+
* where: {
|
|
550
|
+
* // ... provide filter here
|
|
551
|
+
* }
|
|
552
|
+
* })
|
|
553
|
+
*/
|
|
554
|
+
findUniqueOrThrow<T extends thread_worktreesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, thread_worktreesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Find the first Thread_worktrees that matches the filter.
|
|
558
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
559
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
560
|
+
* @param {thread_worktreesFindFirstArgs} args - Arguments to find a Thread_worktrees
|
|
561
|
+
* @example
|
|
562
|
+
* // Get one Thread_worktrees
|
|
563
|
+
* const thread_worktrees = await prisma.thread_worktrees.findFirst({
|
|
564
|
+
* where: {
|
|
565
|
+
* // ... provide filter here
|
|
566
|
+
* }
|
|
567
|
+
* })
|
|
568
|
+
*/
|
|
569
|
+
findFirst<T extends thread_worktreesFindFirstArgs>(args?: Prisma.SelectSubset<T, thread_worktreesFindFirstArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Find the first Thread_worktrees that matches the filter or
|
|
573
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
574
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
575
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
576
|
+
* @param {thread_worktreesFindFirstOrThrowArgs} args - Arguments to find a Thread_worktrees
|
|
577
|
+
* @example
|
|
578
|
+
* // Get one Thread_worktrees
|
|
579
|
+
* const thread_worktrees = await prisma.thread_worktrees.findFirstOrThrow({
|
|
580
|
+
* where: {
|
|
581
|
+
* // ... provide filter here
|
|
582
|
+
* }
|
|
583
|
+
* })
|
|
584
|
+
*/
|
|
585
|
+
findFirstOrThrow<T extends thread_worktreesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, thread_worktreesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Find zero or more Thread_worktrees that matches the filter.
|
|
589
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
590
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
591
|
+
* @param {thread_worktreesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
592
|
+
* @example
|
|
593
|
+
* // Get all Thread_worktrees
|
|
594
|
+
* const thread_worktrees = await prisma.thread_worktrees.findMany()
|
|
595
|
+
*
|
|
596
|
+
* // Get first 10 Thread_worktrees
|
|
597
|
+
* const thread_worktrees = await prisma.thread_worktrees.findMany({ take: 10 })
|
|
598
|
+
*
|
|
599
|
+
* // Only select the `thread_id`
|
|
600
|
+
* const thread_worktreesWithThread_idOnly = await prisma.thread_worktrees.findMany({ select: { thread_id: true } })
|
|
601
|
+
*
|
|
602
|
+
*/
|
|
603
|
+
findMany<T extends thread_worktreesFindManyArgs>(args?: Prisma.SelectSubset<T, thread_worktreesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Create a Thread_worktrees.
|
|
607
|
+
* @param {thread_worktreesCreateArgs} args - Arguments to create a Thread_worktrees.
|
|
608
|
+
* @example
|
|
609
|
+
* // Create one Thread_worktrees
|
|
610
|
+
* const Thread_worktrees = await prisma.thread_worktrees.create({
|
|
611
|
+
* data: {
|
|
612
|
+
* // ... data to create a Thread_worktrees
|
|
613
|
+
* }
|
|
614
|
+
* })
|
|
615
|
+
*
|
|
616
|
+
*/
|
|
617
|
+
create<T extends thread_worktreesCreateArgs>(args: Prisma.SelectSubset<T, thread_worktreesCreateArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Create many Thread_worktrees.
|
|
621
|
+
* @param {thread_worktreesCreateManyArgs} args - Arguments to create many Thread_worktrees.
|
|
622
|
+
* @example
|
|
623
|
+
* // Create many Thread_worktrees
|
|
624
|
+
* const thread_worktrees = await prisma.thread_worktrees.createMany({
|
|
625
|
+
* data: [
|
|
626
|
+
* // ... provide data here
|
|
627
|
+
* ]
|
|
628
|
+
* })
|
|
629
|
+
*
|
|
630
|
+
*/
|
|
631
|
+
createMany<T extends thread_worktreesCreateManyArgs>(args?: Prisma.SelectSubset<T, thread_worktreesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Create many Thread_worktrees and returns the data saved in the database.
|
|
635
|
+
* @param {thread_worktreesCreateManyAndReturnArgs} args - Arguments to create many Thread_worktrees.
|
|
636
|
+
* @example
|
|
637
|
+
* // Create many Thread_worktrees
|
|
638
|
+
* const thread_worktrees = await prisma.thread_worktrees.createManyAndReturn({
|
|
639
|
+
* data: [
|
|
640
|
+
* // ... provide data here
|
|
641
|
+
* ]
|
|
642
|
+
* })
|
|
643
|
+
*
|
|
644
|
+
* // Create many Thread_worktrees and only return the `thread_id`
|
|
645
|
+
* const thread_worktreesWithThread_idOnly = await prisma.thread_worktrees.createManyAndReturn({
|
|
646
|
+
* select: { thread_id: true },
|
|
647
|
+
* data: [
|
|
648
|
+
* // ... provide data here
|
|
649
|
+
* ]
|
|
650
|
+
* })
|
|
651
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
652
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
653
|
+
*
|
|
654
|
+
*/
|
|
655
|
+
createManyAndReturn<T extends thread_worktreesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, thread_worktreesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Delete a Thread_worktrees.
|
|
659
|
+
* @param {thread_worktreesDeleteArgs} args - Arguments to delete one Thread_worktrees.
|
|
660
|
+
* @example
|
|
661
|
+
* // Delete one Thread_worktrees
|
|
662
|
+
* const Thread_worktrees = await prisma.thread_worktrees.delete({
|
|
663
|
+
* where: {
|
|
664
|
+
* // ... filter to delete one Thread_worktrees
|
|
665
|
+
* }
|
|
666
|
+
* })
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
669
|
+
delete<T extends thread_worktreesDeleteArgs>(args: Prisma.SelectSubset<T, thread_worktreesDeleteArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Update one Thread_worktrees.
|
|
673
|
+
* @param {thread_worktreesUpdateArgs} args - Arguments to update one Thread_worktrees.
|
|
674
|
+
* @example
|
|
675
|
+
* // Update one Thread_worktrees
|
|
676
|
+
* const thread_worktrees = await prisma.thread_worktrees.update({
|
|
677
|
+
* where: {
|
|
678
|
+
* // ... provide filter here
|
|
679
|
+
* },
|
|
680
|
+
* data: {
|
|
681
|
+
* // ... provide data here
|
|
682
|
+
* }
|
|
683
|
+
* })
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
686
|
+
update<T extends thread_worktreesUpdateArgs>(args: Prisma.SelectSubset<T, thread_worktreesUpdateArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Delete zero or more Thread_worktrees.
|
|
690
|
+
* @param {thread_worktreesDeleteManyArgs} args - Arguments to filter Thread_worktrees to delete.
|
|
691
|
+
* @example
|
|
692
|
+
* // Delete a few Thread_worktrees
|
|
693
|
+
* const { count } = await prisma.thread_worktrees.deleteMany({
|
|
694
|
+
* where: {
|
|
695
|
+
* // ... provide filter here
|
|
696
|
+
* }
|
|
697
|
+
* })
|
|
698
|
+
*
|
|
699
|
+
*/
|
|
700
|
+
deleteMany<T extends thread_worktreesDeleteManyArgs>(args?: Prisma.SelectSubset<T, thread_worktreesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Update zero or more Thread_worktrees.
|
|
704
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
705
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
706
|
+
* @param {thread_worktreesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
707
|
+
* @example
|
|
708
|
+
* // Update many Thread_worktrees
|
|
709
|
+
* const thread_worktrees = await prisma.thread_worktrees.updateMany({
|
|
710
|
+
* where: {
|
|
711
|
+
* // ... provide filter here
|
|
712
|
+
* },
|
|
713
|
+
* data: {
|
|
714
|
+
* // ... provide data here
|
|
715
|
+
* }
|
|
716
|
+
* })
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
719
|
+
updateMany<T extends thread_worktreesUpdateManyArgs>(args: Prisma.SelectSubset<T, thread_worktreesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Update zero or more Thread_worktrees and returns the data updated in the database.
|
|
723
|
+
* @param {thread_worktreesUpdateManyAndReturnArgs} args - Arguments to update many Thread_worktrees.
|
|
724
|
+
* @example
|
|
725
|
+
* // Update many Thread_worktrees
|
|
726
|
+
* const thread_worktrees = await prisma.thread_worktrees.updateManyAndReturn({
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... provide filter here
|
|
729
|
+
* },
|
|
730
|
+
* data: [
|
|
731
|
+
* // ... provide data here
|
|
732
|
+
* ]
|
|
733
|
+
* })
|
|
734
|
+
*
|
|
735
|
+
* // Update zero or more Thread_worktrees and only return the `thread_id`
|
|
736
|
+
* const thread_worktreesWithThread_idOnly = await prisma.thread_worktrees.updateManyAndReturn({
|
|
737
|
+
* select: { thread_id: true },
|
|
738
|
+
* where: {
|
|
739
|
+
* // ... provide filter here
|
|
740
|
+
* },
|
|
741
|
+
* data: [
|
|
742
|
+
* // ... provide data here
|
|
743
|
+
* ]
|
|
744
|
+
* })
|
|
745
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
746
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
updateManyAndReturn<T extends thread_worktreesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, thread_worktreesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Create or update one Thread_worktrees.
|
|
753
|
+
* @param {thread_worktreesUpsertArgs} args - Arguments to update or create a Thread_worktrees.
|
|
754
|
+
* @example
|
|
755
|
+
* // Update or create a Thread_worktrees
|
|
756
|
+
* const thread_worktrees = await prisma.thread_worktrees.upsert({
|
|
757
|
+
* create: {
|
|
758
|
+
* // ... data to create a Thread_worktrees
|
|
759
|
+
* },
|
|
760
|
+
* update: {
|
|
761
|
+
* // ... in case it already exists, update
|
|
762
|
+
* },
|
|
763
|
+
* where: {
|
|
764
|
+
* // ... the filter for the Thread_worktrees we want to update
|
|
765
|
+
* }
|
|
766
|
+
* })
|
|
767
|
+
*/
|
|
768
|
+
upsert<T extends thread_worktreesUpsertArgs>(args: Prisma.SelectSubset<T, thread_worktreesUpsertArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Count the number of Thread_worktrees.
|
|
773
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
774
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
775
|
+
* @param {thread_worktreesCountArgs} args - Arguments to filter Thread_worktrees to count.
|
|
776
|
+
* @example
|
|
777
|
+
* // Count the number of Thread_worktrees
|
|
778
|
+
* const count = await prisma.thread_worktrees.count({
|
|
779
|
+
* where: {
|
|
780
|
+
* // ... the filter for the Thread_worktrees we want to count
|
|
781
|
+
* }
|
|
782
|
+
* })
|
|
783
|
+
**/
|
|
784
|
+
count<T extends thread_worktreesCountArgs>(
|
|
785
|
+
args?: Prisma.Subset<T, thread_worktreesCountArgs>,
|
|
786
|
+
): Prisma.PrismaPromise<
|
|
787
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
788
|
+
? T['select'] extends true
|
|
789
|
+
? number
|
|
790
|
+
: Prisma.GetScalarType<T['select'], Thread_worktreesCountAggregateOutputType>
|
|
791
|
+
: number
|
|
792
|
+
>
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Allows you to perform aggregations operations on a Thread_worktrees.
|
|
796
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
797
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
798
|
+
* @param {Thread_worktreesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
799
|
+
* @example
|
|
800
|
+
* // Ordered by age ascending
|
|
801
|
+
* // Where email contains prisma.io
|
|
802
|
+
* // Limited to the 10 users
|
|
803
|
+
* const aggregations = await prisma.user.aggregate({
|
|
804
|
+
* _avg: {
|
|
805
|
+
* age: true,
|
|
806
|
+
* },
|
|
807
|
+
* where: {
|
|
808
|
+
* email: {
|
|
809
|
+
* contains: "prisma.io",
|
|
810
|
+
* },
|
|
811
|
+
* },
|
|
812
|
+
* orderBy: {
|
|
813
|
+
* age: "asc",
|
|
814
|
+
* },
|
|
815
|
+
* take: 10,
|
|
816
|
+
* })
|
|
817
|
+
**/
|
|
818
|
+
aggregate<T extends Thread_worktreesAggregateArgs>(args: Prisma.Subset<T, Thread_worktreesAggregateArgs>): Prisma.PrismaPromise<GetThread_worktreesAggregateType<T>>
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Group by Thread_worktrees.
|
|
822
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
823
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
824
|
+
* @param {thread_worktreesGroupByArgs} args - Group by arguments.
|
|
825
|
+
* @example
|
|
826
|
+
* // Group by city, order by createdAt, get count
|
|
827
|
+
* const result = await prisma.user.groupBy({
|
|
828
|
+
* by: ['city', 'createdAt'],
|
|
829
|
+
* orderBy: {
|
|
830
|
+
* createdAt: true
|
|
831
|
+
* },
|
|
832
|
+
* _count: {
|
|
833
|
+
* _all: true
|
|
834
|
+
* },
|
|
835
|
+
* })
|
|
836
|
+
*
|
|
837
|
+
**/
|
|
838
|
+
groupBy<
|
|
839
|
+
T extends thread_worktreesGroupByArgs,
|
|
840
|
+
HasSelectOrTake extends Prisma.Or<
|
|
841
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
842
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
843
|
+
>,
|
|
844
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
845
|
+
? { orderBy: thread_worktreesGroupByArgs['orderBy'] }
|
|
846
|
+
: { orderBy?: thread_worktreesGroupByArgs['orderBy'] },
|
|
847
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
848
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
849
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
850
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
851
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
852
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
853
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
854
|
+
? `Error: "by" must not be empty.`
|
|
855
|
+
: HavingValid extends Prisma.False
|
|
856
|
+
? {
|
|
857
|
+
[P in HavingFields]: P extends ByFields
|
|
858
|
+
? never
|
|
859
|
+
: P extends string
|
|
860
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
861
|
+
: [
|
|
862
|
+
Error,
|
|
863
|
+
'Field ',
|
|
864
|
+
P,
|
|
865
|
+
` in "having" needs to be provided in "by"`,
|
|
866
|
+
]
|
|
867
|
+
}[HavingFields]
|
|
868
|
+
: 'take' extends Prisma.Keys<T>
|
|
869
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
870
|
+
? ByValid extends Prisma.True
|
|
871
|
+
? {}
|
|
872
|
+
: {
|
|
873
|
+
[P in OrderFields]: P extends ByFields
|
|
874
|
+
? never
|
|
875
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
876
|
+
}[OrderFields]
|
|
877
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
878
|
+
: 'skip' extends Prisma.Keys<T>
|
|
879
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
880
|
+
? ByValid extends Prisma.True
|
|
881
|
+
? {}
|
|
882
|
+
: {
|
|
883
|
+
[P in OrderFields]: P extends ByFields
|
|
884
|
+
? never
|
|
885
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
886
|
+
}[OrderFields]
|
|
887
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
888
|
+
: ByValid extends Prisma.True
|
|
889
|
+
? {}
|
|
890
|
+
: {
|
|
891
|
+
[P in OrderFields]: P extends ByFields
|
|
892
|
+
? never
|
|
893
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
894
|
+
}[OrderFields]
|
|
895
|
+
>(args: Prisma.SubsetIntersection<T, thread_worktreesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetThread_worktreesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
896
|
+
/**
|
|
897
|
+
* Fields of the thread_worktrees model
|
|
898
|
+
*/
|
|
899
|
+
readonly fields: thread_worktreesFieldRefs;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* The delegate class that acts as a "Promise-like" for thread_worktrees.
|
|
904
|
+
* Why is this prefixed with `Prisma__`?
|
|
905
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
906
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
907
|
+
*/
|
|
908
|
+
export interface Prisma__thread_worktreesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
909
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
910
|
+
thread<T extends Prisma.thread_sessionsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessionsDefaultArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
911
|
+
/**
|
|
912
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
913
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
914
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
915
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
916
|
+
*/
|
|
917
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
918
|
+
/**
|
|
919
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
920
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
921
|
+
* @returns A Promise for the completion of the callback.
|
|
922
|
+
*/
|
|
923
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
924
|
+
/**
|
|
925
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
926
|
+
* resolved value cannot be modified from the callback.
|
|
927
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
928
|
+
* @returns A Promise for the completion of the callback.
|
|
929
|
+
*/
|
|
930
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Fields of the thread_worktrees model
|
|
938
|
+
*/
|
|
939
|
+
export interface thread_worktreesFieldRefs {
|
|
940
|
+
readonly thread_id: Prisma.FieldRef<"thread_worktrees", 'String'>
|
|
941
|
+
readonly worktree_name: Prisma.FieldRef<"thread_worktrees", 'String'>
|
|
942
|
+
readonly worktree_directory: Prisma.FieldRef<"thread_worktrees", 'String'>
|
|
943
|
+
readonly project_directory: Prisma.FieldRef<"thread_worktrees", 'String'>
|
|
944
|
+
readonly status: Prisma.FieldRef<"thread_worktrees", 'WorktreeStatus'>
|
|
945
|
+
readonly error_message: Prisma.FieldRef<"thread_worktrees", 'String'>
|
|
946
|
+
readonly created_at: Prisma.FieldRef<"thread_worktrees", 'DateTime'>
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
// Custom InputTypes
|
|
951
|
+
/**
|
|
952
|
+
* thread_worktrees findUnique
|
|
953
|
+
*/
|
|
954
|
+
export type thread_worktreesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
955
|
+
/**
|
|
956
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
957
|
+
*/
|
|
958
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
959
|
+
/**
|
|
960
|
+
* Omit specific fields from the thread_worktrees
|
|
961
|
+
*/
|
|
962
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
963
|
+
/**
|
|
964
|
+
* Choose, which related nodes to fetch as well
|
|
965
|
+
*/
|
|
966
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
967
|
+
/**
|
|
968
|
+
* Filter, which thread_worktrees to fetch.
|
|
969
|
+
*/
|
|
970
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* thread_worktrees findUniqueOrThrow
|
|
975
|
+
*/
|
|
976
|
+
export type thread_worktreesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
977
|
+
/**
|
|
978
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
979
|
+
*/
|
|
980
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
981
|
+
/**
|
|
982
|
+
* Omit specific fields from the thread_worktrees
|
|
983
|
+
*/
|
|
984
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
985
|
+
/**
|
|
986
|
+
* Choose, which related nodes to fetch as well
|
|
987
|
+
*/
|
|
988
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
989
|
+
/**
|
|
990
|
+
* Filter, which thread_worktrees to fetch.
|
|
991
|
+
*/
|
|
992
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* thread_worktrees findFirst
|
|
997
|
+
*/
|
|
998
|
+
export type thread_worktreesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
999
|
+
/**
|
|
1000
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1001
|
+
*/
|
|
1002
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1003
|
+
/**
|
|
1004
|
+
* Omit specific fields from the thread_worktrees
|
|
1005
|
+
*/
|
|
1006
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1007
|
+
/**
|
|
1008
|
+
* Choose, which related nodes to fetch as well
|
|
1009
|
+
*/
|
|
1010
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1011
|
+
/**
|
|
1012
|
+
* Filter, which thread_worktrees to fetch.
|
|
1013
|
+
*/
|
|
1014
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1015
|
+
/**
|
|
1016
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1017
|
+
*
|
|
1018
|
+
* Determine the order of thread_worktrees to fetch.
|
|
1019
|
+
*/
|
|
1020
|
+
orderBy?: Prisma.thread_worktreesOrderByWithRelationInput | Prisma.thread_worktreesOrderByWithRelationInput[]
|
|
1021
|
+
/**
|
|
1022
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1023
|
+
*
|
|
1024
|
+
* Sets the position for searching for thread_worktrees.
|
|
1025
|
+
*/
|
|
1026
|
+
cursor?: Prisma.thread_worktreesWhereUniqueInput
|
|
1027
|
+
/**
|
|
1028
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1029
|
+
*
|
|
1030
|
+
* Take `±n` thread_worktrees from the position of the cursor.
|
|
1031
|
+
*/
|
|
1032
|
+
take?: number
|
|
1033
|
+
/**
|
|
1034
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1035
|
+
*
|
|
1036
|
+
* Skip the first `n` thread_worktrees.
|
|
1037
|
+
*/
|
|
1038
|
+
skip?: number
|
|
1039
|
+
/**
|
|
1040
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1041
|
+
*
|
|
1042
|
+
* Filter by unique combinations of thread_worktrees.
|
|
1043
|
+
*/
|
|
1044
|
+
distinct?: Prisma.Thread_worktreesScalarFieldEnum | Prisma.Thread_worktreesScalarFieldEnum[]
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* thread_worktrees findFirstOrThrow
|
|
1049
|
+
*/
|
|
1050
|
+
export type thread_worktreesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1053
|
+
*/
|
|
1054
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1055
|
+
/**
|
|
1056
|
+
* Omit specific fields from the thread_worktrees
|
|
1057
|
+
*/
|
|
1058
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1059
|
+
/**
|
|
1060
|
+
* Choose, which related nodes to fetch as well
|
|
1061
|
+
*/
|
|
1062
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1063
|
+
/**
|
|
1064
|
+
* Filter, which thread_worktrees to fetch.
|
|
1065
|
+
*/
|
|
1066
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1067
|
+
/**
|
|
1068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1069
|
+
*
|
|
1070
|
+
* Determine the order of thread_worktrees to fetch.
|
|
1071
|
+
*/
|
|
1072
|
+
orderBy?: Prisma.thread_worktreesOrderByWithRelationInput | Prisma.thread_worktreesOrderByWithRelationInput[]
|
|
1073
|
+
/**
|
|
1074
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1075
|
+
*
|
|
1076
|
+
* Sets the position for searching for thread_worktrees.
|
|
1077
|
+
*/
|
|
1078
|
+
cursor?: Prisma.thread_worktreesWhereUniqueInput
|
|
1079
|
+
/**
|
|
1080
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1081
|
+
*
|
|
1082
|
+
* Take `±n` thread_worktrees from the position of the cursor.
|
|
1083
|
+
*/
|
|
1084
|
+
take?: number
|
|
1085
|
+
/**
|
|
1086
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1087
|
+
*
|
|
1088
|
+
* Skip the first `n` thread_worktrees.
|
|
1089
|
+
*/
|
|
1090
|
+
skip?: number
|
|
1091
|
+
/**
|
|
1092
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1093
|
+
*
|
|
1094
|
+
* Filter by unique combinations of thread_worktrees.
|
|
1095
|
+
*/
|
|
1096
|
+
distinct?: Prisma.Thread_worktreesScalarFieldEnum | Prisma.Thread_worktreesScalarFieldEnum[]
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* thread_worktrees findMany
|
|
1101
|
+
*/
|
|
1102
|
+
export type thread_worktreesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1103
|
+
/**
|
|
1104
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1105
|
+
*/
|
|
1106
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1107
|
+
/**
|
|
1108
|
+
* Omit specific fields from the thread_worktrees
|
|
1109
|
+
*/
|
|
1110
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1111
|
+
/**
|
|
1112
|
+
* Choose, which related nodes to fetch as well
|
|
1113
|
+
*/
|
|
1114
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1115
|
+
/**
|
|
1116
|
+
* Filter, which thread_worktrees to fetch.
|
|
1117
|
+
*/
|
|
1118
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Determine the order of thread_worktrees to fetch.
|
|
1123
|
+
*/
|
|
1124
|
+
orderBy?: Prisma.thread_worktreesOrderByWithRelationInput | Prisma.thread_worktreesOrderByWithRelationInput[]
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Sets the position for listing thread_worktrees.
|
|
1129
|
+
*/
|
|
1130
|
+
cursor?: Prisma.thread_worktreesWhereUniqueInput
|
|
1131
|
+
/**
|
|
1132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1133
|
+
*
|
|
1134
|
+
* Take `±n` thread_worktrees from the position of the cursor.
|
|
1135
|
+
*/
|
|
1136
|
+
take?: number
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Skip the first `n` thread_worktrees.
|
|
1141
|
+
*/
|
|
1142
|
+
skip?: number
|
|
1143
|
+
distinct?: Prisma.Thread_worktreesScalarFieldEnum | Prisma.Thread_worktreesScalarFieldEnum[]
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* thread_worktrees create
|
|
1148
|
+
*/
|
|
1149
|
+
export type thread_worktreesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1150
|
+
/**
|
|
1151
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1152
|
+
*/
|
|
1153
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1154
|
+
/**
|
|
1155
|
+
* Omit specific fields from the thread_worktrees
|
|
1156
|
+
*/
|
|
1157
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1158
|
+
/**
|
|
1159
|
+
* Choose, which related nodes to fetch as well
|
|
1160
|
+
*/
|
|
1161
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1162
|
+
/**
|
|
1163
|
+
* The data needed to create a thread_worktrees.
|
|
1164
|
+
*/
|
|
1165
|
+
data: Prisma.XOR<Prisma.thread_worktreesCreateInput, Prisma.thread_worktreesUncheckedCreateInput>
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* thread_worktrees createMany
|
|
1170
|
+
*/
|
|
1171
|
+
export type thread_worktreesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1172
|
+
/**
|
|
1173
|
+
* The data used to create many thread_worktrees.
|
|
1174
|
+
*/
|
|
1175
|
+
data: Prisma.thread_worktreesCreateManyInput | Prisma.thread_worktreesCreateManyInput[]
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* thread_worktrees createManyAndReturn
|
|
1180
|
+
*/
|
|
1181
|
+
export type thread_worktreesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1182
|
+
/**
|
|
1183
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1184
|
+
*/
|
|
1185
|
+
select?: Prisma.thread_worktreesSelectCreateManyAndReturn<ExtArgs> | null
|
|
1186
|
+
/**
|
|
1187
|
+
* Omit specific fields from the thread_worktrees
|
|
1188
|
+
*/
|
|
1189
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1190
|
+
/**
|
|
1191
|
+
* The data used to create many thread_worktrees.
|
|
1192
|
+
*/
|
|
1193
|
+
data: Prisma.thread_worktreesCreateManyInput | Prisma.thread_worktreesCreateManyInput[]
|
|
1194
|
+
/**
|
|
1195
|
+
* Choose, which related nodes to fetch as well
|
|
1196
|
+
*/
|
|
1197
|
+
include?: Prisma.thread_worktreesIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* thread_worktrees update
|
|
1202
|
+
*/
|
|
1203
|
+
export type thread_worktreesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1204
|
+
/**
|
|
1205
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1206
|
+
*/
|
|
1207
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1208
|
+
/**
|
|
1209
|
+
* Omit specific fields from the thread_worktrees
|
|
1210
|
+
*/
|
|
1211
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1212
|
+
/**
|
|
1213
|
+
* Choose, which related nodes to fetch as well
|
|
1214
|
+
*/
|
|
1215
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1216
|
+
/**
|
|
1217
|
+
* The data needed to update a thread_worktrees.
|
|
1218
|
+
*/
|
|
1219
|
+
data: Prisma.XOR<Prisma.thread_worktreesUpdateInput, Prisma.thread_worktreesUncheckedUpdateInput>
|
|
1220
|
+
/**
|
|
1221
|
+
* Choose, which thread_worktrees to update.
|
|
1222
|
+
*/
|
|
1223
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* thread_worktrees updateMany
|
|
1228
|
+
*/
|
|
1229
|
+
export type thread_worktreesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1230
|
+
/**
|
|
1231
|
+
* The data used to update thread_worktrees.
|
|
1232
|
+
*/
|
|
1233
|
+
data: Prisma.XOR<Prisma.thread_worktreesUpdateManyMutationInput, Prisma.thread_worktreesUncheckedUpdateManyInput>
|
|
1234
|
+
/**
|
|
1235
|
+
* Filter which thread_worktrees to update
|
|
1236
|
+
*/
|
|
1237
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1238
|
+
/**
|
|
1239
|
+
* Limit how many thread_worktrees to update.
|
|
1240
|
+
*/
|
|
1241
|
+
limit?: number
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* thread_worktrees updateManyAndReturn
|
|
1246
|
+
*/
|
|
1247
|
+
export type thread_worktreesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1248
|
+
/**
|
|
1249
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1250
|
+
*/
|
|
1251
|
+
select?: Prisma.thread_worktreesSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1252
|
+
/**
|
|
1253
|
+
* Omit specific fields from the thread_worktrees
|
|
1254
|
+
*/
|
|
1255
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1256
|
+
/**
|
|
1257
|
+
* The data used to update thread_worktrees.
|
|
1258
|
+
*/
|
|
1259
|
+
data: Prisma.XOR<Prisma.thread_worktreesUpdateManyMutationInput, Prisma.thread_worktreesUncheckedUpdateManyInput>
|
|
1260
|
+
/**
|
|
1261
|
+
* Filter which thread_worktrees to update
|
|
1262
|
+
*/
|
|
1263
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1264
|
+
/**
|
|
1265
|
+
* Limit how many thread_worktrees to update.
|
|
1266
|
+
*/
|
|
1267
|
+
limit?: number
|
|
1268
|
+
/**
|
|
1269
|
+
* Choose, which related nodes to fetch as well
|
|
1270
|
+
*/
|
|
1271
|
+
include?: Prisma.thread_worktreesIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* thread_worktrees upsert
|
|
1276
|
+
*/
|
|
1277
|
+
export type thread_worktreesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1278
|
+
/**
|
|
1279
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1280
|
+
*/
|
|
1281
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1282
|
+
/**
|
|
1283
|
+
* Omit specific fields from the thread_worktrees
|
|
1284
|
+
*/
|
|
1285
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1286
|
+
/**
|
|
1287
|
+
* Choose, which related nodes to fetch as well
|
|
1288
|
+
*/
|
|
1289
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1290
|
+
/**
|
|
1291
|
+
* The filter to search for the thread_worktrees to update in case it exists.
|
|
1292
|
+
*/
|
|
1293
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
1294
|
+
/**
|
|
1295
|
+
* In case the thread_worktrees found by the `where` argument doesn't exist, create a new thread_worktrees with this data.
|
|
1296
|
+
*/
|
|
1297
|
+
create: Prisma.XOR<Prisma.thread_worktreesCreateInput, Prisma.thread_worktreesUncheckedCreateInput>
|
|
1298
|
+
/**
|
|
1299
|
+
* In case the thread_worktrees was found with the provided `where` argument, update it with this data.
|
|
1300
|
+
*/
|
|
1301
|
+
update: Prisma.XOR<Prisma.thread_worktreesUpdateInput, Prisma.thread_worktreesUncheckedUpdateInput>
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* thread_worktrees delete
|
|
1306
|
+
*/
|
|
1307
|
+
export type thread_worktreesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1308
|
+
/**
|
|
1309
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1310
|
+
*/
|
|
1311
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1312
|
+
/**
|
|
1313
|
+
* Omit specific fields from the thread_worktrees
|
|
1314
|
+
*/
|
|
1315
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1316
|
+
/**
|
|
1317
|
+
* Choose, which related nodes to fetch as well
|
|
1318
|
+
*/
|
|
1319
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1320
|
+
/**
|
|
1321
|
+
* Filter which thread_worktrees to delete.
|
|
1322
|
+
*/
|
|
1323
|
+
where: Prisma.thread_worktreesWhereUniqueInput
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* thread_worktrees deleteMany
|
|
1328
|
+
*/
|
|
1329
|
+
export type thread_worktreesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1330
|
+
/**
|
|
1331
|
+
* Filter which thread_worktrees to delete
|
|
1332
|
+
*/
|
|
1333
|
+
where?: Prisma.thread_worktreesWhereInput
|
|
1334
|
+
/**
|
|
1335
|
+
* Limit how many thread_worktrees to delete.
|
|
1336
|
+
*/
|
|
1337
|
+
limit?: number
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* thread_worktrees without action
|
|
1342
|
+
*/
|
|
1343
|
+
export type thread_worktreesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Select specific fields to fetch from the thread_worktrees
|
|
1346
|
+
*/
|
|
1347
|
+
select?: Prisma.thread_worktreesSelect<ExtArgs> | null
|
|
1348
|
+
/**
|
|
1349
|
+
* Omit specific fields from the thread_worktrees
|
|
1350
|
+
*/
|
|
1351
|
+
omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
|
|
1352
|
+
/**
|
|
1353
|
+
* Choose, which related nodes to fetch as well
|
|
1354
|
+
*/
|
|
1355
|
+
include?: Prisma.thread_worktreesInclude<ExtArgs> | null
|
|
1356
|
+
}
|