qlogicagent 2.10.46 → 2.10.48

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.
@@ -1,39 +1,8 @@
1
- export interface PetStats {
2
- grip: number;
3
- patience: number;
4
- curiosity: number;
5
- appetite: number;
6
- humor: number;
7
- }
8
- export interface PetSoul {
9
- name: string;
10
- species: string;
11
- personality: string;
12
- catchphrase: string;
13
- stats: PetStats;
14
- rarity: string;
15
- breed?: string;
16
- breedColors?: {
17
- primary: string;
18
- secondary: string;
19
- };
20
- level: number;
21
- experience: number;
22
- hatchedAt: string;
23
- }
24
- export interface PetBreed {
25
- id: string;
26
- name: string;
27
- colors: {
28
- primary: string;
29
- secondary: string;
30
- };
31
- rarity: string;
32
- }
1
+ import type { PetSoul, PetStats } from "./pet-types.js";
33
2
  export declare function hasPetAgentBoundaryViolationText(value: string): boolean;
34
3
  export declare class PetSoulService {
35
4
  private soul;
36
- private storagePath;
5
+ private profileService;
37
6
  constructor(_workspaceDir: string, ownerUserId?: string);
38
7
  load(): PetSoul | null;
39
8
  hatch(userId: string, generateSoul?: (rarity: string, stats: PetStats) => Promise<{
@@ -0,0 +1,32 @@
1
+ export interface PetStats {
2
+ grip: number;
3
+ patience: number;
4
+ curiosity: number;
5
+ appetite: number;
6
+ humor: number;
7
+ }
8
+ export interface PetSoul {
9
+ name: string;
10
+ species: string;
11
+ personality: string;
12
+ catchphrase: string;
13
+ stats: PetStats;
14
+ rarity: string;
15
+ breed?: string;
16
+ breedColors?: {
17
+ primary: string;
18
+ secondary: string;
19
+ };
20
+ level: number;
21
+ experience: number;
22
+ hatchedAt: string;
23
+ }
24
+ export interface PetBreed {
25
+ id: string;
26
+ name: string;
27
+ colors: {
28
+ primary: string;
29
+ secondary: string;
30
+ };
31
+ rarity: string;
32
+ }
@@ -18,4 +18,4 @@ import type { AcpServer } from "./acp-server.js";
18
18
  * @param method Internal notification method name
19
19
  * @param params Internal notification payload
20
20
  */
21
- export declare function emitAcpUpdate(server: AcpServer, sessionId: string, method: string, params: Record<string, unknown>): void;
21
+ export declare function emitAcpUpdate(server: AcpServer, sessionId: string, method: string, params: Record<string, unknown>): boolean;
@@ -46,6 +46,7 @@ export interface AcpRequestHandler {
46
46
  handleAcpPermissionResponse(permissionId: string, optionId: string): void;
47
47
  handleAcpAbort(params: {
48
48
  sessionId: string;
49
+ turnId?: string;
49
50
  }): Promise<void>;
50
51
  handleAcpDream(params: {
51
52
  sessionId: string;
@@ -97,8 +98,8 @@ export declare class AcpServer {
97
98
  private hostSupportsExtendedEvents;
98
99
  /** Whether the host supports x/ extended RPC methods */
99
100
  private hostSupportsExtendedMethods;
100
- /** Active session ID (ACP v1 = single session per connection) */
101
- private activeSessionId;
101
+ /** Sessions registered via session/new on this connection (multi-session per connection). */
102
+ private registeredSessions;
102
103
  /** Pending permission requests (agent -> host) waiting for response */
103
104
  private pendingPermissions;
104
105
  /** Map from outbound JSON-RPC request id -> permissionId for response matching */
@@ -125,8 +126,8 @@ export declare class AcpServer {
125
126
  get supportsExtendedEvents(): boolean;
126
127
  /** Whether the host supports extended methods */
127
128
  get supportsExtendedMethods(): boolean;
128
- /** Get the active session ID */
129
- get sessionId(): string | null;
129
+ /** Whether a session id has been registered via session/new on this connection. */
130
+ hasSession(sessionId: string): boolean;
130
131
  private handleRequest;
131
132
  private handleNotification;
132
133
  private handleResponse;
@@ -136,6 +137,7 @@ export declare class AcpServer {
136
137
  private onSessionEnd;
137
138
  private onSessionSetConfig;
138
139
  private onAbort;
140
+ private onCancel;
139
141
  private onDream;
140
142
  private sendResult;
141
143
  private sendError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.10.46",
3
+ "version": "2.10.48",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",