Commit a3ba293
feat: add Compass GraphQL API integration (Phase 4) (#146)
* feat: add Compass GraphQL API integration (Phase 4)
Add optional API mode alongside existing YAML file mode, allowing the
generator to pull components directly from a Compass cloud instance via
GraphQL. Includes cursor-based pagination, Basic auth with env var
resolution for secrets, and full mapping of API responses to the
existing CompassConfig type so downstream code works unchanged.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: enforce HTTPS for baseUrl and fix custom field value mapping
Address review comments: add HTTPS validation on baseUrl to prevent
credential leakage to non-HTTPS endpoints, and use nullish coalescing
(??) instead of logical OR (||) for custom field values to preserve
empty strings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: align GraphQL schema with Compass API documentation
Corrected field names and response shapes based on Atlassian Compass
GraphQL API docs: typeId (not type), labels as objects, fields as array
with CompassEnumField fragments, and nodeId (not endNodeAri).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: update PLAN.md with GraphQL schema correction details
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: redact apiToken and email from debug output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 97037be commit a3ba293
File tree
8 files changed
+796
-45
lines changed- src
- test
8 files changed
+796
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
348 | 359 | | |
349 | 360 | | |
350 | 361 | | |
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
| 365 | + | |
354 | 366 | | |
355 | 367 | | |
356 | 368 | | |
| |||
400 | 412 | | |
401 | 413 | | |
402 | 414 | | |
403 | | - | |
| 415 | + | |
404 | 416 | | |
405 | 417 | | |
406 | 418 | | |
| |||
417 | 429 | | |
418 | 430 | | |
419 | 431 | | |
420 | | - | |
| 432 | + | |
421 | 433 | | |
422 | 434 | | |
423 | 435 | | |
424 | 436 | | |
425 | 437 | | |
426 | | - | |
| 438 | + | |
427 | 439 | | |
428 | 440 | | |
429 | 441 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments