@posthog/wizard 2.46.0 → 2.48.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/{add-mcp-server-to-clients-Bv2CBSil.js → add-mcp-server-to-clients-D1ylcWh3.js} +4 -4
- package/dist/{add-mcp-server-to-clients-Bv2CBSil.js.map → add-mcp-server-to-clients-D1ylcWh3.js.map} +1 -1
- package/dist/{agent-interface-B8roB2UP.js → agent-interface-C9li2RGX.js} +10 -6
- package/dist/agent-interface-C9li2RGX.js.map +1 -0
- package/dist/{agent-runner-CV3qh_2p.js → agent-runner-BbAtU_Ue.js} +73 -16
- package/dist/{agent-runner-CV3qh_2p.js.map → agent-runner-BbAtU_Ue.js.map} +1 -1
- package/dist/analytics-CU8OGUAl.js +2 -0
- package/dist/{analytics-k76OWsl0.js → analytics-CVmeRvMK.js} +2 -2
- package/dist/{analytics-k76OWsl0.js.map → analytics-CVmeRvMK.js.map} +1 -1
- package/dist/{api-CmIWcW-U.js → api-BYJ0F0jM.js} +3 -3
- package/dist/{api-CmIWcW-U.js.map → api-BYJ0F0jM.js.map} +1 -1
- package/dist/bin.js +109 -38
- package/dist/bin.js.map +1 -1
- package/dist/check-screens.tsx +26 -0
- package/dist/{ci-install-CNEJxdHf.js → ci-install-ZkBH7NNk.js} +4 -4
- package/dist/{ci-install-CNEJxdHf.js.map → ci-install-ZkBH7NNk.js.map} +1 -1
- package/dist/{debug-C9HmIrwx.js → debug-CUmAeIdp.js} +3 -3
- package/dist/{debug-C9HmIrwx.js.map → debug-CUmAeIdp.js.map} +1 -1
- package/dist/{debug-BwIo7nwn.js → debug-sw5dX4p8.js} +1 -1
- package/dist/{environment-NJykOp33.js → environment-D-leJpbC.js} +3 -3
- package/dist/{environment-NJykOp33.js.map → environment-D-leJpbC.js.map} +1 -1
- package/dist/{file-utils-CLMcNIKi.js → file-utils-ajJoKu1x.js} +2 -2
- package/dist/{file-utils-CLMcNIKi.js.map → file-utils-ajJoKu1x.js.map} +1 -1
- package/dist/{file-watcher-CBDCNQVV.js → file-watcher-Cslhvx_q.js} +2 -2
- package/dist/{file-watcher-CBDCNQVV.js.map → file-watcher-Cslhvx_q.js.map} +1 -1
- package/dist/{headless-ui-B3QKxbz8.js → headless-ui-DmE7h8Xd.js} +2 -2
- package/dist/{headless-ui-B3QKxbz8.js.map → headless-ui-DmE7h8Xd.js.map} +1 -1
- package/dist/{interactive-CIJRex02.js → interactive-CZFxpwtD.js} +2 -2
- package/dist/{interactive-CIJRex02.js.map → interactive-CZFxpwtD.js.map} +1 -1
- package/dist/{mcp-qTjKHqXN.js → mcp-B35jkp2C.js} +2 -2
- package/dist/{mcp-qTjKHqXN.js.map → mcp-B35jkp2C.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-D6OgW3lC.js → mcp-prompt-streaming-ClyJS8Vb.js} +3 -3
- package/dist/{mcp-prompt-streaming-D6OgW3lC.js.map → mcp-prompt-streaming-ClyJS8Vb.js.map} +1 -1
- package/dist/{non-interactive-8Eypq_h-.js → non-interactive-6yE8SBNT.js} +2 -2
- package/dist/{non-interactive-8Eypq_h-.js.map → non-interactive-6yE8SBNT.js.map} +1 -1
- package/dist/{orchestrator-tools-DVXOV-kz.js → orchestrator-tools-CN2GiFFz.js} +9 -7
- package/dist/orchestrator-tools-CN2GiFFz.js.map +1 -0
- package/dist/{package-manager-CAD9Uklp.js → package-manager-BhIthBbt.js} +2 -2
- package/dist/{package-manager-CAD9Uklp.js.map → package-manager-BhIthBbt.js.map} +1 -1
- package/dist/{pi-C9iHv5uG.js → pi-CFQC2bp5.js} +11 -11
- package/dist/{pi-C9iHv5uG.js.map → pi-CFQC2bp5.js.map} +1 -1
- package/dist/{playground-C-9Q3ETa.js → playground-xU2cFoJZ.js} +6 -6
- package/dist/{playground-C-9Q3ETa.js.map → playground-xU2cFoJZ.js.map} +1 -1
- package/dist/{posthog-integration-Do997QON.js → posthog-integration-MkDzf1_B.js} +14 -14
- package/dist/{posthog-integration-Do997QON.js.map → posthog-integration-MkDzf1_B.js.map} +1 -1
- package/dist/{provisioning-DpqnGk3z.js → provisioning-DywknZ3v.js} +3 -3
- package/dist/{provisioning-DpqnGk3z.js.map → provisioning-DywknZ3v.js.map} +1 -1
- package/dist/{queue-tools-CTUgbOU8.js → queue-tools-CSTHA8ab.js} +9 -7
- package/dist/queue-tools-CSTHA8ab.js.map +1 -0
- package/dist/{registry-DT58jEYr.js → registry-qI149NRV.js} +4 -4
- package/dist/{registry-DT58jEYr.js.map → registry-qI149NRV.js.map} +1 -1
- package/dist/{security-CTigdAWm.js → security-CK8tHIss.js} +4 -4
- package/dist/{security-CTigdAWm.js.map → security-CK8tHIss.js.map} +1 -1
- package/dist/{setup-utils-Cb5uACEO.js → setup-utils-CvCnesrl.js} +7 -7
- package/dist/{setup-utils-Cb5uACEO.js.map → setup-utils-CvCnesrl.js.map} +1 -1
- package/dist/{start-tui-Cwc-PFma.js → start-tui-BBBem_0l.js} +95 -17
- package/dist/start-tui-BBBem_0l.js.map +1 -0
- package/dist/{steps-DyEKYM4I.js → steps-CKG6kSjp.js} +7 -7
- package/dist/{steps-DyEKYM4I.js.map → steps-CKG6kSjp.js.map} +1 -1
- package/dist/{store-4sj-vWr5.js → store-BL89FJpU.js} +4 -4
- package/dist/store-BL89FJpU.js.map +1 -0
- package/dist/{subagent-D8_yDgCB.js → subagent-CfwiqiCw.js} +2 -2
- package/dist/{subagent-D8_yDgCB.js.map → subagent-CfwiqiCw.js.map} +1 -1
- package/dist/{task-D8Y8pkzd.js → task-Cu4lz5_H.js} +12 -12
- package/dist/task-Cu4lz5_H.js.map +1 -0
- package/dist/{task-stream-DQT3vjwS.js → task-stream-BfQYDIog.js} +3 -3
- package/dist/{task-stream-DQT3vjwS.js.map → task-stream-BfQYDIog.js.map} +1 -1
- package/dist/{tasks-D2WKssA5.js → tasks-CJxGstXs.js} +2 -2
- package/dist/{tasks-D2WKssA5.js.map → tasks-CJxGstXs.js.map} +1 -1
- package/dist/{telemetry-CYr4HgS2.js → telemetry-DVTq0Mv_.js} +3 -3
- package/dist/{telemetry-CYr4HgS2.js.map → telemetry-DVTq0Mv_.js.map} +1 -1
- package/dist/{terminal-1RfyHQC2.js → terminal-CnxUzd0d.js} +40 -25
- package/dist/terminal-CnxUzd0d.js.map +1 -0
- package/dist/{tools-DQCUOQZX.js → tools-BxEQaUYK.js} +6 -6
- package/dist/{tools-DQCUOQZX.js.map → tools-BxEQaUYK.js.map} +1 -1
- package/dist/{wizard-abort-FuyIaI_0.js → wizard-abort-BcG8dYgK.js} +3 -3
- package/dist/{wizard-abort-FuyIaI_0.js.map → wizard-abort-BcG8dYgK.js.map} +1 -1
- package/dist/{wizard-abort-D_-v1zvS.js → wizard-abort-CzyT__-u.js} +1 -1
- package/dist/yara-hooks-0Yuk_lT5.js +2 -0
- package/dist/{yara-hooks-DdYRRxfH.js → yara-hooks-B8GIO827.js} +3 -3
- package/dist/{yara-hooks-DdYRRxfH.js.map → yara-hooks-B8GIO827.js.map} +1 -1
- package/package.json +1 -1
- package/dist/agent-interface-B8roB2UP.js.map +0 -1
- package/dist/analytics-D7vUZgzf.js +0 -2
- package/dist/orchestrator-tools-DVXOV-kz.js.map +0 -1
- package/dist/queue-tools-CTUgbOU8.js.map +0 -1
- package/dist/start-tui-Cwc-PFma.js.map +0 -1
- package/dist/store-4sj-vWr5.js.map +0 -1
- package/dist/task-D8Y8pkzd.js.map +0 -1
- package/dist/terminal-1RfyHQC2.js.map +0 -1
- package/dist/yara-hooks-6gNnPFPo.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B_-DWIq7.js";
|
|
2
|
-
import { A as GPT5_4_MODEL, Ct as runtimeEnv, D as DEFAULT_AGENT_MODEL, F as GPT5_MINI_MODEL, I as GPT5_MODEL, M as GPT5_6_LUNA_MODEL, N as GPT5_6_SOL_MODEL, P as GPT5_6_TERRA_MODEL, R as Harness, St as RUN_SURFACE, _ as evaluateWizardReadiness, _t as WIZARD_USE_PI_HARNESS_FLAG_KEY, a as getLogFilePath, c as WIZARD_BENCHMARK_FILE, dt as WIZARD_PI_MODEL_FLAG_KEY, f as getUI, g as SIGNUP_WIZARD_READINESS_CONFIG, h as SERVICE_LABELS, i as enableDebugLogs, it as Sequence, j as GPT5_5_MODEL, l as WIZARD_LOG_FILE, lt as WIZARD_ORCHESTRATOR_FLAG_KEY, mt as WIZARD_SELF_DRIVING_USE_PI_HARNESS_FLAG_KEY, o as initLogFile, rt as SONNET_5_MODEL, s as logToFile, t as configureLogFile, ut as WIZARD_PI_EFFORT_FLAG_KEY, v as getBlockingServiceKeys, vt as getSkillsBaseUrl } from "./debug-
|
|
3
|
-
import { a as ciExcludedTaskTypes, n as analytics, r as groupsFromUser } from "./analytics-
|
|
4
|
-
import { t as getOrAskForProjectData } from "./setup-utils-
|
|
2
|
+
import { A as GPT5_4_MODEL, Ct as runtimeEnv, D as DEFAULT_AGENT_MODEL, F as GPT5_MINI_MODEL, I as GPT5_MODEL, M as GPT5_6_LUNA_MODEL, N as GPT5_6_SOL_MODEL, P as GPT5_6_TERRA_MODEL, R as Harness, St as RUN_SURFACE, _ as evaluateWizardReadiness, _t as WIZARD_USE_PI_HARNESS_FLAG_KEY, a as getLogFilePath, c as WIZARD_BENCHMARK_FILE, dt as WIZARD_PI_MODEL_FLAG_KEY, f as getUI, g as SIGNUP_WIZARD_READINESS_CONFIG, h as SERVICE_LABELS, i as enableDebugLogs, it as Sequence, j as GPT5_5_MODEL, l as WIZARD_LOG_FILE, lt as WIZARD_ORCHESTRATOR_FLAG_KEY, mt as WIZARD_SELF_DRIVING_USE_PI_HARNESS_FLAG_KEY, o as initLogFile, rt as SONNET_5_MODEL, s as logToFile, t as configureLogFile, ut as WIZARD_PI_EFFORT_FLAG_KEY, v as getBlockingServiceKeys, vt as getSkillsBaseUrl } from "./debug-CUmAeIdp.js";
|
|
3
|
+
import { a as ciExcludedTaskTypes, n as analytics, r as groupsFromUser } from "./analytics-CVmeRvMK.js";
|
|
4
|
+
import { t as getOrAskForProjectData } from "./setup-utils-CvCnesrl.js";
|
|
5
5
|
import "./wizard-session-tp4Zdbwl.js";
|
|
6
|
-
import { i as wizardAbort, n as registerCleanup, t as WizardError } from "./wizard-abort-
|
|
7
|
-
import { n as isNonInteractiveEnvironment } from "./environment-
|
|
8
|
-
import { O as fetchWithRetry, S as installSkillById, c as classifySettingsConflicts, i as runAgent$1, k as createWizardAskBridge, n as buildRunTags, o as backupAndFixClaudeSettings, p as AgentSignals, r as initializeAgent, s as checkAllSettingsConflicts, u as restoreClaudeSettings, x as fetchSkillMenu } from "./agent-interface-
|
|
9
|
-
import { a as QUEUE_DIR_NAME, o as QueueStore, s as TaskStatus } from "./queue-tools-
|
|
10
|
-
import { a as flushScanReport, o as formatScanReport, p as writeScanReport, s as formatYaraAbortMessage } from "./yara-hooks-
|
|
11
|
-
import { r as detectNodePackageManagers } from "./package-manager-
|
|
12
|
-
import { a as piBackend, l as isThinkingLevel } from "./pi-
|
|
13
|
-
import { t as FRAMEWORK_REGISTRY } from "./registry-
|
|
14
|
-
import fs, { existsSync, rmSync } from "fs";
|
|
6
|
+
import { i as wizardAbort, n as registerCleanup, t as WizardError } from "./wizard-abort-BcG8dYgK.js";
|
|
7
|
+
import { n as isNonInteractiveEnvironment } from "./environment-D-leJpbC.js";
|
|
8
|
+
import { O as fetchWithRetry, S as installSkillById, c as classifySettingsConflicts, i as runAgent$1, k as createWizardAskBridge, n as buildRunTags, o as backupAndFixClaudeSettings, p as AgentSignals, r as initializeAgent, s as checkAllSettingsConflicts, u as restoreClaudeSettings, x as fetchSkillMenu } from "./agent-interface-C9li2RGX.js";
|
|
9
|
+
import { a as QUEUE_DIR_NAME, o as QueueStore, s as TaskStatus } from "./queue-tools-CSTHA8ab.js";
|
|
10
|
+
import { a as flushScanReport, o as formatScanReport, p as writeScanReport, s as formatYaraAbortMessage } from "./yara-hooks-B8GIO827.js";
|
|
11
|
+
import { r as detectNodePackageManagers } from "./package-manager-BhIthBbt.js";
|
|
12
|
+
import { a as piBackend, l as isThinkingLevel } from "./pi-CFQC2bp5.js";
|
|
13
|
+
import { t as FRAMEWORK_REGISTRY } from "./registry-qI149NRV.js";
|
|
14
|
+
import fs, { cpSync, existsSync, mkdirSync, readdirSync, rmSync, writeFileSync } from "fs";
|
|
15
15
|
import * as path$1 from "path";
|
|
16
16
|
import path from "path";
|
|
17
17
|
import { z } from "zod";
|
|
@@ -1764,7 +1764,7 @@ function commandmentsReference(ctx) {
|
|
|
1764
1764
|
if (!ctx.commandmentsPath) return null;
|
|
1765
1765
|
return `Framework rules for this integration are at \`${ctx.commandmentsPath}\`. Read them before you edit and follow them.`;
|
|
1766
1766
|
}
|
|
1767
|
-
const TASK_BASICS = `You are one isolated task in a larger PostHog workflow, run as a fresh agent with no memory of the other tasks beyond the context you are given. Do only your task, then report exactly once by calling complete_task with a structured handoff: what your goal was, what you did, and what the next agent should know. When you are given context from previous steps, trust it — those agents already did their work, so do not re-verify or re-read what their handoffs tell you. Build on it and move fast. Read a file before you edit it, so your own changes do not duplicate what is already there. Work only inside this project's own directory: never read, list, or search (find, ls, grep, glob) outside it — not the OS, not other projects, not global package caches. If your task seems to need something outside this directory, it does not — skip that part and say so in your handoff rather than hunting across the filesystem. If your task does not apply to this project — there is genuinely nothing for it to do — report it with status \`
|
|
1767
|
+
const TASK_BASICS = `You are one isolated task in a larger PostHog workflow, run as a fresh agent with no memory of the other tasks beyond the context you are given. Do only your task, then report exactly once by calling complete_task with a structured handoff: what your goal was, what you did, and what the next agent should know. When you are given context from previous steps, trust it — those agents already did their work, so do not re-verify or re-read what their handoffs tell you. Build on it and move fast. Read a file before you edit it, so your own changes do not duplicate what is already there. Work only inside this project's own directory: never read, list, or search (find, ls, grep, glob) outside it — not the OS, not other projects, not global package caches. If your task seems to need something outside this directory, it does not — skip that part and say so in your handoff rather than hunting across the filesystem. If your task does not apply to this project — there is genuinely nothing for it to do — report it with status \`not needed\` and say why, rather than marking it done.`;
|
|
1768
1768
|
const SEED_BASICS = `You are the orchestrator. Plan the work and seed the queue with enqueue_task — each call returns an id you can pass as a dependency to a later task. Give each task a short label for the UI — the action in a few words, not file names, class names, or other specifics. You are not a task yourself: do not call complete_task and do not edit the project.`;
|
|
1769
1769
|
/**
|
|
1770
1770
|
* Points the agent at its installed task instructions (the HOW). They live under
|
|
@@ -1949,6 +1949,8 @@ function renderHandoffContext(task, store) {
|
|
|
1949
1949
|
lines.push(`- did: ${handoff.did}`);
|
|
1950
1950
|
lines.push(`- for you: ${handoff.forNextAgent}`);
|
|
1951
1951
|
if (handoff.filesTouched?.length) lines.push(`- files: ${handoff.filesTouched.join(", ")}`);
|
|
1952
|
+
if (handoff.evidence) lines.push(`- evidence: ${handoff.evidence}`);
|
|
1953
|
+
if (handoff.assumptions) lines.push(`- assumed: ${handoff.assumptions}`);
|
|
1952
1954
|
lines.push("");
|
|
1953
1955
|
}
|
|
1954
1956
|
if (lines.length === 0) return "";
|
|
@@ -1998,6 +2000,36 @@ const EMPTY_PROMPT = {};
|
|
|
1998
2000
|
* task resolve to a prompt fetched at startup into the registry. The wizard side
|
|
1999
2001
|
* stays product-ignorant: it is the queue, the executor, and the loader.
|
|
2000
2002
|
*/
|
|
2003
|
+
/** Docs page (`django.md`, `nuxt-js-3-6.md`) — steps start with a digit, agent artifacts (`SKILL.md`, `EXAMPLE*`, `COMMANDMENTS.md`) have uppercase. */
|
|
2004
|
+
const isDocPage = (name) => name.endsWith(".md") && name === name.toLowerCase() && !/^\d/.test(name);
|
|
2005
|
+
/** Copy only the framework docs pages out of the run cache into .claude/skills — the one durable artifact an orchestrator run leaves. Never clobbers an existing install. */
|
|
2006
|
+
function promoteReferenceSkill(referenceDir, claudeSkillsDir, referenceSkillId) {
|
|
2007
|
+
const target = path$1.join(claudeSkillsDir, referenceSkillId);
|
|
2008
|
+
const refs = path$1.join(referenceDir, "references");
|
|
2009
|
+
if (!existsSync(refs) || existsSync(target)) return;
|
|
2010
|
+
const docs = readdirSync(refs).filter(isDocPage);
|
|
2011
|
+
if (docs.length === 0) return;
|
|
2012
|
+
mkdirSync(path$1.join(target, "references"), { recursive: true });
|
|
2013
|
+
for (const f of docs) cpSync(path$1.join(refs, f), path$1.join(target, "references", f));
|
|
2014
|
+
writeFileSync(path$1.join(target, ".posthog-wizard"), "");
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* Remove skills that task agents installed durably mid-run (load_skill):
|
|
2018
|
+
* wizard-marked, new this run, and not the framework reference docs.
|
|
2019
|
+
* User-authored and pre-existing skills stay.
|
|
2020
|
+
*/
|
|
2021
|
+
function sweepRunInstalledSkills(claudeSkillsDir, preexistingSkills, referenceSkillId) {
|
|
2022
|
+
if (!existsSync(claudeSkillsDir)) return;
|
|
2023
|
+
for (const id of readdirSync(claudeSkillsDir)) {
|
|
2024
|
+
if (preexistingSkills.has(id) || id === referenceSkillId) continue;
|
|
2025
|
+
if (!existsSync(path$1.join(claudeSkillsDir, id, ".posthog-wizard"))) continue;
|
|
2026
|
+
rmSync(path$1.join(claudeSkillsDir, id), {
|
|
2027
|
+
recursive: true,
|
|
2028
|
+
force: true
|
|
2029
|
+
});
|
|
2030
|
+
logToFile(`[orchestrator] removed run-installed skill ${id}`);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2001
2033
|
function toTodoStatus(status) {
|
|
2002
2034
|
switch (status) {
|
|
2003
2035
|
case TaskStatus.Running: return "in_progress";
|
|
@@ -2103,11 +2135,13 @@ async function runOrchestrator(session, programConfig, boot) {
|
|
|
2103
2135
|
} });
|
|
2104
2136
|
let examplePath;
|
|
2105
2137
|
let commandmentsPath;
|
|
2138
|
+
let referenceInstallPath;
|
|
2106
2139
|
const menuSkillEntries = await fetchSkillMenuEntries(boot.skillsBaseUrl);
|
|
2107
2140
|
const referenceSkillId = session.skillId ? resolveReferenceSkillId(menuSkillEntries, session.skillId) : void 0;
|
|
2108
2141
|
if (referenceSkillId) {
|
|
2109
2142
|
const ref = await installSkillById(referenceSkillId, session.installDir, boot.skillsBaseUrl, path$1.join(QUEUE_DIR_NAME, "reference"));
|
|
2110
2143
|
if (ref.kind === "ok") {
|
|
2144
|
+
referenceInstallPath = ref.path;
|
|
2111
2145
|
const example = path$1.join(ref.path, "references", "EXAMPLE.md");
|
|
2112
2146
|
if (existsSync(path$1.join(session.installDir, example))) examplePath = example;
|
|
2113
2147
|
const commandments = path$1.join(ref.path, "references", "COMMANDMENTS.md");
|
|
@@ -2189,6 +2223,8 @@ or integrate manually here:
|
|
|
2189
2223
|
});
|
|
2190
2224
|
renderQueue();
|
|
2191
2225
|
const taskSkillsRoot = path$1.join(QUEUE_DIR_NAME, "skills");
|
|
2226
|
+
const claudeSkillsDir = path$1.join(session.installDir, ".claude", "skills");
|
|
2227
|
+
const preexistingSkills = new Set(existsSync(claudeSkillsDir) ? readdirSync(claudeSkillsDir) : []);
|
|
2192
2228
|
let remarkRequested = false;
|
|
2193
2229
|
const runTask = async (task) => {
|
|
2194
2230
|
renderQueue();
|
|
@@ -2232,12 +2268,22 @@ or integrate manually here:
|
|
|
2232
2268
|
}
|
|
2233
2269
|
});
|
|
2234
2270
|
} finally {
|
|
2271
|
+
try {
|
|
2272
|
+
sweepRunInstalledSkills(claudeSkillsDir, preexistingSkills, referenceSkillId);
|
|
2273
|
+
} catch (err) {
|
|
2274
|
+
logToFile(`[orchestrator] per-task skill sweep failed: ${String(err)}`);
|
|
2275
|
+
}
|
|
2235
2276
|
renderQueue();
|
|
2236
2277
|
}
|
|
2237
2278
|
};
|
|
2238
2279
|
try {
|
|
2239
2280
|
await drainQueue(store, runTask);
|
|
2240
2281
|
} finally {
|
|
2282
|
+
try {
|
|
2283
|
+
if (referenceSkillId && referenceInstallPath) promoteReferenceSkill(path$1.join(session.installDir, referenceInstallPath), claudeSkillsDir, referenceSkillId);
|
|
2284
|
+
} catch (err) {
|
|
2285
|
+
analytics.captureException(err instanceof Error ? err : new Error(String(err)), { step: "orchestrator_reference_promote" });
|
|
2286
|
+
}
|
|
2241
2287
|
try {
|
|
2242
2288
|
rmSync(path$1.join(session.installDir, QUEUE_DIR_NAME), {
|
|
2243
2289
|
recursive: true,
|
|
@@ -2246,6 +2292,11 @@ or integrate manually here:
|
|
|
2246
2292
|
} catch (err) {
|
|
2247
2293
|
analytics.captureException(err instanceof Error ? err : new Error(String(err)), { step: "orchestrator_cache_cleanup" });
|
|
2248
2294
|
}
|
|
2295
|
+
try {
|
|
2296
|
+
sweepRunInstalledSkills(claudeSkillsDir, preexistingSkills, referenceSkillId);
|
|
2297
|
+
} catch (err) {
|
|
2298
|
+
analytics.captureException(err instanceof Error ? err : new Error(String(err)), { step: "orchestrator_skill_sweep" });
|
|
2299
|
+
}
|
|
2249
2300
|
}
|
|
2250
2301
|
renderQueue();
|
|
2251
2302
|
const summary = store.summary();
|
|
@@ -2254,7 +2305,7 @@ or integrate manually here:
|
|
|
2254
2305
|
tasks_total: summary.total,
|
|
2255
2306
|
tasks_done: summary.done,
|
|
2256
2307
|
tasks_failed: summary.failed,
|
|
2257
|
-
tasks_skipped: summary.
|
|
2308
|
+
tasks_skipped: summary[TaskStatus.Skipped],
|
|
2258
2309
|
total_duration_ms: Date.now() - runStartMs,
|
|
2259
2310
|
...metrics.summary(),
|
|
2260
2311
|
dynamic_enqueue_count: store.list().filter((t) => t.enqueuedBy !== "orchestrator").length,
|
|
@@ -2263,7 +2314,8 @@ or integrate manually here:
|
|
|
2263
2314
|
const buildTask = store.list().find((t) => t.type === "build");
|
|
2264
2315
|
const conflict = buildTask ? store.readHandoff(buildTask.id)?.conflict : void 0;
|
|
2265
2316
|
const reportFile = existsSync(path$1.join(session.installDir, "posthog-setup-report.md")) ? "posthog-setup-report.md" : store.queuePath;
|
|
2266
|
-
const
|
|
2317
|
+
const notRequired = summary[TaskStatus.Skipped];
|
|
2318
|
+
const message = conflict ? "PostHog set up, with one conflict to review." : `PostHog set up: ${summary.done}/${summary.total - notRequired} steps completed${notRequired > 0 ? ` (${notRequired} skipped as not required)` : ""}.`;
|
|
2267
2319
|
getUI().setOutroData({
|
|
2268
2320
|
kind: "success",
|
|
2269
2321
|
message,
|
|
@@ -2408,6 +2460,11 @@ const PROGRAM_BINDINGS = {
|
|
|
2408
2460
|
"mcp-remove": DEFAULT_BINDING,
|
|
2409
2461
|
"mcp-tutorial": DEFAULT_BINDING,
|
|
2410
2462
|
"mcp-analytics": DEFAULT_BINDING,
|
|
2463
|
+
"ai-observability": {
|
|
2464
|
+
sequence: "linear",
|
|
2465
|
+
harness: "anthropic",
|
|
2466
|
+
model: SONNET_5_MODEL
|
|
2467
|
+
},
|
|
2411
2468
|
slack: DEFAULT_BINDING
|
|
2412
2469
|
};
|
|
2413
2470
|
/** Compose both axes. Callers needing only one axis use the per-axis resolver. */
|
|
@@ -2519,4 +2576,4 @@ var agent_runner_exports = /* @__PURE__ */ __exportAll({ runAgent: () => runAgen
|
|
|
2519
2576
|
//#endregion
|
|
2520
2577
|
export { formatTokenCount as a, formatCostUsd as i, runAgent as n, authenticate as o, computeTokenCostUsd as r, agent_runner_exports as t };
|
|
2521
2578
|
|
|
2522
|
-
//# sourceMappingURL=agent-runner-
|
|
2579
|
+
//# sourceMappingURL=agent-runner-BbAtU_Ue.js.map
|