@daytonaio/sdk 0.175.0 → 0.178.0

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 (91) hide show
  1. package/cjs/CodeInterpreter.d.ts +3 -2
  2. package/cjs/CodeInterpreter.js.map +1 -1
  3. package/cjs/ComputerUse.d.ts +104 -2
  4. package/cjs/ComputerUse.js +851 -763
  5. package/cjs/ComputerUse.js.map +1 -1
  6. package/cjs/Daytona.d.ts +4 -3
  7. package/cjs/Daytona.js +429 -443
  8. package/cjs/Daytona.js.map +1 -1
  9. package/cjs/FileSystem.d.ts +2 -2
  10. package/cjs/FileSystem.js +491 -521
  11. package/cjs/FileSystem.js.map +1 -1
  12. package/cjs/Git.d.ts +2 -1
  13. package/cjs/Git.js +287 -310
  14. package/cjs/Git.js.map +1 -1
  15. package/cjs/LspServer.d.ts +2 -1
  16. package/cjs/LspServer.js +209 -226
  17. package/cjs/LspServer.js.map +1 -1
  18. package/cjs/ObjectStorage.js +170 -166
  19. package/cjs/ObjectStorage.js.map +1 -1
  20. package/cjs/Process.d.ts +4 -3
  21. package/cjs/Process.js +562 -600
  22. package/cjs/Process.js.map +1 -1
  23. package/cjs/PtyHandle.d.ts +2 -2
  24. package/cjs/PtyHandle.js +327 -338
  25. package/cjs/PtyHandle.js.map +1 -1
  26. package/cjs/Sandbox.d.ts +4 -3
  27. package/cjs/Sandbox.js +756 -821
  28. package/cjs/Sandbox.js.map +1 -1
  29. package/cjs/Snapshot.d.ts +3 -2
  30. package/cjs/Snapshot.js +203 -213
  31. package/cjs/Snapshot.js.map +1 -1
  32. package/cjs/Volume.d.ts +2 -1
  33. package/cjs/Volume.js +90 -92
  34. package/cjs/Volume.js.map +1 -1
  35. package/cjs/errors/DaytonaError.d.ts +2 -1
  36. package/cjs/errors/DaytonaError.js.map +1 -1
  37. package/cjs/index.d.ts +2 -2
  38. package/cjs/index.js +2 -1
  39. package/cjs/index.js.map +1 -1
  40. package/cjs/types/CodeInterpreter.d.ts +1 -1
  41. package/cjs/utils/Binary.js +14 -2
  42. package/cjs/utils/Binary.js.map +1 -1
  43. package/cjs/utils/otel.decorator.d.ts +7 -8
  44. package/cjs/utils/otel.decorator.js +24 -30
  45. package/cjs/utils/otel.decorator.js.map +1 -1
  46. package/esm/CodeInterpreter.d.ts +3 -2
  47. package/esm/CodeInterpreter.js.map +1 -1
  48. package/esm/ComputerUse.d.ts +104 -2
  49. package/esm/ComputerUse.js +857 -763
  50. package/esm/ComputerUse.js.map +1 -1
  51. package/esm/Daytona.d.ts +4 -3
  52. package/esm/Daytona.js +431 -444
  53. package/esm/Daytona.js.map +1 -1
  54. package/esm/FileSystem.d.ts +2 -2
  55. package/esm/FileSystem.js +493 -522
  56. package/esm/FileSystem.js.map +1 -1
  57. package/esm/Git.d.ts +2 -1
  58. package/esm/Git.js +289 -311
  59. package/esm/Git.js.map +1 -1
  60. package/esm/LspServer.d.ts +2 -1
  61. package/esm/LspServer.js +211 -227
  62. package/esm/LspServer.js.map +1 -1
  63. package/esm/ObjectStorage.js +172 -167
  64. package/esm/ObjectStorage.js.map +1 -1
  65. package/esm/Process.d.ts +4 -3
  66. package/esm/Process.js +564 -601
  67. package/esm/Process.js.map +1 -1
  68. package/esm/PtyHandle.d.ts +2 -2
  69. package/esm/PtyHandle.js +329 -339
  70. package/esm/PtyHandle.js.map +1 -1
  71. package/esm/Sandbox.d.ts +4 -3
  72. package/esm/Sandbox.js +759 -823
  73. package/esm/Sandbox.js.map +1 -1
  74. package/esm/Snapshot.d.ts +3 -2
  75. package/esm/Snapshot.js +206 -215
  76. package/esm/Snapshot.js.map +1 -1
  77. package/esm/Volume.d.ts +2 -1
  78. package/esm/Volume.js +92 -93
  79. package/esm/Volume.js.map +1 -1
  80. package/esm/errors/DaytonaError.d.ts +2 -1
  81. package/esm/errors/DaytonaError.js.map +1 -1
  82. package/esm/index.d.ts +2 -2
  83. package/esm/index.js +1 -1
  84. package/esm/index.js.map +1 -1
  85. package/esm/types/CodeInterpreter.d.ts +1 -1
  86. package/esm/utils/Binary.js +14 -2
  87. package/esm/utils/Binary.js.map +1 -1
  88. package/esm/utils/otel.decorator.d.ts +7 -8
  89. package/esm/utils/otel.decorator.js +26 -32
  90. package/esm/utils/otel.decorator.js.map +1 -1
  91. package/package.json +3 -3
package/cjs/LspServer.js CHANGED
@@ -28,232 +28,215 @@ var LspLanguageId;
28
28
  *
29
29
  * @class
30
30
  */
31
- class LspServer {
32
- languageId;
33
- pathToProject;
34
- apiClient;
35
- constructor(languageId, pathToProject, apiClient) {
36
- this.languageId = languageId;
37
- this.pathToProject = pathToProject;
38
- this.apiClient = apiClient;
39
- if (!Object.values(LspLanguageId).includes(this.languageId)) {
40
- throw new DaytonaError_1.DaytonaValidationError(`Invalid languageId: ${this.languageId}. Supported values are: ${Object.values(LspLanguageId).join(', ')}`);
31
+ let LspServer = (() => {
32
+ let _instanceExtraInitializers = [];
33
+ let _start_decorators;
34
+ let _stop_decorators;
35
+ let _didOpen_decorators;
36
+ let _didClose_decorators;
37
+ let _documentSymbols_decorators;
38
+ let _workspaceSymbols_decorators;
39
+ let _sandboxSymbols_decorators;
40
+ let _completions_decorators;
41
+ return class LspServer {
42
+ static {
43
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
44
+ _start_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
45
+ _stop_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
46
+ _didOpen_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
47
+ _didClose_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
48
+ _documentSymbols_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
49
+ _workspaceSymbols_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
50
+ _sandboxSymbols_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
51
+ _completions_decorators = [(0, otel_decorator_1.WithInstrumentation)()];
52
+ tslib_1.__esDecorate(this, null, _start_decorators, { kind: "method", name: "start", static: false, private: false, access: { has: obj => "start" in obj, get: obj => obj.start }, metadata: _metadata }, null, _instanceExtraInitializers);
53
+ tslib_1.__esDecorate(this, null, _stop_decorators, { kind: "method", name: "stop", static: false, private: false, access: { has: obj => "stop" in obj, get: obj => obj.stop }, metadata: _metadata }, null, _instanceExtraInitializers);
54
+ tslib_1.__esDecorate(this, null, _didOpen_decorators, { kind: "method", name: "didOpen", static: false, private: false, access: { has: obj => "didOpen" in obj, get: obj => obj.didOpen }, metadata: _metadata }, null, _instanceExtraInitializers);
55
+ tslib_1.__esDecorate(this, null, _didClose_decorators, { kind: "method", name: "didClose", static: false, private: false, access: { has: obj => "didClose" in obj, get: obj => obj.didClose }, metadata: _metadata }, null, _instanceExtraInitializers);
56
+ tslib_1.__esDecorate(this, null, _documentSymbols_decorators, { kind: "method", name: "documentSymbols", static: false, private: false, access: { has: obj => "documentSymbols" in obj, get: obj => obj.documentSymbols }, metadata: _metadata }, null, _instanceExtraInitializers);
57
+ tslib_1.__esDecorate(this, null, _workspaceSymbols_decorators, { kind: "method", name: "workspaceSymbols", static: false, private: false, access: { has: obj => "workspaceSymbols" in obj, get: obj => obj.workspaceSymbols }, metadata: _metadata }, null, _instanceExtraInitializers);
58
+ tslib_1.__esDecorate(this, null, _sandboxSymbols_decorators, { kind: "method", name: "sandboxSymbols", static: false, private: false, access: { has: obj => "sandboxSymbols" in obj, get: obj => obj.sandboxSymbols }, metadata: _metadata }, null, _instanceExtraInitializers);
59
+ tslib_1.__esDecorate(this, null, _completions_decorators, { kind: "method", name: "completions", static: false, private: false, access: { has: obj => "completions" in obj, get: obj => obj.completions }, metadata: _metadata }, null, _instanceExtraInitializers);
60
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
41
61
  }
42
- }
43
- /**
44
- * Starts the language server, must be called before using any other LSP functionality.
45
- * It initializes the language server for the specified language and project.
46
- *
47
- * @returns {Promise<void>}
48
- *
49
- * @example
50
- * const lsp = await sandbox.createLspServer('typescript', 'workspace/project');
51
- * await lsp.start(); // Initialize the server
52
- * // Now ready for LSP operations
53
- */
54
- async start() {
55
- await this.apiClient.start({
56
- languageId: this.languageId,
57
- pathToProject: this.pathToProject,
58
- });
59
- }
60
- /**
61
- * Stops the language server, should be called when the LSP server is no longer needed to
62
- * free up system resources.
63
- *
64
- * @returns {Promise<void>}
65
- *
66
- * @example
67
- * // When done with LSP features
68
- * await lsp.stop(); // Clean up resources
69
- */
70
- async stop() {
71
- await this.apiClient.stop({
72
- languageId: this.languageId,
73
- pathToProject: this.pathToProject,
74
- });
75
- }
76
- /**
77
- * Notifies the language server that a file has been opened, enabling
78
- * language features like diagnostics and completions for that file. The server
79
- * will begin tracking the file's contents and providing language features.
80
- *
81
- * @param {string} path - Path to the opened file. Relative paths are resolved based on the sandbox working directory.
82
- * @returns {Promise<void>}
83
- *
84
- * @example
85
- * // When opening a file for editing
86
- * await lsp.didOpen('workspace/project/src/index.ts');
87
- * // Now can get completions, symbols, etc. for this file
88
- */
89
- async didOpen(path) {
90
- await this.apiClient.didOpen({
91
- languageId: this.languageId,
92
- pathToProject: this.pathToProject,
93
- uri: 'file://' + path,
94
- });
95
- }
96
- /**
97
- * Notifies the language server that a file has been closed, should be called when a file is closed
98
- * in the editor to allow the language server to clean up any resources associated with that file.
99
- *
100
- * @param {string} path - Path to the closed file. Relative paths are resolved based on the project path
101
- * set in the LSP server constructor.
102
- * @returns {Promise<void>}
103
- *
104
- * @example
105
- * // When done editing a file
106
- * await lsp.didClose('workspace/project/src/index.ts');
107
- */
108
- async didClose(path) {
109
- await this.apiClient.didClose({
110
- languageId: this.languageId,
111
- pathToProject: this.pathToProject,
112
- uri: 'file://' + path,
113
- });
114
- }
115
- /**
116
- * Get symbol information (functions, classes, variables, etc.) from a document.
117
- *
118
- * @param {string} path - Path to the file to get symbols from. Relative paths are resolved based on the project path
119
- * set in the LSP server constructor.
120
- * @returns {Promise<LspSymbol[]>} List of symbols in the document. Each symbol includes:
121
- * - name: The symbol's name
122
- * - kind: The symbol's kind (function, class, variable, etc.)
123
- * - location: The location of the symbol in the file
124
- *
125
- * @example
126
- * // Get all symbols in a file
127
- * const symbols = await lsp.documentSymbols('workspace/project/src/index.ts');
128
- * symbols.forEach(symbol => {
129
- * console.log(`${symbol.kind} ${symbol.name}: ${symbol.location}`);
130
- * });
131
- */
132
- async documentSymbols(path) {
133
- const response = await this.apiClient.documentSymbols(this.languageId, this.pathToProject, 'file://' + path);
134
- return response.data;
135
- }
136
- /**
137
- * Searches for symbols matching the query string across the entire Sandbox.
138
- *
139
- * @param {string} query - Search query to match against symbol names
140
- * @returns {Promise<LspSymbol[]>} List of matching symbols from all files. Each symbol includes:
141
- * - name: The symbol's name
142
- * - kind: The symbol's kind (function, class, variable, etc.)
143
- * - location: The location of the symbol in the file
144
- *
145
- * @deprecated Use `sandboxSymbols` instead. This method will be removed in a future version.
146
- */
147
- async workspaceSymbols(query) {
148
- return await this.sandboxSymbols(query);
149
- }
150
- /**
151
- * Searches for symbols matching the query string across the entire Sandbox.
152
- *
153
- * @param {string} query - Search query to match against symbol names
154
- * @returns {Promise<LspSymbol[]>} List of matching symbols from all files. Each symbol includes:
155
- * - name: The symbol's name
156
- * - kind: The symbol's kind (function, class, variable, etc.)
157
- * - location: The location of the symbol in the file
158
- *
159
- * @example
160
- * // Search for all symbols containing "User"
161
- * const symbols = await lsp.sandboxSymbols('User');
162
- * symbols.forEach(symbol => {
163
- * console.log(`${symbol.name} (${symbol.kind}) in ${symbol.location}`);
164
- * });
165
- */
166
- async sandboxSymbols(query) {
167
- const response = await this.apiClient.workspaceSymbols(query, this.languageId, this.pathToProject);
168
- return response.data;
169
- }
170
- /**
171
- * Gets completion suggestions at a position in a file.
172
- *
173
- * @param {string} path - Path to the file. Relative paths are resolved based on the project path
174
- * set in the LSP server constructor.
175
- * @param {Position} position - The position in the file where completion was requested
176
- * @returns {Promise<CompletionList>} List of completion suggestions. The list includes:
177
- * - isIncomplete: Whether more items might be available
178
- * - items: List of completion items, each containing:
179
- * - label: The text to insert
180
- * - kind: The kind of completion
181
- * - detail: Additional details about the item
182
- * - documentation: Documentation for the item
183
- * - sortText: Text used to sort the item in the list
184
- * - filterText: Text used to filter the item
185
- * - insertText: The actual text to insert (if different from label)
186
- *
187
- * @example
188
- * // Get completions at a specific position
189
- * const completions = await lsp.completions('workspace/project/src/index.ts', {
190
- * line: 10,
191
- * character: 15
192
- * });
193
- * completions.items.forEach(item => {
194
- * console.log(`${item.label} (${item.kind}): ${item.detail}`);
195
- * });
196
- */
197
- async completions(path, position) {
198
- const response = await this.apiClient.completions({
199
- languageId: this.languageId,
200
- pathToProject: this.pathToProject,
201
- uri: 'file://' + path,
202
- position: {
203
- line: position.line,
204
- character: position.character,
205
- },
206
- });
207
- return response.data;
208
- }
209
- }
62
+ languageId = tslib_1.__runInitializers(this, _instanceExtraInitializers);
63
+ pathToProject;
64
+ apiClient;
65
+ constructor(languageId, pathToProject, apiClient) {
66
+ this.languageId = languageId;
67
+ this.pathToProject = pathToProject;
68
+ this.apiClient = apiClient;
69
+ if (!Object.values(LspLanguageId).includes(this.languageId)) {
70
+ throw new DaytonaError_1.DaytonaValidationError(`Invalid languageId: ${this.languageId}. Supported values are: ${Object.values(LspLanguageId).join(', ')}`);
71
+ }
72
+ }
73
+ /**
74
+ * Starts the language server, must be called before using any other LSP functionality.
75
+ * It initializes the language server for the specified language and project.
76
+ *
77
+ * @returns {Promise<void>}
78
+ *
79
+ * @example
80
+ * const lsp = await sandbox.createLspServer('typescript', 'workspace/project');
81
+ * await lsp.start(); // Initialize the server
82
+ * // Now ready for LSP operations
83
+ */
84
+ async start() {
85
+ await this.apiClient.start({
86
+ languageId: this.languageId,
87
+ pathToProject: this.pathToProject,
88
+ });
89
+ }
90
+ /**
91
+ * Stops the language server, should be called when the LSP server is no longer needed to
92
+ * free up system resources.
93
+ *
94
+ * @returns {Promise<void>}
95
+ *
96
+ * @example
97
+ * // When done with LSP features
98
+ * await lsp.stop(); // Clean up resources
99
+ */
100
+ async stop() {
101
+ await this.apiClient.stop({
102
+ languageId: this.languageId,
103
+ pathToProject: this.pathToProject,
104
+ });
105
+ }
106
+ /**
107
+ * Notifies the language server that a file has been opened, enabling
108
+ * language features like diagnostics and completions for that file. The server
109
+ * will begin tracking the file's contents and providing language features.
110
+ *
111
+ * @param {string} path - Path to the opened file. Relative paths are resolved based on the sandbox working directory.
112
+ * @returns {Promise<void>}
113
+ *
114
+ * @example
115
+ * // When opening a file for editing
116
+ * await lsp.didOpen('workspace/project/src/index.ts');
117
+ * // Now can get completions, symbols, etc. for this file
118
+ */
119
+ async didOpen(path) {
120
+ await this.apiClient.didOpen({
121
+ languageId: this.languageId,
122
+ pathToProject: this.pathToProject,
123
+ uri: 'file://' + path,
124
+ });
125
+ }
126
+ /**
127
+ * Notifies the language server that a file has been closed, should be called when a file is closed
128
+ * in the editor to allow the language server to clean up any resources associated with that file.
129
+ *
130
+ * @param {string} path - Path to the closed file. Relative paths are resolved based on the project path
131
+ * set in the LSP server constructor.
132
+ * @returns {Promise<void>}
133
+ *
134
+ * @example
135
+ * // When done editing a file
136
+ * await lsp.didClose('workspace/project/src/index.ts');
137
+ */
138
+ async didClose(path) {
139
+ await this.apiClient.didClose({
140
+ languageId: this.languageId,
141
+ pathToProject: this.pathToProject,
142
+ uri: 'file://' + path,
143
+ });
144
+ }
145
+ /**
146
+ * Get symbol information (functions, classes, variables, etc.) from a document.
147
+ *
148
+ * @param {string} path - Path to the file to get symbols from. Relative paths are resolved based on the project path
149
+ * set in the LSP server constructor.
150
+ * @returns {Promise<LspSymbol[]>} List of symbols in the document. Each symbol includes:
151
+ * - name: The symbol's name
152
+ * - kind: The symbol's kind (function, class, variable, etc.)
153
+ * - location: The location of the symbol in the file
154
+ *
155
+ * @example
156
+ * // Get all symbols in a file
157
+ * const symbols = await lsp.documentSymbols('workspace/project/src/index.ts');
158
+ * symbols.forEach(symbol => {
159
+ * console.log(`${symbol.kind} ${symbol.name}: ${symbol.location}`);
160
+ * });
161
+ */
162
+ async documentSymbols(path) {
163
+ const response = await this.apiClient.documentSymbols(this.languageId, this.pathToProject, 'file://' + path);
164
+ return response.data;
165
+ }
166
+ /**
167
+ * Searches for symbols matching the query string across the entire Sandbox.
168
+ *
169
+ * @param {string} query - Search query to match against symbol names
170
+ * @returns {Promise<LspSymbol[]>} List of matching symbols from all files. Each symbol includes:
171
+ * - name: The symbol's name
172
+ * - kind: The symbol's kind (function, class, variable, etc.)
173
+ * - location: The location of the symbol in the file
174
+ *
175
+ * @deprecated Use `sandboxSymbols` instead. This method will be removed in a future version.
176
+ */
177
+ async workspaceSymbols(query) {
178
+ return await this.sandboxSymbols(query);
179
+ }
180
+ /**
181
+ * Searches for symbols matching the query string across the entire Sandbox.
182
+ *
183
+ * @param {string} query - Search query to match against symbol names
184
+ * @returns {Promise<LspSymbol[]>} List of matching symbols from all files. Each symbol includes:
185
+ * - name: The symbol's name
186
+ * - kind: The symbol's kind (function, class, variable, etc.)
187
+ * - location: The location of the symbol in the file
188
+ *
189
+ * @example
190
+ * // Search for all symbols containing "User"
191
+ * const symbols = await lsp.sandboxSymbols('User');
192
+ * symbols.forEach(symbol => {
193
+ * console.log(`${symbol.name} (${symbol.kind}) in ${symbol.location}`);
194
+ * });
195
+ */
196
+ async sandboxSymbols(query) {
197
+ const response = await this.apiClient.workspaceSymbols(query, this.languageId, this.pathToProject);
198
+ return response.data;
199
+ }
200
+ /**
201
+ * Gets completion suggestions at a position in a file.
202
+ *
203
+ * @param {string} path - Path to the file. Relative paths are resolved based on the project path
204
+ * set in the LSP server constructor.
205
+ * @param {Position} position - The position in the file where completion was requested
206
+ * @returns {Promise<CompletionList>} List of completion suggestions. The list includes:
207
+ * - isIncomplete: Whether more items might be available
208
+ * - items: List of completion items, each containing:
209
+ * - label: The text to insert
210
+ * - kind: The kind of completion
211
+ * - detail: Additional details about the item
212
+ * - documentation: Documentation for the item
213
+ * - sortText: Text used to sort the item in the list
214
+ * - filterText: Text used to filter the item
215
+ * - insertText: The actual text to insert (if different from label)
216
+ *
217
+ * @example
218
+ * // Get completions at a specific position
219
+ * const completions = await lsp.completions('workspace/project/src/index.ts', {
220
+ * line: 10,
221
+ * character: 15
222
+ * });
223
+ * completions.items.forEach(item => {
224
+ * console.log(`${item.label} (${item.kind}): ${item.detail}`);
225
+ * });
226
+ */
227
+ async completions(path, position) {
228
+ const response = await this.apiClient.completions({
229
+ languageId: this.languageId,
230
+ pathToProject: this.pathToProject,
231
+ uri: 'file://' + path,
232
+ position: {
233
+ line: position.line,
234
+ character: position.character,
235
+ },
236
+ });
237
+ return response.data;
238
+ }
239
+ };
240
+ })();
210
241
  exports.LspServer = LspServer;
211
- tslib_1.__decorate([
212
- (0, otel_decorator_1.WithInstrumentation)(),
213
- tslib_1.__metadata("design:type", Function),
214
- tslib_1.__metadata("design:paramtypes", []),
215
- tslib_1.__metadata("design:returntype", Promise)
216
- ], LspServer.prototype, "start", null);
217
- tslib_1.__decorate([
218
- (0, otel_decorator_1.WithInstrumentation)(),
219
- tslib_1.__metadata("design:type", Function),
220
- tslib_1.__metadata("design:paramtypes", []),
221
- tslib_1.__metadata("design:returntype", Promise)
222
- ], LspServer.prototype, "stop", null);
223
- tslib_1.__decorate([
224
- (0, otel_decorator_1.WithInstrumentation)(),
225
- tslib_1.__metadata("design:type", Function),
226
- tslib_1.__metadata("design:paramtypes", [String]),
227
- tslib_1.__metadata("design:returntype", Promise)
228
- ], LspServer.prototype, "didOpen", null);
229
- tslib_1.__decorate([
230
- (0, otel_decorator_1.WithInstrumentation)(),
231
- tslib_1.__metadata("design:type", Function),
232
- tslib_1.__metadata("design:paramtypes", [String]),
233
- tslib_1.__metadata("design:returntype", Promise)
234
- ], LspServer.prototype, "didClose", null);
235
- tslib_1.__decorate([
236
- (0, otel_decorator_1.WithInstrumentation)(),
237
- tslib_1.__metadata("design:type", Function),
238
- tslib_1.__metadata("design:paramtypes", [String]),
239
- tslib_1.__metadata("design:returntype", Promise)
240
- ], LspServer.prototype, "documentSymbols", null);
241
- tslib_1.__decorate([
242
- (0, otel_decorator_1.WithInstrumentation)(),
243
- tslib_1.__metadata("design:type", Function),
244
- tslib_1.__metadata("design:paramtypes", [String]),
245
- tslib_1.__metadata("design:returntype", Promise)
246
- ], LspServer.prototype, "workspaceSymbols", null);
247
- tslib_1.__decorate([
248
- (0, otel_decorator_1.WithInstrumentation)(),
249
- tslib_1.__metadata("design:type", Function),
250
- tslib_1.__metadata("design:paramtypes", [String]),
251
- tslib_1.__metadata("design:returntype", Promise)
252
- ], LspServer.prototype, "sandboxSymbols", null);
253
- tslib_1.__decorate([
254
- (0, otel_decorator_1.WithInstrumentation)(),
255
- tslib_1.__metadata("design:type", Function),
256
- tslib_1.__metadata("design:paramtypes", [String, Object]),
257
- tslib_1.__metadata("design:returntype", Promise)
258
- ], LspServer.prototype, "completions", null);
259
242
  //# sourceMappingURL=LspServer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LspServer.js","sourceRoot":"","sources":["../../../../../libs/sdk-typescript/src/LspServer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;AAGH,wDAA8D;AAC9D,2DAA4D;AAE5D;;GAEG;AACH,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,0CAAyB,CAAA;IACzB,0CAAyB,CAAA;AAC3B,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAuBD;;;;;;;;;;GAUG;AACH,MAAa,SAAS;IAED;IACA;IACA;IAHnB,YACmB,UAAyB,EACzB,aAAqB,EACrB,SAAiB;QAFjB,eAAU,GAAV,UAAU,CAAe;QACzB,kBAAa,GAAb,aAAa,CAAQ;QACrB,cAAS,GAAT,SAAS,CAAQ;QAElC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5D,MAAM,IAAI,qCAAsB,CAC9B,uBAAuB,IAAI,CAAC,UAAU,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