@zhin.js/core 1.0.53 → 1.0.55
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/CHANGELOG.md +23 -0
- package/lib/adapter.d.ts +13 -23
- package/lib/adapter.d.ts.map +1 -1
- package/lib/adapter.js +26 -71
- package/lib/adapter.js.map +1 -1
- package/lib/built/adapter-process.d.ts.map +1 -1
- package/lib/built/adapter-process.js +1 -0
- package/lib/built/adapter-process.js.map +1 -1
- package/lib/built/agent-preset.d.ts +63 -0
- package/lib/built/agent-preset.d.ts.map +1 -0
- package/lib/built/agent-preset.js +76 -0
- package/lib/built/agent-preset.js.map +1 -0
- package/lib/built/component.d.ts +2 -2
- package/lib/built/component.d.ts.map +1 -1
- package/lib/built/component.js +3 -2
- package/lib/built/component.js.map +1 -1
- package/lib/built/database.d.ts +2 -2
- package/lib/built/database.d.ts.map +1 -1
- package/lib/built/database.js.map +1 -1
- package/lib/built/skill.d.ts +10 -0
- package/lib/built/skill.d.ts.map +1 -1
- package/lib/built/skill.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/plugin.d.ts +43 -95
- package/lib/plugin.d.ts.map +1 -1
- package/lib/plugin.js +135 -268
- package/lib/plugin.js.map +1 -1
- package/lib/types.d.ts +11 -0
- package/lib/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/adapter.ts +37 -95
- package/src/built/adapter-process.ts +1 -0
- package/src/built/agent-preset.ts +136 -0
- package/src/built/component.ts +5 -3
- package/src/built/database.ts +2 -1
- package/src/built/skill.ts +14 -0
- package/src/index.ts +2 -0
- package/src/plugin.ts +198 -373
- package/src/types.ts +16 -0
package/src/types.ts
CHANGED
|
@@ -474,6 +474,22 @@ export namespace Tool {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
// ============================================================================
|
|
478
|
+
// 插件清单(plugin.yml)
|
|
479
|
+
// ============================================================================
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* 插件清单元数据(从 plugin.yml 解析)
|
|
483
|
+
*/
|
|
484
|
+
export interface PluginManifest {
|
|
485
|
+
/** 插件名称 */
|
|
486
|
+
name: string;
|
|
487
|
+
/** 插件描述 */
|
|
488
|
+
description?: string;
|
|
489
|
+
/** 插件版本 */
|
|
490
|
+
version?: string;
|
|
491
|
+
}
|
|
492
|
+
|
|
477
493
|
// ============================================================================
|
|
478
494
|
// 兼容性别名(逐步废弃)
|
|
479
495
|
// ============================================================================
|