osagent 0.2.82 → 0.2.83

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/dist/LICENSE ADDED
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright 2025 OSA
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
package/dist/README.md ADDED
@@ -0,0 +1,423 @@
1
+ # osagent
2
+
3
+ An AI-powered autonomous coding assistant CLI that runs locally with Ollama or connects to cloud AI providers. Built for developers who want full control over their AI coding assistant.
4
+
5
+ ## Features
6
+
7
+ - **Smart Onboarding**: Auto-detects your system, tools, and project on first run
8
+ - **Local-first AI**: Works with Ollama for completely private, offline usage
9
+ - **Cloud support**: Connect to Ollama Cloud or OpenAI-compatible APIs
10
+ - **Interactive CLI**: Beautiful terminal interface with monochrome green theme
11
+ - **Autonomous coding**: Generate, edit, and refactor code with natural language
12
+ - **Multi-file editing**: Make changes across your entire project
13
+ - **Git integration**: Automatic commits and PR creation
14
+ - **Consultation mode**: AI asks clarifying questions to better understand your needs
15
+ - **Conversation persistence**: Resume previous sessions with `/continue`
16
+ - **System health checks**: Built-in diagnostics with `/doctor`
17
+ - **Extensible**: MCP (Model Context Protocol) support for custom tools
18
+ - **Custom agents**: Define your own specialized agents in `~/.osagent/agents/`
19
+ - **Custom commands**: Create custom slash commands in `~/.osagent/commands/`
20
+ - **Custom skills**: Create skill plugins for multi-step workflows
21
+ - **Multi-agent orchestration**: Automatic skill detection and agent dispatch
22
+ - **Episodic memory**: Session tracking and learning from past interactions
23
+ - **Vector memory**: Semantic search over session history with ChromaDB
24
+ - **Embeddings**: Ollama embeddings with OpenRouter fallback
25
+ - **Advanced hooks**: 12 subagent hooks for lifecycle, memory, and skill events
26
+
27
+ ## Installation
28
+
29
+ ### From npm (recommended)
30
+
31
+ ```bash
32
+ npm install -g osagent
33
+ ```
34
+
35
+ ### From source
36
+
37
+ ```bash
38
+ git clone https://github.com/robertohluna/osagent.git
39
+ cd osagent
40
+ npm install
41
+ npm run build
42
+ npm link
43
+ ```
44
+
45
+ ### Troubleshooting Installation
46
+
47
+ **Never use `sudo` with npm!** Using `sudo npm install -g` creates permission problems.
48
+
49
+ If you see permission errors:
50
+
51
+ ```bash
52
+ # Fix npm cache permissions
53
+ sudo chown -R $(whoami) ~/.npm
54
+
55
+ # If using nvm, also fix nvm directory
56
+ sudo chown -R $(whoami) ~/.nvm
57
+
58
+ # Clear npm cache
59
+ npm cache clean --force
60
+
61
+ # Now install without sudo
62
+ npm install -g osagent
63
+ ```
64
+
65
+ If updates don't take effect (old version showing):
66
+
67
+ ```bash
68
+ npm cache clean --force
69
+ npm install -g osagent@latest --force
70
+ osagent --version
71
+ ```
72
+
73
+ **Recommended: Use nvm** to avoid permission issues entirely:
74
+
75
+ ```bash
76
+ # Install nvm
77
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
78
+
79
+ # Restart terminal, then:
80
+ nvm install 20
81
+ nvm use 20
82
+
83
+ # Now npm never needs sudo
84
+ npm install -g osagent
85
+ ```
86
+
87
+ ## Quick Start
88
+
89
+ ### Option 1: Use with Ollama (Local - Recommended)
90
+
91
+ 1. Install [Ollama](https://ollama.com)
92
+ 2. Pull a coding model:
93
+ ```bash
94
+ ollama pull qwen2.5-coder:32b
95
+ ```
96
+ 3. Run osagent:
97
+ ```bash
98
+ osagent
99
+ ```
100
+
101
+ ### Option 2: Use with Ollama Cloud
102
+
103
+ 1. Get an API key from [Ollama Cloud](https://ollama.com)
104
+ 2. Set your API key:
105
+ ```bash
106
+ export OLLAMA_API_KEY=your-api-key
107
+ ```
108
+ 3. Run osagent:
109
+ ```bash
110
+ osagent
111
+ ```
112
+
113
+ ### Option 3: Use with Anthropic
114
+
115
+ 1. Get an API key from [Anthropic Console](https://console.anthropic.com/settings/keys)
116
+ 2. Set your API key:
117
+ ```bash
118
+ export ANTHROPIC_API_KEY=your-api-key
119
+ ```
120
+ 3. Run osagent:
121
+ ```bash
122
+ osagent --auth anthropic
123
+ ```
124
+
125
+ ### Option 4: Use with GROQ
126
+
127
+ 1. Get an API key from [GROQ Console](https://console.groq.com)
128
+ 2. Set your API key:
129
+ ```bash
130
+ export GROQ_API_KEY=your-api-key
131
+ ```
132
+ 3. Run osagent:
133
+ ```bash
134
+ osagent --auth groq
135
+ ```
136
+
137
+ ### Option 5: Use with OpenAI-compatible APIs
138
+
139
+ ```bash
140
+ osagent --auth openai
141
+ ```
142
+
143
+ ## Usage
144
+
145
+ ### Basic Commands
146
+
147
+ ```bash
148
+ # Start interactive mode
149
+ osagent
150
+
151
+ # Start with a prompt
152
+ osagent "Explain this codebase"
153
+
154
+ # Use a specific model
155
+ osagent --model qwen2.5-coder:32b
156
+
157
+ # Resume last conversation
158
+ osagent --continue
159
+
160
+ # Print a file and ask about it
161
+ osagent "What does this do?" < src/main.ts
162
+
163
+ # Run health check
164
+ osagent doctor
165
+
166
+ # Dangerous mode (auto-accept all tool executions)
167
+ osagent --dangerously
168
+ ```
169
+
170
+ ### Slash Commands
171
+
172
+ Once in the interactive mode, you can use these commands:
173
+
174
+ #### General
175
+ - `/help` - Show available commands
176
+ - `/about` - Show version and system info
177
+ - `/settings` - View and edit settings
178
+ - `/quit` or `/q` - Exit osagent
179
+
180
+ #### Model & AI
181
+ - `/model` - Switch AI model (opens model selector)
182
+ - `/model list` - List available models for current provider
183
+ - `/model info` - Show current model details
184
+ - `/model <id>` - Switch to a specific model
185
+ - `/provider` - Switch AI provider (Ollama, Anthropic, GROQ, OpenAI)
186
+ - `/agents` - Manage custom agents
187
+ - `/consult` - Manage consultation mode (AI asks clarifying questions)
188
+
189
+ #### Conversation
190
+ - `/continue` - Resume the most recent conversation
191
+ - `/continue list` - List recent sessions to resume
192
+ - `/reset` - Clear conversation and start fresh
193
+ - `/clear` - Clear the screen
194
+ - `/chat save <tag>` - Save conversation checkpoint
195
+ - `/chat resume <tag>` - Resume from checkpoint
196
+
197
+ #### Safety & Permissions
198
+ - `/dangerously` or `/yolo` - Toggle auto-accept mode for tool executions
199
+ - `/permissions` - View and manage tool permissions
200
+
201
+ #### System
202
+ - `/doctor` - Check system health and updates
203
+ - `/doctor update` - Auto-update to latest version
204
+ - `/doctor init` - Initialize `~/.osagent/` directory structure
205
+ - `/view` - View system architecture and configuration
206
+ - `/view config` - Current configuration
207
+ - `/view files` - Configuration files
208
+ - `/view models` - Supported models
209
+ - `/context` or `/ctx` - View context window usage and token stats
210
+
211
+ #### Utilities
212
+ - `/copy` - Copy last response to clipboard
213
+ - `/memory` - View and edit project memory
214
+ - `/tools` - List available tools
215
+ - `/mcp` - Manage MCP servers
216
+
217
+ ### Status Bar
218
+
219
+ While osagent works, you'll see a real-time status bar showing:
220
+ - Current activity with spinner
221
+ - Token usage (input ↑ / output ↓)
222
+ - Elapsed time
223
+ - Task progress and list
224
+
225
+ ```
226
+ ┌─────────────────────────────────────────────────────────┐
227
+ │ ◐ Writing tests for auth module... (2/5) ↑12.3k ↓8.2k 2m 15s │
228
+ │ ├─ ○ Create test file │
229
+ │ ├─ ◐ Writing unit tests │
230
+ │ └─ ○ Run tests and fix errors │
231
+ └─────────────────────────────────────────────────────────┘
232
+ ```
233
+
234
+ ### Consultation Mode
235
+
236
+ osagent can ask you clarifying questions as it works to better understand your requirements:
237
+
238
+ ```bash
239
+ /consult active # Active mode - questions shown while agent works
240
+ /consult blocking # Blocking mode - high-priority questions pause the agent
241
+ /consult status # Show current consultation mode and stats
242
+ /consult context # View collected context
243
+ /consult clear # Clear collected consultation context
244
+ /consult demo # Run a demonstration of consultation features
245
+ ```
246
+
247
+ Consultation is always enabled. Use `/consult active` or `/consult blocking` to switch between modes. Questions appear in a dedicated panel below the status bar during agent operations.
248
+
249
+ ### Vector Memory (Optional)
250
+
251
+ For semantic search over session history, start ChromaDB:
252
+
253
+ ```bash
254
+ # Start ChromaDB with Docker
255
+ docker compose -f docker/docker-compose.yml up -d
256
+
257
+ # Ensure Ollama has the embedding model
258
+ ollama pull nomic-embed-text
259
+ ```
260
+
261
+ ### Multi-Agent Orchestration
262
+
263
+ osagent features an intelligent orchestration system that automatically:
264
+
265
+ - **Detects skills** in your prompts (debugging, testing, refactoring, etc.)
266
+ - **Selects the best agent** for each task based on capabilities
267
+ - **Dispatches execution** to specialized subagents
268
+ - **Tracks progress** with real-time status updates
269
+
270
+ The orchestrator runs transparently - just describe what you want and osagent handles the rest.
271
+
272
+ ### Episodic Memory
273
+
274
+ osagent learns from your sessions:
275
+
276
+ - **Records episodes** of your interactions automatically
277
+ - **Tracks actions** including tools used and files modified
278
+ - **Saves outcomes** for future reference
279
+ - **Enables recall** of past patterns and solutions
280
+
281
+ Episodes are stored locally in `~/.osagent/episodes/`.
282
+
283
+ ### Configuration
284
+
285
+ osagent stores its configuration in `~/.osagent/` (created automatically on first run):
286
+
287
+ ```
288
+ ~/.osagent/
289
+ ├── settings.json # User settings
290
+ ├── agents/ # Custom agent definitions (.md, .yaml, .json)
291
+ ├── commands/ # Custom slash commands (.toml)
292
+ ├── skills/ # Custom skill plugins (.yaml)
293
+ ├── prompts/ # Custom prompts
294
+ └── episodes/ # Episodic memory storage
295
+ ```
296
+
297
+ ### Custom Agents
298
+
299
+ Create custom agents in `~/.osagent/agents/`:
300
+
301
+ ```yaml
302
+ # ~/.osagent/agents/my-agent.yaml
303
+ name: my-agent
304
+ description: A specialized agent for my use case
305
+ systemPrompt: You are an expert in...
306
+ model: qwen2.5-coder:32b
307
+ ```
308
+
309
+ ### Project Memory
310
+
311
+ Create an `OSAGENT.md` file in your project root to give osagent context:
312
+
313
+ ```bash
314
+ osagent /init
315
+ ```
316
+
317
+ ## Supported Models
318
+
319
+ ### Cloud Models (Ollama Cloud)
320
+ - `qwen3-coder:480b-cloud` - Most powerful (256K context)
321
+ - `kimi-k2.5:cloud` - High-performance coding model (131K context)
322
+ - `qwen3-coder:30b` - Efficient (30B params, 3.3B active)
323
+
324
+ ### GROQ (Fast Inference)
325
+ - `moonshotai/kimi-k2-instruct-0905` - Best coding model (256K context, ~200 tok/s)
326
+ - `moonshotai/kimi-k2-instruct` - Kimi K2 (256K context)
327
+ - `llama-3.3-70b-versatile` - Versatile general coding
328
+ - `llama-3.1-8b-instant` - Ultra-fast for simple tasks
329
+
330
+ ### Anthropic
331
+ - `claude-opus-4-5-20251101` - Most powerful
332
+ - `claude-sonnet-4-5-20250929` - Best balance (recommended)
333
+ - `claude-haiku-4-5-20251001` - Fastest
334
+
335
+ ### Local Models (Ollama)
336
+ - `qwen2.5-coder:32b` - Best local coding model (~20GB VRAM)
337
+ - `qwen2.5-coder:14b` - Great balance (~10GB VRAM)
338
+ - `qwen2.5-coder:7b` - Good for limited VRAM (~5GB)
339
+ - `codellama:34b` - Meta's coding model
340
+ - `deepseek-coder-v2:16b` - Efficient MoE model
341
+ - `llama3.2:latest` - General purpose
342
+
343
+ ## Requirements
344
+
345
+ - Node.js >= 20.0.0
346
+ - Ollama (for local usage) or API key for cloud providers
347
+
348
+ ## Development
349
+
350
+ ```bash
351
+ # Install dependencies
352
+ npm install
353
+
354
+ # Build all packages
355
+ npm run build
356
+
357
+ # Run in development mode
358
+ npm run start
359
+
360
+ # Run tests
361
+ npm run test
362
+
363
+ # Type check
364
+ npm run typecheck
365
+
366
+ # Lint
367
+ npm run lint
368
+ ```
369
+
370
+ ## Architecture
371
+
372
+ osagent is a monorepo with the following packages:
373
+
374
+ ```
375
+ packages/
376
+ ├── cli/ # Terminal UI and user interaction (React/Ink)
377
+ ├── core/ # AI engine, tools, and services
378
+ ├── test-utils/ # Shared test utilities
379
+ └── vscode-ide-companion/ # VS Code extension
380
+ ```
381
+
382
+ ## Keyboard Shortcuts
383
+
384
+ ### General
385
+ - `Ctrl+C` - Cancel current operation / Exit (press twice)
386
+ - `Ctrl+D` - Exit
387
+ - `Escape` - Cancel operation / Clear input
388
+ - `Tab` - Autocomplete commands
389
+ - `Up/Down` - Navigate history
390
+ - `?` - Show shortcuts help
391
+
392
+ ### During Operations
393
+ - `Ctrl+O` - Expand/collapse output
394
+ - `Ctrl+Y` - Toggle todo list visibility
395
+
396
+ ### Text Editing
397
+ - `Ctrl+L` - Clear screen
398
+ - `Ctrl+A` - Move to start of line
399
+ - `Ctrl+E` - Move to end of line
400
+ - `Ctrl+K` - Delete to end of line
401
+ - `Ctrl+U` - Delete to start of line
402
+ - `Shift+Enter` - Insert newline
403
+
404
+ ## Documentation
405
+
406
+ - [ARCHITECTURE.md](ARCHITECTURE.md) - System architecture, message flow, content generators, and tool system
407
+ - [CHANGELOG.md](CHANGELOG.md) - Full version history and release notes
408
+ - [docs/](docs/) - Detailed documentation on CLI, tools, core APIs, and features
409
+ - [docs/reference/](docs/reference/) - System architecture deep-dive, UI/UX flow, tech stack
410
+
411
+ ## License
412
+
413
+ Apache-2.0
414
+
415
+ ## Contributing
416
+
417
+ Contributions are welcome! Please read our contributing guidelines before submitting PRs.
418
+
419
+ ## Links
420
+
421
+ - [GitHub](https://github.com/robertohluna/osagent)
422
+ - [npm](https://www.npmjs.com/package/osagent)
423
+ - [Issues](https://github.com/robertohluna/osagent/issues)
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "osagent",
3
+ "version": "0.2.82",
4
+ "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/robertohluna/osagent.git"
8
+ },
9
+ "type": "module",
10
+ "main": "cli.js",
11
+ "bin": {
12
+ "osagent": "cli.js"
13
+ },
14
+ "files": [
15
+ "cli.js",
16
+ "vendor",
17
+ "*.sb",
18
+ "README.md",
19
+ "LICENSE",
20
+ "locales"
21
+ ],
22
+ "config": {
23
+ "sandboxImageUri": "ghcr.io/osagent/osagent:0.2.80"
24
+ },
25
+ "dependencies": {
26
+ "punycode": "^2.3.1"
27
+ },
28
+ "optionalDependencies": {
29
+ "@lydell/node-pty": "1.1.0",
30
+ "@lydell/node-pty-darwin-arm64": "1.1.0",
31
+ "@lydell/node-pty-darwin-x64": "1.1.0",
32
+ "@lydell/node-pty-linux-x64": "1.1.0",
33
+ "@lydell/node-pty-win32-arm64": "1.1.0",
34
+ "@lydell/node-pty-win32-x64": "1.1.0",
35
+ "node-pty": "^1.0.0"
36
+ },
37
+ "engines": {
38
+ "node": ">=20.0.0"
39
+ }
40
+ }
package/package.json CHANGED
@@ -1,29 +1,138 @@
1
1
  {
2
2
  "name": "osagent",
3
- "version": "0.2.82",
3
+ "version": "0.2.83",
4
4
  "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
+ "author": "Roberto Luna",
6
+ "license": "Apache-2.0",
7
+ "keywords": [
8
+ "ai",
9
+ "cli",
10
+ "agent",
11
+ "ollama",
12
+ "qwen",
13
+ "coding",
14
+ "terminal",
15
+ "autonomous"
16
+ ],
17
+ "homepage": "https://github.com/robertohluna/osagent#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/robertohluna/osagent/issues"
20
+ },
21
+ "engines": {
22
+ "node": ">=20.0.0"
23
+ },
24
+ "type": "module",
25
+ "workspaces": [
26
+ "packages/cli",
27
+ "packages/core",
28
+ "packages/test-utils",
29
+ "packages/vscode-ide-companion"
30
+ ],
5
31
  "repository": {
6
32
  "type": "git",
7
33
  "url": "git+https://github.com/robertohluna/osagent.git"
8
34
  },
9
- "type": "module",
10
- "main": "cli.js",
35
+ "config": {
36
+ "sandboxImageUri": "ghcr.io/osagent/osagent:0.2.83"
37
+ },
38
+ "scripts": {
39
+ "start": "cross-env node scripts/start.js",
40
+ "debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
41
+ "auth:npm": "npx OSAgent-artifactregistry-auth",
42
+ "auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
43
+ "auth": "npm run auth:npm && npm run auth:docker",
44
+ "generate": "node scripts/generate-git-commit-info.js",
45
+ "build": "node scripts/build.js",
46
+ "build-and-start": "npm run build && npm run start",
47
+ "build:vscode": "node scripts/build_vscode_companion.js",
48
+ "build:all": "npm run build && npm run build:sandbox && npm run build:vscode",
49
+ "build:packages": "npm run build --workspaces",
50
+ "build:sandbox": "node scripts/build_sandbox.js",
51
+ "bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js",
52
+ "test": "npm run test --workspaces --if-present --parallel",
53
+ "test:ci": "npm run test:ci --workspaces --if-present --parallel && npm run test:scripts",
54
+ "test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
55
+ "test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
56
+ "test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
57
+ "test:integration:sandbox:none": "cross-env OSA_SANDBOX=false vitest run --root ./integration-tests",
58
+ "test:integration:sandbox:docker": "cross-env OSA_SANDBOX=docker npm run build:sandbox && OSA_SANDBOX=docker vitest run --root ./integration-tests",
59
+ "test:integration:sandbox:podman": "cross-env OSA_SANDBOX=podman vitest run --root ./integration-tests",
60
+ "test:terminal-bench": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests",
61
+ "test:terminal-bench:oracle": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'oracle'",
62
+ "test:terminal-bench:OSA": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'OSA'",
63
+ "lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
64
+ "lint:fix": "eslint . --fix && eslint integration-tests --fix",
65
+ "lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
66
+ "lint:all": "node scripts/lint.js",
67
+ "format": "prettier --experimental-cli --write .",
68
+ "typecheck": "npm run typecheck --workspaces --if-present",
69
+ "check-i18n": "npm run check-i18n --workspace=packages/cli",
70
+ "preflight": "npm run clean && npm ci && npm run format && npm run lint:ci && npm run build && npm run typecheck && npm run test:ci",
71
+ "prepare:package": "node scripts/prepare-package.js",
72
+ "publish:npm": "cd dist && npm publish --access public",
73
+ "release:version": "node scripts/version.js",
74
+ "telemetry": "node scripts/telemetry.js",
75
+ "check:lockfile": "node scripts/check-lockfile.js",
76
+ "clean": "node scripts/clean.js",
77
+ "pre-commit": "node scripts/pre-commit.js"
78
+ },
79
+ "overrides": {
80
+ "wrap-ansi": "9.0.2",
81
+ "ansi-regex": "5.0.1",
82
+ "cliui": {
83
+ "wrap-ansi": "7.0.0"
84
+ }
85
+ },
11
86
  "bin": {
12
- "osagent": "cli.js"
87
+ "osagent": "dist/cli.js"
13
88
  },
14
89
  "files": [
15
- "cli.js",
16
- "vendor",
17
- "*.sb",
90
+ "dist/",
18
91
  "README.md",
19
- "LICENSE",
20
- "locales"
92
+ "LICENSE"
21
93
  ],
22
- "config": {
23
- "sandboxImageUri": "ghcr.io/osagent/osagent:0.2.80"
94
+ "devDependencies": {
95
+ "@types/marked": "^5.0.2",
96
+ "@types/mime-types": "^3.0.1",
97
+ "@types/minimatch": "^5.1.2",
98
+ "@types/mock-fs": "^4.13.4",
99
+ "@types/qrcode-terminal": "^0.12.2",
100
+ "@types/shell-quote": "^1.7.5",
101
+ "@types/uuid": "^10.0.0",
102
+ "@vitest/coverage-v8": "^3.1.1",
103
+ "@vitest/eslint-plugin": "^1.3.4",
104
+ "cross-env": "^7.0.3",
105
+ "esbuild": "^0.25.0",
106
+ "eslint": "^9.24.0",
107
+ "eslint-config-prettier": "^10.1.2",
108
+ "eslint-plugin-import": "^2.31.0",
109
+ "eslint-plugin-license-header": "^0.8.0",
110
+ "eslint-plugin-react": "^7.37.5",
111
+ "eslint-plugin-react-hooks": "^5.2.0",
112
+ "glob": "^10.4.5",
113
+ "globals": "^16.0.0",
114
+ "google-artifactregistry-auth": "^3.4.0",
115
+ "husky": "^9.1.7",
116
+ "json": "^11.0.0",
117
+ "lint-staged": "^16.1.6",
118
+ "memfs": "^4.42.0",
119
+ "mnemonist": "^0.40.3",
120
+ "mock-fs": "^5.5.0",
121
+ "msw": "^2.10.4",
122
+ "npm-run-all": "^4.1.5",
123
+ "prettier": "^3.5.3",
124
+ "react-devtools-core": "^4.28.5",
125
+ "semver": "^7.7.2",
126
+ "strip-ansi": "^7.1.2",
127
+ "tsx": "^4.20.3",
128
+ "typescript-eslint": "^8.30.1",
129
+ "vitest": "^3.2.4",
130
+ "yargs": "^17.7.2"
24
131
  },
25
132
  "dependencies": {
26
- "punycode": "^2.3.1"
133
+ "osagent-core": "file:packages/core",
134
+ "punycode": "^2.3.1",
135
+ "simple-git": "^3.28.0"
27
136
  },
28
137
  "optionalDependencies": {
29
138
  "@lydell/node-pty": "1.1.0",
@@ -32,9 +141,20 @@
32
141
  "@lydell/node-pty-linux-x64": "1.1.0",
33
142
  "@lydell/node-pty-win32-arm64": "1.1.0",
34
143
  "@lydell/node-pty-win32-x64": "1.1.0",
144
+ "@osagent/ripgrep-darwin-arm64": "0.1.0",
145
+ "@osagent/ripgrep-darwin-x64": "0.1.0",
146
+ "@osagent/ripgrep-linux-arm64": "0.1.0",
147
+ "@osagent/ripgrep-linux-x64": "0.1.0",
148
+ "@osagent/ripgrep-win32-x64": "0.1.0",
35
149
  "node-pty": "^1.0.0"
36
150
  },
37
- "engines": {
38
- "node": ">=20.0.0"
151
+ "lint-staged": {
152
+ "*.{js,jsx,ts,tsx}": [
153
+ "prettier --write",
154
+ "eslint --fix --max-warnings 0"
155
+ ],
156
+ "*.{json,md}": [
157
+ "prettier --write"
158
+ ]
39
159
  }
40
160
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes