@morphllm/morphsdk 0.2.84 → 0.2.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-D4EQYM6O.js → chunk-37SJ3IOY.js} +63 -42
- package/dist/chunk-37SJ3IOY.js.map +1 -0
- package/dist/{chunk-262WRPS5.js → chunk-AJEE5RRB.js} +2 -2
- package/dist/{chunk-LF2X6YNP.js → chunk-HJOMBO2A.js} +153 -2
- package/dist/chunk-HJOMBO2A.js.map +1 -0
- package/dist/{chunk-LX2WNS3L.js → chunk-IXNX4HMC.js} +2 -2
- package/dist/{chunk-MJ7JODAY.js → chunk-KJL5RNVA.js} +15 -3
- package/dist/chunk-KJL5RNVA.js.map +1 -0
- package/dist/{chunk-FY32COVL.js → chunk-L5C6E32T.js} +1 -1
- package/dist/{chunk-FY32COVL.js.map → chunk-L5C6E32T.js.map} +1 -1
- package/dist/{chunk-N3RNM4A4.js → chunk-YWS4Y75I.js} +5 -5
- package/dist/{client-CsO9LifG.d.ts → client-BVeUudyD.d.ts} +3 -4
- package/dist/client.cjs +205 -38
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +5 -2
- package/dist/client.js +6 -6
- package/dist/index.cjs +205 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +7 -7
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js.map +1 -1
- package/dist/tools/warp_grep/agent/runner.cjs +154 -2
- package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/runner.d.ts +9 -2
- package/dist/tools/warp_grep/agent/runner.js +5 -3
- package/dist/tools/warp_grep/agent/types.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/types.d.ts +12 -1
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +3 -2
- package/dist/tools/warp_grep/anthropic.js +3 -3
- package/dist/tools/warp_grep/client.cjs +209 -39
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.d.ts +39 -6
- package/dist/tools/warp_grep/client.js +2 -2
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +3 -2
- package/dist/tools/warp_grep/gemini.js +2 -2
- package/dist/tools/warp_grep/index.cjs +211 -39
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +3 -3
- package/dist/tools/warp_grep/index.js +6 -4
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.d.ts +3 -2
- package/dist/tools/warp_grep/openai.js +3 -3
- package/dist/tools/warp_grep/providers/remote.d.ts +1 -1
- package/dist/tools/warp_grep/vercel.cjs +16 -3
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +94 -7
- package/dist/tools/warp_grep/vercel.js +7 -5
- package/dist/{types-Cv4LpqVl.d.ts → types-BMowL9iZ.d.ts} +5 -0
- package/package.json +13 -5
- package/dist/chunk-D4EQYM6O.js.map +0 -1
- package/dist/chunk-LF2X6YNP.js.map +0 -1
- package/dist/chunk-MJ7JODAY.js.map +0 -1
- /package/dist/{chunk-262WRPS5.js.map → chunk-AJEE5RRB.js.map} +0 -0
- /package/dist/{chunk-LX2WNS3L.js.map → chunk-IXNX4HMC.js.map} +0 -0
- /package/dist/{chunk-N3RNM4A4.js.map → chunk-YWS4Y75I.js.map} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
1
|
+
import { WarpGrepStep } from './agent/types.js';
|
|
2
|
+
import { W as WarpGrepClientConfig, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from '../../types-BMowL9iZ.js';
|
|
3
3
|
import '../utils/resilience.js';
|
|
4
|
+
import './providers/types.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* WarpGrep client for programmatic code search
|
|
@@ -36,10 +37,11 @@ declare class WarpGrepClient {
|
|
|
36
37
|
* Execute a code search query
|
|
37
38
|
*
|
|
38
39
|
* @param input - Search parameters including query, repoRoot, and optional provider
|
|
39
|
-
* @returns Search results with relevant code contexts
|
|
40
|
+
* @returns Search results with relevant code contexts, or an AsyncGenerator if streamSteps is true
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
43
|
* ```typescript
|
|
44
|
+
* // Standard execution
|
|
43
45
|
* const result = await client.execute({
|
|
44
46
|
* query: 'Find authentication middleware',
|
|
45
47
|
* repoRoot: '.'
|
|
@@ -51,16 +53,32 @@ declare class WarpGrepClient {
|
|
|
51
53
|
* console.log(ctx.content);
|
|
52
54
|
* }
|
|
53
55
|
* }
|
|
56
|
+
*
|
|
57
|
+
* // Streaming execution
|
|
58
|
+
* const stream = client.execute({
|
|
59
|
+
* query: 'Find auth middleware',
|
|
60
|
+
* repoRoot: '.',
|
|
61
|
+
* streamSteps: true
|
|
62
|
+
* });
|
|
63
|
+
*
|
|
64
|
+
* for await (const step of stream) {
|
|
65
|
+
* console.log(`Turn ${step.turn}:`, step.toolCalls);
|
|
66
|
+
* }
|
|
54
67
|
* ```
|
|
55
68
|
*/
|
|
56
|
-
execute(input: WarpGrepInput
|
|
69
|
+
execute(input: WarpGrepInput & {
|
|
70
|
+
streamSteps: true;
|
|
71
|
+
}): AsyncGenerator<WarpGrepStep, WarpGrepResult, undefined>;
|
|
72
|
+
execute(input: WarpGrepInput & {
|
|
73
|
+
streamSteps?: false | undefined;
|
|
74
|
+
}): Promise<WarpGrepResult>;
|
|
57
75
|
}
|
|
58
76
|
/**
|
|
59
77
|
* Execute a warp grep search directly
|
|
60
78
|
*
|
|
61
79
|
* @param input - Search parameters
|
|
62
80
|
* @param config - Optional client configuration
|
|
63
|
-
* @returns Search results
|
|
81
|
+
* @returns Search results, or an AsyncGenerator if streamSteps is true
|
|
64
82
|
*
|
|
65
83
|
* @example
|
|
66
84
|
* ```typescript
|
|
@@ -70,9 +88,24 @@ declare class WarpGrepClient {
|
|
|
70
88
|
* query: 'Find authentication middleware',
|
|
71
89
|
* repoRoot: '.'
|
|
72
90
|
* });
|
|
91
|
+
*
|
|
92
|
+
* // Streaming
|
|
93
|
+
* const stream = executeWarpGrep({
|
|
94
|
+
* query: 'Find auth',
|
|
95
|
+
* repoRoot: '.',
|
|
96
|
+
* streamSteps: true
|
|
97
|
+
* });
|
|
98
|
+
* for await (const step of stream) {
|
|
99
|
+
* console.log(step.turn, step.toolCalls);
|
|
100
|
+
* }
|
|
73
101
|
* ```
|
|
74
102
|
*/
|
|
75
|
-
declare function executeWarpGrep(input: WarpGrepInput
|
|
103
|
+
declare function executeWarpGrep(input: WarpGrepInput & {
|
|
104
|
+
streamSteps: true;
|
|
105
|
+
}, config?: WarpGrepClientConfig): AsyncGenerator<WarpGrepStep, WarpGrepResult, undefined>;
|
|
106
|
+
declare function executeWarpGrep(input: WarpGrepInput & {
|
|
107
|
+
streamSteps?: false | undefined;
|
|
108
|
+
}, config?: WarpGrepClientConfig): Promise<WarpGrepResult>;
|
|
76
109
|
declare function executeToolCall(input: {
|
|
77
110
|
query: string;
|
|
78
111
|
} | string, config: WarpGrepToolConfig): Promise<WarpGrepResult>;
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
executeToolCall,
|
|
4
4
|
executeWarpGrep,
|
|
5
5
|
formatResult
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-37SJ3IOY.js";
|
|
7
|
+
import "../../chunk-HJOMBO2A.js";
|
|
8
8
|
import "../../chunk-PUGSTXLO.js";
|
|
9
9
|
import "../../chunk-KRDIR7GG.js";
|
|
10
10
|
import "../../chunk-APP75CBN.js";
|