@sleep2agi/agent-network 2.3.0-preview.154 → 2.3.0-preview.156

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.
@@ -19,14 +19,39 @@ export interface SkillSummary {
19
19
  scope: SkillScope;
20
20
  path_rel: string;
21
21
  description: string;
22
+ /** 只有团队技能才带。不写进 scope:旧客户端会把不认识的 scope 当成「项目」。 */
23
+ origin?: "team";
22
24
  }
23
25
  export declare function isValidSkillName(name: unknown): name is string;
24
26
  /** 按优先级(高 → 低)列出某运行时会加载技能的根目录。同名技能以先出现的为准。 */
25
27
  export declare function skillRootsForRuntime(runtime: string | null | undefined, ctx: SkillContext): SkillRoot[];
26
28
  /** 从 SKILL.md 开头的 YAML frontmatter 取 description(单行 / 引号 / `|` `>` 块)。 */
27
29
  export declare function parseSkillDescription(text: string): string;
30
+ export declare const TEAM_COPY_MARKER = ".anet-team-copy";
31
+ export declare function teamSkillsDir(ctx: SkillContext): string;
32
+ /** 每个运行时只链进这一个用户级目录。codex 用本节点的 CODEX_HOME,没有专属目录才用 ~/.codex。 */
33
+ export declare function teamSkillDest(runtime: string | null | undefined, ctx: SkillContext): {
34
+ dir: string;
35
+ label: string;
36
+ machineWide: boolean;
37
+ } | null;
38
+ /** 是不是我们建的:链接目标在团队目录下,或者复制标记里记的 source 解析后在团队目录下。不看名字。
39
+ * 只有标记、source 却指向别处的(比如用户把复制件拷出去自己改了),不算我们的,不删。 */
40
+ export declare function isOurTeamEntry(dest: string, teamDir: string): Promise<boolean>;
28
41
  export declare function listSkills(runtime: string | null | undefined, ctx: SkillContext): Promise<SkillSummary[]>;
29
42
  export interface SkillReadResult extends SkillSummary {
30
43
  content: string;
31
44
  }
32
45
  export declare function readSkill(runtime: string | null | undefined, ctx: SkillContext, name: unknown): Promise<SkillReadResult>;
46
+ export interface TeamSkillSay {
47
+ log: (message: string) => void;
48
+ warn: (message: string) => void;
49
+ }
50
+ /** 启动时把 ~/.anet/skills/<name> 链进该运行时的用户级目录。同名且不是我们建的,不覆盖。 */
51
+ export declare function installTeamSkills(runtime: string | null | undefined, ctx: SkillContext, say?: TeamSkillSay): Promise<void>;
52
+ export declare function teamSkillWarnings(runtime: string | null | undefined, ctx: SkillContext): Promise<string[]>;
53
+ export declare function skillView(runtime: string | null | undefined, ctx: SkillContext): Promise<{
54
+ skills: SkillSummary[];
55
+ roots: string[];
56
+ warnings: string[];
57
+ }>;
@@ -1,9 +1,9 @@
1
- export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.154";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.122";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.122";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.154";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.122";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.122";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.156";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.124";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.124";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.156";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.124";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.124";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.154",
3
+ "version": "2.3.0-preview.156",
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",