Files
linear-coding-agent/linear_config.py

39 lines
1.0 KiB
Python

"""
Linear Configuration
====================
Configuration constants for Linear integration.
These values are used in prompts and for project state management.
"""
import os
# Environment variables (must be set before running)
LINEAR_API_KEY = os.environ.get("LINEAR_API_KEY")
LINEAR_TEAM_ID = os.environ.get("LINEAR_TEAM_ID")
# Default number of issues to create (can be overridden via command line)
DEFAULT_ISSUE_COUNT = 50
# Issue status workflow (Linear default states)
STATUS_TODO = "Todo"
STATUS_IN_PROGRESS = "In Progress"
STATUS_DONE = "Done"
# Label categories (map to feature types)
LABEL_FUNCTIONAL = "functional"
LABEL_STYLE = "style"
LABEL_INFRASTRUCTURE = "infrastructure"
# Priority mapping (Linear uses 0-4 where 1=Urgent, 4=Low, 0=No priority)
PRIORITY_URGENT = 1
PRIORITY_HIGH = 2
PRIORITY_MEDIUM = 3
PRIORITY_LOW = 4
# Local marker file to track Linear project initialization
LINEAR_PROJECT_MARKER = ".linear_project.json"
# Meta issue title for project tracking and session handoff
META_ISSUE_TITLE = "[META] Project Progress Tracker"