@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,14 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3HAHJYZQ_cjs = require('../../chunk-3HAHJYZQ.cjs');
|
|
4
4
|
require('../../chunk-74A4HLIO.cjs');
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-NJWOWXUR.cjs');
|
|
6
|
+
require('../../chunk-UHFVWYSP.cjs');
|
|
7
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
8
8
|
require('../../chunk-VL4QNALG.cjs');
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
10
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
11
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
12
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
13
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
14
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
15
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
12
16
|
require('../../chunk-AWFZKS27.cjs');
|
|
13
17
|
require('../../chunk-75ZPJI57.cjs');
|
|
14
18
|
|
|
@@ -16,21 +20,21 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
16
20
|
|
|
17
21
|
Object.defineProperty(exports, "createEditFileTool", {
|
|
18
22
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk3HAHJYZQ_cjs.createEditFileTool; }
|
|
20
24
|
});
|
|
21
25
|
Object.defineProperty(exports, "editFileTool", {
|
|
22
26
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk3HAHJYZQ_cjs.editFileTool; }
|
|
24
28
|
});
|
|
25
29
|
Object.defineProperty(exports, "execute", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk3HAHJYZQ_cjs.execute; }
|
|
28
32
|
});
|
|
29
33
|
Object.defineProperty(exports, "formatResult", {
|
|
30
34
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk3HAHJYZQ_cjs.formatResult; }
|
|
32
36
|
});
|
|
33
37
|
Object.defineProperty(exports, "getSystemPrompt", {
|
|
34
38
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk3HAHJYZQ_cjs.getSystemPrompt; }
|
|
36
40
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import '@anthropic-ai/sdk/resources/messages';
|
|
2
2
|
import './types.js';
|
|
3
3
|
export { c as createEditFileTool, e as editFileTool, b as execute, f as formatResult, g as getSystemPrompt } from '../../anthropic-DpEAqqZF.js';
|
|
4
|
+
import '../../guard-CvW03v4u.js';
|
|
5
|
+
import '../pii/types.js';
|
|
4
6
|
import '../utils/resilience.js';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
export { createEditFileTool, editFileTool, execute, formatResult, getSystemPrompt } from '../../chunk-
|
|
1
|
+
export { createEditFileTool, editFileTool, execute, formatResult, getSystemPrompt } from '../../chunk-43JBUEIX.js';
|
|
2
2
|
import '../../chunk-PA3UTI4A.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-DYCMPDPV.js';
|
|
4
|
+
import '../../chunk-OYBOP47A.js';
|
|
5
|
+
import '../../chunk-IGXNLXPN.js';
|
|
6
6
|
import '../../chunk-6WP7EA4F.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-E63OPKP7.js';
|
|
8
|
+
import '../../chunk-OENJO7YW.js';
|
|
9
|
+
import '../../chunk-2GMG5XKU.js';
|
|
10
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
11
|
+
import '../../chunk-564XJOQP.js';
|
|
12
|
+
import '../../chunk-4TZBUFVP.js';
|
|
13
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
10
14
|
import '../../chunk-NRG6QX3L.js';
|
|
11
15
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUHFVWYSP_cjs = require('../../chunk-UHFVWYSP.cjs');
|
|
4
4
|
require('../../chunk-VL4QNALG.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
6
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
7
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
8
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
9
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
6
10
|
require('../../chunk-75ZPJI57.cjs');
|
|
7
11
|
|
|
8
12
|
|
|
9
13
|
|
|
10
14
|
Object.defineProperty(exports, "FastApplyAnchorIntegrityError", {
|
|
11
15
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyAnchorIntegrityError; }
|
|
13
17
|
});
|
|
14
18
|
Object.defineProperty(exports, "FastApplyContextLengthError", {
|
|
15
19
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyContextLengthError; }
|
|
17
21
|
});
|
|
18
22
|
Object.defineProperty(exports, "applyEdit", {
|
|
19
23
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkUHFVWYSP_cjs.applyEdit; }
|
|
21
25
|
});
|
|
22
26
|
Object.defineProperty(exports, "callMorphAPI", {
|
|
23
27
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkUHFVWYSP_cjs.callMorphAPI; }
|
|
25
29
|
});
|
|
26
30
|
Object.defineProperty(exports, "countChanges", {
|
|
27
31
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkUHFVWYSP_cjs.countChanges; }
|
|
29
33
|
});
|
|
30
34
|
Object.defineProperty(exports, "generateUdiff", {
|
|
31
35
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkUHFVWYSP_cjs.generateUdiff; }
|
|
33
37
|
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, callMorphAPI, countChanges, generateUdiff } from '../../chunk-
|
|
1
|
+
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, callMorphAPI, countChanges, generateUdiff } from '../../chunk-OYBOP47A.js';
|
|
2
2
|
import '../../chunk-6WP7EA4F.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-E63OPKP7.js';
|
|
4
|
+
import '../../chunk-OENJO7YW.js';
|
|
5
|
+
import '../../chunk-2GMG5XKU.js';
|
|
6
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
7
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
4
8
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunkNJWOWXUR_cjs = require('../../chunk-NJWOWXUR.cjs');
|
|
4
|
+
var chunkUHFVWYSP_cjs = require('../../chunk-UHFVWYSP.cjs');
|
|
5
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
6
6
|
require('../../chunk-VL4QNALG.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
8
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
9
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
10
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
11
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
12
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
13
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
10
14
|
require('../../chunk-AWFZKS27.cjs');
|
|
11
15
|
require('../../chunk-75ZPJI57.cjs');
|
|
12
16
|
|
|
@@ -14,33 +18,33 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
14
18
|
|
|
15
19
|
Object.defineProperty(exports, "FastApplyClient", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkNJWOWXUR_cjs.FastApplyClient; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "executeEditFile", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkNJWOWXUR_cjs.executeEditFile; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "FastApplyAnchorIntegrityError", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyAnchorIntegrityError; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "FastApplyContextLengthError", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyContextLengthError; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "applyEdit", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkUHFVWYSP_cjs.applyEdit; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "callMorphAPI", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkUHFVWYSP_cjs.callMorphAPI; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "countChanges", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkUHFVWYSP_cjs.countChanges; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "generateUdiff", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkUHFVWYSP_cjs.generateUdiff; }
|
|
46
50
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { EditFileInput, EditFileConfig, EditFileResult, ApplyEditInput, ApplyEditConfig, ApplyEditResult } from './types.js';
|
|
2
|
+
import { R as RedactPIIOption } from '../../guard-CvW03v4u.js';
|
|
2
3
|
import { MorphAPIClient } from '../../core/client.js';
|
|
3
4
|
import { APIResource } from '../../core/resource.js';
|
|
4
5
|
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, callMorphAPI, countChanges, generateUdiff } from './apply.js';
|
|
5
6
|
import '../utils/resilience.js';
|
|
7
|
+
import '../pii/types.js';
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* FastApply client for programmatic file editing
|
|
@@ -19,6 +21,7 @@ declare class FastApplyClient extends APIResource {
|
|
|
19
21
|
debug?: boolean;
|
|
20
22
|
timeout?: number;
|
|
21
23
|
retryConfig?: any;
|
|
24
|
+
redactPII?: RedactPIIOption;
|
|
22
25
|
});
|
|
23
26
|
/**
|
|
24
27
|
* Execute a file edit operation
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export { FastApplyClient, executeEditFile } from '../../chunk-
|
|
2
|
-
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, callMorphAPI, countChanges, generateUdiff } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { FastApplyClient, executeEditFile } from '../../chunk-DYCMPDPV.js';
|
|
2
|
+
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, callMorphAPI, countChanges, generateUdiff } from '../../chunk-OYBOP47A.js';
|
|
3
|
+
import '../../chunk-IGXNLXPN.js';
|
|
4
4
|
import '../../chunk-6WP7EA4F.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-E63OPKP7.js';
|
|
6
|
+
import '../../chunk-OENJO7YW.js';
|
|
7
|
+
import '../../chunk-2GMG5XKU.js';
|
|
8
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
9
|
+
import '../../chunk-564XJOQP.js';
|
|
10
|
+
import '../../chunk-4TZBUFVP.js';
|
|
11
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
8
12
|
import '../../chunk-NRG6QX3L.js';
|
|
9
13
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../chunk-BJBWWIZV.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkHNMEBYIS_cjs = require('../../chunk-HNMEBYIS.cjs');
|
|
5
|
+
var chunkHP3PCOTW_cjs = require('../../chunk-HP3PCOTW.cjs');
|
|
6
|
+
var chunk3HAHJYZQ_cjs = require('../../chunk-3HAHJYZQ.cjs');
|
|
7
7
|
var chunk74A4HLIO_cjs = require('../../chunk-74A4HLIO.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
require('../../chunk-
|
|
8
|
+
var chunkNJWOWXUR_cjs = require('../../chunk-NJWOWXUR.cjs');
|
|
9
|
+
var chunkUHFVWYSP_cjs = require('../../chunk-UHFVWYSP.cjs');
|
|
10
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
11
11
|
require('../../chunk-VL4QNALG.cjs');
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
13
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
14
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
15
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
16
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
17
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
18
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
15
19
|
require('../../chunk-AWFZKS27.cjs');
|
|
16
20
|
require('../../chunk-75ZPJI57.cjs');
|
|
17
21
|
|
|
@@ -19,15 +23,15 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
19
23
|
|
|
20
24
|
Object.defineProperty(exports, "openai", {
|
|
21
25
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkHNMEBYIS_cjs.openai_exports; }
|
|
23
27
|
});
|
|
24
28
|
Object.defineProperty(exports, "vercel", {
|
|
25
29
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkHP3PCOTW_cjs.vercel_exports; }
|
|
27
31
|
});
|
|
28
32
|
Object.defineProperty(exports, "anthropic", {
|
|
29
33
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk3HAHJYZQ_cjs.anthropic_exports; }
|
|
31
35
|
});
|
|
32
36
|
Object.defineProperty(exports, "EDIT_FILE_SYSTEM_PROMPT", {
|
|
33
37
|
enumerable: true,
|
|
@@ -39,25 +43,25 @@ Object.defineProperty(exports, "EDIT_FILE_TOOL_DESCRIPTION", {
|
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "executeEditFile", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkNJWOWXUR_cjs.executeEditFile; }
|
|
43
47
|
});
|
|
44
48
|
Object.defineProperty(exports, "FastApplyAnchorIntegrityError", {
|
|
45
49
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyAnchorIntegrityError; }
|
|
47
51
|
});
|
|
48
52
|
Object.defineProperty(exports, "FastApplyContextLengthError", {
|
|
49
53
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkUHFVWYSP_cjs.FastApplyContextLengthError; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "applyEdit", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkUHFVWYSP_cjs.applyEdit; }
|
|
55
59
|
});
|
|
56
60
|
Object.defineProperty(exports, "countChanges", {
|
|
57
61
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkUHFVWYSP_cjs.countChanges; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "generateUdiff", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkUHFVWYSP_cjs.generateUdiff; }
|
|
63
67
|
});
|
|
@@ -5,6 +5,8 @@ export { a as anthropic } from '../../anthropic-DpEAqqZF.js';
|
|
|
5
5
|
export { o as openai } from '../../openai-BkKsS30n.js';
|
|
6
6
|
export { v as vercel } from '../../vercel-Cg38kNm4.js';
|
|
7
7
|
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, countChanges, generateUdiff } from './apply.js';
|
|
8
|
+
import '../../guard-CvW03v4u.js';
|
|
9
|
+
import '../pii/types.js';
|
|
8
10
|
import '../../core/client.js';
|
|
9
11
|
import '../utils/resilience.js';
|
|
10
12
|
import '../../core/resource.js';
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import '../../chunk-FBOZIVVQ.js';
|
|
2
|
-
export { openai_exports as openai } from '../../chunk-
|
|
3
|
-
export { vercel_exports as vercel } from '../../chunk-
|
|
4
|
-
export { anthropic_exports as anthropic } from '../../chunk-
|
|
2
|
+
export { openai_exports as openai } from '../../chunk-G4RODMXA.js';
|
|
3
|
+
export { vercel_exports as vercel } from '../../chunk-U4PYAGNR.js';
|
|
4
|
+
export { anthropic_exports as anthropic } from '../../chunk-43JBUEIX.js';
|
|
5
5
|
export { EDIT_FILE_SYSTEM_PROMPT, EDIT_FILE_TOOL_DESCRIPTION } from '../../chunk-PA3UTI4A.js';
|
|
6
|
-
export { executeEditFile } from '../../chunk-
|
|
7
|
-
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, countChanges, generateUdiff } from '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
6
|
+
export { executeEditFile } from '../../chunk-DYCMPDPV.js';
|
|
7
|
+
export { FastApplyAnchorIntegrityError, FastApplyContextLengthError, applyEdit, countChanges, generateUdiff } from '../../chunk-OYBOP47A.js';
|
|
8
|
+
import '../../chunk-IGXNLXPN.js';
|
|
9
9
|
import '../../chunk-6WP7EA4F.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-E63OPKP7.js';
|
|
11
|
+
import '../../chunk-OENJO7YW.js';
|
|
12
|
+
import '../../chunk-2GMG5XKU.js';
|
|
13
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
14
|
+
import '../../chunk-564XJOQP.js';
|
|
15
|
+
import '../../chunk-4TZBUFVP.js';
|
|
16
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
13
17
|
import '../../chunk-NRG6QX3L.js';
|
|
14
18
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkHNMEBYIS_cjs = require('../../chunk-HNMEBYIS.cjs');
|
|
6
6
|
require('../../chunk-74A4HLIO.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NJWOWXUR.cjs');
|
|
8
|
+
require('../../chunk-UHFVWYSP.cjs');
|
|
9
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
10
10
|
require('../../chunk-VL4QNALG.cjs');
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
12
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
13
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
14
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
15
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
16
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
17
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
14
18
|
require('../../chunk-AWFZKS27.cjs');
|
|
15
19
|
require('../../chunk-75ZPJI57.cjs');
|
|
16
20
|
|
|
@@ -18,25 +22,25 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
18
22
|
|
|
19
23
|
Object.defineProperty(exports, "createEditFileTool", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHNMEBYIS_cjs.createEditFileTool; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "default", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHNMEBYIS_cjs.openai_default; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "editFileTool", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHNMEBYIS_cjs.editFileTool; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "execute", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHNMEBYIS_cjs.execute; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "formatResult", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkHNMEBYIS_cjs.formatResult; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "getSystemPrompt", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkHNMEBYIS_cjs.getSystemPrompt; }
|
|
42
46
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import 'openai/resources/chat/completions';
|
|
2
2
|
import './types.js';
|
|
3
3
|
export { c as createEditFileTool, e as default, e as editFileTool, a as execute, f as formatResult, g as getSystemPrompt } from '../../openai-BkKsS30n.js';
|
|
4
|
+
import '../../guard-CvW03v4u.js';
|
|
5
|
+
import '../pii/types.js';
|
|
4
6
|
import '../utils/resilience.js';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
export { createEditFileTool, openai_default as default, editFileTool, execute, formatResult, getSystemPrompt } from '../../chunk-
|
|
1
|
+
export { createEditFileTool, openai_default as default, editFileTool, execute, formatResult, getSystemPrompt } from '../../chunk-G4RODMXA.js';
|
|
2
2
|
import '../../chunk-PA3UTI4A.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-DYCMPDPV.js';
|
|
4
|
+
import '../../chunk-OYBOP47A.js';
|
|
5
|
+
import '../../chunk-IGXNLXPN.js';
|
|
6
6
|
import '../../chunk-6WP7EA4F.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-E63OPKP7.js';
|
|
8
|
+
import '../../chunk-OENJO7YW.js';
|
|
9
|
+
import '../../chunk-2GMG5XKU.js';
|
|
10
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
11
|
+
import '../../chunk-564XJOQP.js';
|
|
12
|
+
import '../../chunk-4TZBUFVP.js';
|
|
13
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
10
14
|
import '../../chunk-NRG6QX3L.js';
|
|
11
15
|
import '../../chunk-MLKGABMK.js';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import { R as RedactPIIOption } from '../../guard-CvW03v4u.js';
|
|
1
2
|
import { RetryConfig } from '../utils/resilience.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Core types for Morph Fast Apply SDK
|
|
5
|
-
*/
|
|
3
|
+
import '../pii/types.js';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Input parameters for the edit_file tool
|
|
@@ -70,6 +68,8 @@ interface EditFileConfig {
|
|
|
70
68
|
anchorCompaction?: boolean;
|
|
71
69
|
/** Minimum source size in characters before anchor compaction (default: 131072) */
|
|
72
70
|
anchorCompactionThreshold?: number;
|
|
71
|
+
/** Redact PII and secrets before anything is sent to Morph, and restore them in the result. See `MorphClient`'s `redactPII`. */
|
|
72
|
+
redactPII?: RedactPIIOption;
|
|
73
73
|
/** Retry configuration for API calls */
|
|
74
74
|
retryConfig?: RetryConfig;
|
|
75
75
|
/** Enable debug logging (default: false) */
|
|
@@ -124,6 +124,11 @@ interface ApplyEditConfig {
|
|
|
124
124
|
retryConfig?: RetryConfig;
|
|
125
125
|
/** Enable debug logging (default: false) */
|
|
126
126
|
debug?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Redact PII and secrets from the code, edit and instructions before they are sent, and
|
|
129
|
+
* restore them in the merged code. See `MorphClient`'s `redactPII`.
|
|
130
|
+
*/
|
|
131
|
+
redactPII?: RedactPIIOption;
|
|
127
132
|
}
|
|
128
133
|
/**
|
|
129
134
|
* Result from code-to-code edit
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkHP3PCOTW_cjs = require('../../chunk-HP3PCOTW.cjs');
|
|
6
6
|
require('../../chunk-74A4HLIO.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-NJWOWXUR.cjs');
|
|
8
|
+
require('../../chunk-UHFVWYSP.cjs');
|
|
9
|
+
require('../../chunk-5TTZQF4X.cjs');
|
|
10
10
|
require('../../chunk-VL4QNALG.cjs');
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-KF6S3EPJ.cjs');
|
|
12
|
+
require('../../chunk-6HAYJA6M.cjs');
|
|
13
|
+
require('../../chunk-R3TUE7O2.cjs');
|
|
14
|
+
require('../../chunk-DLYDIYDK.cjs');
|
|
15
|
+
require('../../chunk-YAUXTFIN.cjs');
|
|
16
|
+
require('../../chunk-WJHHO24M.cjs');
|
|
17
|
+
require('../../chunk-QT5LGZG3.cjs');
|
|
14
18
|
require('../../chunk-AWFZKS27.cjs');
|
|
15
19
|
require('../../chunk-75ZPJI57.cjs');
|
|
16
20
|
|
|
@@ -18,17 +22,17 @@ require('../../chunk-75ZPJI57.cjs');
|
|
|
18
22
|
|
|
19
23
|
Object.defineProperty(exports, "createEditFileTool", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHP3PCOTW_cjs.createEditFileTool; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "default", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHP3PCOTW_cjs.vercel_default; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "editFileTool", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHP3PCOTW_cjs.editFileTool; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "getSystemPrompt", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHP3PCOTW_cjs.getSystemPrompt; }
|
|
34
38
|
});
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
export { createEditFileTool, vercel_default as default, editFileTool, getSystemPrompt } from '../../chunk-
|
|
1
|
+
export { createEditFileTool, vercel_default as default, editFileTool, getSystemPrompt } from '../../chunk-U4PYAGNR.js';
|
|
2
2
|
import '../../chunk-PA3UTI4A.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-DYCMPDPV.js';
|
|
4
|
+
import '../../chunk-OYBOP47A.js';
|
|
5
|
+
import '../../chunk-IGXNLXPN.js';
|
|
6
6
|
import '../../chunk-6WP7EA4F.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-E63OPKP7.js';
|
|
8
|
+
import '../../chunk-OENJO7YW.js';
|
|
9
|
+
import '../../chunk-2GMG5XKU.js';
|
|
10
|
+
import '../../chunk-ZX6T3LNG.js';
|
|
11
|
+
import '../../chunk-564XJOQP.js';
|
|
12
|
+
import '../../chunk-4TZBUFVP.js';
|
|
13
|
+
import '../../chunk-GYE3FY6Z.js';
|
|
10
14
|
import '../../chunk-NRG6QX3L.js';
|
|
11
15
|
import '../../chunk-MLKGABMK.js';
|