# Workflow Examples

## Progressive Library Exploration

User: "How does Vue's computed properties work?"

```
list_stores()
→ Found: vue, react, pydantic

get_store_info('vue')
→ Path: .bluera/bluera-knowledge/repos/vue/
→ Files: 2,847 indexed

search("computed properties", intent='find-implementation', detail='minimal', stores=['vue'])
→ Result 1: packages/reactivity/src/computed.ts (score: 0.92)
→ Result 2: packages/reactivity/__tests__/computed.spec.ts (score: 0.85)
→ Result 3: packages/runtime-core/src/apiComputed.ts (score: 0.78)

get_full_context(['result_1_id', 'result_2_id'])
→ Full code for ComputedRefImpl class
→ Complete API implementation
```

## Add Library + Monitor

```
create_store('https://github.com/fastapi/fastapi', 'fastapi')
→ job_id: 'job_abc123'

check_job_status('job_abc123')
→ Status: running, Progress: 45%

# ... wait 30 seconds ...

check_job_status('job_abc123')
→ Status: completed, Indexed: 487 files

search("dependency injection", stores=['fastapi'], limit=3)
→ Returns relevant FastAPI DI patterns
```

## Progressive Detail Strategy

```
# Initial broad search
search("authentication middleware", detail='minimal', limit=20)
→ 20 results, scores 0.45-0.92, ~2k tokens total

# Filter by score (>0.7):
  - auth/jwt.ts (score: 0.92)
  - middleware/authenticate.ts (score: 0.85)
  - auth/session.ts (score: 0.74)

# Get full code for top 3 only
get_full_context(['result_3', 'result_7', 'result_12'])
→ ~3k tokens (vs ~15k if fetched all 20)
```

## Error Recovery

```
create_store('https://github.com/private/repo', 'my-repo')
→ job_id: 'job_xyz'

check_job_status('job_xyz')
→ Status: failed, Error: "Authentication required"

# Recovery: Use SSH
create_store('git@github.com:private/repo.git', 'my-repo')
→ Status: completed
```

## Combining Workflows

User: "Compare Express and Hono middleware"

```
1. list_stores() → check if both indexed
2. If not: create_store() for missing
3. check_job_status() → wait for indexing
4. search("middleware implementation", stores=['express', 'hono'], detail='minimal')
5. Review summaries, identify key files
6. get_full_context() for 2-3 most relevant from each
7. Compare implementations with full context
```
