@ycodium-ai/plugin-api 0.2.3851 → 0.2.3908
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 +35 -5
- package/dist/conversationAttachments.d.ts +2 -0
- package/dist/conversationAttachments.d.ts.map +1 -1
- package/dist/dataPorts.gen.d.ts +161 -133
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/threadAnnotation.d.ts +13 -0
- package/dist/threadAnnotation.d.ts.map +1 -0
- package/dist/threadAnnotation.js +2 -0
- package/dist/threadAnnotation.js.map +1 -0
- package/dist/ui.d.ts +1 -9
- package/dist/ui.d.ts.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: 67,
|
|
65
65
|
activate: (ctx) => {
|
|
66
66
|
ctx.log.info("hello");
|
|
67
67
|
|
|
@@ -290,12 +290,38 @@ 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 67, 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 67. 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 67 is refused until Ycodium itself is updated, with no update button.
|
|
299
|
+
|
|
300
|
+
API 67 keeps tool results' media on the tool call. `threads.toolCalls` detail gains an optional `media` list of
|
|
301
|
+
attachments, the bytes no longer appear in tool data, and a delivered attachment's source gains an optional
|
|
302
|
+
`fileCount` when a folder was delivered. Every change is additive.
|
|
303
|
+
|
|
304
|
+
API 66 adds an optional `reasonCode` to machine task failures. Every change is additive.
|
|
305
|
+
|
|
306
|
+
- `MachineTaskFailure.reasonCode` is one of `git-missing`, `project-folder-missing` or `git-probe-failed`
|
|
307
|
+
when the built-in `project.sync` could not inspect the project folder; clients translate a coded reason
|
|
308
|
+
and show the English `reason` otherwise.
|
|
309
|
+
- Every machine whose project folder is a Git checkout lists `project.sync` even without a tasks table; a
|
|
310
|
+
`sync` entry in `ycodium.json` replaces it. The action catalog allows 64 machine actions plus 33 project
|
|
311
|
+
entries.
|
|
312
|
+
|
|
313
|
+
API 65 lets a thread annotation mark a conversation's tab: set `placement: "tab"` and `icon: "monitor"` on a
|
|
314
|
+
`ui.threadAnnotations.command` row, and the tab gets the `tone` as a tinted background plus the icon, with `labelKey` as
|
|
315
|
+
its name. Such a row stays out of the text badges in the sidebar and conversation header. Every change is additive.
|
|
316
|
+
|
|
317
|
+
API 64 adds the command action for machine tasks. Every change is additive.
|
|
318
|
+
|
|
319
|
+
- `MachineActionKind` gains `command`. A machine that declares the capability lists the action
|
|
320
|
+
`runtime.command`; machines that do not declare it do not list it.
|
|
321
|
+
- `ctx.work.machineTasks.create` accepts `runtime.command` with `command`, optional `args`, optional `cwd`
|
|
322
|
+
(a path inside the project folder) and optional `timeoutSeconds`. The command runs with the executing
|
|
323
|
+
user's environment. A task for another machine still needs that machine's owner until same-account
|
|
324
|
+
trust (ADR-0041) lands.
|
|
299
325
|
|
|
300
326
|
API 63 adds execution-machine consent for machine tasks. A local agent can run on its own machine
|
|
301
327
|
without approval. Cross-machine tasks require the executing owner's explicit policy or a task-bound,
|
|
@@ -304,6 +330,10 @@ the executing machine; work.machineTasks.respond carries optional approval and r
|
|
|
304
330
|
Project trust is optional machineTaskConfirmation.remoteProjectTrust, bound to both the home machine
|
|
305
331
|
and project. Cross-machine same-account inference awaits ADR-0041.
|
|
306
332
|
|
|
333
|
+
Machine-task failures may include optional `reasonCode` (`git-missing`, `project-folder-missing` or
|
|
334
|
+
`git-probe-failed`) for localized UI text. `reason` remains the English fallback when no code is present;
|
|
335
|
+
raw Git diagnostics stay in the log comment.
|
|
336
|
+
|
|
307
337
|
API 62 adds `ctx.schedules.list` and `ctx.schedules.runs.list`, reads of a project's schedules, and an optional `repeat`
|
|
308
338
|
on scheduled wake-up reads. Plugins cannot create or change schedules.
|
|
309
339
|
|
|
@@ -1142,7 +1172,7 @@ An empty page with a cursor still continues. All failures propagate unchanged, i
|
|
|
1142
1172
|
`ThreadNotFoundError` when the thread is missing; use `isThreadNotFound(error)` to identify it.
|
|
1143
1173
|
`ctx.communication.inbox.read` is gone; that port always rejected a plugin, because only the agent
|
|
1144
1174
|
in the thread has its own inbox. Plugins targeting these earlier versions are refused on the current host;
|
|
1145
|
-
the minimum version is
|
|
1175
|
+
the minimum version is 67.
|
|
1146
1176
|
|
|
1147
1177
|
API 8 changed what the UI gets for a communication record. `ConversationCommunicationRecord`
|
|
1148
1178
|
(from the conversation host's `useCommunicationRecord`) and `CommunicationViewExchange` carry `bodyState`, and their
|
|
@@ -34,6 +34,8 @@ export interface ConversationMessageAttachmentBase {
|
|
|
34
34
|
readonly delivered?: true | undefined;
|
|
35
35
|
readonly title?: string | undefined;
|
|
36
36
|
readonly note?: string | undefined;
|
|
37
|
+
/** 文件夹交付时一共几个文件。 */
|
|
38
|
+
readonly fileCount?: number | undefined;
|
|
37
39
|
} | undefined;
|
|
38
40
|
}
|
|
39
41
|
export interface ConversationImageAttachment extends ConversationMessageAttachmentBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationAttachments.d.ts","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