Skip to content

feat(kit): new --spec graphql and a tracker category for new --from-config - #190

Merged
leemour merged 3 commits into
mainfrom
feat/tracker-graphql
Nov 17, 2026
Merged

leemour merged 3 commits into
mainfrom
feat/tracker-graphql

Conversation

@leemour

@leemour leemour commented Nov 17, 2026

Copy link
Copy Markdown
Member

Task

The Linear pilot: a tracker CLI assembles from wirecat.config.ts. cli-core 0.697.0 has the tracker category, trackerSourceFromManifest and the GraphQL executor; this wires them into new.

What

  • --spec graphql: kit/seeds/graphql (sync-spec over syncGraphql, spec-model over adaptGraphql, a generate.ts whose auth names the key's header, an api test over graphqlFake). With --spec-url or a config's spec.from, new introspects the endpoint, so the first pnpm spec:sync is no diff.
  • tracker category: new --from-config with category: "tracker" seeds src/commands/tracker.ts (addTrackerCommands over trackerSourceFromManifest) and src/tracker-contracts.test.ts; source:check reads a tracker source; fake-api.ts answers GraphQL.
  • cli-core 0.697.0, cli-base 0.115.0.

Testing

  • Kit tests: graphql seed model, new --spec graphql --spec-url (introspection, provenance hash, scripts pointed at the endpoint), sign-in none cuts, category lists.
  • By hand: new --from-config for a Linear-shaped tracker config (teams, issues, viewer) over a stand-in introspection answer. In the made CLI: generate, typecheck, source:check, lint, deps:check, contracts:check, pnpm test (105 pass, incl. sync through the CLI over the schema fake), docs:check all pass.
  • Not passing in the made CLI: lint:commands — cli-core's tracker commands are not in the shared command vocabulary yet (issues, teams, --archived, --assignee …). That is a cli-core/cli-base follow-up, not this PR.

🤖 Generated with Claude Code

leemour and others added 3 commits November 18, 2026 00:12
…onfig

new --spec graphql makes the api group from a GraphQL schema: with
--spec-url (a config's spec.from) it asks the endpoint for its schema by
introspection, as pnpm spec:sync does later. The graphql seed folder has
sync-spec, spec-model over adaptGraphql, a generate.ts whose auth names
the header the key travels in, and an api test over graphqlFake.

new --from-config with category tracker and a source mounts cli-core's
tracker commands over trackerSourceFromManifest, with a test that checks
the source against the generated API and syncs through the CLI over a
fake of the schema. The source check reads a tracker source too.

cli-base 0.115.0, which has the graphql spec kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its sync test fails on a failed kind

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hQL executor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour force-pushed the feat/tracker-graphql branch from 22db65f to 92cefe8 Compare November 17, 2026 23:13
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-core@​0.696.0 ⏵ 0.697.097100100 +19670

View full report

@leemour
leemour merged commit de59697 into main Nov 17, 2026
16 checks passed
@leemour
leemour deleted the feat/tracker-graphql branch November 17, 2026 23:19
leemour added a commit that referenced this pull request Nov 18, 2026
…ig wiring over both sources

valueAt from @wirecat/cli-core/manifest replaces the seed's own copy. After the rebase over the tracker category
(#190) and the real service name (#186): withConfigRunScope moves to config-wiring.ts and takes both sources,
users list|show only for a CRM source, and the sample-free context and program keep identity.js's SERVICE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
leemour added a commit that referenced this pull request Nov 18, 2026
…ot the sample (#194)

* fix(kit): a CLI from a config with a token check starts on the API, not the sample

From the Attio pilot (source-manifest.md section 10):
- FIND-2753: new --from-config with auth.verify leaves the sample out and rewrites context, program, harness and the
  api, mcp and run-scope tests to the API and its fake; OAuth hosts from the description join hosts.
- FIND-2754: a function in source stops pnpm generate instead of vanishing in JSON.
- FIND-2761 (template half): auth.verify.active must be true, else session start says to sign in again.
- FIND-2763: source.users mounts users list|show.
- FIND-2765: the seed's sync test reads rows from crmManifestFake, which pages to the end; over fakeServiceApi an
  offset list never ended and the test timed out.

Checked by generating a CRM CLI from a config in a scratch folder: lint, typecheck, contracts:check, docs:check and
its 105 tests pass, the sync test in 5 s instead of 183 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(kit): the seed's session check uses cli-core's valueAt; config wiring over both sources

valueAt from @wirecat/cli-core/manifest replaces the seed's own copy. After the rebase over the tracker category
(#190) and the real service name (#186): withConfigRunScope moves to config-wiring.ts and takes both sources,
users list|show only for a CRM source, and the sample-free context and program keep identity.js's SERVICE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant