@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.
Files changed (169) hide show
  1. package/README.md +101 -0
  2. package/dist/chunk-2GMG5XKU.js +100 -0
  3. package/dist/{chunk-NDUC7OV6.cjs → chunk-3HAHJYZQ.cjs} +3 -3
  4. package/dist/{chunk-AJBZA23L.js → chunk-3JROKKS4.js} +1 -1
  5. package/dist/{chunk-J56Q6C4Y.js → chunk-43JBUEIX.js} +1 -1
  6. package/dist/{chunk-E7FLETFO.js → chunk-4TZBUFVP.js} +1 -1
  7. package/dist/{chunk-EI2M567U.js → chunk-564XJOQP.js} +1 -1
  8. package/dist/{chunk-7NA7X7W2.cjs → chunk-5H3FKFOI.cjs} +8 -8
  9. package/dist/{chunk-65W4I66Q.cjs → chunk-5TTZQF4X.cjs} +16 -9
  10. package/dist/chunk-6HAYJA6M.cjs +317 -0
  11. package/dist/chunk-DLYDIYDK.cjs +305 -0
  12. package/dist/{chunk-LLQH6CCB.js → chunk-DYCMPDPV.js} +5 -3
  13. package/dist/{chunk-66THRMD7.js → chunk-DZP7BR66.js} +16 -12
  14. package/dist/chunk-E63OPKP7.js +96 -0
  15. package/dist/{chunk-IUM6CQYX.js → chunk-EJ6ID24K.js} +1 -1
  16. package/dist/{chunk-AFF6XYKL.cjs → chunk-F633IVQA.cjs} +28 -8
  17. package/dist/{chunk-GIQAIHUI.js → chunk-FGA6EYC2.js} +29 -6
  18. package/dist/{chunk-GDFPZ3NJ.js → chunk-G4RODMXA.js} +1 -1
  19. package/dist/{chunk-B3FD67F2.cjs → chunk-GUNGJC6X.cjs} +3 -3
  20. package/dist/{chunk-OCCGJ4S6.js → chunk-GYE3FY6Z.js} +1 -1
  21. package/dist/{chunk-OXXMTDOY.cjs → chunk-HNMEBYIS.cjs} +2 -2
  22. package/dist/{chunk-JNQKQKHS.cjs → chunk-HP3PCOTW.cjs} +3 -3
  23. package/dist/{chunk-KLVJIC2O.js → chunk-IGXNLXPN.js} +10 -3
  24. package/dist/{chunk-UUCRWJJR.cjs → chunk-JHC2R3HU.cjs} +20 -16
  25. package/dist/{chunk-N7UKZ5X7.js → chunk-JVMIFGZY.js} +4 -3
  26. package/dist/chunk-KF6S3EPJ.cjs +100 -0
  27. package/dist/{chunk-EZ2OFDBJ.js → chunk-L5SCKZVK.js} +10 -5
  28. package/dist/{chunk-E3XNKAMI.js → chunk-LQST3NW2.js} +1 -1
  29. package/dist/{chunk-GSUQGDCL.cjs → chunk-MMX5PUGC.cjs} +47 -40
  30. package/dist/{chunk-JBTR3FQD.cjs → chunk-NJWOWXUR.cjs} +8 -6
  31. package/dist/{chunk-HMLYJVZM.cjs → chunk-OCKEEEYE.cjs} +30 -7
  32. package/dist/chunk-OENJO7YW.js +306 -0
  33. package/dist/chunk-OKLAYEBC.cjs +2 -0
  34. package/dist/{chunk-H3HRSRR5.js → chunk-OX5GN2KB.js} +24 -4
  35. package/dist/{chunk-JUGNTIVU.js → chunk-OYBOP47A.js} +13 -1
  36. package/dist/chunk-OZHCHPIE.js +1 -0
  37. package/dist/{chunk-TL34BLQD.cjs → chunk-QT5LGZG3.cjs} +1 -1
  38. package/dist/chunk-R3TUE7O2.cjs +107 -0
  39. package/dist/{chunk-AXEKIRRY.js → chunk-SOQYE5A4.js} +27 -20
  40. package/dist/{chunk-KSZYOX6S.cjs → chunk-ST2OXLT5.cjs} +8 -8
  41. package/dist/{chunk-2UIOCSVJ.js → chunk-TH4MG73B.js} +1 -1
  42. package/dist/{chunk-NLACTMZT.js → chunk-U4PYAGNR.js} +1 -1
  43. package/dist/{chunk-VDFLPO7B.cjs → chunk-UHFVWYSP.cjs} +14 -2
  44. package/dist/{chunk-4R5MDGL6.cjs → chunk-UKBSXYKE.cjs} +3 -3
  45. package/dist/{chunk-S6QBPXBI.cjs → chunk-UZMMJ47A.cjs} +5 -5
  46. package/dist/{chunk-ODY2NKQU.cjs → chunk-VYE7O4FM.cjs} +5 -4
  47. package/dist/{chunk-JOZC4T6C.cjs → chunk-WIYVT4UO.cjs} +16 -11
  48. package/dist/{chunk-OM5ZSXQW.cjs → chunk-WJHHO24M.cjs} +2 -2
  49. package/dist/{chunk-ZLG2M2I4.cjs → chunk-YAUXTFIN.cjs} +2 -2
  50. package/dist/{chunk-JY6COF3X.js → chunk-YJUCGZNN.js} +1 -1
  51. package/dist/chunk-ZX6T3LNG.js +302 -0
  52. package/dist/{client-BWhi-vSj.d.ts → client-DSXbcxII.d.ts} +10 -1
  53. package/dist/client.cjs +27 -23
  54. package/dist/client.d.ts +4 -2
  55. package/dist/client.js +26 -22
  56. package/dist/core/client.cjs +9 -5
  57. package/dist/core/client.d.ts +8 -0
  58. package/dist/core/client.js +8 -4
  59. package/dist/core/error.cjs +4 -4
  60. package/dist/core/error.js +3 -3
  61. package/dist/core/index.cjs +10 -6
  62. package/dist/core/index.d.ts +2 -0
  63. package/dist/core/index.js +8 -4
  64. package/dist/core/resource.d.ts +2 -0
  65. package/dist/edge.cjs +43 -31
  66. package/dist/edge.d.ts +3 -0
  67. package/dist/edge.js +11 -7
  68. package/dist/guard-CvW03v4u.d.ts +59 -0
  69. package/dist/index.cjs +73 -48
  70. package/dist/index.d.ts +6 -2
  71. package/dist/index.js +30 -25
  72. package/dist/modelrouter/core.cjs +14 -10
  73. package/dist/modelrouter/core.d.ts +2 -0
  74. package/dist/modelrouter/core.js +9 -5
  75. package/dist/modelrouter/index.cjs +14 -10
  76. package/dist/modelrouter/index.d.ts +2 -0
  77. package/dist/modelrouter/index.js +9 -5
  78. package/dist/modelrouter/types.d.ts +5 -0
  79. package/dist/subagents/anthropic.cjs +16 -12
  80. package/dist/subagents/anthropic.d.ts +3 -1
  81. package/dist/subagents/anthropic.js +15 -11
  82. package/dist/subagents/index.d.ts +3 -1
  83. package/dist/subagents/prompts.d.ts +3 -1
  84. package/dist/subagents/types.d.ts +3 -1
  85. package/dist/subagents/vercel.cjs +16 -12
  86. package/dist/subagents/vercel.d.ts +3 -1
  87. package/dist/subagents/vercel.js +15 -11
  88. package/dist/tools/compact/core.cjs +10 -6
  89. package/dist/tools/compact/core.d.ts +2 -0
  90. package/dist/tools/compact/core.js +9 -5
  91. package/dist/tools/compact/index.cjs +12 -8
  92. package/dist/tools/compact/index.d.ts +3 -1
  93. package/dist/tools/compact/index.js +10 -6
  94. package/dist/tools/compact/types.d.ts +4 -4
  95. package/dist/tools/fastapply/anthropic.cjs +16 -12
  96. package/dist/tools/fastapply/anthropic.d.ts +2 -0
  97. package/dist/tools/fastapply/anthropic.js +11 -7
  98. package/dist/tools/fastapply/apply.cjs +12 -8
  99. package/dist/tools/fastapply/apply.d.ts +2 -0
  100. package/dist/tools/fastapply/apply.js +6 -2
  101. package/dist/tools/fastapply/core.cjs +18 -14
  102. package/dist/tools/fastapply/core.d.ts +3 -0
  103. package/dist/tools/fastapply/core.js +10 -6
  104. package/dist/tools/fastapply/index.cjs +22 -18
  105. package/dist/tools/fastapply/index.d.ts +2 -0
  106. package/dist/tools/fastapply/index.js +13 -9
  107. package/dist/tools/fastapply/openai.cjs +17 -13
  108. package/dist/tools/fastapply/openai.d.ts +2 -0
  109. package/dist/tools/fastapply/openai.js +11 -7
  110. package/dist/tools/fastapply/types.d.ts +9 -4
  111. package/dist/tools/fastapply/vercel.cjs +15 -11
  112. package/dist/tools/fastapply/vercel.d.ts +2 -0
  113. package/dist/tools/fastapply/vercel.js +11 -7
  114. package/dist/tools/index.cjs +22 -18
  115. package/dist/tools/index.d.ts +2 -0
  116. package/dist/tools/index.js +13 -9
  117. package/dist/tools/pii/index.cjs +47 -0
  118. package/dist/tools/pii/index.d.ts +4 -0
  119. package/dist/tools/pii/index.js +6 -0
  120. package/dist/tools/pii/model.cjs +45 -0
  121. package/dist/tools/pii/model.d.ts +83 -0
  122. package/dist/tools/pii/model.js +4 -0
  123. package/dist/tools/pii/patterns.cjs +15 -0
  124. package/dist/tools/pii/patterns.d.ts +31 -0
  125. package/dist/tools/pii/patterns.js +2 -0
  126. package/dist/tools/pii/regex.cjs +32 -0
  127. package/dist/tools/pii/regex.d.ts +48 -0
  128. package/dist/tools/pii/regex.js +3 -0
  129. package/dist/tools/pii/types.cjs +2 -0
  130. package/dist/tools/pii/types.d.ts +108 -0
  131. package/dist/tools/pii/types.js +1 -0
  132. package/dist/tools/utils/resilience.cjs +5 -5
  133. package/dist/tools/utils/resilience.js +2 -2
  134. package/dist/tools/warp_grep/agent/parser.d.ts +2 -0
  135. package/dist/tools/warp_grep/agent/runner.cjs +9 -5
  136. package/dist/tools/warp_grep/agent/runner.d.ts +2 -0
  137. package/dist/tools/warp_grep/agent/runner.js +7 -3
  138. package/dist/tools/warp_grep/agent/types.d.ts +4 -0
  139. package/dist/tools/warp_grep/anthropic.cjs +21 -17
  140. package/dist/tools/warp_grep/anthropic.d.ts +3 -1
  141. package/dist/tools/warp_grep/anthropic.js +15 -11
  142. package/dist/tools/warp_grep/client.cjs +21 -17
  143. package/dist/tools/warp_grep/client.d.ts +3 -1
  144. package/dist/tools/warp_grep/client.js +14 -10
  145. package/dist/tools/warp_grep/gemini.cjs +22 -18
  146. package/dist/tools/warp_grep/gemini.d.ts +3 -1
  147. package/dist/tools/warp_grep/gemini.js +15 -11
  148. package/dist/tools/warp_grep/harness.cjs +16 -16
  149. package/dist/tools/warp_grep/harness.d.ts +2 -0
  150. package/dist/tools/warp_grep/harness.js +4 -4
  151. package/dist/tools/warp_grep/index.cjs +30 -26
  152. package/dist/tools/warp_grep/index.d.ts +3 -1
  153. package/dist/tools/warp_grep/index.js +17 -13
  154. package/dist/tools/warp_grep/openai.cjs +22 -18
  155. package/dist/tools/warp_grep/openai.d.ts +3 -1
  156. package/dist/tools/warp_grep/openai.js +15 -11
  157. package/dist/tools/warp_grep/providers/code_storage_http.d.ts +3 -1
  158. package/dist/tools/warp_grep/providers/local.cjs +3 -3
  159. package/dist/tools/warp_grep/providers/local.js +2 -2
  160. package/dist/tools/warp_grep/providers/remote.d.ts +3 -1
  161. package/dist/tools/warp_grep/vercel.cjs +22 -18
  162. package/dist/tools/warp_grep/vercel.d.ts +3 -1
  163. package/dist/tools/warp_grep/vercel.js +15 -11
  164. package/dist/{types-DxZLPogx.d.ts → types-BKhXjDCB.d.ts} +6 -1
  165. package/dist/version.cjs +2 -2
  166. package/dist/version.js +1 -1
  167. package/package.json +11 -2
  168. package/dist/{chunk-OOEORM7H.cjs → chunk-E6V75LI6.cjs} +1 -1
  169. package/dist/{chunk-OSL4CNSO.js → chunk-TLMAMVAW.js} +1 -1
@@ -1,24 +1,28 @@
1
1
  export { warpGrepInputSchema } from '../../chunk-2PPYWRMZ.js';
2
- export { LocalRipgrepProvider } from '../../chunk-OSL4CNSO.js';
3
- import '../../chunk-MLPZKUCO.js';
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-MF56KEI4.js';
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-66THRMD7.js';
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-GIQAIHUI.js';
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-N7UKZ5X7.js';
17
- import '../../chunk-H3HRSRR5.js';
18
- import '../../chunk-KLVJIC2O.js';
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-EI2M567U.js';
21
- import '../../chunk-E7FLETFO.js';
22
- import '../../chunk-OCCGJ4S6.js';
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 chunkKSZYOX6S_cjs = require('../../chunk-KSZYOX6S.cjs');
5
+ var chunkST2OXLT5_cjs = require('../../chunk-ST2OXLT5.cjs');
6
6
  require('../../chunk-EJTL2BOZ.cjs');
7
- var chunkUUCRWJJR_cjs = require('../../chunk-UUCRWJJR.cjs');
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-HMLYJVZM.cjs');
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-ODY2NKQU.cjs');
16
- require('../../chunk-AFF6XYKL.cjs');
17
- require('../../chunk-65W4I66Q.cjs');
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-ZLG2M2I4.cjs');
20
- require('../../chunk-OM5ZSXQW.cjs');
21
- require('../../chunk-TL34BLQD.cjs');
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 chunkKSZYOX6S_cjs.createGitHubReadFileTool; }
33
+ get: function () { return chunkST2OXLT5_cjs.createGitHubReadFileTool; }
30
34
  });
31
35
  Object.defineProperty(exports, "createGitHubSearchTool", {
32
36
  enumerable: true,
33
- get: function () { return chunkKSZYOX6S_cjs.createGitHubSearchTool; }
37
+ get: function () { return chunkST2OXLT5_cjs.createGitHubSearchTool; }
34
38
  });
35
39
  Object.defineProperty(exports, "createWarpGrepTool", {
36
40
  enumerable: true,
37
- get: function () { return chunkKSZYOX6S_cjs.createWarpGrepTool; }
41
+ get: function () { return chunkST2OXLT5_cjs.createWarpGrepTool; }
38
42
  });
39
43
  Object.defineProperty(exports, "default", {
40
44
  enumerable: true,
41
- get: function () { return chunkKSZYOX6S_cjs.openai_default; }
45
+ get: function () { return chunkST2OXLT5_cjs.openai_default; }
42
46
  });
43
47
  Object.defineProperty(exports, "execute", {
44
48
  enumerable: true,
45
- get: function () { return chunkKSZYOX6S_cjs.execute; }
49
+ get: function () { return chunkST2OXLT5_cjs.execute; }
46
50
  });
47
51
  Object.defineProperty(exports, "warpGrepTool", {
48
52
  enumerable: true,
49
- get: function () { return chunkKSZYOX6S_cjs.warpGrepTool; }
53
+ get: function () { return chunkST2OXLT5_cjs.warpGrepTool; }
50
54
  });
51
55
  Object.defineProperty(exports, "formatResult", {
52
56
  enumerable: true,
53
- get: function () { return chunkUUCRWJJR_cjs.formatResult; }
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, G as GitHubSearchToolConfig, e as GitHubReadFileToolConfig, f as GitHubReadFileInput, g as GitHubReadFileResult } from '../../types-DxZLPogx.js';
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-AJBZA23L.js';
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-66THRMD7.js';
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-GIQAIHUI.js';
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-N7UKZ5X7.js';
12
- import '../../chunk-H3HRSRR5.js';
13
- import '../../chunk-KLVJIC2O.js';
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-EI2M567U.js';
16
- import '../../chunk-E7FLETFO.js';
17
- import '../../chunk-OCCGJ4S6.js';
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-DxZLPogx.js';
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 chunkOOEORM7H_cjs = require('../../../chunk-OOEORM7H.cjs');
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 chunkOOEORM7H_cjs.LocalRipgrepProvider; }
14
+ get: function () { return chunkE6V75LI6_cjs.LocalRipgrepProvider; }
15
15
  });
@@ -1,6 +1,6 @@
1
- export { LocalRipgrepProvider } from '../../../chunk-OSL4CNSO.js';
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-DxZLPogx.js';
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 chunkS6QBPXBI_cjs = require('../../chunk-S6QBPXBI.cjs');
5
+ var chunkUZMMJ47A_cjs = require('../../chunk-UZMMJ47A.cjs');
6
6
  require('../../chunk-EJTL2BOZ.cjs');
7
- var chunkUUCRWJJR_cjs = require('../../chunk-UUCRWJJR.cjs');
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-HMLYJVZM.cjs');
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-ODY2NKQU.cjs');
16
- require('../../chunk-AFF6XYKL.cjs');
17
- require('../../chunk-65W4I66Q.cjs');
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-ZLG2M2I4.cjs');
20
- require('../../chunk-OM5ZSXQW.cjs');
21
- require('../../chunk-TL34BLQD.cjs');
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 chunkS6QBPXBI_cjs.createGitHubReadFileTool; }
33
+ get: function () { return chunkUZMMJ47A_cjs.createGitHubReadFileTool; }
30
34
  });
31
35
  Object.defineProperty(exports, "createGitHubSearchTool", {
32
36
  enumerable: true,
33
- get: function () { return chunkS6QBPXBI_cjs.createGitHubSearchTool; }
37
+ get: function () { return chunkUZMMJ47A_cjs.createGitHubSearchTool; }
34
38
  });
35
39
  Object.defineProperty(exports, "createWarpGrepTool", {
36
40
  enumerable: true,
37
- get: function () { return chunkS6QBPXBI_cjs.createWarpGrepTool; }
41
+ get: function () { return chunkUZMMJ47A_cjs.createWarpGrepTool; }
38
42
  });
39
43
  Object.defineProperty(exports, "default", {
40
44
  enumerable: true,
41
- get: function () { return chunkS6QBPXBI_cjs.vercel_default; }
45
+ get: function () { return chunkUZMMJ47A_cjs.vercel_default; }
42
46
  });
43
47
  Object.defineProperty(exports, "execute", {
44
48
  enumerable: true,
45
- get: function () { return chunkS6QBPXBI_cjs.execute; }
49
+ get: function () { return chunkUZMMJ47A_cjs.execute; }
46
50
  });
47
51
  Object.defineProperty(exports, "warpGrepJsonSchema", {
48
52
  enumerable: true,
49
- get: function () { return chunkS6QBPXBI_cjs.warpGrepJsonSchema; }
53
+ get: function () { return chunkUZMMJ47A_cjs.warpGrepJsonSchema; }
50
54
  });
51
55
  Object.defineProperty(exports, "formatResult", {
52
56
  enumerable: true,
53
- get: function () { return chunkUUCRWJJR_cjs.formatResult; }
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, G as GitHubSearchToolConfig, e as GitHubReadFileToolConfig, g as GitHubReadFileResult } from '../../types-DxZLPogx.js';
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-JY6COF3X.js';
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-66THRMD7.js';
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-GIQAIHUI.js';
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-N7UKZ5X7.js';
12
- import '../../chunk-H3HRSRR5.js';
13
- import '../../chunk-KLVJIC2O.js';
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-EI2M567U.js';
16
- import '../../chunk-E7FLETFO.js';
17
- import '../../chunk-OCCGJ4S6.js';
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 { GitHubSearchToolConfig as G, RemoteCommands as R, WarpGrepClientConfig as W, WarpGrepInput as a, WarpGrepResult as b, WarpGrepContext as c, WarpGrepToolConfig as d, GitHubReadFileToolConfig as e, GitHubReadFileInput as f, GitHubReadFileResult as g, GitHubSearchInput as h };
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 chunkTL34BLQD_cjs = require('./chunk-TL34BLQD.cjs');
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 chunkTL34BLQD_cjs.SDK_VERSION; }
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-OCCGJ4S6.js';
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.203",
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';