@ycodium-ai/plugin-api 0.2.3982 → 0.2.4005
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 +10 -2
- package/dist/conversationWorkEntry.d.ts +2 -0
- package/dist/conversationWorkEntry.d.ts.map +1 -1
- package/dist/dataPorts.gen.d.ts +56 -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: 80,
|
|
65
65
|
activate: (ctx) => {
|
|
66
66
|
ctx.log.info("hello");
|
|
67
67
|
|
|
@@ -338,7 +338,15 @@ 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 **80**. This Ycodium loads plugins declaring 76 through 80.
|
|
342
|
+
|
|
343
|
+
API 80 adds the optional `accountDiscovery` to `projects.machines.list` and the joined-project list: the home machine's latest account-machine publication and discovery failure (reason and time), cleared on success, so clients and agents can see why account machines are missing.
|
|
344
|
+
|
|
345
|
+
API 79 adds the optional `unavailable` list to `projects.machines.actions.list` and the `no-project-folder` refusal reason with machine and project ids on machine tasks, so a member machine without a folder of the project explains why its `project.*` presets are missing and how to attach one.
|
|
346
|
+
|
|
347
|
+
API 78 adds the optional `statusInferred` to `ConversationWorkEntry`: true when the server could only infer that a task ended, so the timeline shows its status as unknown instead of completed or failed.
|
|
348
|
+
|
|
349
|
+
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
350
|
|
|
343
351
|
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
352
|
|
|
@@ -42,6 +42,8 @@ export interface ConversationWorkEntry {
|
|
|
42
42
|
readonly turnId?: string | null | undefined;
|
|
43
43
|
readonly itemType?: string | undefined;
|
|
44
44
|
readonly toolLifecycleStatus?: string | undefined;
|
|
45
|
+
/** 服务器只能推断任务已结束时显示状态未知,不当作完成或失败。 */
|
|
46
|
+
readonly statusInferred?: boolean | undefined;
|
|
45
47
|
readonly sourceActivityKind?: string | undefined;
|
|
46
48
|
readonly taskId?: string | undefined;
|
|
47
49
|
readonly agentRole?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationWorkEntry.d.ts","sourceRoot":"","sources":["../src/conversationWorkEntry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACtD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,G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CAAC;QACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC9C,GACD,SAAS,CAAC;IACd,wCAAwC;IACxC,QAAQ,CAAC,MAAM,CAAC,EACZ;QACE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACtC,GACD,SAAS,CAAC;IACd,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,qBAAqB,EAAE,GAAG,SAAS,CAAC;CACzE"}
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -101,6 +101,10 @@ type Objects_11 = {
|
|
|
101
101
|
readonly "excludedEnvironmentIds": ReadonlyArray<string>;
|
|
102
102
|
readonly "allowedEnvironmentIds": ReadonlyArray<string>;
|
|
103
103
|
};
|
|
104
|
+
type AccountMachineDiscoveryFailure = {
|
|
105
|
+
readonly "reason": "missing_bearer" | "invalid_bearer" | "invalid_dpop" | "invalid_relay_access_ticket" | "not_authorized" | "environment_credential_invalid" | "machine_link_missing" | "machine_key_mismatch" | "machine_account_disabled" | "request_failed";
|
|
106
|
+
readonly "at": string;
|
|
107
|
+
};
|
|
104
108
|
type Arrays_ = ReadonlyArray<string>;
|
|
105
109
|
type Arrays_1 = ReadonlyArray<string>;
|
|
106
110
|
type Objects_13 = {
|
|
@@ -1173,6 +1177,10 @@ type Objects_207 = {
|
|
|
1173
1177
|
readonly "blur": number;
|
|
1174
1178
|
};
|
|
1175
1179
|
type Union_1 = Objects_2 | Objects_3 | Objects_4;
|
|
1180
|
+
type AccountMachineDiscoveryStatus = {
|
|
1181
|
+
readonly "publish"?: AccountMachineDiscoveryFailure;
|
|
1182
|
+
readonly "discover"?: AccountMachineDiscoveryFailure;
|
|
1183
|
+
};
|
|
1176
1184
|
type Objects_12 = {
|
|
1177
1185
|
readonly "actionId": string;
|
|
1178
1186
|
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "project-task";
|
|
@@ -2850,6 +2858,7 @@ export type ProjectsMachinesListInput = {
|
|
|
2850
2858
|
readonly "includeModels"?: boolean;
|
|
2851
2859
|
};
|
|
2852
2860
|
export type ProjectsMachinesListOutput = {
|
|
2861
|
+
readonly "accountDiscovery"?: AccountMachineDiscoveryStatus;
|
|
2853
2862
|
readonly "items": ReadonlyArray<{
|
|
2854
2863
|
readonly "platform"?: {
|
|
2855
2864
|
readonly "os": "darwin" | "linux" | "windows" | "unknown";
|
|
@@ -2865,6 +2874,7 @@ export type ProjectsMachinesListOutput = {
|
|
|
2865
2874
|
readonly "description"?: string;
|
|
2866
2875
|
readonly "variants"?: Arrays_1;
|
|
2867
2876
|
}>;
|
|
2877
|
+
readonly "projectFolderAttached"?: boolean;
|
|
2868
2878
|
readonly "environmentId": string;
|
|
2869
2879
|
readonly "name": string;
|
|
2870
2880
|
readonly "online": boolean;
|
|
@@ -2964,6 +2974,10 @@ export type ProjectsMachinesActionsListInput = {
|
|
|
2964
2974
|
};
|
|
2965
2975
|
export type ProjectsMachinesActionsListOutput = {
|
|
2966
2976
|
readonly "items": ReadonlyArray<Objects_12>;
|
|
2977
|
+
readonly "unavailable"?: ReadonlyArray<{
|
|
2978
|
+
readonly "actionPattern": "project.*";
|
|
2979
|
+
readonly "reason": "no-project-folder";
|
|
2980
|
+
}>;
|
|
2967
2981
|
};
|
|
2968
2982
|
export type ThreadsListInput = {
|
|
2969
2983
|
readonly "collection"?: "page" | "all";
|
|
@@ -3448,6 +3462,39 @@ export type ThreadsAgentsGetOutput = {
|
|
|
3448
3462
|
readonly "errorWindow"?: Objects_56;
|
|
3449
3463
|
};
|
|
3450
3464
|
};
|
|
3465
|
+
export type ThreadsTasksListInput = {
|
|
3466
|
+
readonly "threadId": string;
|
|
3467
|
+
readonly "kind"?: "agent" | "background" | "inert";
|
|
3468
|
+
readonly "active"?: boolean;
|
|
3469
|
+
readonly "limit"?: number;
|
|
3470
|
+
readonly "after"?: string;
|
|
3471
|
+
};
|
|
3472
|
+
export type ThreadsTasksListOutput = {
|
|
3473
|
+
readonly "tasks": ReadonlyArray<{
|
|
3474
|
+
readonly "taskKey": string;
|
|
3475
|
+
readonly "activationKey": string;
|
|
3476
|
+
readonly "provider": string;
|
|
3477
|
+
readonly "taskId": string;
|
|
3478
|
+
readonly "activationSequence": number;
|
|
3479
|
+
readonly "bindingGeneration": number | null;
|
|
3480
|
+
readonly "kind": "agent" | "background" | "inert";
|
|
3481
|
+
readonly "taskType"?: string;
|
|
3482
|
+
readonly "ownerAgentId"?: string;
|
|
3483
|
+
readonly "timelineBypass"?: boolean;
|
|
3484
|
+
readonly "status": "pending" | "running" | "waiting" | "idle" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
3485
|
+
readonly "statusInferred": boolean;
|
|
3486
|
+
readonly "title": string;
|
|
3487
|
+
readonly "originTurnId": string | null;
|
|
3488
|
+
readonly "startedAt": string;
|
|
3489
|
+
readonly "endedAt": string | null;
|
|
3490
|
+
readonly "updatedAt": string;
|
|
3491
|
+
readonly "lastToolName"?: string;
|
|
3492
|
+
readonly "lastToolNameTruncated"?: boolean;
|
|
3493
|
+
readonly "summary"?: string;
|
|
3494
|
+
readonly "summaryTruncated"?: boolean;
|
|
3495
|
+
}>;
|
|
3496
|
+
readonly "nextCursor": string | null;
|
|
3497
|
+
};
|
|
3451
3498
|
export type ThreadsTurnChangesGetInput = {
|
|
3452
3499
|
readonly "threadId": string;
|
|
3453
3500
|
readonly "turnId": string;
|
|
@@ -7232,6 +7279,7 @@ export type CommunicationPeopleCurrentOutput = {
|
|
|
7232
7279
|
readonly "person": Union_34 | null;
|
|
7233
7280
|
};
|
|
7234
7281
|
export type ProjectsMachinesListEncodedOutput = {
|
|
7282
|
+
readonly "accountDiscovery"?: AccountMachineDiscoveryStatus;
|
|
7235
7283
|
readonly "items": ReadonlyArray<{
|
|
7236
7284
|
readonly "platform"?: {
|
|
7237
7285
|
readonly "os": "darwin" | "linux" | "windows" | "unknown";
|
|
@@ -7255,6 +7303,7 @@ export type ProjectsMachinesListEncodedOutput = {
|
|
|
7255
7303
|
readonly "description"?: string;
|
|
7256
7304
|
readonly "variants"?: Arrays_1;
|
|
7257
7305
|
}>;
|
|
7306
|
+
readonly "projectFolderAttached"?: boolean;
|
|
7258
7307
|
readonly "environmentId": string;
|
|
7259
7308
|
readonly "name": string;
|
|
7260
7309
|
readonly "online": boolean;
|
|
@@ -8517,6 +8566,9 @@ export interface PluginDataPorts {
|
|
|
8517
8566
|
readonly list: (input: ThreadsAgentsListInput) => Promise<ThreadsAgentsListOutput>;
|
|
8518
8567
|
readonly get: (input: ThreadsAgentsGetInput) => Promise<ThreadsAgentsGetOutput>;
|
|
8519
8568
|
};
|
|
8569
|
+
readonly tasks: {
|
|
8570
|
+
readonly list: (input: ThreadsTasksListInput) => Promise<ThreadsTasksListOutput>;
|
|
8571
|
+
};
|
|
8520
8572
|
readonly getTurnChanges?: (input: ThreadsTurnChangesGetInput) => Promise<ThreadsTurnChangesGetOutput>;
|
|
8521
8573
|
readonly toolCall: {
|
|
8522
8574
|
readonly get: (input: ThreadsToolCallGetInput) => Promise<ThreadsToolCallGetOutput>;
|
|
@@ -9035,6 +9087,10 @@ export interface PluginUiDataReads {
|
|
|
9035
9087
|
readonly input: ThreadsAgentsGetInput;
|
|
9036
9088
|
readonly output: ThreadsAgentsGetOutput;
|
|
9037
9089
|
};
|
|
9090
|
+
readonly "threads.tasks.list": {
|
|
9091
|
+
readonly input: ThreadsTasksListInput;
|
|
9092
|
+
readonly output: ThreadsTasksListOutput;
|
|
9093
|
+
};
|
|
9038
9094
|
readonly "threads.turn.changes.get": {
|
|
9039
9095
|
readonly input: ThreadsTurnChangesGetInput;
|
|
9040
9096
|
readonly output: ThreadsTurnChangesGetOutput;
|