@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 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-B_KS1-FJ.mjs';
2
- export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, D as DEFAULT_PRBE_STATE, j as InteractionType, k as InvestigationResult, M as MIDDLEWARE_URL, l as PRBEAgentConfigKey, m as PRBEAgentError, n as PRBEAgentErrorType, o as PRBEAgentStatus, p as PRBEAgentStatusType, q as PRBECRInvestigation, r as PRBECompletedInvestigation, s as PRBEInteractionHandler, t as PRBESerializedCR, u as PRBESerializedCompletedInvestigation, v as PRBESerializedState, w as PRBESerializedTicket, x as PRBEStateEvent, y as PRBEStatusEvent, z as PollRequest, R as RequestPathAccessPayload, B as RequestPathAccessResponse, E as RequestPermissionPayload, G as RequestPermissionResponse, H as ResolveSessionsRequest, J as ResolveSessionsResponse, K as ResolvedInteraction, L as ResolvedTicketOut, N as TicketInfoRequest, O as TicketInfoResponse, Q as TicketStatusOut, S as ToolName, U as ToolParamType, W as WSMessage, V as WSMessageType, X as redactPII, Y as serializePRBEState } from './types-B_KS1-FJ.mjs';
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 activeWS;
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 sendCancel;
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-B_KS1-FJ.js';
2
- export { A as API_URL, h as AskQuestionPayload, i as AskQuestionResponse, C as ContextRequestOut, D as DEFAULT_PRBE_STATE, j as InteractionType, k as InvestigationResult, M as MIDDLEWARE_URL, l as PRBEAgentConfigKey, m as PRBEAgentError, n as PRBEAgentErrorType, o as PRBEAgentStatus, p as PRBEAgentStatusType, q as PRBECRInvestigation, r as PRBECompletedInvestigation, s as PRBEInteractionHandler, t as PRBESerializedCR, u as PRBESerializedCompletedInvestigation, v as PRBESerializedState, w as PRBESerializedTicket, x as PRBEStateEvent, y as PRBEStatusEvent, z as PollRequest, R as RequestPathAccessPayload, B as RequestPathAccessResponse, E as RequestPermissionPayload, G as RequestPermissionResponse, H as ResolveSessionsRequest, J as ResolveSessionsResponse, K as ResolvedInteraction, L as ResolvedTicketOut, N as TicketInfoRequest, O as TicketInfoResponse, Q as TicketStatusOut, S as ToolName, U as ToolParamType, W as WSMessage, V as WSMessageType, X as redactPII, Y as serializePRBEState } from './types-B_KS1-FJ.js';
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 activeWS;
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 sendCancel;
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 {