@pensar/apex 2.3.0 → 2.4.0-canary.0d951436
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/build/agent-35y2d05y.js +19 -0
- package/build/agent-cd1z4tst.js +29 -0
- package/build/{agent-9xna7jhw.js → agent-x3czh43n.js} +11 -11
- package/build/{apps-43pqbz7r.js → apps-bsgpnjp9.js} +57 -21
- package/build/{auth-c1z670rx.js → auth-6dx8c1kx.js} +38 -20
- package/build/authentication-nx61v9a4.js +19 -0
- package/build/blackboxAgent-1bzm1tmt.js +19 -0
- package/build/{blackboxPentest-tgc2t3y6.js → blackboxPentest-r9kch0a4.js} +17 -17
- package/build/{cli-vckbhnyk.js → cli-36hqpmfk.js} +2 -2
- package/build/{cli-50906d27.js → cli-4zwpvajr.js} +91 -29
- package/build/{cli-n2m2yy5b.js → cli-77fm0t26.js} +1348 -657
- package/build/{cli-eveg9djy.js → cli-8qcrjget.js} +3 -2
- package/build/{cli-bnkgdywr.js → cli-91s2kda0.js} +1 -1
- package/build/{cli-zm8tfpv7.js → cli-aqknajfz.js} +25 -9
- package/build/{cli-8rxa073f.js → cli-bc05qbss.js} +8 -6
- package/build/{cli-f7hanqbw.js → cli-czj2n2c0.js} +2 -2
- package/build/{cli-q24twygk.js → cli-dm0fc0bm.js} +1 -1
- package/build/{cli-zk1ch6qf.js → cli-dy295be8.js} +34 -9
- package/build/{cli-yz80qkzn.js → cli-ee3axgts.js} +7 -1
- package/build/{cli-f71s6kcw.js → cli-eza3mmy4.js} +81 -215
- package/build/{cli-j0n189ee.js → cli-gj651k8k.js} +2 -2
- package/build/{cli-gpnb45ck.js → cli-j54qa6tm.js} +7 -7
- package/build/{cli-wszshs5e.js → cli-k71t434r.js} +4 -4
- package/build/{cli-jyp2c6th.js → cli-m70zer7y.js} +2 -2
- package/build/{cli-bv2807tj.js → cli-nanb1srp.js} +3 -3
- package/build/{cli-72b18z0n.js → cli-qa226xfj.js} +3 -3
- package/build/{cli-3k1x5rn3.js → cli-swpbx60z.js} +1045 -1045
- package/build/{cli-7tw4xfnw.js → cli-tx0y7xq7.js} +1 -1
- package/build/{cli-zx8gk8xv.js → cli-wy0avc95.js} +296 -54
- package/build/{cli-baqhqbe5.js → cli-x0981jez.js} +3 -3
- package/build/{cli-barsn8br.js → cli-x2ss1hx3.js} +2 -2
- package/build/cli.js +52 -46
- package/build/{config-jzqjz606.js → config-c5mkb3ap.js} +5 -5
- package/build/{doctor-q3qws68e.js → doctor-4ndz0hmv.js} +10 -9
- package/build/{fastStrike-ebz1ph9a.js → fastStrike-hremncmc.js} +36 -16
- package/build/{fixes-86yebsj0.js → fixes-wve8wxjf.js} +19 -19
- package/build/index-1fvahjj1.js +12 -0
- package/build/{index-97vx1a24.js → index-6z3zyd07.js} +1517 -1444
- package/build/{index-8db1d2q3.js → index-8dt4w97g.js} +18 -18
- package/build/{index-h2hj2hj9.js → index-cbwn03kz.js} +16 -16
- package/build/{index-32hn8rrw.js → index-e8kpagx3.js} +3 -3
- package/build/{index-mr2cseg4.js → index-g3335zmk.js} +19 -19
- package/build/{index-gq9h8j5j.js → index-mtq7kmxz.js} +132 -132
- package/build/{index-tke6896d.js → index-psqjpw5m.js} +10 -10
- package/build/{index-e8c8zcrf.js → index-q9j0rw0v.js} +31 -26
- package/build/{index-468j74f3.js → index-x4acbkj9.js} +113 -97
- package/build/{issues-kh4wg8c5.js → issues-3ncz73eg.js} +19 -19
- package/build/{logs-bj28xmbf.js → logs-rv6x7g2m.js} +19 -19
- package/build/{main-3d7dfdvs.js → main-mmjp338j.js} +9 -9
- package/build/{multipart-parser-6zd16497.js → multipart-parser-g2xxkezz.js} +2 -2
- package/build/{offesecAgent-8ky7gccp.js → offesecAgent-p11pnbfm.js} +11 -11
- package/build/{parse-7djk9jyf.js → parse-rtccymzn.js} +3 -3
- package/build/pentest-9bvp6hdm.js +29 -0
- package/build/{pentests-62d6zw6p.js → pentests-8ttfwswe.js} +19 -19
- package/build/{targetedPentest-me4jnr3z.js → targetedPentest-n0reytxj.js} +14 -14
- package/build/{targets-e5k1mrky.js → targets-0waj2qfv.js} +19 -19
- package/build/threatModel-rg7p1ay0.js +27 -0
- package/build/{token-rdcbn380.js → token-3bbp59y6.js} +3 -3
- package/build/{token-util-sxb85ahn.js → token-util-6xjme11b.js} +2 -2
- package/build/{uninstall-jt1bca2p.js → uninstall-r22z1tmb.js} +2 -2
- package/build/{upload-krd8bnex.js → upload-42e1pt7w.js} +11 -11
- package/build/{utils-skmqhyfg.js → utils-k3vt2fmr.js} +17 -13
- package/package.json +1 -1
- package/build/agent-71z4e7jg.js +0 -19
- package/build/agent-ga5fecfs.js +0 -27
- package/build/authentication-hgs7ym0m.js +0 -19
- package/build/blackboxAgent-gem3mxa9.js +0 -19
- package/build/index-ag14v3sg.js +0 -12
- package/build/pentest-rs0181nf.js +0 -29
- package/build/threatModel-k4f3zgqd.js +0 -27
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
signGatewayRequest,
|
|
15
15
|
startDeviceFlow,
|
|
16
16
|
validateGateway
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
17
|
+
} from "./cli-36hqpmfk.js";
|
|
18
|
+
import"./cli-czj2n2c0.js";
|
|
19
|
+
import"./cli-8qcrjget.js";
|
|
20
|
+
import"./cli-x2ss1hx3.js";
|
|
21
|
+
import"./cli-bc05qbss.js";
|
|
22
22
|
init_auth();
|
|
23
23
|
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
startDeviceFlow,
|
|
27
|
-
signGatewayRequest,
|
|
28
|
-
selectWorkspace,
|
|
29
|
-
pollWorkspaceSelection,
|
|
30
|
-
pollWorkOSToken,
|
|
31
|
-
pollLegacyToken,
|
|
32
|
-
pollForWorkspaceCreation,
|
|
33
|
-
isTokenExpired,
|
|
34
|
-
isConnected,
|
|
35
|
-
fetchWorkspaces,
|
|
36
|
-
ensureValidToken,
|
|
25
|
+
createWorkspaceSelection,
|
|
37
26
|
disconnect,
|
|
38
|
-
|
|
27
|
+
ensureValidToken,
|
|
28
|
+
fetchWorkspaces,
|
|
29
|
+
isConnected,
|
|
30
|
+
isTokenExpired,
|
|
31
|
+
pollForWorkspaceCreation,
|
|
32
|
+
pollLegacyToken,
|
|
33
|
+
pollWorkOSToken,
|
|
34
|
+
pollWorkspaceSelection,
|
|
35
|
+
selectWorkspace,
|
|
36
|
+
signGatewayRequest,
|
|
37
|
+
startDeviceFlow,
|
|
38
|
+
validateGateway
|
|
39
39
|
};
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
init_esm_min,
|
|
11
11
|
init_fetch_blob,
|
|
12
12
|
init_from
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-k71t434r.js";
|
|
14
14
|
import {
|
|
15
15
|
__esm,
|
|
16
16
|
__require
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-bc05qbss.js";
|
|
18
18
|
|
|
19
19
|
// node_modules/data-uri-to-buffer/dist/index.js
|
|
20
20
|
function dataUriToBuffer(uri) {
|
|
@@ -176,7 +176,7 @@ class Body {
|
|
|
176
176
|
}
|
|
177
177
|
return formData;
|
|
178
178
|
}
|
|
179
|
-
const { toFormData } = await import("./multipart-parser-
|
|
179
|
+
const { toFormData } = await import("./multipart-parser-g2xxkezz.js");
|
|
180
180
|
return toFormData(this.body, ct);
|
|
181
181
|
}
|
|
182
182
|
async blob() {
|
|
@@ -1240,18 +1240,18 @@ var init_src = __esm(() => {
|
|
|
1240
1240
|
init_src();
|
|
1241
1241
|
|
|
1242
1242
|
export {
|
|
1243
|
-
|
|
1244
|
-
fileFromSync,
|
|
1245
|
-
fileFrom,
|
|
1246
|
-
fetch as default,
|
|
1247
|
-
blobFromSync,
|
|
1248
|
-
blobFrom,
|
|
1249
|
-
Response,
|
|
1250
|
-
Request,
|
|
1251
|
-
Headers,
|
|
1252
|
-
FormData,
|
|
1253
|
-
file_default as File,
|
|
1254
|
-
FetchError,
|
|
1243
|
+
AbortError,
|
|
1255
1244
|
fetch_blob_default as Blob,
|
|
1256
|
-
|
|
1245
|
+
FetchError,
|
|
1246
|
+
file_default as File,
|
|
1247
|
+
FormData,
|
|
1248
|
+
Headers,
|
|
1249
|
+
Request,
|
|
1250
|
+
Response,
|
|
1251
|
+
blobFrom,
|
|
1252
|
+
blobFromSync,
|
|
1253
|
+
fetch as default,
|
|
1254
|
+
fileFrom,
|
|
1255
|
+
fileFromSync,
|
|
1256
|
+
isRedirect
|
|
1257
1257
|
};
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
init,
|
|
4
4
|
init_config,
|
|
5
5
|
update
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
} from "./cli-8qcrjget.js";
|
|
7
|
+
import"./cli-x2ss1hx3.js";
|
|
8
|
+
import"./cli-bc05qbss.js";
|
|
9
9
|
|
|
10
10
|
// src/core/config/index.ts
|
|
11
11
|
init_config();
|
|
@@ -7,27 +7,27 @@ import {
|
|
|
7
7
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
8
8
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
9
9
|
WhiteboxAttackSurfaceAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-x0981jez.js";
|
|
11
11
|
import"./cli-9fsre5pt.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
import"./cli-m70zer7y.js";
|
|
13
|
+
import"./cli-77fm0t26.js";
|
|
14
|
+
import"./cli-tx0y7xq7.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
16
|
+
import"./cli-wy0avc95.js";
|
|
17
|
+
import"./cli-36hqpmfk.js";
|
|
18
|
+
import"./cli-swpbx60z.js";
|
|
19
|
+
import"./cli-j54qa6tm.js";
|
|
20
|
+
import"./cli-czj2n2c0.js";
|
|
21
|
+
import"./cli-8qcrjget.js";
|
|
22
|
+
import"./cli-x2ss1hx3.js";
|
|
23
|
+
import"./cli-bc05qbss.js";
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
27
|
-
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
28
|
-
RiskScoreSchema,
|
|
29
|
-
RiskScoreBreakdownSchema,
|
|
30
|
-
EndpointSchema,
|
|
25
|
+
AppsDiscoveryResultSchema,
|
|
31
26
|
DiscoverySummarySchema,
|
|
32
|
-
|
|
27
|
+
EndpointSchema,
|
|
28
|
+
RiskScoreBreakdownSchema,
|
|
29
|
+
RiskScoreSchema,
|
|
30
|
+
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
31
|
+
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
32
|
+
WhiteboxAttackSurfaceAgent
|
|
33
33
|
};
|
|
@@ -56,11 +56,11 @@ import {
|
|
|
56
56
|
validateTypes,
|
|
57
57
|
withUserAgentSuffix,
|
|
58
58
|
zodSchema
|
|
59
|
-
} from "./cli-
|
|
60
|
-
import"./cli-
|
|
59
|
+
} from "./cli-swpbx60z.js";
|
|
60
|
+
import"./cli-j54qa6tm.js";
|
|
61
61
|
import {
|
|
62
62
|
__toESM
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-bc05qbss.js";
|
|
64
64
|
|
|
65
65
|
// node_modules/ai/dist/index.mjs
|
|
66
66
|
init_dist3();
|
|
@@ -12723,134 +12723,134 @@ var TextStreamChatTransport = class extends HttpChatTransport {
|
|
|
12723
12723
|
}
|
|
12724
12724
|
};
|
|
12725
12725
|
export {
|
|
12726
|
-
|
|
12727
|
-
wrapProvider,
|
|
12728
|
-
wrapLanguageModel,
|
|
12729
|
-
wrapImageModel,
|
|
12730
|
-
wrapEmbeddingModel,
|
|
12731
|
-
validateUIMessages,
|
|
12732
|
-
userModelMessageSchema,
|
|
12733
|
-
uiMessageChunkSchema,
|
|
12734
|
-
toolModelMessageSchema,
|
|
12735
|
-
tool,
|
|
12736
|
-
systemModelMessageSchema,
|
|
12737
|
-
streamText,
|
|
12738
|
-
streamObject,
|
|
12739
|
-
stepCountIs,
|
|
12740
|
-
smoothStream,
|
|
12741
|
-
simulateStreamingMiddleware,
|
|
12742
|
-
simulateReadableStream,
|
|
12743
|
-
safeValidateUIMessages,
|
|
12744
|
-
rerank,
|
|
12745
|
-
registerTelemetryIntegration,
|
|
12746
|
-
readUIMessageStream,
|
|
12747
|
-
pruneMessages,
|
|
12748
|
-
pipeUIMessageStreamToResponse,
|
|
12749
|
-
pipeTextStreamToResponse,
|
|
12750
|
-
pipeAgentUIStreamToResponse,
|
|
12751
|
-
parsePartialJson,
|
|
12752
|
-
parseJsonEventStream,
|
|
12753
|
-
modelMessageSchema,
|
|
12754
|
-
lastAssistantMessageIsCompleteWithToolCalls,
|
|
12755
|
-
lastAssistantMessageIsCompleteWithApprovalResponses,
|
|
12756
|
-
jsonSchema,
|
|
12757
|
-
isToolUIPart,
|
|
12758
|
-
isToolOrDynamicToolUIPart,
|
|
12759
|
-
isTextUIPart,
|
|
12760
|
-
isStaticToolUIPart,
|
|
12761
|
-
isReasoningUIPart,
|
|
12762
|
-
isLoopFinished,
|
|
12763
|
-
isFileUIPart,
|
|
12764
|
-
isDeepEqualData,
|
|
12765
|
-
isDataUIPart,
|
|
12766
|
-
hasToolCall,
|
|
12767
|
-
getToolOrDynamicToolName,
|
|
12768
|
-
getToolName,
|
|
12769
|
-
getTextFromDataUrl,
|
|
12770
|
-
getStaticToolName,
|
|
12771
|
-
generateText,
|
|
12772
|
-
generateObject,
|
|
12773
|
-
generateImage,
|
|
12774
|
-
generateId,
|
|
12775
|
-
gateway,
|
|
12776
|
-
extractReasoningMiddleware,
|
|
12777
|
-
extractJsonMiddleware,
|
|
12778
|
-
transcribe as experimental_transcribe,
|
|
12779
|
-
experimental_generateVideo,
|
|
12780
|
-
generateSpeech as experimental_generateSpeech,
|
|
12781
|
-
experimental_generateImage,
|
|
12782
|
-
experimental_customProvider,
|
|
12783
|
-
experimental_createProviderRegistry,
|
|
12784
|
-
embedMany,
|
|
12785
|
-
embed,
|
|
12786
|
-
dynamicTool,
|
|
12787
|
-
defaultSettingsMiddleware,
|
|
12788
|
-
defaultEmbeddingSettingsMiddleware,
|
|
12789
|
-
customProvider,
|
|
12790
|
-
createUIMessageStreamResponse,
|
|
12791
|
-
createUIMessageStream,
|
|
12792
|
-
createTextStreamResponse,
|
|
12793
|
-
createProviderRegistry,
|
|
12794
|
-
createIdGenerator,
|
|
12795
|
-
createGatewayProvider as createGateway,
|
|
12796
|
-
createDownload,
|
|
12797
|
-
createAgentUIStreamResponse,
|
|
12798
|
-
createAgentUIStream,
|
|
12799
|
-
cosineSimilarity,
|
|
12800
|
-
convertToModelMessages,
|
|
12801
|
-
convertFileListToFileUIParts,
|
|
12802
|
-
consumeStream,
|
|
12803
|
-
callCompletionApi,
|
|
12804
|
-
bindTelemetryIntegration,
|
|
12805
|
-
assistantModelMessageSchema,
|
|
12806
|
-
asSchema,
|
|
12807
|
-
addToolInputExamplesMiddleware,
|
|
12808
|
-
UnsupportedModelVersionError,
|
|
12809
|
-
UnsupportedFunctionalityError,
|
|
12810
|
-
UI_MESSAGE_STREAM_HEADERS,
|
|
12811
|
-
UIMessageStreamError,
|
|
12812
|
-
TypeValidationError,
|
|
12813
|
-
ToolLoopAgent,
|
|
12814
|
-
ToolCallRepairError,
|
|
12815
|
-
ToolCallNotFoundForApprovalError,
|
|
12816
|
-
TooManyEmbeddingValuesForCallError,
|
|
12817
|
-
TextStreamChatTransport,
|
|
12818
|
-
SerialJobExecutor,
|
|
12819
|
-
RetryError,
|
|
12820
|
-
output_exports as Output,
|
|
12821
|
-
NoVideoGeneratedError,
|
|
12822
|
-
NoTranscriptGeneratedError,
|
|
12823
|
-
NoSuchToolError,
|
|
12824
|
-
NoSuchProviderError,
|
|
12825
|
-
NoSuchModelError,
|
|
12826
|
-
NoSpeechGeneratedError,
|
|
12827
|
-
NoOutputGeneratedError,
|
|
12828
|
-
NoObjectGeneratedError,
|
|
12829
|
-
NoImageGeneratedError,
|
|
12830
|
-
NoContentGeneratedError,
|
|
12831
|
-
MissingToolResultsError,
|
|
12832
|
-
MessageConversionError,
|
|
12833
|
-
LoadSettingError,
|
|
12834
|
-
LoadAPIKeyError,
|
|
12835
|
-
JsonToSseTransformStream,
|
|
12836
|
-
JSONParseError,
|
|
12837
|
-
InvalidToolInputError,
|
|
12838
|
-
InvalidToolApprovalSignatureError,
|
|
12839
|
-
InvalidToolApprovalError,
|
|
12840
|
-
InvalidStreamPartError,
|
|
12841
|
-
InvalidResponseDataError,
|
|
12842
|
-
InvalidPromptError,
|
|
12843
|
-
InvalidMessageRoleError,
|
|
12844
|
-
InvalidDataContentError,
|
|
12845
|
-
InvalidArgumentError2 as InvalidArgumentError,
|
|
12846
|
-
HttpChatTransport,
|
|
12847
|
-
ToolLoopAgent as Experimental_Agent,
|
|
12848
|
-
EmptyResponseBodyError,
|
|
12849
|
-
DownloadError,
|
|
12850
|
-
DirectChatTransport,
|
|
12851
|
-
DefaultGeneratedFile,
|
|
12852
|
-
DefaultChatTransport,
|
|
12853
|
-
AbstractChat,
|
|
12726
|
+
AISDKError,
|
|
12854
12727
|
APICallError,
|
|
12855
|
-
|
|
12728
|
+
AbstractChat,
|
|
12729
|
+
DefaultChatTransport,
|
|
12730
|
+
DefaultGeneratedFile,
|
|
12731
|
+
DirectChatTransport,
|
|
12732
|
+
DownloadError,
|
|
12733
|
+
EmptyResponseBodyError,
|
|
12734
|
+
ToolLoopAgent as Experimental_Agent,
|
|
12735
|
+
HttpChatTransport,
|
|
12736
|
+
InvalidArgumentError2 as InvalidArgumentError,
|
|
12737
|
+
InvalidDataContentError,
|
|
12738
|
+
InvalidMessageRoleError,
|
|
12739
|
+
InvalidPromptError,
|
|
12740
|
+
InvalidResponseDataError,
|
|
12741
|
+
InvalidStreamPartError,
|
|
12742
|
+
InvalidToolApprovalError,
|
|
12743
|
+
InvalidToolApprovalSignatureError,
|
|
12744
|
+
InvalidToolInputError,
|
|
12745
|
+
JSONParseError,
|
|
12746
|
+
JsonToSseTransformStream,
|
|
12747
|
+
LoadAPIKeyError,
|
|
12748
|
+
LoadSettingError,
|
|
12749
|
+
MessageConversionError,
|
|
12750
|
+
MissingToolResultsError,
|
|
12751
|
+
NoContentGeneratedError,
|
|
12752
|
+
NoImageGeneratedError,
|
|
12753
|
+
NoObjectGeneratedError,
|
|
12754
|
+
NoOutputGeneratedError,
|
|
12755
|
+
NoSpeechGeneratedError,
|
|
12756
|
+
NoSuchModelError,
|
|
12757
|
+
NoSuchProviderError,
|
|
12758
|
+
NoSuchToolError,
|
|
12759
|
+
NoTranscriptGeneratedError,
|
|
12760
|
+
NoVideoGeneratedError,
|
|
12761
|
+
output_exports as Output,
|
|
12762
|
+
RetryError,
|
|
12763
|
+
SerialJobExecutor,
|
|
12764
|
+
TextStreamChatTransport,
|
|
12765
|
+
TooManyEmbeddingValuesForCallError,
|
|
12766
|
+
ToolCallNotFoundForApprovalError,
|
|
12767
|
+
ToolCallRepairError,
|
|
12768
|
+
ToolLoopAgent,
|
|
12769
|
+
TypeValidationError,
|
|
12770
|
+
UIMessageStreamError,
|
|
12771
|
+
UI_MESSAGE_STREAM_HEADERS,
|
|
12772
|
+
UnsupportedFunctionalityError,
|
|
12773
|
+
UnsupportedModelVersionError,
|
|
12774
|
+
addToolInputExamplesMiddleware,
|
|
12775
|
+
asSchema,
|
|
12776
|
+
assistantModelMessageSchema,
|
|
12777
|
+
bindTelemetryIntegration,
|
|
12778
|
+
callCompletionApi,
|
|
12779
|
+
consumeStream,
|
|
12780
|
+
convertFileListToFileUIParts,
|
|
12781
|
+
convertToModelMessages,
|
|
12782
|
+
cosineSimilarity,
|
|
12783
|
+
createAgentUIStream,
|
|
12784
|
+
createAgentUIStreamResponse,
|
|
12785
|
+
createDownload,
|
|
12786
|
+
createGatewayProvider as createGateway,
|
|
12787
|
+
createIdGenerator,
|
|
12788
|
+
createProviderRegistry,
|
|
12789
|
+
createTextStreamResponse,
|
|
12790
|
+
createUIMessageStream,
|
|
12791
|
+
createUIMessageStreamResponse,
|
|
12792
|
+
customProvider,
|
|
12793
|
+
defaultEmbeddingSettingsMiddleware,
|
|
12794
|
+
defaultSettingsMiddleware,
|
|
12795
|
+
dynamicTool,
|
|
12796
|
+
embed,
|
|
12797
|
+
embedMany,
|
|
12798
|
+
experimental_createProviderRegistry,
|
|
12799
|
+
experimental_customProvider,
|
|
12800
|
+
experimental_generateImage,
|
|
12801
|
+
generateSpeech as experimental_generateSpeech,
|
|
12802
|
+
experimental_generateVideo,
|
|
12803
|
+
transcribe as experimental_transcribe,
|
|
12804
|
+
extractJsonMiddleware,
|
|
12805
|
+
extractReasoningMiddleware,
|
|
12806
|
+
gateway,
|
|
12807
|
+
generateId,
|
|
12808
|
+
generateImage,
|
|
12809
|
+
generateObject,
|
|
12810
|
+
generateText,
|
|
12811
|
+
getStaticToolName,
|
|
12812
|
+
getTextFromDataUrl,
|
|
12813
|
+
getToolName,
|
|
12814
|
+
getToolOrDynamicToolName,
|
|
12815
|
+
hasToolCall,
|
|
12816
|
+
isDataUIPart,
|
|
12817
|
+
isDeepEqualData,
|
|
12818
|
+
isFileUIPart,
|
|
12819
|
+
isLoopFinished,
|
|
12820
|
+
isReasoningUIPart,
|
|
12821
|
+
isStaticToolUIPart,
|
|
12822
|
+
isTextUIPart,
|
|
12823
|
+
isToolOrDynamicToolUIPart,
|
|
12824
|
+
isToolUIPart,
|
|
12825
|
+
jsonSchema,
|
|
12826
|
+
lastAssistantMessageIsCompleteWithApprovalResponses,
|
|
12827
|
+
lastAssistantMessageIsCompleteWithToolCalls,
|
|
12828
|
+
modelMessageSchema,
|
|
12829
|
+
parseJsonEventStream,
|
|
12830
|
+
parsePartialJson,
|
|
12831
|
+
pipeAgentUIStreamToResponse,
|
|
12832
|
+
pipeTextStreamToResponse,
|
|
12833
|
+
pipeUIMessageStreamToResponse,
|
|
12834
|
+
pruneMessages,
|
|
12835
|
+
readUIMessageStream,
|
|
12836
|
+
registerTelemetryIntegration,
|
|
12837
|
+
rerank,
|
|
12838
|
+
safeValidateUIMessages,
|
|
12839
|
+
simulateReadableStream,
|
|
12840
|
+
simulateStreamingMiddleware,
|
|
12841
|
+
smoothStream,
|
|
12842
|
+
stepCountIs,
|
|
12843
|
+
streamObject,
|
|
12844
|
+
streamText,
|
|
12845
|
+
systemModelMessageSchema,
|
|
12846
|
+
tool,
|
|
12847
|
+
toolModelMessageSchema,
|
|
12848
|
+
uiMessageChunkSchema,
|
|
12849
|
+
userModelMessageSchema,
|
|
12850
|
+
validateUIMessages,
|
|
12851
|
+
wrapEmbeddingModel,
|
|
12852
|
+
wrapImageModel,
|
|
12853
|
+
wrapLanguageModel,
|
|
12854
|
+
wrapProvider,
|
|
12855
|
+
zodSchema
|
|
12856
12856
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
__require
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-bc05qbss.js";
|
|
5
5
|
|
|
6
6
|
// node_modules/ms/index.js
|
|
7
|
-
var require_ms = __commonJS((exports, module)
|
|
7
|
+
var require_ms = __commonJS(function(exports, module) {
|
|
8
8
|
var s = 1000;
|
|
9
9
|
var m = s * 60;
|
|
10
10
|
var h = m * 60;
|
|
@@ -114,7 +114,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
// node_modules/debug/src/common.js
|
|
117
|
-
var require_common = __commonJS((exports, module)
|
|
117
|
+
var require_common = __commonJS(function(exports, module) {
|
|
118
118
|
function setup(env) {
|
|
119
119
|
createDebug.debug = createDebug;
|
|
120
120
|
createDebug.default = createDebug;
|
|
@@ -289,7 +289,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
// node_modules/debug/src/browser.js
|
|
292
|
-
var require_browser = __commonJS((exports, module)
|
|
292
|
+
var require_browser = __commonJS(function(exports, module) {
|
|
293
293
|
exports.formatArgs = formatArgs;
|
|
294
294
|
exports.save = save;
|
|
295
295
|
exports.load = load;
|
|
@@ -449,7 +449,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
449
449
|
});
|
|
450
450
|
|
|
451
451
|
// node_modules/debug/src/node.js
|
|
452
|
-
var require_node = __commonJS((exports, module)
|
|
452
|
+
var require_node = __commonJS(function(exports, module) {
|
|
453
453
|
var tty = __require("tty");
|
|
454
454
|
var util = __require("util");
|
|
455
455
|
exports.init = init;
|
|
@@ -620,7 +620,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
620
620
|
});
|
|
621
621
|
|
|
622
622
|
// node_modules/debug/src/index.js
|
|
623
|
-
var require_src = __commonJS((exports, module)
|
|
623
|
+
var require_src = __commonJS(function(exports, module) {
|
|
624
624
|
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
625
625
|
module.exports = require_browser();
|
|
626
626
|
} else {
|
|
@@ -629,7 +629,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
629
629
|
});
|
|
630
630
|
|
|
631
631
|
// node_modules/agent-base/dist/helpers.js
|
|
632
|
-
var require_helpers = __commonJS((exports)
|
|
632
|
+
var require_helpers = __commonJS(function(exports) {
|
|
633
633
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
634
634
|
if (k2 === undefined)
|
|
635
635
|
k2 = k;
|
|
@@ -701,7 +701,7 @@ var require_helpers = __commonJS((exports) => {
|
|
|
701
701
|
});
|
|
702
702
|
|
|
703
703
|
// node_modules/agent-base/dist/index.js
|
|
704
|
-
var require_dist = __commonJS((exports)
|
|
704
|
+
var require_dist = __commonJS(function(exports) {
|
|
705
705
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
706
706
|
if (k2 === undefined)
|
|
707
707
|
k2 = k;
|
|
@@ -852,7 +852,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
852
852
|
});
|
|
853
853
|
|
|
854
854
|
// node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
855
|
-
var require_parse_proxy_response = __commonJS((exports)
|
|
855
|
+
var require_parse_proxy_response = __commonJS(function(exports) {
|
|
856
856
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
857
857
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
858
858
|
};
|
|
@@ -948,7 +948,7 @@ var require_parse_proxy_response = __commonJS((exports) => {
|
|
|
948
948
|
});
|
|
949
949
|
|
|
950
950
|
// node_modules/https-proxy-agent/dist/index.js
|
|
951
|
-
var require_dist2 = __commonJS((exports)
|
|
951
|
+
var require_dist2 = __commonJS(function(exports) {
|
|
952
952
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
953
953
|
if (k2 === undefined)
|
|
954
954
|
k2 = k;
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
update,
|
|
18
18
|
write,
|
|
19
19
|
writeRaw
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-wy0avc95.js";
|
|
21
|
+
import"./cli-36hqpmfk.js";
|
|
22
22
|
import {
|
|
23
23
|
init_zod,
|
|
24
24
|
zod_default
|
|
25
|
-
} from "./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
25
|
+
} from "./cli-swpbx60z.js";
|
|
26
|
+
import"./cli-j54qa6tm.js";
|
|
27
|
+
import"./cli-czj2n2c0.js";
|
|
28
|
+
import"./cli-8qcrjget.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion,
|
|
31
31
|
init_installation
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-x2ss1hx3.js";
|
|
33
33
|
import {
|
|
34
34
|
__require
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-bc05qbss.js";
|
|
36
36
|
|
|
37
37
|
// src/core/session/index.ts
|
|
38
38
|
init_zod();
|
|
@@ -178,6 +178,7 @@ var SessionConfigObject = zod_default.object({
|
|
|
178
178
|
authenticationInstructions: zod_default.string().optional(),
|
|
179
179
|
requestsPerSecond: zod_default.number().optional(),
|
|
180
180
|
allowDestructiveActions: zod_default.boolean().optional(),
|
|
181
|
+
allowRateLimitTesting: zod_default.boolean().optional(),
|
|
181
182
|
operatorSettings: OperatorSettingsObject.optional(),
|
|
182
183
|
toolsetState: ToolsetStateSchema.optional(),
|
|
183
184
|
enumerateSubdomains: zod_default.boolean().optional(),
|
|
@@ -313,7 +314,7 @@ async function create(input) {
|
|
|
313
314
|
if (normalizedConfig?.headers !== undefined) {
|
|
314
315
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
315
316
|
} else {
|
|
316
|
-
const { config: appConfig } = await import("./index-
|
|
317
|
+
const { config: appConfig } = await import("./index-1fvahjj1.js");
|
|
317
318
|
const cfg = await appConfig.get();
|
|
318
319
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
319
320
|
}
|
|
@@ -452,18 +453,22 @@ function hasOperatorState(session) {
|
|
|
452
453
|
const statePath = path.join(session.rootPath, "messages.json");
|
|
453
454
|
return existsSync(statePath);
|
|
454
455
|
}
|
|
455
|
-
var
|
|
456
|
-
function getResumeMessages(messages, limit =
|
|
456
|
+
var RESUME_MESSAGE_WINDOW = 200;
|
|
457
|
+
function getResumeMessages(messages, limit = RESUME_MESSAGE_WINDOW) {
|
|
457
458
|
if (messages.length <= limit)
|
|
458
459
|
return messages;
|
|
459
|
-
|
|
460
|
+
const roughCutIndex = messages.length - limit;
|
|
461
|
+
let cutIndex = roughCutIndex;
|
|
460
462
|
while (cutIndex < messages.length) {
|
|
461
463
|
if (messages[cutIndex].role === "user")
|
|
462
464
|
break;
|
|
463
465
|
cutIndex++;
|
|
464
466
|
}
|
|
465
467
|
if (cutIndex >= messages.length) {
|
|
466
|
-
cutIndex =
|
|
468
|
+
cutIndex = roughCutIndex;
|
|
469
|
+
while (cutIndex > 0 && messages[cutIndex].role !== "user") {
|
|
470
|
+
cutIndex--;
|
|
471
|
+
}
|
|
467
472
|
}
|
|
468
473
|
return messages.slice(cutIndex);
|
|
469
474
|
}
|
|
@@ -557,18 +562,18 @@ var sessions = {
|
|
|
557
562
|
updateSessionHeaders
|
|
558
563
|
};
|
|
559
564
|
export {
|
|
560
|
-
|
|
561
|
-
updateOperatorSettings,
|
|
562
|
-
sessions,
|
|
563
|
-
normalizeMessages,
|
|
564
|
-
migrateLegacySessionData,
|
|
565
|
-
loadOperatorState,
|
|
566
|
-
list,
|
|
567
|
-
hasOperatorState,
|
|
568
|
-
getSessionRoot,
|
|
569
|
-
getResumeMessages,
|
|
570
|
-
get,
|
|
571
|
-
create,
|
|
565
|
+
EXFIL_OUTCOME_GUIDANCE,
|
|
572
566
|
SessionInfoObject,
|
|
573
|
-
|
|
567
|
+
create,
|
|
568
|
+
get,
|
|
569
|
+
getResumeMessages,
|
|
570
|
+
getSessionRoot,
|
|
571
|
+
hasOperatorState,
|
|
572
|
+
list,
|
|
573
|
+
loadOperatorState,
|
|
574
|
+
migrateLegacySessionData,
|
|
575
|
+
normalizeMessages,
|
|
576
|
+
sessions,
|
|
577
|
+
updateOperatorSettings,
|
|
578
|
+
updateSessionHeaders
|
|
574
579
|
};
|