genaicode 1.0.0 → 2.0.0
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 +269 -87
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/client.d.ts +36 -0
- package/dist/core/client.js +121 -0
- package/dist/core/client.js.map +1 -0
- package/dist/core/plugins.d.ts +14 -0
- package/dist/core/plugins.js +31 -0
- package/dist/core/plugins.js.map +1 -0
- package/dist/core/prompt.d.ts +14 -0
- package/dist/core/prompt.js +47 -0
- package/dist/core/prompt.js.map +1 -0
- package/dist/core/result.d.ts +5 -0
- package/dist/core/result.js +23 -0
- package/dist/core/result.js.map +1 -0
- package/dist/core/types.d.ts +103 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +7 -8
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/dist/pivot-notice.d.ts +1 -0
- package/dist/pivot-notice.js +13 -0
- package/dist/pivot-notice.js.map +1 -0
- package/dist/providers/anthropic-converter.d.ts +12 -0
- package/dist/providers/anthropic-converter.js +111 -0
- package/dist/providers/anthropic-converter.js.map +1 -0
- package/dist/providers/anthropic.d.ts +11 -0
- package/dist/providers/anthropic.js +28 -0
- package/dist/providers/anthropic.js.map +1 -0
- package/dist/providers/google-converter.d.ts +10 -0
- package/dist/providers/google-converter.js +142 -0
- package/dist/providers/google-converter.js.map +1 -0
- package/dist/providers/google.d.ts +22 -0
- package/dist/providers/google.js +35 -0
- package/dist/providers/google.js.map +1 -0
- package/dist/providers/openai-converter.d.ts +16 -0
- package/dist/providers/openai-converter.js +110 -0
- package/dist/providers/openai-converter.js.map +1 -0
- package/dist/providers/openai.d.ts +13 -0
- package/dist/providers/openai.js +29 -0
- package/dist/providers/openai.js.map +1 -0
- package/dist/providers.d.ts +11 -0
- package/dist/providers.js +7 -0
- package/dist/providers.js.map +1 -0
- package/docs/pivot.md +95 -0
- package/package.json +32 -91
- package/bin/genaicode-dev.js +0 -12
- package/bin/genaicode.cjs +0 -23
- package/dist/ai-service/ai-studio.d.ts +0 -6
- package/dist/ai-service/ai-studio.js +0 -460
- package/dist/ai-service/ai-studio.js.map +0 -1
- package/dist/ai-service/anthropic.d.ts +0 -5
- package/dist/ai-service/anthropic.js +0 -353
- package/dist/ai-service/anthropic.js.map +0 -1
- package/dist/ai-service/common-types.d.ts +0 -131
- package/dist/ai-service/common-types.js +0 -10
- package/dist/ai-service/common-types.js.map +0 -1
- package/dist/ai-service/common.d.ts +0 -23
- package/dist/ai-service/common.js +0 -59
- package/dist/ai-service/common.js.map +0 -1
- package/dist/ai-service/dall-e.d.ts +0 -7
- package/dist/ai-service/dall-e.js +0 -44
- package/dist/ai-service/dall-e.js.map +0 -1
- package/dist/ai-service/files-api.d.ts +0 -33
- package/dist/ai-service/files-api.js +0 -239
- package/dist/ai-service/files-api.js.map +0 -1
- package/dist/ai-service/github-models.d.ts +0 -13
- package/dist/ai-service/github-models.js +0 -49
- package/dist/ai-service/github-models.js.map +0 -1
- package/dist/ai-service/local-llm.d.ts +0 -6
- package/dist/ai-service/local-llm.js +0 -74
- package/dist/ai-service/local-llm.js.map +0 -1
- package/dist/ai-service/openai-responses.d.ts +0 -9
- package/dist/ai-service/openai-responses.js +0 -332
- package/dist/ai-service/openai-responses.js.map +0 -1
- package/dist/ai-service/openai.d.ts +0 -9
- package/dist/ai-service/openai.js +0 -395
- package/dist/ai-service/openai.js.map +0 -1
- package/dist/ai-service/service-configurations-types.d.ts +0 -79
- package/dist/ai-service/service-configurations-types.js +0 -6
- package/dist/ai-service/service-configurations-types.js.map +0 -1
- package/dist/ai-service/service-configurations.d.ts +0 -42
- package/dist/ai-service/service-configurations.js +0 -241
- package/dist/ai-service/service-configurations.js.map +0 -1
- package/dist/ai-service/unescape-function-call.d.ts +0 -7
- package/dist/ai-service/unescape-function-call.js +0 -59
- package/dist/ai-service/unescape-function-call.js.map +0 -1
- package/dist/ai-service/vertex-ai-claude.d.ts +0 -5
- package/dist/ai-service/vertex-ai-claude.js +0 -160
- package/dist/ai-service/vertex-ai-claude.js.map +0 -1
- package/dist/ai-service/vertex-ai-imagen.d.ts +0 -7
- package/dist/ai-service/vertex-ai-imagen.js +0 -70
- package/dist/ai-service/vertex-ai-imagen.js.map +0 -1
- package/dist/ai-service/vertex-ai.d.ts +0 -6
- package/dist/ai-service/vertex-ai.js +0 -18
- package/dist/ai-service/vertex-ai.js.map +0 -1
- package/dist/cli/cli-options.d.ts +0 -10
- package/dist/cli/cli-options.js +0 -116
- package/dist/cli/cli-options.js.map +0 -1
- package/dist/cli/cli-params.d.ts +0 -29
- package/dist/cli/cli-params.js +0 -118
- package/dist/cli/cli-params.js.map +0 -1
- package/dist/cli/service-autodetect.d.ts +0 -2
- package/dist/cli/service-autodetect.js +0 -17
- package/dist/cli/service-autodetect.js.map +0 -1
- package/dist/cli/validate-cli-params.d.ts +0 -18
- package/dist/cli/validate-cli-params.js +0 -146
- package/dist/cli/validate-cli-params.js.map +0 -1
- package/dist/files/cache-file.d.ts +0 -10
- package/dist/files/cache-file.js +0 -57
- package/dist/files/cache-file.js.map +0 -1
- package/dist/files/file-id-utils.d.ts +0 -7
- package/dist/files/file-id-utils.js +0 -25
- package/dist/files/file-id-utils.js.map +0 -1
- package/dist/files/file-utils.d.ts +0 -2
- package/dist/files/file-utils.js +0 -7
- package/dist/files/file-utils.js.map +0 -1
- package/dist/files/find-files.d.ts +0 -10
- package/dist/files/find-files.js +0 -87
- package/dist/files/find-files.js.map +0 -1
- package/dist/files/path-utils.d.ts +0 -1
- package/dist/files/path-utils.js +0 -12
- package/dist/files/path-utils.js.map +0 -1
- package/dist/files/read-files.d.ts +0 -18
- package/dist/files/read-files.js +0 -107
- package/dist/files/read-files.js.map +0 -1
- package/dist/files/search-files.d.ts +0 -53
- package/dist/files/search-files.js +0 -97
- package/dist/files/search-files.js.map +0 -1
- package/dist/files/source-code-tree.d.ts +0 -16
- package/dist/files/source-code-tree.js +0 -41
- package/dist/files/source-code-tree.js.map +0 -1
- package/dist/files/source-code-types.d.ts +0 -53
- package/dist/files/source-code-types.js +0 -2
- package/dist/files/source-code-types.js.map +0 -1
- package/dist/files/source-code-utils.d.ts +0 -31
- package/dist/files/source-code-utils.js +0 -126
- package/dist/files/source-code-utils.js.map +0 -1
- package/dist/files/summary-cache.d.ts +0 -25
- package/dist/files/summary-cache.js +0 -23
- package/dist/files/summary-cache.js.map +0 -1
- package/dist/files/temp-buffer.d.ts +0 -2
- package/dist/files/temp-buffer.js +0 -12
- package/dist/files/temp-buffer.js.map +0 -1
- package/dist/files/update-files.d.ts +0 -7
- package/dist/files/update-files.js +0 -30
- package/dist/files/update-files.js.map +0 -1
- package/dist/help-docs/genaicode-help-document.d.ts +0 -1
- package/dist/help-docs/genaicode-help-document.js +0 -287
- package/dist/help-docs/genaicode-help-document.js.map +0 -1
- package/dist/images/ensure-alpha.d.ts +0 -1
- package/dist/images/ensure-alpha.js +0 -5
- package/dist/images/ensure-alpha.js.map +0 -1
- package/dist/images/imgly-remove-background.d.ts +0 -2
- package/dist/images/imgly-remove-background.js +0 -21
- package/dist/images/imgly-remove-background.js.map +0 -1
- package/dist/images/resize-image.d.ts +0 -19
- package/dist/images/resize-image.js +0 -22
- package/dist/images/resize-image.js.map +0 -1
- package/dist/images/split-image.d.ts +0 -18
- package/dist/images/split-image.js +0 -25
- package/dist/images/split-image.js.map +0 -1
- package/dist/main/codegen-non-interactive.d.ts +0 -2
- package/dist/main/codegen-non-interactive.js +0 -20
- package/dist/main/codegen-non-interactive.js.map +0 -1
- package/dist/main/codegen-types.d.ts +0 -145
- package/dist/main/codegen-types.js +0 -2
- package/dist/main/codegen-types.js.map +0 -1
- package/dist/main/codegen-utils.d.ts +0 -8
- package/dist/main/codegen-utils.js +0 -43
- package/dist/main/codegen-utils.js.map +0 -1
- package/dist/main/codegen.d.ts +0 -5
- package/dist/main/codegen.js +0 -105
- package/dist/main/codegen.js.map +0 -1
- package/dist/main/codegen.test-utils.d.ts +0 -81
- package/dist/main/codegen.test-utils.js +0 -87
- package/dist/main/codegen.test-utils.js.map +0 -1
- package/dist/main/common/abort-controller.d.ts +0 -2
- package/dist/main/common/abort-controller.js +0 -5
- package/dist/main/common/abort-controller.js.map +0 -1
- package/dist/main/common/app-context-bus.d.ts +0 -11
- package/dist/main/common/app-context-bus.js +0 -29
- package/dist/main/common/app-context-bus.js.map +0 -1
- package/dist/main/common/console-types.d.ts +0 -23
- package/dist/main/common/console-types.js +0 -8
- package/dist/main/common/console-types.js.map +0 -1
- package/dist/main/common/content-bus-types.d.ts +0 -60
- package/dist/main/common/content-bus-types.js +0 -12
- package/dist/main/common/content-bus-types.js.map +0 -1
- package/dist/main/common/content-bus.d.ts +0 -16
- package/dist/main/common/content-bus.js +0 -102
- package/dist/main/common/content-bus.js.map +0 -1
- package/dist/main/common/cost-collector.d.ts +0 -12
- package/dist/main/common/cost-collector.js +0 -90
- package/dist/main/common/cost-collector.js.map +0 -1
- package/dist/main/common/user-actions.d.ts +0 -36
- package/dist/main/common/user-actions.js +0 -59
- package/dist/main/common/user-actions.js.map +0 -1
- package/dist/main/config-lib.d.ts +0 -13
- package/dist/main/config-lib.js +0 -90
- package/dist/main/config-lib.js.map +0 -1
- package/dist/main/config-schema.d.ts +0 -15
- package/dist/main/config-schema.js +0 -320
- package/dist/main/config-schema.js.map +0 -1
- package/dist/main/config-types.d.ts +0 -96
- package/dist/main/config-types.js +0 -4
- package/dist/main/config-types.js.map +0 -1
- package/dist/main/config.d.ts +0 -14
- package/dist/main/config.js +0 -110
- package/dist/main/config.js.map +0 -1
- package/dist/main/generate-content-functions.d.ts +0 -3
- package/dist/main/generate-content-functions.js +0 -19
- package/dist/main/generate-content-functions.js.map +0 -1
- package/dist/main/interactive/codegen-interactive.d.ts +0 -2
- package/dist/main/interactive/codegen-interactive.js +0 -57
- package/dist/main/interactive/codegen-interactive.js.map +0 -1
- package/dist/main/interactive/codegen-worker.d.ts +0 -2
- package/dist/main/interactive/codegen-worker.js +0 -55
- package/dist/main/interactive/codegen-worker.js.map +0 -1
- package/dist/main/interactive/common.d.ts +0 -5
- package/dist/main/interactive/common.js +0 -49
- package/dist/main/interactive/common.js.map +0 -1
- package/dist/main/interactive/configure.d.ts +0 -2
- package/dist/main/interactive/configure.js +0 -95
- package/dist/main/interactive/configure.js.map +0 -1
- package/dist/main/interactive/error-handling.d.ts +0 -1
- package/dist/main/interactive/error-handling.js +0 -43
- package/dist/main/interactive/error-handling.js.map +0 -1
- package/dist/main/interactive/help.d.ts +0 -1
- package/dist/main/interactive/help.js +0 -20
- package/dist/main/interactive/help.js.map +0 -1
- package/dist/main/interactive/select-ai-service.d.ts +0 -2
- package/dist/main/interactive/select-ai-service.js +0 -27
- package/dist/main/interactive/select-ai-service.js.map +0 -1
- package/dist/main/interactive/task-file.d.ts +0 -2
- package/dist/main/interactive/task-file.js +0 -35
- package/dist/main/interactive/task-file.js.map +0 -1
- package/dist/main/interactive/text-prompt.d.ts +0 -2
- package/dist/main/interactive/text-prompt.js +0 -18
- package/dist/main/interactive/text-prompt.js.map +0 -1
- package/dist/main/interactive/user-action-handlers.d.ts +0 -1
- package/dist/main/interactive/user-action-handlers.js +0 -20
- package/dist/main/interactive/user-action-handlers.js.map +0 -1
- package/dist/main/interactive/user-interrupt.d.ts +0 -1
- package/dist/main/interactive/user-interrupt.js +0 -36
- package/dist/main/interactive/user-interrupt.js.map +0 -1
- package/dist/main/knowledge/knowledge-store.d.ts +0 -6
- package/dist/main/knowledge/knowledge-store.js +0 -128
- package/dist/main/knowledge/knowledge-store.js.map +0 -1
- package/dist/main/knowledge/types.d.ts +0 -20
- package/dist/main/knowledge/types.js +0 -2
- package/dist/main/knowledge/types.js.map +0 -1
- package/dist/main/plugin-loader.d.ts +0 -36
- package/dist/main/plugin-loader.js +0 -245
- package/dist/main/plugin-loader.js.map +0 -1
- package/dist/main/ui/backend/api-handlers.d.ts +0 -6
- package/dist/main/ui/backend/api-handlers.js +0 -5
- package/dist/main/ui/backend/api-handlers.js.map +0 -1
- package/dist/main/ui/backend/api-utils.d.ts +0 -2
- package/dist/main/ui/backend/api-utils.js +0 -18
- package/dist/main/ui/backend/api-utils.js.map +0 -1
- package/dist/main/ui/backend/api.d.ts +0 -3
- package/dist/main/ui/backend/api.js +0 -25
- package/dist/main/ui/backend/api.js.map +0 -1
- package/dist/main/ui/backend/endpoints/compress-context-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/compress-context-endpoint.js +0 -18
- package/dist/main/ui/backend/endpoints/compress-context-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/config-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/config-endpoint.js +0 -51
- package/dist/main/ui/backend/endpoints/config-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/console-logs-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/console-logs-endpoint.js +0 -19
- package/dist/main/ui/backend/endpoints/console-logs-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/content-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/content-endpoint.js +0 -14
- package/dist/main/ui/backend/endpoints/content-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/context-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/context-endpoint.js +0 -169
- package/dist/main/ui/backend/endpoints/context-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/edit-message-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/edit-message-endpoint.js +0 -37
- package/dist/main/ui/backend/endpoints/edit-message-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.js +0 -44
- package/dist/main/ui/backend/endpoints/execute-codegen-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/execution-status-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/execution-status-endpoint.js +0 -37
- package/dist/main/ui/backend/endpoints/execution-status-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/generate-content-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/generate-content-endpoint.js +0 -29
- package/dist/main/ui/backend/endpoints/generate-content-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/index.d.ts +0 -13
- package/dist/main/ui/backend/endpoints/index.js +0 -14
- package/dist/main/ui/backend/endpoints/index.js.map +0 -1
- package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js +0 -28
- package/dist/main/ui/backend/endpoints/interrupt-execution-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/iteration-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/iteration-endpoint.js +0 -16
- package/dist/main/ui/backend/endpoints/iteration-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/question-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/question-endpoint.js +0 -72
- package/dist/main/ui/backend/endpoints/question-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/service-configuration-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/service-configuration-endpoint.js +0 -54
- package/dist/main/ui/backend/endpoints/service-configuration-endpoint.js.map +0 -1
- package/dist/main/ui/backend/endpoints/usage-endpoint.d.ts +0 -1
- package/dist/main/ui/backend/endpoints/usage-endpoint.js +0 -15
- package/dist/main/ui/backend/endpoints/usage-endpoint.js.map +0 -1
- package/dist/main/ui/backend/server.d.ts +0 -8
- package/dist/main/ui/backend/server.js +0 -84
- package/dist/main/ui/backend/server.js.map +0 -1
- package/dist/main/ui/backend/service.d.ts +0 -159
- package/dist/main/ui/backend/service.js +0 -626
- package/dist/main/ui/backend/service.js.map +0 -1
- package/dist/main/ui/codegen-ui.d.ts +0 -6
- package/dist/main/ui/codegen-ui.js +0 -22
- package/dist/main/ui/codegen-ui.js.map +0 -1
- package/dist/main/ui/common/api-types.d.ts +0 -170
- package/dist/main/ui/common/api-types.js +0 -13
- package/dist/main/ui/common/api-types.js.map +0 -1
- package/dist/main/ui/frontend/assets/favicon-DvroFOpS.png +0 -0
- package/dist/main/ui/frontend/assets/index-5QDg_0vR.css +0 -1
- package/dist/main/ui/frontend/assets/index-C_k1AhO2.js +0 -3445
- package/dist/main/ui/frontend/assets/logo-BGHkG1-J.png +0 -0
- package/dist/main/ui/frontend/assets/logo-dark-KAsU1C78.png +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-cyrillic-400-normal-oElOGqNf.woff2 +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-cyrillic-ext-400-normal-COIQET2s.woff2 +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-greek-400-normal-DUIT0YPZ.woff2 +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-latin-400-normal-BKfmdmKK.woff +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-latin-400-normal-xj9lRvVs.woff2 +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-latin-ext-400-normal-B18ub5-k.woff +0 -0
- package/dist/main/ui/frontend/assets/press-start-2p-latin-ext-400-normal-DDIa4im3.woff2 +0 -0
- package/dist/main/ui/frontend/assets/wolf-bark-Bl17CX4O.mp3 +0 -0
- package/dist/main/ui/frontend/index.html +0 -16
- package/dist/main/ui/user-action-handlers.d.ts +0 -2
- package/dist/main/ui/user-action-handlers.js +0 -34
- package/dist/main/ui/user-action-handlers.js.map +0 -1
- package/dist/operations/create-directory/create-directory-def.d.ts +0 -9
- package/dist/operations/create-directory/create-directory-def.js +0 -22
- package/dist/operations/create-directory/create-directory-def.js.map +0 -1
- package/dist/operations/create-directory/create-directory-executor.d.ts +0 -6
- package/dist/operations/create-directory/create-directory-executor.js +0 -22
- package/dist/operations/create-directory/create-directory-executor.js.map +0 -1
- package/dist/operations/create-file/create-file-def.d.ts +0 -10
- package/dist/operations/create-file/create-file-def.js +0 -29
- package/dist/operations/create-file/create-file-def.js.map +0 -1
- package/dist/operations/create-file/create-file-executor.d.ts +0 -6
- package/dist/operations/create-file/create-file-executor.js +0 -27
- package/dist/operations/create-file/create-file-executor.js.map +0 -1
- package/dist/operations/delete-file/delete-file-def.d.ts +0 -9
- package/dist/operations/delete-file/delete-file-def.js +0 -22
- package/dist/operations/delete-file/delete-file-def.js.map +0 -1
- package/dist/operations/delete-file/delete-file-executor.d.ts +0 -6
- package/dist/operations/delete-file/delete-file-executor.js +0 -23
- package/dist/operations/delete-file/delete-file-executor.js.map +0 -1
- package/dist/operations/download-file/download-file-def.d.ts +0 -10
- package/dist/operations/download-file/download-file-def.js +0 -26
- package/dist/operations/download-file/download-file-def.js.map +0 -1
- package/dist/operations/download-file/download-file-executor.d.ts +0 -6
- package/dist/operations/download-file/download-file-executor.js +0 -44
- package/dist/operations/download-file/download-file-executor.js.map +0 -1
- package/dist/operations/imgly-remove-background/imgly-remove-background-def.d.ts +0 -10
- package/dist/operations/imgly-remove-background/imgly-remove-background-def.js +0 -26
- package/dist/operations/imgly-remove-background/imgly-remove-background-def.js.map +0 -1
- package/dist/operations/imgly-remove-background/imgly-remove-background-executor.d.ts +0 -6
- package/dist/operations/imgly-remove-background/imgly-remove-background-executor.js +0 -40
- package/dist/operations/imgly-remove-background/imgly-remove-background-executor.js.map +0 -1
- package/dist/operations/move-file/move-file-def.d.ts +0 -10
- package/dist/operations/move-file/move-file-def.js +0 -26
- package/dist/operations/move-file/move-file-def.js.map +0 -1
- package/dist/operations/move-file/move-file-executor.d.ts +0 -6
- package/dist/operations/move-file/move-file-executor.js +0 -29
- package/dist/operations/move-file/move-file-executor.js.map +0 -1
- package/dist/operations/operations-index.d.ts +0 -3
- package/dist/operations/operations-index.js +0 -33
- package/dist/operations/operations-index.js.map +0 -1
- package/dist/operations/patch-file/patch-file-def.d.ts +0 -10
- package/dist/operations/patch-file/patch-file-def.js +0 -40
- package/dist/operations/patch-file/patch-file-def.js.map +0 -1
- package/dist/operations/patch-file/patch-file-executor.d.ts +0 -5
- package/dist/operations/patch-file/patch-file-executor.js +0 -26
- package/dist/operations/patch-file/patch-file-executor.js.map +0 -1
- package/dist/operations/resize-image/resize-image-def.d.ts +0 -13
- package/dist/operations/resize-image/resize-image-def.js +0 -37
- package/dist/operations/resize-image/resize-image-def.js.map +0 -1
- package/dist/operations/resize-image/resize-image-executor.d.ts +0 -5
- package/dist/operations/resize-image/resize-image-executor.js +0 -30
- package/dist/operations/resize-image/resize-image-executor.js.map +0 -1
- package/dist/operations/split-image/split-image-def.d.ts +0 -18
- package/dist/operations/split-image/split-image-def.js +0 -46
- package/dist/operations/split-image/split-image-def.js.map +0 -1
- package/dist/operations/split-image/split-image-executor.d.ts +0 -6
- package/dist/operations/split-image/split-image-executor.js +0 -51
- package/dist/operations/split-image/split-image-executor.js.map +0 -1
- package/dist/operations/update-file/update-file-def.d.ts +0 -10
- package/dist/operations/update-file/update-file-def.js +0 -27
- package/dist/operations/update-file/update-file-def.js.map +0 -1
- package/dist/operations/update-file/update-file-executor.d.ts +0 -5
- package/dist/operations/update-file/update-file-executor.js +0 -22
- package/dist/operations/update-file/update-file-executor.js.map +0 -1
- package/dist/project-profiles/detection.d.ts +0 -40
- package/dist/project-profiles/detection.js +0 -131
- package/dist/project-profiles/detection.js.map +0 -1
- package/dist/project-profiles/index.d.ts +0 -35
- package/dist/project-profiles/index.js +0 -72
- package/dist/project-profiles/index.js.map +0 -1
- package/dist/project-profiles/profiles/golang.d.ts +0 -65
- package/dist/project-profiles/profiles/golang.js +0 -208
- package/dist/project-profiles/profiles/golang.js.map +0 -1
- package/dist/project-profiles/profiles/java-maven.d.ts +0 -80
- package/dist/project-profiles/profiles/java-maven.js +0 -165
- package/dist/project-profiles/profiles/java-maven.js.map +0 -1
- package/dist/project-profiles/profiles/javascript-npm.d.ts +0 -40
- package/dist/project-profiles/profiles/javascript-npm.js +0 -118
- package/dist/project-profiles/profiles/javascript-npm.js.map +0 -1
- package/dist/project-profiles/profiles/javascript-react.d.ts +0 -46
- package/dist/project-profiles/profiles/javascript-react.js +0 -147
- package/dist/project-profiles/profiles/javascript-react.js.map +0 -1
- package/dist/project-profiles/profiles/python-django.d.ts +0 -58
- package/dist/project-profiles/profiles/python-django.js +0 -200
- package/dist/project-profiles/profiles/python-django.js.map +0 -1
- package/dist/project-profiles/types.d.ts +0 -122
- package/dist/project-profiles/types.js +0 -77
- package/dist/project-profiles/types.js.map +0 -1
- package/dist/prompt/ai-service-fallback.d.ts +0 -4
- package/dist/prompt/ai-service-fallback.js +0 -47
- package/dist/prompt/ai-service-fallback.js.map +0 -1
- package/dist/prompt/context-utils.d.ts +0 -7
- package/dist/prompt/context-utils.js +0 -33
- package/dist/prompt/context-utils.js.map +0 -1
- package/dist/prompt/dynamic-function-generator.d.ts +0 -2
- package/dist/prompt/dynamic-function-generator.js +0 -58
- package/dist/prompt/dynamic-function-generator.js.map +0 -1
- package/dist/prompt/function-calling-validate.d.ts +0 -4
- package/dist/prompt/function-calling-validate.js +0 -109
- package/dist/prompt/function-calling-validate.js.map +0 -1
- package/dist/prompt/function-calling.d.ts +0 -5
- package/dist/prompt/function-calling.js +0 -88
- package/dist/prompt/function-calling.js.map +0 -1
- package/dist/prompt/function-defs/analysis-result.d.ts +0 -7
- package/dist/prompt/function-defs/analysis-result.js +0 -24
- package/dist/prompt/function-defs/analysis-result.js.map +0 -1
- package/dist/prompt/function-defs/ask-question.d.ts +0 -20
- package/dist/prompt/function-defs/ask-question.js +0 -373
- package/dist/prompt/function-defs/ask-question.js.map +0 -1
- package/dist/prompt/function-defs/code-execution.d.ts +0 -7
- package/dist/prompt/function-defs/code-execution.js +0 -27
- package/dist/prompt/function-defs/code-execution.js.map +0 -1
- package/dist/prompt/function-defs/codegen-planning.d.ts +0 -8
- package/dist/prompt/function-defs/codegen-planning.js +0 -60
- package/dist/prompt/function-defs/codegen-planning.js.map +0 -1
- package/dist/prompt/function-defs/codegen-summary.d.ts +0 -5
- package/dist/prompt/function-defs/codegen-summary.js +0 -103
- package/dist/prompt/function-defs/codegen-summary.js.map +0 -1
- package/dist/prompt/function-defs/compound-action-list.d.ts +0 -7
- package/dist/prompt/function-defs/compound-action-list.js +0 -38
- package/dist/prompt/function-defs/compound-action-list.js.map +0 -1
- package/dist/prompt/function-defs/compound-action.d.ts +0 -2
- package/dist/prompt/function-defs/compound-action.js +0 -47
- package/dist/prompt/function-defs/compound-action.js.map +0 -1
- package/dist/prompt/function-defs/container-task-commands.d.ts +0 -10
- package/dist/prompt/function-defs/container-task-commands.js +0 -185
- package/dist/prompt/function-defs/container-task-commands.js.map +0 -1
- package/dist/prompt/function-defs/context-compression.d.ts +0 -47
- package/dist/prompt/function-defs/context-compression.js +0 -49
- package/dist/prompt/function-defs/context-compression.js.map +0 -1
- package/dist/prompt/function-defs/conversation-graph.d.ts +0 -33
- package/dist/prompt/function-defs/conversation-graph.js +0 -110
- package/dist/prompt/function-defs/conversation-graph.js.map +0 -1
- package/dist/prompt/function-defs/conversation-summary.d.ts +0 -2
- package/dist/prompt/function-defs/conversation-summary.js +0 -15
- package/dist/prompt/function-defs/conversation-summary.js.map +0 -1
- package/dist/prompt/function-defs/explanation.d.ts +0 -5
- package/dist/prompt/function-defs/explanation.js +0 -18
- package/dist/prompt/function-defs/explanation.js.map +0 -1
- package/dist/prompt/function-defs/explore-external-directories.d.ts +0 -16
- package/dist/prompt/function-defs/explore-external-directories.js +0 -48
- package/dist/prompt/function-defs/explore-external-directories.js.map +0 -1
- package/dist/prompt/function-defs/extract-file-fragments.d.ts +0 -27
- package/dist/prompt/function-defs/extract-file-fragments.js +0 -36
- package/dist/prompt/function-defs/extract-file-fragments.js.map +0 -1
- package/dist/prompt/function-defs/genaicode-help.d.ts +0 -6
- package/dist/prompt/function-defs/genaicode-help.js +0 -23
- package/dist/prompt/function-defs/genaicode-help.js.map +0 -1
- package/dist/prompt/function-defs/generate-image.d.ts +0 -5
- package/dist/prompt/function-defs/generate-image.js +0 -42
- package/dist/prompt/function-defs/generate-image.js.map +0 -1
- package/dist/prompt/function-defs/get-image-assets.d.ts +0 -5
- package/dist/prompt/function-defs/get-image-assets.js +0 -21
- package/dist/prompt/function-defs/get-image-assets.js.map +0 -1
- package/dist/prompt/function-defs/get-source-code.d.ts +0 -5
- package/dist/prompt/function-defs/get-source-code.js +0 -49
- package/dist/prompt/function-defs/get-source-code.js.map +0 -1
- package/dist/prompt/function-defs/iterate.d.ts +0 -20
- package/dist/prompt/function-defs/iterate.js +0 -373
- package/dist/prompt/function-defs/iterate.js.map +0 -1
- package/dist/prompt/function-defs/optimize-context.d.ts +0 -5
- package/dist/prompt/function-defs/optimize-context.js +0 -74
- package/dist/prompt/function-defs/optimize-context.js.map +0 -1
- package/dist/prompt/function-defs/perform-analysis.d.ts +0 -8
- package/dist/prompt/function-defs/perform-analysis.js +0 -28
- package/dist/prompt/function-defs/perform-analysis.js.map +0 -1
- package/dist/prompt/function-defs/pull-console-logs.d.ts +0 -2
- package/dist/prompt/function-defs/pull-console-logs.js +0 -29
- package/dist/prompt/function-defs/pull-console-logs.js.map +0 -1
- package/dist/prompt/function-defs/read-external-files.d.ts +0 -9
- package/dist/prompt/function-defs/read-external-files.js +0 -30
- package/dist/prompt/function-defs/read-external-files.js.map +0 -1
- package/dist/prompt/function-defs/read-history.d.ts +0 -2
- package/dist/prompt/function-defs/read-history.js +0 -14
- package/dist/prompt/function-defs/read-history.js.map +0 -1
- package/dist/prompt/function-defs/reasoning-inference.d.ts +0 -3
- package/dist/prompt/function-defs/reasoning-inference.js +0 -39
- package/dist/prompt/function-defs/reasoning-inference.js.map +0 -1
- package/dist/prompt/function-defs/run-bash-command.d.ts +0 -2
- package/dist/prompt/function-defs/run-bash-command.js +0 -29
- package/dist/prompt/function-defs/run-bash-command.js.map +0 -1
- package/dist/prompt/function-defs/run-container-task.d.ts +0 -11
- package/dist/prompt/function-defs/run-container-task.js +0 -41
- package/dist/prompt/function-defs/run-container-task.js.map +0 -1
- package/dist/prompt/function-defs/run-project-command.d.ts +0 -2
- package/dist/prompt/function-defs/run-project-command.js +0 -40
- package/dist/prompt/function-defs/run-project-command.js.map +0 -1
- package/dist/prompt/function-defs/set-summaries.d.ts +0 -5
- package/dist/prompt/function-defs/set-summaries.js +0 -59
- package/dist/prompt/function-defs/set-summaries.js.map +0 -1
- package/dist/prompt/function-defs/structured-question.d.ts +0 -2
- package/dist/prompt/function-defs/structured-question.js +0 -64
- package/dist/prompt/function-defs/structured-question.js.map +0 -1
- package/dist/prompt/function-defs/update-history.d.ts +0 -5
- package/dist/prompt/function-defs/update-history.js +0 -22
- package/dist/prompt/function-defs/update-history.js.map +0 -1
- package/dist/prompt/function-defs/web-search.d.ts +0 -9
- package/dist/prompt/function-defs/web-search.js +0 -16
- package/dist/prompt/function-defs/web-search.js.map +0 -1
- package/dist/prompt/limits.d.ts +0 -3
- package/dist/prompt/limits.js +0 -21
- package/dist/prompt/limits.js.map +0 -1
- package/dist/prompt/prompt-codegen.d.ts +0 -9
- package/dist/prompt/prompt-codegen.js +0 -45
- package/dist/prompt/prompt-codegen.js.map +0 -1
- package/dist/prompt/prompt-service.d.ts +0 -8
- package/dist/prompt/prompt-service.js +0 -147
- package/dist/prompt/prompt-service.js.map +0 -1
- package/dist/prompt/prompt-service.test-utils.d.ts +0 -66
- package/dist/prompt/prompt-service.test-utils.js +0 -171
- package/dist/prompt/prompt-service.test-utils.js.map +0 -1
- package/dist/prompt/source-code-optimize.d.ts +0 -2
- package/dist/prompt/source-code-optimize.js +0 -27
- package/dist/prompt/source-code-optimize.js.map +0 -1
- package/dist/prompt/static-prompts.d.ts +0 -17
- package/dist/prompt/static-prompts.js +0 -23
- package/dist/prompt/static-prompts.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/ask-question-handler.d.ts +0 -3
- package/dist/prompt/steps/step-ask-question/ask-question-handler.js +0 -13
- package/dist/prompt/steps/step-ask-question/ask-question-handler.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.d.ts +0 -7
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js +0 -301
- package/dist/prompt/steps/step-ask-question/handlers/container-task/command-execution-loop.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.d.ts +0 -12
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js +0 -41
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/check-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js +0 -49
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/complete-task.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js +0 -190
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-from-container.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js +0 -139
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/copy-to-container.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.d.ts +0 -10
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js +0 -93
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/edit-file.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js +0 -72
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/fail-task.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.d.ts +0 -10
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js +0 -125
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/gain-knowledge.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.d.ts +0 -19
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js +0 -33
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/interrupt-controller.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.d.ts +0 -8
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js +0 -85
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/query-knowledge.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.d.ts +0 -6
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js +0 -122
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/request-secret.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.d.ts +0 -7
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js +0 -146
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/run-command.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js +0 -56
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/send-message.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js +0 -56
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/set-execution-plan.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js +0 -39
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/update-execution-plan.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.d.ts +0 -10
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js +0 -95
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/view-file.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js +0 -96
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/web-search.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js +0 -123
- package/dist/prompt/steps/step-ask-question/handlers/container-task/commands/wrap-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.d.ts +0 -34
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js +0 -332
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-command-handlers.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.d.ts +0 -11
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js +0 -50
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-registry.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.d.ts +0 -28
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-commands-types.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js +0 -202
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-orchestrator.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.d.ts +0 -52
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/container-task/container-task-types.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js +0 -15
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-check.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.d.ts +0 -50
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js +0 -358
- package/dist/prompt/steps/step-ask-question/handlers/container-task/utils/docker-utils.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.d.ts +0 -47
- package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.js +0 -114
- package/dist/prompt/steps/step-ask-question/handlers/file-request-utils.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.d.ts +0 -4
- package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js +0 -177
- package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.d.ts +0 -20
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js +0 -305
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js +0 -40
- package/dist/prompt/steps/step-ask-question/handlers/handle-confirm-code-generation.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js +0 -35
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-compression.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js +0 -34
- package/dist/prompt/steps/step-ask-question/handlers/handle-context-optimization.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.d.ts +0 -11
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js +0 -503
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js +0 -159
- package/dist/prompt/steps/step-ask-question/handlers/handle-create-file.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js +0 -30
- package/dist/prompt/steps/step-ask-question/handlers/handle-end-conversation.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js +0 -280
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.d.ts +0 -8
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js +0 -105
- package/dist/prompt/steps/step-ask-question/handlers/handle-genaicode-help.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js +0 -110
- package/dist/prompt/steps/step-ask-question/handlers/handle-generate-image.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.d.ts +0 -6
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js +0 -60
- package/dist/prompt/steps/step-ask-question/handlers/handle-lint.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.d.ts +0 -6
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js +0 -110
- package/dist/prompt/steps/step-ask-question/handlers/handle-perform-analysis.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js +0 -282
- package/dist/prompt/steps/step-ask-question/handlers/handle-project-command.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.d.ts +0 -9
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js +0 -94
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-app-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js +0 -174
- package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.d.ts +0 -9
- package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js +0 -104
- package/dist/prompt/steps/step-ask-question/handlers/handle-push-app-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js +0 -149
- package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.d.ts +0 -7
- package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +0 -119
- package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js +0 -100
- package/dist/prompt/steps/step-ask-question/handlers/handle-remove-files-from-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.d.ts +0 -8
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js +0 -145
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-content.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.d.ts +0 -8
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js +0 -197
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-files-fragments.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.d.ts +0 -3
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js +0 -251
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js +0 -83
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-permissions.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js +0 -185
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-bash-command.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js +0 -7
- package/dist/prompt/steps/step-ask-question/handlers/handle-run-container-task.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +0 -96
- package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +0 -21
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.d.ts +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js +0 -72
- package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.d.ts +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +0 -161
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.d.ts +0 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js +0 -85
- package/dist/prompt/steps/step-ask-question/handlers/handle-web-search.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.d.ts +0 -3
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js +0 -5
- package/dist/prompt/steps/step-ask-question/step-ask-question-handlers.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +0 -257
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.js +0 -2
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.js.map +0 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +0 -37
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +0 -132
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +0 -1
- package/dist/prompt/steps/step-auto-context-refresh.d.ts +0 -6
- package/dist/prompt/steps/step-auto-context-refresh.js +0 -98
- package/dist/prompt/steps/step-auto-context-refresh.js.map +0 -1
- package/dist/prompt/steps/step-codegen-planning.d.ts +0 -11
- package/dist/prompt/steps/step-codegen-planning.js +0 -147
- package/dist/prompt/steps/step-codegen-planning.js.map +0 -1
- package/dist/prompt/steps/step-context-compression.d.ts +0 -8
- package/dist/prompt/steps/step-context-compression.js +0 -231
- package/dist/prompt/steps/step-context-compression.js.map +0 -1
- package/dist/prompt/steps/step-context-optimization.d.ts +0 -8
- package/dist/prompt/steps/step-context-optimization.js +0 -308
- package/dist/prompt/steps/step-context-optimization.js.map +0 -1
- package/dist/prompt/steps/step-ensure-context.d.ts +0 -8
- package/dist/prompt/steps/step-ensure-context.js +0 -114
- package/dist/prompt/steps/step-ensure-context.js.map +0 -1
- package/dist/prompt/steps/step-generate-codegen-summary-prompt.d.ts +0 -2
- package/dist/prompt/steps/step-generate-codegen-summary-prompt.js +0 -133
- package/dist/prompt/steps/step-generate-codegen-summary-prompt.js.map +0 -1
- package/dist/prompt/steps/step-generate-codegen-summary.d.ts +0 -14
- package/dist/prompt/steps/step-generate-codegen-summary.js +0 -68
- package/dist/prompt/steps/step-generate-codegen-summary.js.map +0 -1
- package/dist/prompt/steps/step-generate-image.d.ts +0 -10
- package/dist/prompt/steps/step-generate-image.js +0 -32
- package/dist/prompt/steps/step-generate-image.js.map +0 -1
- package/dist/prompt/steps/step-generate-summary.d.ts +0 -10
- package/dist/prompt/steps/step-generate-summary.js +0 -63
- package/dist/prompt/steps/step-generate-summary.js.map +0 -1
- package/dist/prompt/steps/step-history-update.d.ts +0 -6
- package/dist/prompt/steps/step-history-update.js +0 -69
- package/dist/prompt/steps/step-history-update.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.d.ts +0 -7
- package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.js +0 -301
- package/dist/prompt/steps/step-iterate/handlers/container-task/command-execution-loop.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.js +0 -49
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/complete-task.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.js +0 -190
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-from-container.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.js +0 -139
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/copy-to-container.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.d.ts +0 -10
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.js +0 -93
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/edit-file.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.js +0 -72
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/fail-task.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.d.ts +0 -10
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.js +0 -125
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/gain-knowledge.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.d.ts +0 -19
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.js +0 -33
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/interrupt-controller.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.d.ts +0 -8
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.js +0 -85
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/query-knowledge.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.d.ts +0 -6
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.js +0 -122
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/request-secret.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.d.ts +0 -7
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.js +0 -146
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/run-command.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.js +0 -56
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/send-message.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.js +0 -56
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/set-execution-plan.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.js +0 -39
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/update-execution-plan.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.d.ts +0 -10
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.js +0 -95
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/view-file.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.js +0 -96
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/web-search.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.js +0 -123
- package/dist/prompt/steps/step-iterate/handlers/container-task/commands/wrap-context.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.d.ts +0 -11
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.js +0 -50
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-registry.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.d.ts +0 -28
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.js +0 -2
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-commands-types.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.js +0 -202
- package/dist/prompt/steps/step-iterate/handlers/container-task/container-task-orchestrator.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.js +0 -15
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-check.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.d.ts +0 -50
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.js +0 -358
- package/dist/prompt/steps/step-iterate/handlers/container-task/utils/docker-utils.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/file-request-utils.d.ts +0 -47
- package/dist/prompt/steps/step-iterate/handlers/file-request-utils.js +0 -114
- package/dist/prompt/steps/step-iterate/handlers/file-request-utils.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.d.ts +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.js +0 -133
- package/dist/prompt/steps/step-iterate/handlers/handle-code-execution.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.js +0 -177
- package/dist/prompt/steps/step-iterate/handlers/handle-code-generation.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.d.ts +0 -20
- package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.js +0 -305
- package/dist/prompt/steps/step-iterate/handlers/handle-compound-action.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.js +0 -40
- package/dist/prompt/steps/step-iterate/handlers/handle-confirm-code-generation.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.js +0 -35
- package/dist/prompt/steps/step-iterate/handlers/handle-context-compression.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.js +0 -34
- package/dist/prompt/steps/step-iterate/handlers/handle-context-optimization.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.d.ts +0 -11
- package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.js +0 -503
- package/dist/prompt/steps/step-iterate/handlers/handle-conversation-graph.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-create-file.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-create-file.js +0 -159
- package/dist/prompt/steps/step-iterate/handlers/handle-create-file.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.js +0 -30
- package/dist/prompt/steps/step-iterate/handlers/handle-end-conversation.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.js +0 -280
- package/dist/prompt/steps/step-iterate/handlers/handle-explore-external-directories.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.d.ts +0 -8
- package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.js +0 -105
- package/dist/prompt/steps/step-iterate/handlers/handle-genaicode-help.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.js +0 -110
- package/dist/prompt/steps/step-iterate/handlers/handle-generate-image.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.d.ts +0 -6
- package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.js +0 -110
- package/dist/prompt/steps/step-iterate/handlers/handle-perform-analysis.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-project-command.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-project-command.js +0 -280
- package/dist/prompt/steps/step-iterate/handlers/handle-project-command.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.d.ts +0 -9
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.js +0 -94
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-app-context.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.js +0 -174
- package/dist/prompt/steps/step-iterate/handlers/handle-pull-console-logs.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.d.ts +0 -9
- package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.js +0 -104
- package/dist/prompt/steps/step-iterate/handlers/handle-push-app-context.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.js +0 -149
- package/dist/prompt/steps/step-iterate/handlers/handle-read-external-files.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.d.ts +0 -7
- package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.js +0 -119
- package/dist/prompt/steps/step-iterate/handlers/handle-reasoning-inference.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.js +0 -100
- package/dist/prompt/steps/step-iterate/handlers/handle-remove-files-from-context.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.d.ts +0 -8
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.js +0 -146
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-content.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.d.ts +0 -8
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.js +0 -197
- package/dist/prompt/steps/step-iterate/handlers/handle-request-files-fragments.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.d.ts +0 -3
- package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.js +0 -251
- package/dist/prompt/steps/step-iterate/handlers/handle-request-git-context.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.js +0 -83
- package/dist/prompt/steps/step-iterate/handlers/handle-request-permissions.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.js +0 -185
- package/dist/prompt/steps/step-iterate/handlers/handle-run-bash-command.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.js +0 -7
- package/dist/prompt/steps/step-iterate/handlers/handle-run-container-task.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-search-code.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-search-code.js +0 -96
- package/dist/prompt/steps/step-iterate/handlers/handle-search-code.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-send-message.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-send-message.js +0 -21
- package/dist/prompt/steps/step-iterate/handlers/handle-send-message.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.d.ts +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.js +0 -72
- package/dist/prompt/steps/step-iterate/handlers/handle-structured-question.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-update-file.d.ts +0 -2
- package/dist/prompt/steps/step-iterate/handlers/handle-update-file.js +0 -161
- package/dist/prompt/steps/step-iterate/handlers/handle-update-file.js.map +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-web-search.d.ts +0 -1
- package/dist/prompt/steps/step-iterate/handlers/handle-web-search.js +0 -85
- package/dist/prompt/steps/step-iterate/handlers/handle-web-search.js.map +0 -1
- package/dist/prompt/steps/step-iterate/iterate-handler.d.ts +0 -4
- package/dist/prompt/steps/step-iterate/iterate-handler.js +0 -14
- package/dist/prompt/steps/step-iterate/iterate-handler.js.map +0 -1
- package/dist/prompt/steps/step-iterate/step-iterate-handlers.d.ts +0 -3
- package/dist/prompt/steps/step-iterate/step-iterate-handlers.js +0 -5
- package/dist/prompt/steps/step-iterate/step-iterate-handlers.js.map +0 -1
- package/dist/prompt/steps/step-iterate/step-iterate-types.d.ts +0 -255
- package/dist/prompt/steps/step-iterate/step-iterate-types.js +0 -2
- package/dist/prompt/steps/step-iterate/step-iterate-types.js.map +0 -1
- package/dist/prompt/steps/step-iterate/step-iterate.d.ts +0 -37
- package/dist/prompt/steps/step-iterate/step-iterate.js +0 -132
- package/dist/prompt/steps/step-iterate/step-iterate.js.map +0 -1
- package/dist/prompt/steps/step-process-file-updates.d.ts +0 -12
- package/dist/prompt/steps/step-process-file-updates.js +0 -148
- package/dist/prompt/steps/step-process-file-updates.js.map +0 -1
- package/dist/prompt/steps/step-summarization.d.ts +0 -10
- package/dist/prompt/steps/step-summarization.js +0 -167
- package/dist/prompt/steps/step-summarization.js.map +0 -1
- package/dist/prompt/steps/step-validate-recover.d.ts +0 -2
- package/dist/prompt/steps/step-validate-recover.js +0 -71
- package/dist/prompt/steps/step-validate-recover.js.map +0 -1
- package/dist/prompt/steps/step-verify-patch.d.ts +0 -10
- package/dist/prompt/steps/step-verify-patch.js +0 -52
- package/dist/prompt/steps/step-verify-patch.js.map +0 -1
- package/dist/prompt/steps/steps-types.d.ts +0 -4
- package/dist/prompt/steps/steps-types.js +0 -6
- package/dist/prompt/steps/steps-types.js.map +0 -1
- package/dist/prompt/steps/steps-utils.d.ts +0 -7
- package/dist/prompt/steps/steps-utils.js +0 -11
- package/dist/prompt/steps/steps-utils.js.map +0 -1
- package/dist/prompt/systemprompt.d.ts +0 -4
- package/dist/prompt/systemprompt.js +0 -113
- package/dist/prompt/systemprompt.js.map +0 -1
- package/dist/prompt/token-estimator.d.ts +0 -8
- package/dist/prompt/token-estimator.js +0 -31
- package/dist/prompt/token-estimator.js.map +0 -1
- package/dist/prompt-debug/current-prompt-plugin.d.ts +0 -3
- package/dist/prompt-debug/current-prompt-plugin.js +0 -10
- package/dist/prompt-debug/current-prompt-plugin.js.map +0 -1
- package/dist/utils/docker-utils.d.ts +0 -37
- package/dist/utils/docker-utils.js +0 -258
- package/dist/utils/docker-utils.js.map +0 -1
- package/dist/vite-genaicode/code-transformer.d.ts +0 -5
- package/dist/vite-genaicode/code-transformer.js +0 -83
- package/dist/vite-genaicode/code-transformer.js.map +0 -1
- package/dist/vite-genaicode/console-interceptor.d.ts +0 -53
- package/dist/vite-genaicode/console-interceptor.js +0 -117
- package/dist/vite-genaicode/console-interceptor.js.map +0 -1
- package/dist/vite-genaicode/constants.d.ts +0 -3
- package/dist/vite-genaicode/constants.js +0 -4
- package/dist/vite-genaicode/constants.js.map +0 -1
- package/dist/vite-genaicode/dynamic-function-generator.d.ts +0 -2
- package/dist/vite-genaicode/dynamic-function-generator.js +0 -47
- package/dist/vite-genaicode/dynamic-function-generator.js.map +0 -1
- package/dist/vite-genaicode/html-injector.d.ts +0 -6
- package/dist/vite-genaicode/html-injector.js +0 -14
- package/dist/vite-genaicode/html-injector.js.map +0 -1
- package/dist/vite-genaicode/server-manager.d.ts +0 -26
- package/dist/vite-genaicode/server-manager.js +0 -91
- package/dist/vite-genaicode/server-manager.js.map +0 -1
- package/dist/vite-genaicode/vite-genaicode-context.d.ts +0 -31
- package/dist/vite-genaicode/vite-genaicode-context.js +0 -120
- package/dist/vite-genaicode/vite-genaicode-context.js.map +0 -1
- package/dist/vite-genaicode/vite-genaicode-frontend.d.ts +0 -1
- package/dist/vite-genaicode/vite-genaicode-frontend.js +0 -329
- package/dist/vite-genaicode/vite-genaicode-frontend.js.map +0 -1
- package/dist/vite-genaicode/vite-genaicode-plugin.d.ts +0 -21
- package/dist/vite-genaicode/vite-genaicode-plugin.js +0 -87
- package/dist/vite-genaicode/vite-genaicode-plugin.js.map +0 -1
- package/dist/vite-genaicode/vite-genaicode-types.d.ts +0 -28
- package/dist/vite-genaicode/vite-genaicode-types.js +0 -11
- package/dist/vite-genaicode/vite-genaicode-types.js.map +0 -1
- package/media/logo-dark.png +0 -0
- package/media/logo.png +0 -0
package/dist/files/find-files.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { rcConfig, sourceExtensions, IMAGE_ASSET_EXTENSIONS, ignorePaths, importantContext, rcConfigSchemaFilePath, } from '../main/config.js';
|
|
4
|
-
// List of possible extensions for dependency resolution
|
|
5
|
-
const POSSIBLE_DEPENDENCY_EXTENSIONS = ['.ts', '.js', '.tsx', '.jsx'];
|
|
6
|
-
function findFiles(dir, recursive, extensions) {
|
|
7
|
-
const files = [];
|
|
8
|
-
const items = fs.readdirSync(dir);
|
|
9
|
-
for (const item of items) {
|
|
10
|
-
const fullPath = path.join(dir, item);
|
|
11
|
-
if (isIgnoredPath(fullPath)) {
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
if (fs.statSync(fullPath).isDirectory()) {
|
|
15
|
-
if (recursive) {
|
|
16
|
-
files.push(...findFiles(fullPath, true, extensions));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
else if (extensions.includes(path.extname(fullPath))) {
|
|
20
|
-
files.push(fullPath);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return files;
|
|
24
|
-
}
|
|
25
|
-
function getDependencies(filePath) {
|
|
26
|
-
const content = fs.readFileSync(filePath, 'utf-8');
|
|
27
|
-
const dependencyRegex = /import\s+.+?\s+from\s+['"](.+?\/?[^'"]+)['"]/g;
|
|
28
|
-
const dependencies = [];
|
|
29
|
-
let match;
|
|
30
|
-
while ((match = dependencyRegex.exec(content)) !== null) {
|
|
31
|
-
const dependencyPath = match[1];
|
|
32
|
-
// Resolve relative paths from the file's directory
|
|
33
|
-
const resolvedPath = path.resolve(path.dirname(filePath), dependencyPath);
|
|
34
|
-
// Only add the dependency if it's a local file and not a module
|
|
35
|
-
if (fs.existsSync(resolvedPath)) {
|
|
36
|
-
dependencies.push(resolvedPath);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const possibleExtensions = POSSIBLE_DEPENDENCY_EXTENSIONS;
|
|
40
|
-
for (const ext of possibleExtensions) {
|
|
41
|
-
const extendedPath = resolvedPath + ext;
|
|
42
|
-
if (fs.existsSync(extendedPath)) {
|
|
43
|
-
dependencies.push(extendedPath);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return dependencies;
|
|
49
|
-
}
|
|
50
|
-
export function isIgnoredPath(filePath) {
|
|
51
|
-
return ignorePaths.some((ignorePath) => filePath.endsWith(ignorePath));
|
|
52
|
-
}
|
|
53
|
-
/** Generates a dependency list for given file */
|
|
54
|
-
export function getDependencyList(entryFile) {
|
|
55
|
-
const visitedFiles = new Set();
|
|
56
|
-
const result = new Set();
|
|
57
|
-
function traverse(file) {
|
|
58
|
-
if (visitedFiles.has(file))
|
|
59
|
-
return;
|
|
60
|
-
visitedFiles.add(file);
|
|
61
|
-
const dependencies = getDependencies(file);
|
|
62
|
-
dependencies.forEach((dependency) => result.add(dependency));
|
|
63
|
-
dependencies.forEach(traverse);
|
|
64
|
-
}
|
|
65
|
-
result.add(path.resolve(entryFile));
|
|
66
|
-
traverse(entryFile);
|
|
67
|
-
return Array.from(result);
|
|
68
|
-
}
|
|
69
|
-
let sourceFiles = [];
|
|
70
|
-
let imageAssetFiles = [];
|
|
71
|
-
refreshFiles();
|
|
72
|
-
/** Get source files of the application */
|
|
73
|
-
export function getSourceFiles() {
|
|
74
|
-
return [...sourceFiles];
|
|
75
|
-
}
|
|
76
|
-
/** Get source files of the application */
|
|
77
|
-
export function getImageAssetFiles() {
|
|
78
|
-
return [...imageAssetFiles];
|
|
79
|
-
}
|
|
80
|
-
export function refreshFiles() {
|
|
81
|
-
sourceFiles = [
|
|
82
|
-
...new Set([...findFiles(rcConfig.rootDir, true, sourceExtensions), ...(importantContext.files ?? [])]),
|
|
83
|
-
rcConfigSchemaFilePath,
|
|
84
|
-
];
|
|
85
|
-
imageAssetFiles = findFiles(rcConfig.rootDir, true, IMAGE_ASSET_EXTENSIONS);
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=find-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-files.js","sourceRoot":"","sources":["../../src/files/find-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,wDAAwD;AACxD,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAMtE,SAAS,SAAS,CAAC,GAAW,EAAE,SAAkB,EAAE,UAA0B;IAC5E,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAEtC,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5B,SAAS;QACX,CAAC;QAED,IAAI,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,EAAE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C9B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,WAAW,GAAG;QACZ,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;QACvG,sBAAsB;KACvB,CAAC;IACF,eAAe,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,sBAAsB,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isProjectPath(filePath: string): boolean;
|
package/dist/files/path-utils.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import { getSourceFiles } from './find-files.js';
|
|
3
|
-
import { rcConfig } from '../main/config.js';
|
|
4
|
-
import { isAncestorDirectory } from './file-utils.js';
|
|
5
|
-
export function isProjectPath(filePath) {
|
|
6
|
-
const sourceFiles = getSourceFiles();
|
|
7
|
-
return (isAncestorDirectory(rcConfig.rootDir, filePath) ||
|
|
8
|
-
sourceFiles.includes(filePath) ||
|
|
9
|
-
!sourceFiles.some((sourceFile) => path.dirname(filePath) === path.dirname(sourceFile) ||
|
|
10
|
-
isAncestorDirectory(path.dirname(sourceFile), path.dirname(filePath))));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=path-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../../src/files/path-utils.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,UAAU,aAAa,CAAC,QAAgB;IAC5C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,OAAO,CACL,mBAAmB,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;QAC/C,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC9B,CAAC,WAAW,CAAC,IAAI,CACf,CAAC,UAAU,EAAE,EAAE,CACb,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;YACnD,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CACxE,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CodegenOptions } from '../main/codegen-types.js';
|
|
2
|
-
import { SourceCodeMap } from './source-code-types.js';
|
|
3
|
-
type ImageAssetsMap = Record<string, {
|
|
4
|
-
mimeType: string | false;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function readFileContent(file: string): string;
|
|
9
|
-
/** Print source code of all source files */
|
|
10
|
-
export declare function getSourceCode({ filterPaths, taskFile, forceAll, ignoreImportantFiles, }: {
|
|
11
|
-
filterPaths?: string[];
|
|
12
|
-
taskFile?: string | undefined;
|
|
13
|
-
forceAll?: boolean;
|
|
14
|
-
ignoreImportantFiles?: boolean;
|
|
15
|
-
}, options: CodegenOptions): SourceCodeMap;
|
|
16
|
-
/** Get image asset files summary */
|
|
17
|
-
export declare function getImageAssets(): ImageAssetsMap;
|
|
18
|
-
export {};
|
package/dist/files/read-files.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import mime from 'mime-types';
|
|
3
|
-
import sizeOf from 'image-size';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import globRegex from 'glob-regex';
|
|
6
|
-
import { getSourceFiles, getImageAssetFiles } from './find-files.js';
|
|
7
|
-
import { rcConfig, importantContext, rcConfigSchemaFilePath } from '../main/config.js';
|
|
8
|
-
import { verifySourceCodeLimit } from '../prompt/limits.js';
|
|
9
|
-
import { getSummary } from './summary-cache.js';
|
|
10
|
-
import { GENAICODERC_SCHEMA } from '../main/config-schema.js';
|
|
11
|
-
import { generateFileId } from './file-id-utils.js';
|
|
12
|
-
/**
|
|
13
|
-
* Read contents of source files and create a map with file path as key and file content as value
|
|
14
|
-
*/
|
|
15
|
-
function readSourceFiles({ contentMask, ignorePatterns }, filterPaths, forceAll = false, ignoreImportantFiles = false) {
|
|
16
|
-
const sourceCode = {};
|
|
17
|
-
const importantFiles = ignoreImportantFiles ? new Set() : new Set(importantContext.files || []);
|
|
18
|
-
for (const file of getSourceFiles()) {
|
|
19
|
-
if (!fs.existsSync(file) && file !== rcConfigSchemaFilePath) {
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
if (!filterPaths || filterPaths.includes(file) || importantFiles.has(file)) {
|
|
23
|
-
const summary = getSummary(file);
|
|
24
|
-
// Always include important files
|
|
25
|
-
if (importantFiles.has(file)) {
|
|
26
|
-
const content = readFileContent(file);
|
|
27
|
-
sourceCode[file] = {
|
|
28
|
-
fileId: generateFileId(file),
|
|
29
|
-
content,
|
|
30
|
-
localDeps: summary?.localDeps,
|
|
31
|
-
externalDeps: summary?.externalDeps,
|
|
32
|
-
};
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
// Apply content mask filter if it's set
|
|
36
|
-
if (!filterPaths && contentMask && !forceAll) {
|
|
37
|
-
const relativePath = path.relative(rcConfig.rootDir, file);
|
|
38
|
-
if (!relativePath.startsWith(contentMask)) {
|
|
39
|
-
sourceCode[file] = summary
|
|
40
|
-
? {
|
|
41
|
-
fileId: generateFileId(file),
|
|
42
|
-
summary: summary.summary,
|
|
43
|
-
...(summary.localDeps?.length ? { localDeps: summary.localDeps } : {}),
|
|
44
|
-
...(summary.externalDeps?.length ? { externalDeps: summary.externalDeps } : {}),
|
|
45
|
-
}
|
|
46
|
-
: { fileId: generateFileId(file) };
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (!forceAll) {
|
|
51
|
-
sourceCode[file] =
|
|
52
|
-
!ignorePatterns?.some((pattern) => globRegex(pattern).test(file)) && summary
|
|
53
|
-
? {
|
|
54
|
-
fileId: generateFileId(file),
|
|
55
|
-
summary: summary.summary,
|
|
56
|
-
...(summary.localDeps?.length ? { localDeps: summary.localDeps } : {}),
|
|
57
|
-
...(summary.externalDeps?.length ? { externalDeps: summary.externalDeps } : {}),
|
|
58
|
-
}
|
|
59
|
-
: { fileId: generateFileId(file) };
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
const content = readFileContent(file);
|
|
63
|
-
sourceCode[file] = {
|
|
64
|
-
fileId: generateFileId(file),
|
|
65
|
-
content,
|
|
66
|
-
...(summary?.localDeps ? { localDeps: summary.localDeps } : {}),
|
|
67
|
-
...(summary?.externalDeps ? { externalDeps: summary.externalDeps } : {}),
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return sourceCode;
|
|
73
|
-
}
|
|
74
|
-
// Read file content
|
|
75
|
-
export function readFileContent(file) {
|
|
76
|
-
if (file === rcConfigSchemaFilePath) {
|
|
77
|
-
return JSON.stringify(GENAICODERC_SCHEMA, null, 2);
|
|
78
|
-
}
|
|
79
|
-
return fs.readFileSync(file, 'utf-8');
|
|
80
|
-
}
|
|
81
|
-
/** Print source code of all source files */
|
|
82
|
-
export function getSourceCode({ filterPaths, taskFile, forceAll, ignoreImportantFiles, }, options) {
|
|
83
|
-
const sourceCode = readSourceFiles(options, filterPaths, forceAll, ignoreImportantFiles);
|
|
84
|
-
if (taskFile && !sourceCode[taskFile]) {
|
|
85
|
-
sourceCode[taskFile] = {
|
|
86
|
-
fileId: generateFileId(taskFile),
|
|
87
|
-
content: readFileContent(taskFile),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
verifySourceCodeLimit(JSON.stringify(sourceCode));
|
|
91
|
-
return sourceCode;
|
|
92
|
-
}
|
|
93
|
-
/** Get image asset files summary */
|
|
94
|
-
export function getImageAssets() {
|
|
95
|
-
const imageAssets = {};
|
|
96
|
-
for (const file of getImageAssetFiles()) {
|
|
97
|
-
const dimensions = sizeOf(file);
|
|
98
|
-
imageAssets[file] = {
|
|
99
|
-
mimeType: mime.lookup(file),
|
|
100
|
-
width: dimensions.width,
|
|
101
|
-
height: dimensions.height,
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
verifySourceCodeLimit(JSON.stringify(imageAssets));
|
|
105
|
-
return imageAssets;
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=read-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-files.js","sourceRoot":"","sources":["../../src/files/read-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAWpD;;GAEG;AACH,SAAS,eAAe,CACtB,EAAE,WAAW,EAAE,cAAc,EAAkB,EAC/C,WAAsB,EACtB,QAAQ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U,cAAc;IAC5B,MAAM,WAAW,GAAmB,EAAE,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,kBAAkB,EAAE,EAAE,CAAC;QACxC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAChC,WAAW,CAAC,IAAI,CAAC,GAAG;YAClB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC3B,KAAK,EAAE,UAAU,CAAC,KAAM;YACxB,MAAM,EAAE,UAAU,CAAC,MAAO;SAC3B,CAAC;IACJ,CAAC;IACD,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a match found during the search
|
|
3
|
-
*/
|
|
4
|
-
export interface SearchMatch {
|
|
5
|
-
/** Path to the file where the match was found */
|
|
6
|
-
filePath: string;
|
|
7
|
-
/** Type of match (filename or content) */
|
|
8
|
-
matchType: 'filename' | 'content';
|
|
9
|
-
/** Line number where the match was found (for content matches) */
|
|
10
|
-
lineNumber?: number;
|
|
11
|
-
/** Context around the match (for content matches) */
|
|
12
|
-
matchContext?: string;
|
|
13
|
-
/** The actual matched text */
|
|
14
|
-
matchedText: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Options for the search operation
|
|
18
|
-
*/
|
|
19
|
-
export interface SearchOptions {
|
|
20
|
-
/** The search query */
|
|
21
|
-
query: string;
|
|
22
|
-
/** Glob patterns to include files */
|
|
23
|
-
includePatterns?: string[];
|
|
24
|
-
/** Glob patterns to exclude files */
|
|
25
|
-
excludePatterns?: string[];
|
|
26
|
-
/** Whether to search in file contents */
|
|
27
|
-
searchInContent?: boolean;
|
|
28
|
-
/** Whether to search in file names */
|
|
29
|
-
searchInFilenames?: boolean;
|
|
30
|
-
/** Case sensitive search */
|
|
31
|
-
caseSensitive?: boolean;
|
|
32
|
-
/** Maximum number of results to return */
|
|
33
|
-
maxResults?: number;
|
|
34
|
-
/** Number of context lines to include around content matches */
|
|
35
|
-
contextLines?: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Result of the search operation
|
|
39
|
-
*/
|
|
40
|
-
export interface SearchResult {
|
|
41
|
-
/** Array of matches found */
|
|
42
|
-
matches: SearchMatch[];
|
|
43
|
-
/** Total number of matches found (before maxResults limit) */
|
|
44
|
-
totalMatches: number;
|
|
45
|
-
/** Time taken to perform the search (in milliseconds) */
|
|
46
|
-
searchTime: number;
|
|
47
|
-
/** Number of files searched */
|
|
48
|
-
filesSearched: number;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Searches source code files based on provided options
|
|
52
|
-
*/
|
|
53
|
-
export declare function searchSourceCode(options: SearchOptions): SearchResult;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import globRegex from 'glob-regex';
|
|
4
|
-
import { getSourceFiles } from './find-files.js';
|
|
5
|
-
import { rcConfig } from '../main/config.js';
|
|
6
|
-
/**
|
|
7
|
-
* Searches source code files based on provided options
|
|
8
|
-
*/
|
|
9
|
-
export function searchSourceCode(options) {
|
|
10
|
-
const startTime = Date.now();
|
|
11
|
-
const matches = [];
|
|
12
|
-
let totalMatches = 0;
|
|
13
|
-
let filesSearched = 0;
|
|
14
|
-
// Prepare search query
|
|
15
|
-
const searchRegex = new RegExp(options.caseSensitive ? options.query : options.query, options.caseSensitive ? 'g' : 'gi');
|
|
16
|
-
// Get all source files
|
|
17
|
-
const sourceFiles = getSourceFiles();
|
|
18
|
-
// Filter files based on include/exclude patterns
|
|
19
|
-
const filteredFiles = sourceFiles.filter((file) => {
|
|
20
|
-
const relativePath = path.relative(rcConfig.rootDir, file);
|
|
21
|
-
// Check include patterns
|
|
22
|
-
if (options.includePatterns?.length) {
|
|
23
|
-
if (!options.includePatterns.some((pattern) => globRegex(pattern).test(relativePath))) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
// Check exclude patterns
|
|
28
|
-
if (options.excludePatterns?.length) {
|
|
29
|
-
if (options.excludePatterns.some((pattern) => globRegex(pattern).test(relativePath))) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return true;
|
|
34
|
-
});
|
|
35
|
-
// Search through filtered files
|
|
36
|
-
for (const file of filteredFiles) {
|
|
37
|
-
filesSearched++;
|
|
38
|
-
// Search in filename if enabled
|
|
39
|
-
if (options.searchInFilenames !== false) {
|
|
40
|
-
const fileName = path.basename(file);
|
|
41
|
-
const matches_ = fileName.match(searchRegex);
|
|
42
|
-
if (matches_) {
|
|
43
|
-
totalMatches += matches_.length;
|
|
44
|
-
matches.push({
|
|
45
|
-
filePath: file,
|
|
46
|
-
matchType: 'filename',
|
|
47
|
-
matchedText: fileName,
|
|
48
|
-
});
|
|
49
|
-
if (options.maxResults && matches.length >= options.maxResults) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
// Search in content if enabled
|
|
55
|
-
if (options.searchInContent !== false) {
|
|
56
|
-
try {
|
|
57
|
-
const content = fs.readFileSync(file, 'utf-8');
|
|
58
|
-
const lines = content.split('\n');
|
|
59
|
-
for (let i = 0; i < lines.length; i++) {
|
|
60
|
-
const line = lines[i];
|
|
61
|
-
const lineMatches = line.match(searchRegex);
|
|
62
|
-
if (lineMatches) {
|
|
63
|
-
totalMatches += lineMatches.length;
|
|
64
|
-
// Get context lines
|
|
65
|
-
const contextLines = options.contextLines || 0;
|
|
66
|
-
const startLine = Math.max(0, i - contextLines);
|
|
67
|
-
const endLine = Math.min(lines.length, i + contextLines + 1);
|
|
68
|
-
const context = lines.slice(startLine, endLine).join('\n');
|
|
69
|
-
matches.push({
|
|
70
|
-
filePath: file,
|
|
71
|
-
matchType: 'content',
|
|
72
|
-
lineNumber: i + 1,
|
|
73
|
-
matchContext: context,
|
|
74
|
-
matchedText: line,
|
|
75
|
-
});
|
|
76
|
-
if (options.maxResults && matches.length >= options.maxResults) {
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
console.warn(`Error reading file ${file}:`, error);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (options.maxResults && matches.length >= options.maxResults) {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
matches: matches.slice(0, options.maxResults),
|
|
92
|
-
totalMatches,
|
|
93
|
-
searchTime: Date.now() - startTime,
|
|
94
|
-
filesSearched,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=search-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-files.js","sourceRoot":"","sources":["../../src/files/search-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAsD7C;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAkB,EAAE,CAAC;IAClC,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,IAAI,aAAa,GAAG,CAAC,CAAC;IAEtB,uBAAuB;IACvB,MAAM,WAAW,GAAG,IAAI,MAAM,CAC5B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EACrD,O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C;wBAE3D,OAAO,CAAC,IAAI,CAAC;4BACX,QAAQ,EAAE,IAAI;4BACd,SAAS,EAAE,SAAS;4BACpB,UAAU,EAAE,CAAC,GAAG,CAAC;4BACjB,YAAY,EAAE,OAAO;4BACrB,WAAW,EAAE,IAAI;yBAClB,CAAC,CAAC;wBAEH,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;4BAC/D,MAAM;wBACR,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,sBAAsB,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC;YACrD,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YAC/D,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC;QAC7C,YAAY;QACZ,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;QAClC,aAAa;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SourceCodeMap } from './source-code-types.js';
|
|
2
|
-
import { FileSummary } from './source-code-types.js';
|
|
3
|
-
import { FileContent } from './source-code-types.js';
|
|
4
|
-
/**
|
|
5
|
-
* Directory structure representing source code files with their content or summaries and dependencies
|
|
6
|
-
*/
|
|
7
|
-
type SourceCodeTree = {
|
|
8
|
-
[directoryPath: string]: {
|
|
9
|
-
[filePath: string]: FileContent | FileSummary;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Converts directory tree structure back into flat SourceCodeMap
|
|
14
|
-
*/
|
|
15
|
-
export declare function parseSourceCodeTree(sourceCodeTree: SourceCodeTree): SourceCodeMap;
|
|
16
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { generateFileId } from './file-id-utils.js';
|
|
2
|
-
/**
|
|
3
|
-
* Type guard to check if an object is a FileContent with dependencies
|
|
4
|
-
*/
|
|
5
|
-
function hasContent(obj) {
|
|
6
|
-
return 'content' in obj;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Type guard to check if an object is a FileSummary with dependencies
|
|
10
|
-
*/
|
|
11
|
-
function hasSummary(obj) {
|
|
12
|
-
return 'summary' in obj;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Converts directory tree structure back into flat SourceCodeMap
|
|
16
|
-
*/
|
|
17
|
-
export function parseSourceCodeTree(sourceCodeTree) {
|
|
18
|
-
const result = {};
|
|
19
|
-
for (const [dirPath, files] of Object.entries(sourceCodeTree)) {
|
|
20
|
-
for (const [filePath, fileData] of Object.entries(files)) {
|
|
21
|
-
const fullPath = `${dirPath}/${filePath}`;
|
|
22
|
-
// Handle both content and summary cases while preserving dependencies
|
|
23
|
-
if (hasContent(fileData)) {
|
|
24
|
-
result[fullPath] = {
|
|
25
|
-
fileId: generateFileId(fullPath),
|
|
26
|
-
content: fileData.content,
|
|
27
|
-
...(fileData.dependencies && { dependencies: fileData.dependencies }),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
else if (hasSummary(fileData)) {
|
|
31
|
-
result[fullPath] = {
|
|
32
|
-
fileId: generateFileId(fullPath),
|
|
33
|
-
summary: fileData.summary,
|
|
34
|
-
...(fileData.dependencies && { dependencies: fileData.dependencies }),
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=source-code-tree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-code-tree.js","sourceRoot":"","sources":["../../src/files/source-code-tree.ts"],"names":[],"mappings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M,CAAC;AAChB,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a dependency in the source code
|
|
3
|
-
*/
|
|
4
|
-
export interface DependencyInfo {
|
|
5
|
-
/** Path of the dependeny */
|
|
6
|
-
path: string;
|
|
7
|
-
/** Type of dependency */
|
|
8
|
-
type: 'local' | 'external';
|
|
9
|
-
/** Unique identifier for the dependent file */
|
|
10
|
-
fileId?: FileId;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents file content with optional dependencies
|
|
14
|
-
*/
|
|
15
|
-
export interface FileContent {
|
|
16
|
-
/** The actual content of the file */
|
|
17
|
-
content: string | null;
|
|
18
|
-
/** Optional list of dependencies */
|
|
19
|
-
localDeps?: FileId[];
|
|
20
|
-
/** Optional list of external dependencies */
|
|
21
|
-
externalDeps?: string[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Represents a file summary with optional dependencies
|
|
25
|
-
*/
|
|
26
|
-
export interface FileSummary {
|
|
27
|
-
/** Summary of the file content */
|
|
28
|
-
summary?: string;
|
|
29
|
-
/** Optional list of local dependencies */
|
|
30
|
-
localDeps?: FileId[];
|
|
31
|
-
/** Optional list of external dependencies */
|
|
32
|
-
externalDeps?: string[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents extracted fragments from a file with optional dependencies
|
|
36
|
-
*/
|
|
37
|
-
export interface FileFragments extends FileSummary {
|
|
38
|
-
/** The extracted fragment from the file based on a prompt */
|
|
39
|
-
fragments: string[];
|
|
40
|
-
}
|
|
41
|
-
export type FileId = number & {
|
|
42
|
-
readonly __fileId: true;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Maps file paths to their content, summary, or fragments
|
|
46
|
-
* Each file entry must have a fileId and can contain either:
|
|
47
|
-
* - FileContent: Full content of the file
|
|
48
|
-
* - FileSummary: A summary of the file's content
|
|
49
|
-
* - FileFragments: Extracted fragments from the file based on a prompt
|
|
50
|
-
*/
|
|
51
|
-
export type SourceCodeMap = Record<string, {
|
|
52
|
-
fileId: FileId;
|
|
53
|
-
} & (FileContent | FileSummary | FileFragments)>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-code-types.js","sourceRoot":"","sources":["../../src/files/source-code-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SourceCodeMap } from './source-code-types.js';
|
|
2
|
-
import { CodegenOptions } from '../main/codegen-types.js';
|
|
3
|
-
import { SummaryCache } from './summary-cache.js';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a SourceCodeMap containing the content of context files, their first-level dependencies,
|
|
6
|
-
* and files that depend on the context files.
|
|
7
|
-
*
|
|
8
|
-
* @param contextPaths An array of file paths to consider as context.
|
|
9
|
-
* @param options Codegen options to be passed to getSourceCode.
|
|
10
|
-
* @returns A SourceCodeMap containing:
|
|
11
|
-
* 1. All files from contextPaths
|
|
12
|
-
* 2. Their first-level dependencies
|
|
13
|
-
* 3. Files that depend on the context files
|
|
14
|
-
*/
|
|
15
|
-
export declare function getContextSourceCode(contextPaths: string[], options: CodegenOptions): SourceCodeMap;
|
|
16
|
-
/**
|
|
17
|
-
* Returns an array of file paths that are expanded from the given context paths.
|
|
18
|
-
*
|
|
19
|
-
* @param contextPaths
|
|
20
|
-
* @param options
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export declare function getExpandedContextPaths(contextPaths: string[], options: CodegenOptions): string[];
|
|
24
|
-
/**
|
|
25
|
-
* Computes a set of popular dependencies from the summary cache.
|
|
26
|
-
* @param summaryCache The cache containing summaries and dependencies.
|
|
27
|
-
* @param threshold The minimum number of times a file must be depended on to be considered popular.
|
|
28
|
-
* @returns A Set of file paths for popular dependencies.
|
|
29
|
-
*/
|
|
30
|
-
export declare function computePopularDependencies(sourceCode: SourceCodeMap, summaryCache: SummaryCache, threshold?: number): Set<string>;
|
|
31
|
-
export declare function getFileIDtoPathMap(sourceCode: SourceCodeMap): Map<number, string>;
|