qlogicagent 2.16.5 → 2.16.6

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.
@@ -104,6 +104,7 @@ export interface SkillListOutput {
104
104
  export interface SkillViewOutput {
105
105
  name: string;
106
106
  content: string;
107
+ skillDir?: string;
107
108
  referenceFiles?: string[];
108
109
  }
109
110
  export interface SkillManageResult {
@@ -121,7 +122,7 @@ export interface SkillToolDeps {
121
122
  /** View skill with optional file path. */
122
123
  viewSkill(name: string, filePath?: string): Promise<SkillViewOutput | null>;
123
124
  /** Run a skill — returns its instructions for the main model to follow inline (mainstream, no sub-turn). */
124
- runSkillInvocation?(skillName: string, skillContent: string, userArgs: string | undefined, signal?: AbortSignal): Promise<string>;
125
+ runSkillInvocation(skillName: string, skillContent: string, userArgs: string | undefined, skillDir: string | undefined, signal?: AbortSignal): Promise<string>;
125
126
  /** Manage skill (create/edit/patch/delete). */
126
127
  manageSkill(params: {
127
128
  action: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.16.5",
3
+ "version": "2.16.6",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -71,6 +71,7 @@
71
71
  "test": "vitest run",
72
72
  "check": "tsc --noEmit && pnpm test && pnpm run check:architecture-boundaries && pnpm run check:provider-core-boundary && pnpm run check:provider-core-release-sync && pnpm run check:pet-core-boundary && pnpm run check:workspace-hygiene && pnpm run check:package-artifact",
73
73
  "test:watch": "vitest",
74
+ "benchmark:hermes-superiority": "tsx benchmarks/hermes-superiority/runner.ts",
74
75
  "lint": "oxlint .",
75
76
  "check:architecture-boundaries": "node scripts/check-architecture-boundaries.mjs",
76
77
  "check:provider-core-boundary": "node scripts/check-provider-core-boundary.mjs",
@@ -89,7 +90,7 @@
89
90
  "dependencies": {
90
91
  "@agentclientprotocol/sdk": "^0.25.0",
91
92
  "@napi-rs/canvas": "0.1.100",
92
- "@xiaozhiclaw/pet-core": "0.1.2",
93
+ "@xiaozhiclaw/pet-core": "0.1.3",
93
94
  "@xiaozhiclaw/provider-core": "^0.1.20",
94
95
  "better-sqlite3": "^12.10.0",
95
96
  "dotenv": "^17.3.1",
@@ -1,38 +0,0 @@
1
- /**
2
- * Lightweight per-skill stats stored in `~/.qlogicagent/skill-stats.json`.
3
- * Covers learned, promoted, and registry-installed skills.
4
- */
5
- export interface SkillUsageStats {
6
- /** Total number of times this skill has been invoked/applied. */
7
- invokeCount: number;
8
- /** Number of turns where the skill was active and contributed. */
9
- activeCount: number;
10
- /** Number of times the skill received positive feedback. */
11
- positiveCount: number;
12
- /** Number of times the skill received negative feedback. */
13
- negativeCount: number;
14
- /** ISO 8601 timestamp of last use. */
15
- lastUsedAt?: string;
16
- /** Derived success rate = (invokeCount - negativeCount) / invokeCount */
17
- successRate?: number;
18
- }
19
- export interface SkillStatsFile {
20
- [skillName: string]: SkillUsageStats;
21
- }
22
- /**
23
- * Record a skill invocation. Fire-and-forget — never throws.
24
- * @param agentHome - path to `~/.qlogicagent/`
25
- * @param skillName - the skill that was invoked
26
- * @param success - whether the invocation completed without error
27
- */
28
- export declare function trackSkillInvocation(agentHome: string, skillName: string, success: boolean): void;
29
- /**
30
- * Read stats for a skill. Returns undefined if no stats recorded.
31
- */
32
- export declare function getSkillStats(agentHome: string, skillName: string): SkillUsageStats | undefined;
33
- /**
34
- * Get all skill stats. Useful for UI display.
35
- */
36
- export declare function getAllSkillStats(agentHome: string): SkillStatsFile;
37
- /** Reset cache (for testing). */
38
- export declare function resetStatsCache(): void;