@morphllm/morphsdk 0.2.87 → 0.2.89
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/{chunk-KJL5RNVA.js → chunk-GU6DACME.js} +2 -2
- package/dist/{chunk-YWS4Y75I.js → chunk-IJ54DTJ3.js} +5 -5
- package/dist/{chunk-IXNX4HMC.js → chunk-LMUZ3NGC.js} +2 -2
- package/dist/{chunk-AJEE5RRB.js → chunk-PBLPZ6AU.js} +2 -2
- package/dist/{chunk-37SJ3IOY.js → chunk-PUGIOVSP.js} +2 -2
- package/dist/{chunk-5QRN3JNB.js → chunk-SNGGSPYJ.js} +5 -3
- package/dist/chunk-SNGGSPYJ.js.map +1 -0
- package/dist/{chunk-HJOMBO2A.js → chunk-VHOWYK66.js} +3 -2
- package/dist/chunk-VHOWYK66.js.map +1 -0
- package/dist/client.cjs +5 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +7 -7
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/tools/warp_grep/agent/parser.cjs +4 -2
- package/dist/tools/warp_grep/agent/parser.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/parser.js +1 -1
- package/dist/tools/warp_grep/agent/runner.cjs +5 -2
- package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/runner.js +2 -2
- package/dist/tools/warp_grep/anthropic.cjs +5 -2
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +4 -4
- package/dist/tools/warp_grep/client.cjs +5 -2
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +3 -3
- package/dist/tools/warp_grep/gemini.cjs +5 -2
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +3 -3
- package/dist/tools/warp_grep/harness.cjs +4 -2
- package/dist/tools/warp_grep/harness.cjs.map +1 -1
- package/dist/tools/warp_grep/harness.js +1 -1
- package/dist/tools/warp_grep/index.cjs +5 -2
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.js +3 -3
- package/dist/tools/warp_grep/openai.cjs +5 -2
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +4 -4
- package/dist/tools/warp_grep/vercel.cjs +5 -2
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-5QRN3JNB.js.map +0 -1
- package/dist/chunk-HJOMBO2A.js.map +0 -1
- /package/dist/{chunk-KJL5RNVA.js.map → chunk-GU6DACME.js.map} +0 -0
- /package/dist/{chunk-YWS4Y75I.js.map → chunk-IJ54DTJ3.js.map} +0 -0
- /package/dist/{chunk-IXNX4HMC.js.map → chunk-LMUZ3NGC.js.map} +0 -0
- /package/dist/{chunk-AJEE5RRB.js.map → chunk-PBLPZ6AU.js.map} +0 -0
- /package/dist/{chunk-37SJ3IOY.js.map → chunk-PUGIOVSP.js.map} +0 -0
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
createWarpGrepTool,
|
|
3
3
|
execute,
|
|
4
4
|
warpGrepTool
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-PBLPZ6AU.js";
|
|
6
6
|
import "../../chunk-KW7OEGZK.js";
|
|
7
7
|
import {
|
|
8
8
|
formatResult
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-PUGIOVSP.js";
|
|
10
|
+
import "../../chunk-VHOWYK66.js";
|
|
11
11
|
import "../../chunk-PUGSTXLO.js";
|
|
12
12
|
import "../../chunk-KRDIR7GG.js";
|
|
13
13
|
import "../../chunk-APP75CBN.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-SNGGSPYJ.js";
|
|
15
15
|
import {
|
|
16
16
|
getSystemPrompt
|
|
17
17
|
} from "../../chunk-FMLHRJDF.js";
|
|
@@ -410,8 +410,8 @@ function parseNestedXmlTools(text) {
|
|
|
410
410
|
const fileContent = fileMatch[1];
|
|
411
411
|
const filePath = getXmlElementText(fileContent, "path");
|
|
412
412
|
const linesStr = getXmlElementText(fileContent, "lines");
|
|
413
|
-
if (filePath
|
|
414
|
-
if (linesStr.trim() === "*") {
|
|
413
|
+
if (filePath) {
|
|
414
|
+
if (!linesStr || linesStr.trim() === "*") {
|
|
415
415
|
files.push({ path: filePath, lines: "*" });
|
|
416
416
|
} else {
|
|
417
417
|
const ranges = [];
|
|
@@ -423,6 +423,8 @@ function parseNestedXmlTools(text) {
|
|
|
423
423
|
}
|
|
424
424
|
if (ranges.length > 0) {
|
|
425
425
|
files.push({ path: filePath, lines: ranges });
|
|
426
|
+
} else {
|
|
427
|
+
files.push({ path: filePath, lines: "*" });
|
|
426
428
|
}
|
|
427
429
|
}
|
|
428
430
|
}
|
|
@@ -992,6 +994,7 @@ async function callModel(messages, model, options = {}) {
|
|
|
992
994
|
model,
|
|
993
995
|
temperature: 0,
|
|
994
996
|
max_tokens: 1024,
|
|
997
|
+
repetition_penalty: 1.05,
|
|
995
998
|
messages
|
|
996
999
|
})
|
|
997
1000
|
},
|