@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.
Files changed (133) hide show
  1. package/README.md +68 -2
  2. package/action.yml +1 -1
  3. package/defaults/.visor.yaml +120 -154
  4. package/dist/13.index.js +82 -0
  5. package/dist/159.index.js +38 -0
  6. package/dist/168.index.js +82 -0
  7. package/dist/201.index.js +82 -0
  8. package/dist/262.index.js +48 -0
  9. package/dist/272.index.js +82 -0
  10. package/dist/273.index.js +48 -0
  11. package/dist/320.index.js +38 -0
  12. package/dist/34.index.js +81 -0
  13. package/dist/421.index.js +48 -0
  14. package/dist/437.index.js +82 -0
  15. package/dist/441.index.js +81 -0
  16. package/dist/450.index.js +82 -0
  17. package/dist/54.index.js +81 -0
  18. package/dist/544.index.js +38 -0
  19. package/dist/558.index.js +82 -0
  20. package/dist/715.index.js +38 -0
  21. package/dist/737.index.js +82 -0
  22. package/dist/834.index.js +48 -0
  23. package/dist/85.index.js +82 -0
  24. package/dist/861.index.js +48 -0
  25. package/dist/878.index.js +81 -0
  26. package/dist/940.index.js +38 -0
  27. package/dist/989.index.js +81 -0
  28. package/dist/996.index.js +82 -0
  29. package/dist/ai-review-service.d.ts +11 -1
  30. package/dist/ai-review-service.d.ts.map +1 -1
  31. package/dist/check-execution-engine.d.ts +12 -2
  32. package/dist/check-execution-engine.d.ts.map +1 -1
  33. package/dist/cli-main.d.ts.map +1 -1
  34. package/dist/cli.d.ts.map +1 -1
  35. package/dist/config.d.ts.map +1 -1
  36. package/dist/defaults/.visor.yaml +120 -154
  37. package/dist/failure-condition-evaluator.d.ts +4 -2
  38. package/dist/failure-condition-evaluator.d.ts.map +1 -1
  39. package/dist/generated/config-schema.d.ts +89 -2
  40. package/dist/generated/config-schema.d.ts.map +1 -1
  41. package/dist/generated/config-schema.json +109 -1
  42. package/dist/git-repository-analyzer.d.ts +17 -1
  43. package/dist/git-repository-analyzer.d.ts.map +1 -1
  44. package/dist/github-comments.d.ts.map +1 -1
  45. package/dist/github-reactions.d.ts +36 -0
  46. package/dist/github-reactions.d.ts.map +1 -0
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +174591 -45945
  50. package/dist/liquid-extensions.d.ts +3 -0
  51. package/dist/liquid-extensions.d.ts.map +1 -1
  52. package/dist/logger.d.ts.map +1 -1
  53. package/dist/memory-store.d.ts +129 -0
  54. package/dist/memory-store.d.ts.map +1 -0
  55. package/dist/output/issue-assistant/schema.json +29 -0
  56. package/dist/output/issue-assistant/template.liquid +1 -0
  57. package/dist/output/overview/schema.json +33 -0
  58. package/dist/output/overview/template.liquid +16 -0
  59. package/dist/output-formatters.d.ts +1 -0
  60. package/dist/output-formatters.d.ts.map +1 -1
  61. package/dist/pr-analyzer.d.ts +2 -0
  62. package/dist/pr-analyzer.d.ts.map +1 -1
  63. package/dist/proto/channelz.proto +564 -0
  64. package/dist/providers/check-provider-registry.d.ts.map +1 -1
  65. package/dist/providers/command-check-provider.d.ts +2 -0
  66. package/dist/providers/command-check-provider.d.ts.map +1 -1
  67. package/dist/providers/github-ops-provider.d.ts +18 -0
  68. package/dist/providers/github-ops-provider.d.ts.map +1 -0
  69. package/dist/providers/memory-check-provider.d.ts +56 -0
  70. package/dist/providers/memory-check-provider.d.ts.map +1 -0
  71. package/dist/reviewer.d.ts +2 -0
  72. package/dist/reviewer.d.ts.map +1 -1
  73. package/dist/sdk/check-execution-engine-L73PFZQY.mjs +11 -0
  74. package/dist/sdk/chunk-2U6BIWSY.mjs +748 -0
  75. package/dist/sdk/chunk-2U6BIWSY.mjs.map +1 -0
  76. package/dist/sdk/chunk-KVHVCGY6.mjs +103 -0
  77. package/dist/sdk/chunk-KVHVCGY6.mjs.map +1 -0
  78. package/dist/sdk/{chunk-N34GS4A5.mjs → chunk-LJHRU3WQ.mjs} +4065 -473
  79. package/dist/sdk/chunk-LJHRU3WQ.mjs.map +1 -0
  80. package/dist/sdk/chunk-TWJKAYT6.mjs +1124 -0
  81. package/dist/sdk/chunk-TWJKAYT6.mjs.map +1 -0
  82. package/dist/sdk/liquid-extensions-AFKRYROF.mjs +14 -0
  83. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs +61 -0
  84. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs.map +1 -0
  85. package/dist/sdk/sdk.d.mts +48 -2
  86. package/dist/sdk/sdk.d.ts +48 -2
  87. package/dist/sdk/sdk.js +6651 -811
  88. package/dist/sdk/sdk.js.map +1 -1
  89. package/dist/sdk/sdk.mjs +114 -7
  90. package/dist/sdk/sdk.mjs.map +1 -1
  91. package/dist/sdk/tracer-init-O7RLXMJ3.mjs +10 -0
  92. package/dist/sdk/tracer-init-O7RLXMJ3.mjs.map +1 -0
  93. package/dist/session-registry.d.ts +19 -5
  94. package/dist/session-registry.d.ts.map +1 -1
  95. package/dist/telemetry/fallback-ndjson.d.ts +7 -0
  96. package/dist/telemetry/fallback-ndjson.d.ts.map +1 -0
  97. package/dist/telemetry/file-span-exporter.d.ts +17 -0
  98. package/dist/telemetry/file-span-exporter.d.ts.map +1 -0
  99. package/dist/telemetry/metrics.d.ts +13 -0
  100. package/dist/telemetry/metrics.d.ts.map +1 -0
  101. package/dist/telemetry/opentelemetry.d.ts +26 -0
  102. package/dist/telemetry/opentelemetry.d.ts.map +1 -0
  103. package/dist/telemetry/trace-helpers.d.ts +9 -0
  104. package/dist/telemetry/trace-helpers.d.ts.map +1 -0
  105. package/dist/telemetry/trace-report-exporter.d.ts +17 -0
  106. package/dist/telemetry/trace-report-exporter.d.ts.map +1 -0
  107. package/dist/traces/run-2025-10-15T07-21-47-696Z.ndjson +17 -0
  108. package/dist/traces/run-2025-10-15T07-21-58-106Z.ndjson +17 -0
  109. package/dist/traces/run-2025-10-15T07-21-58-693Z.ndjson +17 -0
  110. package/dist/traces/run-2025-10-15T07-21-59-167Z.ndjson +17 -0
  111. package/dist/traces/run-2025-10-15T07-21-59-629Z.ndjson +8 -0
  112. package/dist/types/cli.d.ts +4 -0
  113. package/dist/types/cli.d.ts.map +1 -1
  114. package/dist/types/config.d.ts +56 -2
  115. package/dist/types/config.d.ts.map +1 -1
  116. package/dist/utils/author-permissions.d.ts +74 -0
  117. package/dist/utils/author-permissions.d.ts.map +1 -0
  118. package/dist/utils/head-sha.d.ts +8 -0
  119. package/dist/utils/head-sha.d.ts.map +1 -0
  120. package/dist/utils/mermaid-telemetry.d.ts +3 -0
  121. package/dist/utils/mermaid-telemetry.d.ts.map +1 -0
  122. package/dist/utils/tracer-init.d.ts +12 -0
  123. package/dist/utils/tracer-init.d.ts.map +1 -0
  124. package/dist/utils/ui-helpers.d.ts +3 -0
  125. package/dist/utils/ui-helpers.d.ts.map +1 -0
  126. package/package.json +3 -3
  127. package/dist/sdk/check-execution-engine-D6FPIIKR.mjs +0 -9
  128. package/dist/sdk/chunk-FIL2OGF6.mjs +0 -68
  129. package/dist/sdk/chunk-FIL2OGF6.mjs.map +0 -1
  130. package/dist/sdk/chunk-N34GS4A5.mjs.map +0 -1
  131. package/dist/sdk/liquid-extensions-KDECAJTV.mjs +0 -12
  132. /package/dist/sdk/{check-execution-engine-D6FPIIKR.mjs.map → check-execution-engine-L73PFZQY.mjs.map} +0 -0
  133. /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-N34GS4A5.mjs";
5
- import "./chunk-FIL2OGF6.mjs";
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: ["ai", "command", "http", "http_input", "http_client", "noop", "log", "claude-code"],
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
  */