@sema-agent/client-core 0.99.0 → 0.101.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 +572 -0
- package/README.md +174 -114
- package/dist/adapt/arms.js +109 -50
- package/dist/adapt/panelTasks.d.ts +2 -1
- package/dist/adapt/panelTasks.js +32 -9
- package/dist/adapt/textStream.d.ts +1 -1
- package/dist/adapt/textStream.js +58 -32
- package/dist/adapt/toolCards.js +9 -8
- package/dist/adapt.js +7 -1
- package/dist/adapter/activeRunSelfHeal.d.ts +31 -2
- package/dist/adapter/activeRunSelfHeal.js +162 -13
- package/dist/adapter/downstream/eventToSdkMessage.d.ts +25 -6
- package/dist/adapter/downstream/eventToSdkMessage.js +157 -20
- package/dist/adapter/downstream/terminalToSdkResult.d.ts +60 -1
- package/dist/adapter/downstream/terminalToSdkResult.js +219 -39
- package/dist/adapter/downstream/wiringManifestView.d.ts +3 -1
- package/dist/adapter/downstream/wiringManifestView.js +1 -0
- package/dist/adapter/runStream.d.ts +4 -4
- package/dist/adapter/runStream.js +184 -42
- package/dist/adapter/types.d.ts +2 -0
- package/dist/agentsWireCaps.d.ts +9 -7
- package/dist/agentsWireCaps.js +101 -17
- package/dist/approvalDecidedByCapability.js +2 -2
- package/dist/approvalFrameFamilies.d.ts +33 -0
- package/dist/approvalFrameFamilies.js +120 -0
- package/dist/approvalsStreamLiveCapability.js +2 -2
- package/dist/attachmentsWireCaps.js +41 -13
- package/dist/callerCwdCapability.js +2 -2
- package/dist/centerWiringCapability.js +2 -2
- package/dist/clockReading.d.ts +2 -0
- package/dist/clockReading.js +4 -0
- package/dist/cloudConfigWireCaps.d.ts +28 -5
- package/dist/cloudConfigWireCaps.js +334 -103
- package/dist/compactionStatus.d.ts +34 -0
- package/dist/compactionStatus.js +196 -0
- package/dist/coreValuePorts.d.ts +12 -2
- package/dist/coreValuePorts.js +9 -0
- package/dist/decideFailureNote.js +8 -6
- package/dist/decideReceipt.js +2 -2
- package/dist/deviceExecutorManagementCapability.js +2 -2
- package/dist/deviceFlowPolling.js +1 -1
- package/dist/disableSkillsWire.d.ts +1 -1
- package/dist/disableSkillsWire.js +4 -3
- package/dist/displayUntrusted.d.ts +1 -0
- package/dist/displayUntrusted.js +215 -13
- package/dist/engineAgentPanelStore.d.ts +7 -4
- package/dist/engineCapReader.js +1 -1
- package/dist/engineConfigDrift.js +1 -1
- package/dist/engineErrorCodes.d.ts +23 -6
- package/dist/engineErrorCodes.js +36 -11
- package/dist/engineGenerationConvergence.d.ts +39 -0
- package/dist/engineGenerationConvergence.js +95 -0
- package/dist/engineGenerationPort.d.ts +61 -0
- package/dist/engineGenerationPort.js +144 -0
- package/dist/engineHealthFacts.d.ts +23 -0
- package/dist/engineHealthFacts.js +92 -0
- package/dist/engineIdentity.d.ts +4 -0
- package/dist/engineIdentity.js +11 -0
- package/dist/engineNoticeCodes.d.ts +2 -5
- package/dist/engineRowRef.js +4 -0
- package/dist/engineSessionMessages.js +2 -2
- package/dist/engineToolDirectory.d.ts +3 -0
- package/dist/engineToolDirectory.js +6 -4
- package/dist/engineWireFor.d.ts +99 -0
- package/dist/engineWireFor.js +248 -6
- package/dist/engineWireTarget.d.ts +1 -0
- package/dist/engineWireTarget.js +8 -0
- package/dist/env/uiLanguage.js +1 -1
- package/dist/errorSupplementRoles.d.ts +3 -0
- package/dist/errorSupplementRoles.js +37 -0
- package/dist/eventLeg.d.ts +1 -7
- package/dist/eventLeg.js +7 -8
- package/dist/executionLaneCapability.js +2 -2
- package/dist/fileHistoryCaptureCapability.d.ts +0 -3
- package/dist/fileHistoryCaptureCapability.js +3 -7
- package/dist/finalVerifyWire.d.ts +6 -3
- package/dist/finalVerifyWire.js +6 -23
- package/dist/flagInput.d.ts +4 -0
- package/dist/flagInput.js +24 -0
- package/dist/fleet/fleetLedger.js +5 -2
- package/dist/fleet/fleetProjection.d.ts +1 -0
- package/dist/fleet/fleetProjection.js +15 -2
- package/dist/gateVocabulary.js +3 -0
- package/dist/generated/engineFactTables.d.ts +7 -2
- package/dist/generated/engineFactTables.js +79 -0
- package/dist/generated/engineNoticeTables.js +15 -0
- package/dist/generated/settingsSchemaActiveTiers.d.ts +1 -0
- package/dist/generated/settingsSchemaActiveTiers.js +14 -0
- package/dist/generated/settingsSchemaCallerTextEcho.d.ts +1 -0
- package/dist/generated/settingsSchemaCallerTextEcho.js +8 -0
- package/dist/generated/settingsSchemaControlAndBidi.d.ts +1 -0
- package/dist/generated/settingsSchemaControlAndBidi.js +8 -0
- package/dist/generated/settingsSchemaDefaultModel.d.ts +11 -0
- package/dist/generated/settingsSchemaDefaultModel.js +25 -0
- package/dist/generated/settingsSchemaFns.d.ts +66 -0
- package/dist/generated/settingsSchemaFns.js +38 -0
- package/dist/generated/settingsSchemaMcpRequestEntry.d.ts +1 -0
- package/dist/generated/settingsSchemaMcpRequestEntry.js +156 -0
- package/dist/generated/settingsSchemaSafetyMergeSpec.d.ts +1 -0
- package/dist/generated/settingsSchemaSafetyMergeSpec.js +95 -0
- package/dist/generated/settingsSchemaSettingsSources.d.ts +1 -0
- package/dist/generated/settingsSchemaSettingsSources.js +58 -0
- package/dist/generated/settingsSchemaTables.d.ts +3 -0
- package/dist/generated/settingsSchemaTables.js +18 -0
- package/dist/generated/settingsSchemaTypes.d.ts +28 -0
- package/dist/generated/settingsSchemaUrlPattern.d.ts +1 -0
- package/dist/generated/settingsSchemaUrlPattern.js +183 -0
- package/dist/headlessPermissionModeWire.d.ts +18 -2
- package/dist/headlessPermissionModeWire.js +30 -19
- package/dist/hitl/allowRuleShadow.js +9 -7
- package/dist/hitl/approvalCardReading.d.ts +3 -0
- package/dist/hitl/approvalCardReading.js +17 -0
- package/dist/hitl/approvalCardReasons.js +2 -2
- package/dist/hitl/approvalCompleteParked.js +1 -1
- package/dist/hitl/approvalDelivery.d.ts +87 -0
- package/dist/hitl/approvalDelivery.js +193 -0
- package/dist/hitl/approvalHolds.d.ts +14 -0
- package/dist/hitl/approvalHolds.js +41 -0
- package/dist/hitl/approvalResolution.d.ts +11 -0
- package/dist/hitl/approvalResolution.js +50 -11
- package/dist/hitl/askClassPair.d.ts +8 -2
- package/dist/hitl/askClassPair.js +31 -4
- package/dist/hitl/askParkAutoReopenBlock.d.ts +30 -0
- package/dist/hitl/askParkAutoReopenBlock.js +117 -0
- package/dist/hitl/askParkRowRouting.js +4 -1
- package/dist/hitl/attributionLadder.d.ts +62 -0
- package/dist/hitl/attributionLadder.js +138 -0
- package/dist/hitl/automaticAnswerVerdict.d.ts +6 -1
- package/dist/hitl/automaticAnswerVerdict.js +46 -11
- package/dist/hitl/crashConverged.js +2 -2
- package/dist/hitl/decisionConflict.d.ts +6 -2
- package/dist/hitl/decisionConflict.js +24 -9
- package/dist/hitl/decisionLedger.d.ts +55 -0
- package/dist/hitl/decisionLedger.js +156 -0
- package/dist/hitl/decisionRefusal.d.ts +21 -10
- package/dist/hitl/decisionRefusal.js +100 -55
- package/dist/hitl/decisionSend.d.ts +116 -0
- package/dist/hitl/decisionSend.js +563 -0
- package/dist/hitl/frameRouter.d.ts +1 -0
- package/dist/hitl/frameRouter.js +9 -2
- package/dist/hitl/hitlBridge.d.ts +18 -6
- package/dist/hitl/hitlBridge.js +59 -43
- package/dist/hitl/livePendingAsk.js +4 -3
- package/dist/hitl/noAllowCause.js +1 -1
- package/dist/hitl/parkResolver.js +3 -2
- package/dist/hitl/persistedRulesWire.js +1 -0
- package/dist/hitl/planReviewWire.d.ts +4 -0
- package/dist/hitl/planReviewWire.js +104 -106
- package/dist/hitl/resumeRunningCard.d.ts +3 -2
- package/dist/hitl/resumeRunningCard.js +17 -11
- package/dist/hitl/sessionPolicyDeliverable.d.ts +5 -2
- package/dist/hitl/sessionPolicyDeliverable.js +65 -35
- package/dist/hitl/sessionPolicyWire.d.ts +13 -3
- package/dist/hitl/sessionPolicyWire.js +81 -16
- package/dist/hitl/standingRows.js +1 -1
- package/dist/hitl/toolApprovalWire.d.ts +9 -10
- package/dist/hitl/toolApprovalWire.js +103 -151
- package/dist/hookMatcherVerdict.d.ts +2 -0
- package/dist/hookMatcherVerdict.js +12 -0
- package/dist/hooksCompactTransition.d.ts +19 -0
- package/dist/hooksCompactTransition.js +41 -0
- package/dist/hooksWireCaps.d.ts +1 -1
- package/dist/hooksWireCaps.js +202 -203
- package/dist/host.d.ts +1 -14
- package/dist/host.js +0 -8
- package/dist/hostCallbackGuard.d.ts +1 -0
- package/dist/hostCallbackGuard.js +1 -1
- package/dist/hostSettingsSource.d.ts +172 -0
- package/dist/hostSettingsSource.js +675 -0
- package/dist/hostTurnSettings.d.ts +114 -19
- package/dist/hostTurnSettings.js +966 -68
- package/dist/httpHookPolicy.d.ts +37 -0
- package/dist/httpHookPolicy.js +176 -0
- package/dist/humanTurn.d.ts +4 -2
- package/dist/humanTurn.js +40 -10
- package/dist/humanTurnRead.js +4 -3
- package/dist/humanTurnSentences.d.ts +10 -0
- package/dist/humanTurnSentences.js +74 -0
- package/dist/i18n/messages.en.d.ts +313 -0
- package/dist/i18n/messages.en.js +326 -13
- package/dist/i18n/messages.zh.js +341 -13
- package/dist/i18n/translate.js +3 -3
- package/dist/index.d.ts +85 -15
- package/dist/index.js +53 -12
- package/dist/inheritEnvCapability.d.ts +4 -1
- package/dist/inheritEnvCapability.js +38 -17
- package/dist/inheritEnvWire.d.ts +2 -1
- package/dist/inheritEnvWire.js +11 -5
- package/dist/injectionLaneNotice.d.ts +5 -0
- package/dist/injectionLaneNotice.js +46 -0
- package/dist/interactiveToolsWire.d.ts +4 -2
- package/dist/interactiveToolsWire.js +5 -5
- package/dist/jsonFaithful.d.ts +20 -0
- package/dist/jsonFaithful.js +152 -0
- package/dist/limitsWire.d.ts +7 -2
- package/dist/limitsWire.js +19 -13
- package/dist/liveInitToolFace.d.ts +6 -1
- package/dist/liveInitToolFace.js +5 -3
- package/dist/liveModelCatalog.d.ts +22 -0
- package/dist/liveModelCatalog.js +132 -18
- package/dist/mcpPanel.js +3 -1
- package/dist/mcpProbeCapability.js +2 -2
- package/dist/mcpReconnect.js +2 -2
- package/dist/mcpStatusSupersetKeys.d.ts +24 -0
- package/dist/mcpStatusSupersetKeys.js +45 -0
- package/dist/mcpToolToggles.d.ts +6 -0
- package/dist/mcpToolToggles.js +47 -0
- package/dist/mcpWireCaps.d.ts +48 -4
- package/dist/mcpWireCaps.js +338 -99
- package/dist/mcpWireTransport.d.ts +4 -0
- package/dist/mcpWireTransport.js +18 -0
- package/dist/memoryComplianceCapability.js +2 -2
- package/dist/memoryOriginCapability.js +2 -2
- package/dist/model/catalogDefault.d.ts +24 -0
- package/dist/model/catalogDefault.js +4 -0
- package/dist/model/liveCatalogShape.js +5 -4
- package/dist/model/modelsPolicy.js +4 -3
- package/dist/model/onboardJudgement.d.ts +1 -0
- package/dist/model/onboardJudgement.js +1 -1
- package/dist/model/subagentModelWord.js +2 -2
- package/dist/modelCapabilityProbe.d.ts +2 -1
- package/dist/modelCapabilityProbe.js +16 -15
- package/dist/modelIdentityResolvability.d.ts +12 -1
- package/dist/modelIdentityResolvability.js +69 -28
- package/dist/modsKernelIdentity.d.ts +10 -0
- package/dist/modsKernelIdentity.js +103 -0
- package/dist/modsKernelTransit.d.ts +8 -0
- package/dist/modsKernelTransit.js +6 -0
- package/dist/notifications.d.ts +30 -12
- package/dist/notifications.js +241 -53
- package/dist/outputStyleSeatCapability.js +2 -2
- package/dist/ownKey.d.ts +37 -0
- package/dist/ownKey.js +238 -2
- package/dist/panelReduce.d.ts +5 -0
- package/dist/panelReduce.js +45 -13
- package/dist/panelStateHolder.d.ts +1 -0
- package/dist/panelStateHolder.js +10 -1
- package/dist/peerFrames.d.ts +1 -1
- package/dist/peerFrames.js +6 -2
- package/dist/peerLaneCapability.js +2 -2
- package/dist/permissionModesCapability.js +4 -4
- package/dist/permissionRuleIssue.d.ts +2 -1
- package/dist/permissionRuleIssue.js +24 -21
- package/dist/permissionRulesWriteCapability.js +2 -2
- package/dist/permissionsAllowGrantCapability.js +2 -2
- package/dist/permissionsDeclaration.d.ts +43 -4
- package/dist/permissionsDeclaration.js +102 -35
- package/dist/pluginHooksWire.d.ts +20 -4
- package/dist/pluginHooksWire.js +101 -60
- package/dist/prepareRefusal.d.ts +9 -0
- package/dist/prepareRefusal.js +90 -0
- package/dist/printInitToolFace.js +2 -2
- package/dist/printModelStatus.js +1 -1
- package/dist/projectMemory.d.ts +32 -0
- package/dist/projectMemory.js +70 -0
- package/dist/promptBlockedCopy.d.ts +2 -1
- package/dist/promptBlockedCopy.js +2 -1
- package/dist/promptDelivery.d.ts +23 -3
- package/dist/promptDelivery.js +169 -30
- package/dist/providerRejection.d.ts +19 -1
- package/dist/providerRejection.js +75 -4
- package/dist/queuedDelivery.d.ts +48 -0
- package/dist/queuedDelivery.js +233 -0
- package/dist/reattachWindow.d.ts +94 -0
- package/dist/reattachWindow.js +127 -0
- package/dist/request/printNotification.d.ts +1 -1
- package/dist/request/printNotification.js +5 -1
- package/dist/request/submissionIdentity.d.ts +37 -0
- package/dist/request/submissionIdentity.js +65 -0
- package/dist/request/taskRequest.d.ts +22 -14
- package/dist/request/taskRequest.js +312 -202
- package/dist/resultFrameKeys.d.ts +1 -0
- package/dist/resultFrameKeys.js +4 -1
- package/dist/resumeRefusalCopy.d.ts +3 -1
- package/dist/resumeRefusalCopy.js +22 -4
- package/dist/retryStatus.d.ts +26 -0
- package/dist/retryStatus.js +133 -28
- package/dist/rewindArchiveCapability.js +2 -2
- package/dist/rewindEngineAction.d.ts +2 -0
- package/dist/rewindEngineAction.js +23 -1
- package/dist/rowKind.d.ts +36 -0
- package/dist/rowKind.js +97 -0
- package/dist/ruleCompileVerdict.d.ts +18 -0
- package/dist/ruleCompileVerdict.js +67 -2
- package/dist/ruleReadings.d.ts +58 -0
- package/dist/ruleReadings.js +132 -0
- package/dist/ruleRefusalSentence.d.ts +8 -0
- package/dist/ruleRefusalSentence.js +64 -0
- package/dist/runCancelContext.d.ts +0 -1
- package/dist/runCancelContext.js +1 -2
- package/dist/runTerminal.d.ts +5 -0
- package/dist/runTerminal.js +52 -17
- package/dist/sandboxWire.d.ts +3 -2
- package/dist/sandboxWire.js +59 -27
- package/dist/scenarioRefusal.d.ts +2 -1
- package/dist/scenarioRefusal.js +6 -6
- package/dist/scenarioSkills.d.ts +20 -0
- package/dist/scenarioSkills.js +72 -0
- package/dist/scenarioWire.d.ts +5 -2
- package/dist/scenarioWire.js +9 -9
- package/dist/sealedKeyCapability.js +2 -2
- package/dist/seam.d.ts +26 -9
- package/dist/seam.js +44 -4
- package/dist/seatContract.d.ts +62 -9
- package/dist/seatContract.js +70 -25
- package/dist/selfOrchestrationDenial.js +1 -1
- package/dist/sessionPolicyCapability.js +2 -2
- package/dist/sessionRulesChildrenReadLive.d.ts +6 -0
- package/dist/sessionRulesChildrenReadLive.js +5 -0
- package/dist/sessionRulesNamespaceFormsCapability.d.ts +12 -0
- package/dist/sessionRulesNamespaceFormsCapability.js +29 -0
- package/dist/sessionSyncFileHistoryCapability.js +2 -2
- package/dist/settingsCredentialKeyPaths.d.ts +8 -0
- package/dist/settingsCredentialKeyPaths.js +274 -0
- package/dist/settingsHooksSalvage.d.ts +1 -0
- package/dist/settingsHooksSalvage.js +7 -1
- package/dist/settingsLayerAdmission.d.ts +4 -0
- package/dist/settingsLayerAdmission.js +16 -0
- package/dist/skillToolListsCapability.js +6 -5
- package/dist/skillsWireCaps.d.ts +14 -3
- package/dist/skillsWireCaps.js +48 -18
- package/dist/slashCommandGate.d.ts +24 -0
- package/dist/slashCommandGate.js +74 -0
- package/dist/slashCommandTable.d.ts +14 -0
- package/dist/slashCommandTable.js +99 -0
- package/dist/sqlEngineCapability.js +2 -2
- package/dist/steerPriorityCapability.js +2 -2
- package/dist/storePostureCapability.js +2 -2
- package/dist/subagent/agentStateDetail.js +1 -1
- package/dist/subagent/engineDelegatedPrompt.d.ts +9 -0
- package/dist/subagent/engineDelegatedPrompt.js +38 -7
- package/dist/subagent/engineRowStopGate.js +2 -2
- package/dist/subagent/engineSubagentResume.js +3 -3
- package/dist/subagent/engineTaskHandleWire.d.ts +1 -0
- package/dist/subagent/engineTaskHandleWire.js +10 -0
- package/dist/subagentContentStore.d.ts +1 -0
- package/dist/subagentContentStore.js +135 -27
- package/dist/submitFailure.d.ts +8 -0
- package/dist/submitFailure.js +17 -0
- package/dist/supportFloor.d.ts +1 -0
- package/dist/supportFloor.js +7 -0
- package/dist/terminationIntent.d.ts +55 -0
- package/dist/terminationIntent.js +352 -0
- package/dist/toolHistoryMismatch.d.ts +8 -0
- package/dist/toolHistoryMismatch.js +37 -6
- package/dist/toolResult.d.ts +13 -3
- package/dist/toolResult.js +158 -9
- package/dist/toolResultContent.d.ts +13 -0
- package/dist/toolResultContent.js +82 -7
- package/dist/toolRoster.d.ts +18 -0
- package/dist/toolRoster.js +64 -0
- package/dist/toolsFlagNames.d.ts +8 -0
- package/dist/toolsFlagNames.js +110 -0
- package/dist/turnFailurePresentation.js +41 -96
- package/dist/usageLimitAutoResume.d.ts +74 -0
- package/dist/usageLimitAutoResume.js +227 -0
- package/dist/userAttachmentEnvelope.js +1 -1
- package/dist/userAttachmentSeat.js +5 -5
- package/dist/userInvokedSkillsCapability.js +2 -2
- package/dist/webSearchBackendCapability.js +2 -2
- package/dist/wireErrorTriage.js +99 -50
- package/dist/wireFailureShape.d.ts +25 -1
- package/dist/wireFailureShape.js +92 -5
- package/dist/wireRefusalCopy.d.ts +75 -18
- package/dist/wireRefusalCopy.js +532 -148
- package/dist/wiringFleetDoctor.d.ts +3 -0
- package/dist/wiringFleetDoctor.js +21 -0
- package/dist/workflow.d.ts +2 -1
- package/dist/workflow.js +38 -1
- package/dist/workflowClient.d.ts +2 -7
- package/dist/workflowsJournalCapability.js +2 -2
- package/dist/writeProtectionCapability.js +2 -2
- package/docs/INTEGRATION-CLIENTS.md +1013 -190
- package/package.json +15 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CompactionStatusReading {
|
|
2
|
+
readonly compacting: boolean;
|
|
3
|
+
readonly since?: number;
|
|
4
|
+
}
|
|
5
|
+
export type CompactionStatusChange = {
|
|
6
|
+
readonly kind: 'opened';
|
|
7
|
+
readonly pass: string;
|
|
8
|
+
readonly since?: number;
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'closed';
|
|
11
|
+
readonly pass: string;
|
|
12
|
+
readonly result?: 'success' | 'failed';
|
|
13
|
+
readonly error?: string;
|
|
14
|
+
};
|
|
15
|
+
export interface CompactionStatusTracker {
|
|
16
|
+
take(input: {} | null | undefined): CompactionStatusChange | null;
|
|
17
|
+
streamEnded(): CompactionStatusChange | null;
|
|
18
|
+
reading(): CompactionStatusReading;
|
|
19
|
+
}
|
|
20
|
+
export interface PrintCompactionStatusFrame {
|
|
21
|
+
readonly type: 'system';
|
|
22
|
+
readonly subtype: 'status';
|
|
23
|
+
readonly status: 'compacting' | null;
|
|
24
|
+
readonly compact_result?: 'success' | 'failed';
|
|
25
|
+
readonly compact_error?: string;
|
|
26
|
+
readonly uuid: string;
|
|
27
|
+
readonly session_id: string;
|
|
28
|
+
}
|
|
29
|
+
export interface PrintCompactionStatusCtx {
|
|
30
|
+
readonly sessionId: string;
|
|
31
|
+
readonly mintUuid: () => string;
|
|
32
|
+
}
|
|
33
|
+
export declare function createCompactionStatusTracker(): CompactionStatusTracker;
|
|
34
|
+
export declare function compactionStatusFrameOf(change: CompactionStatusChange | null | undefined, ctx: PrintCompactionStatusCtx): PrintCompactionStatusFrame | null;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { readOwnDataValue } from './ownKey.js';
|
|
2
|
+
import { snapshotIsSubFlow, snapshotSegmentIdentity } from './adapter/types.js';
|
|
3
|
+
const _printStatusFramePins = [true, true];
|
|
4
|
+
void _printStatusFramePins;
|
|
5
|
+
const CLOSED_PASS_MEMORY = 1024;
|
|
6
|
+
const nonEmpty = (v) => (typeof v === 'string' && v.length > 0 ? v : undefined);
|
|
7
|
+
const own = (o, key) => (typeof o === 'object' && o !== null ? readOwnDataValue(o, key) : undefined);
|
|
8
|
+
function chromeLane(ev) {
|
|
9
|
+
const lane = own(own(ev, 'laneProof'), 'lane');
|
|
10
|
+
if (typeof lane !== 'string' || lane.length === 0)
|
|
11
|
+
return 'unreadable';
|
|
12
|
+
return lane === 'main' ? 'main' : 'other';
|
|
13
|
+
}
|
|
14
|
+
function armLane(m) {
|
|
15
|
+
const snap = snapshotSegmentIdentity(m);
|
|
16
|
+
if (snap === null)
|
|
17
|
+
return 'unreadable';
|
|
18
|
+
return snapshotIsSubFlow(snap) ? 'other' : 'main';
|
|
19
|
+
}
|
|
20
|
+
function openOf(pass, lane, startedAt, trigger) {
|
|
21
|
+
if (lane === 'unreadable')
|
|
22
|
+
return null;
|
|
23
|
+
if (nonEmpty(trigger) === undefined)
|
|
24
|
+
return null;
|
|
25
|
+
return { kind: 'open', pass, main: lane === 'main', ...(typeof startedAt === 'number' && Number.isFinite(startedAt) ? { startedAt } : {}) };
|
|
26
|
+
}
|
|
27
|
+
function parse(input) {
|
|
28
|
+
const plane = own(input, 'plane');
|
|
29
|
+
if (plane === 'chrome') {
|
|
30
|
+
const ev = own(input, 'event');
|
|
31
|
+
return typeof ev === 'object' && ev !== null ? parseChrome(ev) : null;
|
|
32
|
+
}
|
|
33
|
+
if (plane === 'transcript') {
|
|
34
|
+
const msg = own(input, 'message');
|
|
35
|
+
return typeof msg === 'object' && msg !== null ? parseMessage(msg) : null;
|
|
36
|
+
}
|
|
37
|
+
if (own(input, 'kind') !== undefined)
|
|
38
|
+
return parseChrome(input);
|
|
39
|
+
return parseMessage(input);
|
|
40
|
+
}
|
|
41
|
+
function parseChrome(ev) {
|
|
42
|
+
const kind = own(ev, 'kind');
|
|
43
|
+
const pass = nonEmpty(own(ev, 'pass'));
|
|
44
|
+
if (pass === undefined)
|
|
45
|
+
return null;
|
|
46
|
+
if (kind === 'compaction_started')
|
|
47
|
+
return openOf(pass, chromeLane(ev), own(ev, 'startedAt'), own(ev, 'trigger'));
|
|
48
|
+
if (kind === 'compaction_outcome') {
|
|
49
|
+
const outcome = nonEmpty(own(ev, 'outcome'));
|
|
50
|
+
const reason = nonEmpty(own(ev, 'reason'));
|
|
51
|
+
return { kind: 'close-outcome', pass, ...(outcome !== undefined ? { outcome } : {}), ...(reason !== undefined ? { reason } : {}) };
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
function parseMessage(m) {
|
|
56
|
+
const type = own(m, 'type');
|
|
57
|
+
if (type === 'system') {
|
|
58
|
+
if (own(m, 'subtype') !== 'compact_boundary')
|
|
59
|
+
return null;
|
|
60
|
+
const pass = nonEmpty(own(own(m, 'compact_metadata'), '_sema_pass'));
|
|
61
|
+
return pass === undefined ? null : { kind: 'close-landed', pass };
|
|
62
|
+
}
|
|
63
|
+
const pass = nonEmpty(own(m, 'pass'));
|
|
64
|
+
if (pass === undefined)
|
|
65
|
+
return null;
|
|
66
|
+
if (type === 'compaction_started')
|
|
67
|
+
return openOf(pass, armLane(m), own(m, 'startedAt'), own(m, 'trigger'));
|
|
68
|
+
if (type === 'compaction_outcome') {
|
|
69
|
+
const outcome = nonEmpty(own(m, 'outcome'));
|
|
70
|
+
const reason = nonEmpty(own(m, 'reason'));
|
|
71
|
+
return { kind: 'close-outcome', pass, ...(outcome !== undefined ? { outcome } : {}), ...(reason !== undefined ? { reason } : {}) };
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
export function createCompactionStatusTracker() {
|
|
76
|
+
const open = new Map();
|
|
77
|
+
const closed = new Set();
|
|
78
|
+
const remember = (pass) => {
|
|
79
|
+
closed.add(pass);
|
|
80
|
+
if (closed.size > CLOSED_PASS_MEMORY) {
|
|
81
|
+
const oldest = closed.values().next().value;
|
|
82
|
+
if (oldest !== undefined)
|
|
83
|
+
closed.delete(oldest);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const mainOpen = () => {
|
|
87
|
+
let n = 0;
|
|
88
|
+
for (const e of open.values())
|
|
89
|
+
if (e.main)
|
|
90
|
+
n++;
|
|
91
|
+
return n;
|
|
92
|
+
};
|
|
93
|
+
const since = () => {
|
|
94
|
+
let min;
|
|
95
|
+
for (const e of open.values())
|
|
96
|
+
if (e.main && e.startedAt !== undefined && (min === undefined || e.startedAt < min))
|
|
97
|
+
min = e.startedAt;
|
|
98
|
+
return min;
|
|
99
|
+
};
|
|
100
|
+
const reading = () => {
|
|
101
|
+
if (mainOpen() === 0)
|
|
102
|
+
return { compacting: false };
|
|
103
|
+
const s = since();
|
|
104
|
+
return { compacting: true, ...(s !== undefined ? { since: s } : {}) };
|
|
105
|
+
};
|
|
106
|
+
return {
|
|
107
|
+
take(input) {
|
|
108
|
+
try {
|
|
109
|
+
if (typeof input !== 'object' || input === null)
|
|
110
|
+
return null;
|
|
111
|
+
const p = parse(input);
|
|
112
|
+
if (p === null)
|
|
113
|
+
return null;
|
|
114
|
+
if (p.kind === 'open') {
|
|
115
|
+
if (open.has(p.pass) || closed.has(p.pass))
|
|
116
|
+
return null;
|
|
117
|
+
const before = mainOpen();
|
|
118
|
+
open.set(p.pass, { main: p.main === true, ...(p.startedAt !== undefined ? { startedAt: p.startedAt } : {}) });
|
|
119
|
+
if (before === 0 && p.main === true) {
|
|
120
|
+
const s = since();
|
|
121
|
+
return { kind: 'opened', pass: p.pass, ...(s !== undefined ? { since: s } : {}) };
|
|
122
|
+
}
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
const entry = open.get(p.pass);
|
|
126
|
+
remember(p.pass);
|
|
127
|
+
if (entry === undefined)
|
|
128
|
+
return null;
|
|
129
|
+
open.delete(p.pass);
|
|
130
|
+
if (!entry.main || mainOpen() > 0)
|
|
131
|
+
return null;
|
|
132
|
+
if (p.kind === 'close-landed')
|
|
133
|
+
return { kind: 'closed', pass: p.pass, result: 'success' };
|
|
134
|
+
if (p.outcome === 'failed')
|
|
135
|
+
return { kind: 'closed', pass: p.pass, result: 'failed', ...(p.reason !== undefined ? { error: p.reason } : {}) };
|
|
136
|
+
return { kind: 'closed', pass: p.pass };
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
streamEnded() {
|
|
143
|
+
try {
|
|
144
|
+
let lastMain;
|
|
145
|
+
for (const [pass, e] of open) {
|
|
146
|
+
if (e.main)
|
|
147
|
+
lastMain = pass;
|
|
148
|
+
remember(pass);
|
|
149
|
+
}
|
|
150
|
+
const wasCompacting = lastMain !== undefined;
|
|
151
|
+
open.clear();
|
|
152
|
+
return wasCompacting ? { kind: 'closed', pass: lastMain } : null;
|
|
153
|
+
}
|
|
154
|
+
catch {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
reading() {
|
|
159
|
+
try {
|
|
160
|
+
return reading();
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
return { compacting: false };
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
export function compactionStatusFrameOf(change, ctx) {
|
|
169
|
+
try {
|
|
170
|
+
if (typeof change !== 'object' || change === null)
|
|
171
|
+
return null;
|
|
172
|
+
const sessionId = nonEmpty(own(ctx, 'sessionId'));
|
|
173
|
+
const mintUuid = own(ctx, 'mintUuid');
|
|
174
|
+
if (sessionId === undefined || typeof mintUuid !== 'function')
|
|
175
|
+
return null;
|
|
176
|
+
const kind = own(change, 'kind');
|
|
177
|
+
if (kind === 'opened')
|
|
178
|
+
return { type: 'system', subtype: 'status', status: 'compacting', uuid: String(mintUuid()), session_id: sessionId };
|
|
179
|
+
if (kind !== 'closed')
|
|
180
|
+
return null;
|
|
181
|
+
const result = own(change, 'result');
|
|
182
|
+
const error = result === 'failed' ? nonEmpty(own(change, 'error')) : undefined;
|
|
183
|
+
return {
|
|
184
|
+
type: 'system',
|
|
185
|
+
subtype: 'status',
|
|
186
|
+
status: null,
|
|
187
|
+
...(result === 'success' || result === 'failed' ? { compact_result: result } : {}),
|
|
188
|
+
...(error !== undefined ? { compact_error: error } : {}),
|
|
189
|
+
uuid: String(mintUuid()),
|
|
190
|
+
session_id: sessionId,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
catch {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
}
|
package/dist/coreValuePorts.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export interface AllowDenyPolicyOptionsView {
|
|
|
16
16
|
deny?: string[];
|
|
17
17
|
onInvalidName?: 'throw' | 'skip';
|
|
18
18
|
onInvalidNameIssue?: (issue: AllowDenyInvalidNameIssueView) => void;
|
|
19
|
-
scope?: 'grant' | 'narrowing';
|
|
20
19
|
}
|
|
21
20
|
export interface AllowDenyInvalidNameIssueView {
|
|
22
21
|
entry: string;
|
|
@@ -118,6 +117,13 @@ export type McpToolAxesReadView = {
|
|
|
118
117
|
readonly ok: false;
|
|
119
118
|
readonly problem: string;
|
|
120
119
|
};
|
|
120
|
+
export type McpToolFacesReadView = {
|
|
121
|
+
readonly ok: true;
|
|
122
|
+
readonly faces?: Readonly<Record<string, object>>;
|
|
123
|
+
} | {
|
|
124
|
+
readonly ok: false;
|
|
125
|
+
readonly problem: string;
|
|
126
|
+
};
|
|
121
127
|
export interface CoreValuePorts {
|
|
122
128
|
resolveAutonomousLoopPrompt: (prompt: string, opts?: AutonomousLoopPromptOptionsView) => string | null;
|
|
123
129
|
loosenReasons: (prior: SessionPermissionRules, next: SessionPermissionRules) => string[];
|
|
@@ -141,8 +147,10 @@ export interface CoreValuePorts {
|
|
|
141
147
|
judgeRuleToolName(name: string, roster: ReadonlySet<string>): RuleToolNameVerdictView;
|
|
142
148
|
readRuleEntry(raw: {} | null | undefined, behavior: 'allow' | 'deny', roster?: ReadonlySet<string>): RuleEntryReadingView;
|
|
143
149
|
readMcpToolAxes(declared: {} | null | undefined): McpToolAxesReadView;
|
|
150
|
+
ANTHROPIC_DEFAULT_BASE_URL: string;
|
|
151
|
+
readToolFaces(declared: {} | null | undefined): McpToolFacesReadView;
|
|
144
152
|
}
|
|
145
|
-
export declare const CORE_VALUE_PORT_NAMES: readonly ["resolveAutonomousLoopPrompt", "loosenReasons", "combinePolicies", "createAllowDenyPolicy", "MCP_NAMESPACE", "protocolOf", "ruleToolGrammarOf", "validatePermissionRules", "mintNamespacePrefix", "compileAllowList", "routeKeyOf", "joinRequestUrl", "resolveRouteCredential", "adjudicateModelRoute", "routePairingStatus", "judgeRuleToolName", "readRuleEntry", "readMcpToolAxes"];
|
|
153
|
+
export declare const CORE_VALUE_PORT_NAMES: readonly ["resolveAutonomousLoopPrompt", "loosenReasons", "combinePolicies", "createAllowDenyPolicy", "MCP_NAMESPACE", "protocolOf", "ruleToolGrammarOf", "validatePermissionRules", "mintNamespacePrefix", "compileAllowList", "routeKeyOf", "joinRequestUrl", "resolveRouteCredential", "adjudicateModelRoute", "routePairingStatus", "judgeRuleToolName", "readRuleEntry", "readMcpToolAxes", "ANTHROPIC_DEFAULT_BASE_URL", "readToolFaces"];
|
|
146
154
|
export type CoreValuePortName = (typeof CORE_VALUE_PORT_NAMES)[number];
|
|
147
155
|
export declare function installCoreValuePorts(ports: Partial<CoreValuePorts> | null): () => void;
|
|
148
156
|
export declare function hasCoreValuePorts(): boolean;
|
|
@@ -170,3 +178,5 @@ export declare function routePairingStatus(brain: {
|
|
|
170
178
|
}, model: RouteModelView, perModelAuth?: PerModelAuthView): RoutePairingStatusView | undefined;
|
|
171
179
|
export declare function readRuleEntry(raw: {} | null | undefined, behavior: 'allow' | 'deny', roster?: ReadonlySet<string>): RuleEntryReadingView | undefined;
|
|
172
180
|
export declare function readMcpToolAxes(declared: {} | null | undefined): McpToolAxesReadView | undefined;
|
|
181
|
+
export declare function anthropicDefaultBaseUrl(): string | undefined;
|
|
182
|
+
export declare function readToolFaces(declared: {} | null | undefined): McpToolFacesReadView | undefined;
|
package/dist/coreValuePorts.js
CHANGED
|
@@ -17,6 +17,8 @@ export const CORE_VALUE_PORT_NAMES = Object.freeze([
|
|
|
17
17
|
'judgeRuleToolName',
|
|
18
18
|
'readRuleEntry',
|
|
19
19
|
'readMcpToolAxes',
|
|
20
|
+
'ANTHROPIC_DEFAULT_BASE_URL',
|
|
21
|
+
'readToolFaces',
|
|
20
22
|
]);
|
|
21
23
|
let installed = null;
|
|
22
24
|
export function installCoreValuePorts(ports) {
|
|
@@ -109,3 +111,10 @@ export function readMcpToolAxes(declared) {
|
|
|
109
111
|
const fn = port('readMcpToolAxes');
|
|
110
112
|
return fn === undefined ? undefined : fn(declared);
|
|
111
113
|
}
|
|
114
|
+
export function anthropicDefaultBaseUrl() {
|
|
115
|
+
return port('ANTHROPIC_DEFAULT_BASE_URL');
|
|
116
|
+
}
|
|
117
|
+
export function readToolFaces(declared) {
|
|
118
|
+
const fn = port('readToolFaces');
|
|
119
|
+
return fn === undefined ? undefined : fn(declared);
|
|
120
|
+
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { corruptStoredRowContent, corruptStoredRowWhere, scenarioDenyFromError, scenarioNotAllowedContent } from './wireErrorTriage.js';
|
|
2
2
|
import { checkpointUnsupportedVersionContent, checkpointUnsupportedVersionFromError, parkedResumeStartupContent, parkedResumeStartupFromError, resumePolicyBlockContent, resumePolicyBlockFromError, } from './resumeRefusalCopy.js';
|
|
3
3
|
import { askGoneContent, askGoneFromError, decideParkMovedContent, decideParkMovedFromError } from './decideReceipt.js';
|
|
4
|
-
import {
|
|
5
|
-
import { DECISION_ANSWER_INVALID_CONTENT, decisionConflictOf } from './hitl/decisionConflict.js';
|
|
4
|
+
import { fieldLimitRefusalContent, fieldLimitRefusalFromError } from './wireRefusalCopy.js';
|
|
5
|
+
import { DECISION_ANSWER_INVALID_CONTENT, decisionConflictOf, decisionGrantChangedContent } from './hitl/decisionConflict.js';
|
|
6
6
|
export function decideFailureNote(err, decision) {
|
|
7
7
|
const where = corruptStoredRowWhere(err);
|
|
8
8
|
const fold = resumePolicyBlockFromError(err);
|
|
9
9
|
const startup = parkedResumeStartupFromError(err, decision);
|
|
10
10
|
const moved = decideParkMovedFromError(err);
|
|
11
|
-
const bucket =
|
|
11
|
+
const bucket = fieldLimitRefusalFromError(err);
|
|
12
12
|
const scenario = scenarioDenyFromError(err);
|
|
13
13
|
const unsupported = checkpointUnsupportedVersionFromError(err);
|
|
14
14
|
const gone = askGoneFromError(err);
|
|
15
|
-
const
|
|
15
|
+
const conflict = decisionConflictOf(err);
|
|
16
|
+
const answerInvalid = conflict === 'answer_invalid';
|
|
16
17
|
return ((where === undefined ? '' : ` — ${corruptStoredRowContent(where)}`) +
|
|
17
18
|
(fold === null ? '' : ` — ${resumePolicyBlockContent(fold)}`) +
|
|
18
|
-
(bucket === null ? '' : ` — ${
|
|
19
|
+
(bucket === null ? '' : ` — ${fieldLimitRefusalContent(bucket)}`) +
|
|
19
20
|
(scenario === null ? '' : ` — ${scenarioNotAllowedContent(scenario, undefined, 'resumed_work')}`) +
|
|
20
21
|
(startup === null ? '' : ` — ${parkedResumeStartupContent(startup)}`) +
|
|
21
22
|
(moved === null ? '' : ` — ${decideParkMovedContent(moved)}`) +
|
|
22
23
|
(unsupported === null ? '' : ` — ${checkpointUnsupportedVersionContent(unsupported)}`) +
|
|
23
24
|
(gone === null ? '' : ` — ${askGoneContent(gone)}`) +
|
|
24
|
-
(answerInvalid ? ` — ${DECISION_ANSWER_INVALID_CONTENT}` : '')
|
|
25
|
+
(answerInvalid ? ` — ${DECISION_ANSWER_INVALID_CONTENT}` : '') +
|
|
26
|
+
(conflict === 'grant_changed' ? ` — ${decisionGrantChangedContent()}` : ''));
|
|
25
27
|
}
|
package/dist/decideReceipt.js
CHANGED
|
@@ -3,7 +3,7 @@ import { readOwnDataValue } from './ownKey.js';
|
|
|
3
3
|
import { resumeReopenFromError } from './hitl/suspendedReopen.js';
|
|
4
4
|
import { ASK_GONE, DECIDE_CLAIM_LOST, CONFLICT_NOT_RESUMABLE, GATE_NOT_TOOL_APPROVAL, DECIDE_GATE_MOVED, DECIDE_NOT_PARKED, DECIDE_WORKFLOW_HOST_UNKNOWN, DECIDE_WORKFLOW_LANE_CODES, DECIDE_WORKFLOW_PARK_FORKED, DECIDE_WORKFLOW_PARKS_UNREADABLE, DECIDE_WORKFLOW_REMEMBER_UNSUPPORTED, isDecideParkMovedCode, } from './engineErrorCodes.js';
|
|
5
5
|
import { effectiveWireErrorCode } from './wireErrorTriage.js';
|
|
6
|
-
import { readErrorString, readErrorStrictStringList, readThrownExtra } from './wireFailureShape.js';
|
|
6
|
+
import { isSlotCarrier, readErrorString, readErrorStrictStringList, readThrownExtra } from './wireFailureShape.js';
|
|
7
7
|
import { isCrashConvergedCause } from './hitl/crashConverged.js';
|
|
8
8
|
import { askRowEndingCauseFor } from './hitl/approvalEndingCause.js';
|
|
9
9
|
const STATUS_RESUMING = 'resuming';
|
|
@@ -166,7 +166,7 @@ function askGoneRawCause(e) {
|
|
|
166
166
|
return undefined;
|
|
167
167
|
}
|
|
168
168
|
export function askGoneFromError(e) {
|
|
169
|
-
if (
|
|
169
|
+
if (!isSlotCarrier(e))
|
|
170
170
|
return null;
|
|
171
171
|
if (effectiveWireErrorCode(e) !== ASK_GONE)
|
|
172
172
|
return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { engineWireTargetBaseUrl } from './engineWireTarget.js';
|
|
2
2
|
import { createEngineCapReader, unreadableReadingDetail } from './engineCapReader.js';
|
|
3
3
|
import { ownDataField } from './ownKey.js';
|
|
4
4
|
import { capForDisplay } from './fleetTaskDesc.js';
|
|
@@ -44,7 +44,7 @@ const reader = createEngineCapReader({
|
|
|
44
44
|
name: 'deviceExecutor.management',
|
|
45
45
|
project: projectDeviceExecutorManagementCapability,
|
|
46
46
|
});
|
|
47
|
-
export function observedDeviceExecutorManagement(baseUrl =
|
|
47
|
+
export function observedDeviceExecutorManagement(baseUrl = engineWireTargetBaseUrl()) {
|
|
48
48
|
return reader.observed(baseUrl);
|
|
49
49
|
}
|
|
50
50
|
export function deviceManagementVerbsAvailable(reading) {
|
|
@@ -2,7 +2,7 @@ import { SETTINGS_DEVICE_CODE_TTL_SECONDS, SETTINGS_DEVICE_POLL_INTERVAL_SECONDS
|
|
|
2
2
|
function positiveSecondsOf(reading, key) {
|
|
3
3
|
try {
|
|
4
4
|
const desc = Object.getOwnPropertyDescriptor(reading, key);
|
|
5
|
-
if (desc === undefined || !('value'
|
|
5
|
+
if (desc === undefined || !Object.hasOwn(desc, 'value'))
|
|
6
6
|
return undefined;
|
|
7
7
|
const v = desc.value;
|
|
8
8
|
return typeof v === 'number' && Number.isFinite(v) && v > 0 ? v : undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function refuseBadDisableSkills(v: unknown, who: string): void;
|
|
2
|
-
export declare function refuseDisableSkillsConflict(disableSkills: unknown, skills: unknown, agents: unknown, who: string): void;
|
|
2
|
+
export declare function refuseDisableSkillsConflict(disableSkills: unknown, skills: unknown, agents: unknown, who: string, userInvokedSkills?: readonly string[] | null): void;
|
|
3
3
|
type DisableSkillsWithheldCause = 'not_reported' | 'unsupported' | 'unprobed' | 'unreadable';
|
|
4
4
|
export type DisableSkillsDeclaration = {
|
|
5
5
|
readonly field: {
|
|
@@ -17,14 +17,15 @@ export function refuseBadDisableSkills(v, who) {
|
|
|
17
17
|
}
|
|
18
18
|
const nonEmptyArray = (v) => Array.isArray(v) && v.length > 0;
|
|
19
19
|
const anyAgentCarriesSkills = (agents) => Array.isArray(agents) && agents.some((a) => typeof a === 'object' && a !== null && nonEmptyArray(a.skills));
|
|
20
|
-
export function refuseDisableSkillsConflict(disableSkills, skills, agents, who) {
|
|
20
|
+
export function refuseDisableSkillsConflict(disableSkills, skills, agents, who, userInvokedSkills) {
|
|
21
21
|
if (disableSkills !== true)
|
|
22
22
|
return;
|
|
23
23
|
const inSkills = nonEmptyArray(skills);
|
|
24
24
|
const inAgents = anyAgentCarriesSkills(agents);
|
|
25
|
-
|
|
25
|
+
const inNamed = nonEmptyArray(userInvokedSkills);
|
|
26
|
+
if (!inSkills && !inAgents && !inNamed)
|
|
26
27
|
return;
|
|
27
|
-
const which = inSkills
|
|
28
|
+
const which = [inSkills ? 'skills' : '', inAgents ? 'agents[].skills' : '', inNamed ? 'userInvokedSkills' : ''].filter((x) => x !== '').join(' 与 ');
|
|
28
29
|
throw new TypeError(`${who}: disableSkills: true(这一发一只技能都不装)与非空的 ${which} 同在 —— 二选一:要关技能就别交技能,要交技能就别带 disableSkills。` +
|
|
29
30
|
'上游对这一组合同样拒收(在任何东西跑起来之前);本层在装配前拒,不让它走一次往返。错误文本只报键名,不回显技能名。');
|
|
30
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const REDACTION_MARKER_PREFIX = "\u00ABredacted";
|
|
2
2
|
export declare function looksLikeKnownSecret(s: string): boolean;
|
|
3
3
|
export declare function isDiagnosticValueWord(value: string): boolean;
|
|
4
|
+
export declare function percentBoundaryReadingOf(text: string): string;
|
|
4
5
|
export declare function washCredentials(text: string): string;
|
|
5
6
|
export type DisplayMark = 'escape' | 'dot' | 'space';
|
|
6
7
|
export interface DisplayFace {
|