@fastino-ai/pioneer-cli 0.2.7 → 0.2.9

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
@@ -51,15 +51,9 @@ pioneer auth login # Enter API key interactively
51
51
  pioneer auth logout # Clear stored API key
52
52
  pioneer auth status # Check if logged in
53
53
 
54
- # Chat (interactive agent)
55
- pioneer chat # Start chat with AI agent
56
-
57
- # Datasets
58
- pioneer dataset list
59
- pioneer dataset get <id>
60
- pioneer dataset delete <id>
61
- pioneer dataset download <id>
62
- pioneer dataset analyze <id>
54
+ # Agent
55
+ pioneer agent # Interactive chat (default)
56
+ pioneer agent --mode research # Research mode (Pro subscription required)
63
57
 
64
58
  # Training Jobs
65
59
  pioneer job list
@@ -68,58 +62,69 @@ pioneer job logs <id>
68
62
  pioneer job create --model-name "My Model" --dataset-ids ds_123,ds_456
69
63
 
70
64
  # Models
71
- pioneer model list # List deployed models
72
- pioneer model trained # List trained models
73
- pioneer model delete <id>
74
- pioneer model download <id>
75
- ```
65
+ pioneer model endpoints list # List model catalog entries (/projects)
66
+ pioneer model endpoints create # Create a model entry (interactive by default)
67
+ pioneer model endpoints create --model "qwen/Qwen3-8B-Instruct" --repo https://github.com/fastino-ai/Pioneer
68
+ pioneer model endpoints get <model-id>
69
+ pioneer model endpoints update <model-id> --description "Updated model metadata"
70
+ pioneer model endpoints delete <model-id>
71
+ pioneer model endpoints dataset-count <model-id>
72
+ pioneer model endpoints quality-metrics <model-id>
73
+ pioneer model endpoints deploy <model-id> --job <training-job-id> [--reason "..." ]
74
+ pioneer model endpoints rollback <model-id> <deployment-id>
75
+
76
+ pioneer model artifacts list # List trained and deployed artifacts
77
+ pioneer model artifacts trained # List trained artifacts
78
+ pioneer model artifacts deployed # List deployed artifacts
79
+ pioneer model artifacts download <job-id>
80
+ pioneer model artifacts upload <job-id> --to hf --repo username/model # Push trained artifact to HF
81
+
82
+ # Aliases
83
+ pioneer model_endpoints list
84
+ pioneer model_artifacts list
85
+ ```
86
+
87
+ ## Agent command
88
+
89
+ `agent` starts in interactive mode by default (standard workflow). For the only explicit alternate mode:
90
+ - `--mode research`: Pro mode with deeper research response style.
91
+ - `agent resume`: list recent conversations and resume a selected session.
92
+ - `agent sessions`: explicit alias for listing sessions and resuming one.
76
93
 
77
- ## End-to-End Example
94
+ ```bash
95
+ # Interactive (default)
96
+ pioneer agent
78
97
 
79
- This example shows the complete workflow from generating a dataset to training a model.
98
+ # Standard mode is the default:
99
+ pioneer agent
80
100
 
81
- ### Step 1: Generate a Dataset
101
+ # Research mode (Pro subscription required)
102
+ pioneer agent --mode research
82
103
 
83
- Generate a NER (Named Entity Recognition) dataset for medical text:
104
+ # Open a session list and pick one to continue
105
+ pioneer agent resume
84
106
 
85
- ```bash
86
- # Save locally to ./datasets/ (default)
87
- pioneer dataset generate ner \
88
- --labels "DISEASE,SYMPTOM,TREATMENT,MEDICATION" \
89
- --num 50 \
90
- --domain "Medical clinical notes and patient records" \
91
- --name "medical-ner"
92
-
93
- # Or save to remote database
94
- pioneer dataset generate ner \
95
- --labels "DISEASE,SYMPTOM,TREATMENT,MEDICATION" \
96
- --num 50 \
97
- --domain "Medical clinical notes and patient records" \
98
- --save true \
99
- --name "Medical NER Dataset"
107
+ # Equivalent: explicit sessions command
108
+ pioneer agent sessions
109
+
110
+ # Resume a specific conversation id
111
+ pioneer agent resume 4f2a...
100
112
  ```
101
113
 
102
- Or generate a classification dataset for sentiment analysis:
114
+ When you start any of these commands, the CLI opens a conversational prompt and keeps accepting follow-up messages in the same session.
103
115
 
104
- ```bash
105
- pioneer dataset generate classification \
106
- --labels "positive,negative,neutral" \
107
- --num 200 \
108
- --domain "Customer product reviews" \
109
- --name "sentiment"
110
- ```
116
+ ## End-to-End Example
111
117
 
112
- ### Step 2: View Your Datasets
118
+ This example shows the complete workflow from running jobs to using agent support.
113
119
 
114
- ```bash
115
- # List all datasets (both remote and local ./datasets/*.json)
116
- pioneer dataset list
120
+ ### Step 1: Start a planning session
121
+ Use `agent` for quick iteration while preparing jobs and reviewing results.
117
122
 
118
- # Get details for a remote dataset
119
- pioneer dataset get <dataset-id>
123
+ ### Step 2: Open the interactive helper
120
124
 
121
- # Analyze dataset statistics
122
- pioneer dataset analyze <dataset-id>
125
+ ```bash
126
+ # Open a short interactive helper session
127
+ pioneer agent
123
128
  ```
124
129
 
125
130
  ### Step 3: Create a Training Job
@@ -153,10 +158,10 @@ Once training completes:
153
158
 
154
159
  ```bash
155
160
  # List trained models
156
- pioneer model list trained
161
+ pioneer model artifacts trained
157
162
 
158
163
  # Download the trained model
159
- pioneer model download <job-id>
164
+ pioneer model artifacts download <job-id>
160
165
  ```
161
166
 
162
167
  ## Configuration
@@ -178,7 +183,10 @@ The CLI stores your API key in `~/.pioneer/config.json` after running `pioneer a
178
183
 
179
184
  ### Pioneer API
180
185
 
181
- To use the CLI, you'll need a Pioneer API key. Get one at https://app.pioneer.ai/api-keys .
186
+ To use the CLI, you'll need a Pioneer API key. Get one at https://app.pioneer.ai/api-keys.
187
+
188
+ By default, the CLI points at production (`https://api.pioneer.ai`).
189
+ For dev/staging and local debugging, set `PIONEER_API_URL` explicitly (for example: `https://api-dev.pioneer.ai` or `http://localhost:5001`).
182
190
 
183
191
  ```bash
184
192
  # Login with your API key
@@ -193,7 +201,7 @@ pioneer auth logout
193
201
 
194
202
  ### Hugging Face (Optional)
195
203
 
196
- For pushing/pulling datasets and models to/from Hugging Face, you'll need an HF token. Get one at https://huggingface.co/settings/tokens .
204
+ For uploading model artifacts to Hugging Face, you'll need an HF token. Get one at https://huggingface.co/settings/tokens .
197
205
 
198
206
  ```bash
199
207
  # Set your Hugging Face token
@@ -206,6 +214,8 @@ pioneer auth hf status
206
214
  pioneer auth hf logout
207
215
  ```
208
216
 
217
+ Note: Hugging Face-backed dataset import/export is currently behind the hidden dataset workflow, so the main recommended HF flow today is model artifact upload via `model artifacts upload --to hf`.
218
+
209
219
  ## Development & Testing
210
220
 
211
221
  ### Building & Running
@@ -217,25 +227,6 @@ bun run dev # Hot reload
217
227
  bun run typecheck # Type checking
218
228
  ```
219
229
 
220
- ### Internal Testing Environment Variables
221
-
222
- For Pioneer team members testing against local or staging environments:
223
-
224
- | Variable | Description | Example |
225
- |----------|-------------|---------|
226
- | `PIONEER_API_URL` | Override API base URL | `http://localhost:5001` |
227
- | `PIONEER_API_KEY` | Override saved API key | `your-test-key` |
228
- | `HF_TOKEN` | Override saved HF token | `your-hf-token` |
229
-
230
- ```bash
231
- # Example: Test against local backend
232
- export PIONEER_API_URL=http://localhost:5001
233
- export PIONEER_API_KEY=your-local-test-key
234
- pioneer dataset list
235
- ```
236
-
237
- > **Note:** External users should never need to set these variables. The CLI defaults to production (`https://api.pioneer.ai`) and uses `pioneer auth login` for authentication.
238
-
239
230
  ## Tech Stack
240
231
 
241
232
  - **Runtime**: [Bun](https://bun.sh)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastino-ai/pioneer-cli",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "Pioneer CLI - AI training platform with chat agent",
5
5
  "type": "module",
6
6
  "files": [
@@ -36,6 +36,7 @@
36
36
  "@types/react": "^18.3.0",
37
37
  "@types/ws": "^8.18.1",
38
38
  "bun-types": "^1.1.0",
39
+ "ink-testing-library": "^4.0.0",
39
40
  "typescript": "^5.6.3"
40
41
  },
41
42
  "engines": {