Repository navigation
feat(tracker): trackerSourceFromManifest — a tracker CLI from wirecat.config, over GraphQL - #3099
Merged
Merged
Conversation
…th a graphql spec in wirecat.config
A tracker CLI can be described as data, as a CRM CLI is:
- TrackerManifest names for each kind the list, changes ({since} in
the variables) and ids operations of the generated API, and maps our
fields to row paths in the CRM manifest's rule language.
- Over GraphQL a call sends its own selection (state { id },
labels { nodes { id } }); parseTrackerManifest refuses a map path the
selection leaves out, so a field never goes missing from a request
and reads as cleared.
- A selected object answered null (project: null) clears the stored
link instead of keeping it.
- wirecat.config takes category tracker, which needs its source, and
spec.kind graphql.
- Tested: a Linear-shaped manifest over cli-base's graphqlFake passes
trackerSourceContract.
Needs cli-base 0.115.0 in cli-core, which the graphql executor PR (L2)
brings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er delete what a gap left unread From the review of trackerSourceFromManifest: - A selected object the tracker answered null clears the field for every rule kind (first, path, map, join), converted by its type, so a list field becomes [] rather than null. - An id pass after a gap for its kind is held even under --rescan: a refused optional kind lists no ids, and a rescan would have marked every stored row deleted. - self.path is checked against the selection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nal kind in errors[] as a gap The tracker manifest test now sends every call through serviceApiCall (#3097) in place of its own GraphQL sender. TrackerCallInput goes: ApiCommandInput carries the selection now. An optional kind that the tracker refuses with errors[] FORBIDDEN is a gap for its changes and its ids, and the other kinds still read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mission key permission-keys.test.ts scans for literal `key: "…"` and took the tracker's text conversion for a write key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task
L4 of the Linear pilot: a tracker CLI assembles from
wirecat.config.ts, as a CRM does. This addstrackerSourceFromManifestover the tracker category (#3095) and the GraphQL executor (#3097).What
src/tracker/manifest/:TrackerManifest,parseTrackerManifest,mapTrackerRecord,trackerSourceFromManifest.list, achangescall with"{since}"(the cursor lessoverlapMs), and anidscall; amapin the CRM rule language.selection; the parser refuses a map path the selection leaves out, so a field missing from the request is never read as "cleared".nullclears the field, converted by its type ([]for a list).optionalkind refused (errors[]FORBIDDEN through the executor) is a gap; the other kinds still sync.syncTracker: an id pass after a gap for its kind is held even under--rescan.wirecat.config:category: "tracker"with itssource,spec.kind: "graphql".numberconversion;crmRuleSchemaexported.Testing
trackerSourceContractover a Linear-shapedgraphqlFake(pages by two, filters onupdatedAt.gte, archived only on ask), every call throughserviceApiCall.docs:check,src/tracker src/manifest src/crm/manifest src/cli/service-api(130 tests).🤖 Generated with Claude Code