@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
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
execute,
|
|
4
4
|
openai_default,
|
|
5
5
|
warpGrepTool
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-LMUZ3NGC.js";
|
|
7
7
|
import "../../chunk-KW7OEGZK.js";
|
|
8
8
|
import {
|
|
9
9
|
formatResult
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-PUGIOVSP.js";
|
|
11
|
+
import "../../chunk-VHOWYK66.js";
|
|
12
12
|
import "../../chunk-PUGSTXLO.js";
|
|
13
13
|
import "../../chunk-KRDIR7GG.js";
|
|
14
14
|
import "../../chunk-APP75CBN.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-SNGGSPYJ.js";
|
|
16
16
|
import {
|
|
17
17
|
getSystemPrompt
|
|
18
18
|
} from "../../chunk-FMLHRJDF.js";
|
|
@@ -414,8 +414,8 @@ function parseNestedXmlTools(text) {
|
|
|
414
414
|
const fileContent = fileMatch[1];
|
|
415
415
|
const filePath = getXmlElementText(fileContent, "path");
|
|
416
416
|
const linesStr = getXmlElementText(fileContent, "lines");
|
|
417
|
-
if (filePath
|
|
418
|
-
if (linesStr.trim() === "*") {
|
|
417
|
+
if (filePath) {
|
|
418
|
+
if (!linesStr || linesStr.trim() === "*") {
|
|
419
419
|
files.push({ path: filePath, lines: "*" });
|
|
420
420
|
} else {
|
|
421
421
|
const ranges = [];
|
|
@@ -427,6 +427,8 @@ function parseNestedXmlTools(text) {
|
|
|
427
427
|
}
|
|
428
428
|
if (ranges.length > 0) {
|
|
429
429
|
files.push({ path: filePath, lines: ranges });
|
|
430
|
+
} else {
|
|
431
|
+
files.push({ path: filePath, lines: "*" });
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
}
|
|
@@ -996,6 +998,7 @@ async function callModel(messages, model, options = {}) {
|
|
|
996
998
|
model,
|
|
997
999
|
temperature: 0,
|
|
998
1000
|
max_tokens: 1024,
|
|
1001
|
+
repetition_penalty: 1.05,
|
|
999
1002
|
messages
|
|
1000
1003
|
})
|
|
1001
1004
|
},
|