feat(jira): add Jira Cloud context-source adapter#320
Open
mattsenicksigma wants to merge 7 commits into
Open
Conversation
Replace the per-run issue cap with a `since` field (YYYY-MM-DD) that adds `updated >= "YYYY-MM-DD"` to the JQL query. Fetches all matching issues with no artificial limit; the date is the control knob for scope instead of a volume ceiling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@mattsenicksigma is attempting to deploy a commit to the Kaelio Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
A more human comment Pretty much the same flow as #319 -> just reading in some text and adding to the wiki generation. novelty here is parsing out the text from the issues. An intermediary conversion to markdown is levereaged as it seemed like a reasonable way to standardize things. Obviously this an #319 are more straightforward, #316 is the more novel/interesting of the three adapter pr's |
…schema Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tamps On subsequent runs, scan existing staged issues for the max `updated` field and use it as the JQL `updated >= ...` floor. No cursor store needed — the staged files are the state. First run (no existing issues) still does a full eviction and uses the configured `since` date. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… and integrations docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
JQL date literals only accept `yyyy-MM-dd` or `yyyy-MM-dd HH:mm`, but the incremental sync floor derived from a staged issue's `updated` field is a full ISO-8601 timestamp, so every run after the first sent Jira an invalid query. Also fixes a stale `capped` field in the skill's manifest example and registers `jira` in the local-adapters ordering test. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
tryPull ran a plain `git pull`, which merges divergent histories rather than failing, so a locally-modified cache silently produced a new merge commit instead of falling back to a fresh clone as intended. Use --ff-only so divergence is rejected and the existing fresh-clone fallback fires. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts: # docs-site/content/docs/cli-reference/ktx-ingest.mdx # docs-site/content/docs/configuration/ktx-yaml.mdx # docs-site/content/docs/guides/building-context.mdx # docs-site/content/docs/integrations/context-sources.mdx # packages/cli/src/context/ingest/local-adapters.ts # packages/cli/src/context/project/driver-schemas.ts # packages/cli/src/public-ingest.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #174.
Adds a Jira Cloud context-source adapter that ingests issues filtered by project key and label allowlist, converts them to staged JSON, and runs the
jira_ingestmemory-agent skill to produce durable wiki knowledge.packages/cli/src/context/ingest/adapters/jira/withfetch,chunk,detect,client, ADF-to-Markdown converter, andJiraSourceAdapterclassdriver: jiraconnection schema added todriver-schemas.tsand registered inlocal-adapters.tsandpublic-ingest.tsjira_ingestskill atpackages/cli/src/skills/jira_ingest/SKILL.mdfor the memory agentsincedate filter — optionalYYYY-MM-DDfield that narrows JQL to issues updated on or after that date; no per-run capGET /rest/api/3/search/jqlwithnextPageToken(old/rest/api/3/searchendpoint removed by Atlassian)jira-<projectkey>)ktx.yaml example
Test plan
pnpm --filter @kaelio/ktx run test— all Jira adapter tests passpnpm --filter @kaelio/ktx run type-check— cleanpnpm run dead-code— cleanktx ingest <connection-id>with a real Jira token fetches issues, stages JSON, and the memory agent writes wiki candidates🤖 Generated with Claude Code