@prbe.ai/electron-sdk 0.1.13 → 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 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +237 -227
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +236 -227
- 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;
|
|
@@ -159,6 +159,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
159
159
|
private hookRendererLogs;
|
|
160
160
|
private static mapElectronLogLevel;
|
|
161
161
|
get investigationSource(): InvestigationSource;
|
|
162
|
+
sendConversationMessage(content: string): void;
|
|
162
163
|
requestUserInteraction(payload: InteractionPayload): Promise<InteractionResponse>;
|
|
163
164
|
/**
|
|
164
165
|
* Add an additional root directory to the runtime allowed roots.
|
|
@@ -209,7 +210,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
209
210
|
static clearPersistedData(): void;
|
|
210
211
|
private investigateForCR;
|
|
211
212
|
private connectToProxy;
|
|
212
|
-
private
|
|
213
|
+
private handleMessage;
|
|
213
214
|
private extractArgs;
|
|
214
215
|
private extractUploadPrefix;
|
|
215
216
|
private static backgroundUpload;
|
|
@@ -292,6 +293,8 @@ declare class FlagFileTool implements PRBETool {
|
|
|
292
293
|
* tools/interactive.ts — AskUserTool
|
|
293
294
|
*
|
|
294
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.
|
|
295
298
|
*/
|
|
296
299
|
|
|
297
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;
|
|
@@ -159,6 +159,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
159
159
|
private hookRendererLogs;
|
|
160
160
|
private static mapElectronLogLevel;
|
|
161
161
|
get investigationSource(): InvestigationSource;
|
|
162
|
+
sendConversationMessage(content: string): void;
|
|
162
163
|
requestUserInteraction(payload: InteractionPayload): Promise<InteractionResponse>;
|
|
163
164
|
/**
|
|
164
165
|
* Add an additional root directory to the runtime allowed roots.
|
|
@@ -209,7 +210,7 @@ declare class PRBEAgent implements PRBEInteractionRequester {
|
|
|
209
210
|
static clearPersistedData(): void;
|
|
210
211
|
private investigateForCR;
|
|
211
212
|
private connectToProxy;
|
|
212
|
-
private
|
|
213
|
+
private handleMessage;
|
|
213
214
|
private extractArgs;
|
|
214
215
|
private extractUploadPrefix;
|
|
215
216
|
private static backgroundUpload;
|
|
@@ -292,6 +293,8 @@ declare class FlagFileTool implements PRBETool {
|
|
|
292
293
|
* tools/interactive.ts — AskUserTool
|
|
293
294
|
*
|
|
294
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.
|
|
295
298
|
*/
|
|
296
299
|
|
|
297
300
|
declare class AskUserTool implements PRBETool {
|