@probelabs/visor 0.1.131-ee → 0.1.132

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 (123) hide show
  1. package/README.md +460 -596
  2. package/action.yml +2 -2
  3. package/dist/ai-review-service.d.ts +3 -0
  4. package/dist/ai-review-service.d.ts.map +1 -1
  5. package/dist/cli-main.d.ts.map +1 -1
  6. package/dist/config/config-watcher.d.ts +15 -1
  7. package/dist/config/config-watcher.d.ts.map +1 -1
  8. package/dist/enterprise/policy/policy-input-builder.d.ts +2 -0
  9. package/dist/enterprise/policy/policy-input-builder.d.ts.map +1 -1
  10. package/dist/frontends/slack-frontend.d.ts.map +1 -1
  11. package/dist/generated/config-schema.d.ts +404 -96
  12. package/dist/generated/config-schema.d.ts.map +1 -1
  13. package/dist/generated/config-schema.json +2875 -0
  14. package/dist/index.js +23085 -10225
  15. package/dist/output/traces/run-2026-02-18T11-06-48-673Z.ndjson +138 -0
  16. package/dist/output/traces/run-2026-02-18T11-07-37-310Z.ndjson +1357 -0
  17. package/dist/providers/ai-check-provider.d.ts +12 -0
  18. package/dist/providers/ai-check-provider.d.ts.map +1 -1
  19. package/dist/providers/workflow-check-provider.d.ts.map +1 -1
  20. package/dist/providers/workflow-tool-executor.d.ts +5 -1
  21. package/dist/providers/workflow-tool-executor.d.ts.map +1 -1
  22. package/dist/sdk/{check-provider-registry-FMHECPI4.mjs → check-provider-registry-4WLTLPMU.mjs} +7 -7
  23. package/dist/sdk/{check-provider-registry-ZOLEYDKM.mjs → check-provider-registry-7TCA3NSG.mjs} +6 -6
  24. package/dist/sdk/check-provider-registry-RRUZHGJI.mjs +28 -0
  25. package/dist/sdk/{chunk-EBTD2D4L.mjs → chunk-27RV5RR2.mjs} +2 -2
  26. package/dist/sdk/{chunk-UXMMGCAS.mjs → chunk-5VY5QJTY.mjs} +236 -47
  27. package/dist/sdk/chunk-5VY5QJTY.mjs.map +1 -0
  28. package/dist/sdk/{chunk-2GCSK3PD.mjs → chunk-BGBXLPLL.mjs} +3 -3
  29. package/dist/sdk/chunk-BOGVSF57.mjs +40101 -0
  30. package/dist/sdk/chunk-BOGVSF57.mjs.map +1 -0
  31. package/dist/sdk/chunk-FAKITJ3J.mjs +739 -0
  32. package/dist/sdk/chunk-FAKITJ3J.mjs.map +1 -0
  33. package/dist/sdk/chunk-LMJNI6RM.mjs +436 -0
  34. package/dist/sdk/chunk-LMJNI6RM.mjs.map +1 -0
  35. package/dist/sdk/{chunk-LQ5B4T6L.mjs → chunk-U3BLLEW3.mjs} +431 -82
  36. package/dist/sdk/chunk-U3BLLEW3.mjs.map +1 -0
  37. package/dist/sdk/chunk-UBDHAGYY.mjs +1502 -0
  38. package/dist/sdk/chunk-UBDHAGYY.mjs.map +1 -0
  39. package/dist/sdk/{chunk-N4I6ZDCJ.mjs → chunk-VG7FWDC2.mjs} +3 -3
  40. package/dist/sdk/chunk-VG7FWDC2.mjs.map +1 -0
  41. package/dist/sdk/{chunk-MQ57AB4U.mjs → chunk-XGI47XIH.mjs} +260 -55
  42. package/dist/sdk/chunk-XGI47XIH.mjs.map +1 -0
  43. package/dist/sdk/{config-4EG7IQIU.mjs → config-FMIIATKX.mjs} +2 -2
  44. package/dist/sdk/{failure-condition-evaluator-GLHZZF47.mjs → failure-condition-evaluator-MUUAK7MN.mjs} +3 -3
  45. package/dist/sdk/failure-condition-evaluator-PNONVBXD.mjs +17 -0
  46. package/dist/sdk/{github-frontend-F4TE2JY7.mjs → github-frontend-DWF6BLZH.mjs} +3 -3
  47. package/dist/sdk/github-frontend-WR4S3NG5.mjs +1356 -0
  48. package/dist/sdk/github-frontend-WR4S3NG5.mjs.map +1 -0
  49. package/dist/sdk/{host-GOOVFXW6.mjs → host-S3LSWESP.mjs} +3 -3
  50. package/dist/sdk/{host-VA3ET7N6.mjs → host-U7V54J2H.mjs} +3 -3
  51. package/dist/sdk/{routing-OXQKETSA.mjs → routing-F4FOWVKF.mjs} +4 -4
  52. package/dist/sdk/routing-MVDVJDYJ.mjs +25 -0
  53. package/dist/sdk/{schedule-tool-handler-YTBMLVEA.mjs → schedule-tool-handler-7DNEGDZC.mjs} +7 -7
  54. package/dist/sdk/{schedule-tool-handler-PJVKWSYX.mjs → schedule-tool-handler-FRN3KKRM.mjs} +6 -6
  55. package/dist/sdk/schedule-tool-handler-VFES42DD.mjs +38 -0
  56. package/dist/sdk/schedule-tool-handler-VFES42DD.mjs.map +1 -0
  57. package/dist/sdk/sdk.d.mts +56 -38
  58. package/dist/sdk/sdk.d.ts +56 -38
  59. package/dist/sdk/sdk.js +1017 -1646
  60. package/dist/sdk/sdk.js.map +1 -1
  61. package/dist/sdk/sdk.mjs +6 -6
  62. package/dist/sdk/{slack-frontend-LAY45IBR.mjs → slack-frontend-JS2VAZWB.mjs} +95 -4
  63. package/dist/sdk/slack-frontend-JS2VAZWB.mjs.map +1 -0
  64. package/dist/sdk/{trace-helpers-R2ETIEC2.mjs → trace-helpers-KSPGA24B.mjs} +2 -2
  65. package/dist/sdk/trace-helpers-KSPGA24B.mjs.map +1 -0
  66. package/dist/sdk/trace-helpers-RDPXIN4S.mjs +25 -0
  67. package/dist/sdk/trace-helpers-RDPXIN4S.mjs.map +1 -0
  68. package/dist/sdk/{workflow-check-provider-4SA32BO7.mjs → workflow-check-provider-4NFWH6YO.mjs} +7 -7
  69. package/dist/sdk/workflow-check-provider-4NFWH6YO.mjs.map +1 -0
  70. package/dist/sdk/{workflow-check-provider-57KAR4Y4.mjs → workflow-check-provider-BMVJ6X7N.mjs} +6 -6
  71. package/dist/sdk/workflow-check-provider-BMVJ6X7N.mjs.map +1 -0
  72. package/dist/sdk/workflow-check-provider-CPGIRZMH.mjs +28 -0
  73. package/dist/sdk/workflow-check-provider-CPGIRZMH.mjs.map +1 -0
  74. package/dist/slack/adapter.d.ts +2 -0
  75. package/dist/slack/adapter.d.ts.map +1 -1
  76. package/dist/slack/client.d.ts +3 -0
  77. package/dist/slack/client.d.ts.map +1 -1
  78. package/dist/slack/markdown.d.ts +29 -0
  79. package/dist/slack/markdown.d.ts.map +1 -1
  80. package/dist/slack/socket-runner.d.ts +2 -0
  81. package/dist/slack/socket-runner.d.ts.map +1 -1
  82. package/dist/traces/run-2026-02-18T11-06-48-673Z.ndjson +138 -0
  83. package/dist/traces/run-2026-02-18T11-07-37-310Z.ndjson +1357 -0
  84. package/dist/tui/chat-tui.d.ts +7 -0
  85. package/dist/tui/chat-tui.d.ts.map +1 -1
  86. package/dist/tui/components/input-bar.d.ts +11 -0
  87. package/dist/tui/components/input-bar.d.ts.map +1 -1
  88. package/dist/tui/components/trace-viewer.d.ts +25 -1
  89. package/dist/tui/components/trace-viewer.d.ts.map +1 -1
  90. package/dist/types/bot.d.ts +12 -0
  91. package/dist/types/bot.d.ts.map +1 -1
  92. package/dist/types/config.d.ts +4 -1
  93. package/dist/types/config.d.ts.map +1 -1
  94. package/package.json +3 -3
  95. package/dist/defaults/.visor.yaml +0 -420
  96. package/dist/sdk/chunk-LQ5B4T6L.mjs.map +0 -1
  97. package/dist/sdk/chunk-MQ57AB4U.mjs.map +0 -1
  98. package/dist/sdk/chunk-N4I6ZDCJ.mjs.map +0 -1
  99. package/dist/sdk/chunk-UXMMGCAS.mjs.map +0 -1
  100. package/dist/sdk/knex-store-HPXJILBL.mjs +0 -411
  101. package/dist/sdk/knex-store-HPXJILBL.mjs.map +0 -1
  102. package/dist/sdk/loader-ID5LMXOW.mjs +0 -89
  103. package/dist/sdk/loader-ID5LMXOW.mjs.map +0 -1
  104. package/dist/sdk/opa-policy-engine-UUPFN5CL.mjs +0 -655
  105. package/dist/sdk/opa-policy-engine-UUPFN5CL.mjs.map +0 -1
  106. package/dist/sdk/slack-frontend-LAY45IBR.mjs.map +0 -1
  107. package/dist/sdk/validator-XTZJZZJH.mjs +0 -134
  108. package/dist/sdk/validator-XTZJZZJH.mjs.map +0 -1
  109. /package/dist/sdk/{check-provider-registry-FMHECPI4.mjs.map → check-provider-registry-4WLTLPMU.mjs.map} +0 -0
  110. /package/dist/sdk/{check-provider-registry-ZOLEYDKM.mjs.map → check-provider-registry-7TCA3NSG.mjs.map} +0 -0
  111. /package/dist/sdk/{config-4EG7IQIU.mjs.map → check-provider-registry-RRUZHGJI.mjs.map} +0 -0
  112. /package/dist/sdk/{chunk-EBTD2D4L.mjs.map → chunk-27RV5RR2.mjs.map} +0 -0
  113. /package/dist/sdk/{chunk-2GCSK3PD.mjs.map → chunk-BGBXLPLL.mjs.map} +0 -0
  114. /package/dist/sdk/{failure-condition-evaluator-GLHZZF47.mjs.map → config-FMIIATKX.mjs.map} +0 -0
  115. /package/dist/sdk/{routing-OXQKETSA.mjs.map → failure-condition-evaluator-MUUAK7MN.mjs.map} +0 -0
  116. /package/dist/sdk/{schedule-tool-handler-PJVKWSYX.mjs.map → failure-condition-evaluator-PNONVBXD.mjs.map} +0 -0
  117. /package/dist/sdk/{github-frontend-F4TE2JY7.mjs.map → github-frontend-DWF6BLZH.mjs.map} +0 -0
  118. /package/dist/sdk/{host-GOOVFXW6.mjs.map → host-S3LSWESP.mjs.map} +0 -0
  119. /package/dist/sdk/{host-VA3ET7N6.mjs.map → host-U7V54J2H.mjs.map} +0 -0
  120. /package/dist/sdk/{schedule-tool-handler-YTBMLVEA.mjs.map → routing-F4FOWVKF.mjs.map} +0 -0
  121. /package/dist/sdk/{trace-helpers-R2ETIEC2.mjs.map → routing-MVDVJDYJ.mjs.map} +0 -0
  122. /package/dist/sdk/{workflow-check-provider-4SA32BO7.mjs.map → schedule-tool-handler-7DNEGDZC.mjs.map} +0 -0
  123. /package/dist/sdk/{workflow-check-provider-57KAR4Y4.mjs.map → schedule-tool-handler-FRN3KKRM.mjs.map} +0 -0
package/dist/sdk/sdk.d.ts CHANGED
@@ -63,6 +63,45 @@ interface ReviewSummary {
63
63
  sessionId?: string;
64
64
  }
65
65
 
66
+ interface PolicyConfig {
67
+ /** Policy engine mode */
68
+ engine: 'local' | 'remote' | 'disabled';
69
+ /** Path to .rego files or .wasm bundle (local mode) */
70
+ rules?: string | string[];
71
+ /** Path to a JSON file to load as OPA data document */
72
+ data?: string;
73
+ /** OPA server URL (remote mode) */
74
+ url?: string;
75
+ /** Default decision when policy evaluation fails */
76
+ fallback?: 'allow' | 'deny' | 'warn';
77
+ /** Evaluation timeout in ms (default: 5000) */
78
+ timeout?: number;
79
+ /** Role definitions: map role names to conditions */
80
+ roles?: Record<string, PolicyRoleConfig>;
81
+ }
82
+ interface PolicyRoleConfig {
83
+ /** GitHub author associations that map to this role */
84
+ author_association?: string[];
85
+ /** GitHub team slugs (requires GitHub API) */
86
+ teams?: string[];
87
+ /** Explicit GitHub usernames */
88
+ users?: string[];
89
+ /** Slack user IDs (e.g., ["U0123ABC"]) */
90
+ slack_users?: string[];
91
+ /** Email addresses for identity matching (e.g., ["alice@co.com"]) */
92
+ emails?: string[];
93
+ /** Slack channel IDs — role only applies when triggered from these channels */
94
+ slack_channels?: string[];
95
+ }
96
+ interface StepPolicyOverride {
97
+ /** Required role(s) - any of these roles suffices */
98
+ require?: string | string[];
99
+ /** Explicit deny for roles */
100
+ deny?: string[];
101
+ /** Custom OPA rule path for this step */
102
+ rule?: string;
103
+ }
104
+
66
105
  /**
67
106
  * Types for Docker-based sandbox execution environments
68
107
  */
@@ -121,44 +160,9 @@ interface SandboxConfig {
121
160
  cache?: SandboxCacheConfig;
122
161
  }
123
162
 
124
- interface PolicyConfig {
125
- /** Policy engine mode */
126
- engine: 'local' | 'remote' | 'disabled';
127
- /** Path to .rego files or .wasm bundle (local mode) */
128
- rules?: string | string[];
129
- /** Path to a JSON file to load as OPA data document */
130
- data?: string;
131
- /** OPA server URL (remote mode) */
132
- url?: string;
133
- /** Default decision when policy evaluation fails */
134
- fallback?: 'allow' | 'deny' | 'warn';
135
- /** Evaluation timeout in ms (default: 5000) */
136
- timeout?: number;
137
- /** Role definitions: map role names to conditions */
138
- roles?: Record<string, PolicyRoleConfig>;
139
- }
140
- interface PolicyRoleConfig {
141
- /** GitHub author associations that map to this role */
142
- author_association?: string[];
143
- /** GitHub team slugs (requires GitHub API) */
144
- teams?: string[];
145
- /** Explicit GitHub usernames */
146
- users?: string[];
147
- /** Slack user IDs (e.g., ["U0123ABC"]) */
148
- slack_users?: string[];
149
- /** Email addresses for identity matching (e.g., ["alice@co.com"]) */
150
- emails?: string[];
151
- /** Slack channel IDs — role only applies when triggered from these channels */
152
- slack_channels?: string[];
153
- }
154
- interface StepPolicyOverride {
155
- /** Required role(s) - any of these roles suffices */
156
- require?: string | string[];
157
- /** Explicit deny for roles */
158
- deny?: string[];
159
- /** Custom OPA rule path for this step */
160
- rule?: string;
161
- }
163
+ /**
164
+ * Types for Visor configuration system
165
+ */
162
166
 
163
167
  /**
164
168
  * Failure condition severity levels
@@ -363,6 +367,8 @@ interface AIProviderConfig {
363
367
  completion_prompt?: string;
364
368
  /** Enable the schedule tool for scheduling workflow executions (requires scheduler configuration) */
365
369
  enable_scheduler?: boolean;
370
+ /** Enable the execute_plan DSL orchestration tool (replaces analyze_all when enabled) */
371
+ enableExecutePlan?: boolean;
366
372
  }
367
373
  /**
368
374
  * Unified MCP server/tool entry - type detected by which properties are present
@@ -1519,6 +1525,16 @@ declare class EventBus {
1519
1525
 
1520
1526
  /** Bot transport types (trimmed for Slack v1) */
1521
1527
  type BotTransportType = 'slack' | string;
1528
+ /** Slack file attachment metadata */
1529
+ interface SlackFileAttachment {
1530
+ id: string;
1531
+ name?: string;
1532
+ mimetype?: string;
1533
+ filetype?: string;
1534
+ url_private?: string;
1535
+ permalink?: string;
1536
+ size?: number;
1537
+ }
1522
1538
  interface NormalizedMessage {
1523
1539
  role: 'user' | 'bot';
1524
1540
  text: string;
@@ -1526,6 +1542,8 @@ interface NormalizedMessage {
1526
1542
  origin?: string;
1527
1543
  /** Optional user identifier (e.g., Slack user id, GitHub login) */
1528
1544
  user?: string;
1545
+ /** File attachments from Slack messages */
1546
+ files?: SlackFileAttachment[];
1529
1547
  }
1530
1548
  interface ConversationContext {
1531
1549
  transport: BotTransportType;