Commit Graph

7821 Commits

Author SHA1 Message Date
Artur Do Lago cccbe21ace fix(config): add openrouter prefix to Stanley model
Model names require provider prefix for proper resolution.
Changed from x-ai/grok-4.1-fast to openrouter/x-ai/grok-4.1-fast.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:26 +01:00
Artur Do Lago 3c4da51263 fix(cli): resolve agent-core run command hanging
Two issues fixed:

1. SSE event format mismatch (app.ts): Server was sending event type in
   SSE event: field and only properties in data: field. SDK only yields
   data: field content, so run command couldn't determine event types.
   Fix: Include both type and properties in data field.

2. Agent validation in attach mode (run.ts): When using --attach, code
   tried to validate agents locally via Agent.get() which requires
   Instance context. But attach mode doesn't call bootstrap() so no
   context exists, causing "No context found for instance" error.
   Fix: Skip local agent validation in attach mode (server validates),
   only validate locally in bootstrap mode where Instance context exists.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:26 +01:00
Artur Do Lago 94e69c2c3a chore: bump version to 0.1.0-alpha.1 2026-01-20 13:31:26 +01:00
Artur Do Lago 282f2dd47e chore(tiara): update submodule with agent-core integration fixes
Updates tiara to 09b8f65 which includes:
- Fix AgentCoreClient error handling for validation errors
- Fix QdrantStore API limit compliance (500 max)
- Add integration test for hive-mind + agent-core daemon

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:26 +01:00
Artur Do Lago bfeca4a991 fix(types): resolve type errors in usage, session, and TUI components
- Fix SQLite binding types in usage storage with proper any cast
- Fix assistantMessage.time.start → .created in processor
- Handle legacy string model format in prompt.ts
- Extend SDK Agent type with fallback property for TUI
- Extend SDK KeybindsConfig with model_fallback_toggle
- Fix text/span styling for bold in prompt component

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:25 +01:00
Artur Do Lago f137dbf536 chore(submodules): update vendor submodule refs
- Update stanley to 93240c9 (observability, circuit breaker, forms)
- Update zee with telegram user mode fixes
- Update tiara with test reorganization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago f88c692d70 chore(deps): update dependencies and SDK tool handlers
- Update AI SDK packages
- Update openai-compatible SDK tool response handlers
- Fix test fixtures for models API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago 52fb207644 chore(skills): update skill definitions and agent-core config
- Update skill markdown files with improved instructions
- Add Tiara namespaces to agent-core config
- Update github tools with better error handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago aadfd0aba8 feat(config): add tiara runtime config and namespace types
- Add Tiara namespace configuration types
- Add process registry types for agent-core centralization
- Update persona config handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago 5781c0b118 feat(zee): add codexbar and splitwise tools
- Add codexbar tool for usage and cost tracking queries
- Add splitwise tool for expense management
- Integrate new tools into zee domain

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago 2e7e81c77b feat(server): enhance MCP routes and session handling
- Add MCP passthrough routes for tool execution
- Improve session message handling with better logging
- Add usage route to server
- Update daemon CLI with usage tracking integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago e7a5b74431 feat(provider): add usage tracking and provider parameter filtering
- Add usage tracking module with pricing, storage, and cost calculation
- Add PROVIDER_SUPPORTED_PARAMS to filter unsupported parameters per provider
- Fix parseModel to handle edge cases in model string parsing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:26 +01:00
Artur Do Lago 689daa9196 fix(johny): remove top_p setting for Claude thinking compatibility
Claude Opus 4.5 thinking mode requires topP >= 0.95 or unset.
The previous top_p: 0.88 could cause issues with extended thinking.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 8433644bf4 test(provider): add persona thinking config tests and fix test discovery
- Add tests for persona thinking configurations:
  - Zee (GLM-4.7): preserved thinking mode via zai/zhipuai provider
  - Stanley (Grok 4.1): reasoningEffort variants via xAI
  - Johny (Claude Opus 4.5): thinkingConfig via Google/Antigravity
  - Fallback models: Gemini 3 thinkingLevel high
- Fix bunfig.toml to only run tests from test/ directory (excludes dist/)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 76427323e4 feat(agents): configure max thinking/reasoning modes per persona
- Zee (GLM-4.7): Enable preserved thinking mode (clear_thinking: false)
- Stanley (Grok 4.1): Set reasoningEffort to high
- Johny (Claude Opus 4.5): Configure thinkingBudget to 64000 tokens

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 23459d7abc feat(tui): add F3 model fallback toggle and update persona models
Persona model configuration:
- Zee: cerebras/zai-glm-4.7 → google/gemini-3-flash-preview
- Stanley: x-ai/grok-4.1-fast → openai/gpt-5.2
- Johny: google/antigravity-claude-opus-4-5-thinking → google/gemini-3-pro-preview

F3 fallback toggle feature:
- Add model_fallback_toggle keybind (default: F3)
- Add fallback field to Agent.Info schema
- Add toggleFallback(), isFallbackActive(), hasFallback() to local context
- Show [FB] indicator in prompt when fallback is active
- Toggle is session-scoped (resets on session change)

Temperature/top_p tuned per persona use case:
- Zee: temp=0.9, top_p=0.92 (warm, personable assistant)
- Stanley: temp=0.3, top_p=0.85 (precise financial analysis)
- Johny: temp=0.5, top_p=0.88 (balanced educational content)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 4b9dff2e77 chore(vendor): update tiara submodule with test fixes
Updates tiara submodule to include:
- Fixed helpers.test.ts (527 tests passing)
- Migration script for SQLite→Qdrant
- AgentCoreClient exports for integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 12ccf1419f feat(memory): add Tiara namespaces and process registry for Qdrant storage
Add support for Tiara hive-mind to use agent-core as the single source
of truth for all data via Qdrant vector database.

Changes:
- src/memory/types.ts: Add TiaraNamespaces constants and entry types
  - TiaraSwarmEntry, TiaraAgentEntry, TiaraTaskEntry
  - TiaraCommunicationEntry, TiaraConsensusEntry, TiaraMetricsEntry
  - TiaraDecisionEntry, TiaraLearningPattern
  - Helper functions for creating memory inputs
- packages/agent-core/src/process/: Add process registry module
  - registry.ts: ProcessRegistry class for agent/swarm tracking
  - types.ts: ProcessInfo, ProcessStats types
  - Heartbeat monitoring and status management
- packages/agent-core/src/server/route/: Add API routes
  - memory.ts: Memory CRUD and search endpoints
  - process.ts: Process registry endpoints with SSE events
- Update vendor/tiara submodule to use QdrantStore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago f5ddded1ee feat(tui): add system monitor lights for internet and LLM providers
Add health status indicators to the TUI footer:
- Internet connectivity (◉ NET) with green/red/muted states
- Connected LLM providers count (◈ N LLM)

Also update CLAUDE.md to document both installation methods
(bun global install and manual ~/bin/agent-core).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago 5564f506c6 feat(build): use package.json version as fallback for builds
Read version from packages/agent-core/package.json instead of
generating dynamic timestamp versions. This allows setting a
permanent version by editing package.json.

Priority order:
1. AGENT_CORE_VERSION env var
2. OPENCODE_VERSION env var
3. package.json version (new)
4. Dynamic timestamp version

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago f597efc368 fix(types): resolve AI SDK v6 type compatibility issues
- Use permissive types for provider factories (multiple @ai-sdk/provider versions)
- Add @ts-expect-error for LanguageModel/LanguageModelV3 mismatches
- Fix tool type comparisons for "provider-defined" at runtime
- Filter out tool-approval-request/response from content arrays
- Add proper inputTokenDetails/outputTokenDetails to test fixtures
- Cast Model types for SDK compatibility in share-next
- Fix PromiseLike.catch usage in prompt.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:28:25 +01:00
Artur Do Lago ae5c70b56c fix(test): update tests for AI SDK v6 and .agent-core rename
- Make toModelMessage async to handle AI SDK v6's async convertToModelMessages
- Update config tests to use .agent-core instead of .opencode
- Update tool registry tests to use .agent-core instead of .opencode
- Update all callers of toModelMessage to await the result

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:27:31 +01:00
Artur 70b89d843a fix: sdks/vscode/package.json to reduce vulnerabilities (#2)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2026-01-20 13:27:31 +01:00
Artur Do Lago bd33d5de0f cleanup: remove legacy daemon stack and trim docs 2026-01-20 13:27:31 +01:00
Artur Do Lago 9335997ca6 docs: keep council transport in tiara 2026-01-20 13:27:31 +01:00
Artur Do Lago 0c68cd0da6 Fix agent routing and versioning 2026-01-20 13:27:31 +01:00
Artur Do Lago f9e43164b6 Fix npm OTP args 2026-01-20 13:27:31 +01:00
Artur Do Lago 21750a53a5 Prefer AGENT_CORE env vars 2026-01-20 13:27:31 +01:00
Artur Do Lago 02ef35b3e2 Allow npm publish OTP 2026-01-20 13:27:02 +01:00
Artur Do Lago b876e28717 Support scoped npm publishing 2026-01-20 13:27:02 +01:00
Artur Do Lago 59b6130c2e Auto-start daemon from TUI 2026-01-20 13:26:01 +01:00
Artur Do Lago b5cf8d33c5 build: default to linux-x64 and darwin-arm64 2026-01-20 13:26:01 +01:00
Artur Do Lago ecef68f109 docs: refresh release docs and prune roadmaps 2026-01-20 13:26:01 +01:00
Artur Do Lago f648e42a72 docs: note anthropic auth submodule sync 2026-01-20 13:26:01 +01:00
Artur Do Lago b1bc673014 chore: track opencode-anthropic-auth as submodule 2026-01-20 13:26:01 +01:00
Artur Do Lago 56044851b2 fix: align autocomplete reopen trigger 2026-01-20 13:26:01 +01:00
Artur Do Lago 412fec6e03 chore: fix web workspace dependency 2026-01-20 13:25:08 +01:00
Artur Do Lago 8003fcbb59 chore: apply local updates after upstream merge 2026-01-20 13:22:15 +01:00
Artur Do Lago 0982e6278c chore: refresh stanley/tiara submodule refs 2026-01-20 13:17:39 +01:00
Artur Do Lago ba1d6d8068 chore: bump vendor submodules 2026-01-20 13:17:39 +01:00
Artur Do Lago 10a99e8077 simplify run-dev: self-contained, no external config 2026-01-20 13:17:39 +01:00
Artur Do Lago a513cc0e34 fix: clear stale daemon socket in run scripts 2026-01-20 13:17:39 +01:00
Artur Do Lago f41759ce4d bundle agent-core assets and config in dist 2026-01-20 13:17:39 +01:00
Artur Do Lago 98208b3dfb add dev and dist run scripts 2026-01-20 13:17:39 +01:00
Artur Do Lago 98713328d4 rename build targets env var 2026-01-20 13:17:38 +01:00
Artur Do Lago 9b9d259b45 bundle tiara and stanley deps 2026-01-20 13:17:38 +01:00
Artur Do Lago cd3e70cbb3 bundle stanley runtime for cli 2026-01-20 13:17:38 +01:00
snyk-bot de335914fa fix: upgrade @octokit/graphql from 9.0.1 to 9.0.3
Snyk has created this PR to upgrade @octokit/graphql from 9.0.1 to 9.0.3.

See this package in npm:
@octokit/graphql

See this project in Snyk:
https://app.snyk.io/org/adolago/project/20d84b90-a385-44b4-9545-4e2acbf2c5a7?utm_source=github&utm_medium=referral&page=upgrade-pr
2026-01-20 13:17:38 +01:00
Artur Do Lago aea51d232c feat: bundle stanley python deps 2026-01-20 13:17:38 +01:00
Artur Do Lago e1cc72500e feat: bundle zee deps in cli builds 2026-01-20 13:17:38 +01:00