Skip to content

Commit 46e962d

Browse files
committed
Rename "Requirements" section to "Task scope" in CLI prompts
- rename 'requirements' to 'task scope'
1 parent 7c43f90 commit 46e962d

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Whenever showing a new, updated, renamed, or deleted file, provide a brief expla
170170
171171
[SELECTED FILES]
172172
173-
# Requirements
173+
# Task scope
174174
175175
Before you proceed with [the task](#task), you must read all files provided as project-relative paths in [files](#files), and nothing else.
176176
@@ -208,7 +208,7 @@ _Multi-purpose: explanations, code reviews, you name it._
208208
209209
[SELECTED FILES]
210210
211-
# Requirements
211+
# Task scope
212212
213213
Before you proceed with [the task](#task), you must read all files provided as project-relative paths in [files](#files), and nothing else.
214214

‎apps/editor/src/constants/instructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ These files contain the core greeting logic and module exports.`
6969
export const voice_input_instructions =
7070
'Respond with a transcription of the following audio recording or text "INAUDIBLE", and nothing else.'
7171

72-
export const cli_edit_ask_requirements = {
72+
export const cli_edit_ask_task_scope = {
7373
preloaded_files:
7474
'All files necessary for [the task](#task) are listed in [files](#files).',
7575
referenced_files_with_some_preloaded:

‎apps/editor/src/views/prompt/backend/message-handlers/utils/build-cli-prompt.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from 'path'
22
import * as fs from 'fs/promises'
33
import { PromptViewProvider } from '@/views/prompt/backend/prompt-view-provider'
44
import { replace_symbols } from '@/views/prompt/backend/utils/symbols/replace-symbols'
5-
import { cli_edit_ask_requirements } from '@/constants/instructions'
5+
import { cli_edit_ask_task_scope } from '@/constants/instructions'
66
import { LAST_SELECTED_WORKSPACE_IN_AGENTIC_CLI_STATE_KEY } from '@/constants/state-keys'
77

88
export const build_cli_prompt = async (params: {
@@ -106,20 +106,20 @@ export const build_cli_prompt = async (params: {
106106

107107
const output_formatting_section = ''
108108

109-
const requirement = are_all_files_preloaded
110-
? cli_edit_ask_requirements.preloaded_files
109+
const task_scope = are_all_files_preloaded
110+
? cli_edit_ask_task_scope.preloaded_files
111111
: are_any_files_preloaded
112-
? cli_edit_ask_requirements.referenced_files_with_some_preloaded
113-
: cli_edit_ask_requirements.referenced_files_only
112+
? cli_edit_ask_task_scope.referenced_files_with_some_preloaded
113+
: cli_edit_ask_task_scope.referenced_files_only
114114

115-
const requirements_section = `# Requirements\n\n${requirement}`
115+
const task_scope_section = `# Task scope\n\n${task_scope}`
116116
const task_section = `# Task\n\n${processed_query}`
117117

118118
const parts = [
119119
files_section,
120120
skill_definitions,
121121
output_formatting_section,
122-
requirements_section,
122+
task_scope_section,
123123
task_section
124124
].filter((p) => p.trim() != '')
125125

0 commit comments

Comments
 (0)