@ycodium-ai/plugin-api 0.2.3566 → 0.2.3576
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 +9 -5
- package/dist/dataPorts.gen.d.ts +5 -0
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
|
56
56
|
|
|
57
57
|
export default definePlugin({
|
|
58
58
|
id: "my-plugin",
|
|
59
|
-
apiVersion:
|
|
59
|
+
apiVersion: 47,
|
|
60
60
|
activate: (ctx) => {
|
|
61
61
|
ctx.log.info("hello");
|
|
62
62
|
|
|
@@ -285,12 +285,16 @@ sessions continue using the streaming process interface.
|
|
|
285
285
|
|
|
286
286
|
## THERE WILL BE COMPATIBILITY-BREAKING CHANGES
|
|
287
287
|
|
|
288
|
-
The definition's `apiVersion` is a closed window: the host loads
|
|
288
|
+
The definition's `apiVersion` is a closed window: the host loads 47, and refuses every other
|
|
289
289
|
value. Declare the version your plugin targets as a literal; do not read the host's
|
|
290
|
-
`PLUGIN_API_VERSION` to make the declaration automatically match. The current API is
|
|
290
|
+
`PLUGIN_API_VERSION` to make the declaration automatically match. The current API is 47. Plugins
|
|
291
291
|
targeting an older API are refused before activation; the message names the version the plugin
|
|
292
292
|
declared and the one this Ycodium loads, and the plugin card offers an update. A plugin that
|
|
293
|
-
declares a version newer than
|
|
293
|
+
declares a version newer than 47 is refused until Ycodium itself is updated, with no update button.
|
|
294
|
+
|
|
295
|
+
API 47 adds one field: thread runtime reads (`threads.list` rows and their `runtime` part, `threads.get`) carry an
|
|
296
|
+
optional `backgroundMonitorCount`, the number of background monitor loops still alive in the session. It is a
|
|
297
|
+
read-time value; absent and 0 both mean none. Everything is additive.
|
|
294
298
|
|
|
295
299
|
API 46 adds the plugin-visible side of the team page: views a plugin draws on it, a read of one work line's
|
|
296
300
|
history, and a conversation view for pending requests. Everything is additive.
|
|
@@ -779,7 +783,7 @@ An empty page with a cursor still continues. All failures propagate unchanged, i
|
|
|
779
783
|
`ThreadNotFoundError` when the thread is missing; use `isThreadNotFound(error)` to identify it.
|
|
780
784
|
`ctx.communication.inbox.read` is gone; that port always rejected a plugin, because only the agent
|
|
781
785
|
in the thread has its own inbox. Plugins targeting these earlier versions are refused on the current host;
|
|
782
|
-
the minimum version is
|
|
786
|
+
the minimum version is 47.
|
|
783
787
|
|
|
784
788
|
API 8 changed what the UI gets for a communication record. `ConversationCommunicationRecord`
|
|
785
789
|
(from the conversation host's `useCommunicationRecord`) and `CommunicationViewExchange` carry `bodyState`, and their
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -1602,6 +1602,7 @@ type Objects_146 = {
|
|
|
1602
1602
|
readonly "hasActionableProposedPlan": boolean;
|
|
1603
1603
|
readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined;
|
|
1604
1604
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
1605
|
+
readonly "backgroundMonitorCount"?: number | undefined;
|
|
1605
1606
|
readonly "planProgress"?: Union_65;
|
|
1606
1607
|
};
|
|
1607
1608
|
type Union_7 = Objects_18 | null;
|
|
@@ -1662,6 +1663,7 @@ type Objects_9 = {
|
|
|
1662
1663
|
};
|
|
1663
1664
|
readonly "runtime"?: {
|
|
1664
1665
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
1666
|
+
readonly "backgroundMonitorCount"?: number | undefined;
|
|
1665
1667
|
readonly "planProgress"?: Union_15;
|
|
1666
1668
|
};
|
|
1667
1669
|
};
|
|
@@ -1714,6 +1716,7 @@ type Objects_26 = {
|
|
|
1714
1716
|
readonly "hasActionableProposedPlan": boolean;
|
|
1715
1717
|
readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined;
|
|
1716
1718
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
1719
|
+
readonly "backgroundMonitorCount"?: number | undefined;
|
|
1717
1720
|
readonly "planProgress"?: Union_15;
|
|
1718
1721
|
};
|
|
1719
1722
|
type Objects_8 = {
|
|
@@ -1995,6 +1998,7 @@ export type ThreadsListSubscribeOutput = {
|
|
|
1995
1998
|
readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle";
|
|
1996
1999
|
readonly "runtime"?: {
|
|
1997
2000
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
2001
|
+
readonly "backgroundMonitorCount"?: number | undefined;
|
|
1998
2002
|
readonly "planProgress"?: Union_15;
|
|
1999
2003
|
};
|
|
2000
2004
|
}>;
|
|
@@ -5802,6 +5806,7 @@ export type ThreadsListEncodedOutput = {
|
|
|
5802
5806
|
};
|
|
5803
5807
|
readonly "runtime"?: {
|
|
5804
5808
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
5809
|
+
readonly "backgroundMonitorCount"?: number | undefined;
|
|
5805
5810
|
readonly "planProgress"?: Union_65;
|
|
5806
5811
|
};
|
|
5807
5812
|
}>;
|