@sema-agent/client-core 0.98.0 → 0.100.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 +376 -0
- package/README.md +61 -35
- package/dist/adapt/arms.js +120 -55
- package/dist/adapt/panelTasks.d.ts +3 -2
- package/dist/adapt/panelTasks.js +34 -11
- package/dist/adapt/textStream.d.ts +1 -1
- package/dist/adapt/textStream.js +51 -28
- package/dist/adapter/activeRunSelfHeal.d.ts +11 -3
- package/dist/adapter/activeRunSelfHeal.js +210 -294
- package/dist/adapter/downstream/eventToSdkMessage.d.ts +25 -6
- package/dist/adapter/downstream/eventToSdkMessage.js +176 -12
- package/dist/adapter/downstream/terminalToSdkResult.js +10 -0
- package/dist/adapter/downstream/wiringManifestView.d.ts +3 -1
- package/dist/adapter/downstream/wiringManifestView.js +1 -0
- package/dist/adapter/runStream.js +82 -40
- package/dist/adapter/types.d.ts +2 -0
- package/dist/adapter/types.js +2 -1
- package/dist/agentSession/engineSessionBackgroundStop.js +16 -8
- package/dist/agentsWireCaps.d.ts +7 -3
- package/dist/agentsWireCaps.js +133 -39
- package/dist/cloudConfigWireCaps.d.ts +10 -1
- package/dist/cloudConfigWireCaps.js +181 -65
- package/dist/compactionStatus.d.ts +34 -0
- package/dist/compactionStatus.js +196 -0
- package/dist/controlRouter.d.ts +4 -2
- package/dist/controlRouter.js +39 -51
- package/dist/coreValuePorts.d.ts +26 -1
- package/dist/coreValuePorts.js +10 -0
- package/dist/corruptSessionCopy.d.ts +2 -1
- package/dist/corruptSessionCopy.js +3 -3
- package/dist/decideFailureNote.js +3 -3
- package/dist/declared/supportFloorDeclared.js +1 -1
- package/dist/detachWire.js +3 -2
- package/dist/devicesFace.d.ts +34 -0
- package/dist/devicesFace.js +90 -0
- package/dist/displayUntrusted.d.ts +1 -0
- package/dist/displayUntrusted.js +153 -5
- package/dist/engineAgentPanelStore.d.ts +14 -4
- package/dist/engineAgentPanelStore.js +14 -0
- package/dist/engineCapReader.d.ts +2 -1
- package/dist/engineCapReader.js +7 -5
- package/dist/engineCapsCache.d.ts +8 -0
- package/dist/engineCapsCache.js +59 -6
- package/dist/engineCapsChange.d.ts +2 -0
- package/dist/engineCapsChange.js +9 -0
- package/dist/engineErrorCodes.d.ts +11 -2
- package/dist/engineErrorCodes.js +11 -12
- package/dist/engineRowRef.js +4 -0
- package/dist/engineSessionMessages.d.ts +1 -0
- package/dist/engineSessionMessages.js +7 -1
- package/dist/engineTargetSeat.d.ts +27 -0
- package/dist/engineTargetSeat.js +199 -0
- package/dist/engineToolDirectory.d.ts +3 -0
- package/dist/engineToolDirectory.js +4 -2
- package/dist/engineWireFor.js +3 -8
- package/dist/env/uiLanguage.d.ts +2 -1
- package/dist/env/uiLanguage.js +3 -2
- package/dist/eventLeg.d.ts +7 -5
- package/dist/eventLeg.js +68 -49
- package/dist/fileHistoryCaptureCapability.d.ts +2 -4
- package/dist/fileHistoryCaptureCapability.js +12 -22
- package/dist/fileHistoryLegNotice.d.ts +2 -1
- package/dist/fileHistoryLegNotice.js +3 -3
- package/dist/frameBinding.d.ts +3 -0
- package/dist/frameBinding.js +12 -0
- package/dist/gateOutcome.js +16 -2
- package/dist/gateVocabulary.d.ts +8 -7
- package/dist/gateVocabulary.js +71 -73
- package/dist/generated/engineFactTables.d.ts +18 -1
- package/dist/generated/engineFactTables.js +56 -0
- package/dist/generated/engineNoticeTables.js +12 -3
- package/dist/generated/settingsSchemaFns.d.ts +18 -0
- package/dist/generated/settingsSchemaFns.js +70 -0
- package/dist/generated/settingsSchemaHooksClassifier.d.ts +2 -0
- package/dist/generated/settingsSchemaHooksClassifier.js +254 -0
- package/dist/generated/settingsSchemaMcpRequestEntry.d.ts +1 -0
- package/dist/generated/settingsSchemaMcpRequestEntry.js +162 -0
- package/dist/generated/settingsSchemaTables.d.ts +2 -0
- package/dist/generated/settingsSchemaTables.js +9 -0
- package/dist/generated/settingsSchemaTypes.d.ts +133 -0
- package/dist/generated/settingsSchemaTypes.js +1 -0
- package/dist/hitl/allowRuleShadow.d.ts +2 -1
- package/dist/hitl/allowRuleShadow.js +18 -15
- package/dist/hitl/approvalCardReasons.d.ts +3 -2
- package/dist/hitl/approvalCardReasons.js +29 -30
- package/dist/hitl/approvalHolds.d.ts +17 -0
- package/dist/hitl/approvalHolds.js +114 -29
- package/dist/hitl/askClassPair.d.ts +2 -2
- package/dist/hitl/askClassPair.js +16 -0
- package/dist/hitl/askGateWire.js +2 -1
- package/dist/hitl/askSettlementLine.d.ts +14 -4
- package/dist/hitl/askSettlementLine.js +67 -47
- package/dist/hitl/attributionLadder.d.ts +23 -0
- package/dist/hitl/attributionLadder.js +67 -0
- package/dist/hitl/automaticAnswerVerdict.d.ts +2 -1
- package/dist/hitl/automaticAnswerVerdict.js +8 -8
- package/dist/hitl/crashConvergedNotice.d.ts +5 -4
- package/dist/hitl/crashConvergedNotice.js +28 -41
- package/dist/hitl/decisionLedger.d.ts +55 -0
- package/dist/hitl/decisionLedger.js +156 -0
- package/dist/hitl/decisionRefusal.d.ts +1 -0
- package/dist/hitl/decisionRefusal.js +1 -1
- package/dist/hitl/decisionSend.d.ts +113 -0
- package/dist/hitl/decisionSend.js +579 -0
- package/dist/hitl/frameRouter.js +7 -8
- package/dist/hitl/hitlBridge.d.ts +1 -0
- package/dist/hitl/hitlBridge.js +21 -9
- package/dist/hitl/persistedRulesWire.d.ts +6 -5
- package/dist/hitl/persistedRulesWire.js +55 -73
- package/dist/hitl/planReviewWire.d.ts +5 -0
- package/dist/hitl/planReviewWire.js +53 -76
- package/dist/hitl/sessionPolicyDeliverable.d.ts +2 -0
- package/dist/hitl/sessionPolicyDeliverable.js +49 -9
- package/dist/hitl/sessionPolicyWire.d.ts +2 -1
- package/dist/hitl/sessionPolicyWire.js +23 -24
- package/dist/hitl/suspendedReopen.d.ts +2 -1
- package/dist/hitl/suspendedReopen.js +7 -10
- package/dist/hitl/toolApprovalWire.d.ts +17 -5
- package/dist/hitl/toolApprovalWire.js +120 -147
- package/dist/hooksWireCaps.js +145 -56
- package/dist/host.d.ts +21 -0
- package/dist/hostTurnSettings.d.ts +110 -0
- package/dist/hostTurnSettings.js +692 -0
- package/dist/humanTurn.d.ts +15 -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 +713 -0
- package/dist/i18n/messages.en.js +713 -0
- package/dist/i18n/messages.zh.js +854 -1
- package/dist/index.d.ts +45 -13
- package/dist/index.js +27 -9
- package/dist/inheritEnvCapability.d.ts +4 -2
- package/dist/inheritEnvCapability.js +12 -5
- package/dist/inheritEnvWire.d.ts +3 -2
- package/dist/inheritEnvWire.js +14 -16
- package/dist/injectionLaneNotice.d.ts +5 -0
- package/dist/injectionLaneNotice.js +46 -0
- package/dist/interactiveHalt.js +17 -6
- package/dist/liveModelCatalog.d.ts +2 -1
- package/dist/liveModelCatalog.js +14 -8
- package/dist/mcpPanel.d.ts +10 -1
- package/dist/mcpPanel.js +42 -13
- package/dist/mcpProbeCapability.d.ts +2 -1
- package/dist/mcpProbeCapability.js +7 -11
- package/dist/mcpProbeWire.d.ts +3 -1
- package/dist/mcpProbeWire.js +5 -0
- package/dist/mcpReconnect.js +2 -2
- package/dist/mcpToolToggles.d.ts +6 -0
- package/dist/mcpToolToggles.js +46 -0
- package/dist/mcpWireCaps.d.ts +43 -3
- package/dist/mcpWireCaps.js +194 -59
- package/dist/mcpWireTransport.d.ts +4 -0
- package/dist/mcpWireTransport.js +18 -0
- package/dist/memoryEntriesWire.js +5 -10
- package/dist/model/onboardJudgement.d.ts +93 -0
- package/dist/model/onboardJudgement.js +415 -0
- package/dist/model/tierVocabulary.d.ts +2 -0
- package/dist/model/tierVocabulary.js +17 -5
- package/dist/modelCapabilityProbe.d.ts +65 -0
- package/dist/modelCapabilityProbe.js +601 -0
- package/dist/modelIdentityResolvability.d.ts +5 -0
- package/dist/modelIdentityResolvability.js +49 -22
- package/dist/ownKey.d.ts +33 -0
- package/dist/ownKey.js +109 -0
- package/dist/panelReduce.d.ts +11 -1
- package/dist/panelReduce.js +95 -16
- package/dist/panelStateHolder.d.ts +1 -0
- package/dist/panelStateHolder.js +10 -1
- package/dist/permissionRuleIssue.d.ts +2 -1
- package/dist/permissionRuleIssue.js +23 -20
- package/dist/permissionRulesWriteCapability.d.ts +2 -1
- package/dist/permissionRulesWriteCapability.js +8 -6
- package/dist/pluginHooksWire.d.ts +46 -3
- package/dist/pluginHooksWire.js +220 -12
- package/dist/prepareRefusal.d.ts +8 -0
- package/dist/prepareRefusal.js +72 -0
- package/dist/printModelStatus.d.ts +63 -0
- package/dist/printModelStatus.js +155 -0
- package/dist/request/taskRequest.d.ts +16 -10
- package/dist/request/taskRequest.js +195 -58
- package/dist/resumeRefusalCopy.d.ts +14 -9
- package/dist/resumeRefusalCopy.js +89 -144
- package/dist/retryStatus.d.ts +55 -0
- package/dist/retryStatus.js +155 -19
- package/dist/ruleRefusalSentence.d.ts +4 -0
- package/dist/ruleRefusalSentence.js +58 -0
- package/dist/sandboxWire.d.ts +2 -1
- package/dist/sandboxWire.js +55 -21
- package/dist/scenarioRefusal.d.ts +10 -0
- package/dist/scenarioRefusal.js +111 -0
- package/dist/seam.d.ts +48 -9
- package/dist/seam.js +54 -5
- package/dist/seatContract.d.ts +272 -14
- package/dist/seatContract.js +711 -23
- 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 -1
- package/dist/sessionPolicyCapability.js +8 -6
- package/dist/settingsCredentialKeyPaths.d.ts +8 -0
- package/dist/settingsCredentialKeyPaths.js +219 -0
- package/dist/settingsHooksSalvage.d.ts +44 -0
- package/dist/settingsHooksSalvage.js +211 -0
- package/dist/skillToolListsCapability.d.ts +2 -1
- package/dist/skillToolListsCapability.js +8 -6
- package/dist/skillsWireCaps.d.ts +0 -3
- package/dist/skillsWireCaps.js +1 -2
- package/dist/sseIdleTriage.js +3 -2
- package/dist/subagent/engineSubagentResume.js +15 -9
- package/dist/subagentContentStore.d.ts +4 -0
- package/dist/subagentContentStore.js +157 -27
- package/dist/toolHistoryMismatch.js +3 -2
- package/dist/toolRoster.d.ts +3 -2
- package/dist/toolRoster.js +21 -20
- package/dist/toolsFlagNames.d.ts +8 -0
- package/dist/toolsFlagNames.js +110 -0
- package/dist/turnFailurePresentation.d.ts +12 -1
- package/dist/turnFailurePresentation.js +220 -15
- 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 -1
- package/dist/userInvokedSkillsCapability.js +31 -7
- package/dist/wireErrorTriage.d.ts +7 -0
- package/dist/wireErrorTriage.js +23 -1
- package/dist/wireFailureShape.js +2 -1
- package/dist/wireRefusalCopy.d.ts +62 -16
- package/dist/wireRefusalCopy.js +307 -148
- package/dist/workflowsJournalCapability.d.ts +2 -1
- package/dist/workflowsJournalCapability.js +8 -6
- package/docs/INTEGRATION-CLIENTS.md +951 -42
- package/package.json +5 -5
package/dist/wireErrorTriage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readBlockedBy, readErrorNumber, readErrorString, readErrorStringList, readThrownSlot, thrownIsInstanceOf, THROWN_SLOT_UNREADABLE, WIRE_FAILURE_UNRENDERABLE_TEXT, } from './wireFailureShape.js';
|
|
1
|
+
import { PROTOCOL_ERROR_NAME, protocolErrorNameOf, readBlockedBy, readErrorNumber, readErrorString, readErrorStringList, readThrownSlot, readThrownStatusSlot, thrownIsInstanceOf, THROWN_SLOT_UNREADABLE, WIRE_FAILURE_UNRENDERABLE_TEXT, } from './wireFailureShape.js';
|
|
2
2
|
import { capForDisplay, escapeDisplayControlChars } from './fleetTaskDesc.js';
|
|
3
3
|
import { readOwnDataValue } from './ownKey.js';
|
|
4
4
|
import { fleetLeaseUnavailableFromError } from './wireRefusalCopy.js';
|
|
@@ -76,6 +76,28 @@ export function effectiveWireErrorCode(err) {
|
|
|
76
76
|
const outer = typeof outerRaw === 'string' && outerRaw.length > 0 ? outerRaw : undefined;
|
|
77
77
|
return foldedWireErrorCode(err, outer);
|
|
78
78
|
}
|
|
79
|
+
export function isNotFoundFailure(e) {
|
|
80
|
+
try {
|
|
81
|
+
if (e === null || e === undefined || (typeof e !== 'object' && typeof e !== 'function'))
|
|
82
|
+
return false;
|
|
83
|
+
const code = readThrownSlot(e, 'errorCode', 'data');
|
|
84
|
+
if (code === THROWN_SLOT_UNREADABLE)
|
|
85
|
+
return false;
|
|
86
|
+
if (typeof code === 'string') {
|
|
87
|
+
return code.startsWith(NOT_FOUND_CODE_PREFIX) ? Object.freeze({ kind: 'not_found', code }) : false;
|
|
88
|
+
}
|
|
89
|
+
const status = readThrownStatusSlot(e);
|
|
90
|
+
if (status === 404)
|
|
91
|
+
return Object.freeze({ kind: 'unknown_404' });
|
|
92
|
+
if (status === undefined && typeof e === 'object' && protocolErrorNameOf(e) === PROTOCOL_ERROR_NAME.NotFoundError)
|
|
93
|
+
return Object.freeze({ kind: 'unknown_404' });
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const NOT_FOUND_CODE_PREFIX = 'not_found.';
|
|
79
101
|
function foldedWireErrorCode(err, outer) {
|
|
80
102
|
if (outer !== RESUME_POLICY_FOLD_CODE)
|
|
81
103
|
return outer;
|
package/dist/wireFailureShape.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { msg, renderMessage } from './i18n/translate.js';
|
|
1
2
|
import { guardedRead, ownDataField, readOwnDataValue } from './ownKey.js';
|
|
2
3
|
export const THROWN_SLOT_UNREADABLE = Symbol('thrown-slot-unreadable');
|
|
3
4
|
export function readThrownSlot(o, key, own = false) {
|
|
@@ -373,7 +374,7 @@ export function withAssemblyRefusal(err, cause) {
|
|
|
373
374
|
export function asAssemblyRefusal(thrown, cause, who) {
|
|
374
375
|
if (assemblyRefusalOf(thrown) !== undefined)
|
|
375
376
|
return thrown;
|
|
376
|
-
return withAssemblyRefusal(new Error(
|
|
377
|
+
return withAssemblyRefusal(new Error(renderMessage(msg('config.assembly.thrownDuringAssembly', { who })), { cause: thrown }), cause);
|
|
377
378
|
}
|
|
378
379
|
export function assemblyRefusalOf(x) {
|
|
379
380
|
if (x === null || x === undefined)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FLEET_LEASE_UNAVAILABLE, REQUEST_AUTONOMY_LANE_REFUSED,
|
|
1
|
+
import { FLEET_LEASE_UNAVAILABLE, REQUEST_AUTONOMY_LANE_REFUSED, USAGE_WINDOW_EXHAUSTED, USER_ATTACHMENT_INVALID_ERROR_CODE, USER_INVOKED_SKILL_UNKNOWN_ERROR_CODE } from './engineErrorCodes.js';
|
|
2
2
|
import type { TaskRequestLike } from './request/taskRequest.js';
|
|
3
|
+
import type { UiLanguage } from './env/uiLanguage.js';
|
|
3
4
|
export declare const CONFLICT_APPROVAL_SETTLED = "conflict.approval_settled";
|
|
4
5
|
export declare const CONFLICT_RUN_NOT_RUNNING = "conflict.run_not_running";
|
|
5
6
|
export type CancelConflictKind = 'approval_settled' | 'run_not_running' | 'unrecognized';
|
|
@@ -8,26 +9,20 @@ export interface CancelConflictDetail {
|
|
|
8
9
|
code?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare function cancelConflictFromError(err: unknown): CancelConflictDetail | null;
|
|
11
|
-
export declare function cancelConflictContent(detail: Pick<CancelConflictDetail, 'kind'
|
|
12
|
+
export declare function cancelConflictContent(detail: Pick<CancelConflictDetail, 'kind'>, lang?: UiLanguage): string;
|
|
12
13
|
export interface UsageWindowExhaustedDetail {
|
|
13
14
|
code: typeof USAGE_WINDOW_EXHAUSTED;
|
|
14
15
|
retryAfterSec?: number;
|
|
15
16
|
}
|
|
16
17
|
export declare function usageWindowExhaustedFromError(err: unknown): UsageWindowExhaustedDetail | null;
|
|
17
|
-
export declare function usageWindowExhaustedContent(detail: UsageWindowExhaustedDetail): string;
|
|
18
|
+
export declare function usageWindowExhaustedContent(detail: UsageWindowExhaustedDetail, lang?: UiLanguage): string;
|
|
18
19
|
export interface FleetLeaseUnavailableDetail {
|
|
19
20
|
code: typeof FLEET_LEASE_UNAVAILABLE;
|
|
20
21
|
reason?: string;
|
|
21
22
|
retryAfterSec?: number;
|
|
22
23
|
}
|
|
23
24
|
export declare function fleetLeaseUnavailableFromError(err: unknown): FleetLeaseUnavailableDetail | null;
|
|
24
|
-
export declare function fleetLeaseUnavailableContent(detail: FleetLeaseUnavailableDetail): string;
|
|
25
|
-
export interface ScenarioAssignmentUnknownDetail {
|
|
26
|
-
code: typeof SCENARIO_ASSIGNMENT_UNKNOWN_ERROR_CODE;
|
|
27
|
-
scenario?: string;
|
|
28
|
-
source?: 'ruling' | 'deployment';
|
|
29
|
-
}
|
|
30
|
-
export declare function scenarioAssignmentUnknownFromError(err: unknown): ScenarioAssignmentUnknownDetail | null;
|
|
25
|
+
export declare function fleetLeaseUnavailableContent(detail: FleetLeaseUnavailableDetail, lang?: UiLanguage): string;
|
|
31
26
|
export type DenyAttributionRefusalKind = 'not_in_proof' | 'decision_conflict' | 'attribution_rejected' | 'retired_key';
|
|
32
27
|
export interface DenyAttributionRefusalDetail {
|
|
33
28
|
kind: DenyAttributionRefusalKind;
|
|
@@ -36,7 +31,7 @@ export interface DenyAttributionRefusalDetail {
|
|
|
36
31
|
field?: string;
|
|
37
32
|
}
|
|
38
33
|
export declare function denyAttributionRefusalFromError(err: unknown, sentAttributionKey: boolean): DenyAttributionRefusalDetail | null;
|
|
39
|
-
export declare function denyAttributionRefusalContent(detail: Pick<DenyAttributionRefusalDetail, 'kind' | 'field'
|
|
34
|
+
export declare function denyAttributionRefusalContent(detail: Pick<DenyAttributionRefusalDetail, 'kind' | 'field'>, lang?: UiLanguage): string;
|
|
40
35
|
export declare const CONFLICT_SESSION_CHILDREN_ALIVE = "conflict.session_children_alive";
|
|
41
36
|
export type SessionDeleteConflictKind = 'children_alive' | 'active_run' | 'unrecognized';
|
|
42
37
|
export interface SessionDeleteConflictDetail {
|
|
@@ -46,7 +41,7 @@ export interface SessionDeleteConflictDetail {
|
|
|
46
41
|
activeTaskId?: string;
|
|
47
42
|
}
|
|
48
43
|
export declare function sessionDeleteConflictFromError(err: unknown): SessionDeleteConflictDetail | null;
|
|
49
|
-
export declare function sessionDeleteConflictContent(detail: Pick<SessionDeleteConflictDetail, 'kind' | 'remaining' | 'activeTaskId'
|
|
44
|
+
export declare function sessionDeleteConflictContent(detail: Pick<SessionDeleteConflictDetail, 'kind' | 'remaining' | 'activeTaskId'>, lang?: UiLanguage): string;
|
|
50
45
|
export type SettingsPermissionBucket = 'allow' | 'deny' | 'ask';
|
|
51
46
|
export type SettingsPermissionBucketRefusalReason = 'over_cap' | 'bad_entry';
|
|
52
47
|
export interface SettingsPermissionBucketRefusalDetail {
|
|
@@ -58,12 +53,31 @@ export interface SettingsPermissionBucketRefusalDetail {
|
|
|
58
53
|
readonly folded?: true;
|
|
59
54
|
}
|
|
60
55
|
export declare function settingsPermissionBucketRefusalFromError(err: unknown): SettingsPermissionBucketRefusalDetail | null;
|
|
61
|
-
export
|
|
56
|
+
export type FieldLimitRefusalReason = 'over_cap' | 'too_long' | 'bad_entry';
|
|
57
|
+
export interface FieldLimitRefusalDetail {
|
|
58
|
+
readonly field: string;
|
|
59
|
+
readonly reason: FieldLimitRefusalReason;
|
|
60
|
+
readonly count?: number;
|
|
61
|
+
readonly cap?: number;
|
|
62
|
+
readonly index?: number;
|
|
63
|
+
readonly folded?: true;
|
|
64
|
+
}
|
|
65
|
+
export declare function fieldLimitRefusalFromError(err: {} | null | undefined): FieldLimitRefusalDetail | null;
|
|
66
|
+
export declare function fieldLimitRefusalContent(detail: FieldLimitRefusalDetail, lang?: UiLanguage): string;
|
|
67
|
+
export declare function settingsPermissionBucketRefusalContent(detail: SettingsPermissionBucketRefusalDetail, lang?: UiLanguage): string;
|
|
68
|
+
declare const PAYLOAD_TOO_LARGE = "request.payload_too_large";
|
|
69
|
+
declare const BLOB_TOO_LARGE_FOR_SQL = "blob_too_large_for_sql";
|
|
70
|
+
export interface AdmissionWallRefusalDetail {
|
|
71
|
+
readonly code: typeof PAYLOAD_TOO_LARGE | typeof BLOB_TOO_LARGE_FOR_SQL;
|
|
72
|
+
readonly wallSource: 'reported' | 'assumed' | 'operator';
|
|
73
|
+
}
|
|
74
|
+
export declare function admissionWallRefusalFromError(err: {} | null | undefined): AdmissionWallRefusalDetail | null;
|
|
75
|
+
export declare function admissionWallRefusalContent(detail: AdmissionWallRefusalDetail): string;
|
|
62
76
|
export interface ToolDeclarationRefusalDetail {
|
|
63
77
|
readonly code: string;
|
|
64
78
|
}
|
|
65
79
|
export declare function toolDeclarationRefusalFromError(err: unknown): ToolDeclarationRefusalDetail | null;
|
|
66
|
-
export declare function toolDeclarationRefusalContent(_detail: Pick<ToolDeclarationRefusalDetail, 'code'
|
|
80
|
+
export declare function toolDeclarationRefusalContent(_detail: Pick<ToolDeclarationRefusalDetail, 'code'>, lang?: UiLanguage): string;
|
|
67
81
|
export interface BodyShapeRefusalDetail {
|
|
68
82
|
readonly unknownKeys?: readonly string[];
|
|
69
83
|
readonly unsupportedKeys?: readonly string[];
|
|
@@ -76,25 +90,57 @@ export interface HostPostureRefusalDetail {
|
|
|
76
90
|
readonly askedOpenWriteFace?: true;
|
|
77
91
|
}
|
|
78
92
|
export declare function hostPostureRefusalFromError(err: unknown, sentRequest?: TaskRequestLike): HostPostureRefusalDetail | null;
|
|
79
|
-
export declare function hostPostureRefusalContent(detail: Pick<HostPostureRefusalDetail, 'askedWholeEnvironment' | 'askedOpenWriteFace'
|
|
93
|
+
export declare function hostPostureRefusalContent(detail: Pick<HostPostureRefusalDetail, 'askedWholeEnvironment' | 'askedOpenWriteFace'>, lang?: UiLanguage): string;
|
|
80
94
|
export type HookMatcherRefusal = {
|
|
81
95
|
readonly reason: 'alias_without_canonical';
|
|
82
96
|
readonly event: string;
|
|
83
97
|
readonly alias: string;
|
|
84
98
|
readonly canonical: string;
|
|
99
|
+
readonly path?: readonly (string | number)[];
|
|
85
100
|
} | {
|
|
86
101
|
readonly reason: 'invalid_regex';
|
|
87
102
|
readonly event: string;
|
|
88
103
|
readonly groupIndex: number;
|
|
104
|
+
readonly path?: readonly (string | number)[];
|
|
89
105
|
} | {
|
|
90
106
|
readonly reason: 'over_budget';
|
|
91
107
|
readonly event: string;
|
|
92
108
|
readonly groupIndex: number;
|
|
93
109
|
readonly budgetMs?: number;
|
|
110
|
+
readonly path?: readonly (string | number)[];
|
|
111
|
+
} | {
|
|
112
|
+
readonly reason: 'budget_exceeded';
|
|
113
|
+
readonly event: string;
|
|
114
|
+
readonly groupIndex: number;
|
|
115
|
+
readonly totalMs?: number;
|
|
116
|
+
readonly path?: readonly (string | number)[];
|
|
94
117
|
};
|
|
95
118
|
export declare function hookMatcherRefusalFromError(err: unknown): HookMatcherRefusal | undefined;
|
|
119
|
+
export interface SettingsHooksRefusal {
|
|
120
|
+
readonly reason: string;
|
|
121
|
+
readonly path?: readonly (string | number)[];
|
|
122
|
+
readonly matcher?: HookMatcherRefusal;
|
|
123
|
+
readonly count?: number;
|
|
124
|
+
readonly cap?: number;
|
|
125
|
+
}
|
|
126
|
+
export declare function settingsHooksRefusalFromError(err: {} | null | undefined): SettingsHooksRefusal | undefined;
|
|
96
127
|
export interface AutonomyLaneRefusalDetail {
|
|
97
128
|
readonly code: typeof REQUEST_AUTONOMY_LANE_REFUSED;
|
|
98
129
|
}
|
|
99
130
|
export declare function autonomyLaneRefusalFromError(err: unknown): AutonomyLaneRefusalDetail | null;
|
|
100
|
-
export declare function autonomyLaneRefusalContent(): string;
|
|
131
|
+
export declare function autonomyLaneRefusalContent(lang?: UiLanguage): string;
|
|
132
|
+
export interface UserAttachmentRefusalDetail {
|
|
133
|
+
readonly code: typeof USER_ATTACHMENT_INVALID_ERROR_CODE;
|
|
134
|
+
readonly retryable: false;
|
|
135
|
+
readonly index?: number;
|
|
136
|
+
readonly path?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare function userAttachmentRefusalFromError(err: {} | null | undefined): UserAttachmentRefusalDetail | null;
|
|
139
|
+
export declare function userAttachmentRefusalContent(detail?: Pick<UserAttachmentRefusalDetail, 'index'>): string;
|
|
140
|
+
export interface UserInvokedSkillRefusalDetail {
|
|
141
|
+
readonly code: typeof USER_INVOKED_SKILL_UNKNOWN_ERROR_CODE;
|
|
142
|
+
readonly retryable: false;
|
|
143
|
+
}
|
|
144
|
+
export declare function userInvokedSkillRefusalFromError(err: {} | null | undefined): UserInvokedSkillRefusalDetail | null;
|
|
145
|
+
export declare function userInvokedSkillRefusalContent(): string;
|
|
146
|
+
export {};
|