7e0b46c227
* feat(slack): add cookie-mode integration that triages messages via utility agent Adds an install-wide Slack integration that polls the connected user's own messages for `!kandev <instruction>`, hands the thread context to a configured utility agent with the Kandev MCP server attached, and creates the resulting task. Auth uses the user's xoxc- token + d cookie so it works on locked-down Enterprise Slack tenants where bot installs aren't possible. Shared infra: - ACP host-utility executor accepts McpServers on session/new - New MCP tool list_repositories_kandev so the triage agent can pick the right repo - Template engine exposes Slack-specific variables for prompt injection - secretadapter + healthpoll reused from jira/linear Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix(slack): address PR review feedback round 9 - Drop dead `var _ = time.Second` no-op and its misleading comment in trigger_test.go. - `RecordAuthHealth` now invalidates the cached client when the probe fails, so the poller self-recovers from credential rotation without requiring a re-save. - Stable secondary sort key (`workspace_id DESC`) on the legacy → singleton migration so promoted-row selection is deterministic on `updated_at` ties. - Extract `categorySlack` constant in `engine.go` and update the `VariableInfo.Category` doc-comment to list the full set of values. - Realign `slack-integration/spec.md` with what shipped: cookie-mode + `!kandev` triage as v1, with bot install / User OAuth / reaction & slash & shortcut triggers moved under Future scope. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Kandev Agent <agent@kandev.dev> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
60 lines
1.9 KiB
TypeScript
60 lines
1.9 KiB
TypeScript
import Link from "next/link";
|
|
import { IconBrandGithub, IconBrandSlack, IconHexagon, IconTicket } from "@tabler/icons-react";
|
|
import { Card, CardContent } from "@kandev/ui/card";
|
|
|
|
const INTEGRATIONS = [
|
|
{
|
|
href: "/settings/integrations/github",
|
|
label: "GitHub",
|
|
description: "PR review queues, issue watchers, and OAuth credentials.",
|
|
Icon: IconBrandGithub,
|
|
},
|
|
{
|
|
href: "/settings/integrations/jira",
|
|
label: "Jira",
|
|
description: "Atlassian Cloud credentials and JQL issue watchers.",
|
|
Icon: IconTicket,
|
|
},
|
|
{
|
|
href: "/settings/integrations/linear",
|
|
label: "Linear",
|
|
description: "Personal API key and team defaults.",
|
|
Icon: IconHexagon,
|
|
},
|
|
{
|
|
href: "/settings/integrations/slack",
|
|
label: "Slack",
|
|
description: "Browser-session credentials and !kandev triage agent.",
|
|
Icon: IconBrandSlack,
|
|
},
|
|
];
|
|
|
|
export default function IntegrationsIndexPage() {
|
|
return (
|
|
<div className="space-y-6">
|
|
<div>
|
|
<h2 className="text-2xl font-bold">Integrations</h2>
|
|
<p className="text-sm text-muted-foreground mt-1">
|
|
Connect Kandev to third-party services. Credentials are install-wide; per-workspace
|
|
watchers and presets live inside each integration page.
|
|
</p>
|
|
</div>
|
|
<div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
|
|
{INTEGRATIONS.map(({ href, label, description, Icon }) => (
|
|
<Link key={href} href={href} className="cursor-pointer">
|
|
<Card className="transition-colors hover:border-primary/40">
|
|
<CardContent className="space-y-2 pt-6">
|
|
<div className="flex items-center gap-2 text-base font-semibold">
|
|
<Icon className="h-5 w-5" />
|
|
{label}
|
|
</div>
|
|
<p className="text-sm text-muted-foreground">{description}</p>
|
|
</CardContent>
|
|
</Card>
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|