@qilin-agent/tool-skill 0.0.0-stage → 3.1.3
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/LICENSE +21 -0
- package/README.i18n.yaml +136 -0
- package/README.md +256 -2
- package/README.zh.md +257 -0
- package/lib/index.js +1032 -0
- package/lib/types/index.d.ts +46 -0
- package/package.json +50 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Durable session skill catalog and model-facing `skill` loader tool.
|
|
3
|
+
*
|
|
4
|
+
* @module @qilin-agent/tool-skill
|
|
5
|
+
*/
|
|
6
|
+
import type { Context } from '@qilin-agent/kylin';
|
|
7
|
+
import z from '@qilin-agent/schemastery';
|
|
8
|
+
export declare const name = "tool-skill";
|
|
9
|
+
export declare const inject: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Durable provider and item records for one published session skill catalog. The catalog is a
|
|
12
|
+
* `catalog`-form context, so it records the entries it published beside the
|
|
13
|
+
* model-facing prose: a consumer presenting the list must not re-parse the
|
|
14
|
+
* `<available_skills>` block, whose framing exists for the model.
|
|
15
|
+
*/
|
|
16
|
+
export interface SkillCatalogSource {
|
|
17
|
+
readonly kind: 'skill-catalog';
|
|
18
|
+
readonly form: 'catalog';
|
|
19
|
+
/** Marks a replacement catalog rather than this session's first publication. */
|
|
20
|
+
readonly update?: true;
|
|
21
|
+
/** Exactly the entries this message published, in catalog order. */
|
|
22
|
+
readonly entries: readonly {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly description: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
declare module '@qilin-agent/llm' {
|
|
28
|
+
interface MessageSourceMap {
|
|
29
|
+
'skill-catalog': SkillCatalogSource;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** Model-facing skill catalog configuration. */
|
|
33
|
+
export interface Config {
|
|
34
|
+
/** Maximum normalized description length rendered in the session catalog; minimum 3. */
|
|
35
|
+
catalogDescriptionMaxLength?: number;
|
|
36
|
+
}
|
|
37
|
+
/** Validate and default the model-facing skill catalog configuration. */
|
|
38
|
+
export declare const Config: z<Config>;
|
|
39
|
+
/**
|
|
40
|
+
* Register the model-facing skill loader and its visibility-matched
|
|
41
|
+
* durable session catalog. The catalog is emitted only when the calling agent
|
|
42
|
+
* resolves this plugin's exact tool registration; a restriction or scoped
|
|
43
|
+
* same-name shadow therefore removes both the schema and its call guidance.
|
|
44
|
+
*/
|
|
45
|
+
export declare function apply(ctx: Context, config?: Config): void;
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qilin-agent/tool-skill",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Model-facing skill loading tool for the QiLin",
|
|
4
|
+
"version": "3.1.3",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/kkutysllb/QiLin.git",
|
|
11
|
+
"directory": "packages/skill/tool-skill"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"types": "lib/types/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./lib/types/index.d.ts",
|
|
22
|
+
"default": "./lib/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./src/*": "./src/*",
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"lib/index.js",
|
|
29
|
+
"lib/types/**/*.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@qilin-agent/llm": "3.1.3",
|
|
34
|
+
"@qilin-agent/agent": "3.1.3",
|
|
35
|
+
"@qilin-agent/skill": "3.1.3",
|
|
36
|
+
"@qilin-agent/kylin": "~4.0.3",
|
|
37
|
+
"@qilin-agent/tools": "3.1.3"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@qilin-agent/schemastery": "~3.18.3"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@qilin-agent/agent-loop-testkit": "3.1.3",
|
|
44
|
+
"@qilin-agent/llm": "3.1.3",
|
|
45
|
+
"@qilin-agent/scope": "3.1.3",
|
|
46
|
+
"@qilin-agent/agent": "3.1.3",
|
|
47
|
+
"@qilin-agent/session": "3.1.3",
|
|
48
|
+
"@qilin-agent/skill": "3.1.3",
|
|
49
|
+
"@qilin-agent/skill-filesystem": "3.1.3",
|
|
50
|
+
"@qilin-agent/tools": "3.1.3",
|
|
51
|
+
"@qilin-agent/kylin": "~4.0.3"
|
|
52
|
+
}
|
|
6
53
|
}
|