@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.
- package/CHANGELOG.md +607 -0
- package/README.md +96 -46
- package/dist/adapt/arms.d.ts +1 -0
- package/dist/adapt/arms.js +188 -53
- package/dist/adapt/ids.d.ts +12 -1
- package/dist/adapt/ids.js +59 -8
- package/dist/adapt/instanceLedger.d.ts +50 -0
- package/dist/adapt/instanceLedger.js +147 -0
- package/dist/adapt/panelTasks.d.ts +1 -1
- package/dist/adapt/panelTasks.js +2 -2
- package/dist/adapt/textStream.d.ts +1 -0
- package/dist/adapt/textStream.js +24 -7
- package/dist/adapt/toolCards.d.ts +27 -5
- package/dist/adapt/toolCards.js +39 -6
- package/dist/adapt/wireShapes.js +6 -2
- package/dist/adapt.d.ts +2 -0
- package/dist/adapt.js +8 -3
- package/dist/adapter/activeRunSelfHeal.d.ts +9 -3
- package/dist/adapter/activeRunSelfHeal.js +205 -313
- package/dist/adapter/downstream/eventToSdkMessage.d.ts +2 -5
- package/dist/adapter/downstream/eventToSdkMessage.js +77 -36
- package/dist/adapter/downstream/terminalToSdkResult.js +11 -4
- package/dist/adapter/downstream/turnUsageToModelUsage.d.ts +5 -2
- package/dist/adapter/downstream/turnUsageToModelUsage.js +2 -0
- package/dist/adapter/runStream.js +79 -48
- package/dist/adapter/types.d.ts +4 -4
- package/dist/adapter/types.js +2 -1
- package/dist/agentSession/backgroundView.js +2 -1
- package/dist/agentSession/engineAgentRegistryRead.d.ts +2 -2
- package/dist/agentSession/engineAgentRegistryRead.js +12 -13
- package/dist/agentSession/engineSessionBackgroundStop.js +16 -8
- package/dist/agentsWireCaps.d.ts +8 -11
- package/dist/agentsWireCaps.js +196 -194
- package/dist/approvalDecidedByCapability.d.ts +0 -4
- package/dist/approvalDecidedByCapability.js +0 -6
- package/dist/approvalsStreamLiveCapability.d.ts +0 -4
- package/dist/approvalsStreamLiveCapability.js +0 -6
- package/dist/assistantInbox.d.ts +34 -0
- package/dist/assistantInbox.js +118 -0
- package/dist/centerWiringCapability.js +9 -1
- package/dist/clientSlice.d.ts +0 -9
- package/dist/clientSlice.js +0 -3
- package/dist/cloudConfigWireCaps.d.ts +5 -3
- package/dist/cloudConfigWireCaps.js +106 -64
- package/dist/compensations.js +1 -1
- package/dist/connectorStatus.d.ts +21 -0
- package/dist/connectorStatus.js +112 -0
- package/dist/controlRouter.d.ts +18 -3
- package/dist/controlRouter.js +106 -67
- package/dist/coreValuePorts.d.ts +29 -4
- package/dist/coreValuePorts.js +10 -0
- package/dist/corruptSessionCopy.d.ts +2 -1
- package/dist/corruptSessionCopy.js +3 -3
- package/dist/decideReceipt.d.ts +2 -2
- package/dist/decideReceipt.js +5 -2
- package/dist/declared/supportFloorDeclared.js +3 -3
- package/dist/detachWire.js +3 -2
- package/dist/deviceExecutorManagementCapability.d.ts +0 -4
- package/dist/deviceExecutorManagementCapability.js +0 -6
- package/dist/deviceRebind.d.ts +49 -1
- package/dist/deviceRebind.js +221 -3
- package/dist/devicesFace.d.ts +34 -0
- package/dist/devicesFace.js +90 -0
- package/dist/displayUntrusted.d.ts +2 -0
- package/dist/displayUntrusted.js +253 -76
- package/dist/engineAgentAbsence.d.ts +1 -1
- package/dist/engineAgentPanelStore.d.ts +12 -4
- package/dist/engineAgentPanelStore.js +16 -11
- package/dist/engineCapReader.d.ts +2 -5
- package/dist/engineCapReader.js +8 -10
- package/dist/engineCapsCache.d.ts +12 -0
- package/dist/engineCapsCache.js +76 -18
- package/dist/engineCapsChange.d.ts +2 -0
- package/dist/engineCapsChange.js +9 -0
- package/dist/engineClosedSets.d.ts +1 -0
- package/dist/engineClosedSets.js +4 -1
- package/dist/engineErrorCodes.d.ts +11 -3
- package/dist/engineErrorCodes.js +11 -8
- package/dist/engineIdentity.d.ts +1 -0
- package/dist/engineIdentity.js +8 -0
- package/dist/engineRowRef.d.ts +28 -0
- package/dist/engineRowRef.js +114 -0
- package/dist/engineSessionMessages.d.ts +68 -0
- package/dist/engineSessionMessages.js +370 -0
- package/dist/engineTargetSeat.d.ts +27 -0
- package/dist/engineTargetSeat.js +199 -0
- package/dist/engineToolDirectory.d.ts +0 -9
- package/dist/engineToolDirectory.js +1 -94
- package/dist/engineUrl.d.ts +18 -0
- package/dist/engineUrl.js +52 -0
- package/dist/engineWireFor.js +3 -8
- package/dist/env/uiLanguage.d.ts +11 -1
- package/dist/env/uiLanguage.js +38 -2
- package/dist/eventLeg.d.ts +100 -0
- package/dist/eventLeg.js +305 -0
- package/dist/executionLaneCapability.d.ts +0 -4
- package/dist/executionLaneCapability.js +3 -16
- package/dist/fileHistoryCaptureCapability.d.ts +2 -5
- package/dist/fileHistoryCaptureCapability.js +13 -21
- package/dist/fileHistoryLegNotice.d.ts +2 -1
- package/dist/fileHistoryLegNotice.js +3 -3
- package/dist/fleet/fleetLedger.d.ts +0 -3
- package/dist/fleet/fleetLedger.js +21 -36
- package/dist/fleet/fleetProjection.d.ts +2 -2
- package/dist/fleet/fleetProjection.js +10 -8
- package/dist/frameBinding.d.ts +8 -0
- package/dist/frameBinding.js +35 -0
- package/dist/gateFailureCodes.d.ts +2 -0
- package/dist/gateFailureCodes.js +15 -0
- package/dist/gateOutcome.d.ts +3 -1
- package/dist/gateOutcome.js +41 -8
- package/dist/gateVocabulary.d.ts +10 -4
- package/dist/gateVocabulary.js +107 -47
- package/dist/generated/engineAskFaceTables.js +2 -2
- package/dist/generated/engineFactTables.d.ts +22 -3
- package/dist/generated/engineFactTables.js +51 -4
- package/dist/generated/engineNoticeTables.js +18 -3
- package/dist/generated/settingsSchemaFns.d.ts +6 -0
- package/dist/generated/settingsSchemaFns.js +57 -0
- package/dist/generated/settingsSchemaHooksClassifier.d.ts +2 -0
- package/dist/generated/settingsSchemaHooksClassifier.js +254 -0
- package/dist/generated/settingsSchemaTables.d.ts +1 -0
- package/dist/generated/settingsSchemaTables.js +4 -0
- package/dist/generated/settingsSchemaTypes.d.ts +105 -0
- package/dist/generated/settingsSchemaTypes.js +1 -0
- package/dist/generated/toolNameTables.d.ts +1 -0
- package/dist/generated/toolNameTables.js +1 -0
- package/dist/hitl/allowRuleShadow.d.ts +8 -2
- package/dist/hitl/allowRuleShadow.js +36 -29
- package/dist/hitl/approvalCardReading.d.ts +15 -0
- package/dist/hitl/approvalCardReading.js +154 -0
- package/dist/hitl/approvalCardReasons.d.ts +14 -0
- package/dist/hitl/approvalCardReasons.js +119 -0
- package/dist/hitl/approvalHolds.d.ts +50 -15
- package/dist/hitl/approvalHolds.js +177 -27
- package/dist/hitl/approvalResolution.d.ts +51 -26
- package/dist/hitl/approvalResolution.js +86 -122
- package/dist/hitl/approvalsFeed.js +6 -18
- package/dist/hitl/askClassPair.d.ts +2 -0
- package/dist/hitl/askClassPair.js +17 -0
- package/dist/hitl/askGateWire.d.ts +20 -2
- package/dist/hitl/askGateWire.js +50 -1
- package/dist/hitl/askParkRowRouting.d.ts +5 -0
- package/dist/hitl/askParkRowRouting.js +32 -1
- package/dist/hitl/askSettlementLine.d.ts +28 -0
- package/dist/hitl/askSettlementLine.js +99 -0
- package/dist/hitl/automaticAnswerVerdict.d.ts +3 -2
- package/dist/hitl/automaticAnswerVerdict.js +29 -13
- package/dist/hitl/crashConverged.d.ts +11 -20
- package/dist/hitl/crashConverged.js +56 -0
- package/dist/hitl/crashConvergedNotice.d.ts +6 -3
- package/dist/hitl/crashConvergedNotice.js +48 -24
- package/dist/hitl/decisionConflict.js +3 -10
- package/dist/hitl/decisionRefusal.d.ts +40 -1
- package/dist/hitl/decisionRefusal.js +199 -42
- package/dist/hitl/frameRouter.d.ts +5 -2
- package/dist/hitl/frameRouter.js +27 -24
- package/dist/hitl/gateLedger.d.ts +2 -0
- package/dist/hitl/gateLedger.js +50 -13
- package/dist/hitl/hitlBridge.d.ts +2 -2
- package/dist/hitl/hitlBridge.js +13 -10
- package/dist/hitl/livePendingAsk.d.ts +3 -3
- package/dist/hitl/livePendingAsk.js +7 -18
- package/dist/hitl/parkResolver.d.ts +2 -24
- package/dist/hitl/parkResolver.js +61 -97
- package/dist/hitl/persistedRulesWire.d.ts +25 -0
- package/dist/hitl/persistedRulesWire.js +104 -2
- package/dist/hitl/planReviewWire.d.ts +31 -13
- package/dist/hitl/planReviewWire.js +120 -78
- package/dist/hitl/refusedToolNameProse.d.ts +0 -1
- package/dist/hitl/refusedToolNameProse.js +0 -3
- package/dist/hitl/replayedApproval.d.ts +4 -3
- package/dist/hitl/replayedApproval.js +7 -4
- package/dist/hitl/sessionPolicyDeliverable.d.ts +2 -0
- package/dist/hitl/sessionPolicyDeliverable.js +48 -7
- package/dist/hitl/sessionPolicyWire.d.ts +34 -21
- package/dist/hitl/sessionPolicyWire.js +179 -70
- package/dist/hitl/standingRows.d.ts +20 -2
- package/dist/hitl/standingRows.js +69 -8
- package/dist/hitl/suspendedReopen.d.ts +2 -1
- package/dist/hitl/suspendedReopen.js +7 -10
- package/dist/hitl/toolApprovalWire.d.ts +103 -156
- package/dist/hitl/toolApprovalWire.js +661 -411
- package/dist/hookMatcherVerdict.d.ts +6 -1
- package/dist/hookMatcherVerdict.js +14 -7
- package/dist/hooksWireCaps.d.ts +2 -2
- package/dist/hooksWireCaps.js +174 -81
- package/dist/host.d.ts +21 -0
- package/dist/hostTurnSettings.d.ts +71 -0
- package/dist/hostTurnSettings.js +291 -0
- package/dist/humanTurn.d.ts +14 -1
- package/dist/humanTurn.js +100 -12
- package/dist/humanTurnRead.d.ts +2 -0
- package/dist/humanTurnRead.js +22 -1
- package/dist/i18n/messages.en.d.ts +703 -0
- package/dist/i18n/messages.en.js +701 -0
- package/dist/i18n/messages.zh.d.ts +3 -0
- package/dist/i18n/messages.zh.js +837 -0
- package/dist/i18n/translate.d.ts +25 -0
- package/dist/i18n/translate.js +127 -0
- package/dist/index.d.ts +78 -29
- package/dist/index.js +54 -18
- package/dist/inheritEnvCapability.d.ts +32 -0
- package/dist/inheritEnvCapability.js +104 -0
- package/dist/inheritEnvWire.d.ts +3 -2
- package/dist/inheritEnvWire.js +12 -14
- package/dist/interactiveHalt.js +17 -6
- package/dist/liveModelCatalog.d.ts +3 -3
- package/dist/liveModelCatalog.js +15 -13
- package/dist/liveQuestionStore.d.ts +2 -21
- package/dist/mcpLiveness.d.ts +2 -1
- package/dist/mcpPanel.d.ts +10 -1
- package/dist/mcpPanel.js +40 -13
- package/dist/mcpProbeCapability.d.ts +2 -1
- package/dist/mcpProbeCapability.js +7 -11
- package/dist/mcpProbeWire.d.ts +9 -2
- package/dist/mcpProbeWire.js +6 -1
- package/dist/mcpWireCaps.d.ts +47 -2
- package/dist/mcpWireCaps.js +164 -16
- package/dist/memoryEntriesWire.d.ts +4 -9
- package/dist/memoryEntriesWire.js +5 -10
- package/dist/model/modelSupplyRules.d.ts +0 -2
- package/dist/model/modelSupplyRules.js +3 -12
- package/dist/model/modelsPolicy.d.ts +0 -5
- package/dist/model/modelsPolicy.js +6 -36
- package/dist/model/onboardJudgement.d.ts +93 -0
- package/dist/model/onboardJudgement.js +415 -0
- package/dist/model/subagentModelWord.d.ts +31 -0
- package/dist/model/subagentModelWord.js +261 -0
- package/dist/model/tierVocabulary.d.ts +2 -0
- package/dist/model/tierVocabulary.js +17 -5
- package/dist/modelCapabilityProbe.d.ts +64 -0
- package/dist/modelCapabilityProbe.js +600 -0
- package/dist/modelIdentityResolvability.d.ts +3 -0
- package/dist/modelIdentityResolvability.js +26 -17
- package/dist/notifications.d.ts +6 -0
- package/dist/notifications.js +71 -23
- package/dist/outputStyleSeatCapability.d.ts +0 -3
- package/dist/outputStyleSeatCapability.js +0 -3
- package/dist/ownKey.d.ts +22 -0
- package/dist/ownKey.js +94 -3
- package/dist/panelReduce.d.ts +21 -10
- package/dist/panelReduce.js +728 -550
- package/dist/panelStateHolder.d.ts +3 -7
- package/dist/panelStateHolder.js +14 -130
- package/dist/peerLaneCapability.d.ts +0 -4
- package/dist/peerLaneCapability.js +0 -6
- package/dist/permissionRuleIssue.js +2 -0
- package/dist/permissionRulesWriteCapability.d.ts +2 -5
- package/dist/permissionRulesWriteCapability.js +8 -12
- package/dist/permissionWireCaps.d.ts +2 -2
- package/dist/permissionWireCaps.js +2 -0
- package/dist/permissionsAllowGrantCapability.d.ts +0 -4
- package/dist/permissionsAllowGrantCapability.js +0 -6
- package/dist/permissionsDeclaration.d.ts +0 -11
- package/dist/permissionsDeclaration.js +60 -53
- package/dist/pluginHooksWire.d.ts +46 -3
- package/dist/pluginHooksWire.js +219 -16
- package/dist/preemptWire.d.ts +44 -0
- package/dist/preemptWire.js +83 -0
- package/dist/printModelStatus.d.ts +63 -0
- package/dist/printModelStatus.js +155 -0
- package/dist/printToolResultFrame.js +15 -4
- package/dist/replayBody.d.ts +3 -0
- package/dist/replayBody.js +14 -0
- package/dist/request/taskRequest.d.ts +11 -6
- package/dist/request/taskRequest.js +112 -19
- package/dist/resumeRefusalCopy.d.ts +13 -9
- package/dist/resumeRefusalCopy.js +81 -118
- package/dist/retryStatus.d.ts +45 -0
- package/dist/retryStatus.js +185 -1
- package/dist/rewindArchiveCapability.d.ts +0 -4
- package/dist/rewindArchiveCapability.js +2 -10
- package/dist/rewindArchiveReading.d.ts +0 -1
- package/dist/rewindArchiveReading.js +0 -3
- package/dist/runCancelContext.d.ts +2 -1
- package/dist/runCancelContext.js +4 -2
- package/dist/runReattachPolicy.d.ts +31 -0
- package/dist/runReattachPolicy.js +46 -0
- package/dist/runTerminal.d.ts +3 -6
- package/dist/runTerminal.js +8 -9
- package/dist/sandboxWire.d.ts +3 -1
- package/dist/sandboxWire.js +76 -27
- package/dist/scenarioRefusal.d.ts +9 -0
- package/dist/scenarioRefusal.js +111 -0
- package/dist/scenarioWire.js +1 -1
- package/dist/seam.d.ts +48 -2
- package/dist/seam.js +25 -4
- package/dist/seatContract.d.ts +311 -18
- package/dist/seatContract.js +824 -100
- package/dist/selfOrchestrationDenial.js +7 -19
- package/dist/sessionIdSegment.d.ts +6 -0
- package/dist/sessionIdSegment.js +24 -0
- package/dist/sessionMemoryStatus.js +6 -11
- package/dist/sessionPolicyCapability.d.ts +2 -5
- package/dist/sessionPolicyCapability.js +8 -12
- package/dist/sessionSyncFileHistoryCapability.d.ts +0 -3
- package/dist/sessionSyncFileHistoryCapability.js +0 -3
- package/dist/settingsHooksSalvage.d.ts +44 -0
- package/dist/settingsHooksSalvage.js +211 -0
- package/dist/skillToolListsCapability.d.ts +2 -4
- package/dist/skillToolListsCapability.js +8 -9
- package/dist/sqlEngineCapability.d.ts +0 -4
- package/dist/sqlEngineCapability.js +0 -6
- package/dist/sseIdleTriage.js +3 -2
- package/dist/steerPriorityCapability.d.ts +0 -3
- package/dist/steerPriorityCapability.js +0 -3
- package/dist/streamDrainingLegs.d.ts +4 -0
- package/dist/streamDrainingLegs.js +6 -1
- package/dist/subagent/engineCompactWire.d.ts +0 -1
- package/dist/subagent/engineCompactWire.js +7 -5
- package/dist/subagent/engineSubagentResume.js +15 -9
- package/dist/subagent/engineTaskHandleWire.js +4 -7
- package/dist/subagentContentStore.d.ts +3 -0
- package/dist/subagentContentStore.js +22 -10
- package/dist/submitReopen.d.ts +24 -0
- package/dist/submitReopen.js +75 -0
- package/dist/terminalStatuses.d.ts +3 -0
- package/dist/terminalStatuses.js +10 -2
- package/dist/toolHistoryMismatch.js +3 -2
- package/dist/toolResult.d.ts +10 -1
- package/dist/toolResult.js +34 -6
- package/dist/toolRoster.d.ts +3 -4
- package/dist/toolRoster.js +21 -22
- package/dist/turnFailurePresentation.d.ts +39 -0
- package/dist/turnFailurePresentation.js +402 -0
- package/dist/usageAnalytics.js +6 -11
- package/dist/userAttachmentEnvelope.d.ts +1 -0
- package/dist/userAttachmentEnvelope.js +37 -7
- package/dist/userAttachmentSeat.d.ts +21 -0
- package/dist/userAttachmentSeat.js +75 -0
- package/dist/userInvokedSkillsCapability.d.ts +11 -4
- package/dist/userInvokedSkillsCapability.js +31 -10
- package/dist/webSearchBackendCapability.d.ts +0 -4
- package/dist/webSearchBackendCapability.js +0 -6
- package/dist/wireErrorTriage.d.ts +7 -0
- package/dist/wireErrorTriage.js +26 -23
- package/dist/wireFailureShape.d.ts +62 -5
- package/dist/wireFailureShape.js +106 -5
- package/dist/wireRefusalCopy.d.ts +25 -3
- package/dist/wireRefusalCopy.js +74 -80
- package/dist/workflowsJournalCapability.d.ts +2 -5
- package/dist/workflowsJournalCapability.js +8 -12
- package/dist/writeProtectionCapability.d.ts +0 -4
- package/dist/writeProtectionCapability.js +0 -6
- package/docs/INTEGRATION-CLIENTS.md +1775 -56
- package/package.json +6 -5
- package/dist/attachmentSeatCapability.d.ts +0 -12
- package/dist/attachmentSeatCapability.js +0 -23
- package/dist/hitl/approvalOutcomeNote.d.ts +0 -10
- package/dist/hitl/approvalOutcomeNote.js +0 -29
- package/dist/sessionReadRedactionCapability.d.ts +0 -13
- 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 {
|
|
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
|
|
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 {
|
|
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,
|
|
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
|
|
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 {
|
|
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
|
|
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
|
+
}
|
package/dist/inheritEnvWire.d.ts
CHANGED
|
@@ -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;
|
package/dist/inheritEnvWire.js
CHANGED
|
@@ -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:
|
|
18
|
-
scrub:
|
|
19
|
+
all: 'session.inheritEnv.withheld.all',
|
|
20
|
+
scrub: 'session.inheritEnv.withheld.scrub',
|
|
19
21
|
}),
|
|
20
22
|
});
|
|
21
|
-
const WITHHELD_UNKNOWN_NOTICE = '
|
|
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
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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
|
}
|
package/dist/interactiveHalt.js
CHANGED
|
@@ -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
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
typeof
|
|
10
|
-
RUN_LEVEL_STOP_ERROR_CODES.includes(
|
|
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
|
|
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' | '
|
|
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 = {
|
package/dist/liveModelCatalog.js
CHANGED
|
@@ -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
|
|
279
|
+
return renderMessage(msg('model.catalog.candidateRejected', { which }), lang);
|
|
279
280
|
}
|
|
280
281
|
catch {
|
|
281
282
|
return undefined;
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
-
|
|
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 (
|
|
290
|
-
return { verdict:
|
|
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)
|
|
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 {
|
|
2
|
-
export
|
|
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 {};
|
package/dist/mcpLiveness.d.ts
CHANGED
|
@@ -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
|
|
3
|
+
export type { McpLivenessState };
|
|
3
4
|
export declare const isMcpLivenessState: (v: unknown) => v is McpLivenessState;
|
|
4
5
|
export interface McpLivenessView {
|
|
5
6
|
state: McpLivenessState;
|