{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "linear", "type": "registry:item", "title": "Linear", "description": "Editable Linear ingestion with nine independent raw resource streams, overlapping update windows, and complete issue history.", "dependencies": [ "@chkit/core@^0.2.0-beta.12", "@chkit/plugin-ingest@^0.2.0-beta.12", "zod@^4.3.6" ], "files": [ { "path": "README.md", "type": "registry:file", "target": "src/integrations/linear/README.md" }, { "path": "index.ts", "type": "registry:file", "target": "src/integrations/linear/index.ts" }, { "path": "config.ts", "type": "registry:file", "target": "src/integrations/linear/config.ts" }, { "path": "client.ts", "type": "registry:file", "target": "src/integrations/linear/client.ts" }, { "path": "pipeline.ts", "type": "registry:file", "target": "src/integrations/linear/pipeline.ts" }, { "path": "sources/issues.ts", "type": "registry:file", "target": "src/integrations/linear/sources/issues.ts" }, { "path": "sources/common.ts", "type": "registry:file", "target": "src/integrations/linear/sources/common.ts" }, { "path": "sources/comments.ts", "type": "registry:file", "target": "src/integrations/linear/sources/comments.ts" }, { "path": "sources/projects.ts", "type": "registry:file", "target": "src/integrations/linear/sources/projects.ts" }, { "path": "sources/project-updates.ts", "type": "registry:file", "target": "src/integrations/linear/sources/project-updates.ts" }, { "path": "sources/cycles.ts", "type": "registry:file", "target": "src/integrations/linear/sources/cycles.ts" }, { "path": "sources/users.ts", "type": "registry:file", "target": "src/integrations/linear/sources/users.ts" }, { "path": "sources/teams.ts", "type": "registry:file", "target": "src/integrations/linear/sources/teams.ts" }, { "path": "sources/issue-relations.ts", "type": "registry:file", "target": "src/integrations/linear/sources/issue-relations.ts" }, { "path": "sources/issue-history.ts", "type": "registry:file", "target": "src/integrations/linear/sources/issue-history.ts" }, { "path": "tests/basic.test.ts", "type": "registry:file", "target": "src/integrations/linear/tests/basic.test.ts", "role": "test" } ], "meta": { "chkit": { "formatVersion": 1, "version": "0.3.1", "changelog": [ { "version": "0.3.1", "changes": [ "Trim raw-storage notes from the README." ] }, { "version": "0.3.0", "changes": [ "Read configuration and the API key when a stream runs, so `generate`, `migrate`, and `chkit check` never depend on them; invalid settings or a missing key fail that run before any request. Requires zod 4 and chkit 0.2.0-beta.12.", "Send requests through the ingestion runtime, which retries only network failures, timeouts, retryable HTTP statuses, and GraphQL `RATELIMITED` errors (as HTTP 429); malformed payloads and other GraphQL errors fail at once.", "Set `apiKey` in the configuration to use another key, for example for a second workspace; it defaults to `LINEAR_API_KEY`." ] }, { "version": "0.2.1", "changes": [ "Honor exhausted request, endpoint, and complexity reset headers on HTTP 429 responses while preserving Retry-After precedence.", "Clarify that native ClickHouse JSON can omit explicit null properties and empty objects rather than retaining an exact JSON archive." ] }, { "version": "0.2.0", "changes": [ "Sync issues, comments, projects, project updates, cycles, users, and teams through independent overlapping updated-time windows, including archived and disabled resources.", "Add independent full-sync streams for issue relations and issue history; discover and paginate history for all accessible issues without relying on parent stream progress or modification times.", "Store each resource in its own raw table with provider IDs and relationship references; retain complete issue labels as strings and leave joins and metrics to ClickHouse.", "Use shared pagination, validated GraphQL responses, request-level retries and sink-acknowledged completion checkpoints; separate configuration, injectable requests, readers, and pipeline wiring.", "Existing issue IDs remain stable; migrate retained nested comment observations deliberately and populate the eight new destinations through their own initial syncs.", "Consume full pagination pages and use shared continuation-cycle detection while preserving independent resource checkpoints and GraphQL response validation." ] }, { "version": "0.1.0", "changes": [ "Introduce raw GraphQL issue ingestion." ] } ], "documentation": "https://chkit.obsessiondb.com/integrations/linear/", "logo": "https://chkit.obsessiondb.com/logos/linear.svg", "language": "typescript", "license": "MIT", "chkit": "^0.2.0-beta.12", "ingest": "^0.2.0-beta.12", "clickhouse": ">=25.3.0", "root": "src/integrations/linear", "entry": "index.ts", "exports": [ "linearPipeline", "createLinearPipeline", "linear_issuesRaw", "linear_commentsRaw", "linear_projectsRaw", "linear_projectUpdatesRaw", "linear_cyclesRaw", "linear_usersRaw", "linear_teamsRaw", "linear_issueRelationsRaw", "linear_issueHistoryRaw" ], "resources": [ { "name": "issues", "title": "Issues", "table": "linear_issues_raw", "description": "Archived and active issue fields, relationship IDs, and fully paginated label names as strings.", "scopes": [], "strategy": "timestamp", "endpoints": [ { "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" } ] }, { "name": "comments", "title": "Comments", "table": "linear_comments_raw", "description": "Raw comments selected by their own update times, with nullable issue and other parent references.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "projects", "title": "Projects", "table": "linear_projects_raw", "description": "Project metadata and provider relationship references selected by project update times.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "project_updates", "title": "Project updates", "table": "linear_project_updates_raw", "description": "Authored progress and health updates with project and author references.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "cycles", "title": "Cycles", "table": "linear_cycles_raw", "description": "Cycle dates, descriptions, and team references selected by cycle update times.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "users", "title": "Users", "table": "linear_users_raw", "description": "Accessible user metadata, including disabled users, selected by user update times.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "teams", "title": "Teams", "table": "linear_teams_raw", "description": "Accessible team metadata selected by team update times.", "scopes": [], "strategy": "timestamp", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "issue_relations", "title": "Issue relations", "table": "linear_issue_relations_raw", "description": "Complete accessible relation records with type and both directed issue references; no reliable root change filter exists.", "scopes": [], "strategy": "full", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] }, { "name": "issue_history", "title": "Issue history", "table": "linear_issue_history_raw", "description": "Complete accessible history for independently discovered issues; the parent history connection has no timestamp filter.", "scopes": [], "strategy": "full", "endpoints": [{ "method": "POST", "path": "/graphql", "documentation": "https://linear.app/developers/graphql" }] } ], "env": { "LINEAR_API_KEY": "" }, "authentication": { "method": "Personal API key", "env": [ "LINEAR_API_KEY" ], "documentation": "https://linear.app/developers/graphql", "setup": [ "Provide LINEAR_API_KEY with read access to the selected resources.", "Keep the API key in the runtime environment and rotate it according to the provider policy." ] }, "views": [], "sync": { "description": "One workspace pipeline groups nine independent raw streams. Seven resources use bounded updatedAt windows with five-minute overlap; issue relations and history use fullSync. Each stream completes only after destination acknowledgement.", "schedule": "Run bunx chkit ingest run --tag provider:linear from a scheduler.", "deletions": "Deleted records and removed relations remain stored; absence is not a tombstone. Comments have their own update windows. Periodic reconciliation refreshes older observations and label renames beyond the issue overlap; retained legacy nested comments require deliberate migration." } } }, "devDependencies": [ "@types/bun@^1.2.0" ] }