mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 04:17:54 +00:00
style(claude-extension): apply formatter output
This commit is contained in:
@@ -187,7 +187,9 @@ export function getClaudeExtensionBinding(id: string): ClaudeExtensionBinding {
|
|||||||
return toPublicBinding(binding);
|
return toPublicBinding(binding);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getClaudeExtensionManagedEnvManifest(id: string): ClaudeExtensionManagedEnvManifest {
|
export function getClaudeExtensionManagedEnvManifest(
|
||||||
|
id: string
|
||||||
|
): ClaudeExtensionManagedEnvManifest {
|
||||||
const binding = readBindingsStore().bindings.find((entry) => entry.id === id);
|
const binding = readBindingsStore().bindings.find((entry) => entry.id === id);
|
||||||
if (!binding) {
|
if (!binding) {
|
||||||
throw new Error(`Binding not found: ${id}`);
|
throw new Error(`Binding not found: ${id}`);
|
||||||
|
|||||||
@@ -322,9 +322,11 @@ function getManagedKeysForTarget(
|
|||||||
return new Set([...currentResolvedKeys, ...manifestKeys]);
|
return new Set([...currentResolvedKeys, ...manifestKeys]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentResolvedManagedKeys(setup: Awaited<ReturnType<typeof resolveClaudeExtensionSetup>>): string[] {
|
function getCurrentResolvedManagedKeys(
|
||||||
return [...new Set([...setup.removeEnvKeys, ...Object.keys(setup.extensionEnv)])].sort((left, right) =>
|
setup: Awaited<ReturnType<typeof resolveClaudeExtensionSetup>>
|
||||||
left.localeCompare(right)
|
): string[] {
|
||||||
|
return [...new Set([...setup.removeEnvKeys, ...Object.keys(setup.extensionEnv)])].sort(
|
||||||
|
(left, right) => left.localeCompare(right)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user