@probelabs/visor 0.1.89 → 0.1.92
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/README.md +68 -2
- package/action.yml +1 -1
- package/defaults/.visor.yaml +120 -154
- package/dist/13.index.js +82 -0
- package/dist/159.index.js +38 -0
- package/dist/168.index.js +82 -0
- package/dist/201.index.js +82 -0
- package/dist/262.index.js +48 -0
- package/dist/272.index.js +82 -0
- package/dist/273.index.js +48 -0
- package/dist/320.index.js +38 -0
- package/dist/34.index.js +81 -0
- package/dist/421.index.js +48 -0
- package/dist/437.index.js +82 -0
- package/dist/441.index.js +81 -0
- package/dist/450.index.js +82 -0
- package/dist/54.index.js +81 -0
- package/dist/544.index.js +38 -0
- package/dist/558.index.js +82 -0
- package/dist/715.index.js +38 -0
- package/dist/737.index.js +82 -0
- package/dist/834.index.js +48 -0
- package/dist/85.index.js +82 -0
- package/dist/861.index.js +48 -0
- package/dist/878.index.js +81 -0
- package/dist/940.index.js +38 -0
- package/dist/989.index.js +81 -0
- package/dist/996.index.js +82 -0
- package/dist/ai-review-service.d.ts +11 -1
- package/dist/ai-review-service.d.ts.map +1 -1
- package/dist/check-execution-engine.d.ts +12 -2
- package/dist/check-execution-engine.d.ts.map +1 -1
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/defaults/.visor.yaml +120 -154
- package/dist/failure-condition-evaluator.d.ts +4 -2
- package/dist/failure-condition-evaluator.d.ts.map +1 -1
- package/dist/generated/config-schema.d.ts +89 -2
- package/dist/generated/config-schema.d.ts.map +1 -1
- package/dist/generated/config-schema.json +109 -1
- package/dist/git-repository-analyzer.d.ts +17 -1
- package/dist/git-repository-analyzer.d.ts.map +1 -1
- package/dist/github-comments.d.ts.map +1 -1
- package/dist/github-reactions.d.ts +36 -0
- package/dist/github-reactions.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174591 -45945
- package/dist/liquid-extensions.d.ts +3 -0
- package/dist/liquid-extensions.d.ts.map +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/memory-store.d.ts +129 -0
- package/dist/memory-store.d.ts.map +1 -0
- package/dist/output/issue-assistant/schema.json +29 -0
- package/dist/output/issue-assistant/template.liquid +1 -0
- package/dist/output/overview/schema.json +33 -0
- package/dist/output/overview/template.liquid +16 -0
- package/dist/output-formatters.d.ts +1 -0
- package/dist/output-formatters.d.ts.map +1 -1
- package/dist/pr-analyzer.d.ts +2 -0
- package/dist/pr-analyzer.d.ts.map +1 -1
- package/dist/proto/channelz.proto +564 -0
- package/dist/providers/check-provider-registry.d.ts.map +1 -1
- package/dist/providers/command-check-provider.d.ts +2 -0
- package/dist/providers/command-check-provider.d.ts.map +1 -1
- package/dist/providers/github-ops-provider.d.ts +18 -0
- package/dist/providers/github-ops-provider.d.ts.map +1 -0
- package/dist/providers/memory-check-provider.d.ts +56 -0
- package/dist/providers/memory-check-provider.d.ts.map +1 -0
- package/dist/reviewer.d.ts +2 -0
- package/dist/reviewer.d.ts.map +1 -1
- package/dist/sdk/check-execution-engine-L73PFZQY.mjs +11 -0
- package/dist/sdk/chunk-2U6BIWSY.mjs +748 -0
- package/dist/sdk/chunk-2U6BIWSY.mjs.map +1 -0
- package/dist/sdk/chunk-KVHVCGY6.mjs +103 -0
- package/dist/sdk/chunk-KVHVCGY6.mjs.map +1 -0
- package/dist/sdk/{chunk-N34GS4A5.mjs → chunk-LJHRU3WQ.mjs} +4065 -473
- package/dist/sdk/chunk-LJHRU3WQ.mjs.map +1 -0
- package/dist/sdk/chunk-TWJKAYT6.mjs +1124 -0
- package/dist/sdk/chunk-TWJKAYT6.mjs.map +1 -0
- package/dist/sdk/liquid-extensions-AFKRYROF.mjs +14 -0
- package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs +61 -0
- package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs.map +1 -0
- package/dist/sdk/sdk.d.mts +48 -2
- package/dist/sdk/sdk.d.ts +48 -2
- package/dist/sdk/sdk.js +6651 -811
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +114 -7
- package/dist/sdk/sdk.mjs.map +1 -1
- package/dist/sdk/tracer-init-O7RLXMJ3.mjs +10 -0
- package/dist/sdk/tracer-init-O7RLXMJ3.mjs.map +1 -0
- package/dist/session-registry.d.ts +19 -5
- package/dist/session-registry.d.ts.map +1 -1
- package/dist/telemetry/fallback-ndjson.d.ts +7 -0
- package/dist/telemetry/fallback-ndjson.d.ts.map +1 -0
- package/dist/telemetry/file-span-exporter.d.ts +17 -0
- package/dist/telemetry/file-span-exporter.d.ts.map +1 -0
- package/dist/telemetry/metrics.d.ts +13 -0
- package/dist/telemetry/metrics.d.ts.map +1 -0
- package/dist/telemetry/opentelemetry.d.ts +26 -0
- package/dist/telemetry/opentelemetry.d.ts.map +1 -0
- package/dist/telemetry/trace-helpers.d.ts +9 -0
- package/dist/telemetry/trace-helpers.d.ts.map +1 -0
- package/dist/telemetry/trace-report-exporter.d.ts +17 -0
- package/dist/telemetry/trace-report-exporter.d.ts.map +1 -0
- package/dist/traces/run-2025-10-15T07-21-47-696Z.ndjson +17 -0
- package/dist/traces/run-2025-10-15T07-21-58-106Z.ndjson +17 -0
- package/dist/traces/run-2025-10-15T07-21-58-693Z.ndjson +17 -0
- package/dist/traces/run-2025-10-15T07-21-59-167Z.ndjson +17 -0
- package/dist/traces/run-2025-10-15T07-21-59-629Z.ndjson +8 -0
- package/dist/types/cli.d.ts +4 -0
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/config.d.ts +56 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/author-permissions.d.ts +74 -0
- package/dist/utils/author-permissions.d.ts.map +1 -0
- package/dist/utils/head-sha.d.ts +8 -0
- package/dist/utils/head-sha.d.ts.map +1 -0
- package/dist/utils/mermaid-telemetry.d.ts +3 -0
- package/dist/utils/mermaid-telemetry.d.ts.map +1 -0
- package/dist/utils/tracer-init.d.ts +12 -0
- package/dist/utils/tracer-init.d.ts.map +1 -0
- package/dist/utils/ui-helpers.d.ts +3 -0
- package/dist/utils/ui-helpers.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/sdk/check-execution-engine-D6FPIIKR.mjs +0 -9
- package/dist/sdk/chunk-FIL2OGF6.mjs +0 -68
- package/dist/sdk/chunk-FIL2OGF6.mjs.map +0 -1
- package/dist/sdk/chunk-N34GS4A5.mjs.map +0 -1
- package/dist/sdk/liquid-extensions-KDECAJTV.mjs +0 -12
- /package/dist/sdk/{check-execution-engine-D6FPIIKR.mjs.map → check-execution-engine-L73PFZQY.mjs.map} +0 -0
- /package/dist/sdk/{liquid-extensions-KDECAJTV.mjs.map → liquid-extensions-AFKRYROF.mjs.map} +0 -0
package/dist/sdk/sdk.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CheckExecutionEngine
|
|
2
|
+
CheckExecutionEngine
|
|
3
|
+
} from "./chunk-LJHRU3WQ.mjs";
|
|
4
|
+
import "./chunk-KVHVCGY6.mjs";
|
|
5
|
+
import {
|
|
6
|
+
init_logger,
|
|
3
7
|
logger
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2U6BIWSY.mjs";
|
|
9
|
+
import "./chunk-TWJKAYT6.mjs";
|
|
6
10
|
import {
|
|
7
11
|
ConfigMerger
|
|
8
12
|
} from "./chunk-U5D2LY66.mjs";
|
|
@@ -60,6 +64,10 @@ var init_config_schema = __esm({
|
|
|
60
64
|
$ref: "#/definitions/HttpServerConfig",
|
|
61
65
|
description: "HTTP server configuration for receiving webhooks"
|
|
62
66
|
},
|
|
67
|
+
memory: {
|
|
68
|
+
$ref: "#/definitions/MemoryConfig",
|
|
69
|
+
description: "Memory storage configuration"
|
|
70
|
+
},
|
|
63
71
|
env: {
|
|
64
72
|
$ref: "#/definitions/EnvConfig",
|
|
65
73
|
description: "Global environment variables"
|
|
@@ -305,6 +313,48 @@ var init_config_schema = __esm({
|
|
|
305
313
|
include_metadata: {
|
|
306
314
|
type: "boolean",
|
|
307
315
|
description: "Include execution metadata in log output"
|
|
316
|
+
},
|
|
317
|
+
operation: {
|
|
318
|
+
type: "string",
|
|
319
|
+
enum: ["get", "set", "append", "increment", "delete", "clear", "list", "exec_js"],
|
|
320
|
+
description: "Memory operation to perform"
|
|
321
|
+
},
|
|
322
|
+
key: {
|
|
323
|
+
type: "string",
|
|
324
|
+
description: "Key for memory operation"
|
|
325
|
+
},
|
|
326
|
+
value: {
|
|
327
|
+
description: "Value for set/append operations"
|
|
328
|
+
},
|
|
329
|
+
value_js: {
|
|
330
|
+
type: "string",
|
|
331
|
+
description: "JavaScript expression to compute value dynamically"
|
|
332
|
+
},
|
|
333
|
+
memory_js: {
|
|
334
|
+
type: "string",
|
|
335
|
+
description: "JavaScript code for exec_js operation with full memory access"
|
|
336
|
+
},
|
|
337
|
+
namespace: {
|
|
338
|
+
type: "string",
|
|
339
|
+
description: "Override namespace for this check"
|
|
340
|
+
},
|
|
341
|
+
op: {
|
|
342
|
+
type: "string",
|
|
343
|
+
description: "GitHub operation to perform (e.g., 'labels.add', 'labels.remove', 'comment.create')"
|
|
344
|
+
},
|
|
345
|
+
values: {
|
|
346
|
+
anyOf: [
|
|
347
|
+
{
|
|
348
|
+
type: "array",
|
|
349
|
+
items: {
|
|
350
|
+
type: "string"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: "string"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
description: "Values for GitHub operations (can be array or single value)"
|
|
308
358
|
}
|
|
309
359
|
},
|
|
310
360
|
additionalProperties: false,
|
|
@@ -315,7 +365,18 @@ var init_config_schema = __esm({
|
|
|
315
365
|
},
|
|
316
366
|
ConfigCheckType: {
|
|
317
367
|
type: "string",
|
|
318
|
-
enum: [
|
|
368
|
+
enum: [
|
|
369
|
+
"ai",
|
|
370
|
+
"command",
|
|
371
|
+
"http",
|
|
372
|
+
"http_input",
|
|
373
|
+
"http_client",
|
|
374
|
+
"noop",
|
|
375
|
+
"log",
|
|
376
|
+
"memory",
|
|
377
|
+
"github",
|
|
378
|
+
"claude-code"
|
|
379
|
+
],
|
|
319
380
|
description: "Valid check types in configuration"
|
|
320
381
|
},
|
|
321
382
|
"Record<string,string>": {
|
|
@@ -561,6 +622,10 @@ var init_config_schema = __esm({
|
|
|
561
622
|
type: "string",
|
|
562
623
|
description: "Jump back to an ancestor step (by id)"
|
|
563
624
|
},
|
|
625
|
+
goto_event: {
|
|
626
|
+
$ref: "#/definitions/EventTrigger",
|
|
627
|
+
description: "Simulate a different event when performing goto (e.g., 'pr_updated')"
|
|
628
|
+
},
|
|
564
629
|
goto_js: {
|
|
565
630
|
type: "string",
|
|
566
631
|
description: "Dynamic goto: JS expression returning step id or null"
|
|
@@ -627,6 +692,10 @@ var init_config_schema = __esm({
|
|
|
627
692
|
type: "string",
|
|
628
693
|
description: "Optional jump back to ancestor step (by id)"
|
|
629
694
|
},
|
|
695
|
+
goto_event: {
|
|
696
|
+
$ref: "#/definitions/EventTrigger",
|
|
697
|
+
description: "Simulate a different event when performing goto (e.g., 'pr_updated')"
|
|
698
|
+
},
|
|
630
699
|
goto_js: {
|
|
631
700
|
type: "string",
|
|
632
701
|
description: "Dynamic goto: JS expression returning step id or null"
|
|
@@ -703,7 +772,7 @@ var init_config_schema = __esm({
|
|
|
703
772
|
},
|
|
704
773
|
GroupByOption: {
|
|
705
774
|
type: "string",
|
|
706
|
-
enum: ["check", "file", "severity"],
|
|
775
|
+
enum: ["check", "file", "severity", "group"],
|
|
707
776
|
description: "Valid grouping options"
|
|
708
777
|
},
|
|
709
778
|
DebugConfig: {
|
|
@@ -905,6 +974,42 @@ var init_config_schema = __esm({
|
|
|
905
974
|
"^x-": {}
|
|
906
975
|
}
|
|
907
976
|
},
|
|
977
|
+
MemoryConfig: {
|
|
978
|
+
type: "object",
|
|
979
|
+
properties: {
|
|
980
|
+
storage: {
|
|
981
|
+
type: "string",
|
|
982
|
+
enum: ["memory", "file"],
|
|
983
|
+
description: 'Storage mode: "memory" (in-memory, default) or "file" (persistent)'
|
|
984
|
+
},
|
|
985
|
+
format: {
|
|
986
|
+
type: "string",
|
|
987
|
+
enum: ["json", "csv"],
|
|
988
|
+
description: "Storage format (only for file storage, default: json)"
|
|
989
|
+
},
|
|
990
|
+
file: {
|
|
991
|
+
type: "string",
|
|
992
|
+
description: "File path (required if storage: file)"
|
|
993
|
+
},
|
|
994
|
+
namespace: {
|
|
995
|
+
type: "string",
|
|
996
|
+
description: 'Default namespace (default: "default")'
|
|
997
|
+
},
|
|
998
|
+
auto_load: {
|
|
999
|
+
type: "boolean",
|
|
1000
|
+
description: "Auto-load on startup (default: true if storage: file)"
|
|
1001
|
+
},
|
|
1002
|
+
auto_save: {
|
|
1003
|
+
type: "boolean",
|
|
1004
|
+
description: "Auto-save after operations (default: true if storage: file)"
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
additionalProperties: false,
|
|
1008
|
+
description: "Memory storage configuration",
|
|
1009
|
+
patternProperties: {
|
|
1010
|
+
"^x-": {}
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
908
1013
|
TagFilter: {
|
|
909
1014
|
type: "object",
|
|
910
1015
|
properties: {
|
|
@@ -963,6 +1068,7 @@ var init_config_schema = __esm({
|
|
|
963
1068
|
});
|
|
964
1069
|
|
|
965
1070
|
// src/config.ts
|
|
1071
|
+
init_logger();
|
|
966
1072
|
import * as yaml2 from "js-yaml";
|
|
967
1073
|
import * as fs2 from "fs";
|
|
968
1074
|
import * as path2 from "path";
|
|
@@ -1320,7 +1426,8 @@ var ConfigManager = class {
|
|
|
1320
1426
|
"http_input",
|
|
1321
1427
|
"http_client",
|
|
1322
1428
|
"noop",
|
|
1323
|
-
"log"
|
|
1429
|
+
"log",
|
|
1430
|
+
"github"
|
|
1324
1431
|
];
|
|
1325
1432
|
validEventTriggers = [
|
|
1326
1433
|
"pr_opened",
|
|
@@ -1333,7 +1440,7 @@ var ConfigManager = class {
|
|
|
1333
1440
|
"webhook_received"
|
|
1334
1441
|
];
|
|
1335
1442
|
validOutputFormats = ["table", "json", "markdown", "sarif"];
|
|
1336
|
-
validGroupByOptions = ["check", "file", "severity"];
|
|
1443
|
+
validGroupByOptions = ["check", "file", "severity", "group"];
|
|
1337
1444
|
/**
|
|
1338
1445
|
* Load configuration from a file
|
|
1339
1446
|
*/
|