@ycodium-ai/plugin-api 0.2.4448 → 0.2.4486
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 +12 -9
- package/dist/dataPorts.gen.d.ts +118 -0
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/ui.d.ts +6 -2
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/version.d.ts +3 -3
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/dist/project-toolkit-switch.d.ts +0 -8
- package/dist/project-toolkit-switch.d.ts.map +0 -1
- package/dist/project-toolkit-switch.js +0 -2
- package/dist/project-toolkit-switch.js.map +0 -1
package/README.md
CHANGED
|
@@ -195,14 +195,11 @@ estimate missing durations from messages or token events.
|
|
|
195
195
|
|
|
196
196
|
- `PluginIcon` (`PluginIconProps` from `@ycodium-ai/plugin-api/ui`) takes `{ name: string; className?: string }` and draws a decorative host-whitelisted icon at font size. Unknown names render nothing.
|
|
197
197
|
|
|
198
|
-
- `
|
|
199
|
-
|
|
200
|
-
`
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
cell uses the same control. In a mobile plugin WebView without a host connection it renders
|
|
204
|
-
nothing. Check that `bridge.ui.ProjectToolkitSwitch` exists before using it; an older host
|
|
205
|
-
may not provide it.
|
|
198
|
+
- `bridge.openProjectSettings?.({ environmentId, projectId, section: "agent-tools" })` opens the
|
|
199
|
+
project's **Agent tools** section on web and desktop, selecting the source machine. Omit
|
|
200
|
+
`section` to open the project settings page. The host resolves the project's home machine;
|
|
201
|
+
plugins do not build its route. Mobile has no project settings page and omits this method.
|
|
202
|
+
Project tool switches can only be changed by a person in project settings or through the CLI.
|
|
206
203
|
|
|
207
204
|
A view can also draw the result of one of your own tools in the conversation. Declare it in
|
|
208
205
|
`ycodium.ui.toolViews` as `{ "tool": "render", "view": "render-result" }`, where `tool` is the
|
|
@@ -518,7 +515,13 @@ republish.
|
|
|
518
515
|
|
|
519
516
|
<!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
|
|
520
517
|
|
|
521
|
-
The current API is **
|
|
518
|
+
The current API is **119**. This Ycodium loads plugins declaring 118 through 119.
|
|
519
|
+
|
|
520
|
+
API 119 adds optional archive, message-time and pagination filters to `ctx.threads.search`, with match message identifiers, thread and project names, archive status and a filtersApplied receipt
|
|
521
|
+
|
|
522
|
+
API 118 adds optional `bridge.openProjectSettings({ environmentId, projectId, section })` on web and desktop, and removes the host `ProjectToolkitSwitch` control and its props; project tool switches are managed in project settings
|
|
523
|
+
|
|
524
|
+
API 118 adds the typed ports `ctx.communication.posts.send`, `.withdraw`, `.delete` and `.bind` for the unified post. They are not for plugins yet: a call is refused until the old message ports switch over.
|
|
522
525
|
|
|
523
526
|
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
527
|
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -1105,6 +1105,39 @@ type DatabaseSpaceStatus = {
|
|
|
1105
1105
|
readonly "targetBytes": number;
|
|
1106
1106
|
readonly "unavailableReason": "not-converted" | "reader" | "no-free-pages" | null;
|
|
1107
1107
|
};
|
|
1108
|
+
type CommunicationPostReplyInput = {
|
|
1109
|
+
readonly "kind": "post";
|
|
1110
|
+
readonly "id": string;
|
|
1111
|
+
} | {
|
|
1112
|
+
readonly "kind": "record";
|
|
1113
|
+
readonly "id": string;
|
|
1114
|
+
} | {
|
|
1115
|
+
readonly "kind": "comment";
|
|
1116
|
+
readonly "id": string;
|
|
1117
|
+
};
|
|
1118
|
+
type CommunicationPostAttachmentPath = {
|
|
1119
|
+
readonly "path": string;
|
|
1120
|
+
readonly "name"?: string;
|
|
1121
|
+
readonly "mimeType"?: string;
|
|
1122
|
+
};
|
|
1123
|
+
type CommunicationPostAttachmentRef = {
|
|
1124
|
+
readonly "attachmentId": string;
|
|
1125
|
+
readonly "name": string;
|
|
1126
|
+
readonly "mimeType"?: string;
|
|
1127
|
+
readonly "sourcePath"?: string;
|
|
1128
|
+
};
|
|
1129
|
+
type CommunicationPostResult = {
|
|
1130
|
+
readonly "postId": string;
|
|
1131
|
+
};
|
|
1132
|
+
type CommunicationPostChange = {
|
|
1133
|
+
readonly "projectId": string;
|
|
1134
|
+
readonly "requestId"?: string;
|
|
1135
|
+
readonly "postId": string;
|
|
1136
|
+
};
|
|
1137
|
+
type CommunicationPostBindResult = {
|
|
1138
|
+
readonly "postId": string;
|
|
1139
|
+
readonly "targetKey": string;
|
|
1140
|
+
};
|
|
1108
1141
|
type ProjectMachineRemoval_3 = {
|
|
1109
1142
|
readonly "environmentId": string;
|
|
1110
1143
|
readonly "removalId": string;
|
|
@@ -1423,6 +1456,21 @@ type Objects_140 = {
|
|
|
1423
1456
|
readonly "kind": "human";
|
|
1424
1457
|
readonly "principal": Union_33;
|
|
1425
1458
|
};
|
|
1459
|
+
type CommunicationPostRecipientInput = {
|
|
1460
|
+
readonly "kind": "member";
|
|
1461
|
+
readonly "memberId": string;
|
|
1462
|
+
} | {
|
|
1463
|
+
readonly "kind": "person";
|
|
1464
|
+
readonly "person": Union_33;
|
|
1465
|
+
} | {
|
|
1466
|
+
readonly "kind": "thread";
|
|
1467
|
+
readonly "environmentId": string;
|
|
1468
|
+
readonly "threadId": string;
|
|
1469
|
+
} | {
|
|
1470
|
+
readonly "kind": "principal";
|
|
1471
|
+
readonly "principalId": string;
|
|
1472
|
+
readonly "memberId"?: string;
|
|
1473
|
+
};
|
|
1426
1474
|
type Objects_126 = {
|
|
1427
1475
|
readonly "kind": "human";
|
|
1428
1476
|
readonly "principal": Union_34;
|
|
@@ -1886,6 +1934,21 @@ type Arrays_10 = ReadonlyArray<{
|
|
|
1886
1934
|
} | null;
|
|
1887
1935
|
};
|
|
1888
1936
|
}>;
|
|
1937
|
+
type CommunicationPostAddressInput = {
|
|
1938
|
+
readonly "workItemId": string;
|
|
1939
|
+
} | {
|
|
1940
|
+
readonly "threadId": string;
|
|
1941
|
+
} | Objects_63 | {
|
|
1942
|
+
readonly "principalId": string;
|
|
1943
|
+
readonly "memberId"?: string;
|
|
1944
|
+
} | {
|
|
1945
|
+
readonly "group": {
|
|
1946
|
+
readonly "threadId": string;
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
type CommunicationPostBindParticipantInput = {
|
|
1950
|
+
readonly "threadId": string;
|
|
1951
|
+
} | Objects_63 | Objects_64;
|
|
1889
1952
|
type Union_50 = Objects_140 | Objects_141 | Objects_142 | {
|
|
1890
1953
|
readonly "kind": "member";
|
|
1891
1954
|
readonly "memberId": string;
|
|
@@ -3521,6 +3584,10 @@ export type ThreadsHistoryOutput = {
|
|
|
3521
3584
|
export type ThreadsSearchInput = {
|
|
3522
3585
|
readonly "query": string;
|
|
3523
3586
|
readonly "limit"?: number;
|
|
3587
|
+
readonly "includeArchived"?: boolean;
|
|
3588
|
+
readonly "createdAfter"?: string;
|
|
3589
|
+
readonly "createdBefore"?: string;
|
|
3590
|
+
readonly "cursor"?: number;
|
|
3524
3591
|
readonly "projectId"?: string;
|
|
3525
3592
|
};
|
|
3526
3593
|
export type ThreadsSearchOutput = {
|
|
@@ -3530,7 +3597,13 @@ export type ThreadsSearchOutput = {
|
|
|
3530
3597
|
readonly "source": "user" | "assistant";
|
|
3531
3598
|
readonly "snippet": string;
|
|
3532
3599
|
readonly "messageCreatedAt": string | null;
|
|
3600
|
+
readonly "messageId"?: string;
|
|
3601
|
+
readonly "threadTitle"?: string;
|
|
3602
|
+
readonly "projectName"?: string;
|
|
3603
|
+
readonly "archivedAt"?: string | null;
|
|
3533
3604
|
}>;
|
|
3605
|
+
readonly "filtersApplied"?: boolean;
|
|
3606
|
+
readonly "nextCursor"?: number | null;
|
|
3534
3607
|
};
|
|
3535
3608
|
export type ThreadsResumeCommandGetInput = {
|
|
3536
3609
|
readonly "threadId": string;
|
|
@@ -7612,6 +7685,45 @@ export type MachineSettingsDatabaseSpaceStartInput = DatabaseSpaceInput;
|
|
|
7612
7685
|
export type MachineSettingsDatabaseSpaceStartOutput = DatabaseSpaceStatus;
|
|
7613
7686
|
export type MachineSettingsDatabaseSpaceStopInput = DatabaseSpaceInput;
|
|
7614
7687
|
export type MachineSettingsDatabaseSpaceStopOutput = DatabaseSpaceStatus;
|
|
7688
|
+
export type CommunicationPostsSendInput = {
|
|
7689
|
+
readonly "projectId": string;
|
|
7690
|
+
readonly "requestId"?: string;
|
|
7691
|
+
readonly "to": CommunicationPostAddressInput;
|
|
7692
|
+
readonly "text": string;
|
|
7693
|
+
readonly "replyTo"?: CommunicationPostReplyInput;
|
|
7694
|
+
readonly "delivery"?: "quiet" | "wake" | "steer";
|
|
7695
|
+
readonly "mentions"?: ReadonlyArray<CommunicationPostRecipientInput>;
|
|
7696
|
+
readonly "attachments"?: ReadonlyArray<CommunicationPostAttachmentPath | CommunicationPostAttachmentRef>;
|
|
7697
|
+
};
|
|
7698
|
+
export type CommunicationPostsSendOutput = {
|
|
7699
|
+
readonly "sequence": number;
|
|
7700
|
+
readonly "result": CommunicationPostResult;
|
|
7701
|
+
readonly "replayed"?: boolean;
|
|
7702
|
+
};
|
|
7703
|
+
export type CommunicationPostsWithdrawInput = CommunicationPostChange;
|
|
7704
|
+
export type CommunicationPostsWithdrawOutput = {
|
|
7705
|
+
readonly "sequence": number;
|
|
7706
|
+
readonly "result": CommunicationPostResult;
|
|
7707
|
+
readonly "replayed"?: boolean;
|
|
7708
|
+
};
|
|
7709
|
+
export type CommunicationPostsDeleteInput = CommunicationPostChange;
|
|
7710
|
+
export type CommunicationPostsDeleteOutput = {
|
|
7711
|
+
readonly "sequence": number;
|
|
7712
|
+
readonly "result": CommunicationPostResult;
|
|
7713
|
+
readonly "replayed"?: boolean;
|
|
7714
|
+
};
|
|
7715
|
+
export type CommunicationPostsBindInput = {
|
|
7716
|
+
readonly "projectId": string;
|
|
7717
|
+
readonly "requestId"?: string;
|
|
7718
|
+
readonly "postId": string;
|
|
7719
|
+
readonly "targetKey": string;
|
|
7720
|
+
readonly "to": CommunicationPostBindParticipantInput;
|
|
7721
|
+
};
|
|
7722
|
+
export type CommunicationPostsBindOutput = {
|
|
7723
|
+
readonly "sequence": number;
|
|
7724
|
+
readonly "result": CommunicationPostBindResult;
|
|
7725
|
+
readonly "replayed"?: boolean;
|
|
7726
|
+
};
|
|
7615
7727
|
export type ProjectsMachinesListEncodedOutput = {
|
|
7616
7728
|
readonly "accountDiscovery"?: AccountMachineDiscoveryStatus;
|
|
7617
7729
|
readonly "items": ReadonlyArray<{
|
|
@@ -8849,6 +8961,12 @@ export interface PluginDataPorts {
|
|
|
8849
8961
|
readonly bind: (input: CommunicationDeliveriesBindInput) => Promise<CommunicationDeliveriesBindOutput>;
|
|
8850
8962
|
readonly listUnbound: (input: CommunicationDeliveriesListUnboundInput) => Promise<CommunicationDeliveriesListUnboundOutput>;
|
|
8851
8963
|
};
|
|
8964
|
+
readonly posts: {
|
|
8965
|
+
readonly send: (input: CommunicationPostsSendInput) => Promise<CommunicationPostsSendOutput>;
|
|
8966
|
+
readonly withdraw: (input: CommunicationPostsWithdrawInput) => Promise<CommunicationPostsWithdrawOutput>;
|
|
8967
|
+
readonly delete: (input: CommunicationPostsDeleteInput) => Promise<CommunicationPostsDeleteOutput>;
|
|
8968
|
+
readonly bind: (input: CommunicationPostsBindInput) => Promise<CommunicationPostsBindOutput>;
|
|
8969
|
+
};
|
|
8852
8970
|
};
|
|
8853
8971
|
readonly machineSettings: {
|
|
8854
8972
|
readonly browser: {
|