@probelabs/visor 0.1.162 → 0.1.163-ee
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.
- package/dist/index.js +1869 -41
- package/dist/providers/git-checkout-provider.d.ts.map +1 -1
- package/dist/sdk/{check-provider-registry-YKW7KIYX.mjs → check-provider-registry-2A5MSNM3.mjs} +5 -5
- package/dist/sdk/{check-provider-registry-ZNIJMJWI.mjs → check-provider-registry-BDPHCHX3.mjs} +5 -5
- package/dist/sdk/{chunk-2EZB4TRC.mjs → chunk-53RHNNWQ.mjs} +28 -20
- package/dist/sdk/{chunk-P7N3YELW.mjs.map → chunk-53RHNNWQ.mjs.map} +1 -1
- package/dist/sdk/{chunk-P7N3YELW.mjs → chunk-6CRSLQK6.mjs} +29 -21
- package/dist/sdk/{chunk-2EZB4TRC.mjs.map → chunk-6CRSLQK6.mjs.map} +1 -1
- package/dist/sdk/{chunk-YSQKVMO5.mjs → chunk-I7J2BNOK.mjs} +2 -2
- package/dist/sdk/{chunk-2LL6GIEU.mjs → chunk-R5PIUZSD.mjs} +3 -3
- package/dist/sdk/{chunk-CYIKOFJZ.mjs → chunk-ZH6K5NSC.mjs} +2 -2
- package/dist/sdk/{chunk-CYIKOFJZ.mjs.map → chunk-ZH6K5NSC.mjs.map} +1 -1
- package/dist/sdk/{failure-condition-evaluator-K5DZL2BE.mjs → failure-condition-evaluator-NBRX4N23.mjs} +3 -3
- package/dist/sdk/{github-frontend-QG3BIZUQ.mjs → github-frontend-UKDXNGOG.mjs} +3 -3
- package/dist/sdk/{host-AQY5SN7S.mjs → host-DEXET5UZ.mjs} +2 -2
- package/dist/sdk/{host-FB2HG74L.mjs → host-Q4N357JE.mjs} +2 -2
- package/dist/sdk/knex-store-CRORFJE6.mjs +527 -0
- package/dist/sdk/knex-store-CRORFJE6.mjs.map +1 -0
- package/dist/sdk/loader-NJCF7DUS.mjs +89 -0
- package/dist/sdk/loader-NJCF7DUS.mjs.map +1 -0
- package/dist/sdk/opa-policy-engine-S2S2ULEI.mjs +655 -0
- package/dist/sdk/opa-policy-engine-S2S2ULEI.mjs.map +1 -0
- package/dist/sdk/{routing-GGZBWOLZ.mjs → routing-7CQ7QWYE.mjs} +4 -4
- package/dist/sdk/{schedule-tool-7GDLFKEV.mjs → schedule-tool-EZCW6M3Z.mjs} +5 -5
- package/dist/sdk/{schedule-tool-W2PY6VT6.mjs → schedule-tool-FYV3JUF7.mjs} +5 -5
- package/dist/sdk/{schedule-tool-handler-BUP7XMCC.mjs → schedule-tool-handler-A5PN6FU3.mjs} +5 -5
- package/dist/sdk/{schedule-tool-handler-QAM5ORVM.mjs → schedule-tool-handler-LUL42U37.mjs} +5 -5
- package/dist/sdk/sdk.js +1647 -265
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +4 -4
- package/dist/sdk/{trace-helpers-AXJZLLWE.mjs → trace-helpers-VDR4RKGC.mjs} +2 -2
- package/dist/sdk/validator-XTZJZZJH.mjs +134 -0
- package/dist/sdk/validator-XTZJZZJH.mjs.map +1 -0
- package/dist/sdk/{workflow-check-provider-FREHQYRZ.mjs → workflow-check-provider-46DGVZBU.mjs} +5 -5
- package/dist/sdk/{workflow-check-provider-ZZDIPHGY.mjs → workflow-check-provider-B2FOW6P2.mjs} +5 -5
- package/dist/utils/worktree-manager.d.ts +9 -2
- package/dist/utils/worktree-manager.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/output/traces/run-2026-03-05T18-25-15-635Z.ndjson +0 -138
- package/dist/output/traces/run-2026-03-05T18-25-59-700Z.ndjson +0 -2235
- package/dist/sdk/check-provider-registry-KAGT6VHC.mjs +0 -29
- package/dist/sdk/chunk-6RKCJSGY.mjs +0 -1502
- package/dist/sdk/chunk-6RKCJSGY.mjs.map +0 -1
- package/dist/sdk/chunk-BIURECPI.mjs +0 -43869
- package/dist/sdk/chunk-BIURECPI.mjs.map +0 -1
- package/dist/sdk/chunk-HT3EFZ75.mjs +0 -739
- package/dist/sdk/chunk-M3EWWHFF.mjs +0 -443
- package/dist/sdk/chunk-M3EWWHFF.mjs.map +0 -1
- package/dist/sdk/chunk-YSQKVMO5.mjs.map +0 -1
- package/dist/sdk/failure-condition-evaluator-3Q45T5EW.mjs +0 -17
- package/dist/sdk/github-frontend-SZBGCH43.mjs +0 -1368
- package/dist/sdk/github-frontend-SZBGCH43.mjs.map +0 -1
- package/dist/sdk/routing-TFHFMCZV.mjs +0 -25
- package/dist/sdk/schedule-tool-6VZPH74P.mjs +0 -35
- package/dist/sdk/schedule-tool-handler-QAM5ORVM.mjs.map +0 -1
- package/dist/sdk/schedule-tool-handler-ZBGUWCTW.mjs +0 -39
- package/dist/sdk/schedule-tool-handler-ZBGUWCTW.mjs.map +0 -1
- package/dist/sdk/trace-helpers-AXJZLLWE.mjs.map +0 -1
- package/dist/sdk/trace-helpers-VQUCAZO3.mjs +0 -25
- package/dist/sdk/trace-helpers-VQUCAZO3.mjs.map +0 -1
- package/dist/sdk/workflow-check-provider-CCZ5EOLX.mjs +0 -29
- package/dist/sdk/workflow-check-provider-CCZ5EOLX.mjs.map +0 -1
- package/dist/sdk/workflow-check-provider-FREHQYRZ.mjs.map +0 -1
- package/dist/sdk/workflow-check-provider-ZZDIPHGY.mjs.map +0 -1
- package/dist/traces/run-2026-03-05T18-25-15-635Z.ndjson +0 -138
- package/dist/traces/run-2026-03-05T18-25-59-700Z.ndjson +0 -2235
- /package/dist/sdk/{check-provider-registry-KAGT6VHC.mjs.map → check-provider-registry-2A5MSNM3.mjs.map} +0 -0
- /package/dist/sdk/{check-provider-registry-YKW7KIYX.mjs.map → check-provider-registry-BDPHCHX3.mjs.map} +0 -0
- /package/dist/sdk/{chunk-HT3EFZ75.mjs.map → chunk-I7J2BNOK.mjs.map} +0 -0
- /package/dist/sdk/{chunk-2LL6GIEU.mjs.map → chunk-R5PIUZSD.mjs.map} +0 -0
- /package/dist/sdk/{check-provider-registry-ZNIJMJWI.mjs.map → failure-condition-evaluator-NBRX4N23.mjs.map} +0 -0
- /package/dist/sdk/{github-frontend-QG3BIZUQ.mjs.map → github-frontend-UKDXNGOG.mjs.map} +0 -0
- /package/dist/sdk/{host-AQY5SN7S.mjs.map → host-DEXET5UZ.mjs.map} +0 -0
- /package/dist/sdk/{host-FB2HG74L.mjs.map → host-Q4N357JE.mjs.map} +0 -0
- /package/dist/sdk/{failure-condition-evaluator-3Q45T5EW.mjs.map → routing-7CQ7QWYE.mjs.map} +0 -0
- /package/dist/sdk/{failure-condition-evaluator-K5DZL2BE.mjs.map → schedule-tool-EZCW6M3Z.mjs.map} +0 -0
- /package/dist/sdk/{routing-GGZBWOLZ.mjs.map → schedule-tool-FYV3JUF7.mjs.map} +0 -0
- /package/dist/sdk/{routing-TFHFMCZV.mjs.map → schedule-tool-handler-A5PN6FU3.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-6VZPH74P.mjs.map → schedule-tool-handler-LUL42U37.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-7GDLFKEV.mjs.map → trace-helpers-VDR4RKGC.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-W2PY6VT6.mjs.map → workflow-check-provider-46DGVZBU.mjs.map} +0 -0
- /package/dist/sdk/{schedule-tool-handler-BUP7XMCC.mjs.map → workflow-check-provider-B2FOW6P2.mjs.map} +0 -0
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
init_routing,
|
|
43
43
|
init_snapshot_store,
|
|
44
44
|
snapshot_store_exports
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-R5PIUZSD.mjs";
|
|
46
46
|
import {
|
|
47
47
|
FailureConditionEvaluator,
|
|
48
48
|
init_failure_condition_evaluator
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-I7J2BNOK.mjs";
|
|
50
50
|
import {
|
|
51
51
|
addEvent,
|
|
52
52
|
emitNdjsonFallback,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
setSpanAttributes,
|
|
58
58
|
trace_helpers_exports,
|
|
59
59
|
withActiveSpan
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZH6K5NSC.mjs";
|
|
61
61
|
import {
|
|
62
62
|
addDiagramBlock,
|
|
63
63
|
init_metrics
|
|
@@ -3959,7 +3959,7 @@ async function executeWorkflowAsTool(workflowId, args, context2, argsOverrides)
|
|
|
3959
3959
|
...args,
|
|
3960
3960
|
...argsOverrides
|
|
3961
3961
|
};
|
|
3962
|
-
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-
|
|
3962
|
+
const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-46DGVZBU.mjs");
|
|
3963
3963
|
const provider = new WorkflowCheckProvider2();
|
|
3964
3964
|
const checkConfig = {
|
|
3965
3965
|
type: "workflow",
|
|
@@ -9255,7 +9255,7 @@ async function executeCheckWithForEachItems2(checkId, forEachParent, forEachItem
|
|
|
9255
9255
|
}
|
|
9256
9256
|
}
|
|
9257
9257
|
try {
|
|
9258
|
-
const { evaluateTransitions } = await import("./routing-
|
|
9258
|
+
const { evaluateTransitions } = await import("./routing-7CQ7QWYE.mjs");
|
|
9259
9259
|
const transTarget = await evaluateTransitions(
|
|
9260
9260
|
onFinish.transitions,
|
|
9261
9261
|
forEachParent,
|
|
@@ -9315,7 +9315,7 @@ async function executeCheckWithForEachItems2(checkId, forEachParent, forEachItem
|
|
|
9315
9315
|
`[LevelDispatch] Error evaluating on_finish transitions for ${forEachParent}: ${e instanceof Error ? e.message : String(e)}`
|
|
9316
9316
|
);
|
|
9317
9317
|
}
|
|
9318
|
-
const { evaluateGoto: evaluateGoto2 } = await import("./routing-
|
|
9318
|
+
const { evaluateGoto: evaluateGoto2 } = await import("./routing-7CQ7QWYE.mjs");
|
|
9319
9319
|
if (context2.debug) {
|
|
9320
9320
|
logger.info(
|
|
9321
9321
|
`[LevelDispatch] Evaluating on_finish.goto_js for forEach parent: ${forEachParent}`
|
|
@@ -13027,7 +13027,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13027
13027
|
try {
|
|
13028
13028
|
const map = options?.webhookContext?.webhookData;
|
|
13029
13029
|
if (map) {
|
|
13030
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
13030
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-2A5MSNM3.mjs");
|
|
13031
13031
|
const reg = CheckProviderRegistry2.getInstance();
|
|
13032
13032
|
const p = reg.getProvider("http_input");
|
|
13033
13033
|
if (p && typeof p.setWebhookContext === "function") p.setWebhookContext(map);
|
|
@@ -13150,7 +13150,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13150
13150
|
tag_filter: tagFilter
|
|
13151
13151
|
} : config;
|
|
13152
13152
|
try {
|
|
13153
|
-
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-
|
|
13153
|
+
const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-2A5MSNM3.mjs");
|
|
13154
13154
|
const registry = CheckProviderRegistry2.getInstance();
|
|
13155
13155
|
registry.setCustomTools(configWithTagFilter.tools || {});
|
|
13156
13156
|
} catch (error) {
|
|
@@ -13191,7 +13191,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13191
13191
|
logger.debug(
|
|
13192
13192
|
`[PolicyEngine] Loading enterprise policy engine (engine=${configWithTagFilter.policy.engine})`
|
|
13193
13193
|
);
|
|
13194
|
-
const { loadEnterprisePolicyEngine } = await import("./
|
|
13194
|
+
const { loadEnterprisePolicyEngine } = await import("./loader-NJCF7DUS.mjs");
|
|
13195
13195
|
context2.policyEngine = await loadEnterprisePolicyEngine(configWithTagFilter.policy);
|
|
13196
13196
|
logger.debug(
|
|
13197
13197
|
`[PolicyEngine] Initialized: ${context2.policyEngine?.constructor?.name || "unknown"}`
|
|
@@ -13214,7 +13214,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13214
13214
|
try {
|
|
13215
13215
|
const webhookData = this.executionContext?.webhookContext?.webhookData;
|
|
13216
13216
|
if (webhookData instanceof Map) {
|
|
13217
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
13217
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-LUL42U37.mjs");
|
|
13218
13218
|
const slackCtx = extractSlackContext2(webhookData);
|
|
13219
13219
|
if (slackCtx) {
|
|
13220
13220
|
const payload = Array.from(webhookData.values())[0];
|
|
@@ -13243,7 +13243,7 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13243
13243
|
if (Array.isArray(configWithTagFilter.frontends) && configWithTagFilter.frontends.length > 0) {
|
|
13244
13244
|
try {
|
|
13245
13245
|
const { EventBus } = await import("./event-bus-5K3Y2FCS.mjs");
|
|
13246
|
-
const { FrontendsHost } = await import("./host-
|
|
13246
|
+
const { FrontendsHost } = await import("./host-DEXET5UZ.mjs");
|
|
13247
13247
|
const bus = new EventBus();
|
|
13248
13248
|
context2.eventBus = bus;
|
|
13249
13249
|
frontendsHost = new FrontendsHost(bus, logger);
|
|
@@ -13593,9 +13593,9 @@ var init_state_machine_execution_engine = __esm({
|
|
|
13593
13593
|
* @returns Array of failure condition evaluation results
|
|
13594
13594
|
*/
|
|
13595
13595
|
async evaluateFailureConditions(checkName, reviewSummary, config, previousOutputs, authorAssociation) {
|
|
13596
|
-
const { FailureConditionEvaluator: FailureConditionEvaluator2 } = await import("./failure-condition-evaluator-
|
|
13596
|
+
const { FailureConditionEvaluator: FailureConditionEvaluator2 } = await import("./failure-condition-evaluator-NBRX4N23.mjs");
|
|
13597
13597
|
const evaluator = new FailureConditionEvaluator2();
|
|
13598
|
-
const { addEvent: addEvent3 } = await import("./trace-helpers-
|
|
13598
|
+
const { addEvent: addEvent3 } = await import("./trace-helpers-VDR4RKGC.mjs");
|
|
13599
13599
|
const { addFailIfTriggered } = await import("./metrics-I6A7IHG4.mjs");
|
|
13600
13600
|
const checkConfig = config.checks?.[checkName];
|
|
13601
13601
|
if (!checkConfig) {
|
|
@@ -40728,8 +40728,8 @@ function buildBuiltinGlobals(opts) {
|
|
|
40728
40728
|
const asyncFunctionNames = /* @__PURE__ */ new Set();
|
|
40729
40729
|
const scheduleFn = async (args = {}) => {
|
|
40730
40730
|
try {
|
|
40731
|
-
const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-
|
|
40732
|
-
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-
|
|
40731
|
+
const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-EZCW6M3Z.mjs");
|
|
40732
|
+
const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-LUL42U37.mjs");
|
|
40733
40733
|
const parentCtx = opts.sessionInfo?._parentContext;
|
|
40734
40734
|
const webhookData = parentCtx?.prInfo?.eventContext?.webhookData;
|
|
40735
40735
|
const visorCfg = parentCtx?.config;
|
|
@@ -41388,13 +41388,20 @@ var init_worktree_manager = __esm({
|
|
|
41388
41388
|
return path13.join(this.config.base_path, "worktrees");
|
|
41389
41389
|
}
|
|
41390
41390
|
/**
|
|
41391
|
-
* Generate a
|
|
41392
|
-
*
|
|
41391
|
+
* Generate a worktree ID based on repository, ref, and session.
|
|
41392
|
+
*
|
|
41393
|
+
* When a sessionId is provided, the ID is scoped to that session so each
|
|
41394
|
+
* agent run gets its own isolated worktree. Steps within the same session
|
|
41395
|
+
* that checkout the same repo+ref will reuse the worktree (efficient).
|
|
41396
|
+
*
|
|
41397
|
+
* Without sessionId, falls back to deterministic repo+ref hashing
|
|
41398
|
+
* (legacy behavior).
|
|
41393
41399
|
*/
|
|
41394
|
-
generateWorktreeId(repository, ref) {
|
|
41400
|
+
generateWorktreeId(repository, ref, sessionId) {
|
|
41395
41401
|
const sanitizedRepo = repository.replace(/[^a-zA-Z0-9-]/g, "-");
|
|
41396
41402
|
const sanitizedRef = ref.replace(/[^a-zA-Z0-9-]/g, "-");
|
|
41397
|
-
const
|
|
41403
|
+
const hashInput = sessionId ? `${repository}:${ref}:${sessionId}` : `${repository}:${ref}`;
|
|
41404
|
+
const hash = crypto.createHash("md5").update(hashInput).digest("hex").substring(0, 8);
|
|
41398
41405
|
return `${sanitizedRepo}-${sanitizedRef}-${hash}`;
|
|
41399
41406
|
}
|
|
41400
41407
|
/**
|
|
@@ -41550,7 +41557,7 @@ var init_worktree_manager = __esm({
|
|
|
41550
41557
|
options.fetchDepth,
|
|
41551
41558
|
options.cloneTimeoutMs
|
|
41552
41559
|
);
|
|
41553
|
-
const worktreeId = this.generateWorktreeId(repository, ref);
|
|
41560
|
+
const worktreeId = this.generateWorktreeId(repository, ref, options.sessionId);
|
|
41554
41561
|
let worktreePath = options.workingDirectory || path13.join(this.getWorktreesDir(), worktreeId);
|
|
41555
41562
|
if (options.workingDirectory) {
|
|
41556
41563
|
worktreePath = this.validatePath(options.workingDirectory);
|
|
@@ -42240,6 +42247,7 @@ var init_git_checkout_provider = __esm({
|
|
|
42240
42247
|
clean: checkoutConfig.clean !== false,
|
|
42241
42248
|
// Default: true
|
|
42242
42249
|
workflowId: context2?.workflowId,
|
|
42250
|
+
sessionId: context2?.sessionId || context2?._parentContext?.sessionId,
|
|
42243
42251
|
fetchDepth: checkoutConfig.fetch_depth,
|
|
42244
42252
|
cloneTimeoutMs: checkoutConfig.clone_timeout_ms
|
|
42245
42253
|
}
|
|
@@ -43866,4 +43874,4 @@ undici/lib/fetch/body.js:
|
|
|
43866
43874
|
undici/lib/websocket/frame.js:
|
|
43867
43875
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
43868
43876
|
*/
|
|
43869
|
-
//# sourceMappingURL=chunk-
|
|
43877
|
+
//# sourceMappingURL=chunk-6CRSLQK6.mjs.map
|