ituoke/internal/protocol/version.go

16 lines
538 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package protocol
// ============================================================
// [协议] UI ↔ Go Core ↔ Python Agent 的契约版本
// 升级字段或方法时:先升 Version,再兼容旧客户端
// 后续可换成 gRPC,但版本号策略保持不变
// ============================================================
const (
// Version 当前 JSON-RPC 协议主版本(semver major.minor)
Version = "1.0"
// DefaultAgentAddr Python Agent 默认监听地址(本机回环)
DefaultAgentAddr = "127.0.0.1:17890"
)