qlogicagent 2.10.7 → 2.10.9

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.
@@ -7,10 +7,6 @@
7
7
  * - pet.status: Get current pet soul + stats
8
8
  * - pet.forge: Generate a custom .pet file from image/text (P4)
9
9
  */
10
- /**
11
- * Mixin: call with `this` bound to the TurnHandler (StdioServer) instance.
12
- * Assumes `this.sendNotification(method, params)` and `this.sendResponse(id, result)` exist.
13
- */
14
10
  export declare function handlePetHatch(this: any, msg: any): Promise<void>;
15
11
  export declare function handlePetInteract(this: any, msg: any): Promise<void>;
16
12
  export declare function handlePetStatus(this: any, msg: any): Promise<void>;
@@ -82,12 +82,14 @@ export declare class StdioServer {
82
82
  private resumedSessionHistory;
83
83
  /** Idle dream timer — fires after configurable idle period to trigger memory consolidation. */
84
84
  private idleDreamTimer;
85
+ private modelRegistryHydration;
85
86
  constructor(config: StdioServerConfig);
86
87
  /**
87
88
  * Get the active project workspace directory.
88
89
  * Reads from projectStore (single source of truth).
89
90
  */
90
91
  private getActiveProjectRoot;
92
+ ensureModelRegistryHydrated(): Promise<void>;
91
93
  /**
92
94
  * Single entry point for updating the active workdir.
93
95
  * Centralizes all side-effects (bootstrap workdir, media persistence, etc.).
@@ -1,9 +1,3 @@
1
- /**
2
- * PetSoulService — manages pet identity (hatching, persistence, stats).
3
- *
4
- * Hatching: deterministic identity via hash(userId) + LLM-generated soul.
5
- * Persistence: stored in project workspace under .qlogicagent/pet/soul.json
6
- */
7
1
  export interface PetStats {
8
2
  grip: number;
9
3
  patience: number;
@@ -27,8 +21,8 @@ export interface PetSoul {
27
21
  experience: number;
28
22
  hatchedAt: string;
29
23
  }
30
- /** Breed system (design §6.2): 7 breeds with deterministic hash selection. */
31
24
  export interface PetBreed {
25
+ id: string;
32
26
  name: string;
33
27
  colors: {
34
28
  primary: string;
@@ -41,31 +35,18 @@ export declare class PetSoulService {
41
35
  private soul;
42
36
  private storagePath;
43
37
  constructor(workspaceDir: string);
44
- /**
45
- * Load existing soul from disk. Returns null if not hatched.
46
- */
47
38
  load(): PetSoul | null;
48
- /**
49
- * Hatch a new pet soul. Uses LLM for name/personality/catchphrase.
50
- * If generateSoul is provided, uses it; otherwise falls back to defaults.
51
- */
52
39
  hatch(userId: string, generateSoul?: (rarity: string, stats: PetStats) => Promise<{
53
40
  name: string;
54
41
  personality: string;
55
42
  catchphrase: string;
56
- }>): Promise<PetSoul>;
57
- /**
58
- * Add experience points. Returns true if leveled up.
59
- */
43
+ }>, requestedBreedId?: string): Promise<PetSoul>;
60
44
  addExperience(xp: number): {
61
45
  leveledUp: boolean;
62
46
  level: number;
63
47
  experience: number;
64
48
  };
65
49
  getSoul(): PetSoul | null;
66
- /**
67
- * Update soul (e.g., after growth/stat changes) and persist.
68
- */
69
50
  updateSoul(soul: PetSoul): void;
70
51
  private persist;
71
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.10.7",
3
+ "version": "2.10.9",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",