@sleep2agi/agent-network 2.3.0-preview.111 → 2.3.0-preview.112

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.
@@ -0,0 +1,32 @@
1
+ export declare const SKILL_FILE_MAX_BYTES: number;
2
+ export declare const SKILLS_LIST_MAX = 300;
3
+ export declare const SKILL_DESCRIPTION_MAX = 300;
4
+ export type SkillScope = "project" | "user" | "system";
5
+ export interface SkillRoot {
6
+ /** 绝对目录(只在节点本机使用,不外传)。 */
7
+ dir: string;
8
+ /** 外传的显示前缀,例如 `.claude/skills`、`~/.claude/skills`、`$CODEX_HOME/skills`。 */
9
+ label: string;
10
+ scope: SkillScope;
11
+ }
12
+ export interface SkillContext {
13
+ workDir: string;
14
+ home?: string;
15
+ codexHome?: string;
16
+ }
17
+ export interface SkillSummary {
18
+ name: string;
19
+ scope: SkillScope;
20
+ path_rel: string;
21
+ description: string;
22
+ }
23
+ export declare function isValidSkillName(name: unknown): name is string;
24
+ /** 按优先级(高 → 低)列出某运行时会加载技能的根目录。同名技能以先出现的为准。 */
25
+ export declare function skillRootsForRuntime(runtime: string | null | undefined, ctx: SkillContext): SkillRoot[];
26
+ /** 从 SKILL.md 开头的 YAML frontmatter 取 description(单行 / 引号 / `|` `>` 块)。 */
27
+ export declare function parseSkillDescription(text: string): string;
28
+ export declare function listSkills(runtime: string | null | undefined, ctx: SkillContext): Promise<SkillSummary[]>;
29
+ export interface SkillReadResult extends SkillSummary {
30
+ content: string;
31
+ }
32
+ export declare function readSkill(runtime: string | null | undefined, ctx: SkillContext, name: unknown): Promise<SkillReadResult>;
@@ -1,9 +1,9 @@
1
- export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.111";
2
- export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.84";
3
- export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.84";
4
- export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.111";
5
- export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.84";
6
- export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.84";
1
+ export declare const PAIRED_AGENT_NETWORK_VERSION = "2.3.0-preview.112";
2
+ export declare const PAIRED_AGENT_NODE_VERSION = "2.5.0-preview.85";
3
+ export declare const PAIRED_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.85";
4
+ export declare const OPENCODE_AGENT_NETWORK_VERSION = "2.3.0-preview.112";
5
+ export declare const OPENCODE_AGENT_NODE_VERSION = "2.5.0-preview.85";
6
+ export declare const OPENCODE_AGENT_NODE_SPEC = "@sleep2agi/agent-node@2.5.0-preview.85";
7
7
  export type PairedAgentNodeResolution = {
8
8
  spec: string;
9
9
  args: string[];
@@ -21,7 +21,8 @@ export interface RulesFileWriteResult {
21
21
  export declare function writeRulesFile(workDir: string, runtime: string | null | undefined, content: unknown): Promise<RulesFileWriteResult>;
22
22
  export interface RulesFileRequest {
23
23
  request_id: string;
24
- op: "read" | "write";
24
+ /** read/write = 规则文件;skills_list/skill_read = 只读技能(node-skills.ts),content 是技能名。 */
25
+ op: "read" | "write" | "skills_list" | "skill_read";
25
26
  content?: string;
26
27
  }
27
28
  export interface ProcessRulesFileDeps {
@@ -30,6 +31,9 @@ export interface ProcessRulesFileDeps {
30
31
  workDir: string;
31
32
  log: (msg: string) => void;
32
33
  warn: (msg: string) => void;
34
+ /** 技能根目录用;缺省取 os.homedir() / process.env.CODEX_HOME。 */
35
+ home?: string;
36
+ codexHome?: string;
33
37
  }
34
38
  /** 一次门铃最多处理这么多条,防止 hub 侧异常堆积把节点拖进死循环。 */
35
39
  export declare const RULES_FILE_MAX_PER_DOORBELL = 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.111",
3
+ "version": "2.3.0-preview.112",
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",