hyacinth-ai 0.9.16 → 0.9.17
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.
|
@@ -87,7 +87,7 @@ export function createBuiltinSkills() {
|
|
|
87
87
|
name: 'framework-reference',
|
|
88
88
|
description: 'Agent 框架配置指南 — 配置项、旁路Agent、模型通道等框架能力说明',
|
|
89
89
|
promptTemplate: loadPrompt('skills/framework-reference'),
|
|
90
|
-
relatedTools: ['get_config', 'update_config', 'list_model_channels', '
|
|
90
|
+
relatedTools: ['get_config', 'update_config', 'list_model_channels', 'model_channel_info', 'config_schema'],
|
|
91
91
|
source: 'builtin',
|
|
92
92
|
},
|
|
93
93
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function createTriggerCompressionTool(agentLoop) {
|
|
2
2
|
return {
|
|
3
3
|
name: 'trigger_compression',
|
|
4
|
-
description: '
|
|
4
|
+
description: 'Manually trigger context compression to free token space. Useful when the conversation is getting long and the context bar shows high usage, or before starting a complex new task that needs fresh context.',
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: 'object',
|
|
7
7
|
properties: {},
|
|
@@ -10,7 +10,7 @@ export function createTriggerCompressionTool(agentLoop) {
|
|
|
10
10
|
try {
|
|
11
11
|
const loop = agentLoop;
|
|
12
12
|
loop.needsCompression = true;
|
|
13
|
-
return '
|
|
13
|
+
return 'Compression triggered. Will execute before the next turn.';
|
|
14
14
|
}
|
|
15
15
|
catch (err) {
|
|
16
16
|
return 'Error: ' + (err instanceof Error ? err.message : String(err));
|
package/dist/tools/git-tool.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { GitManager } from '../evolution/git-manager.js';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class GitTool implements Tool {
|
|
16
16
|
readonly name = "git";
|
|
17
|
-
readonly description = "Git version control: commit, revert, branch, diff";
|
|
17
|
+
readonly description = "Git version control. Actions: commit (stage all changes and commit with message), revert (stash current changes, revert a commit by hash), branch (create and switch to a new branch), diff (show unstaged changes, use stat=true for summary).";
|
|
18
18
|
readonly inputSchema: Record<string, unknown>;
|
|
19
19
|
private gitManager;
|
|
20
20
|
private sessionId?;
|
package/dist/tools/git-tool.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export class GitTool {
|
|
14
14
|
name = 'git';
|
|
15
|
-
description = 'Git version control: commit, revert, branch, diff';
|
|
15
|
+
description = 'Git version control. Actions: commit (stage all changes and commit with message), revert (stash current changes, revert a commit by hash), branch (create and switch to a new branch), diff (show unstaged changes, use stat=true for summary).';
|
|
16
16
|
inputSchema = {
|
|
17
17
|
type: 'object',
|
|
18
18
|
properties: {
|
|
@@ -14,8 +14,11 @@ import os from 'node:os';
|
|
|
14
14
|
export function createSwitchProviderTool(agentLoop) {
|
|
15
15
|
return {
|
|
16
16
|
name: 'switch_provider',
|
|
17
|
-
description: 'Switch the active provider
|
|
18
|
-
'
|
|
17
|
+
description: 'Switch the active LLM provider (and optionally the model). ' +
|
|
18
|
+
'Pass name only to switch to a pre-configured provider. ' +
|
|
19
|
+
'Pass name + api_key to dynamically register a new provider. ' +
|
|
20
|
+
'Pass name + model to override the default model for that provider. ' +
|
|
21
|
+
'Use list_providers to see already-registered names.',
|
|
19
22
|
inputSchema: {
|
|
20
23
|
type: 'object',
|
|
21
24
|
properties: {
|
|
@@ -1447,8 +1450,8 @@ export function createResetChannelModelTool(modelRouter) {
|
|
|
1447
1450
|
}
|
|
1448
1451
|
export function createChannelInfoTool(modelRouter) {
|
|
1449
1452
|
return {
|
|
1450
|
-
name: '
|
|
1451
|
-
description: 'Get detailed info for a channel (provider, model, roles, type).',
|
|
1453
|
+
name: 'model_channel_info',
|
|
1454
|
+
description: 'Get detailed info for a model channel (provider, model, roles, type). Use list_model_channels first to see available channel names.',
|
|
1452
1455
|
inputSchema: {
|
|
1453
1456
|
type: 'object',
|
|
1454
1457
|
properties: {
|