Skip to content

Commit 510f0ec

Browse files
committed
Rename shared mode types and imports to target
- rename `packages/shared/src/types/mode.ts` to target.ts ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ ├── backend │ │ ├── message-handlers │ │ │ ├── handle-copy-prompt.ts │ │ │ ├── handle-preview-prompt.ts │ │ │ └── handle-template-quick-pick.ts │ │ └── prompt-view-provider.ts │ ├── frontend │ │ ├── Home │ │ │ └── Home.tsx │ │ ├── Main │ │ │ ├── Main.tsx │ │ │ └── MainView │ │ │ ├── MainView.tsx │ │ │ ├── components │ │ │ │ └── Header │ │ │ │ └── Header.tsx │ │ │ └── hooks │ │ │ ├── use-invocation-counts.ts │ │ │ ├── use-keyboard-shortcuts.ts │ │ │ └── use-last-choice-tooltip.ts │ │ ├── Prompt.tsx │ │ └── hooks │ │ └── use-prompt │ │ ├── hooks │ │ │ └── use-instructions.ts │ │ └── use-prompt.ts │ └── types │ └── messages.ts └── packages ├── shared │ └── src │ └── types │ └── target.ts └── ui └── src └── components └── editor └── common └── prompts └── PromptField ├── PromptField.module.scss ├── PromptField.stories.tsx ├── PromptField.tsx └── hooks └── use-keyboard-shortcuts.ts
1 parent 4dbda94 commit 510f0ec

19 files changed

Lines changed: 22 additions & 23 deletions

File tree

‎apps/editor/src/views/prompt/backend/message-handlers/handle-copy-prompt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { PromptViewProvider } from '@/views/prompt/backend/prompt-view-provider'
22
import * as vscode from 'vscode'
33
import { build_prompt_payload } from './utils/build-prompt-payload'
44
import { build_cli_prompt } from './utils/build-cli-prompt'
5-
import { TARGET } from '@shared/types/mode'
5+
import { TARGET } from '@shared/types/target'
66
import {
77
EDIT_FORMAT_INSTRUCTIONS_WHOLE,
88
EDIT_FORMAT_INSTRUCTIONS_TRUNCATED,

‎apps/editor/src/views/prompt/backend/message-handlers/handle-preview-prompt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PromptViewProvider } from '@/views/prompt/backend/prompt-view-provider'
22
import { build_prompt_payload } from './utils/build-prompt-payload'
33
import { build_cli_prompt } from './utils/build-cli-prompt'
4-
import { TARGET } from '@shared/types/mode'
4+
import { TARGET } from '@shared/types/target'
55
import {
66
EDIT_FORMAT_INSTRUCTIONS_WHOLE,
77
EDIT_FORMAT_INSTRUCTIONS_TRUNCATED,

‎apps/editor/src/views/prompt/backend/message-handlers/handle-template-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from 'vscode'
22
import { PromptViewProvider } from '@/views/prompt/backend/prompt-view-provider'
3-
import { TARGET } from '@shared/types/mode'
3+
import { TARGET } from '@shared/types/target'
44
import { get_last_used_template_key } from '@/constants/state-keys'
55
import { ApiPromptType, WebPromptType } from '@shared/types/prompt-types'
66
import { t } from '@/i18n'

‎apps/editor/src/views/prompt/backend/prompt-view-provider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import {
110110
ConfigWebConfigurationFormat
111111
} from '@/utils/web-configuration-format-converters'
112112
import { CHATBOTS } from '@shared/constants/chatbots'
113-
import { TARGET, Target } from '@shared/types/mode'
113+
import { TARGET, Target } from '@shared/types/target'
114114
import {
115115
ApiPromptType,
116116
WebPromptType,

‎apps/editor/src/views/prompt/frontend/Home/Home.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Tasks as UiTasks } from '@ui/components/editor/prompt/Tasks'
1313
import { use_tasks } from './hooks/use-tasks'
1414
import { use_has_scrolled_past_target_button } from './hooks/use-has-scrolled-past-mode-button'
1515
import { use_compacting } from '@shared/hooks'
16-
import { TARGET } from '@shared/types/mode'
16+
import { TARGET } from '@shared/types/target'
1717
import {
1818
ApiPromptType,
1919
WebPromptType,

‎apps/editor/src/views/prompt/frontend/Main/Main.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
22
import { MainView } from './MainView'
33
import { WebConfiguration } from '@shared/types/web-configuration'
44
import { EditFormat } from '@shared/types/edit-format'
5-
import { TARGET, Target } from '@shared/types/mode'
5+
import { TARGET, Target } from '@shared/types/target'
66
import {
77
ApiPromptType,
88
WebPromptType,

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Responses as UiResponses } from '@ui/components/editor/prompt/Responses
99
import { StatusBar as UiStatusBar } from '@ui/components/editor/prompt/StatusBar'
1010
import { ResponseHistoryItem } from '@shared/types/response-history-item'
1111
import { EditFormat } from '@shared/types/edit-format'
12-
import { TARGET, Target } from '@shared/types/mode'
12+
import { TARGET, Target } from '@shared/types/target'
1313
import {
1414
ApiPromptType,
1515
WebPromptType,

‎apps/editor/src/views/prompt/frontend/Main/MainView/components/Header/Header.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TARGET, Target } from '@shared/types/mode'
1+
import { TARGET, Target } from '@shared/types/target'
22
import { use_compacting } from '@shared/hooks'
33
import {
44
ApiPromptType,

‎apps/editor/src/views/prompt/frontend/Main/MainView/hooks/use-invocation-counts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react'
2-
import { TARGET, Target } from '@shared/types/mode'
2+
import { TARGET, Target } from '@shared/types/target'
33
import {
44
ApiPromptType,
55
WebPromptType,

‎apps/editor/src/views/prompt/frontend/Main/MainView/hooks/use-keyboard-shortcuts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState, useRef } from 'react'
2-
import { TARGET, Target } from '@shared/types/mode'
2+
import { TARGET, Target } from '@shared/types/target'
33
import {
44
ApiPromptType,
55
WebPromptType,

0 commit comments

Comments
 (0)