fix: optional chaining on chat.params provider/model access
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "opencode-agentlens",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "OpenCode plugin for AgentLens — trace your coding agent's decisions, tool calls, and sessions",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
|
||||
@@ -207,8 +207,8 @@ const plugin: Plugin = async ({ project, directory, worktree }) => {
|
||||
name: "chat.params",
|
||||
metadata: safeJsonValue({
|
||||
agent: input.agent,
|
||||
model: input.model.id,
|
||||
provider: input.provider.info.id,
|
||||
model: input.model?.id,
|
||||
provider: input.provider?.info?.id,
|
||||
temperature: output.temperature,
|
||||
topP: output.topP,
|
||||
topK: output.topK,
|
||||
|
||||
Reference in New Issue
Block a user