@sema-agent/client-core 0.97.1 → 0.99.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.
Files changed (353) hide show
  1. package/CHANGELOG.md +607 -0
  2. package/README.md +96 -46
  3. package/dist/adapt/arms.d.ts +1 -0
  4. package/dist/adapt/arms.js +188 -53
  5. package/dist/adapt/ids.d.ts +12 -1
  6. package/dist/adapt/ids.js +59 -8
  7. package/dist/adapt/instanceLedger.d.ts +50 -0
  8. package/dist/adapt/instanceLedger.js +147 -0
  9. package/dist/adapt/panelTasks.d.ts +1 -1
  10. package/dist/adapt/panelTasks.js +2 -2
  11. package/dist/adapt/textStream.d.ts +1 -0
  12. package/dist/adapt/textStream.js +24 -7
  13. package/dist/adapt/toolCards.d.ts +27 -5
  14. package/dist/adapt/toolCards.js +39 -6
  15. package/dist/adapt/wireShapes.js +6 -2
  16. package/dist/adapt.d.ts +2 -0
  17. package/dist/adapt.js +8 -3
  18. package/dist/adapter/activeRunSelfHeal.d.ts +9 -3
  19. package/dist/adapter/activeRunSelfHeal.js +205 -313
  20. package/dist/adapter/downstream/eventToSdkMessage.d.ts +2 -5
  21. package/dist/adapter/downstream/eventToSdkMessage.js +77 -36
  22. package/dist/adapter/downstream/terminalToSdkResult.js +11 -4
  23. package/dist/adapter/downstream/turnUsageToModelUsage.d.ts +5 -2
  24. package/dist/adapter/downstream/turnUsageToModelUsage.js +2 -0
  25. package/dist/adapter/runStream.js +79 -48
  26. package/dist/adapter/types.d.ts +4 -4
  27. package/dist/adapter/types.js +2 -1
  28. package/dist/agentSession/backgroundView.js +2 -1
  29. package/dist/agentSession/engineAgentRegistryRead.d.ts +2 -2
  30. package/dist/agentSession/engineAgentRegistryRead.js +12 -13
  31. package/dist/agentSession/engineSessionBackgroundStop.js +16 -8
  32. package/dist/agentsWireCaps.d.ts +8 -11
  33. package/dist/agentsWireCaps.js +196 -194
  34. package/dist/approvalDecidedByCapability.d.ts +0 -4
  35. package/dist/approvalDecidedByCapability.js +0 -6
  36. package/dist/approvalsStreamLiveCapability.d.ts +0 -4
  37. package/dist/approvalsStreamLiveCapability.js +0 -6
  38. package/dist/assistantInbox.d.ts +34 -0
  39. package/dist/assistantInbox.js +118 -0
  40. package/dist/centerWiringCapability.js +9 -1
  41. package/dist/clientSlice.d.ts +0 -9
  42. package/dist/clientSlice.js +0 -3
  43. package/dist/cloudConfigWireCaps.d.ts +5 -3
  44. package/dist/cloudConfigWireCaps.js +106 -64
  45. package/dist/compensations.js +1 -1
  46. package/dist/connectorStatus.d.ts +21 -0
  47. package/dist/connectorStatus.js +112 -0
  48. package/dist/controlRouter.d.ts +18 -3
  49. package/dist/controlRouter.js +106 -67
  50. package/dist/coreValuePorts.d.ts +29 -4
  51. package/dist/coreValuePorts.js +10 -0
  52. package/dist/corruptSessionCopy.d.ts +2 -1
  53. package/dist/corruptSessionCopy.js +3 -3
  54. package/dist/decideReceipt.d.ts +2 -2
  55. package/dist/decideReceipt.js +5 -2
  56. package/dist/declared/supportFloorDeclared.js +3 -3
  57. package/dist/detachWire.js +3 -2
  58. package/dist/deviceExecutorManagementCapability.d.ts +0 -4
  59. package/dist/deviceExecutorManagementCapability.js +0 -6
  60. package/dist/deviceRebind.d.ts +49 -1
  61. package/dist/deviceRebind.js +221 -3
  62. package/dist/devicesFace.d.ts +34 -0
  63. package/dist/devicesFace.js +90 -0
  64. package/dist/displayUntrusted.d.ts +2 -0
  65. package/dist/displayUntrusted.js +253 -76
  66. package/dist/engineAgentAbsence.d.ts +1 -1
  67. package/dist/engineAgentPanelStore.d.ts +12 -4
  68. package/dist/engineAgentPanelStore.js +16 -11
  69. package/dist/engineCapReader.d.ts +2 -5
  70. package/dist/engineCapReader.js +8 -10
  71. package/dist/engineCapsCache.d.ts +12 -0
  72. package/dist/engineCapsCache.js +76 -18
  73. package/dist/engineCapsChange.d.ts +2 -0
  74. package/dist/engineCapsChange.js +9 -0
  75. package/dist/engineClosedSets.d.ts +1 -0
  76. package/dist/engineClosedSets.js +4 -1
  77. package/dist/engineErrorCodes.d.ts +11 -3
  78. package/dist/engineErrorCodes.js +11 -8
  79. package/dist/engineIdentity.d.ts +1 -0
  80. package/dist/engineIdentity.js +8 -0
  81. package/dist/engineRowRef.d.ts +28 -0
  82. package/dist/engineRowRef.js +114 -0
  83. package/dist/engineSessionMessages.d.ts +68 -0
  84. package/dist/engineSessionMessages.js +370 -0
  85. package/dist/engineTargetSeat.d.ts +27 -0
  86. package/dist/engineTargetSeat.js +199 -0
  87. package/dist/engineToolDirectory.d.ts +0 -9
  88. package/dist/engineToolDirectory.js +1 -94
  89. package/dist/engineUrl.d.ts +18 -0
  90. package/dist/engineUrl.js +52 -0
  91. package/dist/engineWireFor.js +3 -8
  92. package/dist/env/uiLanguage.d.ts +11 -1
  93. package/dist/env/uiLanguage.js +38 -2
  94. package/dist/eventLeg.d.ts +100 -0
  95. package/dist/eventLeg.js +305 -0
  96. package/dist/executionLaneCapability.d.ts +0 -4
  97. package/dist/executionLaneCapability.js +3 -16
  98. package/dist/fileHistoryCaptureCapability.d.ts +2 -5
  99. package/dist/fileHistoryCaptureCapability.js +13 -21
  100. package/dist/fileHistoryLegNotice.d.ts +2 -1
  101. package/dist/fileHistoryLegNotice.js +3 -3
  102. package/dist/fleet/fleetLedger.d.ts +0 -3
  103. package/dist/fleet/fleetLedger.js +21 -36
  104. package/dist/fleet/fleetProjection.d.ts +2 -2
  105. package/dist/fleet/fleetProjection.js +10 -8
  106. package/dist/frameBinding.d.ts +8 -0
  107. package/dist/frameBinding.js +35 -0
  108. package/dist/gateFailureCodes.d.ts +2 -0
  109. package/dist/gateFailureCodes.js +15 -0
  110. package/dist/gateOutcome.d.ts +3 -1
  111. package/dist/gateOutcome.js +41 -8
  112. package/dist/gateVocabulary.d.ts +10 -4
  113. package/dist/gateVocabulary.js +107 -47
  114. package/dist/generated/engineAskFaceTables.js +2 -2
  115. package/dist/generated/engineFactTables.d.ts +22 -3
  116. package/dist/generated/engineFactTables.js +51 -4
  117. package/dist/generated/engineNoticeTables.js +18 -3
  118. package/dist/generated/settingsSchemaFns.d.ts +6 -0
  119. package/dist/generated/settingsSchemaFns.js +57 -0
  120. package/dist/generated/settingsSchemaHooksClassifier.d.ts +2 -0
  121. package/dist/generated/settingsSchemaHooksClassifier.js +254 -0
  122. package/dist/generated/settingsSchemaTables.d.ts +1 -0
  123. package/dist/generated/settingsSchemaTables.js +4 -0
  124. package/dist/generated/settingsSchemaTypes.d.ts +105 -0
  125. package/dist/generated/settingsSchemaTypes.js +1 -0
  126. package/dist/generated/toolNameTables.d.ts +1 -0
  127. package/dist/generated/toolNameTables.js +1 -0
  128. package/dist/hitl/allowRuleShadow.d.ts +8 -2
  129. package/dist/hitl/allowRuleShadow.js +36 -29
  130. package/dist/hitl/approvalCardReading.d.ts +15 -0
  131. package/dist/hitl/approvalCardReading.js +154 -0
  132. package/dist/hitl/approvalCardReasons.d.ts +14 -0
  133. package/dist/hitl/approvalCardReasons.js +119 -0
  134. package/dist/hitl/approvalHolds.d.ts +50 -15
  135. package/dist/hitl/approvalHolds.js +177 -27
  136. package/dist/hitl/approvalResolution.d.ts +51 -26
  137. package/dist/hitl/approvalResolution.js +86 -122
  138. package/dist/hitl/approvalsFeed.js +6 -18
  139. package/dist/hitl/askClassPair.d.ts +2 -0
  140. package/dist/hitl/askClassPair.js +17 -0
  141. package/dist/hitl/askGateWire.d.ts +20 -2
  142. package/dist/hitl/askGateWire.js +50 -1
  143. package/dist/hitl/askParkRowRouting.d.ts +5 -0
  144. package/dist/hitl/askParkRowRouting.js +32 -1
  145. package/dist/hitl/askSettlementLine.d.ts +28 -0
  146. package/dist/hitl/askSettlementLine.js +99 -0
  147. package/dist/hitl/automaticAnswerVerdict.d.ts +3 -2
  148. package/dist/hitl/automaticAnswerVerdict.js +29 -13
  149. package/dist/hitl/crashConverged.d.ts +11 -20
  150. package/dist/hitl/crashConverged.js +56 -0
  151. package/dist/hitl/crashConvergedNotice.d.ts +6 -3
  152. package/dist/hitl/crashConvergedNotice.js +48 -24
  153. package/dist/hitl/decisionConflict.js +3 -10
  154. package/dist/hitl/decisionRefusal.d.ts +40 -1
  155. package/dist/hitl/decisionRefusal.js +199 -42
  156. package/dist/hitl/frameRouter.d.ts +5 -2
  157. package/dist/hitl/frameRouter.js +27 -24
  158. package/dist/hitl/gateLedger.d.ts +2 -0
  159. package/dist/hitl/gateLedger.js +50 -13
  160. package/dist/hitl/hitlBridge.d.ts +2 -2
  161. package/dist/hitl/hitlBridge.js +13 -10
  162. package/dist/hitl/livePendingAsk.d.ts +3 -3
  163. package/dist/hitl/livePendingAsk.js +7 -18
  164. package/dist/hitl/parkResolver.d.ts +2 -24
  165. package/dist/hitl/parkResolver.js +61 -97
  166. package/dist/hitl/persistedRulesWire.d.ts +25 -0
  167. package/dist/hitl/persistedRulesWire.js +104 -2
  168. package/dist/hitl/planReviewWire.d.ts +31 -13
  169. package/dist/hitl/planReviewWire.js +120 -78
  170. package/dist/hitl/refusedToolNameProse.d.ts +0 -1
  171. package/dist/hitl/refusedToolNameProse.js +0 -3
  172. package/dist/hitl/replayedApproval.d.ts +4 -3
  173. package/dist/hitl/replayedApproval.js +7 -4
  174. package/dist/hitl/sessionPolicyDeliverable.d.ts +2 -0
  175. package/dist/hitl/sessionPolicyDeliverable.js +48 -7
  176. package/dist/hitl/sessionPolicyWire.d.ts +34 -21
  177. package/dist/hitl/sessionPolicyWire.js +179 -70
  178. package/dist/hitl/standingRows.d.ts +20 -2
  179. package/dist/hitl/standingRows.js +69 -8
  180. package/dist/hitl/suspendedReopen.d.ts +2 -1
  181. package/dist/hitl/suspendedReopen.js +7 -10
  182. package/dist/hitl/toolApprovalWire.d.ts +103 -156
  183. package/dist/hitl/toolApprovalWire.js +661 -411
  184. package/dist/hookMatcherVerdict.d.ts +6 -1
  185. package/dist/hookMatcherVerdict.js +14 -7
  186. package/dist/hooksWireCaps.d.ts +2 -2
  187. package/dist/hooksWireCaps.js +174 -81
  188. package/dist/host.d.ts +21 -0
  189. package/dist/hostTurnSettings.d.ts +71 -0
  190. package/dist/hostTurnSettings.js +291 -0
  191. package/dist/humanTurn.d.ts +14 -1
  192. package/dist/humanTurn.js +100 -12
  193. package/dist/humanTurnRead.d.ts +2 -0
  194. package/dist/humanTurnRead.js +22 -1
  195. package/dist/i18n/messages.en.d.ts +703 -0
  196. package/dist/i18n/messages.en.js +701 -0
  197. package/dist/i18n/messages.zh.d.ts +3 -0
  198. package/dist/i18n/messages.zh.js +837 -0
  199. package/dist/i18n/translate.d.ts +25 -0
  200. package/dist/i18n/translate.js +127 -0
  201. package/dist/index.d.ts +78 -29
  202. package/dist/index.js +54 -18
  203. package/dist/inheritEnvCapability.d.ts +32 -0
  204. package/dist/inheritEnvCapability.js +104 -0
  205. package/dist/inheritEnvWire.d.ts +3 -2
  206. package/dist/inheritEnvWire.js +12 -14
  207. package/dist/interactiveHalt.js +17 -6
  208. package/dist/liveModelCatalog.d.ts +3 -3
  209. package/dist/liveModelCatalog.js +15 -13
  210. package/dist/liveQuestionStore.d.ts +2 -21
  211. package/dist/mcpLiveness.d.ts +2 -1
  212. package/dist/mcpPanel.d.ts +10 -1
  213. package/dist/mcpPanel.js +40 -13
  214. package/dist/mcpProbeCapability.d.ts +2 -1
  215. package/dist/mcpProbeCapability.js +7 -11
  216. package/dist/mcpProbeWire.d.ts +9 -2
  217. package/dist/mcpProbeWire.js +6 -1
  218. package/dist/mcpWireCaps.d.ts +47 -2
  219. package/dist/mcpWireCaps.js +164 -16
  220. package/dist/memoryEntriesWire.d.ts +4 -9
  221. package/dist/memoryEntriesWire.js +5 -10
  222. package/dist/model/modelSupplyRules.d.ts +0 -2
  223. package/dist/model/modelSupplyRules.js +3 -12
  224. package/dist/model/modelsPolicy.d.ts +0 -5
  225. package/dist/model/modelsPolicy.js +6 -36
  226. package/dist/model/onboardJudgement.d.ts +93 -0
  227. package/dist/model/onboardJudgement.js +415 -0
  228. package/dist/model/subagentModelWord.d.ts +31 -0
  229. package/dist/model/subagentModelWord.js +261 -0
  230. package/dist/model/tierVocabulary.d.ts +2 -0
  231. package/dist/model/tierVocabulary.js +17 -5
  232. package/dist/modelCapabilityProbe.d.ts +64 -0
  233. package/dist/modelCapabilityProbe.js +600 -0
  234. package/dist/modelIdentityResolvability.d.ts +3 -0
  235. package/dist/modelIdentityResolvability.js +26 -17
  236. package/dist/notifications.d.ts +6 -0
  237. package/dist/notifications.js +71 -23
  238. package/dist/outputStyleSeatCapability.d.ts +0 -3
  239. package/dist/outputStyleSeatCapability.js +0 -3
  240. package/dist/ownKey.d.ts +22 -0
  241. package/dist/ownKey.js +94 -3
  242. package/dist/panelReduce.d.ts +21 -10
  243. package/dist/panelReduce.js +728 -550
  244. package/dist/panelStateHolder.d.ts +3 -7
  245. package/dist/panelStateHolder.js +14 -130
  246. package/dist/peerLaneCapability.d.ts +0 -4
  247. package/dist/peerLaneCapability.js +0 -6
  248. package/dist/permissionRuleIssue.js +2 -0
  249. package/dist/permissionRulesWriteCapability.d.ts +2 -5
  250. package/dist/permissionRulesWriteCapability.js +8 -12
  251. package/dist/permissionWireCaps.d.ts +2 -2
  252. package/dist/permissionWireCaps.js +2 -0
  253. package/dist/permissionsAllowGrantCapability.d.ts +0 -4
  254. package/dist/permissionsAllowGrantCapability.js +0 -6
  255. package/dist/permissionsDeclaration.d.ts +0 -11
  256. package/dist/permissionsDeclaration.js +60 -53
  257. package/dist/pluginHooksWire.d.ts +46 -3
  258. package/dist/pluginHooksWire.js +219 -16
  259. package/dist/preemptWire.d.ts +44 -0
  260. package/dist/preemptWire.js +83 -0
  261. package/dist/printModelStatus.d.ts +63 -0
  262. package/dist/printModelStatus.js +155 -0
  263. package/dist/printToolResultFrame.js +15 -4
  264. package/dist/replayBody.d.ts +3 -0
  265. package/dist/replayBody.js +14 -0
  266. package/dist/request/taskRequest.d.ts +11 -6
  267. package/dist/request/taskRequest.js +112 -19
  268. package/dist/resumeRefusalCopy.d.ts +13 -9
  269. package/dist/resumeRefusalCopy.js +81 -118
  270. package/dist/retryStatus.d.ts +45 -0
  271. package/dist/retryStatus.js +185 -1
  272. package/dist/rewindArchiveCapability.d.ts +0 -4
  273. package/dist/rewindArchiveCapability.js +2 -10
  274. package/dist/rewindArchiveReading.d.ts +0 -1
  275. package/dist/rewindArchiveReading.js +0 -3
  276. package/dist/runCancelContext.d.ts +2 -1
  277. package/dist/runCancelContext.js +4 -2
  278. package/dist/runReattachPolicy.d.ts +31 -0
  279. package/dist/runReattachPolicy.js +46 -0
  280. package/dist/runTerminal.d.ts +3 -6
  281. package/dist/runTerminal.js +8 -9
  282. package/dist/sandboxWire.d.ts +3 -1
  283. package/dist/sandboxWire.js +76 -27
  284. package/dist/scenarioRefusal.d.ts +9 -0
  285. package/dist/scenarioRefusal.js +111 -0
  286. package/dist/scenarioWire.js +1 -1
  287. package/dist/seam.d.ts +48 -2
  288. package/dist/seam.js +25 -4
  289. package/dist/seatContract.d.ts +311 -18
  290. package/dist/seatContract.js +824 -100
  291. package/dist/selfOrchestrationDenial.js +7 -19
  292. package/dist/sessionIdSegment.d.ts +6 -0
  293. package/dist/sessionIdSegment.js +24 -0
  294. package/dist/sessionMemoryStatus.js +6 -11
  295. package/dist/sessionPolicyCapability.d.ts +2 -5
  296. package/dist/sessionPolicyCapability.js +8 -12
  297. package/dist/sessionSyncFileHistoryCapability.d.ts +0 -3
  298. package/dist/sessionSyncFileHistoryCapability.js +0 -3
  299. package/dist/settingsHooksSalvage.d.ts +44 -0
  300. package/dist/settingsHooksSalvage.js +211 -0
  301. package/dist/skillToolListsCapability.d.ts +2 -4
  302. package/dist/skillToolListsCapability.js +8 -9
  303. package/dist/sqlEngineCapability.d.ts +0 -4
  304. package/dist/sqlEngineCapability.js +0 -6
  305. package/dist/sseIdleTriage.js +3 -2
  306. package/dist/steerPriorityCapability.d.ts +0 -3
  307. package/dist/steerPriorityCapability.js +0 -3
  308. package/dist/streamDrainingLegs.d.ts +4 -0
  309. package/dist/streamDrainingLegs.js +6 -1
  310. package/dist/subagent/engineCompactWire.d.ts +0 -1
  311. package/dist/subagent/engineCompactWire.js +7 -5
  312. package/dist/subagent/engineSubagentResume.js +15 -9
  313. package/dist/subagent/engineTaskHandleWire.js +4 -7
  314. package/dist/subagentContentStore.d.ts +3 -0
  315. package/dist/subagentContentStore.js +22 -10
  316. package/dist/submitReopen.d.ts +24 -0
  317. package/dist/submitReopen.js +75 -0
  318. package/dist/terminalStatuses.d.ts +3 -0
  319. package/dist/terminalStatuses.js +10 -2
  320. package/dist/toolHistoryMismatch.js +3 -2
  321. package/dist/toolResult.d.ts +10 -1
  322. package/dist/toolResult.js +34 -6
  323. package/dist/toolRoster.d.ts +3 -4
  324. package/dist/toolRoster.js +21 -22
  325. package/dist/turnFailurePresentation.d.ts +39 -0
  326. package/dist/turnFailurePresentation.js +402 -0
  327. package/dist/usageAnalytics.js +6 -11
  328. package/dist/userAttachmentEnvelope.d.ts +1 -0
  329. package/dist/userAttachmentEnvelope.js +37 -7
  330. package/dist/userAttachmentSeat.d.ts +21 -0
  331. package/dist/userAttachmentSeat.js +75 -0
  332. package/dist/userInvokedSkillsCapability.d.ts +11 -4
  333. package/dist/userInvokedSkillsCapability.js +31 -10
  334. package/dist/webSearchBackendCapability.d.ts +0 -4
  335. package/dist/webSearchBackendCapability.js +0 -6
  336. package/dist/wireErrorTriage.d.ts +7 -0
  337. package/dist/wireErrorTriage.js +26 -23
  338. package/dist/wireFailureShape.d.ts +62 -5
  339. package/dist/wireFailureShape.js +106 -5
  340. package/dist/wireRefusalCopy.d.ts +25 -3
  341. package/dist/wireRefusalCopy.js +74 -80
  342. package/dist/workflowsJournalCapability.d.ts +2 -5
  343. package/dist/workflowsJournalCapability.js +8 -12
  344. package/dist/writeProtectionCapability.d.ts +0 -4
  345. package/dist/writeProtectionCapability.js +0 -6
  346. package/docs/INTEGRATION-CLIENTS.md +1775 -56
  347. package/package.json +6 -5
  348. package/dist/attachmentSeatCapability.d.ts +0 -12
  349. package/dist/attachmentSeatCapability.js +0 -23
  350. package/dist/hitl/approvalOutcomeNote.d.ts +0 -10
  351. package/dist/hitl/approvalOutcomeNote.js +0 -29
  352. package/dist/sessionReadRedactionCapability.d.ts +0 -13
  353. package/dist/sessionReadRedactionCapability.js +0 -35
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './seam.js';
2
2
  export * from './workflow.js';
3
- export { _resetEngineTaskNotificationForTest, _resetNotificationQueuePortForTest, _setWatcherTimingForTest, _tickWatchOnceForTest, classifyHookFailureFrame, classifyHookNoticeFrame, deriveNotificationResidualLines, dropQueuedNotificationsForRun, enqueueBgChildNotification, enqueueEngineWorkflowNotification, enqueuePlanReviewOutcome, HOOK_NOTICE_WARN_PREFIX, hookNoticeLastCheckText, installBgTaskStatusProbe, installNotificationQueuePort, installWorkflowStatusProbe, isEngineWorkflowNotified, isHookNoticeFrame, isOwnWorkflowRun, isTaskNotificationObjective, isWorkflowCompletionCardEnqueued, listOwnWorkflowRuns, markEngineWorkflowNotified, normalizeTaskNotification, noteOwnWorkflowRun, noteWorkflowCompletionCardEnqueued, notificationDropCounters, notificationQueuePortMisses, outstandingAbandonedCount, outstandingBgTaskPrompt, outstandingDeliverableWorkflowCount, outstandingWorkflowCount, parseTranscriptNotificationSeeds, registerOutstandingBgTask, registerOutstandingWorkflowRun, renderTaskNotificationXml, splitApiErrorSupplement, subscribeOutstandingWorkflows, taskNotificationDedupKey, taskNotificationDedupKeyFromWire, taskNotificationDeliverySupplement, } from './notifications.js';
3
+ export { _resetEngineTaskNotificationForTest, _resetNotificationQueuePortForTest, _setWatcherTimingForTest, _tickWatchOnceForTest, classifyHookFailureFrame, classifyHookNoticeFrame, deriveNotificationResidualLines, dropQueuedNotificationsForRun, enqueueBgChildNotification, enqueueEngineWorkflowNotification, enqueuePlanReviewOutcome, HOOK_NOTICE_WARN_PREFIX, hookNoticeLastCheckText, installBgTaskStatusProbe, installNotificationQueuePort, installWorkflowStatusProbe, isEngineWorkflowNotified, isHookNoticeFrame, isOwnWorkflowRun, isTaskNotificationObjective, isWorkflowCompletionCardEnqueued, listOwnWorkflowRuns, markEngineWorkflowNotified, normalizeTaskNotification, noteOwnWorkflowRun, noteWorkflowCompletionCardEnqueued, notificationDropCounters, notificationQueuePortMisses, outstandingAbandonedCount, outstandingBgTaskPrompt, outstandingDeliverableWorkflowCount, outstandingWorkflowCount, parseTranscriptNotificationSeeds, readTaskNotificationXml, registerOutstandingBgTask, registerOutstandingWorkflowRun, renderTaskNotificationXml, splitApiErrorSupplement, subscribeOutstandingWorkflows, taskNotificationDedupKey, taskNotificationDedupKeyFromWire, taskNotificationDeliverySupplement, } from './notifications.js';
4
4
  export * from './peerFrames.js';
5
5
  export * from './steering.js';
6
6
  export * from './retryStatus.js';
@@ -11,7 +11,11 @@ export * from './adapt/textSegmentAuthority.js';
11
11
  export * from './engineHttpTools.js';
12
12
  export * from './sdkWireTransit.js';
13
13
  export { SEMA_SEGMENT_ID_KEY } from './adapt/textStream.js';
14
- export { __resetSubagentContentStoreConfigForTests, __resetSubagentOwnerLedgerForTests, clearSubagentContent, coerceOutput, configureSubagentContentStore, getBgParentRun, getBgParentRunOwner, getBgTerminalFacts, getSubagentContentSnapshot, isOwnEngineRun, parentToolCallIdOf, planSubagentViewSlots, publishSubagentContentEvent, pushSubagentLocalEcho, recordBgParentRun, recordOwnEngineRun, recordSubagentOwner, recordSubagentOwnerFromProgress, registerSubagentAlias, settleSubagentContent, SUBAGENT_CONTENT_STORE_DEFAULTS, subagentContentStoreConfig, subagentOwnerSessionConflicts, subscribeSubagentContent, } from './subagentContentStore.js';
14
+ export { engineRefOf, sameEngineRef, TRANSCRIPT_ROW_SIDECAR_KEYS } from './engineRowRef.js';
15
+ export { isReplayMarked } from './replayBody.js';
16
+ export { composeEventLeg, EVENT_LEG_KINDS, EVENT_LEG_TABLE, approvalFrameContextOf } from './eventLeg.js';
17
+ export { frameBindingOf, inheritFrameBinding } from './frameBinding.js';
18
+ export { __resetSubagentContentStoreConfigForTests, __resetSubagentOwnerLedgerForTests, clearSubagentContent, coerceOutput, configureSubagentContentStore, getBgParentRun, getBgParentRunOwner, getBgTerminalFacts, getSubagentContentSnapshot, isOwnEngineRun, parentToolCallIdOf, planSubagentViewSlots, publishSubagentContentEvent, pushSubagentLocalEcho, recordBgParentRun, recordOwnEngineRun, recordSubagentOwner, recordSubagentOwnerFromProgress, registerSubagentAlias, settleSubagentContent, SUBAGENT_CONTENT_STORE_DEFAULTS, subagentContentStoreConfig, subagentOwnerSessionConflicts, subscribeSubagentContent, subagentContentEventOf, } from './subagentContentStore.js';
15
19
  export * from './engineAgentPanelStore.js';
16
20
  export * from './engineAgentAbsence.js';
17
21
  export * from './fleetAgentPanelProjection.js';
@@ -19,7 +23,9 @@ export { reducePanelFrame, createPanelReduceState, PANEL_DELTA_OPS } from './pan
19
23
  export { _resetLiveQuestionStore, hasLocalQuestionResponder, hasQuestionOverlay, hasQuestionOverlayFor, onQuestionFrame, onQuestionFrameFor, publishQuestionFrame, publishQuestionFrameFor, registerLocalQuestionResponder, respondToQuestion, setQuestionRespond, } from './liveQuestionStore.js';
20
24
  export * from './engineInlineTaskStats.js';
21
25
  export * from './printToolResultFrame.js';
22
- export { __resetEngineCapsCacheForTests, engineCapState, engineCapString, engineCapsGeneration, engineCapsLandingOf, engineCapsSettled, engineCapTrue, engineCapValue, invalidateEngineCaps, kickEngineCapsProbe, rotateEngineCapsProbe, } from './engineCapsCache.js';
26
+ export * from './printModelStatus.js';
27
+ export { __resetEngineCapsCacheForTests, engineCapNestedValue, engineCapState, engineCapString, engineCapsGeneration, engineCapsLandingOf, engineCapsSettled, engineCapTrue, engineCapValue, invalidateEngineCaps, invalidateEngineCapsAndReprobe, kickEngineCapsProbe, rotateEngineCapsProbe, } from './engineCapsCache.js';
28
+ export { onEngineCapsChange } from './engineCapsChange.js';
23
29
  export * from './sqlEngineCapability.js';
24
30
  export * from './writeProtectionCapability.js';
25
31
  export * from './webSearchBackendCapability.js';
@@ -27,7 +33,7 @@ export * from './executionLaneCapability.js';
27
33
  export * from './approvalsStreamLiveCapability.js';
28
34
  export * from './peerLaneCapability.js';
29
35
  export * from './permissionRulesWriteCapability.js';
30
- export { __resetPermissionsAllowGrantReadingsForTests, noteEngineCapsForPermissionsAllowGrant, observedPermissionsAllowGrant, permissionsAllowGrantAvailable, permissionsAllowGrantDoctorDetail, projectPermissionsAllowGrantCapability, } from './permissionsAllowGrantCapability.js';
36
+ export { observedPermissionsAllowGrant, permissionsAllowGrantAvailable, permissionsAllowGrantDoctorDetail, projectPermissionsAllowGrantCapability, } from './permissionsAllowGrantCapability.js';
31
37
  export * from './sessionPolicyCapability.js';
32
38
  export * from './memoryComplianceCapability.js';
33
39
  export * from './memoryOriginCapability.js';
@@ -56,14 +62,17 @@ export * from './skillToolListsCapability.js';
56
62
  export * from './steerPriorityCapability.js';
57
63
  export * from './permissionModesCapability.js';
58
64
  export * from './approvalDecidedByCapability.js';
59
- export * from './sessionReadRedactionCapability.js';
60
65
  export * from './outputStyleSeatCapability.js';
61
66
  export * from './mcpProbeWire.js';
67
+ export * from './connectorStatus.js';
62
68
  export * from './effectiveFacts.js';
63
69
  export * from './gateOutcome.js';
64
70
  export * from './postureKnob.js';
65
71
  export * from './engineIdentity.js';
66
72
  export { transportFailureScene } from './engineWireFor.js';
73
+ export { engineUrlTransportVerdict, normalizeEngineBaseUrl } from './engineUrl.js';
74
+ export { submitStreamWithBoundedReopen } from './submitReopen.js';
75
+ export { createStreamDrainingLegs } from './streamDrainingLegs.js';
67
76
  export * from './engineConfigDrift.js';
68
77
  export * from './gateVocabulary.js';
69
78
  export * from './permissionRuleIssue.js';
@@ -74,19 +83,21 @@ export * from './modelCapabilityProbe.js';
74
83
  export * from './classifierStatus.js';
75
84
  export * from './engineToolLabelStore.js';
76
85
  export * from './fleetTaskDesc.js';
77
- export { displayUntrusted, displayUntrustedMarks, displayConfiguredUrl, queryCarriesCredential } from './displayUntrusted.js';
86
+ export { displayUntrusted, displayUntrustedMarks, displayConfiguredUrl, queryCarriesCredential, cleanUntrustedScalar } from './displayUntrusted.js';
87
+ export { isDiagnosticValueWord } from './displayUntrusted.js';
78
88
  export * from './hostEnv.js';
79
89
  export * from './unrefTimer.js';
80
90
  export { ControlRouter, ControlSafetyError, errCodes, steerBodyOf, steerRefusalAdviceOf, steeringRefusedBeforeEngine, } from './controlRouter.js';
91
+ export { preemptReceiptLine } from './preemptWire.js';
81
92
  export { readSteerReceipt } from './steerReceipt.js';
82
93
  export * from './sseIdleTriage.js';
83
94
  export * from './engineWireSdk.js';
84
95
  export * from './classifierVerdictWire.js';
85
96
  export { stripSystemReminderBlocks, unwrapSystemReminder } from './systemReminderTag.js';
86
97
  export { findSystemReminderOpenTag } from './systemReminderTag.js';
87
- export { ACTIVE_RUN_BUSY_ERROR_CODE, APPROVAL_EXPIRED, ASK_GONE, asModelFallbackReason, CAPABILITY_IMAGE_INDEX_REQUIRED, CAPABILITY_OPERATOR_PRINCIPALS_REQUIRED, CAPABILITY_SELF_ORCHESTRATION_REQUIRED, CONFIG_AGENT_UNKNOWN_TOOL, CONFIG_DELEGATION_ENTRY_CAPS, CONFIG_IMAGE_INVALID, CONFIG_LEGACY_TOOL_NAME, CONFIG_LIMIT_INVALID, CONFIG_LIMIT_UNKNOWN_KEY, CONFIG_MEMORY_PROJECT_KEY_SPELLING, CONFIG_MEMORY_WRITE_SCOPE_MISMATCH, CONFIG_OUTPUT_STYLE_INVALID, CONFIG_STRATEGY_FIND_LIMIT_INVALID, CONFIG_STRATEGY_MAX_SIZE_INVALID, CONFLICT_IDEMPOTENCY_PAYLOAD_MISMATCH, CORRUPT_SESSION_ERROR_CODE, DECIDE_CLAIM_LOST, DECIDE_GATE_MOVED, DECIDE_NOT_PARKED, DECIDE_PARK_MOVED_CODES, DECIDE_WORKFLOW_HOST_UNKNOWN, DECIDE_WORKFLOW_LANE_CODES, DECIDE_WORKFLOW_PARK_FORKED, DECIDE_WORKFLOW_PARKS_UNREADABLE, DECIDE_WORKFLOW_REMEMBER_UNSUPPORTED, DELEGATION_CAP_CODES, DELEGATION_CONCURRENCY_CAP, DELEGATION_SESSION_CAP, delegationCapDispositionOf, DRAINING_ERROR_CODE, ENGINE_STOP_REASONS, engineStopReasonToCc, ENV_LIFETIME_EXPIRED, FLEET_LEASE_UNAVAILABLE, GATE_PARKED_ERROR_CODE, idempotencyPayloadMismatchContent, imageInvalidFailureNoteOf, isConfigRefusalCode, isCorruptSessionCode, isDecideParkMovedCode, isDelegationCapCode, isIdempotencyPayloadMismatchCode, isInterruptedToolEndCode, isLimitsExceededCode, isRewindFamilyCode, isRulesRefusalCode, isStatusDerivedCoarseCode, isWorkflowParkRefusalCode, LIMITS_MAX_COST_EXCEEDED, LIMITS_MAX_TOKENS_EXCEEDED, LIMITS_MAX_TURNS_EXCEEDED, LIMITS_MAX_WALLTIME_EXCEEDED, MCP_SERVER_REVOKED, MODEL_FALLBACK_INHERIT_NO_TIER_BINDING, operatorGateRefusalContent, OUTPUT_INVALID, PARKED_RESUME_STARTUP_FAILED, REQUEST_AUTONOMY_LANE_REFUSED, RESUME_AT_ERROR_CODE_PREFIX, RESUME_CONTEXT_UNAVAILABLE, RESUME_ENV_FAILED, RESUME_PLACEMENT_MISMATCH, RESUME_POLICY_FOLD_CODE, RESUME_PREFLIGHT_REJECTED, RESUME_REOPEN_CODES, RESUME_RETRY_LATER_CODES, RESUME_TOOL_CONTRACT_MISMATCH, RESUME_TOOL_UNAVAILABLE, RESUME_USAGE_WINDOW_EXHAUSTED, REWIND_ERROR_CODE_PREFIXES, RULES_LEGACY_TOOL_NAME, RUN_DEATH_VERDICT_CODES, RUN_ORPHANED, RUN_STALLED, runDeathVerdictNoteOf, SCENARIO_ASSIGNMENT_UNKNOWN_ERROR_CODE, SCENARIO_NOT_ALLOWED_ERROR_CODE, STATUS_DERIVED_COARSE_CODES, STOP_CONFLICT_CODES, STREAM_MAX_DURATION, TOOL_END_INTERRUPTED_NEVER_STARTED, TOOL_END_INTERRUPTED_OUTCOME_UNKNOWN, USAGE_WINDOW_EXHAUSTED, WORKFLOW_PARK_REFUSAL_CODES, } from './engineErrorCodes.js';
98
+ export { ACTIVE_RUN_BUSY_ERROR_CODE, APPROVAL_EXPIRED, ASK_GONE, asModelFallbackReason, CAPABILITY_IMAGE_INDEX_REQUIRED, CAPABILITY_OPERATOR_PRINCIPALS_REQUIRED, CAPABILITY_SELF_ORCHESTRATION_REQUIRED, CONFIG_AGENT_UNKNOWN_TOOL, CONFIG_DELEGATION_ENTRY_CAPS, CONFIG_IMAGE_INVALID, CONFIG_LEGACY_TOOL_NAME, CONFIG_LIMIT_INVALID, CONFIG_LIMIT_UNKNOWN_KEY, CONFIG_MEMORY_PROJECT_KEY_SPELLING, CONFIG_MEMORY_WRITE_SCOPE_MISMATCH, CONFIG_OUTPUT_STYLE_INVALID, CONFIG_STRATEGY_FIND_LIMIT_INVALID, CONFIG_STRATEGY_MAX_SIZE_INVALID, CONFLICT_IDEMPOTENCY_PAYLOAD_MISMATCH, CORRUPT_SESSION_ERROR_CODE, DECIDE_CLAIM_LOST, DECIDE_GATE_MOVED, DECIDE_NOT_PARKED, DECIDE_PARK_MOVED_CODES, DECIDE_WORKFLOW_HOST_UNKNOWN, DECIDE_WORKFLOW_LANE_CODES, DECIDE_WORKFLOW_PARK_FORKED, DECIDE_WORKFLOW_PARKS_UNREADABLE, DECIDE_WORKFLOW_REMEMBER_UNSUPPORTED, DELEGATION_CAP_CODES, DELEGATION_CONCURRENCY_CAP, DELEGATION_SESSION_CAP, delegationCapDispositionOf, DRAINING_ERROR_CODE, ENGINE_STOP_REASONS, engineStopReasonToCc, ENV_LIFETIME_EXPIRED, FLEET_LEASE_UNAVAILABLE, GATE_PARKED_ERROR_CODE, idempotencyPayloadMismatchContent, imageInvalidFailureNoteOf, isConfigRefusalCode, isCorruptSessionCode, isDecideParkMovedCode, isDelegationCapCode, isIdempotencyPayloadMismatchCode, isInterruptedToolEndCode, isLimitsExceededCode, isRewindFamilyCode, isRulesRefusalCode, isStatusDerivedCoarseCode, isWorkflowParkRefusalCode, LIMITS_MAX_COST_EXCEEDED, LIMITS_MAX_TOKENS_EXCEEDED, LIMITS_MAX_TURNS_EXCEEDED, LIMITS_MAX_WALLTIME_EXCEEDED, MCP_SERVER_REVOKED, MODEL_FALLBACK_INHERIT_NO_TIER_BINDING, operatorGateRefusalContent, OUTPUT_INVALID, PARKED_RESUME_STARTUP_FAILED, REQUEST_AUTONOMY_LANE_REFUSED, RESUME_AT_ERROR_CODE_PREFIX, RESUME_CONTEXT_UNAVAILABLE, RESUME_ENV_FAILED, RESUME_PLACEMENT_MISMATCH, RESUME_POLICY_FOLD_CODE, RESUME_PREFLIGHT_REJECTED, RESUME_REOPEN_CODES, RESUME_RETRY_LATER_CODES, RESUME_TOOL_CONTRACT_MISMATCH, RESUME_TOOL_UNAVAILABLE, RESUME_USAGE_WINDOW_EXHAUSTED, REWIND_ERROR_CODE_PREFIXES, RUN_DEATH_VERDICT_CODES, RUN_ORPHANED, RUN_STALLED, runDeathVerdictNoteOf, SCENARIO_ASSIGNMENT_UNKNOWN_ERROR_CODE, SCENARIO_NOT_ALLOWED_ERROR_CODE, STATUS_DERIVED_COARSE_CODES, STREAM_MAX_DURATION, TOOL_END_INTERRUPTED_NEVER_STARTED, TOOL_END_INTERRUPTED_OUTCOME_UNKNOWN, USAGE_WINDOW_EXHAUSTED, USER_ATTACHMENT_INVALID_ERROR_CODE, USER_INVOKED_SKILL_UNKNOWN_ERROR_CODE, WORKFLOW_PARK_REFUSAL_CODES, } from './engineErrorCodes.js';
88
99
  export * from './agentsWireCaps.js';
89
- export { engineToolDirectoryOf, excludeToolsAgainstDirectory } from './engineToolDirectory.js';
100
+ export { engineToolDirectoryOf } from './engineToolDirectory.js';
90
101
  export * from './attachmentsWireCaps.js';
91
102
  export * from './clientContextWireCaps.js';
92
103
  export * from './cloudConfigWireCaps.js';
@@ -132,6 +143,7 @@ export * from './request/taskRequest.js';
132
143
  export { disableSkillsDeclaration, disableSkillsDeclarationSettled } from './disableSkillsWire.js';
133
144
  export { approvalReachDeclaration, approvalReachDeclarationSettled } from './approvalReachWire.js';
134
145
  export { PERMISSIONS_KEPT_REASONS, WIRE_RULE_TRUST_ORDER, permissionsAllowKeptNotice, permissionsDeclaration, permissionsDeclarationReport } from './permissionsDeclaration.js';
146
+ export { ASSEMBLY_REFUSAL_CAUSES, assemblyRefusalOf } from './wireFailureShape.js';
135
147
  export * from './clientSlice.js';
136
148
  export * from './host.js';
137
149
  export { abortableSleep } from './abortableSleep.js';
@@ -164,6 +176,12 @@ export * from './engineSessionParam.js';
164
176
  export { engineWireTarget, engineWireTargetFor, installEngineWireTarget, installEngineWireTargetFor, } from './engineWireTarget.js';
165
177
  export * from './principalWire.js';
166
178
  export * from './wireErrorTriage.js';
179
+ export { WIRE_FAILURE_UNRENDERABLE_TEXT, wireFailureCoreOf, wireFailureTextsOf } from './wireFailureShape.js';
180
+ export { guardedRead, readOwnDataFiniteNumber, readOwnDataNonEmptyString } from './ownKey.js';
181
+ export { contextUsageReadingOf } from './ownKey.js';
182
+ export { TURN_FAILURE_CATEGORIES, turnFailurePresentation } from './turnFailurePresentation.js';
183
+ export { readSeatTurnFailure, seatTurnFailureOf } from './turnFailurePresentation.js';
184
+ export { REATTACH_BUDGET_FRESH, REATTACH_MAX_TRIES, runReattachPolicy, } from './runReattachPolicy.js';
167
185
  export * from './corruptSession.js';
168
186
  export * from './corruptSessionCopy.js';
169
187
  export { classifyToolHistoryMismatch, readToolHistoryMismatchKey, resolveToolHistoryRewindTarget } from './toolHistoryMismatch.js';
@@ -171,11 +189,14 @@ export { toolHistoryBadTurnSentence } from './toolHistoryBadTurn.js';
171
189
  export { deviceFlowPollingPlan } from './deviceFlowPolling.js';
172
190
  export { createPromptDeliveryLedger, promptKnownUndelivered, withoutUndeliveredPrompts } from './promptDelivery.js';
173
191
  export { mintUserAttachmentEnvelope } from './userAttachmentEnvelope.js';
174
- export { encodeHumanTurn, deliveredUuidsOf } from './humanTurn.js';
175
- export { noteEngineCapsForAttachmentSeat, observedAttachmentSeat, __resetAttachmentSeatReadingsForTests, } from './attachmentSeatCapability.js';
192
+ export { encodeHumanTurn, deliveredUuidsOf, imageSentOnUnknownVision } from './humanTurn.js';
193
+ export { observedUserAttachmentSeat, projectUserAttachmentSeatCapability, userAttachmentSeatAdmits } from './userAttachmentSeat.js';
194
+ export { scenarioRefusalFromError, scenarioRefusalContent } from './scenarioRefusal.js';
195
+ export { projectEngineSessionMessages } from './engineSessionMessages.js';
176
196
  export * from './resumeRefusalCopy.js';
177
197
  export * from './wireRefusalCopy.js';
178
198
  export * from './inheritEnvWire.js';
199
+ export * from './inheritEnvCapability.js';
179
200
  export { SUPPORT_FLOOR, supportFloorOf, engineVersionTier, engineSupportFloorEffective, coreVersionTier } from './supportFloor.js';
180
201
  export * from './decideReceipt.js';
181
202
  export * from './sessionMap.js';
@@ -183,22 +204,26 @@ export * from './detachWire.js';
183
204
  export * from './workflowMonitor.js';
184
205
  export * from './workflowClient.js';
185
206
  export * from './hooksWireCaps.js';
186
- export { ENGINE_FIRED_HOOK_EVENTS, PLUGIN_HOOK_DISPOSITIONS, PLUGIN_HOOK_REASONS, PLUGIN_HOOK_EXCLUSION_REASONS, SETTINGS_HOOK_DROP_REASONS, isEngineFiredHookEvent, pluginHookVerdictOf, pluginHookReasonText, settingsHookDropText, pluginHookExecutorLabel, hooksNotRunNotice, settingsHooksKeptLocally, } from './pluginHooksWire.js';
207
+ export { ENGINE_FIRED_HOOK_EVENTS, PLUGIN_HOOK_DISPOSITIONS, PLUGIN_HOOK_REASONS, PLUGIN_HOOK_EXCLUSION_REASONS, SETTINGS_HOOK_DROP_REASONS, isEngineFiredHookEvent, pluginHookVerdictOf, pluginHookReasonText, settingsHookDropText, pluginHookExecutorLabel, hooksNotRunNotice, settingsHooksKeptLocally, userPromptSubmitExecutorOf, } from './pluginHooksWire.js';
208
+ export { salvageSettingsHooksEntries, settingsHooksSalvageNotice, } from './settingsHooksSalvage.js';
209
+ export { hostSettingsSelfCheck, HostSettingsRefused, HOST_SUPPLIED_KEYS, HOST_SETTING_CAUSES, HOST_SETTING_DISPOSITIONS, } from './hostTurnSettings.js';
187
210
  export { hookToolAliasesOf, canonicalHookToolName } from './hookToolAliases.js';
188
211
  export { hookMatcherVerdict } from './hookMatcherVerdict.js';
189
212
  export { ASK_EVIDENCE_ABSENCE_VALUES, SYSTEM_INJECTION_PRIORITIES } from './engineClosedSets.js';
213
+ export { BUILTIN_SUBAGENT_TYPES } from './engineClosedSets.js';
190
214
  export { READ_DENY_BUILTIN_TIERS, READ_DENY_DEFAULT_TIERS, parseReadDenyBuiltinTiers } from './readDenyTiers.js';
191
215
  export * from './liveInitToolFace.js';
192
216
  export * from './printInitToolFace.js';
193
217
  export * from './model/providerPresets.js';
194
- export { __setDecideTimeoutRetryBudgetForTests, backendDeny, DecideTransportRetryExhaustedError, findPendingForTask, HitlBridge, HitlSafetyError, isPlanReviewModeAfter, makeHitlCanUseTool, PLAN_REVIEW_MODE_AFTER_WORDS, readDecideCurrentPending, readWireErrorCode, } from './hitl/hitlBridge.js';
218
+ export { __setDecideTimeoutRetryBudgetForTests, backendDeny, DecideTransportRetryExhaustedError, findPendingForTask, HitlBridge, HitlSafetyError, isPlanReviewModeAfter, makeHitlCanUseTool, MAX_DENY_REASON_CHARS, PLAN_REVIEW_MODE_AFTER_WORDS, readDecideCurrentPending, readWireErrorCode, } from './hitl/hitlBridge.js';
195
219
  export * from './hitl/suspendedReopen.js';
196
- export * from './hitl/approvalOutcomeNote.js';
197
- export * from './hitl/approvalResolution.js';
220
+ export { APPROVAL_RESOLUTION_LANES, APPROVAL_NOT_SENT_CAUSES, APPROVAL_UNSETTLED_CAUSES, APPROVAL_NOTE_RETRACTED_DETAIL, APPROVAL_NOTE_EDIT_REFUSED_DETAIL, isApprovalDecided, approvalNotSentCause, approvalUnsettledCause, approvalResolutionDetail, } from './hitl/approvalResolution.js';
198
221
  export { ENGINE_ABORT_TOOL_RESULT } from './hitl/frameRouter.js';
199
222
  export { toolEndOutputText } from './toolResultContent.js';
200
- export { _resetHitlHostSurfaceForTest, APPROVAL_PARKING_WARN_TEXT, CANCEL_DENY_BUDGET_MS, CANCEL_DENY_WARN_TEXT, EDIT_NOT_FORWARDED_WARN_TEXT, EDIT_REFUSED_ON_BLIND_ASK_WARN_TEXT, hitlHostSurfaceFor, hitlHostSurfaceMisses, hitlHostSurfaceMissesFor, installHitlHostSurface, installHitlHostSurfaceFor, observeCancelByDeny, REMEMBER_NOT_APPLIED_WARN_TEXT, REPLAYED_APPROVAL_LIST_UNREADABLE_WARN_TEXT, RULE_NOT_SENT_REJECTED_WARN_TEXT, RULE_NOT_SENT_WARN_TEXT, surfaceEditRefusedOnBlindAsk, surfaceForCurrentSession, surfaceRememberNotApplied, } from './hitl/hitlHostSurface.js';
223
+ export { _resetHitlHostSurfaceForTest, APPROVAL_PARKING_WARN_TEXT, approvalParkingNoticeText, CANCEL_DENY_BUDGET_MS, CANCEL_DENY_WARN_TEXT, EDIT_NOT_FORWARDED_WARN_TEXT, EDIT_REFUSED_ON_BLIND_ASK_WARN_TEXT, hitlHostSurfaceFor, hitlHostSurfaceMisses, hitlHostSurfaceMissesFor, installHitlHostSurface, installHitlHostSurfaceFor, observeCancelByDeny, REMEMBER_NOT_APPLIED_WARN_TEXT, REPLAYED_APPROVAL_LIST_UNREADABLE_WARN_TEXT, RULE_NOT_SENT_REJECTED_WARN_TEXT, RULE_NOT_SENT_WARN_TEXT, surfaceEditRefusedOnBlindAsk, surfaceForCurrentSession, surfaceRememberNotApplied, } from './hitl/hitlHostSurface.js';
201
224
  export * from './hitl/toolApprovalWire.js';
225
+ export * from './hitl/approvalCardReading.js';
226
+ export * from './hitl/approvalCardReasons.js';
202
227
  export * from './hitl/editedRuleTextPrecheck.js';
203
228
  export * from './coreValuePorts.js';
204
229
  export { ruleToolNameVerdictOf } from './protocolSegment.js';
@@ -219,9 +244,10 @@ export * from './hitl/approvalsFeed.js';
219
244
  export * from './hitl/livePendingAsk.js';
220
245
  export { replayedApprovalClosesCardFrame, replayedApprovalDisposition, replayedApprovalSentence } from './hitl/replayedApproval.js';
221
246
  export { hasLedgerPositionKey } from './hitl/gateLedger.js';
247
+ export { durableSeqOf } from './hitl/gateLedger.js';
222
248
  export { MODE_ARBITRATION, automaticAnswerVerdict, mandatedApprovalDetailOf, permissionRequestHookScope, } from './hitl/automaticAnswerVerdict.js';
223
- export { standingRowsOf, } from './hitl/standingRows.js';
224
- export { classifyDecisionRefusal, liveAskPendingReading, decisionRefusalClosesOut, undeliverableDecisionContent, decisionRefusalAskReading, } from './hitl/decisionRefusal.js';
249
+ export { standingRowsOf, rememberOfferable, localAllowRuleEnforceable, } from './hitl/standingRows.js';
250
+ export { classifyDecisionRefusal, liveAskPendingReading, decisionRefusalClosesOut, undeliverableDecisionContent, decisionRefusalAskReading, readDecisionRefusalReading, } from './hitl/decisionRefusal.js';
225
251
  export { noAllowCauseOf } from './hitl/noAllowCause.js';
226
252
  export { policyDenyReason } from './hitl/frameRouter.js';
227
253
  export { readApprovalAllowRuleShadow, approvalAllowRuleShadowed, allowRuleShadowSentence, } from './hitl/allowRuleShadow.js';
@@ -229,15 +255,21 @@ export { projectCrashConverged } from './hitl/crashConverged.js';
229
255
  export * from './hitl/crashConvergedNotice.js';
230
256
  export { approvalCompleteParked } from './hitl/approvalCompleteParked.js';
231
257
  export { approvalCompleteCauseOf } from './hitl/approvalEndingCause.js';
258
+ export * from './hitl/askSettlementLine.js';
232
259
  export * from './interactiveHalt.js';
233
260
  export { fireInteractiveInterrupt } from './interactiveInterrupt.js';
234
261
  export { listDevices, readSessionBinding, rebindSession, reconcileRebindOutcome, rebindProvesRequestNotApplied } from './deviceRebind.js';
262
+ export { issueEnrollToken, enrollDevice, revokeDevice, deviceIdentityMismatchOf, deviceIdentityMismatchLine, deviceRegistrationOutcomeLine } from './deviceRebind.js';
235
263
  export { resolveEngineEnvSourcing, engineEnvView } from './engineEnvSourcing.js';
236
264
  export * from './compensations.js';
237
265
  export * from './request/printNotification.js';
238
266
  export * from './seatContract.js';
267
+ export { devicesFaceOf, devicesWritesAllowed, devicesFaceDetail } from './devicesFace.js';
268
+ export { cloudLoginFailureOf, cloudLoginFailureText, engineTargetRefusalText, seatMcpReadingOf, watchEngineTarget } from './engineTargetSeat.js';
269
+ export { keyEnvNameForEntry, onboardBaseUrlProblem, onboardRefusalText, onboardWritePlan, onboardWriteVerdict, poolEntryNameOf, probeModelEndpoint, } from './model/onboardJudgement.js';
239
270
  export * from './agentSession/contract.js';
240
271
  export * from './agentSession/backgroundView.js';
272
+ export { readAssistantInbox } from './assistantInbox.js';
241
273
  export { READ_CREDENTIAL_NOT_ACCEPTED_NOTICE, isReadCredentialRefusal } from './readCredentialRefusal.js';
242
274
  export { readEngineAgentRegistry, isEngineAgentRegistryListingSuperseded } from './agentSession/engineAgentRegistryRead.js';
243
275
  export { stopEngineSessionBackground, engineSessionBackgroundReceiptReadingOf, ENGINE_SESSION_BACKGROUND_RECEIPT_STATES, } from './agentSession/engineSessionBackgroundStop.js';
@@ -247,14 +279,18 @@ export * from './model/catalogLoader.js';
247
279
  export * from './model/providerAuth.js';
248
280
  export * from './model/providerCatalog.js';
249
281
  export * from './model/tierVocabulary.js';
282
+ export { resolveSubagentModelWord, subagentModelWordProblemLine, } from './model/subagentModelWord.js';
250
283
  export * from './model/modelSupplyRules.js';
251
284
  export * from './websearch/searchProviderPresets.js';
252
285
  export * from './env/localeGeo.js';
253
286
  export * from './env/localeTag.js';
254
287
  export * from './env/uiLanguage.js';
288
+ export { EN_MESSAGES } from './i18n/messages.en.js';
289
+ export { ZH_MESSAGES } from './i18n/messages.zh.js';
290
+ export { createMissLedger, createTranslator, DATA_FACE_LANGUAGE, msg, renderMessage, translate, uiMissLedger, } from './i18n/translate.js';
255
291
  export * from './ruleRemovalConsequence.js';
256
292
  export { engineCredentialRequirementOf } from './engineCredentialRequirement.js';
257
293
  export { credentialProvenance, CREDENTIAL_ATTACH_WORDS } from './credentialProvenance.js';
258
- export { isSessionIdPathSegment } from './sessionIdSegment.js';
294
+ export { canonicalSessionIdOf, isSessionIdPathSegment, sessionIdRefusalOf } from './sessionIdSegment.js';
259
295
  export { cutForDisplay, noticePresentationFacts, NOTICE_SEAT_CLASS, noticeSeatClassOf, OUTLET_KINDS, outletReachable, planOutletRendering, NOTICE_FULL_TEXT_CAP, noticePrintLine, } from './noticePresentation.js';
260
296
  export { printPermissionOutcomeOf, PRINT_PERMISSION_OUTCOME_FORMS } from './printPermissionOutcome.js';
@@ -0,0 +1,32 @@
1
+ import { type UiLanguage } from './env/uiLanguage.js';
2
+ import type { RequestLane } from './request/taskRequest.js';
3
+ export type InheritEnvValueShape = 'false' | 'string' | 'number' | 'null' | 'array' | 'object' | 'other';
4
+ export type InheritEnvOwnCredentialsReading = {
5
+ readonly kind: 'confirmed';
6
+ } | {
7
+ readonly kind: 'absent';
8
+ } | {
9
+ readonly kind: 'declined';
10
+ readonly valueShape: InheritEnvValueShape;
11
+ } | {
12
+ readonly kind: 'unreadable';
13
+ } | {
14
+ readonly kind: 'unobserved';
15
+ };
16
+ export declare function observedInheritEnvOwnCredentialsWithheld(baseUrl?: string | undefined): InheritEnvOwnCredentialsReading;
17
+ export type InheritEnvOmitReason = 'lane' | 'project_context' | 'capability_absent' | 'capability_declined' | 'capability_unreadable' | 'identity_unverified';
18
+ export type InheritEnvIntent = {
19
+ readonly send: 'all';
20
+ } | {
21
+ readonly send: 'omit';
22
+ readonly reason: InheritEnvOmitReason;
23
+ };
24
+ export interface InheritEnvIntentInput {
25
+ readonly lane: RequestLane | undefined;
26
+ readonly projectContextConfirmed: boolean;
27
+ readonly ownCredentialsWithheld: InheritEnvOwnCredentialsReading;
28
+ readonly serviceIdentityVerified: boolean;
29
+ }
30
+ export declare function inheritEnvIntentOf(input: InheritEnvIntentInput): InheritEnvIntent;
31
+ export declare function inheritEnvNotConfirmedNotice(lang?: UiLanguage | (string & {})): string;
32
+ export declare function inheritEnvNoticeOf(intent: InheritEnvIntent, lang?: UiLanguage | (string & {})): string | undefined;
@@ -0,0 +1,104 @@
1
+ import { engineCapValue } from './engineCapsCache.js';
2
+ import { isUiLanguage } from './env/uiLanguage.js';
3
+ import { engineWireTarget } from './engineWireTarget.js';
4
+ import { msg, renderMessage } from './i18n/translate.js';
5
+ const OWN_CREDENTIALS_WITHHELD_KEY = 'inherit_env.own_credentials_withheld';
6
+ const CONFIRMED = Object.freeze({ kind: 'confirmed' });
7
+ const ABSENT = Object.freeze({ kind: 'absent' });
8
+ const UNREADABLE = Object.freeze({ kind: 'unreadable' });
9
+ const UNOBSERVED = Object.freeze({ kind: 'unobserved' });
10
+ function shapeOf(v) {
11
+ if (v === false)
12
+ return 'false';
13
+ if (v === null)
14
+ return 'null';
15
+ if (Array.isArray(v))
16
+ return 'array';
17
+ switch (typeof v) {
18
+ case 'string':
19
+ return 'string';
20
+ case 'number':
21
+ return 'number';
22
+ case 'object':
23
+ return 'object';
24
+ default:
25
+ return 'other';
26
+ }
27
+ }
28
+ export function observedInheritEnvOwnCredentialsWithheld(baseUrl = engineWireTarget()?.baseUrl) {
29
+ try {
30
+ const slot = engineCapValue(typeof baseUrl === 'string' ? baseUrl : undefined, OWN_CREDENTIALS_WITHHELD_KEY);
31
+ switch (slot.kind) {
32
+ case 'unobserved':
33
+ return UNOBSERVED;
34
+ case 'not_reported':
35
+ return ABSENT;
36
+ case 'unreadable':
37
+ return UNREADABLE;
38
+ case 'null':
39
+ return Object.freeze({ kind: 'declined', valueShape: 'null' });
40
+ case 'value':
41
+ return slot.value === true ? CONFIRMED : Object.freeze({ kind: 'declined', valueShape: shapeOf(slot.value) });
42
+ }
43
+ }
44
+ catch {
45
+ return UNOBSERVED;
46
+ }
47
+ }
48
+ const ALL = Object.freeze({ send: 'all' });
49
+ const omit = (reason) => Object.freeze({ send: 'omit', reason });
50
+ function fieldOf(input, key) {
51
+ try {
52
+ return input[key];
53
+ }
54
+ catch {
55
+ return undefined;
56
+ }
57
+ }
58
+ function capabilityReasonOf(reading) {
59
+ try {
60
+ if (typeof reading !== 'object' || reading === null)
61
+ return 'capability_unreadable';
62
+ const kind = reading.kind;
63
+ if (kind === 'confirmed')
64
+ return undefined;
65
+ if (kind === 'absent')
66
+ return 'capability_absent';
67
+ if (kind === 'declined')
68
+ return 'capability_declined';
69
+ return 'capability_unreadable';
70
+ }
71
+ catch {
72
+ return 'capability_unreadable';
73
+ }
74
+ }
75
+ export function inheritEnvIntentOf(input) {
76
+ if (typeof input !== 'object' || input === null || Array.isArray(input))
77
+ return omit('lane');
78
+ if (fieldOf(input, 'lane') !== 'interactive')
79
+ return omit('lane');
80
+ if (fieldOf(input, 'projectContextConfirmed') !== true)
81
+ return omit('project_context');
82
+ const cap = capabilityReasonOf(fieldOf(input, 'ownCredentialsWithheld'));
83
+ if (cap !== undefined)
84
+ return omit(cap);
85
+ if (fieldOf(input, 'serviceIdentityVerified') !== true)
86
+ return omit('identity_unverified');
87
+ return ALL;
88
+ }
89
+ export function inheritEnvNotConfirmedNotice(lang) {
90
+ return renderMessage(msg('session.inheritEnv.notConfirmed'), isUiLanguage(lang) ? lang : undefined);
91
+ }
92
+ export function inheritEnvNoticeOf(intent, lang) {
93
+ try {
94
+ if (typeof intent !== 'object' || intent === null || intent.send !== 'omit')
95
+ return undefined;
96
+ const reason = intent.reason;
97
+ return reason === 'capability_absent' || reason === 'capability_declined' || reason === 'capability_unreadable'
98
+ ? inheritEnvNotConfirmedNotice(lang)
99
+ : undefined;
100
+ }
101
+ catch {
102
+ return undefined;
103
+ }
104
+ }
@@ -1,3 +1,4 @@
1
+ import type { UiLanguage } from './env/uiLanguage.js';
1
2
  import { type InheritEnvWord, type TaskRequestLike } from './request/taskRequest.js';
2
3
  export type InheritEnvWithheldCause = 'server_version_unknown';
3
4
  export interface InheritEnvWithheld {
@@ -11,9 +12,9 @@ export interface InheritEnvDeclaration {
11
12
  readonly withheld?: InheritEnvWithheld;
12
13
  }
13
14
  export declare function inheritEnvDeclaration(word: unknown, serverVersion: string | undefined): InheritEnvDeclaration;
14
- export declare function inheritEnvWithheldNotice(withheld: InheritEnvWithheld): string;
15
+ export declare function inheritEnvWithheldNotice(withheld: InheritEnvWithheld, lang?: UiLanguage): string;
15
16
  export interface InheritEnvRefusalDetail {
16
17
  readonly code: string;
17
18
  }
18
19
  export declare function inheritEnvRefusalFromError(err: unknown, sentRequest: TaskRequestLike | undefined): InheritEnvRefusalDetail | null;
19
- export declare function inheritEnvRefusalContent(_detail: InheritEnvRefusalDetail): string;
20
+ export declare function inheritEnvRefusalContent(_detail: InheritEnvRefusalDetail, lang?: UiLanguage): string;
@@ -1,6 +1,8 @@
1
+ import { msg, renderMessage } from './i18n/translate.js';
1
2
  import { INHERIT_ENV_WORDS, isInheritEnvWord } from './request/taskRequest.js';
2
3
  import { settingsPermissionBucketRefusalFromError } from './wireRefusalCopy.js';
3
4
  import { engineVersionTier } from './supportFloor.js';
5
+ import { guardedRead, readOwnDataValue } from './ownKey.js';
4
6
  const EMPTY_DECLARATION = Object.freeze({ field: Object.freeze({}) });
5
7
  export function inheritEnvDeclaration(word, serverVersion) {
6
8
  if (word === undefined || word === null)
@@ -14,12 +16,15 @@ export function inheritEnvDeclaration(word, serverVersion) {
14
16
  }
15
17
  const WITHHELD_NOTICES = Object.freeze({
16
18
  server_version_unknown: Object.freeze({
17
- all: "Not sent with this request: the engine's version is not known yet, and an engine that does not know the setting that lets the shell inherit this machine's whole environment refuses the whole request, so it was held back; this run's shell gets the default environment, with credential-like variables removed, and on an engine that does know the setting, leaving it out also clears an earlier whole-environment choice for this session.",
18
- scrub: "Not sent with this request: the engine's version is not known yet, so the default-environment setting was left out; that has the same effect, because leaving it out also gives this run the default environment (credential-like variables removed).",
19
+ all: 'session.inheritEnv.withheld.all',
20
+ scrub: 'session.inheritEnv.withheld.scrub',
19
21
  }),
20
22
  });
21
- const WITHHELD_UNKNOWN_NOTICE = 'Not sent with this request: the shell-environment setting was held back for a reason this version does not recognize.';
22
- export function inheritEnvWithheldNotice(withheld) {
23
+ const WITHHELD_UNKNOWN_NOTICE = 'session.inheritEnv.withheld.unknown';
24
+ export function inheritEnvWithheldNotice(withheld, lang) {
25
+ return renderMessage(msg(inheritEnvWithheldKey(withheld)), lang);
26
+ }
27
+ function inheritEnvWithheldKey(withheld) {
23
28
  try {
24
29
  if (typeof withheld !== 'object' || withheld === null)
25
30
  return WITHHELD_UNKNOWN_NOTICE;
@@ -37,12 +42,7 @@ const FIELD_INVALID = 'request.field_invalid';
37
42
  function readGuarded(o, key) {
38
43
  if (typeof o !== 'object' || o === null)
39
44
  return undefined;
40
- try {
41
- return o[key];
42
- }
43
- catch {
44
- return undefined;
45
- }
45
+ return guardedRead(() => readOwnDataValue(o, key));
46
46
  }
47
47
  export function inheritEnvRefusalFromError(err, sentRequest) {
48
48
  try {
@@ -58,8 +58,6 @@ export function inheritEnvRefusalFromError(err, sentRequest) {
58
58
  return null;
59
59
  }
60
60
  }
61
- const REFUSAL_NOT_ACCEPTED = 'The engine refused this request as invalid, under a refusal code that many different request fields share · ' +
62
- "This request asked for the shell to inherit this machine's whole environment, which the engine accepts only when tools run directly on its own machine and the request belongs to a session; if that is what it refused, send it again without that setting (or with the default)";
63
- export function inheritEnvRefusalContent(_detail) {
64
- return REFUSAL_NOT_ACCEPTED;
61
+ export function inheritEnvRefusalContent(_detail, lang) {
62
+ return renderMessage(msg('session.inheritEnv.refusal'), lang);
65
63
  }
@@ -3,17 +3,28 @@ export const RUN_LEVEL_STOP_ERROR_CODES = Object.freeze([
3
3
  ]);
4
4
  const RUN_LEVEL_STOP_STATUS = 409;
5
5
  function enginePointsToRunLevelStop(outcome) {
6
- const o = outcome;
7
- return (o?.kind === 'refused' &&
8
- o.status === RUN_LEVEL_STOP_STATUS &&
9
- typeof o.errorCode === 'string' &&
10
- RUN_LEVEL_STOP_ERROR_CODES.includes(o.errorCode));
6
+ const code = ownDataSlot(outcome, 'errorCode');
7
+ return (ownDataSlot(outcome, 'kind') === 'refused' &&
8
+ ownDataSlot(outcome, 'status') === RUN_LEVEL_STOP_STATUS &&
9
+ typeof code === 'string' &&
10
+ RUN_LEVEL_STOP_ERROR_CODES.includes(code));
11
+ }
12
+ function ownDataSlot(o, key) {
13
+ try {
14
+ if (typeof o !== 'object' || o === null)
15
+ return undefined;
16
+ const d = Object.getOwnPropertyDescriptor(o, key);
17
+ return d !== undefined && Object.hasOwn(d, 'value') ? d.value : undefined;
18
+ }
19
+ catch {
20
+ return undefined;
21
+ }
11
22
  }
12
23
  export function planInteractiveHalt(input) {
13
24
  const outcome = input.interruptOutcome;
14
25
  if (outcome === undefined || outcome === null)
15
26
  return { action: 'interrupt', reason: 'first-shot' };
16
- const kind = outcome.kind;
27
+ const kind = ownDataSlot(outcome, 'kind');
17
28
  if (kind === 'halted')
18
29
  return { action: 'none', reason: 'halted' };
19
30
  if (kind === 'refused') {
@@ -1,4 +1,5 @@
1
1
  import type { AgentClient } from '@sema-agent/sdk';
2
+ import type { UiLanguage } from './env/uiLanguage.js';
2
3
  export interface LiveModelInfo {
3
4
  name: string;
4
5
  id?: string;
@@ -15,7 +16,6 @@ export interface LiveModelInfo {
15
16
  }
16
17
  export interface LiveModelCatalog {
17
18
  models: LiveModelInfo[];
18
- default: string;
19
19
  defaultModel?: {
20
20
  readonly id: string;
21
21
  readonly name?: string;
@@ -81,7 +81,7 @@ export type ModelCandidateRejectedReading = {
81
81
  readonly kind: 'unreadable';
82
82
  };
83
83
  export declare function modelCandidateRejectedOf(catalog?: LiveModelCatalog | null): ModelCandidateRejectedReading;
84
- export declare function modelCandidateRejectedContent(reading: ModelCandidateRejectedReading): string | undefined;
84
+ export declare function modelCandidateRejectedContent(reading: ModelCandidateRejectedReading, lang?: UiLanguage): string | undefined;
85
85
  export interface RoutePairingVerdict {
86
86
  verdict: 'ok' | 'broken' | 'unknown';
87
87
  posture?: string;
@@ -94,7 +94,7 @@ export type LiveModelCatalogReading = {
94
94
  readonly defaultModelMalformed?: true;
95
95
  } | {
96
96
  readonly kind: 'unreadable';
97
- readonly why: 'not_an_object' | 'models_not_array' | 'default_missing' | 'unreadable';
97
+ readonly why: 'not_an_object' | 'models_not_array' | 'unreadable';
98
98
  };
99
99
  export declare function readLiveModelCatalog(body: unknown): LiveModelCatalogReading;
100
100
  export type LiveDefaultModelReading = {
@@ -1,4 +1,5 @@
1
1
  import { frozenJsonCopyOf, liveDefaultModelCopy, liveModelRowCopy } from './model/liveCatalogShape.js';
2
+ import { msg, renderMessage } from './i18n/translate.js';
2
3
  let catalog = null;
3
4
  let refresher = null;
4
5
  export function setLiveModelCatalog(next) {
@@ -269,27 +270,32 @@ export function modelCandidateRejectedOf(catalog = getLiveModelCatalog()) {
269
270
  }
270
271
  }
271
272
  const CONFIG_DOMAIN_WORD = /^[a-z][a-z0-9_.-]{0,63}$/;
272
- export function modelCandidateRejectedContent(reading) {
273
+ export function modelCandidateRejectedContent(reading, lang) {
273
274
  try {
274
275
  if (reading === null || typeof reading !== 'object' || reading.kind !== 'rejected')
275
276
  return undefined;
276
277
  const named = reading.domains.filter((w) => CONFIG_DOMAIN_WORD.test(w));
277
278
  const which = named.length > 0 && named.length === reading.domains.length ? ` (${named.join(', ')})` : '';
278
- return `The deployment refused its most recent configuration change${which} and is still running on the configuration before it — models or settings added by that change are not in effect`;
279
+ return renderMessage(msg('model.catalog.candidateRejected', { which }), lang);
279
280
  }
280
281
  catch {
281
282
  return undefined;
282
283
  }
283
284
  }
284
- const ROUTE_PAIRING_OK = new Set(['ok:per-model', 'ok:paired', 'ok:unpinned', 'ok:keyless']);
285
- const ROUTE_PAIRING_BROKEN = new Set(['broken:credential_mismatch', 'broken:credential_missing']);
285
+ const ROUTE_PAIRING_VERDICTS = Object.freeze({
286
+ 'ok:per-model': 'ok',
287
+ 'ok:paired': 'ok',
288
+ 'ok:keyless': 'ok',
289
+ 'broken:credential_mismatch': 'broken',
290
+ 'broken:credential_missing': 'broken',
291
+ 'broken:credential_origin_mismatch': 'broken',
292
+ 'broken:credential_answer_conflict': 'broken',
293
+ });
286
294
  export function routePairingVerdict(v) {
287
295
  if (typeof v !== 'string' || v.length === 0)
288
296
  return { verdict: 'unknown' };
289
- if (ROUTE_PAIRING_OK.has(v))
290
- return { verdict: 'ok', posture: v };
291
- if (ROUTE_PAIRING_BROKEN.has(v))
292
- return { verdict: 'broken', posture: v };
297
+ if (Object.hasOwn(ROUTE_PAIRING_VERDICTS, v))
298
+ return { verdict: ROUTE_PAIRING_VERDICTS[v], posture: v };
293
299
  return { verdict: 'unknown', posture: v };
294
300
  }
295
301
  const unreadableCatalog = (why) => Object.freeze({ kind: 'unreadable', why });
@@ -306,16 +312,12 @@ export function readLiveModelCatalog(body) {
306
312
  if (body === null || typeof body !== 'object' || Array.isArray(body))
307
313
  return unreadableCatalog('not_an_object');
308
314
  const modelsKey = envelopeKey(body, 'models');
309
- const defaultKey = envelopeKey(body, 'default');
310
315
  const defaultModelKey = envelopeKey(body, 'defaultModel');
311
316
  const droppedKey = envelopeKey(body, 'droppedEntries');
312
317
  const candidateKey = envelopeKey(body, 'candidateRejected');
313
318
  const raw = modelsKey.present ? modelsKey.value : undefined;
314
319
  if (!Array.isArray(raw))
315
320
  return unreadableCatalog('models_not_array');
316
- const def = defaultKey.present ? defaultKey.value : undefined;
317
- if (typeof def !== 'string' || def.length === 0)
318
- return unreadableCatalog('default_missing');
319
321
  const n = envelopeKey(raw, 'length');
320
322
  const len = n.present ? n.value : undefined;
321
323
  if (typeof len !== 'number' || !Number.isSafeInteger(len) || len < 0)
@@ -333,7 +335,7 @@ export function readLiveModelCatalog(body) {
333
335
  names.add(row.name);
334
336
  models.push(row);
335
337
  }
336
- const out = { models: Object.freeze(models), default: def };
338
+ const out = { models: Object.freeze(models) };
337
339
  let defaultModelMalformed = false;
338
340
  if (defaultModelKey.present && defaultModelKey.value !== undefined) {
339
341
  const dm = liveDefaultModelCopy(defaultModelKey.value);
@@ -1,23 +1,5 @@
1
- import type { AskAnswer } from './hitl/hitlBridge.js';
2
- export interface AskQuestionOption {
3
- label: string;
4
- description?: string;
5
- }
6
- export interface AskQuestion {
7
- question: string;
8
- header: string;
9
- options: AskQuestionOption[];
10
- multiSelect: boolean;
11
- }
12
- export interface QuestionFrame {
13
- type: 'question' | 'question_complete';
14
- questionId: string;
15
- questions?: AskQuestion[];
16
- outcome?: string;
17
- }
18
- export interface QuestionAnswer {
19
- answers: AskAnswer[];
20
- }
1
+ import type { AskQuestion, AskQuestionOption, QuestionAnswer, QuestionFrame } from '@sema-agent/sdk';
2
+ export type { AskQuestion, AskQuestionOption, QuestionAnswer, QuestionFrame };
21
3
  type QuestionFrameHandler = (frame: QuestionFrame) => void;
22
4
  type RespondFn = (id: string, answer: QuestionAnswer, opts?: {
23
5
  signal?: AbortSignal;
@@ -36,4 +18,3 @@ export declare function respondToQuestion(id: string, answer: QuestionAnswer, op
36
18
  signal?: AbortSignal;
37
19
  }): Promise<unknown>;
38
20
  export declare function _resetLiveQuestionStore(): void;
39
- export {};
@@ -1,5 +1,6 @@
1
+ import type { McpLivenessState } from '@sema-agent/sdk';
1
2
  export declare const MCP_LIVENESS_STATES: readonly ["reachable", "unreachable", "unknown"];
2
- export type McpLivenessState = (typeof MCP_LIVENESS_STATES)[number];
3
+ export type { McpLivenessState };
3
4
  export declare const isMcpLivenessState: (v: unknown) => v is McpLivenessState;
4
5
  export interface McpLivenessView {
5
6
  state: McpLivenessState;