refactor: trim workshop helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 20:02:23 +01:00
parent 0ba5586ba9
commit 38839adaca
4 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ type PairingCommandAuthParams = {
gatewayClientScopes?: readonly string[] | null;
};
export type PairingCommandAuthState = {
type PairingCommandAuthState = {
isInternalGatewayCaller: boolean;
isMissingInternalPairingPrivilege: boolean;
approvalCallerScopes?: readonly string[];

View File

@@ -19,7 +19,7 @@ export function normalizeSkillName(value: string): string {
.slice(0, 80);
}
export function assertValidSkillName(name: string): string {
function assertValidSkillName(name: string): string {
const normalized = normalizeSkillName(name);
if (!VALID_SKILL_NAME.test(normalized)) {
throw new Error(`invalid skill name: ${name}`);

View File

@@ -9,7 +9,7 @@ type StoreFile = {
review?: SkillWorkshopReviewState;
};
export type SkillWorkshopReviewState = {
type SkillWorkshopReviewState = {
turnsSinceReview: number;
toolCallsSinceReview: number;
lastReviewAt?: number;

View File

@@ -25,7 +25,7 @@ function extractTextBlock(block: unknown): string {
return readTextValue((block as { text?: unknown }).text);
}
export function extractMessageText(content: unknown): string {
function extractMessageText(content: unknown): string {
if (typeof content === "string") {
return content;
}