mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
fix(codex): use app-server native skills (#1289)
* fix(codex): use native skill catalog * fix(codex): refresh changed skill inventory * fix(codex): preserve skill fallback on discovery error * fix(web): refresh skills when completion opens
This commit is contained in:
@@ -9,6 +9,8 @@ import type {
|
||||
InitializeResponse,
|
||||
ModelListParams,
|
||||
ModelListResponse,
|
||||
SkillsListParams,
|
||||
SkillsListResponse,
|
||||
ThreadStartParams,
|
||||
ThreadStartResponse,
|
||||
ThreadResumeParams,
|
||||
@@ -245,6 +247,13 @@ export class CodexAppServerClient extends JsonLineParser {
|
||||
return response as ModelListResponse;
|
||||
}
|
||||
|
||||
async listSkills(params: SkillsListParams): Promise<SkillsListResponse> {
|
||||
const response = await this.sendRequest('skills/list', params, {
|
||||
timeoutMs: 30_000
|
||||
});
|
||||
return response as SkillsListResponse;
|
||||
}
|
||||
|
||||
async listCollaborationModes(): Promise<CollaborationModeListResponse> {
|
||||
const response = await this.sendRequest('collaborationMode/list', {}, {
|
||||
timeoutMs: 30_000
|
||||
|
||||
Reference in New Issue
Block a user