@codeam/shared 2.61.29 → 2.61.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -590,6 +590,54 @@ var INTEGRATION_REGISTRY = {
590
590
  }
591
591
  }
592
592
  },
593
+ github: {
594
+ id: "github",
595
+ name: "GitHub",
596
+ icon: "github",
597
+ category: "version_control",
598
+ // LIVE. GitHub is the product's code substrate (codespaces + the PR
599
+ // Command Center), and it was historically the ONE connection outside this
600
+ // registry: its credential lives in a `ProviderToken` row rather than the
601
+ // integrations vault, so it was rendered by a hand-written special-case row
602
+ // and could not legally appear in a deploy's `integrationIds` (the manifest
603
+ // resolver rejects unknown ids — a recurring bug class).
604
+ //
605
+ // `kind: 'connection'` closes that gap without re-plumbing OAuth: the entry
606
+ // makes GitHub a first-class, categorised catalog row whose credential the
607
+ // backend resolves from the SAME `ProviderToken` it always used, while the
608
+ // connect/disconnect flow stays owned by the codespaces rail (the clients
609
+ // route those two actions there). ⚠️ It is a REAL connection with a REAL
610
+ // disconnect — do NOT treat it like `github_issues`, which merely derives
611
+ // from it and has no actions of its own.
612
+ enabled: true,
613
+ auth: { kind: "connection", connection: "github" },
614
+ // No MCP: a deployed box already has an authenticated `gh` on PATH.
615
+ delivery: {}
616
+ },
617
+ github_issues: {
618
+ id: "github_issues",
619
+ name: "GitHub Issues",
620
+ icon: "github_issues",
621
+ category: "tracker",
622
+ // LIVE, and the ONLY integration with NO link flow of its own: the
623
+ // credential is DERIVED from the GitHub connection the user already made
624
+ // for codespaces/PRs (`ProviderToken` provider='github-codespaces', which
625
+ // carries `repo` scope — enough for the whole Issues surface). So there is
626
+ // no OAuth app, no client id/secret, no Secret Manager entry and nothing
627
+ // to configuration-gate. The backend auto-provisions the catalog row the
628
+ // same way `ensureHouseAgentRow` does for the house agent, and resolves
629
+ // the token live per call rather than vaulting a copy (it can't go stale,
630
+ // and GitHub token refresh stays owned by exactly one place).
631
+ enabled: true,
632
+ auth: { kind: "derived", derivedFrom: "github" },
633
+ // NO MCP server on purpose. Every other tracker needs one to give the agent
634
+ // tools, but a deployed box ALREADY has an authenticated `gh` on PATH (the
635
+ // codespace bootstrap exports GH_TOKEN), so `gh issue list/create/comment`
636
+ // works with zero delivery. That also means nothing to pre-warm and no
637
+ // third-party MCP package to pin and keep alive. The Start-from-Work-Item
638
+ // side is served backend-side by the `TrackerProvider`, not by delivery.
639
+ delivery: {}
640
+ },
593
641
  slack: {
594
642
  id: "slack",
595
643
  name: "Slack",
@@ -826,10 +874,10 @@ function getIntegrationsByCategory(category) {
826
874
 
827
875
  // src/integrations/branding.ts
828
876
  var INTEGRATION_BRANDING = {
829
- // GitHub — a brand-only entry (NOT an `IntegrationId`; v1 reuses the
830
- // codespaces OAuth token rather than exposing GitHub as a linkable toolkit).
831
- // Present so the PR/MR Command Center surfaces (the review-launch toast, etc.)
832
- // render the official GitHub mark from the ONE shared catalog.
877
+ // GitHub — now a REAL `IntegrationId` (`version_control`, `kind: 'connection'`).
878
+ // It started life here as a brand-only entry, back when GitHub was rendered by
879
+ // a hand-written special-case row; the mark is unchanged, it's just also the
880
+ // catalog row's logo now. Still used by the PR/MR Command Center surfaces.
833
881
  github: {
834
882
  id: "github",
835
883
  name: "GitHub",
@@ -838,6 +886,18 @@ var INTEGRATION_BRANDING = {
838
886
  brandColor: "#FFFFFF",
839
887
  logoSvg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path fill="#FFFFFF" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>'
840
888
  },
889
+ // GitHub Issues — the `tracker`-category toolkit integration (a real
890
+ // `IntegrationId`, unlike the `github` entry above). Same official mark, its
891
+ // own name/tagline so the catalog row reads as the issue tracker rather than
892
+ // the code host.
893
+ github_issues: {
894
+ id: "github_issues",
895
+ name: "GitHub Issues",
896
+ vendor: "GitHub",
897
+ tagline: "Issues & project tracking",
898
+ brandColor: "#FFFFFF",
899
+ logoSvg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path fill="#FFFFFF" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>'
900
+ },
841
901
  // npm — a brand-only entry (NOT an `IntegrationId`): the registry the
842
902
  // codeam-cli ships to. Present so surfaces like the Wiki can render the
843
903
  // official npm mark from the ONE shared catalog instead of a loose asset.