@ycodium-ai/plugin-api 0.2.4005 → 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 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: 80,
64
+ apiVersion: 81,
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 **80**. This Ycodium loads plugins declaring 76 through 80.
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.
342
344
 
343
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.
344
346
 
@@ -1180,6 +1180,11 @@ type Union_1 = Objects_2 | Objects_3 | Objects_4;
1180
1180
  type AccountMachineDiscoveryStatus = {
1181
1181
  readonly "publish"?: AccountMachineDiscoveryFailure;
1182
1182
  readonly "discover"?: AccountMachineDiscoveryFailure;
1183
+ readonly "recovery"?: {
1184
+ readonly "state": "reconnecting" | "login_required" | "exhausted" | "unavailable";
1185
+ readonly "attempts"?: number;
1186
+ readonly "nextAttemptAt"?: string;
1187
+ };
1183
1188
  };
1184
1189
  type Objects_12 = {
1185
1190
  readonly "actionId": string;