chore(sdk): remove unrelated session helper from #89893
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user