@probelabs/visor 0.1.139-ee → 0.1.140-ee
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/config.d.ts.map +1 -1
- package/dist/index.js +18 -3
- package/dist/sdk/{check-provider-registry-BQD6S2SI.mjs → check-provider-registry-CG7WRFNN.mjs} +4 -4
- package/dist/sdk/{check-provider-registry-EHLKMSLE.mjs → check-provider-registry-NUTOUEFZ.mjs} +4 -4
- package/dist/sdk/{chunk-KPRFDKQX.mjs → chunk-AKCHIYWU.mjs} +16 -1
- package/dist/sdk/{chunk-KPRFDKQX.mjs.map → chunk-AKCHIYWU.mjs.map} +1 -1
- package/dist/sdk/{chunk-LZJATBWH.mjs → chunk-HWHSEPUK.mjs} +8 -8
- package/dist/sdk/{chunk-TJXIVJ37.mjs → chunk-VEBZPZKL.mjs} +8 -8
- package/dist/sdk/{config-3UIU4TMP.mjs → config-KOKJ3PYE.mjs} +2 -2
- package/dist/sdk/{schedule-tool-handler-7FGVBTTW.mjs → schedule-tool-handler-J2EE3ZXI.mjs} +4 -4
- package/dist/sdk/{schedule-tool-handler-AVPJACU6.mjs → schedule-tool-handler-P5HRTHWB.mjs} +4 -4
- package/dist/sdk/sdk.js +15 -0
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +2 -2
- package/dist/sdk/{workflow-check-provider-A6J5AEK4.mjs → workflow-check-provider-FDUILATN.mjs} +4 -4
- package/dist/sdk/{workflow-check-provider-KCNRNZEO.mjs → workflow-check-provider-RXORJDUT.mjs} +4 -4
- package/package.json +1 -1
- /package/dist/sdk/{check-provider-registry-BQD6S2SI.mjs.map → check-provider-registry-CG7WRFNN.mjs.map} +0 -0
- /package/dist/sdk/{check-provider-registry-EHLKMSLE.mjs.map → check-provider-registry-NUTOUEFZ.mjs.map} +0 -0
- /package/dist/sdk/{chunk-LZJATBWH.mjs.map → chunk-HWHSEPUK.mjs.map} +0 -0
- /package/dist/sdk/{chunk-TJXIVJ37.mjs.map → chunk-VEBZPZKL.mjs.map} +0 -0
- /package/dist/sdk/{config-3UIU4TMP.mjs.map → config-KOKJ3PYE.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-handler-7FGVBTTW.mjs.map → schedule-tool-handler-J2EE3ZXI.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-handler-AVPJACU6.mjs.map → schedule-tool-handler-P5HRTHWB.mjs.map} +0 -0
- /package/dist/sdk/{workflow-check-provider-A6J5AEK4.mjs.map → workflow-check-provider-FDUILATN.mjs.map} +0 -0
- /package/dist/sdk/{workflow-check-provider-KCNRNZEO.mjs.map → workflow-check-provider-RXORJDUT.mjs.map} +0 -0
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
config_exports,
|
|
30
30
|
init_config
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AKCHIYWU.mjs";
|
|
32
32
|
import {
|
|
33
33
|
ScheduleStore,
|
|
34
34
|
buildScheduleToolContext,
|
|
@@ -3922,7 +3922,7 @@ async function executeWorkflowAsTool(workflowId, args, context2, argsOverrides)
|
|
|
3922
3922
|
...args,
|
|
3923
3923
|
...argsOverrides
|
|
3924
3924
|
};
|
|
3925
|
-
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-
|
|
3925
|
+
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-FDUILATN.mjs");
|
|
3926
3926
|
const provider = new WorkflowCheckProvider2();
|
|
3927
3927
|
const checkConfig = {
|
|
3928
3928
|
type: "workflow",
|
|
@@ -11408,7 +11408,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11408
11408
|
try {
|
|
11409
11409
|
const map = options?.webhookContext?.webhookData;
|
|
11410
11410
|
if (map) {
|
|
11411
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
11411
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-NUTOUEFZ.mjs");
|
|
11412
11412
|
const reg = CheckProviderRegistry2.getInstance();
|
|
11413
11413
|
const p = reg.getProvider("http_input");
|
|
11414
11414
|
if (p && typeof p.setWebhookContext === "function") p.setWebhookContext(map);
|
|
@@ -11521,7 +11521,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11521
11521
|
logger.info("[StateMachine] Using state machine engine");
|
|
11522
11522
|
}
|
|
11523
11523
|
if (!config) {
|
|
11524
|
-
const { ConfigManager } = await import("./config-
|
|
11524
|
+
const { ConfigManager } = await import("./config-KOKJ3PYE.mjs");
|
|
11525
11525
|
const configManager = new ConfigManager();
|
|
11526
11526
|
config = await configManager.getDefaultConfig();
|
|
11527
11527
|
logger.debug("[StateMachine] Using default configuration (no config provided)");
|
|
@@ -11531,7 +11531,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11531
11531
|
tag_filter: tagFilter
|
|
11532
11532
|
} : config;
|
|
11533
11533
|
try {
|
|
11534
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
11534
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-NUTOUEFZ.mjs");
|
|
11535
11535
|
const registry = CheckProviderRegistry2.getInstance();
|
|
11536
11536
|
registry.setCustomTools(configWithTagFilter.tools || {});
|
|
11537
11537
|
} catch (error) {
|
|
@@ -11595,7 +11595,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11595
11595
|
try {
|
|
11596
11596
|
const webhookData = this.executionContext?.webhookContext?.webhookData;
|
|
11597
11597
|
if (webhookData instanceof Map) {
|
|
11598
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
11598
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-J2EE3ZXI.mjs");
|
|
11599
11599
|
const slackCtx = extractSlackContext2(webhookData);
|
|
11600
11600
|
if (slackCtx) {
|
|
11601
11601
|
const payload = Array.from(webhookData.values())[0];
|
|
@@ -37290,7 +37290,7 @@ function buildBuiltinGlobals(opts) {
|
|
|
37290
37290
|
const scheduleFn = async (args = {}) => {
|
|
37291
37291
|
try {
|
|
37292
37292
|
const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-2COUUTF7.mjs");
|
|
37293
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
37293
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-J2EE3ZXI.mjs");
|
|
37294
37294
|
const parentCtx = opts.sessionInfo?._parentContext;
|
|
37295
37295
|
const webhookData = parentCtx?.prInfo?.eventContext?.webhookData;
|
|
37296
37296
|
const visorCfg = parentCtx?.config;
|
|
@@ -40244,4 +40244,4 @@ undici/lib/fetch/body.js:
|
|
|
40244
40244
|
undici/lib/websocket/frame.js:
|
|
40245
40245
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
40246
40246
|
*/
|
|
40247
|
-
//# sourceMappingURL=chunk-
|
|
40247
|
+
//# sourceMappingURL=chunk-HWHSEPUK.mjs.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
config_exports,
|
|
30
30
|
init_config
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AKCHIYWU.mjs";
|
|
32
32
|
import {
|
|
33
33
|
ScheduleStore,
|
|
34
34
|
buildScheduleToolContext,
|
|
@@ -3922,7 +3922,7 @@ async function executeWorkflowAsTool(workflowId, args, context2, argsOverrides)
|
|
|
3922
3922
|
...args,
|
|
3923
3923
|
...argsOverrides
|
|
3924
3924
|
};
|
|
3925
|
-
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-
|
|
3925
|
+
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-RXORJDUT.mjs");
|
|
3926
3926
|
const provider = new WorkflowCheckProvider2();
|
|
3927
3927
|
const checkConfig = {
|
|
3928
3928
|
type: "workflow",
|
|
@@ -11408,7 +11408,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11408
11408
|
try {
|
|
11409
11409
|
const map = options?.webhookContext?.webhookData;
|
|
11410
11410
|
if (map) {
|
|
11411
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
11411
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-CG7WRFNN.mjs");
|
|
11412
11412
|
const reg = CheckProviderRegistry2.getInstance();
|
|
11413
11413
|
const p = reg.getProvider("http_input");
|
|
11414
11414
|
if (p && typeof p.setWebhookContext === "function") p.setWebhookContext(map);
|
|
@@ -11521,7 +11521,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11521
11521
|
logger.info("[StateMachine] Using state machine engine");
|
|
11522
11522
|
}
|
|
11523
11523
|
if (!config) {
|
|
11524
|
-
const { ConfigManager } = await import("./config-
|
|
11524
|
+
const { ConfigManager } = await import("./config-KOKJ3PYE.mjs");
|
|
11525
11525
|
const configManager = new ConfigManager();
|
|
11526
11526
|
config = await configManager.getDefaultConfig();
|
|
11527
11527
|
logger.debug("[StateMachine] Using default configuration (no config provided)");
|
|
@@ -11531,7 +11531,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11531
11531
|
tag_filter: tagFilter
|
|
11532
11532
|
} : config;
|
|
11533
11533
|
try {
|
|
11534
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
11534
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-CG7WRFNN.mjs");
|
|
11535
11535
|
const registry = CheckProviderRegistry2.getInstance();
|
|
11536
11536
|
registry.setCustomTools(configWithTagFilter.tools || {});
|
|
11537
11537
|
} catch (error) {
|
|
@@ -11595,7 +11595,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
11595
11595
|
try {
|
|
11596
11596
|
const webhookData = this.executionContext?.webhookContext?.webhookData;
|
|
11597
11597
|
if (webhookData instanceof Map) {
|
|
11598
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
11598
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-P5HRTHWB.mjs");
|
|
11599
11599
|
const slackCtx = extractSlackContext2(webhookData);
|
|
11600
11600
|
if (slackCtx) {
|
|
11601
11601
|
const payload = Array.from(webhookData.values())[0];
|
|
@@ -37290,7 +37290,7 @@ function buildBuiltinGlobals(opts) {
|
|
|
37290
37290
|
const scheduleFn = async (args = {}) => {
|
|
37291
37291
|
try {
|
|
37292
37292
|
const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-2COUUTF7.mjs");
|
|
37293
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
37293
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-P5HRTHWB.mjs");
|
|
37294
37294
|
const parentCtx = opts.sessionInfo?._parentContext;
|
|
37295
37295
|
const webhookData = parentCtx?.prInfo?.eventContext?.webhookData;
|
|
37296
37296
|
const visorCfg = parentCtx?.config;
|
|
@@ -40244,4 +40244,4 @@ undici/lib/fetch/body.js:
|
|
|
40244
40244
|
undici/lib/websocket/frame.js:
|
|
40245
40245
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
40246
40246
|
*/
|
|
40247
|
-
//# sourceMappingURL=chunk-
|
|
40247
|
+
//# sourceMappingURL=chunk-VEBZPZKL.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ConfigManager,
|
|
3
3
|
VALID_EVENT_TRIGGERS,
|
|
4
4
|
init_config
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AKCHIYWU.mjs";
|
|
6
6
|
import "./chunk-NCWIZVOT.mjs";
|
|
7
7
|
import "./chunk-LW3INISN.mjs";
|
|
8
8
|
import "./chunk-SZXICFQ3.mjs";
|
|
@@ -13,4 +13,4 @@ export {
|
|
|
13
13
|
ConfigManager,
|
|
14
14
|
VALID_EVENT_TRIGGERS
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=config-
|
|
16
|
+
//# sourceMappingURL=config-KOKJ3PYE.mjs.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
extractSlackContext,
|
|
7
7
|
init_schedule_tool_handler,
|
|
8
8
|
isScheduleToolCall
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-LG4AUKHB.mjs";
|
|
9
|
+
} from "./chunk-HWHSEPUK.mjs";
|
|
11
10
|
import "./chunk-KFKHU6CM.mjs";
|
|
11
|
+
import "./chunk-LG4AUKHB.mjs";
|
|
12
12
|
import "./chunk-B7BVQM5K.mjs";
|
|
13
13
|
import "./chunk-XXAEN5KU.mjs";
|
|
14
14
|
import "./chunk-GEW6LS32.mjs";
|
|
15
15
|
import "./chunk-DIND4ZCV.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AKCHIYWU.mjs";
|
|
17
17
|
import "./chunk-NCWIZVOT.mjs";
|
|
18
18
|
import "./chunk-XKCER23W.mjs";
|
|
19
19
|
import "./chunk-G3W5KQL7.mjs";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
extractSlackContext,
|
|
37
37
|
isScheduleToolCall
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=schedule-tool-handler-
|
|
39
|
+
//# sourceMappingURL=schedule-tool-handler-J2EE3ZXI.mjs.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
extractSlackContext,
|
|
7
7
|
init_schedule_tool_handler,
|
|
8
8
|
isScheduleToolCall
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-KFKHU6CM.mjs";
|
|
9
|
+
} from "./chunk-VEBZPZKL.mjs";
|
|
11
10
|
import "./chunk-LG4AUKHB.mjs";
|
|
11
|
+
import "./chunk-KFKHU6CM.mjs";
|
|
12
12
|
import "./chunk-B7BVQM5K.mjs";
|
|
13
13
|
import "./chunk-XXAEN5KU.mjs";
|
|
14
14
|
import "./chunk-GEW6LS32.mjs";
|
|
15
15
|
import "./chunk-DIND4ZCV.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AKCHIYWU.mjs";
|
|
17
17
|
import "./chunk-NCWIZVOT.mjs";
|
|
18
18
|
import "./chunk-XKCER23W.mjs";
|
|
19
19
|
import "./chunk-G3W5KQL7.mjs";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
extractSlackContext,
|
|
37
37
|
isScheduleToolCall
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=schedule-tool-handler-
|
|
39
|
+
//# sourceMappingURL=schedule-tool-handler-P5HRTHWB.mjs.map
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -15271,6 +15271,21 @@ ${errors}`);
|
|
|
15271
15271
|
if (workflowData.inputs) {
|
|
15272
15272
|
visorConfig.inputs = workflowData.inputs;
|
|
15273
15273
|
}
|
|
15274
|
+
if (workflowData.tools) {
|
|
15275
|
+
visorConfig.tools = workflowData.tools;
|
|
15276
|
+
}
|
|
15277
|
+
if (workflowData.id) {
|
|
15278
|
+
visorConfig.id = workflowData.id;
|
|
15279
|
+
}
|
|
15280
|
+
if (workflowData.name) {
|
|
15281
|
+
visorConfig.name = workflowData.name;
|
|
15282
|
+
}
|
|
15283
|
+
if (workflowData.description) {
|
|
15284
|
+
visorConfig.description = workflowData.description;
|
|
15285
|
+
}
|
|
15286
|
+
if (workflowData.on) {
|
|
15287
|
+
visorConfig.on = workflowData.on;
|
|
15288
|
+
}
|
|
15274
15289
|
logger.debug(
|
|
15275
15290
|
`Standalone workflow config has ${Object.keys(workflowSteps).length} workflow steps as checks`
|
|
15276
15291
|
);
|