MCPcopy Index your code
hub / github.com/anomalyco/opencode / createSessionData

Function createSessionData

packages/opencode/src/cli/cmd/run/session-data.ts:105–128  ·  view source on GitHub ↗
(
  input: {
    includeUserText?: boolean
  } = {},
)

Source from the content-addressed store, hash-verified

103}
104
105export function createSessionData(
106 input: {
107 includeUserText?: boolean
108 } = {},
109): SessionData {
110 return {
111 includeUserText: input.includeUserText ?? false,
112 announced: false,
113 ids: new Set(),
114 tools: new Set(),
115 call: new Map(),
116 shell: new Map(),
117 permissions: [],
118 questions: [],
119 role: new Map(),
120 msg: new Map(),
121 part: new Map(),
122 text: new Map(),
123 sent: new Map(),
124 visible: new Map(),
125 end: new Set(),
126 echo: new Map(),
127 }
128}
129
130function modelKey(provider: string, model: string): string {
131 return `${provider}/${model}`

Callers 6

createRunDemoFunction · 0.90
createDetailFunction · 0.90
compactDetailFunction · 0.90
createLayerFunction · 0.90
replaySessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected