Skip to content

Commit 468d7ad

Browse files
author
ben
authored
feat(workbot): Your agent reads sources, not categories, in a new voice (#6629)
* feat(types): sources and the admin's source policy for Your agent What agents read becomes sources, not categories: calendar, email and team chat (whichever of Google, Microsoft or Slack the member has connected), and every other connection as a source of its own. Admins set each to on for everyone, members choose, or not allowed (defaults: calendar, email and chat on for everyone; other connections up to members). Members see each source with its policy, whether it is on, their instruction and last read, and change it by id or name. Check records name the sources they were about. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * feat(automations): sources, not categories, and a new voice for Your agent Items are source + id (a Slack message, a Gmail thread, a calendar event, an issue), still delivered once each through the ledger; the four responsibilities become presets plus anything else worth catching, and a member's mutes still apply to them. The wake prompt lists each source it may read with the member's instruction and last read time, and what is on but can't be read. The instructions are rewritten: one finding per message (the morning brief up to three points), open with why it matters now, connect the sources before writing, say what wasn't checked, end with one concrete next step, link the source with a short label, follow up when something changes, and never sort things under labels like Today or FYI or offer to draft replies. Silence, caps and quiet hours are unchanged. Links may point at the services behind the sources it read, never elsewhere. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * feat(den-db): record which sources a check was about (0167) agent_member_check gets a nullable sources JSON column: what a message drew on, or what couldn't be read and the connection to fix. Generated with db:generate as the next free number. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * feat(connect): let Your agent's token read only its member's sources A member's background agent runs with a read-scoped token. Den now adds its sources to that token as scopes only Den mints: the core sources that are on and the connections behind them. With them, Connect lets the token call a connection's own tools for the first time, but only on those connections and only tools that read: a reviewed list for Slack, Linear, Notion, GitHub and Granola, otherwise a tool its provider marks read-only whose name reads, and never one whose name writes. Native Google and Microsoft reads are limited to the calendar, mail and Teams chats of sources that are on. Search shows the agent only what it may call. Plain read tokens and writing tokens keep their rules. A resumed turn's token comes from its grant without these scopes, so it falls back to a plain read token (no connection tools). Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * feat(den-api): Your agent reads calendar, email, team chat and chosen connections The wake resolves the member's sources (the admin's policy, their own choices with My agent on, and whether their account on each connection is ready), gives the turn a token that may read only those, lists them in the prompt with the member's instruction and last read, and drops items from anywhere else. The calendar event source is skipped when the calendar is off. A source that is on but can't be read gets one DM with the action that fixes it ("Reconnect Google Workspace"), is paused, and is told again only after it worked; with nothing readable no turn runs. Check records name the sources. Manage › Workbot's settings take a policy per source and return the organization's connections behind each. /v1/me/agent lists the member's sources and takes on/off and an instruction by id or name, with undo; the server refuses anything the admin didn't allow or turning off a source that is on for everyone, and the chat reply adds one "Connect <name>" line per source it can't read yet. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * feat(den-web): What agents read, and a switch per source in My bot Manage › Workbot gets "What agents read": Calendar, Email and Team chat with the connections behind them, then "Other connections (n)" behind a disclosure, each On for everyone, Members choose or Not allowed, and "Read only. Agents never send, edit or delete through these." My bot's Uses becomes one switch per source: when it was last read, a Connect or Reconnect action when the member's account isn't ready, the admin's decision locked with the reason, and the member's instruction in their own words with where it was saved and Edit. A failed check links to the connection to reconnect. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * test(evals): prove what agents read and a member's sources A proof world with Google Workspace (not yet connected by the member) and three shared connections. The spec drives the admin's "What agents read" (not allowing one connection), the member's Uses switches, a chat change ("Granola on, for …; Linear off") that the page shows, and the admin's refusal holding for chat. The chat helper moves out of the My agent world so both use it. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * test(evals): replay recorded timelines against Your agent Five timelines (calendar, Gmail and Slack as Connect returns them, with fictional people): a customer's Slack ask for pricing before their call, a quiet afternoon, a proposed time that collides with the calendar, an ask already answered, and a meeting it flagged that was then cancelled. Each runs with the agent's real instructions, wake prompt and reply parser, and is scored on whether it messages, the sources it names, what it connects, and how it writes. The harness's tests use a scripted model; pnpm --dir evals agent:replay runs a real one. Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> * docs(workbot): sources, how Your agent writes, and its read allowlist Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com> --------- Signed-off-by: Benjamin Shafii <benjamin.shafii@gmail.com>
1 parent 59eed87 commit 468d7ad

51 files changed

Lines changed: 24714 additions & 336 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/features/workbot-agent-library/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Undo next to every change. Nothing new runs: the existing wake writes the record
1717
| Where | What |
1818
| --- | --- |
1919
| Den › My Library | A pinned **My agent** row above the filters: "Last check at 11:20 AM. Stayed quiet.", "1 of 3 today", the on/off switch and a chevron. Locked with the reason when the admin turned agents off. |
20-
| Library › My agent | The last check and why (the focal line), the next check, "1 of 3 sent today"; today's checks with a Sent / Quiet / Waited / Failed pill and **Open in Slack**, "Earlier this week" collapsed; **What it tells you about** (switches with "Saved from chat at … Undo", locked when the admin turned one off); **In your words** (Always tell me about, Never tell me about, When, How); **Uses** (Gmail and Google Calendar through the Library's Google Workspace entry, and Slack); **Limits** (their hours inside the admin's, an only-urgent window, the daily limit locked: "Set by your admin in Manage › Workbot"). |
20+
| Library › My agent | The last check and why (the focal line), the next check, "1 of 3 sent today"; today's checks with a Sent / Quiet / Waited / Failed pill and **Open in Slack**, "Earlier this week" collapsed; **What it tells you about** (switches with "Saved from chat at … Undo", locked when the admin turned one off); **In your words** (Always tell me about, Never tell me about, When, How); **Uses** (a switch per source, with its last read, a Connect action, the admin's lock and the member's instruction; see [Your agent](../workbot-proactive/README.md#member-controls)); **Limits** (their hours inside the admin's, an only-urgent window, the daily limit locked: "Set by your admin in Manage › Workbot"). |
2121
| Chat | "between 12 and 2 only urgent stuff, stop telling me about calendar changes" → Workbot calls `putMeAgent` once and replies with `saved.reply`: exactly what was saved, `Reply "undo" to revert.` and the link. Text only, no Slack buttons. "Why so quiet?" is answered from `lastCheck` / `getMeAgentChecks`. |
2222

2323
## How it works

‎docs/features/workbot-proactive/README.md‎

Lines changed: 118 additions & 34 deletions
Large diffs are not rendered by default.
55.2 KB
Loading
37.7 KB
Loading

‎ee/apps/den-api/src/agent-links.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,13 @@ export function connectionRemovalLink(connectionId: string) {
3737
export function myAgentLink() {
3838
return new URL("/dashboard/my-bot", env.betterAuthUrl).toString()
3939
}
40+
41+
/** A connection in the member's Library, where they connect or reconnect their own account. */
42+
export function libraryConnectorLink(connectionId: string) {
43+
return new URL(`/dashboard/library/connectors/${encodeURIComponent(connectionId)}`, env.betterAuthUrl).toString()
44+
}
45+
46+
/** The Library's connector catalog, where a member adds a connection their organization doesn't have yet. */
47+
export function libraryCatalogLink() {
48+
return new URL("/dashboard/library/connectors/new", env.betterAuthUrl).toString()
49+
}

‎ee/apps/den-api/src/headless-runner/resume-grants.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export async function mintHeadlessTurnCredentials(input: {
138138
organizationId: string
139139
ttlMs?: number
140140
readOnly?: boolean
141+
/** Extra scopes for a read-only token (a background agent's sources); never on a writing one. */
142+
scopes?: readonly string[]
141143
sessionId?: string
142144
messageId?: string
143145
/** Exact selected alias; never an upstream credential or client-supplied route. */
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
import { AGENT_CORE_SOURCES, type AgentCoreSource } from "@openwork/types/den/workbot-proactive"
2+
3+
/**
4+
* What a member's background agent ("Your agent") may read through Connect. Its turn runs with a read-scoped token
5+
* (`mcp:read`) that also carries this allowlist as scopes Den alone mints: the core sources that are on
6+
* (`calendar`, `email`, `chat`) and the connections behind every source it may read.
7+
*
8+
* - A plain `mcp:read` token never calls a connection's own tools: provider hints can't prove a tool won't change
9+
* anything. An agent token may, but only on its connections and only tools that read: a reviewed list for the
10+
* services we know, otherwise a tool its provider marks read-only whose name reads and never writes.
11+
* - Native Google Workspace and Microsoft 365 reads are limited to the core sources that are on: calendar events,
12+
* mail, and Teams chats. Nothing else (files, drafts, sites) and never a non-GET.
13+
*
14+
* These scopes are never requested through OAuth or shown to clients; Den adds them when it mints the turn's token.
15+
*/
16+
17+
export const AGENT_READ_SCOPE = "openwork:agent-read"
18+
const SOURCE_SCOPE_PREFIX = "openwork:agent-source:"
19+
const CONNECTION_SCOPE_PREFIX = "openwork:agent-connection:"
20+
21+
export type AgentReadAllowlist = {
22+
/** Core sources that are on. */
23+
kinds: ReadonlySet<AgentCoreSource>
24+
/** Connections the agent may read through, native and external. */
25+
connectionIds: ReadonlySet<string>
26+
}
27+
28+
function isCoreSource(value: string): value is AgentCoreSource {
29+
return AGENT_CORE_SOURCES.some((source) => source === value)
30+
}
31+
32+
/** The extra token scopes for an agent turn that may read these sources through these connections. */
33+
export function agentReadScopes(input: { kinds: readonly AgentCoreSource[]; connectionIds: readonly string[] }): string[] {
34+
return [
35+
AGENT_READ_SCOPE,
36+
...[...new Set(input.kinds)].map((kind) => `${SOURCE_SCOPE_PREFIX}${kind}`),
37+
...[...new Set(input.connectionIds)].map((id) => `${CONNECTION_SCOPE_PREFIX}${id}`),
38+
]
39+
}
40+
41+
/** The allowlist an agent token carries, or null for every other token (whose rules are unchanged). */
42+
export function agentReadAllowlist(scopes: ReadonlySet<string>): AgentReadAllowlist | null {
43+
if (!scopes.has(AGENT_READ_SCOPE)) return null
44+
const kinds = new Set<AgentCoreSource>()
45+
const connectionIds = new Set<string>()
46+
for (const scope of scopes) {
47+
if (scope.startsWith(SOURCE_SCOPE_PREFIX)) {
48+
const kind = scope.slice(SOURCE_SCOPE_PREFIX.length)
49+
if (isCoreSource(kind)) kinds.add(kind)
50+
} else if (scope.startsWith(CONNECTION_SCOPE_PREFIX)) {
51+
const id = scope.slice(CONNECTION_SCOPE_PREFIX.length)
52+
if (id) connectionIds.add(id)
53+
}
54+
}
55+
return { kinds, connectionIds }
56+
}
57+
58+
/** Which core source a native capability reads, from its route; null for anything else (files, drafts, sites…). */
59+
export function nativeSourceKind(path: string): AgentCoreSource | null {
60+
const resource = path.replace(/^\/v1\/capabilities\/[^/]+\//, "").split("/")[0] ?? ""
61+
if (resource === "calendar-event" || resource === "calendar-events") return "calendar"
62+
if (resource.startsWith("gmail-message") || resource.startsWith("gmail-attachment") || resource.startsWith("mail-message") || resource.startsWith("mail-attachment")) return "email"
63+
if (resource === "teams-chats") return "chat"
64+
return null
65+
}
66+
67+
/** A native capability the agent may call: a GET on one of its connections, for a core source that is on. */
68+
export function agentMayUseNative(allowlist: AgentReadAllowlist, connectionId: string, operation: { method: string; path: string }): boolean {
69+
if (operation.method.toUpperCase() !== "GET" || !allowlist.connectionIds.has(connectionId)) return false
70+
const kind = nativeSourceKind(operation.path)
71+
return kind !== null && allowlist.kinds.has(kind)
72+
}
73+
74+
/**
75+
* Tools reviewed as reads, by the service's MCP host. Only names here or tools that pass `looksLikeRead` are callable,
76+
* and never one whose name says it writes.
77+
*/
78+
const REVIEWED_READ_TOOLS: Record<string, ReadonlySet<string>> = {
79+
"mcp.slack.com": new Set([
80+
"slack_search_public", "slack_search_public_and_private", "slack_read_channel", "slack_read_thread", "slack_read_canvas",
81+
"slack_read_file", "slack_read_user_profile", "slack_search_users", "slack_search_channels", "slack_get_reactions",
82+
"slack_list_channel_members",
83+
]),
84+
"mcp.linear.app": new Set([
85+
"list_issues", "get_issue", "list_my_issues", "list_comments", "list_projects", "get_project", "list_teams", "get_team",
86+
"list_users", "get_user", "list_cycles", "list_documents", "get_document", "list_issue_statuses", "list_issue_labels",
87+
"search_documentation",
88+
]),
89+
"mcp.notion.com": new Set(["notion-search", "notion-fetch", "notion-get-comments", "notion-get-users", "notion-get-user", "notion-get-self", "notion-get-teams"]),
90+
"api.githubcopilot.com": new Set([
91+
"get_me", "get_issue", "list_issues", "search_issues", "issue_read", "get_issue_comments", "get_pull_request", "list_pull_requests",
92+
"search_pull_requests", "pull_request_read", "get_pull_request_comments", "list_notifications", "get_notification_details",
93+
"get_file_contents", "search_code", "list_commits", "get_commit",
94+
]),
95+
"mcp.granola.ai": new Set(["list_meetings", "get_meetings", "get_meeting", "get_meeting_transcript", "query_granola_meetings", "search_meetings"]),
96+
}
97+
98+
const WRITE_WORDS = /(?:^|[_\-.\s]|[a-z](?=[A-Z]))(send|post|create|update|upsert|delete|remove|write|edit|modify|move|archive|add|set|schedule|reply|draft|upload|invite|share|assign|close|merge|comment|react|publish|trash|cancel|accept|decline|approve|mark|submit|execute|run|trigger)(?=$|[_\-.\s]|[A-Z])/i
99+
const READ_WORDS = /(?:^|[_\-.\s]|[a-z](?=[A-Z]))(get|list|search|read|fetch|find|query|lookup|view|describe|retrieve|show)(?=$|[_\-.\s]|[A-Z])/i
100+
101+
/** A tool its provider marks read-only (and not destructive) whose name reads and never writes. */
102+
function looksLikeRead(tool: { name: string; annotations?: { readOnlyHint?: boolean; destructiveHint?: boolean } }): boolean {
103+
return tool.annotations?.readOnlyHint === true && tool.annotations.destructiveHint !== true && READ_WORDS.test(tool.name) && !WRITE_WORDS.test(tool.name)
104+
}
105+
106+
function hostOf(url: string): string | null {
107+
try {
108+
return new URL(url).hostname.toLowerCase()
109+
} catch {
110+
return null
111+
}
112+
}
113+
114+
/** Whether a connection's tool only reads, by the rules above. */
115+
export function agentReadTool(connectionUrl: string, tool: { name: string; annotations?: { readOnlyHint?: boolean; destructiveHint?: boolean } }): boolean {
116+
if (WRITE_WORDS.test(tool.name)) return false
117+
const host = hostOf(connectionUrl)
118+
if (host && REVIEWED_READ_TOOLS[host]?.has(tool.name)) return true
119+
return looksLikeRead(tool)
120+
}
121+
122+
/** An external tool the agent may call: one of its connections, and a tool that only reads. */
123+
export function agentMayUseExternalTool(
124+
allowlist: AgentReadAllowlist,
125+
connection: { id: string; url: string },
126+
tool: { name: string; annotations?: { readOnlyHint?: boolean; destructiveHint?: boolean } },
127+
): boolean {
128+
return allowlist.connectionIds.has(connection.id) && agentReadTool(connection.url, tool)
129+
}
130+
131+
export const AGENT_SOURCE_BLOCKED_MESSAGE = "Your agent may only read the sources its member turned on, and only tools that read."

‎ee/apps/den-api/src/mcp/capability-registry.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ const nativeSource: CapabilitySource = {
567567
catalog: ctx.catalog,
568568
limit,
569569
namespaceContext: await ctx.resolveNamespaceContext(),
570+
scopes: ctx.principal.scopes,
570571
})
571572
},
572573
enumerate: async (ctx) => leavesFromBuilt(await buildNativeProviderToolTree({
@@ -608,6 +609,7 @@ const externalMcpSource: CapabilitySource = {
608609
limit,
609610
namespaceContext: await ctx.resolveNamespaceContext(),
610611
reportCoverage: (coverage) => ctx.reportExternalCoverage(externalMcpSearchCoverageHint(coverage)),
612+
scopes: ctx.principal.scopes,
611613
})
612614
},
613615
enumerate: async (ctx) => {

‎ee/apps/den-api/src/mcp/external-capabilities.ts‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {
4545
import { compareCapabilityMatches, scoreText, tokenize } from "./search.js"
4646
import { EXTERNAL_MCP_SEARCH_CONNECTION_LIMIT, scoreExternalTool, selectExternalMcpSearchConnections } from "./external-search-selection.js"
4747
import type { CapabilityMatch, CapabilityToolAnnotations } from "./search.js"
48+
import { AGENT_SOURCE_BLOCKED_MESSAGE, agentMayUseExternalTool, agentReadAllowlist, type AgentReadAllowlist } from "./agent-read-sources.js"
4849
import { DEN_MCP_WRITE_SCOPE } from "./scopes.js"
4950
import {
5051
codemodeScriptPath,
@@ -760,6 +761,8 @@ async function probeExternalMcpConnection(input: {
760761
limit: number
761762
deadline: ExternalMcpLifecycleDeadline
762763
scriptNamespace?: string
764+
/** A member's background agent: only the tools it may call. */
765+
agent?: AgentReadAllowlist | null
763766
}): Promise<ExternalCapabilityMatch[]> {
764767
const matches: ExternalCapabilityMatch[] = []
765768
const add = (match: ExternalCapabilityMatch) => {
@@ -874,6 +877,7 @@ async function probeExternalMcpConnection(input: {
874877

875878
for (const tool of tools) {
876879
if (isToolDisabled(connection.toolPolicy, tool.name)) continue
880+
if (input.agent && !agentMayUseExternalTool(input.agent, connection, tool)) continue
877881
const summary = tool.description ?? tool.title ?? tool.name
878882
const score = scoreExternalTool(connection.name, tool, input.queryTokens)
879883
if (score <= 0) continue
@@ -913,8 +917,11 @@ export async function searchExternalCapabilities(input: {
913917
limit?: number
914918
namespaceContext?: CodemodeConnectionNamespaceContext
915919
reportCoverage?: (coverage: ExternalMcpSearchCoverage) => void
920+
/** A member's background agent's token: only its connections, and only tools that read. */
921+
scopes?: ReadonlySet<string>
916922
}): Promise<ExternalCapabilityMatch[]> {
917923
if (!input.member) return []
924+
const agent = input.scopes ? agentReadAllowlist(input.scopes) : null
918925
const queryTokens = tokenize(input.query)
919926
if (queryTokens.length === 0) return []
920927
const requestedLimit = input.limit ?? 5
@@ -925,11 +932,12 @@ export async function searchExternalCapabilities(input: {
925932
organizationId: input.organizationId,
926933
member: input.member,
927934
})
928-
const connections = namespaceContext?.externalMcpConnections ?? await listUsableExternalMcpConnections({
935+
const usable = namespaceContext?.externalMcpConnections ?? await listUsableExternalMcpConnections({
929936
organizationId: normalizeDenTypeId("organization", input.organizationId),
930937
orgMembershipId: input.member.orgMembershipId,
931938
teamIds: input.member.teamIds,
932939
})
940+
const connections = agent ? usable.filter((connection) => agent.connectionIds.has(connection.id)) : usable
933941
const scriptNamespaces = namespaceContext?.namespaces.externalMcp
934942
const member = input.member
935943
const selectedConnections = selectExternalMcpSearchConnections(connections, queryTokens, EXTERNAL_MCP_SEARCH_CONNECTION_LIMIT,
@@ -951,6 +959,7 @@ export async function searchExternalCapabilities(input: {
951959
limit,
952960
deadline: sharedDeadline,
953961
scriptNamespace: scriptNamespaces?.get(connection.id),
962+
agent,
954963
}),
955964
})
956965
}
@@ -1439,9 +1448,15 @@ export async function executeExternalCapability(input: {
14391448
}
14401449
}
14411450

1442-
// Provider-controlled hints cannot prove a tool will not mutate through its credential.
1451+
// Provider-controlled hints cannot prove a tool will not mutate through its credential. The one exception is a
1452+
// member's background agent, whose token carries its sources: their reviewed read tools only (agent-read-sources.ts).
14431453
const requiredScope = DEN_MCP_WRITE_SCOPE
1444-
if (!input.scopes.has(requiredScope)) {
1454+
const agent = agentReadAllowlist(input.scopes)
1455+
if (agent && !input.scopes.has(requiredScope)) {
1456+
if (!agentMayUseExternalTool(agent, connection, tool)) {
1457+
return { ok: false, error: "insufficient_mcp_scope", requiredScope, message: `${input.toolName}: ${AGENT_SOURCE_BLOCKED_MESSAGE}` }
1458+
}
1459+
} else if (!input.scopes.has(requiredScope)) {
14451460
return {
14461461
ok: false,
14471462
error: "insufficient_mcp_scope",

‎ee/apps/den-api/src/mcp/headless-run-token-mint.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DEN_MCP_HEADLESS_RUN_CLIENT_ID, DEN_MCP_HEADLESS_RUN_TOKEN_MAX_TTL_MS }
1212
* code that has already authorized the member for this run may call it; the
1313
* token is handed to the headless runner for that run and never stored.
1414
*/
15-
export async function mintHeadlessRunMcpToken(input: { userId: string; organizationId: string; ttlMs?: number; readOnly?: boolean }) {
15+
export async function mintHeadlessRunMcpToken(input: { userId: string; organizationId: string; ttlMs?: number; readOnly?: boolean; scopes?: readonly string[] }) {
1616
const ttlMs = Math.min(input.ttlMs ?? DEN_MCP_HEADLESS_RUN_TOKEN_MAX_TTL_MS, DEN_MCP_HEADLESS_RUN_TOKEN_MAX_TTL_MS)
1717
const secret = crypto.randomBytes(32).toString("base64url")
1818
const now = new Date()
@@ -31,7 +31,8 @@ export async function mintHeadlessRunMcpToken(input: { userId: string; organizat
3131
referenceId: normalizeDenTypeId("organization", input.organizationId),
3232
createdAt: now,
3333
expiresAt,
34-
scopes: JSON.stringify(input.readOnly ? ["mcp:read"] : ["mcp:read", "mcp:write"]),
34+
// Extra scopes (a background agent's sources, agent-read-sources.ts) only ever narrow a read-only token.
35+
scopes: JSON.stringify(input.readOnly ? ["mcp:read", ...(input.scopes ?? [])] : ["mcp:read", "mcp:write"]),
3536
})
3637
return { token: `${DEN_MCP_OPAQUE_ACCESS_TOKEN_PREFIX}${secret}`, tokenId: id, expiresAt }
3738
}

0 commit comments

Comments
 (0)