Skip to content

Commit d2ea19b

Browse files
committed
Reorder imports across the editor, rename AGENTIC_CLI_AGENTS to CLI_AGENTS, and add the agentic CLI workspace state key
- create `apps/editor/src/commands/apply-response-command/response-processor`, inside place `apps/editor/src/commands/apply-response-command/response-processor.ts` and handlers - once diff between two files is shown, trigger 'next change' to focus on the first change - should use state keys file - place such node imports [Pasted text] at the top └── apps ├── browser │ ├── create-firefox-build.ts │ ├── create-zip-archives.ts │ └── webpack.config.ts └── editor ├── src │ ├── commands │ │ ├── apply-response-command │ │ │ ├── apply-response-command.ts │ │ │ ├── response-processor │ │ │ │ ├── handlers │ │ │ │ │ ├── diff-handler.ts │ │ │ │ │ ├── fast-replace-handler.ts │ │ │ │ │ ├── restore-preview-handler.ts │ │ │ │ │ ├── search-replace-handler.ts │ │ │ │ │ └── truncated-handler.ts │ │ │ │ └── response-processor.ts │ │ │ └── utils │ │ │ ├── file-operations │ │ │ │ ├── cleanup-rename-source.ts │ │ │ │ ├── create-file-if-needed.ts │ │ │ │ ├── handle-deleted-file-item.ts │ │ │ │ ├── relocate-file.ts │ │ │ │ ├── remove-directory-if-empty.ts │ │ │ │ └── undo-files.ts │ │ │ ├── preview │ │ │ │ ├── build-history-files.ts │ │ │ │ ├── diff-utils.ts │ │ │ │ ├── file-preparer.ts │ │ │ │ ├── index.ts │ │ │ │ ├── preview.ts │ │ │ │ ├── temp-file-manager.ts │ │ │ │ ├── types.ts │ │ │ │ ├── virtual-document-provider.ts │ │ │ │ ├── vscode-ui.ts │ │ │ │ └── workspace-listener.ts │ │ │ ├── preview-handler.ts │ │ │ └── response-parser │ │ │ └── parsers │ │ │ ├── code-at-cursor-parser │ │ │ │ └── test │ │ │ │ └── code-at-cursor-parser.spec.ts │ │ │ ├── diff-parser │ │ │ │ └── test │ │ │ │ └── diff-parser.spec.ts │ │ │ └── standard-parser │ │ │ └── test │ │ │ └── standard-parser.spec.ts │ │ ├── code-at-cursor-command │ │ │ ├── code-at-cursor-commands.ts │ │ │ └── utils │ │ │ └── perform-code-at-cursor.ts │ │ ├── copy-markdown-command.ts │ │ ├── copy-paths-command.ts │ │ ├── generate-commit-message-commands │ │ │ └── actions │ │ │ ├── get-prompt-data.ts │ │ │ └── run-generate-action.ts │ │ ├── history-command │ │ │ ├── actions │ │ │ │ ├── create-temporary-checkpoint.ts │ │ │ │ └── restore-checkpoint.ts │ │ │ └── utils │ │ │ └── sync-directory.ts │ │ ├── new-file-command.ts │ │ ├── new-folder-command.ts │ │ ├── reference-in-prompt-command.ts │ │ ├── rename-command.ts │ │ ├── restore-file-selection-command │ │ │ └── actions │ │ │ └── restore-from-json-file.ts │ │ ├── save-file-selection-command │ │ │ └── actions │ │ │ └── save-to-json-file.ts │ │ ├── search-files-commands │ │ │ ├── search-files-commands.ts │ │ │ └── utils │ │ │ └── get-target-folder-path.ts │ │ ├── select-clipboard-paths-command.ts │ │ ├── select-files-of-commit-command.ts │ │ ├── select-imported-files-commands │ │ │ └── utils │ │ │ ├── is-valid-uri.ts │ │ │ └── prompt-for-imported-files.ts │ │ ├── select-modified-files-command.ts │ │ ├── select-referencing-files-commands │ │ │ └── utils │ │ │ └── prompt-for-referencing-files.ts │ │ ├── select-workspace-file-command.ts │ │ └── set-ranges-command.ts │ ├── constants │ │ └── state-keys.ts │ ├── context │ │ ├── helpers │ │ │ ├── get-all-workspace-files.ts │ │ │ └── get-selected-files.ts │ │ ├── providers │ │ │ ├── open-editors │ │ │ │ └── open-editors-provider.ts │ │ │ └── workspace │ │ │ ├── modules │ │ │ │ └── token-calculator.ts │ │ │ └── workspace-provider.ts │ │ ├── shared-context-state.ts │ │ └── utils │ │ └── shrink-file │ │ └── shrink-file.spec.ts │ ├── features │ │ ├── agentic-search │ │ │ └── agentic-search.ts │ │ ├── checkpoints │ │ │ ├── actions │ │ │ │ └── create-checkpoint.ts │ │ │ └── utils │ │ │ ├── copy-optimised-recursively.ts │ │ │ └── get-checkpoint-path.ts │ │ ├── context-restoration │ │ │ └── utils │ │ │ ├── context-file-utils.ts │ │ │ ├── create-context-description.ts │ │ │ ├── global-storage-utils.ts │ │ │ ├── path-utils.ts │ │ │ ├── resolve-context-paths.ts │ │ │ ├── resolve-glob-patterns.ts │ │ │ ├── resolve-paths.ts │ │ │ ├── select-context-paths.ts │ │ │ └── source-selector.ts │ │ └── search-files │ │ ├── search-modes │ │ │ └── perform-intelligent-search-mode.ts │ │ └── utils │ │ ├── analyze-files.ts │ │ ├── prompt-for-intelligent-search-results.ts │ │ ├── search-files-by-keywords.ts │ │ └── search-files-by-phrase.ts │ ├── migrations │ │ └── migrate-commit-message-details-filename.ts │ ├── services │ │ ├── git-discard-file-watcher.ts │ │ └── websocket-manager.ts │ ├── utils │ │ ├── changes-integration │ │ │ ├── diff-processor │ │ │ │ ├── diff-processor.spec.ts │ │ │ │ └── test-cases │ │ │ │ ├── generic-2 │ │ │ │ │ ├── expected.txt │ │ │ │ │ └── original.txt │ │ │ │ ├── generic-3 │ │ │ │ │ ├── diff.txt │ │ │ │ │ ├── expected.txt │ │ │ │ │ └── original.txt │ │ │ │ ├── generic-4 │ │ │ │ │ ├── diff.txt │ │ │ │ │ ├── expected.txt │ │ │ │ │ └── original.txt │ │ │ │ └── generic-5 │ │ │ │ ├── expected.txt │ │ │ │ └── original.txt │ │ │ ├── search-replace-processor │ │ │ │ └── apply-search-replace-to-content │ │ │ │ └── apply-search-replace-to-content.spec.ts │ │ │ └── truncations-processor │ │ │ └── truncations-processor.spec.ts │ │ ├── cleanup-api-response │ │ │ └── cleanup-api-response.spec.ts │ │ ├── commit-message-details.ts │ │ ├── files-collector.ts │ │ ├── get-imports-for-uri.ts │ │ ├── git-repository-utils.ts │ │ ├── is-binary.ts │ │ ├── map-files-to-quick-pick-items.ts │ │ ├── path-sanitizer.ts │ │ ├── show-parent-folder-quick-pick.ts │ │ └── tasks-utils.ts │ └── views │ ├── prompt │ │ └── backend │ │ ├── message-handlers │ │ │ ├── handle-at-sign-quick-pick │ │ │ │ └── handle-at-sign-quick-pick.ts │ │ │ ├── handle-hash-sign-quick-pick │ │ │ │ └── symbols │ │ │ │ ├── saved-context-symbol.ts │ │ │ │ └── skill-symbol.ts │ │ │ ├── handle-open-file-and-select.ts │ │ │ ├── handle-open-prompt-image.ts │ │ │ ├── handle-open-prompt-pasted-text.ts │ │ │ ├── handle-preview-generated-code.ts │ │ │ ├── handle-save-prompt-image.ts │ │ │ ├── handle-save-prompt-pasted-text.ts │ │ │ ├── handle-show-diff.ts │ │ │ └── utils │ │ │ └── build-cli-prompt.ts │ │ ├── prompt-view-provider.ts │ │ └── utils │ │ ├── preview-text-in-temp-file.ts │ │ ├── symbols │ │ │ ├── fragment │ │ │ │ └── replace-fragment-symbol.ts │ │ │ ├── image │ │ │ │ └── replace-image-symbol.ts │ │ │ ├── pasted-text │ │ │ │ └── replace-pasted-text-symbol.ts │ │ │ ├── saved-context │ │ │ │ └── replace-saved-context-symbol.ts │ │ │ ├── skill │ │ │ │ └── replace-skill-symbol.ts │ │ │ └── website │ │ │ └── replace-website-symbol.ts │ │ └── website-fetcher.ts │ └── settings │ └── backend │ └── message-handlers │ ├── handle-open-allow-patterns-settings.ts │ └── handle-open-ignore-patterns-settings.ts └── webpack.config.ts
1 parent 73dc179 commit d2ea19b

100 files changed

Lines changed: 147 additions & 144 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/editor/src/commands/apply-response-command/response-processor/handlers/diff-handler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as vscode from 'vscode'
2-
import * as path from 'path'
31
import * as fs from 'fs'
2+
import * as path from 'path'
43
import { exec } from 'child_process'
4+
import * as vscode from 'vscode'
55
import { Logger } from '@shared/utils/logger'
66
import { OriginalFileState } from '../../types/original-file-state'
77
import { create_safe_path } from '@/utils/path-sanitizer'

‎apps/editor/src/commands/apply-response-command/response-processor/handlers/fast-replace-handler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
2-
import * as path from 'path'
31
import * as fs from 'fs'
2+
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { Logger } from '@shared/utils/logger'
55
import { create_safe_path, sanitize_file_name } from '@/utils/path-sanitizer'
66
import { t } from '@/i18n'

‎apps/editor/src/commands/apply-response-command/response-processor/handlers/restore-preview-handler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
2-
import * as path from 'path'
31
import * as fs from 'fs'
2+
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { Logger } from '@shared/utils/logger'
55
import { create_safe_path } from '@/utils/path-sanitizer'
66
import { t } from '@/i18n'

‎apps/editor/src/commands/apply-response-command/response-processor/handlers/search-replace-handler.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
21
import * as fs from 'fs'
32
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { Logger } from '@shared/utils/logger'
55
import { create_safe_path, sanitize_file_name } from '@/utils/path-sanitizer'
66
import { t } from '@/i18n'

‎apps/editor/src/commands/apply-response-command/response-processor/handlers/truncated-handler.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
21
import * as fs from 'fs'
32
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { Logger } from '@shared/utils/logger'
55
import { create_safe_path, sanitize_file_name } from '@/utils/path-sanitizer'
66
import { t } from '@/i18n'

‎apps/editor/src/commands/apply-response-command/response-processor/response-processor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
21
import * as fs from 'fs'
32
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { OriginalFileState } from '../types/original-file-state'
55
import { RecentApiConfiguration } from '@shared/types/response-history-item'
66
import { handle_restore_preview } from './handlers/restore-preview-handler'

‎apps/editor/src/commands/apply-response-command/utils/file-operations/cleanup-rename-source.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as vscode from 'vscode'
21
import * as path from 'path'
2+
import * as vscode from 'vscode'
33
import { close_file_tabs } from './close-file-tabs'
44
import { remove_directory_if_empty } from './remove-directory-if-empty'
55

‎apps/editor/src/commands/apply-response-command/utils/file-operations/create-file-if-needed.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as vscode from 'vscode'
21
import * as path from 'path'
2+
import * as vscode from 'vscode'
33
import { Logger } from '@shared/utils/logger'
44
import { t } from '@/i18n'
55
import { create_safe_path } from '@/utils/path-sanitizer'

‎apps/editor/src/commands/apply-response-command/utils/file-operations/handle-deleted-file-item.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as vscode from 'vscode'
2-
import * as path from 'path'
31
import * as fs from 'fs'
2+
import * as path from 'path'
3+
import * as vscode from 'vscode'
44
import { Logger } from '@shared/utils/logger'
55
import { OriginalFileState } from '@/commands/apply-response-command/types/original-file-state'
66
import { FileItem } from '../response-parser'

‎apps/editor/src/commands/apply-response-command/utils/file-operations/relocate-file.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as vscode from 'vscode'
21
import * as path from 'path'
2+
import * as vscode from 'vscode'
33
import { Logger } from '@shared/utils/logger'
44
import { create_safe_path } from '@/utils/path-sanitizer'
55
import { uri_exists } from './uri-exists'

0 commit comments

Comments
 (0)