@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.
Files changed (131) 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 +9 -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 +3 -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 +172824 -45634
  50. package/dist/liquid-extensions.d.ts +3 -0
  51. package/dist/liquid-extensions.d.ts.map +1 -1
  52. package/dist/memory-store.d.ts +129 -0
  53. package/dist/memory-store.d.ts.map +1 -0
  54. package/dist/output/issue-assistant/schema.json +29 -0
  55. package/dist/output/issue-assistant/template.liquid +1 -0
  56. package/dist/output/overview/schema.json +33 -0
  57. package/dist/output/overview/template.liquid +16 -0
  58. package/dist/output-formatters.d.ts +1 -0
  59. package/dist/output-formatters.d.ts.map +1 -1
  60. package/dist/pr-analyzer.d.ts +2 -0
  61. package/dist/pr-analyzer.d.ts.map +1 -1
  62. package/dist/proto/channelz.proto +564 -0
  63. package/dist/providers/check-provider-registry.d.ts.map +1 -1
  64. package/dist/providers/command-check-provider.d.ts.map +1 -1
  65. package/dist/providers/github-ops-provider.d.ts +18 -0
  66. package/dist/providers/github-ops-provider.d.ts.map +1 -0
  67. package/dist/providers/memory-check-provider.d.ts +56 -0
  68. package/dist/providers/memory-check-provider.d.ts.map +1 -0
  69. package/dist/reviewer.d.ts +2 -0
  70. package/dist/reviewer.d.ts.map +1 -1
  71. package/dist/sdk/check-execution-engine-L73PFZQY.mjs +11 -0
  72. package/dist/sdk/chunk-2U6BIWSY.mjs +748 -0
  73. package/dist/sdk/chunk-2U6BIWSY.mjs.map +1 -0
  74. package/dist/sdk/chunk-KVHVCGY6.mjs +103 -0
  75. package/dist/sdk/chunk-KVHVCGY6.mjs.map +1 -0
  76. package/dist/sdk/{chunk-N2PPFOSF.mjs → chunk-LJHRU3WQ.mjs} +2577 -250
  77. package/dist/sdk/chunk-LJHRU3WQ.mjs.map +1 -0
  78. package/dist/sdk/chunk-TWJKAYT6.mjs +1124 -0
  79. package/dist/sdk/chunk-TWJKAYT6.mjs.map +1 -0
  80. package/dist/sdk/liquid-extensions-AFKRYROF.mjs +14 -0
  81. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs +61 -0
  82. package/dist/sdk/mermaid-telemetry-LZGDD35I.mjs.map +1 -0
  83. package/dist/sdk/sdk.d.mts +48 -2
  84. package/dist/sdk/sdk.d.ts +48 -2
  85. package/dist/sdk/sdk.js +5352 -767
  86. package/dist/sdk/sdk.js.map +1 -1
  87. package/dist/sdk/sdk.mjs +112 -7
  88. package/dist/sdk/sdk.mjs.map +1 -1
  89. package/dist/sdk/tracer-init-O7RLXMJ3.mjs +10 -0
  90. package/dist/sdk/tracer-init-O7RLXMJ3.mjs.map +1 -0
  91. package/dist/session-registry.d.ts +19 -5
  92. package/dist/session-registry.d.ts.map +1 -1
  93. package/dist/telemetry/fallback-ndjson.d.ts +7 -0
  94. package/dist/telemetry/fallback-ndjson.d.ts.map +1 -0
  95. package/dist/telemetry/file-span-exporter.d.ts +17 -0
  96. package/dist/telemetry/file-span-exporter.d.ts.map +1 -0
  97. package/dist/telemetry/metrics.d.ts +13 -0
  98. package/dist/telemetry/metrics.d.ts.map +1 -0
  99. package/dist/telemetry/opentelemetry.d.ts +26 -0
  100. package/dist/telemetry/opentelemetry.d.ts.map +1 -0
  101. package/dist/telemetry/trace-helpers.d.ts +9 -0
  102. package/dist/telemetry/trace-helpers.d.ts.map +1 -0
  103. package/dist/telemetry/trace-report-exporter.d.ts +17 -0
  104. package/dist/telemetry/trace-report-exporter.d.ts.map +1 -0
  105. package/dist/traces/run-2025-10-15T07-21-47-696Z.ndjson +17 -0
  106. package/dist/traces/run-2025-10-15T07-21-58-106Z.ndjson +17 -0
  107. package/dist/traces/run-2025-10-15T07-21-58-693Z.ndjson +17 -0
  108. package/dist/traces/run-2025-10-15T07-21-59-167Z.ndjson +17 -0
  109. package/dist/traces/run-2025-10-15T07-21-59-629Z.ndjson +8 -0
  110. package/dist/types/cli.d.ts +4 -0
  111. package/dist/types/cli.d.ts.map +1 -1
  112. package/dist/types/config.d.ts +56 -2
  113. package/dist/types/config.d.ts.map +1 -1
  114. package/dist/utils/author-permissions.d.ts +74 -0
  115. package/dist/utils/author-permissions.d.ts.map +1 -0
  116. package/dist/utils/head-sha.d.ts +8 -0
  117. package/dist/utils/head-sha.d.ts.map +1 -0
  118. package/dist/utils/mermaid-telemetry.d.ts +3 -0
  119. package/dist/utils/mermaid-telemetry.d.ts.map +1 -0
  120. package/dist/utils/tracer-init.d.ts +12 -0
  121. package/dist/utils/tracer-init.d.ts.map +1 -0
  122. package/dist/utils/ui-helpers.d.ts +3 -0
  123. package/dist/utils/ui-helpers.d.ts.map +1 -0
  124. package/package.json +2 -2
  125. package/dist/sdk/check-execution-engine-Z2USLMN5.mjs +0 -9
  126. package/dist/sdk/chunk-FIL2OGF6.mjs +0 -68
  127. package/dist/sdk/chunk-FIL2OGF6.mjs.map +0 -1
  128. package/dist/sdk/chunk-N2PPFOSF.mjs.map +0 -1
  129. package/dist/sdk/liquid-extensions-KDECAJTV.mjs +0 -12
  130. /package/dist/sdk/{check-execution-engine-Z2USLMN5.mjs.map → check-execution-engine-L73PFZQY.mjs.map} +0 -0
  131. /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-N2PPFOSF.mjs";
6
- import "./chunk-FIL2OGF6.mjs";
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: ["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
+ ],
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
  */