@ycodium-ai/plugin-api 0.2.3908 → 0.2.3927
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 +13 -5
- package/dist/dataPorts.gen.d.ts +701 -617
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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:
|
|
64
|
+
apiVersion: 68,
|
|
65
65
|
activate: (ctx) => {
|
|
66
66
|
ctx.log.info("hello");
|
|
67
67
|
|
|
@@ -290,12 +290,20 @@ 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
|
|
293
|
+
The definition's `apiVersion` is a closed window: the host loads 68, 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
|
|
295
|
+
`PLUGIN_API_VERSION` to make the declaration automatically match. The current API is 68. 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
|
|
298
|
+
declares a version newer than 68 is refused until Ycodium itself is updated, with no update button.
|
|
299
|
+
|
|
300
|
+
API 68 adds the same-account machine ports from ADR-0041. `projects.machines.policy.get` /
|
|
301
|
+
`projects.machines.policy.set` read and save a project's same-account participation policy (`sameAccount` is
|
|
302
|
+
`all` or `listed`, with `allowedEnvironmentIds` and `excludedEnvironmentIds`); `projects.machines.registration.resolve`
|
|
303
|
+
confirms or rejects a machine registration that is waiting for the owner; `projects.machines.account.remove` and
|
|
304
|
+
`projects.machines.account.restore` take an account machine out of a project and bring it back. `projects.machines.list`
|
|
305
|
+
rows gain an optional `admittedBy` (`join-code`, `client-broker` or `account`) and an optional `accountMachines`
|
|
306
|
+
catalog, and machine task records gain an optional read-only `accountOriginEnvironmentId`. Every change is additive.
|
|
299
307
|
|
|
300
308
|
API 67 keeps tool results' media on the tool call. `threads.toolCalls` detail gains an optional `media` list of
|
|
301
309
|
attachments, the bytes no longer appear in tool data, and a delivered attachment's source gains an optional
|
|
@@ -1172,7 +1180,7 @@ An empty page with a cursor still continues. All failures propagate unchanged, i
|
|
|
1172
1180
|
`ThreadNotFoundError` when the thread is missing; use `isThreadNotFound(error)` to identify it.
|
|
1173
1181
|
`ctx.communication.inbox.read` is gone; that port always rejected a plugin, because only the agent
|
|
1174
1182
|
in the thread has its own inbox. Plugins targeting these earlier versions are refused on the current host;
|
|
1175
|
-
the minimum version is
|
|
1183
|
+
the minimum version is 68.
|
|
1176
1184
|
|
|
1177
1185
|
API 8 changed what the UI gets for a communication record. `ConversationCommunicationRecord`
|
|
1178
1186
|
(from the conversation host's `useCommunicationRecord`) and `CommunicationViewExchange` carry `bodyState`, and their
|