@arinova-ai/agent-sdk 0.0.13 → 0.0.15-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +276 -0
- package/dist/client.d.ts +202 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +757 -9
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/types.d.ts +240 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,282 @@ The object passed to your `onTask` handler.
|
|
|
115
115
|
|
|
116
116
|
If your `onTask` handler throws, the SDK automatically calls `sendError` with the error message.
|
|
117
117
|
|
|
118
|
+
### `agent.sendMessage(conversationId, content)`
|
|
119
|
+
|
|
120
|
+
Send a proactive message to a conversation. Uses WebSocket if connected, otherwise falls back to HTTP POST.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
await agent.sendMessage("conv-id", "Hello from the agent!");
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### `agent.uploadFile(conversationId, file, fileName, fileType?)`
|
|
127
|
+
|
|
128
|
+
Upload a file to R2 storage. Returns an `UploadResult` with the public URL.
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
const result = await agent.uploadFile("conv-id", buffer, "image.png");
|
|
132
|
+
console.log(result.url);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### `agent.fetchHistory(conversationId, options?)`
|
|
136
|
+
|
|
137
|
+
Fetch conversation message history with pagination.
|
|
138
|
+
|
|
139
|
+
| Option | Type | Description |
|
|
140
|
+
|---|---|---|
|
|
141
|
+
| `before` | `string` | Fetch messages before this message ID |
|
|
142
|
+
| `after` | `string` | Fetch messages after this message ID |
|
|
143
|
+
| `around` | `string` | Fetch messages around this message ID |
|
|
144
|
+
| `limit` | `number` | Max messages to return (default 50, max 100) |
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### Notes API
|
|
149
|
+
|
|
150
|
+
#### `agent.listNotes(conversationId, options?)`
|
|
151
|
+
|
|
152
|
+
List notes in a conversation. Supports pagination, tag filtering, and archived notes.
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
const { notes, hasMore } = await agent.listNotes("conv-id", { tags: ["sprint-1"], limit: 10 });
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
#### `agent.createNote(conversationId, body)`
|
|
159
|
+
|
|
160
|
+
Create a note. Body: `{ title: string, content?: string, tags?: string[] }`.
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const note = await agent.createNote("conv-id", { title: "Meeting Notes", content: "...", tags: ["meeting"] });
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### `agent.updateNote(conversationId, noteId, body)`
|
|
167
|
+
|
|
168
|
+
Update a note. Body: `{ title?: string, content?: string, tags?: string[] }`.
|
|
169
|
+
|
|
170
|
+
#### `agent.deleteNote(conversationId, noteId)`
|
|
171
|
+
|
|
172
|
+
Delete a note.
|
|
173
|
+
|
|
174
|
+
#### `agent.shareNote(conversationId, noteId)`
|
|
175
|
+
|
|
176
|
+
Share a note as a rich preview card in a conversation.
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
const result = await agent.shareNote("conv-id", "note-id");
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
### Kanban API
|
|
185
|
+
|
|
186
|
+
#### Board CRUD
|
|
187
|
+
|
|
188
|
+
##### `agent.listBoards()`
|
|
189
|
+
|
|
190
|
+
List the owner's kanban boards. Returns `KanbanBoard[]`.
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
const boards = await agent.listBoards();
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
##### `agent.createBoard(body)`
|
|
197
|
+
|
|
198
|
+
Create a new board. If `columns` is omitted, the server creates 5 default columns.
|
|
199
|
+
|
|
200
|
+
```ts
|
|
201
|
+
const board = await agent.createBoard({ name: "Sprint Board" });
|
|
202
|
+
// Or with custom columns:
|
|
203
|
+
const board2 = await agent.createBoard({ name: "Custom", columns: [{ name: "Backlog" }, { name: "Done" }] });
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
##### `agent.updateBoard(boardId, body)`
|
|
207
|
+
|
|
208
|
+
Update a board's name.
|
|
209
|
+
|
|
210
|
+
```ts
|
|
211
|
+
await agent.updateBoard("board-id", { name: "New Name" });
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
##### `agent.archiveBoard(boardId)`
|
|
215
|
+
|
|
216
|
+
Archive a board.
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
await agent.archiveBoard("board-id");
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
#### Column Management
|
|
223
|
+
|
|
224
|
+
##### `agent.listColumns(boardId)`
|
|
225
|
+
|
|
226
|
+
List columns for a board. Returns `KanbanColumn[]`.
|
|
227
|
+
|
|
228
|
+
##### `agent.createColumn(boardId, body)`
|
|
229
|
+
|
|
230
|
+
Create a column. Body: `{ name: string, sortOrder?: number }`.
|
|
231
|
+
|
|
232
|
+
```ts
|
|
233
|
+
const col = await agent.createColumn("board-id", { name: "In Review" });
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
##### `agent.updateColumn(columnId, body)`
|
|
237
|
+
|
|
238
|
+
Update a column. Body: `{ name?: string, sortOrder?: number }`.
|
|
239
|
+
|
|
240
|
+
##### `agent.deleteColumn(columnId)`
|
|
241
|
+
|
|
242
|
+
Delete a column.
|
|
243
|
+
|
|
244
|
+
##### `agent.reorderColumns(boardId, columnIds)`
|
|
245
|
+
|
|
246
|
+
Reorder columns by providing an ordered array of column IDs.
|
|
247
|
+
|
|
248
|
+
```ts
|
|
249
|
+
await agent.reorderColumns("board-id", ["col-3", "col-1", "col-2"]);
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
#### Card Operations
|
|
253
|
+
|
|
254
|
+
##### `agent.listCards()`
|
|
255
|
+
|
|
256
|
+
List all kanban cards for the agent's owner.
|
|
257
|
+
|
|
258
|
+
##### `agent.createCard(body)`
|
|
259
|
+
|
|
260
|
+
Create a card. Body: `{ title, description?, priority?, columnName?, columnId?, boardId? }`.
|
|
261
|
+
|
|
262
|
+
```ts
|
|
263
|
+
const card = await agent.createCard({ title: "Fix login bug", priority: "high", columnName: "To Do" });
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
##### `agent.updateCard(cardId, body)`
|
|
267
|
+
|
|
268
|
+
Update a card. Body: `{ title?, description?, priority?, columnId?, sortOrder? }`.
|
|
269
|
+
|
|
270
|
+
##### `agent.completeCard(cardId)`
|
|
271
|
+
|
|
272
|
+
Mark a card as complete (moves it to the Done column).
|
|
273
|
+
|
|
274
|
+
```ts
|
|
275
|
+
const card = await agent.completeCard("card-id");
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
##### `agent.listArchivedCards(boardId, options?)`
|
|
279
|
+
|
|
280
|
+
List archived cards with pagination. Options: `{ page?: number, limit?: number }`.
|
|
281
|
+
|
|
282
|
+
```ts
|
|
283
|
+
const { cards, total } = await agent.listArchivedCards("board-id", { page: 1, limit: 20 });
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
#### Card-Commit Links
|
|
287
|
+
|
|
288
|
+
##### `agent.addCardCommit(cardId, body)`
|
|
289
|
+
|
|
290
|
+
Link a git commit to a card. Body: `{ commitHash: string, message?: string }`.
|
|
291
|
+
|
|
292
|
+
```ts
|
|
293
|
+
await agent.addCardCommit("card-id", { commitHash: "abc1234", message: "fix: resolve login issue" });
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
##### `agent.listCardCommits(cardId)`
|
|
297
|
+
|
|
298
|
+
List commits linked to a card. Returns `CardCommit[]`.
|
|
299
|
+
|
|
300
|
+
#### Card-Note Links
|
|
301
|
+
|
|
302
|
+
##### `agent.linkCardNote(cardId, noteId)`
|
|
303
|
+
|
|
304
|
+
Link a note to a card.
|
|
305
|
+
|
|
306
|
+
```ts
|
|
307
|
+
await agent.linkCardNote("card-id", "note-id");
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
##### `agent.unlinkCardNote(cardId, noteId)`
|
|
311
|
+
|
|
312
|
+
Unlink a note from a card.
|
|
313
|
+
|
|
314
|
+
##### `agent.listCardNotes(cardId)`
|
|
315
|
+
|
|
316
|
+
List notes linked to a card. Returns `CardNote[]`.
|
|
317
|
+
|
|
318
|
+
#### Label Management
|
|
319
|
+
|
|
320
|
+
##### `agent.listLabels(boardId)`
|
|
321
|
+
|
|
322
|
+
List labels for a board. Returns `KanbanLabel[]`.
|
|
323
|
+
|
|
324
|
+
```ts
|
|
325
|
+
const labels = await agent.listLabels("board-id");
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
##### `agent.createLabel(boardId, body)`
|
|
329
|
+
|
|
330
|
+
Create a label. Body: `{ name: string, color?: string }`.
|
|
331
|
+
|
|
332
|
+
```ts
|
|
333
|
+
const label = await agent.createLabel("board-id", { name: "Bug", color: "#ff0000" });
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
##### `agent.updateLabel(labelId, body)`
|
|
337
|
+
|
|
338
|
+
Update a label. Body: `{ name?: string, color?: string }`.
|
|
339
|
+
|
|
340
|
+
##### `agent.deleteLabel(labelId)`
|
|
341
|
+
|
|
342
|
+
Delete a label.
|
|
343
|
+
|
|
344
|
+
##### `agent.addCardLabel(cardId, labelId)`
|
|
345
|
+
|
|
346
|
+
Add a label to a card.
|
|
347
|
+
|
|
348
|
+
```ts
|
|
349
|
+
await agent.addCardLabel("card-id", "label-id");
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
##### `agent.removeCardLabel(cardId, labelId)`
|
|
353
|
+
|
|
354
|
+
Remove a label from a card.
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
### Memory API
|
|
359
|
+
|
|
360
|
+
#### `agent.queryMemory(options)`
|
|
361
|
+
|
|
362
|
+
Search memories across all memory capsules granted to this agent. Uses hybrid search (embedding + text).
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
const memories = await agent.queryMemory({ query: "deployment process", limit: 5 });
|
|
366
|
+
memories.forEach((m) => console.log(m.capsuleName, m.content));
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
### Types
|
|
372
|
+
|
|
373
|
+
```ts
|
|
374
|
+
interface KanbanBoard { id: string; name: string; createdAt: string }
|
|
375
|
+
interface KanbanColumn { id: string; boardId: string; name: string; sortOrder: number }
|
|
376
|
+
interface KanbanCard { id: string; columnId: string; columnName?: string; title: string; description: string | null; priority: string | null; dueDate: string | null; sortOrder: number; createdBy: string | null; createdAt: string | null; updatedAt: string | null; archivedAt?: string | null }
|
|
377
|
+
interface CreateBoardBody { name: string; columns?: { name: string }[] }
|
|
378
|
+
interface UpdateBoardBody { name: string }
|
|
379
|
+
interface CreateCardBody { title: string; description?: string; priority?: string; columnName?: string; columnId?: string; boardId?: string }
|
|
380
|
+
interface UpdateCardBody { title?: string; description?: string; priority?: string; columnId?: string; sortOrder?: number }
|
|
381
|
+
interface CreateColumnBody { name: string; sortOrder?: number }
|
|
382
|
+
interface UpdateColumnBody { name?: string; sortOrder?: number }
|
|
383
|
+
interface AddCommitBody { commitHash: string; message?: string }
|
|
384
|
+
interface CardCommit { cardId: string; commitHash: string; message: string; createdAt: string }
|
|
385
|
+
interface CardNote { id: string; title: string; tags: string[]; createdAt: string }
|
|
386
|
+
interface KanbanLabel { id: string; boardId: string; name: string; color: string | null }
|
|
387
|
+
interface CreateLabelBody { name: string; color?: string }
|
|
388
|
+
interface UpdateLabelBody { name?: string; color?: string }
|
|
389
|
+
interface ArchivedCardsResult { cards: KanbanCard[]; total: number; page: number; limit: number }
|
|
390
|
+
interface Note { id: string; conversationId: string; title: string; content: string; tags?: string[]; createdAt: string; updatedAt: string }
|
|
391
|
+
interface MemoryEntry { content: string; capsuleName: string; capsuleId: string; score: number; importance: number }
|
|
392
|
+
```
|
|
393
|
+
|
|
118
394
|
## Getting a Bot Token
|
|
119
395
|
|
|
120
396
|
1. Open the [Arinova Chat](https://chat.arinova.ai) dashboard.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArinovaAgentOptions, TaskHandler, AgentEvent, AgentEventListener, UploadResult } from "./types.js";
|
|
1
|
+
import type { ArinovaAgentOptions, TaskHandler, AgentEvent, AgentEventListener, UploadResult, FetchHistoryOptions, FetchHistoryResult, Note, ListNotesOptions, ListNotesResult, CreateNoteBody, UpdateNoteBody, KanbanBoard, KanbanColumn, KanbanCard, CreateBoardBody, UpdateBoardBody, CreateCardBody, UpdateCardBody, CreateColumnBody, UpdateColumnBody, AddCommitBody, CardCommit, CardNote, ArchivedCardsResult, KanbanLabel, CreateLabelBody, UpdateLabelBody, QueryMemoryOptions, MemoryEntry, ShareNoteResult, SkillPrompt } from "./types.js";
|
|
2
2
|
export declare class ArinovaAgent {
|
|
3
3
|
private readonly serverUrl;
|
|
4
4
|
private readonly botToken;
|
|
@@ -31,6 +31,16 @@ export declare class ArinovaAgent {
|
|
|
31
31
|
* Uses WebSocket if connected, otherwise falls back to HTTP POST.
|
|
32
32
|
*/
|
|
33
33
|
sendMessage(conversationId: string, content: string): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Send a telemetry event to the server.
|
|
36
|
+
* Silently no-ops if WebSocket is not connected.
|
|
37
|
+
*/
|
|
38
|
+
sendTelemetry(event: string, data: Record<string, unknown>): void;
|
|
39
|
+
/**
|
|
40
|
+
* Send HUD data to the server for display in the office HUD bar.
|
|
41
|
+
* The server forwards this to the agent owner's frontend.
|
|
42
|
+
*/
|
|
43
|
+
sendHud(data: Record<string, unknown>): void;
|
|
34
44
|
private emit;
|
|
35
45
|
private send;
|
|
36
46
|
private cleanup;
|
|
@@ -44,6 +54,197 @@ export declare class ArinovaAgent {
|
|
|
44
54
|
* @param fileType - Optional MIME type (derived from extension if omitted).
|
|
45
55
|
*/
|
|
46
56
|
uploadFile(conversationId: string, file: Uint8Array, fileName: string, fileType?: string): Promise<UploadResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Fetch conversation history via the agent messages endpoint.
|
|
59
|
+
* @param conversationId - The conversation to fetch messages from.
|
|
60
|
+
* @param options - Pagination options (before, after, around, limit).
|
|
61
|
+
*/
|
|
62
|
+
fetchHistory(conversationId: string, options?: FetchHistoryOptions): Promise<FetchHistoryResult>;
|
|
63
|
+
/**
|
|
64
|
+
* List notes in a conversation.
|
|
65
|
+
* @param conversationId - The conversation to list notes from.
|
|
66
|
+
* @param options - Pagination options (before, limit).
|
|
67
|
+
*/
|
|
68
|
+
listNotes(conversationId: string, options?: ListNotesOptions): Promise<ListNotesResult>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a note in a conversation.
|
|
71
|
+
* @param conversationId - The conversation to create the note in.
|
|
72
|
+
* @param body - Note title and optional content.
|
|
73
|
+
*/
|
|
74
|
+
createNote(conversationId: string, body: CreateNoteBody): Promise<Note>;
|
|
75
|
+
/**
|
|
76
|
+
* Update a note in a conversation.
|
|
77
|
+
* @param conversationId - The conversation the note belongs to.
|
|
78
|
+
* @param noteId - The note ID to update.
|
|
79
|
+
* @param body - Fields to update (title and/or content).
|
|
80
|
+
*/
|
|
81
|
+
updateNote(conversationId: string, noteId: string, body: UpdateNoteBody): Promise<Note>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete a note from a conversation.
|
|
84
|
+
* @param conversationId - The conversation the note belongs to.
|
|
85
|
+
* @param noteId - The note ID to delete.
|
|
86
|
+
*/
|
|
87
|
+
deleteNote(conversationId: string, noteId: string): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* List the owner's kanban boards.
|
|
90
|
+
* Returns an array of boards with id, name, and createdAt.
|
|
91
|
+
*/
|
|
92
|
+
listBoards(): Promise<KanbanBoard[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a kanban card on the owner's board.
|
|
95
|
+
* The card is automatically assigned to the calling agent.
|
|
96
|
+
* @param body - Card title and optional description, priority, column.
|
|
97
|
+
*/
|
|
98
|
+
createCard(body: CreateCardBody): Promise<KanbanCard>;
|
|
99
|
+
/**
|
|
100
|
+
* Update a kanban card.
|
|
101
|
+
* @param cardId - The card ID to update.
|
|
102
|
+
* @param body - Fields to update (title, description, priority, columnId, sortOrder).
|
|
103
|
+
*/
|
|
104
|
+
updateCard(cardId: string, body: UpdateCardBody): Promise<KanbanCard>;
|
|
105
|
+
/**
|
|
106
|
+
* Create a new kanban board.
|
|
107
|
+
* @param body - Board name and optional initial columns.
|
|
108
|
+
*/
|
|
109
|
+
createBoard(body: CreateBoardBody): Promise<KanbanBoard>;
|
|
110
|
+
/**
|
|
111
|
+
* Update a kanban board.
|
|
112
|
+
* @param boardId - The board ID to update.
|
|
113
|
+
* @param body - Fields to update.
|
|
114
|
+
*/
|
|
115
|
+
updateBoard(boardId: string, body: UpdateBoardBody): Promise<KanbanBoard>;
|
|
116
|
+
/**
|
|
117
|
+
* Archive a kanban board.
|
|
118
|
+
* @param boardId - The board ID to archive.
|
|
119
|
+
*/
|
|
120
|
+
archiveBoard(boardId: string): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* List columns for a board.
|
|
123
|
+
* @param boardId - The board ID.
|
|
124
|
+
*/
|
|
125
|
+
listColumns(boardId: string): Promise<KanbanColumn[]>;
|
|
126
|
+
/**
|
|
127
|
+
* Create a column in a board.
|
|
128
|
+
* @param boardId - The board ID.
|
|
129
|
+
* @param body - Column name and optional sort order.
|
|
130
|
+
*/
|
|
131
|
+
createColumn(boardId: string, body: CreateColumnBody): Promise<KanbanColumn>;
|
|
132
|
+
/**
|
|
133
|
+
* Update a column.
|
|
134
|
+
* @param columnId - The column ID to update.
|
|
135
|
+
* @param body - Fields to update (name, sortOrder).
|
|
136
|
+
*/
|
|
137
|
+
updateColumn(columnId: string, body: UpdateColumnBody): Promise<KanbanColumn>;
|
|
138
|
+
/**
|
|
139
|
+
* Delete a column.
|
|
140
|
+
* @param columnId - The column ID to delete.
|
|
141
|
+
*/
|
|
142
|
+
deleteColumn(columnId: string): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Reorder columns in a board.
|
|
145
|
+
* @param boardId - The board ID.
|
|
146
|
+
* @param columnIds - Ordered array of column IDs.
|
|
147
|
+
*/
|
|
148
|
+
reorderColumns(boardId: string, columnIds: string[]): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* List all kanban cards for the agent's owner.
|
|
151
|
+
*/
|
|
152
|
+
listCards(): Promise<KanbanCard[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Mark a card as complete (moves it to the Done column).
|
|
155
|
+
* @param cardId - The card ID to complete.
|
|
156
|
+
*/
|
|
157
|
+
completeCard(cardId: string): Promise<KanbanCard>;
|
|
158
|
+
/**
|
|
159
|
+
* List archived cards for a board.
|
|
160
|
+
* @param boardId - The board ID.
|
|
161
|
+
* @param options - Pagination options (page, limit).
|
|
162
|
+
*/
|
|
163
|
+
listArchivedCards(boardId: string, options?: {
|
|
164
|
+
page?: number;
|
|
165
|
+
limit?: number;
|
|
166
|
+
}): Promise<ArchivedCardsResult>;
|
|
167
|
+
/**
|
|
168
|
+
* Add a commit link to a card.
|
|
169
|
+
* @param cardId - The card ID.
|
|
170
|
+
* @param body - Commit hash and optional message.
|
|
171
|
+
*/
|
|
172
|
+
addCardCommit(cardId: string, body: AddCommitBody): Promise<CardCommit>;
|
|
173
|
+
/**
|
|
174
|
+
* List commits linked to a card.
|
|
175
|
+
* @param cardId - The card ID.
|
|
176
|
+
*/
|
|
177
|
+
listCardCommits(cardId: string): Promise<CardCommit[]>;
|
|
178
|
+
/**
|
|
179
|
+
* Link a note to a card.
|
|
180
|
+
* @param cardId - The card ID.
|
|
181
|
+
* @param noteId - The note ID to link.
|
|
182
|
+
*/
|
|
183
|
+
linkCardNote(cardId: string, noteId: string): Promise<void>;
|
|
184
|
+
/**
|
|
185
|
+
* Unlink a note from a card.
|
|
186
|
+
* @param cardId - The card ID.
|
|
187
|
+
* @param noteId - The note ID to unlink.
|
|
188
|
+
*/
|
|
189
|
+
unlinkCardNote(cardId: string, noteId: string): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* List notes linked to a card.
|
|
192
|
+
* @param cardId - The card ID.
|
|
193
|
+
*/
|
|
194
|
+
listCardNotes(cardId: string): Promise<CardNote[]>;
|
|
195
|
+
/**
|
|
196
|
+
* List labels for a board.
|
|
197
|
+
* @param boardId - The board ID.
|
|
198
|
+
*/
|
|
199
|
+
listLabels(boardId: string): Promise<KanbanLabel[]>;
|
|
200
|
+
/**
|
|
201
|
+
* Create a label on a board.
|
|
202
|
+
* @param boardId - The board ID.
|
|
203
|
+
* @param body - Label name and optional color.
|
|
204
|
+
*/
|
|
205
|
+
createLabel(boardId: string, body: CreateLabelBody): Promise<KanbanLabel>;
|
|
206
|
+
/**
|
|
207
|
+
* Update a label.
|
|
208
|
+
* @param labelId - The label ID to update.
|
|
209
|
+
* @param body - Fields to update (name, color).
|
|
210
|
+
*/
|
|
211
|
+
updateLabel(labelId: string, body: UpdateLabelBody): Promise<KanbanLabel>;
|
|
212
|
+
/**
|
|
213
|
+
* Delete a label.
|
|
214
|
+
* @param labelId - The label ID to delete.
|
|
215
|
+
*/
|
|
216
|
+
deleteLabel(labelId: string): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Add a label to a card.
|
|
219
|
+
* @param cardId - The card ID.
|
|
220
|
+
* @param labelId - The label ID to add.
|
|
221
|
+
*/
|
|
222
|
+
addCardLabel(cardId: string, labelId: string): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Remove a label from a card.
|
|
225
|
+
* @param cardId - The card ID.
|
|
226
|
+
* @param labelId - The label ID to remove.
|
|
227
|
+
*/
|
|
228
|
+
removeCardLabel(cardId: string, labelId: string): Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* Search memories across all memory capsules granted to this agent.
|
|
231
|
+
* Uses hybrid search (embedding + text) to find relevant memories.
|
|
232
|
+
* @param options - Query string and optional limit.
|
|
233
|
+
*/
|
|
234
|
+
queryMemory(options: QueryMemoryOptions): Promise<MemoryEntry[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Fetch the full prompt content for an installed skill by slug.
|
|
237
|
+
* Use this when the agent decides to trigger a skill from availableSkills.
|
|
238
|
+
* @param skillSlug - The skill slug (e.g. "draw", "proactive-agent").
|
|
239
|
+
*/
|
|
240
|
+
fetchSkillPrompt(skillSlug: string): Promise<SkillPrompt>;
|
|
241
|
+
/**
|
|
242
|
+
* Share a note as a message in a conversation.
|
|
243
|
+
* Creates a rich preview card visible to all conversation members.
|
|
244
|
+
* @param conversationId - The conversation to share into.
|
|
245
|
+
* @param noteId - The note ID to share.
|
|
246
|
+
*/
|
|
247
|
+
shareNote(conversationId: string, noteId: string): Promise<ShareNoteResult>;
|
|
47
248
|
private handleTask;
|
|
48
249
|
}
|
|
49
250
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAInB,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,YAAY,CAAC;AAMpB,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;IAC3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,SAAS,CAA+C;IAChE,OAAO,CAAC,cAAc,CAA8C;IACpE,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAA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