@nacos-group/cli 0.0.12-beta.5 → 1.0.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.
package/README.md CHANGED
@@ -123,20 +123,20 @@ nacos-cli agentspec-get spec1 spec2 spec3
123
123
  nacos> agentspec-get my-agentspec
124
124
  ```
125
125
 
126
- #### Upload AgentSpec
126
+ #### Publish AgentSpec
127
127
 
128
- Upload an agent spec from local directory:
128
+ Publish an agent spec from local directory:
129
129
 
130
130
  ```bash
131
- # Upload single agent spec
132
- nacos-cli agentspec-upload /path/to/agentspec -s 127.0.0.1:8848 -u nacos -p nacos
131
+ # Publish single agent spec
132
+ nacos-cli agentspec-publish /path/to/agentspec -s 127.0.0.1:8848 -u nacos -p nacos
133
133
 
134
- # Upload all agent specs in a directory
135
- nacos-cli agentspec-upload --all /path/to/agentspecs/folder
134
+ # Publish all agent specs in a directory
135
+ nacos-cli agentspec-publish --all /path/to/agentspecs/folder
136
136
 
137
137
  # Terminal mode
138
- nacos> agentspec-upload /path/to/agentspec
139
- nacos> agentspec-upload --all /path/to/agentspecs
138
+ nacos> agentspec-publish /path/to/agentspec
139
+ nacos> agentspec-publish --all /path/to/agentspecs
140
140
  ```
141
141
 
142
142
  ### Skill Management
@@ -249,9 +249,9 @@ nacos> quit # Exit terminal
249
249
 
250
250
  | Flag | Short | Default | Description |
251
251
  |------|-------|---------|-------------|
252
- | --host | | 127.0.0.1 | Nacos server host |
253
- | --port | | 8848 | Nacos server port |
254
- | --server | -s | 127.0.0.1:8848 | Nacos server address (deprecated, use --host and --port) |
252
+ | --host | | market.hiclaw.io when `--host` and `--port` are both omitted; otherwise 127.0.0.1 when only `--port` is provided | Nacos server host |
253
+ | --port | | 80 when `--host` and `--port` are both omitted; otherwise 8848 when omitted after `--host` | Nacos server port |
254
+ | --server | -s | market.hiclaw.io:80 when no host/port is provided | Nacos server address (deprecated, use --host and --port) |
255
255
  | --username | -u | nacos | Nacos username |
256
256
  | --password | -p | nacos | Nacos password |
257
257
  | --namespace | -n | (empty/public) | Nacos namespace ID |
@@ -306,7 +306,9 @@ Configuration values are applied in the following priority order:
306
306
 
307
307
  For example:
308
308
  - `nacos-cli --config ./local.conf --host 10.0.0.1` - Uses `10.0.0.1` from command line, other values from config file
309
- - `nacos-cli --host 192.168.1.100 --port 8848` - Uses command line values, defaults for username/password
309
+ - `nacos-cli` - Uses default `market.hiclaw.io:80` when neither `--host` nor `--port` is provided
310
+ - `nacos-cli --host 127.0.0.1` - Uses `127.0.0.1:8848` because `--host` was provided without `--port`
311
+ - `nacos-cli --port 8849` - Uses `127.0.0.1:8849` because only `--port` was provided
310
312
  - `nacos-cli --config ./local.conf` - Uses all values from config file
311
313
 
312
314
  ## Project Structure
@@ -321,7 +323,7 @@ nacos-cli/
321
323
  │ ├── sync_skill.go # skill-sync command
322
324
  │ ├── list_agentspec.go # agentspec-list command
323
325
  │ ├── get_agentspec.go # agentspec-get command
324
- │ ├── upload_agentspec.go # agentspec-upload command
326
+ │ ├── publish_agentspec.go # agentspec-publish command
325
327
  │ ├── list_config.go # config-list command
326
328
  │ ├── get_config.go # config-get command
327
329
  │ └── interactive.go # Interactive terminal
@@ -397,4 +399,4 @@ MIT License
397
399
 
398
400
  - Initial Python version release
399
401
  - Basic configuration management
400
- - Basic service discovery
402
+ - Basic service discovery
package/bin/cli.js CHANGED
@@ -7,7 +7,7 @@ const os = require('os');
7
7
 
8
8
  // Fixed nacos-cli binary version
9
9
  // npm package version is independent from binary version
10
- const VERSION = '0.0.12';
10
+ const VERSION = '1.0.1';
11
11
 
12
12
  // Detect platform and architecture
13
13
  function getBinaryName() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nacos-group/cli",
3
- "version": "0.0.12-beta.5",
3
+ "version": "1.0.1",
4
4
  "description": "A command-line tool for managing Nacos configurations and AI skills",
5
5
  "bin": {
6
6
  "nacos-cli": "./bin/cli.js"