@probelabs/visor 0.1.162 → 0.1.163

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 (74) hide show
  1. package/dist/index.js +31 -20
  2. package/dist/output/traces/{run-2026-03-05T18-25-15-635Z.ndjson → run-2026-03-05T19-35-29-511Z.ndjson} +84 -84
  3. package/dist/{traces/run-2026-03-05T18-25-59-700Z.ndjson → output/traces/run-2026-03-05T19-36-14-950Z.ndjson} +1917 -1917
  4. package/dist/providers/git-checkout-provider.d.ts.map +1 -1
  5. package/dist/sdk/{check-provider-registry-YKW7KIYX.mjs → check-provider-registry-BDPHCHX3.mjs} +5 -5
  6. package/dist/sdk/{check-provider-registry-ZNIJMJWI.mjs → check-provider-registry-JGXU3OEJ.mjs} +5 -5
  7. package/dist/sdk/{check-provider-registry-KAGT6VHC.mjs → check-provider-registry-XE2FY37D.mjs} +5 -5
  8. package/dist/sdk/{chunk-2EZB4TRC.mjs → chunk-53RHNNWQ.mjs} +28 -20
  9. package/dist/sdk/{chunk-P7N3YELW.mjs.map → chunk-53RHNNWQ.mjs.map} +1 -1
  10. package/dist/sdk/{chunk-P7N3YELW.mjs → chunk-7JOA3LUH.mjs} +28 -20
  11. package/dist/sdk/{chunk-2EZB4TRC.mjs.map → chunk-7JOA3LUH.mjs.map} +1 -1
  12. package/dist/sdk/{chunk-YSQKVMO5.mjs → chunk-I7J2BNOK.mjs} +2 -2
  13. package/dist/sdk/{chunk-BIURECPI.mjs → chunk-PQACCZF7.mjs} +28 -20
  14. package/dist/sdk/{chunk-BIURECPI.mjs.map → chunk-PQACCZF7.mjs.map} +1 -1
  15. package/dist/sdk/{chunk-2LL6GIEU.mjs → chunk-R5PIUZSD.mjs} +3 -3
  16. package/dist/sdk/{chunk-HT3EFZ75.mjs → chunk-TH6WMIV7.mjs} +2 -2
  17. package/dist/sdk/{chunk-M3EWWHFF.mjs → chunk-TLM6C3Q6.mjs} +3 -3
  18. package/dist/sdk/{chunk-M3EWWHFF.mjs.map → chunk-TLM6C3Q6.mjs.map} +1 -1
  19. package/dist/sdk/{chunk-6RKCJSGY.mjs → chunk-WBSARB5X.mjs} +3 -3
  20. package/dist/sdk/{chunk-CYIKOFJZ.mjs → chunk-ZH6K5NSC.mjs} +2 -2
  21. package/dist/sdk/{chunk-CYIKOFJZ.mjs.map → chunk-ZH6K5NSC.mjs.map} +1 -1
  22. package/dist/sdk/{failure-condition-evaluator-K5DZL2BE.mjs → failure-condition-evaluator-MEX6VNYT.mjs} +3 -3
  23. package/dist/sdk/{failure-condition-evaluator-3Q45T5EW.mjs → failure-condition-evaluator-NBRX4N23.mjs} +3 -3
  24. package/dist/sdk/{github-frontend-QG3BIZUQ.mjs → github-frontend-QSXBPYQZ.mjs} +3 -3
  25. package/dist/sdk/{github-frontend-SZBGCH43.mjs → github-frontend-UKDXNGOG.mjs} +3 -3
  26. package/dist/sdk/{host-AQY5SN7S.mjs → host-PRANMDPG.mjs} +2 -2
  27. package/dist/sdk/{host-FB2HG74L.mjs → host-Q4N357JE.mjs} +2 -2
  28. package/dist/sdk/{routing-GGZBWOLZ.mjs → routing-7CQ7QWYE.mjs} +4 -4
  29. package/dist/sdk/{routing-TFHFMCZV.mjs → routing-N2XJVSCQ.mjs} +4 -4
  30. package/dist/sdk/{schedule-tool-7GDLFKEV.mjs → schedule-tool-DCODWSDM.mjs} +5 -5
  31. package/dist/sdk/{schedule-tool-W2PY6VT6.mjs → schedule-tool-FYV3JUF7.mjs} +5 -5
  32. package/dist/sdk/{schedule-tool-6VZPH74P.mjs → schedule-tool-VUAATWZX.mjs} +5 -5
  33. package/dist/sdk/{schedule-tool-handler-BUP7XMCC.mjs → schedule-tool-handler-A5PN6FU3.mjs} +5 -5
  34. package/dist/sdk/{schedule-tool-handler-QAM5ORVM.mjs → schedule-tool-handler-ALCEOPSP.mjs} +5 -5
  35. package/dist/sdk/{schedule-tool-handler-ZBGUWCTW.mjs → schedule-tool-handler-D6Z3PCDJ.mjs} +5 -5
  36. package/dist/sdk/sdk.js +15 -7
  37. package/dist/sdk/sdk.js.map +1 -1
  38. package/dist/sdk/sdk.mjs +4 -4
  39. package/dist/sdk/{trace-helpers-AXJZLLWE.mjs → trace-helpers-JFELCJZT.mjs} +2 -2
  40. package/dist/sdk/{trace-helpers-VQUCAZO3.mjs → trace-helpers-VDR4RKGC.mjs} +2 -2
  41. package/dist/sdk/{workflow-check-provider-FREHQYRZ.mjs → workflow-check-provider-B2FOW6P2.mjs} +5 -5
  42. package/dist/sdk/{workflow-check-provider-ZZDIPHGY.mjs → workflow-check-provider-EO2U27T5.mjs} +5 -5
  43. package/dist/sdk/{workflow-check-provider-CCZ5EOLX.mjs → workflow-check-provider-XIZZYC3E.mjs} +5 -5
  44. package/dist/traces/{run-2026-03-05T18-25-15-635Z.ndjson → run-2026-03-05T19-35-29-511Z.ndjson} +84 -84
  45. package/dist/{output/traces/run-2026-03-05T18-25-59-700Z.ndjson → traces/run-2026-03-05T19-36-14-950Z.ndjson} +1917 -1917
  46. package/dist/utils/worktree-manager.d.ts +9 -2
  47. package/dist/utils/worktree-manager.d.ts.map +1 -1
  48. package/package.json +2 -2
  49. /package/dist/sdk/{check-provider-registry-KAGT6VHC.mjs.map → check-provider-registry-BDPHCHX3.mjs.map} +0 -0
  50. /package/dist/sdk/{check-provider-registry-YKW7KIYX.mjs.map → check-provider-registry-JGXU3OEJ.mjs.map} +0 -0
  51. /package/dist/sdk/{check-provider-registry-ZNIJMJWI.mjs.map → check-provider-registry-XE2FY37D.mjs.map} +0 -0
  52. /package/dist/sdk/{chunk-HT3EFZ75.mjs.map → chunk-I7J2BNOK.mjs.map} +0 -0
  53. /package/dist/sdk/{chunk-2LL6GIEU.mjs.map → chunk-R5PIUZSD.mjs.map} +0 -0
  54. /package/dist/sdk/{chunk-YSQKVMO5.mjs.map → chunk-TH6WMIV7.mjs.map} +0 -0
  55. /package/dist/sdk/{chunk-6RKCJSGY.mjs.map → chunk-WBSARB5X.mjs.map} +0 -0
  56. /package/dist/sdk/{failure-condition-evaluator-3Q45T5EW.mjs.map → failure-condition-evaluator-MEX6VNYT.mjs.map} +0 -0
  57. /package/dist/sdk/{failure-condition-evaluator-K5DZL2BE.mjs.map → failure-condition-evaluator-NBRX4N23.mjs.map} +0 -0
  58. /package/dist/sdk/{github-frontend-QG3BIZUQ.mjs.map → github-frontend-QSXBPYQZ.mjs.map} +0 -0
  59. /package/dist/sdk/{github-frontend-SZBGCH43.mjs.map → github-frontend-UKDXNGOG.mjs.map} +0 -0
  60. /package/dist/sdk/{host-AQY5SN7S.mjs.map → host-PRANMDPG.mjs.map} +0 -0
  61. /package/dist/sdk/{host-FB2HG74L.mjs.map → host-Q4N357JE.mjs.map} +0 -0
  62. /package/dist/sdk/{routing-GGZBWOLZ.mjs.map → routing-7CQ7QWYE.mjs.map} +0 -0
  63. /package/dist/sdk/{routing-TFHFMCZV.mjs.map → routing-N2XJVSCQ.mjs.map} +0 -0
  64. /package/dist/sdk/{schedule-tool-6VZPH74P.mjs.map → schedule-tool-DCODWSDM.mjs.map} +0 -0
  65. /package/dist/sdk/{schedule-tool-7GDLFKEV.mjs.map → schedule-tool-FYV3JUF7.mjs.map} +0 -0
  66. /package/dist/sdk/{schedule-tool-W2PY6VT6.mjs.map → schedule-tool-VUAATWZX.mjs.map} +0 -0
  67. /package/dist/sdk/{schedule-tool-handler-BUP7XMCC.mjs.map → schedule-tool-handler-A5PN6FU3.mjs.map} +0 -0
  68. /package/dist/sdk/{schedule-tool-handler-QAM5ORVM.mjs.map → schedule-tool-handler-ALCEOPSP.mjs.map} +0 -0
  69. /package/dist/sdk/{schedule-tool-handler-ZBGUWCTW.mjs.map → schedule-tool-handler-D6Z3PCDJ.mjs.map} +0 -0
  70. /package/dist/sdk/{trace-helpers-AXJZLLWE.mjs.map → trace-helpers-JFELCJZT.mjs.map} +0 -0
  71. /package/dist/sdk/{trace-helpers-VQUCAZO3.mjs.map → trace-helpers-VDR4RKGC.mjs.map} +0 -0
  72. /package/dist/sdk/{workflow-check-provider-CCZ5EOLX.mjs.map → workflow-check-provider-B2FOW6P2.mjs.map} +0 -0
  73. /package/dist/sdk/{workflow-check-provider-FREHQYRZ.mjs.map → workflow-check-provider-EO2U27T5.mjs.map} +0 -0
  74. /package/dist/sdk/{workflow-check-provider-ZZDIPHGY.mjs.map → workflow-check-provider-XIZZYC3E.mjs.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  extractSlackContext,
7
7
  init_schedule_tool_handler,
8
8
  isScheduleToolCall
9
- } from "./chunk-BIURECPI.mjs";
9
+ } from "./chunk-7JOA3LUH.mjs";
10
10
  import "./chunk-KFKHU6CM.mjs";
11
11
  import "./chunk-AVMMKGLQ.mjs";
12
12
  import "./chunk-LG4AUKHB.mjs";
@@ -16,9 +16,9 @@ import "./chunk-GEW6LS32.mjs";
16
16
  import "./chunk-NZADFXHE.mjs";
17
17
  import "./chunk-AS6LIEO4.mjs";
18
18
  import "./chunk-NCWIZVOT.mjs";
19
- import "./chunk-2LL6GIEU.mjs";
20
- import "./chunk-HT3EFZ75.mjs";
21
- import "./chunk-CYIKOFJZ.mjs";
19
+ import "./chunk-WBSARB5X.mjs";
20
+ import "./chunk-TH6WMIV7.mjs";
21
+ import "./chunk-TLM6C3Q6.mjs";
22
22
  import "./chunk-JL7JXCET.mjs";
23
23
  import "./chunk-ZUEQNCKB.mjs";
24
24
  import "./chunk-25IC7KXZ.mjs";
@@ -36,4 +36,4 @@ export {
36
36
  extractSlackContext,
37
37
  isScheduleToolCall
38
38
  };
39
- //# sourceMappingURL=schedule-tool-handler-QAM5ORVM.mjs.map
39
+ //# sourceMappingURL=schedule-tool-handler-ALCEOPSP.mjs.map
@@ -6,7 +6,7 @@ import {
6
6
  extractSlackContext,
7
7
  init_schedule_tool_handler,
8
8
  isScheduleToolCall
9
- } from "./chunk-P7N3YELW.mjs";
9
+ } from "./chunk-PQACCZF7.mjs";
10
10
  import "./chunk-KFKHU6CM.mjs";
11
11
  import "./chunk-AVMMKGLQ.mjs";
12
12
  import "./chunk-LG4AUKHB.mjs";
@@ -16,9 +16,9 @@ import "./chunk-GEW6LS32.mjs";
16
16
  import "./chunk-NZADFXHE.mjs";
17
17
  import "./chunk-AS6LIEO4.mjs";
18
18
  import "./chunk-NCWIZVOT.mjs";
19
- import "./chunk-6RKCJSGY.mjs";
20
- import "./chunk-YSQKVMO5.mjs";
21
- import "./chunk-M3EWWHFF.mjs";
19
+ import "./chunk-R5PIUZSD.mjs";
20
+ import "./chunk-I7J2BNOK.mjs";
21
+ import "./chunk-ZH6K5NSC.mjs";
22
22
  import "./chunk-JL7JXCET.mjs";
23
23
  import "./chunk-ZUEQNCKB.mjs";
24
24
  import "./chunk-25IC7KXZ.mjs";
@@ -36,4 +36,4 @@ export {
36
36
  extractSlackContext,
37
37
  isScheduleToolCall
38
38
  };
39
- //# sourceMappingURL=schedule-tool-handler-ZBGUWCTW.mjs.map
39
+ //# sourceMappingURL=schedule-tool-handler-D6Z3PCDJ.mjs.map
package/dist/sdk/sdk.js CHANGED
@@ -646,7 +646,7 @@ var require_package = __commonJS({
646
646
  "package.json"(exports2, module2) {
647
647
  module2.exports = {
648
648
  name: "@probelabs/visor",
649
- version: "0.1.162",
649
+ version: "0.1.163",
650
650
  main: "dist/index.js",
651
651
  bin: {
652
652
  visor: "./dist/index.js"
@@ -760,7 +760,7 @@ var require_package = __commonJS({
760
760
  "@opentelemetry/sdk-node": "^0.203.0",
761
761
  "@opentelemetry/sdk-trace-base": "^1.30.1",
762
762
  "@opentelemetry/semantic-conventions": "^1.30.1",
763
- "@probelabs/probe": "^0.6.0-rc275",
763
+ "@probelabs/probe": "^0.6.0-rc276",
764
764
  "@types/commander": "^2.12.0",
765
765
  "@types/uuid": "^10.0.0",
766
766
  acorn: "^8.16.0",
@@ -46880,13 +46880,20 @@ var init_worktree_manager = __esm({
46880
46880
  return path21.join(this.config.base_path, "worktrees");
46881
46881
  }
46882
46882
  /**
46883
- * Generate a deterministic worktree ID based on repository and ref.
46884
- * This allows worktrees to be reused when the same repo+ref is requested again.
46883
+ * Generate a worktree ID based on repository, ref, and session.
46884
+ *
46885
+ * When a sessionId is provided, the ID is scoped to that session so each
46886
+ * agent run gets its own isolated worktree. Steps within the same session
46887
+ * that checkout the same repo+ref will reuse the worktree (efficient).
46888
+ *
46889
+ * Without sessionId, falls back to deterministic repo+ref hashing
46890
+ * (legacy behavior).
46885
46891
  */
46886
- generateWorktreeId(repository, ref) {
46892
+ generateWorktreeId(repository, ref, sessionId) {
46887
46893
  const sanitizedRepo = repository.replace(/[^a-zA-Z0-9-]/g, "-");
46888
46894
  const sanitizedRef = ref.replace(/[^a-zA-Z0-9-]/g, "-");
46889
- const hash = crypto.createHash("md5").update(`${repository}:${ref}`).digest("hex").substring(0, 8);
46895
+ const hashInput = sessionId ? `${repository}:${ref}:${sessionId}` : `${repository}:${ref}`;
46896
+ const hash = crypto.createHash("md5").update(hashInput).digest("hex").substring(0, 8);
46890
46897
  return `${sanitizedRepo}-${sanitizedRef}-${hash}`;
46891
46898
  }
46892
46899
  /**
@@ -47042,7 +47049,7 @@ var init_worktree_manager = __esm({
47042
47049
  options.fetchDepth,
47043
47050
  options.cloneTimeoutMs
47044
47051
  );
47045
- const worktreeId = this.generateWorktreeId(repository, ref);
47052
+ const worktreeId = this.generateWorktreeId(repository, ref, options.sessionId);
47046
47053
  let worktreePath = options.workingDirectory || path21.join(this.getWorktreesDir(), worktreeId);
47047
47054
  if (options.workingDirectory) {
47048
47055
  worktreePath = this.validatePath(options.workingDirectory);
@@ -47732,6 +47739,7 @@ var init_git_checkout_provider = __esm({
47732
47739
  clean: checkoutConfig.clean !== false,
47733
47740
  // Default: true
47734
47741
  workflowId: context2?.workflowId,
47742
+ sessionId: context2?.sessionId || context2?._parentContext?.sessionId,
47735
47743
  fetchDepth: checkoutConfig.fetch_depth,
47736
47744
  cloneTimeoutMs: checkoutConfig.clone_timeout_ms
47737
47745
  }