@molecule/api-ai-tools 1.10.4 → 1.10.5
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/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +5 -2
- package/package.json +1 -1
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,UAAU,CAAA;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,UAAU,CAAA;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA8U1C,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -28,6 +28,9 @@ export const TOOL_SCHEMAS = {
|
|
|
28
28
|
'file before editing it. When you need more than one file — surveying a project, ' +
|
|
29
29
|
'gathering the files behind one feature — pass them all as `paths` in ONE call rather ' +
|
|
30
30
|
'than calling this tool once per file: same content, a fraction of the time. ' +
|
|
31
|
+
'Independent calls go in ONE response: read every file you need together (one `paths` ' +
|
|
32
|
+
'call, or several `read_file` calls in the same response) — they run at once. Only a call ' +
|
|
33
|
+
'that needs another call’s result waits for it. ' +
|
|
31
34
|
'For a @molecule package\u2019s docs call read_molecule_doc instead — one call, the whole ' +
|
|
32
35
|
'document. A file that fits one read result comes back whole; do not page through it with ' +
|
|
33
36
|
'offset/limit.',
|
|
@@ -64,7 +67,7 @@ export const TOOL_SCHEMAS = {
|
|
|
64
67
|
},
|
|
65
68
|
write_file: {
|
|
66
69
|
name: 'write_file',
|
|
67
|
-
description: "Create or overwrite a file with full content. Use edit_file for small targeted changes instead. The result gives the file's line count (and a small file's numbered lines).",
|
|
70
|
+
description: "Create or overwrite a file with full content. Use edit_file for small targeted changes instead. The result gives the file's line count (and a small file's numbered lines). Independent calls go in ONE response: write every file you already know the content of together — one write_file call per file, different paths, in the same response — instead of one file per round trip. Only a call that needs another call's result waits for it.",
|
|
68
71
|
parameters: {
|
|
69
72
|
type: 'object',
|
|
70
73
|
properties: {
|
|
@@ -82,7 +85,7 @@ export const TOOL_SCHEMAS = {
|
|
|
82
85
|
},
|
|
83
86
|
edit_file: {
|
|
84
87
|
name: 'edit_file',
|
|
85
|
-
description: 'Make targeted search-and-replace edits to a file. Preferred over write_file for small changes. Each old_string must match exactly once in the file, unless that replacement sets replace_all to change every occurrence (a rename, a repeated call). The result shows each edited region as it now reads, with line numbers, so there is no need to re-read the file to check an edit.',
|
|
88
|
+
description: 'Make targeted search-and-replace edits to a file. Preferred over write_file for small changes. Each old_string must match exactly once in the file, unless that replacement sets replace_all to change every occurrence (a rename, a repeated call). The result shows each edited region as it now reads, with line numbers, so there is no need to re-read the file to check an edit. Independent calls go in ONE response: edits to different files you already know how to make go together in the same response, one edit_file call per file. Only a call that needs another call’s result waits for it.',
|
|
86
89
|
parameters: {
|
|
87
90
|
type: 'object',
|
|
88
91
|
properties: {
|