@ycodium-ai/plugin-api 0.2.4408 → 0.2.4448
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 +19 -1
- package/dist/communication.d.ts +1 -1
- package/dist/dataPorts.gen.d.ts +20 -2
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/executorCapabilities.d.ts +5 -0
- package/dist/executorCapabilities.d.ts.map +1 -1
- package/dist/executorSession.d.ts +5 -0
- package/dist/executorSession.d.ts.map +1 -1
- package/dist/executorSession.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -415,6 +415,10 @@ Each `startSession(input)` receives its own `input.events.emit(event)` channel.
|
|
|
415
415
|
channel in the session context; the host assigns event generations. When reusing a process,
|
|
416
416
|
return its original `bindingGeneration` and keep emitting through its original channel.
|
|
417
417
|
|
|
418
|
+
`input.nativeHistory?` carries the main conversation's `{ nativeSessionId, transcriptPath }`
|
|
419
|
+
saved by the host from earlier `thread.metadata.updated` events. Use it only when its native ID
|
|
420
|
+
matches the conversation being resumed; it can fill metadata missing from an earlier send receipt.
|
|
421
|
+
|
|
418
422
|
The `@ycodium-ai/plugin-api/testing` subpath has no runtime dependencies or test framework.
|
|
419
423
|
Wrap your executor with `withTestChannels(instance)`, use its session methods, then call
|
|
420
424
|
`assertGenerationSettled(instance.recorded, generation)`. Assertion failures throw `Error`.
|
|
@@ -514,7 +518,21 @@ republish.
|
|
|
514
518
|
|
|
515
519
|
<!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
|
|
516
520
|
|
|
517
|
-
The current API is **
|
|
521
|
+
The current API is **117**. This Ycodium loads plugins declaring 111 through 117.
|
|
522
|
+
|
|
523
|
+
API 117 adds `cancelled` to the values of `stages.replied.resolution` on a child session's report: a person or agent answered its approval with cancel. A cancel that came from the session exiting or the provider interrupting the turn stays `expired`. A provider cancelling a question (empty answers or no answer to any asked question) is `expired` too, instead of `answered`.
|
|
524
|
+
|
|
525
|
+
API 117 adds `expired` to the values of `stages.replied.resolution` on a child session's report: the approval or question it carried lapsed without an answer, because the child's session exited, its turn ended or the provider no longer knew the request.
|
|
526
|
+
|
|
527
|
+
API 117 gives `stages.replied` on communication records an optional `resolution` (`approved`, `denied`, `handled`, `answered` or `dismissed`). It appears on a child session's report once the approval or question it carried has been answered, whether by the parent session or by a person; older records and other records leave it out.
|
|
528
|
+
|
|
529
|
+
API 117 gives each pair returned by `communication.wakeLoops.list` an optional `waiting`: how many messages from the other session are held back for the session you asked about while automatic wake-ups are paused. It returns to 0 once a person continues or the session picks them up; older hosts leave it out.
|
|
530
|
+
|
|
531
|
+
API 117 adds the optional executor card capability `blocksHostMcpWritesInAuto`. Declare it when the agent's own CLI refuses the host's MCP tools that write (for example a team member reporting back) in `auto` mode instead of asking; the host then opens a member's session on that agent in `full-access`. Absent means it does not refuse.
|
|
532
|
+
|
|
533
|
+
API 117 adds optional `ExecutorSessionStartInput.nativeHistory` with the main conversation's native ID and transcript path saved by the host. Executors can recover a matching conversation whose opaque resume cursor predates its transcript hook.
|
|
534
|
+
|
|
535
|
+
API 116 adds the typed port `ctx.projects.home.set({ projectId, homeEnvironmentId, requestId? })`, which changes which machine a project is registered to. It is human-only: a plugin cannot be granted it, and a call is refused.
|
|
518
536
|
|
|
519
537
|
API 115 adds `ctx.machineSettings.log.recent()`: the recent warnings and errors in the machine's own server log, newest first, optionally only those about one home machine, and the optional `machineLog` capability on the environment descriptor the machine configuration read returns.
|
|
520
538
|
|
package/dist/communication.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type { CommunicationRecordsGetOutput } from "./dataPorts.gen.ts";
|
|
|
13
13
|
* 一条通信记录,与客户端读到的同一份。`delivery`:`quiet` 等收件方下次取件,`wake` 叫醒收件方,`steer` 插进
|
|
14
14
|
* 收件方正在跑的那一轮。`stages.handedOff.certainty`:`confirmed` 是收件方取件了,`not-dispatched` 是还没取,
|
|
15
15
|
* `unknown` 是投递结果不明(不会重投)。`stages.replied` 带 `recordId` 是收件方那条回信,只有 `turnId` 表示
|
|
16
|
-
*
|
|
16
|
+
* 处理它的那一轮结束了;子会话回报带的审批或提问被答了时有 `resolution`(批准、拒绝、回答等)。`to` 只有回填的历史团队消息在角色当时没人挂接时才是 null。`text` 只在
|
|
17
17
|
* `bodyState` 是 `present` 时有;`withdrawn`、`deleted` 是作者或人拿掉了正文,`unavailable` 是正文应该在却读不到。
|
|
18
18
|
*/
|
|
19
19
|
export type PluginCommunicationRecord = CommunicationRecordsGetOutput[number];
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ type Union_14 = {
|
|
|
221
221
|
readonly "httpStatus"?: number | undefined;
|
|
222
222
|
} | null | undefined;
|
|
223
223
|
type Union_15 = {
|
|
224
|
-
readonly "phase": "handling" | "unanswered";
|
|
224
|
+
readonly "phase": "handling" | "unanswered" | "direct";
|
|
225
225
|
readonly "parentThreadId": string;
|
|
226
226
|
} | undefined;
|
|
227
227
|
type Union_16 = {
|
|
@@ -417,6 +417,7 @@ type Objects_57 = {
|
|
|
417
417
|
readonly "replied": {
|
|
418
418
|
readonly "recordId"?: string | undefined;
|
|
419
419
|
readonly "turnId"?: string | undefined;
|
|
420
|
+
readonly "resolution"?: "approved" | "denied" | "handled" | "answered" | "dismissed" | "expired" | "cancelled" | undefined;
|
|
420
421
|
readonly "at": string;
|
|
421
422
|
} | null;
|
|
422
423
|
};
|
|
@@ -1164,7 +1165,7 @@ type Objects_189 = {
|
|
|
1164
1165
|
readonly "needsRefinement": boolean;
|
|
1165
1166
|
};
|
|
1166
1167
|
type Union_67 = {
|
|
1167
|
-
readonly "phase": "handling" | "unanswered";
|
|
1168
|
+
readonly "phase": "handling" | "unanswered" | "direct";
|
|
1168
1169
|
readonly "parentThreadId": string;
|
|
1169
1170
|
} | undefined;
|
|
1170
1171
|
type Union_68 = {
|
|
@@ -1464,6 +1465,7 @@ type Arrays_11 = ReadonlyArray<{
|
|
|
1464
1465
|
readonly "supportsTurnSteering"?: boolean | undefined;
|
|
1465
1466
|
readonly "runtimeModeSwitch"?: "in-session" | "next-turn";
|
|
1466
1467
|
readonly "reportsSpawnedAgents"?: boolean;
|
|
1468
|
+
readonly "blocksHostMcpWritesInAuto"?: boolean;
|
|
1467
1469
|
readonly "modelSlugAliases"?: Objects_66;
|
|
1468
1470
|
readonly "enabled": boolean;
|
|
1469
1471
|
readonly "installed": boolean;
|
|
@@ -2605,6 +2607,7 @@ export type CommunicationWakeLoopsListOutput = ReadonlyArray<{
|
|
|
2605
2607
|
readonly "halfTrips": number;
|
|
2606
2608
|
readonly "lastSender": string | null;
|
|
2607
2609
|
readonly "updatedAt": string;
|
|
2610
|
+
readonly "waiting"?: number;
|
|
2608
2611
|
}>;
|
|
2609
2612
|
export type CommunicationWakeLoopsResumeInput = {
|
|
2610
2613
|
readonly "threadId": string;
|
|
@@ -5017,6 +5020,7 @@ export type ProvidersExecutorsListOutput = {
|
|
|
5017
5020
|
readonly "discoversRepoSkills"?: boolean | undefined;
|
|
5018
5021
|
readonly "confirmsToolTermination"?: boolean | undefined;
|
|
5019
5022
|
readonly "acceptsAdditionalDirectories"?: boolean | undefined;
|
|
5023
|
+
readonly "blocksHostMcpWritesInAuto"?: boolean | undefined;
|
|
5020
5024
|
readonly "inlineImages"?: {
|
|
5021
5025
|
readonly "maxBytes": number;
|
|
5022
5026
|
readonly "maxEdgePixels"?: number | undefined;
|
|
@@ -7481,6 +7485,16 @@ export type ProjectsUpdateInput = {
|
|
|
7481
7485
|
readonly "defaultFolderId"?: string | null;
|
|
7482
7486
|
};
|
|
7483
7487
|
export type ProjectsUpdateOutput = Objects_169;
|
|
7488
|
+
export type ProjectsHomeSetInput = {
|
|
7489
|
+
readonly "requestId"?: string;
|
|
7490
|
+
readonly "projectId": string;
|
|
7491
|
+
readonly "homeEnvironmentId": string;
|
|
7492
|
+
};
|
|
7493
|
+
export type ProjectsHomeSetOutput = {
|
|
7494
|
+
readonly "sequence": number;
|
|
7495
|
+
readonly "result": {};
|
|
7496
|
+
readonly "replayed"?: boolean;
|
|
7497
|
+
};
|
|
7484
7498
|
export type ProjectsArchiveInput = {
|
|
7485
7499
|
readonly "requestId"?: string;
|
|
7486
7500
|
readonly "projectId": string;
|
|
@@ -8168,6 +8182,7 @@ export type MachineSettingsProvidersGetEncodedOutput = {
|
|
|
8168
8182
|
readonly "supportsTurnSteering"?: boolean | undefined;
|
|
8169
8183
|
readonly "runtimeModeSwitch"?: "in-session" | "next-turn";
|
|
8170
8184
|
readonly "reportsSpawnedAgents"?: boolean;
|
|
8185
|
+
readonly "blocksHostMcpWritesInAuto"?: boolean;
|
|
8171
8186
|
readonly "modelSlugAliases"?: Objects_66;
|
|
8172
8187
|
readonly "enabled": boolean;
|
|
8173
8188
|
readonly "installed": boolean;
|
|
@@ -9090,6 +9105,9 @@ export interface PluginDataPorts {
|
|
|
9090
9105
|
readonly set: (input: ProjectsToolkitsSetInput) => Promise<ProjectsToolkitsSetOutput>;
|
|
9091
9106
|
};
|
|
9092
9107
|
readonly update: (input: ProjectsUpdateInput) => Promise<ProjectsUpdateOutput>;
|
|
9108
|
+
readonly home: {
|
|
9109
|
+
readonly set: (input: ProjectsHomeSetInput) => Promise<ProjectsHomeSetOutput>;
|
|
9110
|
+
};
|
|
9093
9111
|
readonly archive: (input: ProjectsArchiveInput) => Promise<ProjectsArchiveOutput>;
|
|
9094
9112
|
readonly unarchive: (input: ProjectsUnarchiveInput) => Promise<ProjectsUnarchiveOutput>;
|
|
9095
9113
|
readonly delete: (input: ProjectsDeleteInput) => Promise<ProjectsDeleteOutput>;
|