@prbe.ai/electron-sdk 0.1.15 → 0.1.16
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,8 @@ import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionR
|
|
|
2
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-Cyfgy1uD.mjs';
|
|
3
3
|
import 'events';
|
|
4
4
|
|
|
5
|
+
var version = "0.1.16";
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* tools/index.ts — Tool interface, registry, and closure tool
|
|
7
9
|
*
|
|
@@ -344,4 +346,4 @@ declare class BashExecuteTool implements PRBETool {
|
|
|
344
346
|
*/
|
|
345
347
|
declare const PROBE_MARK_SVG = "<svg width=\"256\" height=\"256\" viewBox=\"0 0 256 256\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M50 112 L114 148 L50 184 Z\" fill=\"#111111\" opacity=\"0.07\"/>\n <path d=\"M70 86 L148 134 L70 182 Z\" fill=\"#111111\" opacity=\"0.18\"/>\n <path d=\"M92 56 L192 118 L92 180 Z\" fill=\"#111111\"/>\n</svg>";
|
|
346
348
|
|
|
347
|
-
export { AskUserTool, BashExecuteTool, ClearAppLogsTool, FindFilesTool, FlagAppLogsTool, FlagFileTool, FlaggedFileIn, InteractionPayload, InteractionResponse, InvestigationSource, ListDirectoryTool, type LogEntry, PRBEAgent, PRBEAgentConfig, PRBEAgentState, PRBEClosureTool, PRBEInteractionRequester, PRBELogCapture, type PRBETool, PRBEToolDeclaration, PRBEToolParameter, PRBEToolRegistry, PROBE_MARK_SVG, PollResponse, ReadAppLogsTool, ReadFileTool, SearchAppLogsTool, SearchContentTool, TicketInfoOut, humanReadableSize, resolveAndValidate, resolveWithAccessRequest };
|
|
349
|
+
export { AskUserTool, BashExecuteTool, ClearAppLogsTool, FindFilesTool, FlagAppLogsTool, FlagFileTool, FlaggedFileIn, InteractionPayload, InteractionResponse, InvestigationSource, ListDirectoryTool, type LogEntry, PRBEAgent, PRBEAgentConfig, PRBEAgentState, PRBEClosureTool, PRBEInteractionRequester, PRBELogCapture, type PRBETool, PRBEToolDeclaration, PRBEToolParameter, PRBEToolRegistry, PROBE_MARK_SVG, PollResponse, ReadAppLogsTool, ReadFileTool, version as SDK_VERSION, SearchAppLogsTool, SearchContentTool, TicketInfoOut, humanReadableSize, resolveAndValidate, resolveWithAccessRequest };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { P as PRBEToolDeclaration, a as PRBEToolParameter, b as PRBEInteractionR
|
|
|
2
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-Cyfgy1uD.js';
|
|
3
3
|
import 'events';
|
|
4
4
|
|
|
5
|
+
var version = "0.1.16";
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* tools/index.ts — Tool interface, registry, and closure tool
|
|
7
9
|
*
|
|
@@ -344,4 +346,4 @@ declare class BashExecuteTool implements PRBETool {
|
|
|
344
346
|
*/
|
|
345
347
|
declare const PROBE_MARK_SVG = "<svg width=\"256\" height=\"256\" viewBox=\"0 0 256 256\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M50 112 L114 148 L50 184 Z\" fill=\"#111111\" opacity=\"0.07\"/>\n <path d=\"M70 86 L148 134 L70 182 Z\" fill=\"#111111\" opacity=\"0.18\"/>\n <path d=\"M92 56 L192 118 L92 180 Z\" fill=\"#111111\"/>\n</svg>";
|
|
346
348
|
|
|
347
|
-
export { AskUserTool, BashExecuteTool, ClearAppLogsTool, FindFilesTool, FlagAppLogsTool, FlagFileTool, FlaggedFileIn, InteractionPayload, InteractionResponse, InvestigationSource, ListDirectoryTool, type LogEntry, PRBEAgent, PRBEAgentConfig, PRBEAgentState, PRBEClosureTool, PRBEInteractionRequester, PRBELogCapture, type PRBETool, PRBEToolDeclaration, PRBEToolParameter, PRBEToolRegistry, PROBE_MARK_SVG, PollResponse, ReadAppLogsTool, ReadFileTool, SearchAppLogsTool, SearchContentTool, TicketInfoOut, humanReadableSize, resolveAndValidate, resolveWithAccessRequest };
|
|
349
|
+
export { AskUserTool, BashExecuteTool, ClearAppLogsTool, FindFilesTool, FlagAppLogsTool, FlagFileTool, FlaggedFileIn, InteractionPayload, InteractionResponse, InvestigationSource, ListDirectoryTool, type LogEntry, PRBEAgent, PRBEAgentConfig, PRBEAgentState, PRBEClosureTool, PRBEInteractionRequester, PRBELogCapture, type PRBETool, PRBEToolDeclaration, PRBEToolParameter, PRBEToolRegistry, PROBE_MARK_SVG, PollResponse, ReadAppLogsTool, ReadFileTool, version as SDK_VERSION, SearchAppLogsTool, SearchContentTool, TicketInfoOut, humanReadableSize, resolveAndValidate, resolveWithAccessRequest };
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __export(src_exports, {
|
|
|
56
56
|
PROBE_MARK_SVG: () => PROBE_MARK_SVG,
|
|
57
57
|
ReadAppLogsTool: () => ReadAppLogsTool,
|
|
58
58
|
ReadFileTool: () => ReadFileTool,
|
|
59
|
+
SDK_VERSION: () => version,
|
|
59
60
|
SearchAppLogsTool: () => SearchAppLogsTool,
|
|
60
61
|
SearchContentTool: () => SearchContentTool,
|
|
61
62
|
ToolName: () => ToolName,
|
|
@@ -69,6 +70,9 @@ __export(src_exports, {
|
|
|
69
70
|
});
|
|
70
71
|
module.exports = __toCommonJS(src_exports);
|
|
71
72
|
|
|
73
|
+
// package.json
|
|
74
|
+
var version = "0.1.16";
|
|
75
|
+
|
|
72
76
|
// src/agent.ts
|
|
73
77
|
var fs3 = __toESM(require("fs"));
|
|
74
78
|
var path5 = __toESM(require("path"));
|
|
@@ -2030,7 +2034,7 @@ var PRBEAgent = class _PRBEAgent {
|
|
|
2030
2034
|
};
|
|
2031
2035
|
this.interactionHandler = config.interactionHandler;
|
|
2032
2036
|
this.appDataPath = config.appDataPath;
|
|
2033
|
-
this.sessionMetadata = config.sessionMetadata
|
|
2037
|
+
this.sessionMetadata = { sdk_version: version, ...config.sessionMetadata };
|
|
2034
2038
|
if (this.appDataPath && !this.config.autoApprovedDirs.includes(this.appDataPath)) {
|
|
2035
2039
|
this.config.autoApprovedDirs.push(this.appDataPath);
|
|
2036
2040
|
}
|
|
@@ -2793,6 +2797,7 @@ var PROBE_MARK_SVG = `<svg width="256" height="256" viewBox="0 0 256 256" fill="
|
|
|
2793
2797
|
PROBE_MARK_SVG,
|
|
2794
2798
|
ReadAppLogsTool,
|
|
2795
2799
|
ReadFileTool,
|
|
2800
|
+
SDK_VERSION,
|
|
2796
2801
|
SearchAppLogsTool,
|
|
2797
2802
|
SearchContentTool,
|
|
2798
2803
|
ToolName,
|