orquesta-cli 0.2.99 → 0.2.100
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.
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export declare const AVAILABLE_TOOLS
|
|
1
|
+
export declare const AVAILABLE_TOOLS: string;
|
|
2
|
+
export declare const AVAILABLE_TOOLS_WITH_TODO: string;
|
|
3
|
+
export declare const TOOL_REASON_GUIDE: string;
|
|
4
|
+
export declare const FILE_MODIFICATION_RULES: string;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
AVAILABLE_TOOLS: string;
|
|
7
|
+
AVAILABLE_TOOLS_WITH_TODO: string;
|
|
8
|
+
TOOL_REASON_GUIDE: string;
|
|
9
|
+
FILE_MODIFICATION_RULES: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
2
12
|
//# sourceMappingURL=tool-usage.d.ts.map
|
|
@@ -5,198 +5,47 @@ export const AVAILABLE_TOOLS = `
|
|
|
5
5
|
- **create_file**: Create a NEW file (fails if file exists)
|
|
6
6
|
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
7
7
|
- **list_files**: List directory contents
|
|
8
|
-
- **find_files**: Search for files by pattern — ALWAYS use this to locate files. NEVER run
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (text; patterns in files(grep - like)
|
|
15
|
-
- ** bash ** ; )
|
|
16
|
-
: Execute;
|
|
17
|
-
shell;
|
|
18
|
-
commands(git, npm, etc.) `.trim();
|
|
8
|
+
- **find_files**: Search for files by pattern — ALWAYS use this to locate files. NEVER run "find /" or scan from the filesystem root via bash; it is slow, noisy, and crosses out of the project. Search within the project (relative paths / cwd) only.
|
|
9
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
10
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
11
|
+
`.trim();
|
|
12
|
+
export const AVAILABLE_TOOLS_WITH_TODO = `
|
|
13
|
+
## Available Tools
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
existing;
|
|
35
|
-
code
|
|
36
|
-
- ** create_file ** ;
|
|
37
|
-
Create;
|
|
38
|
-
a;
|
|
39
|
-
NEW;
|
|
40
|
-
file(fails);
|
|
41
|
-
if (file)
|
|
42
|
-
exists;
|
|
43
|
-
- ** edit_file ** ;
|
|
44
|
-
Edit;
|
|
45
|
-
an;
|
|
46
|
-
EXISTING;
|
|
47
|
-
file;
|
|
48
|
-
by;
|
|
49
|
-
replacing;
|
|
50
|
-
specific;
|
|
51
|
-
lines
|
|
52
|
-
- ** list_files ** ;
|
|
53
|
-
List;
|
|
54
|
-
directory;
|
|
55
|
-
contents
|
|
56
|
-
- ** find_files ** ;
|
|
57
|
-
Search;
|
|
58
|
-
for (files; by; pattern)
|
|
59
|
-
;
|
|
60
|
-
ALWAYS;
|
|
61
|
-
use;
|
|
62
|
-
this;
|
|
63
|
-
to;
|
|
64
|
-
locate;
|
|
65
|
-
files.NEVER;
|
|
66
|
-
run `find /`;
|
|
67
|
-
or;
|
|
68
|
-
scan;
|
|
69
|
-
from;
|
|
70
|
-
the;
|
|
71
|
-
filesystem;
|
|
72
|
-
root;
|
|
73
|
-
via;
|
|
74
|
-
bash;
|
|
75
|
-
it;
|
|
76
|
-
is;
|
|
77
|
-
slow, noisy, and;
|
|
78
|
-
crosses;
|
|
79
|
-
out;
|
|
80
|
-
of;
|
|
81
|
-
the;
|
|
82
|
-
project.Search;
|
|
83
|
-
within;
|
|
84
|
-
the;
|
|
85
|
-
project(relative, paths / cwd);
|
|
86
|
-
only.
|
|
87
|
-
- ** search_content ** ;
|
|
88
|
-
Search;
|
|
89
|
-
for (text; patterns in files(grep - like)
|
|
90
|
-
- ** bash ** ; )
|
|
91
|
-
: Execute;
|
|
92
|
-
shell;
|
|
93
|
-
commands(git, npm, etc.)
|
|
94
|
-
- ** tell_to_user ** ;
|
|
95
|
-
Send;
|
|
96
|
-
status;
|
|
97
|
-
updates;
|
|
98
|
-
to;
|
|
99
|
-
the;
|
|
100
|
-
user
|
|
101
|
-
- ** ask_to_user ** ;
|
|
102
|
-
Ask;
|
|
103
|
-
user;
|
|
104
|
-
a;
|
|
105
|
-
question;
|
|
106
|
-
with (multiple)
|
|
107
|
-
choice;
|
|
108
|
-
options
|
|
109
|
-
- ** write_todos ** ;
|
|
110
|
-
Update;
|
|
111
|
-
entire;
|
|
112
|
-
TODO;
|
|
113
|
-
list(replaces, current, list)
|
|
114
|
-
- ** call_docs_search_agent ** ;
|
|
115
|
-
Search;
|
|
116
|
-
local;
|
|
117
|
-
documentation(~/.local-cli/docs) `.trim();
|
|
15
|
+
- **read_file**: Read file contents to understand existing code
|
|
16
|
+
- **create_file**: Create a NEW file (fails if file exists)
|
|
17
|
+
- **edit_file**: Edit an EXISTING file by replacing specific lines
|
|
18
|
+
- **list_files**: List directory contents
|
|
19
|
+
- **find_files**: Search for files by pattern — ALWAYS use this to locate files. NEVER run "find /" or scan from the filesystem root via bash; it is slow, noisy, and crosses out of the project. Search within the project (relative paths / cwd) only.
|
|
20
|
+
- **search_content**: Search for text patterns in files (grep-like)
|
|
21
|
+
- **bash**: Execute shell commands (git, npm, etc.)
|
|
22
|
+
- **tell_to_user**: Send status updates to the user
|
|
23
|
+
- **ask_to_user**: Ask user a question with multiple choice options
|
|
24
|
+
- **write_todos**: Update entire TODO list (replaces current list)
|
|
25
|
+
- **call_docs_search_agent**: Search local documentation (~/.local-cli/docs)
|
|
26
|
+
`.trim();
|
|
27
|
+
export const TOOL_REASON_GUIDE = `
|
|
28
|
+
## CRITICAL - Tool "reason" Parameter
|
|
118
29
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#;
|
|
125
|
-
CRITICAL - Tool;
|
|
126
|
-
"reason";
|
|
127
|
-
Parameter;
|
|
128
|
-
Every;
|
|
129
|
-
tool;
|
|
130
|
-
has;
|
|
131
|
-
a;
|
|
132
|
-
required;
|
|
133
|
-
"reason";
|
|
134
|
-
parameter.This;
|
|
135
|
-
will;
|
|
136
|
-
be;
|
|
137
|
-
shown;
|
|
138
|
-
directly;
|
|
139
|
-
to;
|
|
140
|
-
the;
|
|
141
|
-
user.
|
|
142
|
-
;
|
|
143
|
-
Write;
|
|
144
|
-
naturally;
|
|
145
|
-
talking;
|
|
146
|
-
to;
|
|
147
|
-
the;
|
|
148
|
-
user.Examples;
|
|
149
|
-
-"Checking how the current authentication logic is implemented"
|
|
150
|
-
- "Fixing the buggy section"
|
|
151
|
-
- "Creating a new component file";
|
|
152
|
-
The;
|
|
153
|
-
reason;
|
|
154
|
-
helps;
|
|
155
|
-
users;
|
|
156
|
-
understand;
|
|
157
|
-
what;
|
|
158
|
-
you;
|
|
159
|
-
're doing and why.;
|
|
160
|
-
Remember;
|
|
161
|
-
to;
|
|
162
|
-
write;
|
|
163
|
-
the;
|
|
164
|
-
reason in the;
|
|
165
|
-
user;
|
|
166
|
-
's language. `.trim();
|
|
30
|
+
Every tool has a required "reason" parameter. This will be shown directly to the user.
|
|
31
|
+
Write naturally as if talking to the user. Examples:
|
|
32
|
+
- "Checking how the current authentication logic is implemented"
|
|
33
|
+
- "Fixing the buggy section"
|
|
34
|
+
- "Creating a new component file"
|
|
167
35
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export const FILE_MODIFICATION_RULES =
|
|
172
|
-
|
|
173
|
-
#;
|
|
174
|
-
File;
|
|
175
|
-
Modification;
|
|
176
|
-
Rules
|
|
177
|
-
- For;
|
|
178
|
-
NEW;
|
|
179
|
-
files: Use;
|
|
180
|
-
create_file
|
|
181
|
-
- For;
|
|
182
|
-
EXISTING;
|
|
183
|
-
files: First;
|
|
184
|
-
use;
|
|
185
|
-
read_file;
|
|
186
|
-
to;
|
|
187
|
-
see;
|
|
188
|
-
content, then;
|
|
189
|
-
use;
|
|
190
|
-
edit_file;
|
|
191
|
-
with (exact)
|
|
192
|
-
line;
|
|
193
|
-
matches `.trim();
|
|
36
|
+
The reason helps users understand what you're doing and why.
|
|
37
|
+
Remember to write the reason in the user's language.
|
|
38
|
+
`.trim();
|
|
39
|
+
export const FILE_MODIFICATION_RULES = `
|
|
40
|
+
## File Modification Rules
|
|
194
41
|
|
|
42
|
+
- For NEW files: Use create_file
|
|
43
|
+
- For EXISTING files: First use read_file to see content, then use edit_file with exact line matches
|
|
44
|
+
`.trim();
|
|
195
45
|
export default {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
46
|
+
AVAILABLE_TOOLS,
|
|
47
|
+
AVAILABLE_TOOLS_WITH_TODO,
|
|
48
|
+
TOOL_REASON_GUIDE,
|
|
49
|
+
FILE_MODIFICATION_RULES,
|
|
200
50
|
};
|
|
201
|
-
;
|
|
202
51
|
//# sourceMappingURL=tool-usage.js.map
|