Skip to content

Comments

feat(gateway): Phase 3 - Generate Wiki with Connector#34

Merged
TelivANT merged 1 commit intomainfrom
feat/wiki-connector-phase3
Feb 21, 2026
Merged

feat(gateway): Phase 3 - Generate Wiki with Connector#34
TelivANT merged 1 commit intomainfrom
feat/wiki-connector-phase3

Conversation

@TelivANT
Copy link
Owner

Phase 3 Implementation

Features

  • βœ… Generate wiki using connector
  • βœ… Clone storage to temp directory
  • βœ… Async job execution
  • βœ… Job status tracking

New Endpoint

POST /v1/wiki/connectors/generate

Request:

{
  "connector_id": "<uuid>",
  "path": "/path/to/generate",
  "config": {}
}

Response:

{
  "job_id": "wiki-<uuid>",
  "status": "pending",
  "message": "Wiki generation started"
}

Complete API Flow

1. POST /v1/wiki/connectors/test
   β†’ Returns connector_id

2. POST /v1/wiki/connectors/browse
   β†’ Browse directories with connector_id

3. POST /v1/wiki/connectors/generate
   β†’ Start generation, returns job_id

4. GET /v1/wiki/jobs/{job_id}
   β†’ Check generation status

Implementation

  • Uses existing WikiJob system
  • Calls connector.clone_to_temp()
  • Background task with tokio::spawn
  • Integrates with LLM adapter

Progress

  • βœ… Phase 1: List, Test, Browse (3/7 endpoints)
  • βœ… Phase 2: Session management
  • βœ… Phase 3: Wiki generation (4/7 endpoints)
  • ⏳ Phase 4: Save/list configs (2/7 endpoints)

Closes #33 follow-up

Changes:
- Add POST /v1/wiki/connectors/generate endpoint
- Clone connector storage to temp directory
- Start async wiki generation job
- Return job_id for status tracking

Features:
- Use connector_id from session
- Call connector.clone_to_temp()
- Integrate with existing WikiJob system
- Background task execution

API Flow:
1. Test connection -> get connector_id
2. Browse directory -> select path
3. Generate wiki -> get job_id
4. Check status with existing /v1/wiki/jobs/{id}

Next: Save/list connector configs (Phase 4)
@TelivANT TelivANT merged commit c27856b into main Feb 21, 2026
3 checks passed
@TelivANT TelivANT deleted the feat/wiki-connector-phase3 branch February 21, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant