osagent 0.2.6 → 0.2.7

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
@@ -374,6 +374,36 @@ For detailed architecture documentation, see [SYSTEM_ARCHITECTURE.md](SYSTEM_ARC
374
374
 
375
375
  ## Recent Updates
376
376
 
377
+ ### v0.2.6 - Smart Agent Selection
378
+ - **Intelligent Orchestration**: Generic "build X" requests now use Master Orchestrator
379
+ - **Confidence Thresholds**: Specialists only selected when confidence > 0.6
380
+ - **New Project Detection**: Automatically routes new project requests to Orchestrator
381
+ - **Tech Keyword Detection**: Only uses specialists when specific tech is mentioned
382
+
383
+ ### v0.2.5 - Comprehensive Orchestrator
384
+ - **Expert-Level Orchestrator**: Full tool knowledge with decision framework
385
+ - **Problem-Solving Framework**: Identify, analyze, plan, implement, verify phases
386
+ - **Feature Building Framework**: Understand, plan, build, verify, complete phases
387
+ - **Action-Oriented Prompts**: Models now explain while acting, not just talking
388
+
389
+ ### v0.2.4 - Agentic Enforcement
390
+ - **Critical Operating Principle**: Models must ACT, not just describe actions
391
+ - **Tool Call Requirements**: Every action statement must include tool calls
392
+ - **Improved System Prompts**: Clearer instructions for tool usage
393
+
394
+ ### v0.2.3 - API Key Fixes
395
+ - Fixed paste handling in API key input (bracketed paste mode)
396
+ - Added `/provider reset` command to clear stored API keys
397
+ - Removed sudo from doctor command recommendations
398
+
399
+ ### v0.2.2 - Ollama Cloud Fix
400
+ - Fixed Ollama Cloud API key not being stored in environment
401
+ - API key now properly persists for session after entry
402
+
403
+ ### v0.2.1 - Bundle Fix
404
+ - Fixed version number not showing correctly in bundled CLI
405
+ - Use `npm run bundle` instead of `npm run build` for releases
406
+
377
407
  ### v0.2.0 - Architecture & Orchestration Improvements
378
408
  - **Roadmap System**: New persistent project tracking system (`roadmap` tool for agents)
379
409
  - Track work items with priorities, dependencies, and subtasks
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,478 @@
1
+ # OS Agent
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 OS Agent:
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 OS Agent:
109
+ ```bash
110
+ osagent
111
+ ```
112
+
113
+ ### Option 3: Use with OpenAI-compatible APIs
114
+
115
+ ```bash
116
+ osagent --auth openai
117
+ ```
118
+
119
+ ## Usage
120
+
121
+ ### Basic Commands
122
+
123
+ ```bash
124
+ # Start interactive mode
125
+ osagent
126
+
127
+ # Start with a prompt
128
+ osagent "Explain this codebase"
129
+
130
+ # Use a specific model
131
+ osagent --model qwen2.5-coder:32b
132
+
133
+ # Resume last conversation
134
+ osagent --continue
135
+
136
+ # Print a file and ask about it
137
+ osagent "What does this do?" < src/main.ts
138
+
139
+ # Run health check
140
+ osagent doctor
141
+
142
+ # Dangerous mode (auto-accept all tool executions)
143
+ osagent --dangerously
144
+ ```
145
+
146
+ ### Slash Commands
147
+
148
+ Once in the interactive mode, you can use these commands:
149
+
150
+ #### General
151
+ - `/help` - Show available commands
152
+ - `/about` - Show version and system info
153
+ - `/settings` - View and edit settings
154
+ - `/quit` or `/q` - Exit OS Agent
155
+
156
+ #### Model & AI
157
+ - `/model` - Switch AI model (supports local Ollama models)
158
+ - `/agents` - Manage custom agents
159
+ - `/consult` - Toggle consultation mode (AI asks clarifying questions)
160
+
161
+ #### Conversation
162
+ - `/continue` - Resume the most recent conversation
163
+ - `/continue list` - List recent sessions to resume
164
+ - `/reset` - Clear conversation and start fresh
165
+ - `/clear` - Clear the screen
166
+ - `/chat save <tag>` - Save conversation checkpoint
167
+ - `/chat resume <tag>` - Resume from checkpoint
168
+
169
+ #### Safety & Permissions
170
+ - `/dangerously` or `/yolo` - Toggle auto-accept mode for tool executions
171
+ - `/permissions` - View and manage tool permissions
172
+
173
+ #### System
174
+ - `/doctor` - Check system health and updates
175
+ - `/doctor update` - Auto-update to latest version
176
+ - `/doctor init` - Initialize `~/.osagent/` directory structure
177
+ - `/view` - View system architecture and configuration
178
+ - `/view config` - Current configuration
179
+ - `/view files` - Configuration files
180
+ - `/view models` - Supported models
181
+ - `/context` or `/ctx` - View context window usage and token stats
182
+
183
+ #### Utilities
184
+ - `/copy` - Copy last response to clipboard
185
+ - `/memory` - View and edit project memory
186
+ - `/tools` - List available tools
187
+ - `/mcp` - Manage MCP servers
188
+
189
+ ### Status Bar
190
+
191
+ While OS Agent works, you'll see a real-time status bar showing:
192
+ - Current activity with spinner
193
+ - Token usage (input ↑ / output ↓)
194
+ - Elapsed time
195
+ - Task progress and list
196
+
197
+ ```
198
+ ┌─────────────────────────────────────────────────────────┐
199
+ │ ◐ Writing tests for auth module... (2/5) ↑12.3k ↓8.2k 2m 15s │
200
+ │ ├─ ○ Create test file │
201
+ │ ├─ ◐ Writing unit tests │
202
+ │ └─ ○ Run tests and fix errors │
203
+ └─────────────────────────────────────────────────────────┘
204
+ ```
205
+
206
+ ### Consultation Mode
207
+
208
+ OS Agent can ask you clarifying questions as it works to better understand your requirements:
209
+
210
+ ```bash
211
+ /consult on # Active mode - questions shown while agent works
212
+ /consult blocking # Blocking mode - high-priority questions pause the agent
213
+ /consult off # Disable consultation
214
+ /consult context # View collected context
215
+ ```
216
+
217
+ Questions appear in a dedicated panel below the status bar during agent operations.
218
+
219
+ ### Vector Memory (Optional)
220
+
221
+ For semantic search over session history, start ChromaDB:
222
+
223
+ ```bash
224
+ # Start ChromaDB with Docker
225
+ docker compose -f docker/docker-compose.yml up -d
226
+
227
+ # Ensure Ollama has the embedding model
228
+ ollama pull nomic-embed-text
229
+ ```
230
+
231
+ ### Multi-Agent Orchestration
232
+
233
+ OS Agent features an intelligent orchestration system that automatically:
234
+
235
+ - **Detects skills** in your prompts (debugging, testing, refactoring, etc.)
236
+ - **Selects the best agent** for each task based on capabilities
237
+ - **Dispatches execution** to specialized subagents
238
+ - **Tracks progress** with real-time status updates
239
+
240
+ The orchestrator runs transparently - just describe what you want and OS Agent handles the rest.
241
+
242
+ ### Episodic Memory
243
+
244
+ OS Agent learns from your sessions:
245
+
246
+ - **Records episodes** of your interactions automatically
247
+ - **Tracks actions** including tools used and files modified
248
+ - **Saves outcomes** for future reference
249
+ - **Enables recall** of past patterns and solutions
250
+
251
+ Episodes are stored locally in `~/.osagent/episodes/`.
252
+
253
+ ### Configuration
254
+
255
+ OS Agent stores its configuration in `~/.osagent/` (created automatically on first run):
256
+
257
+ ```
258
+ ~/.osagent/
259
+ ├── settings.json # User settings
260
+ ├── agents/ # Custom agent definitions (.md, .yaml, .json)
261
+ ├── commands/ # Custom slash commands (.toml)
262
+ ├── skills/ # Custom skill plugins (.yaml)
263
+ ├── prompts/ # Custom prompts
264
+ └── episodes/ # Episodic memory storage
265
+ ```
266
+
267
+ ### Custom Agents
268
+
269
+ Create custom agents in `~/.osagent/agents/`:
270
+
271
+ ```yaml
272
+ # ~/.osagent/agents/my-agent.yaml
273
+ name: my-agent
274
+ description: A specialized agent for my use case
275
+ systemPrompt: You are an expert in...
276
+ model: qwen2.5-coder:32b
277
+ ```
278
+
279
+ ### Project Memory
280
+
281
+ Create an `OSAGENT.md` file in your project root to give OS Agent context:
282
+
283
+ ```bash
284
+ osagent /init
285
+ ```
286
+
287
+ ## Supported Models
288
+
289
+ ### Cloud Models (Ollama Cloud)
290
+ - `qwen3-coder:480b-cloud` - Most powerful (256K context)
291
+ - `qwen3-coder:30b` - Efficient (30B params, 3.3B active)
292
+
293
+ ### Local Models (Ollama)
294
+ - `qwen2.5-coder:32b` - Best local coding model (~20GB VRAM)
295
+ - `qwen2.5-coder:14b` - Great balance (~10GB VRAM)
296
+ - `qwen2.5-coder:7b` - Good for limited VRAM (~5GB)
297
+ - `codellama:34b` - Meta's coding model
298
+ - `deepseek-coder-v2:16b` - Efficient MoE model
299
+ - `llama3.2:latest` - General purpose
300
+
301
+ ## Requirements
302
+
303
+ - Node.js >= 20.0.0
304
+ - Ollama (for local usage) or API key for cloud providers
305
+
306
+ ## Development
307
+
308
+ ```bash
309
+ # Install dependencies
310
+ npm install
311
+
312
+ # Build all packages
313
+ npm run build
314
+
315
+ # Run in development mode
316
+ npm run start
317
+
318
+ # Run tests
319
+ npm run test
320
+
321
+ # Type check
322
+ npm run typecheck
323
+
324
+ # Lint
325
+ npm run lint
326
+ ```
327
+
328
+ ## Architecture
329
+
330
+ OS Agent is a monorepo with the following packages:
331
+
332
+ ```
333
+ packages/
334
+ ├── cli/ # Terminal UI and user interaction (React/Ink)
335
+ ├── core/ # AI engine, tools, and services
336
+ ├── test-utils/ # Shared test utilities
337
+ └── vscode-ide-companion/ # VS Code extension
338
+ ```
339
+
340
+ ## Keyboard Shortcuts
341
+
342
+ ### General
343
+ - `Ctrl+C` - Cancel current operation / Exit (press twice)
344
+ - `Ctrl+D` - Exit
345
+ - `Escape` - Cancel operation / Clear input
346
+ - `Tab` - Autocomplete commands
347
+ - `Up/Down` - Navigate history
348
+ - `?` - Show shortcuts help
349
+
350
+ ### During Operations
351
+ - `Ctrl+O` - Expand/collapse output
352
+ - `Ctrl+Y` - Toggle todo list visibility
353
+ - `Ctrl+E` - Toggle agent detail level
354
+ - `Ctrl+F` - Focus embedded shell
355
+
356
+ ### Text Editing
357
+ - `Ctrl+L` - Clear screen
358
+ - `Ctrl+A` - Move to start of line
359
+ - `Ctrl+E` - Move to end of line
360
+ - `Ctrl+K` - Delete to end of line
361
+ - `Ctrl+U` - Delete to start of line
362
+ - `Shift+Enter` - Insert newline
363
+
364
+ ## Documentation
365
+
366
+ For detailed architecture documentation, see [SYSTEM_ARCHITECTURE.md](SYSTEM_ARCHITECTURE.md). This includes:
367
+ - Complete request flow diagrams
368
+ - Agent system and tier structure
369
+ - Skill detection and auto-dispatch
370
+ - Tool system and execution flow
371
+ - Memory systems (episodic + vector)
372
+ - Context provider hierarchy
373
+ - Integration points and key files
374
+
375
+ ## Recent Updates
376
+
377
+ ### v0.2.0 - Architecture & Orchestration Improvements
378
+ - **Roadmap System**: New persistent project tracking system (`roadmap` tool for agents)
379
+ - Track work items with priorities, dependencies, and subtasks
380
+ - Stored in `.osagent/roadmap.json` - persists across sessions
381
+ - Actions: view, add, update, next, summary, note
382
+ - **Consultation Integration**: Enhanced orchestrator-consultation bridge
383
+ - Generates clarifying questions when prompts are ambiguous
384
+ - Context-aware question generation based on skill detection
385
+ - Collects enhanced context for better agent selection
386
+ - **Codebase Cleanup**: Removed orphaned code and redundant hooks
387
+ - Deleted unused memory command hooks
388
+ - Consolidated RoadmapContext into core service
389
+ - Updated architecture documentation
390
+ - **Documentation**: Added comprehensive SYSTEM_ARCHITECTURE.md
391
+ - Complete system flow documentation
392
+ - Agent tiers and selection rules
393
+ - Skill detection process
394
+ - Tool registration patterns
395
+
396
+ ### v0.1.87 - Test Fixes & Documentation
397
+ - Fixed all test failures (3170/3170 tests now passing)
398
+ - Updated naming consistency across codebase
399
+ - Fixed vision model detection in DashScope provider
400
+ - Added gopd dependency troubleshooting documentation
401
+ - Improved MCP client transport handling
402
+
403
+ ### v0.1.86 - Auto Project Context
404
+ - Automatic project context injection on first prompt
405
+ - When no OSAGENT.md exists, AI auto-explores project structure before responding
406
+ - No manual `/init` required for casual usage
407
+
408
+ ### v0.1.85 - Security & Stability Fixes
409
+ - Timer now only counts active work time (stops when idle)
410
+ - Fixed command injection vulnerability in git co-author feature
411
+ - Fixed symlink bypass in path validation
412
+ - Fixed VimModeContext re-render loop
413
+
414
+ ### v0.1.83 - Enhanced Doctor Command
415
+ - Added enhanced installation diagnostics to `/doctor`
416
+ - Shows installation method (npm-global, homebrew, native, source)
417
+ - Displays binary path and invoked path
418
+ - Shows auto-updates status and search/ripgrep status
419
+ - Detects and warns about multiple installations
420
+ - New "All systems go" summary style
421
+
422
+ ### v0.1.81 - Stability & Auto-Initialization
423
+ - Fixed "Maximum update depth exceeded" infinite loop (3800+ errors)
424
+ - Added automatic `~/.osagent/` directory initialization on startup
425
+ - Creates required directories: agents, commands, prompts, skills, episodes
426
+ - Auth credentials now properly saved when switching providers
427
+
428
+ ### v0.1.80 - Auth Provider Fix
429
+ - Fixed auth configuration mismatch when switching providers
430
+ - Ensures baseUrl and model are saved correctly to settings
431
+
432
+ ### v0.1.79 - IDE Terminal Compatibility
433
+ - Migrated all dialogs from custom `useKeypress` to Ink's `useInput` hook
434
+ - Fixes arrow key issues in VS Code, Cursor, and other IDE terminals
435
+ - Arrow keys no longer print escape sequences (`^[[A^[[B`) in dialogs
436
+ - Improved compatibility with IDE terminals that don't support raw mode
437
+
438
+ ### v0.1.66 - Focus Management
439
+ - New `useFocusedKeypress` hook for enforced focus management
440
+ - Prevents keypress conflicts between dialogs and main UI
441
+ - Required `isFocused` parameter catches bugs at compile time
442
+
443
+ ### v0.1.65 - Input Routing Fix
444
+ - Fixed keyboard input routing issues with selectors
445
+ - Arrow keys and Enter now properly isolated to focused component
446
+ - No more keypress "leakage" between dialogs
447
+
448
+ ### v0.1.64 - UI Improvements
449
+ - Tree-view style tool display with `├─` `└─` connectors
450
+ - Expandable results with `Ctrl+O`
451
+ - Token counts and duration stats
452
+ - Sleeker ASCII art header
453
+ - Minimal init banner
454
+
455
+ ### v0.1.63 - Stability Fix
456
+ - Fixed infinite loop on startup (Maximum update depth exceeded)
457
+ - Improved React effect dependency management
458
+
459
+ ### v0.1.59 - Terminal Stability
460
+ - Fixed EIO error crash on stdin
461
+ - Graceful handling of TTY disconnects
462
+ - Stable arrow key navigation in selectors
463
+
464
+ See [KNOWN_ISSUES.md](docs/KNOWN_ISSUES.md) for detailed issue tracking.
465
+
466
+ ## License
467
+
468
+ Apache-2.0
469
+
470
+ ## Contributing
471
+
472
+ Contributions are welcome! Please read our contributing guidelines before submitting PRs.
473
+
474
+ ## Links
475
+
476
+ - [GitHub](https://github.com/robertohluna/osagent)
477
+ - [npm](https://www.npmjs.com/package/osagent)
478
+ - [Issues](https://github.com/robertohluna/osagent/issues)
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "osagent",
3
+ "version": "0.2.6",
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.1.100"
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.6",
3
+ "version": "0.2.7",
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.1.100"
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.1.100"
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