Open History to see the last commit
1import {
2 type ClaudeSettings,
3 type ModelCapabilities,
4 type ServerProvider,
5 type ServerProviderSlashCommand,
6 type ServerProviderResetCredits,
7} from "@t3tools/contracts";
8import * as DateTime from "effect/DateTime";
9import * as Effect from "effect/Effect";
10import * as FileSystem from "effect/FileSystem";
11import * as Option from "effect/Option";
12import * as Path from "effect/Path";
13import * as Ref from "effect/Ref";
14import * as Result from "effect/Result";
15import { ChildProcess, ChildProcessSpawner } from "effect/process";
16import { createModelCapabilities } from "@t3tools/shared/model";
17import { resolveSpawnCommand } from "@t3tools/shared/shell";
18import {
19 query as claudeQuery,
20 type Options as ClaudeQueryOptions,
21 type SlashCommand as ClaudeSlashCommand,
22 type SDKControlGetUsageResponse,
23 type SDKUserMessage,
24 type SettingSource,
25} from "@anthropic-ai/claude-agent-sdk";
26
27import {
28 buildServerProvider,
29 COMPACT_SLASH_COMMAND,
30 DEFAULT_TIMEOUT_MS,
31 isCommandMissingCause,
32 parseGenericCliVersion,
33 providerModelsFromSettings,
34 spawnAndCollect,
35 type ServerProviderDraft,
36} from "./providerSnapshot.ts";
37import { resolveClaudeSdkExecutablePath } from "./Drivers/ClaudeExecutable.ts";
38import { makeClaudeEnvironment } from "./Drivers/ClaudeHome.ts";
39import { discoverClaudeSkills } from "./Drivers/ClaudeSkills.ts";
40import type { ProviderWorkspaceSnapshot } from "./ProviderDriver.ts";
41import { makeUnavailableUsageLimits } from "./providerUsageLimits.ts";
42import {
43 type ClaudeScopedLimitNames,
44 claudeUsageResponseToLimits,
45 recordClaudeUsageResponse,
46} from "./claudeUsageLimits.ts";
47import {
48 BUNDLED_CLAUDE_MODEL_CATALOG,
49 type ClaudeModelCatalog,
50 formatClaudeVersionUpgradeMessage,
51 resolveClaudeModelsForVersion,
52} from "./ClaudeModelCatalog.ts";
53
54const DEFAULT_CLAUDE_MODEL_CAPABILITIES: ModelCapabilities = createModelCapabilities({
55 optionDescriptors: [],
56});
57
58const CLAUDE_PRESENTATION = {
59 displayName: "Claude",
60 showInteractionModeToggle: true,
61 reportsContextWindow: true,
62} as const;
63function toTitleCaseWords(value: string): string {
64 const parts: Array<string> = [];
65 for (const part of value.split(/[\s_-]+/g)) {
66 if (part.length > 0) {
67 parts.push(part[0]!.toUpperCase() + part.slice(1).toLowerCase());
68 }
69 }
70 return parts.join(" ");
71}
72
73function claudeSubscriptionLabel(subscriptionType: string | undefined): string | undefined {
74 const normalized = subscriptionType?.toLowerCase().replace(/[\s_-]+/g, "");
75 if (!normalized) return undefined;
76
77 switch (normalized) {
78 case "claudemaxsubscription":
79 return "Max";
80 case "claudemax5xsubscription":
81 return "Max 5x";
82 case "claudemax20xsubscription":
83 return "Max 20x";
84 case "claudeenterprisesubscription":
85 return "Enterprise";
86 case "claudeteamsubscription":
87 return "Team";
88 case "claudeprosubscription":
89 return "Pro";
90 case "claudefreesubscription":
91 return "Free";
92 case "max":
93 case "maxplan":
94 return "Max";
95 case "max5":
96 return "Max 5x";
97 case "max20":
98 return "Max 20x";
99 case "enterprise":
100 return "Enterprise";
101 case "team":
102 return "Team";
103 case "pro":
104 return "Pro";
105 case "free":
106 return "Free";
107 default:
108 return toTitleCaseWords(subscriptionType!);
109 }
110}
111
112function normalizeClaudeAuthMethod(authMethod: string | undefined): string | undefined {
113 const normalized = authMethod?.toLowerCase().replace(/[\s_-]+/g, "");
114 if (!normalized) return undefined;
115 if (
116 normalized === "apikey" ||
117 normalized === "anthropicapikey" ||
118 normalized === "anthropicauthtoken"
119 ) {
120 return "apiKey";
121 }
122 return undefined;
123}
124
125function formatClaudeSubscriptionAuthLabel(subscriptionType: string): string {
126 const subscriptionLabel =
127 claudeSubscriptionLabel(subscriptionType) ?? toTitleCaseWords(subscriptionType);
128 const normalized = subscriptionLabel.toLowerCase().replace(/[\s_-]+/g, "");
129
130 if (normalized.startsWith("claude") && normalized.endsWith("subscription")) {
131 return subscriptionLabel;
132 }
133 if (normalized.startsWith("claude")) {
134 return `${subscriptionLabel} Subscription`;
135 }
136 if (normalized.endsWith("subscription")) {
137 return `Claude ${subscriptionLabel}`;
138 }
139 return `Claude ${subscriptionLabel} Subscription`;
140}
141
142function claudeAuthMetadata(input: {
143 readonly subscriptionType: string | undefined;
144 readonly authMethod: string | undefined;
145}): { readonly type: string; readonly label: string } | undefined {
146 if (normalizeClaudeAuthMethod(input.authMethod) === "apiKey") {
147 return {
148 type: "apiKey",
149 label: "Claude API Key",
150 };
151 }
152
153 if (input.subscriptionType) {
154 return {
155 type: input.subscriptionType,
156 label: formatClaudeSubscriptionAuthLabel(input.subscriptionType),
157 };
158 }
159
160 return undefined;
161}
162
163function apiProviderAuthMetadata(
164 apiProvider: string | undefined,
165): { readonly type: string; readonly label: string } | undefined {
166 return apiProvider === "bedrock" ? { type: "bedrock", label: "Amazon Bedrock" } : undefined;
167}
168
169// ── SDK capability probe ────────────────────────────────────────────
170
171// Amazon Bedrock initializes far slower than first-party auth: the SDK boots the
172// Bedrock backend and runs the `awsAuthRefresh` credential hook before returning
173// account info. The previous 8s budget expired mid-init, so the probe returned
174// `undefined` and left the provider unverified and unselectable in the picker.
175const CAPABILITIES_PROBE_TIMEOUT_MS = 25_000;
176
177/**
178 * Keep workspace-scoped command discovery intact while isolating the periodic
179 * health check from configured MCP servers.
180 */
181export const CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES = [
182 "user",
183 "project",
184 "local",
185] as const satisfies ReadonlyArray<SettingSource>;
186
187/** Build the exact SDK options used by the periodic Claude capability probe. */
188export function buildClaudeCapabilitiesProbeQueryOptions(input: {
189 readonly executablePath: string;
190 readonly abortController: AbortController;
191 readonly environment: NodeJS.ProcessEnv;
192 readonly cwd: string | undefined;
193}): ClaudeQueryOptions {
194 return {
195 persistSession: false,
196 pathToClaudeCodeExecutable: input.executablePath,
197 abortController: input.abortController,
198 settingSources: [...CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES],
199 // The probe keeps filesystem setting sources for slash-command discovery,
200 // but must not run the user's hooks: it fires every few minutes, so
201 // SessionStart hooks would run on every health check.
202 settings: { disableAllHooks: true },
203 allowedTools: [],
204 // Ignore MCP definitions from every filesystem setting source above. The
205 // SDK combines this empty explicit map with --strict-mcp-config.
206 mcpServers: {},
207 strictMcpConfig: true,
208 env: {
209 ...input.environment,
210 // Connected claude.ai MCP servers are discovered outside filesystem
211 // config; disable them independently for this health check.
212 ENABLE_CLAUDEAI_MCP_SERVERS: "false",
213 // This is a noninteractive health check, so IDE discovery cannot add any
214 // useful capability data. Skipping it also avoids Claude spawning a
215 // Windows `tasklist | findstr` process tree on every periodic refresh.
216 FORCE_CODE_TERMINAL: undefined,
217 CLAUDE_CODE_AUTO_CONNECT_IDE: "0",
218 CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: "1",
219 },
220 ...(input.cwd ? { cwd: input.cwd } : {}),
221 stderr: () => {},
222 };
223}
224
225function nonEmptyProbeString(value: string): string | undefined {
226 const candidate = value.trim();
227 return candidate ? candidate : undefined;
228}
229
230type ClaudeCapabilitiesProbe = {
231 readonly email: string | undefined;
232 readonly subscriptionType: string | undefined;
233 readonly tokenSource: string | undefined;
234 /**
235 * Active API backend reported by the SDK's `AccountInfo`. Anthropic OAuth
236 * login only applies when `"firstParty"`; for Amazon Bedrock (`"bedrock"`)
237 * the subscription/token fields are absent and auth is external AWS creds.
238 */
239 readonly apiProvider: string | undefined;
240 readonly slashCommands: ReadonlyArray<ServerProviderSlashCommand>;
241 /**
242 * Subscription windows from the SDK's `get_usage` control request, or
243 * `undefined` when the request itself failed. Absent windows on an
244 * otherwise successful response mean the account has none (API key).
245 */
246 readonly usage?: Pick<SDKControlGetUsageResponse, "rate_limits_available" | "rate_limits">;
247};
248
249function parseClaudeInitializationCommands(
250 commands: ReadonlyArray<ClaudeSlashCommand> | undefined,
251): ReadonlyArray<ServerProviderSlashCommand> {
252 return dedupeSlashCommands(
253 (commands ?? []).flatMap((command) => {
254 const name = nonEmptyProbeString(command.name);
255 if (!name) {
256 return [];
257 }
258
259 const description = nonEmptyProbeString(command.description);
260 const argumentHint = nonEmptyProbeString(command.argumentHint);
261
262 return [
263 {
264 name,
265 ...(description ? { description } : {}),
266 ...(argumentHint ? { input: { hint: argumentHint } } : {}),
267 } satisfies ServerProviderSlashCommand,
268 ];
269 }),
270 );
271}
272
273function dedupeSlashCommands(
274 commands: ReadonlyArray<ServerProviderSlashCommand>,
275): ReadonlyArray<ServerProviderSlashCommand> {
276 const commandsByName = new Map<string, ServerProviderSlashCommand>();
277
278 for (const command of commands) {
279 const name = nonEmptyProbeString(command.name);
280 if (!name) {
281 continue;
282 }
283
284 const key = name.toLowerCase();
285 const existing = commandsByName.get(key);
286 if (!existing) {
287 commandsByName.set(key, {
288 ...command,
289 name,
290 });
291 continue;
292 }
293
294 commandsByName.set(key, {
295 ...existing,
296 ...(existing.description
297 ? {}
298 : command.description
299 ? { description: command.description }
300 : {}),
301 ...(existing.input?.hint
302 ? {}
303 : command.input?.hint
304 ? { input: { hint: command.input.hint } }
305 : {}),
306 });
307 }
308
309 return [...commandsByName.values()];
310}
311
312function waitForAbortSignal(signal: AbortSignal): Promise<void> {
313 if (signal.aborted) {
314 return Promise.resolve();
315 }
316 return new Promise((resolve) => {
317 signal.addEventListener("abort", () => resolve(), { once: true });
318 });
319}
320
321/**
322 * Probe account information by spawning a lightweight Claude Agent SDK
323 * session and reading the initialization result.
324 *
325 * We pass a never-yielding AsyncIterable as the prompt so that no user
326 * message is ever written to the subprocess stdin. This means the Claude
327 * Code subprocess completes its local initialization IPC (returning
328 * account info and slash commands) but never starts an API request to
329 * Anthropic. We read the init data and then abort the subprocess.
330 *
331 * This is used as a fallback when `claude auth status` does not include
332 * subscription type information.
333 */
334const probeClaudeCapabilities = (
335 claudeSettings: ClaudeSettings,
336 environment?: NodeJS.ProcessEnv,
337 cwd?: string,
338 includeUsage = true,
339) => {
340 const abort = new AbortController();
341 return Effect.gen(function* () {
342 const claudeEnvironment = yield* makeClaudeEnvironment(claudeSettings, environment);
343 const executablePath = yield* resolveClaudeSdkExecutablePath(
344 claudeSettings.binaryPath,
345 claudeEnvironment,
346 );
347 return yield* Effect.tryPromise(async () => {
348 const q = claudeQuery({
349 // Never yield — we only need initialization data, not a conversation.
350 // This prevents any prompt from reaching the Anthropic API.
351 // oxlint-disable-next-line require-yield
352 prompt: (async function* (): AsyncGenerator<SDKUserMessage> {
353 await waitForAbortSignal(abort.signal);
354 })(),
355 options: buildClaudeCapabilitiesProbeQueryOptions({
356 executablePath,
357 abortController: abort,
358 environment: claudeEnvironment,
359 cwd,
360 }),
361 });
362 const init = await q.initializationResult();
363 return { q, init };
364 });
365 }).pipe(
366 Effect.timeout(CAPABILITIES_PROBE_TIMEOUT_MS),
367 Effect.flatMap(({ q, init }) =>
368 Effect.gen(function* () {
369 // Usage has its own deadline so a slow optional request cannot discard initialization.
370 // Only the rate limits are read, so skip the local transcript scan that fills
371 // `behaviors`: with a few GB of transcripts it outlasts the deadline.
372 const usageResult = includeUsage
373 ? yield* Effect.tryPromise(() =>
374 q.usage_EXPERIMENTAL_MAY_CHANGE_DO_NOT_RELY_ON_THIS_API_YET({ skipBehaviors: true }),
375 ).pipe(Effect.timeout(DEFAULT_TIMEOUT_MS), Effect.result)
376 : undefined;
377 const usage =
378 usageResult && Result.isSuccess(usageResult)
379 ? {
380 rate_limits_available: usageResult.success.rate_limits_available,
381 rate_limits: usageResult.success.rate_limits,
382 }
383 : undefined;
384 const account = init.account as
385 | {
386 readonly email?: string;
387 readonly subscriptionType?: string;
388 readonly tokenSource?: string;
389 readonly apiProvider?: string;
390 }
391 | undefined;
392 return {
393 email: account?.email,
394 subscriptionType: account?.subscriptionType,
395 tokenSource: account?.tokenSource,
396 apiProvider: account?.apiProvider,
397 slashCommands: parseClaudeInitializationCommands(init.commands),
398 ...(usage ? { usage } : {}),
399 } satisfies ClaudeCapabilitiesProbe;
400 }),
401 ),
402 Effect.ensuring(
403 Effect.sync(() => {
404 if (!abort.signal.aborted) abort.abort();
405 }),
406 ),
407 Effect.result,
408 Effect.map((result) => (Result.isSuccess(result) ? result.success : undefined)),
409 );
410};
411
412const runClaudeCommand = Effect.fn("runClaudeCommand")(function* (
413 claudeSettings: ClaudeSettings,
414 args: ReadonlyArray<string>,
415 environment?: NodeJS.ProcessEnv,
416) {
417 const claudeEnvironment = yield* makeClaudeEnvironment(claudeSettings, environment);
418 const spawnCommand = yield* resolveSpawnCommand(claudeSettings.binaryPath, args, {
419 env: claudeEnvironment,
420 });
421 const command = ChildProcess.make(spawnCommand.command, spawnCommand.args, {
422 env: claudeEnvironment,
423 shell: spawnCommand.shell,
424 });
425 return yield* spawnAndCollect(claudeSettings.binaryPath, command);
426});
427
428/** Read commands from the same cwd Claude uses for a workspace session. */
429export const probeClaudeWorkspaceSnapshot = Effect.fn("probeClaudeWorkspaceSnapshot")(function* (
430 claudeSettings: ClaudeSettings,
431 machineSnapshot: ServerProvider,
432 cwd: string,
433 environment?: NodeJS.ProcessEnv,
434): Effect.fn.Return<ProviderWorkspaceSnapshot, never, FileSystem.FileSystem | Path.Path> {
435 if (!claudeSettings.enabled) return machineSnapshot;
436 const skills = yield* discoverClaudeSkills(claudeSettings, cwd, environment);
437 const capabilities = yield* probeClaudeCapabilities(claudeSettings, environment, cwd, false);
438 return {
439 ...machineSnapshot,
440 skills,
441 slashCommands: dedupeSlashCommands([
442 COMPACT_SLASH_COMMAND,
443 ...(capabilities?.slashCommands ?? []),
444 ]),
445 slashCommandsPending: !capabilities,
446 };
447});
448
449export const checkClaudeProviderStatus = Effect.fn("checkClaudeProviderStatus")(function* (
450 claudeSettings: ClaudeSettings,
451 resolveCapabilities?: (
452 claudeSettings: ClaudeSettings,
453 ) => Effect.Effect<ClaudeCapabilitiesProbe | undefined>,
454 environment?: NodeJS.ProcessEnv,
455 cwd?: string,
456 modelCatalog: ClaudeModelCatalog = BUNDLED_CLAUDE_MODEL_CATALOG,
457 /** Shared with the adapter so turn events reuse the scoped-bucket names this probe saw. */
458 scopedLimitNames?: Ref.Ref<ClaudeScopedLimitNames>,
459 /** Banked resets for a subscription login, given the CLI version for the user agent. */
460 resolveResetCredits?: (version: string) => Effect.Effect<ServerProviderResetCredits | undefined>,
461): Effect.fn.Return<
462 ServerProviderDraft,
463 never,
464 ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path
465> {
466 const resolvedEnvironment = environment ?? process.env;
467 const checkedAt = DateTime.formatIso(yield* DateTime.now);
468 const allModels = providerModelsFromSettings(
469 modelCatalog.models.map((entry) => entry.model),
470 claudeSettings.customModels,
471 DEFAULT_CLAUDE_MODEL_CAPABILITIES,
472 );
473
474 if (!claudeSettings.enabled) {
475 return buildServerProvider({
476 presentation: CLAUDE_PRESENTATION,
477 enabled: false,
478 checkedAt,
479 models: allModels,
480 probe: {
481 installed: false,
482 version: null,
483 status: "warning",
484 auth: { status: "unknown" },
485 message: "Claude is disabled in T3 Code settings.",
486 },
487 });
488 }
489
490 const versionProbe = yield* runClaudeCommand(
491 claudeSettings,
492 ["--version"],
493 resolvedEnvironment,
494 ).pipe(Effect.timeoutOption(DEFAULT_TIMEOUT_MS), Effect.result);
495
496 if (Result.isFailure(versionProbe)) {
497 const error = versionProbe.failure;
498 yield* Effect.logWarning("Claude Agent CLI health check failed.", {
499 errorTag: error._tag,
500 });
501 return buildServerProvider({
502 presentation: CLAUDE_PRESENTATION,
503 enabled: claudeSettings.enabled,
504 checkedAt,
505 models: allModels,
506 probe: {
507 installed: !isCommandMissingCause(error),
508 version: null,
509 status: "error",
510 auth: { status: "unknown" },
511 message: isCommandMissingCause(error)
512 ? "Claude Agent CLI (`claude`) was not found on PATH."
513 : "Failed to execute Claude Agent CLI health check.",
514 },
515 });
516 }
517
518 if (Option.isNone(versionProbe.success)) {
519 return buildServerProvider({
520 presentation: CLAUDE_PRESENTATION,
521 enabled: claudeSettings.enabled,
522 checkedAt,
523 models: allModels,
524 probe: {
525 installed: true,
526 version: null,
527 status: "error",
528 auth: { status: "unknown" },
529 message:
530 "Claude Agent CLI is installed but failed to run. Timed out while running command.",
531 },
532 });
533 }
534
535 const version = versionProbe.success.value;
536 const parsedVersion = parseGenericCliVersion(`${version.stdout}\n${version.stderr}`);
537 if (version.code !== 0) {
538 yield* Effect.logWarning("Claude Agent CLI version probe exited with a non-zero status.", {
539 exitCode: version.code,
540 stdoutLength: version.stdout.length,
541 stderrLength: version.stderr.length,
542 });
543 return buildServerProvider({
544 presentation: CLAUDE_PRESENTATION,
545 enabled: claudeSettings.enabled,
546 checkedAt,
547 models: allModels,
548 probe: {
549 installed: true,
550 version: parsedVersion,
551 status: "error",
552 auth: { status: "unknown" },
553 message: "Claude Agent CLI is installed but failed to run.",
554 },
555 });
556 }
557
558 const models = providerModelsFromSettings(
559 resolveClaudeModelsForVersion(modelCatalog, parsedVersion),
560 claudeSettings.customModels,
561 DEFAULT_CLAUDE_MODEL_CAPABILITIES,
562 );
563 const versionUpgradeMessage = formatClaudeVersionUpgradeMessage(modelCatalog, parsedVersion);
564
565 const capabilities = resolveCapabilities
566 ? yield* resolveCapabilities(claudeSettings).pipe(Effect.orElseSucceed(() => undefined))
567 : undefined;
568 const skills = yield* discoverClaudeSkills(claudeSettings, cwd, resolvedEnvironment);
569 const slashCommands = [COMPACT_SLASH_COMMAND, ...(capabilities?.slashCommands ?? [])];
570 const dedupedSlashCommands = dedupeSlashCommands(slashCommands);
571
572 if (!capabilities) {
573 return buildServerProvider({
574 presentation: CLAUDE_PRESENTATION,
575 enabled: claudeSettings.enabled,
576 checkedAt,
577 models,
578 slashCommands: dedupedSlashCommands,
579 skills,
580 probe: {
581 installed: true,
582 version: parsedVersion,
583 status: "warning",
584 auth: { status: "unknown" },
585 message: "Could not verify Claude authentication status from initialization result.",
586 },
587 });
588 }
589
590 const authMetadata =
591 claudeAuthMetadata({
592 subscriptionType: capabilities.subscriptionType,
593 authMethod: capabilities.tokenSource,
594 }) ?? apiProviderAuthMetadata(capabilities.apiProvider);
595 const usageLimits = !capabilities.usage
596 ? makeUnavailableUsageLimits({ checkedAt, reason: "probeFailed" })
597 : scopedLimitNames
598 ? yield* recordClaudeUsageResponse(scopedLimitNames, {
599 response: capabilities.usage,
600 checkedAt,
601 })
602 : claudeUsageResponseToLimits({ response: capabilities.usage, checkedAt }).limits;
603 const resetCredits =
604 resolveResetCredits &&
605 capabilities.subscriptionType &&
606 !usageLimits.unavailable &&
607 parsedVersion
608 ? yield* resolveResetCredits(parsedVersion)
609 : undefined;
610 return buildServerProvider({
611 presentation: CLAUDE_PRESENTATION,
612 enabled: claudeSettings.enabled,
613 checkedAt,
614 models,
615 slashCommands: dedupedSlashCommands,
616 skills,
617 probe: {
618 installed: true,
619 version: parsedVersion,
620 status: "ready",
621 auth: {
622 status: "authenticated",
623 ...(capabilities.email ? { email: capabilities.email } : {}),
624 ...(authMetadata ? authMetadata : {}),
625 },
626 ...(versionUpgradeMessage ? { message: versionUpgradeMessage } : {}),
627 usageLimits: resetCredits ? { ...usageLimits, resetCredits } : usageLimits,
628 },
629 });
630});
631
632const nowIso = Effect.map(DateTime.now, DateTime.formatIso);
633
634export const makePendingClaudeProvider = (
635 claudeSettings: ClaudeSettings,
636 modelCatalog: ClaudeModelCatalog = BUNDLED_CLAUDE_MODEL_CATALOG,
637): Effect.Effect<ServerProviderDraft> =>
638 Effect.gen(function* () {
639 const checkedAt = yield* nowIso;
640 const models = providerModelsFromSettings(
641 modelCatalog.models.map((entry) => entry.model),
642 claudeSettings.customModels,
643 DEFAULT_CLAUDE_MODEL_CAPABILITIES,
644 );
645
646 if (!claudeSettings.enabled) {
647 return buildServerProvider({
648 presentation: CLAUDE_PRESENTATION,
649 enabled: false,
650 checkedAt,
651 models,
652 probe: {
653 installed: false,
654 version: null,
655 status: "warning",
656 auth: { status: "unknown" },
657 message: "Claude is disabled in T3 Code settings.",
658 },
659 });
660 }
661
662 return buildServerProvider({
663 presentation: CLAUDE_PRESENTATION,
664 enabled: true,
665 checkedAt,
666 models,
667 probe: {
668 installed: false,
669 version: null,
670 status: "warning",
671 auth: { status: "unknown" },
672 message: "Claude provider status has not been checked in this session yet.",
673 },
674 });
675 });
676
677export { probeClaudeCapabilities };