@morphllm/morphsdk 0.2.75 → 0.2.80
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-IYLEB6BY.js → chunk-4R3ALD5C.js} +3 -3
- package/dist/{chunk-NGF2VIQV.js → chunk-5PGRBWJX.js} +3 -3
- package/dist/{chunk-RRWN62VU.js → chunk-6OII5QOW.js} +2 -2
- package/dist/{chunk-Q5AHGIQO.js → chunk-FMLHRJDF.js} +3 -1
- package/dist/{chunk-Q5AHGIQO.js.map → chunk-FMLHRJDF.js.map} +1 -1
- package/dist/{chunk-B5A4XLSQ.js → chunk-FY32COVL.js} +1 -1
- package/dist/{chunk-B5A4XLSQ.js.map → chunk-FY32COVL.js.map} +1 -1
- package/dist/{chunk-QIG7YPFW.js → chunk-HBIDSKIQ.js} +14 -3
- package/dist/chunk-HBIDSKIQ.js.map +1 -0
- package/dist/{chunk-KEHWEBFQ.js → chunk-LM62QCGS.js} +5 -5
- package/dist/{chunk-POVU2CPK.js → chunk-ND7IFSMR.js} +2 -2
- package/dist/{chunk-4WJSTOHP.js → chunk-QL5SMQ73.js} +3 -3
- package/dist/{chunk-SMGZ6A64.js → chunk-YPKNMYD4.js} +17 -1
- package/dist/chunk-YPKNMYD4.js.map +1 -0
- package/dist/client.cjs +28 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +9 -9
- package/dist/index.cjs +28 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/tools/warp_grep/agent/prompt.cjs +2 -0
- package/dist/tools/warp_grep/agent/prompt.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/prompt.d.ts +1 -1
- package/dist/tools/warp_grep/agent/prompt.js +1 -1
- package/dist/tools/warp_grep/agent/runner.cjs +2 -0
- 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 +28 -1
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +6 -6
- package/dist/tools/warp_grep/client.cjs +28 -1
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +5 -5
- package/dist/tools/warp_grep/gemini.cjs +28 -1
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +5 -5
- package/dist/tools/warp_grep/harness.cjs +28 -1
- package/dist/tools/warp_grep/harness.cjs.map +1 -1
- package/dist/tools/warp_grep/harness.js +3 -3
- package/dist/tools/warp_grep/index.cjs +30 -1
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +1 -0
- package/dist/tools/warp_grep/index.js +9 -6
- package/dist/tools/warp_grep/openai.cjs +28 -1
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +6 -6
- package/dist/tools/warp_grep/providers/local.cjs +26 -1
- package/dist/tools/warp_grep/providers/local.cjs.map +1 -1
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/utils/paths.cjs +17 -0
- package/dist/tools/warp_grep/utils/paths.cjs.map +1 -1
- package/dist/tools/warp_grep/utils/paths.d.ts +13 -1
- package/dist/tools/warp_grep/utils/paths.js +3 -1
- package/dist/tools/warp_grep/vercel.cjs +28 -1
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-QIG7YPFW.js.map +0 -1
- package/dist/chunk-SMGZ6A64.js.map +0 -1
- /package/dist/{chunk-IYLEB6BY.js.map → chunk-4R3ALD5C.js.map} +0 -0
- /package/dist/{chunk-NGF2VIQV.js.map → chunk-5PGRBWJX.js.map} +0 -0
- /package/dist/{chunk-RRWN62VU.js.map → chunk-6OII5QOW.js.map} +0 -0
- /package/dist/{chunk-KEHWEBFQ.js.map → chunk-LM62QCGS.js.map} +0 -0
- /package/dist/{chunk-POVU2CPK.js.map → chunk-ND7IFSMR.js.map} +0 -0
- /package/dist/{chunk-4WJSTOHP.js.map → chunk-QL5SMQ73.js.map} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LM62QCGS.js";
|
|
4
|
+
import "./chunk-4R3ALD5C.js";
|
|
5
|
+
import "./chunk-QL5SMQ73.js";
|
|
6
|
+
import "./chunk-ND7IFSMR.js";
|
|
7
7
|
import "./chunk-KW7OEGZK.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-5PGRBWJX.js";
|
|
9
|
+
import "./chunk-6OII5QOW.js";
|
|
10
10
|
import "./chunk-26QXQFLZ.js";
|
|
11
11
|
import "./chunk-DCIUCDWJ.js";
|
|
12
12
|
import "./chunk-APP75CBN.js";
|
|
13
13
|
import "./chunk-5QRN3JNB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-FMLHRJDF.js";
|
|
15
|
+
import "./chunk-HBIDSKIQ.js";
|
|
16
16
|
import "./chunk-G2RSY56Q.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YPKNMYD4.js";
|
|
18
18
|
import "./chunk-TPP2UGQP.js";
|
|
19
19
|
import "./chunk-XT5ZO6ES.js";
|
|
20
20
|
import "./chunk-UBX7QYBD.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1280,6 +1280,8 @@ I think I have a rough idea, but this is my last turn so I must call the finish
|
|
|
1280
1280
|
No commentary outside \`<think>\`. No explanations after tool calls.
|
|
1281
1281
|
</output_format>
|
|
1282
1282
|
|
|
1283
|
+
use as all 8 tool calls to be optimal
|
|
1284
|
+
|
|
1283
1285
|
<finishing_requirements>
|
|
1284
1286
|
When calling \`finish\`:
|
|
1285
1287
|
- Include the import section (typically lines 1-20) of each file
|
|
@@ -2071,6 +2073,21 @@ function isSymlink(p) {
|
|
|
2071
2073
|
return false;
|
|
2072
2074
|
}
|
|
2073
2075
|
}
|
|
2076
|
+
function fixPathRepetition(fullPath) {
|
|
2077
|
+
const segments = fullPath.split(import_path4.default.sep).filter(Boolean);
|
|
2078
|
+
if (segments.length < 2) return null;
|
|
2079
|
+
for (let len = Math.floor(segments.length / 2); len >= 1; len--) {
|
|
2080
|
+
for (let i = 0; i <= segments.length - 2 * len; i++) {
|
|
2081
|
+
const first = segments.slice(i, i + len);
|
|
2082
|
+
const second = segments.slice(i + len, i + 2 * len);
|
|
2083
|
+
if (first.every((seg, idx) => seg === second[idx])) {
|
|
2084
|
+
const fixed = [...segments.slice(0, i), ...segments.slice(i + len)];
|
|
2085
|
+
return import_path4.default.sep + fixed.join(import_path4.default.sep);
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
return null;
|
|
2090
|
+
}
|
|
2074
2091
|
function isTextualFile(filePath, maxBytes = 2e6) {
|
|
2075
2092
|
try {
|
|
2076
2093
|
const st = import_fs.default.statSync(filePath);
|
|
@@ -2253,7 +2270,17 @@ Details: ${res.stderr}` : ""}`
|
|
|
2253
2270
|
error: `[PATH ERROR] ${err instanceof Error ? err.message : String(err)}`
|
|
2254
2271
|
};
|
|
2255
2272
|
}
|
|
2256
|
-
|
|
2273
|
+
let stat = await import_promises3.default.stat(abs).catch(() => null);
|
|
2274
|
+
if (!stat || !stat.isFile()) {
|
|
2275
|
+
const fixedPath = fixPathRepetition(abs);
|
|
2276
|
+
if (fixedPath) {
|
|
2277
|
+
const fixedStat = await import_promises3.default.stat(fixedPath).catch(() => null);
|
|
2278
|
+
if (fixedStat?.isFile()) {
|
|
2279
|
+
abs = fixedPath;
|
|
2280
|
+
stat = fixedStat;
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2257
2284
|
if (!stat || !stat.isFile()) {
|
|
2258
2285
|
return {
|
|
2259
2286
|
lines: [],
|