@ycodium-ai/plugin-api 0.2.3990 → 0.2.4021
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 +21 -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: 81,
|
|
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 **81**. This Ycodium loads plugins declaring 76 through 81.
|
|
342
|
+
|
|
343
|
+
API 81 adds the optional `recovery` to `accountDiscovery` in `projects.machines.list` and the joined-project list: whether the home machine is automatically renewing a rejected Relay credential, waits for the person to sign in again, or has stopped retrying.
|
|
344
|
+
|
|
345
|
+
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.
|
|
346
|
+
|
|
347
|
+
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.
|
|
348
|
+
|
|
349
|
+
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.
|
|
342
350
|
|
|
343
351
|
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.
|
|
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,GAAG,SAAS,CAAC;IACxC,kCAA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Aa,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,15 @@ 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
|
+
readonly "recovery"?: {
|
|
1184
|
+
readonly "state": "reconnecting" | "login_required" | "exhausted" | "unavailable";
|
|
1185
|
+
readonly "attempts"?: number;
|
|
1186
|
+
readonly "nextAttemptAt"?: string;
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1176
1189
|
type Objects_12 = {
|
|
1177
1190
|
readonly "actionId": string;
|
|
1178
1191
|
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "project-task";
|
|
@@ -2850,6 +2863,7 @@ export type ProjectsMachinesListInput = {
|
|
|
2850
2863
|
readonly "includeModels"?: boolean;
|
|
2851
2864
|
};
|
|
2852
2865
|
export type ProjectsMachinesListOutput = {
|
|
2866
|
+
readonly "accountDiscovery"?: AccountMachineDiscoveryStatus;
|
|
2853
2867
|
readonly "items": ReadonlyArray<{
|
|
2854
2868
|
readonly "platform"?: {
|
|
2855
2869
|
readonly "os": "darwin" | "linux" | "windows" | "unknown";
|
|
@@ -2865,6 +2879,7 @@ export type ProjectsMachinesListOutput = {
|
|
|
2865
2879
|
readonly "description"?: string;
|
|
2866
2880
|
readonly "variants"?: Arrays_1;
|
|
2867
2881
|
}>;
|
|
2882
|
+
readonly "projectFolderAttached"?: boolean;
|
|
2868
2883
|
readonly "environmentId": string;
|
|
2869
2884
|
readonly "name": string;
|
|
2870
2885
|
readonly "online": boolean;
|
|
@@ -2964,6 +2979,10 @@ export type ProjectsMachinesActionsListInput = {
|
|
|
2964
2979
|
};
|
|
2965
2980
|
export type ProjectsMachinesActionsListOutput = {
|
|
2966
2981
|
readonly "items": ReadonlyArray<Objects_12>;
|
|
2982
|
+
readonly "unavailable"?: ReadonlyArray<{
|
|
2983
|
+
readonly "actionPattern": "project.*";
|
|
2984
|
+
readonly "reason": "no-project-folder";
|
|
2985
|
+
}>;
|
|
2967
2986
|
};
|
|
2968
2987
|
export type ThreadsListInput = {
|
|
2969
2988
|
readonly "collection"?: "page" | "all";
|
|
@@ -7265,6 +7284,7 @@ export type CommunicationPeopleCurrentOutput = {
|
|
|
7265
7284
|
readonly "person": Union_34 | null;
|
|
7266
7285
|
};
|
|
7267
7286
|
export type ProjectsMachinesListEncodedOutput = {
|
|
7287
|
+
readonly "accountDiscovery"?: AccountMachineDiscoveryStatus;
|
|
7268
7288
|
readonly "items": ReadonlyArray<{
|
|
7269
7289
|
readonly "platform"?: {
|
|
7270
7290
|
readonly "os": "darwin" | "linux" | "windows" | "unknown";
|
|
@@ -7288,6 +7308,7 @@ export type ProjectsMachinesListEncodedOutput = {
|
|
|
7288
7308
|
readonly "description"?: string;
|
|
7289
7309
|
readonly "variants"?: Arrays_1;
|
|
7290
7310
|
}>;
|
|
7311
|
+
readonly "projectFolderAttached"?: boolean;
|
|
7291
7312
|
readonly "environmentId": string;
|
|
7292
7313
|
readonly "name": string;
|
|
7293
7314
|
readonly "online": boolean;
|