@prbe.ai/electron-sdk 0.1.12 → 0.1.14
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/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +238 -250
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +237 -250
- package/dist/index.mjs.map +1 -1
- package/dist/{types-B_KS1-FJ.d.mts → types-Bn2vj7rp.d.mts} +27 -11
- package/dist/{types-B_KS1-FJ.d.ts → types-Bn2vj7rp.d.ts} +27 -11
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -1
- package/dist/types.mjs +3 -0
- package/dist/types.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionRequester, F as FlaggedFileIn, c as PRBEAgentState, d as PRBEAgentConfig, I as InvestigationSource, e as InteractionPayload, f as InteractionResponse, g as PollResponse, T as TicketInfoOut } from './types-
|
|
2
|
-
export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, D as DEFAULT_PRBE_STATE,
|
|
1
|
+
import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionRequester, F as FlaggedFileIn, c as PRBEAgentState, d as PRBEAgentConfig, I as InvestigationSource, e as InteractionPayload, f as InteractionResponse, g as PollResponse, T as TicketInfoOut } from './types-Bn2vj7rp.mjs';
|
|
2
|
+
export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, j as ConversationEntry, k as ConversationRole, D as DEFAULT_PRBE_STATE, l as InteractionType, m as InvestigationResult, M as MIDDLEWARE_URL, n as PRBEAgentConfigKey, o as PRBEAgentError, p as PRBEAgentErrorType, q as PRBEAgentStatus, r as PRBEAgentStatusType, s as PRBECRInvestigation, t as PRBECompletedInvestigation, u as PRBEInteractionHandler, v as PRBESerializedCR, w as PRBESerializedCompletedInvestigation, x as PRBESerializedState, y as PRBESerializedTicket, z as PRBEStateEvent, B as PRBEStatusEvent, E as PollRequest, R as RequestPathAccessPayload, G as RequestPathAccessResponse, H as RequestPermissionPayload, J as RequestPermissionResponse, K as ResolveSessionsRequest, L as ResolveSessionsResponse, N as ResolvedInteraction, O as ResolvedTicketOut, Q as TicketInfoRequest, S as TicketInfoResponse, U as TicketStatusOut, V as ToolName, W as ToolParamType, X as WSMessage, Y as WSMessageType, Z as redactPII, _ as serializePRBEState } from './types-Bn2vj7rp.mjs';
|
|
3
3
|
import 'events';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -140,7 +140,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
140
140
|
private readonly registry;
|
|
141
141
|
private readonly grantedPaths;
|
|
142
142
|
private userCancelled;
|
|
143
|
-
private
|
|
143
|
+
private activeConnection;
|
|
144
144
|
private pollingTimer;
|
|
145
145
|
private persistedData;
|
|
146
146
|
private fetchAbortController;
|
|
@@ -152,8 +152,6 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
152
152
|
private get agentID();
|
|
153
153
|
private get trackedSessionIDs();
|
|
154
154
|
private set trackedSessionIDs(value);
|
|
155
|
-
private get respondedCRIDs();
|
|
156
|
-
private set respondedCRIDs(value);
|
|
157
155
|
private syncPolling;
|
|
158
156
|
private addTrackedSession;
|
|
159
157
|
constructor(config: PRBEAgentConfig);
|
|
@@ -161,6 +159,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
161
159
|
private hookRendererLogs;
|
|
162
160
|
private static mapElectronLogLevel;
|
|
163
161
|
get investigationSource(): InvestigationSource;
|
|
162
|
+
sendConversationMessage(content: string): void;
|
|
164
163
|
requestUserInteraction(payload: InteractionPayload): Promise<InteractionResponse>;
|
|
165
164
|
/**
|
|
166
165
|
* Add an additional root directory to the runtime allowed roots.
|
|
@@ -211,7 +210,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
211
210
|
static clearPersistedData(): void;
|
|
212
211
|
private investigateForCR;
|
|
213
212
|
private connectToProxy;
|
|
214
|
-
private
|
|
213
|
+
private handleMessage;
|
|
215
214
|
private extractArgs;
|
|
216
215
|
private extractUploadPrefix;
|
|
217
216
|
private static backgroundUpload;
|
|
@@ -294,6 +293,8 @@ declare class FlagFileTool implements PRBETool {
|
|
|
294
293
|
* tools/interactive.ts — AskUserTool
|
|
295
294
|
*
|
|
296
295
|
* Allows the agent to ask the user a question during an investigation.
|
|
296
|
+
* The question text is displayed via conversation history (middleware handles this).
|
|
297
|
+
* This tool only prompts the user for input with an optional reason hint.
|
|
297
298
|
*/
|
|
298
299
|
|
|
299
300
|
declare class AskUserTool implements PRBETool {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionRequester, F as FlaggedFileIn, c as PRBEAgentState, d as PRBEAgentConfig, I as InvestigationSource, e as InteractionPayload, f as InteractionResponse, g as PollResponse, T as TicketInfoOut } from './types-
|
|
2
|
-
export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, D as DEFAULT_PRBE_STATE,
|
|
1
|
+
import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionRequester, F as FlaggedFileIn, c as PRBEAgentState, d as PRBEAgentConfig, I as InvestigationSource, e as InteractionPayload, f as InteractionResponse, g as PollResponse, T as TicketInfoOut } from './types-Bn2vj7rp.js';
|
|
2
|
+
export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, j as ConversationEntry, k as ConversationRole, D as DEFAULT_PRBE_STATE, l as InteractionType, m as InvestigationResult, M as MIDDLEWARE_URL, n as PRBEAgentConfigKey, o as PRBEAgentError, p as PRBEAgentErrorType, q as PRBEAgentStatus, r as PRBEAgentStatusType, s as PRBECRInvestigation, t as PRBECompletedInvestigation, u as PRBEInteractionHandler, v as PRBESerializedCR, w as PRBESerializedCompletedInvestigation, x as PRBESerializedState, y as PRBESerializedTicket, z as PRBEStateEvent, B as PRBEStatusEvent, E as PollRequest, R as RequestPathAccessPayload, G as RequestPathAccessResponse, H as RequestPermissionPayload, J as RequestPermissionResponse, K as ResolveSessionsRequest, L as ResolveSessionsResponse, N as ResolvedInteraction, O as ResolvedTicketOut, Q as TicketInfoRequest, S as TicketInfoResponse, U as TicketStatusOut, V as ToolName, W as ToolParamType, X as WSMessage, Y as WSMessageType, Z as redactPII, _ as serializePRBEState } from './types-Bn2vj7rp.js';
|
|
3
3
|
import 'events';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -140,7 +140,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
140
140
|
private readonly registry;
|
|
141
141
|
private readonly grantedPaths;
|
|
142
142
|
private userCancelled;
|
|
143
|
-
private
|
|
143
|
+
private activeConnection;
|
|
144
144
|
private pollingTimer;
|
|
145
145
|
private persistedData;
|
|
146
146
|
private fetchAbortController;
|
|
@@ -152,8 +152,6 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
152
152
|
private get agentID();
|
|
153
153
|
private get trackedSessionIDs();
|
|
154
154
|
private set trackedSessionIDs(value);
|
|
155
|
-
private get respondedCRIDs();
|
|
156
|
-
private set respondedCRIDs(value);
|
|
157
155
|
private syncPolling;
|
|
158
156
|
private addTrackedSession;
|
|
159
157
|
constructor(config: PRBEAgentConfig);
|
|
@@ -161,6 +159,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
161
159
|
private hookRendererLogs;
|
|
162
160
|
private static mapElectronLogLevel;
|
|
163
161
|
get investigationSource(): InvestigationSource;
|
|
162
|
+
sendConversationMessage(content: string): void;
|
|
164
163
|
requestUserInteraction(payload: InteractionPayload): Promise<InteractionResponse>;
|
|
165
164
|
/**
|
|
166
165
|
* Add an additional root directory to the runtime allowed roots.
|
|
@@ -211,7 +210,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
211
210
|
static clearPersistedData(): void;
|
|
212
211
|
private investigateForCR;
|
|
213
212
|
private connectToProxy;
|
|
214
|
-
private
|
|
213
|
+
private handleMessage;
|
|
215
214
|
private extractArgs;
|
|
216
215
|
private extractUploadPrefix;
|
|
217
216
|
private static backgroundUpload;
|
|
@@ -294,6 +293,8 @@ declare class FlagFileTool implements PRBETool {
|
|
|
294
293
|
* tools/interactive.ts — AskUserTool
|
|
295
294
|
*
|
|
296
295
|
* Allows the agent to ask the user a question during an investigation.
|
|
296
|
+
* The question text is displayed via conversation history (middleware handles this).
|
|
297
|
+
* This tool only prompts the user for input with an optional reason hint.
|
|
297
298
|
*/
|
|
298
299
|
|
|
299
300
|
declare class AskUserTool implements PRBETool {
|