@morphllm/morphsdk 0.2.203 → 0.2.204
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/README.md +101 -0
- package/dist/chunk-2GMG5XKU.js +100 -0
- package/dist/{chunk-NDUC7OV6.cjs → chunk-3HAHJYZQ.cjs} +3 -3
- package/dist/{chunk-AJBZA23L.js → chunk-3JROKKS4.js} +1 -1
- package/dist/{chunk-J56Q6C4Y.js → chunk-43JBUEIX.js} +1 -1
- package/dist/{chunk-E7FLETFO.js → chunk-4TZBUFVP.js} +1 -1
- package/dist/{chunk-EI2M567U.js → chunk-564XJOQP.js} +1 -1
- package/dist/{chunk-7NA7X7W2.cjs → chunk-5H3FKFOI.cjs} +8 -8
- package/dist/{chunk-65W4I66Q.cjs → chunk-5TTZQF4X.cjs} +16 -9
- package/dist/chunk-6HAYJA6M.cjs +317 -0
- package/dist/chunk-DLYDIYDK.cjs +305 -0
- package/dist/{chunk-LLQH6CCB.js → chunk-DYCMPDPV.js} +5 -3
- package/dist/{chunk-66THRMD7.js → chunk-DZP7BR66.js} +16 -12
- package/dist/chunk-E63OPKP7.js +96 -0
- package/dist/{chunk-IUM6CQYX.js → chunk-EJ6ID24K.js} +1 -1
- package/dist/{chunk-AFF6XYKL.cjs → chunk-F633IVQA.cjs} +28 -8
- package/dist/{chunk-GIQAIHUI.js → chunk-FGA6EYC2.js} +29 -6
- package/dist/{chunk-GDFPZ3NJ.js → chunk-G4RODMXA.js} +1 -1
- package/dist/{chunk-B3FD67F2.cjs → chunk-GUNGJC6X.cjs} +3 -3
- package/dist/{chunk-OCCGJ4S6.js → chunk-GYE3FY6Z.js} +1 -1
- package/dist/{chunk-OXXMTDOY.cjs → chunk-HNMEBYIS.cjs} +2 -2
- package/dist/{chunk-JNQKQKHS.cjs → chunk-HP3PCOTW.cjs} +3 -3
- package/dist/{chunk-KLVJIC2O.js → chunk-IGXNLXPN.js} +10 -3
- package/dist/{chunk-UUCRWJJR.cjs → chunk-JHC2R3HU.cjs} +20 -16
- package/dist/{chunk-N7UKZ5X7.js → chunk-JVMIFGZY.js} +4 -3
- package/dist/chunk-KF6S3EPJ.cjs +100 -0
- package/dist/{chunk-EZ2OFDBJ.js → chunk-L5SCKZVK.js} +10 -5
- package/dist/{chunk-E3XNKAMI.js → chunk-LQST3NW2.js} +1 -1
- package/dist/{chunk-GSUQGDCL.cjs → chunk-MMX5PUGC.cjs} +47 -40
- package/dist/{chunk-JBTR3FQD.cjs → chunk-NJWOWXUR.cjs} +8 -6
- package/dist/{chunk-HMLYJVZM.cjs → chunk-OCKEEEYE.cjs} +30 -7
- package/dist/chunk-OENJO7YW.js +306 -0
- package/dist/chunk-OKLAYEBC.cjs +2 -0
- package/dist/{chunk-H3HRSRR5.js → chunk-OX5GN2KB.js} +24 -4
- package/dist/{chunk-JUGNTIVU.js → chunk-OYBOP47A.js} +13 -1
- package/dist/chunk-OZHCHPIE.js +1 -0
- package/dist/{chunk-TL34BLQD.cjs → chunk-QT5LGZG3.cjs} +1 -1
- package/dist/chunk-R3TUE7O2.cjs +107 -0
- package/dist/{chunk-AXEKIRRY.js → chunk-SOQYE5A4.js} +27 -20
- package/dist/{chunk-KSZYOX6S.cjs → chunk-ST2OXLT5.cjs} +8 -8
- package/dist/{chunk-2UIOCSVJ.js → chunk-TH4MG73B.js} +1 -1
- package/dist/{chunk-NLACTMZT.js → chunk-U4PYAGNR.js} +1 -1
- package/dist/{chunk-VDFLPO7B.cjs → chunk-UHFVWYSP.cjs} +14 -2
- package/dist/{chunk-4R5MDGL6.cjs → chunk-UKBSXYKE.cjs} +3 -3
- package/dist/{chunk-S6QBPXBI.cjs → chunk-UZMMJ47A.cjs} +5 -5
- package/dist/{chunk-ODY2NKQU.cjs → chunk-VYE7O4FM.cjs} +5 -4
- package/dist/{chunk-JOZC4T6C.cjs → chunk-WIYVT4UO.cjs} +16 -11
- package/dist/{chunk-OM5ZSXQW.cjs → chunk-WJHHO24M.cjs} +2 -2
- package/dist/{chunk-ZLG2M2I4.cjs → chunk-YAUXTFIN.cjs} +2 -2
- package/dist/{chunk-JY6COF3X.js → chunk-YJUCGZNN.js} +1 -1
- package/dist/chunk-ZX6T3LNG.js +302 -0
- package/dist/{client-BWhi-vSj.d.ts → client-DSXbcxII.d.ts} +10 -1
- package/dist/client.cjs +27 -23
- package/dist/client.d.ts +4 -2
- package/dist/client.js +26 -22
- package/dist/core/client.cjs +9 -5
- package/dist/core/client.d.ts +8 -0
- package/dist/core/client.js +8 -4
- package/dist/core/error.cjs +4 -4
- package/dist/core/error.js +3 -3
- package/dist/core/index.cjs +10 -6
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +8 -4
- package/dist/core/resource.d.ts +2 -0
- package/dist/edge.cjs +43 -31
- package/dist/edge.d.ts +3 -0
- package/dist/edge.js +11 -7
- package/dist/guard-CvW03v4u.d.ts +59 -0
- package/dist/index.cjs +73 -48
- package/dist/index.d.ts +6 -2
- package/dist/index.js +30 -25
- package/dist/modelrouter/core.cjs +14 -10
- package/dist/modelrouter/core.d.ts +2 -0
- package/dist/modelrouter/core.js +9 -5
- package/dist/modelrouter/index.cjs +14 -10
- package/dist/modelrouter/index.d.ts +2 -0
- package/dist/modelrouter/index.js +9 -5
- package/dist/modelrouter/types.d.ts +5 -0
- package/dist/subagents/anthropic.cjs +16 -12
- package/dist/subagents/anthropic.d.ts +3 -1
- package/dist/subagents/anthropic.js +15 -11
- package/dist/subagents/index.d.ts +3 -1
- package/dist/subagents/prompts.d.ts +3 -1
- package/dist/subagents/types.d.ts +3 -1
- package/dist/subagents/vercel.cjs +16 -12
- package/dist/subagents/vercel.d.ts +3 -1
- package/dist/subagents/vercel.js +15 -11
- package/dist/tools/compact/core.cjs +10 -6
- package/dist/tools/compact/core.d.ts +2 -0
- package/dist/tools/compact/core.js +9 -5
- package/dist/tools/compact/index.cjs +12 -8
- package/dist/tools/compact/index.d.ts +3 -1
- package/dist/tools/compact/index.js +10 -6
- package/dist/tools/compact/types.d.ts +4 -4
- package/dist/tools/fastapply/anthropic.cjs +16 -12
- package/dist/tools/fastapply/anthropic.d.ts +2 -0
- package/dist/tools/fastapply/anthropic.js +11 -7
- package/dist/tools/fastapply/apply.cjs +12 -8
- package/dist/tools/fastapply/apply.d.ts +2 -0
- package/dist/tools/fastapply/apply.js +6 -2
- package/dist/tools/fastapply/core.cjs +18 -14
- package/dist/tools/fastapply/core.d.ts +3 -0
- package/dist/tools/fastapply/core.js +10 -6
- package/dist/tools/fastapply/index.cjs +22 -18
- package/dist/tools/fastapply/index.d.ts +2 -0
- package/dist/tools/fastapply/index.js +13 -9
- package/dist/tools/fastapply/openai.cjs +17 -13
- package/dist/tools/fastapply/openai.d.ts +2 -0
- package/dist/tools/fastapply/openai.js +11 -7
- package/dist/tools/fastapply/types.d.ts +9 -4
- package/dist/tools/fastapply/vercel.cjs +15 -11
- package/dist/tools/fastapply/vercel.d.ts +2 -0
- package/dist/tools/fastapply/vercel.js +11 -7
- package/dist/tools/index.cjs +22 -18
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +13 -9
- package/dist/tools/pii/index.cjs +47 -0
- package/dist/tools/pii/index.d.ts +4 -0
- package/dist/tools/pii/index.js +6 -0
- package/dist/tools/pii/model.cjs +45 -0
- package/dist/tools/pii/model.d.ts +83 -0
- package/dist/tools/pii/model.js +4 -0
- package/dist/tools/pii/patterns.cjs +15 -0
- package/dist/tools/pii/patterns.d.ts +31 -0
- package/dist/tools/pii/patterns.js +2 -0
- package/dist/tools/pii/regex.cjs +32 -0
- package/dist/tools/pii/regex.d.ts +48 -0
- package/dist/tools/pii/regex.js +3 -0
- package/dist/tools/pii/types.cjs +2 -0
- package/dist/tools/pii/types.d.ts +108 -0
- package/dist/tools/pii/types.js +1 -0
- package/dist/tools/utils/resilience.cjs +5 -5
- package/dist/tools/utils/resilience.js +2 -2
- package/dist/tools/warp_grep/agent/parser.d.ts +2 -0
- package/dist/tools/warp_grep/agent/runner.cjs +9 -5
- package/dist/tools/warp_grep/agent/runner.d.ts +2 -0
- package/dist/tools/warp_grep/agent/runner.js +7 -3
- package/dist/tools/warp_grep/agent/types.d.ts +4 -0
- package/dist/tools/warp_grep/anthropic.cjs +21 -17
- package/dist/tools/warp_grep/anthropic.d.ts +3 -1
- package/dist/tools/warp_grep/anthropic.js +15 -11
- package/dist/tools/warp_grep/client.cjs +21 -17
- package/dist/tools/warp_grep/client.d.ts +3 -1
- package/dist/tools/warp_grep/client.js +14 -10
- package/dist/tools/warp_grep/gemini.cjs +22 -18
- package/dist/tools/warp_grep/gemini.d.ts +3 -1
- package/dist/tools/warp_grep/gemini.js +15 -11
- package/dist/tools/warp_grep/harness.cjs +16 -16
- package/dist/tools/warp_grep/harness.d.ts +2 -0
- package/dist/tools/warp_grep/harness.js +4 -4
- package/dist/tools/warp_grep/index.cjs +30 -26
- package/dist/tools/warp_grep/index.d.ts +3 -1
- package/dist/tools/warp_grep/index.js +17 -13
- package/dist/tools/warp_grep/openai.cjs +22 -18
- package/dist/tools/warp_grep/openai.d.ts +3 -1
- package/dist/tools/warp_grep/openai.js +15 -11
- package/dist/tools/warp_grep/providers/code_storage_http.d.ts +3 -1
- package/dist/tools/warp_grep/providers/local.cjs +3 -3
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/providers/remote.d.ts +3 -1
- package/dist/tools/warp_grep/vercel.cjs +22 -18
- package/dist/tools/warp_grep/vercel.d.ts +3 -1
- package/dist/tools/warp_grep/vercel.js +15 -11
- package/dist/{types-DxZLPogx.d.ts → types-BKhXjDCB.d.ts} +6 -1
- package/dist/version.cjs +2 -2
- package/dist/version.js +1 -1
- package/package.json +11 -2
- package/dist/{chunk-OOEORM7H.cjs → chunk-E6V75LI6.cjs} +1 -1
- package/dist/{chunk-OSL4CNSO.js → chunk-TLMAMVAW.js} +1 -1
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
export { warpGrepInputSchema } from '../../chunk-2PPYWRMZ.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import '../../chunk-MF56KEI4.js';
|
|
3
|
+
export { LocalRipgrepProvider } from '../../chunk-TLMAMVAW.js';
|
|
4
4
|
import '../../chunk-6TZCVTW5.js';
|
|
5
5
|
export { fixPathRepetition } from '../../chunk-ZSHVXDA2.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-MLPZKUCO.js';
|
|
7
7
|
export { GITHUB_READ_FILE_DESCRIPTION, GITHUB_READ_FILE_INPUT_SCHEMA, GITHUB_READ_FILE_TOOL_NAME, GITHUB_SEARCH_DESCRIPTION, GITHUB_SEARCH_INPUT_SCHEMA, GITHUB_SEARCH_TOOL_NAME, WARP_GREP_DESCRIPTION, WARP_GREP_TOOL_NAME } from '../../chunk-UAPK3AIJ.js';
|
|
8
|
-
export { WarpGrepClient, executeGitHubReadFile, executeToolCall, executeWarpGrep, formatGitHubReadFileResult, formatResult } from '../../chunk-
|
|
9
|
-
export { createCodeStorageHttpCommands } from '../../chunk-HDP4QAZL.js';
|
|
8
|
+
export { WarpGrepClient, executeGitHubReadFile, executeToolCall, executeWarpGrep, formatGitHubReadFileResult, formatResult } from '../../chunk-DZP7BR66.js';
|
|
10
9
|
export { RemoteCommandsProvider } from '../../chunk-RYVW7RUM.js';
|
|
11
10
|
import '../../chunk-OPDWMD4Q.js';
|
|
12
|
-
export { runWarpGrep, runWarpGrepStreaming } from '../../chunk-
|
|
11
|
+
export { runWarpGrep, runWarpGrepStreaming } from '../../chunk-FGA6EYC2.js';
|
|
12
|
+
export { createCodeStorageHttpCommands } from '../../chunk-HDP4QAZL.js';
|
|
13
13
|
export { normalizeFinishFiles, readFinishFiles, toolGrep, toolListDirectory, toolRead } from '../../chunk-44OIEPIO.js';
|
|
14
|
-
import '../../chunk-M34E2AMK.js';
|
|
15
14
|
import '../../chunk-4OUGA3KS.js';
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import '../../chunk-
|
|
18
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-M34E2AMK.js';
|
|
16
|
+
import '../../chunk-JVMIFGZY.js';
|
|
17
|
+
import '../../chunk-OX5GN2KB.js';
|
|
18
|
+
import '../../chunk-IGXNLXPN.js';
|
|
19
19
|
import '../../chunk-6WP7EA4F.js';
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-E63OPKP7.js';
|
|
21
|
+
import '../../chunk-OENJO7YW.js';
|
|
22
|
+
import '../../chunk-2GMG5XKU.js';
|
|
23
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
24
|
+
import '../../chunk-564XJOQP.js';
|
|
25
|
+
import '../../chunk-4TZBUFVP.js';
|
|
26
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
23
27
|
import '../../chunk-NRG6QX3L.js';
|
|
24
28
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkST2OXLT5_cjs = require('../../chunk-ST2OXLT5.cjs');
|
|
6
6
|
require('../../chunk-EJTL2BOZ.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-VHD7CW5O.cjs');
|
|
7
|
+
var chunkJHC2R3HU_cjs = require('../../chunk-JHC2R3HU.cjs');
|
|
9
8
|
require('../../chunk-WR7LSUIR.cjs');
|
|
10
9
|
require('../../chunk-MWXJ6DZ2.cjs');
|
|
11
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-OCKEEEYE.cjs');
|
|
11
|
+
require('../../chunk-VHD7CW5O.cjs');
|
|
12
12
|
require('../../chunk-KVGZ2TSG.cjs');
|
|
13
|
-
require('../../chunk-4EQQGUZ7.cjs');
|
|
14
13
|
require('../../chunk-UNX7V6P6.cjs');
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-4EQQGUZ7.cjs');
|
|
15
|
+
require('../../chunk-VYE7O4FM.cjs');
|
|
16
|
+
require('../../chunk-F633IVQA.cjs');
|
|
17
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
18
18
|
require('../../chunk-VL4QNALG.cjs');
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
20
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
21
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
22
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
23
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
24
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
25
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
22
26
|
require('../../chunk-AWFZKS27.cjs');
|
|
23
27
|
require('../../chunk-75ZPJI57.cjs');
|
|
24
28
|
|
|
@@ -26,29 +30,29 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
26
30
|
|
|
27
31
|
Object.defineProperty(exports, "createGitHubReadFileTool", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkST2OXLT5_cjs.createGitHubReadFileTool; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "createGitHubSearchTool", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkST2OXLT5_cjs.createGitHubSearchTool; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "createWarpGrepTool", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkST2OXLT5_cjs.createWarpGrepTool; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "default", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkST2OXLT5_cjs.openai_default; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "execute", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkST2OXLT5_cjs.execute; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "warpGrepTool", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkST2OXLT5_cjs.warpGrepTool; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "formatResult", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJHC2R3HU_cjs.formatResult; }
|
|
54
58
|
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ChatCompletionTool } from 'openai/resources/chat/completions';
|
|
2
2
|
export { formatResult } from './client.js';
|
|
3
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult,
|
|
3
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult, g as GitHubSearchToolConfig, h as GitHubReadFileToolConfig, e as GitHubReadFileInput, f as GitHubReadFileResult } from '../../types-BKhXjDCB.js';
|
|
4
4
|
import './agent/types.js';
|
|
5
|
+
import '../../guard-CvW03v4u.js';
|
|
6
|
+
import '../pii/types.js';
|
|
5
7
|
import '../utils/resilience.js';
|
|
6
8
|
import '../../core/client.js';
|
|
7
9
|
import '../../core/resource.js';
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
export { createGitHubReadFileTool, createGitHubSearchTool, createWarpGrepTool, openai_default as default, execute, warpGrepTool } from '../../chunk-
|
|
1
|
+
export { createGitHubReadFileTool, createGitHubSearchTool, createWarpGrepTool, openai_default as default, execute, warpGrepTool } from '../../chunk-3JROKKS4.js';
|
|
2
2
|
import '../../chunk-UAPK3AIJ.js';
|
|
3
|
-
export { formatResult } from '../../chunk-
|
|
4
|
-
import '../../chunk-HDP4QAZL.js';
|
|
3
|
+
export { formatResult } from '../../chunk-DZP7BR66.js';
|
|
5
4
|
import '../../chunk-RYVW7RUM.js';
|
|
6
5
|
import '../../chunk-OPDWMD4Q.js';
|
|
7
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-FGA6EYC2.js';
|
|
7
|
+
import '../../chunk-HDP4QAZL.js';
|
|
8
8
|
import '../../chunk-44OIEPIO.js';
|
|
9
|
-
import '../../chunk-M34E2AMK.js';
|
|
10
9
|
import '../../chunk-4OUGA3KS.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-M34E2AMK.js';
|
|
11
|
+
import '../../chunk-JVMIFGZY.js';
|
|
12
|
+
import '../../chunk-OX5GN2KB.js';
|
|
13
|
+
import '../../chunk-IGXNLXPN.js';
|
|
14
14
|
import '../../chunk-6WP7EA4F.js';
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-E63OPKP7.js';
|
|
16
|
+
import '../../chunk-OENJO7YW.js';
|
|
17
|
+
import '../../chunk-2GMG5XKU.js';
|
|
18
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
19
|
+
import '../../chunk-564XJOQP.js';
|
|
20
|
+
import '../../chunk-4TZBUFVP.js';
|
|
21
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
18
22
|
import '../../chunk-NRG6QX3L.js';
|
|
19
23
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { R as RemoteCommands } from '../../../types-
|
|
1
|
+
import { R as RemoteCommands } from '../../../types-BKhXjDCB.js';
|
|
2
2
|
import './types.js';
|
|
3
|
+
import '../../../guard-CvW03v4u.js';
|
|
4
|
+
import '../../pii/types.js';
|
|
3
5
|
import '../../utils/resilience.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-XE6D4J63.cjs');
|
|
3
|
+
var chunkE6V75LI6_cjs = require('../../../chunk-E6V75LI6.cjs');
|
|
5
4
|
require('../../../chunk-NNKBKENK.cjs');
|
|
6
5
|
require('../../../chunk-QEEAIXL5.cjs');
|
|
6
|
+
require('../../../chunk-XE6D4J63.cjs');
|
|
7
7
|
require('../../../chunk-4EQQGUZ7.cjs');
|
|
8
8
|
require('../../../chunk-75ZPJI57.cjs');
|
|
9
9
|
|
|
@@ -11,5 +11,5 @@ require('../../../chunk-75ZPJI57.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "LocalRipgrepProvider", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkE6V75LI6_cjs.LocalRipgrepProvider; }
|
|
15
15
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { LocalRipgrepProvider } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-MLPZKUCO.js';
|
|
1
|
+
export { LocalRipgrepProvider } from '../../../chunk-TLMAMVAW.js';
|
|
3
2
|
import '../../../chunk-6TZCVTW5.js';
|
|
4
3
|
import '../../../chunk-ZSHVXDA2.js';
|
|
4
|
+
import '../../../chunk-MLPZKUCO.js';
|
|
5
5
|
import '../../../chunk-M34E2AMK.js';
|
|
6
6
|
import '../../../chunk-MLKGABMK.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { WarpGrepProvider, GrepResult, ReadResult, ListDirectoryEntry, GlobResult } from './types.js';
|
|
2
|
-
import { R as RemoteCommands } from '../../../types-
|
|
2
|
+
import { R as RemoteCommands } from '../../../types-BKhXjDCB.js';
|
|
3
|
+
import '../../../guard-CvW03v4u.js';
|
|
4
|
+
import '../../pii/types.js';
|
|
3
5
|
import '../../utils/resilience.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkUZMMJ47A_cjs = require('../../chunk-UZMMJ47A.cjs');
|
|
6
6
|
require('../../chunk-EJTL2BOZ.cjs');
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-VHD7CW5O.cjs');
|
|
7
|
+
var chunkJHC2R3HU_cjs = require('../../chunk-JHC2R3HU.cjs');
|
|
9
8
|
require('../../chunk-WR7LSUIR.cjs');
|
|
10
9
|
require('../../chunk-MWXJ6DZ2.cjs');
|
|
11
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-OCKEEEYE.cjs');
|
|
11
|
+
require('../../chunk-VHD7CW5O.cjs');
|
|
12
12
|
require('../../chunk-KVGZ2TSG.cjs');
|
|
13
|
-
require('../../chunk-4EQQGUZ7.cjs');
|
|
14
13
|
require('../../chunk-UNX7V6P6.cjs');
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-4EQQGUZ7.cjs');
|
|
15
|
+
require('../../chunk-VYE7O4FM.cjs');
|
|
16
|
+
require('../../chunk-F633IVQA.cjs');
|
|
17
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
18
18
|
require('../../chunk-VL4QNALG.cjs');
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
20
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
21
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
22
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
23
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
24
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
25
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
22
26
|
require('../../chunk-AWFZKS27.cjs');
|
|
23
27
|
require('../../chunk-75ZPJI57.cjs');
|
|
24
28
|
|
|
@@ -26,29 +30,29 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
26
30
|
|
|
27
31
|
Object.defineProperty(exports, "createGitHubReadFileTool", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkUZMMJ47A_cjs.createGitHubReadFileTool; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "createGitHubSearchTool", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkUZMMJ47A_cjs.createGitHubSearchTool; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "createWarpGrepTool", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkUZMMJ47A_cjs.createWarpGrepTool; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "default", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkUZMMJ47A_cjs.vercel_default; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "execute", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkUZMMJ47A_cjs.execute; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "warpGrepJsonSchema", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkUZMMJ47A_cjs.warpGrepJsonSchema; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "formatResult", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJHC2R3HU_cjs.formatResult; }
|
|
54
58
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { tool } from 'ai';
|
|
3
|
-
import { d as WarpGrepToolConfig, c as WarpGrepContext, b as WarpGrepResult,
|
|
3
|
+
import { d as WarpGrepToolConfig, c as WarpGrepContext, b as WarpGrepResult, g as GitHubSearchToolConfig, h as GitHubReadFileToolConfig, f as GitHubReadFileResult } from '../../types-BKhXjDCB.js';
|
|
4
4
|
export { formatResult } from './client.js';
|
|
5
5
|
import './providers/types.js';
|
|
6
|
+
import '../../guard-CvW03v4u.js';
|
|
7
|
+
import '../pii/types.js';
|
|
6
8
|
import '../utils/resilience.js';
|
|
7
9
|
import './agent/types.js';
|
|
8
10
|
import '../../core/client.js';
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
export { createGitHubReadFileTool, createGitHubSearchTool, createWarpGrepTool, vercel_default as default, execute, warpGrepJsonSchema } from '../../chunk-
|
|
1
|
+
export { createGitHubReadFileTool, createGitHubSearchTool, createWarpGrepTool, vercel_default as default, execute, warpGrepJsonSchema } from '../../chunk-YJUCGZNN.js';
|
|
2
2
|
import '../../chunk-UAPK3AIJ.js';
|
|
3
|
-
export { formatResult } from '../../chunk-
|
|
4
|
-
import '../../chunk-HDP4QAZL.js';
|
|
3
|
+
export { formatResult } from '../../chunk-DZP7BR66.js';
|
|
5
4
|
import '../../chunk-RYVW7RUM.js';
|
|
6
5
|
import '../../chunk-OPDWMD4Q.js';
|
|
7
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-FGA6EYC2.js';
|
|
7
|
+
import '../../chunk-HDP4QAZL.js';
|
|
8
8
|
import '../../chunk-44OIEPIO.js';
|
|
9
|
-
import '../../chunk-M34E2AMK.js';
|
|
10
9
|
import '../../chunk-4OUGA3KS.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-M34E2AMK.js';
|
|
11
|
+
import '../../chunk-JVMIFGZY.js';
|
|
12
|
+
import '../../chunk-OX5GN2KB.js';
|
|
13
|
+
import '../../chunk-IGXNLXPN.js';
|
|
14
14
|
import '../../chunk-6WP7EA4F.js';
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-E63OPKP7.js';
|
|
16
|
+
import '../../chunk-OENJO7YW.js';
|
|
17
|
+
import '../../chunk-2GMG5XKU.js';
|
|
18
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
19
|
+
import '../../chunk-564XJOQP.js';
|
|
20
|
+
import '../../chunk-4TZBUFVP.js';
|
|
21
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
18
22
|
import '../../chunk-NRG6QX3L.js';
|
|
19
23
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WarpGrepProvider } from './tools/warp_grep/providers/types.js';
|
|
2
|
+
import { R as RedactPIIOption } from './guard-CvW03v4u.js';
|
|
2
3
|
import { RetryConfig } from './tools/utils/resilience.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -72,6 +73,8 @@ interface WarpGrepClientConfig {
|
|
|
72
73
|
timeout?: number;
|
|
73
74
|
/** Retry configuration */
|
|
74
75
|
retryConfig?: RetryConfig;
|
|
76
|
+
/** Redact PII and secrets before anything is sent to Morph, and restore them in the result. See `MorphClient`'s `redactPII`. */
|
|
77
|
+
redactPII?: RedactPIIOption;
|
|
75
78
|
}
|
|
76
79
|
/**
|
|
77
80
|
* Input for warp grep execution
|
|
@@ -177,6 +180,8 @@ type GitHubReadFileToolConfig = Pick<WarpGrepClientConfig, 'timeout'>;
|
|
|
177
180
|
* Configuration for creating a warp grep tool
|
|
178
181
|
*/
|
|
179
182
|
interface WarpGrepToolConfig {
|
|
183
|
+
/** Redact PII and secrets before anything is sent to Morph, and restore them in the result. See `MorphClient`'s `redactPII`. */
|
|
184
|
+
redactPII?: RedactPIIOption;
|
|
180
185
|
/** Root directory of the repository to search */
|
|
181
186
|
repoRoot: string;
|
|
182
187
|
/** Remote command executors for sandbox environments. Simplest way to run in remote sandboxes. */
|
|
@@ -205,4 +210,4 @@ interface WarpGrepToolConfig {
|
|
|
205
210
|
search_type?: 'default' | 'node_modules';
|
|
206
211
|
}
|
|
207
212
|
|
|
208
|
-
export type {
|
|
213
|
+
export type { GitHubSearchInput as G, RemoteCommands as R, WarpGrepClientConfig as W, WarpGrepInput as a, WarpGrepResult as b, WarpGrepContext as c, WarpGrepToolConfig as d, GitHubReadFileInput as e, GitHubReadFileResult as f, GitHubSearchToolConfig as g, GitHubReadFileToolConfig as h };
|
package/dist/version.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQT5LGZG3_cjs = require('./chunk-QT5LGZG3.cjs');
|
|
4
4
|
require('./chunk-75ZPJI57.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkQT5LGZG3_cjs.SDK_VERSION; }
|
|
11
11
|
});
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SDK_VERSION } from './chunk-
|
|
1
|
+
export { SDK_VERSION } from './chunk-GYE3FY6Z.js';
|
|
2
2
|
import './chunk-MLKGABMK.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morphllm/morphsdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.204",
|
|
4
4
|
"description": "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
"import": "./dist/tools/compact/index.js",
|
|
88
88
|
"require": "./dist/tools/compact/index.cjs"
|
|
89
89
|
},
|
|
90
|
+
"./tools/pii": {
|
|
91
|
+
"types": "./dist/tools/pii/index.d.ts",
|
|
92
|
+
"import": "./dist/tools/pii/index.js",
|
|
93
|
+
"require": "./dist/tools/pii/index.cjs"
|
|
94
|
+
},
|
|
90
95
|
"./subagents": {
|
|
91
96
|
"types": "./dist/subagents/index.d.ts",
|
|
92
97
|
"import": "./dist/subagents/index.js",
|
|
@@ -116,7 +121,7 @@
|
|
|
116
121
|
"!dist/**/*.test.*"
|
|
117
122
|
],
|
|
118
123
|
"scripts": {
|
|
119
|
-
"build": "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts modelrouter/index.ts modelrouter/core.ts modelrouter/types.ts tools/compact/index.ts tools/compact/core.ts tools/compact/types.ts tools/utils/resilience.ts subagents/index.ts subagents/types.ts subagents/prompts.ts subagents/vercel.ts subagents/anthropic.ts --format esm,cjs --splitting --treeshake --clean --dts --dts-resolve && tsup ai-sdk/index.ts --format esm,cjs --dts --no-clean --out-dir dist/ai-sdk",
|
|
124
|
+
"build": "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts modelrouter/index.ts modelrouter/core.ts modelrouter/types.ts tools/compact/index.ts tools/compact/core.ts tools/compact/types.ts tools/pii/index.ts tools/pii/regex.ts tools/pii/model.ts tools/pii/patterns.ts tools/pii/types.ts tools/utils/resilience.ts subagents/index.ts subagents/types.ts subagents/prompts.ts subagents/vercel.ts subagents/anthropic.ts --format esm,cjs --splitting --treeshake --clean --dts --dts-resolve && tsup ai-sdk/index.ts --format esm,cjs --dts --no-clean --out-dir dist/ai-sdk",
|
|
120
125
|
"prepare": "npm run build",
|
|
121
126
|
"typecheck": "tsc --noEmit && tsc --noEmit -p ai-sdk/tsconfig.json",
|
|
122
127
|
"lint": "eslint .",
|
|
@@ -172,6 +177,7 @@
|
|
|
172
177
|
"@ai-sdk/openai-compatible": ">=2.0.74 <4",
|
|
173
178
|
"@anthropic-ai/sdk": ">=0.25.0",
|
|
174
179
|
"@google/generative-ai": ">=0.21.0",
|
|
180
|
+
"@huggingface/transformers": ">=3.0.0",
|
|
175
181
|
"ai": ">=5.0.0",
|
|
176
182
|
"zod": ">=3.23.0"
|
|
177
183
|
},
|
|
@@ -182,6 +188,9 @@
|
|
|
182
188
|
"@google/generative-ai": {
|
|
183
189
|
"optional": true
|
|
184
190
|
},
|
|
191
|
+
"@huggingface/transformers": {
|
|
192
|
+
"optional": true
|
|
193
|
+
},
|
|
185
194
|
"ai": {
|
|
186
195
|
"optional": true
|
|
187
196
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkXE6D4J63_cjs = require('./chunk-XE6D4J63.cjs');
|
|
4
3
|
var chunkNNKBKENK_cjs = require('./chunk-NNKBKENK.cjs');
|
|
5
4
|
var chunkQEEAIXL5_cjs = require('./chunk-QEEAIXL5.cjs');
|
|
5
|
+
var chunkXE6D4J63_cjs = require('./chunk-XE6D4J63.cjs');
|
|
6
6
|
var chunk4EQQGUZ7_cjs = require('./chunk-4EQQGUZ7.cjs');
|
|
7
7
|
var fs = require('fs/promises');
|
|
8
8
|
var path = require('path');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { runRipgrep } from './chunk-MLPZKUCO.js';
|
|
2
1
|
import { readAllLines } from './chunk-6TZCVTW5.js';
|
|
3
2
|
import { resolveUnderRepo, toRepoRelative, fixPathRepetition, isSymlink, isTextualFile } from './chunk-ZSHVXDA2.js';
|
|
3
|
+
import { runRipgrep } from './chunk-MLPZKUCO.js';
|
|
4
4
|
import { DEFAULT_EXCLUDES, AGENT_CONFIG } from './chunk-M34E2AMK.js';
|
|
5
5
|
import fs from 'fs/promises';
|
|
6
6
|
import path from 'path';
|