@runfusion/fusion 0.77.0-beta.0 → 0.77.0-beta.1

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 (115) hide show
  1. package/dist/bin.js +89 -10
  2. package/dist/child-process-worker.js +9739 -9686
  3. package/dist/client/.vite/manifest.json +254 -254
  4. package/dist/client/assets/{AgentDetailView-0G9qFd4j.js → AgentDetailView-Crk9OdF-.js} +1 -1
  5. package/dist/client/assets/{AgentPermissionPolicyEditor-BM68g7wo.js → AgentPermissionPolicyEditor-BHQ9RPKE.js} +1 -1
  6. package/dist/client/assets/{AgentsView-DkOUZWw4.js → AgentsView-BWOl5J6F.js} +3 -3
  7. package/dist/client/assets/ChatView-BP8-Are_.js +13 -0
  8. package/dist/client/assets/{CommandCenter-DxRSFWNc.js → CommandCenter-C1adapJC.js} +1 -1
  9. package/dist/client/assets/{DevServerView-DO-bqJFE.js → DevServerView-B2wexHCU.js} +1 -1
  10. package/dist/client/assets/{DirectoryPicker-Cp2gddTE.js → DirectoryPicker-C7rzLVyD.js} +1 -1
  11. package/dist/client/assets/{DocumentsView-D0E-3G96.js → DocumentsView-hOjlyCfz.js} +1 -1
  12. package/dist/client/assets/{EvalsView-BoFVq5hw.js → EvalsView-CdAB_4D_.js} +1 -1
  13. package/dist/client/assets/{ExperimentalAgentOnboardingModal-CS1Sdogm.js → ExperimentalAgentOnboardingModal-GEypAOXx.js} +1 -1
  14. package/dist/client/assets/{GoalsView-sybf7JY4.js → GoalsView-DW1qRxeP.js} +1 -1
  15. package/dist/client/assets/{InsightsView-nHa7aShn.js → InsightsView-B5roc0nI.js} +1 -1
  16. package/dist/client/assets/{MemoryView-D0IG44za.js → MemoryView-B0mSfU8f.js} +1 -1
  17. package/dist/client/assets/{PiExtensionsManager-CU76weJe.js → PiExtensionsManager-ps7tZzok.js} +1 -1
  18. package/dist/client/assets/{PluginManager-DyT8XbcG.js → PluginManager-BrsdP_Zs.js} +1 -1
  19. package/dist/client/assets/{PullRequestView-CnxWUSen.js → PullRequestView-CkLoEm3J.js} +1 -1
  20. package/dist/client/assets/{ReportModal-CMrmMQjD.js → ReportModal-BKdSSVii.js} +1 -1
  21. package/dist/client/assets/{ResearchView-BTytQSgy.js → ResearchView-OZW77xd4.js} +1 -1
  22. package/dist/client/assets/{SecretsView-BuSH5J87.js → SecretsView-CawXNPvr.js} +1 -1
  23. package/dist/client/assets/{SessionTerminal-D04kYRrT.js → SessionTerminal-C26iOW6f.js} +1 -1
  24. package/dist/client/assets/{SettingsModal-Dm-ngbRr.js → SettingsModal-BNWlULmc.js} +1 -1
  25. package/dist/client/assets/{SettingsModal-xSLhH7Tr.js → SettingsModal-CfXTMT99.js} +3 -3
  26. package/dist/client/assets/{SettingsTextareaRow-CHPgocEp.js → SettingsTextareaRow-DrXj-rTG.js} +1 -1
  27. package/dist/client/assets/{SetupWizardModal-y88aXNIQ.js → SetupWizardModal-Dk4cldse.js} +2 -2
  28. package/dist/client/assets/{SkillsView-CYyQW1Hv.js → SkillsView-NBEe0Qjt.js} +1 -1
  29. package/dist/client/assets/{WorkflowNodeEditor-hYeoz1X8.js → WorkflowNodeEditor-CZX7Mlum.js} +1 -1
  30. package/dist/client/assets/{agent-import-generation-CjiYXzCr.js → agent-import-generation-TK-wCZBK.js} +1 -1
  31. package/dist/client/assets/{agentsOrgChartLayout-C0UP_X3z.js → agentsOrgChartLayout-BFC39-tw.js} +1 -1
  32. package/dist/client/assets/{architectureDiagram-3BPJPVTR-Dd6GPcqM.js → architectureDiagram-3BPJPVTR-CYHuEL_5.js} +1 -1
  33. package/dist/client/assets/{blockDiagram-GPEHLZMM-CC6pLxlz.js → blockDiagram-GPEHLZMM-BhFoNt44.js} +1 -1
  34. package/dist/client/assets/{c4Diagram-AAUBKEIU-DxMP_l6y.js → c4Diagram-AAUBKEIU-CQorfIRn.js} +1 -1
  35. package/dist/client/assets/channel-DgImfyB5.js +1 -0
  36. package/dist/client/assets/{chunk-2J33WTMH-BKYToL43.js → chunk-2J33WTMH-DLyODy_m.js} +1 -1
  37. package/dist/client/assets/{chunk-4BX2VUAB-Bg6rjQb3.js → chunk-4BX2VUAB-C4ZfqjSh.js} +1 -1
  38. package/dist/client/assets/{chunk-55IACEB6-CPUwbbGa.js → chunk-55IACEB6-CvGg-ubc.js} +1 -1
  39. package/dist/client/assets/{chunk-727SXJPM-DScQBCvv.js → chunk-727SXJPM-jCzUYl5C.js} +1 -1
  40. package/dist/client/assets/{chunk-AQP2D5EJ-DbX7uaXK.js → chunk-AQP2D5EJ-DYLT-tu8.js} +1 -1
  41. package/dist/client/assets/{chunk-FMBD7UC4-DvYKea1c.js → chunk-FMBD7UC4-CCgBBj1Z.js} +1 -1
  42. package/dist/client/assets/{chunk-ND2GUHAM-CH-Tvw7w.js → chunk-ND2GUHAM-BFdFrIja.js} +1 -1
  43. package/dist/client/assets/{chunk-QZHKN3VN-CbyEvOoM.js → chunk-QZHKN3VN-BUTaQ50G.js} +1 -1
  44. package/dist/client/assets/classDiagram-4FO5ZUOK-C3pUNxZS.js +1 -0
  45. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-C3pUNxZS.js +1 -0
  46. package/dist/client/assets/{cose-bilkent-S5V4N54A-BPB5fV3A.js → cose-bilkent-S5V4N54A-DUbNlc_8.js} +1 -1
  47. package/dist/client/assets/{dagre-BM42HDAG-CilYJ3rR.js → dagre-BM42HDAG-Db_33UO6.js} +1 -1
  48. package/dist/client/assets/{dashboard-view-dChSM_So.js → dashboard-view-C3PU63FX.js} +1 -1
  49. package/dist/client/assets/{dashboard-view-DoLU6FxZ.js → dashboard-view-CblIAx4p.js} +1 -1
  50. package/dist/client/assets/{dashboard-view-DnVf3tmI.js → dashboard-view-ZGZ80pF3.js} +1 -1
  51. package/dist/client/assets/{dashboard-view-BnGe8cWo.js → dashboard-view-c3FuWBJb.js} +1 -1
  52. package/dist/client/assets/{diagram-2AECGRRQ-m9u1Qhyx.js → diagram-2AECGRRQ-BCTLM-Gj.js} +1 -1
  53. package/dist/client/assets/{diagram-5GNKFQAL-DVr7Kf0N.js → diagram-5GNKFQAL-CkYPWqJ0.js} +1 -1
  54. package/dist/client/assets/{diagram-KO2AKTUF-D7sgJDFx.js → diagram-KO2AKTUF-7_DJ9TOL.js} +1 -1
  55. package/dist/client/assets/{diagram-LMA3HP47-DNKNDS6r.js → diagram-LMA3HP47-BAkMEapl.js} +1 -1
  56. package/dist/client/assets/{diagram-OG6HWLK6-1Bff4FWn.js → diagram-OG6HWLK6-DbsQHZ0F.js} +1 -1
  57. package/dist/client/assets/{erDiagram-TEJ5UH35-DGua1UHN.js → erDiagram-TEJ5UH35-Bz1kISgV.js} +1 -1
  58. package/dist/client/assets/{flowDiagram-I6XJVG4X-UDfDtwsE.js → flowDiagram-I6XJVG4X-fkBLx_JW.js} +1 -1
  59. package/dist/client/assets/{folder-open-CteOypVk.js → folder-open-l8Z1o786.js} +1 -1
  60. package/dist/client/assets/{ganttDiagram-6RSMTGT7-COdmD328.js → ganttDiagram-6RSMTGT7-BEDb0Uyw.js} +1 -1
  61. package/dist/client/assets/{gitGraphDiagram-PVQCEYII-SUSls7Kw.js → gitGraphDiagram-PVQCEYII-Cen5lgL7.js} +1 -1
  62. package/dist/client/assets/{index-DpCHwyiD.js → index-BnZB0GkD.js} +230 -230
  63. package/dist/client/assets/{index-0ovTXt3t.css → index-CPGSlKrd.css} +1 -1
  64. package/dist/client/assets/{infoDiagram-5YYISTIA-e_DloXj7.js → infoDiagram-5YYISTIA-BHqjYX5-.js} +1 -1
  65. package/dist/client/assets/{ishikawaDiagram-YF4QCWOH-DVWqihXg.js → ishikawaDiagram-YF4QCWOH-6JaCT-0H.js} +1 -1
  66. package/dist/client/assets/{journeyDiagram-JHISSGLW-BcPY-XP0.js → journeyDiagram-JHISSGLW-C_sUwyWW.js} +1 -1
  67. package/dist/client/assets/{kanban-definition-UN3LZRKU-BCFG2Jle.js → kanban-definition-UN3LZRKU-__o8oDEP.js} +1 -1
  68. package/dist/client/assets/{mermaid.core-5yPje9Bi.js → mermaid.core-BwF2BF3U.js} +4 -4
  69. package/dist/client/assets/{mindmap-definition-RKZ34NQL-DDApeT3K.js → mindmap-definition-RKZ34NQL-DMhvCrGK.js} +1 -1
  70. package/dist/client/assets/{pieDiagram-4H26LBE5-N61_jyeP.js → pieDiagram-4H26LBE5-Dk0KKcwv.js} +1 -1
  71. package/dist/client/assets/{puzzle-BkaCP30D.js → puzzle-DcLi6jmv.js} +1 -1
  72. package/dist/client/assets/{quadrantDiagram-W4KKPZXB-C5qHiApF.js → quadrantDiagram-W4KKPZXB-DXcBYGil.js} +1 -1
  73. package/dist/client/assets/{requirementDiagram-4Y6WPE33-C71okgzt.js → requirementDiagram-4Y6WPE33--GXgKHm2.js} +1 -1
  74. package/dist/client/assets/{sankeyDiagram-5OEKKPKP-B2iKyLjB.js → sankeyDiagram-5OEKKPKP-fX5WAFdr.js} +1 -1
  75. package/dist/client/assets/{sequenceDiagram-3UESZ5HK-DfdoYKKk.js → sequenceDiagram-3UESZ5HK-VQOx2wc2.js} +1 -1
  76. package/dist/client/assets/{shield-alert-BNSeDB8l.js → shield-alert-DLW2jAvI.js} +1 -1
  77. package/dist/client/assets/{standing-instructions-template-pZtzo1lK.js → standing-instructions-template-RbXYE69q.js} +1 -1
  78. package/dist/client/assets/{stateDiagram-AJRCARHV-lS-sUi12.js → stateDiagram-AJRCARHV-COZ_NGxp.js} +1 -1
  79. package/dist/client/assets/{stateDiagram-v2-BHNVJYJU-DXJNDrV9.js → stateDiagram-v2-BHNVJYJU-CmgPEZwe.js} +1 -1
  80. package/dist/client/assets/{timeline-definition-PNZ67QCA-CCwvX81K.js → timeline-definition-PNZ67QCA-eJYKjHOn.js} +1 -1
  81. package/dist/client/assets/{upload-CDovVbu2.js → upload-DwRVPojw.js} +1 -1
  82. package/dist/client/assets/{useDiscoveredSkillsCache-BYqP-afh.js → useDiscoveredSkillsCache-DhScYUmX.js} +1 -1
  83. package/dist/client/assets/{users-CTqECGLo.js → users-BrTlKeXP.js} +1 -1
  84. package/dist/client/assets/{vennDiagram-CIIHVFJN-DaiR5nv9.js → vennDiagram-CIIHVFJN-Ddt59BdZ.js} +1 -1
  85. package/dist/client/assets/{wardley-L42UT6IY-hA5IHyPW.js → wardley-L42UT6IY-C4R0wOO2.js} +1 -1
  86. package/dist/client/assets/{wardleyDiagram-YWT4CUSO-CILUNESc.js → wardleyDiagram-YWT4CUSO-BJDm4S7I.js} +1 -1
  87. package/dist/client/assets/{xychartDiagram-2RQKCTM6-72eNMmjz.js → xychartDiagram-2RQKCTM6-DlypQnRH.js} +1 -1
  88. package/dist/client/index.html +2 -2
  89. package/dist/client/version.json +1 -1
  90. package/dist/droid-cli/package.json +1 -1
  91. package/dist/extension.js +55 -2
  92. package/dist/pi-claude-cli/package.json +1 -1
  93. package/dist/plugins/fusion-plugin-acp-runtime/package.json +1 -1
  94. package/dist/plugins/fusion-plugin-claude-runtime/package.json +1 -1
  95. package/dist/plugins/fusion-plugin-cli-printing-press/package.json +1 -1
  96. package/dist/plugins/fusion-plugin-compound-engineering/package.json +1 -1
  97. package/dist/plugins/fusion-plugin-cursor-runtime/package.json +1 -1
  98. package/dist/plugins/fusion-plugin-dependency-graph/package.json +1 -1
  99. package/dist/plugins/fusion-plugin-droid-runtime/package.json +1 -1
  100. package/dist/plugins/fusion-plugin-grok-runtime/package.json +1 -1
  101. package/dist/plugins/fusion-plugin-hermes-runtime/package.json +1 -1
  102. package/dist/plugins/fusion-plugin-linear-import/package.json +1 -1
  103. package/dist/plugins/fusion-plugin-omp-runtime/package.json +1 -1
  104. package/dist/plugins/fusion-plugin-openclaw-runtime/package.json +1 -1
  105. package/dist/plugins/fusion-plugin-paperclip-runtime/package.json +1 -1
  106. package/dist/plugins/fusion-plugin-quality/package.json +1 -1
  107. package/dist/plugins/fusion-plugin-reports/package.json +1 -1
  108. package/dist/plugins/fusion-plugin-roadmap/package.json +1 -1
  109. package/dist/plugins/fusion-plugin-todos/package.json +1 -1
  110. package/dist/plugins/fusion-plugin-whatsapp-chat/package.json +1 -1
  111. package/package.json +1 -1
  112. package/dist/client/assets/ChatView-BPSm2JIH.js +0 -13
  113. package/dist/client/assets/channel-DlCEMoEf.js +0 -1
  114. package/dist/client/assets/classDiagram-4FO5ZUOK-Bc92O8Ks.js +0 -1
  115. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-Bc92O8Ks.js +0 -1
package/dist/bin.js CHANGED
@@ -144506,7 +144506,8 @@ var init_runtime_resolution = __esm({
144506
144506
  const result2 = await createFnAgent2({
144507
144507
  ...agentOptions,
144508
144508
  toolOutputMaxChars,
144509
- mcpServers: normalizeAgentRuntimeMcpServers(mcpServers)
144509
+ mcpServers: normalizeAgentRuntimeMcpServers(mcpServers),
144510
+ __rawPiSession: true
144510
144511
  });
144511
144512
  return {
144512
144513
  ...result2,
@@ -145696,6 +145697,7 @@ var init_agent_session_helpers = __esm({
145696
145697
  init_runtime_resolution();
145697
145698
  init_logger3();
145698
145699
  init_pi();
145700
+ init_pi();
145699
145701
  init_auth_storage();
145700
145702
  init_mock_provider();
145701
145703
  init_cli_provider_routing();
@@ -145703,6 +145705,12 @@ var init_agent_session_helpers = __esm({
145703
145705
  sessionLog = createLogger2("agent-session");
145704
145706
  mockRuntimeSingleton = new MockAgentRuntime();
145705
145707
  RUNTIMES_WITH_INTERNAL_TOOL_GATING = /* @__PURE__ */ new Set(["pi"]);
145708
+ try {
145709
+ registerRoutedAgentSessionFactory?.(
145710
+ createResolvedAgentSession
145711
+ );
145712
+ } catch {
145713
+ }
145706
145714
  }
145707
145715
  });
145708
145716
 
@@ -167249,7 +167257,49 @@ function withMcpPromptOptions(promptOptions, mcpServers) {
167249
167257
  }
167250
167258
  return { mcpServers };
167251
167259
  }
167260
+ function agentPluginRunnerRegistry() {
167261
+ return defaultAgentPluginRunners ??= /* @__PURE__ */ new Map();
167262
+ }
167263
+ function registerRoutedAgentSessionFactory(factory) {
167264
+ routedAgentSessionFactory = factory;
167265
+ }
167266
+ function registerDefaultAgentPluginRunner(rootDir, pluginRunner) {
167267
+ agentPluginRunnerRegistry().set(rootDir, pluginRunner);
167268
+ }
167269
+ function unregisterDefaultAgentPluginRunner(rootDir) {
167270
+ agentPluginRunnerRegistry().delete(rootDir);
167271
+ }
167272
+ function resolveDefaultAgentPluginRunner(cwd) {
167273
+ const registry3 = agentPluginRunnerRegistry();
167274
+ if (registry3.size === 0) return void 0;
167275
+ if (cwd) {
167276
+ let best;
167277
+ for (const [rootDir, runner] of registry3) {
167278
+ if ((cwd === rootDir || cwd.startsWith(`${rootDir}/`)) && (!best || rootDir.length > best.rootDir.length)) {
167279
+ best = { rootDir, runner };
167280
+ }
167281
+ }
167282
+ if (best) return best.runner;
167283
+ }
167284
+ if (registry3.size === 1) {
167285
+ return registry3.values().next().value;
167286
+ }
167287
+ return void 0;
167288
+ }
167252
167289
  async function createFnAgent2(options) {
167290
+ const { __rawPiSession, ...routableOptions } = options;
167291
+ if (!__rawPiSession && routedAgentSessionFactory) {
167292
+ const optionsWithRouting = routableOptions;
167293
+ const pluginRunner = optionsWithRouting.pluginRunner ?? resolveDefaultAgentPluginRunner(routableOptions.cwd);
167294
+ return routedAgentSessionFactory({
167295
+ ...routableOptions,
167296
+ sessionPurpose: routableOptions.sessionPurpose ?? "executor",
167297
+ ...pluginRunner ? { pluginRunner } : {}
167298
+ });
167299
+ }
167300
+ return createPiAgentSessionRaw(routableOptions);
167301
+ }
167302
+ async function createPiAgentSessionRaw(options) {
167253
167303
  piLog.debug(`createFnAgent called (tools=${options.tools}, provider=${options.defaultProvider}, model=${options.defaultModelId})`);
167254
167304
  const requestedMcpServers = options.mcpServers ?? [];
167255
167305
  const forwardedMcpServers = runtimeSupportsMcp("pi", options.defaultProvider) ? requestedMcpServers : [];
@@ -167806,7 +167856,7 @@ async function createFnAgent2(options) {
167806
167856
  settleFallbackDispatch: async () => void 0
167807
167857
  };
167808
167858
  }
167809
- var execAsync, RTK_ACCEPTED_REWRITE_EXIT_CODES, RTK_EXPECTED_PASSTHROUGH_EXIT_CODES, RTK_EXPECTED_FAIL_OPEN_ERROR_CODES, RTK_REWRITE_MAX_BUFFER_BYTES, hostExtensionPaths, FN_MEMORY_APPEND_TOOL_NAME, FUSION_SHUTDOWN_WRAP_FLAG, promptWithFallbackInFlight, COMPACTION_FALLBACK_INSTRUCTIONS, MAX_COMPACTED_PROMPT_MEMORY_CHARS, MAX_COMPACTED_SUBTASK_GUIDANCE_CHARS, MAX_COMPACTED_ATTACHMENTS_CHARS, MAX_COMPACTED_EXISTING_SPEC_CHARS, MAX_COMPACTED_TASK_PROMPT_CHARS, MAX_COMPACTED_USER_COMMENTS_CHARS, ModelFallbackExhaustedError, GATE_BYPASS_TOOL_NAMES, TOOL_OUTPUT_BUDGET_OVERRIDES;
167859
+ var execAsync, RTK_ACCEPTED_REWRITE_EXIT_CODES, RTK_EXPECTED_PASSTHROUGH_EXIT_CODES, RTK_EXPECTED_FAIL_OPEN_ERROR_CODES, RTK_REWRITE_MAX_BUFFER_BYTES, hostExtensionPaths, FN_MEMORY_APPEND_TOOL_NAME, FUSION_SHUTDOWN_WRAP_FLAG, promptWithFallbackInFlight, COMPACTION_FALLBACK_INSTRUCTIONS, MAX_COMPACTED_PROMPT_MEMORY_CHARS, MAX_COMPACTED_SUBTASK_GUIDANCE_CHARS, MAX_COMPACTED_ATTACHMENTS_CHARS, MAX_COMPACTED_EXISTING_SPEC_CHARS, MAX_COMPACTED_TASK_PROMPT_CHARS, MAX_COMPACTED_USER_COMMENTS_CHARS, ModelFallbackExhaustedError, GATE_BYPASS_TOOL_NAMES, TOOL_OUTPUT_BUDGET_OVERRIDES, routedAgentSessionFactory, defaultAgentPluginRunners;
167810
167860
  var init_pi = __esm({
167811
167861
  "../engine/src/pi.ts"() {
167812
167862
  "use strict";
@@ -274280,6 +274330,7 @@ var init_in_process_runtime = __esm({
274280
274330
  "use strict";
274281
274331
  init_src2();
274282
274332
  init_scheduler();
274333
+ init_pi();
274283
274334
  init_executor();
274284
274335
  init_pr_nodes();
274285
274336
  init_src2();
@@ -274536,6 +274587,7 @@ var init_in_process_runtime = __esm({
274536
274587
  rootDir: this.config.workingDirectory
274537
274588
  });
274538
274589
  await this.pluginRunner.init();
274590
+ registerDefaultAgentPluginRunner(this.config.workingDirectory, this.pluginRunner);
274539
274591
  const projectScopedPluginMcpProvider = createProjectScopedPluginMcpProvider2(
274540
274592
  createRuntimePluginMcpProviderOptions({
274541
274593
  hostRootDir: this.config.workingDirectory,
@@ -275421,6 +275473,7 @@ var init_in_process_runtime = __esm({
275421
275473
  );
275422
275474
  }
275423
275475
  if (this.pluginRunner) {
275476
+ unregisterDefaultAgentPluginRunner(this.config.workingDirectory);
275424
275477
  await this.pluginRunner.shutdown();
275425
275478
  runtimeLog.log("PluginRunner shutdown complete");
275426
275479
  }
@@ -294517,6 +294570,8 @@ async function createMissionInterviewAgent(session, rootDir, store, promptOverri
294517
294570
  tools: "readonly",
294518
294571
  mcpServers,
294519
294572
  allowMcpToolsInReadonly: true,
294573
+ // FNXC:MissionInterviewRuntimeResolution 2026-08-16-14:37: forward the plugin runner so the shared seam can route CLI-runtime model selections (cursor/claude/grok/omp/hermes) to their runtime plugins.
294574
+ ...pluginRunner ? { pluginRunner } : {},
294520
294575
  ...skillContext.skillSelectionContext ? { skillSelection: skillContext.skillSelectionContext } : {},
294521
294576
  builtinToolsAllowlist: [...MISSION_INTERVIEW_BUILTIN_WEB_TOOLS],
294522
294577
  customTools: [...createPlanningBoardTools(store)],
@@ -294637,7 +294692,8 @@ async function ensureMissionInterviewAgent(session, rootDir, store, historyForRe
294637
294692
  if (abortSignal.aborted) {
294638
294693
  throw createAbortError3();
294639
294694
  }
294640
- await session.agent.session.prompt(
294695
+ await promptWithFallback(
294696
+ session.agent.session,
294641
294697
  [
294642
294698
  "Previous conversation summary:",
294643
294699
  historySummary,
@@ -294689,7 +294745,7 @@ async function continueAgentConversation2(session, message) {
294689
294745
  if (abortSignal.aborted) {
294690
294746
  throw createAbortError3();
294691
294747
  }
294692
- await agent.session.prompt(message, { signal: abortSignal });
294748
+ await promptWithFallback(agent.session, message, { signal: abortSignal });
294693
294749
  if (abortSignal.aborted) {
294694
294750
  throw createAbortError3();
294695
294751
  }
@@ -294720,7 +294776,8 @@ async function continueAgentConversation2(session, message) {
294720
294776
  if (abortSignal.aborted) {
294721
294777
  throw createAbortError3();
294722
294778
  }
294723
- await agent.session.prompt(
294779
+ await promptWithFallback(
294780
+ agent.session,
294724
294781
  'Your previous response could not be parsed as JSON. Please respond with ONLY a valid JSON object: either {"type":"question","data":{...}} or {"type":"complete","data":{"missionTitle":"...","missionDescription":"...","milestones":[...]}}. No markdown, no explanation, just the JSON.',
294725
294782
  { signal: abortSignal }
294726
294783
  );
@@ -295047,7 +295104,16 @@ var init_mission_interview = __esm({
295047
295104
  init_src5();
295048
295105
  init_planning_board_tools();
295049
295106
  MISSION_INTERVIEW_BUILTIN_WEB_TOOLS = ["WebSearch", "WebFetch"];
295050
- createFnAgent6 = createFnAgent2;
295107
+ createFnAgent6 = async (options) => {
295108
+ const { pluginRunner, runtimeHint, settings, ...runtimeOptions } = options ?? {};
295109
+ return createResolvedAgentSession({
295110
+ sessionPurpose: "executor",
295111
+ ...runtimeHint ? { runtimeHint } : {},
295112
+ ...pluginRunner ? { pluginRunner } : {},
295113
+ ...settings ? { settings } : {},
295114
+ ...runtimeOptions
295115
+ });
295116
+ };
295051
295117
  diagnostics4 = createSessionDiagnostics("mission-interview");
295052
295118
  SESSION_TTL_MS3 = 7 * 24 * 60 * 60 * 1e3;
295053
295119
  CLEANUP_INTERVAL_MS4 = 5 * 60 * 1e3;
@@ -295607,6 +295673,8 @@ async function createTargetInterviewAgent(session, rootDir, store, pluginRunner)
295607
295673
  mcpServers,
295608
295674
  ...laneModelOptions(model),
295609
295675
  allowMcpToolsInReadonly: true,
295676
+ // FNXC:MissionInterviewRuntimeResolution 2026-08-16-14:37: forward the plugin runner so the shared seam can route CLI-runtime model selections to their runtime plugins.
295677
+ ...pluginRunner ? { pluginRunner } : {},
295610
295678
  customTools: [...createPlanningBoardTools(store)],
295611
295679
  /*
295612
295680
  FNXC:InterviewSkills 2026-06-17-21:42:
@@ -295719,7 +295787,8 @@ async function ensureInterviewAgent(session, rootDir, store, historyForReplay, p
295719
295787
  if (abortSignal.aborted) {
295720
295788
  throw createAbortError3();
295721
295789
  }
295722
- await session.agent.session.prompt(
295790
+ await promptWithFallback(
295791
+ session.agent.session,
295723
295792
  [
295724
295793
  "Previous conversation summary:",
295725
295794
  historySummary,
@@ -295781,7 +295850,7 @@ async function continueAgentConversation3(session, message) {
295781
295850
  if (abortSignal.aborted) {
295782
295851
  throw createAbortError3();
295783
295852
  }
295784
- await agent.session.prompt(message, { signal: abortSignal });
295853
+ await promptWithFallback(agent.session, message, { signal: abortSignal });
295785
295854
  if (abortSignal.aborted) {
295786
295855
  throw createAbortError3();
295787
295856
  }
@@ -295812,7 +295881,8 @@ async function continueAgentConversation3(session, message) {
295812
295881
  if (abortSignal.aborted) {
295813
295882
  throw createAbortError3();
295814
295883
  }
295815
- await agent.session.prompt(
295884
+ await promptWithFallback(
295885
+ agent.session,
295816
295886
  'Your previous response could not be parsed as JSON. Please respond with ONLY a valid JSON object: either {"type":"question","data":{...}} or {"type":"complete","data":{"title":"...","description":"...","planningNotes":"...","verification":"..."}}. No markdown, no explanation, just the JSON.',
295817
295887
  { signal: abortSignal }
295818
295888
  );
@@ -296135,7 +296205,16 @@ var init_milestone_slice_interview = __esm({
296135
296205
  init_planning_board_tools();
296136
296206
  init_lane_session_model();
296137
296207
  diagnostics5 = createSessionDiagnostics("milestone-slice-interview");
296138
- createFnAgent7 = createFnAgent2;
296208
+ createFnAgent7 = async (options) => {
296209
+ const { pluginRunner, runtimeHint, settings, ...runtimeOptions } = options ?? {};
296210
+ return createResolvedAgentSession({
296211
+ sessionPurpose: "executor",
296212
+ ...runtimeHint ? { runtimeHint } : {},
296213
+ ...pluginRunner ? { pluginRunner } : {},
296214
+ ...settings ? { settings } : {},
296215
+ ...runtimeOptions
296216
+ });
296217
+ };
296139
296218
  SESSION_TTL_MS4 = 7 * 24 * 60 * 60 * 1e3;
296140
296219
  CLEANUP_INTERVAL_MS5 = 5 * 60 * 1e3;
296141
296220
  MAX_SESSIONS_PER_IP_PER_HOUR3 = 5;