chat-js 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +4 -4
- package/dist/index.js +2625 -2666
- package/package.json +8 -3
- package/templates/chat-app/.env.example +2 -8
- package/templates/chat-app/agent/agent.ts +8 -38
- package/templates/chat-app/agent/channels/eve.ts +37 -17
- package/templates/chat-app/agent/hooks/activity.ts +2 -1
- package/templates/chat-app/agent/hooks/billing.ts +11 -8
- package/templates/chat-app/agent/hooks/conversation.ts +2 -2
- package/templates/chat-app/agent/hooks/tool-selection.ts +7 -1
- package/templates/chat-app/agent/instructions/chat.ts +14 -10
- package/templates/chat-app/agent/sandbox.ts +2 -4
- package/templates/chat-app/agent/tools/installed.ts +19 -1
- package/templates/chat-app/app/(chat)/layout.tsx +10 -8
- package/templates/chat-app/app/api/agent-conversations/[id]/route.test.ts +1 -1
- package/templates/chat-app/app/api/agent-conversations/[id]/route.ts +1 -5
- package/templates/chat-app/app/api/agent-conversations/route.test.ts +31 -2
- package/templates/chat-app/app/api/agent-conversations/route.ts +10 -1
- package/templates/chat-app/app/api/agent-workspaces/[id]/route.test.ts +5 -31
- package/templates/chat-app/app/api/agent-workspaces/[id]/route.ts +2 -10
- package/templates/chat-app/app/api/eve/[...path]/route.test.ts +2 -2
- package/templates/chat-app/app/apple-icon.png +0 -0
- package/templates/chat-app/app/favicon.ico +0 -0
- package/templates/chat-app/app/icon.svg +1 -3
- package/templates/chat-app/app/opengraph-image.alt.txt +1 -0
- package/templates/chat-app/app/opengraph-image.png +0 -0
- package/templates/chat-app/chat.config.ts +0 -18
- package/templates/chat-app/chatjs/core/chat/compose.ts +35 -11
- package/templates/chat-app/chatjs/core/chat/contracts.ts +6 -0
- package/templates/chat-app/chatjs/core/installation/contracts.ts +1 -4
- package/templates/chat-app/chatjs/core/session/contracts.ts +19 -4
- package/templates/chat-app/chatjs/generated/composer-tools.ts +5 -12
- package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +11 -5
- package/templates/chat-app/chatjs/generated/installed-config.ts +5 -13
- package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +1 -2
- package/templates/chat-app/chatjs/generated/installed-layout.ts +1 -7
- package/templates/chat-app/chatjs/generated/installed-tools.ts +3 -3
- package/templates/chat-app/chatjs/generated/installed.ts +3 -3
- package/templates/chat-app/chatjs/generated/providers.ts +5 -11
- package/templates/chat-app/chatjs/generated/tool-availability.ts +3 -7
- package/templates/chat-app/chatjs/generated/tool-definitions.ts +3 -4
- package/templates/chat-app/chatjs/generated/tool-requirements.ts +40 -0
- package/templates/chat-app/chatjs/generated/tools.ts +7 -28
- package/templates/chat-app/chatjs/generated/ui.ts +3 -13
- package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +0 -2
- package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +0 -1
- package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +2 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +70 -34
- package/templates/chat-app/chatjs/plugins/image-viewer/chatjs.json +17 -0
- package/templates/chat-app/chatjs/plugins/image-viewer/client-plugin.ts +9 -0
- package/templates/chat-app/{components → chatjs/plugins/image-viewer}/image-modal.tsx +3 -87
- package/templates/chat-app/chatjs/plugins/image-viewer/viewer-action.tsx +47 -0
- package/templates/chat-app/chatjs/plugins/mcp/composer.tsx +1 -6
- package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +22 -2
- package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-project-item.tsx +48 -33
- package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +41 -22
- package/templates/chat-app/chatjs/plugins/search/chat.ts +4 -0
- package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +9 -3
- package/templates/chat-app/chatjs/plugins/search/search-hook.ts +5 -6
- package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/search/search-text.ts +21 -15
- package/templates/chat-app/chatjs/plugins/search/sidebar-item.tsx +7 -1
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +13 -3
- package/templates/chat-app/chatjs/plugins/sharing/ui/shared-page.tsx +23 -39
- package/templates/chat-app/chatjs/plugins/sharing/ui/transcript-messages.tsx +2 -2
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/chatjs.json +18 -0
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/load.ts +120 -0
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/preview.tsx +72 -0
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/viewer-action.tsx +97 -0
- package/templates/chat-app/chatjs/plugins/video-viewer/chatjs.json +16 -0
- package/templates/chat-app/chatjs/plugins/video-viewer/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/video-viewer/viewer-action.tsx +64 -0
- package/templates/chat-app/chatjs/tools/_shared/lib/define-tool-renderer.test.ts +16 -22
- package/templates/chat-app/chatjs/tools/attach-workspace-file/attach-conversation-file.ts +34 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/attach.ts +106 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/chatjs.json +19 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/import.ts +71 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/renderer.tsx +19 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/schemas.ts +51 -0
- package/templates/chat-app/chatjs/tools/attach-workspace-file/tool.ts +62 -0
- package/templates/chat-app/chatjs/tools/deep-research/chatjs.json +18 -4
- package/templates/chat-app/chatjs/tools/deep-research/progress-panel.tsx +2 -31
- package/templates/chat-app/chatjs/tools/deep-research/renderer.tsx +7 -19
- package/templates/chat-app/chatjs/tools/deep-research/schemas.ts +1 -46
- package/templates/chat-app/chatjs/tools/deep-research/task.tsx +0 -41
- package/templates/chat-app/chatjs/tools/deep-research/tasks.tsx +2 -7
- package/templates/chat-app/chatjs/tools/generate-image/chatjs.json +4 -1
- package/templates/chat-app/chatjs/tools/generate-image/image-generation.ts +0 -1
- package/templates/chat-app/chatjs/tools/generate-image/renderer.tsx +39 -51
- package/templates/chat-app/chatjs/tools/generate-video/chatjs.json +4 -1
- package/templates/chat-app/chatjs/tools/generate-video/renderer.tsx +22 -11
- package/templates/chat-app/components/ai-elements/response.tsx +1 -1
- package/templates/chat-app/components/app-sidebar.tsx +26 -86
- package/templates/chat-app/components/artifact-actions.tsx +19 -0
- package/templates/chat-app/components/artifact-download-action.tsx +59 -0
- package/templates/chat-app/components/attachment-card.tsx +15 -9
- package/templates/chat-app/components/chat/chat-account.tsx +189 -0
- package/templates/chat-app/components/{controlled-chat-composer.tsx → chat/chat-composer.tsx} +6 -6
- package/templates/chat-app/components/chat/chat-conversation-screen.tsx +75 -0
- package/templates/chat-app/components/chat/chat-conversation.tsx +35 -0
- package/templates/chat-app/components/chat/chat-header.tsx +52 -0
- package/templates/chat-app/components/chat/chat-message-editor.tsx +24 -0
- package/templates/chat-app/components/chat/chat-navigation.tsx +11 -0
- package/templates/chat-app/components/chat/chat-sidebar.tsx +134 -0
- package/templates/chat-app/components/{eve/eve-messages.tsx → chat/chat-transcript.tsx} +7 -28
- package/templates/chat-app/components/chat/chat-workspace.tsx +19 -0
- package/templates/chat-app/components/chat/connected-chat-sidebar.tsx +8 -0
- package/templates/chat-app/components/chat-header-view.tsx +14 -13
- package/templates/chat-app/components/chat-slots.tsx +13 -3
- package/templates/chat-app/components/composer/active-tool.tsx +3 -1
- package/templates/chat-app/components/composer/composer-menu.tsx +4 -2
- package/templates/chat-app/components/composer/control.ts +4 -1
- package/templates/chat-app/components/composer/prompt-form.tsx +1 -1
- package/templates/chat-app/components/composer/tool-availability.tsx +8 -0
- package/templates/chat-app/components/composer/tool-controls.tsx +17 -50
- package/templates/chat-app/components/composer/tool-display.ts +3 -2
- package/templates/chat-app/components/eve/bash-output.tsx +33 -0
- package/templates/chat-app/components/eve/eve-chat-page.tsx +5 -26
- package/templates/chat-app/components/eve/eve-composer.tsx +11 -8
- package/templates/chat-app/components/eve/eve-conversation.tsx +237 -309
- package/templates/chat-app/components/eve/eve-deletion-provider.tsx +1 -1
- package/templates/chat-app/components/eve/eve-history-list.tsx +7 -3
- package/templates/chat-app/components/eve/eve-message-part.tsx +28 -22
- package/templates/chat-app/components/eve/eve-pending-input.tsx +54 -1
- package/templates/chat-app/components/eve/eve-runtime-provider.tsx +0 -5
- package/templates/chat-app/components/eve/new-conversation-view.tsx +7 -3
- package/templates/chat-app/components/file-artifact-card.tsx +37 -0
- package/templates/chat-app/components/header-actions.tsx +9 -2
- package/templates/chat-app/components/image-actions.tsx +93 -0
- package/templates/chat-app/components/internal-link.tsx +15 -2
- package/templates/chat-app/components/keyboard-shortcuts.tsx +8 -2
- package/templates/chat-app/components/part/tool-activity.tsx +1 -1
- package/templates/chat-app/components/part/tool-data.tsx +1 -1
- package/templates/chat-app/components/sidebar-user-nav.tsx +35 -198
- package/templates/chat-app/components/video-player.tsx +43 -0
- package/templates/chat-app/composer-controls.ts +0 -4
- package/templates/chat-app/docs/guest-sessions.md +1 -1
- package/templates/chat-app/instrumentation.ts +2 -6
- package/templates/chat-app/integrations/chat/models.ts +10 -0
- package/templates/chat-app/integrations/tools/catalog.ts +0 -3
- package/templates/chat-app/lib/ai/app-models.test.ts +13 -1
- package/templates/chat-app/lib/ai/app-models.ts +13 -3
- package/templates/chat-app/lib/ai/tool-context.ts +1 -14
- package/templates/chat-app/lib/ai/tool-renderer-registry.ts +10 -5
- package/templates/chat-app/lib/db/eve-current-copy.ts +13 -95
- package/templates/chat-app/lib/db/eve-deletion.ts +2 -61
- package/templates/chat-app/lib/db/eve-dispatch.ts +64 -18
- package/templates/chat-app/lib/db/eve-file-purge.ts +11 -145
- package/templates/chat-app/lib/db/eve-files.ts +11 -9
- package/templates/chat-app/lib/db/eve-orphaned-files.ts +3 -22
- package/templates/chat-app/lib/db/eve-queries.ts +32 -16
- package/templates/chat-app/lib/db/eve-workspace-deletion.ts +149 -0
- package/templates/chat-app/lib/db/migrate.ts +30 -0
- package/templates/chat-app/lib/db/migrations/0024_abandoned_toxin.sql +67 -0
- package/templates/chat-app/lib/db/migrations/0025_cloudy_thunderbolt.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0026_loving_mesmero.sql +3 -0
- package/templates/chat-app/lib/db/migrations/0027_misty_stephen_strange.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0028_faithful_hannibal_king.sql +12 -0
- package/templates/chat-app/lib/db/migrations/meta/0024_snapshot.json +4119 -0
- package/templates/chat-app/lib/db/migrations/meta/0025_snapshot.json +3988 -0
- package/templates/chat-app/lib/db/migrations/meta/0026_snapshot.json +3686 -0
- package/templates/chat-app/lib/db/migrations/meta/0027_snapshot.json +3596 -0
- package/templates/chat-app/lib/db/migrations/meta/0028_snapshot.json +2554 -0
- package/templates/chat-app/lib/db/migrations/meta/_journal.json +35 -0
- package/templates/chat-app/lib/db/schema.ts +1 -360
- package/templates/chat-app/lib/env-schema.ts +0 -7
- package/templates/chat-app/lib/eve/application-model.ts +56 -0
- package/templates/chat-app/lib/eve/bash-result.ts +22 -0
- package/templates/chat-app/lib/eve/branch-history.test.ts +59 -0
- package/templates/chat-app/lib/eve/branch-history.ts +19 -0
- package/templates/chat-app/lib/eve/channel-files.test.ts +14 -11
- package/templates/chat-app/lib/eve/channel-files.ts +2 -12
- package/templates/chat-app/lib/eve/completed-copy-source.test.ts +81 -17
- package/templates/chat-app/lib/eve/completed-copy-source.ts +2 -6
- package/templates/chat-app/lib/eve/connection-options.ts +7 -7
- package/templates/chat-app/lib/eve/contracts.test.ts +1 -1
- package/templates/chat-app/lib/eve/copy-seed.test.ts +17 -28
- package/templates/chat-app/lib/eve/copy-seed.ts +8 -34
- package/templates/chat-app/lib/eve/copy-transcript.test.ts +143 -47
- package/templates/chat-app/lib/eve/copy-transcript.ts +20 -101
- package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +11 -31
- package/templates/chat-app/lib/eve/create-conversation-operation.ts +0 -10
- package/templates/chat-app/lib/eve/delete-local-conversation.test.ts +12 -20
- package/templates/chat-app/lib/eve/delete-local-conversation.ts +2 -8
- package/templates/chat-app/lib/eve/environment.test.ts +7 -0
- package/templates/chat-app/lib/eve/environment.ts +11 -0
- package/templates/chat-app/lib/eve/execute-conversation-creation.ts +3 -55
- package/templates/chat-app/lib/eve/gateway-auth.test.ts +2 -21
- package/templates/chat-app/lib/eve/gateway-auth.ts +7 -13
- package/templates/chat-app/lib/eve/generated-files.test.ts +1 -1
- package/templates/chat-app/lib/eve/generated-files.ts +2 -2
- package/templates/chat-app/lib/eve/installed-tools.test.ts +16 -9
- package/templates/chat-app/lib/eve/lifecycle/postgres/compatibility.ts +8 -5
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-payload-purge.ts +6 -2
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-fence.ts +2 -2
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-inventory.ts +2 -2
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-purge.ts +3 -2
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-resource-fence.ts +2 -8
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-run-inventory.ts +1 -1
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-stream-positions.ts +9 -4
- package/templates/chat-app/lib/eve/logical-chat.test.ts +4 -3
- package/templates/chat-app/lib/eve/logical-chat.ts +8 -8
- package/templates/chat-app/lib/eve/message-delivery.test.ts +1 -1
- package/templates/chat-app/lib/eve/message-display.test.ts +5 -5
- package/templates/chat-app/lib/eve/message-display.ts +31 -1
- package/templates/chat-app/lib/eve/message-tool-selection.test.ts +2 -2
- package/templates/chat-app/lib/eve/model-accounting.test.ts +28 -45
- package/templates/chat-app/lib/eve/model-accounting.ts +8 -54
- package/templates/chat-app/lib/eve/purge-files.ts +0 -13
- package/templates/chat-app/lib/eve/purge-local-resources.ts +4 -47
- package/templates/chat-app/lib/eve/readonly-message-types.ts +8 -3
- package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +2 -37
- package/templates/chat-app/lib/eve/response-group-lineage.test.ts +3 -3
- package/templates/chat-app/lib/eve/retire-session.test.ts +25 -8
- package/templates/chat-app/lib/eve/retire-session.ts +10 -4
- package/templates/chat-app/lib/eve/selected-tools.ts +7 -18
- package/templates/chat-app/lib/eve/server.test.ts +29 -3
- package/templates/chat-app/lib/eve/session-profile.test.ts +12 -9
- package/templates/chat-app/lib/eve/session-profile.ts +7 -4
- package/templates/chat-app/lib/eve/shared-messages.test.ts +3 -4
- package/templates/chat-app/lib/eve/shared-messages.ts +5 -2
- package/templates/chat-app/lib/eve/tool-accounting.test.ts +131 -0
- package/templates/chat-app/lib/eve/tool-accounting.ts +96 -0
- package/templates/chat-app/lib/eve/tool-availability.ts +4 -1
- package/templates/chat-app/lib/eve/tool-configuration.ts +29 -0
- package/templates/chat-app/lib/eve/tool-result.ts +1 -1
- package/templates/chat-app/lib/eve/turn-tools.ts +3 -12
- package/templates/chat-app/lib/eve/usage.test.ts +54 -39
- package/templates/chat-app/lib/eve/usage.ts +9 -1
- package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +8 -6
- package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +0 -5
- package/templates/chat-app/lib/required-credentials.test.ts +2 -2
- package/templates/chat-app/lib/tool-readiness.test.ts +69 -0
- package/templates/chat-app/lib/tool-readiness.ts +43 -0
- package/templates/chat-app/logo.svg +1 -1
- package/templates/chat-app/next.config.ts +1 -5
- package/templates/chat-app/oxlint.config.ts +3 -6
- package/templates/chat-app/package.json +4 -16
- package/templates/chat-app/providers/chat-models-provider.tsx +3 -3
- package/templates/chat-app/providers/default-model-provider.tsx +4 -4
- package/templates/chat-app/providers/session-context.ts +24 -0
- package/templates/chat-app/providers/session-provider.tsx +4 -21
- package/templates/chat-app/scripts/agent-status.ts +124 -0
- package/templates/chat-app/scripts/check-env.ts +0 -10
- package/templates/chat-app/scripts/dev-supervisor.mts +3 -30
- package/templates/chat-app/scripts/eve-setup.ts +3 -0
- package/templates/chat-app/tests/helpers/eve-dynamic-context.ts +2 -0
- package/templates/chat-app/tools/platform/research-updates-schema.ts +1 -20
- package/templates/chat-app/trpc/context.tsx +8 -0
- package/templates/chat-app/trpc/react.tsx +3 -4
- package/templates/chat-app/trpc/routers/eve.router.ts +2 -74
- package/templates/chat-app/vendor/workflow-world-postgres-5.1.1.tgz +0 -0
- package/templates/electron/icon.png +0 -0
- package/templates/electron/package.json +2 -1
- package/templates/electron/src/application.test.ts +347 -0
- package/templates/electron/src/application.ts +849 -0
- package/templates/electron/src/lib/auth-cookies.ts +1 -1
- package/templates/electron/src/main.test.ts +175 -0
- package/templates/electron/src/main.ts +5 -745
- package/templates/electron/src/squirrel-startup.ts +61 -0
- package/templates/chat-app/agent/hooks/persistent-sandbox.ts +0 -14
- package/templates/chat-app/app/api/agent-conversation-copies/route.test.ts +0 -190
- package/templates/chat-app/app/api/agent-conversation-copies/route.ts +0 -105
- package/templates/chat-app/chatjs/core/documents/compose-views.ts +0 -12
- package/templates/chat-app/chatjs/core/documents/contracts.ts +0 -91
- package/templates/chat-app/chatjs/core/documents/document-definition.test.ts +0 -60
- package/templates/chat-app/chatjs/core/documents/document-definition.ts +0 -55
- package/templates/chat-app/chatjs/core/documents/ui.ts +0 -67
- package/templates/chat-app/chatjs/generated/code-executor.ts +0 -6
- package/templates/chat-app/chatjs/generated/document-run.ts +0 -12
- package/templates/chat-app/chatjs/generated/document-ui.ts +0 -7
- package/templates/chat-app/chatjs/generated/documents.ts +0 -6
- package/templates/chat-app/chatjs/plugins/langfuse/chatjs.json +0 -14
- package/templates/chat-app/chatjs/plugins/langfuse/credentials.ts +0 -22
- package/templates/chat-app/chatjs/plugins/langfuse/instrumentation.ts +0 -22
- package/templates/chat-app/chatjs/plugins/langfuse/server-plugin.ts +0 -5
- package/templates/chat-app/chatjs/plugins/vercel-analytics/chatjs.json +0 -15
- package/templates/chat-app/chatjs/plugins/vercel-analytics/client-plugin.ts +0 -9
- package/templates/chat-app/chatjs/plugins/vercel-analytics/component.tsx +0 -5
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/chatjs.json +0 -15
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/client-plugin.ts +0 -9
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/component.tsx +0 -4
- package/templates/chat-app/chatjs/providers/sandbox/adapter.ts +0 -232
- package/templates/chat-app/chatjs/providers/sandbox/options.ts +0 -13
- package/templates/chat-app/chatjs/providers/sandbox/persistent.ts +0 -258
- package/templates/chat-app/chatjs/providers/sandbox/provider.ts +0 -27
- package/templates/chat-app/chatjs/providers/sandbox/vercel-sandbox-env.ts +0 -22
- package/templates/chat-app/chatjs/tools/_shared/code-execution/code-execution-chart.tsx +0 -83
- package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-chart-impl.tsx +0 -290
- package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-charts.tsx +0 -24
- package/templates/chat-app/chatjs/tools/_shared/code-execution/javascript.ts +0 -222
- package/templates/chat-app/chatjs/tools/_shared/code-execution/python.ts +0 -381
- package/templates/chat-app/chatjs/tools/_shared/code-execution/types.ts +0 -27
- package/templates/chat-app/chatjs/tools/code-documents/assistant-actions.ts +0 -16
- package/templates/chat-app/chatjs/tools/code-documents/chatjs.json +0 -20
- package/templates/chat-app/chatjs/tools/code-documents/configuration-schema.ts +0 -7
- package/templates/chat-app/chatjs/tools/code-documents/definition.ts +0 -9
- package/templates/chat-app/chatjs/tools/code-documents/document.tsx +0 -33
- package/templates/chat-app/chatjs/tools/code-documents/editor.tsx +0 -144
- package/templates/chat-app/chatjs/tools/code-documents/guidelines.ts +0 -15
- package/templates/chat-app/chatjs/tools/code-documents/tool.ts +0 -54
- package/templates/chat-app/chatjs/tools/code-execution/chatjs.json +0 -21
- package/templates/chat-app/chatjs/tools/code-execution/python.test.ts +0 -207
- package/templates/chat-app/chatjs/tools/code-execution/renderer.test.tsx +0 -142
- package/templates/chat-app/chatjs/tools/code-execution/renderer.tsx +0 -68
- package/templates/chat-app/chatjs/tools/code-execution/schemas.ts +0 -23
- package/templates/chat-app/chatjs/tools/code-execution/tool.ts +0 -93
- package/templates/chat-app/chatjs/tools/deep-research/agent.ts +0 -18
- package/templates/chat-app/chatjs/tools/deep-research/availability.ts +0 -23
- package/templates/chat-app/chatjs/tools/deep-research/configuration-schema.ts +0 -36
- package/templates/chat-app/chatjs/tools/deep-research/configuration.ts +0 -22
- package/templates/chat-app/chatjs/tools/deep-research/prompts.ts +0 -280
- package/templates/chat-app/chatjs/tools/deep-research/search-updates.ts +0 -76
- package/templates/chat-app/chatjs/tools/deep-research/steps.ts +0 -92
- package/templates/chat-app/chatjs/tools/delete-document/availability.ts +0 -13
- package/templates/chat-app/chatjs/tools/delete-document/chatjs.json +0 -9
- package/templates/chat-app/chatjs/tools/delete-document/execute.ts +0 -78
- package/templates/chat-app/chatjs/tools/delete-document/schemas.ts +0 -18
- package/templates/chat-app/chatjs/tools/delete-document/tool.ts +0 -49
- package/templates/chat-app/chatjs/tools/get-weather/chatjs.json +0 -14
- package/templates/chat-app/chatjs/tools/get-weather/definition.ts +0 -10
- package/templates/chat-app/chatjs/tools/get-weather/renderer.test.tsx +0 -57
- package/templates/chat-app/chatjs/tools/get-weather/renderer.tsx +0 -290
- package/templates/chat-app/chatjs/tools/get-weather/schemas.ts +0 -51
- package/templates/chat-app/chatjs/tools/get-weather/tool.ts +0 -34
- package/templates/chat-app/chatjs/tools/read-document/chatjs.json +0 -8
- package/templates/chat-app/chatjs/tools/read-document/tool.ts +0 -27
- package/templates/chat-app/chatjs/tools/retrieve-url/chatjs.json +0 -11
- package/templates/chat-app/chatjs/tools/retrieve-url/renderer.tsx +0 -200
- package/templates/chat-app/chatjs/tools/retrieve-url/retrieve-url-env.ts +0 -11
- package/templates/chat-app/chatjs/tools/retrieve-url/schemas.ts +0 -24
- package/templates/chat-app/chatjs/tools/retrieve-url/tool.test.ts +0 -144
- package/templates/chat-app/chatjs/tools/retrieve-url/tool.ts +0 -169
- package/templates/chat-app/chatjs/tools/saved-code-execution/chatjs.json +0 -12
- package/templates/chat-app/chatjs/tools/saved-code-execution/document-runs.ts +0 -31
- package/templates/chat-app/chatjs/tools/saved-code-execution/document.tsx +0 -84
- package/templates/chat-app/chatjs/tools/saved-code-execution/execute.ts +0 -126
- package/templates/chat-app/chatjs/tools/saved-code-execution/renderer.tsx +0 -30
- package/templates/chat-app/chatjs/tools/saved-code-execution/result.tsx +0 -42
- package/templates/chat-app/chatjs/tools/saved-code-execution/schemas.ts +0 -82
- package/templates/chat-app/chatjs/tools/saved-code-execution/tool.ts +0 -12
- package/templates/chat-app/chatjs/tools/sheet-documents/assistant-actions.ts +0 -22
- package/templates/chat-app/chatjs/tools/sheet-documents/chatjs.json +0 -20
- package/templates/chat-app/chatjs/tools/sheet-documents/configuration-schema.ts +0 -10
- package/templates/chat-app/chatjs/tools/sheet-documents/definition.ts +0 -9
- package/templates/chat-app/chatjs/tools/sheet-documents/document.tsx +0 -41
- package/templates/chat-app/chatjs/tools/sheet-documents/editor.tsx +0 -180
- package/templates/chat-app/chatjs/tools/sheet-documents/guidelines.ts +0 -5
- package/templates/chat-app/chatjs/tools/sheet-documents/tool.ts +0 -54
- package/templates/chat-app/chatjs/tools/tavily-search/chatjs.json +0 -19
- package/templates/chat-app/chatjs/tools/tavily-search/renderer.tsx +0 -25
- package/templates/chat-app/chatjs/tools/tavily-search/schemas.ts +0 -39
- package/templates/chat-app/chatjs/tools/tavily-search/tavily-search-env.ts +0 -11
- package/templates/chat-app/chatjs/tools/tavily-search/tool.test.ts +0 -114
- package/templates/chat-app/chatjs/tools/tavily-search/tool.ts +0 -143
- package/templates/chat-app/chatjs/tools/text-documents/assistant-actions.ts +0 -12
- package/templates/chat-app/chatjs/tools/text-documents/chatjs.json +0 -20
- package/templates/chat-app/chatjs/tools/text-documents/comparison.tsx +0 -72
- package/templates/chat-app/chatjs/tools/text-documents/configuration-schema.ts +0 -7
- package/templates/chat-app/chatjs/tools/text-documents/definition.ts +0 -9
- package/templates/chat-app/chatjs/tools/text-documents/diffview.tsx +0 -214
- package/templates/chat-app/chatjs/tools/text-documents/document.tsx +0 -46
- package/templates/chat-app/chatjs/tools/text-documents/editor-config.ts +0 -53
- package/templates/chat-app/chatjs/tools/text-documents/editor.tsx +0 -139
- package/templates/chat-app/chatjs/tools/text-documents/guidelines.ts +0 -7
- package/templates/chat-app/chatjs/tools/text-documents/tool.ts +0 -54
- package/templates/chat-app/chatjs/tools/word-count/chatjs.json +0 -14
- package/templates/chat-app/chatjs/tools/word-count/definition.ts +0 -10
- package/templates/chat-app/chatjs/tools/word-count/renderer.tsx +0 -64
- package/templates/chat-app/chatjs/tools/word-count/schemas.ts +0 -13
- package/templates/chat-app/chatjs/tools/word-count/tool.ts +0 -45
- package/templates/chat-app/components/chat/chat-layout.tsx +0 -129
- package/templates/chat-app/components/chat-sidebar-view.tsx +0 -53
- package/templates/chat-app/components/document-skeleton.tsx +0 -33
- package/templates/chat-app/components/eve/eve-artifact-layout.tsx +0 -722
- package/templates/chat-app/components/eve/eve-copy-button.tsx +0 -165
- package/templates/chat-app/components/eve/eve-document-actions.tsx +0 -124
- package/templates/chat-app/components/eve/eve-document-assistant-actions.tsx +0 -157
- package/templates/chat-app/components/eve/eve-document-body.tsx +0 -29
- package/templates/chat-app/components/eve/eve-document-context.tsx +0 -12
- package/templates/chat-app/components/eve/eve-document-preview.tsx +0 -128
- package/templates/chat-app/components/eve/eve-document-tool.tsx +0 -190
- package/templates/chat-app/components/eve/eve-history.tsx +0 -25
- package/templates/chat-app/components/eve/use-document-draft.ts +0 -281
- package/templates/chat-app/components/favicon-group.tsx +0 -50
- package/templates/chat-app/components/part/document-common.tsx +0 -152
- package/templates/chat-app/components/part/web-search.tsx +0 -75
- package/templates/chat-app/components/sandbox.tsx +0 -43
- package/templates/chat-app/components/source-badge.tsx +0 -50
- package/templates/chat-app/components/sources.tsx +0 -140
- package/templates/chat-app/hooks/use-artifact.tsx +0 -180
- package/templates/chat-app/integrations/documents/definitions.ts +0 -4
- package/templates/chat-app/integrations/documents/run.ts +0 -1
- package/templates/chat-app/integrations/documents/ui.ts +0 -4
- package/templates/chat-app/integrations/providers/sandbox.ts +0 -10
- package/templates/chat-app/integrations/tools/code-executor.ts +0 -1
- package/templates/chat-app/lib/ai/telemetry.ts +0 -4
- package/templates/chat-app/lib/artifacts/artifact-kind.ts +0 -8
- package/templates/chat-app/lib/artifacts/types.ts +0 -19
- package/templates/chat-app/lib/db/eve-code-sandboxes.ts +0 -197
- package/templates/chat-app/lib/db/eve-document-retention.ts +0 -36
- package/templates/chat-app/lib/db/eve-documents.ts +0 -700
- package/templates/chat-app/lib/eve/code-executor.ts +0 -32
- package/templates/chat-app/lib/eve/code-sandbox-name.test.ts +0 -60
- package/templates/chat-app/lib/eve/code-sandbox-name.ts +0 -56
- package/templates/chat-app/lib/eve/code-sandbox-ownership.ts +0 -88
- package/templates/chat-app/lib/eve/copy-input.ts +0 -11
- package/templates/chat-app/lib/eve/create-native-copy.ts +0 -38
- package/templates/chat-app/lib/eve/document-assistant-actions.test.ts +0 -48
- package/templates/chat-app/lib/eve/document-assistant-actions.ts +0 -22
- package/templates/chat-app/lib/eve/document-kind-lifecycle.test.ts +0 -148
- package/templates/chat-app/lib/eve/document-tools.ts +0 -164
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-sandbox-coverage-proof.ts +0 -140
- package/templates/chat-app/lib/eve/persistent-sandbox-store.ts +0 -621
- package/templates/chat-app/lib/eve/persistent-sandbox.test.ts +0 -209
- package/templates/chat-app/lib/eve/persistent-sandbox.ts +0 -328
- package/templates/chat-app/lib/eve/purge-code-sandboxes.test.ts +0 -125
- package/templates/chat-app/lib/eve/purge-code-sandboxes.ts +0 -83
- package/templates/chat-app/lib/eve/request-copy.test.ts +0 -95
- package/templates/chat-app/lib/eve/request-copy.ts +0 -129
- package/templates/chat-app/lib/eve/research-progress.test.ts +0 -95
- package/templates/chat-app/lib/eve/research-progress.ts +0 -42
- package/templates/chat-app/lib/eve/sandbox-environment.test.ts +0 -49
- package/templates/chat-app/lib/eve/sandbox-environment.ts +0 -29
- package/templates/chat-app/lib/eve/save-copy-operation.ts +0 -33
- package/templates/chat-app/lib/eve/save-document.ts +0 -87
- package/templates/chat-app/lib/eve/verify-local-coverage.ts +0 -84
- package/templates/chat-app/lib/eve/workspace-attachments.ts +0 -173
- package/templates/chat-app/lib/sandbox/runtime.ts +0 -12
- package/templates/chat-app/scripts/persistent-sandbox-cleanup.ts +0 -128
- package/templates/chat-app/scripts/stop-persistent-sandboxes.ts +0 -24
- package/templates/chat-app/tests/artifacts.e2e.ts +0 -7
- package/templates/chat-app/tools/platform/documents/types.ts +0 -11
- package/templates/chat-app/tools/platform/search-presentation.ts +0 -138
- package/templates/chat-app/tools/platform/steps/multi-query-web-search.test.ts +0 -45
- package/templates/chat-app/tools/platform/steps/multi-query-web-search.ts +0 -142
- package/templates/chat-app/tools/platform/steps/search-utils.ts +0 -26
- package/templates/chat-app/vendor/workflow-world-postgres-5.0.0-beta.40.tgz +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
eveDocumentCreateInput,
|
|
3
|
-
eveDocumentEditInput,
|
|
4
|
-
eveDocumentWriteResult,
|
|
5
|
-
} from "@/chatjs/core/documents/contracts";
|
|
6
|
-
import type { ToolContext } from "eve/tools";
|
|
7
|
-
import { codeGuidelines } from "./guidelines";
|
|
8
|
-
import { defineTool } from "eve/tools";
|
|
9
|
-
import { executeEveDocumentTool } from "@/lib/eve/document-tools";
|
|
10
|
-
import type { z } from "zod";
|
|
11
|
-
|
|
12
|
-
type CreateCodeDocumentInput = Readonly<
|
|
13
|
-
Omit<z.infer<typeof eveDocumentCreateInput>, "fileIds"> & {
|
|
14
|
-
fileIds: readonly string[];
|
|
15
|
-
}
|
|
16
|
-
>;
|
|
17
|
-
|
|
18
|
-
type EditCodeDocumentInput = Readonly<
|
|
19
|
-
Omit<z.infer<typeof eveDocumentEditInput>, "fileIds"> & {
|
|
20
|
-
fileIds: readonly string[];
|
|
21
|
-
}
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
type ReadonlyDocumentToolContext = Readonly<
|
|
25
|
-
Pick<ToolContext, "callId" | "session"> & {
|
|
26
|
-
abortSignal: Readonly<AbortSignal>;
|
|
27
|
-
}
|
|
28
|
-
>;
|
|
29
|
-
|
|
30
|
-
const createCodeDocument = defineTool({
|
|
31
|
-
description: `Create a new code document in this conversation. Supply the complete content and a descriptive title. ${codeGuidelines}`,
|
|
32
|
-
execute: async (
|
|
33
|
-
input: CreateCodeDocumentInput,
|
|
34
|
-
context: ReadonlyDocumentToolContext
|
|
35
|
-
) =>
|
|
36
|
-
eveDocumentWriteResult.parse(
|
|
37
|
-
await executeEveDocumentTool("createCodeDocument", input, context)
|
|
38
|
-
),
|
|
39
|
-
inputSchema: eveDocumentCreateInput,
|
|
40
|
-
outputSchema: eveDocumentWriteResult,
|
|
41
|
-
});
|
|
42
|
-
const editCodeDocument = defineTool({
|
|
43
|
-
description: `Edit an existing code document in this conversation. Read the document first and supply its revision ID. Supply the complete replacement content. ${codeGuidelines}`,
|
|
44
|
-
execute: async (
|
|
45
|
-
input: EditCodeDocumentInput,
|
|
46
|
-
context: ReadonlyDocumentToolContext
|
|
47
|
-
) =>
|
|
48
|
-
eveDocumentWriteResult.parse(
|
|
49
|
-
await executeEveDocumentTool("editCodeDocument", input, context)
|
|
50
|
-
),
|
|
51
|
-
inputSchema: eveDocumentEditInput,
|
|
52
|
-
outputSchema: eveDocumentWriteResult,
|
|
53
|
-
});
|
|
54
|
-
export { createCodeDocument, editCodeDocument };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"codeExecutionCapabilities": {
|
|
3
|
-
"cancellation": "terminate",
|
|
4
|
-
"cleanup": "durable-allocation",
|
|
5
|
-
"files": "ephemeral",
|
|
6
|
-
"languages": ["python", "javascript"],
|
|
7
|
-
"timeout": "bounded",
|
|
8
|
-
"usage": "single-receipt"
|
|
9
|
-
},
|
|
10
|
-
"codeExecutorExport": "executeCode",
|
|
11
|
-
"envRequirements": [],
|
|
12
|
-
"id": "code-execution",
|
|
13
|
-
"kind": "tool",
|
|
14
|
-
"requiresSandbox": true,
|
|
15
|
-
"requiresTools": [],
|
|
16
|
-
"slot": "codeExecution",
|
|
17
|
-
"tools": [
|
|
18
|
-
{ "rendererExport": "CodeExecution", "toolExport": "codeExecution" }
|
|
19
|
-
],
|
|
20
|
-
"contractVersion": 1
|
|
21
|
-
}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { expect, it, vi } from "vitest";
|
|
2
|
-
import type { Logger } from "pino";
|
|
3
|
-
import type { MockInstance } from "vitest";
|
|
4
|
-
import { Sandbox } from "@vercel/sandbox";
|
|
5
|
-
import { executePythonInSandbox } from "@/chatjs/tools/_shared/code-execution/python";
|
|
6
|
-
import pino from "pino";
|
|
7
|
-
|
|
8
|
-
const mocks = vi.hoisted(() => ({ runCommand: vi.fn() }));
|
|
9
|
-
vi.mock(
|
|
10
|
-
"@vercel/sandbox",
|
|
11
|
-
(): {
|
|
12
|
-
Sandbox: { create: () => { runCommand: typeof mocks.runCommand } };
|
|
13
|
-
} => ({
|
|
14
|
-
Sandbox: {
|
|
15
|
-
create: (): { runCommand: typeof mocks.runCommand } => ({
|
|
16
|
-
runCommand: mocks.runCommand,
|
|
17
|
-
}),
|
|
18
|
-
},
|
|
19
|
-
})
|
|
20
|
-
);
|
|
21
|
-
const SUCCESS_EXIT_CODE = 0;
|
|
22
|
-
const FAILED_EXIT_CODE = 1;
|
|
23
|
-
const PIP_COMMAND_ORDINAL = 2;
|
|
24
|
-
const CHART_COMMAND_COUNT = 2;
|
|
25
|
-
const FALLBACK_COMMAND_COUNT = 3;
|
|
26
|
-
|
|
27
|
-
it.each([
|
|
28
|
-
{
|
|
29
|
-
trailer: '{"success":true,"extra":"compatible"}',
|
|
30
|
-
expectedMessage: "printed output",
|
|
31
|
-
},
|
|
32
|
-
{ trailer: "{}", expectedMessage: "printed output" },
|
|
33
|
-
{
|
|
34
|
-
trailer:
|
|
35
|
-
'{"success":false,"error":{"name":"ValueError","value":"bad input","traceback":"trace","extra":true}}',
|
|
36
|
-
expectedMessage: "printed output\nError: ValueError: bad input",
|
|
37
|
-
},
|
|
38
|
-
{ trailer: "null", expectedMessage: "printed output\nnull" },
|
|
39
|
-
{
|
|
40
|
-
trailer: '{"error":{"name":17}}',
|
|
41
|
-
expectedMessage: 'printed output\n{"error":{"name":17}}',
|
|
42
|
-
},
|
|
43
|
-
])(
|
|
44
|
-
"parses the execution status trailer $trailer",
|
|
45
|
-
async ({ trailer, expectedMessage }) => {
|
|
46
|
-
mocks.runCommand.mockReset();
|
|
47
|
-
mocks.runCommand
|
|
48
|
-
.mockResolvedValueOnce({ exitCode: SUCCESS_EXIT_CODE })
|
|
49
|
-
.mockResolvedValueOnce({
|
|
50
|
-
exitCode: SUCCESS_EXIT_CODE,
|
|
51
|
-
stderr: (): string => "",
|
|
52
|
-
stdout: (): string => `printed output\n${trailer}`,
|
|
53
|
-
})
|
|
54
|
-
.mockResolvedValueOnce({ exitCode: FAILED_EXIT_CODE });
|
|
55
|
-
const result = await executePythonInSandbox({
|
|
56
|
-
code: "print('output')",
|
|
57
|
-
log: pino({ level: "silent" }),
|
|
58
|
-
requestId: "execution-envelope",
|
|
59
|
-
sandbox: await Sandbox.create(),
|
|
60
|
-
});
|
|
61
|
-
expect(result.message).toBe(expectedMessage);
|
|
62
|
-
expect(result.chart).toBe("");
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
const createPipRedactionFixture = (
|
|
67
|
-
packageUrl: string,
|
|
68
|
-
exitCode: number
|
|
69
|
-
): {
|
|
70
|
-
log: Logger;
|
|
71
|
-
info: MockInstance<Logger["info"]>;
|
|
72
|
-
error: MockInstance<Logger["error"]>;
|
|
73
|
-
} => {
|
|
74
|
-
const log = pino({ level: "silent" });
|
|
75
|
-
const info = vi.spyOn(log, "info");
|
|
76
|
-
const error = vi.spyOn(log, "error");
|
|
77
|
-
mocks.runCommand.mockReset();
|
|
78
|
-
mocks.runCommand
|
|
79
|
-
.mockResolvedValueOnce({ exitCode: SUCCESS_EXIT_CODE })
|
|
80
|
-
.mockResolvedValueOnce({
|
|
81
|
-
exitCode,
|
|
82
|
-
stderr: (): string => `Could not install ${packageUrl}`,
|
|
83
|
-
})
|
|
84
|
-
.mockResolvedValueOnce({
|
|
85
|
-
exitCode: SUCCESS_EXIT_CODE,
|
|
86
|
-
stderr: (): string => "",
|
|
87
|
-
stdout: (): string => '{"success":true}',
|
|
88
|
-
})
|
|
89
|
-
.mockResolvedValueOnce({ exitCode: FAILED_EXIT_CODE });
|
|
90
|
-
return {
|
|
91
|
-
error,
|
|
92
|
-
info,
|
|
93
|
-
log,
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
it.each([SUCCESS_EXIT_CODE, FAILED_EXIT_CODE])(
|
|
98
|
-
"does not log package credentials when pip exits with %s",
|
|
99
|
-
async (exitCode) => {
|
|
100
|
-
const secret = "fake-private-package-token";
|
|
101
|
-
const packageUrl = `https://user:${secret}@packages.example.com/private.whl`;
|
|
102
|
-
const { log, info, error } = createPipRedactionFixture(
|
|
103
|
-
packageUrl,
|
|
104
|
-
exitCode
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
await executePythonInSandbox({
|
|
108
|
-
code: `!pip install ${packageUrl}\nprint(4)`,
|
|
109
|
-
log,
|
|
110
|
-
requestId: "test-request",
|
|
111
|
-
sandbox: await Sandbox.create(),
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
expect(mocks.runCommand).toHaveBeenNthCalledWith(PIP_COMMAND_ORDINAL, {
|
|
115
|
-
args: ["install", packageUrl],
|
|
116
|
-
cmd: "pip",
|
|
117
|
-
});
|
|
118
|
-
expect(info).toHaveBeenCalledWith(
|
|
119
|
-
{ packageCount: 1, requestId: "test-request" },
|
|
120
|
-
"installing extra packages"
|
|
121
|
-
);
|
|
122
|
-
expect(JSON.stringify([info.mock.calls, error.mock.calls])).not.toContain(
|
|
123
|
-
secret
|
|
124
|
-
);
|
|
125
|
-
if (exitCode !== SUCCESS_EXIT_CODE) {
|
|
126
|
-
expect(error).toHaveBeenCalledWith(
|
|
127
|
-
{ exitCode, requestId: "test-request" },
|
|
128
|
-
"dynamic package installation failed"
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
|
|
134
|
-
it.each([
|
|
135
|
-
{
|
|
136
|
-
chart: '{"type":"line","elements":[],"extension":true}',
|
|
137
|
-
commandCount: CHART_COMMAND_COUNT,
|
|
138
|
-
expectedChart: { elements: [], extension: true, type: "line" },
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
chart: "null",
|
|
142
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
143
|
-
expectedChart: "",
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
chart: "[]",
|
|
147
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
148
|
-
expectedChart: "",
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
chart: '"text"',
|
|
152
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
153
|
-
expectedChart: "",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
chart: "false",
|
|
157
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
158
|
-
expectedChart: "",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
chart: "42",
|
|
162
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
163
|
-
expectedChart: "",
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
chart: "{",
|
|
167
|
-
commandCount: FALLBACK_COMMAND_COUNT,
|
|
168
|
-
expectedChart: "",
|
|
169
|
-
},
|
|
170
|
-
])(
|
|
171
|
-
"chart envelope $chart is accepted only when it is an object",
|
|
172
|
-
async ({
|
|
173
|
-
chart,
|
|
174
|
-
expectedChart,
|
|
175
|
-
commandCount,
|
|
176
|
-
}: Readonly<{
|
|
177
|
-
chart: string;
|
|
178
|
-
expectedChart:
|
|
179
|
-
| string
|
|
180
|
-
| Readonly<{
|
|
181
|
-
elements: readonly never[];
|
|
182
|
-
extension: boolean;
|
|
183
|
-
type: string;
|
|
184
|
-
}>;
|
|
185
|
-
commandCount: number;
|
|
186
|
-
}>): Promise<void> => {
|
|
187
|
-
mocks.runCommand.mockReset();
|
|
188
|
-
mocks.runCommand
|
|
189
|
-
.mockResolvedValueOnce({ exitCode: SUCCESS_EXIT_CODE })
|
|
190
|
-
.mockResolvedValueOnce({
|
|
191
|
-
exitCode: SUCCESS_EXIT_CODE,
|
|
192
|
-
stderr: (): string => "",
|
|
193
|
-
stdout: (): string =>
|
|
194
|
-
`printed output\n__CHART_JSON__:${chart}\n{"success":true}`,
|
|
195
|
-
})
|
|
196
|
-
.mockResolvedValueOnce({ exitCode: FAILED_EXIT_CODE });
|
|
197
|
-
const result = await executePythonInSandbox({
|
|
198
|
-
code: "print('output')",
|
|
199
|
-
log: pino({ level: "silent" }),
|
|
200
|
-
requestId: "chart-envelope",
|
|
201
|
-
sandbox: await Sandbox.create(),
|
|
202
|
-
});
|
|
203
|
-
expect(result.message).toBe("printed output");
|
|
204
|
-
expect(result.chart).toEqual(expectedChart);
|
|
205
|
-
expect(mocks.runCommand).toHaveBeenCalledTimes(commandCount);
|
|
206
|
-
}
|
|
207
|
-
);
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test, vi } from "vitest";
|
|
2
|
-
import { CodeExecution } from "./renderer";
|
|
3
|
-
import { CodeExecution as RegistryCodeExecution } from "../../../../../packages/registry/src/tools/code-execution/renderer";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { renderToStaticMarkup } from "react-dom/server";
|
|
6
|
-
|
|
7
|
-
const createStreamingTool = (
|
|
8
|
-
input: unknown
|
|
9
|
-
): {
|
|
10
|
-
readonly input: unknown;
|
|
11
|
-
readonly state: "input-streaming";
|
|
12
|
-
readonly toolCallId: string;
|
|
13
|
-
} => ({
|
|
14
|
-
input,
|
|
15
|
-
state: "input-streaming",
|
|
16
|
-
toolCallId: "stream",
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
vi.mock("@/components/sandbox", () => ({
|
|
20
|
-
SandboxComposed: ({
|
|
21
|
-
code,
|
|
22
|
-
language,
|
|
23
|
-
title,
|
|
24
|
-
}: {
|
|
25
|
-
readonly code: string;
|
|
26
|
-
readonly language: string;
|
|
27
|
-
readonly title: string;
|
|
28
|
-
}): React.JSX.Element => (
|
|
29
|
-
<pre data-language={language} data-title={title}>
|
|
30
|
-
{code}
|
|
31
|
-
</pre>
|
|
32
|
-
),
|
|
33
|
-
}));
|
|
34
|
-
|
|
35
|
-
vi.mock(
|
|
36
|
-
"@/chatjs/tools/_shared/code-execution/interactive-charts",
|
|
37
|
-
(): { default: () => null } => ({
|
|
38
|
-
default: (): null => null,
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
describe.each([
|
|
43
|
-
{ name: "app", Renderer: CodeExecution },
|
|
44
|
-
{ name: "registry", Renderer: RegistryCodeExecution },
|
|
45
|
-
])("$name code execution renderer", ({ Renderer }) => {
|
|
46
|
-
test("passes validated partial code to the sandbox while input is streaming", () => {
|
|
47
|
-
const html = renderToStaticMarkup(
|
|
48
|
-
<Renderer
|
|
49
|
-
isReadonly={false}
|
|
50
|
-
messageId="stream"
|
|
51
|
-
tool={createStreamingTool({ code: "print(53 *" })}
|
|
52
|
-
/>
|
|
53
|
-
);
|
|
54
|
-
expect(html).toContain("print(53 *");
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
test.each([
|
|
58
|
-
{ code: { invalid: true } },
|
|
59
|
-
{ code: { invalid: true }, language: "pyth", title: {} },
|
|
60
|
-
])("does not render malformed partial code %j", (input) => {
|
|
61
|
-
const html = renderToStaticMarkup(
|
|
62
|
-
<Renderer
|
|
63
|
-
isReadonly={false}
|
|
64
|
-
messageId="stream"
|
|
65
|
-
tool={createStreamingTool(input)}
|
|
66
|
-
/>
|
|
67
|
-
);
|
|
68
|
-
expect(html).not.toContain("invalid");
|
|
69
|
-
expect(html).toContain('data-language="python" data-title=""></pre>');
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
test.each(["pyth", "java", null, 42, {}])(
|
|
73
|
-
"keeps code and title visible while language is %j",
|
|
74
|
-
(language) => {
|
|
75
|
-
const html = renderToStaticMarkup(
|
|
76
|
-
<Renderer
|
|
77
|
-
isReadonly={false}
|
|
78
|
-
messageId="stream"
|
|
79
|
-
tool={createStreamingTool({
|
|
80
|
-
code: "print(1)",
|
|
81
|
-
language,
|
|
82
|
-
title: "Calculation",
|
|
83
|
-
})}
|
|
84
|
-
/>
|
|
85
|
-
);
|
|
86
|
-
expect(html).toContain("print(1)");
|
|
87
|
-
expect(html).toContain('data-language="python"');
|
|
88
|
-
expect(html).toContain('data-title="Calculation"');
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
test.each([{ title: null }, { title: 42 }, { title: {} }, { title: [] }])(
|
|
93
|
-
"keeps code and language visible while title is $title",
|
|
94
|
-
({ title }) => {
|
|
95
|
-
const html = renderToStaticMarkup(
|
|
96
|
-
<Renderer
|
|
97
|
-
isReadonly={false}
|
|
98
|
-
messageId="stream"
|
|
99
|
-
tool={createStreamingTool({
|
|
100
|
-
code: "console.log(1)",
|
|
101
|
-
language: "javascript",
|
|
102
|
-
title,
|
|
103
|
-
})}
|
|
104
|
-
/>
|
|
105
|
-
);
|
|
106
|
-
expect(html).toContain("console.log(1)");
|
|
107
|
-
expect(html).toContain('data-language="javascript"');
|
|
108
|
-
expect(html).toContain('data-title=""');
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
test("keeps code visible when both streaming metadata fields are malformed", () => {
|
|
113
|
-
const html = renderToStaticMarkup(
|
|
114
|
-
<Renderer
|
|
115
|
-
isReadonly={false}
|
|
116
|
-
messageId="stream"
|
|
117
|
-
tool={createStreamingTool({
|
|
118
|
-
code: "print(1)",
|
|
119
|
-
language: "pyth",
|
|
120
|
-
title: {},
|
|
121
|
-
})}
|
|
122
|
-
/>
|
|
123
|
-
);
|
|
124
|
-
expect(html).toContain("print(1)");
|
|
125
|
-
expect(html).toContain('data-language="python" data-title=""');
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
test.each([
|
|
129
|
-
{ code: "print(1)", language: "pyth", title: "Calculation" },
|
|
130
|
-
{ code: "print(1)", language: "python", title: {} },
|
|
131
|
-
])("rejects invalid completed input %j", (input) => {
|
|
132
|
-
const html = renderToStaticMarkup(
|
|
133
|
-
<Renderer
|
|
134
|
-
isReadonly={false}
|
|
135
|
-
messageId="complete"
|
|
136
|
-
tool={{ input, state: "input-available", toolCallId: "complete" }}
|
|
137
|
-
/>
|
|
138
|
-
);
|
|
139
|
-
expect(html).toContain("This tool result could not be displayed.");
|
|
140
|
-
expect(html).not.toContain("print(1)");
|
|
141
|
-
});
|
|
142
|
-
});
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { codeExecutionInput, codeExecutionResult } from "./schemas";
|
|
3
|
-
import { CodeExecutionChart } from "@/chatjs/tools/_shared/code-execution/code-execution-chart";
|
|
4
|
-
import React from "react";
|
|
5
|
-
// Preserve the exact TSX target: shadcn otherwise confuses it with subagent sandbox.ts files.
|
|
6
|
-
import { SandboxComposed } from "@/components/sandbox.tsx";
|
|
7
|
-
import type { ToolRendererProps } from "@/chatjs/core/tools/define-renderer";
|
|
8
|
-
import { defineToolRenderer } from "@/chatjs/core/tools/define-renderer";
|
|
9
|
-
|
|
10
|
-
type CodeExecutionTool = ToolRendererProps<
|
|
11
|
-
typeof codeExecutionInput,
|
|
12
|
-
typeof codeExecutionResult
|
|
13
|
-
>["tool"];
|
|
14
|
-
|
|
15
|
-
type CodeExecutionViewTool = Readonly<{
|
|
16
|
-
state: CodeExecutionTool["state"];
|
|
17
|
-
input?: Readonly<{
|
|
18
|
-
code?: string;
|
|
19
|
-
language?: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
}>;
|
|
22
|
-
output?: Readonly<{
|
|
23
|
-
chart: unknown;
|
|
24
|
-
message: string;
|
|
25
|
-
}>;
|
|
26
|
-
}>;
|
|
27
|
-
|
|
28
|
-
const CodeExecutionView = ({
|
|
29
|
-
tool,
|
|
30
|
-
}: Readonly<{ tool: CodeExecutionViewTool }>): React.JSX.Element => {
|
|
31
|
-
const args = tool.input ?? {
|
|
32
|
-
code: "",
|
|
33
|
-
icon: "default",
|
|
34
|
-
language: "python",
|
|
35
|
-
title: "",
|
|
36
|
-
};
|
|
37
|
-
const result = tool.state === "output-available" ? tool.output : null;
|
|
38
|
-
const code = typeof args.code === "string" ? args.code : "";
|
|
39
|
-
const title = typeof args.title === "string" ? args.title : "";
|
|
40
|
-
const language = args.language === "javascript" ? "javascript" : "python";
|
|
41
|
-
return (
|
|
42
|
-
<div className="space-y-6">
|
|
43
|
-
<SandboxComposed
|
|
44
|
-
code={code}
|
|
45
|
-
language={language}
|
|
46
|
-
output={result?.message}
|
|
47
|
-
state={tool.state}
|
|
48
|
-
title={title}
|
|
49
|
-
/>
|
|
50
|
-
|
|
51
|
-
<CodeExecutionChart value={result?.chart} />
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
const CodeExecution = defineToolRenderer({
|
|
57
|
-
inputSchema: codeExecutionInput,
|
|
58
|
-
outputSchema: codeExecutionResult,
|
|
59
|
-
render: CodeExecutionView,
|
|
60
|
-
streamingInputSchema: codeExecutionInput.partial().extend({
|
|
61
|
-
// oxlint-disable-next-line promise/prefer-await-to-then, unicorn/no-useless-undefined -- oxc-project/oxc#22161: synchronous Zod fallback preserves streamed code on invalid language. Zod requires the undefined fallback argument.
|
|
62
|
-
language: codeExecutionInput.shape.language.optional().catch(undefined),
|
|
63
|
-
// oxlint-disable-next-line promise/prefer-await-to-then, unicorn/no-useless-undefined -- oxc-project/oxc#22161: synchronous Zod fallback preserves streamed code on invalid title. Zod requires the undefined fallback argument.
|
|
64
|
-
title: codeExecutionInput.shape.title.optional().catch(undefined),
|
|
65
|
-
}),
|
|
66
|
-
});
|
|
67
|
-
export { CodeExecution };
|
|
68
|
-
export type { CodeExecutionTool };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { supportedExecutionLanguages } from "@/chatjs/tools/_shared/code-execution/types";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
const codeExecutionInput = z.object({
|
|
5
|
-
code: z
|
|
6
|
-
.string()
|
|
7
|
-
.describe(
|
|
8
|
-
"The code to execute in the selected sandbox language. Print anything you want to return, or assign to 'result'/'results'."
|
|
9
|
-
),
|
|
10
|
-
language: z
|
|
11
|
-
.enum(supportedExecutionLanguages)
|
|
12
|
-
.default("python")
|
|
13
|
-
.describe("The language to execute: 'python' or 'javascript'."),
|
|
14
|
-
title: z.string().describe("The title of the code snippet."),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const encodedChart = z.object({ base64: z.string(), format: z.string() });
|
|
18
|
-
const chartRecord = z.record(z.string(), z.json());
|
|
19
|
-
const codeExecutionResult = z.object({
|
|
20
|
-
message: z.string(),
|
|
21
|
-
chart: z.union([z.string(), encodedChart, chartRecord]),
|
|
22
|
-
});
|
|
23
|
-
export { codeExecutionInput, codeExecutionResult };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { CodeExecutor } from "@/lib/eve/code-executor";
|
|
2
|
-
import { codeExecutionInput, codeExecutionResult } from "./schemas";
|
|
3
|
-
import { defineTool } from "eve/tools";
|
|
4
|
-
import { eveCodeSandboxOwnership } from "@/lib/eve/code-sandbox-ownership";
|
|
5
|
-
import { createModuleLogger } from "@/lib/logger";
|
|
6
|
-
import { executeJavaScriptInSandbox } from "@/chatjs/tools/_shared/code-execution/javascript";
|
|
7
|
-
import { executePythonInSandbox } from "@/chatjs/tools/_shared/code-execution/python";
|
|
8
|
-
import { executeWithToolUsage } from "@/lib/eve/tool-usage";
|
|
9
|
-
import { toolResultToModelOutput } from "@/lib/eve/tool-model-output";
|
|
10
|
-
import { getSandboxProvider } from "@/lib/sandbox/runtime";
|
|
11
|
-
import { withSandbox } from "@chat-js/sandboxes/runtime";
|
|
12
|
-
|
|
13
|
-
const EXECUTION_COST_USD = 0.05;
|
|
14
|
-
const executeCode: CodeExecutor = async (input, context) =>
|
|
15
|
-
await executeWithToolUsage(context, async (usage) => {
|
|
16
|
-
const log = createModuleLogger("code-execution");
|
|
17
|
-
usage.addCostUsd(0);
|
|
18
|
-
try {
|
|
19
|
-
const result = await withSandbox(
|
|
20
|
-
getSandboxProvider(),
|
|
21
|
-
{
|
|
22
|
-
ownership: eveCodeSandboxOwnership(context),
|
|
23
|
-
runtime: input.language,
|
|
24
|
-
signal: context.abortSignal,
|
|
25
|
-
},
|
|
26
|
-
async (sandbox) => {
|
|
27
|
-
const execution = {
|
|
28
|
-
code: input.code,
|
|
29
|
-
log,
|
|
30
|
-
requestId: context.callId,
|
|
31
|
-
sandbox,
|
|
32
|
-
};
|
|
33
|
-
return input.language === "javascript"
|
|
34
|
-
? await executeJavaScriptInSandbox(execution)
|
|
35
|
-
: await executePythonInSandbox(execution);
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
const output = codeExecutionResult.parse(result);
|
|
39
|
-
usage.addCostUsd(EXECUTION_COST_USD);
|
|
40
|
-
return output;
|
|
41
|
-
} catch (error) {
|
|
42
|
-
log.error({ error, callId: context.callId }, "code execution failed");
|
|
43
|
-
return usage.fail();
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
const codeExecution = defineTool({
|
|
48
|
-
description: `Sandboxed code execution for Python and JavaScript.
|
|
49
|
-
|
|
50
|
-
Use for:
|
|
51
|
-
- Execute Python for calculations, data analysis, and visualisations
|
|
52
|
-
- Execute JavaScript for scripting, transformations, async fetches, and general runtime checks
|
|
53
|
-
|
|
54
|
-
Python support:
|
|
55
|
-
- matplotlib, pandas, numpy, sympy, yfinance pre-installed — do NOT reinstall them
|
|
56
|
-
- Produce interactive line / scatter / bar charts OR matplotlib PNG charts
|
|
57
|
-
- Install extra libs by adding lines like: '!pip install <pkg> [<pkg2> ...]' (we auto-install and strip these lines; pre-installed packages are ignored)
|
|
58
|
-
|
|
59
|
-
JavaScript support:
|
|
60
|
-
- Runs in a sandboxed Node.js runtime, never in the browser thread
|
|
61
|
-
- Use console.log(...) to print output
|
|
62
|
-
- You can also assign 'result' or 'results', or return a value from the snippet
|
|
63
|
-
|
|
64
|
-
Chart output — Python only:
|
|
65
|
-
1. Interactive chart (preferred for line/scatter/bar): assign a 'chart' variable matching this schema:
|
|
66
|
-
chart = {
|
|
67
|
-
"type": "line" | "scatter" | "bar",
|
|
68
|
-
"title": "My Chart",
|
|
69
|
-
"x_label": "X", # optional
|
|
70
|
-
"y_label": "Y", # optional
|
|
71
|
-
"x_scale": "datetime" | None, # optional, for time-series x axes
|
|
72
|
-
"elements": [
|
|
73
|
-
# for line/scatter: {"label": "Series A", "points": [[x1,y1],[x2,y2],...]}
|
|
74
|
-
# for bar: {"label": "Category", "group": "Group A", "value": 42}
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
2. Matplotlib PNG: use plt.plot()/plt.savefig() normally (no need to call plt.show())
|
|
78
|
-
|
|
79
|
-
Restrictions:
|
|
80
|
-
- No images in the assistant response; don't embed them
|
|
81
|
-
- Interactive chart: only line / scatter / bar types
|
|
82
|
-
|
|
83
|
-
Output rules:
|
|
84
|
-
- Set language to 'python' or 'javascript'
|
|
85
|
-
- Python charts: assign 'chart' dict for interactive charts (takes priority over matplotlib PNG)
|
|
86
|
-
- Python values: assign 'result' or 'results', or print explicitly
|
|
87
|
-
- JavaScript values: assign 'result' or 'results', return a value, or print explicitly
|
|
88
|
-
- Don't rely on implicit REPL last-expression output`,
|
|
89
|
-
execute: executeCode,
|
|
90
|
-
inputSchema: codeExecutionInput,
|
|
91
|
-
toModelOutput: toolResultToModelOutput,
|
|
92
|
-
});
|
|
93
|
-
export { codeExecution, executeCode };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineAgent, defineDynamic } from "eve";
|
|
2
|
-
import { resolveAccountedEveModel } from "@/lib/eve/model-accounting";
|
|
3
|
-
import { getDeepResearchConfig } from "./configuration";
|
|
4
|
-
|
|
5
|
-
type Phase = "research" | "compression" | "final_report";
|
|
6
|
-
export const defineResearchAgent = (phase: Phase) =>
|
|
7
|
-
defineAgent({
|
|
8
|
-
defaultTools: false,
|
|
9
|
-
description: `Deep research ${phase} phase. Called by the research workflow.`,
|
|
10
|
-
model: defineDynamic(
|
|
11
|
-
async (context) =>
|
|
12
|
-
await resolveAccountedEveModel(
|
|
13
|
-
getDeepResearchConfig()[`${phase}_model`],
|
|
14
|
-
context
|
|
15
|
-
)
|
|
16
|
-
),
|
|
17
|
-
tool: false,
|
|
18
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isAccountSession } from "@/lib/eve/session-identity";
|
|
2
|
-
import { eveTurnAccount, eveTurnTool } from "@/lib/eve/turn-tools";
|
|
3
|
-
import {
|
|
4
|
-
installedDocumentKinds,
|
|
5
|
-
installedToolNames,
|
|
6
|
-
} from "@/integrations/tools/catalog";
|
|
7
|
-
import type { ToolContext } from "eve/tools";
|
|
8
|
-
import { toolProviders } from "@/integrations/tools/providers";
|
|
9
|
-
|
|
10
|
-
export const researchAvailable = (
|
|
11
|
-
session: Pick<ToolContext["session"], "auth" | "parent">
|
|
12
|
-
): boolean => {
|
|
13
|
-
const selected = eveTurnTool.get();
|
|
14
|
-
return (
|
|
15
|
-
isAccountSession(session) &&
|
|
16
|
-
!session.parent &&
|
|
17
|
-
eveTurnAccount.get() &&
|
|
18
|
-
(selected === null || selected === "deepResearch") &&
|
|
19
|
-
installedToolNames.has("deepResearch") &&
|
|
20
|
-
installedDocumentKinds.has("text") &&
|
|
21
|
-
Object.hasOwn(toolProviders, "webSearch")
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { languageModelSchema, modelRoles } from "@/lib/config-models";
|
|
3
|
-
|
|
4
|
-
const MINIMUM_COUNT = 1;
|
|
5
|
-
const MAX_CONCURRENT_UNITS = 20;
|
|
6
|
-
const MAX_ITERATIONS = 10;
|
|
7
|
-
const MAX_QUERIES = 10;
|
|
8
|
-
const DEFAULT_CONCURRENT_UNITS = 2;
|
|
9
|
-
const DEFAULT_ITERATIONS = 1;
|
|
10
|
-
const DEFAULT_QUERIES = 2;
|
|
11
|
-
const configSchema = z
|
|
12
|
-
.strictObject({
|
|
13
|
-
allowClarification: z.boolean().default(true),
|
|
14
|
-
defaultModel: languageModelSchema.default(modelRoles.fast),
|
|
15
|
-
finalReportModel: languageModelSchema.default(modelRoles.smart),
|
|
16
|
-
maxConcurrentResearchUnits: z
|
|
17
|
-
.number()
|
|
18
|
-
.int()
|
|
19
|
-
.min(MINIMUM_COUNT)
|
|
20
|
-
.max(MAX_CONCURRENT_UNITS)
|
|
21
|
-
.default(DEFAULT_CONCURRENT_UNITS),
|
|
22
|
-
maxResearcherIterations: z
|
|
23
|
-
.number()
|
|
24
|
-
.int()
|
|
25
|
-
.min(MINIMUM_COUNT)
|
|
26
|
-
.max(MAX_ITERATIONS)
|
|
27
|
-
.default(DEFAULT_ITERATIONS),
|
|
28
|
-
maxSearchQueries: z
|
|
29
|
-
.number()
|
|
30
|
-
.int()
|
|
31
|
-
.min(MINIMUM_COUNT)
|
|
32
|
-
.max(MAX_QUERIES)
|
|
33
|
-
.default(DEFAULT_QUERIES),
|
|
34
|
-
})
|
|
35
|
-
.prefault({});
|
|
36
|
-
export { configSchema };
|