@aglit-ai/sdk 0.1.9
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 +57 -0
- package/README.md +242 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/create-chat.d.ts +36 -0
- package/dist/create-chat.js +1 -0
- package/dist/desktop-client.d.ts +76 -0
- package/dist/desktop-client.js +1 -0
- package/dist/http.d.ts +20 -0
- package/dist/http.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/ipc-client.d.ts +87 -0
- package/dist/ipc-client.js +1 -0
- package/dist/openapi-paths.d.ts +2 -0
- package/dist/openapi-paths.js +1 -0
- package/dist/tools-execute.d.ts +66 -0
- package/dist/tools-execute.js +1 -0
- package/examples/app.js +66 -0
- package/examples/browser.js +72 -0
- package/examples/chat.js +43 -0
- package/examples/mcp.js +74 -0
- package/examples/openai-sdk.js +39 -0
- package/examples/run-all.js +63 -0
- package/examples/shared.js +101 -0
- package/examples/terminal.js +74 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Aglit AI Commercial License
|
|
2
|
+
Version 1.0, January 2026
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Aglit AI
|
|
5
|
+
|
|
6
|
+
================================================================================
|
|
7
|
+
NON-COMMERCIAL USE (Free)
|
|
8
|
+
================================================================================
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any individual or organization
|
|
11
|
+
obtaining a copy of this software and associated documentation files (the
|
|
12
|
+
"Software"), to use, copy, modify, and distribute the Software for
|
|
13
|
+
NON-COMMERCIAL purposes only, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
1. The above copyright notice and this license shall be included in all copies
|
|
16
|
+
or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
2. "Non-Commercial" means personal use, educational use, academic research, or
|
|
19
|
+
use by non-profit organizations for non-commercial purposes. This includes:
|
|
20
|
+
- Personal projects and learning
|
|
21
|
+
- Academic research and coursework
|
|
22
|
+
- Open source projects that are not monetized
|
|
23
|
+
- Internal evaluation and testing
|
|
24
|
+
|
|
25
|
+
================================================================================
|
|
26
|
+
COMMERCIAL USE (Subscription Required)
|
|
27
|
+
================================================================================
|
|
28
|
+
|
|
29
|
+
For any Commercial Use of this Software, a valid Aglit AI subscription is
|
|
30
|
+
required. "Commercial Use" includes, but is not limited to:
|
|
31
|
+
|
|
32
|
+
1. Use by any for-profit company or organization
|
|
33
|
+
2. Use in products or services that are sold or generate revenue
|
|
34
|
+
3. Use in internal business operations of a for-profit entity
|
|
35
|
+
4. Use by contractors or consultants on behalf of commercial clients
|
|
36
|
+
5. Integration into commercial software or platforms
|
|
37
|
+
6. Use to provide commercial services to third parties
|
|
38
|
+
|
|
39
|
+
To obtain a commercial license, please visit: https://aglit.ai/pricing
|
|
40
|
+
or contact: licensing@aglit.ai
|
|
41
|
+
|
|
42
|
+
================================================================================
|
|
43
|
+
GENERAL TERMS
|
|
44
|
+
================================================================================
|
|
45
|
+
|
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
47
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
48
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
49
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
50
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
51
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
52
|
+
SOFTWARE.
|
|
53
|
+
|
|
54
|
+
Unauthorized commercial use of this Software constitutes a violation of this
|
|
55
|
+
license and may result in legal action.
|
|
56
|
+
|
|
57
|
+
For questions about licensing, contact: licensing@aglit.ai
|
package/README.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# `@aglit-ai/sdk`
|
|
2
|
+
|
|
3
|
+
MIT-licensed SDK for building against the Aglit AI desktop API and tool runtime.
|
|
4
|
+
|
|
5
|
+
- Requires the Aglit AI desktop app/API running locally
|
|
6
|
+
- Type-safe `fetch` wrapper for the desktop API
|
|
7
|
+
- JSON-RPC tool executor with a required `x_aglit_ai_tool_reason`
|
|
8
|
+
- OpenAPI specs for Desktop + Tool Builder + Provider SPI APIs
|
|
9
|
+
|
|
10
|
+
> You must have the Aglit AI desktop app/API running locally (localhost). Set `SERVER_PORT`/`PORT`/`AGLIT_DESKTOP_BASE_URL` as needed.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pnpm add @aglit-ai/sdk
|
|
16
|
+
# or: npm install @aglit-ai/sdk
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start (TypeScript)
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { createDesktopClient, executeTool } from '@aglit-ai/sdk';
|
|
23
|
+
|
|
24
|
+
const SERVER_PORT = process.env.SERVER_PORT ?? '49117';
|
|
25
|
+
const baseUrl = `http://127.0.0.1:${SERVER_PORT}`;
|
|
26
|
+
const agentId = 'root-agent';
|
|
27
|
+
|
|
28
|
+
const desktop = createDesktopClient({ baseUrl });
|
|
29
|
+
|
|
30
|
+
// Call REST endpoints (typed from OpenAPI)
|
|
31
|
+
const tasks = await desktop.GET('/tasks');
|
|
32
|
+
console.log(tasks.data?.tasks?.length);
|
|
33
|
+
|
|
34
|
+
// Execute tools via IPC (requires x_aglit_ai_tool_reason)
|
|
35
|
+
const response = await executeTool({
|
|
36
|
+
agentId,
|
|
37
|
+
request: {
|
|
38
|
+
jsonrpc: '2.0',
|
|
39
|
+
id: 'sdk-run-terminal',
|
|
40
|
+
params: {
|
|
41
|
+
name: 'p1_terminal',
|
|
42
|
+
arguments: {
|
|
43
|
+
action: 'open',
|
|
44
|
+
x_aglit_ai_tool_reason: 'SDK example: open terminal via IPC',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
context: {
|
|
48
|
+
sessionId: `sdk-terminal-${Date.now()}`,
|
|
49
|
+
agentId,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
console.log('tool response', response.data?.result);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Quick Start (JavaScript)
|
|
57
|
+
|
|
58
|
+
```js
|
|
59
|
+
const { executeTool } = require('@aglit-ai/sdk');
|
|
60
|
+
|
|
61
|
+
(async () => {
|
|
62
|
+
const response = await executeTool({
|
|
63
|
+
agentId: 'root-agent',
|
|
64
|
+
request: {
|
|
65
|
+
jsonrpc: '2.0',
|
|
66
|
+
id: 'sdk-ipc-example',
|
|
67
|
+
params: {
|
|
68
|
+
name: 'p1_todo',
|
|
69
|
+
arguments: {
|
|
70
|
+
action: 'list',
|
|
71
|
+
x_aglit_ai_tool_reason: 'SDK IPC example: list todos',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
context: {
|
|
75
|
+
agentId: 'root-agent',
|
|
76
|
+
sessionId: 'sdk-ipc-session',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
console.log(JSON.stringify(response, null, 2));
|
|
81
|
+
})();
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## IPC Tool Execution
|
|
85
|
+
|
|
86
|
+
Local tool execution runs over the IPC broker so there is no unauthenticated HTTP surface on loopback.
|
|
87
|
+
If you store the IPC configuration somewhere custom, set `AGLIT_SDK_IPC_CONFIG_PATH` accordingly (default:
|
|
88
|
+
`<user-data>/ipc/sdk-ipc.json`, where `<user-data>` is `~/Library/Application Support/Aglit AI/` on macOS).
|
|
89
|
+
|
|
90
|
+
On macOS, the SDK routes requests through a signed helper into an XPC broker. The broker only accepts
|
|
91
|
+
requests from trusted apps and will prompt in the desktop app if a new app requests access. The socket
|
|
92
|
+
endpoint is never written to disk. For local development, set `AGLIT_SDK_XPC_ONLY=0` to keep the legacy
|
|
93
|
+
socket config.
|
|
94
|
+
|
|
95
|
+
Always include `x_aglit_ai_tool_reason` and pass structured arguments rather than raw shell strings. The IPC broker
|
|
96
|
+
also enforces the same tool policies you see in the UI, including approval flows and logging.
|
|
97
|
+
|
|
98
|
+
## Examples
|
|
99
|
+
|
|
100
|
+
The SDK ships ready-to-run examples for common automation surfaces. Always include `x_aglit_ai_tool_reason` to explain why the tool is being called.
|
|
101
|
+
|
|
102
|
+
### Terminal Commands
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
await executeTool({
|
|
106
|
+
agentId: 'root-agent',
|
|
107
|
+
request: {
|
|
108
|
+
jsonrpc: '2.0',
|
|
109
|
+
id: 'open-terminal',
|
|
110
|
+
params: {
|
|
111
|
+
name: 'p1_terminal',
|
|
112
|
+
arguments: {
|
|
113
|
+
action: 'open',
|
|
114
|
+
x_aglit_ai_tool_reason: 'SDK example: open terminal',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
context: { sessionId: 'sdk-shell', agentId: 'root-agent' },
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
await executeTool({
|
|
122
|
+
agentId: 'root-agent',
|
|
123
|
+
request: {
|
|
124
|
+
jsonrpc: '2.0',
|
|
125
|
+
id: 'type-ls',
|
|
126
|
+
params: {
|
|
127
|
+
name: 'p1_terminal',
|
|
128
|
+
arguments: {
|
|
129
|
+
action: 'type',
|
|
130
|
+
windowId: '<window-id-from-open>',
|
|
131
|
+
text: 'ls -la /tmp',
|
|
132
|
+
submit_command: true,
|
|
133
|
+
x_aglit_ai_tool_reason: 'SDK example: list temp files',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
context: { sessionId: 'sdk-shell', agentId: 'root-agent' },
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Browser Automation
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
// Navigate first
|
|
145
|
+
const nav = await executeTool({
|
|
146
|
+
agentId: 'root-agent',
|
|
147
|
+
request: {
|
|
148
|
+
jsonrpc: '2.0',
|
|
149
|
+
id: 'browser-nav',
|
|
150
|
+
params: {
|
|
151
|
+
name: 'p1_browser',
|
|
152
|
+
arguments: {
|
|
153
|
+
action: 'navigate',
|
|
154
|
+
url: 'https://example.com',
|
|
155
|
+
x_aglit_ai_tool_reason: 'SDK example: warm up page',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
context: { sessionId: 'sdk-browser', agentId: 'root-agent' },
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
const windowId = (nav.data?.result as any)?.windowId as string;
|
|
163
|
+
|
|
164
|
+
// Inject JavaScript in that session
|
|
165
|
+
await executeTool({
|
|
166
|
+
agentId: 'root-agent',
|
|
167
|
+
request: {
|
|
168
|
+
jsonrpc: '2.0',
|
|
169
|
+
id: 'browser-js',
|
|
170
|
+
params: {
|
|
171
|
+
name: 'p1_browser',
|
|
172
|
+
arguments: {
|
|
173
|
+
action: 'execute_javascript',
|
|
174
|
+
windowId,
|
|
175
|
+
code: 'document.title',
|
|
176
|
+
x_aglit_ai_tool_reason: 'SDK example: read page title',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
context: { sessionId: 'sdk-browser', agentId: 'root-agent' },
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Office App Automations (macOS)
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
await executeTool({
|
|
188
|
+
agentId: 'root-agent',
|
|
189
|
+
request: {
|
|
190
|
+
jsonrpc: '2.0',
|
|
191
|
+
id: 'app-01',
|
|
192
|
+
params: {
|
|
193
|
+
name: 'p1_office',
|
|
194
|
+
arguments: {
|
|
195
|
+
tool: 'app',
|
|
196
|
+
app: 'calendar',
|
|
197
|
+
action: 'list',
|
|
198
|
+
x_aglit_ai_tool_reason: 'SDK example: list calendar events',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
context: { sessionId: 'sdk-app', agentId: 'root-agent' },
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Create Chat Sessions
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
import { createDesktopClient } from '@aglit-ai/sdk';
|
|
210
|
+
|
|
211
|
+
const desktop = createDesktopClient({ baseUrl });
|
|
212
|
+
|
|
213
|
+
const chat = await desktop.POST('/chats', {
|
|
214
|
+
body: {
|
|
215
|
+
agentId: 'root-agent',
|
|
216
|
+
initialText: 'Say hello from the SDK',
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
console.log('chat id', chat.data?.chat?.id);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Run the Bundled Examples
|
|
223
|
+
|
|
224
|
+
Make sure the desktop app/API is running locally, then:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
pnpm --filter @aglit-ai/sdk run build # if you haven't built yet
|
|
228
|
+
pnpm --filter @aglit-ai/sdk run test:examples
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Configure via environment:
|
|
232
|
+
- `AGLIT_DESKTOP_BASE_URL` (overrides host/port)
|
|
233
|
+
- `SERVER_PORT` or `PORT` (default 49117 prod; 49217 for local dev)
|
|
234
|
+
- `AGLIT_AGENT_ID` (default `root-agent`)
|
|
235
|
+
|
|
236
|
+
## OpenAPI Specs
|
|
237
|
+
|
|
238
|
+
The SDK resolves the current OpenAPI source files from `@aglit-ai/types`:
|
|
239
|
+
|
|
240
|
+
- Desktop API: `@aglit-ai/types/schema/api.openapi.yaml`
|
|
241
|
+
- Tool Builder API: `@aglit-ai/types/schema/tools-api.openapi.yaml`
|
|
242
|
+
- Provider SPI API: `@aglit-ai/types/schema/provider-spi.openapi.yaml`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/zod/v4/core/standard-schema.d.ts","../../../node_modules/zod/v4/core/util.d.ts","../../../node_modules/zod/v4/core/versions.d.ts","../../../node_modules/zod/v4/core/schemas.d.ts","../../../node_modules/zod/v4/core/checks.d.ts","../../../node_modules/zod/v4/core/errors.d.ts","../../../node_modules/zod/v4/core/core.d.ts","../../../node_modules/zod/v4/core/parse.d.ts","../../../node_modules/zod/v4/core/regexes.d.ts","../../../node_modules/zod/v4/locales/ar.d.ts","../../../node_modules/zod/v4/locales/az.d.ts","../../../node_modules/zod/v4/locales/be.d.ts","../../../node_modules/zod/v4/locales/ca.d.ts","../../../node_modules/zod/v4/locales/cs.d.ts","../../../node_modules/zod/v4/locales/de.d.ts","../../../node_modules/zod/v4/locales/en.d.ts","../../../node_modules/zod/v4/locales/eo.d.ts","../../../node_modules/zod/v4/locales/es.d.ts","../../../node_modules/zod/v4/locales/fa.d.ts","../../../node_modules/zod/v4/locales/fi.d.ts","../../../node_modules/zod/v4/locales/fr.d.ts","../../../node_modules/zod/v4/locales/fr-ca.d.ts","../../../node_modules/zod/v4/locales/he.d.ts","../../../node_modules/zod/v4/locales/hu.d.ts","../../../node_modules/zod/v4/locales/id.d.ts","../../../node_modules/zod/v4/locales/it.d.ts","../../../node_modules/zod/v4/locales/ja.d.ts","../../../node_modules/zod/v4/locales/kh.d.ts","../../../node_modules/zod/v4/locales/ko.d.ts","../../../node_modules/zod/v4/locales/mk.d.ts","../../../node_modules/zod/v4/locales/ms.d.ts","../../../node_modules/zod/v4/locales/nl.d.ts","../../../node_modules/zod/v4/locales/no.d.ts","../../../node_modules/zod/v4/locales/ota.d.ts","../../../node_modules/zod/v4/locales/ps.d.ts","../../../node_modules/zod/v4/locales/pl.d.ts","../../../node_modules/zod/v4/locales/pt.d.ts","../../../node_modules/zod/v4/locales/ru.d.ts","../../../node_modules/zod/v4/locales/sl.d.ts","../../../node_modules/zod/v4/locales/sv.d.ts","../../../node_modules/zod/v4/locales/ta.d.ts","../../../node_modules/zod/v4/locales/th.d.ts","../../../node_modules/zod/v4/locales/tr.d.ts","../../../node_modules/zod/v4/locales/ua.d.ts","../../../node_modules/zod/v4/locales/ur.d.ts","../../../node_modules/zod/v4/locales/vi.d.ts","../../../node_modules/zod/v4/locales/zh-cn.d.ts","../../../node_modules/zod/v4/locales/zh-tw.d.ts","../../../node_modules/zod/v4/locales/index.d.ts","../../../node_modules/zod/v4/core/registries.d.ts","../../../node_modules/zod/v4/core/doc.d.ts","../../../node_modules/zod/v4/core/function.d.ts","../../../node_modules/zod/v4/core/api.d.ts","../../../node_modules/zod/v4/core/json-schema.d.ts","../../../node_modules/zod/v4/core/to-json-schema.d.ts","../../../node_modules/zod/v4/core/index.d.ts","../../../node_modules/zod/v4/classic/errors.d.ts","../../../node_modules/zod/v4/classic/parse.d.ts","../../../node_modules/zod/v4/classic/schemas.d.ts","../../../node_modules/zod/v4/classic/checks.d.ts","../../../node_modules/zod/v4/classic/compat.d.ts","../../../node_modules/zod/v4/classic/iso.d.ts","../../../node_modules/zod/v4/classic/coerce.d.ts","../../../node_modules/zod/v4/classic/external.d.ts","../../../node_modules/zod/v4/classic/index.d.ts","../../../node_modules/zod/v4/index.d.ts","../../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts","../../../node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts","../../types/dist/generated/tool-schemas.d.ts","../../types/dist/live-stream-types.d.ts","../../types/dist/tool-types.d.ts","../../types/dist/api.d.ts","../../types/dist/tools/auth.d.ts","../../types/dist/i18n/language-codes.d.ts","../../types/dist/tools/tools.d.ts","../../types/dist/generated/tool-builder-input.d.ts","../src/http.ts","../../types/dist/generated/desktop-api-types.d.ts","../src/desktop-client.ts","../src/ipc-client.ts","../src/tools-execute.ts","../src/create-chat.ts","../src/openapi-paths.ts","../src/index.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[136,183],[112,113,136,183],[136,180,183],[136,182,183],[183],[136,183,188,216],[136,183,184,189,194,202,213,224],[136,183,184,185,194,202],[131,132,133,136,183],[136,183,186,225],[136,183,187,188,195,203],[136,183,188,213,221],[136,183,189,191,194,202],[136,182,183,190],[136,183,191,192],[136,183,193,194],[136,182,183,194],[136,183,194,195,196,213,224],[136,183,194,195,196,209,213,216],[136,183,191,194,197,202,213,224],[136,183,194,195,197,198,202,213,221,224],[136,183,197,199,213,221,224],[134,135,136,137,138,139,140,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230],[136,183,194,200],[136,183,201,224,229],[136,183,191,194,202,213],[136,183,203],[136,183,204],[136,182,183,205],[136,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230],[136,183,207],[136,183,208],[136,183,194,209,210],[136,183,209,211,225,227],[136,183,194,213,214,216],[136,183,215,216],[136,183,213,214],[136,183,216],[136,183,217],[136,180,183,213,218],[136,183,194,219,220],[136,183,219,220],[136,183,188,202,213,221],[136,183,222],[136,183,202,223],[136,183,197,208,224],[136,183,188,225],[136,183,213,226],[136,183,201,227],[136,183,228],[136,178,183],[136,178,183,194,196,205,213,216,224,227,229],[136,183,213,230],[136,150,154,183,224],[136,150,183,213,224],[136,145,183],[136,147,150,183,221,224],[136,183,202,221],[136,183,231],[136,145,183,231],[136,147,150,183,202,224],[136,142,143,146,149,183,194,213,224],[136,150,157,183],[136,142,148,183],[136,150,171,172,183],[136,146,150,183,216,224,231],[136,171,183,231],[136,144,145,183,231],[136,150,183],[136,144,145,146,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,183],[136,150,165,183],[136,150,157,158,183],[136,148,150,158,159,183],[136,149,183],[136,142,145,150,183],[136,150,154,158,159,183],[136,154,183],[136,148,150,153,183,224],[136,142,147,150,157,183],[136,183,213],[136,145,150,171,183,229,231],[102,136,183],[102,105,136,183],[95,102,103,104,105,106,107,108,109,136,183],[110,136,183],[102,103,136,183],[102,104,136,183],[48,50,51,52,53,136,183],[48,50,52,53,136,183],[48,50,52,136,183],[48,50,51,53,136,183],[48,50,53,136,183],[48,49,50,51,52,53,54,55,95,96,97,98,99,100,101,136,183],[50,53,136,183],[47,48,49,51,52,53,136,183],[50,96,100,136,183],[50,51,52,53,136,183],[111,136,183],[52,136,183],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,136,183],[122,127,136,183],[123,124,136,183],[125,126,127,128,129,136,183],[123,124,125,136,183,184,188,195,202,203,204],[136,183,195,204],[122,123,126,136,183],[114,117,136,183],[121,136,183],[118,136,183],[114,115,116,136,183],[118,119,120,136,183]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"309ebd217636d68cf8784cbc3272c16fb94fb8e969e18b6fe88c35200340aef1","impliedFormat":99},{"version":"e8d1462be99ad3877e9b8d0dbcf03b9304009bafe0e35f0ad72028c25a9a7137","impliedFormat":99},{"version":"ef9b6279acc69002a779d0172916ef22e8be5de2d2469ff2f4bb019a21e89de2","impliedFormat":99},{"version":"4481020e24a66e3d95f988633a3a817d5976cbb43014c89ec197b6ea59ccf7cd","affectsGlobalScope":true,"impliedFormat":99},{"version":"c6f59a9804fdf860eb510e28aa7c695950f28a772accea142acb70e68eae5d6e","impliedFormat":99},{"version":"2d4885146de028d8443e1e47c05035607481cf0845ee5048f5a880f3b22fffdb","impliedFormat":99},{"version":"6dfc99e76f74e497635aee14502c26a5dd8964fcf6e2f8170318fb299ce69182","impliedFormat":99},{"version":"716a022c6d311c8367d830d2839fe017699564de2d0f5446b4a6f3f022a5c0c6","impliedFormat":99},{"version":"c939cb12cb000b4ec9c3eca3fe7dee1fe373ccb801237631d9252bad10206d61","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","impliedFormat":99},{"version":"3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"3b25e966fd93475d8ca2834194ea78321d741a21ca9d1f606b25ec99c1bbc29a","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"7ceb8bc679a90951354f89379bc37228e7cf87b753069cd7b62310d5cbbe1f11","impliedFormat":99},{"version":"44b79738199273eb8e74fd2d343dcb99f102cda7870fd1531f31d4a8a10810f5","impliedFormat":99},{"version":"c381a7476166654e9a35cd4e819596bd716fa276fd9f51f7cc89cbd132a1fcca","impliedFormat":99},{"version":"80e653fbbec818eecfe95d182dc65a1d107b343d970159a71922ac4491caa0af","impliedFormat":99},{"version":"f978b1b63ad690ff2a8f16d6f784acaa0ba0f4bcfc64211d79a2704de34f5913","impliedFormat":99},{"version":"289ffad6574dcc391ee222db91e72c2e8713fa26534a014c97a6c833ceea0236","impliedFormat":99},{"version":"9078205849121a5d37a642949d687565498da922508eacb0e5a0c3de427f0ae5","impliedFormat":99},{"version":"6490b14de0cc6bc2edb60b8078d35de061f766eb36bf8447ff2b15a337b0a279","impliedFormat":99},{"version":"f5c8f2ef9603893e25ed86c7112cd2cc60d53e5387b9146c904bce3e707c55de","impliedFormat":99},{"version":"03be953961283699e72d526e1bff478be5af0840094b7e37d90a15ffd1426f64","impliedFormat":99},{"version":"895c5944c6c2c15637f645e0731c32d54a63879b6c1a1460a863ba16c0e5d721","impliedFormat":99},{"version":"b9774686600e48e2ece67faf6684d2da13841e91a329c8fd9e364f9e75c439c6","impliedFormat":99},{"version":"f20eb2e1153f7b80a52d30261dc0b90ad4a5adcfccc9b150d3998afdaea7f9d3","impliedFormat":99},{"version":"6e0a343ec6256acecb9a77e9ecc164f7a6d2e79dcea3472d231d8cfff1ebe0da","impliedFormat":99},{"version":"50f3d54845c748597afd9fe6a474862ab957f61f274d5fcba6509f5e4174c988","impliedFormat":99},{"version":"1f4a8bb5e841d3a1510d12a84640ee327f5a4b55484e8f16e2b285d54eb19924","impliedFormat":99},{"version":"4223f0ae0c2925a2d365ef6c9152641b17736cf143d120beedc0543576eaae93","impliedFormat":99},{"version":"d49030b9a324bab9bcf9f663a70298391b0f5a25328409174d86617512bf3037","impliedFormat":99},{"version":"a4b634bb8c97cc700dbf165f3bb0095ec669042da72eaf28a7c5e2ddd98169ce","impliedFormat":99},{"version":"f17ed72d1b1882ab6dc66d45e699f757d15bba0807af2fc9c3ec98fe367611c1","impliedFormat":99},{"version":"1261246aed09870ea204dd3ab6958463d4a1bb91da9d34ed17615fbe34699440","impliedFormat":99},"a53d508a9c4a71a2b9024a7b71a40bce43284df744b45d8cbfd073b10405fea5","f6848bf09daa7b69bc6f9710850d58499b5c055b3f1521f19c7e1934b89185d0","0722955224d02bf9611bd18422d74da0ef85ec4ec1f020c5eebc58fd59b37ae5","d83c5d4e24668e7d21fd83feae67c198570fc0b17badffa5b787266daf659097","2dd0bfedfc3ea558e28f1f502b4d8b41dc75474b8c59b80f9c5fa842757fcad4","c943e3fc0dd9d09dfda8adb455133e7748932b88379328b50877d8b26fc2a677","34f0be1713c676a0984a0d219c7784589ee197d4d5e89bb5a656095a408303c6","8a481fb37a797edcec47022d23980771ede16ddde9efabf6a17cc2a465e28afc",{"version":"0201fe8d1c03fb4c51ad253e72adf7d6e9def60f236435cda72691e90004f650","signature":"ce1a3d8fc68b75c398a9e89f5b45c4c463ea80c0f96a783244a41afc571cea9d"},"249dce35fbafa316fa28aaaafb0c8169463a2a295ef3f281e90d05dc813325d8",{"version":"6a7570973829510d31e84ae6c0fdb81755bae85664d995c2f0b44aab8f194308","signature":"aa370ceaec70b4d6ab0211f2ffdcbe0362ddd936cafbf54a03e9f7e2df8efa0c"},{"version":"aa9befa189cfad1d23404001be131456d0a1871f1374327af4ed33a2847f1794","signature":"2e6f97047f394f8863bdee9fee77fbb078ed4379f7edeb4f8f2bd8887b5cf7de"},{"version":"e1d7edb280b46ddf90d0d0a48d8c6183db185cf52eae4217213b5de711ce67a9","signature":"4820a7344ebf78459b3fd709c9598cd5bec28517aa8043fdae177689067e7fec"},{"version":"ad325af7ce56997b92db67fe0e1953a813f42fb9dc069f567eb14f3d0a631b94","signature":"131fb3b6ffe5230cac7b040530b9aa1836588bddd0377884f78df932d70e2ba0"},{"version":"99d6b905b42d29d5cbfd5aaadfa9fafad0f4921c5a57a24f2cc1ad92f048aebd","signature":"df823345cc3fac90d58ef9d7d8205dba16555bf3084d34a2bebbb34f884855fc"},{"version":"0706f86277de2ff03c7e2a08c405c07a62bb63220593dc0396c107f05b58a697","signature":"ddf1a250f4c1c259144cda67f66e5fb20c1c06363699446257bccd3e32ebf409"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"2cbe0621042e2a68c7cbce5dfed3906a1862a16a7d496010636cdbdb91341c0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"2fd4c143eff88dabb57701e6a40e02a4dbc36d5eb1362e7964d32028056a782b","impliedFormat":1},{"version":"714435130b9015fae551788df2a88038471a5a11eb471f27c4ede86552842bc9","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"27fdb0da0daf3b337c5530c5f266efe046a6ceb606e395b346974e4360c36419","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"0e456fd5b101271183d99a9087875a282323e3a3ff0d7bcf1881537eaa8b8e63","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"47ab634529c5955b6ad793474ae188fce3e6163e3a3fb5edd7e0e48f14435333","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"0225ecb9ed86bdb7a2c7fd01f1556906902929377b44483dc4b83e03b3ef227d","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"ddc734b4fae82a01d247e9e342d020976640b5e93b4e9b3a1e30e5518883a060","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"05db535df8bdc30d9116fe754a3473d1b6479afbc14ae8eb18b605c62677d518","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[123,[125,130]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":true,"module":1,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[113,1],[114,2],[180,3],[181,3],[182,4],[136,5],[183,6],[184,7],[185,8],[131,1],[134,9],[132,1],[133,1],[186,10],[187,11],[188,12],[189,13],[190,14],[191,15],[192,15],[193,16],[194,17],[195,18],[196,19],[137,1],[135,1],[197,20],[198,21],[199,22],[231,23],[200,24],[201,25],[202,26],[203,27],[204,28],[205,29],[206,30],[207,31],[208,32],[209,33],[210,33],[211,34],[212,1],[213,35],[215,36],[214,37],[216,38],[217,39],[218,40],[219,41],[220,42],[221,43],[222,44],[223,45],[224,46],[225,47],[226,48],[227,49],[228,50],[138,1],[139,1],[140,1],[179,51],[229,52],[230,53],[141,1],[45,1],[46,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[19,1],[20,1],[4,1],[21,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[1,1],[157,54],[167,55],[156,54],[177,56],[148,57],[147,58],[176,59],[170,60],[175,61],[150,62],[164,63],[149,64],[173,65],[145,66],[144,59],[174,67],[146,68],[151,69],[152,1],[155,69],[142,1],[178,70],[168,71],[159,72],[160,73],[162,74],[158,75],[161,76],[171,59],[153,77],[154,78],[163,79],[143,80],[166,71],[165,69],[169,1],[172,81],[106,82],[109,83],[107,83],[103,82],[110,84],[111,85],[108,83],[104,86],[105,87],[99,88],[51,89],[53,90],[97,1],[52,91],[98,92],[102,93],[100,1],[54,89],[55,1],[96,94],[50,95],[47,1],[101,96],[48,97],[49,1],[112,98],[56,99],[57,99],[58,99],[59,99],[60,99],[61,99],[62,99],[63,99],[64,99],[65,99],[66,99],[68,99],[67,99],[69,99],[70,99],[71,99],[95,100],[72,99],[73,99],[74,99],[75,99],[76,99],[77,99],[78,99],[79,99],[80,99],[82,99],[81,99],[83,99],[84,99],[85,99],[86,99],[87,99],[88,99],[89,99],[90,99],[91,99],[92,99],[93,99],[94,99],[128,101],[125,102],[123,1],[130,103],[126,104],[129,105],[127,106],[118,107],[124,1],[122,108],[115,1],[120,1],[116,109],[117,110],[119,1],[121,111]],"version":"5.9.3"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ToolExecutionResponse } from '@aglit-ai/types/generated/tool-builder-input';
|
|
2
|
+
export type CreateChatAttachment = {
|
|
3
|
+
path: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
mimeType?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CreateChatInput = {
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated (HTTP transport removed). Retained for backward compatibility.
|
|
10
|
+
*/
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Agent that executes the `p1_system_chat` tool (usually `root-agent`).
|
|
14
|
+
*/
|
|
15
|
+
executorAgentId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Agent that the new chat session runs as. Defaults to `executorAgentId`.
|
|
18
|
+
*/
|
|
19
|
+
targetAgentId?: string;
|
|
20
|
+
initialText: string;
|
|
21
|
+
context?: string;
|
|
22
|
+
provider?: 'claude' | 'codex' | 'gemini' | 'qwen' | string;
|
|
23
|
+
enableAgentMode?: boolean;
|
|
24
|
+
attachments?: CreateChatAttachment[];
|
|
25
|
+
sessionId?: string;
|
|
26
|
+
x_aglit_ai_tool_reason?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Deprecated (HTTP transport removed). Retained for backward compatibility.
|
|
29
|
+
*/
|
|
30
|
+
transport?: 'ipc' | 'http';
|
|
31
|
+
};
|
|
32
|
+
export declare function createChat(params: CreateChatInput): Promise<{
|
|
33
|
+
response: Response;
|
|
34
|
+
data: ToolExecutionResponse | null;
|
|
35
|
+
sessionId: string | null;
|
|
36
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x2fe45a=_0x3fc5;(function(_0x468a05,_0x5206c6){const _0x44e36e=_0x3fc5,_0x2722ce=_0x468a05();while(!![]){try{const _0x1cfbd6=-parseInt(_0x44e36e(0x1c4))/(-0x15*-0x41+-0x31a+0x5f*-0x6)*(-parseInt(_0x44e36e(0x1af))/(-0x94d*-0x3+-0xebf*-0x1+-0x2aa4))+parseInt(_0x44e36e(0x1ad))/(-0x11*0x18d+0x1b6b*-0x1+-0x125*-0x2f)*(-parseInt(_0x44e36e(0x1c9))/(-0x1d2*-0x7+-0x86*0x9+-0x804))+-parseInt(_0x44e36e(0x1b9))/(0x118d*0x2+-0x87+-0x228e)+parseInt(_0x44e36e(0x1b3))/(0x7cc+-0x1dca*-0x1+0x8*-0x4b2)*(-parseInt(_0x44e36e(0x1b1))/(0x1d69+0x32*0x1+-0x2*0xeca))+-parseInt(_0x44e36e(0x1bc))/(-0x145b+0x172b+-0x2c8)*(parseInt(_0x44e36e(0x1ca))/(0x6ad*0x2+0x1*0x2069+0x6*-0x79f))+-parseInt(_0x44e36e(0x1c1))/(0xe04+0x9*-0x52+-0xa*0x11c)*(-parseInt(_0x44e36e(0x1c0))/(0x1c53+0x3*0x205+0x1*-0x2257))+parseInt(_0x44e36e(0x1bf))/(0x1*-0xd6f+-0x15b1+0x232c)*(parseInt(_0x44e36e(0x1ae))/(-0x1*-0x8b5+-0x11a3+-0x1*-0x8fb));if(_0x1cfbd6===_0x5206c6)break;else _0x2722ce['push'](_0x2722ce['shift']());}catch(_0xaf92e){_0x2722ce['push'](_0x2722ce['shift']());}}}(_0x1caa,-0x1f9da+0x2a43f*-0x1+0xd5bef));function _0x1caa(){const _0x47be86=['C3rYAw5N','Ef9Hz2XPDf9HAq','mtq5nMnOr21iBq','mtq0u0HlzxzI','nda0mwHyBe1jrG','mtq0mdrXy0DgCuu','mMXzCK9RDa','wvHdz0K','nZaWmda3BhPltfzQ','zxHLy3v0B3jbzW','ndjQv3vArwm','zgf0yq','BM93','DgfYz2v0qwDLBG','y29UDgv4Da','lI90B29SCY1LEa','mZaWntC4nuXNCgzptq','zw5HyMXLqwDLBG','mI4W','mZu1nJmYrKrdsevL','DeLK','CdfFC3LZDgvTxW','mty4nZjcq1DyvLG','mtfzwgnnr00','ntyYmZG5mhDmB0vvCG','y2HHDa','zw50swq','oty4odu1yNDyChLU','C2vUzf9TzxnZyq','zxj0Eq'];_0x1caa=function(){return _0x47be86;};return _0x1caa();}Object['defineProp'+_0x2fe45a(0x1c6)](exports,'__esModule',{'value':!(0x3*0xa49+-0x9b+-0x1e40)}),exports['createChat']=createChat;const tools_execute_1=require(_0x2fe45a(0x1b8)+'ecute');function _0x3fc5(_0x147a6f,_0x5c5153){_0x147a6f=_0x147a6f-(-0x97f+-0x6b9*-0x1+0x1*0x473);const _0x20448a=_0x1caa();let _0x4a02e4=_0x20448a[_0x147a6f];if(_0x3fc5['IjNIAn']===undefined){var _0x141005=function(_0x149905){const _0x4739ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f1841='',_0x39d756='';for(let _0x5696f1=0xdff+0x1ad1+-0x2*0x1468,_0xe88197,_0x3b6a6f,_0x179d52=-0x28c*-0x2+-0x2429+0x1*0x1f11;_0x3b6a6f=_0x149905['charAt'](_0x179d52++);~_0x3b6a6f&&(_0xe88197=_0x5696f1%(0x1a8*0x16+0x1d*-0x32+-0x1ec2)?_0xe88197*(0xeb9+0xca8+-0x1cf*0xf)+_0x3b6a6f:_0x3b6a6f,_0x5696f1++%(0x1*0x222f+0x2516+0x275*-0x1d))?_0x3f1841+=String['fromCharCode'](0x3*0xa49+-0x9b+-0x1d41&_0xe88197>>(-(0xa7d+-0x1d7*0x9+-0x614*-0x1)*_0x5696f1&0x225e*0x1+-0x504+-0x1*0x1d54)):0x80e+0x16f7+0x1*-0x1f05){_0x3b6a6f=_0x4739ca['indexOf'](_0x3b6a6f);}for(let _0x3cf721=0x1fd+0x2108+-0x2305,_0x16378c=_0x3f1841['length'];_0x3cf721<_0x16378c;_0x3cf721++){_0x39d756+='%'+('00'+_0x3f1841['charCodeAt'](_0x3cf721)['toString'](-0x1840*0x1+0x132d*0x1+0x523))['slice'](-(-0x4cf*-0x1+-0x547*-0x1+0x3c*-0x2b));}return decodeURIComponent(_0x39d756);};_0x3fc5['kzXudl']=_0x141005,_0x3fc5['MYPgfZ']={},_0x3fc5['IjNIAn']=!![];}const _0x23c6b1=_0x20448a[-0x47*0x86+-0x5c5+0x2aef],_0xe078b0=_0x147a6f+_0x23c6b1,_0x5aa464=_0x3fc5['MYPgfZ'][_0xe078b0];return!_0x5aa464?(_0x4a02e4=_0x3fc5['kzXudl'](_0x4a02e4),_0x3fc5['MYPgfZ'][_0xe078b0]=_0x4a02e4):_0x4a02e4=_0x5aa464,_0x4a02e4;}async function createChat(_0x39850b){const _0x320494=_0x2fe45a,_0x4bb7a5={'YXCgI':_0x320494(0x1c7)},_0xd854b4='create-cha'+'t-'+Date[_0x320494(0x1b5)](),_0x67eaad=_0x39850b['sessionId']??'sdk-'+_0xd854b4,_0x336a3e=await(0xa7d+-0x1d7*0x9+-0x612*-0x1,tools_execute_1['executeToo'+'l'])({'agentId':_0x39850b['executorAg'+_0x320494(0x1c3)],'request':{'jsonrpc':_0x320494(0x1bb),'id':_0xd854b4,'params':{'name':_0x320494(0x1be)+_0x320494(0x1c2),'arguments':{'action':_0x320494(0x1c5)+'ge','message':_0x39850b['initialTex'+'t'],'agent_id':_0x39850b[_0x320494(0x1b6)+_0x320494(0x1bd)]??_0x39850b[_0x320494(0x1b2)+_0x320494(0x1c3)],'provider':_0x39850b['provider'],'context':_0x39850b[_0x320494(0x1b7)],'enable_agent_mode':_0x39850b[_0x320494(0x1ba)+'tMode']??!(0x225e*0x1+-0x504+-0x1*0x1d59),'attachments':_0x39850b['attachment'+'s'],'x_aglit_ai_tool_reason':_0x39850b[_0x320494(0x1c8)+'_tool_reas'+'on']??'SDK:\x20creat'+'eChat'}},'context':{'sessionId':_0x67eaad,'agentId':_0x39850b['executorAg'+'entId']}}}),_0x39ea0d=_0x336a3e[_0x320494(0x1b4)]?.['_meta']?.['sessionId']??null;return{..._0x336a3e,'sessionId':typeof _0x39ea0d==_0x4bb7a5[_0x320494(0x1b0)]?_0x39ea0d:null};}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { paths as DesktopPaths } from '@aglit-ai/types/generated/desktop-api-types';
|
|
2
|
+
import { type FetchLike } from './http';
|
|
3
|
+
type LowercaseHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
4
|
+
type OperationFor<Paths extends Record<string, any>, P extends keyof Paths & string, M extends LowercaseHttpMethod> = M extends keyof Paths[P] ? Paths[P][M] : never;
|
|
5
|
+
type PathParamsFor<Op> = Op extends {
|
|
6
|
+
parameters: {
|
|
7
|
+
path: infer Params;
|
|
8
|
+
};
|
|
9
|
+
} ? Params : never;
|
|
10
|
+
type QueryParamsFor<Op> = Op extends {
|
|
11
|
+
parameters: {
|
|
12
|
+
query?: infer Params;
|
|
13
|
+
};
|
|
14
|
+
} ? Params : never;
|
|
15
|
+
type RequestBodyFor<Op> = Op extends {
|
|
16
|
+
requestBody: {
|
|
17
|
+
content: {
|
|
18
|
+
'application/json': infer Body;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} ? Body : never;
|
|
22
|
+
type JsonOkResponseFor<Op> = Op extends {
|
|
23
|
+
responses: {
|
|
24
|
+
200: {
|
|
25
|
+
content: {
|
|
26
|
+
'application/json': infer R;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
} ? R : Op extends {
|
|
31
|
+
responses: {
|
|
32
|
+
201: {
|
|
33
|
+
content: {
|
|
34
|
+
'application/json': infer R;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
} ? R : Op extends {
|
|
39
|
+
responses: {
|
|
40
|
+
202: {
|
|
41
|
+
content: {
|
|
42
|
+
'application/json': infer R;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
} ? R : Op extends {
|
|
47
|
+
responses: {
|
|
48
|
+
204: any;
|
|
49
|
+
};
|
|
50
|
+
} ? null : unknown;
|
|
51
|
+
export type ClientResult<T> = {
|
|
52
|
+
data: T | null;
|
|
53
|
+
response: Response;
|
|
54
|
+
};
|
|
55
|
+
export type ClientRequestOptions<Op> = {
|
|
56
|
+
params?: {
|
|
57
|
+
path?: PathParamsFor<Op>;
|
|
58
|
+
query?: QueryParamsFor<Op>;
|
|
59
|
+
};
|
|
60
|
+
body?: RequestBodyFor<Op>;
|
|
61
|
+
headers?: Record<string, string>;
|
|
62
|
+
signal?: AbortSignal;
|
|
63
|
+
};
|
|
64
|
+
export type DesktopClient = ReturnType<typeof createDesktopClient>;
|
|
65
|
+
export declare function createDesktopClient(params: {
|
|
66
|
+
baseUrl: string;
|
|
67
|
+
fetch?: FetchLike;
|
|
68
|
+
headers?: Record<string, string>;
|
|
69
|
+
}): {
|
|
70
|
+
GET: <P extends keyof DesktopPaths & string>(path: P, options?: ClientRequestOptions<OperationFor<DesktopPaths, P, "get">>) => Promise<ClientResult<JsonOkResponseFor<OperationFor<DesktopPaths, P, "get">>>>;
|
|
71
|
+
POST: <P extends keyof DesktopPaths & string>(path: P, options?: ClientRequestOptions<OperationFor<DesktopPaths, P, "post">>) => Promise<ClientResult<JsonOkResponseFor<OperationFor<DesktopPaths, P, "post">>>>;
|
|
72
|
+
PUT: <P extends keyof DesktopPaths & string>(path: P, options?: ClientRequestOptions<OperationFor<DesktopPaths, P, "put">>) => Promise<ClientResult<JsonOkResponseFor<OperationFor<DesktopPaths, P, "put">>>>;
|
|
73
|
+
PATCH: <P extends keyof DesktopPaths & string>(path: P, options?: ClientRequestOptions<OperationFor<DesktopPaths, P, "patch">>) => Promise<ClientResult<JsonOkResponseFor<OperationFor<DesktopPaths, P, "patch">>>>;
|
|
74
|
+
DELETE: <P extends keyof DesktopPaths & string>(path: P, options?: ClientRequestOptions<OperationFor<DesktopPaths, P, "delete">>) => Promise<ClientResult<JsonOkResponseFor<OperationFor<DesktopPaths, P, "delete">>>>;
|
|
75
|
+
};
|
|
76
|
+
export type { FetchLike };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x1e3880=_0x27c2;(function(_0x5d8ada,_0x429e11){const _0xfe01cf=_0x27c2,_0x4fe859=_0x5d8ada();while(!![]){try{const _0x4f4dcc=-parseInt(_0xfe01cf(0x1f3))/(0x1b80+0x1c5*-0x4+0x1*-0x146b)+parseInt(_0xfe01cf(0x1e8))/(0x1f37+0x1*-0x23a7+-0x1*-0x472)+-parseInt(_0xfe01cf(0x201))/(-0x1090+-0x2411+-0x4*-0xd29)*(parseInt(_0xfe01cf(0x1ea))/(0x397*0x6+-0xb68*-0x3+-0x2*0x1bdf))+parseInt(_0xfe01cf(0x1eb))/(0x1*-0x16f7+-0x192*0x7+0x21fa)*(parseInt(_0xfe01cf(0x1f6))/(-0x2191+0x17d5*0x1+0x1*0x9c2))+-parseInt(_0xfe01cf(0x1f0))/(-0x1dba*-0x1+-0x123f+0x4*-0x2dd)+parseInt(_0xfe01cf(0x1f1))/(0x1d+-0x1*-0x264d+0x1*-0x2662)+parseInt(_0xfe01cf(0x202))/(-0x42c+0xd*-0x2e7+0x29f0);if(_0x4f4dcc===_0x429e11)break;else _0x4fe859['push'](_0x4fe859['shift']());}catch(_0x7cc36a){_0x4fe859['push'](_0x4fe859['shift']());}}}(_0x429c,-0x28bb2*-0x2+0x123*-0x76d+-0xf1166*-0x1));Object[_0x1e3880(0x200)+_0x1e3880(0x1e9)](exports,'__esModule',{'value':!(0x1*0x17d2+0x190e+-0x30e0)}),exports[_0x1e3880(0x1ef)+_0x1e3880(0x1ee)]=createDesktopClient;function _0x27c2(_0x2e49e0,_0x5f4c1e){_0x2e49e0=_0x2e49e0-(-0x1*-0x8+0xf8*-0x7+-0x52*-0x1b);const _0x3fbded=_0x429c();let _0x480056=_0x3fbded[_0x2e49e0];if(_0x27c2['Eshvnw']===undefined){var _0x2eb574=function(_0x18d15d){const _0x76e0bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x550fdc='',_0x1713a4='';for(let _0x4d5399=-0xcb9+0xdee+-0x135,_0x1fc949,_0x42fcc4,_0x52a585=0x797+0x1416+0x1*-0x1bad;_0x42fcc4=_0x18d15d['charAt'](_0x52a585++);~_0x42fcc4&&(_0x1fc949=_0x4d5399%(-0xc9a*0x1+0x12bf+-0x3*0x20b)?_0x1fc949*(-0xde2+-0x6d7*-0x3+-0x663)+_0x42fcc4:_0x42fcc4,_0x4d5399++%(-0x71*0x2c+0x7*0x13d+0xac5))?_0x550fdc+=String['fromCharCode'](-0x607+-0x1844+-0xfa5*-0x2&_0x1fc949>>(-(0xe09+0x9*0x1e9+-0x1f38)*_0x4d5399&0x1127*-0x1+0xc7*0x25+-0x5cb*0x2)):-0x19e2+-0xab1+0x2493){_0x42fcc4=_0x76e0bd['indexOf'](_0x42fcc4);}for(let _0x516830=-0x43*0x1+0xff0+-0x1*0xfad,_0x4cb297=_0x550fdc['length'];_0x516830<_0x4cb297;_0x516830++){_0x1713a4+='%'+('00'+_0x550fdc['charCodeAt'](_0x516830)['toString'](0x1*-0x111b+0x8b6+0x1b1*0x5))['slice'](-(0x16f7+0x1*-0x202d+0x938));}return decodeURIComponent(_0x1713a4);};_0x27c2['PBKpsk']=_0x2eb574,_0x27c2['ZBFfqN']={},_0x27c2['Eshvnw']=!![];}const _0xbddc67=_0x3fbded[0x1544+0x210d+-0x121b*0x3],_0x3e9df5=_0x2e49e0+_0xbddc67,_0x2fa4a5=_0x27c2['ZBFfqN'][_0x3e9df5];return!_0x2fa4a5?(_0x480056=_0x27c2['PBKpsk'](_0x480056),_0x27c2['ZBFfqN'][_0x3e9df5]=_0x480056):_0x480056=_0x2fa4a5,_0x480056;}function _0x429c(){const _0x1fad31=['nZi0oduZngPfEuXkAW','BI9QC29U','Dg9vChbLCKnHCW','CgfYyw1Z','y29UDgvUDc10Eq','CgfYC2vszxnWBW','yNvPBgrvCMW','AgvHzgvYCW','yMfZzvvYBa','Cgf0y2G','zgvMAw5LuhjVCa','m0TUDenPzq','mZa1nte2n3zPvwPjva','z3DUrLO','C3rHDhvZvgv4Da','nZm2nty0zwLTtMvL','zxj0Eq','mta0odqYoezoBLnLzG','nvfSBvncwG','yM9KEq','C3rHDhvZ','Dg9Wq2XPzw50','y3jLyxrLrgvZAW','nJu5mJy4nfnIvK1nAa','ndmYmJm5mNDuteTosa','zgvSzxrL','ndG0mJqZy1rTtwvl','C2LNBMfS','shr0CevYCM9Y'];_0x429c=function(){return _0x1fad31;};return _0x429c();}const http_1=require('./http');function createDesktopClient(_0x49a481){const _0x90a27b=_0x1e3880,_0x5806ae={'gwnFZ':_0x90a27b(0x1ec),'Mavjf':function(_0x387a84,_0x468257){return _0x387a84!==_0x468257;}},_0xed2201=_0x49a481['fetch']??fetch;async function _0x264090(_0x2e49e0,_0x5f4c1e,_0x3fbded){const _0x27c2bf=_0x90a27b,_0x480056=(-0xab1+-0x2642+0x30f3,http_1['compilePat'+'h'])(_0x5f4c1e,_0x3fbded?.[_0x27c2bf(0x1f9)]?.['path']),_0x2eb574=(0xff0+0x1938+-0x18*0x1b7,http_1[_0x27c2bf(0x1fc)])({'baseUrl':_0x49a481[_0x27c2bf(0x1fe)],'path':_0x480056,'query':_0x3fbded?.[_0x27c2bf(0x1f9)]?.['query']}),_0xbddc67={..._0x49a481[_0x27c2bf(0x1fd)]??{},..._0x3fbded?.['headers']??{}};let _0x3e9df5;_0x3fbded&&_0x5806ae[_0x27c2bf(0x1e6)]in _0x3fbded&&_0x5806ae['Mavjf'](_0x3fbded[_0x27c2bf(0x1ec)],void(0x1*-0x111b+0x8b6+0x133*0x7))&&(_0xbddc67[_0x27c2bf(0x1fa)+'pe']=_0xbddc67[_0x27c2bf(0x1fa)+'pe']??'applicatio'+_0x27c2bf(0x1f7),_0x3e9df5=JSON['stringify'](_0x3fbded[_0x27c2bf(0x1ec)]));const _0x2fa4a5=await _0xed2201(_0x2eb574,{'method':_0x2e49e0[_0x27c2bf(0x1f8)+'e'](),'headers':_0xbddc67,'body':_0x3e9df5,'signal':_0x3fbded?.[_0x27c2bf(0x1f4)]}),_0x18d15d=await(0x16f7+0x1*-0x202d+0x936,http_1[_0x27c2bf(0x1fb)+'nseBody'])(_0x2fa4a5);if(!_0x2fa4a5['ok'])throw new http_1[(_0x27c2bf(0x1f5))]({'status':_0x2fa4a5[_0x27c2bf(0x1ed)],'statusText':_0x2fa4a5[_0x27c2bf(0x1e7)],'url':_0x2eb574,'body':_0x18d15d});return{'data':_0x18d15d,'response':_0x2fa4a5};}return{'GET':(_0x76e0bd,_0x550fdc)=>_0x264090('get',_0x76e0bd,_0x550fdc),'POST':(_0x1713a4,_0x4d5399)=>_0x264090('post',_0x1713a4,_0x4d5399),'PUT':(_0x1fc949,_0x42fcc4)=>_0x264090('put',_0x1fc949,_0x42fcc4),'PATCH':(_0x52a585,_0x516830)=>_0x264090(_0x90a27b(0x1ff),_0x52a585,_0x516830),'DELETE':(_0x4cb297,_0x44bae9)=>_0x264090(_0x90a27b(0x1f2),_0x4cb297,_0x44bae9)};}
|
package/dist/http.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
2
|
+
export declare class HttpError extends Error {
|
|
3
|
+
readonly status: number;
|
|
4
|
+
readonly statusText: string;
|
|
5
|
+
readonly url: string;
|
|
6
|
+
readonly body: unknown;
|
|
7
|
+
constructor(params: {
|
|
8
|
+
status: number;
|
|
9
|
+
statusText: string;
|
|
10
|
+
url: string;
|
|
11
|
+
body: unknown;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export declare function parseResponseBody(response: Response): Promise<unknown>;
|
|
15
|
+
export declare function buildUrl(params: {
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
path: string;
|
|
18
|
+
query?: Record<string, unknown> | undefined;
|
|
19
|
+
}): string;
|
|
20
|
+
export declare function compilePath(pathTemplate: string, pathParams?: Record<string, unknown> | undefined): string;
|
package/dist/http.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x1387e5=_0x122e;function _0x122e(_0x49dfc4,_0x2e396b){_0x49dfc4=_0x49dfc4-(-0x10cf*-0x1+0xc6e+-0x1c17);const _0x417e8d=_0x2fb6();let _0x86502b=_0x417e8d[_0x49dfc4];if(_0x122e['dypVcc']===undefined){var _0x1c6d29=function(_0x50d765){const _0x13fb3a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xd98c61='',_0x11442c='';for(let _0x163cbf=0x944+-0x3*0x737+-0xc61*-0x1,_0x344481,_0x394786,_0x36cd52=-0x724+0x19e3+-0x1*0x12bf;_0x394786=_0x50d765['charAt'](_0x36cd52++);~_0x394786&&(_0x344481=_0x163cbf%(0x149f+-0x2f*0xa+-0x12c5)?_0x344481*(-0x1*0x1604+0x817+0xbf*0x13)+_0x394786:_0x394786,_0x163cbf++%(0x1cfd+0x153d*-0x1+-0x7bc))?_0xd98c61+=String['fromCharCode'](0x1224+0x6*-0x435+0x819*0x1&_0x344481>>(-(-0x83+-0x105*-0x11+-0x2*0x868)*_0x163cbf&-0x164+-0xc40+-0x6*-0x247)):0xd8+-0x1c6*0x14+0x22a0){_0x394786=_0x13fb3a['indexOf'](_0x394786);}for(let _0x23665b=0x1*0x1a35+0x3c6*-0x9+0x7c1,_0x31dd15=_0xd98c61['length'];_0x23665b<_0x31dd15;_0x23665b++){_0x11442c+='%'+('00'+_0xd98c61['charCodeAt'](_0x23665b)['toString'](0x61a+-0x1b*0x9d+0xa85))['slice'](-(-0x2*0xfb3+-0x9cb+0x2933));}return decodeURIComponent(_0x11442c);};_0x122e['dTvqUG']=_0x1c6d29,_0x122e['xEedhg']={},_0x122e['dypVcc']=!![];}const _0x506a88=_0x417e8d[0x2*0xa13+-0xc4e+0x7d8*-0x1],_0x1193be=_0x49dfc4+_0x506a88,_0x30f31f=_0x122e['xEedhg'][_0x1193be];return!_0x30f31f?(_0x86502b=_0x122e['dTvqUG'](_0x86502b),_0x122e['xEedhg'][_0x1193be]=_0x86502b):_0x86502b=_0x30f31f,_0x86502b;}(function(_0x26b937,_0x20b5cc){const _0x5db330=_0x122e,_0x365177=_0x26b937();while(!![]){try{const _0x35a4f4=parseInt(_0x5db330(0x129))/(0x13fa+-0xe49+-0x5b0)*(parseInt(_0x5db330(0x12e))/(0x1f2e+-0x52*-0x16+0x2*-0x131c))+-parseInt(_0x5db330(0x13e))/(-0x3a4+-0x1f9b+0x2342)+-parseInt(_0x5db330(0x13b))/(0x68e+-0x1867*-0x1+0x1*-0x1ef1)+-parseInt(_0x5db330(0x131))/(0xb92+-0x74f*0x1+-0x43e)*(-parseInt(_0x5db330(0x128))/(-0x41*0x8b+0x1bd5+0x77c))+-parseInt(_0x5db330(0x140))/(-0x12ef+-0x120c+0x2502)+parseInt(_0x5db330(0x12d))/(-0x4f0*0x6+0xf36+0x2b*0x56)*(-parseInt(_0x5db330(0x13d))/(0xc4a+0x52*-0x3d+-0x1*-0x749))+parseInt(_0x5db330(0x133))/(0x77*0x28+-0x1c20+0x32*0x31);if(_0x35a4f4===_0x20b5cc)break;else _0x365177['push'](_0x365177['shift']());}catch(_0x1168ff){_0x365177['push'](_0x365177['shift']());}}}(_0x2fb6,0xcc9cb*0x1+-0x3*-0x342f1+-0xff33c));Object[_0x1387e5(0x142)+'erty'](exports,'__esModule',{'value':!(-0x2*0xfb3+-0x9cb+0x2931)}),exports['HttpError']=void(0x2*0xa13+-0xc4e+0x7d8*-0x1),exports[_0x1387e5(0x137)+_0x1387e5(0x12f)]=parseResponseBody,exports['buildUrl']=buildUrl,exports[_0x1387e5(0x12a)+'h']=compilePath;class HttpError extends Error{constructor(_0x49dfc4){const _0x4e31dc=_0x1387e5;super(_0x4e31dc(0x138)+_0x49dfc4['status']+'\x20'+_0x49dfc4['statusText']+'\x20('+_0x49dfc4['url']+')'),this[_0x4e31dc(0x143)]='HttpError',this['status']=_0x49dfc4[_0x4e31dc(0x12c)],this[_0x4e31dc(0x144)]=_0x49dfc4[_0x4e31dc(0x144)],this['url']=_0x49dfc4['url'],this[_0x4e31dc(0x141)]=_0x49dfc4[_0x4e31dc(0x141)];}}exports[_0x1387e5(0x126)]=HttpError;function _0x2fb6(){const _0x203e77=['AgvHzgvYCW','owHyy0jfvW','ndq2ndi0tMjyExr5','zw50CMLLCW','nJa2mZCWohHsEKfhtW','yM9KEq','zgvMAw5LuhjVCa','BMfTzq','C3rHDhvZvgv4Da','shr0CevYCM9Y','AxnbCNjHEq','ndaYtgzbwfDZ','mtmYr0PIvKHX','y29TCgLSzvbHDa','CMvWBgfJzq','C3rHDhvZ','nJmYmtq0r0TAB0XH','nJaWtuntDhfJ','BNnLqM9KEq','y29UDgvUDc10Eq','nte5nxzAzMrIDa','Dgv4Da','mtCWnZi2mdbSAuHJt2m','C2vHCMnOugfYyq','Cgf0Aa','CxvLCNK','CgfYC2vszxnWBW','sfruuca','yMfZzvvYBa','yxbWBgLJyxrPBW','mte1mZu0mePjD1fstG'];_0x2fb6=function(){return _0x203e77;};return _0x2fb6();}async function parseResponseBody(_0x2e396b){const _0x589604=_0x1387e5;if((_0x2e396b[_0x589604(0x13c)]['get'](_0x589604(0x130)+'pe')??'')['includes'](_0x589604(0x13a)+'n/json')){const _0x86502b=await _0x2e396b['text']();return _0x86502b?JSON['parse'](_0x86502b):null;}const _0x417e8d=await _0x2e396b[_0x589604(0x132)]();return _0x417e8d['length']?_0x417e8d:null;}function buildUrl(_0x1c6d29){const _0x4db431=_0x1387e5,_0x506a88={'vzrju':function(_0x30f31f,_0x50d765){return _0x30f31f!=_0x50d765;}},_0x1193be=new URL(_0x1c6d29[_0x4db431(0x135)],_0x1c6d29[_0x4db431(0x139)]);if(_0x1c6d29[_0x4db431(0x136)]){for(const [_0x13fb3a,_0xd98c61]of Object[_0x4db431(0x13f)](_0x1c6d29[_0x4db431(0x136)]))if(_0x506a88['vzrju'](_0xd98c61,null)){if(Array[_0x4db431(0x127)](_0xd98c61)){for(const _0x11442c of _0xd98c61)_0x506a88['vzrju'](_0x11442c,null)&&_0x1193be['searchPara'+'ms']['append'](_0x13fb3a,String(_0x11442c));continue;}_0x1193be[_0x4db431(0x134)+'ms']['set'](_0x13fb3a,String(_0xd98c61));}}return _0x1193be['toString']();}function compilePath(_0x163cbf,_0x344481){const _0x399e13=_0x1387e5;return _0x344481?_0x163cbf[_0x399e13(0x12b)](/\{([^}]+)\}/g,(_0x394786,_0x36cd52)=>_0x36cd52 in _0x344481?encodeURIComponent(String(_0x344481[_0x36cd52])):_0x394786):_0x163cbf;}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createDesktopClient, type DesktopClient, type FetchLike } from './desktop-client';
|
|
2
|
+
export { createLocalClient, closeLocalSdkIpcConnections, resolveLocalSdkConfigPath, type LocalSdkClient, } from './ipc-client';
|
|
3
|
+
export { executeTool, type ExecuteToolInput, type ToolResultWithMeta } from './tools-execute';
|
|
4
|
+
export { createChat, type CreateChatInput, type CreateChatAttachment } from './create-chat';
|
|
5
|
+
export { DESKTOP_API_OPENAPI_PATH, TOOLS_API_OPENAPI_PATH } from './openapi-paths';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x593b(_0x273991,_0x17a4a6){_0x273991=_0x273991-(0x152e+0xe3*-0x17+0x1*0x2b);var _0x471f2b=_0x144c();var _0x39cc96=_0x471f2b[_0x273991];if(_0x593b['feohCz']===undefined){var _0x19c9af=function(_0x16b9bf){var _0x22921b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x17c8d7='',_0x5ee66e='';for(var _0x29b5a1=-0x1*-0x2450+0x1*-0x1ee3+-0x1*0x56d,_0x3bd4f0,_0x5ba609,_0x3d8654=-0xaf0+-0x1f00+-0x2c*-0xf4;_0x5ba609=_0x16b9bf['charAt'](_0x3d8654++);~_0x5ba609&&(_0x3bd4f0=_0x29b5a1%(0xaeb+0x4d8+-0xfbf)?_0x3bd4f0*(-0x321*-0x4+-0x1*0x1e5d+0x1219)+_0x5ba609:_0x5ba609,_0x29b5a1++%(-0x346*-0x3+0x1*0x2527+-0x2ef5))?_0x17c8d7+=String['fromCharCode'](-0x176+0x1*-0xfbd+0x1232&_0x3bd4f0>>(-(0x17e7+0x1*0x185a+-0x303f)*_0x29b5a1&-0x1*0x14b+-0x16*-0xdd+0x19*-0xb5)):-0x1ce5*-0x1+0x1*0x19ff+-0x36e4){_0x5ba609=_0x22921b['indexOf'](_0x5ba609);}for(var _0x249ebf=0x11f7+0x53e+-0x1735,_0xdfc0f4=_0x17c8d7['length'];_0x249ebf<_0xdfc0f4;_0x249ebf++){_0x5ee66e+='%'+('00'+_0x17c8d7['charCodeAt'](_0x249ebf)['toString'](0x50b+0x9*-0x423+-0x2040*-0x1))['slice'](-(0x103f+0x130*0x20+-0x363d));}return decodeURIComponent(_0x5ee66e);};_0x593b['GZFyHX']=_0x19c9af,_0x593b['jBNJbf']={},_0x593b['feohCz']=!![];}var _0x48b1a3=_0x471f2b[-0x96d+-0x2*0x1303+0x2f73*0x1],_0xbbe888=_0x273991+_0x48b1a3,_0x3ebe7a=_0x593b['jBNJbf'][_0xbbe888];return!_0x3ebe7a?(_0x39cc96=_0x593b['GZFyHX'](_0x39cc96),_0x593b['jBNJbf'][_0xbbe888]=_0x39cc96):_0x39cc96=_0x3ebe7a,_0x39cc96;}var _0x19d088=_0x593b;(function(_0x315bef,_0x1441b9){var _0x64b5a0=_0x593b,_0x3a4a07=_0x315bef();while(!![]){try{var _0x8e30f5=parseInt(_0x64b5a0(0xfa))/(-0x1c5+0x326+-0x160)*(parseInt(_0x64b5a0(0x104))/(-0x1*0x2446+-0x1*0xec9+0x3311))+parseInt(_0x64b5a0(0x107))/(0x1542+-0xdb8+0x29*-0x2f)*(parseInt(_0x64b5a0(0x115))/(-0x1a87+-0xb*0x3+0x1aac))+-parseInt(_0x64b5a0(0x113))/(-0x333+-0x5b8+0x1*0x8f0)*(-parseInt(_0x64b5a0(0xf6))/(0x11*-0x233+0x1*-0xae8+0x3051))+parseInt(_0x64b5a0(0xf9))/(-0x956*-0x4+-0x61*0x2e+-0x3*0x6a1)+-parseInt(_0x64b5a0(0x111))/(-0x10b9*-0x2+0x18d*-0x2+0x610*-0x5)+-parseInt(_0x64b5a0(0x112))/(-0x1582+-0x308*-0x1+0x7*0x2a5)+parseInt(_0x64b5a0(0x116))/(-0x1*0x230b+0x250d+-0x24*0xe)*(-parseInt(_0x64b5a0(0xfb))/(-0x62e+0x1d6c+-0x1733));if(_0x8e30f5===_0x1441b9)break;else _0x3a4a07['push'](_0x3a4a07['shift']());}catch(_0x5affdc){_0x3a4a07['push'](_0x3a4a07['shift']());}}}(_0x144c,0x15ca08+-0x12c33*-0x9+-0x132263));Object['defineProp'+'erty'](exports,'__esModule',{'value':!(-0x17*0x1ac+0x11f7+0x147d)}),exports[_0x19d088(0xfe)+_0x19d088(0x105)+'TH']=exports['DESKTOP_AP'+_0x19d088(0x10a)+_0x19d088(0x10e)]=exports[_0x19d088(0x106)]=exports['executeToo'+'l']=exports[_0x19d088(0x10d)+'alSdkConfi'+_0x19d088(0xf7)]=exports[_0x19d088(0x10f)+'SdkIpcConn'+_0x19d088(0x110)]=exports[_0x19d088(0xf4)+'lClient']=exports[_0x19d088(0x108)+'topClient']=void(0x50b+0x9*-0x423+-0x2030*-0x1);function _0x144c(){var _0x4f6ac2=['mtKXodvTwgrUvwu','Dg9Wq2XPzw50','mJKZmtK3nNjiDeTtAa','mtbZDM9Av28','zxj0Eq','revts1rpuf9bua','y3jLyxrLtg9Jyq','lI9KzxnRDg9Wlq','mJu2oevvDwXkqG','z1bHDgG','u2rRsxbJq29UBG','otu3otiYn0HqserHzG','mtm1otiZmhDZAwLyuG','ndCWmZGZndnLueLfB0W','lI90B29SCY1LEa','y2XPzw50','ve9ptfnFqvbjxW','lI9VCgvUyxbPlq','BenSAwvUDa','zxHLy3v0zvrVBW','zgvMAw5LuhjVCa','zwn1Dgu','mM9AsNjtDW','t1bftKfqsv9qqq','y3jLyxrLq2HHDa','nM5IrujbDG','y3jLyxrLrgvZAW','ywXtzgTdB25MAq','sv9puevoqvbjxW','lI9PCgmTy2XPzq','Cgf0Ahm','CMvZB2X2zuXVyW','uefusa','y2XVC2vmB2nHBa','zwn0Aw9UCW','mJeYoty2nfjpq2Thrq','mZG1mdyXng51AwPtEG'];_0x144c=function(){return _0x4f6ac2;};return _0x144c();}var desktop_client_1=require(_0x19d088(0xf5)+_0x19d088(0xfd));Object['defineProp'+_0x19d088(0x117)](exports,_0x19d088(0x108)+_0x19d088(0x114),{'enumerable':!(0x103f+0x130*0x20+-0x363f),'get':function(){var _0x215622=_0x19d088;return desktop_client_1[_0x215622(0x108)+'topClient'];}});var ipc_client_1=require(_0x19d088(0x10b)+'nt');Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,_0x19d088(0xf4)+'lClient',{'enumerable':!(-0x96d+-0x2*0x1303+0x2f73*0x1),'get':function(){var _0x4afc31=_0x19d088;return ipc_client_1[_0x4afc31(0xf4)+_0x4afc31(0x100)];}}),Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,_0x19d088(0x10f)+_0x19d088(0xf8)+_0x19d088(0x110),{'enumerable':!(0x5*-0x163+-0x13b3+-0xd51*-0x2),'get':function(){var _0x1b3b7=_0x19d088;return ipc_client_1['closeLocal'+'SdkIpcConn'+_0x1b3b7(0x110)];}}),Object['defineProp'+_0x19d088(0x117)](exports,'resolveLoc'+'alSdkConfi'+'gPath',{'enumerable':!(0xc56+-0x1474+-0x1*-0x81e),'get':function(){var _0x3e9aa9=_0x19d088;return ipc_client_1[_0x3e9aa9(0x10d)+_0x3e9aa9(0x109)+'gPath'];}});var tools_execute_1=require(_0x19d088(0xfc)+_0x19d088(0x103));Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,_0x19d088(0x101)+'l',{'enumerable':!(-0x3*-0x351+-0x2261+0x186e),'get':function(){return tools_execute_1['executeToo'+'l'];}});var create_chat_1=require('./create-c'+'hat');Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,_0x19d088(0x106),{'enumerable':!(-0x1b45*-0x1+0x1097*0x2+-0x3c73*0x1),'get':function(){return create_chat_1['createChat'];}});var openapi_paths_1=require(_0x19d088(0xff)+_0x19d088(0x10c));Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,_0x19d088(0x118)+'I_OPENAPI_'+'PATH',{'enumerable':!(-0x7*-0x16f+-0x588*-0x7+0x30c1*-0x1),'get':function(){var _0x2750b2=_0x19d088;return openapi_paths_1[_0x2750b2(0x118)+_0x2750b2(0x10a)+_0x2750b2(0x10e)];}}),Object[_0x19d088(0x102)+_0x19d088(0x117)](exports,'TOOLS_API_'+'OPENAPI_PA'+'TH',{'enumerable':!(0x1212+-0x56f+0xca3*-0x1),'get':function(){return openapi_paths_1['TOOLS_API_'+'OPENAPI_PA'+'TH'];}});
|