feat(pi): upgrade Pi SDK runtime to 1.7.0 and undici to 8.12.4
This commit is contained in:
parent
b2f9041589
commit
eaf1199cb2
|
|
@ -21,7 +21,7 @@ CyberStrikeAI is an open-source cybersecurity agent workbench built with **Go +
|
||||||
|
|
||||||
## Key highlights
|
## Key highlights
|
||||||
|
|
||||||
- **Native Pi 1.5.2 agent runtime**: Powered by native Pi session persistence, automatic context compaction, live mid-run steering (**Interrupt & continue**), and configurable reasoning-effort controls, with legacy Eino engine dependencies completely removed.
|
- **Native Pi 1.7.0 agent runtime**: Powered by native Pi session persistence, automatic context compaction, live mid-run steering (**Interrupt & continue**), and configurable reasoning-effort controls, with legacy Eino engine dependencies completely removed.
|
||||||
- **Goal-driven Deep Assessments workbench**: Long-running autonomous assessments backed by a shared project **Attack-Surface Graph**, hot/cold archived **Exploration Graph**, prioritized **Intent Queue**, and receipt-backed **Facts & Acceptance Evidence Matrix**.
|
- **Goal-driven Deep Assessments workbench**: Long-running autonomous assessments backed by a shared project **Attack-Surface Graph**, hot/cold archived **Exploration Graph**, prioritized **Intent Queue**, and receipt-backed **Facts & Acceptance Evidence Matrix**.
|
||||||
- **React 19 + Semi Design workbench**: Modern single-page interface featuring unified detail drawers, project-grouped conversations, compact model/role pickers, domain/host/task vulnerability views, and **one-click vulnerability retesting**.
|
- **React 19 + Semi Design workbench**: Modern single-page interface featuring unified detail drawers, project-grouped conversations, compact model/role pickers, domain/host/task vulnerability views, and **one-click vulnerability retesting**.
|
||||||
- **Multi-gateway compatibility & adaptive context**: Supports custom per-channel auth headers (same-origin guarded for third-party gateways), automatic runtime context-window probing, `local_auto` profiles for local inference servers (oMLX, Ollama, etc.), DeepSeek economy profiles, and dedicated HITL review model testing.
|
- **Multi-gateway compatibility & adaptive context**: Supports custom per-channel auth headers (same-origin guarded for third-party gateways), automatic runtime context-window probing, `local_auto` profiles for local inference servers (oMLX, Ollama, etc.), DeepSeek economy profiles, and dedicated HITL review model testing.
|
||||||
|
|
@ -143,7 +143,7 @@ Specialized operations also include [WebShell management](docs/en-US/webshell.md
|
||||||
| Component | Responsibility |
|
| Component | Responsibility |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| **Go server and schedulers** | HTTP/SSE APIs, deep-assessment and batch-queue scheduling, tool governance, storage cleanup, and evidence persistence |
|
| **Go server and schedulers** | HTTP/SSE APIs, deep-assessment and batch-queue scheduling, tool governance, storage cleanup, and evidence persistence |
|
||||||
| **Pi runtime** | **Pi 1.5.2** model interaction, agent tool loops, native session persistence, compaction, steering, and tool discovery |
|
| **Pi runtime** | **Pi 1.7.0** model interaction, agent tool loops, native session persistence, compaction, steering, and tool discovery |
|
||||||
| **Tool gateway** | Dispatches local tools and MCP calls under role boundaries, permissions, HITL approvals, and output/timeout guards |
|
| **Tool gateway** | Dispatches local tools and MCP calls under role boundaries, permissions, HITL approvals, and output/timeout guards |
|
||||||
| **SQLite and Pi sessions** | Business state, graph nodes, and raw tool receipts in SQLite; model transcripts and compaction entries in Pi sessions |
|
| **SQLite and Pi sessions** | Business state, graph nodes, and raw tool receipts in SQLite; model transcripts and compaction entries in Pi sessions |
|
||||||
| **Web workbench** | React 19 + Semi Design + Cytoscape frontend unifying chat, assessment graphs, task traces, and project assets |
|
| **Web workbench** | React 19 + Semi Design + Cytoscape frontend unifying chat, assessment graphs, task traces, and project assets |
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ CyberStrikeAI 是基于 **Go + Pi** 构建的开源网络安全智能体工作
|
||||||
|
|
||||||
## 核心特性
|
## 核心特性
|
||||||
|
|
||||||
- **Pi 1.5.2 原生智能体运行时**:全面采用原生 Pi 会话持久化、自动上下文压缩(Compaction)、执行中实时「中断并继续(Steering)」以及推理强度(Reasoning Effort)档位调节,已彻底移除早期 Eino 引擎依赖。
|
- **Pi 1.7.0 原生智能体运行时**:全面采用原生 Pi 会话持久化、自动上下文压缩(Compaction)、执行中实时「中断并继续(Steering)」以及推理强度(Reasoning Effort)档位调节,已彻底移除早期 Eino 引擎依赖。
|
||||||
- **目标驱动的「深度测评」持久工作台**:围绕测评目标与验收条件长周期推进,内置项目级共享**攻击面图**、支持冷热分支归档的**探索图谱**、优先级**意图队列**,以及强制绑定真实工具回执的**事实记录与验收证据矩阵**。
|
- **目标驱动的「深度测评」持久工作台**:围绕测评目标与验收条件长周期推进,内置项目级共享**攻击面图**、支持冷热分支归档的**探索图谱**、优先级**意图队列**,以及强制绑定真实工具回执的**事实记录与验收证据矩阵**。
|
||||||
- **React 19 + Semi Design 统一工作台**:采用现代化单页架构,支持抽屉式详情查阅、按项目分组管理对话、紧凑模型与角色切换,以及按域名、主机、任务多维聚合的漏洞管理与**一键复测**。
|
- **React 19 + Semi Design 统一工作台**:采用现代化单页架构,支持抽屉式详情查阅、按项目分组管理对话、紧凑模型与角色切换,以及按域名、主机、任务多维聚合的漏洞管理与**一键复测**。
|
||||||
- **多网关兼容与上下文自适应**:支持渠道自定义鉴权请求头(适配各类第三方聚合网关,限制同源重定向防泄露)、运行时上下文窗口自动探测、本地推理服务(oMLX / Ollama 等)`local_auto` 画像、DeepSeek 经济上下文画像及独立 HITL 审计模型配置。
|
- **多网关兼容与上下文自适应**:支持渠道自定义鉴权请求头(适配各类第三方聚合网关,限制同源重定向防泄露)、运行时上下文窗口自动探测、本地推理服务(oMLX / Ollama 等)`local_auto` 画像、DeepSeek 经济上下文画像及独立 HITL 审计模型配置。
|
||||||
|
|
@ -143,7 +143,7 @@ cd web/frontend && npm ci && npm run build
|
||||||
| 组件 | 核心职责 |
|
| 组件 | 核心职责 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| **Go 服务与调度引擎** | 承载 HTTP/SSE 接口、深度测评与批量队列调度、工具执行管控、存储清理及证据落盘 |
|
| **Go 服务与调度引擎** | 承载 HTTP/SSE 接口、深度测评与批量队列调度、工具执行管控、存储清理及证据落盘 |
|
||||||
| **Pi 运行时** | 基于 **Pi 1.5.2** 处理模型交互、工具调用循环、原生会话持久化、上下文压缩与中途引导(Steering) |
|
| **Pi 运行时** | 基于 **Pi 1.7.0** 处理模型交互、工具调用循环、原生会话持久化、上下文压缩与中途引导(Steering) |
|
||||||
| **工具网关** | 统一分发本地工具与 MCP 调用,执行角色边界、权限校验、人工审批与超时/输出截断治理 |
|
| **工具网关** | 统一分发本地工具与 MCP 调用,执行角色边界、权限校验、人工审批与超时/输出截断治理 |
|
||||||
| **SQLite 与 Pi 会话存储** | SQLite 保存业务状态、图谱节点与执行回执;Pi 会话记录模型上下文与压缩摘要 |
|
| **SQLite 与 Pi 会话存储** | SQLite 保存业务状态、图谱节点与执行回执;Pi 会话记录模型上下文与压缩摘要 |
|
||||||
| **Web 工作台** | 基于 React 19 + Semi Design + Cytoscape 构建的前端界面,统一呈现对话、测评图谱、任务轨迹与项目资产 |
|
| **Web 工作台** | 基于 React 19 + Semi Design + Cytoscape 构建的前端界面,统一呈现对话、测评图谱、任务轨迹与项目资产 |
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Pi runtime
|
# Pi runtime
|
||||||
|
|
||||||
CyberStrikeAI uses Pi 1.5.2 as its only runtime. Go owns business state, permissions, MCP execution, evidence, and delivery checks; an isolated Node worker hosts the Pi SDK. The source repository is [Sycun/CyberStrikeAI](https://github.com/Sycun/CyberStrikeAI).
|
CyberStrikeAI uses Pi 1.7.0 as its only runtime. Go owns business state, permissions, MCP execution, evidence, and delivery checks; an isolated Node worker hosts the Pi SDK. The source repository is [Sycun/CyberStrikeAI](https://github.com/Sycun/CyberStrikeAI).
|
||||||
|
|
||||||
Prefer public APIs from the pinned Pi SDK. Add host or worker logic where project permissions, business records, or compatibility require it.
|
Prefer public APIs from the pinned Pi SDK. Add host or worker logic where project permissions, business records, or compatibility require it.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Prompt tokens are Pi input + cacheRead + cacheWrite. Completion tokens are outpu
|
||||||
|
|
||||||
The dashboard and Settings usage view retain period, model and project filters. APIs are `GET /api/usage/tokens` and `GET /api/conversations/:id/token-usage`. Existing usage rows and historical timeline backfill remain compatible.
|
The dashboard and Settings usage view retain period, model and project filters. APIs are `GET /api/usage/tokens` and `GET /api/conversations/:id/token-usage`. Existing usage rows and historical timeline backfill remain compatible.
|
||||||
|
|
||||||
Streaming updates carry deltas; complete messages are committed at message end. Implementation: `internal/multiagent/pi_runner.go` and `internal/database/model_token_usage.go`. See [Pi AI](https://github.com/earendil-works/pi/tree/v1.5.2/packages/ai).
|
Streaming updates carry deltas; complete messages are committed at message end. Implementation: `internal/multiagent/pi_runner.go` and `internal/database/model_token_usage.go`. See [Pi AI](https://github.com/earendil-works/pi/tree/v1.7.0/packages/ai).
|
||||||
|
|
||||||
## DeepSeek
|
## DeepSeek
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Pi 原生运行时
|
# Pi 原生运行时
|
||||||
|
|
||||||
CyberStrikeAI 仅使用 Pi 1.5.2(`@earendil-works/pi-coding-agent`、`pi-ai`),Go 保留业务、权限、工具执行和证据管理。个人主仓库为 [Sycun/CyberStrikeAI](https://github.com/Sycun/CyberStrikeAI)。
|
CyberStrikeAI 仅使用 Pi 1.7.0(`@earendil-works/pi-coding-agent`、`pi-ai`),Go 保留业务、权限、工具执行和证据管理。个人主仓库为 [Sycun/CyberStrikeAI](https://github.com/Sycun/CyberStrikeAI)。
|
||||||
|
|
||||||
维护时优先使用当前锁定版本的 Pi SDK 公共接口。只有需要项目权限、业务记录或兼容行为时,才在宿主或 Worker 增加逻辑。
|
维护时优先使用当前锁定版本的 Pi SDK 公共接口。只有需要项目权限、业务记录或兼容行为时,才在宿主或 Worker 增加逻辑。
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
已有模型用量表保持兼容。旧时间线用量事件可作为历史记录补齐;新记录仅由原生 Pi 事件生成。原生流式消息只传输增量,完整消息在结束时提交,避免重复累计与逐块重复发送整份内容。
|
已有模型用量表保持兼容。旧时间线用量事件可作为历史记录补齐;新记录仅由原生 Pi 事件生成。原生流式消息只传输增量,完整消息在结束时提交,避免重复累计与逐块重复发送整份内容。
|
||||||
|
|
||||||
实现:`internal/multiagent/pi_runner.go`、`internal/database/model_token_usage.go`、前端用量页面。基础模型 usage 语义见 [Pi AI](https://github.com/earendil-works/pi/tree/v1.5.2/packages/ai)。
|
实现:`internal/multiagent/pi_runner.go`、`internal/database/model_token_usage.go`、前端用量页面。基础模型 usage 语义见 [Pi AI](https://github.com/earendil-works/pi/tree/v1.7.0/packages/ai)。
|
||||||
|
|
||||||
## DeepSeek
|
## DeepSeek
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ func (p Pi) Run(ctx context.Context, req Request, execute ToolExecutor, emit fun
|
||||||
defer readyTimeout.Stop()
|
defer readyTimeout.Stop()
|
||||||
select {
|
select {
|
||||||
case r := <-incoming:
|
case r := <-incoming:
|
||||||
if r.Type != "ready" || r.Version != ProtocolVersion || r.SDKVersion != "1.5.2" {
|
if r.Type != "ready" || r.Version != ProtocolVersion || r.SDKVersion != "1.7.0" {
|
||||||
return nil, errors.New("Pi runtime protocol mismatch")
|
return nil, errors.New("Pi runtime protocol mismatch")
|
||||||
}
|
}
|
||||||
case err := <-readDone:
|
case err := <-readDone:
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ func fixtureWorker(t *testing.T, body string) Pi {
|
||||||
path := filepath.Join(t.TempDir(), "worker.cjs")
|
path := filepath.Join(t.TempDir(), "worker.cjs")
|
||||||
script := `const readline=require('node:readline');
|
script := `const readline=require('node:readline');
|
||||||
const send=x=>process.stdout.write(JSON.stringify(x)+'\n');
|
const send=x=>process.stdout.write(JSON.stringify(x)+'\n');
|
||||||
send({type:'ready',version:1,sdkVersion:'1.5.2'});
|
send({type:'ready',version:1,sdkVersion:'1.7.0'});
|
||||||
const input=readline.createInterface({input:process.stdin});
|
const input=readline.createInterface({input:process.stdin});
|
||||||
` + body
|
` + body
|
||||||
if err = os.WriteFile(path, []byte(script), 0o600); err != nil {
|
if err = os.WriteFile(path, []byte(script), 0o600); err != nil {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ func EnsurePiRuntime(ctx context.Context, node, configuredWorker string) error {
|
||||||
scanner.Buffer(make([]byte, 4096), maxRecordBytes)
|
scanner.Buffer(make([]byte, 4096), maxRecordBytes)
|
||||||
var ready record
|
var ready record
|
||||||
if !scanner.Scan() || json.Unmarshal(scanner.Bytes(), &ready) != nil ||
|
if !scanner.Scan() || json.Unmarshal(scanner.Bytes(), &ready) != nil ||
|
||||||
ready.Type != "ready" || ready.Version != ProtocolVersion || ready.SDKVersion != "1.5.2" {
|
ready.Type != "ready" || ready.Version != ProtocolVersion || ready.SDKVersion != "1.7.0" {
|
||||||
return fmt.Errorf("Pi runtime readiness check failed; verify Node.js >=22.19 and rebuild with bash scripts/build-pi-runtime.sh")
|
return fmt.Errorf("Pi runtime readiness check failed; verify Node.js >=22.19 and rebuild with bash scripts/build-pi-runtime.sh")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ func TestStartupPreparesWorkerAfterGoOnlyUpgrade(t *testing.T) {
|
||||||
"package.json": `{"name":"startup-fixture","version":"1.0.0","scripts":{"build":"node -e \"require('fs').mkdirSync('dist');require('fs').copyFileSync('src/worker.js','dist/worker.js')\""}}`,
|
"package.json": `{"name":"startup-fixture","version":"1.0.0","scripts":{"build":"node -e \"require('fs').mkdirSync('dist');require('fs').copyFileSync('src/worker.js','dist/worker.js')\""}}`,
|
||||||
"package-lock.json": `{"name":"startup-fixture","version":"1.0.0","lockfileVersion":3,"packages":{"":{"name":"startup-fixture","version":"1.0.0"}}}`,
|
"package-lock.json": `{"name":"startup-fixture","version":"1.0.0","lockfileVersion":3,"packages":{"":{"name":"startup-fixture","version":"1.0.0"}}}`,
|
||||||
"tsconfig.json": `{}`,
|
"tsconfig.json": `{}`,
|
||||||
"src/worker.js": `console.log(JSON.stringify({type:'ready',version:1,sdkVersion:'1.5.2'}));process.stdin.resume();`,
|
"src/worker.js": `console.log(JSON.stringify({type:'ready',version:1,sdkVersion:'1.7.0'}));process.stdin.resume();`,
|
||||||
}
|
}
|
||||||
for path, body := range files {
|
for path, body := range files {
|
||||||
if err := os.WriteFile(filepath.Join(root, path), []byte(body), 0o600); err != nil {
|
if err := os.WriteFile(filepath.Join(root, path), []byte(body), 0o600); err != nil {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# Runtime attribution
|
# Runtime attribution
|
||||||
|
|
||||||
Pi SDK: https://github.com/earendil-works/pi (MIT), pinned to 1.5.2.
|
Pi SDK: https://github.com/earendil-works/pi (MIT), pinned to 1.7.0.
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
"name": "@cyberstrike-ai/pi-runtime",
|
"name": "@cyberstrike-ai/pi-runtime",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@earendil-works/pi-ai": "1.5.2",
|
"@earendil-works/pi-ai": "1.7.0",
|
||||||
"@earendil-works/pi-coding-agent": "1.5.2",
|
"@earendil-works/pi-coding-agent": "1.7.0",
|
||||||
"undici": "8.12.3"
|
"undici": "8.12.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "22.19.19",
|
"@types/node": "22.19.19",
|
||||||
|
|
@ -420,33 +420,34 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-agent-core": {
|
"node_modules/@earendil-works/pi-agent-core": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.7.0.tgz",
|
||||||
"integrity": "sha512-ie5mejS7mGfXt//9As7i3LfxVXdktZvF1JP4EQsUXTp4mU437h23MNGx7wXZ5VYs3YiG/Qnj3e7OZ2HC069OMw==",
|
"integrity": "sha512-pLs/wTAcrUnKDILPHjnd7RiDZSotAhJ965LwVc8x37TeWF+k+vKPMmAW6Z1T8XMQuICbIYusjkT7K0lmjgQwrg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@earendil-works/pi-ai": "1.5.2",
|
"@earendil-works/pi-ai": "1.7.0",
|
||||||
"@earendil-works/pi-schema": "1.5.2"
|
"@earendil-works/pi-schema": "1.7.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.19.0"
|
"node": ">=22.19.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-ai": {
|
"node_modules/@earendil-works/pi-ai": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.7.0.tgz",
|
||||||
"integrity": "sha512-2tWPSnV3qzfiDIY3aWluBag3vC++Vs+VsXt/UquSU5onPMohPih72FUhIhaqmDdMYubOgB3Byl9uF4Vk40JLvQ==",
|
"integrity": "sha512-iKryMlUYniwWbU7YU0uS7W0+cGd9c6oJ6PzRLOn8j4+1njG4c+BQq1cNawctx/npDqGeOx8ME7Gkgl6K6arPuw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/sdk": "0.129.0",
|
"@anthropic-ai/sdk": "0.129.0",
|
||||||
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
||||||
"@earendil-works/pi-schema": "1.5.2",
|
"@aws-sdk/credential-provider-node": "3.972.82",
|
||||||
"@earendil-works/pi-telemetry": "1.5.2",
|
"@earendil-works/pi-schema": "1.7.0",
|
||||||
"@google/genai": "2.21.0",
|
"@earendil-works/pi-telemetry": "1.7.0",
|
||||||
|
"@google/genai": "3.6.1",
|
||||||
"@smithy/node-http-handler": "4.12.1",
|
"@smithy/node-http-handler": "4.12.1",
|
||||||
"http-proxy-agent": "9.1.0",
|
"http-proxy-agent": "9.1.0",
|
||||||
"https-proxy-agent": "9.1.0",
|
"https-proxy-agent": "9.1.0",
|
||||||
"openai": "7.19.0",
|
"openai": "7.59.0",
|
||||||
"partial-json": "0.1.7"
|
"partial-json": "0.1.7"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
@ -456,10 +457,32 @@
|
||||||
"node": ">=22.19.0"
|
"node": ">=22.19.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@earendil-works/pi-ai/node_modules/@aws-sdk/credential-provider-node": {
|
||||||
|
"version": "3.972.82",
|
||||||
|
"resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.82.tgz",
|
||||||
|
"integrity": "sha512-znDkEOGXB8W3kG1LJUKP3foBZY/9qLM0eil/DxWXSp37XsdsRLQHE/d/OaCGGVgKpA6znR38h/+INk8do1FjiA==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@aws-sdk/credential-provider-env": "^3.972.70",
|
||||||
|
"@aws-sdk/credential-provider-http": "^3.972.72",
|
||||||
|
"@aws-sdk/credential-provider-ini": "^3.973.15",
|
||||||
|
"@aws-sdk/credential-provider-process": "^3.972.70",
|
||||||
|
"@aws-sdk/credential-provider-sso": "^3.973.14",
|
||||||
|
"@aws-sdk/credential-provider-web-identity": "^3.972.76",
|
||||||
|
"@aws-sdk/types": "^3.974.5",
|
||||||
|
"@smithy/core": "^3.33.3",
|
||||||
|
"@smithy/credential-provider-imds": "^4.4.16",
|
||||||
|
"@smithy/types": "^4.17.2",
|
||||||
|
"tslib": "^2.6.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=20.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@earendil-works/pi-codemode": {
|
"node_modules/@earendil-works/pi-codemode": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.7.0.tgz",
|
||||||
"integrity": "sha512-HoZQ40a9RgdZ1VgmrX6x8887cNXedaRJT1l+Ie5YRIMK4gY7v0EpsiNqf6dmixrKylZlTgUSyR+vE8xhjfkr+w==",
|
"integrity": "sha512-fhCoh8TLxhdRTOWSEplwp39Uv+JTsu9pCqtgu9gorO8zcaw92vsbVI/G89yFs92csTo2+yB7EsJq/+725Vj+eA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"quickjs-wasi": "3.6.2"
|
"quickjs-wasi": "3.6.2"
|
||||||
|
|
@ -469,16 +492,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-coding-agent": {
|
"node_modules/@earendil-works/pi-coding-agent": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.7.0.tgz",
|
||||||
"integrity": "sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==",
|
"integrity": "sha512-opRelA1oqV/o+cByICMYU87oiHuICeCkghHMqsZsDwDz9F6qo8HFhoH4J/wZkr6tBeFor7ryOSwEmpZsusYrbA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@earendil-works/pi-agent-core": "1.5.2",
|
"@earendil-works/pi-agent-core": "1.7.0",
|
||||||
"@earendil-works/pi-ai": "1.5.2",
|
"@earendil-works/pi-ai": "1.7.0",
|
||||||
"@earendil-works/pi-codemode": "1.5.2",
|
"@earendil-works/pi-codemode": "1.7.0",
|
||||||
"@earendil-works/pi-mcp": "1.5.2",
|
"@earendil-works/pi-mcp": "1.7.0",
|
||||||
"@earendil-works/pi-tui": "1.5.2",
|
"@earendil-works/pi-tui": "1.7.0",
|
||||||
"@silvia-odwyer/photon-node": "0.3.4",
|
"@silvia-odwyer/photon-node": "0.3.4",
|
||||||
"brace-expansion": "5.0.12",
|
"brace-expansion": "5.0.12",
|
||||||
"chalk": "6.0.0",
|
"chalk": "6.0.0",
|
||||||
|
|
@ -494,7 +517,7 @@
|
||||||
"quickjs-wasi": "3.6.2",
|
"quickjs-wasi": "3.6.2",
|
||||||
"semver": "7.8.5",
|
"semver": "7.8.5",
|
||||||
"typebox": "1.3.27",
|
"typebox": "1.3.27",
|
||||||
"undici": "8.12.3",
|
"undici": "8.12.4",
|
||||||
"yaml": "2.9.0"
|
"yaml": "2.9.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
@ -505,9 +528,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-mcp": {
|
"node_modules/@earendil-works/pi-mcp": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.7.0.tgz",
|
||||||
"integrity": "sha512-zU1UgeXDlbixPqGEWD7Ql0brEMIpYr7aEWjoEE5h5enJbM/kQ2jIr7lN8JoR80oUnq1fJSU7SC8kLx2Fx/IZYg==",
|
"integrity": "sha512-ScsDjuFXjT9eKioD5oyZqofDXtaWCMhCBa+1aDSh7WmRACLsohfGQJtAX1rv5OmEbaerrRPgyD5jgwJFBjTFNw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cross-spawn": "7.0.6"
|
"cross-spawn": "7.0.6"
|
||||||
|
|
@ -517,27 +540,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-schema": {
|
"node_modules/@earendil-works/pi-schema": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.7.0.tgz",
|
||||||
"integrity": "sha512-hJoyCXWUhsSrXY5wJo2Q4kHXUsR51pNhkJHAMkWRwVMLDRtMDPkKNaa+JlVRVqTw1hjdSxcVVaFLSDbKlaTXEQ==",
|
"integrity": "sha512-skji4McLg9jum3NFWzFa/4QRGEZhMGnSi3QL8b9VljJkc/QopH2/BFuGKI+VcEwYzKGwsd0I8RzvXGnZGfGltQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.19.0"
|
"node": ">=22.19.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-telemetry": {
|
"node_modules/@earendil-works/pi-telemetry": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.7.0.tgz",
|
||||||
"integrity": "sha512-m+cumjIqNh1aMISi/9ttcG3ZOwIdriPbz/eMyWmRMJCGa/WcgY1RX4lrb7HvsHhSfI/JUeBESA4nOCr8C3y5ow==",
|
"integrity": "sha512-QZkngqktohuFZ2TZuJSXDuUntld4sCMW1tkUPaD4moMEX/z1lwcjycXnd9ChO9HNxm/Jfo+UTiC+N2hkAF9b0w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.19.0"
|
"node": ">=22.19.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/pi-tui": {
|
"node_modules/@earendil-works/pi-tui": {
|
||||||
"version": "1.5.2",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.7.0.tgz",
|
||||||
"integrity": "sha512-WK8ih+c88GWizaB79y7Pq3PV7ySf5VI1pZ1i/6aBBjDOAiG2EE3ojKjl+pxQqLfyQGnzHYu4VfakOBJgumuoyw==",
|
"integrity": "sha512-C6vkUYGTeDdl/cMIbFOabSEPMRy9HuaUV76PS2BhvSmWifO5y8Rz8/LgFWqGIIFS7RMqu0gdeEpdXfH8jIp05g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"get-east-asian-width": "1.6.0",
|
"get-east-asian-width": "1.6.0",
|
||||||
|
|
@ -549,19 +572,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@google/genai": {
|
"node_modules/@google/genai": {
|
||||||
"version": "2.21.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.21.0.tgz",
|
"resolved": "https://registry.npmjs.org/@google/genai/-/genai-3.6.1.tgz",
|
||||||
"integrity": "sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==",
|
"integrity": "sha512-DQIkZkl+VoZc+RUSaJ41vRuywjQDpP0t/oUf5/ddQhNW6JsPjVULW2EgHmuJ1mrr6ACtrmUdPlqtNXF1yfKySg==",
|
||||||
"hasInstallScript": true,
|
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"google-auth-library": "^10.3.0",
|
"google-auth-library": "^10.3.0",
|
||||||
"p-retry": "^4.6.2",
|
"p-retry": "^4.6.2",
|
||||||
"protobufjs": "^7.5.4",
|
"protobufjs": "^7.6.5",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.21.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0"
|
"node": ">=22.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.25.2"
|
"@modelcontextprotocol/sdk": "^1.25.2"
|
||||||
|
|
@ -1250,9 +1272,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/openai": {
|
"node_modules/openai": {
|
||||||
"version": "7.19.0",
|
"version": "7.59.0",
|
||||||
"resolved": "https://registry.npmjs.org/openai/-/openai-7.19.0.tgz",
|
"resolved": "https://registry.npmjs.org/openai/-/openai-7.59.0.tgz",
|
||||||
"integrity": "sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==",
|
"integrity": "sha512-wPYKJkLPFEdNJ2tThSg4jE1Ptsv4X3u8g8LIvu0Qz/UIhsKeCzl73rl48PtQsDVrJL/ku0liXOsbyd2TsRsPJw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.0.0"
|
"node": ">=22.0.0"
|
||||||
|
|
@ -1261,6 +1283,7 @@
|
||||||
"@aws-sdk/credential-provider-node": ">=3.972.0 <4",
|
"@aws-sdk/credential-provider-node": ">=3.972.0 <4",
|
||||||
"@smithy/hash-node": ">=4.3.0 <5",
|
"@smithy/hash-node": ">=4.3.0 <5",
|
||||||
"@smithy/signature-v4": ">=5.4.0 <6",
|
"@smithy/signature-v4": ">=5.4.0 <6",
|
||||||
|
"google-auth-library": ">=9.15.1 <12",
|
||||||
"undici": ">=5 <9",
|
"undici": ">=5 <9",
|
||||||
"ws": "^8.21.0",
|
"ws": "^8.21.0",
|
||||||
"zod": "^3.25 || ^4.0"
|
"zod": "^3.25 || ^4.0"
|
||||||
|
|
@ -1275,6 +1298,9 @@
|
||||||
"@smithy/signature-v4": {
|
"@smithy/signature-v4": {
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"google-auth-library": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"undici": {
|
"undici": {
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
|
@ -1491,9 +1517,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "8.12.3",
|
"version": "8.12.4",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz",
|
||||||
"integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==",
|
"integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.19.0"
|
"node": ">=22.19.0"
|
||||||
|
|
@ -1530,9 +1556,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ws": {
|
"node_modules/ws": {
|
||||||
"version": "8.22.2",
|
"version": "8.23.1",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.2.tgz",
|
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
||||||
"integrity": "sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==",
|
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@
|
||||||
"check": "tsc -p tsconfig.json --noEmit"
|
"check": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@earendil-works/pi-ai": "1.5.2",
|
"@earendil-works/pi-ai": "1.7.0",
|
||||||
"@earendil-works/pi-coding-agent": "1.5.2",
|
"@earendil-works/pi-coding-agent": "1.7.0",
|
||||||
"undici": "8.12.3"
|
"undici": "8.12.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "22.19.19",
|
"@types/node": "22.19.19",
|
||||||
|
|
|
||||||
|
|
@ -530,4 +530,4 @@ async function fatal(error: unknown): Promise<void> {
|
||||||
rmSync(scratch, { recursive: true, force: true });
|
rmSync(scratch, { recursive: true, force: true });
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
await send({ type: "ready", version: PROTOCOL_VERSION, runtime: "pi", sdkVersion: "1.5.2" });
|
await send({ type: "ready", version: PROTOCOL_VERSION, runtime: "pi", sdkVersion: "1.7.0" });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue