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.
- package/dist/cli.js +260 -260
- package/dist/index.js +258 -258
- package/dist/protocol.js +1 -1
- package/dist/types/cli/acp-session-handlers.d.ts +3 -14
- package/dist/types/cli/cli-acp-request-handler.d.ts +2 -0
- package/dist/types/cli/handlers/pet-handler.d.ts +5 -0
- package/dist/types/cli/handlers/turn-handler.d.ts +33 -1
- package/dist/types/cli/pet-runtime.d.ts +1 -0
- package/dist/types/cli/session-history-coordinator.d.ts +0 -5
- package/dist/types/cli/stdio-server.d.ts +2 -0
- package/dist/types/cli/turn-core.d.ts +65 -0
- package/dist/types/protocol/wire/acp-protocol.d.ts +51 -9
- package/dist/types/protocol/wire/index.d.ts +1 -1
- package/dist/types/protocol/wire/notification-payloads.d.ts +1 -6
- package/dist/types/runtime/pet/index.d.ts +3 -1
- package/dist/types/runtime/pet/pet-growth-engine.d.ts +1 -4
- package/dist/types/runtime/pet/pet-profile-service.d.ts +52 -0
- package/dist/types/runtime/pet/pet-reaction-service.d.ts +1 -1
- package/dist/types/runtime/pet/pet-soul-service.d.ts +2 -33
- package/dist/types/runtime/pet/pet-types.d.ts +32 -0
- package/dist/types/transport/acp-event-emitter.d.ts +1 -1
- package/dist/types/transport/acp-server.d.ts +6 -4
- package/package.json +1 -1
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
|
|
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
|
|
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>):
|
|
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
|
-
/**
|
|
101
|
-
private
|
|
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
|
-
/**
|
|
129
|
-
|
|
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;
|