MCPcopy Create free account
hub / github.com/tiann/hapi / getKeepAliveRuntime

Method getKeepAliveRuntime

cli/src/agent/sessionBase.ts:134–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 };
133
134 protected getKeepAliveRuntime():
135 {
136 permissionMode?: SessionPermissionMode
137 model?: SessionModel
138 modelReasoningEffort?: SessionModelReasoningEffort
139 effort?: SessionEffort
140 collaborationMode?: SessionCollaborationMode
141 } | undefined {
142 if (
143 this.permissionMode === undefined
144 && this.model === undefined
145 && this.modelReasoningEffort === undefined
146 && this.effort === undefined
147 && this.collaborationMode === undefined
148 ) {
149 return undefined;
150 }
151 return {
152 permissionMode: this.permissionMode,
153 model: this.model,
154 modelReasoningEffort: this.modelReasoningEffort,
155 effort: this.effort,
156 collaborationMode: this.collaborationMode
157 };
158 }
159
160 getPermissionMode(): SessionPermissionMode | undefined {
161 return this.permissionMode;

Callers 2

constructorMethod · 0.95
AgentSessionBaseClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected