Documentation
¶
Overview ¶
Package autodeps provides AI-powered automatic dependency inference for task plans. It analyses all pending/in-progress task titles and descriptions and suggests which tasks naturally depend on which others.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply merges the suggested dependency map into the plan, skipping deps that already exist, pointing to non-existent tasks, or would create cycles. It returns the number of new dependencies actually added.
The plan is mutated in-place; the caller is responsible for saving state.
func Infer ¶
func Infer(ctx context.Context, prov provider.Provider, opts provider.Options, plan *pm.Plan) (map[int][]int, error)
Infer calls the AI provider with the plan and returns the suggested dependency map. The returned map keys are task IDs; values are slices of dependency IDs.
func InferPrompt ¶
InferPrompt builds the AI prompt that asks the model to return a JSON map of {task_id: [dependency_ids]} for the active (pending/in-progress) tasks in the plan. Completed, skipped, failed, and timed-out tasks are included as context but the model is told not to suggest new deps for them.
Types ¶
type Suggestion ¶
Suggestion holds the inferred dependencies for a single task.