newtype-profile 1.0.62 → 1.0.64

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.
package/README.md CHANGED
@@ -28,6 +28,36 @@ newtype-profile is an AI Agent collaboration framework designed for **content cr
28
28
  - 🔍 Information research and fact-checking
29
29
  - 📄 Document extraction and organization
30
30
 
31
+ ## Two Ways to Use
32
+
33
+ ### Option A: Newtype CLI (Recommended)
34
+
35
+ [**Newtype CLI**](https://www.npmjs.com/package/newtype-cli) is a standalone terminal AI assistant with newtype-profile built-in. No plugin setup needed — install and go.
36
+
37
+ ```bash
38
+ npm install -g newtype-cli
39
+ newtype
40
+ ```
41
+
42
+ Newtype CLI is a white-labeled fork of [OpenCode](https://github.com/anomalyco/opencode) with the full agent team pre-configured.
43
+
44
+ ### Option B: As an OpenCode Plugin
45
+
46
+ If you already use OpenCode and want to add newtype-profile as a plugin:
47
+
48
+ ```bash
49
+ cd ~/.config/opencode
50
+ bun add newtype-profile
51
+ ```
52
+
53
+ Edit `~/.config/opencode/opencode.json`:
54
+
55
+ ```json
56
+ {
57
+ "plugin": ["newtype-profile"]
58
+ }
59
+ ```
60
+
31
61
  ## Agent Team
32
62
 
33
63
  | Agent | Role | Description |
@@ -41,40 +71,41 @@ newtype-profile is an AI Agent collaboration framework designed for **content cr
41
71
  | **writer** | Writer | Content production |
42
72
  | **editor** | Editor | Content refinement |
43
73
 
44
- ## Quick Start
74
+ ## Configure Models
45
75
 
46
- ### Installation
76
+ Create a config file to customize which models each agent uses:
47
77
 
48
- ```bash
49
- cd ~/.config/opencode
50
- bun add newtype-profile
51
- ```
52
-
53
- Edit `~/.config/opencode/opencode.json`:
78
+ - **Newtype CLI**: `~/.config/newtype/newtype-profile.json`
79
+ - **OpenCode plugin**: `~/.config/opencode/newtype-profile.json`
54
80
 
55
81
  ```json
56
82
  {
57
- "plugin": ["newtype-profile"]
83
+ "agents": {
84
+ "chief": { "model": "your-preferred-model" },
85
+ "deputy": { "model": "your-preferred-model" },
86
+ "researcher": { "model": "your-preferred-model" },
87
+ "writer": { "model": "your-preferred-model", "temperature": 0.7 }
88
+ }
58
89
  }
59
90
  ```
60
91
 
61
- ### Configure Models
92
+ All 8 agents (`chief`, `deputy`, `researcher`, `fact-checker`, `archivist`, `extractor`, `writer`, `editor`) can be configured independently.
62
93
 
63
- Create `~/.config/opencode/newtype-profile.json`:
94
+ <details>
95
+ <summary>Optional: Google Antigravity OAuth</summary>
96
+
97
+ If using Google Antigravity as your model provider, add `google_auth`:
64
98
 
65
99
  ```json
66
100
  {
67
101
  "google_auth": true,
68
102
  "agents": {
69
- "chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" },
70
- "researcher": { "model": "google/antigravity-gemini-3-pro-high" },
71
- "writer": { "model": "google/antigravity-gemini-3-pro-high" },
72
- "editor": { "model": "google/antigravity-claude-sonnet-4-5" }
103
+ "chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" }
73
104
  }
74
105
  }
75
106
  ```
76
107
 
77
- ### Authenticate
108
+ Then authenticate:
78
109
 
79
110
  ```bash
80
111
  opencode auth login
@@ -82,6 +113,8 @@ opencode auth login
82
113
  # Select Login method: OAuth with Google (Antigravity)
83
114
  ```
84
115
 
116
+ </details>
117
+
85
118
  ## Usage
86
119
 
87
120
  ### Three-Layer Architecture
@@ -116,7 +149,7 @@ Chief's personality has three layers:
116
149
  - **Inner Persona** (hardcoded): Core values and thinking patterns
117
150
  - **Outer Persona** (customizable): Communication style
118
151
 
119
- Create `.opencode/SOUL.md` to customize how Chief communicates:
152
+ Create `.opencode/SOUL.md` (or `.newtype/SOUL.md` for Newtype CLI) to customize how Chief communicates:
120
153
 
121
154
  ```bash
122
155
  /init-soul # Creates default SOUL.md template
@@ -127,7 +160,7 @@ Example customizations:
127
160
  - Adjust language preferences
128
161
  - Change how direct Chief is
129
162
 
130
- Changes take effect after restarting OpenCode.
163
+ Changes take effect after restarting.
131
164
 
132
165
  ### Built-in Skills
133
166
 
@@ -166,7 +199,7 @@ Built-in MCPs:
166
199
 
167
200
  ## Memory System
168
201
 
169
- Auto-saves conversation summaries to `.opencode/memory/`:
202
+ Auto-saves conversation summaries to `.opencode/memory/` (or `.newtype/memory/`):
170
203
  - Daily summaries (LLM-generated)
171
204
  - Full transcripts per session
172
205
  - Auto-archive to `MEMORY.md` after 7 days
@@ -180,6 +213,21 @@ Use `/memory-consolidate` to manually trigger consolidation.
180
213
  - **Startup Config Checker**: Guides model setup on first run
181
214
  - **Plugin Switching**: `/switch newtype` / `/switch omo` / `/switch none`
182
215
 
216
+ ## Newtype CLI
217
+
218
+ [Newtype CLI](https://www.npmjs.com/package/newtype-cli) is a standalone product that bundles newtype-profile into a ready-to-use terminal AI assistant.
219
+
220
+ | | newtype-profile (plugin) | Newtype CLI |
221
+ |---|---|---|
222
+ | **Install** | `bun add newtype-profile` in OpenCode | `npm install -g newtype-cli` |
223
+ | **Requires** | OpenCode installed separately | Nothing — self-contained |
224
+ | **Launch** | `opencode` | `newtype` |
225
+ | **Config dir** | `~/.config/opencode/` | `~/.config/newtype/` |
226
+ | **Project dir** | `.opencode/` | `.newtype/` |
227
+ | **npm package** | [newtype-profile](https://www.npmjs.com/package/newtype-profile) | [newtype-cli](https://www.npmjs.com/package/newtype-cli) |
228
+
229
+ Supported platforms: macOS (Apple Silicon & Intel), Linux (x64 & ARM64, glibc & musl), Windows (x64).
230
+
183
231
  ## License
184
232
 
185
233
  Based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), follows [SUL-1.0 License](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md).
package/README.zh-cn.md CHANGED
@@ -28,6 +28,36 @@ newtype-profile 是专为**内容创作**设计的 AI Agent 协作框架:
28
28
  - 🔍 信息调研与核查
29
29
  - 📄 文档提取与整理
30
30
 
31
+ ## 两种使用方式
32
+
33
+ ### 方式 A:Newtype CLI(推荐)
34
+
35
+ [**Newtype CLI**](https://www.npmjs.com/package/newtype-cli) 是独立的终端 AI 助手,已内置 newtype-profile。无需额外配置插件,安装即用。
36
+
37
+ ```bash
38
+ npm install -g newtype-cli
39
+ newtype
40
+ ```
41
+
42
+ Newtype CLI 基于 [OpenCode](https://github.com/anomalyco/opencode) 定制,预配置了完整的 Agent 团队。
43
+
44
+ ### 方式 B:作为 OpenCode 插件
45
+
46
+ 如果你已在使用 OpenCode,可以将 newtype-profile 作为插件添加:
47
+
48
+ ```bash
49
+ cd ~/.config/opencode
50
+ bun add newtype-profile
51
+ ```
52
+
53
+ 编辑 `~/.config/opencode/opencode.json`:
54
+
55
+ ```json
56
+ {
57
+ "plugin": ["newtype-profile"]
58
+ }
59
+ ```
60
+
31
61
  ## Agent 团队
32
62
 
33
63
  | Agent | 角色 | 职责描述 |
@@ -41,40 +71,41 @@ newtype-profile 是专为**内容创作**设计的 AI Agent 协作框架:
41
71
  | **writer** | 写手 | 内容生产 |
42
72
  | **editor** | 编辑 | 内容精炼 |
43
73
 
44
- ## 快速开始
74
+ ## 配置模型
45
75
 
46
- ### 安装
76
+ 创建配置文件来自定义各 Agent 使用的模型:
47
77
 
48
- ```bash
49
- cd ~/.config/opencode
50
- bun add newtype-profile
51
- ```
52
-
53
- 编辑 `~/.config/opencode/opencode.json`:
78
+ - **Newtype CLI**:`~/.config/newtype/newtype-profile.json`
79
+ - **OpenCode 插件**:`~/.config/opencode/newtype-profile.json`
54
80
 
55
81
  ```json
56
82
  {
57
- "plugin": ["newtype-profile"]
83
+ "agents": {
84
+ "chief": { "model": "你偏好的模型" },
85
+ "deputy": { "model": "你偏好的模型" },
86
+ "researcher": { "model": "你偏好的模型" },
87
+ "writer": { "model": "你偏好的模型", "temperature": 0.7 }
88
+ }
58
89
  }
59
90
  ```
60
91
 
61
- ### 配置模型
92
+ 全部 8 个 Agent(`chief`、`deputy`、`researcher`、`fact-checker`、`archivist`、`extractor`、`writer`、`editor`)均可独立配置。
62
93
 
63
- 创建 `~/.config/opencode/newtype-profile.json`:
94
+ <details>
95
+ <summary>可选:Google Antigravity OAuth</summary>
96
+
97
+ 如果使用 Google Antigravity 作为模型提供商,添加 `google_auth`:
64
98
 
65
99
  ```json
66
100
  {
67
101
  "google_auth": true,
68
102
  "agents": {
69
- "chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" },
70
- "researcher": { "model": "google/antigravity-gemini-3-pro-high" },
71
- "writer": { "model": "google/antigravity-gemini-3-pro-high" },
72
- "editor": { "model": "google/antigravity-claude-sonnet-4-5" }
103
+ "chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" }
73
104
  }
74
105
  }
75
106
  ```
76
107
 
77
- ### 认证
108
+ 然后认证:
78
109
 
79
110
  ```bash
80
111
  opencode auth login
@@ -82,6 +113,8 @@ opencode auth login
82
113
  # 选择 Login method: OAuth with Google (Antigravity)
83
114
  ```
84
115
 
116
+ </details>
117
+
85
118
  ## 使用方式
86
119
 
87
120
  ### 三层架构
@@ -116,7 +149,7 @@ Chief 的人格分三层:
116
149
  - **里人格**(硬编码):核心价值观和思维方式
117
150
  - **表人格**(可自定义):沟通风格
118
151
 
119
- 创建 `.opencode/SOUL.md` 来自定义 Chief 的沟通风格:
152
+ 创建 `.opencode/SOUL.md`(Newtype CLI 为 `.newtype/SOUL.md`)来自定义 Chief 的沟通风格:
120
153
 
121
154
  ```bash
122
155
  /init-soul # 创建默认 SOUL.md 模板
@@ -127,7 +160,7 @@ Chief 的人格分三层:
127
160
  - 调整语言偏好
128
161
  - 改变直接程度
129
162
 
130
- 修改后重启 OpenCode 生效。
163
+ 修改后重启生效。
131
164
 
132
165
  ### 内置 Skills
133
166
 
@@ -166,7 +199,7 @@ Chief 在任务需要时自动加载技能。
166
199
 
167
200
  ## 记忆系统
168
201
 
169
- 自动保存对话摘要到 `.opencode/memory/`:
202
+ 自动保存对话摘要到 `.opencode/memory/`(Newtype CLI 为 `.newtype/memory/`):
170
203
  - 每日摘要(LLM 生成)
171
204
  - 每个 session 的完整记录
172
205
  - 7 天后自动归档到 `MEMORY.md`
@@ -180,6 +213,21 @@ Chief 在任务需要时自动加载技能。
180
213
  - **启动配置检查**:首次运行时引导模型设置
181
214
  - **插件切换**:`/switch newtype` / `/switch omo` / `/switch none`
182
215
 
216
+ ## Newtype CLI
217
+
218
+ [Newtype CLI](https://www.npmjs.com/package/newtype-cli) 是独立产品,将 newtype-profile 打包为开箱即用的终端 AI 助手。
219
+
220
+ | | newtype-profile(插件) | Newtype CLI |
221
+ |---|---|---|
222
+ | **安装** | 在 OpenCode 中 `bun add newtype-profile` | `npm install -g newtype-cli` |
223
+ | **依赖** | 需要单独安装 OpenCode | 无需其他依赖,自包含 |
224
+ | **启动** | `opencode` | `newtype` |
225
+ | **配置目录** | `~/.config/opencode/` | `~/.config/newtype/` |
226
+ | **项目目录** | `.opencode/` | `.newtype/` |
227
+ | **npm 包** | [newtype-profile](https://www.npmjs.com/package/newtype-profile) | [newtype-cli](https://www.npmjs.com/package/newtype-cli) |
228
+
229
+ 支持平台:macOS(Apple Silicon 和 Intel)、Linux(x64 和 ARM64,glibc 和 musl)、Windows(x64)。
230
+
183
231
  ## 许可证
184
232
 
185
233
  基于 [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) 修改,遵循 [SUL-1.0 许可证](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md)。
package/dist/cli/index.js CHANGED
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
2253
2253
  var require_package = __commonJS((exports, module) => {
2254
2254
  module.exports = {
2255
2255
  name: "newtype-profile",
2256
- version: "1.0.62",
2256
+ version: "1.0.64",
2257
2257
  description: "AI Agent Collaboration System for Content Creation - Based on oh-my-opencode",
2258
2258
  main: "dist/index.js",
2259
2259
  types: "dist/index.d.ts",