mirror of https://github.com/openclaw/openclaw.git
fix(guardian): remove unused import, align pi-ai version with root
- Remove unused PluginRuntime import, consolidate import lines - Bump @mariozechner/pi-ai from 0.55.3 to 0.58.0 to match root Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e55c4c4044
commit
a19f3890b8
|
|
@ -1,6 +1,5 @@
|
||||||
import { getModels as piGetModels } from "@mariozechner/pi-ai";
|
import { getModels as piGetModels } from "@mariozechner/pi-ai";
|
||||||
import type { OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk/core";
|
import type { OpenClawConfig, OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
||||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
||||||
import { callGuardian } from "./guardian-client.js";
|
import { callGuardian } from "./guardian-client.js";
|
||||||
import {
|
import {
|
||||||
getAllTurns,
|
getAllTurns,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "OpenClaw guardian plugin — LLM-based intent-alignment review for tool calls",
|
"description": "OpenClaw guardian plugin — LLM-based intent-alignment review for tool calls",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mariozechner/pi-ai": "0.55.3"
|
"@mariozechner/pi-ai": "0.58.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"openclaw": "workspace:*"
|
"openclaw": "workspace:*"
|
||||||
|
|
|
||||||
|
|
@ -355,8 +355,8 @@ importers:
|
||||||
extensions/guardian:
|
extensions/guardian:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@mariozechner/pi-ai':
|
'@mariozechner/pi-ai':
|
||||||
specifier: 0.55.3
|
specifier: 0.58.0
|
||||||
version: 0.55.3(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))(ws@8.19.0)(zod@4.3.6)
|
version: 0.58.0(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))(ws@8.19.0)(zod@4.3.6)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
openclaw:
|
openclaw:
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
|
|
@ -1719,11 +1719,6 @@ packages:
|
||||||
resolution: {integrity: sha512-zhkwx3Wdo27snVfnJWi7l+wyU4XlazkeunTtz4e500GC+ufGOp4C3aIf0XiO5ZOtTE/0lvUiG2bWULR/i4lgUQ==}
|
resolution: {integrity: sha512-zhkwx3Wdo27snVfnJWi7l+wyU4XlazkeunTtz4e500GC+ufGOp4C3aIf0XiO5ZOtTE/0lvUiG2bWULR/i4lgUQ==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@mariozechner/pi-ai@0.55.3':
|
|
||||||
resolution: {integrity: sha512-f9jWoDzJR9Wy/H8JPMbjoM4WvVUeFZ65QdYA9UHIfoOopDfwWE8F8JHQOj5mmmILMacXuzsqA3J7MYqNWZRvvQ==}
|
|
||||||
engines: {node: '>=20.0.0'}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
'@mariozechner/pi-ai@0.58.0':
|
'@mariozechner/pi-ai@0.58.0':
|
||||||
resolution: {integrity: sha512-3TrkJ9QcBYFPo4NxYluhd+JQ4M+98RaEkNPMrLFU4wK4GMFVtsL3kp1YJ/oj7X0eqKuuDKbHj6MdoMZeT2TCvA==}
|
resolution: {integrity: sha512-3TrkJ9QcBYFPo4NxYluhd+JQ4M+98RaEkNPMrLFU4wK4GMFVtsL3kp1YJ/oj7X0eqKuuDKbHj6MdoMZeT2TCvA==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
@ -1750,9 +1745,6 @@ packages:
|
||||||
resolution: {integrity: sha512-570oJr93l1RcCNNaMVpOm+PgQkRgno/F65nH1aCWLIKLnw0o7iPoj+8Z5b7mnLMidg9lldVSCcf0dBxqTGE1/w==}
|
resolution: {integrity: sha512-570oJr93l1RcCNNaMVpOm+PgQkRgno/F65nH1aCWLIKLnw0o7iPoj+8Z5b7mnLMidg9lldVSCcf0dBxqTGE1/w==}
|
||||||
engines: {node: '>=20.0.0'}
|
engines: {node: '>=20.0.0'}
|
||||||
|
|
||||||
'@mistralai/mistralai@1.10.0':
|
|
||||||
resolution: {integrity: sha512-tdIgWs4Le8vpvPiUEWne6tK0qbVc+jMenujnvTqOjogrJUsCSQhus0tHTU1avDDh5//Rq2dFgP9mWRAdIEoBqg==}
|
|
||||||
|
|
||||||
'@mistralai/mistralai@1.14.1':
|
'@mistralai/mistralai@1.14.1':
|
||||||
resolution: {integrity: sha512-IiLmmZFCCTReQgPAT33r7KQ1nYo5JPdvGkrkZqA8qQ2qB1GHgs5LoP5K2ICyrjnpw2n8oSxMM/VP+liiKcGNlQ==}
|
resolution: {integrity: sha512-IiLmmZFCCTReQgPAT33r7KQ1nYo5JPdvGkrkZqA8qQ2qB1GHgs5LoP5K2ICyrjnpw2n8oSxMM/VP+liiKcGNlQ==}
|
||||||
|
|
||||||
|
|
@ -5523,18 +5515,6 @@ packages:
|
||||||
oniguruma-to-es@4.3.4:
|
oniguruma-to-es@4.3.4:
|
||||||
resolution: {integrity: sha512-3VhUGN3w2eYxnTzHn+ikMI+fp/96KoRSVK9/kMTcFqj1NRDh2IhQCKvYxDnWePKRXY/AqH+Fuiyb7VHSzBjHfA==}
|
resolution: {integrity: sha512-3VhUGN3w2eYxnTzHn+ikMI+fp/96KoRSVK9/kMTcFqj1NRDh2IhQCKvYxDnWePKRXY/AqH+Fuiyb7VHSzBjHfA==}
|
||||||
|
|
||||||
openai@6.10.0:
|
|
||||||
resolution: {integrity: sha512-ITxOGo7rO3XRMiKA5l7tQ43iNNu+iXGFAcf2t+aWVzzqRaS0i7m1K2BhxNdaveB+5eENhO0VY1FkiZzhBk4v3A==}
|
|
||||||
hasBin: true
|
|
||||||
peerDependencies:
|
|
||||||
ws: ^8.18.0
|
|
||||||
zod: ^3.25 || ^4.0
|
|
||||||
peerDependenciesMeta:
|
|
||||||
ws:
|
|
||||||
optional: true
|
|
||||||
zod:
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
openai@6.26.0:
|
openai@6.26.0:
|
||||||
resolution: {integrity: sha512-zd23dbWTjiJ6sSAX6s0HrCZi41JwTA1bQVs0wLQPZ2/5o2gxOJA5wh7yOAUgwYybfhDXyhwlpeQf7Mlgx8EOCA==}
|
resolution: {integrity: sha512-zd23dbWTjiJ6sSAX6s0HrCZi41JwTA1bQVs0wLQPZ2/5o2gxOJA5wh7yOAUgwYybfhDXyhwlpeQf7Mlgx8EOCA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
@ -8541,30 +8521,6 @@ snapshots:
|
||||||
- ws
|
- ws
|
||||||
- zod
|
- zod
|
||||||
|
|
||||||
'@mariozechner/pi-ai@0.55.3(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))(ws@8.19.0)(zod@4.3.6)':
|
|
||||||
dependencies:
|
|
||||||
'@anthropic-ai/sdk': 0.73.0(zod@4.3.6)
|
|
||||||
'@aws-sdk/client-bedrock-runtime': 3.1004.0
|
|
||||||
'@google/genai': 1.44.0(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))
|
|
||||||
'@mistralai/mistralai': 1.10.0
|
|
||||||
'@sinclair/typebox': 0.34.48
|
|
||||||
ajv: 8.18.0
|
|
||||||
ajv-formats: 3.0.1(ajv@8.18.0)
|
|
||||||
chalk: 5.6.2
|
|
||||||
openai: 6.10.0(ws@8.19.0)(zod@4.3.6)
|
|
||||||
partial-json: 0.1.7
|
|
||||||
proxy-agent: 6.5.0
|
|
||||||
undici: 7.24.1
|
|
||||||
zod-to-json-schema: 3.25.1(zod@4.3.6)
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- '@modelcontextprotocol/sdk'
|
|
||||||
- aws-crt
|
|
||||||
- bufferutil
|
|
||||||
- supports-color
|
|
||||||
- utf-8-validate
|
|
||||||
- ws
|
|
||||||
- zod
|
|
||||||
|
|
||||||
'@mariozechner/pi-ai@0.58.0(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))(ws@8.19.0)(zod@4.3.6)':
|
'@mariozechner/pi-ai@0.58.0(@modelcontextprotocol/sdk@1.27.1(zod@4.3.6))(ws@8.19.0)(zod@4.3.6)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@anthropic-ai/sdk': 0.73.0(zod@4.3.6)
|
'@anthropic-ai/sdk': 0.73.0(zod@4.3.6)
|
||||||
|
|
@ -8660,11 +8616,6 @@ snapshots:
|
||||||
- debug
|
- debug
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@mistralai/mistralai@1.10.0':
|
|
||||||
dependencies:
|
|
||||||
zod: 3.25.75
|
|
||||||
zod-to-json-schema: 3.25.1(zod@3.25.75)
|
|
||||||
|
|
||||||
'@mistralai/mistralai@1.14.1':
|
'@mistralai/mistralai@1.14.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
ws: 8.19.0
|
ws: 8.19.0
|
||||||
|
|
@ -12861,11 +12812,6 @@ snapshots:
|
||||||
regex: 6.1.0
|
regex: 6.1.0
|
||||||
regex-recursion: 6.0.2
|
regex-recursion: 6.0.2
|
||||||
|
|
||||||
openai@6.10.0(ws@8.19.0)(zod@4.3.6):
|
|
||||||
optionalDependencies:
|
|
||||||
ws: 8.19.0
|
|
||||||
zod: 4.3.6
|
|
||||||
|
|
||||||
openai@6.26.0(ws@8.19.0)(zod@4.3.6):
|
openai@6.26.0(ws@8.19.0)(zod@4.3.6):
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
ws: 8.19.0
|
ws: 8.19.0
|
||||||
|
|
@ -14359,10 +14305,6 @@ snapshots:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
|
||||||
zod-to-json-schema@3.25.1(zod@3.25.75):
|
|
||||||
dependencies:
|
|
||||||
zod: 3.25.75
|
|
||||||
|
|
||||||
zod-to-json-schema@3.25.1(zod@4.3.6):
|
zod-to-json-schema@3.25.1(zod@4.3.6):
|
||||||
dependencies:
|
dependencies:
|
||||||
zod: 4.3.6
|
zod: 4.3.6
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue