@sema-agent/client-core 0.95.0 → 0.96.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 +180 -0
- package/README.md +49 -25
- package/dist/adapt/arms.js +7 -1
- package/dist/adapt/toolCards.d.ts +1 -0
- package/dist/adapt/toolCards.js +16 -3
- package/dist/adapt/wireShapes.js +2 -16
- package/dist/adapter/activeRunSelfHeal.d.ts +4 -0
- package/dist/adapter/activeRunSelfHeal.js +30 -4
- package/dist/adapter/downstream/eventToSdkMessage.js +11 -3
- package/dist/adapter/downstream/terminalToSdkResult.js +8 -9
- package/dist/adapter/runStream.js +30 -47
- package/dist/agentSession/engineAgentRegistryRead.js +5 -4
- package/dist/agentSession/engineSessionBackgroundStop.js +22 -15
- package/dist/agentsWireCaps.js +13 -2
- package/dist/callerCwdCapability.d.ts +0 -4
- package/dist/callerCwdCapability.js +0 -6
- package/dist/centerWiringCapability.d.ts +0 -4
- package/dist/centerWiringCapability.js +0 -6
- package/dist/classifierVerdictWire.js +4 -16
- package/dist/clientSlice.js +1 -1
- package/dist/cloudConfigWireCaps.d.ts +3 -3
- package/dist/cloudConfigWireCaps.js +65 -45
- package/dist/coreValuePorts.d.ts +11 -7
- package/dist/coreValuePorts.js +5 -8
- package/dist/credentialProvenance.d.ts +28 -0
- package/dist/credentialProvenance.js +76 -0
- package/dist/decideFailureNote.js +3 -1
- package/dist/decideReceipt.js +7 -10
- package/dist/declared/supportFloorDeclared.js +3 -3
- package/dist/displayUntrusted.d.ts +7 -3
- package/dist/displayUntrusted.js +356 -60
- package/dist/engineCapsCache.d.ts +6 -0
- package/dist/engineCapsCache.js +226 -32
- package/dist/engineDirectory.d.ts +79 -0
- package/dist/engineDirectory.js +186 -0
- package/dist/engineErrorCodes.d.ts +14 -1
- package/dist/engineErrorCodes.js +37 -15
- package/dist/engineNoticeCodes.d.ts +17 -0
- package/dist/engineNoticeCodes.js +57 -3
- package/dist/engineWordRenames.d.ts +8 -0
- package/dist/engineWordRenames.js +13 -0
- package/dist/fileHistoryCaptureCapability.d.ts +14 -0
- package/dist/fileHistoryCaptureCapability.js +70 -0
- package/dist/fleet/bgSubagentRow.d.ts +15 -0
- package/dist/fleet/bgSubagentRow.js +67 -0
- package/dist/fleet/fleetLedger.d.ts +1 -0
- package/dist/fleet/fleetLedger.js +103 -89
- package/dist/fleet/fleetProjection.d.ts +1 -0
- package/dist/fleet/fleetProjection.js +10 -3
- package/dist/fleetTaskDesc.js +4 -17
- package/dist/gateOutcome.d.ts +12 -1
- package/dist/gateOutcome.js +58 -1
- package/dist/gateVocabulary.d.ts +7 -2
- package/dist/gateVocabulary.js +5 -1
- package/dist/generated/engineAskFaceTables.js +1 -1
- package/dist/generated/engineFactTables.d.ts +5 -3
- package/dist/generated/engineFactTables.js +17 -4
- package/dist/generated/engineNoticeTables.js +12 -3
- package/dist/generated/settingsSchemaFns.d.ts +3 -0
- package/dist/generated/settingsSchemaFns.js +53 -0
- package/dist/generated/toolNameTables.d.ts +1 -0
- package/dist/generated/toolNameTables.js +1 -0
- package/dist/hitl/approvalEndingCause.d.ts +2 -0
- package/dist/hitl/approvalEndingCause.js +31 -21
- package/dist/hitl/askParkRowRouting.js +1 -1
- package/dist/hitl/automaticAnswerVerdict.d.ts +1 -1
- package/dist/hitl/automaticAnswerVerdict.js +13 -8
- package/dist/hitl/decisionConflict.js +0 -2
- package/dist/hitl/decisionRefusal.d.ts +8 -0
- package/dist/hitl/decisionRefusal.js +48 -14
- package/dist/hitl/frameRouter.d.ts +0 -1
- package/dist/hitl/frameRouter.js +6 -14
- package/dist/hitl/hitlBridge.d.ts +6 -2
- package/dist/hitl/hitlBridge.js +28 -7
- package/dist/hitl/localAllowRule.d.ts +1 -0
- package/dist/hitl/localAllowRule.js +2 -2
- package/dist/hitl/noAllowCause.d.ts +2 -1
- package/dist/hitl/noAllowCause.js +3 -2
- package/dist/hitl/parkResolver.d.ts +1 -0
- package/dist/hitl/parkResolver.js +8 -54
- package/dist/hitl/parkRowBirthWait.d.ts +1 -0
- package/dist/hitl/parkRowBirthWait.js +2 -2
- package/dist/hitl/planReviewWire.d.ts +1 -0
- package/dist/hitl/planReviewWire.js +98 -20
- package/dist/hitl/replayedApproval.d.ts +1 -0
- package/dist/hitl/replayedApproval.js +14 -0
- package/dist/hitl/sessionPolicyDeliverable.js +8 -6
- package/dist/hitl/standingRows.d.ts +18 -0
- package/dist/hitl/standingRows.js +127 -0
- package/dist/hitl/toolApprovalWire.d.ts +15 -3
- package/dist/hitl/toolApprovalWire.js +238 -25
- package/dist/hookMatcherVerdict.d.ts +1 -9
- package/dist/hookMatcherVerdict.js +21 -61
- package/dist/hooksWireCaps.js +2 -2
- package/dist/hostCallbackGuard.d.ts +1 -0
- package/dist/hostCallbackGuard.js +6 -0
- package/dist/index.d.ts +21 -9
- package/dist/index.js +17 -8
- package/dist/mcpProbeCapability.d.ts +0 -4
- package/dist/mcpProbeCapability.js +0 -6
- package/dist/memoryComplianceCapability.d.ts +0 -4
- package/dist/memoryComplianceCapability.js +0 -6
- package/dist/memoryOriginCapability.d.ts +0 -4
- package/dist/memoryOriginCapability.js +0 -6
- package/dist/memorySpecWire.js +2 -2
- package/dist/modelIdentityResolvability.d.ts +2 -2
- package/dist/modelIdentityResolvability.js +12 -3
- package/dist/noticePresentation.d.ts +68 -0
- package/dist/noticePresentation.js +247 -0
- package/dist/outputStyleSeatCapability.d.ts +0 -1
- package/dist/outputStyleSeatCapability.js +0 -3
- package/dist/ownKey.d.ts +2 -0
- package/dist/ownKey.js +18 -0
- package/dist/peerFrames.js +13 -9
- package/dist/permissionModesCapability.d.ts +0 -4
- package/dist/permissionModesCapability.js +0 -6
- package/dist/permissionRuleIssue.js +0 -3
- package/dist/permissionsDeclaration.d.ts +2 -0
- package/dist/permissionsDeclaration.js +56 -41
- package/dist/printPermissionOutcome.d.ts +12 -0
- package/dist/printPermissionOutcome.js +50 -0
- package/dist/printToolResultFrame.d.ts +1 -0
- package/dist/printToolResultFrame.js +5 -9
- package/dist/promptBlockedCopy.d.ts +5 -0
- package/dist/promptBlockedCopy.js +35 -0
- package/dist/protocolSegment.d.ts +9 -6
- package/dist/protocolSegment.js +31 -21
- package/dist/providerRejection.d.ts +4 -0
- package/dist/providerRejection.js +75 -14
- package/dist/replayBody.d.ts +12 -0
- package/dist/replayBody.js +25 -0
- package/dist/resumeRefusalCopy.js +5 -21
- package/dist/retryStatus.d.ts +9 -1
- package/dist/retryStatus.js +9 -2
- package/dist/rewindArchiveCapability.d.ts +3 -13
- package/dist/rewindArchiveCapability.js +7 -58
- package/dist/rewindArchiveReading.d.ts +15 -0
- package/dist/rewindArchiveReading.js +56 -0
- package/dist/ruleCompileVerdict.d.ts +9 -1
- package/dist/ruleCompileVerdict.js +29 -4
- package/dist/runTerminal.d.ts +15 -1
- package/dist/runTerminal.js +56 -8
- package/dist/sandboxWire.js +13 -0
- package/dist/sealedKeyCapability.d.ts +0 -4
- package/dist/sealedKeyCapability.js +0 -6
- package/dist/seam.js +4 -2
- package/dist/seatContract.d.ts +73 -11
- package/dist/seatContract.js +195 -14
- package/dist/sessionReadRedactionCapability.d.ts +0 -4
- package/dist/sessionReadRedactionCapability.js +0 -6
- package/dist/sessionSyncFileHistory.d.ts +4 -0
- package/dist/sessionSyncFileHistory.js +66 -0
- package/dist/sessionSyncFileHistoryCapability.d.ts +0 -1
- package/dist/sessionSyncFileHistoryCapability.js +0 -3
- package/dist/skillToolListsCapability.d.ts +0 -1
- package/dist/skillToolListsCapability.js +0 -3
- package/dist/steerPriorityCapability.d.ts +0 -1
- package/dist/steerPriorityCapability.js +0 -3
- package/dist/storePostureCapability.d.ts +0 -4
- package/dist/storePostureCapability.js +0 -6
- package/dist/subagent/engineSubagentSteer.js +7 -5
- package/dist/subagentContentStore.js +4 -15
- package/dist/supportFloor.d.ts +1 -0
- package/dist/supportFloor.js +13 -9
- package/dist/systemReminderTag.d.ts +1 -0
- package/dist/systemReminderTag.js +8 -0
- package/dist/toolHistoryMismatch.d.ts +0 -3
- package/dist/toolHistoryMismatch.js +3 -7
- package/dist/toolResult.d.ts +1 -1
- package/dist/toolResult.js +2 -1
- package/dist/toolResultContent.d.ts +2 -0
- package/dist/toolResultContent.js +63 -0
- package/dist/usageAnalytics.js +40 -16
- package/dist/userInvokedSkillsCapability.d.ts +0 -1
- package/dist/userInvokedSkillsCapability.js +0 -3
- package/dist/wireErrorTriage.d.ts +2 -0
- package/dist/wireErrorTriage.js +34 -5
- package/dist/wireFailureShape.d.ts +19 -2
- package/dist/wireFailureShape.js +55 -50
- package/docs/INTEGRATION-CLIENTS.md +1262 -17
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from './adapt/textSegmentAuthority.js';
|
|
|
13
13
|
export * from './engineHttpTools.js';
|
|
14
14
|
export * from './sdkWireTransit.js';
|
|
15
15
|
export { SEMA_SEGMENT_ID_KEY } from './adapt/textStream.js';
|
|
16
|
-
export { __resetSubagentContentStoreConfigForTests, __resetSubagentOwnerLedgerForTests, clearSubagentContent, coerceOutput, configureSubagentContentStore, getBgParentRun, getBgParentRunOwner, getBgTerminalFacts, getSubagentContentSnapshot, isOwnEngineRun, parentToolCallIdOf, planSubagentViewSlots, publishSubagentContentEvent, pushSubagentLocalEcho, recordBgParentRun,
|
|
16
|
+
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';
|
|
17
17
|
export type { BgTerminalFacts, SubagentContentEvent, SubagentContentItem, SubagentContentSnapshot, SubagentContentStoreConfig, SubagentOwnerRecord, SubagentOwnerSessionConflict, SubagentViewSlot, } from './subagentContentStore.js';
|
|
18
18
|
export * from './engineAgentPanelStore.js';
|
|
19
19
|
export * from './engineAgentAbsence.js';
|
|
@@ -48,7 +48,8 @@ export * from './leaderConflict.js';
|
|
|
48
48
|
export * from './runTerminal.js';
|
|
49
49
|
export { CORE_SEMA_TASK_TERMINAL_STATUSES, CORE_TASK_NOTIFICATION_TERMINAL_STATUSES, CORE_TERMINAL_CAUSE_KINDS, SDK_FLEET_TASK_TERMINAL_STATUSES, SDK_RUN_TERMINAL_STATUSES, ccTaskTerminalStatusOf, isCoreSemaTaskTerminal, isCoreTaskNotificationTerminal, isCoreTaskNotificationTerminalNotSuccess, isCoreTerminalCauseKind, isSdkFleetTaskTerminal, isSdkFleetTaskTerminalNotSuccess, isSdkRunTerminal, isSdkRunTerminalNotSuccess, } from './terminalStatuses.js';
|
|
50
50
|
export type { CcTaskTerminalStatus, CoreSemaTaskTerminalStatus, CoreTaskNotificationTerminalStatus, CoreTerminalCauseKind, SdkFleetTaskTerminalStatus, SdkRunTerminalStatus, } from './terminalStatuses.js';
|
|
51
|
-
export type { ProviderRejectionResend } from './providerRejection.js';
|
|
51
|
+
export type { ProviderRejectionResend, ProviderRejectionKind } from './providerRejection.js';
|
|
52
|
+
export { PROVIDER_REJECTION_KINDS } from './providerRejection.js';
|
|
52
53
|
export * from './runCancelContext.js';
|
|
53
54
|
export * from './argvFlagValue.js';
|
|
54
55
|
export * from './readFacePosture.js';
|
|
@@ -57,6 +58,7 @@ export * from './mcpLiveness.js';
|
|
|
57
58
|
export * from './mcpEngineLeg.js';
|
|
58
59
|
export * from './mcpProbeCapability.js';
|
|
59
60
|
export * from './sessionSyncFileHistoryCapability.js';
|
|
61
|
+
export * from './sessionSyncFileHistory.js';
|
|
60
62
|
export * from './workflowsJournalCapability.js';
|
|
61
63
|
export * from './userInvokedSkillsCapability.js';
|
|
62
64
|
export * from './skillToolListsCapability.js';
|
|
@@ -82,7 +84,7 @@ export * from './modelCapabilityProbe.js';
|
|
|
82
84
|
export * from './classifierStatus.js';
|
|
83
85
|
export * from './engineToolLabelStore.js';
|
|
84
86
|
export * from './fleetTaskDesc.js';
|
|
85
|
-
export { displayUntrusted, displayUntrustedMarks } from './displayUntrusted.js';
|
|
87
|
+
export { displayUntrusted, displayUntrustedMarks, displayConfiguredUrl, queryCarriesCredential } from './displayUntrusted.js';
|
|
86
88
|
export type { DisplayUntrustedOptions, DisplayMark, DisplayMarkSpan, DisplayUntrustedMarked } from './displayUntrusted.js';
|
|
87
89
|
export type * from './types/engineState.js';
|
|
88
90
|
export * from './hostEnv.js';
|
|
@@ -94,7 +96,7 @@ export * from './engineWireSdk.js';
|
|
|
94
96
|
export * from './classifierVerdictWire.js';
|
|
95
97
|
export { stripSystemReminderBlocks, unwrapSystemReminder } from './systemReminderTag.js';
|
|
96
98
|
export { findSystemReminderOpenTag, type SystemReminderOpenTagSpan } from './systemReminderTag.js';
|
|
97
|
-
export { ACTIVE_RUN_BUSY_ERROR_CODE, APPROVAL_EXPIRED, ASK_GONE, asModelFallbackReason, 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,
|
|
99
|
+
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, 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, imageInvalidFailureNoteOf, isConfigRefusalCode, isCorruptSessionCode, isDecideParkMovedCode, isDelegationCapCode, 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
100
|
export type { DelegationCapDisposition, ModelFallbackReason, OperatorGateRefusal, RunDeathVerdictCode, } from './engineErrorCodes.js';
|
|
99
101
|
export * from './agentsWireCaps.js';
|
|
100
102
|
export * from './attachmentsWireCaps.js';
|
|
@@ -121,6 +123,7 @@ export * from './sealedKeyCapability.js';
|
|
|
121
123
|
export * from './storePostureCapability.js';
|
|
122
124
|
export * from './centerWiringCapability.js';
|
|
123
125
|
export * from './registryQuotaUsage.js';
|
|
126
|
+
export * from './engineDirectory.js';
|
|
124
127
|
export * from './selfOrchestrationWireCaps.js';
|
|
125
128
|
export * from './skillsWireCaps.js';
|
|
126
129
|
export * from './ultracodeWireCaps.js';
|
|
@@ -164,6 +167,7 @@ export * from './headlessReconnectWire.js';
|
|
|
164
167
|
export { coerceTaskStatus, coerceWorkflowStatus, CONTROL_TOOL_VERBS, FLEET_TASK_ROW_KEYS_NOT_PROJECTED, FLEET_TASK_ROW_WIRE_KEYS, FLEET_TASK_VIEW_KEYS, FLEET_WORKFLOW_ROW_KEYS_NOT_PROJECTED, FLEET_WORKFLOW_ROW_WIRE_KEYS, FLEET_WORKFLOW_VIEW_KEYS, projectDescription, projectTasks, projectWorkflows, wireResumable, wireRowUsage, } from './fleet/fleetProjection.js';
|
|
165
168
|
export type { FleetRowUsage, FleetTaskStatus, FleetTaskView, FleetWorkflowView, NotProjectedEntry, ProjectTasksOptions, } from './fleet/fleetProjection.js';
|
|
166
169
|
export * from './fleet/fleetLedger.js';
|
|
170
|
+
export * from './fleet/bgSubagentRow.js';
|
|
167
171
|
export * from './fleet/workflowSizeWarning.js';
|
|
168
172
|
export * from './subagent/engineDelegatedPrompt.js';
|
|
169
173
|
export * from './subagent/engineRowStopGate.js';
|
|
@@ -199,7 +203,7 @@ export type { AttachmentSeatReading } from './attachmentSeatCapability.js';
|
|
|
199
203
|
export * from './resumeRefusalCopy.js';
|
|
200
204
|
export * from './wireRefusalCopy.js';
|
|
201
205
|
export * from './inheritEnvWire.js';
|
|
202
|
-
export { SUPPORT_FLOOR, supportFloorOf, engineVersionTier, coreVersionTier } from './supportFloor.js';
|
|
206
|
+
export { SUPPORT_FLOOR, supportFloorOf, engineVersionTier, engineSupportFloorEffective, coreVersionTier } from './supportFloor.js';
|
|
203
207
|
export type { SupportFloor, SupportFloorComponent, EngineVersionTier } from './supportFloor.js';
|
|
204
208
|
export * from './decideReceipt.js';
|
|
205
209
|
export * from './sessionMap.js';
|
|
@@ -221,8 +225,9 @@ export type { ActiveGate, ApprovalsResourceLike, AskAnswer, AssistantResourceLik
|
|
|
221
225
|
export * from './hitl/suspendedReopen.js';
|
|
222
226
|
export * from './hitl/approvalOutcomeNote.js';
|
|
223
227
|
export * from './hitl/approvalResolution.js';
|
|
224
|
-
export {
|
|
225
|
-
export {
|
|
228
|
+
export { ENGINE_ABORT_TOOL_RESULT } from './hitl/frameRouter.js';
|
|
229
|
+
export { toolEndOutputText } from './toolResultContent.js';
|
|
230
|
+
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';
|
|
226
231
|
export type { ClassifierDenyContext, HitlHostSurface, HitlNotice, } from './hitl/hitlHostSurface.js';
|
|
227
232
|
export * from './hitl/toolApprovalWire.js';
|
|
228
233
|
export * from './hitl/editedRuleTextPrecheck.js';
|
|
@@ -242,11 +247,12 @@ export * from './hitl/sessionPolicyWire.js';
|
|
|
242
247
|
export * from './hitl/sessionPolicyDeliverable.js';
|
|
243
248
|
export * from './hitl/approvalsFeed.js';
|
|
244
249
|
export * from './hitl/livePendingAsk.js';
|
|
245
|
-
export { replayedApprovalDisposition, replayedApprovalSentence } from './hitl/replayedApproval.js';
|
|
250
|
+
export { replayedApprovalClosesCardFrame, replayedApprovalDisposition, replayedApprovalSentence } from './hitl/replayedApproval.js';
|
|
246
251
|
export type { ReplayedApprovalDisposition, ReplayPendingBasis } from './hitl/replayedApproval.js';
|
|
247
252
|
export { hasLedgerPositionKey } from './hitl/gateLedger.js';
|
|
248
253
|
export { MODE_ARBITRATION, automaticAnswerVerdict, mandatedApprovalDetailOf, permissionRequestHookScope, type AutomaticAnswerLane, type AutomaticAnswerAskFace, type AutomaticAnswerFacts, type AutomaticAnswerRoad, type AutomaticAnswerUnknownWhy, type AutomaticAnswerVerdict, type PermissionRequestHookScope, } from './hitl/automaticAnswerVerdict.js';
|
|
249
|
-
export {
|
|
254
|
+
export { standingRowsOf, type StandingRows, type StandingRowsWhy, type StandingRowWhy, type StandingPersistentRow, type StandingRowsHostFacts, } from './hitl/standingRows.js';
|
|
255
|
+
export { classifyDecisionRefusal, liveAskPendingReading, decisionRefusalClosesOut, undeliverableDecisionContent, decisionRefusalAskReading, type DecisionRefusalAskReading, type DecisionRefusalStanding, type DecisionRefusalClassified, type DecisionRefusalConflict, type LiveAskPendingReading, type UndeliverableDecisionEnd, type UndeliverableDecisionFacts, } from './hitl/decisionRefusal.js';
|
|
250
256
|
export { noAllowCauseOf, type NoAllowCause, type RuleLadderNoAllowFacts } from './hitl/noAllowCause.js';
|
|
251
257
|
export { policyDenyReason, type PolicyDenyLane, type PolicyDenyReasonFacts } from './hitl/frameRouter.js';
|
|
252
258
|
export { readApprovalAllowRuleShadow, approvalAllowRuleShadowed, allowRuleShadowSentence, type ApprovalAllowRuleShadow, type ApprovalAllowRuleShadowMember, type AllowRuleShadowedWireMember, } from './hitl/allowRuleShadow.js';
|
|
@@ -289,4 +295,10 @@ export type { PendingCheckpoint, RuleSuggestion } from '@sema-agent/sdk';
|
|
|
289
295
|
export * from './ruleRemovalConsequence.js';
|
|
290
296
|
export { engineCredentialRequirementOf } from './engineCredentialRequirement.js';
|
|
291
297
|
export type { EngineProbeAnswer, EngineCredentialNeed } from './engineCredentialRequirement.js';
|
|
298
|
+
export { credentialProvenance, CREDENTIAL_ATTACH_WORDS } from './credentialProvenance.js';
|
|
299
|
+
export type { CredentialAttachWord, CredentialConsent, CredentialFactName, CredentialFacts, CredentialProvenance, CredentialSidecarOwnership, CredentialTargetKind, CredentialTargetProvenance, } from './credentialProvenance.js';
|
|
292
300
|
export { isSessionIdPathSegment } from './sessionIdSegment.js';
|
|
301
|
+
export { cutForDisplay, noticePresentationFacts, NOTICE_SEAT_CLASS, noticeSeatClassOf, OUTLET_KINDS, outletReachable, planOutletRendering, NOTICE_FULL_TEXT_CAP, noticePrintLine, } from './noticePresentation.js';
|
|
302
|
+
export type { CutForDisplayOptions, CutForDisplayResult, NoticePresentationAudience, NoticeOutlet, NoticeOccurrence, NoticeSeatClass, NoticeDeployment, NoticePresentationFacts, OutletKind, OutletReachability, OutletReachabilityContext, OutletRenderingPlan, NoticePrintCarrier, NoticePrintLineInput, NoticePrintLineResult, } from './noticePresentation.js';
|
|
303
|
+
export { printPermissionOutcomeOf, PRINT_PERMISSION_OUTCOME_FORMS } from './printPermissionOutcome.js';
|
|
304
|
+
export type { PrintPermissionOutcome, PrintPermissionOutcomeForm } from './printPermissionOutcome.js';
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ 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,
|
|
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';
|
|
15
15
|
export * from './engineAgentPanelStore.js';
|
|
16
16
|
export * from './engineAgentAbsence.js';
|
|
17
17
|
export * from './fleetAgentPanelProjection.js';
|
|
@@ -40,6 +40,7 @@ export * from './usageAnalytics.js';
|
|
|
40
40
|
export * from './leaderConflict.js';
|
|
41
41
|
export * from './runTerminal.js';
|
|
42
42
|
export { CORE_SEMA_TASK_TERMINAL_STATUSES, CORE_TASK_NOTIFICATION_TERMINAL_STATUSES, CORE_TERMINAL_CAUSE_KINDS, SDK_FLEET_TASK_TERMINAL_STATUSES, SDK_RUN_TERMINAL_STATUSES, ccTaskTerminalStatusOf, isCoreSemaTaskTerminal, isCoreTaskNotificationTerminal, isCoreTaskNotificationTerminalNotSuccess, isCoreTerminalCauseKind, isSdkFleetTaskTerminal, isSdkFleetTaskTerminalNotSuccess, isSdkRunTerminal, isSdkRunTerminalNotSuccess, } from './terminalStatuses.js';
|
|
43
|
+
export { PROVIDER_REJECTION_KINDS } from './providerRejection.js';
|
|
43
44
|
export * from './runCancelContext.js';
|
|
44
45
|
export * from './argvFlagValue.js';
|
|
45
46
|
export * from './readFacePosture.js';
|
|
@@ -48,6 +49,7 @@ export * from './mcpLiveness.js';
|
|
|
48
49
|
export * from './mcpEngineLeg.js';
|
|
49
50
|
export * from './mcpProbeCapability.js';
|
|
50
51
|
export * from './sessionSyncFileHistoryCapability.js';
|
|
52
|
+
export * from './sessionSyncFileHistory.js';
|
|
51
53
|
export * from './workflowsJournalCapability.js';
|
|
52
54
|
export * from './userInvokedSkillsCapability.js';
|
|
53
55
|
export * from './skillToolListsCapability.js';
|
|
@@ -72,7 +74,7 @@ export * from './modelCapabilityProbe.js';
|
|
|
72
74
|
export * from './classifierStatus.js';
|
|
73
75
|
export * from './engineToolLabelStore.js';
|
|
74
76
|
export * from './fleetTaskDesc.js';
|
|
75
|
-
export { displayUntrusted, displayUntrustedMarks } from './displayUntrusted.js';
|
|
77
|
+
export { displayUntrusted, displayUntrustedMarks, displayConfiguredUrl, queryCarriesCredential } from './displayUntrusted.js';
|
|
76
78
|
export * from './hostEnv.js';
|
|
77
79
|
export * from './unrefTimer.js';
|
|
78
80
|
export { ControlRouter, ControlSafetyError, errCodes, steerBodyOf, steerRefusalAdviceOf, steeringRefusedBeforeEngine, } from './controlRouter.js';
|
|
@@ -82,7 +84,7 @@ export * from './engineWireSdk.js';
|
|
|
82
84
|
export * from './classifierVerdictWire.js';
|
|
83
85
|
export { stripSystemReminderBlocks, unwrapSystemReminder } from './systemReminderTag.js';
|
|
84
86
|
export { findSystemReminderOpenTag } from './systemReminderTag.js';
|
|
85
|
-
export { ACTIVE_RUN_BUSY_ERROR_CODE, APPROVAL_EXPIRED, ASK_GONE, asModelFallbackReason, 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,
|
|
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, 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, imageInvalidFailureNoteOf, isConfigRefusalCode, isCorruptSessionCode, isDecideParkMovedCode, isDelegationCapCode, 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';
|
|
86
88
|
export * from './agentsWireCaps.js';
|
|
87
89
|
export * from './attachmentsWireCaps.js';
|
|
88
90
|
export * from './clientContextWireCaps.js';
|
|
@@ -106,6 +108,7 @@ export * from './sealedKeyCapability.js';
|
|
|
106
108
|
export * from './storePostureCapability.js';
|
|
107
109
|
export * from './centerWiringCapability.js';
|
|
108
110
|
export * from './registryQuotaUsage.js';
|
|
111
|
+
export * from './engineDirectory.js';
|
|
109
112
|
export * from './selfOrchestrationWireCaps.js';
|
|
110
113
|
export * from './skillsWireCaps.js';
|
|
111
114
|
export * from './ultracodeWireCaps.js';
|
|
@@ -144,6 +147,7 @@ export * from './headlessPermissionModeWire.js';
|
|
|
144
147
|
export * from './headlessReconnectWire.js';
|
|
145
148
|
export { coerceTaskStatus, coerceWorkflowStatus, CONTROL_TOOL_VERBS, FLEET_TASK_ROW_KEYS_NOT_PROJECTED, FLEET_TASK_ROW_WIRE_KEYS, FLEET_TASK_VIEW_KEYS, FLEET_WORKFLOW_ROW_KEYS_NOT_PROJECTED, FLEET_WORKFLOW_ROW_WIRE_KEYS, FLEET_WORKFLOW_VIEW_KEYS, projectDescription, projectTasks, projectWorkflows, wireResumable, wireRowUsage, } from './fleet/fleetProjection.js';
|
|
146
149
|
export * from './fleet/fleetLedger.js';
|
|
150
|
+
export * from './fleet/bgSubagentRow.js';
|
|
147
151
|
export * from './fleet/workflowSizeWarning.js';
|
|
148
152
|
export * from './subagent/engineDelegatedPrompt.js';
|
|
149
153
|
export * from './subagent/engineRowStopGate.js';
|
|
@@ -171,7 +175,7 @@ export { noteEngineCapsForAttachmentSeat, observedAttachmentSeat, __resetAttachm
|
|
|
171
175
|
export * from './resumeRefusalCopy.js';
|
|
172
176
|
export * from './wireRefusalCopy.js';
|
|
173
177
|
export * from './inheritEnvWire.js';
|
|
174
|
-
export { SUPPORT_FLOOR, supportFloorOf, engineVersionTier, coreVersionTier } from './supportFloor.js';
|
|
178
|
+
export { SUPPORT_FLOOR, supportFloorOf, engineVersionTier, engineSupportFloorEffective, coreVersionTier } from './supportFloor.js';
|
|
175
179
|
export * from './decideReceipt.js';
|
|
176
180
|
export * from './sessionMap.js';
|
|
177
181
|
export * from './detachWire.js';
|
|
@@ -190,8 +194,9 @@ export { __setDecideTimeoutRetryBudgetForTests, backendDeny, DecideTransportRetr
|
|
|
190
194
|
export * from './hitl/suspendedReopen.js';
|
|
191
195
|
export * from './hitl/approvalOutcomeNote.js';
|
|
192
196
|
export * from './hitl/approvalResolution.js';
|
|
193
|
-
export {
|
|
194
|
-
export {
|
|
197
|
+
export { ENGINE_ABORT_TOOL_RESULT } from './hitl/frameRouter.js';
|
|
198
|
+
export { toolEndOutputText } from './toolResultContent.js';
|
|
199
|
+
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';
|
|
195
200
|
export * from './hitl/toolApprovalWire.js';
|
|
196
201
|
export * from './hitl/editedRuleTextPrecheck.js';
|
|
197
202
|
export * from './coreValuePorts.js';
|
|
@@ -210,10 +215,11 @@ export * from './hitl/sessionPolicyWire.js';
|
|
|
210
215
|
export * from './hitl/sessionPolicyDeliverable.js';
|
|
211
216
|
export * from './hitl/approvalsFeed.js';
|
|
212
217
|
export * from './hitl/livePendingAsk.js';
|
|
213
|
-
export { replayedApprovalDisposition, replayedApprovalSentence } from './hitl/replayedApproval.js';
|
|
218
|
+
export { replayedApprovalClosesCardFrame, replayedApprovalDisposition, replayedApprovalSentence } from './hitl/replayedApproval.js';
|
|
214
219
|
export { hasLedgerPositionKey } from './hitl/gateLedger.js';
|
|
215
220
|
export { MODE_ARBITRATION, automaticAnswerVerdict, mandatedApprovalDetailOf, permissionRequestHookScope, } from './hitl/automaticAnswerVerdict.js';
|
|
216
|
-
export {
|
|
221
|
+
export { standingRowsOf, } from './hitl/standingRows.js';
|
|
222
|
+
export { classifyDecisionRefusal, liveAskPendingReading, decisionRefusalClosesOut, undeliverableDecisionContent, decisionRefusalAskReading, } from './hitl/decisionRefusal.js';
|
|
217
223
|
export { noAllowCauseOf } from './hitl/noAllowCause.js';
|
|
218
224
|
export { policyDenyReason } from './hitl/frameRouter.js';
|
|
219
225
|
export { readApprovalAllowRuleShadow, approvalAllowRuleShadowed, allowRuleShadowSentence, } from './hitl/allowRuleShadow.js';
|
|
@@ -246,4 +252,7 @@ export * from './env/localeTag.js';
|
|
|
246
252
|
export * from './env/uiLanguage.js';
|
|
247
253
|
export * from './ruleRemovalConsequence.js';
|
|
248
254
|
export { engineCredentialRequirementOf } from './engineCredentialRequirement.js';
|
|
255
|
+
export { credentialProvenance, CREDENTIAL_ATTACH_WORDS } from './credentialProvenance.js';
|
|
249
256
|
export { isSessionIdPathSegment } from './sessionIdSegment.js';
|
|
257
|
+
export { cutForDisplay, noticePresentationFacts, NOTICE_SEAT_CLASS, noticeSeatClassOf, OUTLET_KINDS, outletReachable, planOutletRendering, NOTICE_FULL_TEXT_CAP, noticePrintLine, } from './noticePresentation.js';
|
|
258
|
+
export { printPermissionOutcomeOf, PRINT_PERMISSION_OUTCOME_FORMS } from './printPermissionOutcome.js';
|
|
@@ -8,10 +8,6 @@ export type McpProbeReading = {
|
|
|
8
8
|
kind: 'present';
|
|
9
9
|
};
|
|
10
10
|
export declare function projectMcpProbeCapability(caps: unknown): McpProbeReading | undefined;
|
|
11
|
-
export declare function noteEngineCapsForMcpProbe(baseUrl: string, caps: unknown, opts?: {
|
|
12
|
-
generation?: number;
|
|
13
|
-
}): void;
|
|
14
11
|
export declare function observedMcpProbe(baseUrl?: string | undefined): McpProbeReading;
|
|
15
12
|
export declare function mcpProbeAvailable(reading: McpProbeReading): 'yes' | 'no' | 'unknown';
|
|
16
13
|
export declare function mcpProbeDoctorDetail(reading: McpProbeReading): string;
|
|
17
|
-
export declare function __resetMcpProbeReadingsForTests(): void;
|
|
@@ -21,9 +21,6 @@ const reader = createEngineCapReader({
|
|
|
21
21
|
project: projectMcpProbeCapability,
|
|
22
22
|
makeUnobserved: () => ({ kind: 'unobserved' }),
|
|
23
23
|
});
|
|
24
|
-
export function noteEngineCapsForMcpProbe(baseUrl, caps, opts) {
|
|
25
|
-
reader.note(baseUrl, caps, opts);
|
|
26
|
-
}
|
|
27
24
|
export function observedMcpProbe(baseUrl = engineWireTarget()?.baseUrl) {
|
|
28
25
|
return reader.observed(baseUrl);
|
|
29
26
|
}
|
|
@@ -51,6 +48,3 @@ export function mcpProbeDoctorDetail(reading) {
|
|
|
51
48
|
'and a probe of caller-supplied declarations answers with the very same body shape');
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
|
-
export function __resetMcpProbeReadingsForTests() {
|
|
55
|
-
reader.__resetForTests();
|
|
56
|
-
}
|
|
@@ -9,10 +9,6 @@ export type MemoryComplianceReading = {
|
|
|
9
9
|
kind: 'present';
|
|
10
10
|
};
|
|
11
11
|
export declare function projectMemoryComplianceCapability(caps: unknown): MemoryComplianceReading | undefined;
|
|
12
|
-
export declare function noteEngineCapsForMemoryCompliance(baseUrl: string, caps: unknown, opts?: {
|
|
13
|
-
generation?: number;
|
|
14
|
-
}): void;
|
|
15
12
|
export declare function observedMemoryCompliance(baseUrl?: string | undefined): MemoryComplianceReading;
|
|
16
13
|
export declare function memoryComplianceVerbsAvailable(reading: MemoryComplianceReading): 'yes' | 'no' | 'unknown';
|
|
17
14
|
export declare function memoryComplianceDoctorDetail(reading: MemoryComplianceReading): string;
|
|
18
|
-
export declare function __resetMemoryComplianceReadingsForTests(): void;
|
|
@@ -23,9 +23,6 @@ const reader = createEngineCapReader({
|
|
|
23
23
|
project: projectMemoryComplianceCapability,
|
|
24
24
|
makeUnobserved: () => ({ kind: 'unobserved' }),
|
|
25
25
|
});
|
|
26
|
-
export function noteEngineCapsForMemoryCompliance(baseUrl, caps, opts) {
|
|
27
|
-
reader.note(baseUrl, caps, opts);
|
|
28
|
-
}
|
|
29
26
|
export function observedMemoryCompliance(baseUrl = engineWireTarget()?.baseUrl) {
|
|
30
27
|
return reader.observed(baseUrl);
|
|
31
28
|
}
|
|
@@ -48,6 +45,3 @@ export function memoryComplianceDoctorDetail(reading) {
|
|
|
48
45
|
return 'memory compliance face on — the entry-provenance and erasure endpoints are mounted and the operator roster is non-empty on this engine; this says the door opens, not that any one call succeeds (a damaged control-plane ledger is a runtime fact and arrives as a typed 500)';
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
|
-
export function __resetMemoryComplianceReadingsForTests() {
|
|
52
|
-
reader.__resetForTests();
|
|
53
|
-
}
|
|
@@ -8,10 +8,6 @@ export type MemoryOriginReading = {
|
|
|
8
8
|
kind: 'present';
|
|
9
9
|
};
|
|
10
10
|
export declare function projectMemoryOriginCapability(caps: unknown): MemoryOriginReading | undefined;
|
|
11
|
-
export declare function noteEngineCapsForMemoryOrigin(baseUrl: string, caps: unknown, opts?: {
|
|
12
|
-
generation?: number;
|
|
13
|
-
}): void;
|
|
14
11
|
export declare function observedMemoryOrigin(baseUrl?: string | undefined): MemoryOriginReading;
|
|
15
12
|
export declare function memoryOriginVerbsAvailable(reading: MemoryOriginReading): 'yes' | 'no' | 'unknown';
|
|
16
13
|
export declare function memoryOriginDoctorDetail(reading: MemoryOriginReading): string;
|
|
17
|
-
export declare function __resetMemoryOriginReadingsForTests(): void;
|
|
@@ -23,9 +23,6 @@ const reader = createEngineCapReader({
|
|
|
23
23
|
project: projectMemoryOriginCapability,
|
|
24
24
|
makeUnobserved: () => ({ kind: 'unobserved' }),
|
|
25
25
|
});
|
|
26
|
-
export function noteEngineCapsForMemoryOrigin(baseUrl, caps, opts) {
|
|
27
|
-
reader.note(baseUrl, caps, opts);
|
|
28
|
-
}
|
|
29
26
|
export function observedMemoryOrigin(baseUrl = engineWireTarget()?.baseUrl) {
|
|
30
27
|
return reader.observed(baseUrl);
|
|
31
28
|
}
|
|
@@ -48,6 +45,3 @@ export function memoryOriginDoctorDetail(reading) {
|
|
|
48
45
|
return 'external-origin face on — the origin listing and clearance endpoints are mounted and the operator roster is non-empty on this engine; this says the door opens, not that any one call succeeds, and it says nothing about the listing being complete (the engine has no scope-enumeration read face, so an answer covers only the scopes the caller named and an empty one must never be read as a clean store)';
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
|
-
export function __resetMemoryOriginReadingsForTests() {
|
|
52
|
-
reader.__resetForTests();
|
|
53
|
-
}
|
package/dist/memorySpecWire.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CONFIG_MEMORY_PROJECT_KEY_SPELLING, CONFIG_MEMORY_WRITE_SCOPE_MISMATCH } from './engineErrorCodes.js';
|
|
2
|
-
import {
|
|
2
|
+
import { escapeDisplayControlChars } from './fleetTaskDesc.js';
|
|
3
3
|
export const KNOWN_AGENT_MEMORY_SPEC_KEYS = Object.freeze([
|
|
4
4
|
'enabled',
|
|
5
5
|
'scopeContract',
|
|
@@ -128,7 +128,7 @@ function quotedKeyForDisplay(key) {
|
|
|
128
128
|
let out = '';
|
|
129
129
|
let truncated = false;
|
|
130
130
|
for (const ch of key) {
|
|
131
|
-
const tok = ch === '\\' ? '\\\\' : ch === '"' ? '\\"' :
|
|
131
|
+
const tok = ch === '\\' ? '\\\\' : ch === '"' ? '\\"' : escapeDisplayControlChars(ch);
|
|
132
132
|
if (out.length + tok.length > MEMORY_SPEC_KEY_DISPLAY_MAX) {
|
|
133
133
|
truncated = true;
|
|
134
134
|
break;
|
|
@@ -25,10 +25,10 @@ export interface RemoteEngineModelIdentityReading {
|
|
|
25
25
|
}
|
|
26
26
|
export type ModelIdentityReading = LocalEngineModelIdentityReading | RemoteEngineModelIdentityReading;
|
|
27
27
|
export type ModelIdentityResolvability = 'resolvable' | 'not_resolvable' | 'unknown';
|
|
28
|
-
export type ModelSetupDecision = 'offer_setup' | 'explain_unconfigured' | 'explain_route_gap' | 'proceed';
|
|
28
|
+
export type ModelSetupDecision = 'offer_setup' | 'offer_route_setup' | 'explain_unconfigured' | 'explain_route_gap' | 'explain_route_unconfigurable' | 'proceed';
|
|
29
29
|
export declare function modelIdentityResolvability(reading: ModelIdentityReading): ModelIdentityResolvability;
|
|
30
30
|
export declare function modelIdentityDetail(reading: ModelIdentityReading): string;
|
|
31
|
-
export declare function modelSetupDecision(reading: ModelIdentityReading, hostCanConfigureModel: boolean): ModelSetupDecision;
|
|
31
|
+
export declare function modelSetupDecision(reading: ModelIdentityReading, hostCanConfigureModel: boolean, hostCanConfigureRoute?: boolean): ModelSetupDecision;
|
|
32
32
|
export declare function modelSetupNotice(decision: ModelSetupDecision): string | null;
|
|
33
33
|
export declare function observedEngineAnswer(baseUrl?: string | undefined): EngineAnswerObservation;
|
|
34
34
|
export {};
|
|
@@ -178,10 +178,15 @@ export function modelIdentityDetail(reading) {
|
|
|
178
178
|
return "this reading of the engine's model configuration could not be interpreted, so whether the engine has a model name is unknown";
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
export function modelSetupDecision(reading, hostCanConfigureModel) {
|
|
181
|
+
export function modelSetupDecision(reading, hostCanConfigureModel, hostCanConfigureRoute) {
|
|
182
182
|
const a = analyse(reading);
|
|
183
|
-
if (a.verdict === 'not_resolvable' && a.why === 'route_gap')
|
|
183
|
+
if (a.verdict === 'not_resolvable' && a.why === 'route_gap') {
|
|
184
|
+
if (hostCanConfigureRoute === true)
|
|
185
|
+
return 'offer_route_setup';
|
|
186
|
+
if (hostCanConfigureRoute === false)
|
|
187
|
+
return 'explain_route_unconfigurable';
|
|
184
188
|
return 'explain_route_gap';
|
|
189
|
+
}
|
|
185
190
|
if (a.verdict !== 'not_resolvable')
|
|
186
191
|
return 'proceed';
|
|
187
192
|
if (hostCanConfigureModel === true)
|
|
@@ -196,8 +201,12 @@ export function modelSetupNotice(decision) {
|
|
|
196
201
|
return 'no model name is configured for the engine, and it does not start without one — opening model setup';
|
|
197
202
|
case 'explain_unconfigured':
|
|
198
203
|
return 'this engine has no model configured, and it cannot be configured from this client — ask whoever runs the engine to set one up';
|
|
204
|
+
case 'offer_route_setup':
|
|
205
|
+
return 'a model name is configured, but the engine has no route to reach that model (a gateway address, or credentials for the channel it names), so it does not start — opening setup so the route can be set';
|
|
199
206
|
case 'explain_route_gap':
|
|
200
|
-
return 'a model name is configured, but the engine has no route to reach that model (a gateway address, or credentials for the channel it names), so it does not start —
|
|
207
|
+
return 'a model name is configured, but the engine has no route to reach that model (a gateway address, or credentials for the channel it names), so it does not start — the route has to be set before the engine can run';
|
|
208
|
+
case 'explain_route_unconfigurable':
|
|
209
|
+
return 'a model name is configured, but the engine has no route to reach that model (a gateway address, or credentials for the channel it names), so it does not start — the route cannot be set from this client; ask whoever runs the engine to set it';
|
|
201
210
|
default:
|
|
202
211
|
return null;
|
|
203
212
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface CutForDisplayOptions {
|
|
2
|
+
readonly boundary?: 'sentence' | 'word';
|
|
3
|
+
readonly mark?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CutForDisplayResult {
|
|
6
|
+
readonly shown: string;
|
|
7
|
+
readonly truncated: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function cutForDisplay(text: string, budget: number, opts?: CutForDisplayOptions): CutForDisplayResult;
|
|
10
|
+
export type NoticePresentationAudience = 'user' | 'operator' | 'unknown';
|
|
11
|
+
export type NoticeOutlet = 'present' | 'absent' | 'unknown';
|
|
12
|
+
export type NoticeOccurrence = {
|
|
13
|
+
readonly kind: 'event';
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: 'occurrence';
|
|
16
|
+
readonly key: string;
|
|
17
|
+
};
|
|
18
|
+
export type NoticeSeatClass = 'persistent+hint' | 'persistent' | 'transient' | 'diagnostic';
|
|
19
|
+
export type NoticeDeployment = 'local' | 'remote';
|
|
20
|
+
export interface NoticePresentationFacts {
|
|
21
|
+
readonly audience: NoticePresentationAudience;
|
|
22
|
+
readonly outlet: NoticeOutlet;
|
|
23
|
+
readonly remedy?: string;
|
|
24
|
+
readonly occurrence: NoticeOccurrence;
|
|
25
|
+
readonly seatClass: NoticeSeatClass;
|
|
26
|
+
}
|
|
27
|
+
export declare const NOTICE_SEAT_CLASS: Readonly<Record<NoticePresentationAudience, Readonly<Record<NoticeOutlet, NoticeSeatClass>>>>;
|
|
28
|
+
export declare function noticeSeatClassOf(audience: NoticePresentationAudience, outlet: NoticeOutlet, deployment?: NoticeDeployment): NoticeSeatClass;
|
|
29
|
+
export declare function noticePresentationFacts(notice: unknown, deployment?: NoticeDeployment): NoticePresentationFacts;
|
|
30
|
+
export declare const OUTLET_KINDS: readonly ["slash-command", "cli-command", "http-endpoint", "env-or-settings", "operator-action", "identity-attach", "resend"];
|
|
31
|
+
export type OutletKind = (typeof OUTLET_KINDS)[number];
|
|
32
|
+
export type OutletReachability = 'reachable' | 'unreachable' | 'unknown';
|
|
33
|
+
export interface OutletReachabilityContext {
|
|
34
|
+
readonly lane: 'interactive' | 'print';
|
|
35
|
+
readonly engineManagedByShell: 'shell' | 'external-local' | 'remote' | 'unknown';
|
|
36
|
+
readonly configScope: 'reaches-engine' | 'does-not' | 'unknown';
|
|
37
|
+
readonly endpointAccess: 'has-address-and-credential' | 'no' | 'unknown';
|
|
38
|
+
readonly operator: 'present' | 'absent' | 'unknown';
|
|
39
|
+
readonly identityAttach: 'available' | 'unavailable' | 'unknown';
|
|
40
|
+
}
|
|
41
|
+
export declare function outletReachable(kind: OutletKind, ctx: OutletReachabilityContext): OutletReachability;
|
|
42
|
+
export interface OutletRenderingPlan {
|
|
43
|
+
readonly state: readonly OutletKind[];
|
|
44
|
+
readonly confirm: readonly OutletKind[];
|
|
45
|
+
readonly omit: readonly OutletKind[];
|
|
46
|
+
readonly nothingReachable: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function planOutletRendering(kinds: readonly OutletKind[], ctx: OutletReachabilityContext): OutletRenderingPlan;
|
|
49
|
+
export declare const NOTICE_FULL_TEXT_CAP = 8000;
|
|
50
|
+
export type NoticePrintCarrier = {
|
|
51
|
+
readonly kind: 'transcript';
|
|
52
|
+
readonly sessionId: string;
|
|
53
|
+
} | {
|
|
54
|
+
readonly kind: 'stream-json';
|
|
55
|
+
} | {
|
|
56
|
+
readonly kind: 'none';
|
|
57
|
+
};
|
|
58
|
+
export interface NoticePrintLineInput {
|
|
59
|
+
readonly text: string | undefined;
|
|
60
|
+
readonly audience: NoticePresentationAudience;
|
|
61
|
+
readonly code?: string;
|
|
62
|
+
readonly carrier: NoticePrintCarrier;
|
|
63
|
+
}
|
|
64
|
+
export interface NoticePrintLineResult {
|
|
65
|
+
readonly line: string;
|
|
66
|
+
readonly truncated: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare function noticePrintLine(input: NoticePrintLineInput): NoticePrintLineResult;
|