shiroai 2.0.0 → 2.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.
Files changed (3) hide show
  1. package/README.md +24 -17
  2. package/cli.js +4 -4
  3. package/package.json +7 -27
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ✦ ShiroAI CLI
2
2
 
3
- AI coding agent for your terminal. Create, edit, debug, and deployall from the command line.
3
+ AI coding agent for your terminal. Reads, writes, edits files, runs commandslike having a senior dev beside you.
4
4
 
5
5
  ## Install
6
6
 
@@ -22,33 +22,40 @@ Get your API key at [shiroai.dev](https://shiroai.dev)
22
22
  shiroai
23
23
  ```
24
24
 
25
- ### Commands
25
+ ## Features
26
26
 
27
- | Command | Description |
28
- |---------|-------------|
29
- | `shiroai` | Start interactive session |
30
- | `shiroai login <key>` | Save API key |
31
- | `shiroai logout` | Remove API key |
32
- | `shiroai config` | Show config |
27
+ - **Tool Use** AI autonomously reads, writes, edits files and runs commands
28
+ - **Streaming** — Token-by-token output, see responses as they generate
29
+ - **Context Aware** Auto-detects your project structure
30
+ - **Sessions** Save/load conversations
31
+ - **Agents** Switch between default, plan, or custom agents
33
32
 
34
- ### In-session commands
33
+ ## Commands
35
34
 
36
35
  | Command | Description |
37
36
  |---------|-------------|
38
- | `/run <cmd>` | Execute shell command |
39
- | `/read <file>` | Read file into context |
40
- | `/edit <file>` | AI edits a file |
41
- | `/debug <file>` | Find and fix bugs |
42
- | `/create` | Create a new project |
43
- | `/tree` | Show directory structure |
44
- | `/auto` | Toggle auto-execute |
37
+ | `/help` | Show all commands |
38
+ | `/context` | Show context info |
39
+ | `/context add <file>` | Add file to context |
40
+ | `/chat save <name>` | Save session |
41
+ | `/chat load <name>` | Load session |
42
+ | `/chat list` | List sessions |
43
+ | `/agent list` | List agents |
44
+ | `/agent <name>` | Switch agent |
45
+ | `/plan` | Planning mode |
45
46
  | `/clear` | Clear conversation |
46
47
  | `/quit` | Exit |
47
48
 
48
- ## Examples
49
+ ## Example
49
50
 
50
51
  ```bash
52
+ ❯ shiroai
53
+ ✦ ShiroAI v2.0.0
54
+ Agent: default | Model: deepseek-v4-pro
55
+
51
56
  ❯ buatin REST API express dengan JWT auth
57
+
58
+ ─── tools ───
52
59
  📄 Created: package.json
53
60
  📄 Created: server.js
54
61
  📄 Created: routes/auth.js
package/cli.js CHANGED
@@ -16,7 +16,7 @@ const c = {
16
16
  };
17
17
 
18
18
  // ===== CONFIG =====
19
- const SERVER_URL = process.env.SHIROAI_SERVER || 'http://157.230.42.115:3000';
19
+ const API_URL = 'https://inference.do-ai.run/v1/chat/completions';
20
20
  const MODEL = 'deepseek-v4-pro';
21
21
  const CWD = process.cwd();
22
22
  const CONFIG_DIR = path.join(os.homedir(), '.shiroai');
@@ -259,7 +259,7 @@ function getProjectContext() {
259
259
 
260
260
  initMessages();
261
261
 
262
- // ===== STREAMING API (via server proxy) =====
262
+ // ===== STREAMING API =====
263
263
  function streamChat(msgs, tools) {
264
264
  return new Promise((resolve, reject) => {
265
265
  const body = JSON.stringify({
@@ -269,7 +269,7 @@ function streamChat(msgs, tools) {
269
269
  stream: true,
270
270
  max_tokens: 8192
271
271
  });
272
- const url = new URL(SERVER_URL + '/api/chat');
272
+ const url = new URL(API_URL);
273
273
  const client = url.protocol === 'https:' ? https : http;
274
274
 
275
275
  const req = client.request({
@@ -279,7 +279,7 @@ function streamChat(msgs, tools) {
279
279
  method: 'POST',
280
280
  headers: {
281
281
  'Content-Type': 'application/json',
282
- 'X-API-Key': API_KEY,
282
+ 'Authorization': `Bearer ${API_KEY}`,
283
283
  'Content-Length': Buffer.byteLength(body)
284
284
  }
285
285
  }, res => {
package/package.json CHANGED
@@ -1,32 +1,12 @@
1
1
  {
2
2
  "name": "shiroai",
3
- "version": "2.0.0",
4
- "description": "AI coding agent for your terminal — create, edit, debug, and deploy from the command line",
5
- "bin": {
6
- "shiroai": "./cli.js"
7
- },
8
- "files": [
9
- "cli.js"
10
- ],
11
- "keywords": [
12
- "ai",
13
- "cli",
14
- "coding",
15
- "agent",
16
- "terminal",
17
- "gpt",
18
- "copilot",
19
- "developer-tools",
20
- "shiroai"
21
- ],
3
+ "version": "2.0.2",
4
+ "description": "AI coding agent for your terminal — reads, writes, edits files, runs commands",
5
+ "bin": { "shiroai": "./cli.js" },
6
+ "files": ["cli.js"],
7
+ "keywords": ["ai", "cli", "coding", "agent", "terminal", "copilot", "developer-tools", "shiroai"],
22
8
  "author": "ShiroAI",
23
9
  "license": "MIT",
24
- "engines": {
25
- "node": ">=16.0.0"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/shiroai/cli"
30
- },
31
- "homepage": "https://shiroai.dev"
10
+ "homepage": "https://shiroai.dev",
11
+ "engines": { "node": ">=16.0.0" }
32
12
  }