HarnessSessionStoreImpl
Generated by TypeDoc. Do not edit this page directly.
Class: HarnessSessionStoreImpl
Section titled “Class: HarnessSessionStoreImpl”Defined in: packages/core/src/session/store.ts:84
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HarnessSessionStoreImpl(config): HarnessSessionStoreImpl;Defined in: packages/core/src/session/store.ts:92
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
config | HarnessAppConfig |
Returns
Section titled “Returns”HarnessSessionStoreImpl
Methods
Section titled “Methods”approveTool()
Section titled “approveTool()”approveTool(sessionId, approvalId): Promise<void>;Defined in: packages/core/src/session/store.ts:211
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
approvalId | string |
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”HarnessSessionStore.approveTool
clearActive()
Section titled “clearActive()”clearActive(): Promise<void>;Defined in: packages/core/src/session/store.ts:187
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”HarnessSessionStore.clearActive
close()
Section titled “close()”Call Signature
Section titled “Call Signature”close(sessionId): Promise<boolean>;Defined in: packages/core/src/session/store.ts:158
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”Call Signature
Section titled “Call Signature”close(): Promise<void>;Defined in: packages/core/src/session/store.ts:159
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”closeAll()
Section titled “closeAll()”closeAll(): Promise<void>;Defined in: packages/core/src/session/store.ts:192
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”delete()
Section titled “delete()”delete(sessionId): Promise<boolean>;Defined in: packages/core/src/session/store.ts:179
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”denyTool()
Section titled “denyTool()”denyTool( sessionId, approvalId,reason?): Promise<void>;Defined in: packages/core/src/session/store.ts:217
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
approvalId | string |
reason? | string |
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”get(sessionId): HarnessSession | undefined;Defined in: packages/core/src/session/store.ts:141
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
Returns
Section titled “Returns”HarnessSession | undefined
Implementation of
Section titled “Implementation of”getAgentManifest()
Section titled “getAgentManifest()”getAgentManifest(sessionId): | HarnessAgentManifest | undefined;Defined in: packages/core/src/session/store.ts:223
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string |
Returns
Section titled “Returns”| HarnessAgentManifest
| undefined
Implementation of
Section titled “Implementation of”HarnessSessionStore.getAgentManifest
getOrCreate()
Section titled “getOrCreate()”getOrCreate(sessionId?, overrides?): Promise<HarnessSession>;Defined in: packages/core/src/session/store.ts:100
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId? | string |
overrides? | Partial<HarnessAppConfig> |
Returns
Section titled “Returns”Promise<HarnessSession>
Implementation of
Section titled “Implementation of”HarnessSessionStore.getOrCreate
getPendingApprovals()
Section titled “getPendingApprovals()”getPendingApprovals(sessionId?): ToolApprovalHandle[];Defined in: packages/core/src/session/store.ts:206
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId? | string |
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”HarnessSessionStore.getPendingApprovals
init()
Section titled “init()”init(): Promise<void>;Defined in: packages/core/src/session/store.ts:96
Returns
Section titled “Returns”Promise<void>
list()
Section titled “list()”list(query?): Promise<SessionListResult>;Defined in: packages/core/src/session/store.ts:145
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
query? | SessionListQuery |
Returns
Section titled “Returns”Promise<SessionListResult>
Implementation of
Section titled “Implementation of”on(listener): () => void;Defined in: packages/core/src/session/store.ts:227
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
listener | HarnessSessionStoreListener |
Returns
Section titled “Returns”() => void
Implementation of
Section titled “Implementation of”send()
Section titled “send()”send( sessionId, input,options?): Promise<SendResult>;Defined in: packages/core/src/session/store.ts:196
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string | undefined |
input | string | HarnessUserInput |
options? | SendOptions |
Returns
Section titled “Returns”Promise<SendResult>
Implementation of
Section titled “Implementation of”stream()
Section titled “stream()”stream( sessionId, input,options?): Promise<HarnessRunStream>;Defined in: packages/core/src/session/store.ts:201
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sessionId | string | undefined |
input | string | HarnessUserInput |
options? | StreamOptions |
Returns
Section titled “Returns”Promise<HarnessRunStream>