mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
refactor: trim workshop helper exports
This commit is contained in:
@@ -3,7 +3,7 @@ type PairingCommandAuthParams = {
|
||||
gatewayClientScopes?: readonly string[] | null;
|
||||
};
|
||||
|
||||
export type PairingCommandAuthState = {
|
||||
type PairingCommandAuthState = {
|
||||
isInternalGatewayCaller: boolean;
|
||||
isMissingInternalPairingPrivilege: boolean;
|
||||
approvalCallerScopes?: readonly string[];
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
@@ -9,7 +9,7 @@ type StoreFile = {
|
||||
review?: SkillWorkshopReviewState;
|
||||
};
|
||||
|
||||
export type SkillWorkshopReviewState = {
|
||||
type SkillWorkshopReviewState = {
|
||||
turnsSinceReview: number;
|
||||
toolCallsSinceReview: number;
|
||||
lastReviewAt?: number;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user