@aibolabs/plugin-protocol 0.1.8 → 0.1.10
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/dist/capability.d.ts
CHANGED
|
@@ -24,10 +24,12 @@ export type CapabilityResult = {
|
|
|
24
24
|
generationId: string;
|
|
25
25
|
output: JsonValue;
|
|
26
26
|
};
|
|
27
|
+
/** Native host display metadata is optional; runtime dependency replies retain their protocol shape. */
|
|
27
28
|
export type CapabilityFailure = {
|
|
28
29
|
code: string;
|
|
29
30
|
message: string;
|
|
30
31
|
invocationId: string | null;
|
|
32
|
+
localized?: JsonValue;
|
|
31
33
|
};
|
|
32
34
|
export type CapabilityOperation = {
|
|
33
35
|
capability: string;
|
|
@@ -117,6 +117,8 @@ interface ContextAttachment {
|
|
|
117
117
|
sessionId: string;
|
|
118
118
|
turnId: string | null;
|
|
119
119
|
path: string;
|
|
120
|
+
/** Optional host-formatted name; path and identity retain their original values. */
|
|
121
|
+
displayName?: string;
|
|
120
122
|
contentHash: string | null;
|
|
121
123
|
size: number | null;
|
|
122
124
|
mediaType: string;
|
|
@@ -231,6 +233,15 @@ export type PresentationConversation = {
|
|
|
231
233
|
id: string;
|
|
232
234
|
label: string | null;
|
|
233
235
|
usedPercent: number;
|
|
236
|
+
observedAt?: number;
|
|
237
|
+
windowMinutes: number | null;
|
|
238
|
+
resetsAt: number | null;
|
|
239
|
+
}[];
|
|
240
|
+
/** Expired observations, separate so older renderers never coerce unknown to 100% remaining. */
|
|
241
|
+
unknownLimits?: {
|
|
242
|
+
id: string;
|
|
243
|
+
label: string | null;
|
|
244
|
+
observedAt?: number;
|
|
234
245
|
windowMinutes: number | null;
|
|
235
246
|
resetsAt: number | null;
|
|
236
247
|
}[];
|
|
@@ -45,6 +45,8 @@ export type PresentationContext = {
|
|
|
45
45
|
revision: number;
|
|
46
46
|
};
|
|
47
47
|
export type PresentationInput = {
|
|
48
|
+
/** Display language only; absent in legacy hosts (Chinese). Does not grant authority. */
|
|
49
|
+
locale?: 'zh-CN' | 'en';
|
|
48
50
|
surface: 'controls' | 'semantic' | 'workbench';
|
|
49
51
|
context: PresentationContext;
|
|
50
52
|
data: JsonValue;
|