UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

28 lines • 109 kB
import{mn as e}from"./openclaw-state-read-subsystem-Dwoo5bcz.mjs";import{t}from"./openclaw-state-read-json-coercion-CAL-_nfN.mjs";import{c as n}from"./openclaw-state-read-openclaw-state-db-legacy-backfills-CP_449sp.mjs";import{t as r}from"./openclaw-state-read-closed-object-D3QW4nRZ.mjs";import{t as i}from"./openclaw-state-read-primitives-B8yGv9fM.mjs";import{t as a}from"./openclaw-state-read-string-literal-union-A6jxKQ93.mjs";import{t as o}from"./openclaw-state-read-openclaw-state-feature-schema-BaBHFVL8.mjs";import{t as s}from"./openclaw-state-read-since-CMgkl5M5.mjs";import{Type as c}from"typebox";import"typebox/guard";import{Errors as l}from"typebox/schema";
/*!
TypeBox

The MIT License (MIT)

Copyright (c) 2017-2026 Haydn Paterson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var ee=Object.defineProperty,__export=(e,t)=>{for(var n in t)ee(e,n,{get:t[n],enumerable:!0})};function hasValidNodeHostResources(e){return e.memoryFreeBytes<=e.memoryTotalBytes&&(e.diskTotalBytes===void 0?e.diskAvailableBytes===void 0:e.diskAvailableBytes!==void 0&&e.diskAvailableBytes<=e.diskTotalBytes)}function hasValidSessionExecAction(e){let t=e.action??`run`;return t===`run`?e.argv!==void 0&&e.processId===void 0:t===`start`?e.argv!==void 0&&e.processId!==void 0:e.processId!==void 0&&e.argv===void 0&&e.input===void 0&&e.timeoutMs===void 0}var u=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function IsUuid(e){return u.test(e)}var d=[0,31,28,31,30,31,30,31,31,30,31,30,31],f=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function IsLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function IsDate(e){let t=f.exec(e);if(!t)return!1;let n=+t[1],r=+t[2],i=+t[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&IsLeapYear(n)?29:d[r])}var p=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:([Zz])|([+-])(\d\d):(\d\d))?$/;function IsTime(e,t=!0){let n=p.exec(e);if(!n||t&&!n[4]&&!n[5])return!1;let r=+n[1],i=+n[2],a=+n[3];if(r>23||i>59||a>60)return!1;if(n[5]){let e=+n[6],t=+n[7];if(e>23||t>59)return!1}if(a<60)return!0;let o=n[5]===`-`?-1:1,s=+(n[6]||0),c=+(n[7]||0);return((r*60+i-o*(s*60+c))%1440+1440)%1440==1439}function IsDateTime(e){let t=e.split(/T/i);return t.length===2&&IsDate(t[0])&&IsTime(t[1])}function CodePointCount(e){let t=0,n=0,r=0;for(;n<e.length;){let i=e.charCodeAt(n++)>>10;t+=+((r<<8|i)!=13879),r=i}return t}function IsMaxLength(e,t){return e.length<=t||e.length<=t<<1&&CodePointCount(e)<=t}function IsMinLength(e,t){return e.length>=t<<1||e.length>=t&&CodePointCount(e)>=t}function Unreachable(){throw Error(`Unreachable`)}var m={};__export(m,{CodePointCount:()=>CodePointCount2,Counted:()=>Counted,Entries:()=>Entries,EntriesRegExp:()=>EntriesRegExp,Every:()=>Every,EveryAll:()=>EveryAll,GraphemeCount:()=>GraphemeCount2,HasPropertyKey:()=>HasPropertyKey,IsArray:()=>IsArray,IsBigInt:()=>IsBigInt,IsBoolean:()=>IsBoolean,IsClassInstance:()=>IsClassInstance,IsConstructor:()=>IsConstructor,IsDeepEqual:()=>IsDeepEqual,IsEqual:()=>IsEqual,IsFunction:()=>IsFunction,IsGreaterEqualThan:()=>IsGreaterEqualThan,IsGreaterThan:()=>IsGreaterThan,IsInteger:()=>IsInteger,IsLessEqualThan:()=>IsLessEqualThan,IsLessThan:()=>IsLessThan,IsMaxLength:()=>IsMaxLength2,IsMinLength:()=>IsMinLength2,IsMultipleOf:()=>IsMultipleOf,IsNull:()=>IsNull,IsNumber:()=>IsNumber,IsObject:()=>IsObject,IsObjectNotArray:()=>IsObjectNotArray,IsString:()=>IsString,IsSymbol:()=>IsSymbol,IsUndefined:()=>IsUndefined,IsUnsafePropertyKey:()=>IsUnsafePropertyKey,IsValueLike:()=>IsValueLike,Keys:()=>Keys,ShiftLeft:()=>ShiftLeft,Some:()=>Some,SomeAll:()=>SomeAll,Symbols:()=>Symbols,Values:()=>Values});function IsBetween(e,t,n){return e>=t&&e<=n}function IsZeroWidthJoiner(e){return e===8205}function IsRegionalIndicator(e){return IsBetween(e,127462,127487)}function IsVariationSelector(e){return IsBetween(e,65024,65039)}function IsCombiningMark(e){return IsBetween(e,768,879)||IsBetween(e,6832,6911)||IsBetween(e,7616,7679)||IsBetween(e,65056,65071)}function CodePointLength(e){return e>65535?2:1}function ConsumeModifiers(e,t){for(;t<e.length;){let n=e.codePointAt(t);if(IsCombiningMark(n)||IsVariationSelector(n))t+=CodePointLength(n);else break}return t}function NextGraphemeClusterIndex(e,t){let n=e.codePointAt(t),r=t+CodePointLength(n);for(r=ConsumeModifiers(e,r);r<e.length-1&&IsZeroWidthJoiner(e.codePointAt(r));){let t=e.codePointAt(r+1);r+=1+CodePointLength(t),r=ConsumeModifiers(e,r)}return IsRegionalIndicator(n)&&r<e.length&&IsRegionalIndicator(e.codePointAt(r))&&(r+=CodePointLength(e.codePointAt(r))),r}function GraphemeCount(e){let t=0,n=0;for(;n<e.length;)n=NextGraphemeClusterIndex(e,n),t++;return t}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return IsEqual(typeof e,`bigint`)}function IsBoolean(e){return IsEqual(typeof e,`boolean`)}function IsConstructor(e){if(IsUndefined(e)||!IsFunction(e))return!1;let t=Function.prototype.toString.call(e);return!!(/^class\s/.test(t)||/\[native code\]/.test(t))}function IsFunction(e){return IsEqual(typeof e,`function`)}function IsInteger(e){return Number.isInteger(e)}function IsNull(e){return IsEqual(e,null)}function IsNumber(e){return Number.isFinite(e)}function IsObjectNotArray(e){return IsObject(e)&&!IsArray(e)}function IsObject(e){return IsEqual(typeof e,`object`)&&!IsNull(e)}function IsString(e){return IsEqual(typeof e,`string`)}function IsSymbol(e){return IsEqual(typeof e,`symbol`)}function IsUndefined(e){return IsEqual(e,void 0)}function IsEqual(e,t){return e===t}function IsGreaterThan(e,t){return e>t}function IsLessThan(e,t){return e<t}function IsLessEqualThan(e,t){return e<=t}function IsGreaterEqualThan(e,t){return e>=t}function IsMultipleOf(e,t){if(IsBigInt(e)||IsBigInt(t))return BigInt(e)%BigInt(t)===0n;if(!IsNumber(e)||IsInteger(e)&&1/t%1==0)return!0;let n=e%t;return Math.min(Math.abs(n),Math.abs(n-t),Math.abs(n+t))<1e-10}function IsClassInstance(e){if(!IsObject(e))return!1;let t=globalThis.Object.getPrototypeOf(e);return!IsNull(t)&&IsEqual(typeof t.constructor,`function`)&&!(IsEqual(t.constructor,globalThis.Object)||IsEqual(t.constructor.name,`Object`))}function IsValueLike(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsUndefined(e)}function GraphemeCount2(e){return GraphemeCount(e)}function CodePointCount2(e){return CodePointCount(e)}function IsMaxLength2(e,t){return IsMaxLength(e,t)}function IsMinLength2(e,t){return IsMinLength(e,t)}function Every(e,t,n){return e.every((e,r)=>r<t||n(e,r))}function EveryAll(e,t,n){let r=!0;return e.forEach((e,i)=>{i>=t&&!n(e,i)&&(r=!1)}),r}function Some(e,t){return e.some((e,n)=>t(e,n))}function SomeAll(e,t){let n=!1;return e.forEach((e,r)=>{t(e,r)&&(n=!0)}),n}function Counted(e,t){return e.reduce((e,n,r)=>t(n,r)?++e:e,0)}function ShiftLeft(e,t,n){return IsEqual(e.length,0)?n():t(e[0],e.slice(1))}function IsUnsafePropertyKey(e){return IsEqual(e,`__proto__`)||IsEqual(e,`constructor`)||IsEqual(e,`prototype`)}function HasPropertyKey(e,t){return IsUnsafePropertyKey(t)?Object.prototype.hasOwnProperty.call(e,t):t in e}function EntriesRegExp(e){return Keys(e).map(t=>[RegExp(`^${t}$`),e[t]])}function Entries(e){return Object.entries(e)}function Keys(e){return Object.getOwnPropertyNames(e)}function Symbols(e){return Object.getOwnPropertySymbols(e)}function Values(e){return Object.values(e)}function DeepEqualObject(e,t){if(!IsObject(t))return!1;let n=Keys(e);return IsEqual(n.length,Keys(t).length)&&n.every(n=>IsDeepEqual(e[n],t[n]))}function DeepEqualArray(e,t){return IsArray(t)&&IsEqual(e.length,t.length)&&e.every((n,r)=>IsDeepEqual(e[r],t[r]))}function IsDeepEqual(e,t){return IsArray(e)?DeepEqualArray(e,t):IsObject(e)?DeepEqualObject(e,t):IsEqual(e,t)}var h={};__export(h,{IsBigInt64Array:()=>IsBigInt64Array,IsBigUint64Array:()=>IsBigUint64Array,IsBoolean:()=>IsBoolean2,IsDate:()=>IsDate2,IsFloat32Array:()=>IsFloat32Array,IsFloat64Array:()=>IsFloat64Array,IsInt16Array:()=>IsInt16Array,IsInt32Array:()=>IsInt32Array,IsInt8Array:()=>IsInt8Array,IsMap:()=>IsMap,IsNumber:()=>IsNumber2,IsRegExp:()=>IsRegExp,IsSet:()=>IsSet,IsString:()=>IsString2,IsTypeArray:()=>IsTypeArray,IsUint16Array:()=>IsUint16Array,IsUint32Array:()=>IsUint32Array,IsUint8Array:()=>IsUint8Array,IsUint8ClampedArray:()=>IsUint8ClampedArray});function IsBoolean2(e){return e instanceof Boolean}function IsNumber2(e){return e instanceof Number}function IsString2(e){return e instanceof String}function IsTypeArray(e){return globalThis.ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsDate2(e){return e instanceof globalThis.Date}function IsSet(e){return e instanceof globalThis.Set}function IsMap(e){return e instanceof globalThis.Map}function InstanceKeys(e){let t=/* @__PURE__ */ new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Reflect.ownKeys(n))e!==`constructor`&&typeof e!=`symbol`&&t.add(e);n=Object.getPrototypeOf(n)}return[...t]}function IsIEEE754(e){return typeof e==`number`}var g={Array:0,BigInt:1,Boolean:2,Date:3,Constructor:4,Function:5,Null:6,Number:7,Object:8,RegExp:9,String:10,Symbol:11,TypeArray:12,Undefined:13},_=8997,v=33826,y=40164,b=52210,x=/* @__PURE__ */ new Float64Array(1),S=new DataView(x.buffer),C=new Uint8Array(x.buffer);function FNV1A64_OP(e){let t=_^e,n=t*435,r=v*435+(n>>>16),i=y*435+(r>>>16)+(t<<8),a=b*435+(i>>>16)+(v<<8);_=n&65535,v=r&65535,y=i&65535,b=a&65535}function FromArray(e){FNV1A64_OP(g.Array);for(let t of e)FromValue(t)}function FromBigInt(e){FNV1A64_OP(g.BigInt),S.setBigInt64(0,e);for(let e of C)FNV1A64_OP(e)}function FromBoolean(e){FNV1A64_OP(g.Boolean),FNV1A64_OP(+!!e)}function FromConstructor(e){FNV1A64_OP(g.Constructor),FromValue(e.toString())}function FromDate(e){FNV1A64_OP(g.Date),FromValue(e.getTime())}function FromFunction(e){FNV1A64_OP(g.Function),FromValue(e.toString())}function FromNull(e){FNV1A64_OP(g.Null)}function FromNumber(e){FNV1A64_OP(g.Number),S.setFloat64(0,e,!0);for(let e of C)FNV1A64_OP(e)}function FromObject(e){FNV1A64_OP(g.Object);for(let t of InstanceKeys(e).sort())FromValue(t),FromValue(e[t])}function FromRegExp(e){FNV1A64_OP(g.RegExp),FromString(e.toString())}var w=new TextEncoder;function FromString(e){FNV1A64_OP(g.String);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>127){for(let n of w.encode(e.slice(t)))FNV1A64_OP(n);return}FNV1A64_OP(n)}}function FromSymbol(e){FNV1A64_OP(g.Symbol),FromValue(e.toString())}function FromTypeArray(e){FNV1A64_OP(g.TypeArray);let t=new Uint8Array(e.buffer);for(let e=0;e<t.length;e++)FNV1A64_OP(t[e])}function FromUndefined(e){return FNV1A64_OP(g.Undefined)}function FromValue(e){return h.IsTypeArray(e)?FromTypeArray(e):h.IsDate(e)?FromDate(e):h.IsRegExp(e)?FromRegExp(e):h.IsBoolean(e)?FromBoolean(e.valueOf()):h.IsString(e)?FromString(e.valueOf()):h.IsNumber(e)?FromNumber(e.valueOf()):IsIEEE754(e)?FromNumber(e):m.IsArray(e)?FromArray(e):m.IsBoolean(e)?FromBoolean(e):m.IsBigInt(e)?FromBigInt(e):m.IsConstructor(e)?FromConstructor(e):m.IsNull(e)?FromNull(e):m.IsObject(e)?FromObject(e):m.IsString(e)?FromString(e):m.IsSymbol(e)?FromSymbol(e):m.IsUndefined(e)?FromUndefined(e):m.IsFunction(e)?FromFunction(e):Unreachable()}function Hex(e){return e.toString(16).padStart(4,`0`)}function Hash(e){return _=8997,v=33826,y=40164,b=52210,FromValue(e),`${Hex(b)}${Hex(y)}${Hex(v)}${Hex(_)}`}var T=[/(^approval$)/u,/(^id$|^urlPath$|^createdAtMs$|^expiresAtMs$|^presentation$|^status$|^sourceSessionKey$)/u,/^(?!\.{1,2}$)(?:[^\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/u,/(^kind$|^commandText$|^commandPreview$|^warningText$|^streamProposal$|^host$|^nodeId$|^agentId$|^scope$|^allowedDecisions$)/u,/(^jobId$|^name$|^operation$)/u,/(^kind$|^target$|^recipientCount$|^recipients$|^audience$)/u,/(^kind$|^amount$|^currency$|^target$)/u,/(^kind$|^target$|^visibility$)/u,/(^kind$|^automation$|^command$|^expiresInDays$)/u,/(^kind$|^title$|^description$|^detail$|^severity$|^pluginId$|^toolName$|^agentId$|^scope$|^allowedDecisions$|^externalResolution$)/u,/(^label$|^decisions$)/u,/(^kind$|^title$|^description$|^proposalHash$|^agentId$|^allowedDecisions$)/u,/^[a-f0-9]{64}$/u,/(^id$|^urlPath$|^createdAtMs$|^expiresAtMs$|^presentation$|^resolvedAtMs$|^source$|^resolver$|^status$|^decision$|^reason$)/u,/(^agentId$|^sessionKey$)/u,/(^kind$|^id$)/u,/(^id$|^urlPath$|^createdAtMs$|^expiresAtMs$|^presentation$|^resolvedAtMs$|^source$|^resolver$|^status$|^decision$|^reason$)/u,/(^id$|^urlPath$|^createdAtMs$|^expiresAtMs$|^presentation$|^resolvedAtMs$|^source$|^resolver$|^status$|^reason$)/u,/(^id$|^urlPath$|^createdAtMs$|^expiresAtMs$|^presentation$|^resolvedAtMs$|^source$|^resolver$|^status$|^reason$)/u,/(^items$|^nextCursor$)/u,/(^applied$|^approval$)/u,/(^schemaVersion$|^receiptId$|^contextId$|^executionId$|^runId$|^actionId$|^occurredAt$|^representedSubject$|^action$|^decision$|^enforcement$|^source$|^missingEvidence$|^remediation$)/u,/(^state$|^principal$)/u,/(^kind$|^domainRef$|^principalRef$)/u,/(^family$|^operation$|^resourceRef$|^targetRef$|^summary$)/u,/(^outcome$|^reasonCode$)/u,/(^coverageState$|^evaluatorRef$|^policyRefs$|^grantRefs$|^contextFieldsUsed$)/u,/(^owner$|^recordRef$|^decisionBoundary$)/u,/(^code$|^text$)/u,/(^schemaVersion$|^contextId$|^executionId$|^runId$|^createdAt$|^trustDomain$|^invoker$|^ingress$|^agentPrincipal$|^agentDefinition$|^runtimeInstance$|^representedSubject$|^sponsor$|^applicableGrants$|^assurance$|^lineage$|^coverageState$|^missingEvidence$)/u,/(^kind$|^domainRef$|^state$)/u,/(^principal$|^state$)/u,/(^kind$|^domainRef$|^principalRef$|^displayLabel$)/u,/(^kind$|^sourceRef$|^boundary$|^state$)/u,/(^kind$|^domainRef$|^principalRef$|^displayLabel$)/u,/(^definitionRef$|^revisionRef$|^state$)/u,/(^runtimeRef$|^kind$|^state$)/u,/(^principal$|^state$)/u,/(^principal$|^relationshipRef$|^state$)/u,/(^grantRef$|^state$)/u,/(^kind$|^evidenceRef$|^strength$)/u,/(^parentContextId$|^parentExecutionId$|^parentRunId$|^parentAgentPrincipal$|^delegationRef$|^depth$)/u,/(^agentId$|^overwrite$)/u,/(^idempotencyKey$|^agentId$|^providerId$|^planFingerprint$|^itemIds$|^overwrite$)/u,/^[a-f0-9]{64}$/u,/(^durationMs$|^samplingIntervalBytes$|^includeCollected$|^includeObjectsCollectedByMajorGC$|^includeObjectsCollectedByMinorGC$)/u,/(^reason$)/u,/(^pluginId$|^path$|^baseHash$|^reveal$)/u,/(^source$|^pluginId$|^skillName$|^path$|^version$)/u,/(^source$|^catalogId$|^version$|^skillName$|^path$)/u,/(?!)/u,/(^action$|^person$|^deviceId$|^include$|^limit$)/u,/(^sessionKey$|^scope$)/u,/(^skillId$|^revision$|^sessionKey$)/u,/^[a-f0-9-]{36}$/u,/^[a-f0-9]{64}$/u,/(^skillId$|^expectedRevision$|^slug$|^content$|^files$|^retainFiles$)/u,/^[a-f0-9-]{36}$/u,/^[a-z0-9][a-z0-9-]{0,62}$/u,/(^path$|^content$|^encoding$|^executable$)/u,/(^skillId$|^expectedRevision$|^action$|^revision$)/u,/(^sessionKey$|^action$|^skillId$|^revision$)/u,/(^slug$|^source$)/u,/(^kind$|^slug$|^version$)/u,/(^action$|^slug$|^sizeBytes$|^sha256$)/u,/(^action$|^uploadId$|^offset$|^data$)/u,/(^action$|^uploadId$)/u,/(^text$|^idempotencyKey$|^sessionKey$|^wake$|^deviceId$|^instanceId$|^host$|^ip$|^mode$|^version$|^platform$|^deviceFamily$|^modelIdentifier$|^lastInputSeconds$|^reason$|^roles$|^scopes$|^tags$)/u,/(^agentId$|^modelProvider$|^modelId$)/u,/\S/u,/(^agentId$|^modelProvider$|^modelId$|^query$|^providerId$)/u,/(^binding$|^toolCallId$|^operation$|^review$)/u,/(^command$|^execCommand$|^cwd$|^environment$|^pty$)/u,/^\S(?:.*\S)?$/u,/(^argv$|^resolvedPath$|^envKeys$|^reason$|^analysis$)/u,/(^parsed$|^allowlistMatched$|^safeBinMatched$|^durableApprovalMatched$|^inlineEval$|^heredoc$|^shellWrapper$)/u,/(^binding$|^toolCallId$|^operation$|^id$|^warningText$)/u,/(^binding$|^toolCallId$|^operation$|^id$)/u,/(^generation$|^toolId$|^toolCallId$|^arguments$)/u,/^.*$/u,/(^generation$|^toolCallId$)/u,/(^type$|^event$|^payload$)/u,/(^generation$|^toolCallId$|^seq$|^result$)/u,/(^content$|^details$|^isError$|^terminate$|^progress$)/u,/(^type$|^text$|^textSignature$)/u,/(^type$|^data$|^mimeType$)/u,/(^text$|^visibility$|^privacy$|^id$)/u,/^\S(?:.*\S)?$/u,/(^key$|^agentId$|^profileId$|^deviceId$|^autoDevice$|^machineClass$|^os$)/u,/(^key$|^agentId$|^expected$|^target$|^abandonSource$)/u,/(^generation$|^environmentId$|^ownerEpoch$)/u,/(^kind$)/u,/(^kind$|^profileId$|^machineClass$|^os$)/u,/(^kind$|^deviceId$)/u,/(^coverage$|^children$|^truncated$)/u,/(^id$|^label$|^status$)/u,/(^operationId$|^action$|^sessionId$|^goalId$|^goal$|^runId$|^replayed$|^status$)/u,/(^schemaVersion$|^id$|^objective$|^status$|^createdAt$|^updatedAt$|^tokenStart$|^tokenStartFresh$|^tokensUsed$|^tokenBudget$|^continuationTurns$|^lastStatusNote$|^pausedAt$|^blockedAt$|^completedAt$|^usageLimitedAt$|^budgetLimitedAt$)/u,/(^ok$|^key$|^agentId$|^displayName$|^boardFace$|^boardPresentation$)/u,/(^ok$|^candidates$)/u,/(^key$|^agentId$|^displayName$|^boardFace$|^boardPresentation$)/u,/(^senderId$|^chatId$|^subagent$)/u,/(^agentId$|^sessionKey$|^catalog$|^cols$|^rows$)/u,/(^catalogId$|^hostId$|^threadId$|^agentId$|^sourceHomeId$)/u,/(^sessionId$|^data$)/u,/(^sessionId$|^cols$|^rows$)/u,/(^sessionId$)/u,/(^sessionId$|^name$|^contentBase64$)/u,/(^path$|^size$|^uploadPathStyle$)/u,/(^message$|^agentId$|^provider$|^model$|^to$|^replyTo$|^sessionId$|^sessionKey$|^createSessionIfMissing$|^expectedExistingSessionId$|^expectedExistingSessionLifecycleRevision$|^thinking$|^deliver$|^attachments$|^channel$|^replyChannel$|^accountId$|^replyAccountId$|^threadId$|^groupId$|^groupChannel$|^groupSpace$|^timeout$|^bestEffortDeliver$|^lane$|^cwd$|^cleanupBundleMcpOnRunEnd$|^modelRun$|^promptMode$|^extraSystemPrompt$|^bootstrapContextMode$|^bootstrapContextRunKind$|^acpTurnSource$|^internalRuntimeHandoffId$|^execApprovalFollowupExpectedSessionId$|^internalEvents$|^inputProvenance$|^suppressPromptPersistence$|^sessionEffects$|^sourceReplyDeliveryMode$|^disableMessageTool$|^swarmCollector$|^swarmOutputSchema$|^voiceWakeTrigger$|^idempotencyKey$|^label$)/u,/(^type$|^source$|^childSessionKey$|^childSessionId$|^announceType$|^taskLabel$|^status$|^statusLabel$|^result$|^noVisibleResult$|^modelRouteChange$|^attachments$|^mediaUrls$|^statsLine$|^replyInstruction$)/u,/(^type$|^path$|^url$|^mediaUrl$|^filePath$|^mimeType$|^name$|^sizeBytes$|^durationMs$|^width$|^height$)/u,/(^kind$|^originSessionId$|^sourceSessionKey$|^sourceChannel$|^sourceTool$|^sourceRole$|^sourcePromptPrefix$|^jobId$|^runId$)/u,/^.*$/u,/(^agentId$|^sessionKey$)/u,/(^runId$|^timeoutMs$)/u,/(^includeSessionPlacement$)/u,/(^name$|^agentId$|^onboarding$|^expectedOwnerId$|^workspace$|^model$|^emoji$|^avatar$)/u,/(^agentId$|^name$|^workspace$|^model$|^agentRuntime$|^emoji$|^avatar$)/u,/(^agentId$|^prompt$)/u,/\S/u,/(^name$|^description$|^svg$)/u,/(^agentId$|^deleteFiles$)/u,/(^agentId$)/u,/(^agentId$|^name$)/u,/(^agentId$|^name$|^content$|^expectedWorkspace$|^expectedHash$|^expectedMissing$)/u,/^[a-fA-F0-9]{64}$/u,/(^agentId$|^path$|^offset$|^limit$)/u,/(^agentId$|^path$)/u,/(^provider$|^apiKey$|^agentId$)/u,/\S/u,/(^provider$|^profileId$|^warning$)/u,/(^provider$|^profileIds$|^credentialType$|^agentId$)/u,/(^provider$|^profileIds$|^agentId$)/u,/(^operation$|^agentId$)/u,/(^refresh$|^refreshUsage$|^agentId$)/u,/(^agentId$|^sessionKey$|^authProfileId$|^provider$|^includeDetails$|^includeProviderCapabilities$|^includeDefaultModels$|^preparedOnly$|^refresh$|^view$)/u,/(^agentId$|^sessionKey$|^refresh$)/u,/(^agentId$|^includePlugins$)/u,/(^agentId$|^selectedScope$)/u,/(^agentId$|^selectedScope$|^selected$|^effective$)/u,/(^scope$|^configured$|^identity$)/u,/(^stale$|^source$|^credentialKind$|^credentialState$|^account$|^gitAuthor$|^evidence$|^accessExpiresAtMs$|^refreshState$|^oauthScopes$|^repositoryGrants$)/u,/(^login$)/u,/(^name$|^email$)/u,/\S/u,/(^scope$|^agentId$|^mode$|^secretName$|^gitAuthor$)/u,/^github-setup-[a-f0-9]{32}$/u,/(^name$|^email$)/u,/\S/u,/(^scope$|^agentId$|^mode$)/u,/(^scope$|^agentId$)/u,/(^requestId$|^userCode$|^verificationUri$|^expiresInMs$|^pollAfterMs$)/u,/^github-device-[a-f0-9]{32}$/u,/^[A-Z0-9]{4}-[A-Z0-9]{4}$/u,/(^requestId$)/u,/(^status$|^retryAfterMs$)/u,/(^status$|^retryAfterMs$)/u,/(^status$)/u,/(^status$)/u,/(^status$)/u,/(^status$|^retryAfterMs$)/u,/(^status$|^reason$)/u,/(^status$|^githubStatus$)/u,/(^cancelled$)/u,/(^sessionKey$|^agentId$)/u,/(^name$|^args$|^sessionKey$|^agentId$|^confirm$|^idempotencyKey$|^conversationReadOrigin$)/u,/(^agentId$|^name$|^installId$|^dangerouslyForceUnsafeInstall$|^timeoutMs$)/u,/(^agentId$|^source$|^slug$|^version$|^force$|^timeoutMs$)/u,/(^agentId$|^source$|^uploadId$|^slug$|^force$|^sha256$|^timeoutMs$)/u,/(^kind$|^slug$|^sizeBytes$|^sha256$|^force$|^idempotencyKey$)/u,/(^uploadId$|^offset$|^dataBase64$)/u,/(^uploadId$|^sha256$)/u,/(^skillKey$|^enabled$|^apiKey$|^env$)/u,/^.*$/u,/(^agentId$|^source$|^slug$|^all$|^force$)/u,/(^query$|^limit$)/u,/(^slug$|^version$)/u,/(^agentId$)/u,/(^agentId$|^limit$|^beforeMs$)/u,/(^agentId$|^name$|^filePath$|^versionId$|^draftId$)/u,/(^agentId$|^name$|^reason$)/u,/(^agentId$|^name$|^versionId$)/u,/(^agentId$|^runId$)/u,/(^agentId$|^skillKey$)/u,/(^agentId$|^path$)/u,/(^provider$|^profileId$|^timeoutMs$|^agentId$)/u,/(^agentId$|^channel$|^query$|^limit$)/u,/(^agentId$|^sourceSessionKey$|^operationId$|^conversationRef$|^message$)/u,/^conv_[a-f0-9]{32}$/u,/(^agentId$|^turnId$)/u,/(^agentId$|^sourceSessionKey$|^turnId$|^conversationRef$|^message$|^timeoutMs$)/u,/(^githubAccountIds$)/u,/(^sessionKey$|^agentId$|^query$)/u,/(^agentId$|^visibility$|^query$)/u,/(^users$|^truncated$)/u,/(^profileId$|^displayName$|^avatarUrl$|^online$)/u,/(^ids$)/u,/(^gatewayInstanceId$|^revision$|^items$)/u,/(^id$|^senderProfileId$|^senderLabel$|^senderAvatarUrl$|^sessionKey$|^agentId$|^sessionTitle$|^messageId$|^createdAt$|^expiresAt$|^excerpt$)/u,/(^gatewayInstanceId$|^revision$)/u,/(^gatewayInstanceId$|^sessionKey$|^agentId$|^messageId$|^errorMessage$)/u,/(^imageBase64$|^expectedAssetId$|^expectedPreference$)/u,/^[A-Za-z0-9_-]{1,128}$/u,/(^source$|^presentation$|^showOnNewSession$|^showInSessions$|^visibility$)/u,/(^kind$)/u,/(^kind$)/u,/(^kind$|^assetId$)/u,/(^expectedAssetId$|^expectedPreference$)/u,/(^keys$)/u,/^.{1,256}$/u,/(^entries$|^expectedEntries$)/u,/^.{1,256}$/u,/^.{1,256}$/u,/(^agentId$|^content$|^expectedHash$)/u,/(^requestId$)/u,IsUuid,/(^profile$)/u,/(^id$|^displayName$|^avatarMime$|^mergedInto$|^createdAt$|^updatedAt$|^emails$|^githubIdentity$|^hasAvatar$|^role$|^effectiveRole$|^roleSource$)/u,/(^host$|^login$|^profileUrl$|^avatarUrl$)/u,/\S/u,/(^email$|^targetProfileId$)/u,/(^sourceProfileId$|^targetProfileId$)/u,/(^profile$|^movedAliasKinds$)/u,/(^profileId$|^identity$)/u,/(^channelId$|^accountId$|^senderId$)/u,/^\S(?:.*\S)?$/u,/(^removed$)/u,/(^profileId$)/u,/(^links$)/u,/(^profileId$|^displayName$)/u,/(^profileId$|^role$)/u,/(^profileId$|^mime$|^avatarBase64$)/u,/(^profile$|^avatarRevision$)/u,/(^profileId$|^cursor$)/u,/(^profileId$|^authProfileId$)/u,/(^profileId$|^provider$|^method$)/u,/(^profileId$|^connectId$|^stepId$|^value$)/u,/(^profileId$|^connectId$)/u,/(^profileId$|^authProfileId$)/u,/(^profileId$|^provider$)/u,/(^sessionKey$|^agentId$|^cursor$|^knownState$|^limit$|^maxBytes$|^offset$|^pendingBefore$|^inputRunIds$|^messageId$|^sessionId$|^maxChars$|^toolResultMaxChars$)/u,/(^pendingInputs$|^sessionInfo$|^commands$)/u,/(^shortId$|^slugHint$|^agentId$|^limit$|^maxBytes$|^toolResultMaxChars$)/u,/(^agentId$|^includeModels$|^ifRevision$|^authProfileId$|^sessionKey$)/u,/(^sessionKey$|^agentId$|^sessionId$|^messageId$|^maxChars$)/u,/(^sessionKey$|^agentId$|^items$)/u,/(^id$|^name$|^input$)/u,/(^sessionKey$|^agentId$|^sessionId$|^inputIds$)/u,/(^sessionKey$|^runId$)/u,/(^sessionKey$|^agentId$|^sessionId$|^message$|^mentions$|^workContext$|^intent$|^thinking$|^fastMode$|^fastAutoOnSeconds$|^queueMode$|^deliver$|^originatingChannel$|^originatingTo$|^originatingAccountId$|^originatingThreadId$|^replyToId$|^attachments$|^toolBindings$|^timeoutMs$|^systemInputProvenance$|^systemProvenanceReceipt$|^suppressCommandInterpretation$|^expectedLeafEntryId$|^expectedSessionRoutingContract$|^expectedPermissionMode$|^expectedToolOverrides$|^idempotencyKey$)/u,/(^profileId$|^start$|^end$)/u,/(^page$|^title$|^sessionKey$|^sessionId$|^agentId$|^workspace$|^file$|^selection$|^detail$)/u,/^[\s\S]*$/u,/(^kind$|^version$|^issuedAtMs$)/u,/(^type$|^mimeType$|^fileName$|^origin$|^content$|^sizeBytes$|^durationMs$|^width$|^height$)/u,/^.*$/u,/(^mcpServers$|^mcpToolsDeny$|^skills$|^webSearch$)/u,/^.*$/u,/^.*$/u,/(^sessionKey$|^agentId$|^sessionId$|^runId$|^preserveSideRuns$|^discardPendingInput$)/u,/(^sessionKey$|^agentId$|^message$|^label$)/u,/(^limit$|^cursor$|^query$|^providerId$|^accountId$|^agentId$|^startedAfter$|^startedBefore$)/u,IsDateTime,/(^selector$)/u,/(^selector$|^includeUtterances$|^limit$|^cursor$|^query$)/u,/(^selector$|^format$)/u,/(^channel$|^action$|^params$|^reply$|^accountId$|^requesterAccountId$|^requesterSenderId$|^senderIsOwner$|^sessionKey$|^sessionId$|^inboundTurnKind$|^agentId$|^toolContext$|^conversationReadOrigin$|^idempotencyKey$)/u,/(^replyToId$|^source$)/u,/(^replyToId$|^source$|^mode$)/u,/(^currentChannelId$|^currentMessagingTarget$|^currentGraphChannelId$|^currentChannelProvider$|^currentThreadTs$|^currentMessageId$|^replyToMode$|^hasRepliedRef$|^sameChannelThreadRequired$|^skipCrossContextDecoration$)/u,/(^value$)/u,/(^to$|^message$|^mediaUrl$|^mediaUrls$|^buffer$|^filename$|^contentType$|^asVoice$|^gifPlayback$|^channel$|^accountId$|^agentId$|^replyToId$|^threadId$|^forceDocument$|^silent$|^parseMode$|^sessionKey$|^idempotencyKey$)/u,/(^to$|^question$|^options$|^maxSelections$|^durationSeconds$|^durationHours$|^silent$|^isAnonymous$|^threadId$|^channel$|^accountId$|^idempotencyKey$)/u,/(^endpoint$|^keys$)/u,/^https:\/\//u,/(^p256dh$|^auth$)/u,/(^endpoint$)/u,/(^title$|^body$)/u,/(^endpoint$|^scope$|^preferences$)/u,/(^categories$|^detailLevel$|^quietHours$|^agentIds$)/u,/(^approvalRequested$|^agentFinished$|^agentQuestion$|^humanMentioned$|^scheduledTaskFailed$)/u,/(^enabled$|^startMinute$|^endMinute$|^timeZone$)/u,/(^endpoint$|^scope$|^preferences$)/u,/(^enabled$|^label$|^categories$|^detailLevel$|^quietHours$|^agentIds$)/u,/(^approvalRequested$|^agentFinished$|^agentQuestion$|^humanMentioned$|^scheduledTaskFailed$)/u,/(^enabled$|^startMinute$|^endMinute$|^timeZone$)/u,/(^enabled$|^phase$)/u,/(^provider$|^model$|^sessionKey$)/u,/(^sessionKey$|^voiceSessionId$)/u,/(^sessionKey$|^voiceSessionId$|^voice$)/u,/(^changeId$|^voiceSessionId$|^outcome$|^error$)/u,/(^changeId$|^voiceSessionId$|^sessionKey$|^voice$|^phase$)/u,/(^includeSecrets$)/u,/(^config$)/u,/(^talk$|^session$|^ui$|^clientHints$)/u,/(^provider$|^providers$|^realtime$|^resolved$|^consultThinkingLevel$|^consultFastMode$|^speechLocale$|^interruptOnSpeech$|^silenceTimeoutMs$)/u,/^.*$/u,/(^apiKey$)/u,/(^source$|^provider$|^id$)/u,/^[a-z][a-z0-9_-]{0,63}$/u,/^[A-Z][A-Z0-9_]{0,127}$/u,/(^source$|^provider$|^id$)/u,/^\//u,/~(?:[^01]|$)/u,/(^source$|^provider$|^id$)/u,/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$/u,/(^source$|^provider$|^id$)/u,/(^provider$|^providers$|^model$|^speakerVoice$|^speakerVoiceId$|^voice$|^instructions$|^mode$|^transport$|^vadThreshold$|^silenceDurationMs$|^prefixPaddingMs$|^reasoningEffort$|^brain$|^consultRouting$)/u,/(^provider$|^config$)/u,/(^mainKey$)/u,/(^seamColor$)/u,/(^realtime$)/u,/(^modelSource$|^gatewayRelaySupported$)/u,/(^sessionKey$|^voiceSessionId$|^voiceChangeId$|^provider$|^model$|^voice$|^vadThreshold$|^silenceDurationMs$|^prefixPaddingMs$|^reasoningEffort$|^mode$|^transport$|^brain$|^capabilities$)/u,/^[A-Za-z0-9_-]{1,128}$/u,/(^provider$|^transport$|^voiceSessionId$|^clientSecret$|^offerUrl$|^offerHeaders$|^model$|^voice$|^expiresAt$|^clientControl$)/u,/(^owner$)/u,/(^provider$|^transport$|^voiceSessionId$|^protocol$|^clientSecret$|^websocketUrl$|^audio$|^initialMessage$|^model$|^voice$|^expiresAt$)/u,/(^inputEncoding$|^inputSampleRateHz$|^outputEncoding$|^outputSampleRateHz$)/u,/(^provider$|^transport$|^voiceSessionId$|^relaySessionId$|^audio$|^model$|^voice$|^expiresAt$)/u,/(^provider$|^transport$|^voiceSessionId$|^roomUrl$|^token$|^model$|^voice$|^expiresAt$)/u,/(^sessionKey$|^voiceSessionId$)/u,/(^ok$)/u,/(^sessionKey$|^voiceSessionId$|^callId$|^name$|^args$|^relaySessionId$)/u,/(^runId$|^idempotencyKey$|^agentId$|^agentSessionKey$)/u,/(^sessionKey$|^voiceSessionId$|^entryId$|^role$|^text$|^timestamp$)/u,/(^sessionKey$|^voiceSessionId$|^text$)/u,/(^sessionKey$|^text$|^mode$)/u,/(^sessionKey$|^voiceChangeId$|^capabilities$|^spawnedBy$|^provider$|^model$|^voice$|^language$|^vadThreshold$|^silenceDurationMs$|^prefixPaddingMs$|^reasoningEffort$|^mode$|^transport$|^brain$|^ttlMs$)/u,/^[a-z]{2}$/u,/(^sessionId$|^audioBase64$|^timestamp$)/u,/(^sessionId$|^markName$)/u,/(^sessionId$|^turnId$|^reason$)/u,/(^ok$|^status$|^turnId$)/u,/(^sessionId$|^sessionKey$|^text$|^mode$)/u,/(^sessionId$|^callId$|^result$|^options$)/u,/(^suppressResponse$|^willContinue$)/u,/(^sessionId$|^disposition$|^discard$)/u,/(^text$|^voiceId$|^modelId$|^outputFormat$|^speed$|^rateWpm$|^stability$|^similarity$|^style$|^speakerBoost$|^seed$|^normalize$|^language$|^latencyTier$)/u,/(^probe$|^timeoutMs$|^channel$)/u,/(^channel$|^accountId$)/u,/(^format$|^channel$|^accountId$|^expectedOwnerId$)/u,/(^channel$|^accountId$|^requestId$|^notify$|^bootstrapCommandOwner$)/u,/(^channel$|^accountId$|^code$|^expectedOwnerId$)/u,/(^channel$|^accountId$|^requestId$)/u,/(^channel$|^accountId$)/u,/(^pluginId$|^title$|^description$|^detail$|^severity$|^scope$|^toolName$|^toolCallId$|^policySubject$|^mcpTool$|^allowedDecisions$|^agentId$|^sessionKey$|^approvalReviewerDeviceIds$|^turnSourceChannel$|^turnSourceTo$|^turnSourceAccountId$|^turnSourceThreadId$|^timeoutMs$|^twoPhase$)/u,/(^pluginKey$|^tool$)/u,/(^server$|^tool$)/u,/\S/u,/(^id$|^decision$|^reviewer$)/u,/(^channel$|^accountId$|^senderId$)/u,/(^pluginId$)/u,/(^source$|^packageName$|^version$)/u,/(^catalogId$|^version$)/u,/^[A-Za-z0-9_-]+$/u,/(^plugins$|^waitForDrain$|^acknowledgeCapabilities$)/u,/(^pluginId$|^installHash$|^sourceDigests$)/u,/^.*$/u,/(^reviewToken$)/u,/(^query$|^limit$)/u,/(^query$|^searchSource$|^intent$|^category$|^cursor$|^pageSize$)/u,/^[a-z][a-z0-9-]*$/u,/(^id$|^version$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^packageName$|^version$|^expectedPluginId$|^expectedIntegrity$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^pluginId$|^version$|^pin$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^spec$|^pin$|^expectedPluginId$|^expectedIntegrity$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^spec$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^path$|^link$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^archivePath$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^marketplace$|^plugin$)/u,/(^enable$|^mode$|^acknowledgeInstallPolicyWarning$|^acknowledgeCapabilities$|^source$|^pluginId$|^spec$)/u,/(^pluginId$|^enabled$|^allowlistPolicy$|^acknowledgeCapabilities$)/u,/(^pluginId$|^keepFiles$)/u,/(^ok$|^descriptors$|^generation$|^methods$|^controlUiTabs$|^controlUiWidgetKinds$|^controlUiLinkReaders$|^pluginSurfaceUrls$)/u,/(^id$|^pluginId$|^pluginName$|^surface$|^linkReader$|^label$|^description$|^icon$|^path$|^placement$|^group$|^order$|^version$|^schema$|^requiredScopes$)/u,/(^hosts$|^pathPattern$|^detailMethod$|^previewMethod$|^imageMethod$|^sessionScoped$|^progressive$)/u,/(^pluginId$|^id$|^label$|^description$|^icon$|^path$|^placement$|^slug$|^requiresGatewayAuth$|^group$|^order$)/u,/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,/(^pluginId$|^kind$|^label$)/u,/(^pluginId$|^id$|^label$|^icon$|^linkReader$)/u,/(^hosts$|^pathPattern$|^detailMethod$|^previewMethod$|^imageMethod$|^sessionScoped$|^progressive$)/u,/^.*$/u,/(^pluginId$)/u,/(^reports$)/u,/(^pluginId$|^revision$|^status$|^error$)/u,/(^pluginId$|^actionId$|^sessionKey$|^agentId$|^payload$)/u,/(^ok$|^result$|^continueAgent$|^reply$)/u,/(^ok$|^error$|^code$|^details$)/u,/(^channel$|^force$|^timeoutMs$|^verbose$|^accountId$)/u,/(^channel$|^sessionKey$|^timeoutMs$|^accountId$|^currentQrDataUrl$)/u,/^data:image\/png;base64,/u,/(^sessionKey$|^agentId$|^provider$|^scope$|^includeArgs$)/u,/(^expectedOwnerId$|^outcome$)/u,/(^createdAt$|^archivePath$|^status$|^kind$|^target$|^namespace$|^error$|^pushFailed$|^bytes$|^location$|^retention$)/u,/(^name$|^provider$|^locationId$|^key$|^namespace$|^plaintextBytes$|^storedBytes$)/u,/(^kept$|^deleted$)/u,/(^name$)/u,/(^probe$)/u,/(^command$|^params$|^generation$|^timeoutMs$|^idempotencyKey$)/u,/(^agentId$|^sessionKey$|^runId$|^kind$|^status$|^direction$|^channel$|^after$|^before$|^limit$|^cursor$)/u,/(^runId$|^executionId$|^executionCursor$|^executionLimit$|^decisionCursor$|^decisionLimit$)/u,/(^agentId$|^sessionKey$|^runId$|^kind$|^status$|^after$|^before$|^limit$|^cursor$)/u,/(^mode$|^text$|^sessionKey$|^agentId$)/u,/(^sessionKey$|^agentId$|^markdown$|^plan$|^expectedRevision$)/u,/(^step$|^status$)/u,/(^sessionKey$|^agentId$|^idempotencyKey$)/u,/(^sessionKey$|^runId$|^agentId$|^messageRole$|^type$|^limit$|^cursor$)/u,/(^sessionKey$|^runId$|^agentId$|^messageRole$|^artifactId$)/u,/(^sessionKey$|^runId$|^agentId$|^messageRole$|^artifactId$|^transport$|^previewWidth$)/u,/(^profileId$|^idempotencyKey$)/u,/(^sessionKey$|^agentId$|^profileId$|^idempotencyKey$|^machineClass$|^os$|^presentation$)/u,/(^sessionKey$|^agentId$|^environmentId$)/u,/(^sessionKey$|^agentId$|^environmentId$|^action$|^processId$|^argv$|^input$|^timeoutMs$)/u,/^[A-Za-z0-9][A-Za-z0-9._:-]*$/u,{check:hasValidSessionExecAction},/(^profileId$|^projectPath$)/u,/(^environmentId$|^preparationKey$|^reused$)/u,/(^environmentId$|^force$)/u,/(^runtimeId$|^projection$|^includeDesktopSetup$|^includePreparedDetails$)/u,/(^environmentId$|^includePreparedDetails$)/u,/(^environmentId$)/u,/(^environmentId$|^port$|^title$|^description$|^path$)/u,/^\//u,/(^id$|^environmentId$)/u,/(^source$|^control$|^credentials$)/u,/(^kind$)/u,/(^username$|^password$)/u,/(^source$|^control$)/u,/(^kind$|^environmentId$)/u,/(^source$|^control$|^credentials$)/u,/(^kind$|^nodeId$)/u,/(^transport$|^wsPath$|^expiresAtMs$|^control$|^audio$|^audioUnavailableReason$|^canResize$|^vncPassword$|^auth$|^preauthenticated$)/u,/(^wsPath$|^encoding$|^sampleRate$|^channels$)/u,/(^source$|^app$)/u,/(^wsPath$)/u,/(^released$)/u,/(^machineName$|^hostname$|^platform$|^release$|^arch$|^osLabel$|^lanAddress$|^port$|^nodeVersion$|^pid$|^processInstanceId$|^uptimeMs$|^cpuCount$|^cpuModel$|^loadAverage$|^memoryTotalBytes$|^memoryFreeBytes$|^eventLoop$|^processMemory$|^diskTotalBytes$|^diskAvailableBytes$|^diskPath$|^disks$|^defaultAgentUtilityModel$)/u,/(^degraded$|^degradedSinceMs$|^reasons$|^intervalMs$|^delayP99Ms$|^delayMaxMs$|^utilization$|^cpuCoreRatio$|^cpuBreakdown$)/u,/(^mainThreadCoreRatio$|^workerCoreRatio$|^otherThreadsCoreRatio$|^hostUtilization$|^hostCpuCount$)/u,/(^rssBytes$|^heapUsedBytes$|^heapTotalBytes$|^externalBytes$|^arrayBuffersBytes$)/u,/(^path$|^totalBytes$|^availableBytes$)/u,/(^status$|^model$|^runtime$)/u,/(^id$|^kind$|^label$)/u,/(^status$|^model$|^runtime$)/u,/(^status$)/u,/(^status$)/u,/(^observedAt$|^status$|^people$|^devices$|^totalPeople$|^truncated$|^message$)/u,/(^id$|^profileId$|^name$|^online$|^onlineSince$|^activity$|^deviceCount$|^devices$)/u,/(^at$|^source$|^deviceId$)/u,/(^id$|^nodeId$|^name$|^kind$|^personIds$|^online$|^activity$|^connections$)/u,/(^id$|^clientId$|^platform$|^deviceFamily$|^timeZone$|^network$|^location$)/u,/(^ip$)/u,/(^source$|^status$|^city$|^region$|^country$|^countryCode$|^attribution$)/u,/(^text$|^url$)/u,/(^nodeId$|^title$|^body$|^environment$)/u,/(^commandName$|^targetIds$|^allowedPaths$|^forcedActivePaths$|^optionalActivePaths$|^providerOverrides$)/u,/(^webSearch$|^webFetch$)/u,/(^ok$|^assignments$|^diagnostics$|^inactiveRefPaths$)/u,/(^path$|^pathSegments$|^value$)/u,/(^entries$)/u,/(^name$|^scopeKind$|^scopeId$|^createdAtMs$|^updatedAtMs$|^updatedBy$|^kind$|^allowedHosts$)/u,/^[A-Z][A-Z0-9_]{0,127}$/u,/(^name$|^scopeKind$|^scopeId$|^createdAtMs$|^updatedAtMs$|^updatedBy$|^kind$|^value$)/u,/(^expectedOwnerId$|^inheritExistingKind$|^valueSource$|^name$|^value$|^kind$|^allowedHosts$)/u,/^(?:[A-Z][A-Z0-9_]{0,127}|github-setup-[a-f0-9]{32})$/u,/(^expectedOwnerId$|^name$)/u,/(^expectedOwnerId$|^inheritExistingKind$|^entries$)/u,/(^name$|^value$|^kind$)/u,/(^expectedOwnerId$|^name$|^allowedHosts$)/u,/(^ok$|^reloaded$|^kind$|^warningCount$)/u,/(^sessionKey$|^agentId$)/u,/(^title$|^prompt$|^tldr$|^cwd$|^sessionKey$|^agentId$)/u,/\S/u,/\S/u,/\S/u,/(^taskId$|^mode$|^cloudProfileId$|^cwd$)/u,/(^taskId$|^reason$)/u,/(^raw$|^baseHash$)/u,/(^raw$|^baseHash$|^sessionKey$|^deliveryContext$|^note$|^restartDelayMs$)/u,/(^channel$|^to$|^accountId$|^threadId$)/u,/(^raw$|^baseHash$|^sessionKey$|^deliveryContext$|^note$|^restartDelayMs$|^replacePaths$|^response$)/u,/(^path$)/u,/^[A-Za-z0-9_./\[\]\-*]+$/u,/(^path$|^schema$|^reloadKind$|^hint$|^hintPath$|^children$)/u,/(^label$|^help$|^docsUrl$|^tags$|^group$|^groups$|^order$|^advanced$|^sensitive$|^placeholder$|^multiline$|^presentation$|^itemTemplate$)/u,/(^id$|^title$|^order$|^properties$)/u,/(^key$|^path$|^type$|^required$|^hasChildren$|^reloadKind$|^hint$|^hintPath$)/u,/(^sessionId$|^message$|^wizardAnswer$|^wizardCancel$|^welcomeVariant$|^reset$|^context$|^delegation$)/u,/(^stepId$|^value$)/u,/(^stepId$)/u,/(^page$|^plugin$)/u,/^[A-Za-z0-9/_-]{1,64}$/u,/(^id$|^name$|^installed$|^declared$|^setting$)/u,/^[A-Za-z0-9@][A-Za-z0-9@._/-]{0,127}$/u,/(^tools$|^providers$|^channels$|^contracts$|^skills$|^mcpServers$|^incomplete$)/u,/(^path$|^label$)/u,/(^agentId$|^sessionKey$|^turnSourceChannel$|^turnSourceTo$|^turnSourceAccountId$|^turnSourceThreadId$)/u,/(^limit$)/u,/(^limit$|^beforeCursor$)/u,/(^modelTarget$|^agentId$)/u,/(^modelTarget$|^agentId$|^kind$|^modelRef$|^authChoice$|^apiKey$|^workspace$|^nativeSessionCatalogsEnabled$)/u,/^provider-auto:.+$/u,/^saved-auth:.+$/u,/(^modelTarget$|^agentId$|^kind$|^modelRef$|^authChoice$|^apiKey$|^workspace$|^nativeSessionCatalogsEnabled$|^sessionId$)/u,/(^expectedOwnerId$|^modelTarget$|^sessionId$|^agentId$|^authChoice$|^selectModel$|^workspace$|^nativeSessionCatalogsEnabled$)/u,/(^sessionId$|^agentId$|^runtimeId$|^configPatch$)/u,/(^mode$|^workspace$|^installDaemon$|^flow$|^channel$)/u,/(^sessionId$|^serverName$)/u,/(^sessionId$|^answer$)/u,/(^sessionId$|^closeInput$)/u,/(^text$)/u,/(^sessionKey$|^sessionAgentId$|^includeDisabled$|^limit$|^offset$|^query$|^enabled$|^scheduleKind$|^lastRunStatus$|^trigger$|^sortBy$|^sortDir$|^agentId$|^compact$|^includeDeliveryPreviews$)/u,/(^id$)/u,/(^jobId$)/u,/(^name$|^declarationKey$|^displayName$|^owner$|^agentId$|^sessionKey$|^description$|^enabled$|^deleteAfterRun$|^schedule$|^pacing$|^activeHours$|^idleOnly$|^trigger$|^sessionTarget$|^wakeMode$|^payload$|^delivery$|^failureAlert$)/u,/\S/u,/(^agentId$|^sessionKey$|^accountId$)/u,/(^kind$|^source$|^options$)/u,/^[a-z0-9][a-z0-9._-]*$/u,/(^kind$|^at$)/u,/(^kind$|^everyMs$|^anchorMs$)/u,/(^kind$|^expr$|^tz$|^staggerMs$)/u,/(^kind$|^command$|^cwd$)/u,/(^kind$|^command$|^cwd$|^mode$|^match$|^batchMs$|^maxBatchBytes$)/u,/(^min$|^max$)/u,/(^start$|^end$|^timezone$)/u,/^([01][0-9]|2[0-3]):[0-5][0-9]$/u,/^(([01][0-9]|2[0-3]):[0-5][0-9]|24:00)$/u,/(^script$|^once$)/u,/^session:.+/u,/(^kind$|^text$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^message$|^model$|^fallbacks$|^thinking$|^timeoutSeconds$|^allowUnsafeExternalContent$|^lightContext$|^skipIfScratchEmpty$|^includeReasoning$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^argv$|^cwd$|^env$|^input$|^timeoutSeconds$|^noOutputTimeoutSeconds$|^outputMaxBytes$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^script$|^timeoutSeconds$|^toolBudget$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^mode$|^channel$|^threadId$|^accountId$|^bestEffort$|^failureDestination$|^target$|^directPolicy$|^to$)/u,/(^channel$|^to$|^mode$|^accountId$)/u,/(^mode$|^channel$|^threadId$|^accountId$|^bestEffort$|^failureDestination$|^target$|^directPolicy$|^completionDestination$|^to$)/u,/(^mode$|^to$)/u,/(^mode$|^channel$|^threadId$|^accountId$|^bestEffort$|^failureDestination$|^to$)/u,/(^after$|^channel$|^to$|^cooldownMs$|^includeSkipped$|^mode$|^accountId$)/u,/(^id$|^patch$|^expectedConfigRevision$)/u,/(^name$|^displayName$|^agentId$|^sessionKey$|^description$|^enabled$|^deleteAfterRun$|^schedule$|^pacing$|^activeHours$|^idleOnly$|^trigger$|^sessionTarget$|^wakeMode$|^payload$|^delivery$|^failureAlert$|^state$)/u,/\S/u,/(^min$|^max$)/u,/(^start$|^end$|^timezone$)/u,/(^script$|^once$)/u,/(^kind$|^text$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^message$|^model$|^fallbacks$|^thinking$|^timeoutSeconds$|^allowUnsafeExternalContent$|^lightContext$|^skipIfScratchEmpty$|^includeReasoning$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^argv$|^cwd$|^env$|^input$|^timeoutSeconds$|^noOutputTimeoutSeconds$|^outputMaxBytes$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^kind$|^script$|^timeoutSeconds$|^toolBudget$|^toolsAllow$|^toolsAllowIsDefault$)/u,/(^mode$|^target$|^directPolicy$|^channel$|^threadId$|^accountId$|^bestEffort$|^failureDestination$|^completionDestination$|^to$)/u,/(^channel$|^to$|^mode$|^accountId$)/u,/(^mode$|^to$)/u,/(^after$|^channel$|^to$|^cooldownMs$|^includeSkipped$|^mode$|^accountId$)/u,/(^nextRunAtMs$|^runningAtMs$|^lastRunAtMs$|^lastRunStatus$|^lastStatus$|^lastError$|^lastErrorReason$|^lastDurationMs$|^consecutiveErrors$|^consecutiveSkipped$|^lastDelivered$|^lastDeliveryStatus$|^lastDeliveryError$|^lastFailureNotificationDelivered$|^lastFailureNotificationDeliveryStatus$|^lastFailureNotificationDeliveryError$|^lastFailureAlertAtMs$|^lastTriggerEvalAtMs$|^triggerEvalCount$|^lastTriggerFireAtMs$|^triggerState$|^streamStatus$|^streamError$|^streamConsecutiveFailures$|^streamRestartExhausted$|^streamDroppedBatches$|^streamCoalescedBatches$|^streamLastStartedAtMs$|^streamLastExitAtMs$)/u,/(^jobId$|^patch$|^expectedConfigRevision$)/u,/(^id$|^expectedConfigRevision$)/u,/(^jobId$|^expectedConfigRevision$)/u,/(^id$|^mode$|^expectedProcessInstanceId$|^waitTimeoutMs$)/u,/(^jobId$|^mode$|^expectedProcessInstanceId$|^waitTimeoutMs$)/u,/(^agentId$|^view$|^scope$|^id$|^jobId$|^runId$|^limit$|^offset$|^statuses$|^status$|^deliveryStatuses$|^deliveryStatus$|^query$|^sortDir$)/u,/^[^/\\]+$/u,/(^id$|^runId$|^runAtMs$|^cursor$|^limit$)/u,/(^id$|^content$|^expectedRevision$)/u,/(^jobId$|^content$|^expectedRevision$)/u,/(^scopes$)/u,/(^requestId$)/u,/(^id$)/u,/(^cursor$|^limit$|^kind$)/u,/(^id$|^kind$|^decision$|^reviewer$|^grantExpiresInDays$)/u,/(^expectedOwnerId$)/u,/(^file$|^baseHash$|^expectedOwnerId$)/u,/(^version$|^socket$|^defaults$|^agents$)/u,/(^path$|^token$)/u,/(^security$|^ask$|^askFallback$|^autoAllowSkills$)/u,/^.*$/u,/(^security$|^ask$|^askFallback$|^autoAllowSkills$|^allowlist$|^mcpTools$)/u,/(^id$|^pattern$|^source$|^commandText$|^argPattern$|^lastUsedAt$|^lastUsedCommand$|^lastResolvedPath$)/u,/(^server$|^tool$|^source$|^addedAt$|^lastUsedAt$)/u,/(^agentId$|^command$|^uses$|^grants$|^authorization$|^expectedOwnerId$)/u,/(^match$|^resolvedPath$)/u,/(^pattern$|^argPattern$|^resolvedPath$)/u,/(^source$|^security$|^ask$|^allowlistSatisfied$|^policySnapshot$|^requireAutoAllowSkills$)/u,/(^security$|^ask$|^askFallback$|^autoAllowSkills$|^allowlistRules$)/u,/(^pattern$|^argPattern$|^source$)/u,/(^operation$)/u,/(^operation$|^file$|^baseHash$)/u,/(^operation$|^agentId$|^command$|^uses$|^grants$|^authorization$)/u,/(^id$|^command$|^commandArgv$|^systemRunPlan$|^env$|^cwd$|^nodeId$|^host$|^security$|^ask$|^warningText$|^scope$|^unavailableDecisions$|^commandSpans$|^agentId$|^resolvedPath$|^sessionKey$|^sessionId$|^runId$|^toolCallId$|^turnSourceChannel$|^turnSourceTo$|^turnSourceAccountId$|^turnSourceThreadId$|^approvalReviewerDeviceIds$|^requireDeliveryRoute$|^suppressDelivery$|^deliverToApprovalClientsOnly$|^timeoutMs$|^twoPhase$)/u,/(^argv$|^cwd$|^commandText$|^commandPreview$|^agentId$|^sessionKey$|^policySnapshot$|^mutableFileOperand$)/u,/(^argvIndex$|^path$|^sha256$)/u,/(^startIndex$|^endIndex$)/u,/(^id$|^decision$|^reviewer$|^grantExpiresInDays$)/u,/(^limit$)/u,/(^grantId$)/u,/(^id$|^questions$|^agentId$|^sessionKey$|^runId$|^timeoutMs$)/u,/(^questionId$|^header$|^question$|^url$|^options$|^presentation$|^resource$|^multiSelect$|^answerFormat$|^allowEmpty$|^defaultAnswers$|^isOther$|^isSecret$|^secretStore$)/u,/^[a-z][a-z0-9_]*$/u,/(^label$|^description$|^value$|^thumbnail$|^resourceUri$|^preview$)/u,/(^type$|^name$|^arguments$)/u,/(^type$|^uri$|^name$|^title$|^description$|^mimeType$)/u,/(^viewId$|^selection$|^userOptions$)/u,/(^kind$|^accept$)/u,/(^name$|^kind$|^allowedHosts$|^reason$)/u,/(^id$|^timeoutMs$|^includeResolutionId$)/u,/(^id$|^answers$|^secretStoreAllowedHosts$|^resolvedBy$|^resolutionId$)/u,/(^answers$)/u,/^[a-z][a-z0-9_]*$/u,/(^id$|^cancel$|^resolvedBy$)/u,/(^capabilityConsentCode$|^pluginId$|^reviewToken$|^widened$|^acceptedAt$)/u,/(^channels$|^providers$|^tools$|^contracts$|^hooks$|^mcpServers$|^cliCommands$|^cliBackends$|^skills$|^dangerousConfigFlags$)/u,/(^cursor$|^limit$|^maxBytes$)/u,/(^refreshCheckout$)/u,/(^sentinel$|^updateAvailable$|^activeRun$|^lastRun$|^effectiveChannel$|^schedule$)/u,/(^currentVersion$|^latestVersion$|^channel$|^currentSha$|^upstreamRef$|^upstreamSha$|^repositoryUrl$|^commitsBehind$|^commits$)/u,/(^sha$|^subject$)/u,/(^runId$|^createdAtMs$|^updatedAtMs$|^trigger$|^phase$|^status$|^reason$|^admission$|^origin$|^target$|^before$|^after$|^steps$|^verification$|^repair$|^confirmedAtMs$|^finishedAtMs$|^downtimeMs$)/u,/^(ocm:[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/u,/(^owner$|^protocol$|^candidateVersion$|^checks$|^fallbackReason$)/u,/(^name$|^status$|^detail$)/u,/(^admission$|^candidateAdmission$|^driver$|^previousDrivers$|^requester$|^sessionKey$|^deliveryContext$|^campaignId$|^doctorHint$|^nextAction$)/u,/(^protocol$|^verdict$|^reasons$|^warnings$|^facts$)/u,/(^code$|^message$|^nextAction$)/u,/(^code$|^message$)/u,/(^candidateVersion$|^installedVersion$|^nodeEngines$|^checks$)/u,/(^host$|^pid$|^startIdentity$)/u,/^\d+$/u,/(^host$|^pid$|^startIdentity$)/u,/(^channel$|^accountId$|^senderId$|^authorizationSource$)/u,/(^channel$|^to$|^accountId$|^threadId$)/u,/(^channel$|^tag$|^kind$|^version$|^sha$|^installationMethod$)/u,/(^version$|^sha$|^buildId$)/u,/(^step$|^status$|^startedAtMs$|^endedAtMs$|^exitCode$|^termination$|^signal$|^stderrTail$|^detail$|^failureFacts$|^configChange$|^configWriteRefusal$|^snapshotCapacity$)/u,/(^check$|^code$|^message$|^npmErrorCode$|^packageSpec$|^affectedKey$|^pluginId$|^errorName$|^location$|^destination$)/u,/(^ownership$|^cause$|^destinationKind$|^prefix$|^packageRoot$|^runningRoot$|^runningPrefix$|^launcher$|^launcherTarget$)/u,/(^kind$|^key$)/u,/(^kind$|^message$)/u,/(^reason$|^message$|^keys$)/u,/(^sqliteBytes$|^pluginBytes$|^requiredBytes$|^reason$|^candidates$|^selection$)/u,/(^kind$|^directory$|^availableBytes$|^allocationError$)/u,/(^kind$|^directory$)/u,/(^rollbackOutcome$|^recovery$|^booted$|^runningVersion$|^runningBuildId$|^serviceRunning$|^pid$|^port$|^versionMatch$|^pluginErrors$|^channelsReady$|^readyz$|^coreReady$|^settled$|^noticeDelivered$|^doctorHint$)/u,/(^status$|^reason$)/u,/(^serviceRestartSafe$|^packageRollbackVerified$|^version$|^buildId$|^service$|^reason$)/u,/(^serviceRestartSafe$|^packageRollbackVerified$|^reason$)/u,/(^attempt$|^status$|^startedAtMs$|^endedAtMs$|^summary$|^reason$)/u,/(^channel$|^autoEnabled$|^install$|^target$|^campaign$)/u,/(^kind$|^git$|^immutable$)/u,/(^currentSha$|^upstreamSha$|^repositoryUrl$|^commitAtMs$|^installedAtMs$|^status$)/u,/(^currentSha$|^upstreamSha$|^repositoryUrl$|^commitAtMs$|^installedAtMs$|^status$|^commitsBehind$)/u,/(^currentSha$|^upstreamSha$|^repositoryUrl$|^commitAtMs$|^installedAtMs$|^status$|^commitsAhead$)/u,/(^currentSha$|^upstreamSha$|^repositoryUrl$|^commitAtMs$|^installedAtMs$|^status$|^commitsAhead$|^commitsBehind$)/u,/(^currentSha$|^upstreamSha$|^repositoryUrl$|^commitAtMs$|^installedAtMs$|^status$|^reason$)/u,/(^root$|^currentSha$|^currentPath$|^activationEnabled$|^releaseRetention$|^activation$|^lastActivation$|^prepared$)/u,/^[a-f0-9]{40}$/u,/(^version$|^mode$|^keepVerifiedGenerations$|^pins$|^generations$)/u,/(^sha$|^identity$)/u,/(^sha$|^path$|^identity$|^buildDigest$|^publishedRevision$|^verifiedRevision$)/u,/(^operationId$|^phase$|^previousSha$|^candidateSha$|^failure$|^recoveryCommand$)/u,IsUuid,/(^operationId$|^outcome$|^selectedSha$|^verifiedAtMs$|^gateway$)/u,/(^pid$|^bootId$|^version$|^buildId$)/u,/(^sha$|^path$|^buildDigest$|^preparedAtMs$)/u,/(^kind$|^version$)/u,/(^kind$|^upstreamRef$|^upstreamSha$|^commitsBehind$)/u,/(^id$|^state$|^announcedAtMs$|^applyAtMs$|^holdUntilMs$|^forceAtMs$|^updatedAtMs$)/u,/(^ok$|^schedule$)/u,/(^requester$|^sessionKey$|^deliveryContext$|^note$|^continuationMessage$|^restartDelayMs$|^timeoutMs$|^target$)/u,/(^channel$|^accountId$|^senderId$)/u,/(^kind$|^upstreamRef$|^upstreamSha$)/u,/^[^\s\u0000-\u001f\u007f-\u009f]+$/u,/^[a-fA-F0-9]{40}$/u,/(^runId$|^createdAtMs$|^updatedAtMs$|^trigger$|^phase$|^status$|^reason$|^admission$|^origin$|^target$|^before$|^after$|^steps$|^verification$|^repair$|^confirmedAtMs$|^finishedAtMs$|^downtimeMs$)/u,/(^runId$|^ok$|^result$|^ackDelivered$|^ackQueued$|^acknowledgement$|^code$|^message$|^handoff$|^restart$|^sentinel$)/u,/(^runId$|^expectedOwnerId$)/u,/(^dryRun$|^expectedOwnerId$)/u,/(^runId$)/u,/(^run$)/u,/(^limit$)/u,/(^runs$)/u,/(^runId$|^phase$|^status$|^updatedAtMs$)/u,/(^action$|^attemptId$)/u,/(^action$|^attemptId$|^previewDigest$)/u,/(^status$|^attemptId$|^body$|^previewDigest$|^title$)/u,/(^status$|^message$|^url$)/u,/(^status$|^fallbackUrl$|^message$)/u,/(^status$|^message$)/u,/(^status$|^message$)/u,/(^status$|^fallbackUrl$|^message$|^url$)/u,/(^command$|^sessionKey$|^agentId$|^requestId$)/u,/(^kind$|^direction$|^sessionKey$)/u,/(^kind$|^sessionKey$)/u,/(^kind$|^sessionKey$)/u,/(^kind$|^visible$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$|^pluginId$|^panelId$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$|^terminalSessionId$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$|^environmentId$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$|^portalId$)/u,/(^kind$|^open$|^expanded$|^dock$|^panel$|^environmentId$)/u,/(^kind$|^sessionKey$)/u,/(^kind$)/u,/(^requestId$|^presentation$)/u,/(^portalId$|^status$|^reason$)/u,/(^id$)/u,/(^id$|^mode$|^appearance$)/u,/(^accent$|^fontUi$|^fontChat$)/u,/(^id$|^definition$|^apply$|^mode$)/u,/^[a-z0-9][a-z0-9_-]*$/u,/(^name$|^description$|^mascot$|^brandName$|^brandIcon$|^workingIndicator$|^lobsterdex$|^communityLinks$|^workingPhrases$|^critters$|^avatarHat$|^light$|^dark$)/u,/^[a-z0-9][a-z0-9_-]{0,31}$/u,/^[a-z0-9][a-z0-9_-]{0,31}$/u,/(^background$|^foreground$|^card$|^card-foreground$|^popover$|^popover-foreground$|^primary$|^primary-foreground$|^secondary$|^secondary-foreground$|^muted$|^muted-foreground$|^accent$|^accent-foreground$|^destructive$|^destructive-foreground$|^border$|^input$|^ring$|^font-sans$|^font-mono$)/u,/(^kind$|^query$|^feed$|^officialOnly$|^pageSize$|^cursor$|^agentId$)/u,/(^keywords$|^kinds$|^pageSize$|^cursor$|^agentId$)/u,/(^sessionKey$|^agentId$|^environmentId$)/u,/(^environmentId$|^port$|^title$|^description$|^path$|^sessionKey$|^agentId$)/u,/(^id$|^environmentId$|^sessionKey$|^agentId$)/u,/(^source$|^ifRowsRevision$|^rowMode$|^limit$|^offset$|^activeMinutes$|^activityPulseBoundaries$|^activeOnly$|^requireLastInteraction$|^sortBy$|^includeGlobal$|^includeUnknown$|^excludeSubagents$|^excludeCron$|^excludeSystem$|^excludeDock$|^configuredAgentsOnly$|^includeDerivedTitles$|^includeLastMessage$|^includeActivitySummary$|^label$|^projectId$|^workspaceDir$|^group$|^pinned$|^boardFace$|^hasBoard$|^creatorId$|^ownerId$|^ownerFirst$|^involvingMe$|^profileRelation$|^involvingProfileId$|^includePeople$|^includeOwnerSessionCounts$|^spawnedBy$|^agentId$|^search$|^archived$)/u,/(^profileId$|^relationship$)/u,/(^source$|^ifRowsRevision$|^rowMode$|^limit$|^offset$|^activeMinutes$|^activityPulseBoundaries$|^activeOnly$|^requireLastInteraction$|^sortBy$|^includeGlobal$|^includeUnknown$|^excludeSubagents$|^excludeCron$|^excludeSystem$|^excludeDock$|^configuredAgentsOnly$|^includeDerivedTitles$|^includeLastMessage$|^includeActivitySummary$|^label$|^projectId$|^workspaceDir$|^group$|^pinned$|^boardFace$|^hasBoard$|^creatorId$|^ownerId$|^ownerFirst$|^involvingMe$|^profileRelation$|^involvingProfileId$|^includePeople$|^includeOwnerSessionCounts$|^spawnedBy$|^agentId$|^search$|^archived$|^includeMessageBodies$)/u,/(^kind$|^routeSegment$|^hostId$|^identifierAlphabet$|^fullLength$|^minPrefixLength$|^lookup$|^ambiguity$)/u,/^[a-z][a-z0-9-]*$/u,/(^catalogId$|^metadataOnly$|^cursors$|^agentId$|^progressId$|^allowPartialResults$|^search$|^limitPerHost$|^hostIds$)/u,/(^catalogId$|^hostId$|^threadId$|^agentId$|^sourceHomeId$|^limit$|^cursor$)/u,/(^catalogId$|^hostId$|^threadId$|^agentId$|^sourceHomeId$)/u,/(^catalogId$|^hostId$|^threadId$|^agentId$|^sourceHomeId$|^displayName$)/u,/(^catalogId$|^hostId$|^threadId$|^agentId$|^sourceHomeId$|^confirmNoOtherRunner$)/u,/(^catalogId$|^hostId$|^agentId$|^cwd$|^initialMessage$)/u,/(^agentId$|^sessionKeys$|^recall$|^scope$|^query$|^limit$)/u,/(^requesterAgentId$|^requesterSessionKey$|^sandboxed$|^visibility$|^mainSessionKey$|^restrictToSpawned$|^agentToAgent$)/u,/(^enabled$|^allow$)/u,/(^activeMinutes$|^activeOnly$|^requireLastInteraction$|^sortBy$|^includeGlobal$|^includeUnknown$|^excludeSubagents$|^excludeCron$|^excludeSystem$|^excludeDock$|^configuredAgentsOnly$|^label$|^projectId$|^workspaceDir$|^group$|^pinned$|^boardFace$|^hasBoard$|^creatorId$|^ownerId$|^involvingMe$|^profileRelation$|^involvingProfileId$|^spawnedBy$|^agentId$|^search$|^archived$)/u,/(^agent$|^allAgents$|^enforce$|^activeKey$|^fixMissing$|^fixDmScope$)/u,/(^keys$|^limit$|^maxChars$)/u,/(^key$|^agentId$|^includeNativeSubagents$|^includeDerivedTitles$|^includeLastMessage$)/u,/(^key$|^sessionId$|^label$|^reference$|^shortId$|^slugHint$|^agentId$|^spawnedBy$|^includeGlobal$|^includeUnknown$|^allowMissing$)/u,/(^key$|^slug$)/u,/(^sessionKey$|^agentId$|^path$|^search$)/u,/(^sessionKey$|^path$|^agentId$|^messageEntryId$)/u,/(^sessionKey$|^path$|^agentId$|^messageEntryId$|^refs$)/u,/(^sessionKey$|^path$|^agentId$|^expectedSource$|^content$|^expectedHash$)/u,/(^workspaceId$|^root$|^fileRoot$)/u,/(^key$|^agentId$)/u,/(^sessionKey$|^agentId$|^scope$|^commit$|^summaryOnly$|^poll$)/u,/(^sessionKey$|^agentId$|^question$|^selectionContext$|^attachments$|^model$|^thinkingLevel$|^fastMode$)/u,/(^sessions$)/u,/(^visible$)/u,/(^sessionKey$|^agentId$|^visibility$)/u,/(^sessionKey$|^agentId$|^expectedSessionId$|^enabled$)/u,/(^sessionKey$|^agentId$|^identityId$)/u,/(^sessionKey$|^agentId$|^text$)/u,/(^sessionKey$|^agentId$|^id$|^resolution$)/u,/(^sessionKey$|^agentId$|^sessionId$|^typing$|^preview$|^cursor$)/u,/(^sessionKey$|^agentId$|^messageId$|^emoji$|^remove$)/u,/(^sessionKey$|^agentId$|^sessionId$|^messageId$|^emoji$|^action$|^actor$|^reactions$)/u,/(^type$|^id$|^label$|^avatarUrl$|^identity$)/u,/(^type$|^id$)/u,/(^type$|^id$)/u,/(^type$|^pluginId$|^domain$|^idKind$|^id$)/u,/(^type$|^pluginId$|^accountId$|^senderKind$|^id$)/u,/(^type$|^actorType$|^source$|^id$)/u,/(^emoji$|^count$|^identities$)/u,/(^id$|^label$)/u,/(^key$|^idempotencyKey$|^agentId$|^surface$|^label$|^displayName$|^titleSource$|^category$|^model$|^agentRuntime$|^contextWindow$|^thinkingLevel$|^cyberAccessProgram$|^fastMode$|^permissionMode$|^communication$|^toolOverrides$|^incognito$|^visibility$|^catalogId$|^parentSessionKey$|^spawnDepth$|^fork$|^forkFrom$|^emitCommandHooks$|^succeedsParent$|^timeoutMs$|^task$|^message$|^mentions$|^attachments$|^projectId$|^projectGitUrl$|^repository$|^deviceFolder$|^worktree$|^worktreeSource$|^worktreeBaseRef$|^worktreeName$|^execNode$|^cwd$)/u,/(^send$|^receive$)/u,/(^mcpServers$|^mcpToolsDeny$|^skills$|^webSearch$)/u,/(^url$|^ref$)/u,/(^deviceId$|^path$)/u,/^[a-z0-9][a-z0-9-]{0,63}$/u,/(^agentId$|^message$|^model$|^catalogId$|^incognito$)/u,/(^key$|^agentId$|^message$|^mentions$|^thinking$|^attachments$|^timeoutMs$|^idempotencyKey$)/u,/(^key$|^agentId$|^recoverToGateway$)/u,/(^expectedGeneration$)/u,/(^ok$|^key$|^sessionId$|^placement$)/u,/(^state$|^generation$|^createdAtMs$|^updatedAtMs$|^stateChangedAtMs$)/u,/(^state$|^generation$|^createdAtMs$|^updatedAtMs$|^stateChangedAtMs$|^providerId$|^profileId$|^machine$|^environmentId$|^activeOwnerEpoch$|^workspaceBaseManifestRef$|^remoteWorkspaceDir$|^workerBundleHash$|^lastTranscriptAckCursor$|^lastLiveEventAckCursor$|^workspaceResultConflict$|^terminalReason$|^terminalAtMs$)/u,/(^class$|^os$|^osLabel$|^cpu$|^memoryGb$)/u,/^[a-f0-9]{64}$/u,/(^paths$|^stagedResultRef$|^totalCount$)/u,/(^ok$|^key$|^sessionId$|^placement$)/u,/(^state$|^generation$)/u,/(^key$|^agentId$|^subscriptionId$|^mode$|^includeApprovals$|^initialHistory$)/u,/(^cursor$|^knownState$|^limit$|^maxBytes$|^toolResultMaxChars$|^inputRunIds$)/u,/(^key$|^agentId$|^subscriptionId$)/u,/(^agentId$|^sessionKeys$)/u,/(^key$|^runId$|^agentId$|^clearQueued$)/u,/(^key$|^agentId$|^expectedSessionId$|^expectedLifecycleRevision$|^expectedPermissionMode$|^expectedSandboxMode$|^expectedNativeRuntimeConsent$|^expectedToolOverrides$|^expectedMarkedUnreadAt$|^expectedSidebarRoot$|^expectedCategory$|^expectedArchived$|^expectedSidebarAncestors$|^label$|^autoLabel$|^icon$|^color$|^category$|^boardFace$|^boardPresentation$|^statusNote$|^attention$|^ttlMinutes$|^archived$|^pinned$|^sidebarRoot$|^snoozedUntil$|^unread$|^contextWindow$|^thinkingLevel$|^cyberAccessProgram$|^fastMode$|^toolOverrides$|^verboseLevel$|^traceLevel$|^reasoningLevel$|^responseUsage$|^elevatedLevel$|^execHost$|^execSecurity$|^execAsk$|^execNode$|^permissionMode$|^communication$|^sandboxMode$|^nativeRuntimeConsent$|^model$|^agentRuntime$|^completionOwnerSessionKey$|^inheritedToolPolicyVersion$|^inheritedToolAllow$|^inheritedToolDeny$|^sendPolicy$|^groupActivation$)/u,/(^key$|^agentId$|^expectedSessionId$|^expectedSidebarRoot$|^expectedCategory$)/u,/(^send$|^receive$)/u,/(^sessionKey$|^agentId$|^sessionId$|^goalId$|^operationId$|^issuedAtMs$|^action$|^objective$|^expectedGoalUpdatedAt$|^expectedRunId$)/u,/(^sessionKey$|^agentId$|^sessionId$|^goalId$|^operationId$|^issuedAtMs$|^action$|^objective$)/u,/(^sessionKey$|^agentId$|^sessionId$|^goalId$|^operationId$|^issuedAtMs$|^action$|^note$)/u,/(^sessionKey$|^agentId$|^sessionId$|^goalId$|^operationId$|^issuedAtMs$)/u,/(^sessionKey$|^agentId$|^sessionId$|^reviewId$|^idempotencyKey$)/u,/(^targets$|^patch$)/u,/(^key$|^expectedMarkedUnreadAt$|^expectedSidebarRoot$|^expectedCategory$|^expectedArchived$|^expectedSidebarAncestors$|^agentId$|^expectedSessionId$|^expectedLifecycleRevision$|^expectedSandboxMode$|^expectedPermissionMode$|^expectedNativeRuntimeConsent$)/u,/(^label$|^autoLabel$|^icon$|^color$|^category$|^boardFace$|^boardPresentation$|^statusNote$|^attention$|^ttlMinutes$|^archived$|^pinned$|^sidebarRoot$|^snoozedUntil$|^unread$|^contextWindow$|^thinkingLevel$|^cyberAccessProgram$|^fastMode$|^toolOverrides$|^verboseLevel$|^traceLevel$|^reasoningLevel$|^responseUsage$|^elevatedLevel$|^execHost$|^execSecurity$|^execAsk$|^execNode$|^permissionMode$|^communication$|^sandboxMode$|^nativeRuntimeConsent$|^model$|^agentRuntime$|^completionOwnerSessionKey$|^inheritedToolPolicyVersion$|^inheritedToolAllow$|^inheritedToolDeny$|^sendPolicy$|^groupActivation$)/u,/(^key$|^agentId$|^pluginId$|^namespace$|^value$|^unset$)/u,/(^key$|^agentId$|^reason$|^expectedSessionId$)/u,/(^key$|^agentId$|^deleteTranscript$|^expectedSessionId$|^expectedLifecycleRevision$|^expectedSessionUpdatedAt$|^emitLifecycleHooks$|^archivedOnly$)/u,/(^key$|^agentId$|^owner$)/u,/(^type$|^id$)/u,/(^key$|^agentId$|^expectedSessionId$|^hidden$)/u,/(^groups$|^sectionOrder$)/u,/(^name$|^position$)/u,/(^defaults$)/u,/(^name$|^cwd$|^worktree$)/u,/(^names$|^sectionOrder$)/u,/(^name$|^to$)/u,/(^name$|^cwd$|^worktree$)/u,/(^ok$|^defaults$)/u,/(^name$)/u,/(^ok$|^groups$|^sectionOrder$|^updatedSessions$)/u,/(^key$|^agentId$|^maxLines$)/u,/(^sessionKey$|^agentId$|^leafEntryId$)/u,/(^sessionKey$|^agentId$|^entryId$)/u,/(^key$|^agentId$|^agentScope$|^creatorKey$|^startDate$|^endDate$|^mode$|^range$|^groupBy$|^includeHistorical$|^utcOffset$|^timeZone$|^limit$|^projection$|^offset$|^query$|^selectedDays$|^selectedHours$|^selectedSessions$|^recentKeys$|^sort$|^sortDirection$|^includeContextWeight$)/u,/^\d{4}-\d{2}-\d{2}$/u,/^UTC[+-]\d{1,2}(?::[0-5]\d)?$/u,/^\d{4}-\d{2}-\d{2}$/u,/(^state$|^embedUrl$|^openUrl$)/u,/(^sessionKey$|^agentId$|^idempotencyKey$|^workspacePath$|^title$|^body$|^draft$|^selection$)/u,/^[^\r\n]*\S[^\r\n]*$/u,/(^source$|^expected$)/u,/(^source$|^accountId$|^login$)/u,/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?$/u,/(^source$|^generation$|^account$)/u,/(^accountId$|^login$)/u,/(^action$|^pullRequestUrl$|^conflictsResolved$|^expectedHeadCommit$|^sessionKey$|^agentId$)/u,/^[a-f0-9]{40}$/u,/(^action$|^pullRequestUrl$|^sessionKey$|^agentId$)/u,/(^action$|^requestId$|^expectedHeadCommit$|^sessionKey$|^agentId$)/u,IsUuid,/(^action$|^requestId$|^expectedHeadCommit$|^evidence$|^sessionKey$|^agentId$)/u,/(^path$|^sha256$|^sizeBytes$)/u,/(^action$|^requestId$|^expectedHeadCommit$|^title$|^body$|^expectedTitle$|^expectedBody$|^sessionKey$|^agentId$)/u,/(^action$|^publishingSessionKey$|^requestId$|^expectedHeadCommit$|^mergeMethod$|^sessionKey$|^agentId$)/u,/(^action$|^conflictsResolved$|^baseCommit$|^sessionKey$|^agentId$)/u,/^[a-f0-9]{40}(?:[a-f0-9]{24})?$/u,/(^sessionKey$|^agentId$|^requestId$)/u,/(^policy$|^custody$|^target$|^request$|^remedies$)/u,/(^read$|^write$)/u,/(^kind$|^source$)/u,/(^kind$)/u,/(^kind$|^reason$)/u,/(^kind$|^basis$|^freshness$)/u,/(^kind$)/u,/(^kind$|^reason$)/u,/(^kind$|^selection$|^receipt$)/u,/(^requestId$|^effect$|^status$)/u,/(^kind$|^status$|^headCommit$|^url$)/u,/(^requestId$|^effect$|^status$)/u,/(^requestId$|^effect$|^status$|^url$|^repository$|^branch$|^headCommit$)/u,/(^requestId$|^effect$|^status$|^code$)/u,/(^kind$|^selection$)/u,/(^kind$|^reason$|^selectedRequestId$)/u,/(^kind$)/u,/(^kind$)/u,/(^kind$)/u,/(^kind$|^requestId$)/u,/(^sessionKey$|^agentId$|^idempotencyKey$)/u,/(^sessionKey$|^agentId$|^requestId$)/u,/(^sessionKey$|^agentId$|^requestId$|^generation$|^account$|^requestDigest$)/u,/^[a-f0-9]+$/u,/(^minProtocol$|^maxProtocol$|^client$|^caps$|^includeSessionMessageBodies$|^commands$|^computerUse$|^workerRuns$|^permissions$|^pathEnv$|^role$|^scopes$|^modelCatalog$|^device$|^auth$|^locale$|^userAgent$)/u,/(^id$|^displayName$|^version$|^buildId$|^platform$|^deviceFamily$|^modelIdentifier$|^timeZone$|^mode$|^instanceId$)/u,/(^bundleHash$|^openclawVersion$|^protocolFeatures$|^bundlePrewarm$)/u,/(^agentId$|^sessionKey$)/u,/(^agentId$|^shortId$|^slugHint$)/u,/(^id$|^publicKey$|^signature$|^signedAt$|^nonce$)/u,/(^token$|^bootstrapToken$|^deviceToken$|^password$|^approvalRuntimeToken$|^agentRuntimeIdentityToken$)/u,/(^bundleHash$|^openclawVersion$|^protocolFeatures$|^bundlePrewarm$)/u,/(^type$|^id$|^method$|^params$)/u,/(^minProtocol$|^maxProtocol$|^client$|^role$|^admission$)/u,/(^id$|^version$|^platform$|^mode$)/u,/(^environmentId$|^credential$|^ownerEpoch$|^rpcSetVersion$|^handshake$|^sessionId$|^runId$)/u,/(^environmentId$|^credential$|^ownerEpoch$|^rpcSetVersion$|^handshake$|^sessionId$|^runId$)/u,/(^sentAtMs$|^status$|^githubGeneration$)/u,/(^task$|^label$|^agentId$|^model$|^runTimeoutSeconds$|^toolCallId$)/u,/(^sessionKey$|^message$|^timeoutSeconds$|^toolCallId$)/u,/(^toolCallId$|^action$|^port$|^title$|^description$|^path$|^id$)/u,/^\//u,/(^toolCallId$|^action$|^person$|^deviceId$|^include$|^limit$)/u,/(^command$|^paramsJson$|^timeoutMs$|^idempotencyKey$)/u,/(^runEpoch$|^seq$|^baseLeafId$|^messages$)/u,/(^role$|^content$|^timestamp$|^operatorMessage$)/u,/(^type$|^text$|^textSignature$)/u,/(^type$|^data$|^mimeType$)/u,/(^turnScoped$)/u,/(^role$|^content$|^display$|^timestamp$|^customType$|^details$)/u,/(^kind$|^text$)/u,/(^role$|^content$|^display$|^timestamp$|^customType$|^details$)/u,/(^kind$|^turnScoped$)/u,/(^role$|^content$|^api$|^provider$|^model$|^responseModel$|^responseId$|^providerReplay$|^usage$|^timestamp$|^diagnostics$|^stopReason$|^errorMessage$|^errorCode$|^errorType$|^errorBody$|^retryAfterMs$|^itemId$)/u,/(^type$|^thinking$|^thinkingSignature$|^redacted$)/u,/(^type$|^id$|^name$|^arguments$|^thoughtSignature$|^executionMode$)/u,/^\S(?:.*\S)?$/u,/(^v$|^type$|^id$|^data$|^replayIndex$|^provider$|^api$|^model$|^baseUrlHash$|^sessionHash$|^authProfileHash$)/u,/^[a-z0-9]+$/u,/(^input$|^output$|^cacheRead$|^cacheWrite$|^usageReport$|^contextUsage$|^totalTokens$|^cost$)/u,/(^state$)/u,/(^state$|^promptTokens$|^totalTokens$)/u,/(^state$)/u,/(^input$|^output$|^cacheRead$|^cacheWrite$|^total$|^totalOrigin$)/u,/(^type$|^timestamp$|^error$|^details$)/u,/(^name$|^message$|^stack$|^code$)/u,/(^role$|^toolCallId$|^toolName$|^content$|^details$|^isError$|^timestamp$)/u,/(^runEpoch$|^lastAckedSeq$|^seq$|^runId$|^event$)/u,/(^kind$|^payload$)/u,/(^text$|^delta$|^replace$|^mediaUrls$|^phase$|^itemId$)/u,/^\S(?:.*\S)?$/u,/(^kind$|^payload$)/u,/(^text$|^delta$|^itemId$)/u,/(^kind$|^payload$)/u,/(^name$|^toolCallId$|^hideFromChannelProgress$|^phase$|^args$)/u,/(^name$|^toolCallId$|^hideFromChannelProgress$|^phase$|^partialResult$)/u,/(^name$|^toolCallId$|^hideFromChannelProgress$|^phase$|^meta$|^isError$|^result$|^toolErrorSummary$)/u,/(^kind$|^payload$)/u,/(^kind$|^title$|^itemId$|^toolCallId$|^approvalId$|^approvalSlug$|^command$|^host$|^reason$|^scope$|^message$|^phase$|^status$)/u,/(^kind$|^title$|^itemId$|^toolCallId$|^approvalId$|^approvalSlug$|^command$|^host$|^reason$|^scope$|^message$|^phase$|^status$)/u,/(^kind$|^payload$)/u,/(^phase$|^startedAt$)/u,/(^selectedProvider$|^selectedModel$|^activeProvider$|^activeModel$|^phase$|^reasonSummary$|^attemptSummaries$|^attempts$)/u,/(^provider$|^model$|^error$|^reason$|^authMode$|^status$|^code$)/u,/(^selectedProvider$|^selectedModel$|^activeProvider$|^activeModel$|^phase$|^previousActiveModel$)/u,/(^phase$|^fallbackStepType$|^fallbackStepFromModel$|^fallbackStepToModel$|^fallbackStepFromFailureReason$|^fallbackStepFromFailureDetail$|^fallbackStepChainPosition$|^fallbackStepFinalOutcome$)/u,/(^startedAt$|^endedAt$|^stopReason$|^yielded$|^timeoutPhase$|^providerStarted$|^aborted$|^toolErrorSummary$|^livenessState$|^replayInvalid$|^phase$|^error$)/u,/(^startedAt$|^endedAt$|^stopReason$|^yielded$|^timeoutPhase$|^providerStarted$|^aborted$|^toolErrorSummary$|^livenessState$|^replayInvalid$|^phase$)/u,/(^startedAt$|^endedAt$|^stopReason$|^yielded$|^timeoutPhase$|^providerStarted$|^aborted$|^toolErrorSummary$|^livenessState$|^replayInvalid$|^phase$|^error$|^fallbackExhaustedFailure$)/u,/(^requestId$|^terminalPolicy$|^drain$)/u,/(^status$|^reason$|^retryAfterMs$|^activeCount$|^blockers$|^writeCustody$)/u,/(^kind$|^count$|^message$)/u,/(^phase$|^count$)/u,/(^status$|^suspensionId$|^expiresAtMs$|^retryAfterMs$|^activeCount$|^blockers$|^writeCustody$)/u,/(^status$|^suspensionId$|^expiresAtMs$|^activeCount$|^blockers$|^writeCustody$)/u,/(^suspensionId$|^includeLifecycle$)/u,/(^status$)/u,/(^status$|^ownerId$|^phase$|^expiresAtMs$|^retryAfterMs$|^activeCount$|^blockers$|^writeCustody$)/u,/(^status$|^ownerId$|^expiresAtMs$|^writeCustody$)/u,/(^suspensionId$)/u,/(^suspensionId$|^commit$|^target$)/u,/(^pid$|^processInstanceId$)/u,/(^type$|^id$|^method$|^params$|^traceparent$|^expectedProfileId$)/u,/(^nodeId$)/u,/(^nodeId$|^displayName$)/u,/(^tools$)/u,/(^pluginId$|^name$|^description$|^parameters$|^command$|^mcp$)/u,/^[A-Za-z][A-Za-z0-9_-]{0,63}$/u,/(^server$|^tool$)/u,/(^skills$)/u,/(^name$|^description$|^content$)/u,/^(?!.*--)[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$/u,/(^environmentId$|^control$)/u,/(^transport$|^wsPath$|^expiresAtMs$|^control$|^canResize$|^vncPassword$)/u,/(^environmentId$|^app$)/u,/(^app$|^status$)/u,/(^ids$)/u,/(^nodeId$|^command$|^params$|^timeoutMs$|^idempotencyKey$|^sessionKey$|^turnSourceChannel$|^turnSourceTo$|^turnSourceAccountId$|^turnSourceThreadId$)/u,/(^id$|^nodeId$|^ok$|^payload$|^payloadJSON$|^error$)/u,/(^code$|^message$|^details$)/u,/(^capabilities$|^state$)/u,/(^invokeId$|^nodeId$|^seq$|^chunk$)/u,/(^event$|^payload$|^payloadJSON$)/u,/(^idleSeconds$|^source$|^saturated$)/u,/(^action$)/u,/(^cpuCount$|^loadAverage$|^memoryTotalBytes$|^memoryFreeBytes$|^diskTotalBytes$|^diskAvailableBytes$)/u,{check:hasValidNodeHostResources},/(^maxItems$)/u,/(^nodeId$|^type$|^priority$|^expiresInMs$|^wake$)/u,/(^deviceId$)/u,/(^publicUrl$|^preferRemoteUrl$|^includeQr$|^bootstrapProfile$|^joinUrl$)/u,/(^setupId$)/u,/(^deviceId$|^label$)/u,/(^deviceId$|^role$|^scopes$)/u,/(^deviceId$|^role$)/u,/(^nodeId$|^file$|^native$|^baseHash$)/u,/(^version$|^socket$|^defaults$|^agents$)/u,/(^defaultAction$|^rules$)/u,/(^pattern$|^action$|^shells$|^description$|^enabled$)/u,/(^path$|^exists$|^hash$|^file$|^resolvedDefaults$|^enabled$|^baseHash$|^defaultAction$|^rules$|^constraints$|^message$)/u,/(^security$|^ask$|^askFallback$|^autoAllowSkills$)/u,/(^baseHashRequired$|^defaultAllowAllowed$|^broadAllowRulesAllowed$|^dangerousAllowRulesAllowed$)/u,/(^query$|^category$|^featured$|^limit$)/u,/(^name$|^description$|^version$|^scope$|^manifest$|^files$)/u,/(^input$|^job$|^output$|^authority$)/u,/(^path$|^content$)/u,/(^agentId$|^sourceSessionKey$)/u,/(^agentId$|^draftId$)/u,/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/u,/(^agentId$|^draftId$|^content$|^expectedRevision$)/u,/(^agentId$|^draftId$|^choices$)/u,/(^name$|^displayName$|^description$|^excluded$)/u,/(^agentId$|^draftId$|^reviewToken$|^choices$)/u,/(^entries$)/u,/(^packageName$|^displayName$|^iconUrl$|^summary$|^latestVersion$|^channel$|^official$|^ownerHandle$|^downloads$|^installs$|^featuredAt$|^updatedAtMs$)/u,/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u,/(^packageName$|^version$)/u,/(^detail$)/u,/(^packageName$|^displayName$|^iconUrl$|^summary$|^latestVersion$|^channel$|^official$|^ownerHandle$|^downloads$|^installs$|^featuredAt$|^updatedAtMs$|^version$|^agentName$|^agentDescription$|^workspaceFiles$|^skills$|^plugins$|^mcpServers$|^scheduledJobs$|^contents$|^scanStatus$)/u,/(^instructions$|^skills$|^integrations$|^automations$)/u,/(^name$|^source$|^excerpt$)/u,/(^name$|^version$|^excerpt$)/u,/(^name$|^kind$|^version$)/u,/(^name$|^schedule$|^timezone$)/u,/(^packageName$|^version$|^kind$|^name$)/u,/(^preview$)/u,/(^kind$|^name$|^content$)/u,/(^target$)/u,/(^schemaVersion$|^records$|^summary$)/u,/(^agentId$|^name$|^version$|^sourceKind$|^status$|^agentState$|^bootstrapState$|^orphaned$|^addedAtMs$|^updatedAtMs$|^resources$)/u,/(^kind$|^id$|^state$|^reason$|^relationship$|^origin$|^independentOwner$)/u,/(^templates$|^healthy$|^attention$|^managed$|^referenced$)/u,/(^source$|^agentId$)/u,/(^source$|^agentId$|^planIntegrity$|^acknowledgeClawHubRisk$|^acknowledgeCapabilities$|^acknowledgeSkillWarnings$)/u,/(^actionId$|^pluginId$|^reviewToken$|^capabilityGrants$|^capabilityGrantsByPluginId$|^acknowledgeRiskWarning$)/u,/(^hooks$|^llm$|^subagent$)/u,/(^allowPromptInjection$|^allowConversationAccess$)/u,/(^effective$|^configured$)/u,/(^allowModelOverride$|^allowedModels$|^allowedCompletionModels$|^allowAuthProfileOverride$|^allowAgentIdOverride$)/u,/(^allowModelOverride$|^allowedModels$)/u,/^.*$/u,/(^actionId$|^ref$|^reviewToken$|^acknowledgeRiskWarning$)/u,/(^agentId$|^source$)/u,/(^agentId$|^source$|^planIntegrity$|^acknowledgeClawHubRisk$|^acknowledgeCapabilities$|^acknowledgeSkillWarnings$)/u,/(^agentId$|^planIntegrity$)/u,/(^schemaVersion$|^operation$|^planIntegrity$|^target$|^actions$|^capabilities$|^pluginReviews$|^skillReviews$|^blockers$|^trustWarning$|^manifestDisclosure$|^riskAcknowledgementRequired$|^configuredAccess$|^scheduledJobs$|^readiness$)/u,/(^agentId$|^workspace$|^name$|^currentVersion$|^targetVersion$)/u,/(^kind$|^id$|^action$|^blocked$|^reason$|^effect$)/u,/(^type$|^destination$|^source$|^currentDigest$|^desiredDigest$|^currentPresent$)/u,/(^type$|^currentDigest$|^desiredDigest$|^proposed$|^ownership$)/u,/(^transport$|^command$|^arguments$|^url$|^urlDigest$|^queryParameterNames$|^environment$|^authentication$|^toolFilter$|^timeout$|^connectTimeout$)/u,/(^name$|^sourceName$)/u,/(^include$|^exclude$)/u,/(^relationship$|^origin$|^independentOwner$|^affectedTemplateCount$)/u,/(^type$|^relationship$|^origin$|^independentOwner$|^affectedTemplateCount$)/u,/(^type$|^current$|^desired$|^ownership$)/u,/(^source$|^ref$|^version$|^integrity$)/u,/^sha256-[A-Za-z0-9+/]{43}=$/u,/(^kind$|^id$|^action$|^reason$)/u,/(^actionId$|^pluginId$|^ref$|^version$|^ownerAction$|^integrity$|^declaredCapabilities$|^capabilityGrants$|^capabilityGrantsByPluginId$|^reviewToken$|^riskWarning$)/u,/(^channels$|^providers$|^tools$|^contracts$|^hooks$|^mcpServers$|^cliCommands$|^cliBackends$|^skills$|^dangerousConfigFlags$)/u,/(^actionId$|^ref$|^version$|^integrity$|^riskWarning$|^reviewToken$)/u,/(^code$|^path$|^message$)/u,/(^source$|^manifestJson$|^openClawProfileJson$)/u,/(^packageName$|^version$|^integrity$|^byteLength$)/u,/^sha256:[a-f0-9]{64}$/u,/(^coverage$|^current$|^desired$|^unresolved$)/u,/(^tools$|^sandbox$|^filesystem$|^heartbeat$|^memorySearch$|^subagentTargets$)/u,/(^allowed$|^excluded$|^explicitAllow$|^explicitDeny$)/u,/(^mode$|^scope$|^workspaceAccess$|^backend$)/u,/(^workspaceOnly$)/u,/(^enabled$|^intervalMs$|^activeHours$|^isolatedSession$)/u,/(^start$|^end$|^timezone$)/u,/(^state$)/u,/(^state$)/u,/(^state$|^rememberAcrossConversations$|^sessionMemory$|^indexedSources$|^searchSources$|^extraPathCount$)/u,/(^allowedAgentIds$|^allowAnyConfiguredAgent$|^implicitSelfAllowed$|^requireAgentId$)/u,/(^coverage$|^jobs$)/u,/(^id$|^action$|^blocked$|^current$|^proposed$)/u,/(^schedule$|^session$|^delivery$|^messageDigest$)/u,/(^cron$|^timezone$)/u,/(^everyMs$)/u,/(^schedule$|^session$|^delivery$|^messageDigest$|^message$)/u,/(^ready$|^requirements$)/u,/(^kind$|^owner$)/u,/(^html$)/u,/(^docId$|^sessionKey$)/u,/^(?!\.{1,2}$)[A-Za-z0-9._-]+$/u,/(^projectId$|^agentId$)/u,/(^includeObserved$)/u,/(^path$|^name$)/u,/(^gitUrl$|^name$)/u,/(^query$)/u,/(^id$|^deleteCheckout$)/u,/^[a-z0-9][a-z0-9-]{0,63}$/u,/(^sessionKey$|^agentId$|^ops$)/u,/(^kind$|^tabId$|^title$|^chatDock$)/u,/^[a-z0-9-]{1,40}$/u,/(^kind$|^tabId$|^title$|^chatDock$|^position$)/u,/(^kind$|^tabId$)/u,/(^kind$|^tabIds$)/u,/(^kind$|^name$|^tabId$|^position$|^after$)/u,/^[a-z0-9][a-z0-9._-]{0,63}$/u,/^[a-z0-9-]{1,40}$/u,/^[a-z0-9][a-z0-9._-]{0,63}$/u,/(^kind$|^name$|^sizeW$|^sizeH$|^heightMode$)/u,/(^kind$|^name$)/u,/(^kind$|^html$)/u,/(^kind$|^descriptor$)/u,/(^serverName$|^toolName$|^uiResourceUri$|^toolCallId$)/u,/(^kind$|^pluginKind$|^props$)/u,/^[a-z0-9][a-z0-9-]{0,63}:[a-z0-9][a-z0-9._-]{0,63}$/u,/(^kind$|^contentKind$|^source$)/u,/^[a-z][a-z0-9-]{0,31}$/u,/(^sessionKey$|^agentId$|^name$|^revision$|^instanceId$)/u,/(^sessionKey$|^agentId$|^name$|^title$|^content$|^presentation$|^heightMode$|^placement$|^declared$|^generatedIdentity$)/u,/(^kind$|^viewId$)/u,/(^kind$|^docId$)/u,/(^tabId$|^size$|^after$)/u,/(^netOrigins$|^tools$)/u,/(^source$|^key$|^fallbackName$)/u,/(^sessionKey$|^agentId$|^name$|^decision$|^revision$|^instanceId$)/u,/(^sessionKey$|^agentId$|^widget$|^payload$)/u,/(^ticket$|^payload$)/u,/(^ticket$)/u,/(^ticket$|^bindingId$|^params$)/u,/^.*$/u,/(^ticket$|^action$|^jobId$)/u,/(^ticket$|^action$|^params$)/u,/(^repoRoot$|^name$|^baseRef$|^profiles$|^expectedOwnerId$|^expectedRepoIdentity$)/u,/^[a-z0-9][a-z0-9-]{0,63}$/u,/(^id$|^force$|^ifLossless$|^exactState$|^expectedOwnerId$)/u,/(^ownerKind$|^ownerId$|^createdAt$|^lastActiveAt$|^head$|^branchHead$|^indexSha256$)/u,/^[a-f0-9]{40}(?:[a-f0-9]{24})?$/u,/(^id$|^recoverExactState$|^expectedOwnerId$)/u,/(^expectedOwnerId$|^jobId$|^retryDeferred$)/u,/(^sessionKey$|^path$|^recoveryId$|^expectedOwnerId$)/u,/(^id$|^snapshot$|^expectedOwnerId$)/u,/(^id$|^expectedSnapshotRef$|^expectedSnapshotOid$|^expectedRemovedAt$|^retainedSourceRef$|^expectedRetainedSourceOid$|^expectedOwnerId$)/u,/^refs\/(?:heads|remotes)\/.+/u,/(^repoRoot$|^includeRepositoryStatus$)/u,/(^path$|^nodeId$)/u,/(^path$|^parent$|^home$|^entries$)/u,/(^name$|^path$|^hidden$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^type$|^environmentId$|^sessionId$|^ownerEpoch$|^rpcSetVersion$|^protocolFeatures$|^credentialExpiresAtMs$|^toolSurface$|^policy$)/u,/(^generation$|^presentation$|^tools$|^policy$)/u,/(^codeMode$|^toolSearch$|^toolSearchDirectoryLean$|^forceDirectMessageTool$|^skills$)/u,/(^enabled$|^executor$|^mode$|^timeoutMs$|^memoryLimitBytes$|^maxOutputBytes$|^maxSnapshotBytes$|^maxPendingToolCalls$|^snapshotTtlSeconds$|^searchDefaultLimit$|^maxSearchLimit$)/u,/(^enabled$|^mode$|^include$|^exclude$|^searchDefaultLimit$|^maxSearchLimit$)/u,/(^source$|^name$)/u,/(^name$|^description$|^location$)/u,/(^id$|^execution$|^replay$|^plugin$|^timeout$|^definition$)/u,/(^pluginId$|^optional$|^replaySafe$|^sideEffecting$|^mcp$)/u,/(^serverName$|^safeServerName$|^toolName$|^operation$|^node$)/u,/(^id$|^displayName$)/u,/(^minimumMs$|^argument$|^defaultSeconds$|^paddingMs$)/u,/(^name$|^label$|^description$|^parameters$|^outputSchema$|^hideFromChannelProgress$|^resultContentSource$|^executionMode$|^catalogMode$|^async$)/u,/(^workspaceOnly$|^readOnly$|^applyPatchEnabled$|^applyPatchWorkspaceOnly$|^applyPatchContainmentSource$|^modelContextWindowTokens$|^modelHasVision$|^memoryFlushWritePath$|^imageSanitization$)/u,/(^maxBytes$|^maxDimensionPx$)/u,/(^heartbeatIntervalMs$|^maxPayload$)/u,/(^type$|^id$|^ok$|^error$)/u,/(^code$|^message$|^details$|^retryable$|^retryAfterMs$)/u,/(^reason$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^outcome$|^baseLeafId$)/u,/(^outcome$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^content$|^details$|^isError$|^terminate$|^progress$|^mcpGuestResult$|^mcpBlockedReason$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^receivedAtMs$|^status$|^ownerEpoch$|^github$)/u,/(^generation$|^token$|^expiresAtMs$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^entryIds$|^newLeafId$)/u,/(^type$|^id$|^ok$|^error$)/u,/(^code$|^message$|^details$)/u,/(^reason$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^ackedSeq$)/u,/(^type$|^id$|^ok$|^error$)/u,/(^code$|^message$|^details$)/u,/(^reason$)/u,/(^reason$|^ackedSeq$|^expectedSeq$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^resultJson$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^status$)/u,/(^type$|^id$|^ok$|^error$)/u,/(^code$|^message$|^details$)/u,/(^reason$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^status$)/u,/(^type$|^id$|^ok$|^payload$)/u,/(^operation$|^binding$|^decision$)/u,/(^decision$|^risk$|^rationale$|^userAuthorization$)/u,/(^decision$|^risk$|^rationale$|^userAuthorization$)/u,/(^operation$|^binding$|^id$|^expiresAtMs$|^decision$)/u,/(^operation$|^binding$|^decision$|^terminalReason$)/u],check_2=e=>!1,check_6=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1),check_7=e=>Number.isInteger(e)&&(!(Number.isFinite(e)||typeof e==`bigint`)||e>=0),check_8=e=>check_9(e)||check_46(e)||check_58(e),check_9=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`commandText`in e&&`allowedDecisions`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[3].test(t)||check_2(e[t]))&&check_10(e.kind)&&check_6(e.commandText)&&(e.commandPreview===void 0||!(`commandPreview`in e)||check_11(e.commandPreview))&&(e.warningText===void 0||!(`warningText`in e)||check_11(e.warningText))&&(e.streamProposal===void 0||!(`streamProposal`in e)||check_14(e.streamProposal))&&(e.host===void 0||!(`host`in e)||check_11(e.host))&&(e.nodeId===void 0||!(`nodeId`in e)||check_18(e.nodeId))&&(e.agentId===void 0||!(`agentId`in e)||check_18(e.agentId))&&(e.scope===void 0||!(`scope`in e)||check_19(e.scope))&&check_41(e.allowedDecisions),check_10=e=>typeof e==`string`&&e===`exec`,check_11=e=>check_12(e)||check_13(e),check_12=e=>typeof e==`string`,check_13=e=>e===null,check_14=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`jobId`in e&&`name`in e&&`operation`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[4].test(t)||check_2(e[t]))&&check_6(e.jobId)&&check_6(e.name)&&check_15(e.operation),check_15=e=>check_16(e)||check_17(e),check_16=e=>typeof e==`string`&&e===`add`,check_17=e=>typeof e==`string`&&e===`update`,check_18=e=>check_6(e)||check_13(e),check_19=e=>check_20(e)||check_28(e)||check_32(e)||check_37(e),check_20=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`target`in e&&`recipientCount`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[5].test(t)||check_2(e[t]))&&check_21(e.kind)&&check_22(e.target)&&check_23(e.recipientCount)&&(e.recipients===void 0||!(`recipients`in e)||check_24(e.recipients))&&(e.audience===void 0||!(`audience`in e)||check_25(e.audience)),check_21=e=>typeof e==`string`&&e===`message-send`,check_22=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=128||e.length<=256&&CodePointCount(e)<=128),check_23=e=>Number.isInteger(e)&&(!(Number.isFinite(e)||typeof e==`bigint`)||e>=1&&e<=1e6),check_24=e=>Array.isArray(e)&&e.every((e,t)=>check_22(e))&&e.length<=5,check_25=e=>check_26(e)||check_27(e),check_26=e=>typeof e==`string`&&e===`internal`,check_27=e=>typeof e==`string`&&e===`external`,check_28=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`amount`in e&&`currency`in e&&`target`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[6].test(t)||check_2(e[t]))&&check_29(e.kind)&&check_30(e.amount)&&check_31(e.currency)&&check_22(e.target),check_29=e=>typeof e==`string`&&e===`payment`,check_30=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=40||e.length<=80&&CodePointCount(e)<=40),check_31=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=12||e.length<=24&&CodePointCount(e)<=12),check_32=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`target`in e&&`visibility`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[7].test(t)||check_2(e[t]))&&check_33(e.kind)&&check_22(e.target)&&check_34(e.visibility),check_33=e=>typeof e==`string`&&e===`external-post`,check_34=e=>check_35(e)||check_36(e),check_35=e=>typeof e==`string`&&e===`public`,check_36=e=>typeof e==`string`&&e===`restricted`,check_37=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`automation`in e&&`command`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[8].test(t)||check_2(e[t]))&&check_38(e.kind)&&check_22(e.automation)&&check_39(e.command)&&(e.expiresInDays===void 0||!(`expiresInDays`in e)||check_40(e.expiresInDays)),check_38=e=>typeof e==`string`&&e===`standing-grant`,check_39=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=256||e.length<=512&&CodePointCount(e)<=256),check_40=e=>Number.isInteger(e)&&(!(Number.isFinite(e)||typeof e==`bigint`)||e>=1&&e<=3650),check_41=e=>Array.isArray(e)&&e.length!==0&&e.some((e,t)=>check_42(e))&&e.every((e,t)=>check_43(e))&&e.length>=1&&e.length<=3&&new Set(e.map(Hash)).size===e.length,check_42=e=>typeof e==`string`&&e===`deny`,check_43=e=>check_44(e)||check_45(e)||check_42(e),check_44=e=>typeof e==`string`&&e===`allow-once`,check_45=e=>typeof e==`string`&&e===`allow-always`,check_46=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`title`in e&&`description`in e&&`severity`in e&&`allowedDecisions`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[9].test(t)||check_2(e[t]))&&check_47(e.kind)&&check_48(e.title)&&check_49(e.description)&&(e.detail===void 0||!(`detail`in e)||check_50(e.detail))&&check_51(e.severity)&&(e.pluginId===void 0||!(`pluginId`in e)||check_18(e.pluginId))&&(e.toolName===void 0||!(`toolName`in e)||check_18(e.toolName))&&(e.agentId===void 0||!(`agentId`in e)||check_18(e.agentId))&&(e.scope===void 0||!(`scope`in e)||check_19(e.scope))&&check_41(e.allowedDecisions)&&(e.externalResolution===void 0||!(`externalResolution`in e)||check_55(e.externalResolution)),check_47=e=>typeof e==`string`&&e===`plugin`,check_48=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=80||e.length<=160&&CodePointCount(e)<=80),check_49=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=512||e.length<=1024&&CodePointCount(e)<=512),check_50=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=16384||e.length<=32768&&CodePointCount(e)<=16384),check_51=e=>check_52(e)||check_53(e)||check_54(e),check_52=e=>typeof e==`string`&&e===`info`,check_53=e=>typeof e==`string`&&e===`warning`,check_54=e=>typeof e==`string`&&e===`critical`,check_55=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`label`in e&&`decisions`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[10].test(t)||check_2(e[t]))&&check_48(e.label)&&check_56(e.decisions),check_56=e=>Array.isArray(e)&&e.every((e,t)=>check_57(e))&&e.length>=1&&e.length<=2&&new Set(e.map(Hash)).size===e.length,check_57=e=>check_44(e)||check_45(e),check_58=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`title`in e&&`description`in e&&`proposalHash`in e&&`allowedDecisions`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[11].test(t)||check_2(e[t]))&&check_59(e.kind)&&check_48(e.title)&&check_49(e.description)&&check_60(e.proposalHash)&&(e.agentId===void 0||!(`agentId`in e)||check_18(e.agentId))&&check_61(e.allowedDecisions),check_59=e=>typeof e==`string`&&e===`system-agent`,check_60=e=>typeof e==`string`&&T[12].test(e),check_61=e=>Array.isArray(e)&&e.every((e,t)=>t<2||check_2(e))&&(e.length<=0||check_44(e[0]))&&(e.length<=1||check_42(e[1]))&&e.length>=2,check_69=e=>typeof e==`string`&&e===`channel`,check_70=e=>typeof e==`string`&&e===`runtime`,check_71=e=>typeof e==`string`&&e===`system`,check_72=e=>typeof e==`string`&&e===`allowed`,check_76=e=>typeof e==`string`&&e===`denied`,check_98=e=>check_8(e),check_99=e=>check_100(e),check_100=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`schemaVersion`in e&&`receiptId`in e&&`contextId`in e&&`executionId`in e&&`runId`in e&&`occurredAt`in e&&`action`in e&&`decision`in e&&`enforcement`in e&&`source`in e&&`missingEvidence`in e&&`remediation`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[21].test(t)||check_2(e[t]))&&check_101(e.schemaVersion)&&check_39(e.receiptId)&&check_39(e.contextId)&&check_39(e.executionId)&&check_39(e.runId)&&(e.actionId===void 0||!(`actionId`in e)||check_102(e.actionId))&&check_7(e.occurredAt)&&(e.representedSubject===void 0||!(`representedSubject`in e)||check_103(e.representedSubject))&&check_107(e.action)&&check_109(e.decision)&&check_113(e.enforcement)&&check_120(e.source)&&check_119(e.missingEvidence)&&check_121(e.remediation),check_101=e=>Number.isFinite(e)&&e===1,check_102=e=>typeof e==`string`&&(e.length>=2||e.length>=1&&CodePointCount(e)>=1)&&(e.length<=256||e.length<=512&&CodePointCount(e)<=256),check_103=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`state`in e&&`principal`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[22].test(t)||check_2(e[t]))&&check_104(e.state)&&check_105(e.principal),check_104=e=>typeof e==`string`&&e===`present`,check_105=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`domainRef`in e&&`principalRef`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[23].test(t)||check_2(e[t]))&&check_106(e.kind)&&check_39(e.domainRef)&&check_39(e.principalRef),check_106=e=>typeof e==`string`&&e===`person`,check_107=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`family`in e&&`operation`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[24].test(t)||check_2(e[t]))&&check_39(e.family)&&check_39(e.operation)&&(e.resourceRef===void 0||!(`resourceRef`in e)||check_102(e.resourceRef))&&(e.targetRef===void 0||!(`targetRef`in e)||check_102(e.targetRef))&&(e.summary===void 0||!(`summary`in e)||check_108(e.summary)),check_108=e=>typeof e==`string`&&(e.length<=512||e.length<=1024&&CodePointCount(e)<=512),check_109=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`outcome`in e&&`reasonCode`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[25].test(t)||check_2(e[t]))&&check_110(e.outcome)&&check_39(e.reasonCode),check_110=e=>check_72(e)||check_76(e)||check_111(e)||check_112(e),check_111=e=>typeof e==`string`&&e===`not-applicable`,check_112=e=>typeof e==`string`&&e===`unknown`,check_113=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`coverageState`in e&&`policyRefs`in e&&`grantRefs`in e&&`contextFieldsUsed`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[26].test(t)||check_2(e[t]))&&check_114(e.coverageState)&&(e.evaluatorRef===void 0||!(`evaluatorRef`in e)||check_102(e.evaluatorRef))&&check_119(e.policyRefs)&&check_119(e.grantRefs)&&check_119(e.contextFieldsUsed),check_114=e=>check_115(e)||check_116(e)||check_117(e)||check_112(e)||check_118(e),check_115=e=>typeof e==`string`&&e===`enforced`,check_116=e=>typeof e==`string`&&e===`attribution-only`,check_117=e=>typeof e==`string`&&e===`unattributed`,check_118=e=>typeof e==`string`&&e===`unsupported`,check_119=e=>Array.isArray(e)&&e.every((e,t)=>check_39(e))&&e.length<=16,check_120=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`owner`in e&&`recordRef`in e&&`decisionBoundary`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[27].test(t)||check_2(e[t]))&&check_39(e.owner)&&check_39(e.recordRef)&&check_39(e.decisionBoundary),check_121=e=>Array.isArray(e)&&e.every((e,t)=>check_122(e))&&e.length<=8,check_122=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`code`in e&&`text`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[28].test(t)||check_2(e[t]))&&check_39(e.code)&&check_49(e.text),check_123=e=>check_124(e),check_124=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`schemaVersion`in e&&`contextId`in e&&`executionId`in e&&`runId`in e&&`createdAt`in e&&`trustDomain`in e&&`invoker`in e&&`ingress`in e&&`agentPrincipal`in e&&`agentDefinition`in e&&`runtimeInstance`in e&&`applicableGrants`in e&&`assurance`in e&&`coverageState`in e&&`missingEvidence`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[29].test(t)||check_2(e[t]))&&check_101(e.schemaVersion)&&check_39(e.contextId)&&check_39(e.executionId)&&check_39(e.runId)&&check_7(e.createdAt)&&check_125(e.trustDomain)&&check_129(e.invoker)&&check_138(e.ingress)&&check_148(e.agentPrincipal)&&check_149(e.agentDefinition)&&check_150(e.runtimeInstance)&&(e.representedSubject===void 0||!(`representedSubject`in e)||check_155(e.representedSubject))&&(e.sponsor===void 0||!(`sponsor`in e)||check_156(e.sponsor))&&check_157(e.applicableGrants)&&check_159(e.assurance)&&(e.lineage===void 0||!(`lineage`in e)||check_176(e.lineage))&&check_178(e.coverageState)&&check_119(e.missingEvidence),check_125=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`domainRef`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[30].test(t)||check_2(e[t]))&&check_126(e.kind)&&check_39(e.domainRef)&&check_127(e.state),check_126=e=>typeof e==`string`&&e===`gateway-cell`,check_127=e=>check_104(e)||check_128(e)||check_112(e)||check_118(e),check_128=e=>typeof e==`string`&&e===`absent`,check_129=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[31].test(t)||check_2(e[t]))&&(e.principal===void 0||!(`principal`in e)||check_130(e.principal))&&check_127(e.state),check_130=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`domainRef`in e&&`principalRef`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[32].test(t)||check_2(e[t]))&&check_131(e.kind)&&check_39(e.domainRef)&&check_39(e.principalRef)&&(e.displayLabel===void 0||!(`displayLabel`in e)||check_137(e.displayLabel)),check_131=e=>check_106(e)||check_132(e)||check_133(e)||check_134(e)||check_135(e)||check_71(e)||check_136(e)||check_70(e),check_132=e=>typeof e==`string`&&e===`agent`,check_133=e=>typeof e==`string`&&e===`service`,check_134=e=>typeof e==`string`&&e===`schedule`,check_135=e=>typeof e==`string`&&e===`webhook`,check_136=e=>typeof e==`string`&&e===`local-account`,check_137=e=>typeof e==`string`&&(e.length<=128||e.length<=256&&CodePointCount(e)<=128),check_138=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`boundary`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[33].test(t)||check_2(e[t]))&&check_139(e.kind)&&(e.sourceRef===void 0||!(`sourceRef`in e)||check_102(e.sourceRef))&&check_39(e.boundary)&&check_127(e.state),check_139=e=>check_140(e)||check_141(e)||check_69(e)||check_142(e)||check_134(e)||check_135(e)||check_143(e)||check_144(e)||check_145(e)||check_146(e)||check_47(e)||check_147(e)||check_71(e),check_140=e=>typeof e==`string`&&e===`local-cli`,check_141=e=>typeof e==`string`&&e===`gateway-client`,check_142=e=>typeof e==`string`&&e===`api`,check_143=e=>typeof e==`string`&&e===`task`,check_144=e=>typeof e==`string`&&e===`subagent`,check_145=e=>typeof e==`string`&&e===`acp`,check_146=e=>typeof e==`string`&&e===`worker`,check_147=e=>typeof e==`string`&&e===`recovery`,check_148=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`domainRef`in e&&`principalRef`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[34].test(t)||check_2(e[t]))&&check_131(e.kind)&&check_39(e.domainRef)&&check_39(e.principalRef)&&(e.displayLabel===void 0||!(`displayLabel`in e)||check_137(e.displayLabel)),check_149=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`definitionRef`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[35].test(t)||check_2(e[t]))&&check_39(e.definitionRef)&&(e.revisionRef===void 0||!(`revisionRef`in e)||check_102(e.revisionRef))&&check_127(e.state),check_150=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`runtimeRef`in e&&`kind`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[36].test(t)||check_2(e[t]))&&check_39(e.runtimeRef)&&check_151(e.kind)&&check_127(e.state),check_151=e=>check_152(e)||check_153(e)||check_146(e)||check_154(e)||check_145(e),check_152=e=>typeof e==`string`&&e===`gateway`,check_153=e=>typeof e==`string`&&e===`embedded`,check_154=e=>typeof e==`string`&&e===`plugin-harness`,check_155=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`principal`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[37].test(t)||check_2(e[t]))&&check_148(e.principal)&&check_127(e.state),check_156=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`principal`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[38].test(t)||check_2(e[t]))&&check_148(e.principal)&&(e.relationshipRef===void 0||!(`relationshipRef`in e)||check_102(e.relationshipRef))&&check_127(e.state),check_157=e=>Array.isArray(e)&&e.every((e,t)=>check_158(e))&&e.length<=16,check_158=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`grantRef`in e&&`state`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[39].test(t)||check_2(e[t]))&&check_39(e.grantRef)&&check_127(e.state),check_159=e=>Array.isArray(e)&&e.every((e,t)=>check_160(e))&&e.length<=16,check_160=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`kind`in e&&`evidenceRef`in e&&`strength`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[40].test(t)||check_2(e[t]))&&check_161(e.kind)&&check_39(e.evidenceRef)&&check_172(e.strength),check_161=e=>check_162(e)||check_163(e)||check_164(e)||check_165(e)||check_166(e)||check_167(e)||check_168(e)||check_169(e)||check_170(e)||check_171(e),check_162=e=>typeof e==`string`&&e===`durable-profile`,check_163=e=>typeof e==`string`&&e===`trusted-proxy`,check_164=e=>typeof e==`string`&&e===`tailscale-whois`,check_165=e=>typeof e==`string`&&e===`device-proof`,check_166=e=>typeof e==`string`&&e===`channel-admission`,check_167=e=>typeof e==`string`&&e===`local-process`,check_168=e=>typeof e==`string`&&e===`spawn-lineage`,check_169=e=>typeof e==`string`&&e===`worker-admission`,check_170=e=>typeof e==`string`&&e===`runtime-binding`,check_171=e=>typeof e==`string`&&e===`other`,check_172=e=>check_173(e)||check_174(e)||check_175(e),check_173=e=>typeof e==`string`&&e===`self-asserted`,check_174=e=>typeof e==`string`&&e===`boundary-verified`,check_175=e=>typeof e==`string`&&e===`cryptographic`,check_176=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&`depth`in e&&Object.getOwnPropertyNames(e).every((t,n)=>T[41].test(t)||check_2(e[t]))&&(e.parentContextId===void 0||!(`parentContextId`in e)||check_102(e.parentContextId))&&(e.parentExecutionId===void 0||!(`parentExecutionId`in e)||check_102(e.parentExecutionId))&&(e.parentRunId===void 0||!(`parentRunId`in e)||check_102(e.parentRunId))&&(e.parentAgentPrincipal===void 0||!(`parentAgentPrincipal`in e)||check_130(e.parentAgentPrincipal))&&(e.delegationRef===void 0||!(`delegationRef`in e)||check_102(e.delegationRef))&&check_177(e.depth),check_177=e=>Number.isInteger(e)&&(!(Number.isFinite(e)||typeof e==`bigint`)||e>=0&&e<=64),check_178=e=>check_116(e)||check_117(e)||check_112(e)||check_118(e),isApprovalPresentation=e=>check_98(e),isDecisionReceiptV1=e=>check_99(e),isExecutionIdentityContextV1=e=>check_123(e);function normalizeTypeBoxValidationErrors(e){let t=[],n=0;for(let r of e){if(r.keyword===`boolean`){t.push(r),n+=1;continue}let e=r.params?.additionalProperties;r.keyword===`additionalProperties`&&typeof r.schemaPath==`string`&&typeof r.instancePath==`string`&&Array.isArray(e)&&e.length>0&&e.length<=n&&t.slice(-e.length).every((t,n)=>{let i=e[n];return typeof i==`string`&&t.schemaPath===`${r.schemaPath}/additionalProperties`&&t.instancePath===`${r.instancePath}/${i.replace(/~/g,`~0`).replace(/\//g,`~1`)}`})&&(t.length-=e.length),t.push(r),n=0}return t}/* @__NO_SIDE_EFFECTS__ */
function createProtocolValidator(e,t,n,r){let i=null,a=Object.assign(a=>{let o=n?.(a);if(o)return i=[o],!1;let s=t(a);if(s)i=null;else{let t=l(e,a)[1];i=normalizeTypeBoxValidationErrors((r?.(a)??t).slice(0,t.length))}return s},{errors:null,schema:e});return Object.defineProperties(a,{errors:{configurable:!0,enumerable:!0,get:()=>i,set:e=>{i=e??null}},schema:{configurable:!0,enumerable:!0,get:()=>e}}),a}function isWellFormedApprovalId(e){if(e.length===0||e===`.`||e===`..`)return!1;for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){if(t+1>=e.length)return!1;let n=e.charCodeAt(t+1);if(n<56320||n>57343)return!1;t+=1}else if(n>=56320&&n<=57343)return!1}return!0}const te=c.String({minLength:1,pattern:`^(?!\\.{1,2}$)(?:[^\\uD800-\\uDFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])+$`,description:`Exact full approval id encoded safely in deep-link paths.`}),E=a([`exec`,`plugin`,`system-agent`]),D=a([`allow-once`,`allow-always`,`deny`]),O=a([`allow-once`,`allow-always`]);a([`user`,`timeout`,`malformed-verdict`,`no-route`,`run-aborted`,`gateway-restart`,`storage-corrupt`]);const ne=c.Union([c.Literal(`user`)]),re=a([`user`,`malformed-verdict`,`no-route`,`storage-corrupt`]),ie=c.Union([c.Literal(`timeout`)]),ae=a([`run-aborted`,`gateway-restart`]),oe=a([`info`,`warning`,`critical`]),k=r({kind:c.Literal(`message-send`),target:c.String({minLength:1,maxLength:128}),recipientCount:c.Integer({minimum:1,maximum:1e6}),recipients:c.Optional(c.Array(c.String({minLength:1,maxLength:128}),{maxItems:5})),audience:c.Optional(a([`internal`,`external`]))}),A=r({kind:c.Literal(`payment`),amount:c.String({minLength:1,maxLength:40}),currency:c.String({minLength:1,maxLength:12}),target:c.String({minLength:1,maxLength:128})}),j=r({kind:c.Literal(`external-post`),target:c.String({minLength:1,maxLength:128}),visibility:a([`public`,`restricted`])}),M=r({kind:c.Literal(`standing-grant`),automation:c.String({minLength:1,maxLength:128}),command:c.String({minLength:1,maxLength:256}),expiresInDays:c.Optional(c.Integer({minimum:1,maximum:3650}))}),N=c.Union([k,A,j,M]),P=r({label:c.String({minLength:1,maxLength:80}),decisions:c.Array(O,{minItems:1,maxItems:2,uniqueItems:!0})}),F=c.Array(D,{minItems:1,maxItems:3,uniqueItems:!0,contains:c.Literal(`deny`),description:`Available reviewer decisions. Deny is always available so malformed or unsafe input can be rejected.`}),I=c.Tuple([c.Literal(`allow-once`),c.Literal(`deny`)]),L=r({jobId:i,name:i,operation:c.Union([c.Literal(`add`),c.Literal(`update`)])}),R=c.Object({kind:c.Literal(`exec`),commandText:i,commandPreview:c.Optional(c.Union([c.String(),c.Null()])),warningText:c.Optional(c.Union([c.String(),c.Null()])),streamProposal:c.Optional(L),host:c.Optional(c.Union([c.String(),c.Null()])),nodeId:c.Optional(c.Union([i,c.Null()])),agentId:c.Optional(c.Union([i,c.Null()])),scope:c.Optional(N),allowedDecisions:F},{additionalProperties:!1,description:`Reviewer-safe exec presentation. Runtime cwd, environment, system-run binding, and execution plan are intentionally excluded.`}),z=r({kind:c.Literal(`plugin`),title:c.String({minLength:1,maxLength:80}),description:c.String({minLength:1,maxLength:512}),detail:c.Optional(c.String({minLength:1,maxLength:16384})),severity:oe,pluginId:c.Optional(c.Union([i,c.Null()])),toolName:c.Optional(c.Union([i,c.Null()])),agentId:c.Optional(c.Union([i,c.Null()])),scope:c.Optional(N),allowedDecisions:F,externalResolution:c.Optional(P)}),B=r({kind:c.Literal(`system-agent`),title:c.String({minLength:1,maxLength:80}),description:c.String({minLength:1,maxLength:512}),proposalHash:c.String({pattern:`^[a-f0-9]{64}$`}),agentId:c.Optional(c.Union([i,c.Null()])),allowedDecisions:I}),V=c.Union([R,z,B]),H={id:te,urlPath:i,createdAtMs:c.Integer({minimum:0}),expiresAtMs:c.Integer({minimum:0}),presentation:V},U=r({agentId:c.Optional(i),sessionKey:c.Optional(i)}),W=r({kind:a([`device`,`channel`,`runtime`,`system`]),id:c.Optional(i)}),G={resolvedAtMs:c.Integer({minimum:0}),source:c.Optional(U),resolver:c.Optional(W)},K=r({...H,status:c.Literal(`pending`),sourceSessionKey:c.Optional(i)}),q=r({...H,...G,status:c.Literal(`allowed`),decision:O,reason:ne}),J=r({...H,...G,status:c.Literal(`denied`),decision:c.Literal(`deny`),reason:re}),Y=r({...H,...G,status:c.Literal(`expired`),reason:ie}),X=r({...H,...G,status:c.Literal(`cancelled`),reason:ae}),se=c.Union([K,q,J,Y,X]),Z=c.Union([q,J,Y,X]);r({id:H.id}),r({approval:se}),r({cursor:c.Optional(c.String({minLength:1,maxLength:512})),limit:c.Optional(c.Integer({minimum:1,maximum:100})),kind:c.Optional(E)}),r({items:c.Array(Z),nextCursor:c.Optional(c.String({minLength:1,maxLength:512}))});const ce=r({channel:i,accountId:i,senderId:i});r({id:H.id,kind:E,decision:D,reviewer:c.Optional(ce),grantExpiresInDays:c.Optional(c.Integer({minimum:1,maximum:3650}))}),r({applied:c.Boolean(),approval:Z});const Q={sessionKey:i,sourceSessionKey:c.Optional(i),updatedAtMs:c.Integer({minimum:0})},le=s(`2026.7`,r({...Q,phase:c.Literal(`pending`),approval:K})),$=s(`2026.7`,r({...Q,phase:c.Literal(`terminal`),approval:Z}));s(`2026.7`,c.Union([le,$])),s(`2026.7`,r({sessionKey:i,updatedAtMs:c.Integer({minimum:0}),approvals:c.Array(K),truncated:c.Boolean()}));const ue=/* @__PURE__ */ createProtocolValidator(V,isApprovalPresentation),de=2592e6,fe=65536,pe=1001;var OperatorApprovalHistoryCursorError=class extends Error{constructor(){super(`invalid operator approval history cursor`),this.name=`OperatorApprovalHistoryCursorError`}};function parseOperatorApprovalKind(e){return e===`exec`||e===`plugin`||e===`system-agent`?e:null}const me=o(`operator_approval_execution_identities`);function parseApprovalPresentation(e){let n=t(e);return ue(n)?n:null}function parseStringArray(e){let n=t(e);return!Array.isArray(n)||!n.every(e=>typeof e==`string`&&!!e.trim())?null:n}function requireString(t,n){let r=e(t);if(!r)throw Error(`${n} must not be empty`);return r}function encodeOperatorApprovalHistoryCursor(e){return Buffer.from(JSON.stringify({v:1,...e}),`utf8`).toString(`base64url`)}function decodeOperatorApprovalHistoryCursor(e){try{let t=Buffer.from(e,`base64url`);if(t.toString(`base64url`)!==e)throw new OperatorApprovalHistoryCursorError;let n=JSON.parse(t.toString(`utf8`));if(typeof n!=`object`||!n||Array.isArray(n)||!(`v`in n)||n.v!==1||!(`resolvedAtMs`in n)||typeof n.resolvedAtMs!=`number`||!Number.isSafeInteger(n.resolvedAtMs)||n.resolvedAtMs<0||!(`id`in n)||typeof n.id!=`string`||!isWellFormedApprovalId(n.id))throw new OperatorApprovalHistoryCursorError;let r={resolvedAtMs:n.resolvedAtMs,id:n.id};if(encodeOperatorApprovalHistoryCursor(r)!==e)throw new OperatorApprovalHistoryCursorError;return r}catch(e){throw e instanceof OperatorApprovalHistoryCursorError?e:new OperatorApprovalHistoryCursorError}}function isValidTimestamp(e){return Number.isSafeInteger(e)&&e>=0}function hasValidLifecycleTuple(e){let{row:t,status:n,decision:r,terminalReason:i,resolverKind:a}=e,o=t.consumed_at_ms===null&&t.consumed_by===null;if(n===`pending`)return r===null&&i===null&&t.resolved_at_ms===null&&a===null&&t.resolver_id===null&&o;if(t.resolved_at_ms===null||a===null)return!1;if(n===`allowed`){let e=r===`allow-once`?o||t.consumed_at_ms!==null&&!!t.consumed_by?.trim():o;return(r===`allow-once`||r===`allow-always`)&&i===`user`&&e}return r!==`deny`||!o?!1:n===`denied`?i===`user`||i===`malformed-verdict`||i===`no-route`||i===`storage-corrupt`:n===`expired`?i===`timeout`:n===`cancelled`&&(i===`run-aborted`||i===`gateway-restart`)}function decodeOperatorApprovalBindings(e){let t=parseStringArray(e.reviewer_device_ids_json),n=parseStringArray(e.audience_session_keys_json);return!t||!n||n.length>64?null:{reviewerDeviceIds:t,audienceSessionKeys:n}}function decodeOperatorApprovalRow(e){let t=parseApprovalPresentation(e.presentation_json),r=decodeOperatorApprovalBindings(e),i=parseOperatorApprovalKind(e.kind),a=e.status,o=e.decision,s=e.terminal_reason,c=e.resolver_kind;return!t||!isWellFormedApprovalId(e.approval_id)||!r||!i||a!==`pending`&&a!==`allowed`&&a!==`denied`&&a!==`expired`&&a!==`cancelled`||!isValidTimestamp(e.created_at_ms)||!isValidTimestamp(e.expires_at_ms)||!isValidTimestamp(e.updated_at_ms)||e.expires_at_ms<e.created_at_ms||e.updated_at_ms<e.created_at_ms||e.resolved_at_ms!==null&&(!isValidTimestamp(e.resolved_at_ms)||e.resolved_at_ms<e.created_at_ms||e.resolved_at_ms>e.updated_at_ms)||e.consumed_at_ms!==null&&(!isValidTimestamp(e.consumed_at_ms)||e.resolved_at_ms===null||e.consumed_at_ms<e.resolved_at_ms||e.consumed_at_ms>e.updated_at_ms)||e.requested_by_device_token_auth!==0&&e.requested_by_device_token_auth!==1||o!==null&&o!==`allow-once`&&o!==`allow-always`&&o!==`deny`||s!==null&&s!==`user`&&s!==`timeout`&&s!==`malformed-verdict`&&s!==`no-route`&&s!==`run-aborted`&&s!==`gateway-restart`&&s!==`storage-corrupt`||c!==null&&c!==`device`&&c!==`channel`&&c!==`runtime`&&c!==`system`||t.kind!==i||e.resolution_ref!==n({approvalId:e.approval_id,approvalKind:i})||!hasValidLifecycleTuple({row:e,status:a,decision:o,terminalReason:s,resolverKind:c})||a===`allowed`&&(!o||!Array.prototype.includes.call(t.allowedDecisions,o))?null:{id:e.approval_id,resolutionRef:e.resolution_ref,kind:i,status:a,presentation:t,requester:{deviceId:e.requested_by_device_id,clientId:e.requested_by_client_id,deviceTokenAuth:e.requested_by_device_token_auth===1},reviewerDeviceIds:r.reviewerDeviceIds,source:{agentId:e.source_agent_id,sessionKey:e.source_session_key,sessionId:e.source_session_id,runId:e.source_run_id,toolCallId:e.source_tool_call_id,toolName:e.source_tool_name},audienceSessionKeys:r.audienceSessionKeys,runtimeEpoch:e.runtime_epoch,createdAtMs:e.created_at_ms,expiresAtMs:e.expires_at_ms,updatedAtMs:e.updated_at_ms,decision:o,terminalReason:s,resolvedAtMs:e.resolved_at_ms,resolver:c===null?null:{kind:c,id:e.resolver_id},consumedAtMs:e.consumed_at_ms,consumedBy:e.consumed_by}}export{decodeOperatorApprovalBindings as a,encodeOperatorApprovalHistoryCursor as c,requireString as d,createProtocolValidator as f,de as i,isValidTimestamp as l,isExecutionIdentityContextV1 as m,pe as n,decodeOperatorApprovalHistoryCursor as o,isDecisionReceiptV1 as p,fe as r,decodeOperatorApprovalRow as s,me as t,parseOperatorApprovalKind as u};