@probelabs/visor 0.1.157-ee → 0.1.158-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/frontends/slack-frontend.d.ts.map +1 -1
- package/dist/index.js +28 -15
- package/dist/scheduler/scheduler.d.ts.map +1 -1
- package/dist/sdk/{check-provider-registry-3O2PAJPF.mjs → check-provider-registry-BOW56JUJ.mjs} +3 -3
- package/dist/sdk/{check-provider-registry-OBUYAPPC.mjs → check-provider-registry-LVXLROAJ.mjs} +3 -3
- package/dist/sdk/{chunk-M3BYMES6.mjs → chunk-AVMMKGLQ.mjs} +1 -16
- package/dist/sdk/{chunk-M3BYMES6.mjs.map → chunk-AVMMKGLQ.mjs.map} +1 -1
- package/dist/sdk/{chunk-PLMM6W3K.mjs → chunk-FRTHLKIG.mjs} +20 -14
- package/dist/sdk/chunk-FRTHLKIG.mjs.map +1 -0
- package/dist/sdk/{chunk-2XSKH755.mjs → chunk-XEVC3I2T.mjs} +20 -14
- package/dist/sdk/chunk-XEVC3I2T.mjs.map +1 -0
- package/dist/sdk/{host-4ONWAJ6Q.mjs → host-IQYTGAJA.mjs} +2 -2
- package/dist/sdk/{host-MIHKJ63G.mjs → host-YKTAWW33.mjs} +2 -2
- package/dist/sdk/{schedule-tool-EZVQOF55.mjs → schedule-tool-526VUPMF.mjs} +3 -3
- package/dist/sdk/{schedule-tool-M2H7O5WL.mjs → schedule-tool-J3ICFSSR.mjs} +3 -3
- package/dist/sdk/{schedule-tool-handler-J3CJWB6A.mjs → schedule-tool-handler-FQO752PR.mjs} +3 -3
- package/dist/sdk/{schedule-tool-handler-O7T66M3I.mjs → schedule-tool-handler-Z5VWUB76.mjs} +3 -3
- package/dist/sdk/sdk.js +12 -20
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +2 -2
- package/dist/sdk/{slack-frontend-6KDUMDDI.mjs → slack-frontend-QO7LW5BH.mjs} +3 -4
- package/dist/sdk/slack-frontend-QO7LW5BH.mjs.map +1 -0
- package/dist/sdk/{workflow-check-provider-4DC4KOHI.mjs → workflow-check-provider-5G6BGZEX.mjs} +3 -3
- package/dist/sdk/{workflow-check-provider-7RLM3T2I.mjs → workflow-check-provider-7KJD2JXX.mjs} +3 -3
- package/dist/slack/socket-runner.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/chunk-2XSKH755.mjs.map +0 -1
- package/dist/sdk/chunk-PLMM6W3K.mjs.map +0 -1
- package/dist/sdk/slack-frontend-6KDUMDDI.mjs.map +0 -1
- /package/dist/sdk/{check-provider-registry-3O2PAJPF.mjs.map → check-provider-registry-BOW56JUJ.mjs.map} +0 -0
- /package/dist/sdk/{check-provider-registry-OBUYAPPC.mjs.map → check-provider-registry-LVXLROAJ.mjs.map} +0 -0
- /package/dist/sdk/{host-4ONWAJ6Q.mjs.map → host-IQYTGAJA.mjs.map} +0 -0
- /package/dist/sdk/{host-MIHKJ63G.mjs.map → host-YKTAWW33.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-EZVQOF55.mjs.map → schedule-tool-526VUPMF.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-M2H7O5WL.mjs.map → schedule-tool-J3ICFSSR.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-handler-J3CJWB6A.mjs.map → schedule-tool-handler-FQO752PR.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-handler-O7T66M3I.mjs.map → schedule-tool-handler-Z5VWUB76.mjs.map} +0 -0
- /package/dist/sdk/{workflow-check-provider-4DC4KOHI.mjs.map → workflow-check-provider-5G6BGZEX.mjs.map} +0 -0
- /package/dist/sdk/{workflow-check-provider-7RLM3T2I.mjs.map → workflow-check-provider-7KJD2JXX.mjs.map} +0 -0
|
@@ -24,7 +24,7 @@ var init_host = __esm({
|
|
|
24
24
|
const { GitHubFrontend } = await import("./github-frontend-XKPAYXOT.mjs");
|
|
25
25
|
this.frontends.push(new GitHubFrontend());
|
|
26
26
|
} else if (spec.name === "slack") {
|
|
27
|
-
const { SlackFrontend } = await import("./slack-frontend-
|
|
27
|
+
const { SlackFrontend } = await import("./slack-frontend-QO7LW5BH.mjs");
|
|
28
28
|
this.frontends.push(new SlackFrontend(spec.config));
|
|
29
29
|
} else if (spec.name === "tui") {
|
|
30
30
|
const { TuiFrontend } = await import("./tui-frontend-T56PZB67.mjs");
|
|
@@ -60,4 +60,4 @@ init_host();
|
|
|
60
60
|
export {
|
|
61
61
|
FrontendsHost
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=host-
|
|
63
|
+
//# sourceMappingURL=host-IQYTGAJA.mjs.map
|
|
@@ -24,7 +24,7 @@ var init_host = __esm({
|
|
|
24
24
|
const { GitHubFrontend } = await import("./github-frontend-XKPAYXOT.mjs");
|
|
25
25
|
this.frontends.push(new GitHubFrontend());
|
|
26
26
|
} else if (spec.name === "slack") {
|
|
27
|
-
const { SlackFrontend } = await import("./slack-frontend-
|
|
27
|
+
const { SlackFrontend } = await import("./slack-frontend-QO7LW5BH.mjs");
|
|
28
28
|
this.frontends.push(new SlackFrontend(spec.config));
|
|
29
29
|
} else if (spec.name === "tui") {
|
|
30
30
|
const { TuiFrontend } = await import("./tui-frontend-T56PZB67.mjs");
|
|
@@ -60,4 +60,4 @@ init_host();
|
|
|
60
60
|
export {
|
|
61
61
|
FrontendsHost
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=host-
|
|
63
|
+
//# sourceMappingURL=host-YKTAWW33.mjs.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
handleScheduleAction,
|
|
5
5
|
init_schedule_tool,
|
|
6
6
|
isScheduleTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FRTHLKIG.mjs";
|
|
8
8
|
import "./chunk-KFKHU6CM.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-AVMMKGLQ.mjs";
|
|
10
10
|
import "./chunk-LG4AUKHB.mjs";
|
|
11
11
|
import "./chunk-B7BVQM5K.mjs";
|
|
12
12
|
import "./chunk-XXAEN5KU.mjs";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
handleScheduleAction,
|
|
33
33
|
isScheduleTool
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=schedule-tool-
|
|
35
|
+
//# sourceMappingURL=schedule-tool-526VUPMF.mjs.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
handleScheduleAction,
|
|
5
5
|
init_schedule_tool,
|
|
6
6
|
isScheduleTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XEVC3I2T.mjs";
|
|
8
8
|
import "./chunk-KFKHU6CM.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-AVMMKGLQ.mjs";
|
|
10
10
|
import "./chunk-LG4AUKHB.mjs";
|
|
11
11
|
import "./chunk-B7BVQM5K.mjs";
|
|
12
12
|
import "./chunk-XXAEN5KU.mjs";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
handleScheduleAction,
|
|
33
33
|
isScheduleTool
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=schedule-tool-
|
|
35
|
+
//# sourceMappingURL=schedule-tool-J3ICFSSR.mjs.map
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
extractSlackContext,
|
|
7
7
|
init_schedule_tool_handler,
|
|
8
8
|
isScheduleToolCall
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XEVC3I2T.mjs";
|
|
10
10
|
import "./chunk-KFKHU6CM.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-AVMMKGLQ.mjs";
|
|
12
12
|
import "./chunk-LG4AUKHB.mjs";
|
|
13
13
|
import "./chunk-B7BVQM5K.mjs";
|
|
14
14
|
import "./chunk-XXAEN5KU.mjs";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
extractSlackContext,
|
|
37
37
|
isScheduleToolCall
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=schedule-tool-handler-
|
|
39
|
+
//# sourceMappingURL=schedule-tool-handler-FQO752PR.mjs.map
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
extractSlackContext,
|
|
7
7
|
init_schedule_tool_handler,
|
|
8
8
|
isScheduleToolCall
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FRTHLKIG.mjs";
|
|
10
10
|
import "./chunk-KFKHU6CM.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-AVMMKGLQ.mjs";
|
|
12
12
|
import "./chunk-LG4AUKHB.mjs";
|
|
13
13
|
import "./chunk-B7BVQM5K.mjs";
|
|
14
14
|
import "./chunk-XXAEN5KU.mjs";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
extractSlackContext,
|
|
37
37
|
isScheduleToolCall
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=schedule-tool-handler-
|
|
39
|
+
//# sourceMappingURL=schedule-tool-handler-Z5VWUB76.mjs.map
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -6929,20 +6929,6 @@ var init_comment_metadata = __esm({
|
|
|
6929
6929
|
});
|
|
6930
6930
|
|
|
6931
6931
|
// src/slack/markdown.ts
|
|
6932
|
-
function extractMermaidDiagrams(text) {
|
|
6933
|
-
const diagrams = [];
|
|
6934
|
-
const regex = /```mermaid\s*\n([\s\S]*?)```/g;
|
|
6935
|
-
let match;
|
|
6936
|
-
while ((match = regex.exec(text)) !== null) {
|
|
6937
|
-
diagrams.push({
|
|
6938
|
-
fullMatch: match[0],
|
|
6939
|
-
code: match[1].trim(),
|
|
6940
|
-
startIndex: match.index,
|
|
6941
|
-
endIndex: match.index + match[0].length
|
|
6942
|
-
});
|
|
6943
|
-
}
|
|
6944
|
-
return diagrams;
|
|
6945
|
-
}
|
|
6946
6932
|
async function renderMermaidToPng(mermaidCode) {
|
|
6947
6933
|
const tmpDir = os.tmpdir();
|
|
6948
6934
|
const inputFile = path7.join(
|
|
@@ -19241,9 +19227,11 @@ var init_scheduler = __esm({
|
|
|
19241
19227
|
if (!import_node_cron.default.validate(job.schedule)) {
|
|
19242
19228
|
throw new Error(`Invalid cron expression: ${job.schedule}`);
|
|
19243
19229
|
}
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19230
|
+
if (job.workflow !== "default") {
|
|
19231
|
+
const allChecks = Object.keys(this.visorConfig.checks || {});
|
|
19232
|
+
if (!allChecks.includes(job.workflow)) {
|
|
19233
|
+
throw new Error(`Workflow "${job.workflow}" not found in configuration`);
|
|
19234
|
+
}
|
|
19247
19235
|
}
|
|
19248
19236
|
const internalId = `__static_cron__:${jobId}`;
|
|
19249
19237
|
const cronJob = import_node_cron.default.schedule(
|
|
@@ -19629,7 +19617,11 @@ var init_scheduler = __esm({
|
|
|
19629
19617
|
return { message: "No execution engine configured" };
|
|
19630
19618
|
}
|
|
19631
19619
|
const allChecks = Object.keys(this.visorConfig.checks || {});
|
|
19632
|
-
|
|
19620
|
+
const checksToRun = schedule.workflow === "default" ? allChecks : [schedule.workflow];
|
|
19621
|
+
if (checksToRun.length === 0) {
|
|
19622
|
+
throw new Error("No checks configured");
|
|
19623
|
+
}
|
|
19624
|
+
if (schedule.workflow !== "default" && !allChecks.includes(schedule.workflow)) {
|
|
19633
19625
|
throw new Error(`Workflow "${schedule.workflow}" not found in configuration`);
|
|
19634
19626
|
}
|
|
19635
19627
|
const syntheticPayload = {
|
|
@@ -19659,7 +19651,7 @@ var init_scheduler = __esm({
|
|
|
19659
19651
|
}
|
|
19660
19652
|
const { engine: runEngine, config: cfgForRun } = this.prepareExecution(schedule);
|
|
19661
19653
|
await runEngine.executeChecks({
|
|
19662
|
-
checks:
|
|
19654
|
+
checks: checksToRun,
|
|
19663
19655
|
showDetails: true,
|
|
19664
19656
|
outputFormat: "json",
|
|
19665
19657
|
config: cfgForRun,
|
|
@@ -58346,7 +58338,7 @@ ${message}`;
|
|
|
58346
58338
|
);
|
|
58347
58339
|
return;
|
|
58348
58340
|
}
|
|
58349
|
-
const diagrams =
|
|
58341
|
+
const diagrams = [];
|
|
58350
58342
|
let processedText = text;
|
|
58351
58343
|
if (diagrams.length > 0) {
|
|
58352
58344
|
try {
|