osagent 0.1.99 → 0.2.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/README.md +30 -0
- package/cli.js +46 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -319,8 +319,38 @@ packages/
|
|
|
319
319
|
- `Ctrl+U` - Delete to start of line
|
|
320
320
|
- `Shift+Enter` - Insert newline
|
|
321
321
|
|
|
322
|
+
## Documentation
|
|
323
|
+
|
|
324
|
+
For detailed architecture documentation, see [SYSTEM_ARCHITECTURE.md](SYSTEM_ARCHITECTURE.md). This includes:
|
|
325
|
+
- Complete request flow diagrams
|
|
326
|
+
- Agent system and tier structure
|
|
327
|
+
- Skill detection and auto-dispatch
|
|
328
|
+
- Tool system and execution flow
|
|
329
|
+
- Memory systems (episodic + vector)
|
|
330
|
+
- Context provider hierarchy
|
|
331
|
+
- Integration points and key files
|
|
332
|
+
|
|
322
333
|
## Recent Updates
|
|
323
334
|
|
|
335
|
+
### v0.2.0 - Architecture & Orchestration Improvements
|
|
336
|
+
- **Roadmap System**: New persistent project tracking system (`roadmap` tool for agents)
|
|
337
|
+
- Track work items with priorities, dependencies, and subtasks
|
|
338
|
+
- Stored in `.osagent/roadmap.json` - persists across sessions
|
|
339
|
+
- Actions: view, add, update, next, summary, note
|
|
340
|
+
- **Consultation Integration**: Enhanced orchestrator-consultation bridge
|
|
341
|
+
- Generates clarifying questions when prompts are ambiguous
|
|
342
|
+
- Context-aware question generation based on skill detection
|
|
343
|
+
- Collects enhanced context for better agent selection
|
|
344
|
+
- **Codebase Cleanup**: Removed orphaned code and redundant hooks
|
|
345
|
+
- Deleted unused memory command hooks
|
|
346
|
+
- Consolidated RoadmapContext into core service
|
|
347
|
+
- Updated architecture documentation
|
|
348
|
+
- **Documentation**: Added comprehensive SYSTEM_ARCHITECTURE.md
|
|
349
|
+
- Complete system flow documentation
|
|
350
|
+
- Agent tiers and selection rules
|
|
351
|
+
- Skill detection process
|
|
352
|
+
- Tool registration patterns
|
|
353
|
+
|
|
324
354
|
### v0.1.87 - Test Fixes & Documentation
|
|
325
355
|
- Fixed all test failures (3170/3170 tests now passing)
|
|
326
356
|
- Updated naming consistency across codebase
|
package/cli.js
CHANGED
|
@@ -145288,6 +145288,23 @@ ${this.getTimeoutTroubleshootingTips(context2)}`);
|
|
|
145288
145288
|
return `${errorMessage}
|
|
145289
145289
|
|
|
145290
145290
|
\u{1F4A1} Model not found. Pull it with: ollama pull <model-name>`;
|
|
145291
|
+
}
|
|
145292
|
+
if (lowerMessage.includes("401") || lowerMessage.includes("unauthorized") || lowerMessage.includes("invalid api key") || lowerMessage.includes("invalid_api_key")) {
|
|
145293
|
+
if (lowerMessage.includes("groq") || lowerMessage.includes("api.groq.com")) {
|
|
145294
|
+
return `${errorMessage}
|
|
145295
|
+
|
|
145296
|
+
\u{1F4A1} Invalid GROQ API key. Get one at: https://console.groq.com/keys
|
|
145297
|
+
Set it with: export GROQ_API_KEY=your_key`;
|
|
145298
|
+
}
|
|
145299
|
+
if (lowerMessage.includes("ollama")) {
|
|
145300
|
+
return `${errorMessage}
|
|
145301
|
+
|
|
145302
|
+
\u{1F4A1} Invalid Ollama Cloud API key. Get one at: https://ollama.com/settings/keys
|
|
145303
|
+
Set it with: export OLLAMA_API_KEY=your_key`;
|
|
145304
|
+
}
|
|
145305
|
+
return `${errorMessage}
|
|
145306
|
+
|
|
145307
|
+
\u{1F4A1} Invalid API key. Please check your API key is correct and not expired.`;
|
|
145291
145308
|
}
|
|
145292
145309
|
if (lowerMessage.includes("groq") && lowerMessage.includes("rate limit")) {
|
|
145293
145310
|
return `${errorMessage}
|
|
@@ -148414,6 +148431,18 @@ var init_ollamaContentGenerator = __esm({
|
|
|
148414
148431
|
});
|
|
148415
148432
|
if (!response.ok) {
|
|
148416
148433
|
const errorText = await response.text();
|
|
148434
|
+
if (response.status === 401) {
|
|
148435
|
+
throw new Error(`Ollama API error: 401 Unauthorized - ${errorText}
|
|
148436
|
+
|
|
148437
|
+
\u{1F4A1} Invalid or missing Ollama Cloud API key.
|
|
148438
|
+
Get one at: https://ollama.com/settings/keys
|
|
148439
|
+
Set it with: export OLLAMA_API_KEY=your_key`);
|
|
148440
|
+
}
|
|
148441
|
+
if (response.status === 404) {
|
|
148442
|
+
throw new Error(`Ollama API error: 404 Not Found - ${errorText}
|
|
148443
|
+
|
|
148444
|
+
\u{1F4A1} Model not found. Make sure you're using a valid cloud model like: qwen3-coder:480b-cloud`);
|
|
148445
|
+
}
|
|
148417
148446
|
throw new Error(`Ollama API error: ${response.status} ${response.statusText} - ${errorText}`);
|
|
148418
148447
|
}
|
|
148419
148448
|
const ollamaResponse = await response.json();
|
|
@@ -148434,6 +148463,18 @@ var init_ollamaContentGenerator = __esm({
|
|
|
148434
148463
|
});
|
|
148435
148464
|
if (!response.ok) {
|
|
148436
148465
|
const errorText = await response.text();
|
|
148466
|
+
if (response.status === 401) {
|
|
148467
|
+
throw new Error(`Ollama API error: 401 Unauthorized - ${errorText}
|
|
148468
|
+
|
|
148469
|
+
\u{1F4A1} Invalid or missing Ollama Cloud API key.
|
|
148470
|
+
Get one at: https://ollama.com/settings/keys
|
|
148471
|
+
Set it with: export OLLAMA_API_KEY=your_key`);
|
|
148472
|
+
}
|
|
148473
|
+
if (response.status === 404) {
|
|
148474
|
+
throw new Error(`Ollama API error: 404 Not Found - ${errorText}
|
|
148475
|
+
|
|
148476
|
+
\u{1F4A1} Model not found. Make sure you're using a valid cloud model like: qwen3-coder:480b-cloud`);
|
|
148477
|
+
}
|
|
148437
148478
|
throw new Error(`Ollama API error: ${response.status} ${response.statusText} - ${errorText}`);
|
|
148438
148479
|
}
|
|
148439
148480
|
const reader = response.body?.getReader();
|
|
@@ -148832,7 +148873,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
148832
148873
|
};
|
|
148833
148874
|
}
|
|
148834
148875
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
148835
|
-
const version3 = "0.1.
|
|
148876
|
+
const version3 = "0.1.100";
|
|
148836
148877
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
148837
148878
|
const baseHeaders = {
|
|
148838
148879
|
"User-Agent": userAgent2
|
|
@@ -337816,7 +337857,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
337816
337857
|
// packages/cli/src/utils/version.ts
|
|
337817
337858
|
async function getCliVersion() {
|
|
337818
337859
|
const pkgJson = await getPackageJson();
|
|
337819
|
-
return "0.1.
|
|
337860
|
+
return "0.1.100";
|
|
337820
337861
|
}
|
|
337821
337862
|
__name(getCliVersion, "getCliVersion");
|
|
337822
337863
|
|
|
@@ -342024,8 +342065,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
342024
342065
|
|
|
342025
342066
|
// packages/cli/src/generated/git-commit.ts
|
|
342026
342067
|
init_esbuild_shims();
|
|
342027
|
-
var GIT_COMMIT_INFO2 = "
|
|
342028
|
-
var CLI_VERSION2 = "0.1.
|
|
342068
|
+
var GIT_COMMIT_INFO2 = "97ab282";
|
|
342069
|
+
var CLI_VERSION2 = "0.1.100";
|
|
342029
342070
|
|
|
342030
342071
|
// packages/cli/src/utils/systemInfo.ts
|
|
342031
342072
|
async function getNpmVersion() {
|
|
@@ -385912,7 +385953,7 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config2, addItem) => {
|
|
|
385912
385953
|
}
|
|
385913
385954
|
if (authType === AuthType2.OLLAMA_CLOUD) {
|
|
385914
385955
|
if (credentials) {
|
|
385915
|
-
const effectiveBaseUrl = credentials.baseUrl || "https://ollama.com
|
|
385956
|
+
const effectiveBaseUrl = credentials.baseUrl || "https://ollama.com";
|
|
385916
385957
|
const effectiveModel = credentials.model || "qwen3-coder:480b-cloud";
|
|
385917
385958
|
config2.updateCredentials({
|
|
385918
385959
|
apiKey: credentials.apiKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "osagent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/osagent/osagent:0.1.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/osagent/osagent:0.1.100"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"punycode": "^2.3.1"
|