@byteplus-iga-pages/agent 1.0.3 → 1.0.4
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/cjs/419.js +5 -5
- package/dist/esm/392.js +5 -5
- package/package.json +1 -1
package/dist/cjs/419.js
CHANGED
|
@@ -214,8 +214,8 @@ exports.modules = {
|
|
|
214
214
|
file: types.Yj(),
|
|
215
215
|
line_number: types.ai(),
|
|
216
216
|
line_content: types.Yj(),
|
|
217
|
-
context_before: types.YO(types.Yj()).
|
|
218
|
-
context_after: types.YO(types.Yj()).
|
|
217
|
+
context_before: types.YO(types.Yj()).nullish(),
|
|
218
|
+
context_after: types.YO(types.Yj()).nullish()
|
|
219
219
|
});
|
|
220
220
|
const filesSearchSchema = types.Ik({
|
|
221
221
|
path: types.Yj(),
|
|
@@ -335,10 +335,10 @@ exports.modules = {
|
|
|
335
335
|
file: match.file,
|
|
336
336
|
lineNumber: match.line_number,
|
|
337
337
|
lineContent: match.line_content,
|
|
338
|
-
...
|
|
338
|
+
...null != match.context_before ? {
|
|
339
339
|
contextBefore: match.context_before
|
|
340
340
|
} : {},
|
|
341
|
-
...
|
|
341
|
+
...null != match.context_after ? {
|
|
342
342
|
contextAfter: match.context_after
|
|
343
343
|
} : {}
|
|
344
344
|
}))
|
|
@@ -505,7 +505,7 @@ exports.modules = {
|
|
|
505
505
|
}).strict(),
|
|
506
506
|
execute: async (input, options)=>mapData(await sandbox.file.readFile({
|
|
507
507
|
file: input.path,
|
|
508
|
-
start_line: input.startLine,
|
|
508
|
+
start_line: void 0 === input.startLine ? void 0 : input.startLine - 1,
|
|
509
509
|
end_line: input.endLine
|
|
510
510
|
}, requestOptions(options)), "sandbox.file.readFile", mapFilesReadOutput)
|
|
511
511
|
},
|
package/dist/esm/392.js
CHANGED
|
@@ -3814,8 +3814,8 @@ const fileSearchMatchSchema = objectType({
|
|
|
3814
3814
|
file: stringType(),
|
|
3815
3815
|
line_number: numberType(),
|
|
3816
3816
|
line_content: stringType(),
|
|
3817
|
-
context_before: arrayType(stringType()).
|
|
3818
|
-
context_after: arrayType(stringType()).
|
|
3817
|
+
context_before: arrayType(stringType()).nullish(),
|
|
3818
|
+
context_after: arrayType(stringType()).nullish()
|
|
3819
3819
|
});
|
|
3820
3820
|
const filesSearchSchema = objectType({
|
|
3821
3821
|
path: stringType(),
|
|
@@ -3935,10 +3935,10 @@ function mapFilesSearchOutput(value) {
|
|
|
3935
3935
|
file: match.file,
|
|
3936
3936
|
lineNumber: match.line_number,
|
|
3937
3937
|
lineContent: match.line_content,
|
|
3938
|
-
...
|
|
3938
|
+
...null != match.context_before ? {
|
|
3939
3939
|
contextBefore: match.context_before
|
|
3940
3940
|
} : {},
|
|
3941
|
-
...
|
|
3941
|
+
...null != match.context_after ? {
|
|
3942
3942
|
contextAfter: match.context_after
|
|
3943
3943
|
} : {}
|
|
3944
3944
|
}))
|
|
@@ -4105,7 +4105,7 @@ function createSandboxTools(sandbox) {
|
|
|
4105
4105
|
}).strict(),
|
|
4106
4106
|
execute: async (input, options)=>mapData(await sandbox.file.readFile({
|
|
4107
4107
|
file: input.path,
|
|
4108
|
-
start_line: input.startLine,
|
|
4108
|
+
start_line: void 0 === input.startLine ? void 0 : input.startLine - 1,
|
|
4109
4109
|
end_line: input.endLine
|
|
4110
4110
|
}, requestOptions(options)), "sandbox.file.readFile", mapFilesReadOutput)
|
|
4111
4111
|
},
|