openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 162 kB
JavaScript
import{Bt as e,Ft as t,Ht as n,Jt as r,Lt as i,S as a,Ut as o,Wt as s,Xt as c,dt as l,ft as u,gt as ee,o as te,t as ne,ut as d,yt as f}from"./sqlite-readonly-subsystem-Bfq7Sewc.mjs";import"./sqlite-readonly-sqlite-snapshot-staging-owner-Bx_sVS1z.mjs";import{c as re,u as ie}from"./sqlite-readonly-openclaw-state-db-existing-write-BmHhZx8i.mjs";import"./sqlite-readonly-sqlite-snapshot-capacity-error-CpnKAwJy.mjs";import{C as ae,N as oe}from"./sqlite-readonly-openclaw-state-db-engine-pc5Xuwy7.mjs";import{sn as se}from"./sqlite-readonly-sqlite-database-admission-Bj6bmeyX.mjs";import"./sqlite-readonly-openclaw-state-db-async-lifecycle-BwAy3Dr9.mjs";import"./sqlite-readonly-openclaw-state-maintenance-context-BTKm0Xem.mjs";import{_ as ce,a as p,d as m,f as le,g as h,h as ue,i as g,m as _,n as v,p as y,r as b,s as x,t as S,u as C,v as w,y as de}from"./sqlite-readonly-schemas-CQ3oYUYf.mjs";import"./sqlite-readonly-node-sqlite-C-jA8uc4.mjs";import"./sqlite-readonly-sqlite-snapshot-source-DID1ReIT.mjs";import"./sqlite-readonly-runtime-binary-CQkI442k.mjs";import"./sqlite-readonly-runtime-worker-url-Ca-_reGi.mjs";import"./sqlite-readonly-errors-_ACXy9m3.mjs";import"./sqlite-readonly-open-BLov0o_D.mjs";import{A as T,Dt as fe,M as E,ht as pe,j as me,pt as he}from"./sqlite-readonly-location.worker.js";import{M as ge}from"./sqlite-readonly-openclaw-state-db-readonly-CQZBUV1N.mjs";import"./sqlite-readonly-pool-m9JiklDF.mjs";import"./sqlite-readonly-spawn-diagnostics-ChQW81dO.mjs";import"./sqlite-readonly-openclaw-state-worker-error-CRDBDn6B.mjs";import"./sqlite-readonly-sqlite-user-version-BkFOLx6X.mjs";import"./sqlite-readonly-async-work-scope-BqIHG2vr.mjs";import"./sqlite-readonly-openclaw-root-DZIRE61V.mjs";import"./sqlite-readonly-sqlite-worker-operation-settlement-MwRfpsC2.mjs";import"./sqlite-readonly-sqlite-worker-operation-admission-_cdnKaoc.mjs";import{a as _e}from"./sqlite-readonly-sqlite-transaction-8ZzF2aMT.mjs";import"./sqlite-readonly-openclaw-state-schema-publication-BIrYqjdH.mjs";import{i as D}from"./sqlite-readonly-openclaw-state-db-schema-helpers-CIpJmYmJ.mjs";import"./sqlite-readonly-openclaw-state-db-schema-version-Coirf-v2.mjs";import"./sqlite-readonly-windows-appcontainer-spawn-DGtrwkIS.mjs";import{N as ve}from"./sqlite-readonly-openclaw-state-db-maintenance-CuC5fpCz.mjs";import"./sqlite-readonly-windows-install-roots-vXy2a3w1.mjs";import"node:module";import O from"node:path";import"node:crypto";import"node:fs";import ye,{hostname as be}from"node:os";import"node:url";import"node:worker_threads";import{isDeepStrictEqual as k}from"node:util";import{AsyncLocalStorage as A}from"node:async_hooks";import"node:child_process";import"@openclaw/proc-safe/identity";function normalizeProviderId(t){return e(t)}function isExpiredLegacyUpdateRun(e){let t=e.steps[0];return e.status===`running`&&e.phase===`requested`&&e.finishedAtMs===null&&e.updatedAtMs===e.createdAtMs&&!e.origin.driver&&!e.origin.previousDrivers?.length&&e.steps.length===1&&t?.step===`requested`&&t.status===`in_progress`&&t.startedAtMs===e.createdAtMs&&t.endedAtMs===void 0&&Date.now()-e.createdAtMs>864e5}const j=`update.recovery.`,xe=[`requested`,`staging`,`validating`,`repairing`,`activating`,`restarting`,`verifying`,`finished`],Se=[`running`,`succeeded`,`failed`,`rolled-back`,`skipped`],Ce=[`chat`,`control-ui`,`cli`,`campaign`,`mac-app`,`api`],we=[`pending`,`in_progress`,`completed`,`failed`,`skipped`],Te=[`none`,`node-unsupported`,`git-unsupported`,`disk-full`,`permission-denied`,`network`,`config-invalid`,`install-failed`,`state-migration-failed`,`plugin-failed`,`service-failed`,`interrupted`,`refused`,`unknown`],Ee=[`ETARGET`,`E404`,`EINTEGRITY`,`EACCES`,`ENOTEMPTY`,`ENOSPC`,`ECONNRESET`,`ETIMEDOUT`,`EBUSY`,`unknown`],De=p(`kind`,[m({kind:x(`key`),key:_()}),m({kind:x(`migration`),message:_()})]),Oe=m({reason:_(),message:_(),keys:v(_())}),M=_().regex(/^[a-f0-9]{64}$/u),ke=y({kind:x(`undeclared-migration-resources`),pluginId:_().min(1),message:_().min(1)}),Ae=y({path:_().min(1).max(4096).refine(e=>!e.includes(`\0`)&&O.resolve(e)===e),beforeHash:M.nullable(),afterHash:M.nullable(),contiguous:b()}),je=y({directory:_().min(1).max(4096),installRoot:_().min(1).max(4096),stateDir:_().min(1).max(4096),configPath:_().min(1).max(4096),identity:y({dev:C(),ino:C(),birthtimeMs:C()}),outcome:S([`committed`,`restored`]),generations:v(y({kind:S([`candidate`,`prepared`]),manifestSha256:M,identity:y({dev:C(),ino:C(),birthtimeMs:C()})})).max(2).optional()}),Me=y({kind:x(`forward-resolved`),binding:y({runId:_().min(1),failedAtMs:C().int().nonnegative(),manifestSha256:M,candidateSha256:M.nullable(),preparedSha256:M.nullable(),incompleteGenerations:y({candidate:M.optional(),prepared:M.optional()}).optional(),installRoot:_().min(1),stateDir:_().min(1),configPath:_().min(1)}),repair:y({root:_().min(1),packageSha256:M,node:_().min(1),nodeVersion:_().min(1),build:_().min(1),artifact:y({rootIdentity:_().min(1),module:_().min(1),entry:_().min(1),inventorySha256:M,executableIdentity:_().min(1),executableSha256:M})}),completedAtMs:C().int().nonnegative()}),Ne=y({manifestSha256:M,configWrites:v(Ae).max(512),warnings:v(ke).optional(),status:S([`pending`,`restore-failed`]),error:_().max(4096).optional(),doctorCompleted:b().optional(),restored:x(!0).optional(),retirement:je.optional(),forwardResolution:Me.optional()}),Pe=p(`serviceRestartSafe`,[y({serviceRestartSafe:x(!0),packageRollbackVerified:x(!0).optional(),version:_().trim().min(1),buildId:_().trim().min(1).max(96).optional(),service:S([`healthy`,`failed`]).optional(),reason:_().trim().min(1).optional()}),y({serviceRestartSafe:x(!1),dataAtRisk:_().trim().min(1).optional(),packageRollbackVerified:b().optional(),reason:S([`source-rollback-failed`,`state-migration-started`,`manager-unavailable`,`deps-install-failed`,`build-failed`,`rollback-checkout-dirty`,`runtime-verification-failed`])})]),Fe=m({host:_().min(1).max(255),pid:C().int().positive().max(2**53-1),startIdentity:_().max(128).regex(/^\d+$/)}),Ie=Fe.extend({namespace:_().regex(/^\["(?:linux|darwin|win32|freebsd)","[\w:.-]{1,40}",(?:null|"pid:\[\d{1,20}\]"),(?:null|"[a-f0-9]{64}")\]$/u).nullable().optional()}),Le=1024,Re=S([`explicit-tmpdir`,`state-volume`,`system-tmpdir`]),N=C().int().nonnegative(),ze=m({reason:S([...Re.options,`snapshot-capacity-insufficient`,`snapshot-location-unavailable`]),sqliteBytes:N,pluginBytes:N.nullable(),requiredBytes:N,candidates:v(m({kind:Re,directory:_(),availableBytes:N.nullable(),allocationError:_().optional()})).max(3),selection:m({kind:Re,directory:_()}).nullable()}),P=_().min(1),admissionIdentifier=e=>P.refine(t=>Buffer.byteLength(t)<=e),Be=admissionIdentifier(80),Ve=admissionIdentifier(128),He=m({name:admissionIdentifier(128),status:S([`ok`,`warn`,`refuse`]),detail:P.optional()}),Ue=m({protocol:x(1),verdict:S([`admit`,`refuse`]),reasons:v(m({code:Be,message:P,nextAction:P.optional()})).max(32),warnings:v(m({code:P,message:P})),facts:m({candidateVersion:Ve,installedVersion:Ve.nullable(),nodeEngines:_().optional(),checks:v(He).max(32)})}).refine(e=>new Set(e.facts.checks.map(e=>e.name)).size===e.facts.checks.length).refine(e=>e.verdict===`refuse`?e.reasons.length>0:e.reasons.length===0&&e.facts.checks.every(e=>e.status!==`refuse`)).refine(e=>{let t=e.facts.checks.map(e=>({...e,...e.detail===void 0?{}:{detail:``}})),n={admission:{owner:`candidate`,protocol:e.protocol,candidateVersion:e.facts.candidateVersion,checks:t},candidateAdmission:{...e,reasons:e.reasons.map(e=>({...e,message:``,...e.nextAction===void 0?{}:{nextAction:``}})),warnings:[],facts:{...e.facts,checks:t}}};return Buffer.byteLength(JSON.stringify(n))<=2*Le}),F=_().max(240),We=y({ownership:S([`foreign`,`unknown`]),cause:S([`package-mismatch`,`launcher-mismatch`,`permission`,`probe-failure`,`unreadable-layout`]),destinationKind:S([`npm-global`,`unknown`]),prefix:F.nullable(),packageRoot:F.nullable(),runningRoot:F,runningPrefix:F.nullable(),launcher:F.nullable(),launcherTarget:F.nullable()}),Ge=m({check:_().max(128),code:_().max(80),message:_().max(200).optional(),affectedKey:_().max(128).optional(),pluginId:_().max(80).optional(),errorName:_().max(80).nullable().optional(),location:_().max(160).nullable().optional(),destination:We.optional(),npmErrorCode:S(Ee).optional(),packageSpec:_().max(200).optional(),leaseLoss:ve.optional()}),Ke=m({status:S([`not-needed`,`not-attempted`,`succeeded`,`failed`]),reason:_().max(512)}),I=_().max(Le),qe=m({name:I,status:He.shape.status,detail:I.optional()}),Je=v(qe).max(32),Ye=m({owner:S([`candidate`,`installed`]),protocol:Ue.shape.protocol.optional(),candidateVersion:I.optional(),checks:Je.optional(),fallbackReason:I.optional()}),Xe=m({protocol:Ue.shape.protocol,verdict:Ue.shape.verdict,reasons:v(m({code:I,message:I,nextAction:I.optional()})).max(32),warnings:v(m({code:I,message:I})).max(32),facts:m({candidateVersion:I,installedVersion:I.nullable(),nodeEngines:I.optional(),checks:Je})}),L=C().int().nonnegative(),Ze=m({version:I.nullable().optional(),sha:I.nullable().optional(),buildId:I.nullable().optional()}),Qe=m({step:I,status:S(we),startedAtMs:L.optional(),endedAtMs:L.optional(),exitCode:C().int().nullable().optional(),termination:S([`exit`,`timeout`,`no-output-timeout`,`signal`]).optional(),signal:_().max(32).nullable().optional(),stderrTail:_().max(8192).optional(),detail:I.optional(),failureFacts:v(Ge).max(5).optional(),configChange:p(`kind`,[De.options[0].extend({key:I}),De.options[1].extend({message:I})]).optional(),configWriteRefusal:Oe.extend({reason:I,message:I,keys:v(I).max(32)}).optional(),snapshotCapacity:ze.extend({candidates:v(ze.shape.candidates.element.extend({directory:I,allocationError:I.optional()})).max(3),selection:ze.shape.selection.unwrap().extend({directory:I}).nullable()}).optional()}),$e=m({path:_().max(1024),identity:_().regex(/^\d+:\d+$/u).max(64),version:_().max(128).nullable(),build:_().max(96).nullable()}),et=m({slot:_().max(1024),from:$e,to:$e,adoption:x(!0).optional()}),tt=m({sha:_().regex(/^[0-9a-f]{40}(?:[0-9a-f]{24})?$/u),buildId:_().min(1).max(96),previousBuildId:_().min(1).max(96).nullable()}),nt=m({runId:w(),createdAtMs:L,updatedAtMs:L,trigger:S(Ce),phase:S(xe),status:S(Se),reason:I.nullable(),admission:Ye.optional(),origin:m({windowsUserSid:_().max(184).regex(/^S-1-\d+(?:-\d+)+$/).optional(),admission:Ye.optional(),candidateAdmission:Xe.optional(),updateRecoveryCapture:Ne.optional(),driver:Ie.optional(),managedHandoff:m({parent:Fe,helper:Fe}).optional(),packageStage:m({prefix:_().max(4096),packageRoot:_().max(4096),identity:m({dev:C(),ino:C(),birthtimeMs:C()})}).optional(),packageRelease:et.optional(),gitActivation:tt.optional(),previousDrivers:v(Ie).max(7).optional(),requester:m({channel:I.optional(),accountId:I.optional(),senderId:I.optional(),authorizationSource:I.optional()}).optional(),sessionKey:I.optional(),deliveryContext:m({channel:I.optional(),to:I.optional(),accountId:I.optional(),threadId:I.optional()}).optional(),campaignId:I.optional(),doctorHint:I.optional(),nextAction:I.optional(),cause:S(Te).optional()}),target:m({channel:I.optional(),tag:I.optional(),kind:S([`package`,`git`]).optional(),version:I.optional(),sha:I.optional(),installationMethod:S([`git-checkout`,`npm-global`,`pnpm-global`,`bun-global`,`managed-service`,`ocm`]).nullable().optional()}),before:Ze,after:Ze,steps:v(Qe).max(128),verification:m({rollbackOutcome:Ke.nullable().optional(),recovery:Pe.nullable().optional(),booted:b().optional(),runningVersion:I.optional(),runningBuildId:I.optional(),serviceRunning:b().optional(),pid:L.optional(),port:C().int().min(1).max(65535).optional(),versionMatch:b().optional(),pluginErrors:v(I).max(32).optional(),channelsReady:b().optional(),readyz:b().optional(),coreReady:b().optional(),settled:b().optional(),noticeDelivered:b().optional(),doctorHint:I.optional()}),repair:v(m({attempt:C().int().positive(),status:S([`succeeded`,`failed`,`skipped`]),startedAtMs:L,endedAtMs:L.optional(),summary:I.optional(),reason:I.optional()})).max(16),confirmedAtMs:L.nullable(),finishedAtMs:L.nullable(),downtimeMs:L.nullable()}),rt=[`origin`,`target`,`before`,`after`,`steps`,`verification`,`repair`];function decodeRun(e){let t=Object.fromEntries(rt.map(t=>[t,JSON.parse(e[`${t}_json`])])),n=nt.parse({...t,runId:e.run_id,createdAtMs:e.created_at_ms,updatedAtMs:e.updated_at_ms,trigger:e.trigger,phase:e.phase,status:e.status,reason:e.reason,confirmedAtMs:e.confirmed_at_ms,finishedAtMs:e.finished_at_ms,downtimeMs:e.downtime_ms});if(n.origin.admission&&(n.admission=n.origin.admission),n.verification.recovery?.serviceRestartSafe===!1){let e=n.steps.find(e=>e.step===`finalize:data-at-risk`)?.failureFacts?.[0]?.code;e&&(n.verification.recovery.dataAtRisk=e)}return n}function readUpdateRunRecord(e,t){let n=E(e).selectFrom(`update_runs`).selectAll().where(`run_id`,`=`,t),r=me(e,n);return r?decodeRun(r):void 0}function hasStoredUpdateRecovery(e,t){return D(e,`config_machine_state`)&&!!me(e,E(e).selectFrom(`config_machine_state`).select(`state_key`).where(`state_key`,`=`,`update.recovery.`+t))}function isSafeInteger(e){return typeof e==`number`&&Number.isSafeInteger(e)}const it=m({stdoutTail:_().nullish(),stderrTail:_().nullish(),exitCode:C().int().nullish()}).transform(c),at=m({name:_(),command:_(),failureFacts:Ge.array().max(5).optional().catch(void 0),cwd:_().nullish(),durationMs:C().finite().nullish(),log:it.nullish(),advisory:b().optional()}).transform(c),ot=g(Array.isArray).transform((e,t)=>e.map(e=>{let n=at.safeParse(e);return n.success?n.data:(t.addIssue({code:`custom`,message:`Invalid restart sentinel step`}),de)})),st=m({recovery:Pe.optional().catch(void 0),mode:_().optional(),root:_().optional(),target:_().optional(),requiresRestart:b().optional(),handoffId:_().optional(),runId:_().optional(),before:g(r).nullish(),after:g(r).nullish(),steps:ot.optional(),reason:_().nullish(),durationMs:C().finite().nullish()}).transform(c),ct=p(`kind`,[m({kind:x(`systemEvent`),text:_()}),m({kind:x(`agentTurn`),message:_()})]),lt=m({kind:S([`config-apply`,`config-auto-recovery`,`config-patch`,`update`,`restart`]),status:S([`ok`,`error`,`skipped`]),ts:C().int(),sessionKey:_().optional(),deliveryContext:m({channel:_().optional(),to:_().optional(),accountId:_().optional()}).transform(c).transform(e=>Object.keys(e).length>0?e:void 0).optional(),threadId:_().optional(),message:_().nullish().transform(e=>e??void 0),continuation:ct.nullish().transform(e=>e??void 0),doctorHint:_().nullish().transform(e=>e??void 0),stats:st.nullish().transform(e=>e??void 0)}).transform(c);function parseRestartSentinelPayload(e){let t=lt.safeParse(e);return t.success?t.data:null}function parseRequiredJson(e){if(e!==null)return fe(e)}function decodeRestartSentinelRow(e){if(e.version!==1||!isSafeInteger(e.updated_at_ms))return null;let t=parseRequiredJson(e.continuation_json);if(e.continuation_json!==null&&t===void 0)return null;let n=parseRequiredJson(e.stats_json);if(e.stats_json!==null&&n===void 0)return null;let r=parseRestartSentinelPayload({kind:e.kind,status:e.status,ts:e.ts,sessionKey:e.session_key??void 0,threadId:e.thread_id??void 0,deliveryContext:{channel:e.delivery_channel??void 0,to:e.delivery_to??void 0,accountId:e.delivery_account_id??void 0},message:e.message,continuation:t,doctorHint:e.doctor_hint,stats:n});return r?{version:1,payload:r,revision:e.updated_at_ms}:null}function selectRestartSentinelRows(e){return E(e).selectFrom(`gateway_restart_sentinel`).select([`version`,`kind`,`status`,`ts`,`session_key`,`thread_id`,`delivery_channel`,`delivery_to`,`delivery_account_id`,`message`,`continuation_json`,`doctor_hint`,`stats_json`,`updated_at_ms`])}function decodeRestartSentinelRowState(e){if(!e)return{kind:`missing`};let t=decodeRestartSentinelRow(e);return t?{kind:`valid`,sentinel:t}:{kind:`invalid`,revision:e.updated_at_ms}}function readRestartSentinelRowForKeySync(e,t){return decodeRestartSentinelRowState(me(e,selectRestartSentinelRows(e).where(`sentinel_key`,`=`,t)))}function readRestartSentinelRowSync(e){return readRestartSentinelRowForKeySync(e,`current`)}i(Symbol.for(`openclaw.stateLeaseHeartbeatCarriers`),()=>/* @__PURE__ */ new Map),ne(`state/lease`),ne(`gateway`),process.platform,ne(`restart`);function toUpdateRunDriver({host:e,pid:t,startIdentity:n}){return{host:e,pid:t,startIdentity:n}}function sameUpdateRunDriver(e,t){return e.host===t.host&&e.pid===t.pid&&e.startIdentity===t.startIdentity}function inspectUpdateRunDriver(e){if(e.host!==be())return`unknown`;if(pe(e.pid))return`dead`;let t=he(e.pid);return t===null?`unknown`:String(t)===e.startIdentity?`alive`:`dead`}function updateRunLastActivity(e){return Math.max(e.updatedAtMs,...e.steps.flatMap(e=>[e.startedAtMs??0,e.endedAtMs??0]))}function hasUnrecordedUpdateRunDriver(e){return e.steps.some(e=>e.step===`driver:identity-unavailable`)}function recordedUpdateRunDrivers(e){return[...e.origin.driver?[e.origin.driver]:[],...e.origin.previousDrivers??[]].map(toUpdateRunDriver)}function inspectUpdateRunAbandonment(e,t={}){return e.status===`running`?inspectUpdateRunDriverAbandonment(e,t):void 0}function inspectUpdateRunDriverAbandonment(e,t){if(isExpiredLegacyUpdateRun(e))return`legacy-driver-expired`;let n=hasUnrecordedUpdateRunDriver(e);if(!t.explicit&&n)return;let r=recordedUpdateRunDrivers(e),i=e.origin.managedHandoff;if(i&&(r=[i.helper,...r.filter(e=>!sameUpdateRunDriver(e,i.parent)&&!sameUpdateRunDriver(e,i.helper))]),!((!r.length||n)&&Date.now()-updateRunLastActivity(e)<=18e5))return r.length?r.every(e=>inspectUpdateRunDriver(e)===`dead`)?i?`handoff-terminated`:`inactive-driver-dead`:t.exclusiveRepair&&!n&&r.every(e=>inspectUpdateRunDriver(e)!==`alive`)?`exclusive-repair-ownership`:void 0:t.explicit?`operator-reconciled-inactive-run`:void 0}function inspectUpdateRunReconciliation(e,t,n){let r=hasStoredUpdateRecovery(e,t.runId)?void 0:inspectUpdateRunAbandonment(t,n);if(r&&!n.explicit&&t.trigger!==`cli`&&(t.phase===`restarting`||t.phase===`verifying`)&&D(e,`gateway_restart_sentinel`)){let n=readRestartSentinelRowSync(e),r=n.kind===`valid`?n.sentinel.payload:void 0;if(r?.kind===`update`&&r.status===`ok`&&r.stats?.runId===t.runId&&!r.stats.handoffId)return{record:t,rule:void 0}}return{record:t,rule:r}}function readUpdateRunReconciliationRows(e,t){if(!D(e,`update_runs`))return[];let n=E(e).selectFrom(`update_runs`).selectAll().where(`status`,`=`,`running`);return t.runIds&&(n=n.where(`run_id`,`in`,[...t.runIds])),t.excludeRunId&&(n=n.where(`run_id`,`!=`,t.excludeRunId)),T(e,n.orderBy(`run_id`)).rows}function readUpdateRunReconciliationCandidates(e,t){return!e.isTransaction&&readUpdateRunReconciliationRows(e,t).length===0?[]:_e(e,()=>readUpdateRunReconciliationRows(e,t).map(n=>inspectUpdateRunReconciliation(e,decodeRun(n),t)))}i(Symbol.for(`openclaw.pluginInstallRootContext`),()=>new A);function normalizeSecretInput(e){return typeof e==`string`?e.replace(/[^\u0020-\u007e\u00a0-\u00ff]/gu,``).trim():``}const ut=y({idToken:_().optional(),clientId:_().optional(),authorizationScope:_().optional(),grantedScope:_().optional(),enterpriseUrl:_().optional(),projectId:_().optional(),accountId:_().optional(),chatgptPlanType:_().optional(),subscriptionType:_().optional(),rateLimitTier:_().optional(),tokenEndpoint:_().optional(),deviceAuthorizationEndpoint:_().optional(),issuer:_().optional(),authFlow:_().optional()}),dt=_().min(1).refine(e=>d(e)===null,`A literal credential is required.`),ft=_().transform(normalizeSecretInput).pipe(dt),pt={provider:_().min(1),email:_().optional(),displayName:_().optional(),copyToAgents:b().optional()},mt=p(`type`,[y({...pt,type:x(`api_key`),key:ft,metadata:le(_(),_()).optional()}),y({...pt,type:x(`token`),token:ft,expires:C().positive().optional()}),y({...pt,...ut.shape,type:x(`oauth`),access:dt,refresh:dt,expires:C().positive()})]);new A,i(Symbol.for(`openclaw.workerAuthProfileWrites`),()=>new A),i(Symbol.for(`openclaw.authProfileCredentialWriteCustody`),()=>/* @__PURE__ */ new WeakMap);const ht=ne(`agents/auth-profiles`);function isLegacyOAuthRef(e){return r(e)?e.source===`openclaw-credentials`&&e.provider===`openai-codex`&&typeof e.id==`string`&&/^[a-f0-9]{32}$/.test(e.id):!1}function normalizeExpiryField(e){if(e!==void 0)return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function normalizeCredentialMetadata(e){if(!r(e))return;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return Object.keys(t).length>0?t:void 0}function normalizeSavedSetupCredential(e){if(!r(e)||typeof e.replacement!=`boolean`)return;let t=s(e.modelRef),n=s(e.configJson);if(!t||!n)return;let i=s(e.authChoice),a=s(e.pluginId),o=s(e.agentRuntimeId);return{replacement:e.replacement,modelRef:t,configJson:n,...e.apiKeyHeader===!0?{apiKeyHeader:!0}:{},...o?{agentRuntimeId:o}:{},...i?{authChoice:i}:{},...a?{pluginId:a}:{}}}function normalizeCommonCredentialFields(e){let t={provider:typeof e.provider==`string`?normalizeProviderId(e.provider):``},n=normalizeSavedSetupCredential(e.setup);n&&(t.setup=n);let r=a(e.copyToAgents);r!==void 0&&(t.copyToAgents=r);for(let n of[`email`,`displayName`]){let r=s(e[n]);r!==void 0&&(t[n]=r)}return t}function normalizeRawCredentialEntry(e){let t=e.type;if(t!==`api_key`&&t!==`token`&&t!==`oauth`)return;let n={type:t,...normalizeCommonCredentialFields(e)};if(n.type===`api_key`){let t=s(e.key),r=u(e.keyRef),i=normalizeCredentialMetadata(e.metadata);r?n.keyRef=structuredClone(r):t!==void 0&&(n.key=t),i&&(n.metadata=i)}else if(n.type===`token`){let t=s(e.token),r=u(e.tokenRef);t!==void 0&&(n.token=t),r&&(n.tokenRef=structuredClone(r))}else if(n.type===`oauth`){isLegacyOAuthRef(e.oauthRef)&&(n.oauthRef=structuredClone(e.oauthRef));let t=[`access`,`refresh`,...ut.keyof().options];for(let r of t){let t=s(e[r]);t!==void 0&&(n[r]=t)}}if(n.type===`token`||n.type===`oauth`){let t=normalizeExpiryField(e.expires);t!==void 0&&(n.expires=t)}return n}O.join(ye.tmpdir(),`openclaw-empty-bundled-plugins`),[{entries:[{name:`@agentmail/agentmail`,description:`Official AgentMail email channel and CLI-backed skill.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`agentmail`,label:`AgentMail`},channel:{id:`agentmail`,label:`AgentMail`,selectionLabel:`AgentMail (Email)`,detailLabel:`AgentMail Email`,docsPath:`https://www.agentmail.to/docs/integrations/openclaw`,docsLabel:`agentmail`,exposure:{docs:!1},blurb:`Durable, allowlisted, reply-only email conversations through AgentMail.`,order:89,quickstartAllowFrom:!0,configuredState:{env:{anyOf:[`AGENTMAIL_API_KEY`]}}},channelConfigs:{agentmail:{label:`AgentMail`,description:`AgentMail email channel accounts and sender allowlist.`,schema:{type:`object`,additionalProperties:!0}}},install:{clawhubSpec:`clawhub:@agentmail/agentmail@0.2.1`,expectedIntegrity:`sha256:155221cec38673a39bc27629f9f6ec87567ce4e37b7fa619ec4b1f7ca3d28730`,defaultChoice:`clawhub`,minHostVersion:`>=2026.8.1-beta.2`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/buzz`,version:`2026.11.13`,description:`Connect OpenClaw agents to Buzz rooms`,source:`official`,kind:`channel`,openclaw:{channelConfigs:{buzz:{label:`Buzz`,description:`Connect OpenClaw agents to Buzz team rooms.`}},setupFeatures:{configPromotion:`preserve-root`},channel:{id:`buzz`,configuredState:{env:{allOf:[`BUZZ_RELAY_URL`,`BUZZ_PRIVATE_KEY`]}},label:`Buzz`,selectionLabel:`Buzz`,docsPath:`/channels/buzz`,docsLabel:`buzz`,blurb:`Connect OpenClaw agents to Buzz team rooms.`,markdownCapable:!0,order:56,setup:{fields:[{key:`relayUrl`,kind:`string`,cli:{flags:`--relay-url <url>`,description:`Buzz relay WebSocket URL`}},{key:`privateKey`,kind:`string`,sensitive:!0,cli:{flags:`--private-key <key>`,description:`Buzz bot Nostr private key`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use BUZZ_PRIVATE_KEY with the supplied relay URL`},envVars:[`BUZZ_PRIVATE_KEY`]}]}},install:{clawhubSpec:`clawhub:@openclaw/buzz`,npmSpec:`@openclaw/buzz`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/clickclack`,version:`2026.11.13`,description:`OpenClaw ClickClack channel plugin`,source:`official`,kind:`channel`,openclaw:{contracts:{tools:[`discussion`]},channelConfigs:{clickclack:{label:`ClickClack`,description:`ClickClack channel accounts and group activation policy.`}},channel:{id:`clickclack`,configuredState:{env:{anyOf:[`CLICKCLACK_BOT_TOKEN`]}},label:`ClickClack`,selectionLabel:`ClickClack`,detailLabel:`ClickClack Bot`,docsPath:`/channels/clickclack`,docsLabel:`clickclack`,blurb:`self-hosted chat via first-class ClickClack bot tokens.`,systemImage:`bubble.left.and.bubble.right`,markdownCapable:!0,preferSessionLookupForAnnounceTarget:!0,order:85,commands:{nativeCommandsAutoEnabled:!1,nativeSkillsAutoEnabled:!1},setup:{fields:[{key:`code`,kind:`string`,sensitive:!0,cli:{flags:`--code <code>`,description:`ClickClack one-time setup code or setup URL`}},{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`ClickClack bot token`}},{key:`tokenFile`,kind:`string`,sensitive:!0,cli:{flags:`--token-file <path>`,description:`ClickClack bot token file`}},{key:`baseUrl`,kind:`string`,cli:{flags:`--base-url <url>`,description:`ClickClack API base URL`}},{key:`workspace`,kind:`string`,cli:{flags:`--workspace <workspace>`,description:`ClickClack workspace id, slug, or name`}},{key:`defaultTo`,kind:`string`,cli:{flags:`--default-to <target>`,description:`Default ClickClack target`}},{key:`allowFrom`,kind:`string-list`,cli:{flags:`--allow-from <ids>`,description:`Allowed ClickClack senders`}},{key:`agentActivity`,kind:`boolean`,cli:{flags:`--agent-activity`,description:`Enable ClickClack agent activity`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use CLICKCLACK_BOT_TOKEN`},envVars:[`CLICKCLACK_BOT_TOKEN`]}]}},install:{clawhubSpec:`clawhub:@openclaw/clickclack`,npmSpec:`@openclaw/clickclack`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/discord`,version:`2026.11.13`,description:`OpenClaw Discord channel plugin for channels, DMs, commands, and app events.`,source:`official`,kind:`channel`,openclaw:{contracts:{transcriptSourceProviders:[`discord-voice`]},channel:{id:`discord`,configuredState:{env:{anyOf:[`DISCORD_BOT_TOKEN`]}},approvalFlags:[`native`],label:`Discord`,selectionLabel:`Discord (Bot API)`,detailLabel:`Discord Bot`,docsPath:`/channels/discord`,docsLabel:`discord`,blurb:`very well supported right now.`,systemImage:`bubble.left.and.bubble.right`,markdownCapable:!0,preferSessionLookupForAnnounceTarget:!0,setup:{fields:[{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`Discord bot token`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use DISCORD_BOT_TOKEN`},envVars:[`DISCORD_BOT_TOKEN`]}]},commands:{nativeCommandsAutoEnabled:!0,nativeSkillsAutoEnabled:!0},doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`route`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!1}},install:{clawhubSpec:`clawhub:@openclaw/discord`,npmSpec:`@openclaw/discord`,defaultChoice:`npm`,minHostVersion:`>=2026.5.26`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/feishu`,version:`2026.11.13`,description:`OpenClaw Feishu/Lark channel plugin for chats and workplace tools (community maintained by @m1heng).`,source:`official`,kind:`channel`,openclaw:{contracts:{tools:[`feishu_app_scopes`,`feishu_bitable_create_app`,`feishu_bitable_create_field`,`feishu_bitable_create_record`,`feishu_bitable_get_meta`,`feishu_bitable_get_record`,`feishu_bitable_list_fields`,`feishu_bitable_list_records`,`feishu_bitable_update_record`,`feishu_chat`,`feishu_doc`,`feishu_drive`,`feishu_perm`,`feishu_wiki`]},channel:{id:`feishu`,configuredState:{env:{anyOf:[`FEISHU_APP_ID`,`FEISHU_APP_SECRET`,`FEISHU_VERIFICATION_TOKEN`,`FEISHU_ENCRYPT_KEY`]},specifier:`./configured-state`,exportName:`hasConfiguredFeishuChannelState`},label:`Feishu`,selectionLabel:`Feishu/Lark (飞书)`,docsPath:`/channels/feishu`,docsLabel:`feishu`,blurb:`飞书/Lark enterprise messaging with doc/wiki/drive tools.`,aliases:[`lark`],order:35,quickstartAllowFrom:!0,setup:{fields:[]}},install:{clawhubSpec:`clawhub:@openclaw/feishu`,npmSpec:`@openclaw/feishu`,defaultChoice:`npm`,minHostVersion:`>=2026.5.29`}}},{name:`@openclaw/googlechat`,version:`2026.11.13`,description:`OpenClaw Google Chat channel plugin for spaces and direct messages.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`googlechat`,configuredState:{env:{anyOf:[`GOOGLE_CHAT_SERVICE_ACCOUNT`,`GOOGLE_CHAT_SERVICE_ACCOUNT_FILE`]}},approvalFlags:[`native`],label:`Google Chat`,selectionLabel:`Google Chat (Chat API)`,detailLabel:`Google Chat`,docsPath:`/channels/googlechat`,docsLabel:`googlechat`,blurb:`Google Workspace Chat app with HTTP webhook.`,aliases:[`gchat`,`google-chat`],order:55,systemImage:`message.badge`,markdownCapable:!0,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`route`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!1},setup:{fields:[{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <json>`,description:`Google Chat service account JSON`}},{key:`tokenFile`,kind:`string`,sensitive:!0,cli:{flags:`--token-file <path>`,description:`Google Chat service account file`}},{key:`audienceType`,kind:`choice`,choices:[`app-url`,`project-number`],cli:{flags:`--audience-type <type>`,description:`Google Chat audience type`}},{key:`audience`,kind:`string`,cli:{flags:`--audience <value>`,description:`Google Chat audience value`}},{key:`webhookPath`,kind:`string`,cli:{flags:`--webhook-path <path>`,description:`Google Chat webhook path`}},{key:`webhookUrl`,kind:`string`,cli:{flags:`--webhook-url <url>`,description:`Google Chat webhook URL`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Google Chat environment credentials`},envVars:[`GOOGLE_CHAT_SERVICE_ACCOUNT`,`GOOGLE_CHAT_SERVICE_ACCOUNT_FILE`],envVarMode:`any`}]}},install:{clawhubSpec:`clawhub:@openclaw/googlechat`,npmSpec:`@openclaw/googlechat`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`}}},{name:`@openclaw/imessage`,version:`2026.11.13`,description:`OpenClaw iMessage channel plugin using imsg on a signed-in Mac`,source:`official`,kind:`channel`,openclaw:{channel:{id:`imessage`,approvalFlags:[`native`],label:`iMessage`,selectionLabel:`iMessage (imsg)`,detailLabel:`iMessage`,docsPath:`/channels/imessage`,docsLabel:`imessage`,blurb:`Local iMessage/SMS through the imsg bridge, including private API message actions when enabled.`,aliases:[`imsg`],systemImage:`message.fill`,setup:{fields:[{key:`cliPath`,kind:`string`,cli:{flags:`--cli-path <path>`,description:`iMessage CLI path`}},{key:`dbPath`,kind:`string`,cli:{flags:`--db-path <path>`,description:`iMessage database path`}},{key:`service`,kind:`choice`,choices:[`imessage`,`sms`,`auto`],cli:{flags:`--service <service>`,description:`iMessage service`}},{key:`region`,kind:`string`,cli:{flags:`--region <region>`,description:`SMS region`}}]}},install:{clawhubSpec:`clawhub:@openclaw/imessage`,npmSpec:`@openclaw/imessage`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/irc`,version:`2026.11.13`,description:`OpenClaw IRC channel plugin`,source:`official`,kind:`channel`,openclaw:{channel:{id:`irc`,configuredState:{env:{allOf:[`IRC_HOST`,`IRC_NICK`]}},label:`IRC`,selectionLabel:`IRC (Server + Nick)`,detailLabel:`IRC`,docsPath:`/channels/irc`,docsLabel:`irc`,blurb:`classic IRC networks with DM/channel routing and pairing controls.`,aliases:[`internet-relay-chat`],systemImage:`network`,setup:{fields:[{key:`host`,kind:`string`,cli:{flags:`--host <host>`,description:`IRC server host`}},{key:`port`,kind:`string`,cli:{flags:`--port <port>`,description:`IRC server port`}},{key:`tls`,kind:`boolean`,cli:{flags:`--tls`,description:`Use TLS for IRC`}},{key:`nick`,kind:`string`,cli:{flags:`--nick <nick>`,description:`IRC nickname`}},{key:`username`,kind:`string`,cli:{flags:`--username <name>`,description:`IRC username`}},{key:`realname`,kind:`string`,cli:{flags:`--realname <name>`,description:`IRC real name`}},{key:`channels`,kind:`string-list`,cli:{flags:`--channels <names>`,description:`IRC channels`}},{key:`password`,kind:`string`,sensitive:!0,cli:{flags:`--password <password>`,description:`IRC server password`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use IRC environment configuration`},envVars:[`IRC_HOST`,`IRC_NICK`]}]}},install:{clawhubSpec:`clawhub:@openclaw/irc`,npmSpec:`@openclaw/irc`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/line`,version:`2026.11.13`,description:`OpenClaw LINE channel plugin for LINE Bot API chats.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`line`,configuredState:{env:{allOf:[`LINE_CHANNEL_ACCESS_TOKEN`,`LINE_CHANNEL_SECRET`]}},label:`LINE`,selectionLabel:`LINE (Messaging API)`,detailLabel:`LINE Bot`,docsPath:`/channels/line`,docsLabel:`line`,blurb:`LINE Messaging API webhook bot.`,systemImage:`message`,order:75,quickstartAllowFrom:!0,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`sender`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!0},setup:{fields:[{key:`channelAccessToken`,kind:`string`,sensitive:!0,cli:{flags:`--channel-access-token <token>`,description:`LINE channel access token`}},{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`LINE channel access token (alias)`}},{key:`channelSecret`,kind:`string`,sensitive:!0,cli:{flags:`--channel-secret <secret>`,description:`LINE channel secret`}},{key:`tokenFile`,kind:`string`,sensitive:!0,cli:{flags:`--token-file <path>`,description:`LINE access token file`}},{key:`secretFile`,kind:`string`,sensitive:!0,cli:{flags:`--secret-file <path>`,description:`LINE channel secret file`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use LINE environment credentials`},envVars:[`LINE_CHANNEL_ACCESS_TOKEN`,`LINE_CHANNEL_SECRET`]}]}},install:{clawhubSpec:`clawhub:@openclaw/line`,npmSpec:`@openclaw/line`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@openclaw/matrix`,version:`2026.11.13`,description:`OpenClaw Matrix channel plugin for rooms and direct messages.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`matrix`,configuredState:{env:{anyOf:[`MATRIX_HOMESERVER`,`MATRIX_USER_ID`,`MATRIX_ACCESS_TOKEN`,`MATRIX_PASSWORD`,`MATRIX_DEVICE_ID`,`MATRIX_DEVICE_NAME`,`MATRIX_OPS_HOMESERVER`,`MATRIX_OPS_ACCESS_TOKEN`,`MATRIX_OPS_DEVICE_ID`,`MATRIX_OPS_DEVICE_NAME`]}},approvalFlags:[`native`],label:`Matrix`,selectionLabel:`Matrix (plugin)`,docsPath:`/channels/matrix`,docsLabel:`matrix`,blurb:`open protocol; install the plugin to enable.`,order:70,markdownCapable:!0,quickstartAllowFrom:!0,doctorCapabilities:{dmAllowFromMode:`nestedOnly`,groupModel:`sender`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!0},setup:{fields:[{key:`homeserver`,kind:`string`,cli:{flags:`--homeserver <url>`,description:`Matrix homeserver URL`}},{key:`userId`,kind:`string`,cli:{flags:`--user-id <id>`,description:`Matrix user id`}},{key:`accessToken`,kind:`string`,sensitive:!0,cli:{flags:`--access-token <token>`,description:`Matrix access token`}},{key:`password`,kind:`string`,sensitive:!0,cli:{flags:`--password <password>`,description:`Matrix password`}},{key:`deviceName`,kind:`string`,cli:{flags:`--device-name <name>`,description:`Matrix device name`}},{key:`avatarUrl`,kind:`string`,cli:{flags:`--avatar-url <url>`,description:`Matrix avatar URL`}},{key:`initialSyncLimit`,kind:`integer`,cli:{flags:`--initial-sync-limit <n>`,description:`Matrix initial sync room limit`}},{key:`proxy`,kind:`string`,cli:{flags:`--proxy <url>`,description:`Matrix proxy URL`}},{key:`dangerouslyAllowPrivateNetwork`,kind:`boolean`,cli:{flags:`--dangerously-allow-private-network`,description:`Allow private-network Matrix homeservers`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Matrix environment credentials`}}]},persistedAuthState:{specifier:`./auth-presence`,exportName:`hasAnyMatrixAuth`,exportNameAsync:`hasAnyMatrixAuthAsync`,backingStore:`plugin-state`}},install:{clawhubSpec:`clawhub:@openclaw/matrix`,npmSpec:`@openclaw/matrix`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/mattermost`,version:`2026.11.13`,description:`OpenClaw Mattermost channel plugin`,source:`official`,kind:`channel`,openclaw:{channel:{id:`mattermost`,configuredState:{env:{allOf:[`MATTERMOST_BOT_TOKEN`,`MATTERMOST_URL`]}},label:`Mattermost`,selectionLabel:`Mattermost (plugin)`,docsPath:`/channels/mattermost`,docsLabel:`mattermost`,blurb:`self-hosted Slack-style chat; install the plugin to enable.`,order:65,setup:{fields:[{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`Mattermost bot token`}},{key:`botToken`,kind:`string`,sensitive:!0,cli:{flags:`--bot-token <token>`,description:`Mattermost bot token`}},{key:`httpUrl`,kind:`string`,cli:{flags:`--http-url <url>`,description:`Mattermost server URL`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Mattermost environment credentials`},envVars:[`MATTERMOST_BOT_TOKEN`,`MATTERMOST_URL`]}]}},install:{clawhubSpec:`clawhub:@openclaw/mattermost`,npmSpec:`@openclaw/mattermost`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/msteams`,version:`2026.11.13`,description:`OpenClaw Microsoft Teams channel plugin for bot conversations.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`msteams`,configuredState:{env:{anyOf:[`MSTEAMS_APP_ID`,`MSTEAMS_APP_PASSWORD`,`MSTEAMS_TENANT_ID`]},specifier:`./configured-state`,exportName:`hasConfiguredMSTeamsChannelState`},label:`Microsoft Teams`,selectionLabel:`Microsoft Teams (Teams SDK)`,docsPath:`/channels/msteams`,docsLabel:`msteams`,blurb:`Teams SDK; enterprise support.`,aliases:[`teams`],order:60,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`hybrid`,groupAllowFromFallbackToAllowFrom:!0,warnOnEmptyGroupSenderAllowlist:!0},setup:{fields:[{key:`appId`,kind:`string`,cli:{flags:`--app-id <id>`,description:`Microsoft Teams application id`}},{key:`appPassword`,kind:`string`,sensitive:!0,cli:{flags:`--app-password <secret>`,description:`Microsoft Teams app password`}},{key:`tenantId`,kind:`string`,cli:{flags:`--tenant-id <id>`,description:`Microsoft Teams tenant id`}},{key:`webhookPath`,kind:`string`,cli:{flags:`--webhook-path <path>`,description:`Microsoft Teams webhook path`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Microsoft Teams environment credentials`},envVars:[`MSTEAMS_APP_ID`,`MSTEAMS_APP_PASSWORD`,`MSTEAMS_TENANT_ID`,`MSTEAMS_AUTH_TYPE`,`MSTEAMS_CERTIFICATE_PATH`,`MSTEAMS_USE_MANAGED_IDENTITY`],envVarMode:`any`}]}},install:{clawhubSpec:`clawhub:@openclaw/msteams`,npmSpec:`@openclaw/msteams`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@openclaw/nextcloud-talk`,version:`2026.11.13`,description:`OpenClaw Nextcloud Talk channel plugin for conversations.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`nextcloud-talk`,configuredState:{env:{anyOf:[`NEXTCLOUD_TALK_BOT_SECRET`,`NEXTCLOUD_TALK_API_PASSWORD`]},specifier:`./configured-state`,exportName:`hasConfiguredNextcloudTalkChannelState`},label:`Nextcloud Talk`,selectionLabel:`Nextcloud Talk (self-hosted)`,docsPath:`/channels/nextcloud-talk`,docsLabel:`nextcloud-talk`,blurb:`Self-hosted chat via Nextcloud Talk webhook bots.`,aliases:[`nc-talk`,`nc`],order:65,quickstartAllowFrom:!0,setup:{fields:[{key:`baseUrl`,kind:`string`,cli:{flags:`--base-url <url>`,description:`Nextcloud base URL`}},{key:`url`,kind:`string`,cli:{flags:`--url <url>`,description:`Legacy Nextcloud base URL alias`}},{key:`secret`,kind:`string`,sensitive:!0,cli:{flags:`--secret <secret>`,description:`Nextcloud Talk bot secret`}},{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <secret>`,description:`Legacy Nextcloud bot secret alias`}},{key:`password`,kind:`string`,sensitive:!0,cli:{flags:`--password <secret>`,description:`Legacy Nextcloud bot secret alias`}},{key:`secretFile`,kind:`string`,sensitive:!0,cli:{flags:`--secret-file <path>`,description:`Nextcloud Talk bot secret file`}},{key:`tokenFile`,kind:`string`,sensitive:!0,cli:{flags:`--token-file <path>`,description:`Legacy Nextcloud bot secret file alias`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Nextcloud Talk environment credentials`},envVars:[`NEXTCLOUD_TALK_BOT_SECRET`]}]}},install:{clawhubSpec:`clawhub:@openclaw/nextcloud-talk`,npmSpec:`@openclaw/nextcloud-talk`,defaultChoice:`npm`,minHostVersion:`>=2026.9.7`}}},{name:`@openclaw/nostr`,version:`2026.11.13`,description:`OpenClaw Nostr channel plugin for NIP-04 encrypted direct messages.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`nostr`,configuredState:{env:{anyOf:[`NOSTR_PRIVATE_KEY`]}},label:`Nostr`,selectionLabel:`Nostr (NIP-04 DMs)`,docsPath:`/channels/nostr`,docsLabel:`nostr`,blurb:`Decentralized protocol; encrypted DMs via NIP-04.`,order:55,quickstartAllowFrom:!0,setup:{fields:[{key:`privateKey`,kind:`string`,sensitive:!0,cli:{flags:`--private-key <key>`,description:`Nostr private key`}},{key:`relayUrls`,kind:`string`,cli:{flags:`--relay-urls <urls>`,description:`Nostr relay URLs`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use NOSTR_PRIVATE_KEY`},envVars:[`NOSTR_PRIVATE_KEY`]}]}},install:{clawhubSpec:`clawhub:@openclaw/nostr`,npmSpec:`@openclaw/nostr`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@tencent-weixin/openclaw-weixin`,description:`OpenClaw Weixin channel plugin by the Tencent Weixin team.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`openclaw-weixin`,label:`Weixin`},channel:{id:`openclaw-weixin`,label:`Weixin`,selectionLabel:`Weixin(微信)`,detailLabel:`Weixin`,docsPath:`/channels/wechat`,docsLabel:`weixin`,blurb:`Personal WeChat messaging via QR-code login.`,aliases:[`weixin`,`wechat`,`微信`],order:75},channelConfigs:{"openclaw-weixin":{label:`Weixin`,description:`Personal WeChat conversation channel.`,schema:{type:`object`,additionalProperties:!0}}},install:{npmSpec:`@tencent-weixin/openclaw-weixin@2.4.8`,defaultChoice:`npm`,expectedIntegrity:`sha512-hhO9prUQwzfSpIL6XGWazRsxNs89K+Mis3iQW6a8eum4AIDxOUiTFMg4nlNVD/au0SjAx5CcJjo3KYWZqGpgQA==`,minHostVersion:`>=2026.5.12`}}},{name:`@zalo-platforms/openclaw-zaloclawbot`,description:`OpenClaw Zalo ClawBot channel plugin by the Zalo Platforms team.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`openclaw-zaloclawbot`,label:`Zalo ClawBot`},channel:{id:`openclaw-zaloclawbot`,label:`Zalo ClawBot`,selectionLabel:`Zalo ClawBot (QR)`,detailLabel:`Zalo ClawBot`,docsPath:`/channels/zaloclawbot`,docsLabel:`zaloclawbot`,blurb:`Personal Zalo assistant bot via QR-code login — owner-bound, no setup.`,aliases:[`zaloclawbot`,`zalo-clawbot`],order:82},channelConfigs:{"openclaw-zaloclawbot":{label:`Zalo ClawBot`,description:`Personal Zalo assistant — QR-onboarded, owner-bound.`,schema:{type:`object`,additionalProperties:!0}}},install:{npmSpec:`@zalo-platforms/openclaw-zaloclawbot@0.1.4`,defaultChoice:`npm`,expectedIntegrity:`sha512-5IxZriHJYACLLGqkCPPsTP9tas62kXEOFqTFAFMdunAM3SPhIJwVFRp0WvoP/m7L2PX85weD0g8LOtxM93VDYg==`,minHostVersion:`>=2026.4.10`}}},{name:`@tencent-connect/openclaw-qqbot`,description:`OpenClaw QQ Bot channel plugin by the Tencent Connect team.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`openclaw-qqbot`,label:`QQ Bot`},setupFeatures:{configPromotion:`preserve-root`},legacyNpmPackageNames:[`@openclaw/qqbot`],contracts:{tools:[`qqbot_platform_api`,`qqbot_remind`]},channel:{id:`qqbot`,label:`QQ Bot`,selectionLabel:`QQ Bot (Official API)`,detailLabel:`QQ Bot`,docsPath:`/channels/qqbot`,docsLabel:`qqbot`,blurb:`connect to QQ via official QQ Bot API with group chat and direct message support.`,envVars:[`QQBOT_APP_ID`,`QQBOT_CLIENT_SECRET`],approvalFlags:[`native`],doctorCapabilities:{openDmRequiresAllowFromWildcard:!1},systemImage:`bubble.left.and.bubble.right`},channelSecrets:{fields:[{field:`clientSecret`,activationField:`appId`,activationEnv:`QQBOT_APP_ID`}]},channelHostConfig:{docsSource:`official`,compatibilityMigration:`qqbot.tencent-2.0-compatibility`,schemaAllOf:[{not:{required:[`defaultAccount`]},properties:{allowFrom:{type:`array`,minItems:1,items:{allOf:[{not:{const:`*`}},{anyOf:[{const:`openclaw:approval-disabled`},{type:`string`,pattern:`^[^a-z]*$`}]}]}},accounts:{type:`object`,not:{required:[`default`]},additionalProperties:{type:`object`,properties:{allowFrom:{type:`array`,minItems:1,items:{allOf:[{not:{const:`*`}},{anyOf:[{const:`openclaw:approval-disabled`},{type:`string`,pattern:`^[^a-z]*$`}]}]}}},required:[`allowFrom`]}}},required:[`allowFrom`]}]},channelConfigs:{qqbot:{label:`QQ Bot`,description:`QQ Bot API conversation channel.`,preferOver:[`qqbot`],schema:{type:`object`,additionalProperties:!0,properties:{appId:{type:`string`},clientSecret:{type:`string`}}}}},install:{npmSpec:`@tencent-connect/openclaw-qqbot@2.0.3`,defaultChoice:`npm`,expectedIntegrity:`sha512-yngu/2cPeZjJfIfHWCXWB2/6KlDHrb9vpOUjKLdQxePLSp6wCn3CFOALcBIVq/9o6jlYz9WTU9idW6nfX1xpFA==`}}},{name:`@openclaw/raft`,version:`2026.11.13`,description:`OpenClaw Raft channel plugin for Raft CLI wake bridges.`,source:`official`,kind:`channel`,openclaw:{channelConfigs:{raft:{label:`Raft`,description:`Raft External Agent CLI wake bridge.`}},channel:{id:`raft`,configuredState:{env:{anyOf:[`RAFT_PROFILE`]}},label:`Raft`,selectionLabel:`Raft (CLI wake bridge)`,docsPath:`/channels/raft`,docsLabel:`raft`,blurb:`Raft CLI wake bridge for human and agent collaboration.`,order:72,setup:{fields:[{key:`profile`,kind:`string`,cli:{flags:`--profile <profile>`,description:`Raft CLI profile`}}]}},install:{clawhubSpec:`clawhub:@openclaw/raft`,npmSpec:`@openclaw/raft`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/signal`,version:`2026.11.13`,description:`OpenClaw Signal channel plugin`,source:`official`,kind:`channel`,openclaw:{channel:{id:`signal`,approvalFlags:[`native`],label:`Signal`,selectionLabel:`Signal (signal-cli)`,detailLabel:`Signal REST`,docsPath:`/channels/signal`,docsLabel:`signal`,blurb:`signal-cli linked device with additional setup for the local REST bridge.`,systemImage:`antenna.radiowaves.left.and.right`,markdownCapable:!0,setup:{fields:[{key:`signalNumber`,kind:`string`,cli:{flags:`--signal-number <e164>`,description:`Signal account number (E.164)`}},{key:`signalTransport`,kind:`choice`,choices:[`external-native`,`container`],cli:{flags:`--signal-transport <kind>`,description:`Signal HTTP transport (external-native or container)`}},{key:`cliPath`,kind:`string`,cli:{flags:`--cli-path <path>`,description:`signal-cli executable path`}},{key:`httpUrl`,kind:`string`,cli:{flags:`--http-url <url>`,description:`Signal HTTP service URL`}},{key:`httpHost`,kind:`string`,cli:{flags:`--http-host <host>`,description:`Signal HTTP daemon host`}},{key:`httpPort`,kind:`string`,cli:{flags:`--http-port <port>`,description:`Signal HTTP daemon port`}}]}},install:{clawhubSpec:`clawhub:@openclaw/signal`,npmSpec:`@openclaw/signal`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/slack`,version:`2026.11.13`,description:`OpenClaw Slack channel plugin for channels, DMs, commands, and app events.`,source:`official`,kind:`channel`,openclaw:{channelConfigs:{slack:{label:`Slack`,description:`Slack channel, DM, command, and app event integration.`}},channel:{id:`slack`,configuredState:{env:{anyOf:[`SLACK_BOT_TOKEN`,`SLACK_APP_TOKEN`,`SLACK_USER_TOKEN`]},specifier:`./configured-state`,exportName:`hasConfiguredSlackChannelState`},approvalFlags:[`native`],label:`Slack`,selectionLabel:`Slack (Socket Mode)`,detailLabel:`Slack Bot`,docsPath:`/channels/slack`,docsLabel:`slack`,blurb:`supported (Socket Mode).`,systemImage:`number`,markdownCapable:!0,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`route`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!1},commands:{nativeCommandsAutoEnabled:!1,nativeSkillsAutoEnabled:!1},setup:{fields:[{key:`botToken`,kind:`string`,sensitive:!0,cli:{flags:`--bot-token <token>`,description:`Slack bot token`}},{key:`appToken`,kind:`string`,sensitive:!0,cli:{flags:`--app-token <token>`,description:`Slack app token`}},{key:`userToken`,kind:`string`,sensitive:!0,cli:{flags:`--user-token <token>`,description:`Slack user token`}},{key:`signingSecret`,kind:`string`,sensitive:!0,cli:{flags:`--signing-secret <secret>`,description:`Slack signing secret`}},{key:`identity`,kind:`choice`,choices:[`bot`,`user`],cli:{flags:`--identity <kind>`,description:`Slack identity`}},{key:`mode`,kind:`choice`,choices:[`socket`,`http`],cli:{flags:`--mode <mode>`,description:`Slack connection mode`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Slack environment credentials`},envVars:[`SLACK_BOT_TOKEN`]}]}},install:{clawhubSpec:`clawhub:@openclaw/slack`,npmSpec:`@openclaw/slack`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/sms`,version:`2026.11.13`,description:`OpenClaw SMS/MMS channel plugin for Twilio messages.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`sms`,configuredState:{env:{anyOf:[`TWILIO_ACCOUNT_SID`,`TWILIO_AUTH_TOKEN`,`TWILIO_PHONE_NUMBER`,`TWILIO_SMS_FROM`,`TWILIO_MESSAGING_SERVICE_SID`]},specifier:`./configured-state`,exportName:`hasConfiguredSmsChannelState`},label:`SMS`,selectionLabel:`SMS (Twilio)`,detailLabel:`Twilio SMS/MMS`,docsPath:`/channels/sms`,docsLabel:`sms`,blurb:`Twilio-backed SMS/MMS with inbound webhooks and outbound replies.`,order:88,quickstartAllowFrom:!0,setup:{fields:[{key:`accountSid`,kind:`string`,sensitive:!0,cli:{flags:`--account-sid <sid>`,description:`Twilio account SID`}},{key:`authToken`,kind:`string`,sensitive:!0,cli:{flags:`--auth-token <token>`,description:`Twilio auth token`}},{key:`fromNumber`,kind:`string`,cli:{flags:`--from-number <e164>`,description:`Twilio sender phone number`}},{key:`messagingServiceSid`,kind:`string`,cli:{flags:`--messaging-service-sid <sid>`,description:`Twilio Messaging Service SID`}},{key:`defaultTo`,kind:`string`,cli:{flags:`--default-to <e164>`,description:`Default SMS recipient`}},{key:`webhookPath`,kind:`string`,cli:{flags:`--webhook-path <path>`,description:`SMS webhook path`}},{key:`publicWebhookUrl`,kind:`string`,cli:{flags:`--public-webhook-url <url>`,description:`Public SMS webhook URL`}},{key:`dmPolicy`,kind:`choice`,choices:[`pairing`,`allowlist`,`open`,`disabled`],cli:{flags:`--dm-policy <policy>`,description:`SMS DM policy`}},{key:`allowFrom`,kind:`string-list`,cli:{flags:`--allow-from <numbers>`,description:`Allowed SMS senders`}}]}},install:{clawhubSpec:`clawhub:@openclaw/sms`,npmSpec:`@openclaw/sms`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/synology-chat`,version:`2026.11.13`,description:`Synology Chat channel plugin for OpenClaw channels and direct messages.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`synology-chat`,configuredState:{env:{allOf:[`SYNOLOGY_CHAT_TOKEN`,`SYNOLOGY_CHAT_INCOMING_URL`]}},label:`Synology Chat`,selectionLabel:`Synology Chat (Webhook)`,docsPath:`/channels/synology-chat`,docsLabel:`synology-chat`,blurb:`Connect your Synology NAS Chat to OpenClaw with full agent capabilities.`,order:90,setup:{fields:[{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`Synology Chat token`}},{key:`url`,kind:`string`,sensitive:!0,cli:{flags:`--url <url>`,description:`Synology Chat webhook URL`}},{key:`webhookUrl`,kind:`string`,sensitive:!0,cli:{flags:`--webhook-url <url>`,description:`Public HTTPS Synology Chat callback URL used for attachments`}},{key:`webhookPath`,kind:`string`,cli:{flags:`--webhook-path <path>`,description:`Synology Chat webhook path`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use Synology Chat environment credentials`},envVars:[`SYNOLOGY_CHAT_TOKEN`]}]}},install:{clawhubSpec:`clawhub:@openclaw/synology-chat`,npmSpec:`@openclaw/synology-chat`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@openclaw/tlon`,version:`2026.11.13`,description:`OpenClaw Tlon/Urbit channel plugin for chat workflows.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`tlon`,label:`Tlon`,selectionLabel:`Tlon (Urbit)`,docsPath:`/channels/tlon`,docsLabel:`tlon`,blurb:`decentralized messaging on Urbit; install the plugin to enable.`,order:90,quickstartAllowFrom:!0,setup:{fields:[{key:`ship`,kind:`string`,cli:{flags:`--ship <ship>`,description:`Tlon ship`}},{key:`url`,kind:`string`,cli:{flags:`--url <url>`,description:`Tlon URL`}},{key:`code`,kind:`string`,sensitive:!0,cli:{flags:`--code <code>`,description:`Tlon login code`}},{key:`dangerouslyAllowPrivateNetwork`,kind:`boolean`,cli:{flags:`--dangerously-allow-private-network`,description:`Allow private-network Tlon URLs`}},{key:`groupChannels`,kind:`string-list`,cli:{flags:`--group-channels <list>`,description:`Tlon group channels`}},{key:`dmAllowlist`,kind:`string-list`,cli:{flags:`--dm-allowlist <list>`,description:`Tlon DM allowlist`}},{key:`autoDiscoverChannels`,kind:`boolean`,cli:{flags:`--auto-discover-channels`,negatedFlags:`--no-auto-discover-channels`,description:`Auto-discover Tlon group channels`}},{key:`ownerShip`,kind:`string`,cli:{flags:`--owner-ship <ship>`,description:`Tlon owner ship`}}]}},install:{clawhubSpec:`clawhub:@openclaw/tlon`,npmSpec:`@openclaw/tlon`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@openclaw/twitch`,version:`2026.11.13`,description:`OpenClaw Twitch channel plugin for chat and moderation workflows.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`twitch`,configuredState:{env:{anyOf:[`OPENCLAW_TWITCH_ACCESS_TOKEN`]}},label:`Twitch`,selectionLabel:`Twitch (Chat)`,docsPath:`/channels/twitch`,blurb:`Twitch chat integration`,aliases:[`twitch-chat`],setup:{fields:[]}},install:{clawhubSpec:`clawhub:@openclaw/twitch`,npmSpec:`@openclaw/twitch`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@wecom/wecom-openclaw-plugin`,description:`OpenClaw WeCom channel plugin by the Tencent WeCom team.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`wecom-openclaw-plugin`,label:`WeCom`},contracts:{tools:[`wecom_mcp`]},channel:{id:`wecom`,label:`WeCom`,selectionLabel:`WeCom(企业微信)`,detailLabel:`WeCom`,docsPath:`/channels/wecom`,docsLabel:`wecom`,blurb:`Enterprise messaging and documents, scheduling, task tools.`,aliases:[`qywx`,`wework`,`enterprise-wechat`],order:45},channelConfigs:{wecom:{label:`WeCom`,description:`Enterprise WeChat conversation channel.`,schema:{type:`object`,additionalProperties:!0}}},install:{npmSpec:`@wecom/wecom-openclaw-plugin@2026.7.2`,defaultChoice:`npm`,expectedIntegrity:`sha512-7kqdBIOF3SgDDoBoFtO6jxnxofbYSgbKdxZDNabD0y0jg2xKcVqlXZOOJ9+XQho/QOtIFrnRH2IRnPukFEYwJg==`}}},{name:`@openclaw/whatsapp`,version:`2026.11.13`,description:`OpenClaw WhatsApp channel plugin for WhatsApp Web chats.`,source:`official`,kind:`channel`,openclaw:{contracts:{tools:[`whatsapp_call`,`whatsapp_login`]},setupFeatures:{configPromotion:`preserve-root`},channel:{id:`whatsapp`,approvalFlags:[`native`],label:`WhatsApp`,selectionLabel:`WhatsApp (QR link)`,detailLabel:`WhatsApp Web`,docsPath:`/channels/whatsapp`,docsLabel:`whatsapp`,blurb:`works with your own number; recommend a separate phone + eSIM.`,systemImage:`message`,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`sender`,groupAllowFromFallbackToAllowFrom:!0,warnOnEmptyGroupSenderAllowlist:!0},persistedAuthState:{specifier:`./auth-presence`,exportName:`hasAnyWhatsAppAuth`},setup:{fields:[{key:`authDir`,kind:`string`,cli:{flags:`--auth-dir <path>`,description:`WhatsApp auth directory override`}}]}},install:{clawhubSpec:`clawhub:@openclaw/whatsapp`,npmSpec:`@openclaw/whatsapp`,defaultChoice:`npm`,minHostVersion:`>=2026.4.25`}}},{name:`openclaw-plugin-yuanbao`,description:`OpenClaw Yuanbao channel plugin by the Tencent Yuanbao team.`,source:`external`,kind:`channel`,openclaw:{plugin:{id:`openclaw-plugin-yuanbao`,label:`Yuanbao`},contracts:{tools:[`query_group_info`,`query_session_members`,`yuanbao_remind`]},channel:{id:`yuanbao`,label:`Yuanbao`,selectionLabel:`Yuanbao (元宝)`,detailLabel:`Yuanbao`,docsPath:`/channels/yuanbao`,docsLabel:`yuanbao`,blurb:`Tencent Yuanbao AI assistant conversation channel.`,aliases:[`yuanbao`,`yb`,`tencent-yuanbao`,`元宝`],order:85},channelConfigs:{yuanbao:{label:`Yuanbao`,description:`Tencent Yuanbao AI assistant channel.`,schema:{type:`object`,additionalProperties:!0}}},install:{npmSpec:`openclaw-plugin-yuanbao@2.18.2`,defaultChoice:`npm`,expectedIntegrity:`sha512-cL85zWLePhi/GWRsXL8ogS4tejNuCE/J0V/OYhDFJzElF2TmndVCUAXaJdssgv/ULJ9sBaic88wAzRllIgZIwA==`}}},{name:`@openclaw/zalo`,version:`2026.11.13`,description:`OpenClaw Zalo channel plugin for bot and webhook chats.`,source:`official`,kind:`channel`,openclaw:{channel:{id:`zalo`,configuredState:{env:{anyOf:[`ZALO_BOT_TOKEN`]}},label:`Zalo`,selectionLabel:`Zalo (Bot API)`,docsPath:`/channels/zalo`,docsLabel:`zalo`,blurb:`Vietnam-focused messaging platform with Bot API.`,aliases:[`zl`],order:80,quickstartAllowFrom:!0,setup:{fields:[{key:`token`,kind:`string`,sensitive:!0,cli:{flags:`--token <token>`,description:`Zalo bot token`}},{key:`tokenFile`,kind:`string`,sensitive:!0,cli:{flags:`--token-file <path>`,description:`Zalo bot token file`}},{key:`useEnv`,kind:`boolean`,cli:{flags:`--use-env`,description:`Use ZALO_BOT_TOKEN`},envVars:[`ZALO_BOT_TOKEN`]}]}},install:{clawhubSpec:`clawhub:@openclaw/zalo`,npmSpec:`@openclaw/zalo`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`}}},{name:`@openclaw/zalouser`,version:`2026.11.13`,description:`OpenClaw Zalo Personal Account plugin via native zca-js integration.`,source:`official`,kind:`channel`,openclaw:{contracts:{tools:[`zalouser`]},channel:{id:`zalouser`,configuredState:{env:{anyOf:[`ZALOUSER_PROFILE`,`ZCA_PROFILE`]}},label:`Zalo Personal`,selectionLabel:`Zalo (Personal Account)`,docsPath:`/channels/zalouser`,docsLabel:`zalouser`,blurb:`Zalo personal account via QR code login.`,aliases:[`zlu`],order:85,quickstartAllowFrom:!1,doctorCapabilities:{dmAllowFromMode:`topOnly`,groupModel:`hybrid`,groupAllowFromFallbackToAllowFrom:!1,warnOnEmptyGroupSenderAllowlist:!1},setup:{fields:[]}},install:{clawhubSpec:`clawhub:@openclaw/zalouser`,npmSpec:`@openclaw/zalouser`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}}]},{entries:[{name:`@openclaw/abliteration-provider`,description:`OpenClaw Abliteration provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`abliteration`,label:`Abliteration`},providers:[{id:`abliteration`,name:`Abliteration`,docs:`/providers/abliteration`,categories:[`cloud`,`llm`],envVars:[`ABLITERATION_API_KEY`,`ABLIT_KEY`],authChoices:[{method:`api-key`,choiceId:`abliteration-api-key`,appGuidedSecret:!0,choiceLabel:`Abliteration API key`,choiceHint:`OpenAI-compatible abliterated open-weight models`,groupId:`abliteration`,groupLabel:`Abliteration`,groupHint:`OpenAI-compatible abliterated open-weight models`,optionKey:`abliterationApiKey`,cliFlag:`--abliteration-api-key`,cliOption:`--abliteration-api-key <key>`,cliDescription:`Abliteration API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/abliteration-provider`,npmSpec:`@openclaw/abliteration-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.10.6`}}},{name:`@openclaw/amazon-bedrock-provider`,description:`OpenClaw Amazon Bedrock provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`amazon-bedrock`,label:`Amazon Bedrock`},providers:[{id:`amazon-bedrock`,name:`Amazon Bedrock`,docs:`/providers/bedrock`,categories:[`cloud`,`llm`]}],install:{clawhubSpec:`clawhub:@openclaw/amazon-bedrock-provider`,npmSpec:`@openclaw/amazon-bedrock-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.5.12-beta.1`}}},{name:`@openclaw/amazon-bedrock-mantle-provider`,description:`OpenClaw Amazon Bedrock Mantle provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`amazon-bedrock-mantle`,label:`Amazon Bedrock Mantle`},providers:[{id:`amazon-bedrock-mantle`,name:`Amazon Bedrock Mantle`,docs:`/providers/bedrock-mantle`,categories:[`cloud`,`llm`]}],install:{clawhubSpec:`clawhub:@openclaw/amazon-bedrock-mantle-provider`,npmSpec:`@openclaw/amazon-bedrock-mantle-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.5.12-beta.1`}}},{name:`@openclaw/anthropic-vertex-provider`,description:`OpenClaw Anthropic Vertex provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`anthropic-vertex`,label:`Anthropic Vertex`},providers:[{id:`anthropic-vertex`,name:`Anthropic Vertex`,docs:`/providers/models`,categories:[`cloud`,`llm`]}],install:{clawhubSpec:`clawhub:@openclaw/anthropic-vertex-provider`,npmSpec:`@openclaw/anthropic-vertex-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.5.12-beta.1`}}},{name:`@openclaw/arcee-provider`,description:`OpenClaw Arcee provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`arcee`,label:`Arcee AI`},providers:[{id:`arcee`,name:`Arcee AI`,docs:`/providers/arcee`,categories:[`cloud`,`llm`],envVars:[`ARCEEAI_API_KEY`],authChoices:[{method:`arcee-platform`,choiceId:`arceeai-api-key`,choiceLabel:`Arcee AI API key`,choiceHint:`Direct (chat.arcee.ai)`,groupId:`arcee`,groupLabel:`Arcee AI`,groupHint:`Direct API or OpenRouter`,optionKey:`arceeaiApiKey`,cliFlag:`--arceeai-api-key`,cliOption:`--arceeai-api-key <key>`,cliDescription:`Arcee AI API key`,onboardingScopes:[`text-inference`]},{method:`openrouter`,choiceId:`arceeai-openrouter`,choiceLabel:`OpenRouter API key`,choiceHint:`Via OpenRouter (openrouter.ai)`,groupId:`arcee`,groupLabel:`Arcee AI`,groupHint:`Direct API or OpenRouter`,optionKey:`openrouterApiKey`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/arcee-provider`,npmSpec:`@openclaw/arcee-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/baseten-provider`,description:`OpenClaw Baseten provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`baseten`,label:`Baseten`},providers:[{id:`baseten`,name:`Baseten`,docs:`/providers/baseten`,categories:[`cloud`,`llm`],envVars:[`BASETEN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`baseten-api-key`,choiceLabel:`Baseten API key`,groupId:`baseten`,groupLabel:`Baseten`,groupHint:`Hosted Model APIs, including Inkling`,optionKey:`basetenApiKey`,cliFlag:`--baseten-api-key`,cliOption:`--baseten-api-key <key>`,cliDescription:`Baseten API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/baseten-provider`,npmSpec:`@openclaw/baseten-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/byteplus-provider`,description:`OpenClaw BytePlus provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`byteplus`,label:`BytePlus`},providers:[{id:`byteplus`,aliases:[`byteplus-plan`],name:`BytePlus`,docs:`/concepts/model-providers#byteplus-international`,categories:[`cloud`,`llm`],envVars:[`BYTEPLUS_API_KEY`],authChoices:[{method:`api-key`,choiceId:`byteplus-api-key`,choiceLabel:`BytePlus API key`,groupId:`byteplus`,groupLabel:`BytePlus`,groupHint:`API key`,optionKey:`byteplusApiKey`,cliFlag:`--byteplus-api-key`,cliOption:`--byteplus-api-key <key>`,cliDescription:`BytePlus API key`,onboardingScopes:[`text-inference`]}]}],contracts:{videoGenerationProviders:[`byteplus`]},install:{clawhubSpec:`clawhub:@openclaw/byteplus-provider`,npmSpec:`@openclaw/byteplus-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/celeris`,description:`OpenClaw Celeris native Decision provider.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`celeris`,label:`Celeris`},providerEndpoints:[{endpointClass:`celeris-native`,hosts:[`inference.celeris.ai`]}],providers:[{id:`celeris`,name:`Celeris`,docs:`/providers/celeris`,categories:[`cloud`,`llm`],envVars:[`CELERIS_API_KEY`]}],contracts:{decisionProviders:[`celeris`]},install:{clawhubSpec:`clawhub:@openclaw/celeris`,npmSpec:`@openclaw/celeris`,defaultChoice:`npm`,minHostVersion:`>=2026.11.2`}}},{name:`@openclaw/cerebras-provider`,description:`OpenClaw Cerebras provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`cerebras`,label:`Cerebras`},providerEndpoints:[{endpointClass:`cerebras-native`,hosts:[`api.cerebras.ai`]}],providers:[{id:`cerebras`,name:`Cerebras`,docs:`/providers/cerebras`,categories:[`cloud`,`llm`],envVars:[`CEREBRAS_API_KEY`],authChoices:[{method:`api-key`,choiceId:`cerebras-api-key`,choiceLabel:`Cerebras API key`,groupId:`cerebras`,groupLabel:`Cerebras`,groupHint:`Fast OpenAI-compatible inference`,optionKey:`cerebrasApiKey`,cliFlag:`--cerebras-api-key`,cliOption:`--cerebras-api-key <key>`,cliDescription:`Cerebras API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/cerebras-provider`,npmSpec:`@openclaw/cerebras-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/chutes-provider`,description:`OpenClaw Chutes.ai provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`chutes`,label:`Chutes`},providerEndpoints:[{endpointClass:`chutes-native`,hosts:[`llm.chutes.ai`]}],providers:[{id:`chutes`,name:`Chutes`,docs:`/providers/chutes`,categories:[`cloud`,`llm`],envVars:[`CHUTES_API_KEY`,`CHUTES_OAUTH_TOKEN`],authChoices:[{method:`oauth`,choiceId:`chutes`,choiceLabel:`Chutes (OAuth)`,choiceHint:`Browser sign-in`,groupId:`chutes`,groupLabel:`Chutes`,groupHint:`OAuth + API key`,onboardingScopes:[`text-inference`]},{method:`api-key`,choiceId:`chutes-api-key`,choiceLabel:`Chutes API key`,choiceHint:`Open-source models including Llama, DeepSeek, and more`,groupId:`chutes`,groupLabel:`Chutes`,groupHint:`OAuth + API key`,optionKey:`chutesApiKey`,cliFlag:`--chutes-api-key`,cliOption:`--chutes-api-key <key>`,cliDescription:`Chutes API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/chutes-provider`,npmSpec:`@openclaw/chutes-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/cohere-provider`,description:`OpenClaw Cohere provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`cohere`,label:`Cohere`},providers:[{id:`cohere`,name:`Cohere`,docs:`/providers/cohere`,categories:[`cloud`,`llm`],authChoices:[{method:`api-key`,choiceId:`cohere-api-key`,choiceLabel:`Cohere API key`,groupId:`cohere`,groupLabel:`Cohere`,groupHint:`OpenAI-compatible inference`,optionKey:`cohereApiKey`,cliFlag:`--cohere-api-key`,cliOption:`--cohere-api-key <key>`,cliDescription:`Cohere API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/cohere-provider`,npmSpec:`@openclaw/cohere-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/cloudflare-ai-gateway-provider`,description:`OpenClaw Cloudflare AI Gateway provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`cloudflare-ai-gateway`,label:`Cloudflare AI Gateway`},providers:[{id:`cloudflare-ai-gateway`,name:`Cloudflare AI Gateway`,docs:`/providers/cloudflare-ai-gateway`,categories:[`cloud`,`llm`],envVars:[`CLOUDFLARE_AI_GATEWAY_API_KEY`],authChoices:[{method:`api-key`,choiceId:`cloudflare-ai-gateway-api-key`,choiceLabel:`Cloudflare AI Gateway`,choiceHint:`Account ID + Gateway ID + API key`,groupId:`cloudflare-ai-gateway`,groupLabel:`Cloudflare AI Gateway`,groupHint:`Account ID + Gateway ID + API key`,optionKey:`cloudflareAiGatewayApiKey`,cliFlag:`--cloudflare-ai-gateway-api-key`,cliOption:`--cloudflare-ai-gateway-api-key <key>`,cliDescription:`Cloudflare AI Gateway API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/cloudflare-ai-gateway-provider`,npmSpec:`@openclaw/cloudflare-ai-gateway-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/comfy-provider`,description:`OpenClaw ComfyUI provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`comfy`,label:`ComfyUI`},providers:[{id:`comfy`,name:`ComfyUI`,docs:`/providers/comfy`,categories:[`local`,`cloud`,`media`],envVars:[`COMFY_API_KEY`,`COMFY_CLOUD_API_KEY`],authChoices:[{method:`cloud-api-key`,choiceId:`comfy-cloud-api-key`,choiceLabel:`Comfy Cloud API key`,choiceHint:`Required for cloud workflows`,groupId:`comfy`,groupLabel:`ComfyUI`,groupHint:`Local or cloud workflows`,optionKey:`comfyApiKey`,cliFlag:`--comfy-api-key`,cliOption:`--comfy-api-key <key>`,cliDescription:`Comfy Cloud API key`,onboardingScopes:[`image-generation`]}]}],contracts:{imageGenerationProviders:[`comfy`],musicGenerationProviders:[`comfy`],videoGenerationProviders:[`comfy`]},install:{clawhubSpec:`clawhub:@openclaw/comfy-provider`,npmSpec:`@openclaw/comfy-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/deepinfra-provider`,description:`OpenClaw DeepInfra provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`deepinfra`,label:`DeepInfra`},providerEndpoints:[{endpointClass:`deepinfra-native`,hosts:[`api.deepinfra.com`]}],providers:[{id:`deepinfra`,name:`DeepInfra`,docs:`/providers/deepinfra`,categories:[`cloud`,`llm`],envVars:[`DEEPINFRA_API_KEY`],authChoices:[{method:`api-key`,choiceId:`deepinfra-api-key`,choiceLabel:`DeepInfra API key`,choiceHint:`Unified API for open source models`,groupId:`deepinfra`,groupLabel:`DeepInfra`,groupHint:`Unified API for open source models`,optionKey:`deepinfraApiKey`,cliFlag:`--deepinfra-api-key`,cliOption:`--deepinfra-api-key <key>`,cliDescription:`DeepInfra API key`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`deepinfra`],embeddingProviders:[`deepinfra`],imageGenerationProviders:[`deepinfra`],speechProviders:[`deepinfra`],videoGenerationProviders:[`deepinfra`]},install:{clawhubSpec:`clawhub:@openclaw/deepinfra-provider`,npmSpec:`@openclaw/deepinfra-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/deepseek-provider`,description:`OpenClaw DeepSeek provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`deepseek`,label:`DeepSeek`},providerEndpoints:[{endpointClass:`deepseek-native`,hosts:[`api.deepseek.com`]}],providers:[{id:`deepseek`,name:`DeepSeek`,docs:`/providers/deepseek`,categories:[`cloud`,`llm`],envVars:[`DEEPSEEK_API_KEY`],authChoices:[{method:`api-key`,choiceId:`deepseek-api-key`,choiceLabel:`DeepSeek API key`,groupId:`deepseek`,groupLabel:`DeepSeek`,groupHint:`API key`,optionKey:`deepseekApiKey`,cliFlag:`--deepseek-api-key`,cliOption:`--deepseek-api-key <key>`,cliDescription:`DeepSeek API key`,onboardingScopes:[`text-inference`]}]}],contracts:{webSearchProviders:[`deepseek`]},webSearchProviders:[{id:`deepseek`,label:`DeepSeek`,hint:`Structured search results from DeepSeek's search engine`,onboardingScopes:[`text-inference`],credentialLabel:`DeepSeek API key`,envVars:[`DEEPSEEK_API_KEY`],placeholder:`sk-...`,signupUrl:`https://platform.deepseek.com/api_keys`,docsUrl:`https://docs.openclaw.ai/providers/deepseek#web-search`,credentialPath:`plugins.entries.deepseek.config.webSearch.apiKey`,autoDetectOrder:80}],install:{clawhubSpec:`clawhub:@openclaw/deepseek-provider`,npmSpec:`@openclaw/deepseek-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/fastino-provider`,description:`OpenClaw Fastino GLiDE Decision provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`fastino`,label:`Fastino GLiDE`},providers:[{id:`fastino`,name:`Fastino GLiDE`,docs:`/providers/fastino`,categories:[`cloud`,`llm`],envVars:[`FASTINO_API_KEY`]}],contracts:{decisionProviders:[`fastino`]},install:{clawhubSpec:`clawhub:@openclaw/fastino-provider`,npmSpec:`@openclaw/fastino-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.11.2`}}},{name:`@openclaw/featherless-provider`,description:`OpenClaw Featherless AI provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`featherless`,label:`Featherless AI`},providers:[{id:`featherless`,name:`Featherless AI`,docs:`/providers/featherless`,categories:[`cloud`,`llm`],envVars:[`FEATHERLESS_API_KEY`],authChoices:[{method:`api-key`,choiceId:`featherless-api-key`,choiceLabel:`Featherless AI API key`,choiceHint:`OpenAI-compatible access to open models`,groupId:`featherless`,groupLabel:`Featherless AI`,groupHint:`OpenAI-compatible access to open models`,optionKey:`featherlessApiKey`,cliFlag:`--featherless-api-key`,cliOption:`--featherless-api-key <key>`,cliDescription:`Featherless AI API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/featherless-provider`,npmSpec:`@openclaw/featherless-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.11`}}},{name:`@openclaw/gmi-provider`,description:`OpenClaw GMI Cloud provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`gmi`,label:`GMI Cloud`},providerEndpoints:[{endpointClass:`gmi-native`,hosts:[`api.gmi-serving.com`]}],providers:[{id:`gmi`,aliases:[`gmi-cloud`,`gmicloud`],name:`GMI Cloud`,docs:`/providers/gmi`,categories:[`cloud`,`llm`],authChoices:[{method:`api-key`,choiceId:`gmi-api-key`,choiceLabel:`GMI Cloud API key`,choiceHint:`OpenAI-compatible GMI Cloud endpoint.`,groupId:`gmi`,groupLabel:`GMI Cloud`,groupHint:`OpenAI-compatible GMI Cloud endpoint`,optionKey:`gmiApiKey`,cliFlag:`--gmi-api-key`,cliOption:`--gmi-api-key <key>`,cliDescription:`GMI Cloud API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/gmi-provider`,npmSpec:`@openclaw/gmi-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/liquid-ai-provider`,description:`OpenClaw Liquid AI provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`liquid-ai`,label:`Liquid AI`},providerEndpoints:[{endpointClass:`liquid-ai-native`,hosts:[`api.liquid.ai`]}],providers:[{id:`liquid-ai`,name:`Liquid AI`,docs:`/providers/liquid-ai`,categories:[`cloud`,`llm`],envVars:[`LIQUIDAI_API_KEY`],authChoices:[{method:`api-key`,choiceId:`liquid-ai-api-key`,choiceLabel:`Liquid AI API key`,groupId:`liquid-ai`,groupLabel:`Liquid AI`,groupHint:`Native Decision models`,optionKey:`liquidAiApiKey`,cliFlag:`--liquid-ai-api-key`,cliOption:`--liquid-ai-api-key <key>`,cliDescription:`Liquid AI API key`}]}],contracts:{decisionProviders:[`liquid-ai`]},install:{clawhubSpec:`clawhub:@openclaw/liquid-ai-provider`,npmSpec:`@openclaw/liquid-ai-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.10.6`}}},{name:`@openclaw/longcat-provider`,description:`OpenClaw LongCat provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`longcat`,label:`LongCat`},providers:[{id:`longcat`,aliases:[`meituan-longcat`],name:`LongCat`,docs:`/providers/longcat`,categories:[`cloud`,`llm`],envVars:[`LONGCAT_API_KEY`],authChoices:[{method:`api-key`,choiceId:`longcat-api-key`,choiceLabel:`LongCat API key`,groupId:`longcat`,groupLabel:`LongCat`,groupHint:`OpenAI-compatible LongCat API`,optionKey:`longcatApiKey`,cliFlag:`--longcat-api-key`,cliOption:`--longcat-api-key <key>`,cliDescription:`LongCat API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/longcat-provider`,npmSpec:`@openclaw/longcat-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/meta-provider`,description:`OpenClaw Meta provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`meta`,label:`Meta`},providerEndpoints:[{endpointClass:`meta-native`,hosts:[`api.meta.ai`]}],providers:[{id:`meta`,name:`Meta`,docs:`/providers/meta`,categories:[`cloud`,`llm`],envVars:[`MODEL_API_KEY`],authChoices:[{method:`api-key`,choiceId:`meta-api-key`,choiceLabel:`Meta API key`,choiceHint:`Meta (Responses API)`,groupId:`meta`,groupLabel:`Meta`,groupHint:`Meta (Responses API)`,optionKey:`metaApiKey`,cliFlag:`--meta-api-key`,cliOption:`--meta-api-key <key>`,cliDescription:`Meta API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/meta-provider`,npmSpec:`@openclaw/meta-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.11`}}},{name:`@openclaw/mistral-provider`,description:`OpenClaw Mistral provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`mistral`,label:`Mistral`},providerEndpoints:[{endpointClass:`mistral-public`,hosts:[`api.mistral.ai`]}],providers:[{id:`mistral`,name:`Mistral`,docs:`/providers/mistral`,categories:[`cloud`,`llm`],envVars:[`MISTRAL_API_KEY`],authChoices:[{method:`api-key`,choiceId:`mistral-api-key`,choiceLabel:`Mistral API key`,groupId:`mistral`,groupLabel:`Mistral AI`,groupHint:`API key`,optionKey:`mistralApiKey`,cliFlag:`--mistral-api-key`,cliOption:`--mistral-api-key <key>`,cliDescription:`Mistral API key`,onboardingScopes:[`text-inference`]}]}],contracts:{embeddingProviders:[`mistral`],mediaUnderstandingProviders:[`mistral`],realtimeTranscriptionProviders:[`mistral`]},install:{clawhubSpec:`clawhub:@openclaw/mistral-provider`,npmSpec:`@openclaw/mistral-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/nace`,description:`OpenClaw Nace native Decision provider.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`nace`,label:`Nace`},providerEndpoints:[{endpointClass:`nace-native`,hosts:[`console.nace.ai`]}],providers:[{id:`nace`,name:`Nace`,docs:`/providers/nace`,categories:[`cloud`,`llm`],envVars:[`NACE_API_KEY`]}],contracts:{decisionProviders:[`nace`]},install:{clawhubSpec:`clawhub:@openclaw/nace`,npmSpec:`@openclaw/nace`,defaultChoice:`npm`,minHostVersion:`>=2026.11.2`}}},{name:`@openclaw/novita-provider`,description:`OpenClaw NovitaAI provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`novita`,label:`NovitaAI`},providerEndpoints:[{endpointClass:`novita-native`,hosts:[`api.novita.ai`]}],providers:[{id:`novita`,aliases:[`novita-ai`,`novitaai`],name:`NovitaAI`,docs:`/providers/novita`,categories:[`cloud`,`llm`],envVars:[`NOVITA_API_KEY`],authChoices:[{method:`api-key`,choiceId:`novita-api-key`,choiceLabel:`NovitaAI API key`,choiceHint:`OpenAI-compatible NovitaAI endpoint`,groupId:`novita`,groupLabel:`NovitaAI`,groupHint:`OpenAI-compatible NovitaAI endpoint`,optionKey:`novitaApiKey`,cliFlag:`--novita-api-key`,cliOption:`--novita-api-key <key>`,cliDescription:`NovitaAI API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/novita-provider`,npmSpec:`@openclaw/novita-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/opencode-provider`,description:`OpenClaw OpenCode Zen provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`opencode`,label:`OpenCode Zen`},providerEndpoints:[{endpointClass:`opencode-native`,baseUrls:[`https://opencode.ai/zen`,`https://opencode.ai/zen/v1`,`https://opencode.ai/inference/openai/v1`,`https://opencode.ai/inference/anthropic/v1`,`https://opencode.ai/inference/google/v1beta`]}],providers:[{id:`opencode`,name:`OpenCode Zen`,docs:`/providers/opencode`,categories:[`cloud`,`llm`],envVars:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`opencode-zen`,choiceLabel:`OpenCode Zen catalog`,groupId:`opencode`,groupLabel:`OpenCode`,groupHint:`Shared API key for Zen + Go catalogs`,optionKey:`opencodeZenApiKey`,cliFlag:`--opencode-zen-api-key`,cliOption:`--opencode-zen-api-key <key>`,cliDescription:`OpenCode API key (Zen catalog)`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`opencode`]},install:{clawhubSpec:`clawhub:@openclaw/opencode-provider`,npmSpec:`@openclaw/opencode-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/groq-provider`,description:`OpenClaw Groq media-understanding provider.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`groq`,label:`Groq`},providerEndpoints:[{endpointClass:`groq-native`,hosts:[`api.groq.com`]}],providers:[{id:`groq`,name:`Groq`,docs:`/providers/groq`,categories:[`cloud`,`llm`],envVars:[`GROQ_API_KEY`],authChoices:[{method:`api-key`,choiceId:`groq-api-key`,choiceLabel:`Groq API key`,groupId:`groq`,groupLabel:`Groq`,groupHint:`Fast OpenAI-compatible inference`,optionKey:`groqApiKey`,cliFlag:`--groq-api-key`,cliOption:`--groq-api-key <key>`,cliDescription:`Groq API key`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`groq`]},install:{clawhubSpec:`clawhub:@openclaw/groq-provider`,npmSpec:`@openclaw/groq-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/kilocode-provider`,description:`OpenClaw Kilo Gateway provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`kilocode`,label:`Kilo Gateway`},providers:[{id:`kilocode`,name:`Kilo Gateway`,docs:`/providers/kilocode`,categories:[`cloud`,`llm`],envVars:[`KILOCODE_API_KEY`],authChoices:[{method:`api-key`,choiceId:`kilocode-api-key`,choiceLabel:`Kilo Gateway API key`,choiceHint:`API key (OpenRouter-compatible)`,groupId:`kilocode`,groupLabel:`Kilo Gateway`,groupHint:`API key (OpenRouter-compatible)`,optionKey:`kilocodeApiKey`,cliFlag:`--kilocode-api-key`,cliOption:`--kilocode-api-key <key>`,cliDescription:`Kilo Gateway API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/kilocode-provider`,npmSpec:`@openclaw/kilocode-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/kimi-provider`,description:`OpenClaw Kimi provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`kimi`,label:`Kimi Coding`},providers:[{id:`kimi`,aliases:[`kimi-coding`],name:`Kimi Coding`,docs:`/providers/moonshot`,categories:[`cloud`,`llm`],envVars:[`KIMI_API_KEY`,`KIMICODE_API_KEY`],authChoices:[{method:`api-key`,choiceId:`kimi-code-api-key`,choiceLabel:`Kimi Code API key (subscription)`,groupId:`moonshot`,groupLabel:`Moonshot AI (Kimi K2.6)`,groupHint:`Kimi K2.6`,optionKey:`kimiCodeApiKey`,cliFlag:`--kimi-code-api-key`,cliOption:`--kimi-code-api-key <key>`,cliDescription:`Kimi Code API key (subscription)`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/kimi-provider`,npmSpec:`@openclaw/kimi-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/opencode-go-provider`,description:`OpenClaw OpenCode Go provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`opencode-go`,label:`OpenCode Go`},providerEndpoints:[{endpointClass:`opencode-go-native`,baseUrls:[`https://opencode.ai/zen/go`,`https://opencode.ai/zen/go/v1`,`https://opencode.ai/inference/go/openai/v1`,`https://opencode.ai/inference/go/anthropic`,`https://opencode.ai/inference/go/anthropic/v1`,`https://opencode.ai/inference/go/google/v1beta`]}],providers:[{id:`opencode-go`,name:`OpenCode Go`,docs:`/providers/opencode-go`,categories:[`cloud`,`llm`],envVars:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`opencode-go`,choiceLabel:`OpenCode Go catalog`,groupId:`opencode`,groupLabel:`OpenCode`,groupHint:`Shared API key for Zen + Go catalogs`,optionKey:`opencodeGoApiKey`,cliFlag:`--opencode-go-api-key`,cliOption:`--opencode-go-api-key <key>`,cliDescription:`OpenCode API key (Go catalog)`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`opencode-go`]},install:{clawhubSpec:`clawhub:@openclaw/opencode-go-provider`,npmSpec:`@openclaw/opencode-go-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/parallel-plugin`,description:`OpenClaw Parallel web search plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`parallel`,label:`Parallel`},providerEndpoints:[{endpointClass:`parallel-native`,hosts:[`api.parallel.ai`]}],contracts:{webSearchProviders:[`parallel`,`parallel-free`]},webSearchProviders:[{id:`parallel`,label:`Parallel Search`,hint:`LLM-optimized dense excerpts from web sources`,onboardingScopes:[`text-inference`],credentialLabel:`Parallel API key`,envVars:[`PARALLEL_API_KEY`],placeholder:`par-...`,signupUrl:`https://platform.parallel.ai`,docsUrl:`https://docs.openclaw.ai/tools/parallel-search`,credentialPath:`plugins.entries.parallel.config.webSearch.apiKey`,autoDetectOrder:75},{id:`parallel-free`,label:`Parallel Search (Free)`,hint:`Free web search via Parallel's hosted Search MCP — no API key required`,onboardingScopes:[`text-inference`],requiresCredential:!1,envVars:[],placeholder:`(no key needed)`,signupUrl:`https://parallel.ai`,docsUrl:`https://docs.openclaw.ai/tools/parallel-search`,credentialPath:``}],install:{clawhubSpec:`clawhub:@openclaw/parallel-plugin`,npmSpec:`@openclaw/parallel-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/pixverse-provider`,description:`OpenClaw PixVerse video provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`pixverse`,label:`PixVerse`},providers:[{id:`pixverse`,name:`PixVerse`,docs:`/providers/pixverse`,categories:[`cloud`,`video`],authChoices:[{method:`api-key`,choiceId:`pixverse-api-key`,choiceLabel:`PixVerse API key`,choiceHint:`Wizard prompts for International or CN endpoint.`,groupId:`pixverse`,groupLabel:`PixVerse`,groupHint:`Video generation`,optionKey:`pixverseApiKey`,cliFlag:`--pixverse-api-key`,cliOption:`--pixverse-api-key <key>`,cliDescription:`PixVerse API key`,onboardingScopes:[`image-generation`]}]}],install:{clawhubSpec:`clawhub:@openclaw/pixverse-provider`,npmSpec:`@openclaw/pixverse-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.5.26`}}},{name:`@openclaw/particle-provider`,description:`OpenClaw Particle provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`particle`,label:`Particle`},providerEndpoints:[{endpointClass:`particle-native`,hosts:[`api.particle.ai`]}],providers:[{id:`particle`,name:`Particle`,docs:`/providers/particle`,categories:[`cloud`,`llm`],envVars:[`PARTICLE_API_KEY`],authChoices:[{method:`api-key`,choiceId:`particle-api-key`,appGuidedSecret:!0,choiceLabel:`Particle API key`,groupId:`particle`,groupLabel:`Particle`,groupHint:`API key`,optionKey:`particleApiKey`,cliFlag:`--particle-api-key`,cliOption:`--particle-api-key <key>`,cliDescription:`Particle API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/particle-provider`,npmSpec:`@openclaw/particle-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.10.8`}}},{name:`@openclaw/qianfan-provider`,description:`OpenClaw Qianfan provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`qianfan`,label:`Qianfan`},providers:[{id:`qianfan`,name:`Qianfan`,docs:`/providers/qianfan`,categories:[`cloud`,`llm`],envVars:[`QIANFAN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`qianfan-api-key`,choiceLabel:`Qianfan API key`,groupId:`qianfan`,groupLabel:`Qianfan`,groupHint:`API key`,optionKey:`qianfanApiKey`,cliFlag:`--qianfan-api-key`,cliOption:`--qianfan-api-key <key>`,cliDescription:`QIANFAN API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/qianfan-provider`,npmSpec:`@openclaw/qianfan-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/qwen-provider`,description:`OpenClaw Qwen Cloud provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`qwen`,label:`Qwen Cloud`},providerEndpoints:[{endpointClass:`modelstudio-native`,baseUrls:[`https://coding-intl.dashscope.aliyuncs.com/v1`,`https://coding.dashscope.aliyuncs.com/v1`,`https://dashscope.aliyuncs.com/compatible-mode/v1`,`https://dashscope-intl.aliyuncs.com/compatible-mode/v1`,`https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1`,`https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1`]}],providers:[{id:`qwen`,aliases:[`qwencloud`,`modelstudio`,`dashscope`],name:`Qwen Cloud`,docs:`/providers/qwen`,categories:[`cloud`,`llm`],envVars:[`QWEN_API_KEY`,`MODELSTUDIO_API_KEY`,`DASHSCOPE_API_KEY`],authChoices:[{method:`standard-api-key-cn`,choiceId:`qwen-standard-api-key-cn`,deprecatedChoiceIds:[`modelstudio-standard-api-key-cn`],choiceLabel:`Standard API Key for China (pay-as-you-go)`,choiceHint:`Endpoint: dashscope.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan (CN / Global) + multimodal roadmap`,optionKey:`modelstudioStandardApiKeyCn`,cliFlag:`--modelstudio-standard-api-key-cn`,cliOption:`--modelstudio-standard-api-key-cn <key>`,cliDescription:`Qwen Cloud standard API key (China)`,onboardingScopes:[`text-inference`]},{method:`standard-api-key`,choiceId:`qwen-standard-api-key`,deprecatedChoiceIds:[`modelstudio-standard-api-key`],choiceLabel:`Standard API Key for Global/Intl (pay-as-you-go)`,choiceHint:`Endpoint: dashscope-intl.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan (CN / Global) + multimodal roadmap`,optionKey:`modelstudioStandardApiKey`,cliFlag:`--modelstudio-standard-api-key`,cliOption:`--modelstudio-standard-api-key <key>`,cliDescription:`Qwen Cloud standard API key (Global/Intl)`,onboardingScopes:[`text-inference`]},{method:`api-key-cn`,choiceId:`qwen-api-key-cn`,deprecatedChoiceIds:[`modelstudio-api-key-cn`],choiceLabel:`Coding Plan API Key for China (subscription)`,choiceHint:`Endpoint: coding.dashscope.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan (CN / Global) + multimodal roadmap`,optionKey:`modelstudioApiKeyCn`,cliFlag:`--modelstudio-api-key-cn`,cliOption:`--modelstudio-api-key-cn <key>`,cliDescription:`Qwen Cloud Coding Plan API key (China)`,onboardingScopes:[`text-inference`]},{method:`api-key`,choiceId:`qwen-api-key`,deprecatedChoiceIds:[`modelstudio-api-key`],choiceLabel:`Coding Plan API Key for Global/Intl (subscription)`,choiceHint:`Endpoint: coding-intl.dashscope.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan (CN / Global) + multimodal roadmap`,optionKey:`modelstudioApiKey`,cliFlag:`--modelstudio-api-key`,cliOption:`--modelstudio-api-key <key>`,cliDescription:`Qwen Cloud Coding Plan API key (Global/Intl)`,onboardingScopes:[`text-inference`]}]},{id:`qwen-token-plan`,name:`Qwen Token Plan`,docs:`/providers/qwen`,categories:[`cloud`,`llm`],envVars:[`QWEN_TOKEN_PLAN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`qwen-token-plan`,choiceLabel:`Qwen Token Plan (Global/Intl)`,choiceHint:`Endpoint: token-plan.ap-southeast-1.maas.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan / Token Plan`,optionKey:`qwenTokenPlanApiKey`,cliFlag:`--qwen-token-plan-api-key`,cliOption:`--qwen-token-plan-api-key <key>`,cliDescription:`Qwen Token Plan API key (Global/Intl)`,onboardingScopes:[`text-inference`]},{method:`api-key-cn`,choiceId:`qwen-token-plan-cn`,choiceLabel:`Qwen Token Plan (China)`,choiceHint:`Endpoint: token-plan.cn-beijing.maas.aliyuncs.com`,groupId:`qwen`,groupLabel:`Qwen Cloud`,groupHint:`Standard / Coding Plan / Token Plan`,optionKey:`qwenTokenPlanApiKeyCn`,cliFlag:`--qwen-token-plan-api-key-cn`,cliOption:`--qwen-token-plan-api-key-cn <key>`,cliDescription:`Qwen Token Plan API key (China)`,onboardingScopes:[`text-inference`]}]},{id:`bailian-token-plan`,name:`Alibaba Token Plan (legacy custom config)`,docs:`/providers/qwen`,categories:[`cloud`,`llm`]}],contracts:{mediaUnderstandingProviders:[`qwen`],videoGenerationProviders:[`qwen`]},install:{clawhubSpec:`clawhub:@openclaw/qwen-provider`,npmSpec:`@openclaw/qwen-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/radius-provider`,description:`OpenClaw Radius model gateway provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`radius`,label:`Radius`},providers:[{id:`radius`,name:`Radius`,docs:`/providers/radius`,categories:[`cloud`,`llm`],envVars:[`RADIUS_API_KEY`],authChoices:[{method:`oauth`,choiceId:`radius`,choiceLabel:`Radius (browser sign-in)`,groupId:`radius`,groupLabel:`Radius`,groupHint:`Browser sign-in or API key`,onboardingScopes:[`text-inference`]},{method:`api-key`,choiceId:`radius-api-key`,choiceLabel:`Radius API key`,groupId:`radius`,groupLabel:`Radius`,groupHint:`Browser sign-in or API key`,optionKey:`radiusApiKey`,cliFlag:`--radius-api-key`,cliOption:`--radius-api-key <key>`,cliDescription:`Radius organization API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/radius-provider`,npmSpec:`@openclaw/radius-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.9.4`}}},{name:`@openclaw/fireworks-provider`,description:`OpenClaw Fireworks provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`fireworks`,label:`Fireworks`},providers:[{id:`fireworks`,aliases:[`fireworks-ai`],name:`Fireworks`,docs:`/providers/fireworks`,categories:[`cloud`,`llm`],envVars:[`FIREWORKS_API_KEY`],authChoices:[{method:`api-key`,choiceId:`fireworks-api-key`,choiceLabel:`Fireworks API key`,choiceHint:`API key`,groupId:`fireworks`,groupLabel:`Fireworks`,groupHint:`API key`,optionKey:`fireworksApiKey`,cliFlag:`--fireworks-api-key`,cliOption:`--fireworks-api-key <key>`,cliDescription:`Fireworks API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/fireworks-provider`,npmSpec:`@openclaw/fireworks-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@openclaw/moonshot-provider`,description:`OpenClaw Moonshot provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`moonshot`,label:`Moonshot`},providerEndpoints:[{endpointClass:`moonshot-native`,baseUrls:[`https://api.moonshot.ai/v1`,`https://api.moonshot.cn/v1`]}],providers:[{id:`moonshot`,aliases:[`moonshotai`,`moonshot-ai`],name:`Moonshot`,docs:`/providers/moonshot`,categories:[`cloud`,`llm`],envVars:[`MOONSHOT_API_KEY`,`KIMI_API_KEY`],authChoices:[{method:`api-key`,choiceId:`moonshot-api-key`,choiceLabel:`Moonshot API key (.ai)`,choiceHint:`Kimi K2.6 + Kimi`,groupId:`moonshot`,groupLabel:`Moonshot AI (Kimi K2.6)`,groupHint:`Kimi K2.6`,optionKey:`moonshotApiKey`,cliFlag:`--moonshot-api-key`,cliOption:`--moonshot-api-key <key>`,cliDescription:`Moonshot API key`,onboardingScopes:[`text-inference`]},{method:`api-key-cn`,choiceId:`moonshot-api-key-cn`,choiceLabel:`Moonshot API key (.cn)`,choiceHint:`Kimi K2.6 + Kimi`,groupId:`moonshot`,groupLabel:`Moonshot AI (Kimi K2.6)`,groupHint:`Kimi K2.6`,optionKey:`moonshotApiKey`,cliFlag:`--moonshot-api-key`,cliOption:`--moonshot-api-key <key>`,cliDescription:`Moonshot API key`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`moonshot`],webSearchProviders:[`kimi`]},webSearchProviders:[{id:`kimi`,label:`Kimi (Moonshot)`,hint:`Requires Moonshot / Kimi API key · Moonshot web search`,onboardingScopes:[`text-inference`],credentialLabel:`Moonshot / Kimi API key`,envVars:[`KIMI_API_KEY`,`MOONSHOT_API_KEY`],placeholder:`sk-...`,signupUrl:`https://platform.moonshot.cn/`,docsUrl:`https://docs.openclaw.ai/tools/web`,credentialPath:`plugins.entries.moonshot.config.webSearch.apiKey`,autoDetectOrder:40}],install:{clawhubSpec:`clawhub:@openclaw/moonshot-provider`,npmSpec:`@openclaw/moonshot-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@openclaw/tencent-provider`,description:`OpenClaw Tencent Cloud provider plugin (TokenHub + Token Plan)`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`tencent`,label:`Tencent Cloud`},providers:[{id:`tencent-tokenhub`,name:`Tencent TokenHub`,docs:`/providers/tencent`,categories:[`cloud`,`llm`],envVars:[`TOKENHUB_API_KEY`],authChoices:[{method:`api-key`,choiceId:`tokenhub-api-key`,choiceLabel:`Tencent TokenHub`,choiceHint:`Hy via Tencent TokenHub Gateway`,groupId:`tencent`,groupLabel:`Tencent Cloud`,groupHint:`Tencent TokenHub`,optionKey:`tokenhubApiKey`,cliFlag:`--tokenhub-api-key`,cliOption:`--tokenhub-api-key <key>`,cliDescription:`Tencent TokenHub API key`,onboardingScopes:[`text-inference`]}]},{id:`tencent-tokenplan`,name:`Tencent TokenPlan`,docs:`/providers/tencent`,categories:[`cloud`,`llm`],envVars:[`TOKENPLAN_API_KEY`],authChoices:[{method:`api-key`,choiceId:`tokenplan-api-key`,choiceLabel:`Tencent TokenPlan`,choiceHint:`Hy via Tencent TokenPlan Gateway`,groupId:`tencent`,groupLabel:`Tencent Cloud`,groupHint:`Tencent TokenPlan`,optionKey:`tokenplanApiKey`,cliFlag:`--tokenplan-api-key`,cliOption:`--tokenplan-api-key <key>`,cliDescription:`Tencent TokenPlan API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/tencent-provider`,npmSpec:`@openclaw/tencent-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@telnyx/openclaw-provider`,description:`Official Telnyx AI inference provider plugin for OpenClaw.`,source:`external`,kind:`provider`,openclaw:{plugin:{id:`telnyx`,label:`Telnyx`},providers:[{id:`telnyx`,name:`Telnyx`,docs:`/providers/telnyx`,categories:[`cloud`,`llm`],envVars:[`TELNYX_API_KEY`],authChoices:[{method:`api-key`,choiceId:`telnyx-api-key`,choiceLabel:`Telnyx API key`,choiceHint:`OpenAI-compatible Telnyx AI inference endpoint`,groupId:`telnyx`,groupLabel:`Telnyx`,groupHint:`OpenAI-compatible Telnyx AI inference endpoint`,optionKey:`telnyxApiKey`,cliFlag:`--telnyx-api-key`,cliOption:`--telnyx-api-key <key>`,cliDescription:`Telnyx API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@telnyx/openclaw-provider@0.2.0`,npmSpec:`@telnyx/openclaw-provider@0.2.0`,defaultChoice:`npm`,expectedIntegrity:`sha512-htqOJfPx+TlLWE/nmpdJJVgrg8zDqRIX87smzY3CnKcdJPlx51Rc1kWzarvE+2hvhpm2lzD5sKkxRSIWKz2AaA==`,minHostVersion:`>=2026.8.1`}}},{name:`@openclaw/venice-provider`,description:`OpenClaw Venice provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`venice`,label:`Venice`},providers:[{id:`venice`,name:`Venice`,docs:`/providers/venice`,categories:[`cloud`,`llm`],envVars:[`VENICE_API_KEY`],authChoices:[{method:`api-key`,choiceId:`venice-api-key`,choiceLabel:`Venice AI API key`,choiceHint:`Privacy-focused (uncensored models)`,groupId:`venice`,groupLabel:`Venice AI`,groupHint:`Privacy-focused (uncensored models)`,optionKey:`veniceApiKey`,cliFlag:`--venice-api-key`,cliOption:`--venice-api-key <key>`,cliDescription:`Venice API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/venice-provider`,npmSpec:`@openclaw/venice-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@openclaw/vercel-ai-gateway-provider`,description:`OpenClaw Vercel AI Gateway provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`vercel-ai-gateway`,label:`Vercel AI Gateway`},providerEndpoints:[{endpointClass:`vercel-ai-gateway`,hosts:[`ai-gateway.vercel.sh`]}],providers:[{id:`vercel-ai-gateway`,name:`Vercel AI Gateway`,docs:`/providers/vercel-ai-gateway`,categories:[`cloud`,`llm`],envVars:[`AI_GATEWAY_API_KEY`],authChoices:[{method:`api-key`,choiceId:`ai-gateway-api-key`,choiceLabel:`Vercel AI Gateway API key`,choiceHint:`API key`,groupId:`ai-gateway`,groupLabel:`Vercel AI Gateway`,groupHint:`API key`,optionKey:`aiGatewayApiKey`,cliFlag:`--ai-gateway-api-key`,cliOption:`--ai-gateway-api-key <key>`,cliDescription:`Vercel AI Gateway API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/vercel-ai-gateway-provider`,npmSpec:`@openclaw/vercel-ai-gateway-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@openclaw/vydra-provider`,description:`OpenClaw Vydra media provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`vydra`,label:`Vydra`},providers:[{id:`vydra`,name:`Vydra`,docs:`/providers/vydra`,categories:[`cloud`,`media`],envVars:[`VYDRA_API_KEY`],authChoices:[{method:`api-key`,choiceId:`vydra-api-key`,choiceLabel:`Vydra API key`,groupId:`vydra`,groupLabel:`Vydra`,groupHint:`Image, video, and speech`,optionKey:`vydraApiKey`,cliFlag:`--vydra-api-key`,cliOption:`--vydra-api-key <key>`,cliDescription:`Vydra API key`,onboardingScopes:[`image-generation`]}]}],contracts:{speechProviders:[`vydra`],imageGenerationProviders:[`vydra`],videoGenerationProviders:[`vydra`]},install:{clawhubSpec:`clawhub:@openclaw/vydra-provider`,npmSpec:`@openclaw/vydra-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/xiaomi-provider`,description:`OpenClaw Xiaomi provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`xiaomi`,label:`Xiaomi`},providerEndpoints:[{endpointClass:`xiaomi-native`,hosts:[`api.xiaomimimo.com`,`token-plan-ams.xiaomimimo.com`,`token-plan-cn.xiaomimimo.com`,`token-plan-sgp.xiaomimimo.com`]}],providers:[{id:`xiaomi`,name:`Xiaomi`,docs:`/providers/xiaomi`,categories:[`cloud`,`llm`],envVars:[`XIAOMI_API_KEY`],authChoices:[{method:`api-key`,choiceId:`xiaomi-api-key`,choiceLabel:`Xiaomi API key (Pay-as-you-go)`,choiceHint:`Endpoint: api.xiaomimimo.com/v1`,groupId:`xiaomi`,groupLabel:`Xiaomi`,groupHint:`Pay-as-you-go / Token Plan`,optionKey:`xiaomiApiKey`,cliFlag:`--xiaomi-api-key`,cliOption:`--xiaomi-api-key <key>`,cliDescription:`Xiaomi MiMo pay-as-you-go API key`,onboardingScopes:[`text-inference`]}]},{id:`xiaomi-token-plan`,name:`Xiaomi Token Plan`,docs:`/providers/xiaomi`,categories:[`cloud`,`llm`],envVars:[`XIAOMI_TOKEN_PLAN_API_KEY`],authChoices:[{method:`token-plan-ams`,choiceId:`xiaomi-token-plan-ams`,choiceLabel:`Xiaomi Token Plan (Europe)`,choiceHint:`Endpoint preset: token-plan-ams.xiaomimimo.com/v1`,groupId:`xiaomi`,groupLabel:`Xiaomi`,groupHint:`Pay-as-you-go / Token Plan`,optionKey:`xiaomiTokenPlanApiKey`,cliFlag:`--xiaomi-token-plan-api-key`,cliOption:`--xiaomi-token-plan-api-key <key>`,cliDescription:`Xiaomi MiMo Token Plan API key`,onboardingScopes:[`text-inference`]},{method:`token-plan-cn`,choiceId:`xiaomi-token-plan-cn`,choiceLabel:`Xiaomi Token Plan (China)`,choiceHint:`Endpoint preset: token-plan-cn.xiaomimimo.com/v1`,groupId:`xiaomi`,groupLabel:`Xiaomi`,groupHint:`Pay-as-you-go / Token Plan`,optionKey:`xiaomiTokenPlanApiKey`,cliFlag:`--xiaomi-token-plan-api-key`,cliOption:`--xiaomi-token-plan-api-key <key>`,cliDescription:`Xiaomi MiMo Token Plan API key`,onboardingScopes:[`text-inference`]},{method:`token-plan-sgp`,choiceId:`xiaomi-token-plan-sgp`,choiceLabel:`Xiaomi Token Plan (Singapore)`,choiceHint:`Endpoint preset: token-plan-sgp.xiaomimimo.com/v1`,groupId:`xiaomi`,groupLabel:`Xiaomi`,groupHint:`Pay-as-you-go / Token Plan`,optionKey:`xiaomiTokenPlanApiKey`,cliFlag:`--xiaomi-token-plan-api-key`,cliOption:`--xiaomi-token-plan-api-key <key>`,cliDescription:`Xiaomi MiMo Token Plan API key`,onboardingScopes:[`text-inference`]}]}],contracts:{speechProviders:[`xiaomi`],usageProviders:[`xiaomi`,`xiaomi-token-plan`]},install:{clawhubSpec:`clawhub:@openclaw/xiaomi-provider`,npmSpec:`@openclaw/xiaomi-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/zai-provider`,description:`OpenClaw Z.AI provider plugin`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`zai`,label:`Z.AI`},providerEndpoints:[{endpointClass:`zai-native`,hosts:[`api.z.ai`,`open.bigmodel.cn`]}],providers:[{id:`zai`,aliases:[`z-ai`,`z.ai`],name:`Z.AI`,docs:`/providers/zai`,categories:[`cloud`,`llm`],envVars:[`ZAI_API_KEY`,`Z_AI_API_KEY`],authChoices:[{method:`api-key`,choiceId:`zai-api-key`,choiceLabel:`Z.AI API key`,groupId:`zai`,groupLabel:`Z.AI`,groupHint:`GLM Coding Plan / Global / CN`,optionKey:`zaiApiKey`,cliFlag:`--zai-api-key`,cliOption:`--zai-api-key <key>`,cliDescription:`Z.AI API key`,onboardingScopes:[`text-inference`]},{method:`coding-global`,choiceId:`zai-coding-global`,choiceLabel:`Coding-Plan-Global`,choiceHint:`GLM Coding Plan Global (api.z.ai)`,groupId:`zai`,groupLabel:`Z.AI`,groupHint:`GLM Coding Plan / Global / CN`,optionKey:`zaiApiKey`,cliFlag:`--zai-api-key`,cliOption:`--zai-api-key <key>`,cliDescription:`Z.AI API key`,onboardingScopes:[`text-inference`]},{method:`coding-cn`,choiceId:`zai-coding-cn`,choiceLabel:`Coding-Plan-CN`,choiceHint:`GLM Coding Plan CN (open.bigmodel.cn)`,groupId:`zai`,groupLabel:`Z.AI`,groupHint:`GLM Coding Plan / Global / CN`,optionKey:`zaiApiKey`,cliFlag:`--zai-api-key`,cliOption:`--zai-api-key <key>`,cliDescription:`Z.AI API key`,onboardingScopes:[`text-inference`]},{method:`global`,choiceId:`zai-global`,choiceLabel:`Global`,choiceHint:`Z.AI Global (api.z.ai)`,groupId:`zai`,groupLabel:`Z.AI`,groupHint:`GLM Coding Plan / Global / CN`,optionKey:`zaiApiKey`,cliFlag:`--zai-api-key`,cliOption:`--zai-api-key <key>`,cliDescription:`Z.AI API key`,onboardingScopes:[`text-inference`]},{method:`cn`,choiceId:`zai-cn`,choiceLabel:`CN`,choiceHint:`Z.AI CN (open.bigmodel.cn)`,groupId:`zai`,groupLabel:`Z.AI`,groupHint:`GLM Coding Plan / Global / CN`,optionKey:`zaiApiKey`,cliFlag:`--zai-api-key`,cliOption:`--zai-api-key <key>`,cliDescription:`Z.AI API key`,onboardingScopes:[`text-inference`]}]}],contracts:{mediaUnderstandingProviders:[`zai`]},install:{clawhubSpec:`clawhub:@openclaw/zai-provider`,npmSpec:`@openclaw/zai-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}},{name:`@openclaw/synthetic-provider`,description:`OpenClaw Synthetic provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`synthetic`,label:`Synthetic`},providers:[{id:`synthetic`,name:`Synthetic`,docs:`/providers/synthetic`,categories:[`cloud`,`llm`],envVars:[`SYNTHETIC_API_KEY`],authChoices:[{method:`api-key`,choiceId:`synthetic-api-key`,choiceLabel:`Synthetic API key`,groupId:`synthetic`,groupLabel:`Synthetic`,groupHint:`Anthropic-compatible (multi-model)`,optionKey:`syntheticApiKey`,cliFlag:`--synthetic-api-key`,cliOption:`--synthetic-api-key <key>`,cliDescription:`Synthetic API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/synthetic-provider`,npmSpec:`@openclaw/synthetic-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/voyage-provider`,description:`OpenClaw Voyage embedding provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`voyage`,label:`Voyage`},providers:[{id:`voyage`,name:`Voyage`,docs:`/reference/memory-config`,categories:[`cloud`],envVars:[`VOYAGE_API_KEY`]}],contracts:{embeddingProviders:[`voyage`]},install:{clawhubSpec:`clawhub:@openclaw/voyage-provider`,npmSpec:`@openclaw/voyage-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/volcengine-provider`,description:`OpenClaw Volcengine provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`volcengine`,label:`Volcengine`},providers:[{id:`volcengine`,aliases:[`volcengine-plan`],name:`Volcengine`,docs:`/providers/volcengine`,categories:[`cloud`,`llm`],envVars:[`VOLCANO_ENGINE_API_KEY`],authChoices:[{method:`api-key`,choiceId:`volcengine-api-key`,choiceLabel:`Volcano Engine API key`,groupId:`volcengine`,groupLabel:`Volcano Engine`,groupHint:`API key`,optionKey:`volcengineApiKey`,cliFlag:`--volcengine-api-key`,cliOption:`--volcengine-api-key <key>`,cliDescription:`Volcano Engine API key`,onboardingScopes:[`text-inference`]}]},{id:`volcengine-plan`,name:`Volcengine Plan`,docs:`/providers/volcengine`,categories:[`cloud`,`llm`],envVars:[`VOLCANO_ENGINE_API_KEY`]}],contracts:{speechProviders:[`volcengine`]},install:{clawhubSpec:`clawhub:@openclaw/volcengine-provider`,npmSpec:`@openclaw/volcengine-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/stepfun-provider`,description:`OpenClaw StepFun provider plugin.`,source:`official`,kind:`provider`,openclaw:{plugin:{id:`stepfun`,label:`StepFun`},providers:[{id:`stepfun`,name:`StepFun`,docs:`/providers/stepfun`,categories:[`cloud`,`llm`],envVars:[`STEPFUN_API_KEY`],authChoices:[{method:`standard-api-key-cn`,choiceId:`stepfun-standard-api-key-cn`,choiceLabel:`StepFun Standard API key (China)`,choiceHint:`Endpoint: api.stepfun.com/v1`,groupId:`stepfun`,groupLabel:`StepFun`,groupHint:`Standard / Step Plan (China / Global)`,optionKey:`stepfunApiKey`,cliFlag:`--stepfun-api-key`,cliOption:`--stepfun-api-key <key>`,cliDescription:`StepFun API key`,onboardingScopes:[`text-inference`]},{method:`standard-api-key-intl`,choiceId:`stepfun-standard-api-key-intl`,choiceLabel:`StepFun Standard API key (Global/Intl)`,choiceHint:`Endpoint: api.stepfun.ai/v1`,groupId:`stepfun`,groupLabel:`StepFun`,groupHint:`Standard / Step Plan (China / Global)`,optionKey:`stepfunApiKey`,cliFlag:`--stepfun-api-key`,cliOption:`--stepfun-api-key <key>`,cliDescription:`StepFun API key`,onboardingScopes:[`text-inference`]}]},{id:`stepfun-plan`,name:`StepFun stepfun plan`,docs:`/providers/stepfun`,categories:[`cloud`,`llm`],envVars:[`STEPFUN_API_KEY`],authChoices:[{method:`plan-api-key-cn`,choiceId:`stepfun-plan-api-key-cn`,choiceLabel:`StepFun Step Plan API key (China)`,choiceHint:`Endpoint: api.stepfun.com/step_plan/v1`,groupId:`stepfun`,groupLabel:`StepFun`,groupHint:`Standard / Step Plan (China / Global)`,optionKey:`stepfunApiKey`,cliFlag:`--stepfun-api-key`,cliOption:`--stepfun-api-key <key>`,cliDescription:`StepFun API key`,onboardingScopes:[`text-inference`]},{method:`plan-api-key-intl`,choiceId:`stepfun-plan-api-key-intl`,choiceLabel:`StepFun Step Plan API key (Global/Intl)`,choiceHint:`Endpoint: api.stepfun.ai/step_plan/v1`,groupId:`stepfun`,groupLabel:`StepFun`,groupHint:`Standard / Step Plan (China / Global)`,optionKey:`stepfunApiKey`,cliFlag:`--stepfun-api-key`,cliOption:`--stepfun-api-key <key>`,cliDescription:`StepFun API key`,onboardingScopes:[`text-inference`]}]}],install:{clawhubSpec:`clawhub:@openclaw/stepfun-provider`,npmSpec:`@openclaw/stepfun-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`}}}]},{schemaVersion:1,id:`openclaw-official-external-plugins`,generatedAt:`2026-06-22T00:00:00.000Z`,sequence:1,description:`Bundled fallback feed for official external OpenClaw plugins.`,entries:[{name:`@openclaw/acpx`,description:`OpenClaw ACP runtime backend`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`acpx`,label:`ACPX Runtime`},install:{clawhubSpec:`clawhub:@openclaw/acpx`,npmSpec:`@openclaw/acpx`,defaultChoice:`npm`,minHostVersion:`>=2026.4.25`}}},{name:`@openclaw/brave-plugin`,description:`OpenClaw Brave plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`brave`,label:`Brave`},webSearchProviders:[{id:`brave`,label:`Brave Search`,hint:`Brave Search web results.`,onboardingScopes:[`text-inference`],credentialLabel:`Brave Search API key`,envVars:[`BRAVE_API_KEY`],placeholder:`BSA...`,signupUrl:`https://api-dashboard.search.brave.com/app/keys`,docsUrl:`https://docs.openclaw.ai/tools/brave-search`,credentialPath:`plugins.entries.brave.config.webSearch.apiKey`,autoDetectOrder:10}],install:{clawhubSpec:`clawhub:@openclaw/brave-plugin`,npmSpec:`@openclaw/brave-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/cloudflare`,description:`Cloudflare R2 storage for named OpenClaw storage locations.`,source:`official`,kind:`plugin`,openclaw:{build:{bundledDist:!0},plugin:{id:`cloudflare`,label:`Cloudflare`},contracts:{storageProviders:[`r2`]},install:{clawhubSpec:`clawhub:@openclaw/cloudflare`,npmSpec:`@openclaw/cloudflare`,defaultChoice:`npm`,minHostVersion:`>=2026.9.7`}}},{name:`@openclaw/codex`,description:`OpenClaw Codex app-server harness and native session catalog`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`codex`,label:`Codex`},contracts:{migrationProviders:[`codex`]},install:{clawhubSpec:`clawhub:@openclaw/codex`,npmSpec:`@openclaw/codex`,defaultChoice:`npm`,minHostVersion:`>=2026.5.1-beta.1`},setup:{nativeSessionCatalog:{label:`Codex`,legacyDefaultEnabled:!0,description:`Existing native Codex conversations on this Gateway and eligible paired nodes.`,nodeCommands:[`codex.appServer.threads.list.v1`,`codex.appServer.thread.turns.list.v1`,`codex.sessionCatalog.transcript.read.v1`,`codex.terminal.resume.v1`,`codex.cli.sessions.list`]}}}},{name:`@openclaw/copilot`,description:`OpenClaw GitHub Copilot agent runtime plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`copilot`,label:`GitHub Copilot agent runtime`},install:{clawhubSpec:`clawhub:@openclaw/copilot`,npmSpec:`@openclaw/copilot`,defaultChoice:`npm`,minHostVersion:`>=2026.5.28`}}},{name:`@openclaw/muse`,description:`OpenClaw Muse Code agent runtime plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`muse`,label:`Muse Code`},install:{clawhubSpec:`clawhub:@openclaw/muse`,npmSpec:`@openclaw/muse`,defaultChoice:`npm`,minHostVersion:`>=2026.10.3`}}},{name:`@openclaw/cua-computer`,description:`Experimental CUA Driver computer control for macOS, Windows, and Linux node hosts`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`cua-computer`,label:`CUA Computer`},install:{clawhubSpec:`clawhub:@openclaw/cua-computer`,npmSpec:`@openclaw/cua-computer`,defaultChoice:`clawhub`,minHostVersion:`>=2026.9.6`}}},{name:`@openclaw/diagnostics-otel`,description:`OpenClaw diagnostics OpenTelemetry exporter`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`diagnostics-otel`,label:`Diagnostics OpenTelemetry`},install:{clawhubSpec:`clawhub:@openclaw/diagnostics-otel`,npmSpec:`@openclaw/diagnostics-otel`,defaultChoice:`npm`,minHostVersion:`>=2026.4.25`}}},{name:`@openclaw/diagnostics-prometheus`,description:`OpenClaw diagnostics Prometheus exporter`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`diagnostics-prometheus`,label:`Diagnostics Prometheus`},install:{clawhubSpec:`clawhub:@openclaw/diagnostics-prometheus`,npmSpec:`@openclaw/diagnostics-prometheus`,defaultChoice:`npm`,minHostVersion:`>=2026.4.25`}}},{name:`@openclaw/diffs`,description:`OpenClaw diff viewer plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`diffs`,label:`Diffs`},catalog:{featured:!0,order:40},install:{clawhubSpec:`clawhub:@openclaw/diffs`,npmSpec:`@openclaw/diffs`,defaultChoice:`npm`,minHostVersion:`>=2026.4.30`}}},{name:`@openclaw/diffs-language-pack`,description:`OpenClaw diffs viewer syntax highlighting language pack`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`diffs-language-pack`,label:`Diff Viewer Language Pack`},install:{npmSpec:`@openclaw/diffs-language-pack`,clawhubSpec:`clawhub:@openclaw/diffs-language-pack`,defaultChoice:`npm`,minHostVersion:`>=2026.5.27`}}},{name:`@openclaw/duckduckgo-plugin`,description:`OpenClaw DuckDuckGo plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`duckduckgo`,label:`DuckDuckGo`},contracts:{webSearchProviders:[`duckduckgo`]},webSearchProviders:[{id:`duckduckgo`,label:`DuckDuckGo Search (experimental)`,hint:`Free web search fallback with no API key required`,onboardingScopes:[`text-inference`],requiresCredential:!1,envVars:[],placeholder:`(no key needed)`,signupUrl:`https://duckduckgo.com/`,docsUrl:`https://docs.openclaw.ai/tools/duckduckgo-search`,credentialPath:``,autoDetectOrder:100}],install:{clawhubSpec:`clawhub:@openclaw/duckduckgo-plugin`,npmSpec:`@openclaw/duckduckgo-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/exa-plugin`,description:`OpenClaw Exa plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`exa`,label:`Exa`},contracts:{webSearchProviders:[`exa`]},webSearchProviders:[{id:`exa`,label:`Exa Search`,hint:`Neural + keyword search with date filters and content extraction`,onboardingScopes:[`text-inference`],credentialLabel:`Exa API key`,envVars:[`EXA_API_KEY`],placeholder:`exa-...`,signupUrl:`https://exa.ai/`,docsUrl:`https://docs.openclaw.ai/tools/web`,credentialPath:`plugins.entries.exa.config.webSearch.apiKey`,autoDetectOrder:65}],install:{clawhubSpec:`clawhub:@openclaw/exa-plugin`,npmSpec:`@openclaw/exa-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/facetime`,description:`Experimental OpenClaw FaceTime realtime voice carrier`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`facetime`,label:`FaceTime`},contracts:{tools:[`facetime_call`]},install:{clawhubSpec:`clawhub:@openclaw/facetime`,npmSpec:`@openclaw/facetime`,defaultChoice:`npm`,minHostVersion:`>=2026.9.4`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/firecrawl-plugin`,description:`OpenClaw Firecrawl plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`firecrawl`,label:`Firecrawl`},contracts:{webFetchProviders:[`firecrawl`],webSearchProviders:[`firecrawl`,`firecrawl-free`],tools:[`firecrawl_search`,`firecrawl_scrape`]},webSearchProviders:[{id:`firecrawl`,label:`Firecrawl Search`,hint:`Structured results with optional result scraping`,onboardingScopes:[`text-inference`],credentialLabel:`Firecrawl API key`,envVars:[`FIRECRAWL_API_KEY`],placeholder:`fc-...`,signupUrl:`https://www.firecrawl.dev/`,docsUrl:`https://docs.openclaw.ai/tools/firecrawl`,credentialPath:`plugins.entries.firecrawl.config.webSearch.apiKey`,autoDetectOrder:60},{id:`firecrawl-free`,label:`Firecrawl Search (Free)`,hint:`Free web search via Firecrawl's hosted starter tier — no API key required`,onboardingScopes:[`text-inference`],requiresCredential:!1,envVars:[],placeholder:`(no key needed)`,signupUrl:`https://www.firecrawl.dev/`,docsUrl:`https://docs.openclaw.ai/tools/firecrawl`,credentialPath:``}],install:{clawhubSpec:`clawhub:@openclaw/firecrawl-plugin`,npmSpec:`@openclaw/firecrawl-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/fish-audio-speech`,description:`OpenClaw Fish Audio speech plugin.`,source:`official`,kind:`plugin`,openclaw:{legacyPluginIds:[`fish-audio`],plugin:{id:`fish-audio-speech`,label:`Fish Audio Speech`},install:{clawhubSpec:`clawhub:@openclaw/fish-audio-speech`,npmSpec:`@openclaw/fish-audio-speech`,defaultChoice:`npm`,minHostVersion:`>=2026.7.2`}}},{name:`@openclaw/google-meet`,description:`OpenClaw Google Meet participant plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`google-meet`,label:`Google Meet`},install:{clawhubSpec:`clawhub:@openclaw/google-meet`,npmSpec:`@openclaw/google-meet`,defaultChoice:`npm`,minHostVersion:`>=2026.4.20`}}},{name:`@openclaw/gradium-speech`,description:`OpenClaw Gradium speech plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`gradium`,label:`Gradium`},contracts:{speechProviders:[`gradium`]},install:{clawhubSpec:`clawhub:@openclaw/gradium-speech`,npmSpec:`@openclaw/gradium-speech`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/inworld-speech`,description:`OpenClaw Inworld speech plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`inworld`,label:`Inworld`},contracts:{speechProviders:[`inworld`]},install:{clawhubSpec:`clawhub:@openclaw/inworld-speech`,npmSpec:`@openclaw/inworld-speech`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/levanto`,description:`OpenClaw Levanto Sage native decision provider`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`levanto`,label:`Levanto Sage`},install:{clawhubSpec:`clawhub:@openclaw/levanto`,npmSpec:`@openclaw/levanto`,defaultChoice:`npm`,minHostVersion:`>=2026.9.6`}}},{name:`@openclaw/lobster`,description:`Lobster workflow tool plugin (typed pipelines + resumable approvals)`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`lobster`,label:`Lobster`},catalog:{featured:!0,order:50},install:{clawhubSpec:`clawhub:@openclaw/lobster`,npmSpec:`@openclaw/lobster`,defaultChoice:`npm`,minHostVersion:`>=2026.4.25`}}},{name:`@openclaw/memory-lancedb`,description:`OpenClaw LanceDB-backed long-term memory plugin with auto-recall/capture`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`memory-lancedb`,label:`Memory LanceDB`},catalog:{featured:!0,order:70},install:{clawhubSpec:`clawhub:@openclaw/memory-lancedb`,npmSpec:`@openclaw/memory-lancedb`,defaultChoice:`npm`,minHostVersion:`>=2026.5.31`}}},{name:`@openclaw/llama-cpp-provider`,description:`OpenClaw managed llama.cpp server provider plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`llama-cpp`,label:`llama.cpp Provider`},contracts:{embeddingProviders:[`local`]},install:{clawhubSpec:`clawhub:@openclaw/llama-cpp-provider`,npmSpec:`@openclaw/llama-cpp-provider`,defaultChoice:`npm`,minHostVersion:`>=2026.6.2`}}},{name:`@openclaw/mxc-sandbox`,description:`OpenClaw MXC sandbox execution plugin for MXC-capable hosts`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`mxc`,label:`MXC Sandbox Execution`},install:{clawhubSpec:`clawhub:@openclaw/mxc-sandbox`,npmSpec:`@openclaw/mxc-sandbox`,defaultChoice:`npm`,minHostVersion:`>=2026.6.11`}}},{name:`@openclaw/onnx`,description:`Local ONNX decision models for OpenClaw`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`onnx`,label:`ONNX`},install:{clawhubSpec:`clawhub:@openclaw/onnx`,npmSpec:`@openclaw/onnx`,defaultChoice:`npm`,minHostVersion:`>=2026.9.6`}}},{name:`@openclaw/openshell-sandbox`,description:`OpenClaw OpenShell sandbox backend`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`openshell`,label:`OpenShell Sandbox`},install:{clawhubSpec:`clawhub:@openclaw/openshell-sandbox`,npmSpec:`@openclaw/openshell-sandbox`,defaultChoice:`npm`,minHostVersion:`>=2026.5.12-beta.1`}}},{name:`@openclaw/parallel-plugin`,description:`OpenClaw Parallel web search plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`parallel`,label:`Parallel`},contracts:{webSearchProviders:[`parallel`,`parallel-free`]},webSearchProviders:[{id:`parallel`,label:`Parallel Search`,hint:`LLM-optimized dense excerpts from web sources`,onboardingScopes:[`text-inference`],credentialLabel:`Parallel API key`,envVars:[`PARALLEL_API_KEY`],placeholder:`par-...`,signupUrl:`https://platform.parallel.ai`,docsUrl:`https://docs.openclaw.ai/tools/parallel-search`,credentialPath:`plugins.entries.parallel.config.webSearch.apiKey`,autoDetectOrder:75},{id:`parallel-free`,label:`Parallel Search (Free)`,hint:`Free web search via Parallel's hosted Search MCP — no API key required`,onboardingScopes:[`text-inference`],requiresCredential:!1,envVars:[],placeholder:`(no key needed)`,signupUrl:`https://parallel.ai`,docsUrl:`https://docs.openclaw.ai/tools/parallel-search`,credentialPath:``}],install:{clawhubSpec:`clawhub:@openclaw/parallel-plugin`,npmSpec:`@openclaw/parallel-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/perplexity-plugin`,description:`OpenClaw Perplexity plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`perplexity`,label:`Perplexity`},providers:[{id:`perplexity-decisions`,name:`Perplexity Decisions`,docs:`/providers/perplexity-provider`,categories:[`cloud`,`llm`],envVars:[`PERPLEXITY_API_KEY`]}],contracts:{webSearchProviders:[`perplexity`],decisionProviders:[`perplexity-decisions`]},webSearchProviders:[{id:`perplexity`,label:`Perplexity Search`,hint:`Requires Perplexity API key or OpenRouter API key · structured results`,onboardingScopes:[`text-inference`],credentialLabel:`Perplexity API key`,envVars:[`PERPLEXITY_API_KEY`,`OPENROUTER_API_KEY`],placeholder:`pplx-...`,signupUrl:`https://www.perplexity.ai/settings/api`,docsUrl:`https://docs.openclaw.ai/perplexity`,credentialPath:`plugins.entries.perplexity.config.webSearch.apiKey`,autoDetectOrder:50}],install:{clawhubSpec:`clawhub:@openclaw/perplexity-plugin`,npmSpec:`@openclaw/perplexity-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.8`}}},{name:`@openclaw/searxng-plugin`,description:`OpenClaw SearXNG plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`searxng`,label:`SearXNG`},contracts:{webSearchProviders:[`searxng`]},webSearchProviders:[{id:`searxng`,label:`SearXNG Search`,hint:`Self-hosted meta-search with no API key required`,onboardingScopes:[`text-inference`],requiresCredential:!0,credentialLabel:`SearXNG Base URL`,envVars:[`SEARXNG_BASE_URL`],placeholder:`http://localhost:8080`,signupUrl:`https://docs.searxng.org/`,docsUrl:`https://docs.openclaw.ai/tools/searxng-search`,credentialPath:`plugins.entries.searxng.config.webSearch.baseUrl`,autoDetectOrder:200}],install:{clawhubSpec:`clawhub:@openclaw/searxng-plugin`,npmSpec:`@openclaw/searxng-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/slack-huddles`,description:`OpenClaw Slack huddle browser meeting participant plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`slack-huddles`,label:`Slack huddles`},contracts:{tools:[`slack_huddles`],transcriptSourceProviders:[`slack-huddle`]},install:{clawhubSpec:`clawhub:@openclaw/slack-huddles`,npmSpec:`@openclaw/slack-huddles`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`}}},{name:`@openclaw/subq`,description:`OpenClaw SubQ Snap decision provider`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`subq`,label:`SubQ`},install:{clawhubSpec:`clawhub:@openclaw/subq`,npmSpec:`@openclaw/subq`,defaultChoice:`npm`,minHostVersion:`>=2026.10.3`}}},{name:`@openclaw/tavily-plugin`,description:`OpenClaw Tavily plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`tavily`,label:`Tavily`},contracts:{webSearchProviders:[`tavily`],tools:[`tavily_search`,`tavily_extract`]},webSearchProviders:[{id:`tavily`,label:`Tavily Search`,hint:`Structured results with domain filters and AI answer summaries`,onboardingScopes:[`text-inference`],credentialLabel:`Tavily API key`,envVars:[`TAVILY_API_KEY`],placeholder:`tvly-...`,signupUrl:`https://tavily.com/`,docsUrl:`https://docs.openclaw.ai/tools/tavily`,credentialPath:`plugins.entries.tavily.config.webSearch.apiKey`,autoDetectOrder:70}],install:{clawhubSpec:`clawhub:@openclaw/tavily-plugin`,npmSpec:`@openclaw/tavily-plugin`,defaultChoice:`npm`,minHostVersion:`>=2026.6.9`,allowInvalidConfigRecovery:!0}}},{name:`@openclaw/team-reports`,description:`OpenClaw team activity reports plugin (GitHub org + Discord activity with model summaries)`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`team-reports`,label:`Team Reports`},install:{clawhubSpec:`clawhub:@openclaw/team-reports`,npmSpec:`@openclaw/team-reports`,defaultChoice:`npm`,minHostVersion:`>=2026.9.2`}}},{name:`@openclaw/teams-meetings`,description:`OpenClaw Microsoft Teams browser meeting participant plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`teams-meetings`,label:`Microsoft Teams meetings`},contracts:{tools:[`teams_meetings`],transcriptSourceProviders:[`teams`]},install:{clawhubSpec:`clawhub:@openclaw/teams-meetings`,npmSpec:`@openclaw/teams-meetings`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`}}},{name:`@openclaw/tokenjuice`,description:`OpenClaw tokenjuice exec output compaction plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`tokenjuice`,label:`Tokenjuice`},catalog:{featured:!0,order:60},install:{clawhubSpec:`clawhub:@openclaw/tokenjuice`,npmSpec:`@openclaw/tokenjuice`,defaultChoice:`npm`,minHostVersion:`>=2026.5.28`}}},{name:`@openclaw/typesafe`,description:`OpenClaw TypeSafe typed decisions and optional evaluation tool`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`typesafe`,label:`TypeSafe AI`},install:{clawhubSpec:`clawhub:@openclaw/typesafe`,npmSpec:`@openclaw/typesafe`,defaultChoice:`npm`,minHostVersion:`>=2026.9.6`}}},{name:`@openclaw/voice-call`,description:`OpenClaw voice-call plugin`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`voice-call`,label:`Voice Call`},install:{clawhubSpec:`clawhub:@openclaw/voice-call`,npmSpec:`@openclaw/voice-call`,defaultChoice:`npm`,minHostVersion:`>=2026.4.10`}}},{name:`@openclaw/zoom-meetings`,description:`OpenClaw Zoom browser meeting participant plugin.`,source:`official`,kind:`plugin`,openclaw:{plugin:{id:`zoom-meetings`,label:`Zoom meetings`},contracts:{tools:[`zoom_meetings`],transcriptSourceProviders:[`zoom`]},install:{clawhubSpec:`clawhub:@openclaw/zoom-meetings`,npmSpec:`@openclaw/zoom-meetings`,defaultChoice:`npm`,minHostVersion:`>=2026.9.8`}}}]}].flatMap(e=>e.entries.filter(e=>r(e))),O.join(`dist`,`channel-catalog.json`);const gt=[{channelId:`a2a`,order:75,label:`A2A`},{channelId:`buzz`,order:56,label:`Buzz`},{channelId:`clickclack`,order:85,label:`ClickClack`},{channelId:`discord`,label:`Discord`},{channelId:`feishu`,aliases:[`lark`],order:35,label:`Feishu`},{channelId:`googlechat`,aliases:[`gchat`,`google-chat`],order:55,label:`Google Chat`},{channelId:`imessage`,aliases:[`imsg`],label:`iMessage`},{channelId:`irc`,aliases:[`internet-relay-chat`],label:`IRC`},{channelId:`line`,order:75,label:`LINE`},{channelId:`matrix`,order:70,label:`Matrix`},{channelId:`mattermost`,order:65,label:`Mattermost`},{channelId:`msteams`,aliases:[`teams`],order:60,label:`Microsoft Teams`},{channelId:`nextcloud-talk`,aliases:[`nc`,`nc-talk`],order:65,label:`Nextcloud Talk`},{channelId:`nostr`,order:55,label:`Nostr`},{channelId:`qa-channel`,order:999,configurable:!1,label:`QA Channel`},{channelId:`raft`,order:72,label:`Raft`},{channelId:`reef`,label:`Reef`},{channelId:`signal`,label:`Signal`},{channelId:`slack`,label:`Slack`},{channelId:`sms`,order:88,label:`SMS`},{channelId:`synology-chat`,order:90,label:`Synology Chat`},{channelId:`telegram`,label:`Telegram`},{channelId:`tlon`,order:90,label:`Tlon`},{channelId:`twitch`,aliases:[`twitch-chat`],label:`Twitch`},{channelId:`whatsapp`,label:`WhatsApp`},{channelId:`x`,order:85,label:`X (Twitter)`},{channelId:`zalo`,aliases:[`zl`],order:80,label:`Zalo`},{channelId:`zalouser`,aliases:[`zlu`],order:85,label:`Zalo Personal`}].filter(e=>e.configurable!==!1).map(e=>({id:n(e.channelId)??e.channelId,aliases:e.aliases??[],label:e.label?.trim()||void 0,order:e.order??2**53-1})).toSorted((e,t)=>e.order-t.order||e.id.localeCompare(t.id,`en`,{sensitivity:`base`}));new Set(gt.map(e=>e.id)),Object.freeze(gt.map(e=>e.id)),Object.fromEntries(gt.flatMap(e=>e.aliases.map(t=>[t,e.id]))),Object.freeze({}),i(Symbol.for(`openclaw.bunRuntimeOnResolveProbe`),()=>({tested:!1,supported:!1})),i(Symbol.for(`openclaw.capturedModuleResolvers`),()=>({installed:!1,loaderInstalled:!1,resolving:!1,owners:/* @__PURE__ */ new Set}));const _t=i(Symbol.for(`openclaw.pluginMetadataSnapshotReaderCustody`),()=>({owners:0})),vt=[`adoptCurrentPluginMetadataSnapshotIfAbsent`,`getCurrentPluginMetadataSnapshot`,`resolvePluginMetadataSnapshot`,`loadPluginMetadataSnapshot`,`listOpenClawPluginManifestMetadata`,`listKnownProviderAuthEnvVarNamesCore`];i(Symbol.for(`openclaw.pluginMetadataSnapshotReaders`),()=>({}),e=>{if(!_t.owners)for(let t of vt)delete e[t]},`close-only`);const yt=/* @__PURE__ */ new Set([`auth_permanent`,`auth`,`session_expired`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`empty_response`,`no_error_details`,`unclassified`,`unknown`]),[bt,xt,St]=[[`blockedUntil`,`blockedReason`,`blockedSource`,`blockedModel`,`blockedScope`],[`cooldownUntil`,`cooldownReason`,`cooldownClassification`,`cooldownModel`],[`disabledUntil`,`disabledReason`]];Object.fromEntries([...bt,...xt,...St].map(e=>[e,void 0]));const Ct=/* @__PURE__ */ new Set([`wham_token_expired`,`wham_account_dead`]),wt=/* @__PURE__ */ new Set([`subscription_limit`]),Tt=/* @__PURE__ */ new Set([`codex_rate_limits`,`wham`]);function normalizeEnumValue(e,t){return te(e,t)?e:void 0}function normalizeFailureCounts(e){if(!r(e))return;let t={};for(let[n,r]of Object.entries(e)){let e=normalizeEnumValue(n,yt);e!==void 0&&e!==`rate_limit`&&(typeof r!=`number`||!Number.isFinite(r)||r<=0||(t[e]=Math.trunc(r)))}return Object.keys(t).length>0?t:void 0}function coerceProfileUsageStats(e){if(!r(e))return;let t=normalizeEnumValue(e.cooldownReason,yt),n=normalizeEnumValue(e.cooldownClassification,Ct),i={};function setStat(e,t){t!==void 0&&(i[e]=t)}return setStat(`lastUsed`,f(e.lastUsed)),setStat(`blockedUntil`,f(e.blockedUntil)),setStat(`blockedReason`,normalizeEnumValue(e.blockedReason,wt)),setStat(`blockedSource`,normalizeEnumValue(e.blockedSource,Tt)),setStat(`blockedModel`,o(e.blockedModel)),setStat(`blockedScope`,e.blockedScope===`model`?`model`:void 0),setStat(`cooldownUntil`,f(e.cooldownUntil)),setStat(`cooldownReason`,t),setStat(`cooldownClassification`,n===`wham_token_expired`&&t===`auth`||n===`wham_account_dead`&&t===`auth_permanent`?n:void 0),setStat(`cooldownModel`,o(e.cooldownModel)),setStat(`disabledUntil`,f(e.disabledUntil)),setStat(`disabledReason`,normalizeEnumValue(e.disabledReason,yt)),setStat(`errorCount`,f(e.errorCount)),setStat(`failureCounts`,normalizeFailureCounts(e.failureCounts)),setStat(`lastFailureAt`,f(e.lastFailureAt)),setStat(`lastRateLimitAt`,f(e.lastRateLimitAt)),setStat(`lastProbeAt`,f(e.lastProbeAt)),releaseRetiredRateLimitBackoff(i,e.failureCounts),Object.keys(i).length>0?i:void 0}function releaseRetiredRateLimitBackoff(e,t){let n=r(t)?f(t.rate_limit):void 0;n===void 0||n<=0||(e.lastRateLimitAt??=e.lastFailureAt??0,e.cooldownReason===`rate_limit`&&(delete e.cooldownUntil,delete e.cooldownReason,delete e.cooldownClassification,delete e.cooldownModel,delete e.errorCount))}function normalizeAuthProfileEntries(e,t,n){if(!r(e))return;let i={};for(let[r,a]of Object.entries(e)){let e=t(r),o=n(a);e&&o!==void 0&&(i[e]=o)}return Object.keys(i).length>0?i:void 0}function coerceAuthProfileState(e){return r(e)?{order:normalizeAuthProfileEntries(e.order,normalizeProviderId,e=>{let t=Array.isArray(e)?ee(e):[];return t.length>0?t:void 0}),lastGood:normalizeAuthProfileEntries(e.lastGood,normalizeProviderId,o),usageStats:normalizeAuthProfileEntries(e.usageStats,o,coerceProfileUsageStats)}:{}}const Et=/* @__PURE__ */ new Set([`api_key`,`oauth`,`token`]);function parseCredentialEntry(e,t){if(!r(e))return{ok:!1,reason:`non_object`};let n=normalizeRawCredentialEntry(e);if(!n)return{ok:!1,reason:`invalid_type`};let i=n.provider||(t?normalizeProviderId(t):``);return i?{ok:!0,credential:{...n,provider:i}}:{ok:!1,reason:`missing_provider`}}function warnRejectedCredentialEntries(e,t){if(t.length===0)return;let n=t.reduce((e,t)=>(e[t.reason]=(e[t.reason]??0)+1,e),{});ht.warn(`ignored invalid auth profile entries during store load`,{source:e,dropped:t.length,reasons:n,...n.invalid_type?{validTypes:[...Et]}:{},keys:t.slice(0,10).map(e=>e.key)})}function coercePersistedAuthProfileStore(e){if(!r(e))return null;let t=e;if(!r(t.profiles))return null;let n=t.profiles,i={},a=[];for(let[e,t]of Object.entries(n)){let n=r(t)?Object.hasOwn(t,`type`)?t.type:t.mode:void 0;if((n===`apiKey`||n===`api_key`||n===`token`||n===`oauth`)&&r(t)&&typeof t.provider==`string`&&normalizeProviderId(t.provider)&&(!Object.hasOwn(t,`type`)||t.type===`apiKey`||n===`api_key`&&l(t.keyRef)||n===`token`&&l(t.tokenRef)||n===`api_key`&&!d(t.keyRef)&&(r(t.key)&&d(t.key)!==null||!s(t.key)&&!d(t.key)&&(s(t.apiKey)!==void 0||d(t.apiKey)!==null||s(t.api_key)!==void 0||d(t.api_key)!==null))||n===`token`&&!d(t.tokenRef)&&r(t.token)&&d(t.token)!==null))throw Error(`Auth profile credential fields require migration; run openclaw doctor --fix.`);let o=parseCredentialEntry(t);o.ok?i[e]=o.credential:a.push({key:e,reason:o.reason})}warnRejectedCredentialEntries(`auth-profiles.json`,a);let o=Number(t.version??1);return{version:Number.isFinite(o)&&o>0?o:1,profiles:i,...coerceAuthProfileState(t)}}const Dt=`[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}`,Ot=RegExp(`^personal:(${Dt}|gateway-owner):${Dt}$`,`u`);function parseUserModelAuthProfileId(e){let t=Ot.exec(e)?.[1];return t?{ownerProfileId:t}:void 0}const kt=re({domain:`personal-model-credentials`,keyOf:e=>e.id,isValue:e=>r(e)&&typeof e.id==`string`&&parseUserModelAuthProfileId(e.id)!==void 0&&typeof e.replacement==`boolean`&&(e.authorizationId===void 0||typeof e.authorizationId==`string`)&&mt.safeParse(e.credential).success});function wakeCredentialWaiters(e){e?.waiters?.forEach(e=>e())}const R=t(Symbol.for(`openclaw.personalCredentialAuthority`),e=>{let t=[...e.values()];e.clear(),t.forEach(wakeCredentialWaiters)});function ownerFor(e){let t=R.get(e);return t||(t={cells:/* @__PURE__ */ new Map,pending:/* @__PURE__ */ new Set,uncertain:!1},R.set(e,t)),t}kt.subscribeFacts(e=>{let t=e.kind===`committed`?e.receipt.source.identity:e.identity;if(typeof t!=`string`)return;let n=ownerFor(t);if(e.kind===`pending`)n.pending.add(e.operationId);else if(e.kind===`settled`)n.pending.delete(e.operationId);else if(e.kind===`unknown`)n.uncertain=!0,n.cells.clear();else if(e.kind===`committed`)for(let[t,r]of e.receipt.facts){let e=n.cells.get(t);if(r.kind!==`postimage`)n.cells.delete(t);else if(e){let i=r.value.replacement?{...e}:e;i.credential=r.value.credential,i.authorizationId=r.value.authorizationId,i.authorizationObserved=!0,n.cells.set(t,i)}}}),ae(e=>{if(e.kind!==`opened`){if(e.identity){let t=`${e.identity.key}:${e.identity.birthtime??``}`;for(let n of[e.identity.key,t,...R.get(t)?.sources??[]]){let e=R.get(n);e?.dispose?.(),R.delete(n),wakeCredentialWaiters(e)}}else{for(let e of R.values())e.dispose?.();let e=[...R.values()];R.clear(),e.forEach(wakeCredentialWaiters)}}});const At=re({domain:`auth-profile-credentials`,sourceIdentity(e){let t=oe(e);if(t)return`${t.key}:${t.birthtime??``}`;let n=ge({db:se(e)});if(!n||typeof n.identity!=`string`)return Symbol(`auth-profile-credentials`);let r=`file:${n.identity}:${n.birthtime??``}`;return ownerFor(r).canonicalPath=n.canonicalPath,r},keyOf:()=>`store`,isValue:e=>!0}),jt={...At,bound(e){return{...At.bound(e),canonicalPath:typeof e.source.identity==`string`?ownerFor(e.source.identity).canonicalPath:void 0}},begin(e){return typeof e.identity==`string`&&e.canonicalPath&&(ownerFor(e.identity).canonicalPath=e.canonicalPath),At.begin(e)}},Mt=i(Symbol.for(`openclaw.authProfileCredentialCapture`),()=>new A);jt.subscribeFacts(e=>{let t=e.kind===`committed`?e.receipt.source.identity:e.identity;if(typeof t!=`string`)return;let n=ownerFor(t);(e.kind===`committed`||e.kind===`unknown`)&&Mt.getStore()?.push(e.kind===`committed`?jt.bound(e.receipt):{...e,canonicalPath:n.canonicalPath});let r=[n],i=`path:${n.canonicalPath}:`,a=n.canonicalPath&&R.get(i);if(a){r.push(a);for(let e of R.values())e.sources?.has(i)&&e.sources.add(t)}if(e.kind===`pending`)for(let t of r)t.pending.add(e.operationId);else if(e.kind===`settled`)for(let t of r)t.pending.delete(e.operationId);else if(e.kind===`unknown`)for(let e of r)e.uncertain=!0;else if(e.kind===`committed`){let t=e.receipt.facts.get(`store`);if(!t||t.kind===`unchanged`)return;if(t.kind===`unknown`){for(let e of r)e.uncertain=!0,wakeCredentialWaiters(e);return}let n=t.kind===`postimage`?coercePersistedAuthProfileStore(t.value)?.profiles:{};if(!n){for(let e of r)e.uncertain=!0,wakeCredentialWaiters(e);return}for(let e of r)for(let[t,r]of e.cells)r.credential=n[t],r.observed=!0}r.forEach(wakeCredentialWaiters)});const Nt=h([x(`npm`),x(`archive`),x(`path`),x(`clawhub`),x(`git`)]),Pt={source:Nt,spec:_().optional(),sourcePath:_().optional(),installPath:_().optional(),version:_().optional(),resolvedName:_().optional(),resolvedVersion:_().optional(),resolvedSpec:_().optional(),integrity:_().optional(),shasum:_().optional(),resolvedAt:_().optional(),installedAt:_().optional(),clawhubUrl:_().optional(),clawhubPackage:_().optional(),clawhubFamily:h([x(`code-plugin`),x(`bundle-plugin`)]).optional(),clawhubChannel:h([x(`official`),x(`community`),x(`private`)]).optional(),clawhubTrustDisposition:h([x(`clean`),x(`review-recommended`),x(`review-required`),x(`blocked`)]).optional(),clawhubTrustScanStatus:_().optional(),clawhubTrustModerationState:_().optional(),clawhubTrustReasons:v(_()).optional(),clawhubTrustPending:b().optional(),clawhubTrustStale:b().optional(),clawhubTrustCheckedAt:_().optional(),clawhubTrustAcknowledgedAt:_().optional(),artifactKind:h([x(`legacy-zip`),x(`npm-pack`)]).optional(),artifactFormat:h([x(`zip`),x(`tgz`)]).optional(),npmIntegrity:_().optional(),npmShasum:_().optional(),npmTarballName:_().optional(),clawpackSha256:_().optional(),clawpackSpecVersion:C().int().nonnegative().optional(),clawpackManifestSha256:_().optional(),clawpackSize:C().int().nonnegative().optional(),gitUrl:_().optional(),gitRef:_().optional(),gitCommit:_().optional()};m(Pt);const Ft=y({contentDigest:_().regex(/^[a-f0-9]{64}$/),dependencyClosureDigest:_().regex(/^[a-f0-9]{64}$/)}),It=le(_(),ce()),Lt=g(e=>It.safeParse(e).success).transform(e=>Object.entries(e)).pipe(v(ue([_().min(1),Ft]))).transform(e=>Object.fromEntries(e)),Rt=m({...Pt,source:h([Nt,x(`marketplace`)]),contextEngineIdsByPlugin:le(_().min(1),v(_().min(1))).optional(),marketplaceName:_().optional(),marketplaceSource:_().optional(),marketplacePlugin:_().optional(),acceptedSurface:y({channels:v(_().min(1)),providers:v(_().min(1)),tools:v(_().min(1)),contracts:v(_().min(1)),hooks:v(_().min(1)),mcpServers:v(_().min(1)),cliCommands:v(_().min(1)),cliBackends:v(_().min(1)),skills:v(_().min(1)),dangerousConfigFlags:v(_().min(1))}).optional(),acceptedSurfaceHash:_().optional(),acceptedSurfaceAt:_().optional(),acceptedSurfaceIntegrity:_().optional(),sourceSnapshotDigests:Lt.optional()});m({artifact:m({path:_()})}),y({formatVersion:C().int().positive(),generation:_().min(1),installedRevision:C().int().nonnegative(),installRecordHash:_().min(1),packageIntegrity:_().min(1).optional(),contentDigest:_().min(1),dependencyClosureDigest:_().min(1),buildResolutionDigest:_().min(1),platform:_().min(1),arch:_().min(1),abi:_().min(1),artifact:y({path:_().min(1),identity:_().min(1),manifestIdentity:_().min(1),manifestDigest:_().min(1),tokenIdentity:_().min(1)})});const zt=y({installOwner:_().min(1).optional(),rootDir:_().min(1),installRecordHash:_().min(1).optional(),sourceSnapshot:ce().optional(),sourceSnapshotWarning:y({artifactPath:_(),message:_()}).optional()}),Bt=y({pluginId:_().min(1),before:zt.nullable(),after:zt.nullable()}),Vt=`update.pluginCohort.`,z=1048576,B=_().min(1).max(32768),V=B.refine(e=>O.isAbsolute(e)),H=C().int().nonnegative().max(2**53-1),U=y({realPath:V,dev:_().regex(/^\d+$/u),ino:_().regex(/^\d+$/u),manifestSha256:_().regex(/^[a-f0-9]{64}$/u)}),Ht=U.extend({manifestSha256:U.shape.manifestSha256.nullable()}),Ut=Rt.passthrough(),Wt=y({targetPath:V,entries:v(p(`kind`,[y({path:V,kind:x(`missing-directory`)}),y({path:V,kind:x(`existing`),dev:B,ino:B,link:B.optional()})])).max(1024)}),Gt=y({rootConfigPath:V,filePath:V,targetPath:V,pathSnapshot:Wt,beforeRaw:_().max(z).nullable(),afterRaw:_().max(z),include:y({boundaryPath:v(B).min(1).max(256),includePath:V}).optional()}).refine(e=>e.targetPath===e.pathSnapshot.targetPath&&(e.include?e.filePath===e.include.includePath:e.filePath===e.rootConfigPath),{message:`Plugin cohort configuration publication target differs from its owning path`}),Kt=y({startedAt:H,finishedAt:H.nullable(),status:S([`pending`,`completed`,`superseded`,`deferred`]),reportJson:_().max(z)}),qt=y({kind:x(`plugin-migrations`),rows:v(y({pluginId:B,before:Kt.optional(),after:Kt})).max(4096).refine(e=>new Set(e.map(e=>e.pluginId)).size===e.length,{message:`Plugin migration publication repeats an owner`})}),Jt=y({runId:w(),transactionId:w(),revision:H,disposition:S([`pending`,`commit`,`rollback`]),installKey:V,priorArtifacts:v(y({pluginId:B,packageDir:V,identity:Ht.nullable(),record:Ut.optional(),markerBefore:_().max(z).nullable(),markerAfter:_().max(z).nullable()}).refine(e=>e.identity!==null||e.record?.source===`npm`&&e.record.installPath===e.packageDir&&e.markerBefore===null&&e.markerAfter===null,{message:`Absent plugin cohort payload must retain its matching record without markers`})).max(4096),artifacts:v(y({pluginId:B,packageName:B,targetNpmRoot:V,targetPackageDir:V,stagedIdentity:U,identity:U.optional(),markerAfter:_().max(z).nullable().optional()})).max(4096),publications:v(p(`kind`,[y({kind:x(`records`),sourceSnapshots:v(Bt).max(4096).optional(),records:v(y({pluginId:B,before:Ut.optional(),after:Ut.optional()})).max(4096)}),y({kind:x(`config`),file:Gt}),qt])).max(4096),settledPublications:H}).refine(e=>e.settledPublications<=e.publications.length,{message:`Plugin cohort settlement exceeds its publications`});y({runId:w(),transactionId:w(),installKey:V});function assertPluginCohortReservation(e){if(!e.source)throw Error(`Plugin cohort reservation requires its original state source`);let t=/* @__PURE__ */ new Set([`runId`,`transactionId`,`revision`,`claimId`,`claimKind`,`handoff`,`source`,`from`,`to`,`createdAtMs`,`updatedAtMs`,`effects`,`restore`,`verification`,`primaryFailure`]);if(Object.keys(e).some(e=>!t.has(e))||e.effects.length!==0||e.handoff!==null||e.restore!==null||e.verification!==null||e.primaryFailure!==null)throw Error(`Plugin cohort reservation contains full-state recovery`)}function decodePluginCohortRecovery(e,t){if(Buffer.byteLength(e)>z)throw Error(`Plugin cohort recovery exceeds its storage limit`);let n=Jt.parse(JSON.parse(e));if(n.runId!==t)throw Error(`Plugin cohort recovery does not match its history run`);return n}function assertPluginCohortRecoveryBinding(e){if(assertPluginCohortReservation(e.reservation),e.reservation.runId!==e.cohort.runId||e.reservation.transactionId!==e.cohort.transactionId)throw Error(`Plugin cohort recovery does not match its reservation`)}const W=_().min(1).max(4096),Yt=W.refine(e=>O.isAbsolute(e)),G=C().int().nonnegative().max(2**53-1),Xt={runId:w(),stateDir:Yt,configPath:Yt,profile:_().regex(/^[a-z0-9][a-z0-9_-]{0,63}$/iu).nullable()},Zt=y({...Xt,platform:x(`linux`),scope:S([`user`,`system`]),unitName:W}),Qt=p(`platform`,[y({...Xt,platform:x(`win32`),taskName:W}),y({...Xt,platform:x(`darwin`),domain:W,label:W}),p(`scope`,[Zt.extend({scope:x(`user`),uid:G}),Zt.extend({scope:x(`system`)})])]),K=y({exists:b(),enabled:b().nullable(),loaded:b(),stopped:b()}).refine(e=>e.exists?e.enabled!==null&&(e.loaded||e.stopped):e.enabled===null&&!e.loaded&&e.stopped),$t=S([`suppress`,`stop`,`restore`,`enable-for-start`]),en=y({effectId:w(),action:$t,before:K,after:K,state:S([`intent`,`observed`,`not-applied`,`reconciled`]),reconciledStop:y({facts:K,revision:G}).optional(),intentRevision:G,observedRevision:G.optional()}),tn=y({identity:Qt,original:K,boundAtRevision:G,effects:v(en).max(128)}).superRefine((e,t)=>{let n=e.boundAtRevision,r=/* @__PURE__ */ new Set,i=e.original;for(let[a,o]of e.effects.entries())(!k(o.before,i)||r.has(o.effectId)||o.state===`not-applied`&&k(o.before,o.after)||o.intentRevision<=n||(o.state===`intent`?o.observedRevision!==void 0||a!==e.effects.length-1:o.state===`reconciled`?o.observedRevision!==void 0||!o.reconciledStop:o.observedRevision===void 0||o.observedRevision<=o.intentRevision)||o.reconciledStop!==void 0&&(o.state!==`reconciled`&&o.state!==`observed`||o.reconciledStop.revision<=(o.observedRevision??o.intentRevision)||e.identity.platform!==`linux`||o.action!==`suppress`||!o.before.exists||!o.before.loaded||o.before.enabled!==!0||o.before.stopped||!k(o.after,{...o.before,enabled:!1})||!k(o.reconciledStop.facts,{...o.after,stopped:!0}))||!validNativeTransition(o.action,o.before,o.after,e.original,e.identity.platform))&&t.addIssue({code:`custom`,message:`Invalid native manager effect history`}),r.add(o.effectId),i=o.reconciledStop?.facts??(o.state===`not-applied`?o.before:o.after),n=o.reconciledStop?.revision??o.observedRevision??o.intentRevision});function validNativeTransition(e,t,n,r,i){return e===`enable-for-start`?(i===`win32`||i===`darwin`)&&r.exists&&r.loaded&&!r.stopped&&r.enabled===!1&&t.exists&&t.stopped&&t.enabled===!1&&k(n,{...t,enabled:!0}):e===`restore`?!t.exists||!r.exists?k(n,r):k(n,{...t,enabled:r.enabled})||k(n,{...t,loaded:r.loaded,stopped:r.stopped}):!t.exists||!n.exists?k(t,n):e===`suppress`?n.enabled===!1&&t.loaded===n.loaded&&t.stopped===n.stopped:n.stopped&&n.enabled===t.enabled&&(!n.loaded||t.loaded)}function currentUpdateRecoveryNativeFacts(e){let t=e.effects.at(-1);return t?.reconciledStop?.facts??(t?.state===`not-applied`?t.before:t?.after??e.original)}function isRecoverablePreparationNative(e){let{original:t,effects:n}=e;if(n.length===0)return!0;let[r,i]=n;return t.exists&&t.enabled===!0&&t.loaded&&!t.stopped&&n.length===2&&r?.action===`stop`&&k(r.before,t)&&k(r.after,{...t,stopped:!0,loaded:e.identity.platform!==`darwin`})&&r.state===`observed`&&i?.action===`restore`&&i.state===`observed`&&k(i.before,r.after)&&k(i.after,t)}const q=_().min(1).max(32768),J=q.refine(e=>O.isAbsolute(e)&&O.resolve(e)===e),nn=q.refine(e=>e!==`.`&&e!==`..`&&!/[\\/]/u.test(e)),Y=y({digest:_().regex(/^[a-f0-9]{64}$/u),identity:_().regex(/^\d+:\d+$/u),version:q}),rn=y({pairId:w(),ownerRevision:C().int().nonnegative().max(2**53-1)}),an=p(`state`,[rn.extend({state:x(`selected`)}),y({state:x(`unselected`),ownerRevision:rn.shape.ownerRevision}),rn.extend({state:x(`superseded`),replacement:y({pairId:w(),transactionId:w(),live:Y,retainedRoot:J,retained:Y,launchers:v(y({name:nn,fingerprint:q})).max(64)})})]),on=y({version:x(1),transactionId:w(),packageName:_().regex(/^(?:@[a-z0-9._-]+\/)?[a-z0-9._-]+$/iu).max(214),liveRoot:J,stageRoot:J,backupRoot:J,binDir:J,shimBackupRoot:J.nullable(),shimBackupIdentity:q.nullable(),previous:Y.nullable(),candidate:Y,launchers:v(y({name:nn,previous:q.nullable(),candidate:q})).max(64),interruptedLaunchers:v(nn).max(64),retention:an.nullable()}).superRefine((e,t)=>{let n=O.resolve(e.liveRoot,...e.packageName.split(`/`).map(()=>`..`));(e.liveRoot===O.parse(e.liveRoot).root||e.stageRoot===O.parse(e.stageRoot).root||e.binDir===O.parse(e.binDir).root||O.join(n,e.packageName)!==e.liveRoot||e.packageName===`.`||e.packageName===`..`||e.shimBackupRoot===null!=(e.shimBackupIdentity===null)||O.dirname(e.backupRoot)!==n||!O.basename(e.backupRoot).startsWith(`.openclaw.package-backup-`)||e.stageRoot===e.liveRoot||e.stageRoot.startsWith(`${e.liveRoot}${O.sep}`)||e.liveRoot.startsWith(`${e.stageRoot}${O.sep}`)||e.shimBackupRoot!==null&&(O.dirname(e.shimBackupRoot)!==n||!O.basename(e.shimBackupRoot).startsWith(`.openclaw.shim-backup-`))||e.launchers.some(t=>t.previous!==null&&!e.shimBackupRoot)||e.interruptedLaunchers.some(t=>!e.launchers.some(e=>e.name===t))||new Set(e.launchers.map(e=>e.name)).size!==e.launchers.length)&&t.addIssue({code:`custom`,message:`Invalid package recovery paths or launcher inventory`})}),sn=y({effectId:w(),action:S([`activate`,`restore`,`retire`]),descriptor:on}),cn=y({status:x(`verified`),descriptor:on,observation:y({previous:S([`live`,`retained`,`absent`]),candidate:S([`live`,`staged`,`displaced`,`absent`]),launchers:S([`previous`,`candidate`,`both`,`mixed`,`interrupted`]),successorLive:b()}),observedIdentity:_().regex(/^[a-f0-9]{64}$/u)}),ln=y({descriptor:on,observed:cn}),un=y({intent:sn,observed:cn.optional(),outcome:S([`completed`,`interrupted`]).optional()}),X=_().min(1).max(32768),Z=X.refine(e=>O.isAbsolute(e)),Q=C().int().nonnegative().max(2**53-1),dn=y({root:Z,nodePath:Z,version:X,buildId:X.nullable()}),$=y({kind:x(`readiness`,{error:`Legacy update verification is not readiness evidence; explicit reconciliation is required.`}),runId:w(),transactionId:w(),claimId:w(),revision:Q,effectId:w(),runtime:S([`candidate`,`previous`]),gateway:y({bootId:_().min(1).max(96),version:_().min(1).max(256),buildId:_().min(1).max(256).nullable()}),checks:y({serviceRunning:x(!0),pluginsReady:x(!0),channelsReady:x(!0),settled:x(!0),readyz:x(!0)}),verifiedAtMs:Q}),fn=y({effectId:w(),kind:S([`package-activation`,`runtime-mutation`,`checkpoint-restore`,`package-restore`,`service-restart`,`retirement`]),resourceId:X,runtime:S([`candidate`,`previous`]),state:S([`intent`,`observed`,`cancelled`]),cancelledByNativeEffectId:w().optional(),package:un.optional(),observedIdentity:X.nullable()}).refine(e=>e.state===`observed`==(e.observedIdentity!==null)&&(e.state===`cancelled`?e.kind===`service-restart`&&!e.package&&e.cancelledByNativeEffectId!==void 0:e.cancelledByNativeEffectId===void 0)),pn=y({restoreId:w(),checkpointId:w(),planPath:Z,planSha256:_().regex(/^[a-f0-9]{64}$/u).nullable(),resourceCursor:Q,phase:S([`preparing`,`intent`,`observed`])}).refine(e=>e.phase===`preparing`||e.planSha256!==null),mn=y({checkpointId:w(),manifestPath:Z,manifestSha256:_().regex(/^[a-f0-9]{64}$/u)}),hn=y({ref:mn,preimageRef:mn.optional(),binding:y({runId:w(),stateDir:Z,configPath:Z,fromRuntime:dn.omit({buildId:!0})})}),gn=y({checkpointRef:mn,afterUpdate:hn,effectIds:v(w()).min(1).max(4096),boundAtRevision:Q}),_n=_().min(1).max(256),vn=y({entryId:_n,seq:Q}),yn=y({runId:w(),gateway:$.shape.gateway,agentId:_n,sessionKey:_().min(1).max(512),sessionId:_n,agentRunId:w(),transcript:y({generation:_n,maxSeq:Q,user:vn,assistant:vn}),verifiedAtMs:Q}).refine(e=>e.transcript.user.seq<e.transcript.assistant.seq&&e.transcript.assistant.seq<=e.transcript.maxSeq,{message:`Invalid legacy serving transcript sequence`}),bn=h([$,yn]),xn=y({runId:w(),transactionId:w(),revision:Q,claimId:w(),claimKind:S([`initial`,`recovery`,`handoff`]),handoff:y({handoffId:w(),state:S([`prepared`,`accepted`])}).nullable(),source:y({stateDir:Z,configPath:Z,profile:X.nullable().optional()}).optional(),from:dn,to:dn,createdAtMs:Q,updatedAtMs:Q,effects:v(fn).max(4096),preimages:hn.omit({preimageRef:!0}).extend({boundAtRevision:Q}).optional(),nativeManager:tn.optional(),checkpoint:hn.optional(),afterImages:v(gn).max(4096).optional(),restore:pn.nullable().default(null),publication:y({revision:Q,sha256:_().regex(/^[a-f0-9]{64}$/u)}).optional(),verification:y({runtime:S([`candidate`,`previous`]),effectId:w(),receipt:bn}).nullable(),package:ln.optional(),terminal:y({status:S([`succeeded`,`rolled-back`]),committedAtMs:Q,commitRevision:Q,receipt:bn,pairId:w().nullable()}).optional(),preparationAborted:y({reason:x(`interrupted-preparation`),committedAtMs:Q,commitRevision:Q,observedIdentity:_().regex(/^[a-f0-9]{64}$/u)}).optional(),retainedPair:y({pairId:w(),state:S([`selected`,`superseded`]),replacementRunId:w().optional()}).optional(),primaryFailure:y({code:X,effectId:w().nullable()}).nullable()}).superRefine((e,t)=>{let reportIssue=e=>t.addIssue({code:`custom`,message:e}),n=e.preparationAborted;n&&(!e.source||!e.preimages||!e.nativeManager||!e.package||e.claimKind!==`recovery`||e.effects.length!==0||!isRecoverablePreparationNative(e.nativeManager)||e.handoff||e.checkpoint||e.afterImages!==void 0||e.restore||e.publication||e.verification||e.terminal||e.retainedPair||e.primaryFailure?.code!==n.reason||e.primaryFailure.effectId!==null||n.commitRevision!==e.revision||n.committedAtMs>e.updatedAtMs||n.observedIdentity!==e.package.observed.observedIdentity||e.package.descriptor.retention!==null||e.package.descriptor.interruptedLaunchers.length!==0||e.package.observed.observation.previous!==`live`||e.package.observed.observation.candidate!==`staged`||![`previous`,`both`].includes(e.package.observed.observation.launchers)||e.package.observed.observation.successorLive)&&reportIssue(`Preparation settlement cannot carry effects or serving authority`);let r=e.verification;if(r){let t=r.receipt,n=r.runtime===`candidate`?e.to:e.from,i=e.effects.find(e=>e.effectId===r.effectId);(t.runId!==e.runId||`kind`in t&&(t.transactionId!==e.transactionId||t.claimId!==e.claimId||t.revision>=e.revision||t.runtime!==r.runtime||t.effectId!==r.effectId)||t.gateway.version!==n.version||t.gateway.buildId!==n.buildId||i?.kind!==`service-restart`||i.state!==`observed`||i.runtime!==r.runtime||i.observedIdentity!==t.gateway.bootId||!e.terminal&&i!==e.effects.at(-1))&&reportIssue(`Verification evidence does not match recovery and restart`)}r&&e.terminal&&!k(r.receipt,e.terminal.receipt)&&reportIssue(`Terminal and verification receipts differ`);let i=e.nativeManager,a=i?currentUpdateRecoveryNativeFacts(i):void 0;i&&(!e.preimages||!e.source||i.identity.runId!==e.runId||i.identity.stateDir!==e.source.stateDir||i.identity.configPath!==e.source.configPath||i.identity.profile!==e.source.profile||i.boundAtRevision>e.revision||!e.primaryFailure&&i.effects.some(e=>e.state===`not-applied`||e.state===`reconciled`)||i.effects.some((t,n)=>{if(!t.reconciledStop)return!1;let r=i.effects[n-1],a=e.effects.find(e=>e.effectId===r?.effectId);return!e.primaryFailure||!e.checkpoint||!r||r.action!==`restore`||r.state!==`observed`||!r.before.stopped||r.after.stopped||a?.kind!==`service-restart`||a.runtime!==`candidate`})||i.effects.some(t=>(t.reconciledStop?.revision??t.observedRevision??t.intentRevision)>e.revision)||i.effects.at(-1)?.state===`intent`&&(e.terminal||e.verification)||!a?.stopped&&e.effects.some(e=>e.state===`intent`&&(e.kind===`package-activation`||e.kind===`runtime-mutation`||e.kind===`package-restore`||e.kind===`checkpoint-restore`))||e.terminal&&a&&!k(a,i.original))&&reportIssue(`Native manager evidence must match admitted source and revision`);let o=e.preimages;(o&&(o.boundAtRevision>e.revision||!e.source||o.binding.runId!==e.runId||o.binding.stateDir!==e.source.stateDir||o.binding.configPath!==e.source.configPath||o.binding.fromRuntime.root!==e.from.root||o.binding.fromRuntime.nodePath!==e.from.nodePath||o.binding.fromRuntime.version!==e.from.version)||e.checkpoint&&(o&&(!k(e.checkpoint.preimageRef,o.ref)||!k(e.checkpoint.binding,o.binding)||e.checkpoint.ref.checkpointId===o.ref.checkpointId||e.checkpoint.ref.manifestPath===o.ref.manifestPath||e.checkpoint.ref.manifestSha256===o.ref.manifestSha256)||!o&&e.checkpoint.preimageRef))&&reportIssue(`Early file preimages must remain distinct from the full checkpoint`),e.package&&e.package.descriptor.transactionId!==e.transactionId&&reportIssue(`Package transaction differs from recovery`);for(let t of e.effects){if(t.state===`cancelled`){let n=i?.effects.findIndex(e=>e.effectId===t.effectId)??-1,r=i?.effects.findIndex(e=>e.effectId===t.cancelledByNativeEffectId)??-1,a=i?.effects[n],o=i?.effects[r],s=r===n&&o?.state===`not-applied`&&o.before.stopped,c=r>n&&o?.action===`stop`&&o.state===`observed`&&o.after.stopped;e.primaryFailure&&a&&a.action===`restore`&&a.before.stopped&&!a.after.stopped&&(s||c)||reportIssue(`Cancelled restart requires resolved native quiescence`)}t.package&&(t.package.intent.effectId!==t.effectId||t.package.intent.descriptor.transactionId!==e.transactionId||t.state===`observed`!=!!(t.package.observed&&t.package.outcome)||t.package.observed&&t.observedIdentity!==t.package.observed.observedIdentity)&&reportIssue(`Invalid typed package effect`)}if(e.terminal&&(e.terminal.commitRevision>e.revision||e.terminal.receipt.runId!==e.runId||e.terminal.pairId!==(e.retainedPair?.pairId??null))&&reportIssue(`Terminal outcome and selected pair differ`),e.terminal){let t=e.terminal.receipt,n=e.terminal.status===`succeeded`?`candidate`:`previous`,i=n===`candidate`?e.to:e.from,a=`kind`in t?e.effects.find(e=>e.effectId===t.effectId):e.effects.findLast(e=>e.kind===`service-restart`);((`kind`in t?t.transactionId!==e.transactionId||t.runtime!==n||t.revision+2!==e.terminal.commitRevision||a?.kind!==`service-restart`||r&&!k(r.receipt,t):r&&(r.runtime!==n||r.effectId!==a?.effectId))||t.gateway.version!==i.version||t.gateway.buildId!==i.buildId||a?.state!==`observed`||a.runtime!==n||a.observedIdentity!==t.gateway.bootId)&&reportIssue(`kind`in t?`Terminal readiness does not match its recorded restart`:`Legacy terminal evidence differs from its recorded restart`)}let s=e.retainedPair,c=e.package?.descriptor.retention;(s&&(!e.terminal||e.terminal.status!==`succeeded`||!c||c.state===`unselected`||c.state!==s.state||c.pairId!==s.pairId||s.state===`superseded`!=!!s.replacementRunId)||e.terminal?.status===`succeeded`&&!s||e.terminal?.status===`rolled-back`&&(s||c?.state!==`unselected`))&&reportIssue(`Recovery selection does not match committed package roles`);let l=0,u=-1,ee=e.checkpoint?[e.checkpoint.ref]:[];for(let[n,r]of(e.afterImages??[]).entries()){let i=e.effects.slice(l,l+r.effectIds.length);(!e.checkpoint||!k(r.checkpointRef,e.checkpoint.ref)||!k(r.afterUpdate.binding,e.checkpoint.binding)||r.boundAtRevision<=u||r.boundAtRevision>e.revision||!k(r.effectIds,i.map(e=>e.effectId))||i.some(e=>e.state!==`observed`||e.package?.outcome===`interrupted`||e.runtime!==`candidate`||e.kind===`checkpoint-restore`||e.kind===`package-restore`||e.kind===`retirement`)||ee.some(e=>e.checkpointId===r.afterUpdate.ref.checkpointId||e.manifestPath===r.afterUpdate.ref.manifestPath||e.manifestSha256===r.afterUpdate.ref.manifestSha256))&&t.addIssue({code:`custom`,path:[`afterImages`,n],message:`After-image must bind a distinct checkpoint to the exact completed mutation interval`}),l+=r.effectIds.length,u=r.boundAtRevision,ee.push(r.afterUpdate.ref)}}),Sn=xn.safeExtend({verification:xn.shape.verification.unwrap().extend({receipt:$}).nullable(),terminal:xn.shape.terminal.unwrap().extend({receipt:$}).optional()});function inspectUpdateRecovery(e,t){if(Buffer.byteLength(e)>Cn)throw Error(`Update recovery record exceeds its storage limit`);let n=xn.parse(JSON.parse(e));if(n.runId!==t)throw Error(`Update recovery record does not match its history run`);return{format:[n.verification?.receipt,n.terminal?.receipt].some(e=>e&&!(`kind`in e))?`legacy-serving`:`current`,raw:e,record:n}}const Cn=1048576;function decodeUpdateRecovery(e,t){if(Buffer.byteLength(e)>Cn)throw Error(`Update recovery record exceeds its storage limit`);let n=Sn.parse(JSON.parse(e));if(n.runId!==t)throw Error(`Update recovery record does not match its history run`);return n}function readUpdateRecoveryAdmissionFacts(e){return _e(e,()=>({cohorts:inspectPluginCohortRecoveryRows(e),recoveries:inspectRecoveryRows(e)}))}function readRecoveryRows(e,t){if(!D(e,`config_machine_state`))return[];let n=E(e).selectFrom(`config_machine_state`).select([`state_key`,`value_json`]);return T(e,t===void 0?n.where(`state_key`,`>=`,j).where(`state_key`,`<`,`update.recovery/`).orderBy(`state_key`,`asc`):n.where(`state_key`,`=`,j+t)).rows}function inspectRecoveryRows(e){return readRecoveryRows(e).map(({value_json:e,state_key:t})=>inspectUpdateRecovery(e,t.slice(16)))}ie(`config_machine_state`);function readPluginCohortPairRows(e,t){return D(e,`config_machine_state`)?T(e,E(e).selectFrom(`config_machine_state`).select([`state_key`,`value_json`,`updated_at_ms`]).where(`state_key`,`in`,[j+t,Vt+t])).rows:[]}function decodePluginCohortPair(e,t){let n=e.find(e=>e.state_key===j+t),r=e.find(e=>e.state_key===Vt+t);if(!n||!r)throw Error(`Plugin cohort recovery is missing its matching reservation`);let i={reservation:decodeUpdateRecovery(n.value_json,t),cohort:decodePluginCohortRecovery(r.value_json,t)};return assertPluginCohortRecoveryBinding(i),i}function inspectPluginCohortRecoveryRows(e){return D(e,`config_machine_state`)?T(e,E(e).selectFrom(`config_machine_state`).select(`state_key`).where(`state_key`,`>=`,Vt).where(`state_key`,`<`,`update.pluginCohort/`).orderBy(`state_key`,`asc`)).rows.map(t=>{let n=t.state_key.slice(20);return decodePluginCohortPair(readPluginCohortPairRows(e,n),n)}):[]}function readUpdateRunAdmissionCommand(e,t){return t.type===`updateRuns.reconciliationCandidates`?{type:t.type,candidates:readUpdateRunReconciliationCandidates(e,t.input)}:_e(e,()=>{if(t.type===`updateRuns.recoveryAdmission`)return{type:t.type,facts:readUpdateRecoveryAdmissionFacts(e)};let n=D(e,`update_runs`)?readUpdateRunRecord(e,t.runId):void 0;return{type:t.type,candidate:n?inspectUpdateRunReconciliation(e,n,{}):void 0}})}export{readUpdateRunAdmissionCommand};