qlogicagent 2.11.9 → 2.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +6 -6
- package/dist/cli.js +297 -273
- package/dist/index.js +296 -272
- package/dist/protocol.js +1 -1
- package/dist/types/agent/tool-loop/tool-result-events.d.ts +4 -0
- package/dist/types/agent/types.d.ts +1 -1
- package/dist/types/cli/acp-extended-handlers.d.ts +16 -0
- package/dist/types/cli/acp-extended-host-adapter.d.ts +1 -0
- package/dist/types/cli/acp-session-host.d.ts +8 -0
- package/dist/types/cli/agent-config-coordinator.d.ts +1 -0
- package/dist/types/cli/handlers/product-handler.d.ts +2 -0
- package/dist/types/cli/skills-query-service.d.ts +7 -4
- package/dist/types/cli/stdio-server.d.ts +1 -0
- package/dist/types/cli/turn-ask-user-setup.d.ts +15 -0
- package/dist/types/orchestration/solo-evaluator.d.ts +28 -1
- package/dist/types/orchestration/solo-persistence.d.ts +2 -1
- package/dist/types/orchestration/solo-spec-builder.d.ts +48 -0
- package/dist/types/protocol/wire/acp-agent-management.d.ts +39 -0
- package/dist/types/protocol/wire/acp-protocol.d.ts +2 -0
- package/dist/types/runtime/infra/acp-detector.d.ts +9 -0
- package/dist/types/runtime/infra/agent-paths.d.ts +2 -19
- package/dist/types/runtime/infra/default-path-service.d.ts +0 -3
- package/dist/types/runtime/infra/index.d.ts +1 -1
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +18 -5
- package/dist/types/runtime/infra/migrate-project-skills.d.ts +21 -0
- package/dist/types/runtime/infra/model-registry.d.ts +7 -12
- package/dist/types/runtime/infra/project-skill-manifest.d.ts +28 -0
- package/dist/types/runtime/infra/skill-resolver.d.ts +51 -0
- package/dist/types/runtime/ports/agent-execution-contracts.d.ts +1 -1
- package/dist/types/runtime/ports/path-service.d.ts +0 -3
- package/dist/types/skills/index.d.ts +1 -2
- package/dist/types/skills/skill-system/skill-types.d.ts +0 -59
- package/dist/types/transport/acp-server.d.ts +2 -0
- package/package.json +2 -2
- package/dist/types/runtime/infra/provider-catalog-adapter.d.ts +0 -69
- package/dist/types/skills/skill-system/skill-loader.d.ts +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ReasoningMode } from "./provider-catalog-adapter.js";
|
|
2
1
|
import { type KeyConfig, type KeyHandle, type LoadBalanceStrategy, type PoolStatus, type ProviderPoolConfig } from "./key-pool.js";
|
|
3
2
|
export type RegistryChangeCallback = () => void;
|
|
3
|
+
export type ReasoningMode = "none" | "adaptive" | "collapsed" | "effort";
|
|
4
4
|
export type ModelPurpose = "textGeneration" | "smallModel" | "stt" | "tts" | "imageGeneration" | "imageUnderstanding" | "videoGeneration" | "videoUnderstanding" | "threeDGeneration" | "embedding" | "voiceClone" | "musicGeneration" | "realtimeAudio" | "realtimeVideo";
|
|
5
5
|
export interface ModelInfo {
|
|
6
6
|
id: string;
|
|
@@ -8,8 +8,9 @@ export interface ModelInfo {
|
|
|
8
8
|
contextWindow?: number;
|
|
9
9
|
maxOutput?: number;
|
|
10
10
|
streamRequired?: boolean;
|
|
11
|
+
toolCall?: boolean;
|
|
11
12
|
vision?: boolean;
|
|
12
|
-
mediaType?: string;
|
|
13
|
+
mediaType?: string | null;
|
|
13
14
|
}
|
|
14
15
|
export interface ProviderDef {
|
|
15
16
|
id: string;
|
|
@@ -33,6 +34,8 @@ export interface ModelEntry {
|
|
|
33
34
|
contextWindow?: number;
|
|
34
35
|
maxOutput?: number;
|
|
35
36
|
streamRequired?: boolean;
|
|
37
|
+
toolCall?: boolean;
|
|
38
|
+
mediaType?: string | null;
|
|
36
39
|
capabilities?: string[];
|
|
37
40
|
pricing?: Record<string, unknown>;
|
|
38
41
|
/** Thinking-strength control class for the UI (see ReasoningMode). */
|
|
@@ -58,7 +61,7 @@ export interface ResolvedModel {
|
|
|
58
61
|
export declare const ALL_PURPOSES: ModelPurpose[];
|
|
59
62
|
export declare class ModelRegistry {
|
|
60
63
|
private keyPool;
|
|
61
|
-
private
|
|
64
|
+
private catalogProviders;
|
|
62
65
|
private models;
|
|
63
66
|
private modelEnabledOverrides;
|
|
64
67
|
private bindings;
|
|
@@ -90,15 +93,9 @@ export declare class ModelRegistry {
|
|
|
90
93
|
addModel(entry: Omit<ModelEntry, "id"> & {
|
|
91
94
|
id?: string;
|
|
92
95
|
}): string;
|
|
93
|
-
|
|
94
|
-
* Backfill the reasoning control class for entries that arrived without it
|
|
95
|
-
* (e.g. from the llmrouter cloud catalog), using provider-core as the single
|
|
96
|
-
* source of truth. Entries that already carry reasoningMode are left as-is.
|
|
97
|
-
*/
|
|
98
|
-
private withReasoningMode;
|
|
96
|
+
replaceCatalogProviders(providers: ProviderDef[]): void;
|
|
99
97
|
replaceCatalogModels(entries: ModelEntry[]): void;
|
|
100
98
|
replaceProviderModels(providerId: string, entries: ModelEntry[]): void;
|
|
101
|
-
migrateModelIds(aliasToNative: Map<string, string>): void;
|
|
102
99
|
removeModel(id: string): void;
|
|
103
100
|
enableModel(id: string): void;
|
|
104
101
|
disableModel(id: string): void;
|
|
@@ -133,10 +130,8 @@ export declare class ModelRegistry {
|
|
|
133
130
|
private resolveTechnicalVariant;
|
|
134
131
|
private providerVariantKeyCandidates;
|
|
135
132
|
private loadModelState;
|
|
136
|
-
private hydrateCatalogModels;
|
|
137
133
|
private exportModelState;
|
|
138
134
|
private emitChange;
|
|
139
135
|
}
|
|
140
136
|
export declare function getModelRegistry(): ModelRegistry;
|
|
141
137
|
export declare function resetModelRegistry(): void;
|
|
142
|
-
export declare function deriveModelPurposes(model: ModelInfo): ModelPurpose[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project skill enablement manifest — the per-project opt-in list for the
|
|
3
|
+
* single-store skill registry.
|
|
4
|
+
*
|
|
5
|
+
* Stored at `<cwd>/.qlogicagent/skills-enabled.json`:
|
|
6
|
+
* { "version": 1, "enabled": ["skill-a", "skill-b"] }
|
|
7
|
+
*
|
|
8
|
+
* Only project-scoped skills need listing here; globally-scoped skills
|
|
9
|
+
* (see skill-lifecycle `enabledScope`) are active everywhere regardless.
|
|
10
|
+
*/
|
|
11
|
+
export interface ProjectSkillManifest {
|
|
12
|
+
version: 1;
|
|
13
|
+
enabled: string[];
|
|
14
|
+
}
|
|
15
|
+
/** Read the enablement manifest for a project. Returns empty manifest if absent/malformed. */
|
|
16
|
+
export declare function readProjectSkillManifest(cwd: string): ProjectSkillManifest;
|
|
17
|
+
/** The set of project-scoped skill names enabled in this project. */
|
|
18
|
+
export declare function readEnabledSkills(cwd: string): Set<string>;
|
|
19
|
+
/** Enable a (project-scoped) skill in this project. Idempotent. Returns true if newly added. */
|
|
20
|
+
export declare function enableSkill(cwd: string, name: string): boolean;
|
|
21
|
+
/** Disable (un-enable) a skill in this project. Idempotent. Returns true if removed. */
|
|
22
|
+
export declare function disableSkill(cwd: string, name: string): boolean;
|
|
23
|
+
/** Skills that are project-scoped (active only where a project manifest enables them). */
|
|
24
|
+
export declare function readProjectScopedSkills(): Set<string>;
|
|
25
|
+
/** Mark a skill project-scoped (learned/created). Idempotent. Returns true if newly added. */
|
|
26
|
+
export declare function markProjectScoped(name: string): boolean;
|
|
27
|
+
/** Unmark a skill (promote to global). Idempotent. Returns true if removed. */
|
|
28
|
+
export declare function unmarkProjectScoped(name: string): boolean;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill resolver — single source of truth for "which skills are effective in a
|
|
3
|
+
* given project" under the global-single-store + per-project-manifest model.
|
|
4
|
+
*
|
|
5
|
+
* Storage: ONE global store at getUserSkillsDir(). A skill is project-scoped if
|
|
6
|
+
* it appears in the owner-level project-scoped registry (skills-scoped.json);
|
|
7
|
+
* otherwise it is global. Project-scoped skills are active only where the
|
|
8
|
+
* project manifest (skills-enabled.json) lists them.
|
|
9
|
+
*
|
|
10
|
+
* effective(project) = { store skills NOT marked project-scoped }
|
|
11
|
+
* ∪ { project-scoped skills whose name ∈ project manifest }
|
|
12
|
+
*
|
|
13
|
+
* All resolution / listing / injection surfaces MUST go through this module so
|
|
14
|
+
* precedence and name-collision semantics live in exactly one place. Kept in
|
|
15
|
+
* runtime/infra (no skills-layer imports) so both runtime and cli callers may
|
|
16
|
+
* use it without crossing the runtime → skills boundary.
|
|
17
|
+
*/
|
|
18
|
+
export interface ResolvedSkill {
|
|
19
|
+
name: string;
|
|
20
|
+
/** Absolute path to <store>/<name>/SKILL.md */
|
|
21
|
+
filePath: string;
|
|
22
|
+
/** Absolute path to <store>/<name> */
|
|
23
|
+
baseDir: string;
|
|
24
|
+
enabledScope: "global" | "project";
|
|
25
|
+
/** Active in the resolution context: global, or project-enabled via manifest. */
|
|
26
|
+
active: boolean;
|
|
27
|
+
systemGenerated: boolean;
|
|
28
|
+
description?: string;
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function isSystemGeneratedSkillName(name: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Resolve all skills in the global store, annotated with enablement scope and
|
|
34
|
+
* whether they're active in the given project context.
|
|
35
|
+
*
|
|
36
|
+
* Returns ALL store skills (active and inactive) so listing surfaces can show
|
|
37
|
+
* enable/disable state; callers that only want active skills filter `.active`
|
|
38
|
+
* (or use resolveActiveSkills).
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveSkills(projectRoot?: string): ResolvedSkill[];
|
|
41
|
+
/** Only the skills active in the given project (for prompt injection / resolution). */
|
|
42
|
+
export declare function resolveActiveSkills(projectRoot?: string): ResolvedSkill[];
|
|
43
|
+
/**
|
|
44
|
+
* Resolve a single skill by name to its store paths, or null if not present.
|
|
45
|
+
* Resolution honors only the global store (single source of truth) and ignores
|
|
46
|
+
* enablement — any stored skill is invocable by explicit name.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveSkillPath(name: string): {
|
|
49
|
+
baseDir: string;
|
|
50
|
+
filePath: string;
|
|
51
|
+
} | null;
|
|
@@ -26,10 +26,7 @@ export interface PathService {
|
|
|
26
26
|
getProjectAgentDir(projectRoot?: string): string;
|
|
27
27
|
getProjectSettingsPath(projectRoot?: string): string;
|
|
28
28
|
getProjectInstructionsPath(projectRoot?: string): string;
|
|
29
|
-
getProjectSkillsDir(projectRoot?: string): string;
|
|
30
29
|
getProjectPluginsDir(projectRoot?: string): string;
|
|
31
30
|
getProjectRulesDir(projectRoot?: string): string;
|
|
32
31
|
getProjectSessionsRoot(projectRoot?: string): string;
|
|
33
|
-
getKnownProjectDirs(projectDirs: string[], excludeCwd?: string): string[];
|
|
34
|
-
getAllProjectSkillDirs(projectDirs: string[], excludeCwd?: string): string[];
|
|
35
32
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type { PortableTool, PortableToolResult, ToolContentBlock, } from "./portable-tool.js";
|
|
2
2
|
export { AGENT_DISALLOWED_TOOLS, CUSTOM_AGENT_DISALLOWED_TOOLS, filterToolsForAgent, } from "./tool-access.js";
|
|
3
|
-
export type { ParsedSkillFrontmatter, WorkspaceSkill, SkillInstallSpec, SkillMetadata, SkillInvocationPolicy,
|
|
3
|
+
export type { ParsedSkillFrontmatter, WorkspaceSkill, SkillInstallSpec, SkillMetadata, SkillInvocationPolicy, SkillCommandDispatchSpec, SkillCommandSpec, SkillScanSeverity, SkillScanFinding, SkillScanSummary, SkillScanOptions, SkillFsDeps, SkillPathDeps, } from "./skill-system/skill-types.js";
|
|
4
4
|
export { parseFrontmatter, resolveSkillMetadata, resolveSkillInvocationPolicy, resolveSkillKey, } from "./skill-system/skill-frontmatter.js";
|
|
5
|
-
export { loadSkillEntries, filterSkillEntries, buildSkillSnapshot, } from "./skill-system/skill-loader.js";
|
|
6
5
|
export { scanSource, scanSkillDirectory, hasCriticalFindings, isScannable, } from "./skill-system/skill-guard.js";
|
|
7
6
|
export type { SkillGuardDeps } from "./skill-system/skill-guard.js";
|
|
@@ -72,15 +72,6 @@ export interface SkillInvocationPolicy {
|
|
|
72
72
|
/** If true, the model cannot trigger this skill autonomously. */
|
|
73
73
|
disableModelInvocation: boolean;
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
* A fully resolved skill entry with parsed metadata.
|
|
77
|
-
*/
|
|
78
|
-
export interface SkillEntry {
|
|
79
|
-
skill: WorkspaceSkill;
|
|
80
|
-
frontmatter: ParsedSkillFrontmatter;
|
|
81
|
-
metadata?: SkillMetadata;
|
|
82
|
-
invocation?: SkillInvocationPolicy;
|
|
83
|
-
}
|
|
84
75
|
/**
|
|
85
76
|
* Slash-command dispatch specification for a skill.
|
|
86
77
|
*/
|
|
@@ -98,19 +89,6 @@ export interface SkillCommandSpec {
|
|
|
98
89
|
description: string;
|
|
99
90
|
dispatch?: SkillCommandDispatchSpec;
|
|
100
91
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Serialized skill snapshot for system-prompt embedding.
|
|
103
|
-
*/
|
|
104
|
-
export interface SkillSnapshot {
|
|
105
|
-
prompt: string;
|
|
106
|
-
skills: Array<{
|
|
107
|
-
name: string;
|
|
108
|
-
primaryEnv?: string;
|
|
109
|
-
requiredEnv?: string[];
|
|
110
|
-
}>;
|
|
111
|
-
skillFilter?: string[];
|
|
112
|
-
version?: number;
|
|
113
|
-
}
|
|
114
92
|
export type SkillScanSeverity = "info" | "warn" | "critical";
|
|
115
93
|
export interface SkillScanFinding {
|
|
116
94
|
ruleId: string;
|
|
@@ -160,40 +138,3 @@ export interface SkillPathDeps {
|
|
|
160
138
|
extname(p: string): string;
|
|
161
139
|
sep: string;
|
|
162
140
|
}
|
|
163
|
-
/**
|
|
164
|
-
* Configurable limits for skill discovery to prevent abuse.
|
|
165
|
-
*/
|
|
166
|
-
export interface SkillLoadLimits {
|
|
167
|
-
maxCandidatesPerRoot?: number;
|
|
168
|
-
maxSkillsLoadedPerSource?: number;
|
|
169
|
-
maxSkillsInPrompt?: number;
|
|
170
|
-
maxSkillsPromptChars?: number;
|
|
171
|
-
maxSkillFileBytes?: number;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Search paths for skill discovery, ordered by precedence (low → high).
|
|
175
|
-
*/
|
|
176
|
-
export interface SkillSearchPaths {
|
|
177
|
-
/** Bundled with npm package or app install. */
|
|
178
|
-
bundled?: string;
|
|
179
|
-
/** Extra directories from config. */
|
|
180
|
-
extra?: string[];
|
|
181
|
-
/** Managed skills (installed via CLI). */
|
|
182
|
-
managed?: string;
|
|
183
|
-
/** Personal agent skills: ~/.agents/skills/ */
|
|
184
|
-
personalAgents?: string;
|
|
185
|
-
/** Project agent skills: <workspace>/.agents/skills/ */
|
|
186
|
-
projectAgents?: string;
|
|
187
|
-
/** Workspace-level: <workspace>/skills/ */
|
|
188
|
-
workspace?: string;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Aggregate deps for the skill loader.
|
|
192
|
-
*/
|
|
193
|
-
export interface SkillLoaderDeps {
|
|
194
|
-
fs: SkillFsDeps;
|
|
195
|
-
path: SkillPathDeps;
|
|
196
|
-
homeDir: string;
|
|
197
|
-
searchPaths: SkillSearchPaths;
|
|
198
|
-
limits?: SkillLoadLimits;
|
|
199
|
-
}
|
|
@@ -79,6 +79,8 @@ export interface AcpRequestHandler {
|
|
|
79
79
|
handleAcpSoloSubscribe(params: Record<string, unknown>): Promise<unknown>;
|
|
80
80
|
handleAcpSoloMessage(params: Record<string, unknown>): Promise<unknown>;
|
|
81
81
|
handleAcpSoloEvaluate(params: Record<string, unknown>): Promise<unknown>;
|
|
82
|
+
handleAcpSoloSpecChat(params: Record<string, unknown>): Promise<unknown>;
|
|
83
|
+
handleAcpSoloSpecJudge(params: Record<string, unknown>): Promise<unknown>;
|
|
82
84
|
handleAcpProductCreate(params: Record<string, unknown>): Promise<unknown>;
|
|
83
85
|
handleAcpProductPlan(params: Record<string, unknown>): Promise<unknown>;
|
|
84
86
|
handleAcpProductConfirm(params: Record<string, unknown>): Promise<unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qlogicagent",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.10",
|
|
4
4
|
"description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@agentclientprotocol/sdk": "^0.25.0",
|
|
70
70
|
"@napi-rs/canvas": "0.1.100",
|
|
71
71
|
"@xiaozhiclaw/pet-core": "0.1.0",
|
|
72
|
-
"@xiaozhiclaw/provider-core": "0.1.
|
|
72
|
+
"@xiaozhiclaw/provider-core": "0.1.6",
|
|
73
73
|
"better-sqlite3": "^12.10.0",
|
|
74
74
|
"dotenv": "^17.3.1",
|
|
75
75
|
"nanoid": "^5.1.5",
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { type ProviderVariantCapability } from "@xiaozhiclaw/provider-core";
|
|
2
|
-
export type RuntimeProviderVariantCapability = ProviderVariantCapability;
|
|
3
|
-
/**
|
|
4
|
-
* How a model's thinking depth can be controlled, derived from provider-core
|
|
5
|
-
* capabilities + quirks. The UI maps each mode to a different effort option set:
|
|
6
|
-
* - none : model has no reasoning/thinking → hide the strength control
|
|
7
|
-
* - adaptive : model self-regulates depth natively (Anthropic Opus/Sonnet
|
|
8
|
-
* type:"adaptive") → only "智能"
|
|
9
|
-
* - collapsed : provider collapses effort levels (DeepSeek: low/medium→high,
|
|
10
|
-
* high/xhigh→max) → "标准 / 最大" only
|
|
11
|
-
* - effort : full granular control honored (o-series/Kimi reasoning_effort,
|
|
12
|
-
* Anthropic budget thinking) → full 5 options
|
|
13
|
-
*/
|
|
14
|
-
export type ReasoningMode = "none" | "adaptive" | "collapsed" | "effort";
|
|
15
|
-
export interface RuntimeProviderCatalogProvider {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
transport: string;
|
|
19
|
-
baseUrl: string;
|
|
20
|
-
defaultModel?: string;
|
|
21
|
-
group?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface RuntimeProviderCatalogModel {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
aliases?: string[];
|
|
27
|
-
contextWindow?: number;
|
|
28
|
-
maxOutput?: number;
|
|
29
|
-
streamRequired?: boolean;
|
|
30
|
-
toolCall?: boolean;
|
|
31
|
-
reasoning?: boolean;
|
|
32
|
-
vision?: boolean;
|
|
33
|
-
mediaType?: string;
|
|
34
|
-
costInput?: number;
|
|
35
|
-
costOutput?: number;
|
|
36
|
-
costCacheRead?: number;
|
|
37
|
-
costCacheWrite?: number;
|
|
38
|
-
pricing?: Record<string, unknown>;
|
|
39
|
-
/** Derived control class for thinking strength (see ReasoningMode). */
|
|
40
|
-
reasoningMode?: ReasoningMode;
|
|
41
|
-
}
|
|
42
|
-
export interface RuntimeProviderVariantResolutionInput {
|
|
43
|
-
publicModel: string;
|
|
44
|
-
requestedProtocol?: "openai-chat" | "openai-responses" | "anthropic-messages" | "volcengine-responses";
|
|
45
|
-
capabilities: RuntimeProviderVariantCapability[];
|
|
46
|
-
purpose: string;
|
|
47
|
-
userPreference?: {
|
|
48
|
-
providerIds?: string[];
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export interface RuntimeProviderVariantResolution {
|
|
52
|
-
provider: string;
|
|
53
|
-
nativeModelId: string;
|
|
54
|
-
}
|
|
55
|
-
export declare class ProviderCatalogAdapter {
|
|
56
|
-
private readonly registry;
|
|
57
|
-
private readonly resolver;
|
|
58
|
-
getProvider(providerId: string): RuntimeProviderCatalogProvider | undefined;
|
|
59
|
-
listProviders(): RuntimeProviderCatalogProvider[];
|
|
60
|
-
listModels(providerId: string): RuntimeProviderCatalogModel[];
|
|
61
|
-
/**
|
|
62
|
-
* Classify a model's reasoning control from provider-core (the single source of
|
|
63
|
-
* truth), for entries sourced outside the builtin catalog (e.g. the llmrouter
|
|
64
|
-
* cloud catalog). Returns undefined when the model isn't a known provider-core
|
|
65
|
-
* model — callers should fall back to the granular default.
|
|
66
|
-
*/
|
|
67
|
-
classifyReasoningMode(providerId: string, modelId: string): ReasoningMode | undefined;
|
|
68
|
-
resolveBest(input: RuntimeProviderVariantResolutionInput): RuntimeProviderVariantResolution | undefined;
|
|
69
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SkillEntry, SkillLoadLimits, SkillLoaderDeps, SkillSnapshot } from "./skill-types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Discover all skills from configured search paths, applying precedence merge
|
|
4
|
-
* and size/count limits. Returns fully parsed `SkillEntry` objects.
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadSkillEntries(deps: SkillLoaderDeps): SkillEntry[];
|
|
7
|
-
/**
|
|
8
|
-
* Filter skill entries by a name-based filter list.
|
|
9
|
-
* If filter is undefined or empty, returns all entries.
|
|
10
|
-
*/
|
|
11
|
-
export declare function filterSkillEntries(entries: SkillEntry[], skillFilter?: string[]): SkillEntry[];
|
|
12
|
-
/**
|
|
13
|
-
* Build a system-prompt-embeddable skill snapshot.
|
|
14
|
-
* Applies count and character limits from the provided config.
|
|
15
|
-
*/
|
|
16
|
-
export declare function buildSkillSnapshot(entries: SkillEntry[], limits?: SkillLoadLimits, skillFilter?: string[]): SkillSnapshot;
|