@agents-uni/core 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/README.en.md +20 -1
  2. package/README.md +20 -1
  3. package/package.json +1 -1
package/README.en.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![CI](https://github.com/agents-uni/core/actions/workflows/ci.yml/badge.svg)](https://github.com/agents-uni/core/actions/workflows/ci.yml)
2
+ [![npm version](https://img.shields.io/npm/v/@agents-uni/core.svg)](https://www.npmjs.com/package/@agents-uni/core)
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+
1
5
  <p align="center">
2
6
  <h1 align="center">agents-uni-core</h1>
3
7
  <p align="center">
@@ -48,6 +52,16 @@ npx create-uni my-universe
48
52
  npx create-uni my-universe --template competitive
49
53
  ```
50
54
 
55
+ ### Install the CLI globally
56
+
57
+ ```bash
58
+ npm install -g @agents-uni/core
59
+
60
+ # Then use the `uni` command directly
61
+ uni validate universe.yaml
62
+ uni dashboard
63
+ ```
64
+
51
65
  ### Use as a library
52
66
 
53
67
  ```bash
@@ -214,6 +228,8 @@ npx create-uni my-project --template competitive
214
228
 
215
229
  ## CLI
216
230
 
231
+ After global install, use the `uni` command directly, or call via `npx @agents-uni/core`:
232
+
217
233
  ```bash
218
234
  # Validate a universe spec
219
235
  uni validate universe.yaml
@@ -265,8 +281,11 @@ uni reset <id>
265
281
  agents-uni-core integrates with [OpenClaw](https://github.com/anthropics/openclaw) via a **file-based protocol**. Three core capabilities:
266
282
 
267
283
  **1. SOUL.md Deployment** — generate agent persona files from universe specs and create agent runtime directories (`agents/{id}/agent/` + `agents/{id}/sessions/`)
284
+
268
285
  **2. One-Click Registration** — auto-register agents in `openclaw.json` (with both `workspace` and `agentDir` fields) during deployment
286
+
269
287
  **3. Task Dispatch** — communicate with agents via `TASK.md` / `SUBMISSION.md` file protocol
288
+
270
289
  **4. Workspace Management** — check and sync OpenClaw workspace state
271
290
 
272
291
  ```
@@ -582,7 +601,7 @@ npm run dev
582
601
 
583
602
  ## Related Projects
584
603
 
585
- - [**@agents-uni/zhenhuan**](https://github.com/agents-uni/zhenhuan) — Palace drama themed agent competition system built on agents-uni-core
604
+ - [**@agents-uni/zhenhuan**](https://github.com/agents-uni/zhenhuan) — Palace drama themed agent competition system built on agents-uni-core ([npm](https://www.npmjs.com/package/@agents-uni/zhenhuan))
586
605
 
587
606
  ## License
588
607
 
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![CI](https://github.com/agents-uni/core/actions/workflows/ci.yml/badge.svg)](https://github.com/agents-uni/core/actions/workflows/ci.yml)
2
+ [![npm version](https://img.shields.io/npm/v/@agents-uni/core.svg)](https://www.npmjs.com/package/@agents-uni/core)
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+
1
5
  <p align="center">
2
6
  <h1 align="center">agents-uni-core</h1>
3
7
  <p align="center">
@@ -48,6 +52,16 @@ npx create-uni my-universe
48
52
  npx create-uni my-universe --template competitive
49
53
  ```
50
54
 
55
+ ### 全局安装 CLI
56
+
57
+ ```bash
58
+ npm install -g @agents-uni/core
59
+
60
+ # 之后可以直接使用 uni 命令
61
+ uni validate universe.yaml
62
+ uni dashboard
63
+ ```
64
+
51
65
  ### 作为库使用
52
66
 
53
67
  ```bash
@@ -214,6 +228,8 @@ npx create-uni my-project --template competitive
214
228
 
215
229
  ## 命令行工具
216
230
 
231
+ 全局安装后可直接使用 `uni` 命令,也可通过 `npx @agents-uni/core` 调用:
232
+
217
233
  ```bash
218
234
  # 验证组织规范
219
235
  uni validate universe.yaml
@@ -265,8 +281,11 @@ uni reset <id>
265
281
  agents-uni-core 通过**文件协议**与 [OpenClaw](https://github.com/anthropics/openclaw) 无缝集成。包含三个核心能力:
266
282
 
267
283
  **1. SOUL.md 部署** — 从组织规范生成 Agent 人格文件并部署到 OpenClaw 工作区,同时创建 Agent 运行时目录(`agents/{id}/agent/` + `agents/{id}/sessions/`)
284
+
268
285
  **2. 一键注册** — 部署时自动将 Agent 注册到 `openclaw.json`(含 `workspace` 和 `agentDir` 字段),无需手动配置
286
+
269
287
  **3. 任务调度** — 通过 `TASK.md` / `SUBMISSION.md` 文件协议与 Agent 交互
288
+
270
289
  **4. 工作区管理** — 检查和同步 OpenClaw 工作区状态
271
290
 
272
291
  ```
@@ -582,7 +601,7 @@ npm run dev
582
601
 
583
602
  ## 相关项目
584
603
 
585
- - [**@agents-uni/zhenhuan**](https://github.com/agents-uni/zhenhuan) — 基于 agents-uni-core 的甄嬛后宫 Agent 竞技系统
604
+ - [**@agents-uni/zhenhuan**](https://github.com/agents-uni/zhenhuan) — 基于 agents-uni-core 的甄嬛后宫 Agent 竞技系统 ([npm](https://www.npmjs.com/package/@agents-uni/zhenhuan))
586
605
 
587
606
  ## License
588
607
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-uni/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Universal protocol layer for defining agent organizations and social relationships",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",