natureco-cli 1.0.0 → 1.0.2

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/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "main": "bin/natureco.js",
6
6
  "bin": {
7
7
  "natureco": "./bin/natureco.js"
8
8
  },
9
+ "files": [
10
+ "bin/",
11
+ "src/",
12
+ "skills/"
13
+ ],
9
14
  "scripts": {
10
15
  "test": "node bin/natureco.js help"
11
16
  },
@@ -10,7 +10,7 @@ const PROJECT_SKILLS_DIR = path.join(process.cwd(), '.natureco', 'skills');
10
10
 
11
11
  // Skill metadata parser
12
12
  function parseSkillMetadata(content) {
13
- const frontmatterMatch = content.match(/^---\n([\s\S]*?)\n---/);
13
+ const frontmatterMatch = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
14
14
  if (!frontmatterMatch) return null;
15
15
 
16
16
  const frontmatter = frontmatterMatch[1];
package/CHANGELOG.md DELETED
@@ -1,192 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to NatureCo CLI will be documented in this file.
4
-
5
- ## [1.0.0] - 2026-05-10
6
-
7
- ### Added
8
-
9
- #### Core Features
10
- - **First-Time Setup Wizard**
11
- - Automatic setup on first run
12
- - Interactive API key validation with live check
13
- - Bot selection from user's bots
14
- - Optional Telegram integration
15
- - Creates `~/.natureco/` directory structure
16
- - Beautiful boxed interface
17
- - Can be run manually with `natureco setup`
18
-
19
- - **Authentication System**
20
- - Login/logout with API key
21
- - Secure storage in `~/.natureco/config.json`
22
- - Support for both `nco_` and `nc_` key formats
23
-
24
- - **Bot Management**
25
- - List available bots
26
- - Interactive chat with bots
27
- - Bot switching within chat
28
-
29
- - **Gateway Screen**
30
- - Beautiful boxed interface
31
- - Login status display
32
- - Active bot information
33
- - Skill and MCP server counts
34
-
35
- #### Project Management
36
- - **Project Initialization**
37
- - `natureco init` command
38
- - Creates `.natureco/` folder structure
39
- - Interactive bot and skill selection
40
- - Generates `config.json` and `AGENTS.md`
41
-
42
- - **Configuration System**
43
- - Global config: `~/.natureco/config.json`
44
- - Project config: `.natureco/config.json`
45
- - Get/set/list commands
46
- - Hierarchical config management
47
-
48
- #### Skills System
49
- - **Three-Tier Hierarchy**
50
- - Built-in skills (code-review, summarize, translate)
51
- - User skills (`~/.natureco/skills/`)
52
- - Project skills (`.natureco/skills/`)
53
-
54
- - **Skill Management**
55
- - List installed skills
56
- - Install from NatureHub
57
- - Remove skills
58
- - Update all skills
59
- - Create new skill templates
60
-
61
- - **Skill Features**
62
- - Automatic prompt injection in chat
63
- - Requirement gating (bins, env vars, OS)
64
- - SKILL.md format with frontmatter
65
- - Metadata validation
66
-
67
- #### Chat Features
68
- - **Interactive Chat**
69
- - Real-time conversation with bots
70
- - Readline interface with arrow key support
71
- - Command history (last 100 commands)
72
- - Conversation history saved to `~/.natureco/history/`
73
-
74
- - **Chat Commands**
75
- - `/clear` - Clear screen
76
- - `/bot [name]` - Switch bot or list bots
77
- - `/skills` - Show active skills
78
- - `/help` - Show chat help
79
- - `exit`, `quit` - Exit chat
80
-
81
- - **Quick Commands**
82
- - `natureco ask "<question>"` - Single-shot questions
83
- - `natureco run <script.md>` - Run markdown scripts
84
- - Pipe support for ask command
85
-
86
- #### MCP Server Support
87
- - **Server Management**
88
- - List MCP servers
89
- - Add servers (interactive or template-based)
90
- - Remove servers
91
- - Test connections
92
- - Enable/disable servers
93
-
94
- - **Ready Templates**
95
- - `filesystem` - File system operations
96
- - `github` - GitHub operations
97
- - `postgres` - PostgreSQL database
98
- - `sqlite` - SQLite database
99
- - `brave-search` - Web search
100
-
101
- - **Configuration**
102
- - Stored in `~/.natureco/config.json`
103
- - Environment variable support
104
- - Auto-approve lists
105
- - Disable/enable flags
106
-
107
- #### AGENTS.md Support
108
- - Project-specific bot instructions
109
- - Automatic prompt injection in chat
110
- - Markdown format
111
- - Created during `natureco init`
112
-
113
- #### Update System
114
- - **Auto-Update Notifications**
115
- - Checks every 24 hours
116
- - Notifies when new version available
117
- - Uses update-notifier package
118
-
119
- - **Manual Update Check**
120
- - `natureco update` command
121
- - Shows current and latest versions
122
- - Provides update instructions
123
-
124
- #### UI/UX
125
- - Colorful terminal interface with chalk
126
- - Loading animations with spinners
127
- - Boxed gateway screen
128
- - Monospace formatting
129
- - Error messages in Turkish
130
- - Cross-platform support (Windows, macOS, Linux)
131
-
132
- ### Technical Details
133
-
134
- #### Dependencies
135
- - `chalk@4.1.2` - Terminal colors
136
- - `commander@11.1.0` - CLI framework
137
- - `inquirer@8.2.7` - Interactive prompts
138
- - `boxen@5.1.2` - Terminal boxes
139
- - `ora@5.4.1` - Spinners
140
- - `conf@10.2.0` - Config management
141
- - `update-notifier@6.0.2` - Update notifications
142
-
143
- #### API Integration
144
- - Base URL: `https://api.natureco.me`
145
- - Endpoints:
146
- - `GET /api/v1/bots` - List bots
147
- - `POST /api/agent/chat` - Chat with bot
148
- - Headers:
149
- - `Authorization: Bearer <apiKey>`
150
- - `X-User-ID: cli-user`
151
- - Platform identifier: `cli`
152
-
153
- #### File Structure
154
- ```
155
- ~/.natureco/
156
- ├── config.json # Global config
157
- ├── skills/ # User skills
158
- └── history/ # Chat history
159
- └── <bot-id>.json
160
-
161
- .natureco/ # Project folder
162
- ├── config.json # Project config
163
- ├── AGENTS.md # Bot instructions
164
- └── skills/ # Project skills
165
- ```
166
-
167
- ### Commands
168
-
169
- ```bash
170
- natureco # Gateway screen (runs setup if needed)
171
- natureco setup # Run setup wizard
172
- natureco login # Login
173
- natureco logout # Logout
174
- natureco bots # List bots
175
- natureco chat <bot> # Start chat
176
- natureco ask "<question>" # Quick question
177
- natureco run <script.md> # Run script
178
- natureco init # Initialize project
179
- natureco skills [action] # Manage skills
180
- natureco mcp [action] # Manage MCP servers
181
- natureco config <action> # Manage config
182
- natureco update # Check updates
183
- natureco help # Show help
184
- ```
185
-
186
- ### Requirements
187
- - Node.js >= 18.0.0 (for native fetch)
188
- - npm or yarn
189
- - NatureCo API key
190
-
191
- ### License
192
- MIT