lark-agent-bridge 0.1.39
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/LICENSE +21 -0
- package/README.md +265 -0
- package/README.zh.md +265 -0
- package/bin/lark-agent-bridge.mjs +2 -0
- package/dist/agent/cursor/cursor-sdk-worker.js +702 -0
- package/dist/cli.js +7588 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +721 -0
- package/package.json +72 -0
- package/vendor/cursor-sdk/LICENSE.md +3 -0
- package/vendor/cursor-sdk/README.md +23 -0
- package/vendor/cursor-sdk/dist/cjs/642.index.js +1 -0
- package/vendor/cursor-sdk/dist/cjs/agent.d.ts +170 -0
- package/vendor/cursor-sdk/dist/cjs/agent.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/analytics.d.ts +98 -0
- package/vendor/cursor-sdk/dist/cjs/analytics.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/artifacts.d.ts +6 -0
- package/vendor/cursor-sdk/dist/cjs/artifacts.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-agent.d.ts +47 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-agent.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-api-client.d.ts +197 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-api-client.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-executor.d.ts +14 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-executor.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-mcp-utils.d.ts +4 -0
- package/vendor/cursor-sdk/dist/cjs/cloud-mcp-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/core-adapter.d.ts +2 -0
- package/vendor/cursor-sdk/dist/cjs/core-adapter.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/errors.d.ts +135 -0
- package/vendor/cursor-sdk/dist/cjs/errors.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/executor-common.d.ts +16 -0
- package/vendor/cursor-sdk/dist/cjs/executor-common.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/executor-types.d.ts +65 -0
- package/vendor/cursor-sdk/dist/cjs/executor-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/index.d.ts +18 -0
- package/vendor/cursor-sdk/dist/cjs/index.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/index.js +8 -0
- package/vendor/cursor-sdk/dist/cjs/index.js.LICENSE.txt +285 -0
- package/vendor/cursor-sdk/dist/cjs/local-executor.d.ts +18 -0
- package/vendor/cursor-sdk/dist/cjs/local-executor.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/local-model-validation.d.ts +6 -0
- package/vendor/cursor-sdk/dist/cjs/local-model-validation.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/messages.d.ts +110 -0
- package/vendor/cursor-sdk/dist/cjs/messages.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/options.d.ts +145 -0
- package/vendor/cursor-sdk/dist/cjs/options.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/package.json +3 -0
- package/vendor/cursor-sdk/dist/cjs/platform.d.ts +71 -0
- package/vendor/cursor-sdk/dist/cjs/platform.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/prefetched-blobs.d.ts +13 -0
- package/vendor/cursor-sdk/dist/cjs/prefetched-blobs.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/public-api.d.ts +12 -0
- package/vendor/cursor-sdk/dist/cjs/public-api.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/run-event-tailer.d.ts +33 -0
- package/vendor/cursor-sdk/dist/cjs/run-event-tailer.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/run-interaction-accumulator.d.ts +33 -0
- package/vendor/cursor-sdk/dist/cjs/run-interaction-accumulator.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/run.d.ts +44 -0
- package/vendor/cursor-sdk/dist/cjs/run.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/sdk-statsig.d.ts +10 -0
- package/vendor/cursor-sdk/dist/cjs/sdk-statsig.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/stubs.d.ts +98 -0
- package/vendor/cursor-sdk/dist/cjs/stubs.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/subagent-conversion.d.ts +22 -0
- package/vendor/cursor-sdk/dist/cjs/subagent-conversion.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/tool-call-utils.d.ts +7 -0
- package/vendor/cursor-sdk/dist/cjs/tool-call-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/types/conversation-types.d.ts +12062 -0
- package/vendor/cursor-sdk/dist/cjs/types/conversation-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/types/delta-types.d.ts +2 -0
- package/vendor/cursor-sdk/dist/cjs/types/delta-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/types/tool-call-types.d.ts +2 -0
- package/vendor/cursor-sdk/dist/cjs/types/tool-call-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/utils/conversation-utils.d.ts +3 -0
- package/vendor/cursor-sdk/dist/cjs/utils/conversation-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/utils/logger.d.ts +12 -0
- package/vendor/cursor-sdk/dist/cjs/utils/logger.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/cjs/utils/message-schemas.d.ts +2 -0
- package/vendor/cursor-sdk/dist/cjs/utils/message-schemas.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/642.index.js +1 -0
- package/vendor/cursor-sdk/dist/esm/agent.d.ts +170 -0
- package/vendor/cursor-sdk/dist/esm/agent.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/analytics.d.ts +98 -0
- package/vendor/cursor-sdk/dist/esm/analytics.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/artifacts.d.ts +6 -0
- package/vendor/cursor-sdk/dist/esm/artifacts.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/cloud-agent.d.ts +47 -0
- package/vendor/cursor-sdk/dist/esm/cloud-agent.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/cloud-api-client.d.ts +197 -0
- package/vendor/cursor-sdk/dist/esm/cloud-api-client.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/cloud-executor.d.ts +14 -0
- package/vendor/cursor-sdk/dist/esm/cloud-executor.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/cloud-mcp-utils.d.ts +4 -0
- package/vendor/cursor-sdk/dist/esm/cloud-mcp-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/core-adapter.d.ts +2 -0
- package/vendor/cursor-sdk/dist/esm/core-adapter.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/errors.d.ts +135 -0
- package/vendor/cursor-sdk/dist/esm/errors.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/executor-common.d.ts +16 -0
- package/vendor/cursor-sdk/dist/esm/executor-common.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/executor-types.d.ts +65 -0
- package/vendor/cursor-sdk/dist/esm/executor-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/index.d.ts +18 -0
- package/vendor/cursor-sdk/dist/esm/index.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/index.js +8 -0
- package/vendor/cursor-sdk/dist/esm/index.js.LICENSE.txt +285 -0
- package/vendor/cursor-sdk/dist/esm/local-executor.d.ts +18 -0
- package/vendor/cursor-sdk/dist/esm/local-executor.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/local-model-validation.d.ts +6 -0
- package/vendor/cursor-sdk/dist/esm/local-model-validation.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/messages.d.ts +110 -0
- package/vendor/cursor-sdk/dist/esm/messages.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/options.d.ts +145 -0
- package/vendor/cursor-sdk/dist/esm/options.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/platform.d.ts +71 -0
- package/vendor/cursor-sdk/dist/esm/platform.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/prefetched-blobs.d.ts +13 -0
- package/vendor/cursor-sdk/dist/esm/prefetched-blobs.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/public-api.d.ts +12 -0
- package/vendor/cursor-sdk/dist/esm/public-api.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/run-event-tailer.d.ts +33 -0
- package/vendor/cursor-sdk/dist/esm/run-event-tailer.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/run-interaction-accumulator.d.ts +33 -0
- package/vendor/cursor-sdk/dist/esm/run-interaction-accumulator.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/run.d.ts +44 -0
- package/vendor/cursor-sdk/dist/esm/run.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/sdk-statsig.d.ts +10 -0
- package/vendor/cursor-sdk/dist/esm/sdk-statsig.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/stubs.d.ts +98 -0
- package/vendor/cursor-sdk/dist/esm/stubs.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/subagent-conversion.d.ts +22 -0
- package/vendor/cursor-sdk/dist/esm/subagent-conversion.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/tool-call-utils.d.ts +7 -0
- package/vendor/cursor-sdk/dist/esm/tool-call-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/types/conversation-types.d.ts +12062 -0
- package/vendor/cursor-sdk/dist/esm/types/conversation-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/types/delta-types.d.ts +2 -0
- package/vendor/cursor-sdk/dist/esm/types/delta-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/types/tool-call-types.d.ts +2 -0
- package/vendor/cursor-sdk/dist/esm/types/tool-call-types.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/utils/conversation-utils.d.ts +3 -0
- package/vendor/cursor-sdk/dist/esm/utils/conversation-utils.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/utils/logger.d.ts +12 -0
- package/vendor/cursor-sdk/dist/esm/utils/logger.d.ts.map +1 -0
- package/vendor/cursor-sdk/dist/esm/utils/message-schemas.d.ts +2 -0
- package/vendor/cursor-sdk/dist/esm/utils/message-schemas.d.ts.map +1 -0
- package/vendor/cursor-sdk/package.json +77 -0
- package/vendor/cursor-sdk-linux-x64/README.md +5 -0
- package/vendor/cursor-sdk-linux-x64/bin/cursorsandbox +0 -0
- package/vendor/cursor-sdk-linux-x64/bin/rg +0 -0
- package/vendor/cursor-sdk-linux-x64/package.json +8 -0
- package/vendor/package/README.md +5 -0
- package/vendor/package/bin/cursorsandbox +0 -0
- package/vendor/package/bin/rg +0 -0
- package/vendor/package/package.json +25 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2015, Jon Schlinkert.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* re2js
|
|
10
|
+
* RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
|
|
11
|
+
*
|
|
12
|
+
* @version v1.2.2
|
|
13
|
+
* @author Alexey Vasiliev
|
|
14
|
+
* @homepage https://github.com/le0pard/re2js#readme
|
|
15
|
+
* @repository github:le0pard/re2js
|
|
16
|
+
* @license MIT
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
23
|
+
* Released under the MIT License.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
27
|
+
|
|
28
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
29
|
+
|
|
30
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
31
|
+
|
|
32
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
33
|
+
|
|
34
|
+
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @preserve
|
|
38
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
39
|
+
* All rights reserved. (MIT Licensed)
|
|
40
|
+
*
|
|
41
|
+
* cie94.ts - part of Image Quantization Library
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @preserve
|
|
46
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
47
|
+
* All rights reserved. (MIT Licensed)
|
|
48
|
+
*
|
|
49
|
+
* ciede2000.ts - part of Image Quantization Library
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @preserve
|
|
54
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
55
|
+
* All rights reserved. (MIT Licensed)
|
|
56
|
+
*
|
|
57
|
+
* cmetric.ts - part of Image Quantization Library
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @preserve
|
|
62
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
63
|
+
* All rights reserved. (MIT Licensed)
|
|
64
|
+
*
|
|
65
|
+
* common.ts - part of Image Quantization Library
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @preserve
|
|
70
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
71
|
+
* All rights reserved. (MIT Licensed)
|
|
72
|
+
*
|
|
73
|
+
* constants.ts - part of Image Quantization Library
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @preserve
|
|
78
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
79
|
+
* All rights reserved. (MIT Licensed)
|
|
80
|
+
*
|
|
81
|
+
* ditherErrorDiffusionArray.ts - part of Image Quantization Library
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @preserve
|
|
86
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
87
|
+
* All rights reserved. (MIT Licensed)
|
|
88
|
+
*
|
|
89
|
+
* euclidean.ts - part of Image Quantization Library
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @preserve
|
|
94
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
95
|
+
* All rights reserved. (MIT Licensed)
|
|
96
|
+
*
|
|
97
|
+
* helper.ts - part of Image Quantization Library
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @preserve
|
|
102
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
103
|
+
* All rights reserved. (MIT Licensed)
|
|
104
|
+
*
|
|
105
|
+
* hueStatistics.ts - part of Image Quantization Library
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @preserve
|
|
110
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
111
|
+
* All rights reserved. (MIT Licensed)
|
|
112
|
+
*
|
|
113
|
+
* iq.ts - Image Quantization Library
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @preserve
|
|
118
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
119
|
+
* All rights reserved. (MIT Licensed)
|
|
120
|
+
*
|
|
121
|
+
* lab2rgb.ts - part of Image Quantization Library
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @preserve
|
|
126
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
127
|
+
* All rights reserved. (MIT Licensed)
|
|
128
|
+
*
|
|
129
|
+
* lab2xyz.ts - part of Image Quantization Library
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @preserve
|
|
134
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
135
|
+
* All rights reserved. (MIT Licensed)
|
|
136
|
+
*
|
|
137
|
+
* manhattanNeuQuant.ts - part of Image Quantization Library
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @preserve
|
|
142
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
143
|
+
* All rights reserved. (MIT Licensed)
|
|
144
|
+
*
|
|
145
|
+
* nearestColor.ts - part of Image Quantization Library
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @preserve
|
|
150
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
151
|
+
* All rights reserved. (MIT Licensed)
|
|
152
|
+
*
|
|
153
|
+
* palette.ts - part of Image Quantization Library
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @preserve
|
|
158
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
159
|
+
* All rights reserved. (MIT Licensed)
|
|
160
|
+
*
|
|
161
|
+
* pngQuant.ts - part of Image Quantization Library
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @preserve
|
|
166
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
167
|
+
* All rights reserved. (MIT Licensed)
|
|
168
|
+
*
|
|
169
|
+
* point.ts - part of Image Quantization Library
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @preserve
|
|
174
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
175
|
+
* All rights reserved. (MIT Licensed)
|
|
176
|
+
*
|
|
177
|
+
* pointContainer.ts - part of Image Quantization Library
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @preserve
|
|
182
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
183
|
+
* All rights reserved. (MIT Licensed)
|
|
184
|
+
*
|
|
185
|
+
* rgb2hsl.ts - part of Image Quantization Library
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @preserve
|
|
190
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
191
|
+
* All rights reserved. (MIT Licensed)
|
|
192
|
+
*
|
|
193
|
+
* rgb2lab.ts - part of Image Quantization Library
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @preserve
|
|
198
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
199
|
+
* All rights reserved. (MIT Licensed)
|
|
200
|
+
*
|
|
201
|
+
* rgb2xyz.ts - part of Image Quantization Library
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @preserve
|
|
206
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
207
|
+
* All rights reserved. (MIT Licensed)
|
|
208
|
+
*
|
|
209
|
+
* ssim.ts - part of Image Quantization Library
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @preserve
|
|
214
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
215
|
+
* All rights reserved. (MIT Licensed)
|
|
216
|
+
*
|
|
217
|
+
* wuQuant.ts - part of Image Quantization Library
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @preserve
|
|
222
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
223
|
+
* All rights reserved. (MIT Licensed)
|
|
224
|
+
*
|
|
225
|
+
* xyz2lab.ts - part of Image Quantization Library
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @preserve
|
|
230
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
231
|
+
* All rights reserved. (MIT Licensed)
|
|
232
|
+
*
|
|
233
|
+
* xyz2rgb.ts - part of Image Quantization Library
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @preserve
|
|
238
|
+
* MIT License
|
|
239
|
+
*
|
|
240
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
241
|
+
*
|
|
242
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
243
|
+
* of this software and associated documentation files (the "Software"), to
|
|
244
|
+
* deal in the Software without restriction, including without limitation the
|
|
245
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
246
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
247
|
+
* furnished to do so, subject to the following conditions:
|
|
248
|
+
*
|
|
249
|
+
* The above copyright notice and this permission notice shall be included in
|
|
250
|
+
* all copies or substantial portions of the Software.
|
|
251
|
+
*
|
|
252
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
253
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
254
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
255
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
256
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
257
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
258
|
+
* IN THE SOFTWARE.
|
|
259
|
+
*
|
|
260
|
+
* riemersma.ts - part of Image Quantization Library
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @preserve TypeScript port:
|
|
265
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
266
|
+
* All rights reserved. (MIT Licensed)
|
|
267
|
+
*
|
|
268
|
+
* colorHistogram.ts - part of Image Quantization Library
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @preserve TypeScript port:
|
|
273
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
274
|
+
* All rights reserved. (MIT Licensed)
|
|
275
|
+
*
|
|
276
|
+
* neuquant.ts - part of Image Quantization Library
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @preserve TypeScript port:
|
|
281
|
+
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
282
|
+
* All rights reserved. (MIT Licensed)
|
|
283
|
+
*
|
|
284
|
+
* rgbquant.ts - part of Image Quantization Library
|
|
285
|
+
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type RuntimeCustomSubagentDefinition } from "@anysphere/cursor-sdk-local-runtime";
|
|
2
|
+
import type { RunExecutor } from "./executor-types.js";
|
|
3
|
+
import type { McpServerConfig, SandboxOptions, SettingSource } from "./options.js";
|
|
4
|
+
export interface LocalExecutorHandle {
|
|
5
|
+
run: RunExecutor;
|
|
6
|
+
reload(): Promise<void>;
|
|
7
|
+
dispose(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateLocalExecutorOptions {
|
|
10
|
+
readonly workingDirectory?: string;
|
|
11
|
+
readonly apiKey?: string;
|
|
12
|
+
readonly settingSources?: readonly SettingSource[];
|
|
13
|
+
readonly sandboxOptions?: SandboxOptions;
|
|
14
|
+
readonly mcpServers?: Record<string, McpServerConfig>;
|
|
15
|
+
readonly customSubagents?: readonly RuntimeCustomSubagentDefinition[];
|
|
16
|
+
}
|
|
17
|
+
export declare function createLocalExecutor(optionsOrWorkingDirectory?: CreateLocalExecutorOptions | string, apiKey?: string): Promise<LocalExecutorHandle>;
|
|
18
|
+
//# sourceMappingURL=local-executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-executor.d.ts","sourceRoot":"","sources":["../../src/agent/local-executor.ts"],"names":[],"mappings":"AAwBA,OAAO,EAQL,KAAK,+BAA+B,EAKrC,MAAM,qCAAqC,CAAC;AAoE7C,OAAO,KAAK,EACV,WAAW,EAIZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACd,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACnD,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACtD,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;CACvE;AA2JD,wBAAsB,mBAAmB,CACvC,yBAAyB,CAAC,EAAE,0BAA0B,GAAG,MAAM,EAC/D,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,CAAC,CA0Y9B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModelListItem, ModelSelection } from "./options.js";
|
|
2
|
+
export interface LocalModelValidationOptions {
|
|
3
|
+
listModels?: () => Promise<ModelListItem[]>;
|
|
4
|
+
}
|
|
5
|
+
export declare function resolveLocalModelSelection(selection: ModelSelection, options?: LocalModelValidationOptions): Promise<ModelSelection>;
|
|
6
|
+
//# sourceMappingURL=local-model-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-model-validation.d.ts","sourceRoot":"","sources":["../../src/agent/local-model-validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CAC7C;AAED,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,cAAc,EACzB,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,cAAc,CAAC,CAmBzB"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ModelSelection } from "./options.js";
|
|
2
|
+
import type { RunResultStatus } from "./run.js";
|
|
3
|
+
export declare const LOCAL_RUN_STREAM_SCHEMA_VERSION = 1;
|
|
4
|
+
export declare const LOCAL_RUN_STREAM_EVENT_TYPE = "run_stream_event";
|
|
5
|
+
export interface TextBlock {
|
|
6
|
+
type: "text";
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ToolUseBlock {
|
|
10
|
+
type: "tool_use";
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
input: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface SDKSystemMessage {
|
|
16
|
+
type: "system";
|
|
17
|
+
subtype?: "init";
|
|
18
|
+
agent_id: string;
|
|
19
|
+
run_id: string;
|
|
20
|
+
model?: ModelSelection;
|
|
21
|
+
tools?: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface SDKAssistantMessage {
|
|
24
|
+
type: "assistant";
|
|
25
|
+
agent_id: string;
|
|
26
|
+
run_id: string;
|
|
27
|
+
message: {
|
|
28
|
+
role: "assistant";
|
|
29
|
+
content: Array<TextBlock | ToolUseBlock>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface SDKUserMessageEvent {
|
|
33
|
+
type: "user";
|
|
34
|
+
agent_id: string;
|
|
35
|
+
run_id: string;
|
|
36
|
+
message: {
|
|
37
|
+
role: "user";
|
|
38
|
+
content: TextBlock[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface SDKToolUseMessage {
|
|
42
|
+
type: "tool_call";
|
|
43
|
+
agent_id: string;
|
|
44
|
+
run_id: string;
|
|
45
|
+
call_id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
status: "running" | "completed" | "error";
|
|
48
|
+
args?: unknown;
|
|
49
|
+
result?: unknown;
|
|
50
|
+
truncated?: {
|
|
51
|
+
args?: boolean;
|
|
52
|
+
result?: boolean;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface SDKThinkingMessage {
|
|
56
|
+
type: "thinking";
|
|
57
|
+
agent_id: string;
|
|
58
|
+
run_id: string;
|
|
59
|
+
text: string;
|
|
60
|
+
thinking_duration_ms?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface SDKStatusMessage {
|
|
63
|
+
type: "status";
|
|
64
|
+
agent_id: string;
|
|
65
|
+
run_id: string;
|
|
66
|
+
status: "CREATING" | "RUNNING" | "FINISHED" | "ERROR" | "CANCELLED" | "EXPIRED";
|
|
67
|
+
message?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SDKRequestMessage {
|
|
70
|
+
type: "request";
|
|
71
|
+
agent_id: string;
|
|
72
|
+
run_id: string;
|
|
73
|
+
request_id: string;
|
|
74
|
+
}
|
|
75
|
+
export interface SDKTaskMessage {
|
|
76
|
+
type: "task";
|
|
77
|
+
agent_id: string;
|
|
78
|
+
run_id: string;
|
|
79
|
+
status?: string;
|
|
80
|
+
text?: string;
|
|
81
|
+
}
|
|
82
|
+
export type SDKMessage = SDKSystemMessage | SDKUserMessageEvent | SDKAssistantMessage | SDKToolUseMessage | SDKThinkingMessage | SDKStatusMessage | SDKRequestMessage | SDKTaskMessage;
|
|
83
|
+
export interface LocalRunStreamSdkMessageEvent {
|
|
84
|
+
schemaVersion: typeof LOCAL_RUN_STREAM_SCHEMA_VERSION;
|
|
85
|
+
type: "sdk_message";
|
|
86
|
+
agentId: string;
|
|
87
|
+
runId: string;
|
|
88
|
+
message: SDKMessage;
|
|
89
|
+
}
|
|
90
|
+
export interface LocalRunStreamResultEvent {
|
|
91
|
+
schemaVersion: typeof LOCAL_RUN_STREAM_SCHEMA_VERSION;
|
|
92
|
+
type: "result";
|
|
93
|
+
agentId: string;
|
|
94
|
+
runId: string;
|
|
95
|
+
status: RunResultStatus;
|
|
96
|
+
errorCode?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface LocalRunStreamDoneEvent {
|
|
99
|
+
schemaVersion: typeof LOCAL_RUN_STREAM_SCHEMA_VERSION;
|
|
100
|
+
type: "done";
|
|
101
|
+
agentId: string;
|
|
102
|
+
runId: string;
|
|
103
|
+
}
|
|
104
|
+
export type LocalRunStreamEvent = LocalRunStreamSdkMessageEvent | LocalRunStreamResultEvent | LocalRunStreamDoneEvent;
|
|
105
|
+
export declare function createSdkMessageRunStreamEvent(message: SDKMessage): LocalRunStreamSdkMessageEvent;
|
|
106
|
+
export declare function decodeLocalRunStreamEvent(payload: unknown): LocalRunStreamEvent;
|
|
107
|
+
export declare function localRunStreamEventToSdkMessage(event: LocalRunStreamEvent): SDKMessage | undefined;
|
|
108
|
+
export declare function decodeSdkMessageRunStreamEvent(payload: unknown): SDKMessage;
|
|
109
|
+
export declare function isTerminalLocalRunStreamEvent(event: LocalRunStreamEvent): boolean;
|
|
110
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/agent/messages.ts"],"names":[],"mappings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AA6B;IAC5C,aAAa,EAAE,OAAO,+BAA+B,CAAC;IACtD,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,OAAO,+BAA+B,CAAC;IACtD,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,OAAO,+BAA+B,CAAC;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAC3B,6BAA6B,GAC7B,yBAAyB,GACzB,uBAAuB,CAAC;AAE5B,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,UAAU,GAClB,6BAA6B,CAQ/B;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,GACf,mBAAmB,CA8BrB;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,mBAAmB,GACzB,UAAU,GAAG,SAAS,CAExB;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAU3E;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAKT"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { CursorAgentPlatformOptions } from "@anysphere/cursor-sdk-local-runtime/run-store";
|
|
2
|
+
export interface SDKImageDimension {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
export type SDKImage = {
|
|
7
|
+
url: string;
|
|
8
|
+
dimension?: SDKImageDimension;
|
|
9
|
+
} | {
|
|
10
|
+
data: string;
|
|
11
|
+
mimeType: string;
|
|
12
|
+
dimension?: SDKImageDimension;
|
|
13
|
+
};
|
|
14
|
+
export interface SDKUserMessage {
|
|
15
|
+
text: string;
|
|
16
|
+
images?: SDKImage[];
|
|
17
|
+
}
|
|
18
|
+
export type McpServerConfig = {
|
|
19
|
+
type?: "stdio";
|
|
20
|
+
command: string;
|
|
21
|
+
args?: string[];
|
|
22
|
+
env?: Record<string, string>;
|
|
23
|
+
cwd?: string;
|
|
24
|
+
} | {
|
|
25
|
+
type?: "http" | "sse";
|
|
26
|
+
url: string;
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
auth?: {
|
|
29
|
+
CLIENT_ID: string;
|
|
30
|
+
CLIENT_SECRET?: string;
|
|
31
|
+
scopes?: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type SettingSource = "project" | "user" | "team" | "mdm" | "plugins" | "all";
|
|
35
|
+
export interface SandboxOptions {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ModelParameterValue {
|
|
39
|
+
id: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ModelSelection {
|
|
43
|
+
id: string;
|
|
44
|
+
params?: ModelParameterValue[];
|
|
45
|
+
}
|
|
46
|
+
export interface ModelParameterDefinition {
|
|
47
|
+
id: string;
|
|
48
|
+
displayName?: string;
|
|
49
|
+
values: Array<{
|
|
50
|
+
value: string;
|
|
51
|
+
displayName?: string;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
export interface ModelVariant {
|
|
55
|
+
params: ModelParameterValue[];
|
|
56
|
+
displayName: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
isDefault?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface ModelListItem {
|
|
61
|
+
id: string;
|
|
62
|
+
displayName: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
aliases?: string[];
|
|
65
|
+
parameters?: ModelParameterDefinition[];
|
|
66
|
+
variants?: ModelVariant[];
|
|
67
|
+
}
|
|
68
|
+
export interface AgentDefinition {
|
|
69
|
+
description: string;
|
|
70
|
+
prompt: string;
|
|
71
|
+
model?: ModelSelection | "inherit";
|
|
72
|
+
mcpServers?: Array<string | Record<string, McpServerConfig>>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Options that only apply to local agents. Exported as a standalone type so
|
|
76
|
+
* users can reference it directly (e.g. `Partial<LocalAgentOptions>`) instead
|
|
77
|
+
* of having to unwrap the optional `local` field on `AgentOptions` with
|
|
78
|
+
* `Partial<NonNullable<AgentOptions["local"]>>`.
|
|
79
|
+
*/
|
|
80
|
+
export interface LocalAgentOptions {
|
|
81
|
+
cwd?: string | string[];
|
|
82
|
+
/**
|
|
83
|
+
* Ambient Cursor settings layers to load from the local filesystem.
|
|
84
|
+
* Local agents only. On cloud, `project` / `team` / `plugins` are
|
|
85
|
+
* always on and `user` / `mdm` / `local` have no VM equivalent, so
|
|
86
|
+
* this field is gated to the local shape.
|
|
87
|
+
*/
|
|
88
|
+
settingSources?: SettingSource[];
|
|
89
|
+
sandboxOptions?: SandboxOptions;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Options that only apply to cloud agents. Exported as a standalone type so
|
|
93
|
+
* users can reference it directly (e.g. `Partial<CloudAgentOptions>`) instead
|
|
94
|
+
* of having to unwrap the optional `cloud` field on `AgentOptions` with
|
|
95
|
+
* `Partial<NonNullable<AgentOptions["cloud"]>>`.
|
|
96
|
+
*/
|
|
97
|
+
export interface CloudAgentOptions {
|
|
98
|
+
env?: {
|
|
99
|
+
type: "cloud";
|
|
100
|
+
name?: string;
|
|
101
|
+
} | {
|
|
102
|
+
type: "pool";
|
|
103
|
+
name?: string;
|
|
104
|
+
} | {
|
|
105
|
+
type: "machine";
|
|
106
|
+
name?: string;
|
|
107
|
+
};
|
|
108
|
+
repos?: Array<{
|
|
109
|
+
url: string;
|
|
110
|
+
startingRef?: string;
|
|
111
|
+
prUrl?: string;
|
|
112
|
+
}>;
|
|
113
|
+
workOnCurrentBranch?: boolean;
|
|
114
|
+
autoCreatePR?: boolean;
|
|
115
|
+
skipReviewerRequest?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Per-session env vars injected into the cloud agent's shell, e.g. for
|
|
118
|
+
* caller-minted credentials. Encrypted at rest; deleted with the agent.
|
|
119
|
+
*/
|
|
120
|
+
envVars?: Record<string, string>;
|
|
121
|
+
}
|
|
122
|
+
export interface AgentOptions {
|
|
123
|
+
/**
|
|
124
|
+
* Model selection (`{ id, params? }`). Required for local agents; optional
|
|
125
|
+
* for cloud (the server resolves the caller's configured default when
|
|
126
|
+
* omitted). Use `Cursor.models.list()` to discover valid selections.
|
|
127
|
+
*/
|
|
128
|
+
model?: ModelSelection;
|
|
129
|
+
apiKey?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Optional human-readable name for the agent, surfaced as the `title` in
|
|
132
|
+
* `Agent.list()` / `Agent.get()`. Cloud agents auto-generate a name from
|
|
133
|
+
* the first prompt when this is omitted; local agents fall back to a
|
|
134
|
+
* generic default.
|
|
135
|
+
*/
|
|
136
|
+
name?: string;
|
|
137
|
+
local?: LocalAgentOptions;
|
|
138
|
+
cloud?: CloudAgentOptions;
|
|
139
|
+
mcpServers?: Record<string, McpServerConfig>;
|
|
140
|
+
agents?: Record<string, AgentDefinition>;
|
|
141
|
+
agentId?: string;
|
|
142
|
+
idempotencyKey?: string;
|
|
143
|
+
platform?: CursorAgentPlatformOptions;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/agent/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAEhG,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,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,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/B;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACvC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { RuntimeCustomSubagentDefinition } from "@anysphere/cursor-sdk-local-runtime";
|
|
2
|
+
import type { AgentCheckpointStore, AgentRunStore, CursorAgentPlatformOptions, RunEventNotifier, RunEventStore } from "@anysphere/cursor-sdk-local-runtime/run-store";
|
|
3
|
+
import type { AgentMessage, AgentOperationOptions, CursorRequestOptions, GetAgentMessagesOptions, GetAgentOptions, GetRunOptions, ListAgentsOptions, ListRunsOptions, ListResult as PublicListResult, SDKAgent, SDKAgentInfo, SDKModel, SDKRepository, SDKUser } from "./agent.js";
|
|
4
|
+
import type { RunExecutor } from "./executor-types.js";
|
|
5
|
+
import { type SDKMessage } from "./messages.js";
|
|
6
|
+
import type { AgentOptions, McpServerConfig, ModelSelection, SandboxOptions, SettingSource } from "./options.js";
|
|
7
|
+
import { type Run } from "./run.js";
|
|
8
|
+
interface AgentExecutorHandle {
|
|
9
|
+
run: RunExecutor;
|
|
10
|
+
reload?(): Promise<void>;
|
|
11
|
+
dispose?(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
interface AgentExecutorLease {
|
|
14
|
+
readonly handle: AgentExecutorHandle;
|
|
15
|
+
readonly cacheMiss: boolean;
|
|
16
|
+
release(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
interface AgentExecutorCacheOptions {
|
|
19
|
+
readonly workingDirectory: string;
|
|
20
|
+
readonly apiKey?: string;
|
|
21
|
+
readonly settingSources?: readonly SettingSource[];
|
|
22
|
+
readonly sandboxOptions?: SandboxOptions;
|
|
23
|
+
readonly mcpServers?: Record<string, McpServerConfig>;
|
|
24
|
+
readonly customSubagents?: readonly RuntimeCustomSubagentDefinition[];
|
|
25
|
+
}
|
|
26
|
+
export declare function acquireLocalExecutor(options: AgentExecutorCacheOptions): Promise<AgentExecutorLease>;
|
|
27
|
+
export declare function __clearLocalExecutorCacheForTests(): void;
|
|
28
|
+
export declare class CursorAgentPlatform {
|
|
29
|
+
readonly store: AgentRunStore;
|
|
30
|
+
readonly checkpointStore: AgentCheckpointStore;
|
|
31
|
+
readonly eventStore: RunEventStore | undefined;
|
|
32
|
+
readonly eventNotifier: RunEventNotifier | undefined;
|
|
33
|
+
private readonly workspaceRef;
|
|
34
|
+
private readonly localModelListCache;
|
|
35
|
+
constructor(store: AgentRunStore, checkpointStore: AgentCheckpointStore, eventStore: RunEventStore | undefined, eventNotifier: RunEventNotifier | undefined, workspaceRef: string);
|
|
36
|
+
acquireLocalExecutor(options: AgentExecutorCacheOptions): Promise<AgentExecutorLease>;
|
|
37
|
+
resolveLocalModelSelection(selection: ModelSelection, apiKey: string | undefined): Promise<ModelSelection>;
|
|
38
|
+
private listModelsForLocalValidation;
|
|
39
|
+
createAgent(options: AgentOptions): Promise<SDKAgent>;
|
|
40
|
+
resumeAgent(agentId: string, options: Partial<AgentOptions>): Promise<SDKAgent>;
|
|
41
|
+
listAgents(options?: ListAgentsOptions): Promise<PublicListResult<SDKAgentInfo>>;
|
|
42
|
+
getAgent(agentId: string): Promise<SDKAgentInfo>;
|
|
43
|
+
archiveAgent(agentId: string): Promise<void>;
|
|
44
|
+
unarchiveAgent(agentId: string): Promise<void>;
|
|
45
|
+
deleteAgent(agentId: string): Promise<void>;
|
|
46
|
+
listRuns(agentId: string, options?: ListRunsOptions): Promise<PublicListResult<Run>>;
|
|
47
|
+
getRun(runId: string): Promise<Run>;
|
|
48
|
+
cancelRun(runId: string): Promise<void>;
|
|
49
|
+
getAgentMessages(agentId: string, options?: GetAgentMessagesOptions): Promise<AgentMessage[]>;
|
|
50
|
+
appendRunMessage(message: SDKMessage): Promise<void>;
|
|
51
|
+
private toDetachedStoreRun;
|
|
52
|
+
private createRunEventTailer;
|
|
53
|
+
private findRunById;
|
|
54
|
+
}
|
|
55
|
+
export declare function createAgentPlatform(options?: CursorAgentPlatformOptions): Promise<CursorAgentPlatform>;
|
|
56
|
+
export declare function createDefaultAgent(options: AgentOptions): Promise<SDKAgent>;
|
|
57
|
+
export declare function resumeDefaultAgent(agentId: string, options?: Partial<AgentOptions>): Promise<SDKAgent>;
|
|
58
|
+
export declare function listDefaultAgents(options?: ListAgentsOptions): Promise<PublicListResult<SDKAgentInfo>>;
|
|
59
|
+
export declare function listDefaultRuns(agentId: string, options?: ListRunsOptions): Promise<PublicListResult<Run>>;
|
|
60
|
+
export declare function getDefaultRun(runId: string, options?: GetRunOptions): Promise<Run>;
|
|
61
|
+
export declare function cancelDefaultRun(runId: string, options?: GetRunOptions): Promise<void>;
|
|
62
|
+
export declare function getDefaultAgentMessages(agentId: string, options?: GetAgentMessagesOptions): Promise<AgentMessage[]>;
|
|
63
|
+
export declare function getDefaultAgent(agentId: string, options?: GetAgentOptions): Promise<SDKAgentInfo>;
|
|
64
|
+
export declare function archiveDefaultAgent(agentId: string, options?: AgentOperationOptions): Promise<void>;
|
|
65
|
+
export declare function unarchiveDefaultAgent(agentId: string, options?: AgentOperationOptions): Promise<void>;
|
|
66
|
+
export declare function deleteDefaultAgent(agentId: string, options?: AgentOperationOptions): Promise<void>;
|
|
67
|
+
export declare function getDefaultMe(options?: CursorRequestOptions): Promise<SDKUser>;
|
|
68
|
+
export declare function listDefaultModels(options?: CursorRequestOptions): Promise<SDKModel[]>;
|
|
69
|
+
export declare function listDefaultRepositories(options?: CursorRequestOptions): Promise<SDKRepository[]>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/agent/platform.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,KAAK,EACV,oBAAoB,EAEpB,aAAa,EACb,0BAA0B,EAC1B,gBAAgB,EAChB,aAAa,EAId,MAAM,+CAA+C,CAAC;AAOvD,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,UAAU,IAAI,gBAAgB,EAC9B,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,OAAO,EAER,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAGL,KAAK,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