@ycodium-ai/plugin-api 0.2.3114 → 0.2.3120

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
@@ -255,6 +255,15 @@ over these kinds must handle the new member. `ctx.communication.records.send` ca
255
255
  `communication.read` can read who is looking (`person` is `null` once the viewer no longer qualifies); the
256
256
  handle expires with the call, and a stale handle is refused with the new `viewer-expired` reason.
257
257
 
258
+ Create and fork use `ctx.threads.create(input)` and `ctx.threads.fork(input)`. Declare
259
+ `thread.create` or `thread.fork`, keep the old command id as `requestId`, and omit `type`,
260
+ `createdAt` and `createdBy`. Both return `{ sequence, status }`. Create grants execution ownership;
261
+ when it names an `origin`, the parent must be admitted and the child cannot have a looser runtime
262
+ mode. Fork checks the source thread, copies messages before a user-message cut point with fresh
263
+ ids, and grants execution ownership only when the plugin owns the source. Fork keeps the source's
264
+ runtime mode without creating a parent-child relationship. Generic dispatch remains available
265
+ for these two commands while existing first-party callers migrate.
266
+
258
267
  API 11 moves starting a turn, changing thread metadata and answering questions to data ports. `ctx.commands.dispatch` no
259
268
  longer takes `thread.turn.start`, `thread.meta.update` or `thread.user-input.respond`: call `ctx.threads.turns.start(input)` and
260
269
  `ctx.threads.update(input)` and `ctx.threads.userInput.respond(input)` instead, still declaring those types in `commands.dispatch`. The input is the