@ycodium-ai/plugin-api 0.2.4368 → 0.2.4394

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
@@ -514,7 +514,13 @@ republish.
514
514
 
515
515
  <!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
516
516
 
517
- The current API is **112**. This Ycodium loads plugins declaring 111 through 112.
517
+ The current API is **114**. This Ycodium loads plugins declaring 111 through 114.
518
+
519
+ API 114 adds an optional `memberId` to the `remote-agent` variant of `PluginToolInvocation.caller`: the member the member machine signed for the call and the host verified. It is absent for an older member machine or a machine-level call, and a tool that decides by member must refuse then.
520
+
521
+ API 113 adds `ctx.projects.machines.byMachine.list()` and `ctx.projects.machines.joined.health()`, and optional `seatHealth` on the machines `ctx.projects.machines.list()` returns: how a machine is doing at pulling a project's work (last success, last failure code, next retry). All three need members.read.
522
+
523
+ API 113 adds an optional `roomMemberId` to the work line rows plugins read through `work.lines`: the member whose agent is the line's group conversation, unchanged when the lead is handed over.
518
524
 
519
525
  API 112 adds optional requestSummary to member runtime reports
520
526
 
@@ -107,6 +107,11 @@ type AccountMachineDiscoveryFailure = {
107
107
  };
108
108
  type Arrays_ = ReadonlyArray<string>;
109
109
  type Arrays_1 = ReadonlyArray<string>;
110
+ type SeatHealthFailure = {
111
+ readonly "at": string;
112
+ readonly "code": "credential-rejected" | "mcp-failed" | "invalid-pending" | "local-read-failed" | "dispatch-failed" | "wake-held" | "storage" | "unreachable";
113
+ readonly "httpStatus"?: number;
114
+ };
110
115
  type Objects_13 = {
111
116
  readonly "state": "unknown" | "confirmed" | "stale" | "failed";
112
117
  readonly "confirmedAt"?: string;
@@ -1235,6 +1240,13 @@ type Objects_12 = {
1235
1240
  readonly "variants"?: Arrays_;
1236
1241
  readonly "reversible": boolean;
1237
1242
  };
1243
+ type SeatHealth = {
1244
+ readonly "lastSuccessAt"?: string;
1245
+ readonly "lastFailure"?: SeatHealthFailure;
1246
+ readonly "state"?: "active" | "rejected" | "checking" | "home-update-required";
1247
+ readonly "nextAttemptAt"?: string;
1248
+ readonly "consecutiveFailures"?: number;
1249
+ };
1238
1250
  type Objects_145 = {
1239
1251
  readonly "instanceId"?: string;
1240
1252
  readonly "variant"?: string;
@@ -1724,6 +1736,21 @@ type Objects_7 = {
1724
1736
  readonly "leftover"?: boolean | undefined;
1725
1737
  }> | undefined;
1726
1738
  };
1739
+ type ProjectMachineWorking = {
1740
+ readonly "projectId": string;
1741
+ readonly "projectTitle": string;
1742
+ readonly "admittedBy"?: "join-code" | "client-broker" | "account";
1743
+ readonly "seatHealth"?: SeatHealth;
1744
+ };
1745
+ type ProjectMachineJoinedHealth = {
1746
+ readonly "admittedBy"?: "join-code" | "client-broker" | "account";
1747
+ readonly "homeEnvironmentId": string;
1748
+ readonly "homeName"?: string;
1749
+ readonly "projectTitle"?: string;
1750
+ readonly "projectId": string;
1751
+ readonly "state": "active" | "rejected" | "checking" | "home-update-required";
1752
+ readonly "health"?: SeatHealth;
1753
+ };
1727
1754
  type Objects_144 = {
1728
1755
  readonly "environmentId": string;
1729
1756
  readonly "actionId": string;
@@ -1899,6 +1926,15 @@ type Objects_186 = {
1899
1926
  readonly "waitSpans"?: Union_63;
1900
1927
  readonly "runSegments"?: Union_10;
1901
1928
  };
1929
+ type ProjectMachineByMachine = {
1930
+ readonly "environmentId": string;
1931
+ readonly "name": string;
1932
+ readonly "online": boolean;
1933
+ readonly "connection": "stream" | "polling" | "none";
1934
+ readonly "lastSeenAt"?: string;
1935
+ readonly "memberUpdateRequired"?: true;
1936
+ readonly "projects": ReadonlyArray<ProjectMachineWorking>;
1937
+ };
1902
1938
  type Objects_18 = {
1903
1939
  readonly "instanceId": string;
1904
1940
  readonly "model": string;
@@ -1984,6 +2020,7 @@ type Objects_155 = {
1984
2020
  readonly "leadMemberId": string | null;
1985
2021
  readonly "memberIds": ReadonlyArray<string>;
1986
2022
  readonly "threadId": string | null;
2023
+ readonly "roomMemberId"?: string;
1987
2024
  readonly "version": number;
1988
2025
  readonly "createdBy": Union_48;
1989
2026
  readonly "createdAt": string;
@@ -2967,6 +3004,7 @@ export type ProjectsMachinesListOutput = {
2967
3004
  readonly "description"?: string;
2968
3005
  readonly "variants"?: Arrays_1;
2969
3006
  }>;
3007
+ readonly "seatHealth"?: SeatHealth;
2970
3008
  readonly "projectFolderAttached"?: boolean;
2971
3009
  readonly "environmentId": string;
2972
3010
  readonly "name": string;
@@ -3006,12 +3044,19 @@ export type ProjectsMachinesListOutput = {
3006
3044
  readonly "connection"?: "stream" | "polling" | "none";
3007
3045
  readonly "lastSeenAt"?: string;
3008
3046
  readonly "excluded": boolean;
3047
+ readonly "seatHealth"?: SeatHealth;
3009
3048
  readonly "removed"?: boolean;
3010
3049
  readonly "keyChangePending"?: boolean;
3011
3050
  readonly "pendingAdmission"?: boolean;
3012
3051
  readonly "replacementName"?: string;
3013
3052
  }>;
3014
3053
  };
3054
+ export type ProjectsMachinesByMachineListInput = {
3055
+ readonly "environmentId"?: string;
3056
+ };
3057
+ export type ProjectsMachinesByMachineListOutput = {
3058
+ readonly "machines": ReadonlyArray<ProjectMachineByMachine>;
3059
+ };
3015
3060
  export type ProjectsMachinesJoinCodeCreateInput = {
3016
3061
  readonly "projectId": string;
3017
3062
  readonly "automaticEnvironmentId"?: string;
@@ -3041,6 +3086,19 @@ export type ProjectsMachinesJoinOutput = {
3041
3086
  readonly "homeEnvironmentId": string;
3042
3087
  readonly "projectId": string;
3043
3088
  };
3089
+ export type ProjectsMachinesJoinedHealthInput = {};
3090
+ export type ProjectsMachinesJoinedHealthOutput = {
3091
+ readonly "items": ReadonlyArray<ProjectMachineJoinedHealth>;
3092
+ readonly "accountConnections"?: ReadonlyArray<{
3093
+ readonly "homeEnvironmentId": string;
3094
+ readonly "homeName": string;
3095
+ readonly "connected": boolean;
3096
+ readonly "reason"?: "invalid-proof" | "different-account" | "machine-removed" | "key-confirmation-required" | "key-kept" | "home-update-required" | "local-key-confirmation-required" | "local-key-kept" | "no-reachable-address" | "manual-confirmation-required" | "local-manual-confirmation-required";
3097
+ readonly "lastConnectedAt"?: string;
3098
+ readonly "nextAttemptAt"?: string;
3099
+ readonly "consecutiveFailures"?: number;
3100
+ }>;
3101
+ };
3044
3102
  export type ProjectsMachinesLeaveInput = {
3045
3103
  readonly "seatId": string;
3046
3104
  };
@@ -7498,6 +7556,7 @@ export type ProjectsMachinesListEncodedOutput = {
7498
7556
  readonly "description"?: string;
7499
7557
  readonly "variants"?: Arrays_1;
7500
7558
  }>;
7559
+ readonly "seatHealth"?: SeatHealth;
7501
7560
  readonly "projectFolderAttached"?: boolean;
7502
7561
  readonly "environmentId": string;
7503
7562
  readonly "name": string;
@@ -7537,6 +7596,7 @@ export type ProjectsMachinesListEncodedOutput = {
7537
7596
  readonly "connection"?: "stream" | "polling" | "none";
7538
7597
  readonly "lastSeenAt"?: string;
7539
7598
  readonly "excluded": boolean;
7599
+ readonly "seatHealth"?: SeatHealth;
7540
7600
  readonly "removed"?: boolean;
7541
7601
  readonly "keyChangePending"?: boolean;
7542
7602
  readonly "pendingAdmission"?: boolean;
@@ -8934,11 +8994,17 @@ export interface PluginDataPorts {
8934
8994
  readonly resolve: (input: ProjectsMachinesRegistrationResolveInput) => Promise<ProjectsMachinesRegistrationResolveOutput>;
8935
8995
  };
8936
8996
  readonly list: (input: ProjectsMachinesListInput) => Promise<ProjectsMachinesListOutput>;
8997
+ readonly byMachine: {
8998
+ readonly list: (input: ProjectsMachinesByMachineListInput) => Promise<ProjectsMachinesByMachineListOutput>;
8999
+ };
8937
9000
  readonly joinCode: {
8938
9001
  readonly create: (input: ProjectsMachinesJoinCodeCreateInput) => Promise<ProjectsMachinesJoinCodeCreateOutput>;
8939
9002
  };
8940
9003
  readonly remove: (input: ProjectsMachinesRemoveInput) => Promise<ProjectsMachinesRemoveOutput>;
8941
9004
  readonly join: (input: ProjectsMachinesJoinInput) => Promise<ProjectsMachinesJoinOutput>;
9005
+ readonly joined: {
9006
+ readonly health: (input: ProjectsMachinesJoinedHealthInput) => Promise<ProjectsMachinesJoinedHealthOutput>;
9007
+ };
8942
9008
  readonly leave: (input: ProjectsMachinesLeaveInput) => Promise<ProjectsMachinesLeaveOutput>;
8943
9009
  readonly actions: {
8944
9010
  readonly list: (input: ProjectsMachinesActionsListInput) => Promise<ProjectsMachinesActionsListOutput>;
@@ -9290,6 +9356,14 @@ export interface PluginUiDataReads {
9290
9356
  readonly input: ProjectsMachinesListInput;
9291
9357
  readonly output: ProjectsMachinesListEncodedOutput;
9292
9358
  };
9359
+ readonly "projects.machines.byMachine.list": {
9360
+ readonly input: ProjectsMachinesByMachineListInput;
9361
+ readonly output: ProjectsMachinesByMachineListOutput;
9362
+ };
9363
+ readonly "projects.machines.joined.health": {
9364
+ readonly input: ProjectsMachinesJoinedHealthInput;
9365
+ readonly output: ProjectsMachinesJoinedHealthOutput;
9366
+ };
9293
9367
  readonly "projects.machines.actions.list": {
9294
9368
  readonly input: ProjectsMachinesActionsListInput;
9295
9369
  readonly output: ProjectsMachinesActionsListOutput;