@probelabs/visor 0.1.90 → 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 +9 -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 +3 -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 +172824 -45634
- package/dist/liquid-extensions.d.ts +3 -0
- package/dist/liquid-extensions.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.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-N2PPFOSF.mjs → chunk-LJHRU3WQ.mjs} +2577 -250
- 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 +5352 -767
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +112 -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 +2 -2
- package/dist/sdk/check-execution-engine-Z2USLMN5.mjs +0 -9
- package/dist/sdk/chunk-FIL2OGF6.mjs +0 -68
- package/dist/sdk/chunk-FIL2OGF6.mjs.map +0 -1
- package/dist/sdk/chunk-N2PPFOSF.mjs.map +0 -1
- package/dist/sdk/liquid-extensions-KDECAJTV.mjs +0 -12
- /package/dist/sdk/{check-execution-engine-Z2USLMN5.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,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CheckExecutionEngine
|
|
2
|
+
CheckExecutionEngine
|
|
3
|
+
} from "./chunk-LJHRU3WQ.mjs";
|
|
4
|
+
import "./chunk-KVHVCGY6.mjs";
|
|
5
|
+
import {
|
|
3
6
|
init_logger,
|
|
4
7
|
logger
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2U6BIWSY.mjs";
|
|
9
|
+
import "./chunk-TWJKAYT6.mjs";
|
|
7
10
|
import {
|
|
8
11
|
ConfigMerger
|
|
9
12
|
} from "./chunk-U5D2LY66.mjs";
|
|
@@ -61,6 +64,10 @@ var init_config_schema = __esm({
|
|
|
61
64
|
$ref: "#/definitions/HttpServerConfig",
|
|
62
65
|
description: "HTTP server configuration for receiving webhooks"
|
|
63
66
|
},
|
|
67
|
+
memory: {
|
|
68
|
+
$ref: "#/definitions/MemoryConfig",
|
|
69
|
+
description: "Memory storage configuration"
|
|
70
|
+
},
|
|
64
71
|
env: {
|
|
65
72
|
$ref: "#/definitions/EnvConfig",
|
|
66
73
|
description: "Global environment variables"
|
|
@@ -306,6 +313,48 @@ var init_config_schema = __esm({
|
|
|
306
313
|
include_metadata: {
|
|
307
314
|
type: "boolean",
|
|
308
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)"
|
|
309
358
|
}
|
|
310
359
|
},
|
|
311
360
|
additionalProperties: false,
|
|
@@ -316,7 +365,18 @@ var init_config_schema = __esm({
|
|
|
316
365
|
},
|
|
317
366
|
ConfigCheckType: {
|
|
318
367
|
type: "string",
|
|
319
|
-
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
|
+
],
|
|
320
380
|
description: "Valid check types in configuration"
|
|
321
381
|
},
|
|
322
382
|
"Record<string,string>": {
|
|
@@ -562,6 +622,10 @@ var init_config_schema = __esm({
|
|
|
562
622
|
type: "string",
|
|
563
623
|
description: "Jump back to an ancestor step (by id)"
|
|
564
624
|
},
|
|
625
|
+
goto_event: {
|
|
626
|
+
$ref: "#/definitions/EventTrigger",
|
|
627
|
+
description: "Simulate a different event when performing goto (e.g., 'pr_updated')"
|
|
628
|
+
},
|
|
565
629
|
goto_js: {
|
|
566
630
|
type: "string",
|
|
567
631
|
description: "Dynamic goto: JS expression returning step id or null"
|
|
@@ -628,6 +692,10 @@ var init_config_schema = __esm({
|
|
|
628
692
|
type: "string",
|
|
629
693
|
description: "Optional jump back to ancestor step (by id)"
|
|
630
694
|
},
|
|
695
|
+
goto_event: {
|
|
696
|
+
$ref: "#/definitions/EventTrigger",
|
|
697
|
+
description: "Simulate a different event when performing goto (e.g., 'pr_updated')"
|
|
698
|
+
},
|
|
631
699
|
goto_js: {
|
|
632
700
|
type: "string",
|
|
633
701
|
description: "Dynamic goto: JS expression returning step id or null"
|
|
@@ -704,7 +772,7 @@ var init_config_schema = __esm({
|
|
|
704
772
|
},
|
|
705
773
|
GroupByOption: {
|
|
706
774
|
type: "string",
|
|
707
|
-
enum: ["check", "file", "severity"],
|
|
775
|
+
enum: ["check", "file", "severity", "group"],
|
|
708
776
|
description: "Valid grouping options"
|
|
709
777
|
},
|
|
710
778
|
DebugConfig: {
|
|
@@ -906,6 +974,42 @@ var init_config_schema = __esm({
|
|
|
906
974
|
"^x-": {}
|
|
907
975
|
}
|
|
908
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
|
+
},
|
|
909
1013
|
TagFilter: {
|
|
910
1014
|
type: "object",
|
|
911
1015
|
properties: {
|
|
@@ -1322,7 +1426,8 @@ var ConfigManager = class {
|
|
|
1322
1426
|
"http_input",
|
|
1323
1427
|
"http_client",
|
|
1324
1428
|
"noop",
|
|
1325
|
-
"log"
|
|
1429
|
+
"log",
|
|
1430
|
+
"github"
|
|
1326
1431
|
];
|
|
1327
1432
|
validEventTriggers = [
|
|
1328
1433
|
"pr_opened",
|
|
@@ -1335,7 +1440,7 @@ var ConfigManager = class {
|
|
|
1335
1440
|
"webhook_received"
|
|
1336
1441
|
];
|
|
1337
1442
|
validOutputFormats = ["table", "json", "markdown", "sarif"];
|
|
1338
|
-
validGroupByOptions = ["check", "file", "severity"];
|
|
1443
|
+
validGroupByOptions = ["check", "file", "severity", "group"];
|
|
1339
1444
|
/**
|
|
1340
1445
|
* Load configuration from a file
|
|
1341
1446
|
*/
|