@probelabs/visor 0.1.159 → 0.1.160

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 (66) hide show
  1. package/defaults/assistant.yaml +143 -0
  2. package/defaults/skills/code-explorer.yaml +41 -0
  3. package/dist/defaults/assistant.yaml +143 -0
  4. package/dist/defaults/skills/code-explorer.yaml +41 -0
  5. package/dist/index.js +174 -24
  6. package/dist/output/traces/{run-2026-03-05T15-45-37-714Z.ndjson → run-2026-03-05T18-38-19-897Z.ndjson} +84 -84
  7. package/dist/output/traces/{run-2026-03-05T15-46-23-118Z.ndjson → run-2026-03-05T18-39-04-213Z.ndjson} +1915 -1877
  8. package/dist/providers/workflow-check-provider.d.ts.map +1 -1
  9. package/dist/sdk/{check-provider-registry-UVLGKORU.mjs → check-provider-registry-KSXUR6EX.mjs} +5 -5
  10. package/dist/sdk/{check-provider-registry-74VLAETF.mjs → check-provider-registry-YKW7KIYX.mjs} +5 -5
  11. package/dist/sdk/{chunk-5N33URMM.mjs → chunk-2LL6GIEU.mjs} +3 -3
  12. package/dist/sdk/{chunk-PSZI5NZL.mjs → chunk-5YC7JCOE.mjs} +2 -2
  13. package/dist/sdk/{chunk-IVTSD7ZW.mjs → chunk-BIURECPI.mjs} +111 -22
  14. package/dist/sdk/{chunk-AW3IHBCI.mjs.map → chunk-BIURECPI.mjs.map} +1 -1
  15. package/dist/sdk/{chunk-AW3IHBCI.mjs → chunk-CBCL664N.mjs} +111 -22
  16. package/dist/sdk/{chunk-IVTSD7ZW.mjs.map → chunk-CBCL664N.mjs.map} +1 -1
  17. package/dist/sdk/{chunk-PZONH3RK.mjs → chunk-CYIKOFJZ.mjs} +3 -3
  18. package/dist/sdk/chunk-CYIKOFJZ.mjs.map +1 -0
  19. package/dist/sdk/chunk-HB2PBNBH.mjs +1502 -0
  20. package/dist/sdk/chunk-HB2PBNBH.mjs.map +1 -0
  21. package/dist/sdk/chunk-HT3EFZ75.mjs +739 -0
  22. package/dist/sdk/chunk-HT3EFZ75.mjs.map +1 -0
  23. package/dist/sdk/chunk-ZQ7T4YX7.mjs +443 -0
  24. package/dist/sdk/{chunk-PZONH3RK.mjs.map → chunk-ZQ7T4YX7.mjs.map} +1 -1
  25. package/dist/sdk/{failure-condition-evaluator-LQ5NUFZN.mjs → failure-condition-evaluator-3Q45T5EW.mjs} +3 -3
  26. package/dist/sdk/failure-condition-evaluator-MX6RHBVS.mjs +17 -0
  27. package/dist/sdk/{github-frontend-YSRVB5FS.mjs → github-frontend-4FQRZSJN.mjs} +3 -3
  28. package/dist/sdk/github-frontend-SZBGCH43.mjs +1368 -0
  29. package/dist/sdk/github-frontend-SZBGCH43.mjs.map +1 -0
  30. package/dist/sdk/{host-YG6LPL6H.mjs → host-FB2HG74L.mjs} +2 -2
  31. package/dist/sdk/host-YZA5S2U2.mjs +63 -0
  32. package/dist/sdk/host-YZA5S2U2.mjs.map +1 -0
  33. package/dist/sdk/{routing-ZJSROSUU.mjs → routing-GGZBWOLZ.mjs} +4 -4
  34. package/dist/sdk/routing-WPBWIPF4.mjs +25 -0
  35. package/dist/sdk/{schedule-tool-2GSWLIWA.mjs → schedule-tool-2UDBXPLN.mjs} +5 -5
  36. package/dist/sdk/{schedule-tool-QCJWLYS3.mjs → schedule-tool-7GDLFKEV.mjs} +5 -5
  37. package/dist/sdk/{schedule-tool-handler-HWHHAHJD.mjs → schedule-tool-handler-7RWPVVKD.mjs} +5 -5
  38. package/dist/sdk/{schedule-tool-handler-K2LO33KU.mjs → schedule-tool-handler-QAM5ORVM.mjs} +5 -5
  39. package/dist/sdk/sdk.js +98 -9
  40. package/dist/sdk/sdk.js.map +1 -1
  41. package/dist/sdk/sdk.mjs +4 -4
  42. package/dist/sdk/{trace-helpers-23KC3NGK.mjs → trace-helpers-AXJZLLWE.mjs} +2 -2
  43. package/dist/sdk/trace-helpers-W572V66T.mjs +25 -0
  44. package/dist/sdk/trace-helpers-W572V66T.mjs.map +1 -0
  45. package/dist/sdk/{workflow-check-provider-DHNWJKYK.mjs → workflow-check-provider-FREHQYRZ.mjs} +5 -5
  46. package/dist/sdk/workflow-check-provider-FREHQYRZ.mjs.map +1 -0
  47. package/dist/sdk/{workflow-check-provider-OUREVWAI.mjs → workflow-check-provider-QSFEPL6Z.mjs} +5 -5
  48. package/dist/sdk/workflow-check-provider-QSFEPL6Z.mjs.map +1 -0
  49. package/dist/traces/{run-2026-03-05T15-45-37-714Z.ndjson → run-2026-03-05T18-38-19-897Z.ndjson} +84 -84
  50. package/dist/traces/{run-2026-03-05T15-46-23-118Z.ndjson → run-2026-03-05T18-39-04-213Z.ndjson} +1915 -1877
  51. package/package.json +2 -2
  52. /package/dist/sdk/{check-provider-registry-74VLAETF.mjs.map → check-provider-registry-KSXUR6EX.mjs.map} +0 -0
  53. /package/dist/sdk/{check-provider-registry-UVLGKORU.mjs.map → check-provider-registry-YKW7KIYX.mjs.map} +0 -0
  54. /package/dist/sdk/{chunk-5N33URMM.mjs.map → chunk-2LL6GIEU.mjs.map} +0 -0
  55. /package/dist/sdk/{chunk-PSZI5NZL.mjs.map → chunk-5YC7JCOE.mjs.map} +0 -0
  56. /package/dist/sdk/{failure-condition-evaluator-LQ5NUFZN.mjs.map → failure-condition-evaluator-3Q45T5EW.mjs.map} +0 -0
  57. /package/dist/sdk/{routing-ZJSROSUU.mjs.map → failure-condition-evaluator-MX6RHBVS.mjs.map} +0 -0
  58. /package/dist/sdk/{github-frontend-YSRVB5FS.mjs.map → github-frontend-4FQRZSJN.mjs.map} +0 -0
  59. /package/dist/sdk/{host-YG6LPL6H.mjs.map → host-FB2HG74L.mjs.map} +0 -0
  60. /package/dist/sdk/{schedule-tool-2GSWLIWA.mjs.map → routing-GGZBWOLZ.mjs.map} +0 -0
  61. /package/dist/sdk/{schedule-tool-QCJWLYS3.mjs.map → routing-WPBWIPF4.mjs.map} +0 -0
  62. /package/dist/sdk/{schedule-tool-handler-HWHHAHJD.mjs.map → schedule-tool-2UDBXPLN.mjs.map} +0 -0
  63. /package/dist/sdk/{schedule-tool-handler-K2LO33KU.mjs.map → schedule-tool-7GDLFKEV.mjs.map} +0 -0
  64. /package/dist/sdk/{trace-helpers-23KC3NGK.mjs.map → schedule-tool-handler-7RWPVVKD.mjs.map} +0 -0
  65. /package/dist/sdk/{workflow-check-provider-DHNWJKYK.mjs.map → schedule-tool-handler-QAM5ORVM.mjs.map} +0 -0
  66. /package/dist/sdk/{workflow-check-provider-OUREVWAI.mjs.map → trace-helpers-AXJZLLWE.mjs.map} +0 -0
@@ -2173,6 +2173,149 @@ tests:
2173
2173
  path: mcp_servers.code-explorer.inputs.docs_repo
2174
2174
  equals: "my-org/docs"
2175
2175
 
2176
+ - name: code-explorer-default-skill-activates
2177
+ description: Default visor code-explorer skill (from defaults/skills/) activates and configures tools correctly
2178
+ event: manual
2179
+ fixture: local.minimal
2180
+ workflow_input:
2181
+ question: "How does auth work?"
2182
+ intents:
2183
+ - id: code_help
2184
+ description: code questions
2185
+ skills:
2186
+ - id: code-explorer
2187
+ description: >
2188
+ request needs codebase exploration, understanding implementation details,
2189
+ code search, or documentation questions. READ-ONLY — cannot modify files,
2190
+ only investigate and answer questions.
2191
+ allowed_commands:
2192
+ - "git:log:*"
2193
+ - "git:show:*"
2194
+ - "git:diff:*"
2195
+ knowledge: |
2196
+ ## Code Explorer
2197
+ Use the code-talk tool to explore code repositories.
2198
+ tools:
2199
+ code-explorer:
2200
+ workflow: code-talk
2201
+ inputs:
2202
+ architecture: "# Test Architecture"
2203
+ docs_repo: "test-org/docs"
2204
+ projects:
2205
+ - id: backend
2206
+ repo: test-org/backend
2207
+ description: Backend services
2208
+ mocks:
2209
+ route-intent:
2210
+ intent: code_help
2211
+ topic: "How does auth work?"
2212
+ skills: ["code-explorer"]
2213
+ generate-response:
2214
+ text: "Auth is done in backend."
2215
+ expect:
2216
+ calls:
2217
+ - step: route-intent
2218
+ exactly: 1
2219
+ - step: build-config
2220
+ exactly: 1
2221
+ outputs:
2222
+ - step: build-config
2223
+ path: mcp_servers.code-explorer.workflow
2224
+ equals: "code-talk"
2225
+ - step: build-config
2226
+ path: mcp_servers.code-explorer.inputs.architecture
2227
+ equals: "# Test Architecture"
2228
+ - step: build-config
2229
+ path: mcp_servers.code-explorer.inputs.docs_repo
2230
+ equals: "test-org/docs"
2231
+
2232
+ - name: code-explorer-default-skill-knowledge-in-prompt
2233
+ description: Default code-explorer skill knowledge appears in prompt when activated
2234
+ event: manual
2235
+ fixture: local.minimal
2236
+ workflow_input:
2237
+ question: "How does auth work?"
2238
+ intents:
2239
+ - id: code_help
2240
+ description: code questions
2241
+ skills:
2242
+ - id: code-explorer
2243
+ description: code exploration capability
2244
+ knowledge: |
2245
+ ## Code Explorer
2246
+ Use the code-talk tool to explore code repositories.
2247
+ The tool returns `confidence` ("high"/"medium"/"low") and `confidence_reason`.
2248
+ - If confidence "high", trust the answer — do NOT re-call with rephrased question
2249
+ tools:
2250
+ code-explorer:
2251
+ workflow: code-talk
2252
+ inputs:
2253
+ architecture: "# Arch"
2254
+ mocks:
2255
+ route-intent:
2256
+ intent: code_help
2257
+ topic: "How does auth work?"
2258
+ skills: ["code-explorer"]
2259
+ generate-response:
2260
+ text: "Auth is done in backend."
2261
+ expect:
2262
+ calls:
2263
+ - step: route-intent
2264
+ exactly: 1
2265
+ - step: build-config
2266
+ exactly: 1
2267
+ - step: generate-response
2268
+ exactly: 1
2269
+ outputs:
2270
+ - step: build-config
2271
+ path: knowledge_content
2272
+ matches: "<id>code-explorer</id>"
2273
+ - step: build-config
2274
+ path: knowledge_content
2275
+ matches: "Code Explorer"
2276
+ prompts:
2277
+ - step: generate-response
2278
+ contains:
2279
+ - "Code Explorer"
2280
+ - "confidence"
2281
+
2282
+ - name: code-explorer-default-skill-inactive-no-server
2283
+ description: Default code-explorer skill is not activated when router doesn't select it
2284
+ event: manual
2285
+ fixture: local.minimal
2286
+ workflow_input:
2287
+ question: "Hello"
2288
+ intents:
2289
+ - id: chat
2290
+ description: general Q&A
2291
+ skills:
2292
+ - id: code-explorer
2293
+ description: code exploration capability
2294
+ knowledge: |
2295
+ ## Code Explorer
2296
+ tools:
2297
+ code-explorer:
2298
+ workflow: code-talk
2299
+ inputs:
2300
+ architecture: "# Arch"
2301
+ mocks:
2302
+ route-intent:
2303
+ intent: chat
2304
+ topic: "Hello"
2305
+ skills: []
2306
+ generate-response:
2307
+ text: "Hello!"
2308
+ expect:
2309
+ calls:
2310
+ - step: route-intent
2311
+ exactly: 1
2312
+ - step: build-config
2313
+ exactly: 1
2314
+ outputs:
2315
+ - step: build-config
2316
+ path: mcp_servers
2317
+ equalsDeep: {}
2318
+
2176
2319
  - name: code-explorer-server-not-added-when-skill-inactive
2177
2320
  description: Code explorer server not added when skill is not activated
2178
2321
  event: manual
@@ -0,0 +1,41 @@
1
+ # =============================================================================
2
+ # Default code-explorer skill shipped with visor
3
+ # =============================================================================
4
+ #
5
+ # Provides a ready-to-use code exploration capability. Users only need to
6
+ # provide project-specific config (repos, architecture, routing) via extends:
7
+ #
8
+ # - extends: "visor://skills/code-explorer.yaml"
9
+ # tools:
10
+ # code-explorer:
11
+ # inputs:
12
+ # expression: "loadConfig('config/my-projects.yaml')"
13
+ #
14
+ # =============================================================================
15
+
16
+ id: code-explorer
17
+ description: >
18
+ request needs codebase exploration, understanding implementation details,
19
+ code search, or documentation questions. READ-ONLY — cannot modify files,
20
+ only investigate and answer questions.
21
+ allowed_commands:
22
+ - "git:log:*"
23
+ - "git:show:*"
24
+ - "git:diff:*"
25
+ knowledge: |
26
+ ## Code Explorer
27
+ Use the code-talk tool to explore code repositories.
28
+ The tool returns `confidence` ("high"/"medium"/"low") and `confidence_reason`.
29
+ - If confidence "high", trust the answer — do NOT re-call with rephrased question
30
+ - Only call again for a genuinely DIFFERENT aspect of the codebase
31
+ - If confidence "medium" or "low", check confidence_reason for what to refine
32
+
33
+ ## Usage Instructions
34
+ 1. Call the code-explorer tool with the user's question
35
+ 2. Use the answer from the tool result as your response
36
+ 3. Include the references (file paths with URLs) in your answer
37
+ 4. Do NOT generate a generic response - relay what the tool found
38
+ tools:
39
+ code-explorer:
40
+ workflow: code-talk
41
+ inputs: {}
@@ -2173,6 +2173,149 @@ tests:
2173
2173
  path: mcp_servers.code-explorer.inputs.docs_repo
2174
2174
  equals: "my-org/docs"
2175
2175
 
2176
+ - name: code-explorer-default-skill-activates
2177
+ description: Default visor code-explorer skill (from defaults/skills/) activates and configures tools correctly
2178
+ event: manual
2179
+ fixture: local.minimal
2180
+ workflow_input:
2181
+ question: "How does auth work?"
2182
+ intents:
2183
+ - id: code_help
2184
+ description: code questions
2185
+ skills:
2186
+ - id: code-explorer
2187
+ description: >
2188
+ request needs codebase exploration, understanding implementation details,
2189
+ code search, or documentation questions. READ-ONLY — cannot modify files,
2190
+ only investigate and answer questions.
2191
+ allowed_commands:
2192
+ - "git:log:*"
2193
+ - "git:show:*"
2194
+ - "git:diff:*"
2195
+ knowledge: |
2196
+ ## Code Explorer
2197
+ Use the code-talk tool to explore code repositories.
2198
+ tools:
2199
+ code-explorer:
2200
+ workflow: code-talk
2201
+ inputs:
2202
+ architecture: "# Test Architecture"
2203
+ docs_repo: "test-org/docs"
2204
+ projects:
2205
+ - id: backend
2206
+ repo: test-org/backend
2207
+ description: Backend services
2208
+ mocks:
2209
+ route-intent:
2210
+ intent: code_help
2211
+ topic: "How does auth work?"
2212
+ skills: ["code-explorer"]
2213
+ generate-response:
2214
+ text: "Auth is done in backend."
2215
+ expect:
2216
+ calls:
2217
+ - step: route-intent
2218
+ exactly: 1
2219
+ - step: build-config
2220
+ exactly: 1
2221
+ outputs:
2222
+ - step: build-config
2223
+ path: mcp_servers.code-explorer.workflow
2224
+ equals: "code-talk"
2225
+ - step: build-config
2226
+ path: mcp_servers.code-explorer.inputs.architecture
2227
+ equals: "# Test Architecture"
2228
+ - step: build-config
2229
+ path: mcp_servers.code-explorer.inputs.docs_repo
2230
+ equals: "test-org/docs"
2231
+
2232
+ - name: code-explorer-default-skill-knowledge-in-prompt
2233
+ description: Default code-explorer skill knowledge appears in prompt when activated
2234
+ event: manual
2235
+ fixture: local.minimal
2236
+ workflow_input:
2237
+ question: "How does auth work?"
2238
+ intents:
2239
+ - id: code_help
2240
+ description: code questions
2241
+ skills:
2242
+ - id: code-explorer
2243
+ description: code exploration capability
2244
+ knowledge: |
2245
+ ## Code Explorer
2246
+ Use the code-talk tool to explore code repositories.
2247
+ The tool returns `confidence` ("high"/"medium"/"low") and `confidence_reason`.
2248
+ - If confidence "high", trust the answer — do NOT re-call with rephrased question
2249
+ tools:
2250
+ code-explorer:
2251
+ workflow: code-talk
2252
+ inputs:
2253
+ architecture: "# Arch"
2254
+ mocks:
2255
+ route-intent:
2256
+ intent: code_help
2257
+ topic: "How does auth work?"
2258
+ skills: ["code-explorer"]
2259
+ generate-response:
2260
+ text: "Auth is done in backend."
2261
+ expect:
2262
+ calls:
2263
+ - step: route-intent
2264
+ exactly: 1
2265
+ - step: build-config
2266
+ exactly: 1
2267
+ - step: generate-response
2268
+ exactly: 1
2269
+ outputs:
2270
+ - step: build-config
2271
+ path: knowledge_content
2272
+ matches: "<id>code-explorer</id>"
2273
+ - step: build-config
2274
+ path: knowledge_content
2275
+ matches: "Code Explorer"
2276
+ prompts:
2277
+ - step: generate-response
2278
+ contains:
2279
+ - "Code Explorer"
2280
+ - "confidence"
2281
+
2282
+ - name: code-explorer-default-skill-inactive-no-server
2283
+ description: Default code-explorer skill is not activated when router doesn't select it
2284
+ event: manual
2285
+ fixture: local.minimal
2286
+ workflow_input:
2287
+ question: "Hello"
2288
+ intents:
2289
+ - id: chat
2290
+ description: general Q&A
2291
+ skills:
2292
+ - id: code-explorer
2293
+ description: code exploration capability
2294
+ knowledge: |
2295
+ ## Code Explorer
2296
+ tools:
2297
+ code-explorer:
2298
+ workflow: code-talk
2299
+ inputs:
2300
+ architecture: "# Arch"
2301
+ mocks:
2302
+ route-intent:
2303
+ intent: chat
2304
+ topic: "Hello"
2305
+ skills: []
2306
+ generate-response:
2307
+ text: "Hello!"
2308
+ expect:
2309
+ calls:
2310
+ - step: route-intent
2311
+ exactly: 1
2312
+ - step: build-config
2313
+ exactly: 1
2314
+ outputs:
2315
+ - step: build-config
2316
+ path: mcp_servers
2317
+ equalsDeep: {}
2318
+
2176
2319
  - name: code-explorer-server-not-added-when-skill-inactive
2177
2320
  description: Code explorer server not added when skill is not activated
2178
2321
  event: manual
@@ -0,0 +1,41 @@
1
+ # =============================================================================
2
+ # Default code-explorer skill shipped with visor
3
+ # =============================================================================
4
+ #
5
+ # Provides a ready-to-use code exploration capability. Users only need to
6
+ # provide project-specific config (repos, architecture, routing) via extends:
7
+ #
8
+ # - extends: "visor://skills/code-explorer.yaml"
9
+ # tools:
10
+ # code-explorer:
11
+ # inputs:
12
+ # expression: "loadConfig('config/my-projects.yaml')"
13
+ #
14
+ # =============================================================================
15
+
16
+ id: code-explorer
17
+ description: >
18
+ request needs codebase exploration, understanding implementation details,
19
+ code search, or documentation questions. READ-ONLY — cannot modify files,
20
+ only investigate and answer questions.
21
+ allowed_commands:
22
+ - "git:log:*"
23
+ - "git:show:*"
24
+ - "git:diff:*"
25
+ knowledge: |
26
+ ## Code Explorer
27
+ Use the code-talk tool to explore code repositories.
28
+ The tool returns `confidence` ("high"/"medium"/"low") and `confidence_reason`.
29
+ - If confidence "high", trust the answer — do NOT re-call with rephrased question
30
+ - Only call again for a genuinely DIFFERENT aspect of the codebase
31
+ - If confidence "medium" or "low", check confidence_reason for what to refine
32
+
33
+ ## Usage Instructions
34
+ 1. Call the code-explorer tool with the user's question
35
+ 2. Use the answer from the tool result as your response
36
+ 3. Include the references (file paths with URLs) in your answer
37
+ 4. Do NOT generate a generic response - relay what the tool found
38
+ tools:
39
+ code-explorer:
40
+ workflow: code-talk
41
+ inputs: {}