@morphllm/morphsdk 0.2.83 → 0.2.84
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-RL4JBZ3T.js → chunk-262WRPS5.js} +2 -2
- package/dist/{chunk-HRK53IKL.js → chunk-D4EQYM6O.js} +2 -2
- package/dist/{chunk-P2O5JKE5.js → chunk-KRDIR7GG.js} +17 -8
- package/dist/chunk-KRDIR7GG.js.map +1 -0
- package/dist/{chunk-QOYI77CN.js → chunk-LF2X6YNP.js} +2 -2
- package/dist/{chunk-LXG37353.js → chunk-LX2WNS3L.js} +2 -2
- package/dist/{chunk-S27A4NQM.js → chunk-MJ7JODAY.js} +2 -2
- package/dist/{chunk-HPR6BJA7.js → chunk-N3RNM4A4.js} +5 -5
- package/dist/client.cjs +16 -7
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +7 -7
- package/dist/index.cjs +16 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/tools/warp_grep/agent/runner.cjs +16 -7
- 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 +16 -7
- 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 +16 -7
- 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 +16 -7
- 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 +16 -7
- 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 +16 -7
- 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 +16 -7
- 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 +16 -7
- 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-P2O5JKE5.js.map +0 -1
- /package/dist/{chunk-RL4JBZ3T.js.map → chunk-262WRPS5.js.map} +0 -0
- /package/dist/{chunk-HRK53IKL.js.map → chunk-D4EQYM6O.js.map} +0 -0
- /package/dist/{chunk-QOYI77CN.js.map → chunk-LF2X6YNP.js.map} +0 -0
- /package/dist/{chunk-LXG37353.js.map → chunk-LX2WNS3L.js.map} +0 -0
- /package/dist/{chunk-S27A4NQM.js.map → chunk-MJ7JODAY.js.map} +0 -0
- /package/dist/{chunk-HPR6BJA7.js.map → chunk-N3RNM4A4.js.map} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-N3RNM4A4.js";
|
|
4
|
+
import "./chunk-262WRPS5.js";
|
|
5
|
+
import "./chunk-LX2WNS3L.js";
|
|
6
|
+
import "./chunk-MJ7JODAY.js";
|
|
7
7
|
import "./chunk-KW7OEGZK.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-D4EQYM6O.js";
|
|
9
|
+
import "./chunk-LF2X6YNP.js";
|
|
10
10
|
import "./chunk-PUGSTXLO.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-KRDIR7GG.js";
|
|
12
12
|
import "./chunk-APP75CBN.js";
|
|
13
13
|
import "./chunk-5QRN3JNB.js";
|
|
14
14
|
import "./chunk-FMLHRJDF.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1611,14 +1611,23 @@ async function toolRead(provider, args) {
|
|
|
1611
1611
|
|
|
1612
1612
|
// tools/warp_grep/agent/tools/list_directory.ts
|
|
1613
1613
|
async function toolListDirectory(provider, args) {
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1614
|
+
const maxResults = args.maxResults ?? AGENT_CONFIG.MAX_OUTPUT_LINES;
|
|
1615
|
+
const initialDepth = args.maxDepth ?? AGENT_CONFIG.MAX_LIST_DEPTH;
|
|
1616
|
+
async function getListRecursive(currentDepth) {
|
|
1617
|
+
const entries = await provider.listDirectory({
|
|
1618
|
+
path: args.path,
|
|
1619
|
+
pattern: args.pattern ?? null,
|
|
1620
|
+
maxResults,
|
|
1621
|
+
maxDepth: currentDepth
|
|
1622
|
+
});
|
|
1623
|
+
if (entries.length >= maxResults && currentDepth > 0) {
|
|
1624
|
+
return getListRecursive(currentDepth - 1);
|
|
1625
|
+
}
|
|
1626
|
+
return { entries };
|
|
1627
|
+
}
|
|
1628
|
+
const { entries: list } = await getListRecursive(initialDepth);
|
|
1620
1629
|
if (!list.length) return "empty";
|
|
1621
|
-
if (list.length >=
|
|
1630
|
+
if (list.length >= maxResults) {
|
|
1622
1631
|
return "query not specific enough, tool called tried to return too much context and failed";
|
|
1623
1632
|
}
|
|
1624
1633
|
return list.map((e) => {
|