@sleep2agi/agent-network 2.3.0-preview.50 → 2.3.0-preview.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.50";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.36";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.36";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.50";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.36";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.36";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.51";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.37";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.37";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.51";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.37";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.37";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -0,0 +1,20 @@
1
+ export type ReplyAliasDecision =
2
+ /** 把 alias 显式发出去 */
3
+ {
4
+ readonly kind: "known";
5
+ readonly alias: string;
6
+ }
7
+ /** 省略 alias,交给 hub 从 in_reply_to 推导 */
8
+ | {
9
+ readonly kind: "derive";
10
+ }
11
+ /** 没有 task_id 可推导:保持历史行为,发给 hub */
12
+ | {
13
+ readonly kind: "hub";
14
+ readonly alias: "hub";
15
+ };
16
+ export declare function decideReplyAlias(taskId: string | null | undefined, lookup: (taskId: string) => string | undefined): ReplyAliasDecision;
17
+ /** 把决策摊成 send_reply 的参数片段。`derive` 时**不含** alias 键。 */
18
+ export declare function replyAliasArgs(d: ReplyAliasDecision): {
19
+ alias?: string;
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.50",
3
+ "version": "2.3.0-preview.51",
4
4
  "description": "AI Agent Network CLI — Local-first multi-agent orchestration across 6 runtimes (Claude Code CLI / Claude Agent SDK / Codex SDK / Codex app-server / Grok Build ACP / OpenCode CLI) and 8+ LLM providers. Apache 2.0.",
5
5
  "type": "module",
6
6
  "main": "dist/src/client.js",