@posthog/wizard 2.79.0 → 2.80.0
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/PickerMenu-m4CCPX4f.js +758 -0
- package/dist/PickerMenu-m4CCPX4f.js.map +1 -0
- package/dist/{agent-CNrEC-9v.js → agent-BkBbVuNq.js} +50 -45
- package/dist/agent-BkBbVuNq.js.map +1 -0
- package/dist/agent-QGK2YzlX.js +6 -0
- package/dist/{agent-interface-BXvmAm4c.js → agent-interface-CzyCmp7q.js} +87 -38
- package/dist/agent-interface-CzyCmp7q.js.map +1 -0
- package/dist/{agent-prompt-loader-DiKUbhi_.js → agent-prompt-loader-4wMxlYSX.js} +5 -5
- package/dist/{agent-prompt-loader-DiKUbhi_.js.map → agent-prompt-loader-4wMxlYSX.js.map} +1 -1
- package/dist/{analytics-VRYdebXW.js → analytics-B6q5PN7a.js} +5 -5
- package/dist/analytics-B6q5PN7a.js.map +1 -0
- package/dist/analytics-BXtfK9o7.js +2 -0
- package/dist/{api-DGuJTzjr.js → api-C3Dc4LFl.js} +4 -16
- package/dist/{api-DGuJTzjr.js.map → api-C3Dc4LFl.js.map} +1 -1
- package/dist/api-yNjrfZs2.js +2 -0
- package/dist/bin.js +5 -2960
- package/dist/bin.js.map +1 -1
- package/dist/{bounded-fs-Cpn129A4.js → bounded-fs-CC_NDtoP.js} +3 -3
- package/dist/{bounded-fs-Cpn129A4.js.map → bounded-fs-CC_NDtoP.js.map} +1 -1
- package/dist/check-screens.tsx +5 -5
- package/dist/{ci-install-BPA6gzEq.js → ci-install-DfcAMhlu.js} +9 -8
- package/dist/ci-install-DfcAMhlu.js.map +1 -0
- package/dist/{constants-CuJfQEcC.js → constants-DO4X70po.js} +3 -3
- package/dist/{constants-CuJfQEcC.js.map → constants-DO4X70po.js.map} +1 -1
- package/dist/{debug-B9k4ideV.js → debug-BueK5mRR.js} +1 -1
- package/dist/{debug-Cj-8vfXY.js → debug-DyARf5TF.js} +3 -3
- package/dist/debug-DyARf5TF.js.map +1 -0
- package/dist/{defaults-C6J7yL4O.js → defaults-DpfMnH2q.js} +2 -2
- package/dist/defaults-DpfMnH2q.js.map +1 -0
- package/dist/emit-BSetXzDV.js +69 -0
- package/dist/emit-BSetXzDV.js.map +1 -0
- package/dist/{endpoints-DnIX0pZH.js → endpoints-D-4KxZiB.js} +3 -3
- package/dist/{endpoints-DnIX0pZH.js.map → endpoints-D-4KxZiB.js.map} +1 -1
- package/dist/env-api-key-CHGLe0iz.js +2 -0
- package/dist/{env-api-key-BWdKpGEr.js → env-api-key-COf0U-Au.js} +3 -5
- package/dist/{env-api-key-BWdKpGEr.js.map → env-api-key-COf0U-Au.js.map} +1 -1
- package/dist/{environment-DZYUSCpV.js → environment-DrLaSsA8.js} +5 -10
- package/dist/{environment-DZYUSCpV.js.map → environment-DrLaSsA8.js.map} +1 -1
- package/dist/environment-hBj7ngmO.js +2 -0
- package/dist/{errors-ddDE6MbA.js → errors-C2domSkK.js} +3 -67
- package/dist/errors-C2domSkK.js.map +1 -0
- package/dist/{file-dEhr-l3n.js → file-CVA9ocIC.js} +4 -4
- package/dist/file-CVA9ocIC.js.map +1 -0
- package/dist/file-CmoKK_Pp.js +2 -0
- package/dist/{file-watcher-CPM-Nn9L.js → file-watcher-C3Su8vXm.js} +3 -3
- package/dist/file-watcher-C3Su8vXm.js.map +1 -0
- package/dist/{gateway-CVU1G0H3.js → gateway-BmjYUSua.js} +8 -7
- package/dist/{gateway-CVU1G0H3.js.map → gateway-BmjYUSua.js.map} +1 -1
- package/dist/{headless-ui-pY2xB5ug.js → headless-ui-CUbv12Yx.js} +3 -3
- package/dist/headless-ui-CUbv12Yx.js.map +1 -0
- package/dist/host-resolution-DVSb7kXb.js +114 -0
- package/dist/host-resolution-DVSb7kXb.js.map +1 -0
- package/dist/{add-mcp-server-to-clients-amlJWW7W.js → install-Bk5TNk27.js} +16 -26
- package/dist/install-Bk5TNk27.js.map +1 -0
- package/dist/install-F4wm3RSl.js +2 -0
- package/dist/interactive-C5LNvDj6.js +11 -0
- package/dist/interactive-C5LNvDj6.js.map +1 -0
- package/dist/{telemetry-Bpv-Mh5B.js → links-9LWZPSCq.js} +4 -13
- package/dist/links-9LWZPSCq.js.map +1 -0
- package/dist/{logging-ui-CUxNYF2t.js → logging-ui-p6XKVmTx.js} +6 -6
- package/dist/logging-ui-p6XKVmTx.js.map +1 -0
- package/dist/main-DKPjFHEV.js +1404 -0
- package/dist/main-DKPjFHEV.js.map +1 -0
- package/dist/{mcp-JcsBBnWv.js → mcp-Co8VRF62.js} +4 -4
- package/dist/{mcp-JcsBBnWv.js.map → mcp-Co8VRF62.js.map} +1 -1
- package/dist/mcp-install-smoke-test.ts +1 -1
- package/dist/{mcp-prompt-streaming-B-p_Pvb2.js → mcp-prompt-streaming-ljCVoQ9I.js} +6 -6
- package/dist/{mcp-prompt-streaming-B-p_Pvb2.js.map → mcp-prompt-streaming-ljCVoQ9I.js.map} +1 -1
- package/dist/{mint-failure-CZFZpHpW.js → mint-failure-C0HyvEwO.js} +105 -93
- package/dist/mint-failure-C0HyvEwO.js.map +1 -0
- package/dist/{models-DnAY67Lg.js → models-Dba8ITeo.js} +2 -2
- package/dist/{models-DnAY67Lg.js.map → models-Dba8ITeo.js.map} +1 -1
- package/dist/{non-interactive-DR1CWXY1.js → non-interactive-CLMJrj_7.js} +5 -4
- package/dist/non-interactive-CLMJrj_7.js.map +1 -0
- package/dist/{oauth-session-CQTFOk-I.js → oauth-session-D-RfcVmr.js} +2 -2
- package/dist/{oauth-session-CQTFOk-I.js.map → oauth-session-D-RfcVmr.js.map} +1 -1
- package/dist/{orchestrator-tools-CBdt-SXO.js → orchestrator-tools-CVJ1F9Ub.js} +3 -3
- package/dist/{orchestrator-tools-CBdt-SXO.js.map → orchestrator-tools-CVJ1F9Ub.js.map} +1 -1
- package/dist/package-json--ppioh2F.js +2 -0
- package/dist/{package-json-DY70kkNp.js → package-json-Cowya9-3.js} +2 -8
- package/dist/{package-json-DY70kkNp.js.map → package-json-Cowya9-3.js.map} +1 -1
- package/dist/{pi-BtqcLX3y.js → pi-B5YTBRDv.js} +20 -18
- package/dist/pi-B5YTBRDv.js.map +1 -0
- package/dist/{playground-Dz-ZVjBk.js → playground-BLsCfHmQ.js} +33 -33
- package/dist/playground-BLsCfHmQ.js.map +1 -0
- package/dist/posthog-B2E0hpZt.js +2 -0
- package/dist/{posthog-6Uqw_Eux.js → posthog-B42rt_1S.js} +4 -9
- package/dist/posthog-B42rt_1S.js.map +1 -0
- package/dist/project-data--L-WZyvj.js +2 -0
- package/dist/{setup-utils-dCViCC6s.js → project-data-BO9IXn9y.js} +566 -957
- package/dist/project-data-BO9IXn9y.js.map +1 -0
- package/dist/provisioning-C01REIU2.js +2 -0
- package/dist/{provisioning-Zf7yPcEs.js → provisioning-CLhuKqXH.js} +6 -73
- package/dist/provisioning-CLhuKqXH.js.map +1 -0
- package/dist/{queue-tools-B7_aCyd-.js → queue-tools-knnPQP0e.js} +4 -4
- package/dist/{queue-tools-B7_aCyd-.js.map → queue-tools-knnPQP0e.js.map} +1 -1
- package/dist/{registry-B6iLGorH.js → registry-B3rC5U4b.js} +7 -9
- package/dist/{registry-B6iLGorH.js.map → registry-B3rC5U4b.js.map} +1 -1
- package/dist/registry-BamsM7J9.js +2 -0
- package/dist/run-agent-legacy-CwUmPfQF.js +2 -0
- package/dist/{run-agent-legacy-6WcYMaR9.js → run-agent-legacy-DWBajsMh.js} +40 -114
- package/dist/run-agent-legacy-DWBajsMh.js.map +1 -0
- package/dist/runners-D1PqqpjA.js +834 -0
- package/dist/runners-D1PqqpjA.js.map +1 -0
- package/dist/{security-lkBwWbrK.js → security-BvdSFDuM.js} +5 -5
- package/dist/{security-lkBwWbrK.js.map → security-BvdSFDuM.js.map} +1 -1
- package/dist/setup-utils-ChXXTi1m.js +301 -0
- package/dist/setup-utils-ChXXTi1m.js.map +1 -0
- package/dist/{start-tui-oCWMgsDP.js → start-tui-DicLfgsj.js} +95 -91
- package/dist/start-tui-DicLfgsj.js.map +1 -0
- package/dist/{steps-gx0Pq4I4.js → steps-Hc28zVc_.js} +10 -10
- package/dist/steps-Hc28zVc_.js.map +1 -0
- package/dist/store-COCO6U0P.js +5 -0
- package/dist/{store-xYy_6Ruv.js → store-D3509G87.js} +67 -35
- package/dist/store-D3509G87.js.map +1 -0
- package/dist/{subagent-Bfy0sfhU.js → subagent-D_Sqak94.js} +3 -3
- package/dist/{subagent-Bfy0sfhU.js.map → subagent-D_Sqak94.js.map} +1 -1
- package/dist/{task-BOfw7GPc.js → task-DiTI6Sak.js} +19 -17
- package/dist/task-DiTI6Sak.js.map +1 -0
- package/dist/{wizard-ui-DoyOZxK8.js → task-status-CmrrR7zo.js} +2 -2
- package/dist/task-status-CmrrR7zo.js.map +1 -0
- package/dist/{task-stream-kYlm9qd0.js → task-stream-BckhG_cB.js} +11 -11
- package/dist/task-stream-BckhG_cB.js.map +1 -0
- package/dist/{tasks-Bbv_lOBG.js → tasks-ChZ_F1YP.js} +1 -1
- package/dist/{tasks-Bbv_lOBG.js.map → tasks-ChZ_F1YP.js.map} +1 -1
- package/dist/telemetry-BNKsDxNS.js +13 -0
- package/dist/telemetry-BNKsDxNS.js.map +1 -0
- package/dist/{terminal-D07EQ2y0.js → terminal-PK9bCLRi.js} +123 -97
- package/dist/terminal-PK9bCLRi.js.map +1 -0
- package/dist/{tools-Cc41af5W.js → tools-C8LQ8QFz.js} +9 -9
- package/dist/tools-C8LQ8QFz.js.map +1 -0
- package/dist/{ui-CGXtC7Vn.js → ui-tPNpM6vj.js} +3 -3
- package/dist/ui-tPNpM6vj.js.map +1 -0
- package/dist/urls-BI4kJ4qQ.js +67 -0
- package/dist/urls-BI4kJ4qQ.js.map +1 -0
- package/dist/{version-Cadof0Z_.js → version-5_ydHkM6.js} +2 -2
- package/dist/{version-Cadof0Z_.js.map → version-5_ydHkM6.js.map} +1 -1
- package/dist/wizard-abort-BVjqLyeA.js +3 -0
- package/dist/{wizard-abort-HDbP3YcS.js → wizard-abort-DBKtfnBR.js} +20 -17
- package/dist/wizard-abort-DBKtfnBR.js.map +1 -0
- package/dist/wizard-session-B7BHnay0.js +2 -0
- package/dist/{wizard-session-2w4Ru-Wz.js → wizard-session-BYw6LzpS.js} +30 -28
- package/dist/wizard-session-BYw6LzpS.js.map +1 -0
- package/dist/{yara-hooks-DCfROpZt.js → yara-hooks-C3L6lBij.js} +5 -5
- package/dist/{yara-hooks-DCfROpZt.js.map → yara-hooks-C3L6lBij.js.map} +1 -1
- package/dist/yara-hooks-CF_IsoaA.js +2 -0
- package/package.json +2 -3
- package/dist/add-mcp-server-to-clients-amlJWW7W.js.map +0 -1
- package/dist/agent-CNrEC-9v.js.map +0 -1
- package/dist/agent-interface-BXvmAm4c.js.map +0 -1
- package/dist/analytics-DxwRi2Hf.js +0 -2
- package/dist/analytics-VRYdebXW.js.map +0 -1
- package/dist/ci-install-BPA6gzEq.js.map +0 -1
- package/dist/debug-Cj-8vfXY.js.map +0 -1
- package/dist/defaults-C6J7yL4O.js.map +0 -1
- package/dist/errors-ddDE6MbA.js.map +0 -1
- package/dist/file-dEhr-l3n.js.map +0 -1
- package/dist/file-watcher-CPM-Nn9L.js.map +0 -1
- package/dist/headless-ui-pY2xB5ug.js.map +0 -1
- package/dist/interactive-BOGlinZe.js +0 -11
- package/dist/interactive-BOGlinZe.js.map +0 -1
- package/dist/logging-ui-CUxNYF2t.js.map +0 -1
- package/dist/mint-failure-CZFZpHpW.js.map +0 -1
- package/dist/non-interactive-DR1CWXY1.js.map +0 -1
- package/dist/pi-BtqcLX3y.js.map +0 -1
- package/dist/playground-Dz-ZVjBk.js.map +0 -1
- package/dist/posthog-6Uqw_Eux.js.map +0 -1
- package/dist/provisioning-Zf7yPcEs.js.map +0 -1
- package/dist/rolldown-runtime-B_-DWIq7.js +0 -15
- package/dist/run-agent-legacy-6WcYMaR9.js.map +0 -1
- package/dist/setup-utils-dCViCC6s.js.map +0 -1
- package/dist/start-tui-oCWMgsDP.js.map +0 -1
- package/dist/steps-gx0Pq4I4.js.map +0 -1
- package/dist/store-xYy_6Ruv.js.map +0 -1
- package/dist/task-BOfw7GPc.js.map +0 -1
- package/dist/task-stream-kYlm9qd0.js.map +0 -1
- package/dist/telemetry-Bpv-Mh5B.js.map +0 -1
- package/dist/terminal-D07EQ2y0.js.map +0 -1
- package/dist/tools-Cc41af5W.js.map +0 -1
- package/dist/ui-CGXtC7Vn.js.map +0 -1
- package/dist/wizard-abort-HDbP3YcS.js.map +0 -1
- package/dist/wizard-abort-Y-Ip2K4z.js +0 -3
- package/dist/wizard-session-2w4Ru-Wz.js.map +0 -1
- package/dist/wizard-session-DGaUHOF3.js +0 -2
- package/dist/wizard-ui-DoyOZxK8.js.map +0 -1
- package/dist/yara-hooks-B49RIk5d.js +0 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as enableDebugLogs, o as initLogFile, s as logToFile } from "./debug-
|
|
4
|
-
import { $ as getSkillsBaseUrl,
|
|
5
|
-
import { r as mayReportScanResults } from "./wizard-session-
|
|
6
|
-
import { n as analytics, r as groupsFromUser } from "./analytics-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { a as getBlockingServiceKeys, i as evaluateWizardReadiness, n as SERVICE_LABELS, r as SIGNUP_WIZARD_READINESS_CONFIG } from "./logging-ui-
|
|
10
|
-
import { t as getUI } from "./ui-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { i as oauthCredentials, t as configureOAuthSession } from "./oauth-session-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
19
|
-
import { t as startFileWatcher } from "./file-watcher-
|
|
1
|
+
import { at as isEnvFileName, c as checkAllSettingsConflicts, d as restoreClaudeSettings, h as markGrantRevoked, it as MAX_ENV_KEY_SET, l as classifySettingsConflicts, n as buildRunTags, ot as parseEnvKeyNames, s as backupAndFixClaudeSettings, st as toPromptSafeRelativePath } from "./agent-interface-CzyCmp7q.js";
|
|
2
|
+
import { n as ErrorCodes } from "./emit-BSetXzDV.js";
|
|
3
|
+
import { i as enableDebugLogs, o as initLogFile, s as logToFile } from "./debug-DyARf5TF.js";
|
|
4
|
+
import { $ as getSkillsBaseUrl, W as WIZARD_OAUTH_SCOPES } from "./constants-DO4X70po.js";
|
|
5
|
+
import { r as mayReportScanResults } from "./wizard-session-BYw6LzpS.js";
|
|
6
|
+
import { n as analytics, r as groupsFromUser } from "./analytics-B6q5PN7a.js";
|
|
7
|
+
import "./errors-C2domSkK.js";
|
|
8
|
+
import { a as safeReadFile, i as readProjectFile, o as walkProjectFiles } from "./bounded-fs-CC_NDtoP.js";
|
|
9
|
+
import { a as getBlockingServiceKeys, i as evaluateWizardReadiness, n as SERVICE_LABELS, r as SIGNUP_WIZARD_READINESS_CONFIG } from "./logging-ui-p6XKVmTx.js";
|
|
10
|
+
import { t as getUI } from "./ui-tPNpM6vj.js";
|
|
11
|
+
import { r as wizardAbort, t as registerCleanup } from "./wizard-abort-DBKtfnBR.js";
|
|
12
|
+
import { t as isNonInteractiveEnvironment } from "./environment-DrLaSsA8.js";
|
|
13
|
+
import { i as oauthCredentials, t as configureOAuthSession } from "./oauth-session-D-RfcVmr.js";
|
|
14
|
+
import { i as resolveBinding, n as captureSwitchboardDecision, r as runAgent } from "./agent-BkBbVuNq.js";
|
|
15
|
+
import { _ as coerceAuditChecks, a as flushScanReport } from "./yara-hooks-C3L6lBij.js";
|
|
16
|
+
import { g as TASK_OUTCOMES_KEY } from "./queue-tools-knnPQP0e.js";
|
|
17
|
+
import { a as OAuthError, i as refreshAccessToken, r as missingOAuthScopes, t as getOrAskForProjectData } from "./project-data-BO9IXn9y.js";
|
|
18
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-B3rC5U4b.js";
|
|
19
|
+
import { t as startFileWatcher } from "./file-watcher-C3Su8vXm.js";
|
|
20
20
|
import fs, { existsSync, statSync } from "fs";
|
|
21
21
|
import path, { join } from "path";
|
|
22
22
|
import { randomUUID } from "crypto";
|
|
@@ -2421,7 +2421,7 @@ const SOURCE_DETECTORS = [
|
|
|
2421
2421
|
/** Kinds from the LLM / AI section above — the only ones that may set `wizard_ai_sdk_detected`. */
|
|
2422
2422
|
const AI_SOURCE_KINDS = new Set(LLM_SOURCE_DETECTORS.map((detector) => detector.kind));
|
|
2423
2423
|
//#endregion
|
|
2424
|
-
//#region src/programs/
|
|
2424
|
+
//#region src/programs/detection/ai-sdk-stamp.ts
|
|
2425
2425
|
function hasAiSdkEvidence(evidence) {
|
|
2426
2426
|
return evidence.warehouseSources.some((s) => AI_SOURCE_KINDS.has(s.kind)) || evidence.discoveredFeatures.includes("llm");
|
|
2427
2427
|
}
|
|
@@ -2734,32 +2734,24 @@ async function runProgram(programId, callerInput, options = {}) {
|
|
|
2734
2734
|
adapter.finish(result);
|
|
2735
2735
|
return settle(result.outcome, result.outcome === "success" ? void 0 : result.failure);
|
|
2736
2736
|
}
|
|
2737
|
+
//#endregion
|
|
2738
|
+
//#region src/programs/session/interaction.ts
|
|
2737
2739
|
/**
|
|
2738
|
-
*
|
|
2739
|
-
*
|
|
2740
|
+
* Dismiss one open request on abort; a settled one leaves the UI alone. A
|
|
2741
|
+
* throw inside an abort listener reaches no caller: Node rethrows it as an
|
|
2742
|
+
* uncaught exception, so a broken overlay is logged here instead.
|
|
2740
2743
|
*/
|
|
2741
|
-
function
|
|
2742
|
-
const
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
cli_sequence: ctx.cliSequence,
|
|
2753
|
-
cli_model: ctx.cliModel,
|
|
2754
|
-
harness_source: trace.harness,
|
|
2755
|
-
model_source: modelSource,
|
|
2756
|
-
sequence_source: trace.sequence,
|
|
2757
|
-
harness: binding.harness,
|
|
2758
|
-
model,
|
|
2759
|
-
thinking_level: binding.thinkingLevel,
|
|
2760
|
-
sequence: binding.sequence
|
|
2761
|
-
});
|
|
2762
|
-
logToFile(`[switchboard] decision: program=${ctx.program} in(orchestrator=${ctx.flags["wizard-orchestrator"] ?? "-"}, cli=${ctx.cliHarness ?? "-"}/${ctx.cliSequence ?? "-"}/${ctx.cliModel ?? "-"}) → harness=${binding.harness} (${trace.harness ?? "?"}) model=${model} (${modelSource ?? "?"}) sequence=${binding.sequence} (${trace.sequence ?? "?"})`);
|
|
2744
|
+
function dismissOnAbort(open, signal, dismiss) {
|
|
2745
|
+
const onAbort = () => {
|
|
2746
|
+
try {
|
|
2747
|
+
dismiss();
|
|
2748
|
+
} catch (error) {
|
|
2749
|
+
logToFile("[agent-progress] dismissing an aborted request failed", error);
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
if (signal.aborted) onAbort();
|
|
2753
|
+
else signal.addEventListener("abort", onAbort, { once: true });
|
|
2754
|
+
return open.finally(() => signal.removeEventListener("abort", onAbort));
|
|
2763
2755
|
}
|
|
2764
2756
|
//#endregion
|
|
2765
2757
|
//#region src/ui/agent-progress.ts
|
|
@@ -2819,42 +2811,13 @@ function createUiReducer(ui) {
|
|
|
2819
2811
|
/** The agent's questions, answered wherever `getUI()` answers them today. */
|
|
2820
2812
|
function uiInteraction(ui) {
|
|
2821
2813
|
return {
|
|
2822
|
-
ask: (question, { signal }) => dismissOnAbort(ui.requestQuestion(question), signal, () => ui.cancelPendingQuestion()),
|
|
2814
|
+
ask: (question, { signal, onAnswer }) => dismissOnAbort(ui.requestQuestion(question, onAnswer), signal, () => ui.cancelPendingQuestion()),
|
|
2823
2815
|
taskNotice: (notice, { signal }) => dismissOnAbort(ui.showTaskNotice(notice), signal, () => ui.cancelTaskNotice())
|
|
2824
2816
|
};
|
|
2825
2817
|
}
|
|
2826
|
-
/**
|
|
2827
|
-
* Dismiss one open request on abort; a settled one leaves the UI alone. A
|
|
2828
|
-
* throw inside an abort listener reaches no caller: Node rethrows it as an
|
|
2829
|
-
* uncaught exception, so a broken overlay is logged here instead.
|
|
2830
|
-
*/
|
|
2831
|
-
function dismissOnAbort(open, signal, dismiss) {
|
|
2832
|
-
const onAbort = () => {
|
|
2833
|
-
try {
|
|
2834
|
-
dismiss();
|
|
2835
|
-
} catch (error) {
|
|
2836
|
-
logToFile("[agent-progress] dismissing an aborted request failed", error);
|
|
2837
|
-
}
|
|
2838
|
-
};
|
|
2839
|
-
if (signal.aborted) onAbort();
|
|
2840
|
-
else signal.addEventListener("abort", onAbort, { once: true });
|
|
2841
|
-
return open.finally(() => signal.removeEventListener("abort", onAbort));
|
|
2842
|
-
}
|
|
2843
2818
|
//#endregion
|
|
2844
2819
|
//#region src/programs/program-step.ts
|
|
2845
2820
|
/**
|
|
2846
|
-
* Project program steps into the narrower Screen shape the router consumes.
|
|
2847
|
-
*
|
|
2848
|
-
* Two things happen here:
|
|
2849
|
-
* 1. Headless steps (no `screenId`) are filtered out. The router walks
|
|
2850
|
-
* visible screens; gate-only steps like `detect` are store concerns.
|
|
2851
|
-
* 2. The step is narrowed to just { id, show, isComplete } — the
|
|
2852
|
-
* router has no business touching gate, onInit, or label.
|
|
2853
|
-
*
|
|
2854
|
-
* This intentional separation keeps the router focused on one question:
|
|
2855
|
-
* "Which screen should be rendered right now?"
|
|
2856
|
-
*/
|
|
2857
|
-
/**
|
|
2858
2821
|
* The gated steps the agent runner awaits after `auth` and before `run`, in
|
|
2859
2822
|
* step order. Empty when a program has no auth step or runs before it.
|
|
2860
2823
|
*/
|
|
@@ -2864,19 +2827,6 @@ function postAuthGateSteps(steps) {
|
|
|
2864
2827
|
if (authIndex === -1 || runIndex <= authIndex) return [];
|
|
2865
2828
|
return steps.slice(authIndex + 1, runIndex).filter((s) => s.gate);
|
|
2866
2829
|
}
|
|
2867
|
-
function createProgramSequence(steps) {
|
|
2868
|
-
const entries = steps.filter((step) => step.screenId != null).map((step) => ({
|
|
2869
|
-
id: step.screenId,
|
|
2870
|
-
show: step.show,
|
|
2871
|
-
isComplete: step.isComplete ?? step.gate
|
|
2872
|
-
}));
|
|
2873
|
-
entries.push({
|
|
2874
|
-
id: "exit",
|
|
2875
|
-
show: void 0,
|
|
2876
|
-
isComplete: void 0
|
|
2877
|
-
});
|
|
2878
|
-
return entries;
|
|
2879
|
-
}
|
|
2880
2830
|
//#endregion
|
|
2881
2831
|
//#region src/programs/authenticate.ts
|
|
2882
2832
|
async function authenticate(session, programId) {
|
|
@@ -2913,30 +2863,7 @@ async function authenticate(session, programId) {
|
|
|
2913
2863
|
analytics.setGroups(groupsFromUser(user, host.apiHost));
|
|
2914
2864
|
}
|
|
2915
2865
|
//#endregion
|
|
2916
|
-
//#region src/programs/audit
|
|
2917
|
-
/** Single source of truth for status glyph + color across audit views. */
|
|
2918
|
-
const AUDIT_SEVERITY_STYLE = {
|
|
2919
|
-
pending: {
|
|
2920
|
-
glyph: "◌",
|
|
2921
|
-
color: "gray"
|
|
2922
|
-
},
|
|
2923
|
-
pass: {
|
|
2924
|
-
glyph: "✔",
|
|
2925
|
-
color: "green"
|
|
2926
|
-
},
|
|
2927
|
-
error: {
|
|
2928
|
-
glyph: "✘",
|
|
2929
|
-
color: "red"
|
|
2930
|
-
},
|
|
2931
|
-
warning: {
|
|
2932
|
-
glyph: "⚠",
|
|
2933
|
-
color: "yellow"
|
|
2934
|
-
},
|
|
2935
|
-
suggestion: {
|
|
2936
|
-
glyph: "•",
|
|
2937
|
-
color: "cyan"
|
|
2938
|
-
}
|
|
2939
|
-
};
|
|
2866
|
+
//#region src/programs/session/audit-checks.ts
|
|
2940
2867
|
const AUDIT_CHECKS_KEY = "auditChecks";
|
|
2941
2868
|
function getAuditChecks(session) {
|
|
2942
2869
|
const raw = session.frameworkContext[AUDIT_CHECKS_KEY];
|
|
@@ -3313,7 +3240,6 @@ function detectWarehousePrerequisites(session, setFrameworkContext) {
|
|
|
3313
3240
|
*
|
|
3314
3241
|
* ⚠️ Temporary adapter. It is removed later in the refactor.
|
|
3315
3242
|
*/
|
|
3316
|
-
var run_agent_legacy_exports = /* @__PURE__ */ __exportAll({ runProgramAgent: () => runProgramAgent });
|
|
3317
3243
|
/**
|
|
3318
3244
|
* Resolve a ProgramConfig's agent run definition and execute the pipeline.
|
|
3319
3245
|
* Entry point for the runners and for composed run steps.
|
|
@@ -3536,6 +3462,6 @@ async function runSettingsGate(session) {
|
|
|
3536
3462
|
}
|
|
3537
3463
|
}
|
|
3538
3464
|
//#endregion
|
|
3539
|
-
export {
|
|
3465
|
+
export { getDetectedWarehouseSources as a, AUDIT_CHECKS_KEY as c, createUiReducer as d, stampAiSdkDetected as f, detectWarehousePrerequisites as i, getAuditChecks as l, DETECTED_WAREHOUSE_SOURCES_KEY as n, detectWarehouseSources as o, WAREHOUSE_ABORT_CASES as r, discoverFeatures as s, runProgramAgent as t, authenticate as u };
|
|
3540
3466
|
|
|
3541
|
-
//# sourceMappingURL=run-agent-legacy-
|
|
3467
|
+
//# sourceMappingURL=run-agent-legacy-DWBajsMh.js.map
|