mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
1.2 KiB
1.2 KiB
M5: Project + Task Model for Agents
Target
Define #Project with GitHub Repo URL property, add #Agent with auth properties, and link #Task to a project and agent.
Why
Tasks should be attributable to a project and repo so agents can operate in the right codebase.
Scope
- Add
#Projectclass in graph schema. - Add
GitHub Repoproperty (URL) on#Project. - Add
#Agentclass in graph schema. - Add
API tokenproperty on#Agent. - Add
auth.jsonproperty on#Agent(stored as a text block). - Add
projectreference on#Task(link to a#Project). - Add
agentreference on#Task(link to a#Agent). - Extend sessions/create payload to accept project metadata.
- Persist project metadata on session + events.
Acceptance
- A task can reference a project with a repo URL.
- A task can reference an agent with API token and/or auth.json text.
- Sessions created from tasks include project + repo URL + agent auth data in session state.
- Project + repo URL + agent auth data are available in session events for consumers.
Notes
- Store in Logseq graph like
#Task. - URL validation should align with existing property types.
auth.jsonshould be stored as a text block on the#Agent.