@ycodium-ai/plugin-api 0.2.3034 → 0.2.3054
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 +36 -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 +511 -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 +5 -10
- 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/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,7 @@ 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;
|
|
754
871
|
readonly "preview"?: string | null | undefined;
|
|
755
872
|
readonly "hasPendingApprovals": boolean;
|
|
756
873
|
readonly "hasPendingUserInput": boolean;
|
|
@@ -853,6 +970,16 @@ export type ProjectsGetInput = {
|
|
|
853
970
|
readonly "projectId": string;
|
|
854
971
|
};
|
|
855
972
|
export type ProjectsGetOutput = Objects_15;
|
|
973
|
+
export type ProjectsToolkitsGetInput = {
|
|
974
|
+
readonly "projectId": string;
|
|
975
|
+
};
|
|
976
|
+
export type ProjectsToolkitsGetOutput = {
|
|
977
|
+
readonly "projectId": string;
|
|
978
|
+
readonly "toolkits": ReadonlyArray<{
|
|
979
|
+
readonly "toolkit": "board" | "memory" | "messages";
|
|
980
|
+
readonly "enabled": boolean;
|
|
981
|
+
}>;
|
|
982
|
+
};
|
|
856
983
|
export type CommunicationRecordsGetInput = {
|
|
857
984
|
readonly "recordIds": ReadonlyArray<string>;
|
|
858
985
|
readonly "textOffset"?: number;
|
|
@@ -900,7 +1027,7 @@ export type CommunicationRecordsListInput = {
|
|
|
900
1027
|
};
|
|
901
1028
|
export type CommunicationRecordsListOutput = Objects_17;
|
|
902
1029
|
export type CommunicationInboxListInput = {
|
|
903
|
-
readonly "projectId"
|
|
1030
|
+
readonly "projectId"?: string;
|
|
904
1031
|
readonly "pendingOnly"?: boolean;
|
|
905
1032
|
readonly "cursor"?: string | null;
|
|
906
1033
|
readonly "limit"?: number;
|
|
@@ -927,6 +1054,7 @@ export type CommunicationRecordsSendInput = {
|
|
|
927
1054
|
} | {
|
|
928
1055
|
readonly "person": Union_8;
|
|
929
1056
|
};
|
|
1057
|
+
readonly "aboutThreadId"?: string;
|
|
930
1058
|
readonly "text": string;
|
|
931
1059
|
readonly "replyTo"?: string;
|
|
932
1060
|
readonly "delivery"?: "quiet" | "wake" | "steer";
|
|
@@ -1059,6 +1187,7 @@ export type MemorySearchOutput = {
|
|
|
1059
1187
|
readonly "headingPath": string;
|
|
1060
1188
|
readonly "snippet": string;
|
|
1061
1189
|
readonly "score": number;
|
|
1190
|
+
readonly "unmatched"?: true;
|
|
1062
1191
|
}>;
|
|
1063
1192
|
readonly "code"?: "fts_unavailable" | "index_damaged" | "not_initialized";
|
|
1064
1193
|
};
|
|
@@ -1097,6 +1226,123 @@ export type MemoryExperiencesEraseOutput = {
|
|
|
1097
1226
|
readonly "experienceId": string;
|
|
1098
1227
|
};
|
|
1099
1228
|
};
|
|
1229
|
+
export type MemoryPagesListInput = {
|
|
1230
|
+
readonly "projectId": string;
|
|
1231
|
+
readonly "status"?: "active" | "erased";
|
|
1232
|
+
readonly "cursor"?: string;
|
|
1233
|
+
readonly "limit"?: number;
|
|
1234
|
+
};
|
|
1235
|
+
export type MemoryPagesListOutput = {
|
|
1236
|
+
readonly "items": ReadonlyArray<{
|
|
1237
|
+
readonly "pageId": string;
|
|
1238
|
+
readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill";
|
|
1239
|
+
readonly "parentPageId": string | null;
|
|
1240
|
+
readonly "currentRevision": number;
|
|
1241
|
+
readonly "locked": boolean;
|
|
1242
|
+
readonly "archivedAt": string | null;
|
|
1243
|
+
readonly "erasedAt": string | null;
|
|
1244
|
+
readonly "createdAt": string;
|
|
1245
|
+
readonly "revisedAt": string;
|
|
1246
|
+
readonly "updatedAt": string;
|
|
1247
|
+
readonly "title": string | null;
|
|
1248
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1249
|
+
readonly "excerpt": string | null;
|
|
1250
|
+
}>;
|
|
1251
|
+
readonly "nextCursor": string | null;
|
|
1252
|
+
};
|
|
1253
|
+
export type MemoryPagesGetInput = {
|
|
1254
|
+
readonly "projectId": string;
|
|
1255
|
+
readonly "pageId": string;
|
|
1256
|
+
readonly "textOffset"?: number;
|
|
1257
|
+
readonly "textLimit"?: number;
|
|
1258
|
+
};
|
|
1259
|
+
export type MemoryPagesGetOutput = {
|
|
1260
|
+
readonly "pageId": string;
|
|
1261
|
+
readonly "kind": "handbook_decisions" | "handbook_rules" | "handbook_progress" | "doc" | "skill";
|
|
1262
|
+
readonly "parentPageId": string | null;
|
|
1263
|
+
readonly "currentRevision": number;
|
|
1264
|
+
readonly "locked": boolean;
|
|
1265
|
+
readonly "archivedAt": string | null;
|
|
1266
|
+
readonly "erasedAt": string | null;
|
|
1267
|
+
readonly "createdAt": string;
|
|
1268
|
+
readonly "revisedAt": string;
|
|
1269
|
+
readonly "updatedAt": string;
|
|
1270
|
+
readonly "title": string | null;
|
|
1271
|
+
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1272
|
+
readonly "createdBy": Union_10;
|
|
1273
|
+
readonly "body": string | null;
|
|
1274
|
+
readonly "bodyWindow"?: Objects_14;
|
|
1275
|
+
readonly "erasedBy": Union_10 | null;
|
|
1276
|
+
};
|
|
1277
|
+
export type MemoryPagesHistoryInput = {
|
|
1278
|
+
readonly "projectId": string;
|
|
1279
|
+
readonly "pageId": string;
|
|
1280
|
+
readonly "cursor"?: string;
|
|
1281
|
+
readonly "limit"?: number;
|
|
1282
|
+
readonly "textOffset"?: number;
|
|
1283
|
+
readonly "textLimit"?: number;
|
|
1284
|
+
};
|
|
1285
|
+
export type MemoryPagesHistoryOutput = {
|
|
1286
|
+
readonly "items": ReadonlyArray<Objects_25>;
|
|
1287
|
+
readonly "nextCursor": string | null;
|
|
1288
|
+
};
|
|
1289
|
+
export type MemoryPageRevisionsGetInput = {
|
|
1290
|
+
readonly "projectId": string;
|
|
1291
|
+
readonly "pageId": string;
|
|
1292
|
+
readonly "revision": number;
|
|
1293
|
+
readonly "textOffset"?: number;
|
|
1294
|
+
readonly "textLimit"?: number;
|
|
1295
|
+
};
|
|
1296
|
+
export type MemoryPageRevisionsGetOutput = Objects_25;
|
|
1297
|
+
export type MemoryPagesCreateInput = {
|
|
1298
|
+
readonly "projectId": string;
|
|
1299
|
+
readonly "requestId"?: string;
|
|
1300
|
+
readonly "pageId"?: string;
|
|
1301
|
+
readonly "kind": "doc" | "skill";
|
|
1302
|
+
readonly "parentPageId"?: string;
|
|
1303
|
+
readonly "title": string;
|
|
1304
|
+
readonly "body": string;
|
|
1305
|
+
readonly "changeSummary"?: string;
|
|
1306
|
+
};
|
|
1307
|
+
export type MemoryPagesCreateOutput = {
|
|
1308
|
+
readonly "sequence": number;
|
|
1309
|
+
readonly "result": Objects_26;
|
|
1310
|
+
};
|
|
1311
|
+
export type MemoryPagesEditInput = {
|
|
1312
|
+
readonly "projectId": string;
|
|
1313
|
+
readonly "requestId"?: string;
|
|
1314
|
+
readonly "pageId": string;
|
|
1315
|
+
readonly "baseRevision": number;
|
|
1316
|
+
readonly "title"?: string;
|
|
1317
|
+
readonly "body": string;
|
|
1318
|
+
readonly "changeSummary"?: string;
|
|
1319
|
+
};
|
|
1320
|
+
export type MemoryPagesEditOutput = {
|
|
1321
|
+
readonly "sequence": number;
|
|
1322
|
+
readonly "result": Objects_26;
|
|
1323
|
+
};
|
|
1324
|
+
export type MemoryPagesRestoreInput = {
|
|
1325
|
+
readonly "projectId": string;
|
|
1326
|
+
readonly "requestId"?: string;
|
|
1327
|
+
readonly "pageId": string;
|
|
1328
|
+
readonly "baseRevision": number;
|
|
1329
|
+
readonly "fromRevision": number;
|
|
1330
|
+
};
|
|
1331
|
+
export type MemoryPagesRestoreOutput = {
|
|
1332
|
+
readonly "sequence": number;
|
|
1333
|
+
readonly "result": Objects_26;
|
|
1334
|
+
};
|
|
1335
|
+
export type MemoryPagesEraseInput = {
|
|
1336
|
+
readonly "projectId": string;
|
|
1337
|
+
readonly "requestId"?: string;
|
|
1338
|
+
readonly "pageId": string;
|
|
1339
|
+
};
|
|
1340
|
+
export type MemoryPagesEraseOutput = {
|
|
1341
|
+
readonly "sequence": number;
|
|
1342
|
+
readonly "result": {
|
|
1343
|
+
readonly "pageId": string;
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1100
1346
|
export type WorkStatesListInput = {
|
|
1101
1347
|
readonly "projectId": string;
|
|
1102
1348
|
};
|
|
@@ -1129,7 +1375,7 @@ export type WorkItemsListOutput = {
|
|
|
1129
1375
|
readonly "sequenceId": number;
|
|
1130
1376
|
readonly "title": string | null;
|
|
1131
1377
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1132
|
-
readonly "state":
|
|
1378
|
+
readonly "state": Objects_27;
|
|
1133
1379
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1134
1380
|
readonly "assignees": Arrays_4;
|
|
1135
1381
|
readonly "labelIds": Arrays_5;
|
|
@@ -1143,7 +1389,7 @@ export type WorkItemsListOutput = {
|
|
|
1143
1389
|
readonly "revision": number;
|
|
1144
1390
|
readonly "blockedBy": Arrays_6;
|
|
1145
1391
|
readonly "blockedByTotal": number;
|
|
1146
|
-
readonly "childCounts":
|
|
1392
|
+
readonly "childCounts": Objects_28;
|
|
1147
1393
|
readonly "createdBy": Union_10;
|
|
1148
1394
|
readonly "createdAt": string;
|
|
1149
1395
|
readonly "updatedAt": string;
|
|
@@ -1171,7 +1417,7 @@ export type WorkItemsGetOutput = {
|
|
|
1171
1417
|
readonly "sequenceId": number;
|
|
1172
1418
|
readonly "title": string | null;
|
|
1173
1419
|
readonly "bodyState": "present" | "erased" | "unavailable";
|
|
1174
|
-
readonly "state":
|
|
1420
|
+
readonly "state": Objects_27;
|
|
1175
1421
|
readonly "priority": "urgent" | "high" | "medium" | "low" | "none";
|
|
1176
1422
|
readonly "assignees": Arrays_4;
|
|
1177
1423
|
readonly "labelIds": Arrays_5;
|
|
@@ -1185,7 +1431,7 @@ export type WorkItemsGetOutput = {
|
|
|
1185
1431
|
readonly "revision": number;
|
|
1186
1432
|
readonly "blockedBy": Arrays_6;
|
|
1187
1433
|
readonly "blockedByTotal": number;
|
|
1188
|
-
readonly "childCounts":
|
|
1434
|
+
readonly "childCounts": Objects_28;
|
|
1189
1435
|
readonly "createdBy": Union_10;
|
|
1190
1436
|
readonly "createdAt": string;
|
|
1191
1437
|
readonly "updatedAt": string;
|
|
@@ -1229,7 +1475,7 @@ export type WorkCommentsListInput = {
|
|
|
1229
1475
|
readonly "textLimit"?: number;
|
|
1230
1476
|
};
|
|
1231
1477
|
export type WorkCommentsListOutput = {
|
|
1232
|
-
readonly "items": ReadonlyArray<
|
|
1478
|
+
readonly "items": ReadonlyArray<Objects_29>;
|
|
1233
1479
|
readonly "nextCursor": string | null;
|
|
1234
1480
|
readonly "snapshotSequence": number;
|
|
1235
1481
|
};
|
|
@@ -1240,7 +1486,7 @@ export type WorkCommentsGetInput = {
|
|
|
1240
1486
|
readonly "textLimit"?: number;
|
|
1241
1487
|
};
|
|
1242
1488
|
export type WorkCommentsGetOutput = {
|
|
1243
|
-
readonly "comment":
|
|
1489
|
+
readonly "comment": Objects_29;
|
|
1244
1490
|
readonly "snapshotSequence": number;
|
|
1245
1491
|
};
|
|
1246
1492
|
export type WorkHistoryListInput = {
|
|
@@ -1255,6 +1501,7 @@ export type WorkHistoryListOutput = {
|
|
|
1255
1501
|
readonly "sequence": number;
|
|
1256
1502
|
readonly "workItemId": string | null;
|
|
1257
1503
|
readonly "actor": Union_10;
|
|
1504
|
+
readonly "viaPlugin"?: string;
|
|
1258
1505
|
readonly "at": string;
|
|
1259
1506
|
readonly "target": {
|
|
1260
1507
|
readonly "kind": "item" | "comment" | "state" | "label" | "relation";
|
|
@@ -1267,8 +1514,8 @@ export type WorkHistoryListOutput = {
|
|
|
1267
1514
|
readonly "newRevision": number | null;
|
|
1268
1515
|
} | {
|
|
1269
1516
|
readonly "field": "state";
|
|
1270
|
-
readonly "old":
|
|
1271
|
-
readonly "new":
|
|
1517
|
+
readonly "old": Objects_30 | null;
|
|
1518
|
+
readonly "new": Objects_30 | null;
|
|
1272
1519
|
} | {
|
|
1273
1520
|
readonly "field": "assignees" | "mentions";
|
|
1274
1521
|
readonly "old": ReadonlyArray<Union_12>;
|
|
@@ -1332,15 +1579,15 @@ export type WorkItemsClaimOutput = {
|
|
|
1332
1579
|
readonly "version": number;
|
|
1333
1580
|
};
|
|
1334
1581
|
};
|
|
1335
|
-
export type WorkRelationsAddInput =
|
|
1582
|
+
export type WorkRelationsAddInput = Objects_31;
|
|
1336
1583
|
export type WorkRelationsAddOutput = {
|
|
1337
1584
|
readonly "sequence": number;
|
|
1338
|
-
readonly "result":
|
|
1585
|
+
readonly "result": Objects_32;
|
|
1339
1586
|
};
|
|
1340
|
-
export type WorkRelationsRemoveInput =
|
|
1587
|
+
export type WorkRelationsRemoveInput = Objects_31;
|
|
1341
1588
|
export type WorkRelationsRemoveOutput = {
|
|
1342
1589
|
readonly "sequence": number;
|
|
1343
|
-
readonly "result":
|
|
1590
|
+
readonly "result": Objects_32;
|
|
1344
1591
|
};
|
|
1345
1592
|
export type WorkCommentsPostInput = {
|
|
1346
1593
|
readonly "projectId": string;
|
|
@@ -1358,6 +1605,212 @@ export type WorkCommentsPostOutput = {
|
|
|
1358
1605
|
readonly "revision": number;
|
|
1359
1606
|
};
|
|
1360
1607
|
};
|
|
1608
|
+
export type ThreadsUpdateInput = {
|
|
1609
|
+
readonly "threadId": string;
|
|
1610
|
+
readonly "requestId"?: string;
|
|
1611
|
+
readonly "title"?: string;
|
|
1612
|
+
readonly "regenerateTitle"?: true;
|
|
1613
|
+
readonly "modelSelection"?: {
|
|
1614
|
+
readonly "instanceId": string;
|
|
1615
|
+
readonly "model": string;
|
|
1616
|
+
readonly "options"?: Union_13;
|
|
1617
|
+
};
|
|
1618
|
+
readonly "executionSelection"?: {
|
|
1619
|
+
readonly "environmentId": string;
|
|
1620
|
+
readonly "runtimeId": string;
|
|
1621
|
+
readonly "sourceId": string;
|
|
1622
|
+
readonly "profileId": string;
|
|
1623
|
+
readonly "endpointId"?: string;
|
|
1624
|
+
readonly "optionOverrides": Arrays_2;
|
|
1625
|
+
readonly "expectedRevisions": Objects_8;
|
|
1626
|
+
} | null;
|
|
1627
|
+
readonly "branch"?: string | null;
|
|
1628
|
+
readonly "expectedBranch"?: string | null;
|
|
1629
|
+
readonly "worktreePath"?: string | null;
|
|
1630
|
+
readonly "linkedPullRequest"?: {
|
|
1631
|
+
readonly "projectId": string;
|
|
1632
|
+
readonly "repository": string;
|
|
1633
|
+
readonly "number": number;
|
|
1634
|
+
readonly "url": string;
|
|
1635
|
+
} | null;
|
|
1636
|
+
readonly "presetId"?: string | null;
|
|
1637
|
+
};
|
|
1638
|
+
export type ThreadsUpdateOutput = Objects_33;
|
|
1639
|
+
export type ThreadsTurnsStartInput = {
|
|
1640
|
+
readonly "requestId"?: string;
|
|
1641
|
+
readonly "threadId": string;
|
|
1642
|
+
readonly "message": {
|
|
1643
|
+
readonly "messageId": string;
|
|
1644
|
+
readonly "role": "user";
|
|
1645
|
+
readonly "text": string;
|
|
1646
|
+
readonly "attachments": ReadonlyArray<{
|
|
1647
|
+
readonly "type": "image";
|
|
1648
|
+
readonly "name": string;
|
|
1649
|
+
readonly "mimeType": string;
|
|
1650
|
+
readonly "sizeBytes": number;
|
|
1651
|
+
readonly "dataUrl": string;
|
|
1652
|
+
readonly "source"?: Objects_34;
|
|
1653
|
+
} | {
|
|
1654
|
+
readonly "type": "file";
|
|
1655
|
+
readonly "name": string;
|
|
1656
|
+
readonly "mimeType": string;
|
|
1657
|
+
readonly "sizeBytes": number;
|
|
1658
|
+
readonly "dataUrl": string;
|
|
1659
|
+
} | {
|
|
1660
|
+
readonly "type": "image";
|
|
1661
|
+
readonly "id": string;
|
|
1662
|
+
readonly "name": string;
|
|
1663
|
+
readonly "mimeType": string;
|
|
1664
|
+
readonly "sizeBytes": number;
|
|
1665
|
+
readonly "source"?: Objects_34 | Objects_36;
|
|
1666
|
+
} | {
|
|
1667
|
+
readonly "type": "file";
|
|
1668
|
+
readonly "id": string;
|
|
1669
|
+
readonly "name": string;
|
|
1670
|
+
readonly "mimeType": string;
|
|
1671
|
+
readonly "sizeBytes": number;
|
|
1672
|
+
readonly "source"?: {
|
|
1673
|
+
readonly "_tag": "pasted-text";
|
|
1674
|
+
} | Objects_36 | {
|
|
1675
|
+
readonly "_tag": "thread-reference";
|
|
1676
|
+
readonly "environmentId": string;
|
|
1677
|
+
readonly "threadId": string;
|
|
1678
|
+
};
|
|
1679
|
+
}>;
|
|
1680
|
+
};
|
|
1681
|
+
readonly "modelSelection"?: {
|
|
1682
|
+
readonly "instanceId": string;
|
|
1683
|
+
readonly "model": string;
|
|
1684
|
+
readonly "options"?: Union_13;
|
|
1685
|
+
};
|
|
1686
|
+
readonly "titleSeed"?: string;
|
|
1687
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
1688
|
+
readonly "interactionMode": "default" | "plan";
|
|
1689
|
+
readonly "bootstrap"?: {
|
|
1690
|
+
readonly "createThread"?: {
|
|
1691
|
+
readonly "projectId": string;
|
|
1692
|
+
readonly "title": string;
|
|
1693
|
+
readonly "modelSelection": {
|
|
1694
|
+
readonly "provider"?: unknown;
|
|
1695
|
+
readonly "instanceId"?: unknown;
|
|
1696
|
+
readonly "model": unknown;
|
|
1697
|
+
readonly "options"?: unknown;
|
|
1698
|
+
};
|
|
1699
|
+
readonly "executionSelection"?: {
|
|
1700
|
+
readonly "environmentId": string;
|
|
1701
|
+
readonly "runtimeId": string;
|
|
1702
|
+
readonly "sourceId": string;
|
|
1703
|
+
readonly "profileId": string;
|
|
1704
|
+
readonly "endpointId"?: string;
|
|
1705
|
+
readonly "optionOverrides": ReadonlyArray<{
|
|
1706
|
+
readonly "id": string;
|
|
1707
|
+
readonly "value": string | boolean;
|
|
1708
|
+
}>;
|
|
1709
|
+
readonly "expectedRevisions": {
|
|
1710
|
+
readonly "runtime": number;
|
|
1711
|
+
readonly "source": number;
|
|
1712
|
+
readonly "profile": number;
|
|
1713
|
+
readonly "endpoint"?: number;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
readonly "runtimeMode": "approval-required" | "auto-accept-edits" | "auto" | "full-access";
|
|
1717
|
+
readonly "interactionMode": "default" | "plan";
|
|
1718
|
+
readonly "nativeModeId"?: string;
|
|
1719
|
+
readonly "branch": string | null;
|
|
1720
|
+
readonly "worktreePath": string | null;
|
|
1721
|
+
readonly "startFolderId"?: string;
|
|
1722
|
+
readonly "folderIds"?: ReadonlyArray<string>;
|
|
1723
|
+
readonly "origin"?: {
|
|
1724
|
+
readonly "parentThreadId": string;
|
|
1725
|
+
readonly "delegationDepth": number;
|
|
1726
|
+
readonly "requestedBy": "agent" | "continuation";
|
|
1727
|
+
readonly "notificationPolicy"?: "wake" | "activity-only";
|
|
1728
|
+
};
|
|
1729
|
+
readonly "presetId"?: string;
|
|
1730
|
+
readonly "createdBy"?: {
|
|
1731
|
+
readonly "userId": string;
|
|
1732
|
+
readonly "displayName": string;
|
|
1733
|
+
};
|
|
1734
|
+
readonly "createdAt": string;
|
|
1735
|
+
};
|
|
1736
|
+
readonly "prepareWorktree"?: {
|
|
1737
|
+
readonly "projectCwd": string;
|
|
1738
|
+
readonly "baseBranch": string;
|
|
1739
|
+
readonly "branch"?: string;
|
|
1740
|
+
readonly "startFromOrigin"?: boolean;
|
|
1741
|
+
};
|
|
1742
|
+
readonly "runSetupScript"?: boolean;
|
|
1743
|
+
};
|
|
1744
|
+
readonly "sourceProposedPlan"?: {
|
|
1745
|
+
readonly "threadId": string;
|
|
1746
|
+
readonly "planId": string;
|
|
1747
|
+
};
|
|
1748
|
+
readonly "intentAction"?: {
|
|
1749
|
+
readonly "kind": "steer";
|
|
1750
|
+
readonly "turnId": string;
|
|
1751
|
+
readonly "commandId": string;
|
|
1752
|
+
readonly "source": "automatic";
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
export type ThreadsTurnsStartOutput = {
|
|
1756
|
+
readonly "sequence": number;
|
|
1757
|
+
readonly "status": "accepted";
|
|
1758
|
+
readonly "result"?: unknown;
|
|
1759
|
+
};
|
|
1760
|
+
export type ThreadsUserInputRespondInput = {
|
|
1761
|
+
readonly "threadId": string;
|
|
1762
|
+
readonly "requestId"?: string;
|
|
1763
|
+
readonly "userInputRequestId": string;
|
|
1764
|
+
readonly "answers": {
|
|
1765
|
+
readonly [x: string]: unknown;
|
|
1766
|
+
};
|
|
1767
|
+
readonly "attachmentsByQuestionId"?: {
|
|
1768
|
+
readonly [x: string]: ReadonlyArray<{
|
|
1769
|
+
readonly "type": "image";
|
|
1770
|
+
readonly "id": string;
|
|
1771
|
+
readonly "name": string;
|
|
1772
|
+
readonly "mimeType": string;
|
|
1773
|
+
readonly "sizeBytes": number;
|
|
1774
|
+
readonly "source"?: {
|
|
1775
|
+
readonly "_tag": "snap-shot";
|
|
1776
|
+
readonly "capturedAt": string;
|
|
1777
|
+
readonly "appName": string;
|
|
1778
|
+
readonly "windowTitle": string;
|
|
1779
|
+
readonly "accessibleText"?: string;
|
|
1780
|
+
readonly "accessibility"?: {
|
|
1781
|
+
readonly "format": "flat-text";
|
|
1782
|
+
readonly "text": string;
|
|
1783
|
+
readonly "truncated": boolean;
|
|
1784
|
+
} | {
|
|
1785
|
+
readonly "format": "element-tree";
|
|
1786
|
+
readonly "coordinateSpace": "captured-image";
|
|
1787
|
+
readonly "imageSize": {
|
|
1788
|
+
readonly "width": number;
|
|
1789
|
+
readonly "height": number;
|
|
1790
|
+
};
|
|
1791
|
+
readonly "truncated": boolean;
|
|
1792
|
+
readonly "root": Objects_37;
|
|
1793
|
+
};
|
|
1794
|
+
readonly "appIdentifier"?: string;
|
|
1795
|
+
readonly "appIconDataUrl"?: string;
|
|
1796
|
+
} | Objects_38;
|
|
1797
|
+
} | {
|
|
1798
|
+
readonly "type": "file";
|
|
1799
|
+
readonly "id": string;
|
|
1800
|
+
readonly "name": string;
|
|
1801
|
+
readonly "mimeType": string;
|
|
1802
|
+
readonly "sizeBytes": number;
|
|
1803
|
+
readonly "source"?: {
|
|
1804
|
+
readonly "_tag": "pasted-text";
|
|
1805
|
+
} | Objects_38 | {
|
|
1806
|
+
readonly "_tag": "thread-reference";
|
|
1807
|
+
readonly "environmentId": string;
|
|
1808
|
+
readonly "threadId": string;
|
|
1809
|
+
};
|
|
1810
|
+
}>;
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
export type ThreadsUserInputRespondOutput = Objects_33;
|
|
1361
1814
|
export declare const COMMUNICATION_RECORDS_READ_LIMIT = 100;
|
|
1362
1815
|
export declare const THREAD_ACTIVITIES_LIST_LIMIT = 200;
|
|
1363
1816
|
export declare const THREAD_MESSAGES_LIST_LIMIT = 100;
|
|
@@ -1376,10 +1829,20 @@ export interface PluginDataPorts {
|
|
|
1376
1829
|
readonly activities: {
|
|
1377
1830
|
readonly list: (input: ThreadsActivitiesListInput) => Promise<ThreadsActivitiesListOutput>;
|
|
1378
1831
|
};
|
|
1832
|
+
readonly update: (input: ThreadsUpdateInput) => Promise<ThreadsUpdateOutput>;
|
|
1833
|
+
readonly turns: {
|
|
1834
|
+
readonly start: (input: ThreadsTurnsStartInput) => Promise<ThreadsTurnsStartOutput>;
|
|
1835
|
+
};
|
|
1836
|
+
readonly userInput: {
|
|
1837
|
+
readonly respond: (input: ThreadsUserInputRespondInput) => Promise<ThreadsUserInputRespondOutput>;
|
|
1838
|
+
};
|
|
1379
1839
|
};
|
|
1380
1840
|
readonly projects: {
|
|
1381
1841
|
readonly list: (input: ProjectsListInput) => Promise<ProjectsListOutput>;
|
|
1382
1842
|
readonly get: (input: ProjectsGetInput) => Promise<ProjectsGetOutput>;
|
|
1843
|
+
readonly toolkits: {
|
|
1844
|
+
readonly get: (input: ProjectsToolkitsGetInput) => Promise<ProjectsToolkitsGetOutput>;
|
|
1845
|
+
};
|
|
1383
1846
|
};
|
|
1384
1847
|
readonly communication: {
|
|
1385
1848
|
readonly records: {
|
|
@@ -1416,6 +1879,18 @@ export interface PluginDataPorts {
|
|
|
1416
1879
|
readonly get: (input: MemoryRevisionsGetInput) => Promise<MemoryRevisionsGetOutput>;
|
|
1417
1880
|
};
|
|
1418
1881
|
readonly search: (input: MemorySearchInput) => Promise<MemorySearchOutput>;
|
|
1882
|
+
readonly pages: {
|
|
1883
|
+
readonly list: (input: MemoryPagesListInput) => Promise<MemoryPagesListOutput>;
|
|
1884
|
+
readonly get: (input: MemoryPagesGetInput) => Promise<MemoryPagesGetOutput>;
|
|
1885
|
+
readonly history: (input: MemoryPagesHistoryInput) => Promise<MemoryPagesHistoryOutput>;
|
|
1886
|
+
readonly create: (input: MemoryPagesCreateInput) => Promise<MemoryPagesCreateOutput>;
|
|
1887
|
+
readonly edit: (input: MemoryPagesEditInput) => Promise<MemoryPagesEditOutput>;
|
|
1888
|
+
readonly restore: (input: MemoryPagesRestoreInput) => Promise<MemoryPagesRestoreOutput>;
|
|
1889
|
+
readonly erase: (input: MemoryPagesEraseInput) => Promise<MemoryPagesEraseOutput>;
|
|
1890
|
+
};
|
|
1891
|
+
readonly pageRevisions: {
|
|
1892
|
+
readonly get: (input: MemoryPageRevisionsGetInput) => Promise<MemoryPageRevisionsGetOutput>;
|
|
1893
|
+
};
|
|
1419
1894
|
};
|
|
1420
1895
|
readonly work: {
|
|
1421
1896
|
readonly states: {
|
|
@@ -1443,5 +1918,21 @@ export interface PluginDataPorts {
|
|
|
1443
1918
|
};
|
|
1444
1919
|
};
|
|
1445
1920
|
}
|
|
1921
|
+
/** 以人的身份写的端口(`invocation.asPerson`):只有登记表代人写白名单里的几条,形状与上面同名成员相同。 */
|
|
1922
|
+
export interface PluginAsPersonPorts {
|
|
1923
|
+
readonly work: {
|
|
1924
|
+
readonly items: {
|
|
1925
|
+
readonly create: (input: WorkItemsCreateInput) => Promise<WorkItemsCreateOutput>;
|
|
1926
|
+
readonly update: (input: WorkItemsUpdateInput) => Promise<WorkItemsUpdateOutput>;
|
|
1927
|
+
};
|
|
1928
|
+
readonly relations: {
|
|
1929
|
+
readonly add: (input: WorkRelationsAddInput) => Promise<WorkRelationsAddOutput>;
|
|
1930
|
+
readonly remove: (input: WorkRelationsRemoveInput) => Promise<WorkRelationsRemoveOutput>;
|
|
1931
|
+
};
|
|
1932
|
+
readonly comments: {
|
|
1933
|
+
readonly post: (input: WorkCommentsPostInput) => Promise<WorkCommentsPostOutput>;
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1446
1937
|
export {};
|
|
1447
1938
|
//# sourceMappingURL=dataPorts.gen.d.ts.map
|