@ycodium-ai/plugin-api 0.2.3982 → 0.2.3990
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 +4 -2
- package/dist/dataPorts.gen.d.ts +40 -0
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
|
61
61
|
|
|
62
62
|
export default definePlugin({
|
|
63
63
|
id: "my-plugin",
|
|
64
|
-
apiVersion:
|
|
64
|
+
apiVersion: 77,
|
|
65
65
|
activate: (ctx) => {
|
|
66
66
|
ctx.log.info("hello");
|
|
67
67
|
|
|
@@ -338,7 +338,9 @@ update against the new types and republish.
|
|
|
338
338
|
|
|
339
339
|
<!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
|
|
340
340
|
|
|
341
|
-
The current API is **
|
|
341
|
+
The current API is **77**. This Ycodium loads plugins declaring 76 through 77.
|
|
342
|
+
|
|
343
|
+
API 77 adds ctx.threads.tasks.list to read persisted task activations with filtering and cursor pagination. Summary and last tool name are bounded display text with truncation flags; stored task text is unchanged.
|
|
342
344
|
|
|
343
345
|
API 76 replaces ExecutorInstance.events with a required events channel on each startSession input. Provider plugins must retain input.events for that session and emit every event there, remove originBindingGeneration from events, and return the original bindingGeneration when reusing a process. The testing subpath provides withTestChannels and assertGenerationSettled.
|
|
344
346
|
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -3448,6 +3448,39 @@ export type ThreadsAgentsGetOutput = {
|
|
|
3448
3448
|
readonly "errorWindow"?: Objects_56;
|
|
3449
3449
|
};
|
|
3450
3450
|
};
|
|
3451
|
+
export type ThreadsTasksListInput = {
|
|
3452
|
+
readonly "threadId": string;
|
|
3453
|
+
readonly "kind"?: "agent" | "background" | "inert";
|
|
3454
|
+
readonly "active"?: boolean;
|
|
3455
|
+
readonly "limit"?: number;
|
|
3456
|
+
readonly "after"?: string;
|
|
3457
|
+
};
|
|
3458
|
+
export type ThreadsTasksListOutput = {
|
|
3459
|
+
readonly "tasks": ReadonlyArray<{
|
|
3460
|
+
readonly "taskKey": string;
|
|
3461
|
+
readonly "activationKey": string;
|
|
3462
|
+
readonly "provider": string;
|
|
3463
|
+
readonly "taskId": string;
|
|
3464
|
+
readonly "activationSequence": number;
|
|
3465
|
+
readonly "bindingGeneration": number | null;
|
|
3466
|
+
readonly "kind": "agent" | "background" | "inert";
|
|
3467
|
+
readonly "taskType"?: string;
|
|
3468
|
+
readonly "ownerAgentId"?: string;
|
|
3469
|
+
readonly "timelineBypass"?: boolean;
|
|
3470
|
+
readonly "status": "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
3471
|
+
readonly "statusInferred": boolean;
|
|
3472
|
+
readonly "title": string;
|
|
3473
|
+
readonly "originTurnId": string | null;
|
|
3474
|
+
readonly "startedAt": string;
|
|
3475
|
+
readonly "endedAt": string | null;
|
|
3476
|
+
readonly "updatedAt": string;
|
|
3477
|
+
readonly "lastToolName"?: string;
|
|
3478
|
+
readonly "lastToolNameTruncated"?: boolean;
|
|
3479
|
+
readonly "summary"?: string;
|
|
3480
|
+
readonly "summaryTruncated"?: boolean;
|
|
3481
|
+
}>;
|
|
3482
|
+
readonly "nextCursor": string | null;
|
|
3483
|
+
};
|
|
3451
3484
|
export type ThreadsTurnChangesGetInput = {
|
|
3452
3485
|
readonly "threadId": string;
|
|
3453
3486
|
readonly "turnId": string;
|
|
@@ -8517,6 +8550,9 @@ export interface PluginDataPorts {
|
|
|
8517
8550
|
readonly list: (input: ThreadsAgentsListInput) => Promise<ThreadsAgentsListOutput>;
|
|
8518
8551
|
readonly get: (input: ThreadsAgentsGetInput) => Promise<ThreadsAgentsGetOutput>;
|
|
8519
8552
|
};
|
|
8553
|
+
readonly tasks: {
|
|
8554
|
+
readonly list: (input: ThreadsTasksListInput) => Promise<ThreadsTasksListOutput>;
|
|
8555
|
+
};
|
|
8520
8556
|
readonly getTurnChanges?: (input: ThreadsTurnChangesGetInput) => Promise<ThreadsTurnChangesGetOutput>;
|
|
8521
8557
|
readonly toolCall: {
|
|
8522
8558
|
readonly get: (input: ThreadsToolCallGetInput) => Promise<ThreadsToolCallGetOutput>;
|
|
@@ -9035,6 +9071,10 @@ export interface PluginUiDataReads {
|
|
|
9035
9071
|
readonly input: ThreadsAgentsGetInput;
|
|
9036
9072
|
readonly output: ThreadsAgentsGetOutput;
|
|
9037
9073
|
};
|
|
9074
|
+
readonly "threads.tasks.list": {
|
|
9075
|
+
readonly input: ThreadsTasksListInput;
|
|
9076
|
+
readonly output: ThreadsTasksListOutput;
|
|
9077
|
+
};
|
|
9038
9078
|
readonly "threads.turn.changes.get": {
|
|
9039
9079
|
readonly input: ThreadsTurnChangesGetInput;
|
|
9040
9080
|
readonly output: ThreadsTurnChangesGetOutput;
|