@ycodium-ai/plugin-api 0.2.4162 → 0.2.4221

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
@@ -408,7 +408,13 @@ update against the new types and republish.
408
408
 
409
409
  <!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
410
410
 
411
- The current API is **99**. This Ycodium loads plugins declaring 96 through 99.
411
+ The current API is **102**. This Ycodium loads plugins declaring 96 through 102.
412
+
413
+ API 102 Installed plugin reads accept optional entryId, limit and cursor and return optional nextCursor. Stale enabled-state revisions expose suppliedRevision and currentRevision. Contribution summaries include prompt sections, contexts, tool guards, UI seats, agent presets and session projections.
414
+
415
+ API 101 derivedState handles read their own writes: after this plugin's ctx.events.append resolves, get() without options already includes that fact. get({ throughSequence }) guarantees at least that sequence and may include later events.
416
+
417
+ API 100 Work history adds the verb dispatch-decided with a dispatch change (outcome, optional reason, detail, threadId and memberId, and the machine's environmentId): what the machine an item is assigned to concluded about it.
412
418
 
413
419
  API 99 Communication stages include processed with optional processed input. Session stop accepts an optional context-change reason; restart turns retain their original sourceBlocks.
414
420
 
@@ -656,7 +656,7 @@ type Union_41 = {
656
656
  } | undefined;
657
657
  type Union_42 = ReadonlyArray<string> | undefined;
658
658
  type Arrays_25 = ReadonlyArray<{
659
- readonly "kind": "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter";
659
+ readonly "kind": "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections";
660
660
  readonly "name": string;
661
661
  }>;
662
662
  type Union_43 = {
@@ -5018,6 +5018,9 @@ export type PluginsProjectConfigUpdateOutput = {
5018
5018
  };
5019
5019
  export type PluginsInstalledListInput = {
5020
5020
  readonly "includeRuntimeStats"?: boolean;
5021
+ readonly "entryId"?: string;
5022
+ readonly "limit"?: number;
5023
+ readonly "cursor"?: string;
5021
5024
  };
5022
5025
  export type PluginsInstalledListOutput = {
5023
5026
  readonly "plugins": ReadonlyArray<{
@@ -5160,6 +5163,7 @@ export type PluginsInstalledListOutput = {
5160
5163
  } | undefined;
5161
5164
  readonly "executors"?: ReadonlyArray<unknown> | undefined;
5162
5165
  }>;
5166
+ readonly "nextCursor"?: string | null;
5163
5167
  };
5164
5168
  export type PluginsInstalledSetEnabledInput = {
5165
5169
  readonly "entryId": string;
@@ -6121,7 +6125,7 @@ export type WorkHistoryListOutput = {
6121
6125
  readonly "kind": "item" | "comment" | "state" | "label" | "relation" | "work-line" | "member";
6122
6126
  readonly "id": string;
6123
6127
  };
6124
- readonly "verb": "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped";
6128
+ readonly "verb": "created" | "updated" | "claimed" | "commented" | "relation-added" | "relation-removed" | "archived" | "restored" | "paused" | "resumed" | "trial-passed" | "trial-failed" | "trial-skipped" | "dispatch-decided";
6125
6129
  readonly "changes": ReadonlyArray<{
6126
6130
  readonly "field": "title" | "description" | "body";
6127
6131
  readonly "oldRevision": number | null;
@@ -6172,6 +6176,14 @@ export type WorkHistoryListOutput = {
6172
6176
  } | {
6173
6177
  readonly "field": "note";
6174
6178
  readonly "text": string;
6179
+ } | {
6180
+ readonly "field": "dispatch";
6181
+ readonly "environmentId": string;
6182
+ readonly "outcome": "thread-opened" | "woken" | "skipped";
6183
+ readonly "reason"?: "busy" | "project-not-ready" | "thread-unavailable" | "member-not-ready" | "binding-changed";
6184
+ readonly "detail"?: "no-model" | "no-workspace";
6185
+ readonly "threadId"?: string;
6186
+ readonly "memberId"?: string;
6175
6187
  }>;
6176
6188
  }>;
6177
6189
  readonly "nextCursor": string | null;
@@ -8457,6 +8469,7 @@ export type PluginsInstalledListEncodedOutput = {
8457
8469
  } | undefined;
8458
8470
  readonly "executors"?: ReadonlyArray<unknown> | undefined;
8459
8471
  }>;
8472
+ readonly "nextCursor"?: string | null;
8460
8473
  };
8461
8474
  export type SchedulesListEncodedOutput = {
8462
8475
  readonly "schedules": ReadonlyArray<{