@ycodium-ai/plugin-api 0.2.5448 → 0.2.5542
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 +54 -9
- package/dist/commands.d.ts +4 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js.map +1 -1
- package/dist/dataPorts.gen.d.ts +93 -5
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/diagnosticData.d.ts +214 -0
- package/dist/diagnosticData.d.ts.map +1 -0
- package/dist/diagnosticData.js +2 -0
- package/dist/diagnosticData.js.map +1 -0
- package/dist/executor.d.ts +7 -2
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js.map +1 -1
- package/dist/executorSession.d.ts +34 -0
- package/dist/executorSession.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/slots.d.ts +12 -1
- package/dist/slots.d.ts.map +1 -1
- package/dist/slots.js +4 -0
- package/dist/slots.js.map +1 -1
- package/dist/ui.d.ts +46 -87
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +10 -83
- package/dist/ui.js.map +1 -1
- package/dist/uiHostCapabilities.d.ts +5 -1
- package/dist/uiHostCapabilities.d.ts.map +1 -1
- package/dist/uiHostCapabilities.js +6 -0
- package/dist/uiHostCapabilities.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
|
@@ -125,8 +125,12 @@ plugins, npm installations, local directories, and temporary plugins. Plugins do
|
|
|
125
125
|
to copy the API into their package or depend on a particular installation directory.
|
|
126
126
|
The host refuses to resolve `@ycodium-ai/plugin-api/version` at runtime.
|
|
127
127
|
|
|
128
|
-
Browser bundles use the same rule.
|
|
129
|
-
`window.__ycodiumPluginHost.
|
|
128
|
+
Browser bundles use the same rule. Alias `react` to a shim that exports
|
|
129
|
+
`window.__ycodiumPluginHost.react` and its named exports. Alias `react/jsx-runtime` to a
|
|
130
|
+
shim that exports `jsx`, `jsxs`, and `Fragment` from
|
|
131
|
+
`window.__ycodiumPluginHost.jsxRuntime`. This keeps the host and the plugin on the
|
|
132
|
+
same React instance. Map runtime API imports to the host's module table,
|
|
133
|
+
`window.__ycodiumPluginHost.modules`.
|
|
130
134
|
For example, an alias module for a UI helper can re-export the host value:
|
|
131
135
|
|
|
132
136
|
```js
|
|
@@ -162,7 +166,21 @@ A newer host rejects an old bundle before calling `register`; a new bundle check
|
|
|
162
166
|
against an older host inside `register`. The page and the embedded plugin surface use the same
|
|
163
167
|
exact-version rule. The host bridge version is independent of the server's `PLUGIN_API_VERSION`.
|
|
164
168
|
|
|
165
|
-
##
|
|
169
|
+
## Plugin pages, panels, and embedded views
|
|
170
|
+
|
|
171
|
+
Point `package.json#ycodium.ui.assets` at the asset directory and set `entry` to
|
|
172
|
+
the ESM file within that directory. Default-export a `register(bridge)` function.
|
|
173
|
+
The keys of the returned `pages` and `panels` match their manifest IDs.
|
|
174
|
+
Pages receive no props. Panels receive `environmentId` and `threadId`.
|
|
175
|
+
|
|
176
|
+
Pages get a host header and scroll container by default. Set `chrome: "own"` on a
|
|
177
|
+
page that needs a custom header, and give that page its own responsive layout, scroll
|
|
178
|
+
container, and light/dark background. Loading, failure, and unavailable states are
|
|
179
|
+
rendered by the host. Panels always use the host drawer.
|
|
180
|
+
|
|
181
|
+
A page or panel can declare a host icon or a relative path to a PNG in the asset
|
|
182
|
+
directory. Keep the PNG within 64 KiB and legible in both themes. The host displays
|
|
183
|
+
it as supplied and uses a built-in icon if it cannot load the file.
|
|
166
184
|
|
|
167
185
|
`register(bridge)` can return an optional `views` map alongside `pages` and `panels`.
|
|
168
186
|
A view has no navigation entry. Its caller supplies the agreed props; the host loads it
|
|
@@ -265,11 +283,16 @@ does not expose them.
|
|
|
265
283
|
|
|
266
284
|
## Experimental seats
|
|
267
285
|
|
|
268
|
-
`project.workbench.tab
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
286
|
+
`project.workbench.tab`, `sidebar.project.actions`, `sidebar.machine.actions` and `machine.overview.section` render on Web
|
|
287
|
+
and Desktop. Declare each seat in the plugin's `ui.seats` permission. A machine overview
|
|
288
|
+
component receives its `environmentId`.
|
|
289
|
+
|
|
290
|
+
To run an action on the selected machine, register a `sidebar.machine.actions` slot with a `titleKey` and
|
|
291
|
+
an `actionView` naming a component in the same registration's `views`. The component receives
|
|
292
|
+
`environmentId` and `onClose`. The host keeps it mounted after
|
|
293
|
+
the menu closes. Call `onClose()` to dismiss it. An optional `disabledReasonKey(context)`
|
|
294
|
+
returns a key in your plugin's catalog or `null` when the action is available. Project actions
|
|
295
|
+
that navigate to a tab or a `hostPage` can keep their existing registration.
|
|
273
296
|
|
|
274
297
|
## Permissions
|
|
275
298
|
|
|
@@ -525,6 +548,14 @@ borrower must not kill another borrower's server. Instance disposal must stop ne
|
|
|
525
548
|
idle timers; an externally configured server is never owned by this operation. Long-lived conversation
|
|
526
549
|
sessions continue using the streaming process interface.
|
|
527
550
|
|
|
551
|
+
## Native terminal session import
|
|
552
|
+
|
|
553
|
+
An executor can expose `sessions.scan` and `sessions.readImport` to make its terminal sessions
|
|
554
|
+
available in the import picker. Return the native resume cursor, total counts, and normalized
|
|
555
|
+
messages and activities with stable source IDs and ordering. The host uses these IDs to add
|
|
556
|
+
later records to the same thread when the user reopens it. Forward the read's abort signal to
|
|
557
|
+
the file or CLI operation.
|
|
558
|
+
|
|
528
559
|
## Executor session channel tests
|
|
529
560
|
|
|
530
561
|
Each `startSession(input)` receives its own `input.events.emit(event)` channel. Keep that
|
|
@@ -653,7 +684,21 @@ No thread, timeout, interruption or restart cancels the call. Guard callbacks st
|
|
|
653
684
|
|
|
654
685
|
<!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
|
|
655
686
|
|
|
656
|
-
The current API is **
|
|
687
|
+
The current API is **174**. This Ycodium loads plugins declaring 166 through 174.
|
|
688
|
+
|
|
689
|
+
API 174 adds command roles and data types for machine diagnostics sources reporting trace summaries or process samples, history and collector retries.
|
|
690
|
+
|
|
691
|
+
API 174 adds machine action views that stay mounted after their menu closes and a machine overview section seat for desktop and web.
|
|
692
|
+
|
|
693
|
+
API 174 adds machine-bound registered port forwarding and cancellable command streams for plugin views, and lets plugins declare MCP catalog search commands
|
|
694
|
+
|
|
695
|
+
API 173 validates native-session references and represents an omitted scan directory by an absent key
|
|
696
|
+
|
|
697
|
+
API 172 adds optional executor sessions.storageKey to identify the effective native history store
|
|
698
|
+
|
|
699
|
+
API 172 adds optional executor `sessions.readImport` for a complete normalized native transcript and its resume cursor
|
|
700
|
+
|
|
701
|
+
API 172 adds generated providers.nativeSessionImports ports for native history scan, import progress and sync
|
|
657
702
|
|
|
658
703
|
API 171 adds optional argumentUsage to plugin MCP tools for checked call examples
|
|
659
704
|
|
package/dist/commands.d.ts
CHANGED
|
@@ -86,6 +86,8 @@ export type PluginJsonSchema = Record<string, unknown>;
|
|
|
86
86
|
*/
|
|
87
87
|
export type PluginContractName = string;
|
|
88
88
|
export interface PluginCommand {
|
|
89
|
+
/** 客户端据此从本机已加载插件选择 MCP 目录或诊断数据源。重试采集需要 operate,其余查询需要 read。 */
|
|
90
|
+
readonly role?: "mcp-registry-search" | "diagnostics-trace-summary" | "diagnostics-resource-history" | "diagnostics-resource-retry";
|
|
89
91
|
/**
|
|
90
92
|
* 插件内唯一;跨插件由 pluginId 隔开,不会撞名。
|
|
91
93
|
*
|
|
@@ -140,6 +142,8 @@ export declare const MAX_PLUGIN_STREAM_BUFFER = 1024;
|
|
|
140
142
|
* 中止表示订阅方挂断,handle 应尽快返回,之后的 emit 会被宿主静默丢弃。
|
|
141
143
|
*/
|
|
142
144
|
export interface PluginStreamCommand {
|
|
145
|
+
/** 诊断页订阅本机进程采样快照。仅适用于只读流。 */
|
|
146
|
+
readonly role?: "diagnostics-resource-snapshots";
|
|
143
147
|
/** 与 `PluginCommand.name` 同一张表:重复即抛错,activate 失败。 */
|
|
144
148
|
readonly name: string;
|
|
145
149
|
readonly description?: string | undefined;
|
package/dist/commands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,sDAAsD;AACtD,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,kEAAkE;AAClE,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,6BAA6B;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5E,oBAAoB;IACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC;IACnC,uEAAuE;IACvE,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,MAAM,W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.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAsJA;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC"}
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -304,7 +304,7 @@ type Union_18 = {
|
|
|
304
304
|
} | undefined;
|
|
305
305
|
type Objects_44 = {
|
|
306
306
|
readonly "kind": "native-session";
|
|
307
|
-
readonly "provider":
|
|
307
|
+
readonly "provider": string;
|
|
308
308
|
readonly "sessionId": string;
|
|
309
309
|
readonly "messageId": string;
|
|
310
310
|
readonly "turnId"?: string | undefined;
|
|
@@ -876,6 +876,7 @@ type Union_49 = ReadonlyArray<string> | undefined;
|
|
|
876
876
|
type Arrays_30 = ReadonlyArray<{
|
|
877
877
|
readonly "kind": "signIn" | "toolkit" | "reactor" | "settingsCard" | "modelPreset" | "command" | "cli" | "interval" | "executor" | "protocolConversion" | "skill" | "filePreviewConverter" | "systemPrompt.section" | "systemPrompt.context" | "messages.beforeSend" | "slashCommand" | "tools.guard" | "ui.seats" | "agentPresets" | "sessionProjections" | "continuation";
|
|
878
878
|
readonly "name": string;
|
|
879
|
+
readonly "role"?: string;
|
|
879
880
|
}>;
|
|
880
881
|
type Union_50 = {
|
|
881
882
|
readonly "eventsHandled": number;
|
|
@@ -1479,7 +1480,7 @@ type Union_79 = {
|
|
|
1479
1480
|
} | undefined;
|
|
1480
1481
|
type Objects_233 = {
|
|
1481
1482
|
readonly "kind": "native-session";
|
|
1482
|
-
readonly "provider":
|
|
1483
|
+
readonly "provider": string;
|
|
1483
1484
|
readonly "sessionId": string;
|
|
1484
1485
|
readonly "messageId": string;
|
|
1485
1486
|
readonly "turnId"?: string | undefined;
|
|
@@ -2647,6 +2648,7 @@ type Objects_223 = {
|
|
|
2647
2648
|
readonly "continuationCheck"?: ThreadContinuationCheckOrNull_1;
|
|
2648
2649
|
};
|
|
2649
2650
|
type Objects_247 = {
|
|
2651
|
+
readonly "nativeSessionImported"?: true;
|
|
2650
2652
|
readonly "id": string;
|
|
2651
2653
|
readonly "projectId": string;
|
|
2652
2654
|
readonly "title": string;
|
|
@@ -2960,6 +2962,7 @@ type ThreadMembersInput = ReadonlyArray<ThreadMemberInput>;
|
|
|
2960
2962
|
type ThreadMembersInput_1 = ReadonlyArray<ThreadMemberInput>;
|
|
2961
2963
|
type Objects_220 = {
|
|
2962
2964
|
readonly "threadId": string;
|
|
2965
|
+
readonly "nativeSessionImported"?: true;
|
|
2963
2966
|
readonly "projectId": string;
|
|
2964
2967
|
readonly "title": string;
|
|
2965
2968
|
readonly "createdAt": string;
|
|
@@ -3023,6 +3026,7 @@ type Objects_27 = {
|
|
|
3023
3026
|
readonly "continuationCheck"?: ThreadContinuationCheckOrNull;
|
|
3024
3027
|
};
|
|
3025
3028
|
type Objects_66 = {
|
|
3029
|
+
readonly "nativeSessionImported"?: true;
|
|
3026
3030
|
readonly "id": string;
|
|
3027
3031
|
readonly "projectId": string;
|
|
3028
3032
|
readonly "title": string;
|
|
@@ -3121,6 +3125,7 @@ type Objects_86 = {
|
|
|
3121
3125
|
};
|
|
3122
3126
|
type Objects_23 = {
|
|
3123
3127
|
readonly "threadId": string;
|
|
3128
|
+
readonly "nativeSessionImported"?: true;
|
|
3124
3129
|
readonly "projectId": string;
|
|
3125
3130
|
readonly "title": string;
|
|
3126
3131
|
readonly "createdAt": string;
|
|
@@ -3144,6 +3149,7 @@ type Objects_23 = {
|
|
|
3144
3149
|
};
|
|
3145
3150
|
type Objects_61 = {
|
|
3146
3151
|
readonly "threadId": string;
|
|
3152
|
+
readonly "nativeSessionImported"?: true;
|
|
3147
3153
|
readonly "projectId": string;
|
|
3148
3154
|
readonly "title": string;
|
|
3149
3155
|
readonly "createdAt": string;
|
|
@@ -4023,6 +4029,7 @@ export type ThreadsListSubscribeOutput = {
|
|
|
4023
4029
|
readonly "threads": ReadonlyArray<{
|
|
4024
4030
|
readonly "threadId": string;
|
|
4025
4031
|
readonly "status"?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle";
|
|
4032
|
+
readonly "nativeSessionImported"?: true;
|
|
4026
4033
|
readonly "runtime"?: {
|
|
4027
4034
|
readonly "backgroundLiveness"?: "working" | "monitoring" | null | undefined;
|
|
4028
4035
|
readonly "backgroundMonitorCount"?: number | undefined;
|
|
@@ -5608,6 +5615,77 @@ export type MachineSettingsRuntimeUpgradeOutput = {
|
|
|
5608
5615
|
readonly "method": "boot-service" | "respawn";
|
|
5609
5616
|
readonly "updateId"?: string;
|
|
5610
5617
|
};
|
|
5618
|
+
export type ProvidersNativeSessionsScanInput = {
|
|
5619
|
+
readonly "projectId": string;
|
|
5620
|
+
readonly "directory"?: string;
|
|
5621
|
+
};
|
|
5622
|
+
export type ProvidersNativeSessionsScanOutput = {
|
|
5623
|
+
readonly "sources": ReadonlyArray<{
|
|
5624
|
+
readonly "instanceId": string;
|
|
5625
|
+
readonly "provider": string;
|
|
5626
|
+
readonly "candidates": ReadonlyArray<{
|
|
5627
|
+
readonly "provider": string;
|
|
5628
|
+
readonly "instanceId": string;
|
|
5629
|
+
readonly "nativeSessionId": string;
|
|
5630
|
+
readonly "title": string | null;
|
|
5631
|
+
readonly "preview": string | null;
|
|
5632
|
+
readonly "model": string | null;
|
|
5633
|
+
readonly "turnCount": number;
|
|
5634
|
+
readonly "updatedAt": number;
|
|
5635
|
+
readonly "cwd": string;
|
|
5636
|
+
readonly "availability": "importable" | "alreadyImported";
|
|
5637
|
+
readonly "openElsewhere": boolean;
|
|
5638
|
+
readonly "importedThreadId"?: string | undefined;
|
|
5639
|
+
}>;
|
|
5640
|
+
readonly "unavailableReason": string | null;
|
|
5641
|
+
}>;
|
|
5642
|
+
readonly "directory": string;
|
|
5643
|
+
};
|
|
5644
|
+
export type ProvidersNativeSessionsImportInput = {
|
|
5645
|
+
readonly "projectId": string;
|
|
5646
|
+
readonly "instanceId": string;
|
|
5647
|
+
readonly "provider": string;
|
|
5648
|
+
readonly "nativeSessionId": string;
|
|
5649
|
+
readonly "cwd": string;
|
|
5650
|
+
readonly "threadId": string;
|
|
5651
|
+
};
|
|
5652
|
+
export type ProvidersNativeSessionsImportOutput = {
|
|
5653
|
+
readonly "_tag": "snapshot";
|
|
5654
|
+
readonly "value": {
|
|
5655
|
+
readonly "threadId": string;
|
|
5656
|
+
readonly "kind": "import_started";
|
|
5657
|
+
readonly "phases": ReadonlyArray<"read" | "create" | "link">;
|
|
5658
|
+
} | {
|
|
5659
|
+
readonly "threadId": string;
|
|
5660
|
+
readonly "kind": "phase_started";
|
|
5661
|
+
readonly "phase": "read" | "create" | "link";
|
|
5662
|
+
} | {
|
|
5663
|
+
readonly "threadId": string;
|
|
5664
|
+
readonly "kind": "session_read";
|
|
5665
|
+
readonly "availableMessages": number;
|
|
5666
|
+
readonly "restoredMessages": number;
|
|
5667
|
+
readonly "availableActivities"?: number | undefined;
|
|
5668
|
+
readonly "restoredActivities"?: number | undefined;
|
|
5669
|
+
} | {
|
|
5670
|
+
readonly "threadId": string;
|
|
5671
|
+
readonly "kind": "import_finished";
|
|
5672
|
+
readonly "restoredMessages": number;
|
|
5673
|
+
readonly "restoredActivities"?: number | undefined;
|
|
5674
|
+
} | {
|
|
5675
|
+
readonly "threadId": string;
|
|
5676
|
+
readonly "kind": "import_failed";
|
|
5677
|
+
readonly "phase": "read" | "create" | "link";
|
|
5678
|
+
readonly "message": string;
|
|
5679
|
+
readonly "threadCreated": boolean;
|
|
5680
|
+
};
|
|
5681
|
+
};
|
|
5682
|
+
export type ProvidersNativeSessionsSyncInput = {
|
|
5683
|
+
readonly "threadId": string;
|
|
5684
|
+
};
|
|
5685
|
+
export type ProvidersNativeSessionsSyncOutput = {
|
|
5686
|
+
readonly "status": "not-imported" | "unchanged" | "synced" | "skipped-active" | "failed";
|
|
5687
|
+
readonly "appended": number;
|
|
5688
|
+
};
|
|
5611
5689
|
export type ProvidersInstancesListInput = {};
|
|
5612
5690
|
export type ProvidersInstancesListOutput = ReadonlyArray<{
|
|
5613
5691
|
readonly "instanceId": string;
|
|
@@ -6125,7 +6203,7 @@ export type PluginsInstalledListOutput = {
|
|
|
6125
6203
|
}>;
|
|
6126
6204
|
} | Objects_136 | Objects_137 | Objects_138 | Objects_139 | Objects_140 | Objects_141 | Objects_142 | Objects_143 | {
|
|
6127
6205
|
readonly "kind": "ui.seats";
|
|
6128
|
-
readonly "seats": ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">;
|
|
6206
|
+
readonly "seats": ReadonlyArray<"conversation.view" | "conversation.chat.turnTail" | "conversation.session.header.actions" | "settings.section" | "machine.overview.section" | "sidebar.machine.actions" | "conversation.hero.agentPreset" | "conversation.input.dock" | "project.workbench.tab" | "sidebar.project.actions" | "team.view">;
|
|
6129
6207
|
} | {
|
|
6130
6208
|
readonly "kind": "commands.dispatch";
|
|
6131
6209
|
readonly "commands": ReadonlyArray<string>;
|
|
@@ -8088,7 +8166,7 @@ export type ThreadsImportInput = {
|
|
|
8088
8166
|
};
|
|
8089
8167
|
readonly "source"?: {
|
|
8090
8168
|
readonly "kind": "native-session";
|
|
8091
|
-
readonly "provider":
|
|
8169
|
+
readonly "provider": string;
|
|
8092
8170
|
readonly "sessionId": string;
|
|
8093
8171
|
readonly "messageId": string;
|
|
8094
8172
|
readonly "turnId"?: string;
|
|
@@ -8132,7 +8210,7 @@ export type ThreadsExternalMessagesAppendInput = {
|
|
|
8132
8210
|
};
|
|
8133
8211
|
readonly "source"?: {
|
|
8134
8212
|
readonly "kind": "native-session";
|
|
8135
|
-
readonly "provider":
|
|
8213
|
+
readonly "provider": string;
|
|
8136
8214
|
readonly "sessionId": string;
|
|
8137
8215
|
readonly "messageId": string;
|
|
8138
8216
|
readonly "turnId"?: string;
|
|
@@ -8928,6 +9006,7 @@ export type ProjectsMachinesThreadsMessagesListEncodedOutput = Objects_232;
|
|
|
8928
9006
|
export type ThreadsListEncodedOutput = {
|
|
8929
9007
|
readonly "items": ReadonlyArray<{
|
|
8930
9008
|
readonly "threadId": string;
|
|
9009
|
+
readonly "nativeSessionImported"?: true;
|
|
8931
9010
|
readonly "projectId": string;
|
|
8932
9011
|
readonly "title": string;
|
|
8933
9012
|
readonly "createdAt": string;
|
|
@@ -10376,6 +10455,11 @@ export interface PluginDataPorts {
|
|
|
10376
10455
|
readonly respond: (input: ApprovalsRespondInput) => Promise<ApprovalsRespondOutput>;
|
|
10377
10456
|
};
|
|
10378
10457
|
readonly providers: {
|
|
10458
|
+
readonly nativeSessionImports: {
|
|
10459
|
+
readonly scan: (input: ProvidersNativeSessionsScanInput) => Promise<ProvidersNativeSessionsScanOutput>;
|
|
10460
|
+
readonly import: (input: ProvidersNativeSessionsImportInput, emit: (frame: ProvidersNativeSessionsImportOutput) => void | Promise<void>, signal: AbortSignal) => Promise<void>;
|
|
10461
|
+
readonly sync: (input: ProvidersNativeSessionsSyncInput) => Promise<ProvidersNativeSessionsSyncOutput>;
|
|
10462
|
+
};
|
|
10379
10463
|
readonly instances: {
|
|
10380
10464
|
readonly list: (input: ProvidersInstancesListInput) => Promise<ProvidersInstancesListOutput>;
|
|
10381
10465
|
readonly diagnose: (input: ProvidersInstancesDiagnoseInput) => Promise<ProvidersInstancesDiagnoseOutput>;
|
|
@@ -10910,6 +10994,10 @@ export interface PluginUiDataReads {
|
|
|
10910
10994
|
readonly input: MachineSettingsProxiesTestInput;
|
|
10911
10995
|
readonly output: MachineSettingsProxiesTestOutput;
|
|
10912
10996
|
};
|
|
10997
|
+
readonly "providers.nativeSessions.scan": {
|
|
10998
|
+
readonly input: ProvidersNativeSessionsScanInput;
|
|
10999
|
+
readonly output: ProvidersNativeSessionsScanOutput;
|
|
11000
|
+
};
|
|
10913
11001
|
readonly "providers.instances.list": {
|
|
10914
11002
|
readonly input: ProvidersInstancesListInput;
|
|
10915
11003
|
readonly output: ProvidersInstancesListOutput;
|