chore(sdk): remove unrelated session helper from #89893

This commit is contained in:
hukla
2026-08-19 22:48:22 +03:00
committed by Teknium
parent b40d2019e8
commit a46fe01251
+1 -16
View File
@@ -499,21 +499,6 @@ export const host = {
ensureAgent: async (connectionId: null | string, profile: string): Promise<void> =>
ensureGatewayAgent(connectionId, (profile ?? '').trim() || 'default'),
/** Open a stored session that belongs to an agent on ANY registered source.
* The connection id + profile are the durable route; the store handles
* dialing / source activation, then the regular session-open path owns
* navigation + hydration. */
openAgentSession: async (
connectionId: null | string,
profile: string,
storedSessionId: string,
options: Omit<PluginOpenSessionOptions, 'profile'> = {}
): Promise<void> => {
await ensureGatewayAgent(connectionId, (profile ?? '').trim() || 'default')
return host.openSession(storedSessionId, { ...options, profile })
},
/** Open a stored session — optionally pre-activating its profile first. */
openSession: async (storedSessionId: string, options: PluginOpenSessionOptions = {}): Promise<void> => {
const generation = ++openSessionGeneration
@@ -966,4 +951,4 @@ export { Blobatar } from 'blobatar/react'
export { atom, computed } from 'nanostores'
/** Markdown renderer (same pipeline core chat surfaces use) so plugins render
* message text as a preview instead of raw Markdown source. */
export { Streamdown } from 'streamdown'
export { Streamdown } from 'streamdown'