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