(
token: string,
quotaSnapshots?: Record<
string,
{
entitlement?: number;
overage_count?: number;
overage_permitted?: boolean;
percent_remaining?: number;
timestamp_utc?: string;
unlimited?: boolean;
}
>
)
| 48 | } |
| 49 | |
| 50 | async function configureAuthenticatedUser( |
| 51 | token: string, |
| 52 | quotaSnapshots?: Record< |
| 53 | string, |
| 54 | { |
| 55 | entitlement?: number; |
| 56 | overage_count?: number; |
| 57 | overage_permitted?: boolean; |
| 58 | percent_remaining?: number; |
| 59 | timestamp_utc?: string; |
| 60 | unlimited?: boolean; |
| 61 | } |
| 62 | > |
| 63 | ): Promise<void> { |
| 64 | await openAiEndpoint.setCopilotUserByToken(token, { |
| 65 | login: "rpc-user", |
| 66 | copilot_plan: "individual_pro", |
| 67 | endpoints: { |
| 68 | api: env.COPILOT_API_URL, |
| 69 | telemetry: "https://localhost:1/telemetry", |
| 70 | }, |
| 71 | analytics_tracking_id: "rpc-user-tracking-id", |
| 72 | quota_snapshots: quotaSnapshots, |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | function createSkillDirectory(skillName: string, description: string): string { |
| 77 | const skillsDir = path.join( |
no test coverage detected
searching dependent graphs…