@ycodium-ai/plugin-api 0.2.3817 → 0.2.3851

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: 60,
64
+ apiVersion: 63,
65
65
  activate: (ctx) => {
66
66
  ctx.log.info("hello");
67
67
 
@@ -290,12 +290,30 @@ sessions continue using the streaming process interface.
290
290
 
291
291
  ## THERE WILL BE COMPATIBILITY-BREAKING CHANGES
292
292
 
293
- The definition's `apiVersion` is a closed window: the host loads 60, and refuses every other
293
+ The definition's `apiVersion` is a closed window: the host loads 63, and refuses every other
294
294
  value. Declare the version your plugin targets as a literal; do not read the host's
295
- `PLUGIN_API_VERSION` to make the declaration automatically match. The current API is 60. Plugins
295
+ `PLUGIN_API_VERSION` to make the declaration automatically match. The current API is 63. Plugins
296
296
  targeting an older API are refused before activation; the message names the version the plugin
297
297
  declared and the one this Ycodium loads, and the plugin card offers an update. A plugin that
298
- declares a version newer than 60 is refused until Ycodium itself is updated, with no update button.
298
+ declares a version newer than 63 is refused until Ycodium itself is updated, with no update button.
299
+
300
+ API 63 adds execution-machine consent for machine tasks. A local agent can run on its own machine
301
+ without approval. Cross-machine tasks require the executing owner's explicit policy or a task-bound,
302
+ single-use approval receipt. Human-only machineSettings.machineTasks.approve issues the receipt on
303
+ the executing machine; work.machineTasks.respond carries optional approval and rememberProject.
304
+ Project trust is optional machineTaskConfirmation.remoteProjectTrust, bound to both the home machine
305
+ and project. Cross-machine same-account inference awaits ADR-0041.
306
+
307
+ API 62 adds `ctx.schedules.list` and `ctx.schedules.runs.list`, reads of a project's schedules, and an optional `repeat`
308
+ on scheduled wake-up reads. Plugins cannot create or change schedules.
309
+
310
+ API 61 lets a client admit the machines it is connected to in the background, without the Machines settings
311
+ section being open. Every change is additive.
312
+
313
+ - `projects.machines.list` output gains an optional `removedEnvironmentIds`: machines a person removed from the
314
+ project, which automatic admission skips.
315
+ - `projects.machines.joinCode.create` input gains an optional `automaticEnvironmentId`: the code is bound to that
316
+ machine and cannot undo a person's removal. Omit it for an explicit invitation.
299
317
 
300
318
  API 60 registers this machine's runtime, proxy and provider maintenance in the data capability table. Every
301
319
  change is additive.
@@ -312,8 +330,7 @@ change is additive.
312
330
  - Machine actions add `runtime.restart` and `runtime.upgrade` (`MachineActionKind` gains `restart` and `upgrade`),
313
331
  and the action input takes an optional `targetVersion`. Action lists drop entries this build does not recognise
314
332
  instead of failing.
315
-
316
- API 60 also adds the skill directory. Every change is additive.
333
+ API 60 also adds the skill directory. Every change is additive.
317
334
 
318
335
  - `ctx.plugins.skillDirectory.search({ query, limit? })` searches skills.sh; each result names the GitHub
319
336
  `repository` it installs from, or `null`.
@@ -1125,7 +1142,7 @@ An empty page with a cursor still continues. All failures propagate unchanged, i
1125
1142
  `ThreadNotFoundError` when the thread is missing; use `isThreadNotFound(error)` to identify it.
1126
1143
  `ctx.communication.inbox.read` is gone; that port always rejected a plugin, because only the agent
1127
1144
  in the thread has its own inbox. Plugins targeting these earlier versions are refused on the current host;
1128
- the minimum version is 60.
1145
+ the minimum version is 63.
1129
1146
 
1130
1147
  API 8 changed what the UI gets for a communication record. `ConversationCommunicationRecord`
1131
1148
  (from the conversation host's `useCommunicationRecord`) and `CommunicationViewExchange` carry `bodyState`, and their