@ycodium-ai/plugin-api 0.2.3034 → 0.2.3056
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 +40 -6
- package/dist/commands.d.ts +5 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +0 -6
- package/dist/commands.js.map +1 -1
- package/dist/communication.d.ts +4 -3
- package/dist/communication.d.ts.map +1 -1
- package/dist/conversationComposerHandle.d.ts +1 -1
- package/dist/conversationComposerHandle.d.ts.map +1 -1
- package/dist/conversationDerive.d.ts +29 -3
- package/dist/conversationDerive.d.ts.map +1 -1
- package/dist/conversationDrafts.d.ts +4 -2
- package/dist/conversationDrafts.d.ts.map +1 -1
- package/dist/conversationTrajectory.d.ts +2 -2
- package/dist/conversationTrajectory.d.ts.map +1 -1
- package/dist/dataPorts.gen.d.ts +512 -20
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/derivedState.d.ts +4 -1
- package/dist/derivedState.d.ts.map +1 -1
- package/dist/events.d.ts +4 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/executorSession.d.ts +8 -0
- package/dist/executorSession.d.ts.map +1 -1
- package/dist/index.d.ts +6 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/pending-requests.d.ts +2 -2
- package/dist/pluginContextCommands.d.ts +1 -1
- package/dist/pluginContextThreads.d.ts +3 -4
- package/dist/pluginContextThreads.d.ts.map +1 -1
- package/dist/process-socket.d.ts +3 -1
- package/dist/process-socket.d.ts.map +1 -1
- package/dist/process-stdin.d.ts +6 -3
- package/dist/process-stdin.d.ts.map +1 -1
- package/dist/process-stdin.js +29 -24
- package/dist/process-stdin.js.map +1 -1
- package/dist/project-toolkit-switch.d.ts +8 -0
- package/dist/project-toolkit-switch.d.ts.map +1 -0
- package/dist/project-toolkit-switch.js +2 -0
- package/dist/project-toolkit-switch.js.map +1 -0
- package/dist/threads.d.ts +9 -3
- package/dist/threads.d.ts.map +1 -1
- package/dist/threads.js +22 -0
- package/dist/threads.js.map +1 -1
- package/dist/ui.d.ts +9 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -98,6 +98,10 @@ type Union_4 = {
|
|
|
98
98
|
readonly "kind": "local-owner";
|
|
99
99
|
readonly "environmentId": string;
|
|
100
100
|
readonly "displayName": string;
|
|
101
|
+
} | {
|
|
102
|
+
readonly "kind": "plugin";
|
|
103
|
+
readonly "pluginId": string;
|
|
104
|
+
readonly "displayName": string;
|
|
101
105
|
};
|
|
102
106
|
type Objects_16 = {
|
|
103
107
|
readonly "persisted": string;
|
|
@@ -154,34 +158,83 @@ type Objects_24 = {
|
|
|
154
158
|
readonly "status": "active" | "forgotten";
|
|
155
159
|
};
|
|
156
160
|
};
|
|
157
|
-
type
|
|
161
|
+
type Objects_26 = {
|
|
162
|
+
readonly "pageId": string;
|
|
163
|
+
readonly "revision": number;
|
|
164
|
+
};
|
|
165
|
+
type Objects_27 = {
|
|
158
166
|
readonly "stateId": string;
|
|
159
167
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
160
168
|
readonly "name": string;
|
|
161
169
|
};
|
|
162
170
|
type Arrays_5 = ReadonlyArray<string>;
|
|
163
171
|
type Arrays_6 = ReadonlyArray<string>;
|
|
164
|
-
type
|
|
172
|
+
type Objects_28 = {
|
|
165
173
|
readonly "total": number;
|
|
166
174
|
readonly "completed": number;
|
|
167
175
|
readonly "cancelled": number;
|
|
168
176
|
};
|
|
169
|
-
type
|
|
177
|
+
type Objects_30 = {
|
|
170
178
|
readonly "stateId": string;
|
|
171
179
|
readonly "group": "backlog" | "unstarted" | "started" | "completed" | "cancelled";
|
|
172
180
|
};
|
|
173
|
-
type
|
|
181
|
+
type Objects_31 = {
|
|
174
182
|
readonly "projectId": string;
|
|
175
183
|
readonly "requestId"?: string;
|
|
176
184
|
readonly "workItemId": string;
|
|
177
185
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
178
186
|
readonly "relatedWorkItemId": string;
|
|
179
187
|
};
|
|
180
|
-
type
|
|
188
|
+
type Objects_32 = {
|
|
181
189
|
readonly "workItemId": string;
|
|
182
190
|
readonly "type": "blocked_by" | "relates_to" | "duplicate" | "start_before" | "finish_before" | "implemented_by" | "blocking" | "start_after" | "finish_after" | "implements";
|
|
183
191
|
readonly "relatedWorkItemId": string;
|
|
184
192
|
};
|
|
193
|
+
type Union_13 = ReadonlyArray<{
|
|
194
|
+
readonly "id": string;
|
|
195
|
+
readonly "value": string | boolean;
|
|
196
|
+
}> | {
|
|
197
|
+
readonly [x: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
type Objects_33 = {
|
|
200
|
+
readonly "sequence": number;
|
|
201
|
+
readonly "status": "accepted" | "noop";
|
|
202
|
+
};
|
|
203
|
+
type Objects_34 = {
|
|
204
|
+
readonly "_tag": "snap-shot";
|
|
205
|
+
readonly "capturedAt": string;
|
|
206
|
+
readonly "appName": string;
|
|
207
|
+
readonly "windowTitle": string;
|
|
208
|
+
readonly "accessibleText"?: string;
|
|
209
|
+
readonly "accessibility"?: {
|
|
210
|
+
readonly "format": "flat-text";
|
|
211
|
+
readonly "text": string;
|
|
212
|
+
readonly "truncated": boolean;
|
|
213
|
+
} | {
|
|
214
|
+
readonly "format": "element-tree";
|
|
215
|
+
readonly "coordinateSpace": "captured-image";
|
|
216
|
+
readonly "imageSize": {
|
|
217
|
+
readonly "width": number;
|
|
218
|
+
readonly "height": number;
|
|
219
|
+
};
|
|
220
|
+
readonly "truncated": boolean;
|
|
221
|
+
readonly "root": Objects_35;
|
|
222
|
+
};
|
|
223
|
+
readonly "appIdentifier"?: string;
|
|
224
|
+
readonly "appIconDataUrl"?: string;
|
|
225
|
+
};
|
|
226
|
+
type Objects_36 = {
|
|
227
|
+
readonly "_tag": "agent-artifact";
|
|
228
|
+
readonly "sourcePath": string;
|
|
229
|
+
readonly "linkBase"?: string;
|
|
230
|
+
readonly "toolCallId"?: string;
|
|
231
|
+
};
|
|
232
|
+
type Objects_38 = {
|
|
233
|
+
readonly "_tag": "agent-artifact";
|
|
234
|
+
readonly "sourcePath": string;
|
|
235
|
+
readonly "linkBase"?: string;
|
|
236
|
+
readonly "toolCallId"?: string;
|
|
237
|
+
};
|
|
185
238
|
type Arrays_ = ReadonlyArray<Objects_2>;
|
|
186
239
|
type Arrays_1 = ReadonlyArray<Objects_2>;
|
|
187
240
|
type Union_1 = Objects_5 | null | undefined;
|
|
@@ -388,8 +441,21 @@ type Objects_21 = {
|
|
|
388
441
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
389
442
|
readonly "bodyWindow"?: Objects_14;
|
|
390
443
|
};
|
|
444
|
+
type Objects_25 = {
|
|
445
|
+
readonly "pageId": string;
|
|
446
|
+
readonly "revision": number;
|
|
447
|
+
readonly "baseRevision": number | null;
|
|
448
|
+
readonly "restoredFromRevision": number | null;
|
|
449
|
+
readonly "author": Union_10;
|
|
450
|
+
readonly "createdAt": string;
|
|
451
|
+
readonly "title": string | null;
|
|
452
|
+
readonly "changeSummary": string | null;
|
|
453
|
+
readonly "body": string | null;
|
|
454
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
455
|
+
readonly "bodyWindow"?: Objects_14;
|
|
456
|
+
};
|
|
391
457
|
type Arrays_4 = ReadonlyArray<Union_12>;
|
|
392
|
-
type
|
|
458
|
+
type Objects_29 = {
|
|
393
459
|
readonly "commentId": string;
|
|
394
460
|
readonly "workItemId": string;
|
|
395
461
|
readonly "projectId": string;
|
|
@@ -429,6 +495,56 @@ type Objects_11 = {
|
|
|
429
495
|
readonly "actions"?: ReadonlyArray<string>;
|
|
430
496
|
readonly "children": ReadonlyArray<Objects_11>;
|
|
431
497
|
};
|
|
498
|
+
type Objects_35 = {
|
|
499
|
+
readonly "role": string;
|
|
500
|
+
readonly "name"?: string;
|
|
501
|
+
readonly "value"?: string;
|
|
502
|
+
readonly "description"?: string;
|
|
503
|
+
readonly "bounds": {
|
|
504
|
+
readonly "x": number;
|
|
505
|
+
readonly "y": number;
|
|
506
|
+
readonly "width": number;
|
|
507
|
+
readonly "height": number;
|
|
508
|
+
} | null;
|
|
509
|
+
readonly "state"?: {
|
|
510
|
+
readonly "active"?: boolean;
|
|
511
|
+
readonly "busy"?: boolean;
|
|
512
|
+
readonly "checked"?: "on" | "off" | "mixed";
|
|
513
|
+
readonly "editable"?: boolean;
|
|
514
|
+
readonly "enabled"?: boolean;
|
|
515
|
+
readonly "expanded"?: boolean;
|
|
516
|
+
readonly "focused"?: boolean;
|
|
517
|
+
readonly "selected"?: boolean;
|
|
518
|
+
readonly "visible"?: boolean;
|
|
519
|
+
};
|
|
520
|
+
readonly "actions"?: ReadonlyArray<string>;
|
|
521
|
+
readonly "children": ReadonlyArray<Objects_35>;
|
|
522
|
+
};
|
|
523
|
+
type Objects_37 = {
|
|
524
|
+
readonly "role": string;
|
|
525
|
+
readonly "name"?: string;
|
|
526
|
+
readonly "value"?: string;
|
|
527
|
+
readonly "description"?: string;
|
|
528
|
+
readonly "bounds": {
|
|
529
|
+
readonly "x": number;
|
|
530
|
+
readonly "y": number;
|
|
531
|
+
readonly "width": number;
|
|
532
|
+
readonly "height": number;
|
|
533
|
+
} | null;
|
|
534
|
+
readonly "state"?: {
|
|
535
|
+
readonly "active"?: boolean;
|
|
536
|
+
readonly "busy"?: boolean;
|
|
537
|
+
readonly "checked"?: "on" | "off" | "mixed";
|
|
538
|
+
readonly "editable"?: boolean;
|
|
539
|
+
readonly "enabled"?: boolean;
|
|
540
|
+
readonly "expanded"?: boolean;
|
|
541
|
+
readonly "focused"?: boolean;
|
|
542
|
+
readonly "selected"?: boolean;
|
|
543
|
+
readonly "visible"?: boolean;
|
|
544
|
+
};
|
|
545
|
+
readonly "actions"?: ReadonlyArray<string>;
|
|
546
|
+
readonly "children": ReadonlyArray<Objects_37>;
|
|
547
|
+
};
|
|
432
548
|
export type ThreadsListInput = {
|
|
433
549
|
readonly "projectId"?: string;
|
|
434
550
|
readonly "parentThreadId"?: string;
|
|
@@ -502,7 +618,7 @@ export type ThreadsHistoryOutput = {
|
|
|
502
618
|
readonly "pendingNotifications"?: ReadonlyArray<{
|
|
503
619
|
readonly "dedupeKey": string;
|
|
504
620
|
readonly "notification": {
|
|
505
|
-
readonly "kind": "child.settled" | "child.failed" | "child.approval" | "child.stopped" | "plugin.notice" | "selfdev.resolved";
|
|
621
|
+
readonly "kind": "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "plugin.notice" | "selfdev.resolved";
|
|
506
622
|
readonly "childThreadId": string;
|
|
507
623
|
readonly "childTitle": string;
|
|
508
624
|
readonly "summary": string;
|
|
@@ -751,6 +867,8 @@ export type ThreadsGetOutput = {
|
|
|
751
867
|
readonly "latestUserMessageAt": string | null;
|
|
752
868
|
readonly "userTurnCount"?: number | undefined;
|
|
753
869
|
readonly "queuedMessageCount"?: number | undefined;
|
|
870
|
+
readonly "awaitingPersonReplyCount"?: number | undefined;
|
|
871
|
+
readonly "pendingAsyncQuestionCount"?: number | undefined;
|
|
754
872
|
readonly "preview"?: string | null | undefined;
|
|
755
873
|
readonly "hasPendingApprovals": boolean;
|
|
756
874
|
readonly "hasPendingUserInput": boolean;
|
|
@@ -853,6 +971,16 @@ export type ProjectsGetInput = {
|
|
|
853
971
|
readonly "projectId": string;
|
|
854
972
|
};
|
|
855
973
|
export type ProjectsGetOutput = Objects_15;
|
|
974
|
+
export type ProjectsToolkitsGetInput = {
|
|
975
|
+
readonly "projectId": string;
|
|
976
|
+
};
|
|
977
|
+
export type ProjectsToolkitsGetOutput = {
|
|
978
|
+
readonly "projectId": string;
|
|
979
|
+
readonly "toolkits": ReadonlyArray<{
|
|
980
|
+
readonly "toolkit": "board" | "memory" | "messages";
|
|
981
|
+
readonly "enabled": boolean;
|
|
982
|
+
}>;
|
|
983
|
+
};
|
|
856
984
|
export type CommunicationRecordsGetInput = {
|
|
857
985
|
readonly "recordIds": ReadonlyArray<string>;
|
|
858
986
|
readonly "textOffset"?: number;
|
|
@@ -900,7 +1028,7 @@ export type CommunicationRecordsListInput = {
|
|
|
900
1028
|
};
|
|
901
1029
|
export type CommunicationRecordsListOutput = Objects_17;
|
|
902
1030
|
export type CommunicationInboxListInput = {
|
|
903
|
-
readonly "projectId"
|
|
1031
|
+
readonly "projectId"?: string;
|
|
904
1032
|
readonly "pendingOnly"?: boolean;
|
|
905
1033
|
readonly "cursor"?: string | null;
|
|
906
1034
|
readonly "limit"?: number;
|
|
@@ -927,6 +1055,7 @@ export type CommunicationRecordsSendInput = {
|
|
|
927
1055
|
} | {
|
|
928
1056
|
readonly "person": Union_8;
|
|
929
1057
|
};
|
|
1058
|
+
readonly "aboutThreadId"?: string;
|
|
930
1059
|
readonly "text": string;
|
|
931
1060
|
readonly "replyTo"?: string;
|
|
932
1061
|
readonly "delivery"?: "quiet" | "wake" | "steer";
|
|
@@ -1059,6 +1188,7 @@ export type MemorySearchOutput = {
|
|
|
1059
1188
|
readonly "headingPath": string;
|
|
1060
1189
|
readonly "snippet": string;
|
|
1061
1190
|
readonly "score": number;
|
|
1191
|
+
readonly "unmatched"?: true;
|
|
1062
1192
|
}>;
|
|
1063
1193
|
readonly "code"?: "fts_unavailable" | "index_damaged" | "not_initialized";
|
|
1064
1194
|
};
|
|
@@ -1097,6 +1227,123 @@ export type MemoryExperiencesEraseOutput = {
|
|
|
1097
1227
|
readonly "experienceId": string;
|
|
1098
1228
|
};
|
|
1099
1229
|
};
|
|
1230
|
+
export type MemoryPagesListInput = {
|
|
1231
|
+
readonly "projectId": string;
|
|
1232
|
+
readonly "status"?: "active" | "erased";
|
|
1233
|
+
readonly "cursor"?: string;
|
|
1234
|
+
readonly "limit"?: number;
|
|
1235
|
+
};
|
|
1236
|
+
export type MemoryPagesListOutput = {
|
|
1237
|
+
readonly "items": ReadonlyArray<{
|
|
1238
|
+
readonly "pageId": string;
|
|
1239
|
+
readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill";
|
|
1240
|
+
readonly "parentPageId": string | null;
|
|
1241
|
+
readonly "currentRevision": number;
|
|
1242
|
+
readonly "locked": boolean;
|
|
1243
|
+
readonly "archivedAt": string | null;
|
|
1244
|
+
readonly "erasedAt": string | null;
|
|
1245
|
+
readonly "createdAt": string;
|
|
1246
|
+
readonly "revisedAt": string;
|
|
1247
|
+
readonly "updatedAt": string;
|
|
1248
|
+
readonly "title": string | null;
|
|
1249
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1250
|
+
readonly "excerpt": string | null;
|
|
1251
|
+
}>;
|
|
1252
|
+
readonly "nextCursor": string | null;
|
|
1253
|
+
};
|
|
1254
|
+
export type MemoryPagesGetInput = {
|
|
1255
|
+
readonly "projectId": string;
|
|
1256
|
+
readonly "pageId": string;
|
|
1257
|
+
readonly "textOffset"?: number;
|
|
1258
|
+
readonly "textLimit"?: number;
|
|
1259
|
+
};
|
|
1260
|
+
export type MemoryPagesGetOutput = {
|
|
1261
|
+
readonly "pageId": string;
|
|
1262
|
+
readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill";
|
|
1263
|
+
readonly "parentPageId": string | null;
|
|
1264
|
+
readonly "currentRevision": number;
|
|
1265
|
+
readonly "locked": boolean;
|
|
1266
|
+
readonly "archivedAt": string | null;
|
|
1267
|
+
readonly "erasedAt": string | null;
|
|
1268
|
+
readonly "createdAt": string;
|
|
1269
|
+
readonly "revisedAt": string;
|
|
1270
|
+
readonly "updatedAt": string;
|
|
1271
|
+
readonly "title": string | null;
|
|
1272
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1273
|
+
readonly "createdBy": Union_10;
|
|
1274
|
+
readonly "body": string | null;
|
|
1275
|
+
readonly "bodyWindow"?: Objects_14;
|
|
1276
|
+
readonly "erasedBy": Union_10 | null;
|
|
1277
|
+
};
|
|
1278
|
+
export type MemoryPagesHistoryInput = {
|
|
1279
|
+
readonly "projectId": string;
|
|
1280
|
+
readonly "pageId": string;
|
|
1281
|
+
readonly "cursor"?: string;
|
|
1282
|
+
readonly "limit"?: number;
|
|
1283
|
+
readonly "textOffset"?: number;
|
|
1284
|
+
readonly "textLimit"?: number;
|
|
1285
|
+
};
|
|
1286
|
+
export type MemoryPagesHistoryOutput = {
|
|
1287
|
+
readonly "items": ReadonlyArray<Objects_25>;
|
|
1288
|
+
readonly "nextCursor": string | null;
|
|
1289
|
+
};
|
|
1290
|
+
export type MemoryPageRevisionsGetInput = {
|
|
1291
|
+
readonly "projectId": string;
|
|
1292
|
+
readonly "pageId": string;
|
|
1293
|
+
readonly "revision": number;
|
|
1294
|
+
readonly "textOffset"?: number;
|
|
1295
|
+
readonly "textLimit"?: number;
|
|
1296
|
+
};
|
|
1297
|
+
export type MemoryPageRevisionsGetOutput = Objects_25;
|
|
1298
|
+
export type MemoryPagesCreateInput = {
|
|
1299
|
+
readonly "projectId": string;
|
|
1300
|
+
readonly "requestId"?: string;
|
|
1301
|
+
readonly "pageId"?: string;
|
|
1302
|
+
readonly "kind": "doc" | "skill";
|
|
1303
|
+
readonly "parentPageId"?: string;
|
|
1304
|
+
readonly "title": string;
|
|
1305
|
+
readonly "body": string;
|
|
1306
|
+
readonly "changeSummary"?: string;
|
|
1307
|
+
};
|
|
1308
|
+
export type MemoryPagesCreateOutput = {
|
|
1309
|
+
readonly "sequence": number;
|
|
1310
|
+
readonly "result": Objects_26;
|
|
1311
|
+
};
|
|
1312
|
+
export type MemoryPagesEditInput = {
|
|
1313
|
+
readonly "projectId": string;
|
|
1314
|
+
readonly "requestId"?: string;
|
|
1315
|
+
readonly "pageId": string;
|
|
1316
|
+
readonly "baseRevision": number;
|
|
1317
|
+
readonly "title"?: string;
|
|
1318
|
+
readonly "body": string;
|
|
1319
|
+
readonly "changeSummary"?: string;
|
|
1320
|
+
};
|
|
1321
|
+
export type MemoryPagesEditOutput = {
|
|
1322
|
+
readonly "sequence": number;
|
|
1323
|
+
readonly "result": Objects_26;
|
|
1324
|
+
};
|
|
1325
|
+
export type MemoryPagesRestoreInput = {
|
|
1326
|
+
readonly "projectId": string;
|
|
1327
|
+
readonly "requestId"?: string;
|
|
1328
|
+
readonly "pageId": string;
|
|
1329
|
+
readonly "baseRevision": number;
|
|
1330
|
+
readonly "fromRevision": number;
|
|
1331
|
+
};
|
|
1332
|
+
export type MemoryPagesRestoreOutput = {
|
|
1333
|
+
readonly "sequence": number;
|
|
1334
|
+
readonly "result": Objects_26;
|
|
1335
|
+
};
|
|
1336
|
+
export type MemoryPagesEraseInput = {
|
|
1337
|
+
readonly "projectId": string;
|
|
1338
|
+
readonly "requestId"?: string;
|
|
1339
|
+
readonly "pageId": string;
|
|
1340
|
+
};
|
|
1341
|
+
export type MemoryPagesEraseOutput = {
|
|
1342
|
+
readonly "sequence": number;
|
|
1343
|
+
readonly "result": {
|
|
1344
|
+
readonly "pageId": string;
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1100
1347
|
export type WorkStatesListInput = {
|
|
1101
1348
|
readonly "projectId": string;
|
|
1102
1349
|
};
|
|
@@ -1129,7 +1376,7 @@ export type WorkItemsListOutput = {
|
|
|
1129
1376
|
readonly "sequenceId": number;
|
|
1130
1377
|
readonly "title": string | null;
|
|
1131
1378
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1132
|
-
readonly "state":
|
|
1379
|
+
readonly "state": Objects_27;
|
|
1133
1380
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1134
1381
|
readonly "assignees": Arrays_4;
|
|
1135
1382
|
readonly "labelIds": Arrays_5;
|
|
@@ -1143,7 +1390,7 @@ export type WorkItemsListOutput = {
|
|
|
1143
1390
|
readonly "revision": number;
|
|
1144
1391
|
readonly "blockedBy": Arrays_6;
|
|
1145
1392
|
readonly "blockedByTotal": number;
|
|
1146
|
-
readonly "childCounts":
|
|
1393
|
+
readonly "childCounts": Objects_28;
|
|
1147
1394
|
readonly "createdBy": Union_10;
|
|
1148
1395
|
readonly "createdAt": string;
|
|
1149
1396
|
readonly "updatedAt": string;
|
|
@@ -1171,7 +1418,7 @@ export type WorkItemsGetOutput = {
|
|
|
1171
1418
|
readonly "sequenceId": number;
|
|
1172
1419
|
readonly "title": string | null;
|
|
1173
1420
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1174
|
-
readonly "state":
|
|
1421
|
+
readonly "state": Objects_27;
|
|
1175
1422
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1176
1423
|
readonly "assignees": Arrays_4;
|
|
1177
1424
|
readonly "labelIds": Arrays_5;
|
|
@@ -1185,7 +1432,7 @@ export type WorkItemsGetOutput = {
|
|
|
1185
1432
|
readonly "revision": number;
|
|
1186
1433
|
readonly "blockedBy": Arrays_6;
|
|
1187
1434
|
readonly "blockedByTotal": number;
|
|
1188
|
-
readonly "childCounts":
|
|
1435
|
+
readonly "childCounts": Objects_28;
|
|
1189
1436
|
readonly "createdBy": Union_10;
|
|
1190
1437
|
readonly "createdAt": string;
|
|
1191
1438
|
readonly "updatedAt": string;
|
|
@@ -1229,7 +1476,7 @@ export type WorkCommentsListInput = {
|
|
|
1229
1476
|
readonly "textLimit"?: number;
|
|
1230
1477
|
};
|
|
1231
1478
|
export type WorkCommentsListOutput = {
|
|
1232
|
-
readonly "items": ReadonlyArray<
|
|
1479
|
+
readonly "items": ReadonlyArray<Objects_29>;
|
|
1233
1480
|
readonly "nextCursor": string | null;
|
|
1234
1481
|
readonly "snapshotSequence": number;
|
|
1235
1482
|
};
|
|
@@ -1240,7 +1487,7 @@ export type WorkCommentsGetInput = {
|
|
|
1240
1487
|
readonly "textLimit"?: number;
|
|
1241
1488
|
};
|
|
1242
1489
|
export type WorkCommentsGetOutput = {
|
|
1243
|
-
readonly "comment":
|
|
1490
|
+
readonly "comment": Objects_29;
|
|
1244
1491
|
readonly "snapshotSequence": number;
|
|
1245
1492
|
};
|
|
1246
1493
|
export type WorkHistoryListInput = {
|
|
@@ -1255,6 +1502,7 @@ export type WorkHistoryListOutput = {
|
|
|
1255
1502
|
readonly "sequence": number;
|
|
1256
1503
|
readonly "workItemId": string | null;
|
|
1257
1504
|
readonly "actor": Union_10;
|
|
1505
|
+
readonly "viaPlugin"?: string;
|
|
1258
1506
|
readonly "at": string;
|
|
1259
1507
|
readonly "target": {
|
|
1260
1508
|
readonly "kind": "item" | "comment" | "state" | "label" | "relation";
|
|
@@ -1267,8 +1515,8 @@ export type WorkHistoryListOutput = {
|
|
|
1267
1515
|
readonly "newRevision": number | null;
|
|
1268
1516
|
} | {
|
|
1269
1517
|
readonly "field": "state";
|
|
1270
|
-
readonly "old":
|
|
1271
|
-
readonly "new":
|
|
1518
|
+
readonly "old": Objects_30 | null;
|
|
1519
|
+
readonly "new": Objects_30 | null;
|
|
1272
1520
|
} | {
|
|
1273
1521
|
readonly "field": "assignees" | "mentions";
|
|
1274
1522
|
readonly "old": ReadonlyArray<Union_12>;
|
|
@@ -1332,15 +1580,15 @@ export type WorkItemsClaimOutput = {
|
|
|
1332
1580
|
readonly "version": number;
|
|
1333
1581
|
};
|
|
1334
1582
|
};
|
|
1335
|
-
export type WorkRelationsAddInput =
|
|
1583
|
+
export type WorkRelationsAddInput = Objects_31;
|
|
1336
1584
|
export type WorkRelationsAddOutput = {
|
|
1337
1585
|
readonly "sequence": number;
|
|
1338
|
-
readonly "result":
|
|
1586
|
+
readonly "result": Objects_32;
|
|
1339
1587
|
};
|
|
1340
|
-
export type WorkRelationsRemoveInput =
|
|
1588
|
+
export type WorkRelationsRemoveInput = Objects_31;
|
|
1341
1589
|
export type WorkRelationsRemoveOutput = {
|
|
1342
1590
|
readonly "sequence": number;
|
|
1343
|
-
readonly "result":
|
|
1591
|
+
readonly "result": Objects_32;
|
|
1344
1592
|
};
|
|
1345
1593
|
export type WorkCommentsPostInput = {
|
|
1346
1594
|
readonly "projectId": string;
|
|
@@ -1358,6 +1606,212 @@ export type WorkCommentsPostOutput = {
|
|
|
1358
1606
|
readonly "revision": number;
|
|
1359
1607
|
};
|
|
1360
1608
|
};
|
|
1609
|
+
export type ThreadsUpdateInput = {
|
|
1610
|
+
readonly "threadId": string;
|
|
1611
|
+
readonly "requestId"?: string;
|
|
1612
|
+
readonly "title"?: string;
|
|
1613
|
+
readonly "regenerateTitle"?: true;
|
|
1614
|
+
readonly "modelSelection"?: {
|
|
1615
|
+
readonly "instanceId": string;
|
|
1616
|
+
readonly "model": string;
|
|
1617
|
+
readonly "options"?: Union_13;
|
|
1618
|
+
};
|
|
1619
|
+
readonly "executionSelection"?: {
|
|
1620
|
+
readonly "environmentId": string;
|
|
1621
|
+
readonly "runtimeId": string;
|
|
1622
|
+
readonly "sourceId": string;
|
|
1623
|
+
readonly "profileId": string;
|
|
1624
|
+
readonly "endpointId"?: string;
|
|
1625
|
+
readonly "optionOverrides": Arrays_2;
|
|
1626
|
+
readonly "expectedRevisions": Objects_8;
|
|
1627
|
+
} | null;
|
|
1628
|
+
readonly "branch"?: string | null;
|
|
1629
|
+
readonly "expectedBranch"?: string | null;
|
|
1630
|
+
readonly "worktreePath"?: string | null;
|
|
1631
|
+
readonly "linkedPullRequest"?: {
|
|
1632
|
+
readonly "projectId": string;
|
|
1633
|
+
readonly "repository": string;
|
|
1634
|
+
readonly "number": number;
|
|
1635
|
+
readonly "url": string;
|
|
1636
|
+
} | null;
|
|
1637
|
+
readonly "presetId"?: string | null;
|
|
1638
|
+
};
|
|
1639
|
+
export type ThreadsUpdateOutput = Objects_33;
|
|
1640
|
+
export type ThreadsTurnsStartInput = {
|
|
1641
|
+
readonly "requestId"?: string;
|
|
1642
|
+
readonly "threadId": string;
|
|
1643
|
+
readonly "message": {
|
|
1644
|
+
readonly "messageId": string;
|
|
1645
|
+
readonly "role": "user";
|
|
1646
|
+
readonly "text": string;
|
|
1647
|
+
readonly "attachments": ReadonlyArray<{
|
|
1648
|
+
readonly "type": "image";
|
|
1649
|
+
readonly "name": string;
|
|
1650
|
+
readonly "mimeType": string;
|
|
1651
|
+
readonly "sizeBytes": number;
|
|
1652
|
+
readonly "dataUrl": string;
|
|
1653
|
+
readonly "source"?: Objects_34;
|
|
1654
|
+
} | {
|
|
1655
|
+
readonly "type": "file";
|
|
1656
|
+
readonly "name": string;
|
|
1657
|
+
readonly "mimeType": string;
|
|
1658
|
+
readonly "sizeBytes": number;
|
|
1659
|
+
readonly "dataUrl": string;
|
|
1660
|
+
} | {
|
|
1661
|
+
readonly "type": "image";
|
|
1662
|
+
readonly "id": string;
|
|
1663
|
+
readonly "name": string;
|
|
1664
|
+
readonly "mimeType": string;
|
|
1665
|
+
readonly "sizeBytes": number;
|
|
1666
|
+
readonly "source"?: Objects_34 | Objects_36;
|
|
1667
|
+
} | {
|
|
1668
|
+
readonly "type": "file";
|
|
1669
|
+
readonly "id": string;
|
|
1670
|
+
readonly "name": string;
|
|
1671
|
+
readonly "mimeType": string;
|
|
1672
|
+
readonly "sizeBytes": number;
|
|
1673
|
+
readonly "source"?: {
|
|
1674
|
+
readonly "_tag": "pasted-text";
|
|
1675
|
+
} | Objects_36 | {
|
|
1676
|
+
readonly "_tag": "thread-reference";
|
|
1677
|
+
readonly "environmentId": string;
|
|
1678
|
+
readonly "threadId": string;
|
|
1679
|
+
};
|
|
1680
|
+
}>;
|
|
1681
|
+
};
|
|
1682
|
+
readonly "modelSelection"?: {
|
|
1683
|
+
readonly "instanceId": string;
|
|
1684
|
+
readonly "model": string;
|
|
1685
|
+
readonly "options"?: Union_13;
|
|
1686
|
+
};
|
|
1687
|
+
readonly "titleSeed"?: string;
|
|
1688
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
1689
|
+
readonly "interactionMode": "default" | "plan";
|
|
1690
|
+
readonly "bootstrap"?: {
|
|
1691
|
+
readonly "createThread"?: {
|
|
1692
|
+
readonly "projectId": string;
|
|
1693
|
+
readonly "title": string;
|
|
1694
|
+
readonly "modelSelection": {
|
|
1695
|
+
readonly "provider"?: unknown;
|
|
1696
|
+
readonly "instanceId"?: unknown;
|
|
1697
|
+
readonly "model": unknown;
|
|
1698
|
+
readonly "options"?: unknown;
|
|
1699
|
+
};
|
|
1700
|
+
readonly "executionSelection"?: {
|
|
1701
|
+
readonly "environmentId": string;
|
|
1702
|
+
readonly "runtimeId": string;
|
|
1703
|
+
readonly "sourceId": string;
|
|
1704
|
+
readonly "profileId": string;
|
|
1705
|
+
readonly "endpointId"?: string;
|
|
1706
|
+
readonly "optionOverrides": ReadonlyArray<{
|
|
1707
|
+
readonly "id": string;
|
|
1708
|
+
readonly "value": string | boolean;
|
|
1709
|
+
}>;
|
|
1710
|
+
readonly "expectedRevisions": {
|
|
1711
|
+
readonly "runtime": number;
|
|
1712
|
+
readonly "source": number;
|
|
1713
|
+
readonly "profile": number;
|
|
1714
|
+
readonly "endpoint"?: number;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
1718
|
+
readonly "interactionMode": "default" | "plan";
|
|
1719
|
+
readonly "nativeModeId"?: string;
|
|
1720
|
+
readonly "branch": string | null;
|
|
1721
|
+
readonly "worktreePath": string | null;
|
|
1722
|
+
readonly "startFolderId"?: string;
|
|
1723
|
+
readonly "folderIds"?: ReadonlyArray<string>;
|
|
1724
|
+
readonly "origin"?: {
|
|
1725
|
+
readonly "parentThreadId": string;
|
|
1726
|
+
readonly "delegationDepth": number;
|
|
1727
|
+
readonly "requestedBy": "agent" | "continuation";
|
|
1728
|
+
readonly "notificationPolicy"?: "wake" | "activity-only";
|
|
1729
|
+
};
|
|
1730
|
+
readonly "presetId"?: string;
|
|
1731
|
+
readonly "createdBy"?: {
|
|
1732
|
+
readonly "userId": string;
|
|
1733
|
+
readonly "displayName": string;
|
|
1734
|
+
};
|
|
1735
|
+
readonly "createdAt": string;
|
|
1736
|
+
};
|
|
1737
|
+
readonly "prepareWorktree"?: {
|
|
1738
|
+
readonly "projectCwd": string;
|
|
1739
|
+
readonly "baseBranch": string;
|
|
1740
|
+
readonly "branch"?: string;
|
|
1741
|
+
readonly "startFromOrigin"?: boolean;
|
|
1742
|
+
};
|
|
1743
|
+
readonly "runSetupScript"?: boolean;
|
|
1744
|
+
};
|
|
1745
|
+
readonly "sourceProposedPlan"?: {
|
|
1746
|
+
readonly "threadId": string;
|
|
1747
|
+
readonly "planId": string;
|
|
1748
|
+
};
|
|
1749
|
+
readonly "intentAction"?: {
|
|
1750
|
+
readonly "kind": "steer";
|
|
1751
|
+
readonly "turnId": string;
|
|
1752
|
+
readonly "commandId": string;
|
|
1753
|
+
readonly "source": "automatic";
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
export type ThreadsTurnsStartOutput = {
|
|
1757
|
+
readonly "sequence": number;
|
|
1758
|
+
readonly "status": "accepted";
|
|
1759
|
+
readonly "result"?: unknown;
|
|
1760
|
+
};
|
|
1761
|
+
export type ThreadsUserInputRespondInput = {
|
|
1762
|
+
readonly "threadId": string;
|
|
1763
|
+
readonly "requestId"?: string;
|
|
1764
|
+
readonly "userInputRequestId": string;
|
|
1765
|
+
readonly "answers": {
|
|
1766
|
+
readonly [x: string]: unknown;
|
|
1767
|
+
};
|
|
1768
|
+
readonly "attachmentsByQuestionId"?: {
|
|
1769
|
+
readonly [x: string]: ReadonlyArray<{
|
|
1770
|
+
readonly "type": "image";
|
|
1771
|
+
readonly "id": string;
|
|
1772
|
+
readonly "name": string;
|
|
1773
|
+
readonly "mimeType": string;
|
|
1774
|
+
readonly "sizeBytes": number;
|
|
1775
|
+
readonly "source"?: {
|
|
1776
|
+
readonly "_tag": "snap-shot";
|
|
1777
|
+
readonly "capturedAt": string;
|
|
1778
|
+
readonly "appName": string;
|
|
1779
|
+
readonly "windowTitle": string;
|
|
1780
|
+
readonly "accessibleText"?: string;
|
|
1781
|
+
readonly "accessibility"?: {
|
|
1782
|
+
readonly "format": "flat-text";
|
|
1783
|
+
readonly "text": string;
|
|
1784
|
+
readonly "truncated": boolean;
|
|
1785
|
+
} | {
|
|
1786
|
+
readonly "format": "element-tree";
|
|
1787
|
+
readonly "coordinateSpace": "captured-image";
|
|
1788
|
+
readonly "imageSize": {
|
|
1789
|
+
readonly "width": number;
|
|
1790
|
+
readonly "height": number;
|
|
1791
|
+
};
|
|
1792
|
+
readonly "truncated": boolean;
|
|
1793
|
+
readonly "root": Objects_37;
|
|
1794
|
+
};
|
|
1795
|
+
readonly "appIdentifier"?: string;
|
|
1796
|
+
readonly "appIconDataUrl"?: string;
|
|
1797
|
+
} | Objects_38;
|
|
1798
|
+
} | {
|
|
1799
|
+
readonly "type": "file";
|
|
1800
|
+
readonly "id": string;
|
|
1801
|
+
readonly "name": string;
|
|
1802
|
+
readonly "mimeType": string;
|
|
1803
|
+
readonly "sizeBytes": number;
|
|
1804
|
+
readonly "source"?: {
|
|
1805
|
+
readonly "_tag": "pasted-text";
|
|
1806
|
+
} | Objects_38 | {
|
|
1807
|
+
readonly "_tag": "thread-reference";
|
|
1808
|
+
readonly "environmentId": string;
|
|
1809
|
+
readonly "threadId": string;
|
|
1810
|
+
};
|
|
1811
|
+
}>;
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
export type ThreadsUserInputRespondOutput = Objects_33;
|
|
1361
1815
|
export declare const COMMUNICATION_RECORDS_READ_LIMIT = 100;
|
|
1362
1816
|
export declare const THREAD_ACTIVITIES_LIST_LIMIT = 200;
|
|
1363
1817
|
export declare const THREAD_MESSAGES_LIST_LIMIT = 100;
|
|
@@ -1376,10 +1830,20 @@ export interface PluginDataPorts {
|
|
|
1376
1830
|
readonly activities: {
|
|
1377
1831
|
readonly list: (input: ThreadsActivitiesListInput) => Promise<ThreadsActivitiesListOutput>;
|
|
1378
1832
|
};
|
|
1833
|
+
readonly update: (input: ThreadsUpdateInput) => Promise<ThreadsUpdateOutput>;
|
|
1834
|
+
readonly turns: {
|
|
1835
|
+
readonly start: (input: ThreadsTurnsStartInput) => Promise<ThreadsTurnsStartOutput>;
|
|
1836
|
+
};
|
|
1837
|
+
readonly userInput: {
|
|
1838
|
+
readonly respond: (input: ThreadsUserInputRespondInput) => Promise<ThreadsUserInputRespondOutput>;
|
|
1839
|
+
};
|
|
1379
1840
|
};
|
|
1380
1841
|
readonly projects: {
|
|
1381
1842
|
readonly list: (input: ProjectsListInput) => Promise<ProjectsListOutput>;
|
|
1382
1843
|
readonly get: (input: ProjectsGetInput) => Promise<ProjectsGetOutput>;
|
|
1844
|
+
readonly toolkits: {
|
|
1845
|
+
readonly get: (input: ProjectsToolkitsGetInput) => Promise<ProjectsToolkitsGetOutput>;
|
|
1846
|
+
};
|
|
1383
1847
|
};
|
|
1384
1848
|
readonly communication: {
|
|
1385
1849
|
readonly records: {
|
|
@@ -1416,6 +1880,18 @@ export interface PluginDataPorts {
|
|
|
1416
1880
|
readonly get: (input: MemoryRevisionsGetInput) => Promise<MemoryRevisionsGetOutput>;
|
|
1417
1881
|
};
|
|
1418
1882
|
readonly search: (input: MemorySearchInput) => Promise<MemorySearchOutput>;
|
|
1883
|
+
readonly pages: {
|
|
1884
|
+
readonly list: (input: MemoryPagesListInput) => Promise<MemoryPagesListOutput>;
|
|
1885
|
+
readonly get: (input: MemoryPagesGetInput) => Promise<MemoryPagesGetOutput>;
|
|
1886
|
+
readonly history: (input: MemoryPagesHistoryInput) => Promise<MemoryPagesHistoryOutput>;
|
|
1887
|
+
readonly create: (input: MemoryPagesCreateInput) => Promise<MemoryPagesCreateOutput>;
|
|
1888
|
+
readonly edit: (input: MemoryPagesEditInput) => Promise<MemoryPagesEditOutput>;
|
|
1889
|
+
readonly restore: (input: MemoryPagesRestoreInput) => Promise<MemoryPagesRestoreOutput>;
|
|
1890
|
+
readonly erase: (input: MemoryPagesEraseInput) => Promise<MemoryPagesEraseOutput>;
|
|
1891
|
+
};
|
|
1892
|
+
readonly pageRevisions: {
|
|
1893
|
+
readonly get: (input: MemoryPageRevisionsGetInput) => Promise<MemoryPageRevisionsGetOutput>;
|
|
1894
|
+
};
|
|
1419
1895
|
};
|
|
1420
1896
|
readonly work: {
|
|
1421
1897
|
readonly states: {
|
|
@@ -1443,5 +1919,21 @@ export interface PluginDataPorts {
|
|
|
1443
1919
|
};
|
|
1444
1920
|
};
|
|
1445
1921
|
}
|
|
1922
|
+
/** 以人的身份写的端口(`invocation.asPerson`):只有登记表代人写白名单里的几条,形状与上面同名成员相同。 */
|
|
1923
|
+
export interface PluginAsPersonPorts {
|
|
1924
|
+
readonly work: {
|
|
1925
|
+
readonly items: {
|
|
1926
|
+
readonly create: (input: WorkItemsCreateInput) => Promise<WorkItemsCreateOutput>;
|
|
1927
|
+
readonly update: (input: WorkItemsUpdateInput) => Promise<WorkItemsUpdateOutput>;
|
|
1928
|
+
};
|
|
1929
|
+
readonly relations: {
|
|
1930
|
+
readonly add: (input: WorkRelationsAddInput) => Promise<WorkRelationsAddOutput>;
|
|
1931
|
+
readonly remove: (input: WorkRelationsRemoveInput) => Promise<WorkRelationsRemoveOutput>;
|
|
1932
|
+
};
|
|
1933
|
+
readonly comments: {
|
|
1934
|
+
readonly post: (input: WorkCommentsPostInput) => Promise<WorkCommentsPostOutput>;
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1446
1938
|
export {};
|
|
1447
1939
|
//# sourceMappingURL=dataPorts.gen.d.ts.map
|