@locusai/cli 0.16.1 → 0.17.0

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,19 +1,22 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.16.1",
4
- "description": "CLI for Locus - AI-native project management platform",
3
+ "version": "0.17.0",
4
+ "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "locus": "./bin/locus.js"
8
8
  },
9
9
  "scripts": {
10
- "start": "bun lint .",
11
- "build": "bun build ./index.ts --target=node --outfile=./bin/locus.js && bun build ../sdk/src/agent/worker.ts --target=node --outfile=./bin/agent/worker.js",
12
- "lint": "biome lint .",
13
- "format": "biome format --write .",
10
+ "build": "bun build src/cli.ts --outfile bin/locus.js --target node",
11
+ "dev": "bun run src/cli.ts",
12
+ "test": "bun test",
13
+ "test:unit": "bun test src/core/__tests__ src/repl/__tests__ src/display/__tests__ src/ai/__tests__",
14
+ "test:integration": "bun test src/commands/__tests__",
15
+ "test:watch": "bun test --watch",
16
+ "test:coverage": "bun test --coverage",
14
17
  "typecheck": "tsc --noEmit",
15
- "test:local": "bun run build && node ./bin/locus.js",
16
- "clean": "rm -rf node_modules"
18
+ "lint": "biome lint .",
19
+ "format": "biome format --write ."
17
20
  },
18
21
  "files": [
19
22
  "bin",
@@ -22,18 +25,21 @@
22
25
  ],
23
26
  "keywords": [
24
27
  "locus",
25
- "project-management",
26
- "ai-agents",
28
+ "github",
29
+ "ai",
30
+ "engineering",
27
31
  "cli",
28
- "engineering-teams",
29
- "agent",
30
- "agentic"
32
+ "sprint",
33
+ "agent"
31
34
  ],
32
35
  "author": "",
33
36
  "license": "MIT",
34
- "dependencies": {
35
- "@locusai/sdk": "^0.16.1",
36
- "@locusai/shared": "^0.16.1"
37
+ "dependencies": {},
38
+ "devDependencies": {
39
+ "@types/bun": "latest",
40
+ "typescript": "^5.8.3"
37
41
  },
38
- "devDependencies": {}
42
+ "engines": {
43
+ "node": ">=18"
44
+ }
39
45
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Locus AI
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/README.md DELETED
@@ -1,154 +0,0 @@
1
- # @locusai/cli
2
-
3
- Command-line interface for [Locus](https://locusai.dev) - an AI-native project management platform for engineering teams.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install -g @locusai/cli
9
- ```
10
-
11
- Or with other package managers:
12
-
13
- ```bash
14
- # pnpm
15
- pnpm add -g @locusai/cli
16
-
17
- # yarn
18
- yarn global add @locusai/cli
19
-
20
- # bun
21
- bun add -g @locusai/cli
22
- ```
23
-
24
- ## Quick Start
25
-
26
- ```bash
27
- # Initialize Locus in your project
28
- locus init
29
-
30
- # Index your codebase for AI context
31
- locus index
32
-
33
- # Run an agent to work on tasks
34
- locus run --api-key YOUR_API_KEY
35
-
36
- # Execute a prompt with repository context
37
- locus exec "Explain the authentication flow"
38
- ```
39
-
40
- ## Commands
41
-
42
- ### `locus init`
43
-
44
- Initialize Locus in the current directory. Creates the necessary configuration files and directory structure:
45
-
46
- - `.locus/` - Configuration directory
47
- - `.locus/config.json` - Project settings
48
- - `.locus/LOCUS.md` - AI agent instructions
49
-
50
- Running `init` on an already initialized project will update the configuration to the latest version.
51
-
52
- ### `locus index`
53
-
54
- Index the codebase for AI context. This analyzes your project structure and creates a searchable index that helps AI agents understand your codebase.
55
-
56
- ```bash
57
- locus index [options]
58
-
59
- Options:
60
- --dir <path> Project directory (default: current directory)
61
- --model <name> AI model to use
62
- --provider <name> AI provider: claude or codex (default: claude)
63
- ```
64
-
65
- ### `locus run`
66
-
67
- Start an agent to work on tasks from your Locus workspace.
68
-
69
- ```bash
70
- locus run [options]
71
-
72
- Options:
73
- --api-key <key> Your Locus API key (required)
74
- --workspace <id> Workspace ID to connect to
75
- --sprint <id> Sprint ID to work on
76
- --model <name> AI model to use
77
- --provider <name> AI provider: claude or codex (default: claude)
78
- --api-url <url> Custom API URL
79
- --dir <path> Project directory (default: current directory)
80
- --skip-planning Skip the planning phase
81
- ```
82
-
83
- ### `locus exec`
84
-
85
- Run a prompt with repository context. Supports both single execution and interactive REPL mode.
86
-
87
- ```bash
88
- locus exec "your prompt" [options]
89
- locus exec --interactive [options]
90
-
91
- Options:
92
- --interactive, -i Start interactive REPL mode
93
- --session, -s <id> Resume a previous session
94
- --model <name> AI model to use
95
- --provider <name> AI provider: claude or codex (default: claude)
96
- --dir <path> Project directory (default: current directory)
97
- --no-stream Disable streaming output
98
- --no-status Disable status display
99
- ```
100
-
101
- #### Session Management
102
-
103
- Manage your exec sessions with these subcommands:
104
-
105
- ```bash
106
- # List recent sessions
107
- locus exec sessions list
108
-
109
- # Show messages from a session
110
- locus exec sessions show <session-id>
111
-
112
- # Delete a session
113
- locus exec sessions delete <session-id>
114
-
115
- # Clear all sessions
116
- locus exec sessions clear
117
- ```
118
-
119
- ## Configuration
120
-
121
- Locus stores its configuration in the `.locus/` directory within your project:
122
-
123
- - `config.json` - Project settings including workspace ID and version
124
- - `codebase-index.json` - Indexed codebase structure
125
-
126
- The `.locus/LOCUS.md` file provides AI instructions and context that agents use when working on your codebase.
127
-
128
- ## AI Providers
129
-
130
- Locus supports multiple AI providers:
131
-
132
- - **Claude** (default) - Anthropic's Claude models
133
- - **Codex** - OpenAI Codex models
134
-
135
- Specify the provider with the `--provider` flag:
136
-
137
- ```bash
138
- locus exec "your prompt" --provider codex
139
- locus run --api-key YOUR_KEY --provider claude
140
- ```
141
-
142
- ## Requirements
143
-
144
- - Node.js 18 or later
145
- - A Locus API key (for `run` command)
146
-
147
- ## Links
148
-
149
- - [Documentation](https://docs.locusai.dev)
150
- - [Website](https://locusai.dev)
151
-
152
- ## License
153
-
154
- MIT
package/bin/.gitkeep DELETED
File without changes